@stripe/connect-js 3.3.22-preview-2 → 3.3.23-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.
@@ -265,7 +265,7 @@ const createWrapper = stripeConnect => {
265
265
  sdk: true,
266
266
  sdkOptions: {
267
267
  // This will be replaced by the npm package version when bundling
268
- sdkVersion: "3.3.22-preview-2"
268
+ sdkVersion: "3.3.23-preview-1"
269
269
  }
270
270
  })
271
271
  }));
package/dist/connect.js CHANGED
@@ -269,7 +269,7 @@ const createWrapper = stripeConnect => {
269
269
  sdk: true,
270
270
  sdkOptions: {
271
271
  // This will be replaced by the npm package version when bundling
272
- sdkVersion: "3.3.22-preview-2"
272
+ sdkVersion: "3.3.23-preview-1"
273
273
  }
274
274
  })
275
275
  }));
package/dist/pure.esm.js CHANGED
@@ -265,7 +265,7 @@ const createWrapper = stripeConnect => {
265
265
  sdk: true,
266
266
  sdkOptions: {
267
267
  // This will be replaced by the npm package version when bundling
268
- sdkVersion: "3.3.22-preview-2"
268
+ sdkVersion: "3.3.23-preview-1"
269
269
  }
270
270
  })
271
271
  }));
package/dist/pure.js CHANGED
@@ -269,7 +269,7 @@ const createWrapper = stripeConnect => {
269
269
  sdk: true,
270
270
  sdkOptions: {
271
271
  // This will be replaced by the npm package version when bundling
272
- sdkVersion: "3.3.22-preview-2"
272
+ sdkVersion: "3.3.23-preview-1"
273
273
  }
274
274
  })
275
275
  }));
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.22-preview-2",
3
+ "version": "3.3.23-preview-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
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: (({ productType }: FinancingProductType) => void) | undefined
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: (