@stripe/connect-js 3.3.25 → 3.3.26

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.
@@ -21,6 +21,10 @@ const ConnectElementCustomMethodConfig = {
21
21
  setCollectionOptions: _collectionOptions => {},
22
22
  setOnNotificationsChange: _listener => {}
23
23
  },
24
+ "instant-payouts-promotion": {
25
+ setOnInstantPayoutsPromotionLoaded: _listener => {},
26
+ setOnInstantPayoutCreated: _listener => {}
27
+ },
24
28
  "issuing-card": {
25
29
  setDefaultCard: _defaultCard => {},
26
30
  setCardSwitching: _cardSwitching => {},
@@ -71,6 +75,7 @@ const componentNameMapping = {
71
75
  balances: "stripe-connect-balances",
72
76
  "account-management": "stripe-connect-account-management",
73
77
  "notification-banner": "stripe-connect-notification-banner",
78
+ "instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
74
79
  "issuing-card": "stripe-connect-issuing-card",
75
80
  "issuing-cards-list": "stripe-connect-issuing-cards-list",
76
81
  "financial-account": "stripe-connect-financial-account",
@@ -225,7 +230,7 @@ const createWrapper = stripeConnect => {
225
230
  sdk: true,
226
231
  sdkOptions: {
227
232
  // This will be replaced by the npm package version when bundling
228
- sdkVersion: "3.3.25"
233
+ sdkVersion: "3.3.26"
229
234
  }
230
235
  })
231
236
  }));
package/dist/connect.js CHANGED
@@ -25,6 +25,10 @@ const ConnectElementCustomMethodConfig = {
25
25
  setCollectionOptions: _collectionOptions => {},
26
26
  setOnNotificationsChange: _listener => {}
27
27
  },
28
+ "instant-payouts-promotion": {
29
+ setOnInstantPayoutsPromotionLoaded: _listener => {},
30
+ setOnInstantPayoutCreated: _listener => {}
31
+ },
28
32
  "issuing-card": {
29
33
  setDefaultCard: _defaultCard => {},
30
34
  setCardSwitching: _cardSwitching => {},
@@ -75,6 +79,7 @@ const componentNameMapping = {
75
79
  balances: "stripe-connect-balances",
76
80
  "account-management": "stripe-connect-account-management",
77
81
  "notification-banner": "stripe-connect-notification-banner",
82
+ "instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
78
83
  "issuing-card": "stripe-connect-issuing-card",
79
84
  "issuing-cards-list": "stripe-connect-issuing-cards-list",
80
85
  "financial-account": "stripe-connect-financial-account",
@@ -229,7 +234,7 @@ const createWrapper = stripeConnect => {
229
234
  sdk: true,
230
235
  sdkOptions: {
231
236
  // This will be replaced by the npm package version when bundling
232
- sdkVersion: "3.3.25"
237
+ sdkVersion: "3.3.26"
233
238
  }
234
239
  })
235
240
  }));
package/dist/pure.esm.js CHANGED
@@ -21,6 +21,10 @@ const ConnectElementCustomMethodConfig = {
21
21
  setCollectionOptions: _collectionOptions => {},
22
22
  setOnNotificationsChange: _listener => {}
23
23
  },
24
+ "instant-payouts-promotion": {
25
+ setOnInstantPayoutsPromotionLoaded: _listener => {},
26
+ setOnInstantPayoutCreated: _listener => {}
27
+ },
24
28
  "issuing-card": {
25
29
  setDefaultCard: _defaultCard => {},
26
30
  setCardSwitching: _cardSwitching => {},
@@ -71,6 +75,7 @@ const componentNameMapping = {
71
75
  balances: "stripe-connect-balances",
72
76
  "account-management": "stripe-connect-account-management",
73
77
  "notification-banner": "stripe-connect-notification-banner",
78
+ "instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
74
79
  "issuing-card": "stripe-connect-issuing-card",
75
80
  "issuing-cards-list": "stripe-connect-issuing-cards-list",
76
81
  "financial-account": "stripe-connect-financial-account",
@@ -225,7 +230,7 @@ const createWrapper = stripeConnect => {
225
230
  sdk: true,
226
231
  sdkOptions: {
227
232
  // This will be replaced by the npm package version when bundling
228
- sdkVersion: "3.3.25"
233
+ sdkVersion: "3.3.26"
229
234
  }
230
235
  })
231
236
  }));
package/dist/pure.js CHANGED
@@ -25,6 +25,10 @@ const ConnectElementCustomMethodConfig = {
25
25
  setCollectionOptions: _collectionOptions => {},
26
26
  setOnNotificationsChange: _listener => {}
27
27
  },
28
+ "instant-payouts-promotion": {
29
+ setOnInstantPayoutsPromotionLoaded: _listener => {},
30
+ setOnInstantPayoutCreated: _listener => {}
31
+ },
28
32
  "issuing-card": {
29
33
  setDefaultCard: _defaultCard => {},
30
34
  setCardSwitching: _cardSwitching => {},
@@ -75,6 +79,7 @@ const componentNameMapping = {
75
79
  balances: "stripe-connect-balances",
76
80
  "account-management": "stripe-connect-account-management",
77
81
  "notification-banner": "stripe-connect-notification-banner",
82
+ "instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
78
83
  "issuing-card": "stripe-connect-issuing-card",
79
84
  "issuing-cards-list": "stripe-connect-issuing-cards-list",
80
85
  "financial-account": "stripe-connect-financial-account",
@@ -229,7 +234,7 @@ const createWrapper = stripeConnect => {
229
234
  sdk: true,
230
235
  sdkOptions: {
231
236
  // This will be replaced by the npm package version when bundling
232
- sdkVersion: "3.3.25"
237
+ sdkVersion: "3.3.26"
233
238
  }
234
239
  })
235
240
  }));
@@ -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-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-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-balances" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings";
4
4
  export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
5
5
  type StripeConnectInstanceExtended = StripeConnectInstance & {
6
6
  debugInstance: () => Promise<StripeConnectInstance>;
@@ -102,6 +102,14 @@ export declare const ConnectElementCustomMethodConfig: {
102
102
  setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
103
103
  setOnNotificationsChange: (_listener: (({ total, actionRequired }: NotificationCount) => void) | undefined) => void;
104
104
  };
105
+ "instant-payouts-promotion": {
106
+ setOnInstantPayoutsPromotionLoaded: (_listener: (({ promotionShown }: {
107
+ promotionShown: boolean;
108
+ }) => void) | undefined) => void;
109
+ setOnInstantPayoutCreated: (_listener: (({ payoutId }: {
110
+ payoutId: string;
111
+ }) => void) | undefined) => void;
112
+ };
105
113
  "issuing-card": {
106
114
  setDefaultCard: (_defaultCard: string | undefined) => void;
107
115
  setCardSwitching: (_cardSwitching: boolean | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.25",
3
+ "version": "3.3.26",
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
@@ -21,6 +21,7 @@ type ConnectElementHTMLName =
21
21
  | "stripe-connect-payment-disputes"
22
22
  | "stripe-connect-account-management"
23
23
  | "stripe-connect-notification-banner"
24
+ | "stripe-connect-instant-payouts-promotion"
24
25
  | "stripe-connect-issuing-card"
25
26
  | "stripe-connect-issuing-cards-list"
26
27
  | "stripe-connect-financial-account"
@@ -46,6 +47,7 @@ export const componentNameMapping: Record<
46
47
  balances: "stripe-connect-balances",
47
48
  "account-management": "stripe-connect-account-management",
48
49
  "notification-banner": "stripe-connect-notification-banner",
50
+ "instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
49
51
  "issuing-card": "stripe-connect-issuing-card",
50
52
  "issuing-cards-list": "stripe-connect-issuing-cards-list",
51
53
  "financial-account": "stripe-connect-financial-account",
package/types/config.ts CHANGED
@@ -222,6 +222,16 @@ export const ConnectElementCustomMethodConfig = {
222
222
  | undefined
223
223
  ): void => {},
224
224
  },
225
+ "instant-payouts-promotion": {
226
+ setOnInstantPayoutsPromotionLoaded: (
227
+ _listener:
228
+ | (({ promotionShown }: { promotionShown: boolean }) => void)
229
+ | undefined
230
+ ): void => {},
231
+ setOnInstantPayoutCreated: (
232
+ _listener: (({ payoutId }: { payoutId: string }) => void) | undefined
233
+ ): void => {},
234
+ },
225
235
  "issuing-card": {
226
236
  setDefaultCard: (_defaultCard: string | undefined): void => {},
227
237
  setCardSwitching: (_cardSwitching: boolean | undefined): void => {},
package/types/shared.d.ts CHANGED
@@ -495,6 +495,7 @@ export type ConnectElementTagName =
495
495
  | "payment-disputes"
496
496
  | "account-management"
497
497
  | "notification-banner"
498
+ | "instant-payouts-promotion"
498
499
  | "issuing-card"
499
500
  | "issuing-cards-list"
500
501
  | "financial-account"