@stripe/connect-js 3.3.35 → 3.3.36
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 +8 -3
- package/dist/connect.js +8 -3
- package/dist/pure.esm.js +8 -3
- package/dist/pure.js +8 -3
- package/dist/src/shared.d.ts +1 -1
- package/dist/types/config.d.ts +3 -0
- package/package.json +1 -1
- package/src/shared.ts +5 -1
- package/types/config.ts +3 -0
- package/types/shared.d.ts +3 -1
package/dist/connect.esm.js
CHANGED
|
@@ -66,6 +66,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
66
66
|
"payout-details": {
|
|
67
67
|
setPayout: _payout => {},
|
|
68
68
|
setOnClose: _listener => {}
|
|
69
|
+
},
|
|
70
|
+
payoutReconciliationReport: {
|
|
71
|
+
setOnNotAvailable: _listener => {}
|
|
69
72
|
}
|
|
70
73
|
};
|
|
71
74
|
|
|
@@ -88,7 +91,9 @@ const componentNameMapping = {
|
|
|
88
91
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
89
92
|
documents: "stripe-connect-documents",
|
|
90
93
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
91
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
94
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
95
|
+
balanceReport: "stripe-connect-balance-report",
|
|
96
|
+
payoutReconciliationReport: "stripe-connect-payout-reconciliation-report"
|
|
92
97
|
};
|
|
93
98
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
94
99
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -185,7 +190,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
185
190
|
element[method] = function (value) {
|
|
186
191
|
stripeConnectInstance.then(() => {
|
|
187
192
|
if (!this[`${method}InternalOnly`]) {
|
|
188
|
-
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.
|
|
193
|
+
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.36`);
|
|
189
194
|
}
|
|
190
195
|
this[`${method}InternalOnly`](value);
|
|
191
196
|
});
|
|
@@ -239,7 +244,7 @@ const createWrapper = stripeConnect => {
|
|
|
239
244
|
sdk: true,
|
|
240
245
|
sdkOptions: {
|
|
241
246
|
// This will be replaced by the npm package version when bundling
|
|
242
|
-
sdkVersion: "3.3.
|
|
247
|
+
sdkVersion: "3.3.36"
|
|
243
248
|
}
|
|
244
249
|
})
|
|
245
250
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -70,6 +70,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
70
70
|
"payout-details": {
|
|
71
71
|
setPayout: _payout => {},
|
|
72
72
|
setOnClose: _listener => {}
|
|
73
|
+
},
|
|
74
|
+
payoutReconciliationReport: {
|
|
75
|
+
setOnNotAvailable: _listener => {}
|
|
73
76
|
}
|
|
74
77
|
};
|
|
75
78
|
|
|
@@ -92,7 +95,9 @@ const componentNameMapping = {
|
|
|
92
95
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
93
96
|
documents: "stripe-connect-documents",
|
|
94
97
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
95
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
98
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
99
|
+
balanceReport: "stripe-connect-balance-report",
|
|
100
|
+
payoutReconciliationReport: "stripe-connect-payout-reconciliation-report"
|
|
96
101
|
};
|
|
97
102
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
98
103
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -189,7 +194,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
189
194
|
element[method] = function (value) {
|
|
190
195
|
stripeConnectInstance.then(() => {
|
|
191
196
|
if (!this[`${method}InternalOnly`]) {
|
|
192
|
-
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.
|
|
197
|
+
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.36`);
|
|
193
198
|
}
|
|
194
199
|
this[`${method}InternalOnly`](value);
|
|
195
200
|
});
|
|
@@ -243,7 +248,7 @@ const createWrapper = stripeConnect => {
|
|
|
243
248
|
sdk: true,
|
|
244
249
|
sdkOptions: {
|
|
245
250
|
// This will be replaced by the npm package version when bundling
|
|
246
|
-
sdkVersion: "3.3.
|
|
251
|
+
sdkVersion: "3.3.36"
|
|
247
252
|
}
|
|
248
253
|
})
|
|
249
254
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -66,6 +66,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
66
66
|
"payout-details": {
|
|
67
67
|
setPayout: _payout => {},
|
|
68
68
|
setOnClose: _listener => {}
|
|
69
|
+
},
|
|
70
|
+
payoutReconciliationReport: {
|
|
71
|
+
setOnNotAvailable: _listener => {}
|
|
69
72
|
}
|
|
70
73
|
};
|
|
71
74
|
|
|
@@ -88,7 +91,9 @@ const componentNameMapping = {
|
|
|
88
91
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
89
92
|
documents: "stripe-connect-documents",
|
|
90
93
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
91
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
94
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
95
|
+
balanceReport: "stripe-connect-balance-report",
|
|
96
|
+
payoutReconciliationReport: "stripe-connect-payout-reconciliation-report"
|
|
92
97
|
};
|
|
93
98
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
94
99
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -185,7 +190,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
185
190
|
element[method] = function (value) {
|
|
186
191
|
stripeConnectInstance.then(() => {
|
|
187
192
|
if (!this[`${method}InternalOnly`]) {
|
|
188
|
-
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.
|
|
193
|
+
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.36`);
|
|
189
194
|
}
|
|
190
195
|
this[`${method}InternalOnly`](value);
|
|
191
196
|
});
|
|
@@ -239,7 +244,7 @@ const createWrapper = stripeConnect => {
|
|
|
239
244
|
sdk: true,
|
|
240
245
|
sdkOptions: {
|
|
241
246
|
// This will be replaced by the npm package version when bundling
|
|
242
|
-
sdkVersion: "3.3.
|
|
247
|
+
sdkVersion: "3.3.36"
|
|
243
248
|
}
|
|
244
249
|
})
|
|
245
250
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -70,6 +70,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
70
70
|
"payout-details": {
|
|
71
71
|
setPayout: _payout => {},
|
|
72
72
|
setOnClose: _listener => {}
|
|
73
|
+
},
|
|
74
|
+
payoutReconciliationReport: {
|
|
75
|
+
setOnNotAvailable: _listener => {}
|
|
73
76
|
}
|
|
74
77
|
};
|
|
75
78
|
|
|
@@ -92,7 +95,9 @@ const componentNameMapping = {
|
|
|
92
95
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
93
96
|
documents: "stripe-connect-documents",
|
|
94
97
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
95
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
98
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
99
|
+
balanceReport: "stripe-connect-balance-report",
|
|
100
|
+
payoutReconciliationReport: "stripe-connect-payout-reconciliation-report"
|
|
96
101
|
};
|
|
97
102
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
98
103
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -189,7 +194,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
189
194
|
element[method] = function (value) {
|
|
190
195
|
stripeConnectInstance.then(() => {
|
|
191
196
|
if (!this[`${method}InternalOnly`]) {
|
|
192
|
-
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.
|
|
197
|
+
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.36`);
|
|
193
198
|
}
|
|
194
199
|
this[`${method}InternalOnly`](value);
|
|
195
200
|
});
|
|
@@ -243,7 +248,7 @@ const createWrapper = stripeConnect => {
|
|
|
243
248
|
sdk: true,
|
|
244
249
|
sdkOptions: {
|
|
245
250
|
// This will be replaced by the npm package version when bundling
|
|
246
|
-
sdkVersion: "3.3.
|
|
251
|
+
sdkVersion: "3.3.36"
|
|
247
252
|
}
|
|
248
253
|
})
|
|
249
254
|
}));
|
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
|
-
type ConnectElementHTMLName = "stripe-connect-account-onboarding" | "stripe-connect-disputes-list" | "stripe-connect-payments" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "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-payouts" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-balances" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings";
|
|
3
|
+
type ConnectElementHTMLName = "stripe-connect-account-onboarding" | "stripe-connect-disputes-list" | "stripe-connect-payments" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "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-payouts" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-balances" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-balance-report" | "stripe-connect-payout-reconciliation-report";
|
|
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
|
@@ -169,4 +169,7 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
169
169
|
setPayout: (_payout: string | undefined) => void;
|
|
170
170
|
setOnClose: (_listener: (() => void) | undefined) => void;
|
|
171
171
|
};
|
|
172
|
+
payoutReconciliationReport: {
|
|
173
|
+
setOnNotAvailable: (_listener: (() => void) | undefined) => void;
|
|
174
|
+
};
|
|
172
175
|
};
|
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -32,7 +32,9 @@ type ConnectElementHTMLName =
|
|
|
32
32
|
| "stripe-connect-balances"
|
|
33
33
|
| "stripe-connect-documents"
|
|
34
34
|
| "stripe-connect-tax-registrations"
|
|
35
|
-
| "stripe-connect-tax-settings"
|
|
35
|
+
| "stripe-connect-tax-settings"
|
|
36
|
+
| "stripe-connect-balance-report"
|
|
37
|
+
| "stripe-connect-payout-reconciliation-report";
|
|
36
38
|
|
|
37
39
|
export const componentNameMapping: Record<
|
|
38
40
|
ConnectElementTagName,
|
|
@@ -58,6 +60,8 @@ export const componentNameMapping: Record<
|
|
|
58
60
|
documents: "stripe-connect-documents",
|
|
59
61
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
60
62
|
"tax-settings": "stripe-connect-tax-settings",
|
|
63
|
+
balanceReport: "stripe-connect-balance-report",
|
|
64
|
+
payoutReconciliationReport: "stripe-connect-payout-reconciliation-report",
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
type StripeConnectInstanceExtended = StripeConnectInstance & {
|
package/types/config.ts
CHANGED
|
@@ -301,4 +301,7 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
301
301
|
setPayout: (_payout: string | undefined): void => {},
|
|
302
302
|
setOnClose: (_listener: (() => void) | undefined): void => {},
|
|
303
303
|
},
|
|
304
|
+
payoutReconciliationReport: {
|
|
305
|
+
setOnNotAvailable: (_listener: (() => void) | undefined): void => {},
|
|
306
|
+
},
|
|
304
307
|
};
|