@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.
- package/dist/{PromiseState-nh1sHDAs.d.ts → PromiseState-00f10e83.d.ts} +1 -1
- package/dist/{StorageState-qapaHguM.d.ts → StorageState-cfd942cb.d.ts} +1 -1
- package/dist/aiem.d.mts +1 -1
- package/dist/aiem.mjs +2 -2
- package/dist/{chunk-BUAUKNNF.mjs → chunk-4OJFHANU.mjs} +4 -4
- package/dist/{chunk-BE2I23U2.mjs → chunk-HDTICRGY.mjs} +2 -2
- package/dist/{chunk-4UFM3HVW.mjs → chunk-HGZ65C4B.mjs} +5 -5
- package/dist/{chunk-4UFM3HVW.mjs.map → chunk-HGZ65C4B.mjs.map} +1 -1
- package/dist/{chunk-XSGTWROT.mjs → chunk-IDKGZ5T4.mjs} +7 -7
- package/dist/{chunk-XSGTWROT.mjs.map → chunk-IDKGZ5T4.mjs.map} +1 -1
- package/dist/{chunk-2EXDWOHY.mjs → chunk-IXLGFRW6.mjs} +1 -1
- package/dist/{chunk-L6XS2K2K.mjs → chunk-LJZWWO2Z.mjs} +3 -3
- package/dist/{chunk-3TBJNCTQ.mjs → chunk-P77SGQIM.mjs} +2 -2
- package/dist/{chunk-274FDVNP.mjs → chunk-QAHRKWRK.mjs} +2 -2
- package/dist/{chunk-DRTTNPZI.mjs → chunk-VEGBB5PR.mjs} +2 -2
- package/dist/dev.d.mts +1 -1
- package/dist/dev.mjs +2 -2
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.mjs +3 -3
- package/dist/form.d.mts +3 -3
- package/dist/form.mjs +3 -3
- package/dist/{index-CUKoRIdy.d.ts → index-38be834f.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/inspector.d.mts +1 -1
- package/dist/inspector.mjs +1 -1
- package/dist/jsontable.d.mts +2 -2
- package/dist/jsontable.mjs +4 -4
- package/dist/metrics.d.mts +1 -1
- package/dist/metrics.mjs +4 -4
- package/dist/plugins.d.mts +3 -3
- package/dist/plugins.mjs +5 -5
- package/dist/{root-C3lZnoCI.d.ts → root-766ae985.d.ts} +1 -1
- package/dist/ui.mjs +3 -3
- package/dist/utils.d.mts +3 -8
- package/dist/utils.mjs +1 -1
- package/dist/wallet.d.mts +3 -3
- package/dist/wallet.mjs +15 -20
- package/dist/wallet.mjs.map +1 -1
- package/package.json +1 -1
- /package/dist/{PaginationState-Bmrrw0ky.d.ts → PaginationState-c19e621a.d.ts} +0 -0
- /package/dist/{chunk-BUAUKNNF.mjs.map → chunk-4OJFHANU.mjs.map} +0 -0
- /package/dist/{chunk-BE2I23U2.mjs.map → chunk-HDTICRGY.mjs.map} +0 -0
- /package/dist/{chunk-2EXDWOHY.mjs.map → chunk-IXLGFRW6.mjs.map} +0 -0
- /package/dist/{chunk-L6XS2K2K.mjs.map → chunk-LJZWWO2Z.mjs.map} +0 -0
- /package/dist/{chunk-3TBJNCTQ.mjs.map → chunk-P77SGQIM.mjs.map} +0 -0
- /package/dist/{chunk-274FDVNP.mjs.map → chunk-QAHRKWRK.mjs.map} +0 -0
- /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-
|
|
1
|
+
import { AIem } from './chunk-P77SGQIM.mjs';
|
|
2
2
|
import './chunk-7MDKCI65.mjs';
|
|
3
|
-
import { StorageState, ObjectPool, PromiseHook } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { DialogStore } from './chunk-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
()
|
|
1930
|
-
|
|
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
|
|
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
|
-
|
|
1952
|
+
reconnect();
|
|
1958
1953
|
}
|
|
1959
1954
|
}, [router]);
|
|
1960
1955
|
}
|