@primer-io/primer-js 1.6.3 → 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;
@@ -914,6 +923,17 @@ export type CustomElements = {
914
923
  */
915
924
  "primer-adyen-mbway": Partial<AdyenMbwayComponentProps & BaseProps & BaseEvents>;
916
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
+
917
937
  /**
918
938
  * BillingAddressComponent provides a form for collecting billing address information.
919
939
  *