@stripe/stripe-js 1.44.1 → 1.46.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.
package/dist/pure.esm.js CHANGED
@@ -54,7 +54,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
54
54
 
55
55
  stripe._registerWrapper({
56
56
  name: 'stripe-js',
57
- version: "1.44.1",
57
+ version: "1.46.0",
58
58
  startTime: startTime
59
59
  });
60
60
  };
package/dist/pure.js CHANGED
@@ -58,7 +58,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
58
58
 
59
59
  stripe._registerWrapper({
60
60
  name: 'stripe-js',
61
- version: "1.44.1",
61
+ version: "1.46.0",
62
62
  startTime: startTime
63
63
  });
64
64
  };
@@ -38,7 +38,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
38
38
 
39
39
  stripe._registerWrapper({
40
40
  name: 'stripe-js',
41
- version: "1.44.1",
41
+ version: "1.46.0",
42
42
  startTime: startTime
43
43
  });
44
44
  };
package/dist/stripe.js CHANGED
@@ -42,7 +42,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
42
42
 
43
43
  stripe._registerWrapper({
44
44
  name: 'stripe-js',
45
- version: "1.44.1",
45
+ version: "1.46.0",
46
46
  startTime: startTime
47
47
  });
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "1.44.1",
3
+ "version": "1.46.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "main": "dist/stripe.js",
6
6
  "module": "dist/stripe.esm.js",
@@ -183,6 +183,15 @@ export interface PaymentWalletsOption {
183
183
  googlePay?: PaymentWalletOption;
184
184
  }
185
185
 
186
+ export type Layout = 'tabs' | 'accordion' | 'auto';
187
+
188
+ export interface LayoutObject {
189
+ type: Layout;
190
+ defaultCollapsed?: boolean;
191
+ radios?: boolean;
192
+ spacedAccordionItems?: boolean;
193
+ }
194
+
186
195
  export interface StripePaymentElementOptions {
187
196
  /**
188
197
  * Provide initial customer information that will be displayed in the Payment Element.
@@ -221,6 +230,11 @@ export interface StripePaymentElementOptions {
221
230
  * Control wallets display in the Payment Element.
222
231
  */
223
232
  wallets?: PaymentWalletsOption;
233
+
234
+ /**
235
+ * Specify a layout to use when rendering a Payment Element.
236
+ */
237
+ layout?: Layout | LayoutObject;
224
238
  }
225
239
 
226
240
  export interface StripePaymentElementChangeEvent {
@@ -69,10 +69,7 @@ export interface StripeElements {
69
69
  /////////////////////////////
70
70
 
71
71
  /**
72
- * Requires beta access:
73
- * Contact [Stripe support](https://support.stripe.com/) for more information.
74
- *
75
- * Creates a `AddressElement`.
72
+ * Creates an `AddressElement`.
76
73
  */
77
74
  create(
78
75
  elementType: 'address',
@@ -80,9 +77,6 @@ export interface StripeElements {
80
77
  ): StripeAddressElement;
81
78
 
82
79
  /**
83
- * Requires beta access:
84
- * Contact [Stripe support](https://support.stripe.com/) for more information.
85
- *
86
80
  * Looks up a previously created `Element` by its type.
87
81
  */
88
82
  getElement(elementType: 'address'): StripeAddressElement | null;
@@ -771,6 +765,7 @@ export interface Appearance {
771
765
  spacingGridRow?: string;
772
766
  spacingGridColumn?: string;
773
767
  spacingTab?: string;
768
+ spacingAccordionItem?: string;
774
769
 
775
770
  // Colors
776
771
  colorPrimary?: string;
@@ -221,8 +221,8 @@ export interface PaymentRequestOptions {
221
221
 
222
222
  /**
223
223
  * An array of wallet strings.
224
- * Can be one or more of `applePay`, `googlePay` and `browserCard`.
225
- * Use this option to disable Google Pay, Apple Pay and/or browser-saved cards.
224
+ * Can be one or more of `applePay`, `googlePay`, `link` and `browserCard`.
225
+ * Use this option to disable Apple Pay, Google Pay, Link and/or browser-saved cards.
226
226
  */
227
227
  disableWallets?: PaymentRequestWallet[];
228
228
 
@@ -281,7 +281,11 @@ export interface PaymentRequestShippingOption {
281
281
  amount: number;
282
282
  }
283
283
 
284
- export type PaymentRequestWallet = 'applePay' | 'googlePay' | 'browserCard';
284
+ export type PaymentRequestWallet =
285
+ | 'applePay'
286
+ | 'googlePay'
287
+ | 'link'
288
+ | 'browserCard';
285
289
 
286
290
  export type PaymentRequestCompleteStatus =
287
291
  /**