@stripe/connect-js 3.3.40-preview-1 → 3.3.42-preview-1

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.
@@ -103,7 +103,8 @@ const ConnectElementCustomMethodConfig = {
103
103
  },
104
104
  "tax-registrations": {
105
105
  setOnAfterTaxRegistrationAdded: _listener => {},
106
- setDisplayCountries: _countries => {}
106
+ setDisplayCountries: _countries => {},
107
+ setOnAfterTaxRegistrationExpired: _listener => {}
107
108
  },
108
109
  "tax-threshold-monitoring": {
109
110
  setDisplayCountries: _countries => {}
@@ -250,7 +251,7 @@ const initStripeConnect = (stripePromise, initParams) => {
250
251
  element[method] = function (value) {
251
252
  stripeConnectInstance.then(() => {
252
253
  if (!this[`${method}InternalOnly`]) {
253
- throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.40-preview-1`);
254
+ throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.42-preview-1`);
254
255
  }
255
256
  this[`${method}InternalOnly`](value);
256
257
  });
@@ -304,7 +305,7 @@ const createWrapper = stripeConnect => {
304
305
  sdk: true,
305
306
  sdkOptions: {
306
307
  // This will be replaced by the npm package version when bundling
307
- sdkVersion: "3.3.40-preview-1"
308
+ sdkVersion: "3.3.42-preview-1"
308
309
  }
309
310
  })
310
311
  }));
package/dist/connect.js CHANGED
@@ -107,7 +107,8 @@ const ConnectElementCustomMethodConfig = {
107
107
  },
108
108
  "tax-registrations": {
109
109
  setOnAfterTaxRegistrationAdded: _listener => {},
110
- setDisplayCountries: _countries => {}
110
+ setDisplayCountries: _countries => {},
111
+ setOnAfterTaxRegistrationExpired: _listener => {}
111
112
  },
112
113
  "tax-threshold-monitoring": {
113
114
  setDisplayCountries: _countries => {}
@@ -254,7 +255,7 @@ const initStripeConnect = (stripePromise, initParams) => {
254
255
  element[method] = function (value) {
255
256
  stripeConnectInstance.then(() => {
256
257
  if (!this[`${method}InternalOnly`]) {
257
- throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.40-preview-1`);
258
+ throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.42-preview-1`);
258
259
  }
259
260
  this[`${method}InternalOnly`](value);
260
261
  });
@@ -308,7 +309,7 @@ const createWrapper = stripeConnect => {
308
309
  sdk: true,
309
310
  sdkOptions: {
310
311
  // This will be replaced by the npm package version when bundling
311
- sdkVersion: "3.3.40-preview-1"
312
+ sdkVersion: "3.3.42-preview-1"
312
313
  }
313
314
  })
314
315
  }));
package/dist/pure.esm.js CHANGED
@@ -103,7 +103,8 @@ const ConnectElementCustomMethodConfig = {
103
103
  },
104
104
  "tax-registrations": {
105
105
  setOnAfterTaxRegistrationAdded: _listener => {},
106
- setDisplayCountries: _countries => {}
106
+ setDisplayCountries: _countries => {},
107
+ setOnAfterTaxRegistrationExpired: _listener => {}
107
108
  },
108
109
  "tax-threshold-monitoring": {
109
110
  setDisplayCountries: _countries => {}
@@ -250,7 +251,7 @@ const initStripeConnect = (stripePromise, initParams) => {
250
251
  element[method] = function (value) {
251
252
  stripeConnectInstance.then(() => {
252
253
  if (!this[`${method}InternalOnly`]) {
253
- throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.40-preview-1`);
254
+ throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.42-preview-1`);
254
255
  }
255
256
  this[`${method}InternalOnly`](value);
256
257
  });
@@ -304,7 +305,7 @@ const createWrapper = stripeConnect => {
304
305
  sdk: true,
305
306
  sdkOptions: {
306
307
  // This will be replaced by the npm package version when bundling
307
- sdkVersion: "3.3.40-preview-1"
308
+ sdkVersion: "3.3.42-preview-1"
308
309
  }
309
310
  })
310
311
  }));
package/dist/pure.js CHANGED
@@ -107,7 +107,8 @@ const ConnectElementCustomMethodConfig = {
107
107
  },
108
108
  "tax-registrations": {
109
109
  setOnAfterTaxRegistrationAdded: _listener => {},
110
- setDisplayCountries: _countries => {}
110
+ setDisplayCountries: _countries => {},
111
+ setOnAfterTaxRegistrationExpired: _listener => {}
111
112
  },
112
113
  "tax-threshold-monitoring": {
113
114
  setDisplayCountries: _countries => {}
@@ -254,7 +255,7 @@ const initStripeConnect = (stripePromise, initParams) => {
254
255
  element[method] = function (value) {
255
256
  stripeConnectInstance.then(() => {
256
257
  if (!this[`${method}InternalOnly`]) {
257
- throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.40-preview-1`);
258
+ throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.3.42-preview-1`);
258
259
  }
259
260
  this[`${method}InternalOnly`](value);
260
261
  });
@@ -308,7 +309,7 @@ const createWrapper = stripeConnect => {
308
309
  sdk: true,
309
310
  sdkOptions: {
310
311
  // This will be replaced by the npm package version when bundling
311
- sdkVersion: "3.3.40-preview-1"
312
+ sdkVersion: "3.3.42-preview-1"
312
313
  }
313
314
  })
314
315
  }));
@@ -214,14 +214,17 @@ export declare const ConnectElementCustomMethodConfig: {
214
214
  id: string;
215
215
  }) => void) | undefined) => void;
216
216
  setDisplayCountries: (_countries: string[] | undefined) => void;
217
+ setOnAfterTaxRegistrationExpired: (_listener: (({ id }: {
218
+ id: string;
219
+ }) => void) | undefined) => void;
217
220
  };
218
221
  "tax-threshold-monitoring": {
219
222
  setDisplayCountries: (_countries: string[] | undefined) => void;
220
223
  };
221
224
  "product-tax-code-selector": {
222
- setOnTaxCodeSelect: (_listener: ((taxCode: string, { analyticsName }: {
225
+ setOnTaxCodeSelect: (_listener: ((taxCode: string | null, _: {
223
226
  analyticsName: string;
224
- }) => void) | undefined) => void;
227
+ } | null) => void) | undefined) => void;
225
228
  setHideDescription: (_hideDescription: boolean | undefined) => void;
226
229
  setDisabled: (_disabled: boolean | undefined) => void;
227
230
  setInitialTaxCode: (_initialTaxCode: string | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.40-preview-1",
3
+ "version": "3.3.42-preview-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/types/config.ts CHANGED
@@ -385,6 +385,9 @@ export const ConnectElementCustomMethodConfig = {
385
385
  _listener: (({ id }: { id: string }) => void) | undefined
386
386
  ): void => {},
387
387
  setDisplayCountries: (_countries: string[] | undefined): void => {},
388
+ setOnAfterTaxRegistrationExpired: (
389
+ _listener: (({ id }: { id: string }) => void) | undefined
390
+ ): void => {},
388
391
  },
389
392
  "tax-threshold-monitoring": {
390
393
  setDisplayCountries: (_countries: string[] | undefined): void => {},
@@ -393,8 +396,8 @@ export const ConnectElementCustomMethodConfig = {
393
396
  setOnTaxCodeSelect: (
394
397
  _listener:
395
398
  | ((
396
- taxCode: string,
397
- { analyticsName }: { analyticsName: string }
399
+ taxCode: string | null,
400
+ _: { analyticsName: string } | null
398
401
  ) => void)
399
402
  | undefined
400
403
  ): void => {},