@stripe/connect-js 3.3.16-beta-1 → 3.3.17-beta-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.
@@ -61,7 +61,9 @@ const ConnectElementCustomMethodConfig = {
61
61
  setOnApplicationSubmitted: _listener => {}
62
62
  },
63
63
  "capital-financing-promotion": {
64
- setOnApplicationSubmitted: _listener => {}
64
+ setLayout: _layout => {},
65
+ setOnApplicationSubmitted: _listener => {},
66
+ setOnEligibleFinancingOfferLoaded: _listener => {}
65
67
  }
66
68
  };
67
69
 
@@ -231,7 +233,7 @@ const createWrapper = stripeConnect => {
231
233
  sdk: true,
232
234
  sdkOptions: {
233
235
  // This will be replaced by the npm package version when bundling
234
- sdkVersion: "3.3.16-beta-1"
236
+ sdkVersion: "3.3.17-beta-1"
235
237
  }
236
238
  })
237
239
  }));
package/dist/connect.js CHANGED
@@ -65,7 +65,9 @@ const ConnectElementCustomMethodConfig = {
65
65
  setOnApplicationSubmitted: _listener => {}
66
66
  },
67
67
  "capital-financing-promotion": {
68
- setOnApplicationSubmitted: _listener => {}
68
+ setLayout: _layout => {},
69
+ setOnApplicationSubmitted: _listener => {},
70
+ setOnEligibleFinancingOfferLoaded: _listener => {}
69
71
  }
70
72
  };
71
73
 
@@ -235,7 +237,7 @@ const createWrapper = stripeConnect => {
235
237
  sdk: true,
236
238
  sdkOptions: {
237
239
  // This will be replaced by the npm package version when bundling
238
- sdkVersion: "3.3.16-beta-1"
240
+ sdkVersion: "3.3.17-beta-1"
239
241
  }
240
242
  })
241
243
  }));
package/dist/pure.esm.js CHANGED
@@ -61,7 +61,9 @@ const ConnectElementCustomMethodConfig = {
61
61
  setOnApplicationSubmitted: _listener => {}
62
62
  },
63
63
  "capital-financing-promotion": {
64
- setOnApplicationSubmitted: _listener => {}
64
+ setLayout: _layout => {},
65
+ setOnApplicationSubmitted: _listener => {},
66
+ setOnEligibleFinancingOfferLoaded: _listener => {}
65
67
  }
66
68
  };
67
69
 
@@ -231,7 +233,7 @@ const createWrapper = stripeConnect => {
231
233
  sdk: true,
232
234
  sdkOptions: {
233
235
  // This will be replaced by the npm package version when bundling
234
- sdkVersion: "3.3.16-beta-1"
236
+ sdkVersion: "3.3.17-beta-1"
235
237
  }
236
238
  })
237
239
  }));
package/dist/pure.js CHANGED
@@ -65,7 +65,9 @@ const ConnectElementCustomMethodConfig = {
65
65
  setOnApplicationSubmitted: _listener => {}
66
66
  },
67
67
  "capital-financing-promotion": {
68
- setOnApplicationSubmitted: _listener => {}
68
+ setLayout: _layout => {},
69
+ setOnApplicationSubmitted: _listener => {},
70
+ setOnEligibleFinancingOfferLoaded: _listener => {}
69
71
  }
70
72
  };
71
73
 
@@ -235,7 +237,7 @@ const createWrapper = stripeConnect => {
235
237
  sdk: true,
236
238
  sdkOptions: {
237
239
  // This will be replaced by the npm package version when bundling
238
- sdkVersion: "3.3.16-beta-1"
240
+ sdkVersion: "3.3.17-beta-1"
239
241
  }
240
242
  })
241
243
  }));
@@ -29,6 +29,10 @@ export type EmbeddedError = {
29
29
  type: EmbeddedErrorType;
30
30
  message?: string;
31
31
  };
32
+ export type FinancingProductType = {
33
+ productType: "standard" | "refill" | "none";
34
+ };
35
+ export type FinancingPromotionLayoutType = "full" | "banner";
32
36
  export type EmbeddedErrorType =
33
37
  /**
34
38
  * Failure to connect to Stripe's API.
@@ -117,6 +121,8 @@ export declare const ConnectElementCustomMethodConfig: {
117
121
  setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
118
122
  };
119
123
  "capital-financing-promotion": {
124
+ setLayout: (_layout: FinancingPromotionLayoutType | undefined) => void;
120
125
  setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
126
+ setOnEligibleFinancingOfferLoaded: (_listener: (({ productType }: FinancingProductType) => void) | undefined) => void;
121
127
  };
122
128
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.16-beta-1",
3
+ "version": "3.3.17-beta-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
@@ -39,6 +39,12 @@ export type EmbeddedError = {
39
39
  message?: string;
40
40
  };
41
41
 
42
+ export type FinancingProductType = {
43
+ productType: "standard" | "refill" | "none";
44
+ };
45
+
46
+ export type FinancingPromotionLayoutType = "full" | "banner";
47
+
42
48
  export type EmbeddedErrorType =
43
49
  /**
44
50
  * Failure to connect to Stripe's API.
@@ -163,6 +169,12 @@ export const ConnectElementCustomMethodConfig = {
163
169
  setOnApplicationSubmitted: (_listener: (() => void) | undefined): void => {}
164
170
  },
165
171
  "capital-financing-promotion": {
166
- setOnApplicationSubmitted: (_listener: (() => void) | undefined): void => {}
172
+ setLayout: (_layout: FinancingPromotionLayoutType | undefined): void => {},
173
+ setOnApplicationSubmitted: (
174
+ _listener: (() => void) | undefined
175
+ ): void => {},
176
+ setOnEligibleFinancingOfferLoaded: (
177
+ _listener: (({ productType }: FinancingProductType) => void) | undefined
178
+ ): void => {}
167
179
  }
168
180
  };