@stripe/connect-js 3.3.14-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 +20 -3
- package/dist/connect.js +20 -3
- package/dist/pure.esm.js +20 -3
- package/dist/pure.js +20 -3
- package/dist/src/shared.d.ts +1 -1
- package/dist/types/config.d.ts +18 -2
- package/package.json +1 -1
- package/src/shared.ts +7 -0
- package/types/config.ts +24 -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": {
|
|
@@ -48,6 +46,22 @@ const ConnectElementCustomMethodConfig = {
|
|
|
48
46
|
"app-viewport": {
|
|
49
47
|
setApp: _app => {},
|
|
50
48
|
setAppData: _appData => {}
|
|
49
|
+
},
|
|
50
|
+
"payment-method-settings": {
|
|
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 => {}
|
|
51
65
|
}
|
|
52
66
|
};
|
|
53
67
|
|
|
@@ -64,6 +78,9 @@ const componentNameMapping = {
|
|
|
64
78
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
65
79
|
"financial-account": "stripe-connect-financial-account",
|
|
66
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",
|
|
67
84
|
"capital-overview": "stripe-connect-capital-overview",
|
|
68
85
|
documents: "stripe-connect-documents",
|
|
69
86
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -214,7 +231,7 @@ const createWrapper = stripeConnect => {
|
|
|
214
231
|
sdk: true,
|
|
215
232
|
sdkOptions: {
|
|
216
233
|
// This will be replaced by the npm package version when bundling
|
|
217
|
-
sdkVersion: "3.3.
|
|
234
|
+
sdkVersion: "3.3.16-beta-1"
|
|
218
235
|
}
|
|
219
236
|
})
|
|
220
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": {
|
|
@@ -52,6 +50,22 @@ const ConnectElementCustomMethodConfig = {
|
|
|
52
50
|
"app-viewport": {
|
|
53
51
|
setApp: _app => {},
|
|
54
52
|
setAppData: _appData => {}
|
|
53
|
+
},
|
|
54
|
+
"payment-method-settings": {
|
|
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 => {}
|
|
55
69
|
}
|
|
56
70
|
};
|
|
57
71
|
|
|
@@ -68,6 +82,9 @@ const componentNameMapping = {
|
|
|
68
82
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
69
83
|
"financial-account": "stripe-connect-financial-account",
|
|
70
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",
|
|
71
88
|
"capital-overview": "stripe-connect-capital-overview",
|
|
72
89
|
documents: "stripe-connect-documents",
|
|
73
90
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -218,7 +235,7 @@ const createWrapper = stripeConnect => {
|
|
|
218
235
|
sdk: true,
|
|
219
236
|
sdkOptions: {
|
|
220
237
|
// This will be replaced by the npm package version when bundling
|
|
221
|
-
sdkVersion: "3.3.
|
|
238
|
+
sdkVersion: "3.3.16-beta-1"
|
|
222
239
|
}
|
|
223
240
|
})
|
|
224
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": {
|
|
@@ -48,6 +46,22 @@ const ConnectElementCustomMethodConfig = {
|
|
|
48
46
|
"app-viewport": {
|
|
49
47
|
setApp: _app => {},
|
|
50
48
|
setAppData: _appData => {}
|
|
49
|
+
},
|
|
50
|
+
"payment-method-settings": {
|
|
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 => {}
|
|
51
65
|
}
|
|
52
66
|
};
|
|
53
67
|
|
|
@@ -64,6 +78,9 @@ const componentNameMapping = {
|
|
|
64
78
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
65
79
|
"financial-account": "stripe-connect-financial-account",
|
|
66
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",
|
|
67
84
|
"capital-overview": "stripe-connect-capital-overview",
|
|
68
85
|
documents: "stripe-connect-documents",
|
|
69
86
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -214,7 +231,7 @@ const createWrapper = stripeConnect => {
|
|
|
214
231
|
sdk: true,
|
|
215
232
|
sdkOptions: {
|
|
216
233
|
// This will be replaced by the npm package version when bundling
|
|
217
|
-
sdkVersion: "3.3.
|
|
234
|
+
sdkVersion: "3.3.16-beta-1"
|
|
218
235
|
}
|
|
219
236
|
})
|
|
220
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": {
|
|
@@ -52,6 +50,22 @@ const ConnectElementCustomMethodConfig = {
|
|
|
52
50
|
"app-viewport": {
|
|
53
51
|
setApp: _app => {},
|
|
54
52
|
setAppData: _appData => {}
|
|
53
|
+
},
|
|
54
|
+
"payment-method-settings": {
|
|
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 => {}
|
|
55
69
|
}
|
|
56
70
|
};
|
|
57
71
|
|
|
@@ -68,6 +82,9 @@ const componentNameMapping = {
|
|
|
68
82
|
"issuing-cards-list": "stripe-connect-issuing-cards-list",
|
|
69
83
|
"financial-account": "stripe-connect-financial-account",
|
|
70
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",
|
|
71
88
|
"capital-overview": "stripe-connect-capital-overview",
|
|
72
89
|
documents: "stripe-connect-documents",
|
|
73
90
|
"tax-registrations": "stripe-connect-tax-registrations",
|
|
@@ -218,7 +235,7 @@ const createWrapper = stripeConnect => {
|
|
|
218
235
|
sdk: true,
|
|
219
236
|
sdkOptions: {
|
|
220
237
|
// This will be replaced by the npm package version when bundling
|
|
221
|
-
sdkVersion: "3.3.
|
|
238
|
+
sdkVersion: "3.3.16-beta-1"
|
|
222
239
|
}
|
|
223
240
|
})
|
|
224
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": {
|
|
@@ -103,4 +101,22 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
103
101
|
setApp: (_app: string | undefined) => void;
|
|
104
102
|
setAppData: (_appData: Record<string, string> | undefined) => void;
|
|
105
103
|
};
|
|
104
|
+
"payment-method-settings": {
|
|
105
|
+
setPaymentMethodConfiguration: (_paymentMethodConfiguration: string | undefined) => void;
|
|
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
|
+
};
|
|
106
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 => {}
|
|
@@ -142,5 +140,29 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
142
140
|
"app-viewport": {
|
|
143
141
|
setApp: (_app: string | undefined): void => {},
|
|
144
142
|
setAppData: (_appData: Record<string, string> | undefined): void => {}
|
|
143
|
+
},
|
|
144
|
+
"payment-method-settings": {
|
|
145
|
+
setPaymentMethodConfiguration: (
|
|
146
|
+
_paymentMethodConfiguration: string | undefined
|
|
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 => {}
|
|
145
167
|
}
|
|
146
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"
|