@primer-io/primer-js 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -444,7 +444,7 @@
444
444
  },
445
445
  {
446
446
  "name": "primer-card-form-submit",
447
- "description": "A form submit button component for card forms.\nProvides a consistent submit button with translation support.\n---\n",
447
+ "description": "A form submit button component for card forms.\n\nProvides a consistent submit button with translation support and configurable visibility.\nWhen `submitButton.useBuiltInButton` is set to `false`, the component will not render\nany DOM elements, allowing external buttons to handle form submission by dispatching\nthe `primer:card-submit` event.\n---\n",
448
448
  "attributes": [
449
449
  {
450
450
  "name": "buttonText",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@primer-io/primer-js",
4
- "version": "0.3.7",
4
+ "version": "0.3.8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -705,6 +705,16 @@
705
705
  "description": "Headless utils for accessing server configuration",
706
706
  "type": "HeadlessUtilsContextType"
707
707
  },
708
+ {
709
+ "name": "analyticsUtils",
710
+ "description": "Analytics utils for sending analytics events",
711
+ "type": "AnalyticsContextType"
712
+ },
713
+ {
714
+ "name": "contextEventsController",
715
+ "description": "Events controller from context for receiving forwarded events",
716
+ "type": "EventsContextType"
717
+ },
708
718
  {
709
719
  "name": "shouldShowCardholderName",
710
720
  "description": "Determines whether to show the cardholder name field\nUses client configuration with fallback to default (true)",
@@ -884,7 +894,12 @@
884
894
  "properties": [
885
895
  { "name": "type", "type": "PaymentMethodType | undefined" },
886
896
  { "name": "disabled", "type": "boolean" },
887
- { "name": "paymentMethods", "type": "PaymentMethodsContextType" }
897
+ { "name": "paymentMethods", "type": "PaymentMethodsContextType" },
898
+ {
899
+ "name": "analyticsUtils",
900
+ "description": "Analytics utils for sending analytics events",
901
+ "type": "AnalyticsContextType"
902
+ }
888
903
  ],
889
904
  "events": []
890
905
  }
@@ -1105,7 +1120,7 @@
1105
1120
  },
1106
1121
  {
1107
1122
  "name": "primer-card-form-submit",
1108
- "description": "A form submit button component for card forms.\nProvides a consistent submit button with translation support.\n---\n",
1123
+ "description": "A form submit button component for card forms.\n\nProvides a consistent submit button with translation support and configurable visibility.\nWhen `submitButton.useBuiltInButton` is set to `false`, the component will not render\nany DOM elements, allowing external buttons to handle form submission by dispatching\nthe `primer:card-submit` event.\n---\n",
1109
1124
  "doc-url": "",
1110
1125
  "attributes": [
1111
1126
  {
@@ -1155,6 +1170,11 @@
1155
1170
  { "name": "clientOptions", "type": "ClientOptionsContextType" },
1156
1171
  { "name": "sdkState", "type": "SdkStateContextType" },
1157
1172
  { "name": "cardFormContext", "type": "CardFormContext | null" },
1173
+ { "name": "analyticsUtils", "type": "AnalyticsContextType" },
1174
+ {
1175
+ "name": "contextEventsController",
1176
+ "type": "EventsContextType"
1177
+ },
1158
1178
  {
1159
1179
  "name": "variant",
1160
1180
  "description": "The button variant to use.",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@primer-io/primer-js",
3
3
  "description": "Primer Composable Checkout is a web component-based SDK for building secure, customizable, and PCI-compliant checkout experiences. Designed with a modular architecture, it integrates seamlessly with any JavaScript framework and supports multiple payment methods.",
4
4
  "license": "BSD-3-Clause",
5
- "version": "0.3.7",
5
+ "version": "0.3.8",
6
6
  "type": "module",
7
7
  "main": "./dist/primer-loader.js",
8
8
  "types": "./dist/primer-loader.d.ts",