@stripe/connect-js 3.3.22-preview-2 → 3.3.24-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/dist/connect.esm.js +1 -1
- package/dist/connect.js +1 -1
- package/dist/pure.esm.js +1 -1
- package/dist/pure.js +1 -1
- package/dist/types/config.d.ts +2 -1
- package/package.json +1 -1
- package/types/config.ts +7 -1
package/dist/connect.esm.js
CHANGED
package/dist/connect.js
CHANGED
package/dist/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/types/config.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export type EmbeddedError = {
|
|
|
62
62
|
};
|
|
63
63
|
export type FinancingProductType = {
|
|
64
64
|
productType: "standard" | "refill" | "none";
|
|
65
|
+
activeFinancingCount: number;
|
|
65
66
|
};
|
|
66
67
|
export type FinancingPromotionLayoutType = "full" | "banner";
|
|
67
68
|
export type IntervalType = "day" | "week" | "month" | "quarter" | "year";
|
|
@@ -169,7 +170,7 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
169
170
|
"capital-financing-promotion": {
|
|
170
171
|
setLayout: (_layout: FinancingPromotionLayoutType | undefined) => void;
|
|
171
172
|
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
172
|
-
setOnEligibleFinancingOfferLoaded: (_listener: (({ productType }: FinancingProductType) => void) | undefined) => void;
|
|
173
|
+
setOnEligibleFinancingOfferLoaded: (_listener: (({ productType, activeFinancingCount }: FinancingProductType) => void) | undefined) => void;
|
|
173
174
|
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
|
|
174
175
|
setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
|
|
175
176
|
setEligibilityCriteriaUrl: (_eligibilityCriteriaUrl: string | undefined) => void;
|
package/package.json
CHANGED
package/types/config.ts
CHANGED
|
@@ -159,6 +159,7 @@ export type EmbeddedError = {
|
|
|
159
159
|
|
|
160
160
|
export type FinancingProductType = {
|
|
161
161
|
productType: "standard" | "refill" | "none";
|
|
162
|
+
activeFinancingCount: number;
|
|
162
163
|
};
|
|
163
164
|
|
|
164
165
|
export type FinancingPromotionLayoutType = "full" | "banner";
|
|
@@ -318,7 +319,12 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
318
319
|
_listener: (() => void) | undefined
|
|
319
320
|
): void => {},
|
|
320
321
|
setOnEligibleFinancingOfferLoaded: (
|
|
321
|
-
_listener:
|
|
322
|
+
_listener:
|
|
323
|
+
| (({
|
|
324
|
+
productType,
|
|
325
|
+
activeFinancingCount
|
|
326
|
+
}: FinancingProductType) => void)
|
|
327
|
+
| undefined
|
|
322
328
|
): void => {},
|
|
323
329
|
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined): void => {},
|
|
324
330
|
setHowCapitalWorksUrl: (
|