@stripe/stripe-js 1.21.2 → 1.22.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/link-authentication.d.ts +9 -0
- package/types/stripe-js/elements/payment.d.ts +6 -0
- package/types/stripe-js/elements-group.d.ts +5 -1
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
|
@@ -82,6 +82,15 @@ export type StripeLinkAuthenticationElement = StripeElementBase & {
|
|
|
82
82
|
): StripeLinkAuthenticationElement;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
+
export interface StripeLinkAuthenticationElementOptions {
|
|
86
|
+
/**
|
|
87
|
+
* Default value for LinkAuthenticationElement fields
|
|
88
|
+
*/
|
|
89
|
+
defaultValues?: {
|
|
90
|
+
email: string;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
85
94
|
export interface StripeLinkAuthenticationElementChangeEvent
|
|
86
95
|
extends StripeElementChangeEvent {
|
|
87
96
|
/**
|
|
@@ -152,6 +152,12 @@ export interface StripePaymentElementOptions {
|
|
|
152
152
|
*/
|
|
153
153
|
fields?: FieldsOption;
|
|
154
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Apply a read-only state to the Payment Element so that payment details can’t be changed.
|
|
157
|
+
* Default is false.
|
|
158
|
+
*/
|
|
159
|
+
readOnly?: boolean;
|
|
160
|
+
|
|
155
161
|
/**
|
|
156
162
|
* Control terms display in the Payment Element.
|
|
157
163
|
*/
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
StripePaymentElement,
|
|
7
7
|
StripePaymentElementOptions,
|
|
8
8
|
StripeLinkAuthenticationElement,
|
|
9
|
+
StripeLinkAuthenticationElementOptions,
|
|
9
10
|
StripeIdealBankElement,
|
|
10
11
|
StripeIdealBankElementOptions,
|
|
11
12
|
StripeIbanElement,
|
|
@@ -267,7 +268,10 @@ export interface StripeElements {
|
|
|
267
268
|
*
|
|
268
269
|
* Creates a `LinkAuthenticationElement`.
|
|
269
270
|
*/
|
|
270
|
-
create(
|
|
271
|
+
create(
|
|
272
|
+
elementType: 'linkAuthentication',
|
|
273
|
+
options?: StripeLinkAuthenticationElementOptions
|
|
274
|
+
): StripeLinkAuthenticationElement;
|
|
271
275
|
|
|
272
276
|
/**
|
|
273
277
|
* Requires beta access:
|