@stripe/stripe-js 7.7.0 → 7.8.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/index.js CHANGED
@@ -55,7 +55,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
55
55
 
56
56
  stripe._registerWrapper({
57
57
  name: 'stripe-js',
58
- version: "7.7.0",
58
+ version: "7.8.0",
59
59
  startTime: startTime
60
60
  });
61
61
  };
@@ -151,7 +151,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
151
151
  var expectedVersion = RELEASE_TRAIN;
152
152
 
153
153
  if (isTestKey && version !== expectedVersion) {
154
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
154
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
155
155
  }
156
156
 
157
157
  var stripe = maybeStripe.apply(undefined, args);
package/dist/index.mjs CHANGED
@@ -51,7 +51,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
51
51
 
52
52
  stripe._registerWrapper({
53
53
  name: 'stripe-js',
54
- version: "7.7.0",
54
+ version: "7.8.0",
55
55
  startTime: startTime
56
56
  });
57
57
  };
@@ -147,7 +147,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
147
147
  var expectedVersion = RELEASE_TRAIN;
148
148
 
149
149
  if (isTestKey && version !== expectedVersion) {
150
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
150
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
151
151
  }
152
152
 
153
153
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.js CHANGED
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "7.7.0",
74
+ version: "7.8.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -167,7 +167,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
167
167
  var expectedVersion = RELEASE_TRAIN;
168
168
 
169
169
  if (isTestKey && version !== expectedVersion) {
170
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
170
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
171
  }
172
172
 
173
173
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.mjs CHANGED
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
67
67
 
68
68
  stripe._registerWrapper({
69
69
  name: 'stripe-js',
70
- version: "7.7.0",
70
+ version: "7.8.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -163,7 +163,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
163
163
  var expectedVersion = RELEASE_TRAIN;
164
164
 
165
165
  if (isTestKey && version !== expectedVersion) {
166
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.7.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
166
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
167
167
  }
168
168
 
169
169
  var stripe = maybeStripe.apply(undefined, args);
@@ -19,15 +19,16 @@ import {
19
19
  StripeTaxIdElementOptions,
20
20
  } from './elements';
21
21
 
22
- /**
23
- * Requires beta access:
24
- * Contact [Stripe support](https://support.stripe.com/) for more information.
25
- */
22
+ type SavedPaymentMethodOption = {
23
+ enableSave?: 'auto' | 'never';
24
+ enableRedisplay?: 'auto' | 'never';
25
+ };
26
26
 
27
27
  export interface StripeCheckoutElementsOptions {
28
28
  appearance?: Appearance;
29
29
  loader?: 'auto' | 'always' | 'never';
30
30
  fonts?: Array<CssFontSource | CustomFontSource>;
31
+ savedPaymentMethod?: SavedPaymentMethodOption;
31
32
  }
32
33
 
33
34
  export interface StripeCheckoutOptions {
@@ -600,6 +601,7 @@ export interface StripeCheckout {
600
601
 
601
602
  /* Elements methods */
602
603
  changeAppearance: (appearance: Appearance) => void;
604
+ loadFonts: (fonts: Array<CssFontSource | CustomFontSource>) => void;
603
605
  getPaymentElement(): StripePaymentElement | null;
604
606
  getBillingAddressElement(): StripeAddressElement | null;
605
607
  getShippingAddressElement(): StripeAddressElement | null;
@@ -19,15 +19,16 @@ import {
19
19
  StripeTaxIdElementOptions,
20
20
  } from './elements';
21
21
 
22
- /**
23
- * Requires beta access:
24
- * Contact [Stripe support](https://support.stripe.com/) for more information.
25
- */
22
+ type SavedPaymentMethodOption = {
23
+ enableSave?: 'auto' | 'never';
24
+ enableRedisplay?: 'auto' | 'never';
25
+ };
26
26
 
27
27
  export interface StripeCheckoutElementsOptions {
28
28
  appearance?: Appearance;
29
29
  loader?: 'auto' | 'always' | 'never';
30
30
  fonts?: Array<CssFontSource | CustomFontSource>;
31
+ savedPaymentMethod?: SavedPaymentMethodOption;
31
32
  }
32
33
 
33
34
  export interface StripeCheckoutOptions {
@@ -600,6 +601,7 @@ export interface StripeCheckout {
600
601
 
601
602
  /* Elements methods */
602
603
  changeAppearance: (appearance: Appearance) => void;
604
+ loadFonts: (fonts: Array<CssFontSource | CustomFontSource>) => void;
603
605
  getPaymentElement(): StripePaymentElement | null;
604
606
  getBillingAddressElement(): StripeAddressElement | null;
605
607
  getShippingAddressElement(): StripeAddressElement | null;
@@ -869,6 +869,11 @@ export interface StripeElementsUpdateOptions {
869
869
  */
870
870
  locale?: StripeElementLocale;
871
871
 
872
+ /**
873
+ * An array of custom fonts to update, which elements created from the `Elements` object can use.
874
+ */
875
+ fonts?: Array<CssFontSource | CustomFontSource>;
876
+
872
877
  /**
873
878
  * Match the design of your site with the appearance option.
874
879
  * The layout of each Element stays consistent, but you can modify colors, fonts, borders, padding, and more.
@@ -869,6 +869,11 @@ export interface StripeElementsUpdateOptions {
869
869
  */
870
870
  locale?: StripeElementLocale;
871
871
 
872
+ /**
873
+ * An array of custom fonts to update, which elements created from the `Elements` object can use.
874
+ */
875
+ fonts?: Array<CssFontSource | CustomFontSource>;
876
+
872
877
  /**
873
878
  * Match the design of your site with the appearance option.
874
879
  * The layout of each Element stays consistent, but you can modify colors, fonts, borders, padding, and more.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "7.7.0",
3
+ "version": "7.8.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",