@stripe/connect-js 3.3.40-preview-1 → 3.3.41-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.
@@ -250,7 +250,7 @@ const initStripeConnect = (stripePromise, initParams) => {
250
250
  element[method] = function (value) {
251
251
  stripeConnectInstance.then(() => {
252
252
  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`);
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.41-preview-1`);
254
254
  }
255
255
  this[`${method}InternalOnly`](value);
256
256
  });
@@ -304,7 +304,7 @@ const createWrapper = stripeConnect => {
304
304
  sdk: true,
305
305
  sdkOptions: {
306
306
  // This will be replaced by the npm package version when bundling
307
- sdkVersion: "3.3.40-preview-1"
307
+ sdkVersion: "3.3.41-preview-1"
308
308
  }
309
309
  })
310
310
  }));
package/dist/connect.js CHANGED
@@ -254,7 +254,7 @@ const initStripeConnect = (stripePromise, initParams) => {
254
254
  element[method] = function (value) {
255
255
  stripeConnectInstance.then(() => {
256
256
  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`);
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.41-preview-1`);
258
258
  }
259
259
  this[`${method}InternalOnly`](value);
260
260
  });
@@ -308,7 +308,7 @@ const createWrapper = stripeConnect => {
308
308
  sdk: true,
309
309
  sdkOptions: {
310
310
  // This will be replaced by the npm package version when bundling
311
- sdkVersion: "3.3.40-preview-1"
311
+ sdkVersion: "3.3.41-preview-1"
312
312
  }
313
313
  })
314
314
  }));
package/dist/pure.esm.js CHANGED
@@ -250,7 +250,7 @@ const initStripeConnect = (stripePromise, initParams) => {
250
250
  element[method] = function (value) {
251
251
  stripeConnectInstance.then(() => {
252
252
  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`);
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.41-preview-1`);
254
254
  }
255
255
  this[`${method}InternalOnly`](value);
256
256
  });
@@ -304,7 +304,7 @@ const createWrapper = stripeConnect => {
304
304
  sdk: true,
305
305
  sdkOptions: {
306
306
  // This will be replaced by the npm package version when bundling
307
- sdkVersion: "3.3.40-preview-1"
307
+ sdkVersion: "3.3.41-preview-1"
308
308
  }
309
309
  })
310
310
  }));
package/dist/pure.js CHANGED
@@ -254,7 +254,7 @@ const initStripeConnect = (stripePromise, initParams) => {
254
254
  element[method] = function (value) {
255
255
  stripeConnectInstance.then(() => {
256
256
  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`);
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.41-preview-1`);
258
258
  }
259
259
  this[`${method}InternalOnly`](value);
260
260
  });
@@ -308,7 +308,7 @@ const createWrapper = stripeConnect => {
308
308
  sdk: true,
309
309
  sdkOptions: {
310
310
  // This will be replaced by the npm package version when bundling
311
- sdkVersion: "3.3.40-preview-1"
311
+ sdkVersion: "3.3.41-preview-1"
312
312
  }
313
313
  })
314
314
  }));
@@ -219,9 +219,9 @@ export declare const ConnectElementCustomMethodConfig: {
219
219
  setDisplayCountries: (_countries: string[] | undefined) => void;
220
220
  };
221
221
  "product-tax-code-selector": {
222
- setOnTaxCodeSelect: (_listener: ((taxCode: string, { analyticsName }: {
222
+ setOnTaxCodeSelect: (_listener: ((taxCode: string | null, _: {
223
223
  analyticsName: string;
224
- }) => void) | undefined) => void;
224
+ } | null) => void) | undefined) => void;
225
225
  setHideDescription: (_hideDescription: boolean | undefined) => void;
226
226
  setDisabled: (_disabled: boolean | undefined) => void;
227
227
  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.41-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
@@ -393,8 +393,8 @@ export const ConnectElementCustomMethodConfig = {
393
393
  setOnTaxCodeSelect: (
394
394
  _listener:
395
395
  | ((
396
- taxCode: string,
397
- { analyticsName }: { analyticsName: string }
396
+ taxCode: string | null,
397
+ _: { analyticsName: string } | null
398
398
  ) => void)
399
399
  | undefined
400
400
  ): void => {},