@stripe/connect-js 3.4.3-preview-1 → 3.4.3-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.
@@ -236,7 +236,7 @@ const initStripeConnect = (stripePromise, initParams) => {
236
236
  element[method] = function (value) {
237
237
  stripeConnectInstance.then(() => {
238
238
  if (!this[`${method}InternalOnly`]) {
239
- 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.3-preview-1`);
239
+ 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.3-preview-2`);
240
240
  }
241
241
  this[`${method}InternalOnly`](value);
242
242
  });
@@ -290,7 +290,7 @@ const createWrapper = stripeConnect => {
290
290
  sdk: true,
291
291
  sdkOptions: {
292
292
  // This will be replaced by the npm package version when bundling
293
- sdkVersion: "3.4.3-preview-1"
293
+ sdkVersion: "3.4.3-preview-2"
294
294
  }
295
295
  })
296
296
  }));
package/dist/connect.js CHANGED
@@ -240,7 +240,7 @@ const initStripeConnect = (stripePromise, initParams) => {
240
240
  element[method] = function (value) {
241
241
  stripeConnectInstance.then(() => {
242
242
  if (!this[`${method}InternalOnly`]) {
243
- 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.3-preview-1`);
243
+ 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.3-preview-2`);
244
244
  }
245
245
  this[`${method}InternalOnly`](value);
246
246
  });
@@ -294,7 +294,7 @@ const createWrapper = stripeConnect => {
294
294
  sdk: true,
295
295
  sdkOptions: {
296
296
  // This will be replaced by the npm package version when bundling
297
- sdkVersion: "3.4.3-preview-1"
297
+ sdkVersion: "3.4.3-preview-2"
298
298
  }
299
299
  })
300
300
  }));
@@ -430,6 +430,10 @@ 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
  };
434
438
  /**
435
439
  * Reasons why risk signals collection was skipped.
@@ -493,6 +497,12 @@ export declare type RiskSignalsCollectionEvent =
493
497
  status: "failed";
494
498
  error: RiskSignalsCollectionError;
495
499
  };
500
+ export interface IStripeConnectDisplayOptions {
501
+ /**
502
+ * Whether embedded components should show object id's in the UI
503
+ */
504
+ showObjectIds?: boolean;
505
+ }
496
506
  /**
497
507
  * Initialization parameters for Connect JS. See https://stripe.com/docs/connect/get-started-connect-embedded-components#configuring-connect-js for more details.
498
508
  */
@@ -524,6 +534,10 @@ export interface IStripeConnectInitParams {
524
534
  * @param {RiskSignalsCollectionEvent} event - The risk signals collection event containing status and additional details.
525
535
  */
526
536
  onRiskSignalsCollection?: (event: RiskSignalsCollectionEvent) => void;
537
+ /**
538
+ * Options that affect how all embedded components under this instance render
539
+ */
540
+ displayOptions?: IStripeConnectDisplayOptions;
527
541
  }
528
542
  type ConnectElementCustomMethods = typeof ConnectElementCustomMethodConfig;
529
543
  type ConnectElementCommonMethods = typeof ConnectElementCommonMethodConfig;
package/dist/pure.esm.js CHANGED
@@ -236,7 +236,7 @@ const initStripeConnect = (stripePromise, initParams) => {
236
236
  element[method] = function (value) {
237
237
  stripeConnectInstance.then(() => {
238
238
  if (!this[`${method}InternalOnly`]) {
239
- 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.3-preview-1`);
239
+ 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.3-preview-2`);
240
240
  }
241
241
  this[`${method}InternalOnly`](value);
242
242
  });
@@ -290,7 +290,7 @@ const createWrapper = stripeConnect => {
290
290
  sdk: true,
291
291
  sdkOptions: {
292
292
  // This will be replaced by the npm package version when bundling
293
- sdkVersion: "3.4.3-preview-1"
293
+ sdkVersion: "3.4.3-preview-2"
294
294
  }
295
295
  })
296
296
  }));
package/dist/pure.js CHANGED
@@ -240,7 +240,7 @@ const initStripeConnect = (stripePromise, initParams) => {
240
240
  element[method] = function (value) {
241
241
  stripeConnectInstance.then(() => {
242
242
  if (!this[`${method}InternalOnly`]) {
243
- 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.3-preview-1`);
243
+ 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.3-preview-2`);
244
244
  }
245
245
  this[`${method}InternalOnly`](value);
246
246
  });
@@ -294,7 +294,7 @@ const createWrapper = stripeConnect => {
294
294
  sdk: true,
295
295
  sdkOptions: {
296
296
  // This will be replaced by the npm package version when bundling
297
- sdkVersion: "3.4.3-preview-1"
297
+ sdkVersion: "3.4.3-preview-2"
298
298
  }
299
299
  })
300
300
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.4.3-preview-1",
3
+ "version": "3.4.3-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",
@@ -511,6 +511,11 @@ export type IStripeConnectUpdateParams = {
511
511
  * The locale to use for the Connect instance.
512
512
  */
513
513
  locale?: string;
514
+
515
+ /**
516
+ * Options that affect how all embedded components under this instance render
517
+ */
518
+ displayOptions?: IStripeConnectDisplayOptions;
514
519
  };
515
520
 
516
521
  /**
@@ -574,6 +579,13 @@ export declare type RiskSignalsCollectionEvent =
574
579
  */
575
580
  | { status: "failed"; error: RiskSignalsCollectionError };
576
581
 
582
+ export interface IStripeConnectDisplayOptions {
583
+ /**
584
+ * Whether embedded components should show object id's in the UI
585
+ */
586
+ showObjectIds?: boolean;
587
+ }
588
+
577
589
  /**
578
590
  * Initialization parameters for Connect JS. See https://stripe.com/docs/connect/get-started-connect-embedded-components#configuring-connect-js for more details.
579
591
  */
@@ -610,6 +622,11 @@ export interface IStripeConnectInitParams {
610
622
  * @param {RiskSignalsCollectionEvent} event - The risk signals collection event containing status and additional details.
611
623
  */
612
624
  onRiskSignalsCollection?: (event: RiskSignalsCollectionEvent) => void;
625
+
626
+ /**
627
+ * Options that affect how all embedded components under this instance render
628
+ */
629
+ displayOptions?: IStripeConnectDisplayOptions;
613
630
  }
614
631
 
615
632
  type ConnectElementCustomMethods = typeof ConnectElementCustomMethodConfig;