@stripe/connect-js 3.3.46-preview-1 → 3.3.48-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,12 @@ const ConnectElementCustomMethodConfig = {
122
122
  },
123
123
  "check-scanning": {
124
124
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
125
+ },
126
+ "agentic-commerce-settings": {
127
+ setOnAgreementUpdated: _listener => {}
128
+ },
129
+ "terminal-hardware-shop": {
130
+ setOnCheckoutFinished: _listener => {}
125
131
  }
126
132
  };
127
133
 
@@ -159,7 +165,10 @@ const componentNameMapping = {
159
165
  "app-viewport": "stripe-connect-app-viewport",
160
166
  "reporting-chart": "stripe-connect-reporting-chart",
161
167
  "check-scanning": "stripe-connect-check-scanning",
162
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
168
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
169
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
170
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
171
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
163
172
  };
164
173
  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
174
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -256,7 +265,7 @@ const initStripeConnect = (stripePromise, initParams) => {
256
265
  element[method] = function (value) {
257
266
  stripeConnectInstance.then(() => {
258
267
  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`);
268
+ 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.48-preview-1`);
260
269
  }
261
270
  this[`${method}InternalOnly`](value);
262
271
  });
@@ -310,7 +319,7 @@ const createWrapper = stripeConnect => {
310
319
  sdk: true,
311
320
  sdkOptions: {
312
321
  // This will be replaced by the npm package version when bundling
313
- sdkVersion: "3.3.46-preview-1"
322
+ sdkVersion: "3.3.48-preview-1"
314
323
  }
315
324
  })
316
325
  }));
package/dist/connect.js CHANGED
@@ -126,6 +126,12 @@ const ConnectElementCustomMethodConfig = {
126
126
  },
127
127
  "check-scanning": {
128
128
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
129
+ },
130
+ "agentic-commerce-settings": {
131
+ setOnAgreementUpdated: _listener => {}
132
+ },
133
+ "terminal-hardware-shop": {
134
+ setOnCheckoutFinished: _listener => {}
129
135
  }
130
136
  };
131
137
 
@@ -163,7 +169,10 @@ const componentNameMapping = {
163
169
  "app-viewport": "stripe-connect-app-viewport",
164
170
  "reporting-chart": "stripe-connect-reporting-chart",
165
171
  "check-scanning": "stripe-connect-check-scanning",
166
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
172
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
173
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
174
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
175
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
167
176
  };
168
177
  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
178
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -260,7 +269,7 @@ const initStripeConnect = (stripePromise, initParams) => {
260
269
  element[method] = function (value) {
261
270
  stripeConnectInstance.then(() => {
262
271
  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`);
272
+ 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.48-preview-1`);
264
273
  }
265
274
  this[`${method}InternalOnly`](value);
266
275
  });
@@ -314,7 +323,7 @@ const createWrapper = stripeConnect => {
314
323
  sdk: true,
315
324
  sdkOptions: {
316
325
  // This will be replaced by the npm package version when bundling
317
- sdkVersion: "3.3.46-preview-1"
326
+ sdkVersion: "3.3.48-preview-1"
318
327
  }
319
328
  })
320
329
  }));
package/dist/pure.esm.js CHANGED
@@ -122,6 +122,12 @@ const ConnectElementCustomMethodConfig = {
122
122
  },
123
123
  "check-scanning": {
124
124
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
125
+ },
126
+ "agentic-commerce-settings": {
127
+ setOnAgreementUpdated: _listener => {}
128
+ },
129
+ "terminal-hardware-shop": {
130
+ setOnCheckoutFinished: _listener => {}
125
131
  }
126
132
  };
127
133
 
@@ -159,7 +165,10 @@ const componentNameMapping = {
159
165
  "app-viewport": "stripe-connect-app-viewport",
160
166
  "reporting-chart": "stripe-connect-reporting-chart",
161
167
  "check-scanning": "stripe-connect-check-scanning",
162
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
168
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
169
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
170
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
171
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
163
172
  };
164
173
  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
174
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -256,7 +265,7 @@ const initStripeConnect = (stripePromise, initParams) => {
256
265
  element[method] = function (value) {
257
266
  stripeConnectInstance.then(() => {
258
267
  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`);
268
+ 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.48-preview-1`);
260
269
  }
261
270
  this[`${method}InternalOnly`](value);
262
271
  });
@@ -310,7 +319,7 @@ const createWrapper = stripeConnect => {
310
319
  sdk: true,
311
320
  sdkOptions: {
312
321
  // This will be replaced by the npm package version when bundling
313
- sdkVersion: "3.3.46-preview-1"
322
+ sdkVersion: "3.3.48-preview-1"
314
323
  }
315
324
  })
316
325
  }));
package/dist/pure.js CHANGED
@@ -126,6 +126,12 @@ const ConnectElementCustomMethodConfig = {
126
126
  },
127
127
  "check-scanning": {
128
128
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
129
+ },
130
+ "agentic-commerce-settings": {
131
+ setOnAgreementUpdated: _listener => {}
132
+ },
133
+ "terminal-hardware-shop": {
134
+ setOnCheckoutFinished: _listener => {}
129
135
  }
130
136
  };
131
137
 
@@ -163,7 +169,10 @@ const componentNameMapping = {
163
169
  "app-viewport": "stripe-connect-app-viewport",
164
170
  "reporting-chart": "stripe-connect-reporting-chart",
165
171
  "check-scanning": "stripe-connect-check-scanning",
166
- "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings"
172
+ "agentic-commerce-settings": "stripe-connect-agentic-commerce-settings",
173
+ "terminal-hardware-orders": "stripe-connect-terminal-hardware-orders",
174
+ "terminal-hardware-shop": "stripe-connect-terminal-hardware-shop",
175
+ "network-cost-passthrough-report": "stripe-connect-network-cost-passthrough-report"
167
176
  };
168
177
  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
178
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -260,7 +269,7 @@ const initStripeConnect = (stripePromise, initParams) => {
260
269
  element[method] = function (value) {
261
270
  stripeConnectInstance.then(() => {
262
271
  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`);
272
+ 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.48-preview-1`);
264
273
  }
265
274
  this[`${method}InternalOnly`](value);
266
275
  });
@@ -314,7 +323,7 @@ const createWrapper = stripeConnect => {
314
323
  sdk: true,
315
324
  sdkOptions: {
316
325
  // This will be replaced by the npm package version when bundling
317
- sdkVersion: "3.3.46-preview-1"
326
+ sdkVersion: "3.3.48-preview-1"
318
327
  }
319
328
  })
320
329
  }));
@@ -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,12 @@ export declare const ConnectElementCustomMethodConfig: {
243
243
  checkScanToken: string;
244
244
  }) => Promise<void>) => void;
245
245
  };
246
+ "agentic-commerce-settings": {
247
+ setOnAgreementUpdated: (_listener: (({ agreemmentId }: {
248
+ agreemmentId: string;
249
+ }) => void) | undefined) => void;
250
+ };
251
+ "terminal-hardware-shop": {
252
+ setOnCheckoutFinished: (_listener: (() => void) | undefined) => void;
253
+ };
246
254
  };
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.48-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,14 @@ export const ConnectElementCustomMethodConfig = {
423
423
  }) => Promise<void>
424
424
  ): void => {},
425
425
  },
426
+ "agentic-commerce-settings": {
427
+ setOnAgreementUpdated: (
428
+ _listener:
429
+ | (({ agreemmentId }: { agreemmentId: string }) => void)
430
+ | undefined
431
+ ): void => {},
432
+ },
433
+ "terminal-hardware-shop": {
434
+ setOnCheckoutFinished: (_listener: (() => void) | undefined): void => {},
435
+ },
426
436
  };
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";