@stripe/connect-js 3.3.34-preview-1 → 3.3.36-preview-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 +10 -3
- package/dist/connect.js +10 -3
- package/dist/pure.esm.js +10 -3
- package/dist/pure.js +10 -3
- package/dist/src/shared.d.ts +1 -1
- package/dist/types/config.d.ts +10 -0
- package/package.json +1 -1
- package/src/shared.ts +2 -0
- package/types/config.ts +16 -0
- package/types/shared.d.ts +1 -0
package/dist/connect.esm.js
CHANGED
|
@@ -32,6 +32,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
32
32
|
setCollectionOptions: _collectionOptions => {},
|
|
33
33
|
setOnNotificationsChange: _listener => {}
|
|
34
34
|
},
|
|
35
|
+
"instant-payouts-promotion": {
|
|
36
|
+
setOnInstantPayoutsPromotionLoaded: _listener => {},
|
|
37
|
+
setOnInstantPayoutCreated: _listener => {}
|
|
38
|
+
},
|
|
35
39
|
"issuing-card": {
|
|
36
40
|
setDefaultCard: _defaultCard => {},
|
|
37
41
|
setCardSwitching: _cardSwitching => {},
|
|
@@ -74,7 +78,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
74
78
|
"capital-financing-application": {
|
|
75
79
|
setOnApplicationSubmitted: _listener => {},
|
|
76
80
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
77
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {}
|
|
81
|
+
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
82
|
+
setOnApplicationStepChange: _listener => {}
|
|
78
83
|
},
|
|
79
84
|
"capital-financing-promotion": {
|
|
80
85
|
setLayout: _layout => {},
|
|
@@ -82,7 +87,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
82
87
|
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
83
88
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
84
89
|
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
85
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {}
|
|
90
|
+
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
91
|
+
setOnApplicationStepChange: _listener => {}
|
|
86
92
|
},
|
|
87
93
|
"reporting-chart": {
|
|
88
94
|
setReportName: _reportName => {},
|
|
@@ -122,6 +128,7 @@ const componentNameMapping = {
|
|
|
122
128
|
"account-management": "stripe-connect-account-management",
|
|
123
129
|
"notification-banner": "stripe-connect-notification-banner",
|
|
124
130
|
"instant-payouts": "stripe-connect-instant-payouts",
|
|
131
|
+
"instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
|
|
125
132
|
"issuing-card": "stripe-connect-issuing-card",
|
|
126
133
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
127
134
|
"financial-account": "stripe-connect-financial-account",
|
|
@@ -289,7 +296,7 @@ const createWrapper = stripeConnect => {
|
|
|
289
296
|
sdk: true,
|
|
290
297
|
sdkOptions: {
|
|
291
298
|
// This will be replaced by the npm package version when bundling
|
|
292
|
-
sdkVersion: "3.3.
|
|
299
|
+
sdkVersion: "3.3.36-preview-1"
|
|
293
300
|
}
|
|
294
301
|
})
|
|
295
302
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -36,6 +36,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
36
36
|
setCollectionOptions: _collectionOptions => {},
|
|
37
37
|
setOnNotificationsChange: _listener => {}
|
|
38
38
|
},
|
|
39
|
+
"instant-payouts-promotion": {
|
|
40
|
+
setOnInstantPayoutsPromotionLoaded: _listener => {},
|
|
41
|
+
setOnInstantPayoutCreated: _listener => {}
|
|
42
|
+
},
|
|
39
43
|
"issuing-card": {
|
|
40
44
|
setDefaultCard: _defaultCard => {},
|
|
41
45
|
setCardSwitching: _cardSwitching => {},
|
|
@@ -78,7 +82,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
78
82
|
"capital-financing-application": {
|
|
79
83
|
setOnApplicationSubmitted: _listener => {},
|
|
80
84
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
81
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {}
|
|
85
|
+
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
86
|
+
setOnApplicationStepChange: _listener => {}
|
|
82
87
|
},
|
|
83
88
|
"capital-financing-promotion": {
|
|
84
89
|
setLayout: _layout => {},
|
|
@@ -86,7 +91,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
86
91
|
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
87
92
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
88
93
|
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
89
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {}
|
|
94
|
+
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
95
|
+
setOnApplicationStepChange: _listener => {}
|
|
90
96
|
},
|
|
91
97
|
"reporting-chart": {
|
|
92
98
|
setReportName: _reportName => {},
|
|
@@ -126,6 +132,7 @@ const componentNameMapping = {
|
|
|
126
132
|
"account-management": "stripe-connect-account-management",
|
|
127
133
|
"notification-banner": "stripe-connect-notification-banner",
|
|
128
134
|
"instant-payouts": "stripe-connect-instant-payouts",
|
|
135
|
+
"instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
|
|
129
136
|
"issuing-card": "stripe-connect-issuing-card",
|
|
130
137
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
131
138
|
"financial-account": "stripe-connect-financial-account",
|
|
@@ -293,7 +300,7 @@ const createWrapper = stripeConnect => {
|
|
|
293
300
|
sdk: true,
|
|
294
301
|
sdkOptions: {
|
|
295
302
|
// This will be replaced by the npm package version when bundling
|
|
296
|
-
sdkVersion: "3.3.
|
|
303
|
+
sdkVersion: "3.3.36-preview-1"
|
|
297
304
|
}
|
|
298
305
|
})
|
|
299
306
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -32,6 +32,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
32
32
|
setCollectionOptions: _collectionOptions => {},
|
|
33
33
|
setOnNotificationsChange: _listener => {}
|
|
34
34
|
},
|
|
35
|
+
"instant-payouts-promotion": {
|
|
36
|
+
setOnInstantPayoutsPromotionLoaded: _listener => {},
|
|
37
|
+
setOnInstantPayoutCreated: _listener => {}
|
|
38
|
+
},
|
|
35
39
|
"issuing-card": {
|
|
36
40
|
setDefaultCard: _defaultCard => {},
|
|
37
41
|
setCardSwitching: _cardSwitching => {},
|
|
@@ -74,7 +78,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
74
78
|
"capital-financing-application": {
|
|
75
79
|
setOnApplicationSubmitted: _listener => {},
|
|
76
80
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
77
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {}
|
|
81
|
+
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
82
|
+
setOnApplicationStepChange: _listener => {}
|
|
78
83
|
},
|
|
79
84
|
"capital-financing-promotion": {
|
|
80
85
|
setLayout: _layout => {},
|
|
@@ -82,7 +87,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
82
87
|
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
83
88
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
84
89
|
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
85
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {}
|
|
90
|
+
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
91
|
+
setOnApplicationStepChange: _listener => {}
|
|
86
92
|
},
|
|
87
93
|
"reporting-chart": {
|
|
88
94
|
setReportName: _reportName => {},
|
|
@@ -122,6 +128,7 @@ const componentNameMapping = {
|
|
|
122
128
|
"account-management": "stripe-connect-account-management",
|
|
123
129
|
"notification-banner": "stripe-connect-notification-banner",
|
|
124
130
|
"instant-payouts": "stripe-connect-instant-payouts",
|
|
131
|
+
"instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
|
|
125
132
|
"issuing-card": "stripe-connect-issuing-card",
|
|
126
133
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
127
134
|
"financial-account": "stripe-connect-financial-account",
|
|
@@ -289,7 +296,7 @@ const createWrapper = stripeConnect => {
|
|
|
289
296
|
sdk: true,
|
|
290
297
|
sdkOptions: {
|
|
291
298
|
// This will be replaced by the npm package version when bundling
|
|
292
|
-
sdkVersion: "3.3.
|
|
299
|
+
sdkVersion: "3.3.36-preview-1"
|
|
293
300
|
}
|
|
294
301
|
})
|
|
295
302
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -36,6 +36,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
36
36
|
setCollectionOptions: _collectionOptions => {},
|
|
37
37
|
setOnNotificationsChange: _listener => {}
|
|
38
38
|
},
|
|
39
|
+
"instant-payouts-promotion": {
|
|
40
|
+
setOnInstantPayoutsPromotionLoaded: _listener => {},
|
|
41
|
+
setOnInstantPayoutCreated: _listener => {}
|
|
42
|
+
},
|
|
39
43
|
"issuing-card": {
|
|
40
44
|
setDefaultCard: _defaultCard => {},
|
|
41
45
|
setCardSwitching: _cardSwitching => {},
|
|
@@ -78,7 +82,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
78
82
|
"capital-financing-application": {
|
|
79
83
|
setOnApplicationSubmitted: _listener => {},
|
|
80
84
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
81
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {}
|
|
85
|
+
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
86
|
+
setOnApplicationStepChange: _listener => {}
|
|
82
87
|
},
|
|
83
88
|
"capital-financing-promotion": {
|
|
84
89
|
setLayout: _layout => {},
|
|
@@ -86,7 +91,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
86
91
|
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
87
92
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
88
93
|
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
89
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {}
|
|
94
|
+
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
95
|
+
setOnApplicationStepChange: _listener => {}
|
|
90
96
|
},
|
|
91
97
|
"reporting-chart": {
|
|
92
98
|
setReportName: _reportName => {},
|
|
@@ -126,6 +132,7 @@ const componentNameMapping = {
|
|
|
126
132
|
"account-management": "stripe-connect-account-management",
|
|
127
133
|
"notification-banner": "stripe-connect-notification-banner",
|
|
128
134
|
"instant-payouts": "stripe-connect-instant-payouts",
|
|
135
|
+
"instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
|
|
129
136
|
"issuing-card": "stripe-connect-issuing-card",
|
|
130
137
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
131
138
|
"financial-account": "stripe-connect-financial-account",
|
|
@@ -293,7 +300,7 @@ const createWrapper = stripeConnect => {
|
|
|
293
300
|
sdk: true,
|
|
294
301
|
sdkOptions: {
|
|
295
302
|
// This will be replaced by the npm package version when bundling
|
|
296
|
-
sdkVersion: "3.3.
|
|
303
|
+
sdkVersion: "3.3.36-preview-1"
|
|
297
304
|
}
|
|
298
305
|
})
|
|
299
306
|
}));
|
package/dist/src/shared.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { 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-payment-disputes" | "stripe-connect-disputes-list" | "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-recipients" | "stripe-connect-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-product-tax-code-selector" | "stripe-connect-export-tax-transactions" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-tax-threshold-monitoring" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-app-install" | "stripe-connect-app-viewport" | "stripe-connect-reporting-chart";
|
|
3
|
+
export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-disputes-list" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "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-recipients" | "stripe-connect-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-product-tax-code-selector" | "stripe-connect-export-tax-transactions" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-tax-threshold-monitoring" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-app-install" | "stripe-connect-app-viewport" | "stripe-connect-reporting-chart";
|
|
4
4
|
export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
|
|
5
5
|
type StripeConnectInstanceExtended = StripeConnectInstance & {
|
|
6
6
|
debugInstance: () => Promise<StripeConnectInstance>;
|
package/dist/types/config.d.ts
CHANGED
|
@@ -127,6 +127,14 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
127
127
|
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
|
128
128
|
setOnNotificationsChange: (_listener: (({ total, actionRequired }: NotificationCount) => void) | undefined) => void;
|
|
129
129
|
};
|
|
130
|
+
"instant-payouts-promotion": {
|
|
131
|
+
setOnInstantPayoutsPromotionLoaded: (_listener: (({ promotionShown }: {
|
|
132
|
+
promotionShown: boolean;
|
|
133
|
+
}) => void) | undefined) => void;
|
|
134
|
+
setOnInstantPayoutCreated: (_listener: (({ payoutId }: {
|
|
135
|
+
payoutId: string;
|
|
136
|
+
}) => void) | undefined) => void;
|
|
137
|
+
};
|
|
130
138
|
"issuing-card": {
|
|
131
139
|
setDefaultCard: (_defaultCard: string | undefined) => void;
|
|
132
140
|
setCardSwitching: (_cardSwitching: boolean | undefined) => void;
|
|
@@ -172,6 +180,7 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
172
180
|
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
173
181
|
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
|
|
174
182
|
setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
|
|
183
|
+
setOnApplicationStepChange: (_listener: (({ step }: StepChange) => void) | undefined) => void;
|
|
175
184
|
};
|
|
176
185
|
"capital-financing-promotion": {
|
|
177
186
|
setLayout: (_layout: FinancingPromotionLayoutType | undefined) => void;
|
|
@@ -180,6 +189,7 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
180
189
|
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
|
|
181
190
|
setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
|
|
182
191
|
setEligibilityCriteriaUrl: (_eligibilityCriteriaUrl: string | undefined) => void;
|
|
192
|
+
setOnApplicationStepChange: (_listener: (({ step }: StepChange) => void) | undefined) => void;
|
|
183
193
|
};
|
|
184
194
|
"reporting-chart": {
|
|
185
195
|
setReportName: (_reportName: ReportName) => void;
|
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type ConnectElementHTMLName =
|
|
|
24
24
|
| "stripe-connect-account-management"
|
|
25
25
|
| "stripe-connect-notification-banner"
|
|
26
26
|
| "stripe-connect-instant-payouts"
|
|
27
|
+
| "stripe-connect-instant-payouts-promotion"
|
|
27
28
|
| "stripe-connect-issuing-card"
|
|
28
29
|
| "stripe-connect-issuing-cards-list"
|
|
29
30
|
| "stripe-connect-financial-account"
|
|
@@ -59,6 +60,7 @@ export const componentNameMapping: Record<
|
|
|
59
60
|
"account-management": "stripe-connect-account-management",
|
|
60
61
|
"notification-banner": "stripe-connect-notification-banner",
|
|
61
62
|
"instant-payouts": "stripe-connect-instant-payouts",
|
|
63
|
+
"instant-payouts-promotion": "stripe-connect-instant-payouts-promotion",
|
|
62
64
|
"issuing-card": "stripe-connect-issuing-card",
|
|
63
65
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
64
66
|
"financial-account": "stripe-connect-financial-account",
|
package/types/config.ts
CHANGED
|
@@ -255,6 +255,16 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
255
255
|
| undefined
|
|
256
256
|
): void => {},
|
|
257
257
|
},
|
|
258
|
+
"instant-payouts-promotion": {
|
|
259
|
+
setOnInstantPayoutsPromotionLoaded: (
|
|
260
|
+
_listener:
|
|
261
|
+
| (({ promotionShown }: { promotionShown: boolean }) => void)
|
|
262
|
+
| undefined
|
|
263
|
+
): void => {},
|
|
264
|
+
setOnInstantPayoutCreated: (
|
|
265
|
+
_listener: (({ payoutId }: { payoutId: string }) => void) | undefined
|
|
266
|
+
): void => {},
|
|
267
|
+
},
|
|
258
268
|
"issuing-card": {
|
|
259
269
|
setDefaultCard: (_defaultCard: string | undefined): void => {},
|
|
260
270
|
setCardSwitching: (_cardSwitching: boolean | undefined): void => {},
|
|
@@ -320,6 +330,9 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
320
330
|
setHowCapitalWorksUrl: (
|
|
321
331
|
_howCapitalWorksUrl: string | undefined
|
|
322
332
|
): void => {},
|
|
333
|
+
setOnApplicationStepChange: (
|
|
334
|
+
_listener: (({ step }: StepChange) => void) | undefined
|
|
335
|
+
): void => {},
|
|
323
336
|
},
|
|
324
337
|
"capital-financing-promotion": {
|
|
325
338
|
setLayout: (_layout: FinancingPromotionLayoutType | undefined): void => {},
|
|
@@ -341,6 +354,9 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
341
354
|
setEligibilityCriteriaUrl: (
|
|
342
355
|
_eligibilityCriteriaUrl: string | undefined
|
|
343
356
|
): void => {},
|
|
357
|
+
setOnApplicationStepChange: (
|
|
358
|
+
_listener: (({ step }: StepChange) => void) | undefined
|
|
359
|
+
): void => {},
|
|
344
360
|
},
|
|
345
361
|
"reporting-chart": {
|
|
346
362
|
setReportName: (_reportName: ReportName): void => {},
|
package/types/shared.d.ts
CHANGED