@stripe/connect-js 3.3.4-beta-1 → 3.3.4

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.
@@ -1,10 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
  const ConnectElementCustomMethodConfig = {
4
- "payment-details": {
5
- setPayment: _payment => {},
6
- setOnClose: _listener => {}
7
- },
8
4
  "account-onboarding": {
9
5
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
10
6
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -13,50 +9,29 @@ const ConnectElementCustomMethodConfig = {
13
9
  setCollectionOptions: _collectionOptions => {},
14
10
  setOnExit: _listener => {}
15
11
  },
16
- "account-management": {
17
- setCollectionOptions: _collectionOptions => {}
18
- },
19
- "issuing-card": {
20
- setDefaultCard: _defaultCard => {},
21
- setCardArtFileLink: _cardArtFileLink => {},
22
- setCardSwitching: _cardSwitching => {},
23
- setFetchEphemeralKey: _fetchEphemeralKey => {}
24
- },
25
- "issuing-cards-list": {
26
- setCardArtFileLink: _cardArtFileLink => {},
27
- setFetchEphemeralKey: _fetchEphemeralKey => {}
28
- },
29
- "financial-account": {
30
- setFinancialAccount: _financialAccount => {}
31
- },
32
- "financial-account-transactions": {
33
- setFinancialAccount: _financialAccount => {}
12
+ "payment-details": {
13
+ setPayment: _payment => {},
14
+ setOnClose: _listener => {}
34
15
  }
35
16
  };
36
17
 
37
18
  const componentNameMapping = {
19
+ "account-onboarding": "stripe-connect-account-onboarding",
38
20
  payments: "stripe-connect-payments",
39
- payouts: "stripe-connect-payouts",
40
21
  "payment-details": "stripe-connect-payment-details",
41
- "account-onboarding": "stripe-connect-account-onboarding",
42
- "payment-method-settings": "stripe-connect-payment-method-settings",
22
+ payouts: "stripe-connect-payouts",
43
23
  "account-management": "stripe-connect-account-management",
44
24
  "notification-banner": "stripe-connect-notification-banner",
45
- "instant-payouts": "stripe-connect-instant-payouts",
46
- "issuing-card": "stripe-connect-issuing-card",
47
- "issuing-cards-list": "stripe-connect-issuing-cards-list",
48
- "financial-account": "stripe-connect-financial-account",
49
- "financial-account-transactions": "stripe-connect-financial-account-transactions",
50
25
  documents: "stripe-connect-documents"
51
26
  };
52
27
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
53
- const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
28
+ const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
54
29
  const findScript = () => {
55
30
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
56
31
  };
57
32
  const injectScript = () => {
58
33
  const script = document.createElement("script");
59
- script.src = "https://connect-js.stripe.com/v0.1/connect.js";
34
+ script.src = "https://connect-js.stripe.com/v1.0/connect.js";
60
35
  const head = document.head;
61
36
  if (!head) {
62
37
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -174,7 +149,7 @@ const createWrapper = stripeConnect => {
174
149
  sdk: true,
175
150
  sdkOptions: {
176
151
  // This will be replaced by the npm package version when bundling
177
- sdkVersion: "3.3.4-beta-1"
152
+ sdkVersion: "3.3.4"
178
153
  }
179
154
  })
180
155
  }));
package/dist/connect.js CHANGED
@@ -5,10 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  /* eslint-disable @typescript-eslint/no-empty-function */
6
6
  /* eslint-disable @typescript-eslint/no-unused-vars */
7
7
  const ConnectElementCustomMethodConfig = {
8
- "payment-details": {
9
- setPayment: _payment => {},
10
- setOnClose: _listener => {}
11
- },
12
8
  "account-onboarding": {
13
9
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
14
10
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -17,50 +13,29 @@ const ConnectElementCustomMethodConfig = {
17
13
  setCollectionOptions: _collectionOptions => {},
18
14
  setOnExit: _listener => {}
19
15
  },
20
- "account-management": {
21
- setCollectionOptions: _collectionOptions => {}
22
- },
23
- "issuing-card": {
24
- setDefaultCard: _defaultCard => {},
25
- setCardArtFileLink: _cardArtFileLink => {},
26
- setCardSwitching: _cardSwitching => {},
27
- setFetchEphemeralKey: _fetchEphemeralKey => {}
28
- },
29
- "issuing-cards-list": {
30
- setCardArtFileLink: _cardArtFileLink => {},
31
- setFetchEphemeralKey: _fetchEphemeralKey => {}
32
- },
33
- "financial-account": {
34
- setFinancialAccount: _financialAccount => {}
35
- },
36
- "financial-account-transactions": {
37
- setFinancialAccount: _financialAccount => {}
16
+ "payment-details": {
17
+ setPayment: _payment => {},
18
+ setOnClose: _listener => {}
38
19
  }
39
20
  };
40
21
 
41
22
  const componentNameMapping = {
23
+ "account-onboarding": "stripe-connect-account-onboarding",
42
24
  payments: "stripe-connect-payments",
43
- payouts: "stripe-connect-payouts",
44
25
  "payment-details": "stripe-connect-payment-details",
45
- "account-onboarding": "stripe-connect-account-onboarding",
46
- "payment-method-settings": "stripe-connect-payment-method-settings",
26
+ payouts: "stripe-connect-payouts",
47
27
  "account-management": "stripe-connect-account-management",
48
28
  "notification-banner": "stripe-connect-notification-banner",
49
- "instant-payouts": "stripe-connect-instant-payouts",
50
- "issuing-card": "stripe-connect-issuing-card",
51
- "issuing-cards-list": "stripe-connect-issuing-cards-list",
52
- "financial-account": "stripe-connect-financial-account",
53
- "financial-account-transactions": "stripe-connect-financial-account-transactions",
54
29
  documents: "stripe-connect-documents"
55
30
  };
56
31
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
57
- const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
32
+ const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
58
33
  const findScript = () => {
59
34
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
60
35
  };
61
36
  const injectScript = () => {
62
37
  const script = document.createElement("script");
63
- script.src = "https://connect-js.stripe.com/v0.1/connect.js";
38
+ script.src = "https://connect-js.stripe.com/v1.0/connect.js";
64
39
  const head = document.head;
65
40
  if (!head) {
66
41
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -178,7 +153,7 @@ const createWrapper = stripeConnect => {
178
153
  sdk: true,
179
154
  sdkOptions: {
180
155
  // This will be replaced by the npm package version when bundling
181
- sdkVersion: "3.3.4-beta-1"
156
+ sdkVersion: "3.3.4"
182
157
  }
183
158
  })
184
159
  }));
package/dist/pure.esm.js CHANGED
@@ -1,10 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
  const ConnectElementCustomMethodConfig = {
4
- "payment-details": {
5
- setPayment: _payment => {},
6
- setOnClose: _listener => {}
7
- },
8
4
  "account-onboarding": {
9
5
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
10
6
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -13,50 +9,29 @@ const ConnectElementCustomMethodConfig = {
13
9
  setCollectionOptions: _collectionOptions => {},
14
10
  setOnExit: _listener => {}
15
11
  },
16
- "account-management": {
17
- setCollectionOptions: _collectionOptions => {}
18
- },
19
- "issuing-card": {
20
- setDefaultCard: _defaultCard => {},
21
- setCardArtFileLink: _cardArtFileLink => {},
22
- setCardSwitching: _cardSwitching => {},
23
- setFetchEphemeralKey: _fetchEphemeralKey => {}
24
- },
25
- "issuing-cards-list": {
26
- setCardArtFileLink: _cardArtFileLink => {},
27
- setFetchEphemeralKey: _fetchEphemeralKey => {}
28
- },
29
- "financial-account": {
30
- setFinancialAccount: _financialAccount => {}
31
- },
32
- "financial-account-transactions": {
33
- setFinancialAccount: _financialAccount => {}
12
+ "payment-details": {
13
+ setPayment: _payment => {},
14
+ setOnClose: _listener => {}
34
15
  }
35
16
  };
36
17
 
37
18
  const componentNameMapping = {
19
+ "account-onboarding": "stripe-connect-account-onboarding",
38
20
  payments: "stripe-connect-payments",
39
- payouts: "stripe-connect-payouts",
40
21
  "payment-details": "stripe-connect-payment-details",
41
- "account-onboarding": "stripe-connect-account-onboarding",
42
- "payment-method-settings": "stripe-connect-payment-method-settings",
22
+ payouts: "stripe-connect-payouts",
43
23
  "account-management": "stripe-connect-account-management",
44
24
  "notification-banner": "stripe-connect-notification-banner",
45
- "instant-payouts": "stripe-connect-instant-payouts",
46
- "issuing-card": "stripe-connect-issuing-card",
47
- "issuing-cards-list": "stripe-connect-issuing-cards-list",
48
- "financial-account": "stripe-connect-financial-account",
49
- "financial-account-transactions": "stripe-connect-financial-account-transactions",
50
25
  documents: "stripe-connect-documents"
51
26
  };
52
27
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
53
- const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
28
+ const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
54
29
  const findScript = () => {
55
30
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
56
31
  };
57
32
  const injectScript = () => {
58
33
  const script = document.createElement("script");
59
- script.src = "https://connect-js.stripe.com/v0.1/connect.js";
34
+ script.src = "https://connect-js.stripe.com/v1.0/connect.js";
60
35
  const head = document.head;
61
36
  if (!head) {
62
37
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -174,7 +149,7 @@ const createWrapper = stripeConnect => {
174
149
  sdk: true,
175
150
  sdkOptions: {
176
151
  // This will be replaced by the npm package version when bundling
177
- sdkVersion: "3.3.4-beta-1"
152
+ sdkVersion: "3.3.4"
178
153
  }
179
154
  })
180
155
  }));
package/dist/pure.js CHANGED
@@ -5,10 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  /* eslint-disable @typescript-eslint/no-empty-function */
6
6
  /* eslint-disable @typescript-eslint/no-unused-vars */
7
7
  const ConnectElementCustomMethodConfig = {
8
- "payment-details": {
9
- setPayment: _payment => {},
10
- setOnClose: _listener => {}
11
- },
12
8
  "account-onboarding": {
13
9
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
14
10
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -17,50 +13,29 @@ const ConnectElementCustomMethodConfig = {
17
13
  setCollectionOptions: _collectionOptions => {},
18
14
  setOnExit: _listener => {}
19
15
  },
20
- "account-management": {
21
- setCollectionOptions: _collectionOptions => {}
22
- },
23
- "issuing-card": {
24
- setDefaultCard: _defaultCard => {},
25
- setCardArtFileLink: _cardArtFileLink => {},
26
- setCardSwitching: _cardSwitching => {},
27
- setFetchEphemeralKey: _fetchEphemeralKey => {}
28
- },
29
- "issuing-cards-list": {
30
- setCardArtFileLink: _cardArtFileLink => {},
31
- setFetchEphemeralKey: _fetchEphemeralKey => {}
32
- },
33
- "financial-account": {
34
- setFinancialAccount: _financialAccount => {}
35
- },
36
- "financial-account-transactions": {
37
- setFinancialAccount: _financialAccount => {}
16
+ "payment-details": {
17
+ setPayment: _payment => {},
18
+ setOnClose: _listener => {}
38
19
  }
39
20
  };
40
21
 
41
22
  const componentNameMapping = {
23
+ "account-onboarding": "stripe-connect-account-onboarding",
42
24
  payments: "stripe-connect-payments",
43
- payouts: "stripe-connect-payouts",
44
25
  "payment-details": "stripe-connect-payment-details",
45
- "account-onboarding": "stripe-connect-account-onboarding",
46
- "payment-method-settings": "stripe-connect-payment-method-settings",
26
+ payouts: "stripe-connect-payouts",
47
27
  "account-management": "stripe-connect-account-management",
48
28
  "notification-banner": "stripe-connect-notification-banner",
49
- "instant-payouts": "stripe-connect-instant-payouts",
50
- "issuing-card": "stripe-connect-issuing-card",
51
- "issuing-cards-list": "stripe-connect-issuing-cards-list",
52
- "financial-account": "stripe-connect-financial-account",
53
- "financial-account-transactions": "stripe-connect-financial-account-transactions",
54
29
  documents: "stripe-connect-documents"
55
30
  };
56
31
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
57
- const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
32
+ const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
58
33
  const findScript = () => {
59
34
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
60
35
  };
61
36
  const injectScript = () => {
62
37
  const script = document.createElement("script");
63
- script.src = "https://connect-js.stripe.com/v0.1/connect.js";
38
+ script.src = "https://connect-js.stripe.com/v1.0/connect.js";
64
39
  const head = document.head;
65
40
  if (!head) {
66
41
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -178,7 +153,7 @@ const createWrapper = stripeConnect => {
178
153
  sdk: true,
179
154
  sdkOptions: {
180
155
  // This will be replaced by the npm package version when bundling
181
- sdkVersion: "3.3.4-beta-1"
156
+ sdkVersion: "3.3.4"
182
157
  }
183
158
  })
184
159
  }));
@@ -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-documents";
3
+ type ConnectElementHTMLName = "stripe-connect-account-onboarding" | "stripe-connect-payments" | "stripe-connect-payment-details" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-payouts" | "stripe-connect-documents";
4
4
  export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
5
5
  type StripeConnectInstanceExtended = StripeConnectInstance & {
6
6
  debugInstance: () => Promise<StripeConnectInstance>;
@@ -1,2 +1,2 @@
1
- export declare const SCRIPT_SELECTOR = "script[src^=\"https://connect-js.stripe.com/v0.1/connect.js\"]";
1
+ export declare const SCRIPT_SELECTOR = "script[src^=\"https://connect-js.stripe.com/v1.0/connect.js\"]";
2
2
  export {};
@@ -1,20 +1,8 @@
1
- export type FetchEphemeralKeyFunction = (fetchParams: {
2
- issuingCard: string;
3
- nonce: string;
4
- }) => Promise<{
5
- issuingCard: string;
6
- nonce: string;
7
- ephemeralKeySecret: string;
8
- }>;
9
1
  export type CollectionOptions = {
10
2
  fields: "currently_due" | "eventually_due";
11
3
  futureRequirements?: "omit" | "include";
12
4
  };
13
5
  export declare const ConnectElementCustomMethodConfig: {
14
- "payment-details": {
15
- setPayment: (_payment: string | undefined) => void;
16
- setOnClose: (_listener: (() => void) | undefined) => void;
17
- };
18
6
  "account-onboarding": {
19
7
  setFullTermsOfServiceUrl: (_termOfServiceUrl: string | undefined) => void;
20
8
  setRecipientTermsOfServiceUrl: (_recipientTermsOfServiceUrl: string | undefined) => void;
@@ -23,23 +11,8 @@ export declare const ConnectElementCustomMethodConfig: {
23
11
  setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
24
12
  setOnExit: (_listener: (() => void) | undefined) => void;
25
13
  };
26
- "account-management": {
27
- setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
28
- };
29
- "issuing-card": {
30
- setDefaultCard: (_defaultCard: string | undefined) => void;
31
- setCardArtFileLink: (_cardArtFileLink: string | undefined) => void;
32
- setCardSwitching: (_cardSwitching: boolean | undefined) => void;
33
- setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
34
- };
35
- "issuing-cards-list": {
36
- setCardArtFileLink: (_cardArtFileLink: string | undefined) => void;
37
- setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
38
- };
39
- "financial-account": {
40
- setFinancialAccount: (_financialAccount: string) => void;
41
- };
42
- "financial-account-transactions": {
43
- setFinancialAccount: (_financialAccount: string) => void;
14
+ "payment-details": {
15
+ setPayment: (_payment: string | undefined) => void;
16
+ setOnClose: (_listener: (() => void) | undefined) => void;
44
17
  };
45
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.4-beta-1",
3
+ "version": "3.3.4",
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
@@ -10,38 +10,25 @@ export type LoadConnectAndInitialize = (
10
10
  initParams: IStripeConnectInitParams
11
11
  ) => StripeConnectInstance;
12
12
 
13
- export type ConnectElementHTMLName =
13
+ type ConnectElementHTMLName =
14
+ | "stripe-connect-account-onboarding"
14
15
  | "stripe-connect-payments"
15
- | "stripe-connect-payouts"
16
16
  | "stripe-connect-payment-details"
17
- | "stripe-connect-account-onboarding"
18
- | "stripe-connect-payment-method-settings"
19
17
  | "stripe-connect-account-management"
20
18
  | "stripe-connect-notification-banner"
21
- | "stripe-connect-instant-payouts"
22
- | "stripe-connect-issuing-card"
23
- | "stripe-connect-issuing-cards-list"
24
- | "stripe-connect-financial-account"
25
- | "stripe-connect-financial-account-transactions"
19
+ | "stripe-connect-payouts"
26
20
  | "stripe-connect-documents";
27
21
 
28
22
  export const componentNameMapping: Record<
29
23
  ConnectElementTagName,
30
24
  ConnectElementHTMLName
31
25
  > = {
26
+ "account-onboarding": "stripe-connect-account-onboarding",
32
27
  payments: "stripe-connect-payments",
33
- payouts: "stripe-connect-payouts",
34
28
  "payment-details": "stripe-connect-payment-details",
35
- "account-onboarding": "stripe-connect-account-onboarding",
36
- "payment-method-settings": "stripe-connect-payment-method-settings",
29
+ payouts: "stripe-connect-payouts",
37
30
  "account-management": "stripe-connect-account-management",
38
31
  "notification-banner": "stripe-connect-notification-banner",
39
- "instant-payouts": "stripe-connect-instant-payouts",
40
- "issuing-card": "stripe-connect-issuing-card",
41
- "issuing-cards-list": "stripe-connect-issuing-cards-list",
42
- "financial-account": "stripe-connect-financial-account",
43
- "financial-account-transactions":
44
- "stripe-connect-financial-account-transactions",
45
32
  documents: "stripe-connect-documents"
46
33
  };
47
34
 
@@ -55,7 +42,7 @@ interface StripeConnectWrapper {
55
42
 
56
43
  const EXISTING_SCRIPT_MESSAGE =
57
44
  "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
58
- const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
45
+ const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
59
46
 
60
47
  export const findScript = (): HTMLScriptElement | null => {
61
48
  return (
@@ -67,7 +54,7 @@ export const findScript = (): HTMLScriptElement | null => {
67
54
 
68
55
  const injectScript = (): HTMLScriptElement => {
69
56
  const script = document.createElement("script");
70
- script.src = "https://connect-js.stripe.com/v0.1/connect.js";
57
+ script.src = "https://connect-js.stripe.com/v1.0/connect.js";
71
58
 
72
59
  const head = document.head;
73
60
 
@@ -1,4 +1,4 @@
1
1
  export const SCRIPT_SELECTOR =
2
- 'script[src^="https://connect-js.stripe.com/v0.1/connect.js"]';
2
+ 'script[src^="https://connect-js.stripe.com/v1.0/connect.js"]';
3
3
 
4
4
  export {};
package/types/config.ts CHANGED
@@ -1,25 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
 
4
- export type FetchEphemeralKeyFunction = (fetchParams: {
5
- issuingCard: string;
6
- nonce: string;
7
- }) => Promise<{
8
- issuingCard: string;
9
- nonce: string;
10
- ephemeralKeySecret: string;
11
- }>;
12
-
13
4
  export type CollectionOptions = {
14
5
  fields: "currently_due" | "eventually_due";
15
6
  futureRequirements?: "omit" | "include";
16
7
  };
17
8
 
18
9
  export const ConnectElementCustomMethodConfig = {
19
- "payment-details": {
20
- setPayment: (_payment: string | undefined): void => {},
21
- setOnClose: (_listener: (() => void) | undefined): void => {}
22
- },
23
10
  "account-onboarding": {
24
11
  setFullTermsOfServiceUrl: (
25
12
  _termOfServiceUrl: string | undefined
@@ -36,29 +23,8 @@ export const ConnectElementCustomMethodConfig = {
36
23
  ): void => {},
37
24
  setOnExit: (_listener: (() => void) | undefined): void => {}
38
25
  },
39
- "account-management": {
40
- setCollectionOptions: (
41
- _collectionOptions: CollectionOptions | undefined
42
- ): void => {}
43
- },
44
- "issuing-card": {
45
- setDefaultCard: (_defaultCard: string | undefined): void => {},
46
- setCardArtFileLink: (_cardArtFileLink: string | undefined): void => {},
47
- setCardSwitching: (_cardSwitching: boolean | undefined): void => {},
48
- setFetchEphemeralKey: (
49
- _fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
50
- ): void => {}
51
- },
52
- "issuing-cards-list": {
53
- setCardArtFileLink: (_cardArtFileLink: string | undefined): void => {},
54
- setFetchEphemeralKey: (
55
- _fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
56
- ): void => {}
57
- },
58
- "financial-account": {
59
- setFinancialAccount: (_financialAccount: string): void => {}
60
- },
61
- "financial-account-transactions": {
62
- setFinancialAccount: (_financialAccount: string): void => {}
26
+ "payment-details": {
27
+ setPayment: (_payment: string | undefined): void => {},
28
+ setOnClose: (_listener: (() => void) | undefined): void => {}
63
29
  }
64
30
  };
package/types/shared.d.ts CHANGED
@@ -447,16 +447,10 @@ export interface StripeConnectInstance {
447
447
  * Tagnames to be used with the `create` method of the Connect instance.
448
448
  */
449
449
  export type ConnectElementTagName =
450
+ | "account-onboarding"
450
451
  | "payments"
451
- | "payouts"
452
452
  | "payment-details"
453
- | "account-onboarding"
454
- | "payment-method-settings"
455
453
  | "account-management"
456
454
  | "notification-banner"
457
- | "instant-payouts"
458
- | "issuing-card"
459
- | "issuing-cards-list"
460
- | "financial-account"
461
- | "financial-account-transactions"
455
+ | "payouts"
462
456
  | "documents";