@imtbl/sdk 1.20.8-alpha → 1.21.0

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-b639cdfe.js → BridgeWidget-48ef95fb.js} +1 -1
  3. package/dist/browser/checkout/{HorizontalMenu-actual-7b55cbc5.js → HorizontalMenu-actual-1b0aa351.js} +1 -1
  4. package/dist/browser/checkout/{OnRampWidget-105a2cb8.js → OnRampWidget-1c87f5ac.js} +1 -1
  5. package/dist/browser/checkout/{SaleWidget-21c24306.js → SaleWidget-51e77b6f.js} +1 -1
  6. package/dist/browser/checkout/{SpendingCapHero-bcdca60b.js → SpendingCapHero-43d4d6a1.js} +1 -1
  7. package/dist/browser/checkout/{SwapWidget-2696479a.js → SwapWidget-3040f466.js} +1 -1
  8. package/dist/browser/checkout/{TopUpView-597472f7.js → TopUpView-9237bc6c.js} +1 -1
  9. package/dist/browser/checkout/{WalletWidget-7c7e881a.js → WalletWidget-b5e4f4d7.js} +1 -1
  10. package/dist/browser/checkout/{auto-track-892bccba.js → auto-track-dbd0e9c6.js} +1 -1
  11. package/dist/browser/checkout/{balance-2406233e.js → balance-3b1416a3.js} +1 -1
  12. package/dist/browser/checkout/{index-d9edec3c.js → index-383a69c3.js} +1 -1
  13. package/dist/browser/checkout/{index-e6d17d74.js → index-67abd982.js} +2 -2
  14. package/dist/browser/checkout/{index-5f052ddd.js → index-8107ef81.js} +1 -1
  15. package/dist/browser/checkout/{index-c9890776.js → index-a4b63381.js} +1 -1
  16. package/dist/browser/checkout/index-a81361a5.js +1 -0
  17. package/dist/browser/checkout/{index-9957d060.js → index-d80910d5.js} +1 -1
  18. package/dist/browser/checkout/{index-a5a408e0.js → index-ebf766fc.js} +1 -1
  19. package/dist/browser/checkout/{index-0d2d3297.js → index-f5dd3066.js} +1 -1
  20. package/dist/browser/checkout/{index.umd-dc6b2080.js → index.umd-b03c715d.js} +1 -1
  21. package/dist/browser/checkout/{retry-111f2a9b.js → retry-da82ba74.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 +1 -1
  25. package/dist/checkout.js +4 -4
  26. package/dist/config.js +1 -1
  27. package/dist/index.browser.js +13 -13
  28. package/dist/index.browser.js.map +1 -1
  29. package/dist/index.cjs +19 -7
  30. package/dist/index.js +19 -7
  31. package/dist/orderbook.js +1 -1
  32. package/dist/passport.js +16 -4
  33. package/dist/x.js +3 -3
  34. package/package.json +1 -1
  35. package/dist/browser/checkout/index-95d13e65.js +0 -1
package/dist/index.cjs CHANGED
@@ -181,7 +181,7 @@ const flattenProperties$1 = (properties) => {
181
181
  };
182
182
 
183
183
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
184
- const SDK_VERSION$1 = '1.20.8-alpha';
184
+ const SDK_VERSION$1 = '1.21.0';
185
185
  const getReferrer$1 = () => {
186
186
  if (isNode$1()) {
187
187
  return '';
@@ -13557,7 +13557,7 @@ class MultiRollupApiClients {
13557
13557
  }
13558
13558
 
13559
13559
  // eslint-disable-next-line @typescript-eslint/naming-convention
13560
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.20.8-alpha' };
13560
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
13561
13561
  const createConfig$1 = ({ basePath, headers, }) => {
13562
13562
  if (!basePath.trim()) {
13563
13563
  throw Error('basePath can not be empty');
@@ -13629,7 +13629,7 @@ class APIError extends Error {
13629
13629
 
13630
13630
  /* eslint-disable implicit-arrow-linebreak */
13631
13631
  const defaultHeaders$1 = {
13632
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.20.8-alpha',
13632
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.21.0',
13633
13633
  };
13634
13634
  /**
13635
13635
  * createAPIConfiguration to create a custom Configuration
@@ -14103,7 +14103,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14103
14103
  /* eslint-disable @typescript-eslint/naming-convention */
14104
14104
  class ApiConfiguration extends index$2.Configuration {
14105
14105
  }
14106
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.8-alpha' };
14106
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
14107
14107
  /**
14108
14108
  * @dev use createImmutableXConfiguration instead
14109
14109
  */
@@ -14142,7 +14142,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14142
14142
  chainID,
14143
14143
  coreContractAddress,
14144
14144
  registrationContractAddress,
14145
- sdkVersion: 'ts-immutable-sdk-1.20.8-alpha',
14145
+ sdkVersion: 'ts-immutable-sdk-1.21.0',
14146
14146
  baseConfig,
14147
14147
  });
14148
14148
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -25410,6 +25410,10 @@ class PassportConfiguration {
25410
25410
  }
25411
25411
  }
25412
25412
 
25413
+ var SendMessage;
25414
+ (function (SendMessage) {
25415
+ SendMessage["CONFIRMATION_START"] = "confirmation_start";
25416
+ })(SendMessage || (SendMessage = {}));
25413
25417
  var ReceiveMessage;
25414
25418
  (function (ReceiveMessage) {
25415
25419
  ReceiveMessage["CONFIRMATION_WINDOW_READY"] = "confirmation_window_ready";
@@ -25471,6 +25475,10 @@ class ConfirmationScreen {
25471
25475
  }
25472
25476
  switch (data.messageType) {
25473
25477
  case ReceiveMessage.CONFIRMATION_WINDOW_READY: {
25478
+ this.confirmationWindow?.postMessage({
25479
+ eventType: PASSPORT_EVENT_TYPE,
25480
+ messageType: SendMessage.CONFIRMATION_START,
25481
+ }, this.config.passportDomain);
25474
25482
  break;
25475
25483
  }
25476
25484
  case ReceiveMessage.TRANSACTION_CONFIRMED: {
@@ -25511,6 +25519,10 @@ class ConfirmationScreen {
25511
25519
  }
25512
25520
  switch (data.messageType) {
25513
25521
  case ReceiveMessage.CONFIRMATION_WINDOW_READY: {
25522
+ this.confirmationWindow?.postMessage({
25523
+ eventType: PASSPORT_EVENT_TYPE,
25524
+ messageType: SendMessage.CONFIRMATION_START,
25525
+ }, this.config.passportDomain);
25514
25526
  break;
25515
25527
  }
25516
25528
  case ReceiveMessage.MESSAGE_CONFIRMED: {
@@ -45446,7 +45458,7 @@ const flattenProperties = (properties) => {
45446
45458
  };
45447
45459
 
45448
45460
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45449
- const SDK_VERSION = '1.20.8-alpha';
45461
+ const SDK_VERSION = '1.21.0';
45450
45462
  const getReferrer = () => {
45451
45463
  if (isNode()) {
45452
45464
  return '';
@@ -50641,7 +50653,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50641
50653
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
50642
50654
  };
50643
50655
 
50644
- const SDK_VERSION_MARKER = '1.20.8-alpha';
50656
+ const SDK_VERSION_MARKER = '1.21.0';
50645
50657
  // This SDK version is replaced by the `yarn build` command ran on the root level
50646
50658
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50647
50659
 
package/dist/index.js CHANGED
@@ -159,7 +159,7 @@ const flattenProperties$1 = (properties) => {
159
159
  };
160
160
 
161
161
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
162
- const SDK_VERSION$1 = '1.20.8-alpha';
162
+ const SDK_VERSION$1 = '1.21.0';
163
163
  const getReferrer$1 = () => {
164
164
  if (isNode$1()) {
165
165
  return '';
@@ -13535,7 +13535,7 @@ class MultiRollupApiClients {
13535
13535
  }
13536
13536
 
13537
13537
  // eslint-disable-next-line @typescript-eslint/naming-convention
13538
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.20.8-alpha' };
13538
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
13539
13539
  const createConfig$1 = ({ basePath, headers, }) => {
13540
13540
  if (!basePath.trim()) {
13541
13541
  throw Error('basePath can not be empty');
@@ -13607,7 +13607,7 @@ class APIError extends Error {
13607
13607
 
13608
13608
  /* eslint-disable implicit-arrow-linebreak */
13609
13609
  const defaultHeaders$1 = {
13610
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.20.8-alpha',
13610
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.21.0',
13611
13611
  };
13612
13612
  /**
13613
13613
  * createAPIConfiguration to create a custom Configuration
@@ -14081,7 +14081,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14081
14081
  /* eslint-disable @typescript-eslint/naming-convention */
14082
14082
  class ApiConfiguration extends index$2.Configuration {
14083
14083
  }
14084
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.8-alpha' };
14084
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
14085
14085
  /**
14086
14086
  * @dev use createImmutableXConfiguration instead
14087
14087
  */
@@ -14120,7 +14120,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14120
14120
  chainID,
14121
14121
  coreContractAddress,
14122
14122
  registrationContractAddress,
14123
- sdkVersion: 'ts-immutable-sdk-1.20.8-alpha',
14123
+ sdkVersion: 'ts-immutable-sdk-1.21.0',
14124
14124
  baseConfig,
14125
14125
  });
14126
14126
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -25388,6 +25388,10 @@ class PassportConfiguration {
25388
25388
  }
25389
25389
  }
25390
25390
 
25391
+ var SendMessage;
25392
+ (function (SendMessage) {
25393
+ SendMessage["CONFIRMATION_START"] = "confirmation_start";
25394
+ })(SendMessage || (SendMessage = {}));
25391
25395
  var ReceiveMessage;
25392
25396
  (function (ReceiveMessage) {
25393
25397
  ReceiveMessage["CONFIRMATION_WINDOW_READY"] = "confirmation_window_ready";
@@ -25449,6 +25453,10 @@ class ConfirmationScreen {
25449
25453
  }
25450
25454
  switch (data.messageType) {
25451
25455
  case ReceiveMessage.CONFIRMATION_WINDOW_READY: {
25456
+ this.confirmationWindow?.postMessage({
25457
+ eventType: PASSPORT_EVENT_TYPE,
25458
+ messageType: SendMessage.CONFIRMATION_START,
25459
+ }, this.config.passportDomain);
25452
25460
  break;
25453
25461
  }
25454
25462
  case ReceiveMessage.TRANSACTION_CONFIRMED: {
@@ -25489,6 +25497,10 @@ class ConfirmationScreen {
25489
25497
  }
25490
25498
  switch (data.messageType) {
25491
25499
  case ReceiveMessage.CONFIRMATION_WINDOW_READY: {
25500
+ this.confirmationWindow?.postMessage({
25501
+ eventType: PASSPORT_EVENT_TYPE,
25502
+ messageType: SendMessage.CONFIRMATION_START,
25503
+ }, this.config.passportDomain);
25492
25504
  break;
25493
25505
  }
25494
25506
  case ReceiveMessage.MESSAGE_CONFIRMED: {
@@ -45424,7 +45436,7 @@ const flattenProperties = (properties) => {
45424
45436
  };
45425
45437
 
45426
45438
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45427
- const SDK_VERSION = '1.20.8-alpha';
45439
+ const SDK_VERSION = '1.21.0';
45428
45440
  const getReferrer = () => {
45429
45441
  if (isNode()) {
45430
45442
  return '';
@@ -50619,7 +50631,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50619
50631
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
50620
50632
  };
50621
50633
 
50622
- const SDK_VERSION_MARKER = '1.20.8-alpha';
50634
+ const SDK_VERSION_MARKER = '1.21.0';
50623
50635
  // This SDK version is replaced by the `yarn build` command ran on the root level
50624
50636
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50625
50637
 
package/dist/orderbook.js CHANGED
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
131
131
  };
132
132
 
133
133
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
134
- const SDK_VERSION = '1.20.8-alpha';
134
+ const SDK_VERSION = '1.21.0';
135
135
  const getReferrer = () => {
136
136
  if (isNode()) {
137
137
  return '';
package/dist/passport.js CHANGED
@@ -11350,7 +11350,7 @@ class MultiRollupApiClients {
11350
11350
  }
11351
11351
 
11352
11352
  // eslint-disable-next-line @typescript-eslint/naming-convention
11353
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.20.8-alpha' };
11353
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
11354
11354
  const createConfig$1 = ({ basePath, headers, }) => {
11355
11355
  if (!basePath.trim()) {
11356
11356
  throw Error('basePath can not be empty');
@@ -11529,7 +11529,7 @@ const flattenProperties = (properties) => {
11529
11529
  };
11530
11530
 
11531
11531
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11532
- const SDK_VERSION = '1.20.8-alpha';
11532
+ const SDK_VERSION = '1.21.0';
11533
11533
  const getReferrer = () => {
11534
11534
  if (isNode()) {
11535
11535
  return '';
@@ -11779,7 +11779,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
11779
11779
  /* eslint-disable @typescript-eslint/naming-convention */
11780
11780
  class ApiConfiguration extends index$2.Configuration {
11781
11781
  }
11782
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.8-alpha' };
11782
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
11783
11783
  /**
11784
11784
  * @dev use createImmutableXConfiguration instead
11785
11785
  */
@@ -11818,7 +11818,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11818
11818
  chainID,
11819
11819
  coreContractAddress,
11820
11820
  registrationContractAddress,
11821
- sdkVersion: 'ts-immutable-sdk-1.20.8-alpha',
11821
+ sdkVersion: 'ts-immutable-sdk-1.21.0',
11822
11822
  baseConfig,
11823
11823
  });
11824
11824
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -20369,6 +20369,10 @@ class PassportConfiguration {
20369
20369
  }
20370
20370
  }
20371
20371
 
20372
+ var SendMessage;
20373
+ (function (SendMessage) {
20374
+ SendMessage["CONFIRMATION_START"] = "confirmation_start";
20375
+ })(SendMessage || (SendMessage = {}));
20372
20376
  var ReceiveMessage;
20373
20377
  (function (ReceiveMessage) {
20374
20378
  ReceiveMessage["CONFIRMATION_WINDOW_READY"] = "confirmation_window_ready";
@@ -20430,6 +20434,10 @@ class ConfirmationScreen {
20430
20434
  }
20431
20435
  switch (data.messageType) {
20432
20436
  case ReceiveMessage.CONFIRMATION_WINDOW_READY: {
20437
+ this.confirmationWindow?.postMessage({
20438
+ eventType: PASSPORT_EVENT_TYPE,
20439
+ messageType: SendMessage.CONFIRMATION_START,
20440
+ }, this.config.passportDomain);
20433
20441
  break;
20434
20442
  }
20435
20443
  case ReceiveMessage.TRANSACTION_CONFIRMED: {
@@ -20470,6 +20478,10 @@ class ConfirmationScreen {
20470
20478
  }
20471
20479
  switch (data.messageType) {
20472
20480
  case ReceiveMessage.CONFIRMATION_WINDOW_READY: {
20481
+ this.confirmationWindow?.postMessage({
20482
+ eventType: PASSPORT_EVENT_TYPE,
20483
+ messageType: SendMessage.CONFIRMATION_START,
20484
+ }, this.config.passportDomain);
20473
20485
  break;
20474
20486
  }
20475
20487
  case ReceiveMessage.MESSAGE_CONFIRMED: {
package/dist/x.js CHANGED
@@ -8953,7 +8953,7 @@ const flattenProperties = (properties) => {
8953
8953
  };
8954
8954
 
8955
8955
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
8956
- const SDK_VERSION = '1.20.8-alpha';
8956
+ const SDK_VERSION = '1.21.0';
8957
8957
  const getReferrer = () => {
8958
8958
  if (isNode()) {
8959
8959
  return '';
@@ -9196,7 +9196,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
9196
9196
  /* eslint-disable @typescript-eslint/naming-convention */
9197
9197
  class ApiConfiguration extends index$2.Configuration {
9198
9198
  }
9199
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.8-alpha' };
9199
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
9200
9200
  /**
9201
9201
  * @dev use createImmutableXConfiguration instead
9202
9202
  */
@@ -9235,7 +9235,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9235
9235
  chainID,
9236
9236
  coreContractAddress,
9237
9237
  registrationContractAddress,
9238
- sdkVersion: 'ts-immutable-sdk-1.20.8-alpha',
9238
+ sdkVersion: 'ts-immutable-sdk-1.21.0',
9239
9239
  baseConfig,
9240
9240
  });
9241
9241
  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.20.8-alpha",
4
+ "version": "1.21.0",
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{cn as n,co as t}from"./index-e6d17d74.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-dc6b2080.js").then((function(n){return n.i}))];case 1:return n=t.sent(),i._plugins=n,[2]}}))}))}export{i as loadLegacyVideoPlugins};