@dappworks/kit 0.4.212 → 0.4.214
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-00f10e83.d.ts → PromiseState-nh1sHDAs.d.ts} +1 -1
- package/dist/{StorageState-cfd942cb.d.ts → StorageState-qapaHguM.d.ts} +1 -1
- package/dist/aiem.d.mts +1 -1
- package/dist/aiem.mjs +2 -2
- package/dist/{chunk-QAHRKWRK.mjs → chunk-274FDVNP.mjs} +2 -2
- package/dist/{chunk-IXLGFRW6.mjs → chunk-2EXDWOHY.mjs} +1 -1
- package/dist/{chunk-25IBJCDF.mjs → chunk-2QK7O5HJ.mjs} +5 -5
- package/dist/{chunk-25IBJCDF.mjs.map → chunk-2QK7O5HJ.mjs.map} +1 -1
- package/dist/{chunk-P77SGQIM.mjs → chunk-3TBJNCTQ.mjs} +2 -2
- package/dist/{chunk-HDTICRGY.mjs → chunk-BE2I23U2.mjs} +2 -2
- package/dist/{chunk-4OJFHANU.mjs → chunk-BUAUKNNF.mjs} +4 -4
- package/dist/{chunk-VEGBB5PR.mjs → chunk-DRTTNPZI.mjs} +2 -2
- package/dist/{chunk-LJZWWO2Z.mjs → chunk-L6XS2K2K.mjs} +3 -3
- package/dist/{chunk-IDKGZ5T4.mjs → chunk-XSGTWROT.mjs} +7 -7
- package/dist/{chunk-IDKGZ5T4.mjs.map → chunk-XSGTWROT.mjs.map} +1 -1
- 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-38be834f.d.ts → index-CUKoRIdy.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-766ae985.d.ts → root-C3lZnoCI.d.ts} +1 -1
- package/dist/ui.mjs +3 -3
- package/dist/utils.d.mts +8 -3
- package/dist/utils.mjs +1 -1
- package/dist/wallet.d.mts +3 -3
- package/dist/wallet.mjs +18 -15
- package/dist/wallet.mjs.map +1 -1
- package/package.json +1 -1
- /package/dist/{PaginationState-c19e621a.d.ts → PaginationState-Bmrrw0ky.d.ts} +0 -0
- /package/dist/{chunk-QAHRKWRK.mjs.map → chunk-274FDVNP.mjs.map} +0 -0
- /package/dist/{chunk-IXLGFRW6.mjs.map → chunk-2EXDWOHY.mjs.map} +0 -0
- /package/dist/{chunk-P77SGQIM.mjs.map → chunk-3TBJNCTQ.mjs.map} +0 -0
- /package/dist/{chunk-HDTICRGY.mjs.map → chunk-BE2I23U2.mjs.map} +0 -0
- /package/dist/{chunk-4OJFHANU.mjs.map → chunk-BUAUKNNF.mjs.map} +0 -0
- /package/dist/{chunk-VEGBB5PR.mjs.map → chunk-DRTTNPZI.mjs.map} +0 -0
- /package/dist/{chunk-LJZWWO2Z.mjs.map → chunk-L6XS2K2K.mjs.map} +0 -0
package/dist/wallet.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AIem } from './chunk-
|
|
1
|
+
import { AIem } from './chunk-3TBJNCTQ.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-DRTTNPZI.mjs';
|
|
4
|
+
import './chunk-2QK7O5HJ.mjs';
|
|
5
|
+
import { DialogStore } from './chunk-L6XS2K2K.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-XSGTWROT.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-2EXDWOHY.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';
|
|
@@ -18,7 +18,7 @@ import EventEmitter from 'events';
|
|
|
18
18
|
import { Icon } from '@iconify/react';
|
|
19
19
|
import { encodeFunctionData, hashMessage, hashTypedData } from 'viem';
|
|
20
20
|
import { observer } from 'mobx-react-lite';
|
|
21
|
-
import { iopayWallet, metaMaskWallet, walletConnectWallet, okxWallet, binanceWallet } from '@rainbow-me/rainbowkit/wallets';
|
|
21
|
+
import { iopayWallet, metaMaskWallet, walletConnectWallet, okxWallet, binanceWallet, safeWallet } from '@rainbow-me/rainbowkit/wallets';
|
|
22
22
|
import { reaction } from 'mobx';
|
|
23
23
|
import { iotex as iotex$1, iotexTestnet as iotexTestnet$1 } from 'viem/chains';
|
|
24
24
|
import { Checkbox, Tooltip, Button, Popover, PopoverTrigger, PopoverContent, Input, Table, TableHeader, TableColumn, TableBody, TableRow, TableCell } from '@nextui-org/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
|
|
955
|
+
const arr = new Uint8Array((len) / 2);
|
|
956
956
|
window.crypto.getRandomValues(arr);
|
|
957
957
|
return Array.from(arr, dec2hex).join("");
|
|
958
958
|
};
|
|
@@ -1559,7 +1559,7 @@ var WalletConfigStore = class {
|
|
|
1559
1559
|
},
|
|
1560
1560
|
{
|
|
1561
1561
|
groupName: "Others",
|
|
1562
|
-
wallets: [metaMaskWallet, walletConnectWallet, iopayWallet, okxWallet, binanceWallet]
|
|
1562
|
+
wallets: [metaMaskWallet, walletConnectWallet, iopayWallet, okxWallet, binanceWallet, safeWallet]
|
|
1563
1563
|
}
|
|
1564
1564
|
]
|
|
1565
1565
|
});
|
|
@@ -1923,12 +1923,15 @@ 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
|
-
|
|
1926
|
+
useEffect(() => {
|
|
1927
|
+
const disposer = reaction(
|
|
1928
|
+
() => walletConfig.updateTicker,
|
|
1929
|
+
() => {
|
|
1930
|
+
setConfig(walletConfig.rainbowKitConfig);
|
|
1931
|
+
}
|
|
1932
|
+
);
|
|
1933
|
+
return () => disposer();
|
|
1934
|
+
});
|
|
1932
1935
|
useEffect(() => {
|
|
1933
1936
|
if (appName) {
|
|
1934
1937
|
walletConfig.appName = appName;
|