@stripe/connect-js 2.0.0 → 2.0.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/package.json +1 -1
- package/src/shared.ts +2 -9
- package/types/shared.d.ts +1 -5
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -7,25 +7,18 @@ import {
|
|
|
7
7
|
|
|
8
8
|
export type LoadConnect = () => Promise<StripeConnectWrapper>;
|
|
9
9
|
|
|
10
|
-
type ConnectElementHTMLName =
|
|
11
|
-
| "stripe-connect-payments"
|
|
12
|
-
| "stripe-connect-payouts"
|
|
13
|
-
| "stripe-connect-payment-details"
|
|
14
|
-
| "stripe-connect-account-onboarding";
|
|
10
|
+
type ConnectElementHTMLName = "stripe-connect-account-onboarding";
|
|
15
11
|
|
|
16
12
|
const componentNameMapping: Record<
|
|
17
13
|
ConnectElementTagName,
|
|
18
14
|
ConnectElementHTMLName
|
|
19
15
|
> = {
|
|
20
|
-
payments: "stripe-connect-payments",
|
|
21
|
-
payouts: "stripe-connect-payouts",
|
|
22
|
-
"payment-details": "stripe-connect-payment-details",
|
|
23
16
|
"account-onboarding": "stripe-connect-account-onboarding"
|
|
24
17
|
};
|
|
25
18
|
|
|
26
19
|
const EXISTING_SCRIPT_MESSAGE =
|
|
27
20
|
"loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
28
|
-
const V0_URL = "https://connect-js.stripe.com/
|
|
21
|
+
const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
|
|
29
22
|
|
|
30
23
|
export const findScript = (): HTMLScriptElement | null => {
|
|
31
24
|
return document.querySelectorAll<HTMLScriptElement>(
|
package/types/shared.d.ts
CHANGED
|
@@ -180,11 +180,7 @@ export interface StripeConnectInstance {
|
|
|
180
180
|
/**
|
|
181
181
|
* Tagnames to be used with the `create` method of the Connect instance.
|
|
182
182
|
*/
|
|
183
|
-
export type ConnectElementTagName =
|
|
184
|
-
| "payments"
|
|
185
|
-
| "payouts"
|
|
186
|
-
| "payment-details"
|
|
187
|
-
| "account-onboarding";
|
|
183
|
+
export type ConnectElementTagName = "account-onboarding";
|
|
188
184
|
|
|
189
185
|
export declare const findScript: () => HTMLScriptElement | null;
|
|
190
186
|
|