@dappworks/kit 0.4.211 → 0.4.213

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 (48) hide show
  1. package/dist/{PromiseState-nh1sHDAs.d.ts → PromiseState-00f10e83.d.ts} +1 -1
  2. package/dist/{StorageState-qapaHguM.d.ts → StorageState-cfd942cb.d.ts} +1 -1
  3. package/dist/aiem.d.mts +1 -1
  4. package/dist/aiem.mjs +2 -2
  5. package/dist/{chunk-BUAUKNNF.mjs → chunk-4OJFHANU.mjs} +4 -4
  6. package/dist/{chunk-BE2I23U2.mjs → chunk-HDTICRGY.mjs} +2 -2
  7. package/dist/{chunk-4UFM3HVW.mjs → chunk-HGZ65C4B.mjs} +5 -5
  8. package/dist/{chunk-4UFM3HVW.mjs.map → chunk-HGZ65C4B.mjs.map} +1 -1
  9. package/dist/{chunk-XSGTWROT.mjs → chunk-IDKGZ5T4.mjs} +7 -7
  10. package/dist/{chunk-XSGTWROT.mjs.map → chunk-IDKGZ5T4.mjs.map} +1 -1
  11. package/dist/{chunk-2EXDWOHY.mjs → chunk-IXLGFRW6.mjs} +1 -1
  12. package/dist/{chunk-L6XS2K2K.mjs → chunk-LJZWWO2Z.mjs} +3 -3
  13. package/dist/{chunk-3TBJNCTQ.mjs → chunk-P77SGQIM.mjs} +2 -2
  14. package/dist/{chunk-274FDVNP.mjs → chunk-QAHRKWRK.mjs} +2 -2
  15. package/dist/{chunk-DRTTNPZI.mjs → chunk-VEGBB5PR.mjs} +2 -2
  16. package/dist/dev.d.mts +1 -1
  17. package/dist/dev.mjs +2 -2
  18. package/dist/experimental.d.mts +2 -2
  19. package/dist/experimental.mjs +3 -3
  20. package/dist/form.d.mts +3 -3
  21. package/dist/form.mjs +3 -3
  22. package/dist/{index-CUKoRIdy.d.ts → index-38be834f.d.ts} +1 -1
  23. package/dist/index.d.mts +5 -5
  24. package/dist/index.mjs +4 -4
  25. package/dist/inspector.d.mts +1 -1
  26. package/dist/inspector.mjs +1 -1
  27. package/dist/jsontable.d.mts +2 -2
  28. package/dist/jsontable.mjs +4 -4
  29. package/dist/metrics.d.mts +1 -1
  30. package/dist/metrics.mjs +4 -4
  31. package/dist/plugins.d.mts +3 -3
  32. package/dist/plugins.mjs +5 -5
  33. package/dist/{root-C3lZnoCI.d.ts → root-766ae985.d.ts} +1 -1
  34. package/dist/ui.mjs +3 -3
  35. package/dist/utils.d.mts +3 -8
  36. package/dist/utils.mjs +1 -1
  37. package/dist/wallet.d.mts +3 -3
  38. package/dist/wallet.mjs +15 -20
  39. package/dist/wallet.mjs.map +1 -1
  40. package/package.json +1 -1
  41. /package/dist/{PaginationState-Bmrrw0ky.d.ts → PaginationState-c19e621a.d.ts} +0 -0
  42. /package/dist/{chunk-BUAUKNNF.mjs.map → chunk-4OJFHANU.mjs.map} +0 -0
  43. /package/dist/{chunk-BE2I23U2.mjs.map → chunk-HDTICRGY.mjs.map} +0 -0
  44. /package/dist/{chunk-2EXDWOHY.mjs.map → chunk-IXLGFRW6.mjs.map} +0 -0
  45. /package/dist/{chunk-L6XS2K2K.mjs.map → chunk-LJZWWO2Z.mjs.map} +0 -0
  46. /package/dist/{chunk-3TBJNCTQ.mjs.map → chunk-P77SGQIM.mjs.map} +0 -0
  47. /package/dist/{chunk-274FDVNP.mjs.map → chunk-QAHRKWRK.mjs.map} +0 -0
  48. /package/dist/{chunk-DRTTNPZI.mjs.map → chunk-VEGBB5PR.mjs.map} +0 -0
package/dist/wallet.mjs CHANGED
@@ -1,15 +1,15 @@
1
- import { AIem } from './chunk-3TBJNCTQ.mjs';
1
+ import { AIem } from './chunk-P77SGQIM.mjs';
2
2
  import './chunk-7MDKCI65.mjs';
3
- import { StorageState, ObjectPool, PromiseHook } from './chunk-DRTTNPZI.mjs';
4
- import './chunk-4UFM3HVW.mjs';
5
- import { DialogStore } from './chunk-L6XS2K2K.mjs';
3
+ import { StorageState, ObjectPool, PromiseHook } from './chunk-VEGBB5PR.mjs';
4
+ import './chunk-HGZ65C4B.mjs';
5
+ import { DialogStore } from './chunk-LJZWWO2Z.mjs';
6
6
  import { ToastPlugin } from './chunk-IMOLRP7I.mjs';
7
7
  import './chunk-K73JTEJQ.mjs';
8
- import { RootStore } from './chunk-XSGTWROT.mjs';
8
+ import { RootStore } from './chunk-IDKGZ5T4.mjs';
9
9
  import { helper } from './chunk-R4N52NI2.mjs';
10
10
  import './chunk-ONVPCAMQ.mjs';
11
11
  import './chunk-K7LFG5BA.mjs';
12
- import { __commonJS, __toESM, __spreadValues, __spreadProps } from './chunk-2EXDWOHY.mjs';
12
+ import { __commonJS, __toESM, __spreadValues, __spreadProps } from './chunk-IXLGFRW6.mjs';
13
13
  import { getDefaultConfig, useConnectModal, RainbowKitProvider, darkTheme, lightTheme } from '@rainbow-me/rainbowkit';
14
14
  import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
15
15
  import React5, { useEffect, useState } from 'react';
@@ -952,7 +952,7 @@ var getSDKVersion = () => "9.1.0";
952
952
  // ../../node_modules/@safe-global/safe-apps-sdk/dist/esm/communication/utils.js
953
953
  var dec2hex = (dec) => dec.toString(16).padStart(2, "0");
954
954
  var generateId = (len) => {
955
- const arr = new Uint8Array((len) / 2);
955
+ const arr = new Uint8Array((len || 40) / 2);
956
956
  window.crypto.getRandomValues(arr);
957
957
  return Array.from(arr, dec2hex).join("");
958
958
  };
@@ -1923,17 +1923,12 @@ var WalletProvider = ({
1923
1923
  }) => {
1924
1924
  const walletConfig = RootStore.Get(WalletConfigStore, { args: { supportedChains: supportedChains != null ? supportedChains : [iotex] } });
1925
1925
  const [config, setConfig] = useState(walletConfig.rainbowKitConfig);
1926
- useEffect(() => {
1927
- const disposer = reaction(
1928
- () => walletConfig.updateTicker,
1929
- () => {
1930
- setConfig(walletConfig.rainbowKitConfig);
1931
- }
1932
- );
1933
- return () => {
1934
- disposer();
1935
- };
1936
- }, []);
1926
+ reaction(
1927
+ () => walletConfig.updateTicker,
1928
+ () => {
1929
+ setConfig(walletConfig.rainbowKitConfig);
1930
+ }
1931
+ );
1937
1932
  useEffect(() => {
1938
1933
  if (appName) {
1939
1934
  walletConfig.appName = appName;
@@ -1948,13 +1943,13 @@ var WalletProvider = ({
1948
1943
  );
1949
1944
  };
1950
1945
  var WalletConnect = ({ compatibleMode = true, router }) => {
1951
- const res = useReconnect();
1946
+ const { reconnect } = useReconnect();
1952
1947
  const wallet = RootStore.Get(WalletStore);
1953
1948
  wallet.use();
1954
1949
  if (router && compatibleMode) {
1955
1950
  useEffect(() => {
1956
1951
  if (!wallet.account) {
1957
- res.reconnectAsync();
1952
+ reconnect();
1958
1953
  }
1959
1954
  }, [router]);
1960
1955
  }