@imtbl/sdk 1.29.0 → 1.29.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.
Files changed (35) hide show
  1. package/dist/blockchain_data.js +2 -2
  2. package/dist/browser/checkout/{BridgeWidget-0c8ba5f4.js → BridgeWidget-6bf8661a.js} +1 -1
  3. package/dist/browser/checkout/{HorizontalMenu-actual-d9d5362e.js → HorizontalMenu-actual-72c414cb.js} +1 -1
  4. package/dist/browser/checkout/{OnRampWidget-7b9c46d9.js → OnRampWidget-1bb2826a.js} +2 -2
  5. package/dist/browser/checkout/{SaleWidget-5f976f57.js → SaleWidget-2d1f59d1.js} +2 -2
  6. package/dist/browser/checkout/{SpendingCapHero-78cf24cf.js → SpendingCapHero-6abc0869.js} +1 -1
  7. package/dist/browser/checkout/{SwapWidget-e3224198.js → SwapWidget-85254819.js} +1 -1
  8. package/dist/browser/checkout/{TopUpView-55a4ebd7.js → TopUpView-57b43da7.js} +1 -1
  9. package/dist/browser/checkout/{WalletWidget-080def57.js → WalletWidget-5a4b4650.js} +1 -1
  10. package/dist/browser/checkout/{auto-track-c9c76e80.js → auto-track-4e36e7b3.js} +1 -1
  11. package/dist/browser/checkout/{balance-cdb0a3fa.js → balance-4f016daf.js} +1 -1
  12. package/dist/browser/checkout/{index-b7f0cdc7.js → index-04a85afd.js} +1 -1
  13. package/dist/browser/checkout/{index-e27c3ed4.js → index-38e5d382.js} +2 -2
  14. package/dist/browser/checkout/{index-a48f6b1d.js → index-6ef61124.js} +1 -1
  15. package/dist/browser/checkout/{index-e8067c90.js → index-b794d729.js} +1 -1
  16. package/dist/browser/checkout/{index-8491ffb8.js → index-bbdc4af9.js} +1 -1
  17. package/dist/browser/checkout/{index-0f644711.js → index-d022ef82.js} +1 -1
  18. package/dist/browser/checkout/{index-0e023c6c.js → index-ddc7140f.js} +1 -1
  19. package/dist/browser/checkout/index-efd0d822.js +1 -0
  20. package/dist/browser/checkout/{index.umd-f196f3bb.js → index.umd-e3e63faf.js} +1 -1
  21. package/dist/browser/checkout/{retry-38e872b6.js → retry-d97eb99d.js} +1 -1
  22. package/dist/browser/checkout/sdk.js +4 -4
  23. package/dist/browser/checkout/widgets-esm.js +1 -1
  24. package/dist/browser/checkout/widgets.js +4 -4
  25. package/dist/checkout.js +4 -4
  26. package/dist/config.js +1 -1
  27. package/dist/index.browser.js +4 -4
  28. package/dist/index.browser.js.map +1 -1
  29. package/dist/index.cjs +19 -9
  30. package/dist/index.js +19 -9
  31. package/dist/orderbook.js +1 -1
  32. package/dist/passport.js +16 -6
  33. package/dist/x.js +3 -3
  34. package/package.json +1 -1
  35. package/dist/browser/checkout/index-a5564aad.js +0 -1
package/dist/index.cjs CHANGED
@@ -183,7 +183,7 @@ const flattenProperties$1 = (properties) => {
183
183
  };
184
184
 
185
185
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
186
- const SDK_VERSION$1 = '1.29.0';
186
+ const SDK_VERSION$1 = '1.29.2';
187
187
  const getFrameParentDomain$1 = () => {
188
188
  if (isNode$1()) {
189
189
  return '';
@@ -14475,7 +14475,7 @@ class MultiRollupApiClients {
14475
14475
  }
14476
14476
 
14477
14477
  // eslint-disable-next-line @typescript-eslint/naming-convention
14478
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.29.0' };
14478
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.29.2' };
14479
14479
  const createConfig$1 = ({ basePath, headers, }) => {
14480
14480
  if (!basePath.trim()) {
14481
14481
  throw Error('basePath can not be empty');
@@ -14547,7 +14547,7 @@ class APIError extends Error {
14547
14547
 
14548
14548
  /* eslint-disable implicit-arrow-linebreak */
14549
14549
  const defaultHeaders$1 = {
14550
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.29.0',
14550
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.29.2',
14551
14551
  };
14552
14552
  /**
14553
14553
  * createAPIConfiguration to create a custom Configuration
@@ -15021,7 +15021,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
15021
15021
  /* eslint-disable @typescript-eslint/naming-convention */
15022
15022
  class ApiConfiguration extends index$2.Configuration {
15023
15023
  }
15024
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.0' };
15024
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.2' };
15025
15025
  /**
15026
15026
  * @dev use createImmutableXConfiguration instead
15027
15027
  */
@@ -15060,7 +15060,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
15060
15060
  chainID,
15061
15061
  coreContractAddress,
15062
15062
  registrationContractAddress,
15063
- sdkVersion: 'ts-immutable-sdk-1.29.0',
15063
+ sdkVersion: 'ts-immutable-sdk-1.29.2',
15064
15064
  baseConfig,
15065
15065
  });
15066
15066
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26341,7 +26341,9 @@ var ReceiveMessage;
26341
26341
  ReceiveMessage["CONFIRMATION_WINDOW_READY"] = "confirmation_window_ready";
26342
26342
  ReceiveMessage["TRANSACTION_CONFIRMED"] = "transaction_confirmed";
26343
26343
  ReceiveMessage["TRANSACTION_ERROR"] = "transaction_error";
26344
+ ReceiveMessage["TRANSACTION_REJECTED"] = "transaction_rejected";
26344
26345
  ReceiveMessage["MESSAGE_CONFIRMED"] = "message_confirmed";
26346
+ ReceiveMessage["MESSAGE_ERROR"] = "message_error";
26345
26347
  ReceiveMessage["MESSAGE_REJECTED"] = "message_rejected";
26346
26348
  ReceiveMessage["LOGOUT_SUCCESS"] = "logout_success";
26347
26349
  })(ReceiveMessage || (ReceiveMessage = {}));
@@ -26408,7 +26410,11 @@ class ConfirmationScreen {
26408
26410
  break;
26409
26411
  }
26410
26412
  case ReceiveMessage.TRANSACTION_ERROR: {
26411
- reject(new Error('Transaction error'));
26413
+ reject(new Error('Error during transaction confirmation'));
26414
+ break;
26415
+ }
26416
+ case ReceiveMessage.TRANSACTION_REJECTED: {
26417
+ reject(new Error('User rejected transaction'));
26412
26418
  break;
26413
26419
  }
26414
26420
  default:
@@ -26451,8 +26457,12 @@ class ConfirmationScreen {
26451
26457
  resolve({ confirmed: true });
26452
26458
  break;
26453
26459
  }
26460
+ case ReceiveMessage.MESSAGE_ERROR: {
26461
+ reject(new Error('Error during message confirmation'));
26462
+ break;
26463
+ }
26454
26464
  case ReceiveMessage.MESSAGE_REJECTED: {
26455
- reject(new Error('Message rejected'));
26465
+ reject(new Error('User rejected message'));
26456
26466
  break;
26457
26467
  }
26458
26468
  default:
@@ -46589,7 +46599,7 @@ const flattenProperties = (properties) => {
46589
46599
  };
46590
46600
 
46591
46601
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
46592
- const SDK_VERSION = '1.29.0';
46602
+ const SDK_VERSION = '1.29.2';
46593
46603
  const getFrameParentDomain = () => {
46594
46604
  if (isNode()) {
46595
46605
  return '';
@@ -51808,7 +51818,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
51808
51818
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
51809
51819
  };
51810
51820
 
51811
- const SDK_VERSION_MARKER = '1.29.0';
51821
+ const SDK_VERSION_MARKER = '1.29.2';
51812
51822
  // This SDK version is replaced by the `yarn build` command ran on the root level
51813
51823
  const globalPackageVersion = () => SDK_VERSION_MARKER;
51814
51824
 
package/dist/index.js CHANGED
@@ -160,7 +160,7 @@ const flattenProperties$1 = (properties) => {
160
160
  };
161
161
 
162
162
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
163
- const SDK_VERSION$1 = '1.29.0';
163
+ const SDK_VERSION$1 = '1.29.2';
164
164
  const getFrameParentDomain$1 = () => {
165
165
  if (isNode$1()) {
166
166
  return '';
@@ -14452,7 +14452,7 @@ class MultiRollupApiClients {
14452
14452
  }
14453
14453
 
14454
14454
  // eslint-disable-next-line @typescript-eslint/naming-convention
14455
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.29.0' };
14455
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.29.2' };
14456
14456
  const createConfig$1 = ({ basePath, headers, }) => {
14457
14457
  if (!basePath.trim()) {
14458
14458
  throw Error('basePath can not be empty');
@@ -14524,7 +14524,7 @@ class APIError extends Error {
14524
14524
 
14525
14525
  /* eslint-disable implicit-arrow-linebreak */
14526
14526
  const defaultHeaders$1 = {
14527
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.29.0',
14527
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.29.2',
14528
14528
  };
14529
14529
  /**
14530
14530
  * createAPIConfiguration to create a custom Configuration
@@ -14998,7 +14998,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14998
14998
  /* eslint-disable @typescript-eslint/naming-convention */
14999
14999
  class ApiConfiguration extends index$2.Configuration {
15000
15000
  }
15001
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.0' };
15001
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.2' };
15002
15002
  /**
15003
15003
  * @dev use createImmutableXConfiguration instead
15004
15004
  */
@@ -15037,7 +15037,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
15037
15037
  chainID,
15038
15038
  coreContractAddress,
15039
15039
  registrationContractAddress,
15040
- sdkVersion: 'ts-immutable-sdk-1.29.0',
15040
+ sdkVersion: 'ts-immutable-sdk-1.29.2',
15041
15041
  baseConfig,
15042
15042
  });
15043
15043
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26318,7 +26318,9 @@ var ReceiveMessage;
26318
26318
  ReceiveMessage["CONFIRMATION_WINDOW_READY"] = "confirmation_window_ready";
26319
26319
  ReceiveMessage["TRANSACTION_CONFIRMED"] = "transaction_confirmed";
26320
26320
  ReceiveMessage["TRANSACTION_ERROR"] = "transaction_error";
26321
+ ReceiveMessage["TRANSACTION_REJECTED"] = "transaction_rejected";
26321
26322
  ReceiveMessage["MESSAGE_CONFIRMED"] = "message_confirmed";
26323
+ ReceiveMessage["MESSAGE_ERROR"] = "message_error";
26322
26324
  ReceiveMessage["MESSAGE_REJECTED"] = "message_rejected";
26323
26325
  ReceiveMessage["LOGOUT_SUCCESS"] = "logout_success";
26324
26326
  })(ReceiveMessage || (ReceiveMessage = {}));
@@ -26385,7 +26387,11 @@ class ConfirmationScreen {
26385
26387
  break;
26386
26388
  }
26387
26389
  case ReceiveMessage.TRANSACTION_ERROR: {
26388
- reject(new Error('Transaction error'));
26390
+ reject(new Error('Error during transaction confirmation'));
26391
+ break;
26392
+ }
26393
+ case ReceiveMessage.TRANSACTION_REJECTED: {
26394
+ reject(new Error('User rejected transaction'));
26389
26395
  break;
26390
26396
  }
26391
26397
  default:
@@ -26428,8 +26434,12 @@ class ConfirmationScreen {
26428
26434
  resolve({ confirmed: true });
26429
26435
  break;
26430
26436
  }
26437
+ case ReceiveMessage.MESSAGE_ERROR: {
26438
+ reject(new Error('Error during message confirmation'));
26439
+ break;
26440
+ }
26431
26441
  case ReceiveMessage.MESSAGE_REJECTED: {
26432
- reject(new Error('Message rejected'));
26442
+ reject(new Error('User rejected message'));
26433
26443
  break;
26434
26444
  }
26435
26445
  default:
@@ -46566,7 +46576,7 @@ const flattenProperties = (properties) => {
46566
46576
  };
46567
46577
 
46568
46578
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
46569
- const SDK_VERSION = '1.29.0';
46579
+ const SDK_VERSION = '1.29.2';
46570
46580
  const getFrameParentDomain = () => {
46571
46581
  if (isNode()) {
46572
46582
  return '';
@@ -51785,7 +51795,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
51785
51795
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
51786
51796
  };
51787
51797
 
51788
- const SDK_VERSION_MARKER = '1.29.0';
51798
+ const SDK_VERSION_MARKER = '1.29.2';
51789
51799
  // This SDK version is replaced by the `yarn build` command ran on the root level
51790
51800
  const globalPackageVersion = () => SDK_VERSION_MARKER;
51791
51801
 
package/dist/orderbook.js CHANGED
@@ -132,7 +132,7 @@ const flattenProperties = (properties) => {
132
132
  };
133
133
 
134
134
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
135
- const SDK_VERSION = '1.29.0';
135
+ const SDK_VERSION = '1.29.2';
136
136
  const getFrameParentDomain = () => {
137
137
  if (isNode()) {
138
138
  return '';
package/dist/passport.js CHANGED
@@ -11564,7 +11564,7 @@ class MultiRollupApiClients {
11564
11564
  }
11565
11565
 
11566
11566
  // eslint-disable-next-line @typescript-eslint/naming-convention
11567
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.29.0' };
11567
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.29.2' };
11568
11568
  const createConfig$1 = ({ basePath, headers, }) => {
11569
11569
  if (!basePath.trim()) {
11570
11570
  throw Error('basePath can not be empty');
@@ -11743,7 +11743,7 @@ const flattenProperties = (properties) => {
11743
11743
  };
11744
11744
 
11745
11745
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11746
- const SDK_VERSION = '1.29.0';
11746
+ const SDK_VERSION = '1.29.2';
11747
11747
  const getFrameParentDomain = () => {
11748
11748
  if (isNode()) {
11749
11749
  return '';
@@ -12133,7 +12133,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
12133
12133
  /* eslint-disable @typescript-eslint/naming-convention */
12134
12134
  class ApiConfiguration extends index$2.Configuration {
12135
12135
  }
12136
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.0' };
12136
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.2' };
12137
12137
  /**
12138
12138
  * @dev use createImmutableXConfiguration instead
12139
12139
  */
@@ -12172,7 +12172,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
12172
12172
  chainID,
12173
12173
  coreContractAddress,
12174
12174
  registrationContractAddress,
12175
- sdkVersion: 'ts-immutable-sdk-1.29.0',
12175
+ sdkVersion: 'ts-immutable-sdk-1.29.2',
12176
12176
  baseConfig,
12177
12177
  });
12178
12178
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -21017,7 +21017,9 @@ var ReceiveMessage;
21017
21017
  ReceiveMessage["CONFIRMATION_WINDOW_READY"] = "confirmation_window_ready";
21018
21018
  ReceiveMessage["TRANSACTION_CONFIRMED"] = "transaction_confirmed";
21019
21019
  ReceiveMessage["TRANSACTION_ERROR"] = "transaction_error";
21020
+ ReceiveMessage["TRANSACTION_REJECTED"] = "transaction_rejected";
21020
21021
  ReceiveMessage["MESSAGE_CONFIRMED"] = "message_confirmed";
21022
+ ReceiveMessage["MESSAGE_ERROR"] = "message_error";
21021
21023
  ReceiveMessage["MESSAGE_REJECTED"] = "message_rejected";
21022
21024
  ReceiveMessage["LOGOUT_SUCCESS"] = "logout_success";
21023
21025
  })(ReceiveMessage || (ReceiveMessage = {}));
@@ -21084,7 +21086,11 @@ class ConfirmationScreen {
21084
21086
  break;
21085
21087
  }
21086
21088
  case ReceiveMessage.TRANSACTION_ERROR: {
21087
- reject(new Error('Transaction error'));
21089
+ reject(new Error('Error during transaction confirmation'));
21090
+ break;
21091
+ }
21092
+ case ReceiveMessage.TRANSACTION_REJECTED: {
21093
+ reject(new Error('User rejected transaction'));
21088
21094
  break;
21089
21095
  }
21090
21096
  default:
@@ -21127,8 +21133,12 @@ class ConfirmationScreen {
21127
21133
  resolve({ confirmed: true });
21128
21134
  break;
21129
21135
  }
21136
+ case ReceiveMessage.MESSAGE_ERROR: {
21137
+ reject(new Error('Error during message confirmation'));
21138
+ break;
21139
+ }
21130
21140
  case ReceiveMessage.MESSAGE_REJECTED: {
21131
- reject(new Error('Message rejected'));
21141
+ reject(new Error('User rejected message'));
21132
21142
  break;
21133
21143
  }
21134
21144
  default:
package/dist/x.js CHANGED
@@ -9003,7 +9003,7 @@ const flattenProperties = (properties) => {
9003
9003
  };
9004
9004
 
9005
9005
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9006
- const SDK_VERSION = '1.29.0';
9006
+ const SDK_VERSION = '1.29.2';
9007
9007
  const getFrameParentDomain = () => {
9008
9008
  if (isNode()) {
9009
9009
  return '';
@@ -9269,7 +9269,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
9269
9269
  /* eslint-disable @typescript-eslint/naming-convention */
9270
9270
  class ApiConfiguration extends index$2.Configuration {
9271
9271
  }
9272
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.0' };
9272
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.29.2' };
9273
9273
  /**
9274
9274
  * @dev use createImmutableXConfiguration instead
9275
9275
  */
@@ -9308,7 +9308,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9308
9308
  chainID,
9309
9309
  coreContractAddress,
9310
9310
  registrationContractAddress,
9311
- sdkVersion: 'ts-immutable-sdk-1.29.0',
9311
+ sdkVersion: 'ts-immutable-sdk-1.29.2',
9312
9312
  baseConfig,
9313
9313
  });
9314
9314
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.29.0",
4
+ "version": "1.29.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -1 +0,0 @@
1
- import{dj as n,dk as t}from"./index-e27c3ed4.js";function i(i){return n(this,void 0,void 0,(function(){var n;return t(this,(function(t){switch(t.label){case 0:return[4,import("./index.umd-f196f3bb.js").then((function(n){return n.i}))];case 1:return n=t.sent(),i._plugins=n,[2]}}))}))}export{i as loadLegacyVideoPlugins};