@stripe/connect-js 3.3.46-preview-1 → 3.3.47-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.
@@ -122,6 +122,9 @@ const ConnectElementCustomMethodConfig = {
122
122
  },
123
123
  "check-scanning": {
124
124
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
125
+ },
126
+ "terminal-hardware-shop": {
127
+ setOnCheckoutFinished: _listener => {}
125
128
  }
126
129
  };
127
130
 
@@ -159,7 +162,10 @@ const componentNameMapping = {
159
162
  "app-viewport": "stripe-connect-app-viewport",
160
163
  "reporting-chart": "stripe-connect-reporting-chart",
161
164
  "check-scanning": "stripe-connect-check-scanning",
162
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
165
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
166
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
167
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
168
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
163
169
  };
164
170
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
165
171
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -256,7 +262,7 @@ const initStripeConnect = (stripePromise, initParams) => {
256
262
  element[method] = function (value) {
257
263
  stripeConnectInstance.then(() => {
258
264
  if (!this[`${method}InternalOnly`]) {
259
- 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.3.46-preview-1`);
265
+ 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.3.47-preview-1`);
260
266
  }
261
267
  this[`${method}InternalOnly`](value);
262
268
  });
@@ -310,7 +316,7 @@ const createWrapper = stripeConnect => {
310
316
  sdk: true,
311
317
  sdkOptions: {
312
318
  // This will be replaced by the npm package version when bundling
313
- sdkVersion: "3.3.46-preview-1"
319
+ sdkVersion: "3.3.47-preview-1"
314
320
  }
315
321
  })
316
322
  }));
package/dist/connect.js CHANGED
@@ -126,6 +126,9 @@ const ConnectElementCustomMethodConfig = {
126
126
  },
127
127
  "check-scanning": {
128
128
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
129
+ },
130
+ "terminal-hardware-shop": {
131
+ setOnCheckoutFinished: _listener => {}
129
132
  }
130
133
  };
131
134
 
@@ -163,7 +166,10 @@ const componentNameMapping = {
163
166
  "app-viewport": "stripe-connect-app-viewport",
164
167
  "reporting-chart": "stripe-connect-reporting-chart",
165
168
  "check-scanning": "stripe-connect-check-scanning",
166
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
169
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
170
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
171
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
172
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
167
173
  };
168
174
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
169
175
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -260,7 +266,7 @@ const initStripeConnect = (stripePromise, initParams) => {
260
266
  element[method] = function (value) {
261
267
  stripeConnectInstance.then(() => {
262
268
  if (!this[`${method}InternalOnly`]) {
263
- 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.3.46-preview-1`);
269
+ 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.3.47-preview-1`);
264
270
  }
265
271
  this[`${method}InternalOnly`](value);
266
272
  });
@@ -314,7 +320,7 @@ const createWrapper = stripeConnect => {
314
320
  sdk: true,
315
321
  sdkOptions: {
316
322
  // This will be replaced by the npm package version when bundling
317
- sdkVersion: "3.3.46-preview-1"
323
+ sdkVersion: "3.3.47-preview-1"
318
324
  }
319
325
  })
320
326
  }));
package/dist/pure.esm.js CHANGED
@@ -122,6 +122,9 @@ const ConnectElementCustomMethodConfig = {
122
122
  },
123
123
  "check-scanning": {
124
124
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
125
+ },
126
+ "terminal-hardware-shop": {
127
+ setOnCheckoutFinished: _listener => {}
125
128
  }
126
129
  };
127
130
 
@@ -159,7 +162,10 @@ const componentNameMapping = {
159
162
  "app-viewport": "stripe-connect-app-viewport",
160
163
  "reporting-chart": "stripe-connect-reporting-chart",
161
164
  "check-scanning": "stripe-connect-check-scanning",
162
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
165
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
166
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
167
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
168
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
163
169
  };
164
170
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
165
171
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -256,7 +262,7 @@ const initStripeConnect = (stripePromise, initParams) => {
256
262
  element[method] = function (value) {
257
263
  stripeConnectInstance.then(() => {
258
264
  if (!this[`${method}InternalOnly`]) {
259
- 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.3.46-preview-1`);
265
+ 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.3.47-preview-1`);
260
266
  }
261
267
  this[`${method}InternalOnly`](value);
262
268
  });
@@ -310,7 +316,7 @@ const createWrapper = stripeConnect => {
310
316
  sdk: true,
311
317
  sdkOptions: {
312
318
  // This will be replaced by the npm package version when bundling
313
- sdkVersion: "3.3.46-preview-1"
319
+ sdkVersion: "3.3.47-preview-1"
314
320
  }
315
321
  })
316
322
  }));
package/dist/pure.js CHANGED
@@ -126,6 +126,9 @@ const ConnectElementCustomMethodConfig = {
126
126
  },
127
127
  "check-scanning": {
128
128
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
129
+ },
130
+ "terminal-hardware-shop": {
131
+ setOnCheckoutFinished: _listener => {}
129
132
  }
130
133
  };
131
134
 
@@ -163,7 +166,10 @@ const componentNameMapping = {
163
166
  "app-viewport": "stripe-connect-app-viewport",
164
167
  "reporting-chart": "stripe-connect-reporting-chart",
165
168
  "check-scanning": "stripe-connect-check-scanning",
166
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
169
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
170
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
171
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
172
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
167
173
  };
168
174
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
169
175
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -260,7 +266,7 @@ const initStripeConnect = (stripePromise, initParams) => {
260
266
  element[method] = function (value) {
261
267
  stripeConnectInstance.then(() => {
262
268
  if (!this[`${method}InternalOnly`]) {
263
- 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.3.46-preview-1`);
269
+ 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.3.47-preview-1`);
264
270
  }
265
271
  this[`${method}InternalOnly`](value);
266
272
  });
@@ -314,7 +320,7 @@ const createWrapper = stripeConnect => {
314
320
  sdk: true,
315
321
  sdkOptions: {
316
322
  // This will be replaced by the npm package version when bundling
317
- sdkVersion: "3.3.46-preview-1"
323
+ sdkVersion: "3.3.47-preview-1"
318
324
  }
319
325
  })
320
326
  }));
@@ -1,6 +1,6 @@
1
1
  import type { IStripeConnectInitParams, StripeConnectInstance, ConnectElementTagName } from "../types";
2
2
  export type LoadConnectAndInitialize = (initParams: IStripeConnectInitParams) => StripeConnectInstance;
3
- export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-disputes-list" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-instant-payouts-promotion" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-recipients" | "stripe-connect-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-product-tax-code-selector" | "stripe-connect-export-tax-transactions" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-tax-threshold-monitoring" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-app-install" | "stripe-connect-app-viewport" | "stripe-connect-reporting-chart" | "stripe-connect-check-scanning" | "stripe-connect-agentic-commerce-settings";
3
+ export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-disputes-list" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-instant-payouts-promotion" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-recipients" | "stripe-connect-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-product-tax-code-selector" | "stripe-connect-export-tax-transactions" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-tax-threshold-monitoring" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-app-install" | "stripe-connect-app-viewport" | "stripe-connect-reporting-chart" | "stripe-connect-check-scanning" | "stripe-connect-agentic-commerce-settings" | "stripe-connect-terminal-hardware-orders" | "stripe-connect-terminal-hardware-shop" | "stripe-connect-network-cost-passthrough-report";
4
4
  export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
5
5
  type StripeConnectInstanceExtended = StripeConnectInstance & {
6
6
  debugInstance: () => Promise<StripeConnectInstance>;
@@ -243,4 +243,7 @@ export declare const ConnectElementCustomMethodConfig: {
243
243
  checkScanToken: string;
244
244
  }) => Promise<void>) => void;
245
245
  };
246
+ "terminal-hardware-shop": {
247
+ setOnCheckoutFinished: (_listener: (() => void) | undefined) => void;
248
+ };
246
249
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.46-preview-1",
3
+ "version": "3.3.47-preview-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/src/shared.ts CHANGED
@@ -47,7 +47,10 @@ export type ConnectElementHTMLName =
47
47
  | "stripe-connect-app-viewport"
48
48
  | "stripe-connect-reporting-chart"
49
49
  | "stripe-connect-check-scanning"
50
- | "stripe-connect-agentic-commerce-settings";
50
+ | "stripe-connect-agentic-commerce-settings"
51
+ | "stripe-connect-terminal-hardware-orders"
52
+ | "stripe-connect-terminal-hardware-shop"
53
+ | "stripe-connect-network-cost-passthrough-report";
51
54
 
52
55
  export const componentNameMapping: Record<
53
56
  ConnectElementTagName,
@@ -89,6 +92,10 @@ export const componentNameMapping: Record<
89
92
  "reporting-chart": "stripe-connect-reporting-chart",
90
93
  "check-scanning": "stripe-connect-check-scanning",
91
94
  "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
95
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
96
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
97
+ "network-cost-passthrough-report":
98
+ "stripe-connect-network-cost-passthrough-report",
92
99
  };
93
100
 
94
101
  type StripeConnectInstanceExtended = StripeConnectInstance & {
package/types/config.ts CHANGED
@@ -423,4 +423,7 @@ export const ConnectElementCustomMethodConfig = {
423
423
  }) => Promise<void>
424
424
  ): void => {},
425
425
  },
426
+ "terminal-hardware-shop": {
427
+ setOnCheckoutFinished: (_listener: (() => void) | undefined): void => {},
428
+ },
426
429
  };
package/types/shared.d.ts CHANGED
@@ -589,4 +589,7 @@ export type ConnectElementTagName =
589
589
  | "app-viewport"
590
590
  | "reporting-chart"
591
591
  | "check-scanning"
592
- | "agentic-commerce-settings";
592
+ | "agentic-commerce-settings"
593
+ | "terminal-hardware-orders"
594
+ | "terminal-hardware-shop"
595
+ | "network-cost-passthrough-report";