@imtbl/sdk 1.15.6 → 1.15.7

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 (40) hide show
  1. package/dist/blockchain_data.js +2 -2
  2. package/dist/browser/checkout/BridgeWidget-2efbd9ad.js +1 -0
  3. package/dist/browser/checkout/{OnRampWidget-8e8b8819.js → OnRampWidget-a66e7fa3.js} +1 -1
  4. package/dist/browser/checkout/SaleWidget-3c62a591.js +2 -0
  5. package/dist/browser/checkout/{SpendingCapHero-800633cb.js → SpendingCapHero-f79df11e.js} +1 -1
  6. package/dist/browser/checkout/{SwapWidget-4214431b.js → SwapWidget-c978d4a4.js} +1 -1
  7. package/dist/browser/checkout/{TopUpView-c90cfc04.js → TopUpView-16db081a.js} +1 -1
  8. package/dist/browser/checkout/{WalletWidget-c00d8723.js → WalletWidget-a5c469ba.js} +1 -1
  9. package/dist/browser/checkout/{auto-track-6525038f.js → auto-track-639217b4.js} +1 -1
  10. package/dist/browser/checkout/balance-123191fd.js +1 -0
  11. package/dist/browser/checkout/index-0246bdc8.js +1 -0
  12. package/dist/browser/checkout/{index-41e34266.js → index-0e73c11a.js} +1 -1
  13. package/dist/browser/checkout/{index-32df522a.js → index-2141407f.js} +1 -1
  14. package/dist/browser/checkout/{index-89152f0a.js → index-4b1d2f64.js} +12 -12
  15. package/dist/browser/checkout/{index-6817e91e.js → index-4c08daa5.js} +17 -17
  16. package/dist/browser/checkout/{index-b0776e1e.js → index-7c3b9755.js} +1 -1
  17. package/dist/browser/checkout/{index-ac189cb1.js → index-92d189dd.js} +1 -1
  18. package/dist/browser/checkout/{index-3e347faa.js → index-9c24e104.js} +1 -1
  19. package/dist/browser/checkout/{index.umd-fc914ede.js → index.umd-ccd06a86.js} +1 -1
  20. package/dist/browser/checkout/{retry-06ea349a.js → retry-428bd9ee.js} +1 -1
  21. package/dist/browser/checkout/sdk.js +4 -4
  22. package/dist/browser/checkout/{useTransakEvents-2b588362.js → useTransakEvents-c01d9b36.js} +1 -1
  23. package/dist/browser/checkout/widgets-esm.js +1 -1
  24. package/dist/browser/checkout/widgets.js +61 -61
  25. package/dist/checkout.d.ts +2 -0
  26. package/dist/checkout.js +18 -11
  27. package/dist/config.js +1 -1
  28. package/dist/index.browser.js +5 -5
  29. package/dist/index.browser.js.map +1 -1
  30. package/dist/index.cjs +22 -14
  31. package/dist/index.d.ts +2 -0
  32. package/dist/index.js +22 -14
  33. package/dist/orderbook.js +1 -1
  34. package/dist/passport.js +5 -4
  35. package/dist/x.js +3 -3
  36. package/package.json +1 -1
  37. package/dist/browser/checkout/BridgeWidget-6e7e7a05.js +0 -1
  38. package/dist/browser/checkout/SaleWidget-7d3e4b1b.js +0 -2
  39. package/dist/browser/checkout/balance-c7e1bedb.js +0 -1
  40. package/dist/browser/checkout/index-e0bf7c42.js +0 -1
@@ -16326,6 +16326,8 @@ declare enum ConnectTargetLayer {
16326
16326
  type ConnectWidgetParams = {
16327
16327
  /** The language to use for the connect widget */
16328
16328
  language?: WidgetLanguage;
16329
+ /** The target chain to connect to as part of the connection process (defaults to Immutable zkEVM / Immutable zkEVM Testnet) */
16330
+ targetChainId?: ChainId;
16329
16331
  };
16330
16332
 
16331
16333
  /**
package/dist/checkout.js CHANGED
@@ -139,7 +139,7 @@ const flattenProperties$1 = (properties) => {
139
139
  };
140
140
 
141
141
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
142
- const SDK_VERSION$1 = '1.15.6';
142
+ const SDK_VERSION$1 = '1.15.7';
143
143
  const getReferrer$1 = () => {
144
144
  if (isNode$1()) {
145
145
  return '';
@@ -17550,7 +17550,7 @@ const flattenProperties = (properties) => {
17550
17550
  };
17551
17551
 
17552
17552
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
17553
- const SDK_VERSION = '1.15.6';
17553
+ const SDK_VERSION = '1.15.7';
17554
17554
  const getReferrer = () => {
17555
17555
  if (isNode()) {
17556
17556
  return '';
@@ -28036,7 +28036,7 @@ class APIError extends Error {
28036
28036
 
28037
28037
  /* eslint-disable implicit-arrow-linebreak */
28038
28038
  const defaultHeaders = {
28039
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.6',
28039
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.7',
28040
28040
  };
28041
28041
  /**
28042
28042
  * createAPIConfiguration to create a custom Configuration
@@ -29455,7 +29455,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
29455
29455
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
29456
29456
  };
29457
29457
 
29458
- const SDK_VERSION_MARKER = '1.15.6';
29458
+ const SDK_VERSION_MARKER = '1.15.7';
29459
29459
  // This SDK version is replaced by the `yarn build` command ran on the root level
29460
29460
  const globalPackageVersion = () => SDK_VERSION_MARKER;
29461
29461
 
@@ -32877,13 +32877,20 @@ const sell = async (config, provider, orders) => {
32877
32877
  const itemRequirements = [
32878
32878
  getERC721Requirement(sellToken.id, sellToken.collectionAddress, spenderAddress),
32879
32879
  ];
32880
- const smartCheckoutResult = await measureAsyncExecution(config, 'Total time running smart checkout', smartCheckout(config, provider, itemRequirements, {
32881
- type: TransactionOrGasType.GAS,
32882
- gasToken: {
32883
- type: GasTokenType.NATIVE,
32884
- limit: BigNumber$1.from(constants.estimatedFulfillmentGasGwei),
32885
- },
32886
- }));
32880
+ let smartCheckoutResult;
32881
+ const isPassport = provider.provider?.isPassport;
32882
+ if (!isPassport) {
32883
+ smartCheckoutResult = await measureAsyncExecution(config, 'Total time running smart checkout', smartCheckout(config, provider, itemRequirements, {
32884
+ type: TransactionOrGasType.GAS,
32885
+ gasToken: {
32886
+ type: GasTokenType.NATIVE,
32887
+ limit: BigNumber$1.from(constants.estimatedFulfillmentGasGwei),
32888
+ },
32889
+ }));
32890
+ }
32891
+ else {
32892
+ smartCheckoutResult = { sufficient: true, transactionRequirements: [] };
32893
+ }
32887
32894
  if (smartCheckoutResult.sufficient) {
32888
32895
  const unsignedTransactions = await getUnsignedERC721Transactions(listing.actions);
32889
32896
  const approvalResult = await signApprovalTransactions(provider, unsignedTransactions.approvalTransactions);
package/dist/config.js CHANGED
@@ -128,7 +128,7 @@ const flattenProperties = (properties) => {
128
128
  };
129
129
 
130
130
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
131
- const SDK_VERSION = '1.15.6';
131
+ const SDK_VERSION = '1.15.7';
132
132
  const getReferrer = () => {
133
133
  if (isNode()) {
134
134
  return '';