@imtbl/checkout-widgets 2.2.1-alpha.1 → 2.2.1-alpha.3

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 (26) hide show
  1. package/dist/browser/{AddTokensWidget-CIX9CQkm.js → AddTokensWidget-BvNotPGn.js} +9 -9
  2. package/dist/browser/{BridgeWidget-DZoglU1Z.js → BridgeWidget-B0opopx_.js} +11 -11
  3. package/dist/browser/{CommerceWidget-D8k1Bk8v.js → CommerceWidget-CH9qx9M3.js} +13 -13
  4. package/dist/browser/{FeesBreakdown-Bj9eD-6N.js → FeesBreakdown-DXbWanR8.js} +1 -1
  5. package/dist/browser/{OnRampWidget-Cish1sa7.js → OnRampWidget-CZ8Y_a-I.js} +3 -3
  6. package/dist/browser/{SaleWidget-B84V0S1J.js → SaleWidget-DUXLt7ko.js} +13 -13
  7. package/dist/browser/{SpendingCapHero-0giZEKem.js → SpendingCapHero-djvmOc10.js} +1 -1
  8. package/dist/browser/{SwapWidget-EpPSGKqD.js → SwapWidget-cjYVuuQc.js} +7 -7
  9. package/dist/browser/{TokenImage-DkervDKQ.js → TokenImage-V63cjp1X.js} +1 -1
  10. package/dist/browser/{TopUpView-DwRBmzvI.js → TopUpView-CdC1aw2U.js} +1 -1
  11. package/dist/browser/{WalletApproveHero-XianIJAQ.js → WalletApproveHero-CHrbCyb_.js} +2 -2
  12. package/dist/browser/{WalletWidget-DxQcP7sk.js → WalletWidget-DLOFf9sK.js} +3 -3
  13. package/dist/browser/{auto-track-DeLnQQ5M.js → auto-track-DNvtmxhp.js} +1 -1
  14. package/dist/browser/{index-DpNna0MG.js → index-B9hqwyYq.js} +2 -2
  15. package/dist/browser/{index-CVAaj9Qm.js → index-BBWBaCHB.js} +102 -103
  16. package/dist/browser/{index-BwNgGaGH.js → index-BaCotMNF.js} +1 -1
  17. package/dist/browser/{index-ByDgwiba.js → index-Bpu7oAM7.js} +1 -1
  18. package/dist/browser/{index-qgsQUTip.js → index-C-YqAxbf.js} +1 -1
  19. package/dist/browser/{index-lgFyRHj_.js → index-C20vFgOw.js} +1 -1
  20. package/dist/browser/{index-D18hBbWb.js → index-D42o_Vfy.js} +1 -1
  21. package/dist/browser/{index-Dpv6KyQF.js → index-Q6M9HC_M.js} +1 -1
  22. package/dist/browser/index.js +1 -1
  23. package/dist/browser/{index.umd-BwrkBBu0.js → index.umd-CnXZIhTv.js} +1 -1
  24. package/dist/browser/{useInterval-BE4Wp_87.js → useInterval-B1pEL9MR.js} +1 -1
  25. package/package.json +7 -7
  26. package/src/widgets/connect/views/SwitchNetworkZkEVM.tsx +3 -4
@@ -1,4 +1,4 @@
1
- import { e3 as getAugmentedNamespace, az as commonjsGlobal } from './index-CVAaj9Qm.js';
1
+ import { e3 as getAugmentedNamespace, az as commonjsGlobal } from './index-BBWBaCHB.js';
2
2
 
3
3
  var dist$1 = {};
4
4
 
@@ -1,4 +1,4 @@
1
- import { e4 as __awaiter, e5 as __generator, ef as isServer, e7 as getNextIntegrationsURL, e6 as loadScript } from './index-CVAaj9Qm.js';
1
+ import { e4 as __awaiter, e5 as __generator, ef as isServer, e7 as getNextIntegrationsURL, e6 as loadScript } from './index-BBWBaCHB.js';
2
2
 
3
3
  function remoteMiddlewares(ctx, settings, obfuscate) {
4
4
  var _a;
@@ -1,4 +1,4 @@
1
- import { dW as se$1, dX as T$2, dY as oe$1, dZ as R$1, d_ as a$2, d$ as te$1, e0 as p$1, e1 as ne$1, e2 as y$1 } from './index-CVAaj9Qm.js';
1
+ import { dW as se$1, dX as T$2, dY as oe$1, dZ as R$1, d_ as a$2, d$ as te$1, e0 as p$1, e1 as ne$1, e2 as y$1 } from './index-BBWBaCHB.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,4 +1,4 @@
1
- import { ep as gracefulDecodeURIComponent, eh as isPlainObject } from './index-CVAaj9Qm.js';
1
+ import { ep as gracefulDecodeURIComponent, eh as isPlainObject } from './index-BBWBaCHB.js';
2
2
 
3
3
  /**
4
4
  * Returns an object containing only the properties prefixed by the input
@@ -1,4 +1,4 @@
1
- import { e4 as __awaiter, e5 as __generator, e6 as loadScript, e7 as getNextIntegrationsURL, e8 as unloadScript, e9 as __spreadArray, ea as isOffline, eb as __assign, ec as ContextCancelation, ed as applyDestinationMiddleware, ee as dist, ef as isServer, eg as mergedOptions, eh as isPlainObject, ei as pWhile, ej as PriorityQueue, ek as PersistedPriorityQueue, el as attempt, em as isOnline, en as Context } from './index-CVAaj9Qm.js';
1
+ import { e4 as __awaiter, e5 as __generator, e6 as loadScript, e7 as getNextIntegrationsURL, e8 as unloadScript, e9 as __spreadArray, ea as isOffline, eb as __assign, ec as ContextCancelation, ed as applyDestinationMiddleware, ee as dist, ef as isServer, eg as mergedOptions, eh as isPlainObject, ei as pWhile, ej as PriorityQueue, ek as PersistedPriorityQueue, el as attempt, em as isOnline, en as Context } from './index-BBWBaCHB.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function normalizeName(name) {
@@ -1,4 +1,4 @@
1
- import { eb as __assign } from './index-CVAaj9Qm.js';
1
+ import { eb as __assign } from './index-BBWBaCHB.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function disabledActionDestinations(plan, settings) {
@@ -1 +1 @@
1
- export { eq as WidgetsFactory } from './index-CVAaj9Qm.js';
1
+ export { eq as WidgetsFactory } from './index-BBWBaCHB.js';
@@ -1,4 +1,4 @@
1
- import { ay as getDefaultExportFromCjs } from './index-CVAaj9Qm.js';
1
+ import { ay as getDefaultExportFromCjs } from './index-BBWBaCHB.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -1,4 +1,4 @@
1
- import { b as reactExports, dV as useBrowserLayoutEffect } from './index-CVAaj9Qm.js';
1
+ import { b as reactExports, dV as useBrowserLayoutEffect } from './index-BBWBaCHB.js';
2
2
 
3
3
  // Inspired by https://usehooks-ts.com/react-hook/use-interval
4
4
  function useInterval(callback, delay) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imtbl/checkout-widgets",
3
- "version": "2.2.1-alpha.1",
3
+ "version": "2.2.1-alpha.3",
4
4
  "browserslist": {
5
5
  "production": [
6
6
  ">0.2%",
@@ -18,12 +18,12 @@
18
18
  "@biom3/design-tokens": "^0.4.5",
19
19
  "@biom3/react": "^0.29.4",
20
20
  "@emotion/react": "^11.11.3",
21
- "@imtbl/bridge-sdk": "2.2.1-alpha.1",
22
- "@imtbl/checkout-sdk": "2.2.1-alpha.1",
23
- "@imtbl/config": "2.2.1-alpha.1",
24
- "@imtbl/cryptofiat": "2.2.1-alpha.1",
25
- "@imtbl/dex-sdk": "2.2.1-alpha.1",
26
- "@imtbl/passport": "2.2.1-alpha.1",
21
+ "@imtbl/bridge-sdk": "2.2.1-alpha.3",
22
+ "@imtbl/checkout-sdk": "2.2.1-alpha.3",
23
+ "@imtbl/config": "2.2.1-alpha.3",
24
+ "@imtbl/cryptofiat": "2.2.1-alpha.3",
25
+ "@imtbl/dex-sdk": "2.2.1-alpha.3",
26
+ "@imtbl/passport": "2.2.1-alpha.3",
27
27
  "@imtbl/react-analytics": "0.3.2-alpha",
28
28
  "@rive-app/react-canvas-lite": "^4.9.0",
29
29
  "@walletconnect/ethereum-provider": "^2.11.1",
@@ -75,9 +75,8 @@ export function SwitchNetworkZkEVM() {
75
75
 
76
76
  if (!provider.send) return;
77
77
 
78
- const currentChainId = await provider.send('eth_chainId', []);
79
- // eslint-disable-next-line radix
80
- const parsedChainId = Number(currentChainId.toString());
78
+ const currentChainId = await provider.send('eth_chainId', []) as `0x${string}`;
79
+ const parsedChainId = Number(currentChainId);
81
80
 
82
81
  if (parsedChainId === checkout.config.l2ChainId) {
83
82
  connectDispatch({
@@ -102,7 +101,7 @@ export function SwitchNetworkZkEVM() {
102
101
  try {
103
102
  let walletName = '';
104
103
  if (isWalletConnectProvider(provider)) {
105
- walletName = (provider.provider as any)?.session?.peer?.metadata?.name.toLowerCase();
104
+ walletName = (provider.ethereumProvider as any)?.session?.peer?.metadata?.name.toLowerCase();
106
105
  }
107
106
  if (walletName.includes('metamask')) {
108
107
  try {