@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 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.21.2",
57
+ version: "1.22.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.21.2",
61
+ version: "1.22.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.21.2",
41
+ version: "1.22.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.21.2",
45
+ version: "1.22.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.21.2",
3
+ "version": "1.22.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "main": "dist/stripe.js",
6
6
  "module": "dist/stripe.esm.js",
@@ -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(elementType: 'linkAuthentication'): StripeLinkAuthenticationElement;
271
+ create(
272
+ elementType: 'linkAuthentication',
273
+ options?: StripeLinkAuthenticationElementOptions
274
+ ): StripeLinkAuthenticationElement;
271
275
 
272
276
  /**
273
277
  * Requires beta access: