@stripe/connect-js 3.3.7-beta-1 → 3.3.8-beta-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 +9 -2
- package/dist/connect.js +9 -2
- package/dist/pure.esm.js +9 -2
- package/dist/pure.js +9 -2
- package/dist/src/shared.d.ts +1 -1
- package/package.json +1 -1
- package/src/shared.ts +16 -2
- package/types/shared.d.ts +5 -1
package/dist/connect.esm.js
CHANGED
|
@@ -53,7 +53,11 @@ const componentNameMapping = {
|
|
|
53
53
|
"capital-overview": "stripe-connect-capital-overview",
|
|
54
54
|
documents: "stripe-connect-documents",
|
|
55
55
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
56
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
56
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
57
|
+
balances: "stripe-connect-balances",
|
|
58
|
+
"payouts-list": "stripe-connect-payouts-list",
|
|
59
|
+
"app-install": "stripe-connect-app-install",
|
|
60
|
+
"app-viewport": "stripe-connect-app-viewport"
|
|
57
61
|
};
|
|
58
62
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
59
63
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -149,6 +153,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
149
153
|
document.body.removeChild(element);
|
|
150
154
|
element.style.display = oldDisplay;
|
|
151
155
|
}
|
|
156
|
+
if (!element || !element.setConnector) {
|
|
157
|
+
throw new Error(`Element ${tagName} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);
|
|
158
|
+
}
|
|
152
159
|
element.setConnector(instance.connect);
|
|
153
160
|
});
|
|
154
161
|
return element;
|
|
@@ -180,7 +187,7 @@ const createWrapper = stripeConnect => {
|
|
|
180
187
|
sdk: true,
|
|
181
188
|
sdkOptions: {
|
|
182
189
|
// This will be replaced by the npm package version when bundling
|
|
183
|
-
sdkVersion: "3.3.
|
|
190
|
+
sdkVersion: "3.3.8-beta-1"
|
|
184
191
|
}
|
|
185
192
|
})
|
|
186
193
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -57,7 +57,11 @@ const componentNameMapping = {
|
|
|
57
57
|
"capital-overview": "stripe-connect-capital-overview",
|
|
58
58
|
documents: "stripe-connect-documents",
|
|
59
59
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
60
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
60
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
61
|
+
balances: "stripe-connect-balances",
|
|
62
|
+
"payouts-list": "stripe-connect-payouts-list",
|
|
63
|
+
"app-install": "stripe-connect-app-install",
|
|
64
|
+
"app-viewport": "stripe-connect-app-viewport"
|
|
61
65
|
};
|
|
62
66
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
63
67
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -153,6 +157,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
153
157
|
document.body.removeChild(element);
|
|
154
158
|
element.style.display = oldDisplay;
|
|
155
159
|
}
|
|
160
|
+
if (!element || !element.setConnector) {
|
|
161
|
+
throw new Error(`Element ${tagName} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);
|
|
162
|
+
}
|
|
156
163
|
element.setConnector(instance.connect);
|
|
157
164
|
});
|
|
158
165
|
return element;
|
|
@@ -184,7 +191,7 @@ const createWrapper = stripeConnect => {
|
|
|
184
191
|
sdk: true,
|
|
185
192
|
sdkOptions: {
|
|
186
193
|
// This will be replaced by the npm package version when bundling
|
|
187
|
-
sdkVersion: "3.3.
|
|
194
|
+
sdkVersion: "3.3.8-beta-1"
|
|
188
195
|
}
|
|
189
196
|
})
|
|
190
197
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -53,7 +53,11 @@ const componentNameMapping = {
|
|
|
53
53
|
"capital-overview": "stripe-connect-capital-overview",
|
|
54
54
|
documents: "stripe-connect-documents",
|
|
55
55
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
56
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
56
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
57
|
+
balances: "stripe-connect-balances",
|
|
58
|
+
"payouts-list": "stripe-connect-payouts-list",
|
|
59
|
+
"app-install": "stripe-connect-app-install",
|
|
60
|
+
"app-viewport": "stripe-connect-app-viewport"
|
|
57
61
|
};
|
|
58
62
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
59
63
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -149,6 +153,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
149
153
|
document.body.removeChild(element);
|
|
150
154
|
element.style.display = oldDisplay;
|
|
151
155
|
}
|
|
156
|
+
if (!element || !element.setConnector) {
|
|
157
|
+
throw new Error(`Element ${tagName} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);
|
|
158
|
+
}
|
|
152
159
|
element.setConnector(instance.connect);
|
|
153
160
|
});
|
|
154
161
|
return element;
|
|
@@ -180,7 +187,7 @@ const createWrapper = stripeConnect => {
|
|
|
180
187
|
sdk: true,
|
|
181
188
|
sdkOptions: {
|
|
182
189
|
// This will be replaced by the npm package version when bundling
|
|
183
|
-
sdkVersion: "3.3.
|
|
190
|
+
sdkVersion: "3.3.8-beta-1"
|
|
184
191
|
}
|
|
185
192
|
})
|
|
186
193
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -57,7 +57,11 @@ const componentNameMapping = {
|
|
|
57
57
|
"capital-overview": "stripe-connect-capital-overview",
|
|
58
58
|
documents: "stripe-connect-documents",
|
|
59
59
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
60
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
60
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
61
|
+
balances: "stripe-connect-balances",
|
|
62
|
+
"payouts-list": "stripe-connect-payouts-list",
|
|
63
|
+
"app-install": "stripe-connect-app-install",
|
|
64
|
+
"app-viewport": "stripe-connect-app-viewport"
|
|
61
65
|
};
|
|
62
66
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
63
67
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
@@ -153,6 +157,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
153
157
|
document.body.removeChild(element);
|
|
154
158
|
element.style.display = oldDisplay;
|
|
155
159
|
}
|
|
160
|
+
if (!element || !element.setConnector) {
|
|
161
|
+
throw new Error(`Element ${tagName} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);
|
|
162
|
+
}
|
|
156
163
|
element.setConnector(instance.connect);
|
|
157
164
|
});
|
|
158
165
|
return element;
|
|
@@ -184,7 +191,7 @@ const createWrapper = stripeConnect => {
|
|
|
184
191
|
sdk: true,
|
|
185
192
|
sdkOptions: {
|
|
186
193
|
// This will be replaced by the npm package version when bundling
|
|
187
|
-
sdkVersion: "3.3.
|
|
194
|
+
sdkVersion: "3.3.8-beta-1"
|
|
188
195
|
}
|
|
189
196
|
})
|
|
190
197
|
}));
|
package/dist/src/shared.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { 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-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings";
|
|
3
|
+
export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-app-install" | "stripe-connect-app-viewport";
|
|
4
4
|
export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
|
|
5
5
|
type StripeConnectInstanceExtended = StripeConnectInstance & {
|
|
6
6
|
debugInstance: () => Promise<StripeConnectInstance>;
|
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -26,7 +26,11 @@ export type ConnectElementHTMLName =
|
|
|
26
26
|
| "stripe-connect-capital-overview"
|
|
27
27
|
| "stripe-connect-documents"
|
|
28
28
|
| "stripe-connect-tax-registrations"
|
|
29
|
-
| "stripe-connect-tax-settings"
|
|
29
|
+
| "stripe-connect-tax-settings"
|
|
30
|
+
| "stripe-connect-balances"
|
|
31
|
+
| "stripe-connect-payouts-list"
|
|
32
|
+
| "stripe-connect-app-install"
|
|
33
|
+
| "stripe-connect-app-viewport";
|
|
30
34
|
|
|
31
35
|
export const componentNameMapping: Record<
|
|
32
36
|
ConnectElementTagName,
|
|
@@ -48,7 +52,11 @@ export const componentNameMapping: Record<
|
|
|
48
52
|
"capital-overview": "stripe-connect-capital-overview",
|
|
49
53
|
documents: "stripe-connect-documents",
|
|
50
54
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
51
|
-
"tax-settings": "stripe-connect-tax-settings"
|
|
55
|
+
"tax-settings": "stripe-connect-tax-settings",
|
|
56
|
+
balances: "stripe-connect-balances",
|
|
57
|
+
"payouts-list": "stripe-connect-payouts-list",
|
|
58
|
+
"app-install": "stripe-connect-app-install",
|
|
59
|
+
"app-viewport": "stripe-connect-app-viewport"
|
|
52
60
|
};
|
|
53
61
|
|
|
54
62
|
type StripeConnectInstanceExtended = StripeConnectInstance & {
|
|
@@ -193,6 +201,12 @@ export const initStripeConnect = (
|
|
|
193
201
|
element.style.display = oldDisplay;
|
|
194
202
|
}
|
|
195
203
|
|
|
204
|
+
if (!element || !(element as any).setConnector) {
|
|
205
|
+
throw new Error(
|
|
206
|
+
`Element ${tagName} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
196
210
|
(element as any).setConnector((instance as any).connect);
|
|
197
211
|
});
|
|
198
212
|
|
package/types/shared.d.ts
CHANGED