@stripe/connect-js 3.3.15-beta-1 → 3.3.16-beta-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 +17 -3
- package/dist/connect.js +17 -3
- package/dist/pure.esm.js +17 -3
- package/dist/pure.js +17 -3
- package/dist/src/shared.d.ts +1 -1
- package/dist/types/config.d.ts +15 -2
- package/package.json +1 -1
- package/src/shared.ts +7 -0
- package/types/config.ts +19 -2
- package/types/shared.d.ts +3 -0
package/dist/connect.esm.js
CHANGED
|
@@ -26,12 +26,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
26
26
|
},
|
|
27
27
|
"issuing-card": {
|
|
28
28
|
setDefaultCard: _defaultCard => {},
|
|
29
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
30
29
|
setCardSwitching: _cardSwitching => {},
|
|
31
30
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
32
31
|
},
|
|
33
32
|
"issuing-cards-list": {
|
|
34
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
35
33
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
36
34
|
},
|
|
37
35
|
"financial-account": {
|
|
@@ -51,6 +49,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
51
49
|
},
|
|
52
50
|
"payment-method-settings": {
|
|
53
51
|
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
52
|
+
},
|
|
53
|
+
"capital-financing": {
|
|
54
|
+
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
55
|
+
setShowFinancingSelector: _showFinancingSelector => {},
|
|
56
|
+
setFaqUrl: _faqUrl => {},
|
|
57
|
+
setSupportUrl: _supportUrl => {},
|
|
58
|
+
setOnFinancingsLoaded: _listener => {}
|
|
59
|
+
},
|
|
60
|
+
"capital-financing-application": {
|
|
61
|
+
setOnApplicationSubmitted: _listener => {}
|
|
62
|
+
},
|
|
63
|
+
"capital-financing-promotion": {
|
|
64
|
+
setOnApplicationSubmitted: _listener => {}
|
|
54
65
|
}
|
|
55
66
|
};
|
|
56
67
|
|
|
@@ -67,6 +78,9 @@ const componentNameMapping = {
|
|
|
67
78
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
68
79
|
"financial-account": "stripe-connect-financial-account",
|
|
69
80
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
81
|
+
"capital-financing": "stripe-connect-capital-financing",
|
|
82
|
+
"capital-financing-application": "stripe-connect-capital-financing-application",
|
|
83
|
+
"capital-financing-promotion": "stripe-connect-capital-financing-promotion",
|
|
70
84
|
"capital-overview": "stripe-connect-capital-overview",
|
|
71
85
|
documents: "stripe-connect-documents",
|
|
72
86
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -217,7 +231,7 @@ const createWrapper = stripeConnect => {
|
|
|
217
231
|
sdk: true,
|
|
218
232
|
sdkOptions: {
|
|
219
233
|
// This will be replaced by the npm package version when bundling
|
|
220
|
-
sdkVersion: "3.3.
|
|
234
|
+
sdkVersion: "3.3.16-beta-1"
|
|
221
235
|
}
|
|
222
236
|
})
|
|
223
237
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -30,12 +30,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
30
30
|
},
|
|
31
31
|
"issuing-card": {
|
|
32
32
|
setDefaultCard: _defaultCard => {},
|
|
33
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
34
33
|
setCardSwitching: _cardSwitching => {},
|
|
35
34
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
36
35
|
},
|
|
37
36
|
"issuing-cards-list": {
|
|
38
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
39
37
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
40
38
|
},
|
|
41
39
|
"financial-account": {
|
|
@@ -55,6 +53,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
55
53
|
},
|
|
56
54
|
"payment-method-settings": {
|
|
57
55
|
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
56
|
+
},
|
|
57
|
+
"capital-financing": {
|
|
58
|
+
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
59
|
+
setShowFinancingSelector: _showFinancingSelector => {},
|
|
60
|
+
setFaqUrl: _faqUrl => {},
|
|
61
|
+
setSupportUrl: _supportUrl => {},
|
|
62
|
+
setOnFinancingsLoaded: _listener => {}
|
|
63
|
+
},
|
|
64
|
+
"capital-financing-application": {
|
|
65
|
+
setOnApplicationSubmitted: _listener => {}
|
|
66
|
+
},
|
|
67
|
+
"capital-financing-promotion": {
|
|
68
|
+
setOnApplicationSubmitted: _listener => {}
|
|
58
69
|
}
|
|
59
70
|
};
|
|
60
71
|
|
|
@@ -71,6 +82,9 @@ const componentNameMapping = {
|
|
|
71
82
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
72
83
|
"financial-account": "stripe-connect-financial-account",
|
|
73
84
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
85
|
+
"capital-financing": "stripe-connect-capital-financing",
|
|
86
|
+
"capital-financing-application": "stripe-connect-capital-financing-application",
|
|
87
|
+
"capital-financing-promotion": "stripe-connect-capital-financing-promotion",
|
|
74
88
|
"capital-overview": "stripe-connect-capital-overview",
|
|
75
89
|
documents: "stripe-connect-documents",
|
|
76
90
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -221,7 +235,7 @@ const createWrapper = stripeConnect => {
|
|
|
221
235
|
sdk: true,
|
|
222
236
|
sdkOptions: {
|
|
223
237
|
// This will be replaced by the npm package version when bundling
|
|
224
|
-
sdkVersion: "3.3.
|
|
238
|
+
sdkVersion: "3.3.16-beta-1"
|
|
225
239
|
}
|
|
226
240
|
})
|
|
227
241
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -26,12 +26,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
26
26
|
},
|
|
27
27
|
"issuing-card": {
|
|
28
28
|
setDefaultCard: _defaultCard => {},
|
|
29
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
30
29
|
setCardSwitching: _cardSwitching => {},
|
|
31
30
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
32
31
|
},
|
|
33
32
|
"issuing-cards-list": {
|
|
34
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
35
33
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
36
34
|
},
|
|
37
35
|
"financial-account": {
|
|
@@ -51,6 +49,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
51
49
|
},
|
|
52
50
|
"payment-method-settings": {
|
|
53
51
|
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
52
|
+
},
|
|
53
|
+
"capital-financing": {
|
|
54
|
+
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
55
|
+
setShowFinancingSelector: _showFinancingSelector => {},
|
|
56
|
+
setFaqUrl: _faqUrl => {},
|
|
57
|
+
setSupportUrl: _supportUrl => {},
|
|
58
|
+
setOnFinancingsLoaded: _listener => {}
|
|
59
|
+
},
|
|
60
|
+
"capital-financing-application": {
|
|
61
|
+
setOnApplicationSubmitted: _listener => {}
|
|
62
|
+
},
|
|
63
|
+
"capital-financing-promotion": {
|
|
64
|
+
setOnApplicationSubmitted: _listener => {}
|
|
54
65
|
}
|
|
55
66
|
};
|
|
56
67
|
|
|
@@ -67,6 +78,9 @@ const componentNameMapping = {
|
|
|
67
78
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
68
79
|
"financial-account": "stripe-connect-financial-account",
|
|
69
80
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
81
|
+
"capital-financing": "stripe-connect-capital-financing",
|
|
82
|
+
"capital-financing-application": "stripe-connect-capital-financing-application",
|
|
83
|
+
"capital-financing-promotion": "stripe-connect-capital-financing-promotion",
|
|
70
84
|
"capital-overview": "stripe-connect-capital-overview",
|
|
71
85
|
documents: "stripe-connect-documents",
|
|
72
86
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -217,7 +231,7 @@ const createWrapper = stripeConnect => {
|
|
|
217
231
|
sdk: true,
|
|
218
232
|
sdkOptions: {
|
|
219
233
|
// This will be replaced by the npm package version when bundling
|
|
220
|
-
sdkVersion: "3.3.
|
|
234
|
+
sdkVersion: "3.3.16-beta-1"
|
|
221
235
|
}
|
|
222
236
|
})
|
|
223
237
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -30,12 +30,10 @@ const ConnectElementCustomMethodConfig = {
|
|
|
30
30
|
},
|
|
31
31
|
"issuing-card": {
|
|
32
32
|
setDefaultCard: _defaultCard => {},
|
|
33
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
34
33
|
setCardSwitching: _cardSwitching => {},
|
|
35
34
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
36
35
|
},
|
|
37
36
|
"issuing-cards-list": {
|
|
38
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
39
37
|
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
40
38
|
},
|
|
41
39
|
"financial-account": {
|
|
@@ -55,6 +53,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
55
53
|
},
|
|
56
54
|
"payment-method-settings": {
|
|
57
55
|
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
56
|
+
},
|
|
57
|
+
"capital-financing": {
|
|
58
|
+
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
59
|
+
setShowFinancingSelector: _showFinancingSelector => {},
|
|
60
|
+
setFaqUrl: _faqUrl => {},
|
|
61
|
+
setSupportUrl: _supportUrl => {},
|
|
62
|
+
setOnFinancingsLoaded: _listener => {}
|
|
63
|
+
},
|
|
64
|
+
"capital-financing-application": {
|
|
65
|
+
setOnApplicationSubmitted: _listener => {}
|
|
66
|
+
},
|
|
67
|
+
"capital-financing-promotion": {
|
|
68
|
+
setOnApplicationSubmitted: _listener => {}
|
|
58
69
|
}
|
|
59
70
|
};
|
|
60
71
|
|
|
@@ -71,6 +82,9 @@ const componentNameMapping = {
|
|
|
71
82
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
72
83
|
"financial-account": "stripe-connect-financial-account",
|
|
73
84
|
"financial-account-transactions": "stripe-connect-financial-account-transactions",
|
|
85
|
+
"capital-financing": "stripe-connect-capital-financing",
|
|
86
|
+
"capital-financing-application": "stripe-connect-capital-financing-application",
|
|
87
|
+
"capital-financing-promotion": "stripe-connect-capital-financing-promotion",
|
|
74
88
|
"capital-overview": "stripe-connect-capital-overview",
|
|
75
89
|
documents: "stripe-connect-documents",
|
|
76
90
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -221,7 +235,7 @@ const createWrapper = stripeConnect => {
|
|
|
221
235
|
sdk: true,
|
|
222
236
|
sdkOptions: {
|
|
223
237
|
// This will be replaced by the npm package version when bundling
|
|
224
|
-
sdkVersion: "3.3.
|
|
238
|
+
sdkVersion: "3.3.16-beta-1"
|
|
225
239
|
}
|
|
226
240
|
})
|
|
227
241
|
}));
|
package/dist/src/shared.d.ts
CHANGED
|
@@ -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-capital-overview" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-app-install" | "stripe-connect-app-viewport";
|
|
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-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-app-install" | "stripe-connect-app-viewport";
|
|
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
|
@@ -80,12 +80,10 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
80
80
|
};
|
|
81
81
|
"issuing-card": {
|
|
82
82
|
setDefaultCard: (_defaultCard: string | undefined) => void;
|
|
83
|
-
setCardArtFileLink: (_cardArtFileLink: string | undefined) => void;
|
|
84
83
|
setCardSwitching: (_cardSwitching: boolean | undefined) => void;
|
|
85
84
|
setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
|
|
86
85
|
};
|
|
87
86
|
"issuing-cards-list": {
|
|
88
|
-
setCardArtFileLink: (_cardArtFileLink: string | undefined) => void;
|
|
89
87
|
setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
|
|
90
88
|
};
|
|
91
89
|
"financial-account": {
|
|
@@ -106,4 +104,19 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
106
104
|
"payment-method-settings": {
|
|
107
105
|
setPaymentMethodConfiguration: (_paymentMethodConfiguration: string | undefined) => void;
|
|
108
106
|
};
|
|
107
|
+
"capital-financing": {
|
|
108
|
+
setDefaultFinancingOffer: (_defaultFinancingOffer: string | undefined) => void;
|
|
109
|
+
setShowFinancingSelector: (_showFinancingSelector: boolean | undefined) => void;
|
|
110
|
+
setFaqUrl: (_faqUrl: string | undefined) => void;
|
|
111
|
+
setSupportUrl: (_supportUrl: string | undefined) => void;
|
|
112
|
+
setOnFinancingsLoaded: (_listener: (({ total }: {
|
|
113
|
+
total: number;
|
|
114
|
+
}) => void) | undefined) => void;
|
|
115
|
+
};
|
|
116
|
+
"capital-financing-application": {
|
|
117
|
+
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
118
|
+
};
|
|
119
|
+
"capital-financing-promotion": {
|
|
120
|
+
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
121
|
+
};
|
|
109
122
|
};
|
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -26,6 +26,9 @@ export type ConnectElementHTMLName =
|
|
|
26
26
|
| "stripe-connect-issuing-cards-list"
|
|
27
27
|
| "stripe-connect-financial-account"
|
|
28
28
|
| "stripe-connect-financial-account-transactions"
|
|
29
|
+
| "stripe-connect-capital-financing"
|
|
30
|
+
| "stripe-connect-capital-financing-application"
|
|
31
|
+
| "stripe-connect-capital-financing-promotion"
|
|
29
32
|
| "stripe-connect-capital-overview"
|
|
30
33
|
| "stripe-connect-documents"
|
|
31
34
|
| "stripe-connect-tax-registrations"
|
|
@@ -52,6 +55,10 @@ export const componentNameMapping: Record<
|
|
|
52
55
|
"financial-account": "stripe-connect-financial-account",
|
|
53
56
|
"financial-account-transactions":
|
|
54
57
|
"stripe-connect-financial-account-transactions",
|
|
58
|
+
"capital-financing": "stripe-connect-capital-financing",
|
|
59
|
+
"capital-financing-application":
|
|
60
|
+
"stripe-connect-capital-financing-application",
|
|
61
|
+
"capital-financing-promotion": "stripe-connect-capital-financing-promotion",
|
|
55
62
|
"capital-overview": "stripe-connect-capital-overview",
|
|
56
63
|
documents: "stripe-connect-documents",
|
|
57
64
|
"tax-registrations": "stripe-connect-tax-registrations",
|
package/types/config.ts
CHANGED
|
@@ -112,14 +112,12 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
112
112
|
},
|
|
113
113
|
"issuing-card": {
|
|
114
114
|
setDefaultCard: (_defaultCard: string | undefined): void => {},
|
|
115
|
-
setCardArtFileLink: (_cardArtFileLink: string | undefined): void => {},
|
|
116
115
|
setCardSwitching: (_cardSwitching: boolean | undefined): void => {},
|
|
117
116
|
setFetchEphemeralKey: (
|
|
118
117
|
_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
|
|
119
118
|
): void => {}
|
|
120
119
|
},
|
|
121
120
|
"issuing-cards-list": {
|
|
122
|
-
setCardArtFileLink: (_cardArtFileLink: string | undefined): void => {},
|
|
123
121
|
setFetchEphemeralKey: (
|
|
124
122
|
_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
|
|
125
123
|
): void => {}
|
|
@@ -147,5 +145,24 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
147
145
|
setPaymentMethodConfiguration: (
|
|
148
146
|
_paymentMethodConfiguration: string | undefined
|
|
149
147
|
): void => {}
|
|
148
|
+
},
|
|
149
|
+
"capital-financing": {
|
|
150
|
+
setDefaultFinancingOffer: (
|
|
151
|
+
_defaultFinancingOffer: string | undefined
|
|
152
|
+
): void => {},
|
|
153
|
+
setShowFinancingSelector: (
|
|
154
|
+
_showFinancingSelector: boolean | undefined
|
|
155
|
+
): void => {},
|
|
156
|
+
setFaqUrl: (_faqUrl: string | undefined): void => {},
|
|
157
|
+
setSupportUrl: (_supportUrl: string | undefined): void => {},
|
|
158
|
+
setOnFinancingsLoaded: (
|
|
159
|
+
_listener: (({ total }: { total: number }) => void) | undefined
|
|
160
|
+
): void => {}
|
|
161
|
+
},
|
|
162
|
+
"capital-financing-application": {
|
|
163
|
+
setOnApplicationSubmitted: (_listener: (() => void) | undefined): void => {}
|
|
164
|
+
},
|
|
165
|
+
"capital-financing-promotion": {
|
|
166
|
+
setOnApplicationSubmitted: (_listener: (() => void) | undefined): void => {}
|
|
150
167
|
}
|
|
151
168
|
};
|
package/types/shared.d.ts
CHANGED
|
@@ -463,6 +463,9 @@ export type ConnectElementTagName =
|
|
|
463
463
|
| "issuing-cards-list"
|
|
464
464
|
| "financial-account"
|
|
465
465
|
| "financial-account-transactions"
|
|
466
|
+
| "capital-financing"
|
|
467
|
+
| "capital-financing-application"
|
|
468
|
+
| "capital-financing-promotion"
|
|
466
469
|
| "capital-overview"
|
|
467
470
|
| "documents"
|
|
468
471
|
| "tax-registrations"
|