@stripe/connect-js 3.4.5 → 3.4.6
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.
|
@@ -58,6 +58,9 @@ export type LoadError = {
|
|
|
58
58
|
export type StepChange = {
|
|
59
59
|
step: string;
|
|
60
60
|
};
|
|
61
|
+
export type SectionOpen = {
|
|
62
|
+
sectionName: string;
|
|
63
|
+
};
|
|
61
64
|
export type EmbeddedError = {
|
|
62
65
|
type: EmbeddedErrorType;
|
|
63
66
|
message?: string;
|
|
@@ -107,6 +110,7 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
107
110
|
};
|
|
108
111
|
"account-management": {
|
|
109
112
|
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
|
113
|
+
setOnSectionOpen: (_listener: (({ sectionName }: SectionOpen) => void) | undefined) => void;
|
|
110
114
|
};
|
|
111
115
|
"notification-banner": {
|
|
112
116
|
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
package/dist/connect.esm.js
CHANGED
|
@@ -16,7 +16,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
16
16
|
setOnStepChange: _listener => {}
|
|
17
17
|
},
|
|
18
18
|
"account-management": {
|
|
19
|
-
setCollectionOptions: _collectionOptions => {}
|
|
19
|
+
setCollectionOptions: _collectionOptions => {},
|
|
20
|
+
setOnSectionOpen: _listener => {}
|
|
20
21
|
},
|
|
21
22
|
"notification-banner": {
|
|
22
23
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -173,7 +174,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
173
174
|
element[method] = function (value) {
|
|
174
175
|
stripeConnectInstance.then(() => {
|
|
175
176
|
if (!this[`${method}InternalOnly`]) {
|
|
176
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.
|
|
177
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.6`);
|
|
177
178
|
}
|
|
178
179
|
this[`${method}InternalOnly`](value);
|
|
179
180
|
});
|
|
@@ -227,7 +228,7 @@ const createWrapper = stripeConnect => {
|
|
|
227
228
|
sdk: true,
|
|
228
229
|
sdkOptions: {
|
|
229
230
|
// This will be replaced by the npm package version when bundling
|
|
230
|
-
sdkVersion: "3.4.
|
|
231
|
+
sdkVersion: "3.4.6"
|
|
231
232
|
}
|
|
232
233
|
})
|
|
233
234
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -20,7 +20,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
20
20
|
setOnStepChange: _listener => {}
|
|
21
21
|
},
|
|
22
22
|
"account-management": {
|
|
23
|
-
setCollectionOptions: _collectionOptions => {}
|
|
23
|
+
setCollectionOptions: _collectionOptions => {},
|
|
24
|
+
setOnSectionOpen: _listener => {}
|
|
24
25
|
},
|
|
25
26
|
"notification-banner": {
|
|
26
27
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -177,7 +178,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
177
178
|
element[method] = function (value) {
|
|
178
179
|
stripeConnectInstance.then(() => {
|
|
179
180
|
if (!this[`${method}InternalOnly`]) {
|
|
180
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.
|
|
181
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.6`);
|
|
181
182
|
}
|
|
182
183
|
this[`${method}InternalOnly`](value);
|
|
183
184
|
});
|
|
@@ -231,7 +232,7 @@ const createWrapper = stripeConnect => {
|
|
|
231
232
|
sdk: true,
|
|
232
233
|
sdkOptions: {
|
|
233
234
|
// This will be replaced by the npm package version when bundling
|
|
234
|
-
sdkVersion: "3.4.
|
|
235
|
+
sdkVersion: "3.4.6"
|
|
235
236
|
}
|
|
236
237
|
})
|
|
237
238
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -16,7 +16,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
16
16
|
setOnStepChange: _listener => {}
|
|
17
17
|
},
|
|
18
18
|
"account-management": {
|
|
19
|
-
setCollectionOptions: _collectionOptions => {}
|
|
19
|
+
setCollectionOptions: _collectionOptions => {},
|
|
20
|
+
setOnSectionOpen: _listener => {}
|
|
20
21
|
},
|
|
21
22
|
"notification-banner": {
|
|
22
23
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -173,7 +174,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
173
174
|
element[method] = function (value) {
|
|
174
175
|
stripeConnectInstance.then(() => {
|
|
175
176
|
if (!this[`${method}InternalOnly`]) {
|
|
176
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.
|
|
177
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.6`);
|
|
177
178
|
}
|
|
178
179
|
this[`${method}InternalOnly`](value);
|
|
179
180
|
});
|
|
@@ -227,7 +228,7 @@ const createWrapper = stripeConnect => {
|
|
|
227
228
|
sdk: true,
|
|
228
229
|
sdkOptions: {
|
|
229
230
|
// This will be replaced by the npm package version when bundling
|
|
230
|
-
sdkVersion: "3.4.
|
|
231
|
+
sdkVersion: "3.4.6"
|
|
231
232
|
}
|
|
232
233
|
})
|
|
233
234
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -20,7 +20,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
20
20
|
setOnStepChange: _listener => {}
|
|
21
21
|
},
|
|
22
22
|
"account-management": {
|
|
23
|
-
setCollectionOptions: _collectionOptions => {}
|
|
23
|
+
setCollectionOptions: _collectionOptions => {},
|
|
24
|
+
setOnSectionOpen: _listener => {}
|
|
24
25
|
},
|
|
25
26
|
"notification-banner": {
|
|
26
27
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -177,7 +178,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
177
178
|
element[method] = function (value) {
|
|
178
179
|
stripeConnectInstance.then(() => {
|
|
179
180
|
if (!this[`${method}InternalOnly`]) {
|
|
180
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.
|
|
181
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.6`);
|
|
181
182
|
}
|
|
182
183
|
this[`${method}InternalOnly`](value);
|
|
183
184
|
});
|
|
@@ -231,7 +232,7 @@ const createWrapper = stripeConnect => {
|
|
|
231
232
|
sdk: true,
|
|
232
233
|
sdkOptions: {
|
|
233
234
|
// This will be replaced by the npm package version when bundling
|
|
234
|
-
sdkVersion: "3.4.
|
|
235
|
+
sdkVersion: "3.4.6"
|
|
235
236
|
}
|
|
236
237
|
})
|
|
237
238
|
}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/connect-js",
|
|
3
|
-
"version": "3.4.
|
|
4
|
-
"description": "Connect.js loading utility package (
|
|
3
|
+
"version": "3.4.6",
|
|
4
|
+
"description": "Connect.js loading utility package (GA version)",
|
|
5
5
|
"main": "dist/connect.js",
|
|
6
6
|
"module": "dist/connect.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -179,6 +179,10 @@ export type StepChange = {
|
|
|
179
179
|
step: string;
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
+
export type SectionOpen = {
|
|
183
|
+
sectionName: string;
|
|
184
|
+
};
|
|
185
|
+
|
|
182
186
|
export type EmbeddedError = {
|
|
183
187
|
type: EmbeddedErrorType;
|
|
184
188
|
message?: string;
|
|
@@ -247,6 +251,9 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
247
251
|
setCollectionOptions: (
|
|
248
252
|
_collectionOptions: CollectionOptions | undefined
|
|
249
253
|
): void => {},
|
|
254
|
+
setOnSectionOpen: (
|
|
255
|
+
_listener: (({ sectionName }: SectionOpen) => void) | undefined
|
|
256
|
+
): void => {},
|
|
250
257
|
},
|
|
251
258
|
"notification-banner": {
|
|
252
259
|
setCollectionOptions: (
|