@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.
@@ -71,8 +71,6 @@ export type PrimerCheckoutComponentProps = {
71
71
  This is used to control the CSS-only loader visibility */
72
72
  "js-initialized"?: boolean;
73
73
  /** */
74
- jsInitialized?: boolean;
75
- /** */
76
74
  primerJS?: PrimerJS | undefined;
77
75
  /** */
78
76
  options?: PrimerCheckoutOptions;
@@ -302,7 +300,7 @@ Useful when embedding in inputs */
302
300
 
303
301
  export type AdyenKlarnaComponentProps = {
304
302
  /** The payment method from context */
305
- paymentMethod?: InitializedPaymentMethod | undefined;
303
+ paymentMethod?: AdyenKlarnaPaymentMethod | undefined;
306
304
  /** Whether the component is disabled */
307
305
  disabled?: boolean;
308
306
  /** */
@@ -316,6 +314,15 @@ export type AdyenMbwayComponentProps = {
316
314
  disabled?: boolean;
317
315
  };
318
316
 
317
+ export type BackendDrivenComponentProps = {
318
+ /** */
319
+ paymentMethod?: BackendDrivenPaymentMethod | undefined;
320
+ /** */
321
+ disabled?: boolean;
322
+ /** */
323
+ primerContext?: ContextType | undefined;
324
+ };
325
+
319
326
  export type BillingAddressComponentProps = {
320
327
  /** */
321
328
  primerContext?: ContextType | undefined;
@@ -914,6 +921,17 @@ export type CustomElements = {
914
921
  */
915
922
  "primer-adyen-mbway": Partial<AdyenMbwayComponentProps & BaseProps & BaseEvents>;
916
923
 
924
+ /**
925
+ * Surface for a payment method whose flow the backend drives through a step
926
+ * tree. Today every step tree starts by handing off to a third party, so this
927
+ * renders a button — but unlike a redirect method, what the flow needs of this
928
+ * component is open-ended: steps can ask for input, render UI, or wait, and
929
+ * this is where that grows.
930
+ * ---
931
+ *
932
+ */
933
+ "primer-backend-driven": Partial<BackendDrivenComponentProps & BaseProps & BaseEvents>;
934
+
917
935
  /**
918
936
  * BillingAddressComponent provides a form for collecting billing address information.
919
937
  *