@stripe/connect-js 3.3.47-preview-1 → 3.3.49-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.
@@ -123,6 +123,9 @@ const ConnectElementCustomMethodConfig = {
123
123
  "check-scanning": {
124
124
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
125
125
  },
126
+ "agentic-commerce-settings": {
127
+ setOnAgreementUpdated: _listener => {}
128
+ },
126
129
  "terminal-hardware-shop": {
127
130
  setOnCheckoutFinished: _listener => {}
128
131
  }
@@ -262,7 +265,7 @@ const initStripeConnect = (stripePromise, initParams) => {
262
265
  element[method] = function (value) {
263
266
  stripeConnectInstance.then(() => {
264
267
  if (!this[`${method}InternalOnly`]) {
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`);
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.49-preview-1`);
266
269
  }
267
270
  this[`${method}InternalOnly`](value);
268
271
  });
@@ -316,7 +319,7 @@ const createWrapper = stripeConnect => {
316
319
  sdk: true,
317
320
  sdkOptions: {
318
321
  // This will be replaced by the npm package version when bundling
319
- sdkVersion: "3.3.47-preview-1"
322
+ sdkVersion: "3.3.49-preview-1"
320
323
  }
321
324
  })
322
325
  }));
package/dist/connect.js CHANGED
@@ -127,6 +127,9 @@ const ConnectElementCustomMethodConfig = {
127
127
  "check-scanning": {
128
128
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
129
129
  },
130
+ "agentic-commerce-settings": {
131
+ setOnAgreementUpdated: _listener => {}
132
+ },
130
133
  "terminal-hardware-shop": {
131
134
  setOnCheckoutFinished: _listener => {}
132
135
  }
@@ -266,7 +269,7 @@ const initStripeConnect = (stripePromise, initParams) => {
266
269
  element[method] = function (value) {
267
270
  stripeConnectInstance.then(() => {
268
271
  if (!this[`${method}InternalOnly`]) {
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`);
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.49-preview-1`);
270
273
  }
271
274
  this[`${method}InternalOnly`](value);
272
275
  });
@@ -320,7 +323,7 @@ const createWrapper = stripeConnect => {
320
323
  sdk: true,
321
324
  sdkOptions: {
322
325
  // This will be replaced by the npm package version when bundling
323
- sdkVersion: "3.3.47-preview-1"
326
+ sdkVersion: "3.3.49-preview-1"
324
327
  }
325
328
  })
326
329
  }));
package/dist/pure.esm.js CHANGED
@@ -123,6 +123,9 @@ const ConnectElementCustomMethodConfig = {
123
123
  "check-scanning": {
124
124
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
125
125
  },
126
+ "agentic-commerce-settings": {
127
+ setOnAgreementUpdated: _listener => {}
128
+ },
126
129
  "terminal-hardware-shop": {
127
130
  setOnCheckoutFinished: _listener => {}
128
131
  }
@@ -262,7 +265,7 @@ const initStripeConnect = (stripePromise, initParams) => {
262
265
  element[method] = function (value) {
263
266
  stripeConnectInstance.then(() => {
264
267
  if (!this[`${method}InternalOnly`]) {
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`);
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.49-preview-1`);
266
269
  }
267
270
  this[`${method}InternalOnly`](value);
268
271
  });
@@ -316,7 +319,7 @@ const createWrapper = stripeConnect => {
316
319
  sdk: true,
317
320
  sdkOptions: {
318
321
  // This will be replaced by the npm package version when bundling
319
- sdkVersion: "3.3.47-preview-1"
322
+ sdkVersion: "3.3.49-preview-1"
320
323
  }
321
324
  })
322
325
  }));
package/dist/pure.js CHANGED
@@ -127,6 +127,9 @@ const ConnectElementCustomMethodConfig = {
127
127
  "check-scanning": {
128
128
  setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
129
129
  },
130
+ "agentic-commerce-settings": {
131
+ setOnAgreementUpdated: _listener => {}
132
+ },
130
133
  "terminal-hardware-shop": {
131
134
  setOnCheckoutFinished: _listener => {}
132
135
  }
@@ -266,7 +269,7 @@ const initStripeConnect = (stripePromise, initParams) => {
266
269
  element[method] = function (value) {
267
270
  stripeConnectInstance.then(() => {
268
271
  if (!this[`${method}InternalOnly`]) {
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`);
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.49-preview-1`);
270
273
  }
271
274
  this[`${method}InternalOnly`](value);
272
275
  });
@@ -320,7 +323,7 @@ const createWrapper = stripeConnect => {
320
323
  sdk: true,
321
324
  sdkOptions: {
322
325
  // This will be replaced by the npm package version when bundling
323
- sdkVersion: "3.3.47-preview-1"
326
+ sdkVersion: "3.3.49-preview-1"
324
327
  }
325
328
  })
326
329
  }));
@@ -243,6 +243,11 @@ export declare const ConnectElementCustomMethodConfig: {
243
243
  checkScanToken: string;
244
244
  }) => Promise<void>) => void;
245
245
  };
246
+ "agentic-commerce-settings": {
247
+ setOnAgreementUpdated: (_listener: (({ agreementId }: {
248
+ agreementId: string;
249
+ }) => void) | undefined) => void;
250
+ };
246
251
  "terminal-hardware-shop": {
247
252
  setOnCheckoutFinished: (_listener: (() => void) | undefined) => void;
248
253
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.47-preview-1",
3
+ "version": "3.3.49-preview-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/types/config.ts CHANGED
@@ -423,6 +423,13 @@ export const ConnectElementCustomMethodConfig = {
423
423
  }) => Promise<void>
424
424
  ): void => {},
425
425
  },
426
+ "agentic-commerce-settings": {
427
+ setOnAgreementUpdated: (
428
+ _listener:
429
+ | (({ agreementId }: { agreementId: string }) => void)
430
+ | undefined
431
+ ): void => {},
432
+ },
426
433
  "terminal-hardware-shop": {
427
434
  setOnCheckoutFinished: (_listener: (() => void) | undefined): void => {},
428
435
  },