@stripe/connect-js 3.3.43-preview-2 → 3.3.45-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.
- package/dist/connect.esm.js +7 -3
- package/dist/connect.js +7 -3
- package/dist/pure.esm.js +7 -3
- package/dist/pure.js +7 -3
- package/dist/src/shared.d.ts +1 -1
- package/dist/types/config.d.ts +9 -0
- package/package.json +1 -1
- package/src/shared.ts +3 -1
- package/types/config.ts +13 -0
- package/types/shared.d.ts +2 -1
package/dist/connect.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.
|
|
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.45-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.
|
|
312
|
+
sdkVersion: "3.3.45-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.
|
|
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.45-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.
|
|
316
|
+
sdkVersion: "3.3.45-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.
|
|
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.45-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.
|
|
312
|
+
sdkVersion: "3.3.45-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.
|
|
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.45-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.
|
|
316
|
+
sdkVersion: "3.3.45-preview-1"
|
|
313
317
|
}
|
|
314
318
|
})
|
|
315
319
|
}));
|
package/dist/src/shared.d.ts
CHANGED
|
@@ -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>;
|
package/dist/types/config.d.ts
CHANGED
|
@@ -94,6 +94,10 @@ export type EmbeddedErrorType =
|
|
|
94
94
|
* Too many requests hit the API too quickly.
|
|
95
95
|
*/
|
|
96
96
|
| "rate_limit_error"
|
|
97
|
+
/**
|
|
98
|
+
* Failure to render the component, typically caused by browser extensions or network issues
|
|
99
|
+
*/
|
|
100
|
+
| "render_error"
|
|
97
101
|
/**
|
|
98
102
|
* API errors covering any other type of problem (e.g., a temporary problem with Stripe's servers), and are extremely uncommon.
|
|
99
103
|
*/
|
|
@@ -234,4 +238,9 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
234
238
|
setPayout: (_payout: string | undefined) => void;
|
|
235
239
|
setOnClose: (_listener: (() => void) | undefined) => void;
|
|
236
240
|
};
|
|
241
|
+
"check-scanning": {
|
|
242
|
+
setHandleCheckScanSubmitted: (_handleCheckScanSubmitted: ({ checkScanToken, }: {
|
|
243
|
+
checkScanToken: string;
|
|
244
|
+
}) => Promise<void>) => void;
|
|
245
|
+
};
|
|
237
246
|
};
|
package/package.json
CHANGED
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
|
@@ -198,6 +198,10 @@ export type EmbeddedErrorType =
|
|
|
198
198
|
* Too many requests hit the API too quickly.
|
|
199
199
|
*/
|
|
200
200
|
| "rate_limit_error"
|
|
201
|
+
/**
|
|
202
|
+
* Failure to render the component, typically caused by browser extensions or network issues
|
|
203
|
+
*/
|
|
204
|
+
| "render_error"
|
|
201
205
|
/**
|
|
202
206
|
* API errors covering any other type of problem (e.g., a temporary problem with Stripe's servers), and are extremely uncommon.
|
|
203
207
|
*/
|
|
@@ -410,4 +414,13 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
410
414
|
setPayout: (_payout: string | undefined): void => {},
|
|
411
415
|
setOnClose: (_listener: (() => void) | undefined): void => {},
|
|
412
416
|
},
|
|
417
|
+
"check-scanning": {
|
|
418
|
+
setHandleCheckScanSubmitted: (
|
|
419
|
+
_handleCheckScanSubmitted: ({
|
|
420
|
+
checkScanToken,
|
|
421
|
+
}: {
|
|
422
|
+
checkScanToken: string;
|
|
423
|
+
}) => Promise<void>
|
|
424
|
+
): void => {},
|
|
425
|
+
},
|
|
413
426
|
};
|
package/types/shared.d.ts
CHANGED