@primer-io/primer-js 1.6.3 → 1.8.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.3",
4
+ "version": "1.8.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -32,7 +32,6 @@
32
32
  "events": [],
33
33
  "js": {
34
34
  "properties": [
35
- { "name": "jsInitialized", "type": "boolean" },
36
35
  { "name": "primerJS", "type": "PrimerJS | undefined" },
37
36
  { "name": "customStyles", "type": "string" },
38
37
  { "name": "clientToken", "type": "string" },
@@ -808,7 +807,7 @@
808
807
  {
809
808
  "name": "paymentMethod",
810
809
  "description": "The payment method from context",
811
- "value": { "type": "InitializedPaymentMethod | undefined" }
810
+ "value": { "type": "AdyenKlarnaPaymentMethod | undefined" }
812
811
  },
813
812
  {
814
813
  "name": "disabled",
@@ -823,7 +822,7 @@
823
822
  {
824
823
  "name": "paymentMethod",
825
824
  "description": "The payment method from context",
826
- "type": "InitializedPaymentMethod | undefined"
825
+ "type": "AdyenKlarnaPaymentMethod | undefined"
827
826
  },
828
827
  {
829
828
  "name": "disabled",
@@ -860,6 +859,33 @@
860
859
  "events": []
861
860
  }
862
861
  },
862
+ {
863
+ "name": "primer-backend-driven",
864
+ "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",
865
+ "doc-url": "",
866
+ "attributes": [
867
+ {
868
+ "name": "paymentMethod",
869
+ "value": { "type": "BackendDrivenPaymentMethod | undefined" }
870
+ },
871
+ {
872
+ "name": "disabled",
873
+ "value": { "type": "boolean", "default": "false" }
874
+ }
875
+ ],
876
+ "events": [],
877
+ "js": {
878
+ "properties": [
879
+ {
880
+ "name": "paymentMethod",
881
+ "type": "BackendDrivenPaymentMethod | undefined"
882
+ },
883
+ { "name": "disabled", "type": "boolean" },
884
+ { "name": "primerContext", "type": "ContextType | undefined" }
885
+ ],
886
+ "events": []
887
+ }
888
+ },
863
889
  {
864
890
  "name": "primer-billing-address",
865
891
  "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.",
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.3",
5
+ "version": "1.8.0",
6
6
  "type": "module",
7
7
  "main": "./dist/primer-loader.js",
8
8
  "types": "./dist/primer-loader.d.ts",