@stripe/connect-js 3.3.43-preview-2 → 3.3.44-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.
@@ -119,6 +119,9 @@ const ConnectElementCustomMethodConfig = {
119
119
  "payout-details": {
120
120
  setPayout: _payout => {},
121
121
  setOnClose: _listener => {}
122
+ },
123
+ "check-scanning": {
124
+ setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
122
125
  }
123
126
  };
124
127
 
@@ -154,7 +157,8 @@ const componentNameMapping = {
154
157
  "payout-details": "stripe-connect-payout-details",
155
158
  "app-install": "stripe-connect-app-install",
156
159
  "app-viewport": "stripe-connect-app-viewport",
157
- "reporting-chart": "stripe-connect-reporting-chart"
160
+ "reporting-chart": "stripe-connect-reporting-chart",
161
+ "check-scanning": "stripe-connect-check-scanning"
158
162
  };
159
163
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
160
164
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -251,7 +255,7 @@ const initStripeConnect = (stripePromise, initParams) => {
251
255
  element[method] = function (value) {
252
256
  stripeConnectInstance.then(() => {
253
257
  if (!this[`${method}InternalOnly`]) {
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.43-preview-2`);
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.44-preview-1`);
255
259
  }
256
260
  this[`${method}InternalOnly`](value);
257
261
  });
@@ -305,7 +309,7 @@ const createWrapper = stripeConnect => {
305
309
  sdk: true,
306
310
  sdkOptions: {
307
311
  // This will be replaced by the npm package version when bundling
308
- sdkVersion: "3.3.43-preview-2"
312
+ sdkVersion: "3.3.44-preview-1"
309
313
  }
310
314
  })
311
315
  }));
package/dist/connect.js CHANGED
@@ -123,6 +123,9 @@ const ConnectElementCustomMethodConfig = {
123
123
  "payout-details": {
124
124
  setPayout: _payout => {},
125
125
  setOnClose: _listener => {}
126
+ },
127
+ "check-scanning": {
128
+ setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
126
129
  }
127
130
  };
128
131
 
@@ -158,7 +161,8 @@ const componentNameMapping = {
158
161
  "payout-details": "stripe-connect-payout-details",
159
162
  "app-install": "stripe-connect-app-install",
160
163
  "app-viewport": "stripe-connect-app-viewport",
161
- "reporting-chart": "stripe-connect-reporting-chart"
164
+ "reporting-chart": "stripe-connect-reporting-chart",
165
+ "check-scanning": "stripe-connect-check-scanning"
162
166
  };
163
167
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
164
168
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -255,7 +259,7 @@ const initStripeConnect = (stripePromise, initParams) => {
255
259
  element[method] = function (value) {
256
260
  stripeConnectInstance.then(() => {
257
261
  if (!this[`${method}InternalOnly`]) {
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.43-preview-2`);
262
+ 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.44-preview-1`);
259
263
  }
260
264
  this[`${method}InternalOnly`](value);
261
265
  });
@@ -309,7 +313,7 @@ const createWrapper = stripeConnect => {
309
313
  sdk: true,
310
314
  sdkOptions: {
311
315
  // This will be replaced by the npm package version when bundling
312
- sdkVersion: "3.3.43-preview-2"
316
+ sdkVersion: "3.3.44-preview-1"
313
317
  }
314
318
  })
315
319
  }));
package/dist/pure.esm.js CHANGED
@@ -119,6 +119,9 @@ const ConnectElementCustomMethodConfig = {
119
119
  "payout-details": {
120
120
  setPayout: _payout => {},
121
121
  setOnClose: _listener => {}
122
+ },
123
+ "check-scanning": {
124
+ setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
122
125
  }
123
126
  };
124
127
 
@@ -154,7 +157,8 @@ const componentNameMapping = {
154
157
  "payout-details": "stripe-connect-payout-details",
155
158
  "app-install": "stripe-connect-app-install",
156
159
  "app-viewport": "stripe-connect-app-viewport",
157
- "reporting-chart": "stripe-connect-reporting-chart"
160
+ "reporting-chart": "stripe-connect-reporting-chart",
161
+ "check-scanning": "stripe-connect-check-scanning"
158
162
  };
159
163
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
160
164
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -251,7 +255,7 @@ const initStripeConnect = (stripePromise, initParams) => {
251
255
  element[method] = function (value) {
252
256
  stripeConnectInstance.then(() => {
253
257
  if (!this[`${method}InternalOnly`]) {
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.43-preview-2`);
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.44-preview-1`);
255
259
  }
256
260
  this[`${method}InternalOnly`](value);
257
261
  });
@@ -305,7 +309,7 @@ const createWrapper = stripeConnect => {
305
309
  sdk: true,
306
310
  sdkOptions: {
307
311
  // This will be replaced by the npm package version when bundling
308
- sdkVersion: "3.3.43-preview-2"
312
+ sdkVersion: "3.3.44-preview-1"
309
313
  }
310
314
  })
311
315
  }));
package/dist/pure.js CHANGED
@@ -123,6 +123,9 @@ const ConnectElementCustomMethodConfig = {
123
123
  "payout-details": {
124
124
  setPayout: _payout => {},
125
125
  setOnClose: _listener => {}
126
+ },
127
+ "check-scanning": {
128
+ setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
126
129
  }
127
130
  };
128
131
 
@@ -158,7 +161,8 @@ const componentNameMapping = {
158
161
  "payout-details": "stripe-connect-payout-details",
159
162
  "app-install": "stripe-connect-app-install",
160
163
  "app-viewport": "stripe-connect-app-viewport",
161
- "reporting-chart": "stripe-connect-reporting-chart"
164
+ "reporting-chart": "stripe-connect-reporting-chart",
165
+ "check-scanning": "stripe-connect-check-scanning"
162
166
  };
163
167
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
164
168
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -255,7 +259,7 @@ const initStripeConnect = (stripePromise, initParams) => {
255
259
  element[method] = function (value) {
256
260
  stripeConnectInstance.then(() => {
257
261
  if (!this[`${method}InternalOnly`]) {
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.43-preview-2`);
262
+ 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.44-preview-1`);
259
263
  }
260
264
  this[`${method}InternalOnly`](value);
261
265
  });
@@ -309,7 +313,7 @@ const createWrapper = stripeConnect => {
309
313
  sdk: true,
310
314
  sdkOptions: {
311
315
  // This will be replaced by the npm package version when bundling
312
- sdkVersion: "3.3.43-preview-2"
316
+ sdkVersion: "3.3.44-preview-1"
313
317
  }
314
318
  })
315
319
  }));
@@ -1,6 +1,6 @@
1
1
  import type { IStripeConnectInitParams, StripeConnectInstance, ConnectElementTagName } from "../types";
2
2
  export type LoadConnectAndInitialize = (initParams: IStripeConnectInitParams) => StripeConnectInstance;
3
- export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-disputes-list" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-instant-payouts-promotion" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-recipients" | "stripe-connect-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-product-tax-code-selector" | "stripe-connect-export-tax-transactions" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-tax-threshold-monitoring" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-app-install" | "stripe-connect-app-viewport" | "stripe-connect-reporting-chart";
3
+ export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-disputes-list" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-instant-payouts-promotion" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-recipients" | "stripe-connect-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-product-tax-code-selector" | "stripe-connect-export-tax-transactions" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-tax-threshold-monitoring" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-app-install" | "stripe-connect-app-viewport" | "stripe-connect-reporting-chart" | "stripe-connect-check-scanning";
4
4
  export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
5
5
  type StripeConnectInstanceExtended = StripeConnectInstance & {
6
6
  debugInstance: () => Promise<StripeConnectInstance>;
@@ -234,4 +234,9 @@ export declare const ConnectElementCustomMethodConfig: {
234
234
  setPayout: (_payout: string | undefined) => void;
235
235
  setOnClose: (_listener: (() => void) | undefined) => void;
236
236
  };
237
+ "check-scanning": {
238
+ setHandleCheckScanSubmitted: (_handleCheckScanSubmitted: ({ checkScanToken, }: {
239
+ checkScanToken: string;
240
+ }) => Promise<void>) => void;
241
+ };
237
242
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.43-preview-2",
3
+ "version": "3.3.44-preview-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/src/shared.ts CHANGED
@@ -45,7 +45,8 @@ export type ConnectElementHTMLName =
45
45
  | "stripe-connect-payout-details"
46
46
  | "stripe-connect-app-install"
47
47
  | "stripe-connect-app-viewport"
48
- | "stripe-connect-reporting-chart";
48
+ | "stripe-connect-reporting-chart"
49
+ | "stripe-connect-check-scanning";
49
50
 
50
51
  export const componentNameMapping: Record<
51
52
  ConnectElementTagName,
@@ -85,6 +86,7 @@ export const componentNameMapping: Record<
85
86
  "app-install": "stripe-connect-app-install",
86
87
  "app-viewport": "stripe-connect-app-viewport",
87
88
  "reporting-chart": "stripe-connect-reporting-chart",
89
+ "check-scanning": "stripe-connect-check-scanning",
88
90
  };
89
91
 
90
92
  type StripeConnectInstanceExtended = StripeConnectInstance & {
package/types/config.ts CHANGED
@@ -410,4 +410,13 @@ export const ConnectElementCustomMethodConfig = {
410
410
  setPayout: (_payout: string | undefined): void => {},
411
411
  setOnClose: (_listener: (() => void) | undefined): void => {},
412
412
  },
413
+ "check-scanning": {
414
+ setHandleCheckScanSubmitted: (
415
+ _handleCheckScanSubmitted: ({
416
+ checkScanToken,
417
+ }: {
418
+ checkScanToken: string;
419
+ }) => Promise<void>
420
+ ): void => {},
421
+ },
413
422
  };
package/types/shared.d.ts CHANGED
@@ -587,4 +587,5 @@ export type ConnectElementTagName =
587
587
  | "payout-details"
588
588
  | "app-install"
589
589
  | "app-viewport"
590
- | "reporting-chart";
590
+ | "reporting-chart"
591
+ | "check-scanning";