@stripe/connect-js 3.4.9-preview.0 → 3.4.9-preview.2

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.
@@ -204,7 +204,7 @@ export declare const ConnectElementCustomMethodConfig: {
204
204
  setResumeInitiatedApplication: (_resumeInitiatedApplication: boolean | undefined) => void;
205
205
  };
206
206
  "capital-financing-manual-payment": {
207
- setPresentationMode: (_presentationMode: CapitalFinancingManualPaymentPresentationMode) => void;
207
+ setPresentationMode: (_presentationMode: CapitalFinancingManualPaymentPresentationMode | undefined) => void;
208
208
  setOnManualPaymentSubmitted: (_listener: (() => void) | undefined) => void;
209
209
  setOnOverlayClosed: (_listener: (() => void) | undefined) => void;
210
210
  };
@@ -220,6 +220,7 @@ export declare const ConnectElementCustomMethodConfig: {
220
220
  setDisableNestedCapitalFinancingApplication: (_disableNestedCapitalFinancingApplication: boolean | undefined) => void;
221
221
  };
222
222
  "reporting-chart": {
223
+ setHeight: (_height: string | undefined) => void;
223
224
  setReportName: (_reportName: ReportName) => void;
224
225
  setIntervalStart: (_intervalStart: Date | undefined) => void;
225
226
  setIntervalEnd: (_intervalEnd: Date | undefined) => void;
@@ -106,6 +106,7 @@ const ConnectElementCustomMethodConfig = {
106
106
  setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
107
107
  },
108
108
  "reporting-chart": {
109
+ setHeight: _height => {},
109
110
  setReportName: _reportName => {},
110
111
  setIntervalStart: _intervalStart => {},
111
112
  setIntervalEnd: _intervalEnd => {},
@@ -249,7 +250,7 @@ const initStripeConnect = (stripePromise, initParams) => {
249
250
  element[method] = function (value) {
250
251
  stripeConnectInstance.then(() => {
251
252
  if (!this[`${method}InternalOnly`]) {
252
- 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.9-preview.0`);
253
+ 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.9-preview.2`);
253
254
  }
254
255
  this[`${method}InternalOnly`](value);
255
256
  });
@@ -303,7 +304,7 @@ const createWrapper = stripeConnect => {
303
304
  sdk: true,
304
305
  sdkOptions: {
305
306
  // This will be replaced by the npm package version when bundling
306
- sdkVersion: "3.4.9-preview.0"
307
+ sdkVersion: "3.4.9-preview.2"
307
308
  }
308
309
  })
309
310
  }));
package/dist/connect.js CHANGED
@@ -110,6 +110,7 @@ const ConnectElementCustomMethodConfig = {
110
110
  setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
111
111
  },
112
112
  "reporting-chart": {
113
+ setHeight: _height => {},
113
114
  setReportName: _reportName => {},
114
115
  setIntervalStart: _intervalStart => {},
115
116
  setIntervalEnd: _intervalEnd => {},
@@ -253,7 +254,7 @@ const initStripeConnect = (stripePromise, initParams) => {
253
254
  element[method] = function (value) {
254
255
  stripeConnectInstance.then(() => {
255
256
  if (!this[`${method}InternalOnly`]) {
256
- 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.9-preview.0`);
257
+ 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.9-preview.2`);
257
258
  }
258
259
  this[`${method}InternalOnly`](value);
259
260
  });
@@ -307,7 +308,7 @@ const createWrapper = stripeConnect => {
307
308
  sdk: true,
308
309
  sdkOptions: {
309
310
  // This will be replaced by the npm package version when bundling
310
- sdkVersion: "3.4.9-preview.0"
311
+ sdkVersion: "3.4.9-preview.2"
311
312
  }
312
313
  })
313
314
  }));
package/dist/pure.esm.js CHANGED
@@ -106,6 +106,7 @@ const ConnectElementCustomMethodConfig = {
106
106
  setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
107
107
  },
108
108
  "reporting-chart": {
109
+ setHeight: _height => {},
109
110
  setReportName: _reportName => {},
110
111
  setIntervalStart: _intervalStart => {},
111
112
  setIntervalEnd: _intervalEnd => {},
@@ -249,7 +250,7 @@ const initStripeConnect = (stripePromise, initParams) => {
249
250
  element[method] = function (value) {
250
251
  stripeConnectInstance.then(() => {
251
252
  if (!this[`${method}InternalOnly`]) {
252
- 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.9-preview.0`);
253
+ 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.9-preview.2`);
253
254
  }
254
255
  this[`${method}InternalOnly`](value);
255
256
  });
@@ -303,7 +304,7 @@ const createWrapper = stripeConnect => {
303
304
  sdk: true,
304
305
  sdkOptions: {
305
306
  // This will be replaced by the npm package version when bundling
306
- sdkVersion: "3.4.9-preview.0"
307
+ sdkVersion: "3.4.9-preview.2"
307
308
  }
308
309
  })
309
310
  }));
package/dist/pure.js CHANGED
@@ -110,6 +110,7 @@ const ConnectElementCustomMethodConfig = {
110
110
  setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
111
111
  },
112
112
  "reporting-chart": {
113
+ setHeight: _height => {},
113
114
  setReportName: _reportName => {},
114
115
  setIntervalStart: _intervalStart => {},
115
116
  setIntervalEnd: _intervalEnd => {},
@@ -253,7 +254,7 @@ const initStripeConnect = (stripePromise, initParams) => {
253
254
  element[method] = function (value) {
254
255
  stripeConnectInstance.then(() => {
255
256
  if (!this[`${method}InternalOnly`]) {
256
- 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.9-preview.0`);
257
+ 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.9-preview.2`);
257
258
  }
258
259
  this[`${method}InternalOnly`](value);
259
260
  });
@@ -307,7 +308,7 @@ const createWrapper = stripeConnect => {
307
308
  sdk: true,
308
309
  sdkOptions: {
309
310
  // This will be replaced by the npm package version when bundling
310
- sdkVersion: "3.4.9-preview.0"
311
+ sdkVersion: "3.4.9-preview.2"
311
312
  }
312
313
  })
313
314
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.4.9-preview.0",
3
+ "version": "3.4.9-preview.2",
4
4
  "description": "Connect.js loading utility package (preview version)",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
@@ -420,7 +420,9 @@ export const ConnectElementCustomMethodConfig = {
420
420
  },
421
421
  "capital-financing-manual-payment": {
422
422
  setPresentationMode: (
423
- _presentationMode: CapitalFinancingManualPaymentPresentationMode
423
+ _presentationMode:
424
+ | CapitalFinancingManualPaymentPresentationMode
425
+ | undefined
424
426
  ): void => {},
425
427
  setOnManualPaymentSubmitted: (
426
428
  _listener: (() => void) | undefined
@@ -458,6 +460,7 @@ export const ConnectElementCustomMethodConfig = {
458
460
  ): void => {},
459
461
  },
460
462
  "reporting-chart": {
463
+ setHeight: (_height: string | undefined): void => {},
461
464
  setReportName: (_reportName: ReportName): void => {},
462
465
  setIntervalStart: (_intervalStart: Date | undefined): void => {},
463
466
  setIntervalEnd: (_intervalEnd: Date | undefined): void => {},