@stripe/connect-js 2.0.0-beta.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.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
@@ -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/v0.1/connect.js";
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