@primer-io/primer-js 1.6.2 → 1.7.0

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.
@@ -316,7 +316,7 @@
316
316
  {
317
317
  "name": "paymentMethod",
318
318
  "description": "The payment method from context",
319
- "values": [{ "name": "InitializedPaymentMethod" }]
319
+ "values": [{ "name": "AdyenKlarnaPaymentMethod" }]
320
320
  },
321
321
  {
322
322
  "name": "disabled",
@@ -338,6 +338,18 @@
338
338
  ],
339
339
  "references": []
340
340
  },
341
+ {
342
+ "name": "primer-backend-driven",
343
+ "description": "Surface for a payment method whose flow the backend drives through a step\ntree. Today every step tree starts by handing off to a third party, so this\nrenders a button — but unlike a redirect method, what the flow needs of this\ncomponent is open-ended: steps can ask for input, render UI, or wait, and\nthis is where that grows.\n---\n",
344
+ "attributes": [
345
+ {
346
+ "name": "paymentMethod",
347
+ "values": [{ "name": "BackendDrivenPaymentMethod" }]
348
+ },
349
+ { "name": "disabled", "values": [] }
350
+ ],
351
+ "references": []
352
+ },
341
353
  {
342
354
  "name": "primer-billing-address",
343
355
  "description": "BillingAddressComponent provides a form for collecting billing address information.\n\nConfiguration is exclusively server-side via SDK Core's checkoutModules. Field visibility\nis determined by the BILLING_ADDRESS module in the client session configuration.\n---\n\n\n### **Events:**\n - **primer-billing-address-change** - Fired when form data changes\n- **primer-billing-address-submit** - Fired when form is submitted\n\n### **Methods:**\n - **validateForSubmission(): _Promise<boolean>_** - Public method to validate billing address fields\nCalled by the parent form (card-form) when submitting\nReturns true if billing address is valid\nNote: Does NOT call setBillingAddress API - that happens after card validation\n- **submitToSDK(): _Promise<boolean>_** - Public method to submit billing address to SDK Core\nCalled by parent form ONLY after both card and billing address validation pass\n\nNote: headlessUtils is guaranteed to be available when this method is called,\nas the component only renders (and becomes interactive) after initialization task completes.",
@@ -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": "1.6.2",
4
+ "version": "1.7.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -808,7 +808,7 @@
808
808
  {
809
809
  "name": "paymentMethod",
810
810
  "description": "The payment method from context",
811
- "value": { "type": "InitializedPaymentMethod | undefined" }
811
+ "value": { "type": "AdyenKlarnaPaymentMethod | undefined" }
812
812
  },
813
813
  {
814
814
  "name": "disabled",
@@ -823,7 +823,7 @@
823
823
  {
824
824
  "name": "paymentMethod",
825
825
  "description": "The payment method from context",
826
- "type": "InitializedPaymentMethod | undefined"
826
+ "type": "AdyenKlarnaPaymentMethod | undefined"
827
827
  },
828
828
  {
829
829
  "name": "disabled",
@@ -860,6 +860,33 @@
860
860
  "events": []
861
861
  }
862
862
  },
863
+ {
864
+ "name": "primer-backend-driven",
865
+ "description": "Surface for a payment method whose flow the backend drives through a step\ntree. Today every step tree starts by handing off to a third party, so this\nrenders a button — but unlike a redirect method, what the flow needs of this\ncomponent is open-ended: steps can ask for input, render UI, or wait, and\nthis is where that grows.\n---\n",
866
+ "doc-url": "",
867
+ "attributes": [
868
+ {
869
+ "name": "paymentMethod",
870
+ "value": { "type": "BackendDrivenPaymentMethod | undefined" }
871
+ },
872
+ {
873
+ "name": "disabled",
874
+ "value": { "type": "boolean", "default": "false" }
875
+ }
876
+ ],
877
+ "events": [],
878
+ "js": {
879
+ "properties": [
880
+ {
881
+ "name": "paymentMethod",
882
+ "type": "BackendDrivenPaymentMethod | undefined"
883
+ },
884
+ { "name": "disabled", "type": "boolean" },
885
+ { "name": "primerContext", "type": "ContextType | undefined" }
886
+ ],
887
+ "events": []
888
+ }
889
+ },
863
890
  {
864
891
  "name": "primer-billing-address",
865
892
  "description": "BillingAddressComponent provides a form for collecting billing address information.\n\nConfiguration is exclusively server-side via SDK Core's checkoutModules. Field visibility\nis determined by the BILLING_ADDRESS module in the client session configuration.\n---\n\n\n### **Events:**\n - **primer-billing-address-change** - Fired when form data changes\n- **primer-billing-address-submit** - Fired when form is submitted\n\n### **Methods:**\n - **validateForSubmission(): _Promise<boolean>_** - Public method to validate billing address fields\nCalled by the parent form (card-form) when submitting\nReturns true if billing address is valid\nNote: Does NOT call setBillingAddress API - that happens after card validation\n- **submitToSDK(): _Promise<boolean>_** - Public method to submit billing address to SDK Core\nCalled by parent form ONLY after both card and billing address validation pass\n\nNote: headlessUtils is guaranteed to be available when this method is called,\nas the component only renders (and becomes interactive) after initialization task completes.",
@@ -1307,7 +1334,8 @@
1307
1334
  "name": "paymentMethod",
1308
1335
  "type": "RedirectPaymentMethod | undefined"
1309
1336
  },
1310
- { "name": "disabled", "type": "boolean" }
1337
+ { "name": "disabled", "type": "boolean" },
1338
+ { "name": "primerContext", "type": "ContextType | undefined" }
1311
1339
  ],
1312
1340
  "events": []
1313
1341
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@primer-io/primer-js",
3
3
  "description": "Primer 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": "1.6.2",
5
+ "version": "1.7.0",
6
6
  "type": "module",
7
7
  "main": "./dist/primer-loader.js",
8
8
  "types": "./dist/primer-loader.d.ts",