@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.
@@ -302,7 +302,7 @@ Useful when embedding in inputs */
302
302
 
303
303
  export type AdyenKlarnaComponentProps = {
304
304
  /** The payment method from context */
305
- paymentMethod?: InitializedPaymentMethod | undefined;
305
+ paymentMethod?: AdyenKlarnaPaymentMethod | undefined;
306
306
  /** Whether the component is disabled */
307
307
  disabled?: boolean;
308
308
  /** */
@@ -316,6 +316,15 @@ export type AdyenMbwayComponentProps = {
316
316
  disabled?: boolean;
317
317
  };
318
318
 
319
+ export type BackendDrivenComponentProps = {
320
+ /** */
321
+ paymentMethod?: BackendDrivenPaymentMethod | undefined;
322
+ /** */
323
+ disabled?: boolean;
324
+ /** */
325
+ primerContext?: ContextType | undefined;
326
+ };
327
+
319
328
  export type BillingAddressComponentProps = {
320
329
  /** */
321
330
  primerContext?: ContextType | undefined;
@@ -476,6 +485,8 @@ export type RedirectPaymentComponentProps = {
476
485
  paymentMethod?: RedirectPaymentMethod | undefined;
477
486
  /** */
478
487
  disabled?: boolean;
488
+ /** */
489
+ primerContext?: ContextType | undefined;
479
490
  };
480
491
 
481
492
  export type ShowOtherPaymentsComponentProps = {
@@ -912,6 +923,17 @@ export type CustomElements = {
912
923
  */
913
924
  "primer-adyen-mbway": Partial<AdyenMbwayComponentProps & BaseProps & BaseEvents>;
914
925
 
926
+ /**
927
+ * Surface for a payment method whose flow the backend drives through a step
928
+ * tree. Today every step tree starts by handing off to a third party, so this
929
+ * renders a button — but unlike a redirect method, what the flow needs of this
930
+ * component is open-ended: steps can ask for input, render UI, or wait, and
931
+ * this is where that grows.
932
+ * ---
933
+ *
934
+ */
935
+ "primer-backend-driven": Partial<BackendDrivenComponentProps & BaseProps & BaseEvents>;
936
+
915
937
  /**
916
938
  * BillingAddressComponent provides a form for collecting billing address information.
917
939
  *