@stripe/connect-js 3.4.4 → 3.4.5

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.
@@ -173,7 +173,7 @@ const initStripeConnect = (stripePromise, initParams) => {
173
173
  element[method] = function (value) {
174
174
  stripeConnectInstance.then(() => {
175
175
  if (!this[`${method}InternalOnly`]) {
176
- 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.4`);
176
+ 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.5`);
177
177
  }
178
178
  this[`${method}InternalOnly`](value);
179
179
  });
@@ -227,7 +227,7 @@ const createWrapper = stripeConnect => {
227
227
  sdk: true,
228
228
  sdkOptions: {
229
229
  // This will be replaced by the npm package version when bundling
230
- sdkVersion: "3.4.4"
230
+ sdkVersion: "3.4.5"
231
231
  }
232
232
  })
233
233
  }));
package/dist/connect.js CHANGED
@@ -177,7 +177,7 @@ const initStripeConnect = (stripePromise, initParams) => {
177
177
  element[method] = function (value) {
178
178
  stripeConnectInstance.then(() => {
179
179
  if (!this[`${method}InternalOnly`]) {
180
- 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.4`);
180
+ 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.5`);
181
181
  }
182
182
  this[`${method}InternalOnly`](value);
183
183
  });
@@ -231,7 +231,7 @@ const createWrapper = stripeConnect => {
231
231
  sdk: true,
232
232
  sdkOptions: {
233
233
  // This will be replaced by the npm package version when bundling
234
- sdkVersion: "3.4.4"
234
+ sdkVersion: "3.4.5"
235
235
  }
236
236
  })
237
237
  }));
@@ -430,7 +430,17 @@ export type IStripeConnectUpdateParams = {
430
430
  * The locale to use for the Connect instance.
431
431
  */
432
432
  locale?: string;
433
+ /**
434
+ * Options that affect how all embedded components under this instance render
435
+ */
436
+ displayOptions?: IStripeConnectDisplayOptions;
433
437
  };
438
+ export interface IStripeConnectDisplayOptions {
439
+ /**
440
+ * Whether embedded components should show object id's in the UI
441
+ */
442
+ showObjectIds?: boolean;
443
+ }
434
444
  /**
435
445
  * Initialization parameters for Connect JS. See https://stripe.com/docs/connect/get-started-connect-embedded-components#configuring-connect-js for more details.
436
446
  */
@@ -457,6 +467,10 @@ export interface IStripeConnectInitParams {
457
467
  * An array of custom fonts, which embedded components created from a ConnectInstance can use.
458
468
  */
459
469
  fonts?: Array<CssFontSource | CustomFontSource>;
470
+ /**
471
+ * Options that affect how all embedded components under this instance render
472
+ */
473
+ displayOptions?: IStripeConnectDisplayOptions;
460
474
  }
461
475
  type ConnectElementCustomMethods = typeof ConnectElementCustomMethodConfig;
462
476
  type ConnectElementCommonMethods = typeof ConnectElementCommonMethodConfig;
package/dist/pure.esm.js CHANGED
@@ -173,7 +173,7 @@ const initStripeConnect = (stripePromise, initParams) => {
173
173
  element[method] = function (value) {
174
174
  stripeConnectInstance.then(() => {
175
175
  if (!this[`${method}InternalOnly`]) {
176
- 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.4`);
176
+ 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.5`);
177
177
  }
178
178
  this[`${method}InternalOnly`](value);
179
179
  });
@@ -227,7 +227,7 @@ const createWrapper = stripeConnect => {
227
227
  sdk: true,
228
228
  sdkOptions: {
229
229
  // This will be replaced by the npm package version when bundling
230
- sdkVersion: "3.4.4"
230
+ sdkVersion: "3.4.5"
231
231
  }
232
232
  })
233
233
  }));
package/dist/pure.js CHANGED
@@ -177,7 +177,7 @@ const initStripeConnect = (stripePromise, initParams) => {
177
177
  element[method] = function (value) {
178
178
  stripeConnectInstance.then(() => {
179
179
  if (!this[`${method}InternalOnly`]) {
180
- 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.4`);
180
+ 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.5`);
181
181
  }
182
182
  this[`${method}InternalOnly`](value);
183
183
  });
@@ -231,7 +231,7 @@ const createWrapper = stripeConnect => {
231
231
  sdk: true,
232
232
  sdkOptions: {
233
233
  // This will be replaced by the npm package version when bundling
234
- sdkVersion: "3.4.4"
234
+ sdkVersion: "3.4.5"
235
235
  }
236
236
  })
237
237
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.4.4",
3
+ "version": "3.4.5",
4
4
  "description": "Connect.js loading utility package (preview version)",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
@@ -509,8 +509,20 @@ export type IStripeConnectUpdateParams = {
509
509
  * The locale to use for the Connect instance.
510
510
  */
511
511
  locale?: string;
512
+
513
+ /**
514
+ * Options that affect how all embedded components under this instance render
515
+ */
516
+ displayOptions?: IStripeConnectDisplayOptions;
512
517
  };
513
518
 
519
+ export interface IStripeConnectDisplayOptions {
520
+ /**
521
+ * Whether embedded components should show object id's in the UI
522
+ */
523
+ showObjectIds?: boolean;
524
+ }
525
+
514
526
  /**
515
527
  * Initialization parameters for Connect JS. See https://stripe.com/docs/connect/get-started-connect-embedded-components#configuring-connect-js for more details.
516
528
  */
@@ -541,6 +553,11 @@ export interface IStripeConnectInitParams {
541
553
  * An array of custom fonts, which embedded components created from a ConnectInstance can use.
542
554
  */
543
555
  fonts?: Array<CssFontSource | CustomFontSource>;
556
+
557
+ /**
558
+ * Options that affect how all embedded components under this instance render
559
+ */
560
+ displayOptions?: IStripeConnectDisplayOptions;
544
561
  }
545
562
 
546
563
  type ConnectElementCustomMethods = typeof ConnectElementCustomMethodConfig;