@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 +1 -1
- package/dist/pure.js +1 -1
- package/dist/stripe.esm.js +1 -1
- package/dist/stripe.js +1 -1
- package/package.json +1 -1
- package/types/stripe-js/elements/payment.d.ts +14 -0
- package/types/stripe-js/elements-group.d.ts +2 -7
- package/types/stripe-js/payment-request.d.ts +7 -3
package/dist/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/stripe.esm.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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 =
|
|
284
|
+
export type PaymentRequestWallet =
|
|
285
|
+
| 'applePay'
|
|
286
|
+
| 'googlePay'
|
|
287
|
+
| 'link'
|
|
288
|
+
| 'browserCard';
|
|
285
289
|
|
|
286
290
|
export type PaymentRequestCompleteStatus =
|
|
287
291
|
/**
|