@stripe/connect-js 3.4.5-preview.0 → 3.4.6-preview.0
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.
|
@@ -62,6 +62,9 @@ export type LoadError = {
|
|
|
62
62
|
export type StepChange = {
|
|
63
63
|
step: string;
|
|
64
64
|
};
|
|
65
|
+
export type SectionOpen = {
|
|
66
|
+
sectionName: string;
|
|
67
|
+
};
|
|
65
68
|
export type EmbeddedError = {
|
|
66
69
|
type: EmbeddedErrorType;
|
|
67
70
|
message?: string;
|
|
@@ -132,6 +135,7 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
132
135
|
};
|
|
133
136
|
"account-management": {
|
|
134
137
|
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
|
138
|
+
setOnSectionOpen: (_listener: (({ sectionName }: SectionOpen) => void) | undefined) => void;
|
|
135
139
|
};
|
|
136
140
|
"notification-banner": {
|
|
137
141
|
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
package/dist/connect.esm.js
CHANGED
|
@@ -27,7 +27,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
27
27
|
setOnStepChange: _listener => {}
|
|
28
28
|
},
|
|
29
29
|
"account-management": {
|
|
30
|
-
setCollectionOptions: _collectionOptions => {}
|
|
30
|
+
setCollectionOptions: _collectionOptions => {},
|
|
31
|
+
setOnSectionOpen: _listener => {}
|
|
31
32
|
},
|
|
32
33
|
"notification-banner": {
|
|
33
34
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -236,7 +237,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
236
237
|
element[method] = function (value) {
|
|
237
238
|
stripeConnectInstance.then(() => {
|
|
238
239
|
if (!this[`${method}InternalOnly`]) {
|
|
239
|
-
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.
|
|
240
|
+
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-preview.0`);
|
|
240
241
|
}
|
|
241
242
|
this[`${method}InternalOnly`](value);
|
|
242
243
|
});
|
|
@@ -290,7 +291,7 @@ const createWrapper = stripeConnect => {
|
|
|
290
291
|
sdk: true,
|
|
291
292
|
sdkOptions: {
|
|
292
293
|
// This will be replaced by the npm package version when bundling
|
|
293
|
-
sdkVersion: "3.4.
|
|
294
|
+
sdkVersion: "3.4.6-preview.0"
|
|
294
295
|
}
|
|
295
296
|
})
|
|
296
297
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -31,7 +31,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
31
31
|
setOnStepChange: _listener => {}
|
|
32
32
|
},
|
|
33
33
|
"account-management": {
|
|
34
|
-
setCollectionOptions: _collectionOptions => {}
|
|
34
|
+
setCollectionOptions: _collectionOptions => {},
|
|
35
|
+
setOnSectionOpen: _listener => {}
|
|
35
36
|
},
|
|
36
37
|
"notification-banner": {
|
|
37
38
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -240,7 +241,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
240
241
|
element[method] = function (value) {
|
|
241
242
|
stripeConnectInstance.then(() => {
|
|
242
243
|
if (!this[`${method}InternalOnly`]) {
|
|
243
|
-
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.
|
|
244
|
+
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-preview.0`);
|
|
244
245
|
}
|
|
245
246
|
this[`${method}InternalOnly`](value);
|
|
246
247
|
});
|
|
@@ -294,7 +295,7 @@ const createWrapper = stripeConnect => {
|
|
|
294
295
|
sdk: true,
|
|
295
296
|
sdkOptions: {
|
|
296
297
|
// This will be replaced by the npm package version when bundling
|
|
297
|
-
sdkVersion: "3.4.
|
|
298
|
+
sdkVersion: "3.4.6-preview.0"
|
|
298
299
|
}
|
|
299
300
|
})
|
|
300
301
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -27,7 +27,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
27
27
|
setOnStepChange: _listener => {}
|
|
28
28
|
},
|
|
29
29
|
"account-management": {
|
|
30
|
-
setCollectionOptions: _collectionOptions => {}
|
|
30
|
+
setCollectionOptions: _collectionOptions => {},
|
|
31
|
+
setOnSectionOpen: _listener => {}
|
|
31
32
|
},
|
|
32
33
|
"notification-banner": {
|
|
33
34
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -236,7 +237,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
236
237
|
element[method] = function (value) {
|
|
237
238
|
stripeConnectInstance.then(() => {
|
|
238
239
|
if (!this[`${method}InternalOnly`]) {
|
|
239
|
-
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.
|
|
240
|
+
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-preview.0`);
|
|
240
241
|
}
|
|
241
242
|
this[`${method}InternalOnly`](value);
|
|
242
243
|
});
|
|
@@ -290,7 +291,7 @@ const createWrapper = stripeConnect => {
|
|
|
290
291
|
sdk: true,
|
|
291
292
|
sdkOptions: {
|
|
292
293
|
// This will be replaced by the npm package version when bundling
|
|
293
|
-
sdkVersion: "3.4.
|
|
294
|
+
sdkVersion: "3.4.6-preview.0"
|
|
294
295
|
}
|
|
295
296
|
})
|
|
296
297
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -31,7 +31,8 @@ const ConnectElementCustomMethodConfig = {
|
|
|
31
31
|
setOnStepChange: _listener => {}
|
|
32
32
|
},
|
|
33
33
|
"account-management": {
|
|
34
|
-
setCollectionOptions: _collectionOptions => {}
|
|
34
|
+
setCollectionOptions: _collectionOptions => {},
|
|
35
|
+
setOnSectionOpen: _listener => {}
|
|
35
36
|
},
|
|
36
37
|
"notification-banner": {
|
|
37
38
|
setCollectionOptions: _collectionOptions => {},
|
|
@@ -240,7 +241,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
240
241
|
element[method] = function (value) {
|
|
241
242
|
stripeConnectInstance.then(() => {
|
|
242
243
|
if (!this[`${method}InternalOnly`]) {
|
|
243
|
-
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.
|
|
244
|
+
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-preview.0`);
|
|
244
245
|
}
|
|
245
246
|
this[`${method}InternalOnly`](value);
|
|
246
247
|
});
|
|
@@ -294,7 +295,7 @@ const createWrapper = stripeConnect => {
|
|
|
294
295
|
sdk: true,
|
|
295
296
|
sdkOptions: {
|
|
296
297
|
// This will be replaced by the npm package version when bundling
|
|
297
|
-
sdkVersion: "3.4.
|
|
298
|
+
sdkVersion: "3.4.6-preview.0"
|
|
298
299
|
}
|
|
299
300
|
})
|
|
300
301
|
}));
|
package/package.json
CHANGED
|
@@ -207,6 +207,10 @@ export type StepChange = {
|
|
|
207
207
|
step: string;
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
+
export type SectionOpen = {
|
|
211
|
+
sectionName: string;
|
|
212
|
+
};
|
|
213
|
+
|
|
210
214
|
export type EmbeddedError = {
|
|
211
215
|
type: EmbeddedErrorType;
|
|
212
216
|
message?: string;
|
|
@@ -303,6 +307,9 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
303
307
|
setCollectionOptions: (
|
|
304
308
|
_collectionOptions: CollectionOptions | undefined
|
|
305
309
|
): void => {},
|
|
310
|
+
setOnSectionOpen: (
|
|
311
|
+
_listener: (({ sectionName }: SectionOpen) => void) | undefined
|
|
312
|
+
): void => {},
|
|
306
313
|
},
|
|
307
314
|
"notification-banner": {
|
|
308
315
|
setCollectionOptions: (
|