@stripe/connect-js 3.3.45-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
 
@@ -158,7 +161,11 @@ const componentNameMapping = {
158
161
  "app-install": "stripe-connect-app-install",
159
162
  "app-viewport": "stripe-connect-app-viewport",
160
163
  "reporting-chart": "stripe-connect-reporting-chart",
161
- "check-scanning": "stripe-connect-check-scanning"
164
+ "check-scanning": "stripe-connect-check-scanning",
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"
162
169
  };
163
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";
164
171
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -255,7 +262,7 @@ const initStripeConnect = (stripePromise, initParams) => {
255
262
  element[method] = function (value) {
256
263
  stripeConnectInstance.then(() => {
257
264
  if (!this[`${method}InternalOnly`]) {
258
- 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.45-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`);
259
266
  }
260
267
  this[`${method}InternalOnly`](value);
261
268
  });
@@ -309,7 +316,7 @@ const createWrapper = stripeConnect => {
309
316
  sdk: true,
310
317
  sdkOptions: {
311
318
  // This will be replaced by the npm package version when bundling
312
- sdkVersion: "3.3.45-preview-1"
319
+ sdkVersion: "3.3.47-preview-1"
313
320
  }
314
321
  })
315
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
 
@@ -162,7 +165,11 @@ const componentNameMapping = {
162
165
  "app-install": "stripe-connect-app-install",
163
166
  "app-viewport": "stripe-connect-app-viewport",
164
167
  "reporting-chart": "stripe-connect-reporting-chart",
165
- "check-scanning": "stripe-connect-check-scanning"
168
+ "check-scanning": "stripe-connect-check-scanning",
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"
166
173
  };
167
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";
168
175
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -259,7 +266,7 @@ const initStripeConnect = (stripePromise, initParams) => {
259
266
  element[method] = function (value) {
260
267
  stripeConnectInstance.then(() => {
261
268
  if (!this[`${method}InternalOnly`]) {
262
- 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.45-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`);
263
270
  }
264
271
  this[`${method}InternalOnly`](value);
265
272
  });
@@ -313,7 +320,7 @@ const createWrapper = stripeConnect => {
313
320
  sdk: true,
314
321
  sdkOptions: {
315
322
  // This will be replaced by the npm package version when bundling
316
- sdkVersion: "3.3.45-preview-1"
323
+ sdkVersion: "3.3.47-preview-1"
317
324
  }
318
325
  })
319
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
 
@@ -158,7 +161,11 @@ const componentNameMapping = {
158
161
  "app-install": "stripe-connect-app-install",
159
162
  "app-viewport": "stripe-connect-app-viewport",
160
163
  "reporting-chart": "stripe-connect-reporting-chart",
161
- "check-scanning": "stripe-connect-check-scanning"
164
+ "check-scanning": "stripe-connect-check-scanning",
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"
162
169
  };
163
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";
164
171
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -255,7 +262,7 @@ const initStripeConnect = (stripePromise, initParams) => {
255
262
  element[method] = function (value) {
256
263
  stripeConnectInstance.then(() => {
257
264
  if (!this[`${method}InternalOnly`]) {
258
- 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.45-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`);
259
266
  }
260
267
  this[`${method}InternalOnly`](value);
261
268
  });
@@ -309,7 +316,7 @@ const createWrapper = stripeConnect => {
309
316
  sdk: true,
310
317
  sdkOptions: {
311
318
  // This will be replaced by the npm package version when bundling
312
- sdkVersion: "3.3.45-preview-1"
319
+ sdkVersion: "3.3.47-preview-1"
313
320
  }
314
321
  })
315
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
 
@@ -162,7 +165,11 @@ const componentNameMapping = {
162
165
  "app-install": "stripe-connect-app-install",
163
166
  "app-viewport": "stripe-connect-app-viewport",
164
167
  "reporting-chart": "stripe-connect-reporting-chart",
165
- "check-scanning": "stripe-connect-check-scanning"
168
+ "check-scanning": "stripe-connect-check-scanning",
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"
166
173
  };
167
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";
168
175
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -259,7 +266,7 @@ const initStripeConnect = (stripePromise, initParams) => {
259
266
  element[method] = function (value) {
260
267
  stripeConnectInstance.then(() => {
261
268
  if (!this[`${method}InternalOnly`]) {
262
- 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.45-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`);
263
270
  }
264
271
  this[`${method}InternalOnly`](value);
265
272
  });
@@ -313,7 +320,7 @@ const createWrapper = stripeConnect => {
313
320
  sdk: true,
314
321
  sdkOptions: {
315
322
  // This will be replaced by the npm package version when bundling
316
- sdkVersion: "3.3.45-preview-1"
323
+ sdkVersion: "3.3.47-preview-1"
317
324
  }
318
325
  })
319
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";
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.45-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
@@ -46,7 +46,11 @@ export type ConnectElementHTMLName =
46
46
  | "stripe-connect-app-install"
47
47
  | "stripe-connect-app-viewport"
48
48
  | "stripe-connect-reporting-chart"
49
- | "stripe-connect-check-scanning";
49
+ | "stripe-connect-check-scanning"
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";
50
54
 
51
55
  export const componentNameMapping: Record<
52
56
  ConnectElementTagName,
@@ -87,6 +91,11 @@ export const componentNameMapping: Record<
87
91
  "app-viewport": "stripe-connect-app-viewport",
88
92
  "reporting-chart": "stripe-connect-reporting-chart",
89
93
  "check-scanning": "stripe-connect-check-scanning",
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",
90
99
  };
91
100
 
92
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
@@ -588,4 +588,8 @@ export type ConnectElementTagName =
588
588
  | "app-install"
589
589
  | "app-viewport"
590
590
  | "reporting-chart"
591
- | "check-scanning";
591
+ | "check-scanning"
592
+ | "agentic-commerce-settings"
593
+ | "terminal-hardware-orders"
594
+ | "terminal-hardware-shop"
595
+ | "network-cost-passthrough-report";