@stripe/connect-js 3.3.16-beta-1 → 3.3.18-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/README.md +2 -3
- package/dist/connect.esm.js +6 -3
- package/dist/connect.js +6 -3
- package/dist/pure.esm.js +6 -3
- package/dist/pure.js +6 -3
- package/dist/types/config.d.ts +10 -0
- package/package.json +1 -1
- package/types/config.ts +21 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Calling `loadConnectAndInitialize` always loads the latest version of Connect.js
|
|
|
7
7
|
|
|
8
8
|
The embedded onboarding component is generally available now. Please refer to our [documentation](https://stripe.com/docs/connect/supported-embedded-components#account-onboarding) for more information.
|
|
9
9
|
|
|
10
|
-
Note:
|
|
10
|
+
Note: Some Connect embedded components are currently still in preview. These can be [viewed on our doc site](https://docs.stripe.com/connect/supported-embedded-components), where you can also request preview access.
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
@@ -20,8 +20,7 @@ npm install @stripe/connect-js
|
|
|
20
20
|
## Documentation
|
|
21
21
|
|
|
22
22
|
- [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
|
|
23
|
-
- [Quickstart guide
|
|
24
|
-
- [Quickstart guide for beta](https://stripe.com/docs/connect/connect-embedded-components/beta-quickstart)
|
|
23
|
+
- [Quickstart guide](https://stripe.com/docs/connect/connect-embedded-components/quickstart)
|
|
25
24
|
|
|
26
25
|
## Usage
|
|
27
26
|
|
package/dist/connect.esm.js
CHANGED
|
@@ -15,7 +15,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
15
15
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
16
16
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
17
17
|
setCollectionOptions: _collectionOptions => {},
|
|
18
|
-
setOnExit: _listener => {}
|
|
18
|
+
setOnExit: _listener => {},
|
|
19
|
+
setOnStepChange: _listener => {}
|
|
19
20
|
},
|
|
20
21
|
"account-management": {
|
|
21
22
|
setCollectionOptions: _collectionOptions => {}
|
|
@@ -61,7 +62,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
61
62
|
setOnApplicationSubmitted: _listener => {}
|
|
62
63
|
},
|
|
63
64
|
"capital-financing-promotion": {
|
|
64
|
-
|
|
65
|
+
setLayout: _layout => {},
|
|
66
|
+
setOnApplicationSubmitted: _listener => {},
|
|
67
|
+
setOnEligibleFinancingOfferLoaded: _listener => {}
|
|
65
68
|
}
|
|
66
69
|
};
|
|
67
70
|
|
|
@@ -231,7 +234,7 @@ const createWrapper = stripeConnect => {
|
|
|
231
234
|
sdk: true,
|
|
232
235
|
sdkOptions: {
|
|
233
236
|
// This will be replaced by the npm package version when bundling
|
|
234
|
-
sdkVersion: "3.3.
|
|
237
|
+
sdkVersion: "3.3.18-preview-1"
|
|
235
238
|
}
|
|
236
239
|
})
|
|
237
240
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -19,7 +19,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
19
19
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
20
20
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
21
21
|
setCollectionOptions: _collectionOptions => {},
|
|
22
|
-
setOnExit: _listener => {}
|
|
22
|
+
setOnExit: _listener => {},
|
|
23
|
+
setOnStepChange: _listener => {}
|
|
23
24
|
},
|
|
24
25
|
"account-management": {
|
|
25
26
|
setCollectionOptions: _collectionOptions => {}
|
|
@@ -65,7 +66,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
65
66
|
setOnApplicationSubmitted: _listener => {}
|
|
66
67
|
},
|
|
67
68
|
"capital-financing-promotion": {
|
|
68
|
-
|
|
69
|
+
setLayout: _layout => {},
|
|
70
|
+
setOnApplicationSubmitted: _listener => {},
|
|
71
|
+
setOnEligibleFinancingOfferLoaded: _listener => {}
|
|
69
72
|
}
|
|
70
73
|
};
|
|
71
74
|
|
|
@@ -235,7 +238,7 @@ const createWrapper = stripeConnect => {
|
|
|
235
238
|
sdk: true,
|
|
236
239
|
sdkOptions: {
|
|
237
240
|
// This will be replaced by the npm package version when bundling
|
|
238
|
-
sdkVersion: "3.3.
|
|
241
|
+
sdkVersion: "3.3.18-preview-1"
|
|
239
242
|
}
|
|
240
243
|
})
|
|
241
244
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -15,7 +15,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
15
15
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
16
16
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
17
17
|
setCollectionOptions: _collectionOptions => {},
|
|
18
|
-
setOnExit: _listener => {}
|
|
18
|
+
setOnExit: _listener => {},
|
|
19
|
+
setOnStepChange: _listener => {}
|
|
19
20
|
},
|
|
20
21
|
"account-management": {
|
|
21
22
|
setCollectionOptions: _collectionOptions => {}
|
|
@@ -61,7 +62,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
61
62
|
setOnApplicationSubmitted: _listener => {}
|
|
62
63
|
},
|
|
63
64
|
"capital-financing-promotion": {
|
|
64
|
-
|
|
65
|
+
setLayout: _layout => {},
|
|
66
|
+
setOnApplicationSubmitted: _listener => {},
|
|
67
|
+
setOnEligibleFinancingOfferLoaded: _listener => {}
|
|
65
68
|
}
|
|
66
69
|
};
|
|
67
70
|
|
|
@@ -231,7 +234,7 @@ const createWrapper = stripeConnect => {
|
|
|
231
234
|
sdk: true,
|
|
232
235
|
sdkOptions: {
|
|
233
236
|
// This will be replaced by the npm package version when bundling
|
|
234
|
-
sdkVersion: "3.3.
|
|
237
|
+
sdkVersion: "3.3.18-preview-1"
|
|
235
238
|
}
|
|
236
239
|
})
|
|
237
240
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -19,7 +19,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
19
19
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
20
20
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
21
21
|
setCollectionOptions: _collectionOptions => {},
|
|
22
|
-
setOnExit: _listener => {}
|
|
22
|
+
setOnExit: _listener => {},
|
|
23
|
+
setOnStepChange: _listener => {}
|
|
23
24
|
},
|
|
24
25
|
"account-management": {
|
|
25
26
|
setCollectionOptions: _collectionOptions => {}
|
|
@@ -65,7 +66,9 @@ const ConnectElementCustomMethodConfig = {
|
|
|
65
66
|
setOnApplicationSubmitted: _listener => {}
|
|
66
67
|
},
|
|
67
68
|
"capital-financing-promotion": {
|
|
68
|
-
|
|
69
|
+
setLayout: _layout => {},
|
|
70
|
+
setOnApplicationSubmitted: _listener => {},
|
|
71
|
+
setOnEligibleFinancingOfferLoaded: _listener => {}
|
|
69
72
|
}
|
|
70
73
|
};
|
|
71
74
|
|
|
@@ -235,7 +238,7 @@ const createWrapper = stripeConnect => {
|
|
|
235
238
|
sdk: true,
|
|
236
239
|
sdkOptions: {
|
|
237
240
|
// This will be replaced by the npm package version when bundling
|
|
238
|
-
sdkVersion: "3.3.
|
|
241
|
+
sdkVersion: "3.3.18-preview-1"
|
|
239
242
|
}
|
|
240
243
|
})
|
|
241
244
|
}));
|
package/dist/types/config.d.ts
CHANGED
|
@@ -25,10 +25,17 @@ export type LoadError = {
|
|
|
25
25
|
elementTagName: string;
|
|
26
26
|
error: EmbeddedError;
|
|
27
27
|
};
|
|
28
|
+
export type StepChange = {
|
|
29
|
+
step: string;
|
|
30
|
+
};
|
|
28
31
|
export type EmbeddedError = {
|
|
29
32
|
type: EmbeddedErrorType;
|
|
30
33
|
message?: string;
|
|
31
34
|
};
|
|
35
|
+
export type FinancingProductType = {
|
|
36
|
+
productType: "standard" | "refill" | "none";
|
|
37
|
+
};
|
|
38
|
+
export type FinancingPromotionLayoutType = "full" | "banner";
|
|
32
39
|
export type EmbeddedErrorType =
|
|
33
40
|
/**
|
|
34
41
|
* Failure to connect to Stripe's API.
|
|
@@ -70,6 +77,7 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
70
77
|
setSkipTermsOfServiceCollection: (_skipTermsOfServiceCollection: boolean | undefined) => void;
|
|
71
78
|
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
|
72
79
|
setOnExit: (_listener: (() => void) | undefined) => void;
|
|
80
|
+
setOnStepChange: (_listener: (({ step }: StepChange) => void) | undefined) => void;
|
|
73
81
|
};
|
|
74
82
|
"account-management": {
|
|
75
83
|
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
|
@@ -117,6 +125,8 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
117
125
|
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
118
126
|
};
|
|
119
127
|
"capital-financing-promotion": {
|
|
128
|
+
setLayout: (_layout: FinancingPromotionLayoutType | undefined) => void;
|
|
120
129
|
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
130
|
+
setOnEligibleFinancingOfferLoaded: (_listener: (({ productType }: FinancingProductType) => void) | undefined) => void;
|
|
121
131
|
};
|
|
122
132
|
};
|
package/package.json
CHANGED
package/types/config.ts
CHANGED
|
@@ -34,11 +34,21 @@ export type LoadError = {
|
|
|
34
34
|
error: EmbeddedError;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
export type StepChange = {
|
|
38
|
+
step: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
37
41
|
export type EmbeddedError = {
|
|
38
42
|
type: EmbeddedErrorType;
|
|
39
43
|
message?: string;
|
|
40
44
|
};
|
|
41
45
|
|
|
46
|
+
export type FinancingProductType = {
|
|
47
|
+
productType: "standard" | "refill" | "none";
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type FinancingPromotionLayoutType = "full" | "banner";
|
|
51
|
+
|
|
42
52
|
export type EmbeddedErrorType =
|
|
43
53
|
/**
|
|
44
54
|
* Failure to connect to Stripe's API.
|
|
@@ -93,7 +103,10 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
93
103
|
setCollectionOptions: (
|
|
94
104
|
_collectionOptions: CollectionOptions | undefined
|
|
95
105
|
): void => {},
|
|
96
|
-
setOnExit: (_listener: (() => void) | undefined): void => {}
|
|
106
|
+
setOnExit: (_listener: (() => void) | undefined): void => {},
|
|
107
|
+
setOnStepChange: (
|
|
108
|
+
_listener: (({ step }: StepChange) => void) | undefined
|
|
109
|
+
): void => {}
|
|
97
110
|
},
|
|
98
111
|
"account-management": {
|
|
99
112
|
setCollectionOptions: (
|
|
@@ -163,6 +176,12 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
163
176
|
setOnApplicationSubmitted: (_listener: (() => void) | undefined): void => {}
|
|
164
177
|
},
|
|
165
178
|
"capital-financing-promotion": {
|
|
166
|
-
|
|
179
|
+
setLayout: (_layout: FinancingPromotionLayoutType | undefined): void => {},
|
|
180
|
+
setOnApplicationSubmitted: (
|
|
181
|
+
_listener: (() => void) | undefined
|
|
182
|
+
): void => {},
|
|
183
|
+
setOnEligibleFinancingOfferLoaded: (
|
|
184
|
+
_listener: (({ productType }: FinancingProductType) => void) | undefined
|
|
185
|
+
): void => {}
|
|
167
186
|
}
|
|
168
187
|
};
|