@stripe/stripe-js 1.45.0 → 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.45.0",
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.45.0",
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.45.0",
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.45.0",
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.45.0",
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 {
@@ -765,6 +765,7 @@ export interface Appearance {
765
765
  spacingGridRow?: string;
766
766
  spacingGridColumn?: string;
767
767
  spacingTab?: string;
768
+ spacingAccordionItem?: string;
768
769
 
769
770
  // Colors
770
771
  colorPrimary?: string;