@dodoex/wallet-web3-react 0.4.0 → 0.4.2
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/babel.config.js +9 -9
- package/dist/cjs/index.cjs +4 -13
- package/dist/cjs/locales/en.js +1 -1
- package/dist/cjs/locales/zh.js +1 -1
- package/dist/index.js +4 -13
- package/dist/locales/en.js +1 -1
- package/dist/locales/zh.js +1 -1
- package/dist/types/ClientProvider.d.ts +1 -1
- package/dist/types/LangProvider.d.ts +1 -1
- package/dist/types/WalletConnect/AccountPage.d.ts +1 -1
- package/dist/types/WalletConnect/ActivityList.d.ts +5 -4
- package/dist/types/WalletConnect/ConnectAlchemy/index.d.ts +2 -1
- package/dist/types/WalletConnect/ConnectDialog.d.ts +2 -1
- package/dist/types/WalletConnect/ConnectLedger/ErrorDialog.d.ts +1 -1
- package/dist/types/WalletConnect/ConnectLedger/LoadingDialog.d.ts +1 -1
- package/dist/types/WalletConnect/ConnectLedger/LockedDialog.d.ts +1 -1
- package/dist/types/WalletConnect/ConnectLedger/ProtocolDialog.d.ts +1 -1
- package/dist/types/WalletConnect/ConnectLedger/SelectAddressDialog.d.ts +1 -1
- package/dist/types/WalletConnect/ConnectLedger/SelectPathDialog.d.ts +1 -1
- package/dist/types/WalletConnect/ConnectLedger/index.d.ts +1 -1
- package/dist/types/WalletConnect/ConnectPage.d.ts +1 -1
- package/dist/types/WalletConnect/HasBalanceTokenList.d.ts +1 -1
- package/dist/types/WalletConnect/ReceiveTokenPage.d.ts +2 -1
- package/dist/types/WalletConnect/SendTokenPage.d.ts +2 -1
- package/dist/types/WalletConnect/WalletDialog.d.ts +2 -1
- package/dist/types/WalletConnectProvider.d.ts +2 -2
- package/dist/types/components/AddressWithLinkAndCopy.d.ts +2 -2
- package/dist/types/components/Dialog.d.ts +3 -3
- package/dist/types/components/WalletTag.d.ts +1 -1
- package/lingui.config.ts +13 -13
- package/package.json +90 -90
- package/rollup.config.mjs +106 -103
- package/src/ClientProvider.tsx +17 -17
- package/src/LangProvider.tsx +36 -36
- package/src/WalletConnect/AccountPage.tsx +498 -498
- package/src/WalletConnect/ActivityList.tsx +606 -606
- package/src/WalletConnect/ConnectAlchemy/index.tsx +248 -248
- package/src/WalletConnect/ConnectAlchemy/useConnectAlchemy.ts +105 -105
- package/src/WalletConnect/ConnectDialog.tsx +35 -35
- package/src/WalletConnect/ConnectLedger/ErrorDialog.tsx +61 -61
- package/src/WalletConnect/ConnectLedger/LockedDialog.tsx +54 -54
- package/src/WalletConnect/ConnectLedger/helper.ts +14 -14
- package/src/WalletConnect/ConnectPage.tsx +508 -508
- package/src/WalletConnect/HasBalanceTokenList.tsx +202 -202
- package/src/WalletConnect/ReceiveTokenPage.tsx +145 -145
- package/src/WalletConnect/SendTokenPage.tsx +251 -251
- package/src/WalletConnect/WalletDialog.tsx +80 -80
- package/src/WalletConnectProvider.tsx +57 -57
- package/src/components/AddressWithLinkAndCopy.tsx +202 -202
- package/src/components/Dialog.tsx +158 -158
- package/src/components/TokenLogo.tsx +167 -167
- package/src/components/WalletTag.tsx +117 -117
- package/src/constants/localstorage.ts +24 -24
- package/src/hooks/useConnectWallet.ts +150 -150
- package/src/hooks/useFetchFiatPrice.ts +53 -53
- package/src/hooks/useFetchTokensBalance.ts +53 -53
- package/src/hooks/useHasBalanceTokenList.ts +95 -95
- package/src/hooks/useTransactionList.ts +89 -89
- package/src/index.tsx +7 -7
- package/src/locales/en.js +1 -1
- package/src/locales/en.po +8 -8
- package/src/locales/zh.js +1 -1
- package/src/locales/zh.po +4 -4
- package/src/react19-types.d.ts +12 -0
- package/src/utils/formatter.ts +102 -102
- package/src/utils/time.ts +21 -21
- package/src/utils/utils.ts +8 -8
- package/tsconfig.json +22 -22
package/dist/locales/en.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*eslint-disable*/module.exports={messages:JSON.parse("{\"
|
|
1
|
+
/*eslint-disable*/module.exports={messages:JSON.parse("{\"14s9LL\":[\"Create Liquidity Mining\"],\"3UCJ3e\":[\"Check your email and click the link to complete login\"],\"3XBvkd\":[\"Remove Liquidity\"],\"3y6FjD\":[\"Log in with your email or a passkey\"],\"6KnyG0\":[\"Enter email\"],\"6Ui8nZ\":[\"Log in with your email\"],\"6V3Ea3\":[\"Copied\"],\"7Bj3x9\":[\"Failed\"],\"8OiU8L\":[\"Pool Creation\"],\"9ow2PX\":[\"Installed Wallet\"],\"9zb2WA\":[\"Connecting\"],\"AeXO77\":[\"Account\"],\"B2Tpo0\":[\"Invalid email\"],\"BzEFor\":[\"or\"],\"CtByM7\":[\"Connect Wallet\"],\"Du6bPw\":[\"Address\"],\"E/yE9x\":[\"Before proceeding make sure\"],\"EYDfo2\":[\"Loading more\"],\"FzJ11V\":[\"This is empty\"],\"JE8mMQ\":[\"No tokens\"],\"JYKRJS\":[\"Stake\"],\"JlFcis\":[\"Send\"],\"KAbcm2\":[\"Succeeded\"],\"LobdAW\":[\"Unknown Error\"],\"Mlg3Ds\":[\"Choose existing passkey\"],\"OBdohg\":[\"Add Liquidity\"],\"OfhWJH\":[\"Reset\"],\"OzjK0A\":[\"Create new passkey\"],\"QHcLEN\":[\"Connected\"],\"RETKSh\":[\"Connect Alchemy\"],\"S0kLOH\":[\"ID\"],\"Sz0SkD\":[\"1、Ledger Live APP is closed\",[\"BR\"],\"2、The device plugged in via USB,NOT Bluetooth\",[\"BR\"],\"3、The device is unlocked and in the \",[\"ledgerAppName\"],\" app\",[\"BR\"],\"4、”Blind Signing” is enabled in \",[\"ledgerAppName\"],\" app\"],\"TP9/K5\":[\"Token\"],\"U8oDGg\":[\"On-chain transaction records\"],\"UbRKMZ\":[\"Pending\"],\"XJOV1Y\":[\"Activity\"],\"Z3FXyt\":[\"Loading...\"],\"Z7ZXbT\":[\"Approve\"],\"fsBGk0\":[\"Balance\"],\"gCNLBV\":[\"Copy wallet address\"],\"gPbbTL\":[\"The Ledger Device is locked\\\\nPlease unlock from the device\"],\"hQRttt\":[\"Submit\"],\"lDgVWA\":[\"Receive\"],\"pkRuyd\":[\"Receiver address\"],\"rwC96V\":[\"Invalid wallet address\"],\"sr0UJD\":[\"Go Back\"],\"vH2C/2\":[\"Swap\"],\"vN+hAq\":[\"Available Ledger Account\"],\"xGVfLh\":[\"Continue\"],\"xHr8Pp\":[\"Last connection\"],\"yN5k0R\":[\"More Wallets\"],\"z5vMiF\":[\"End mining\\n\"],\"zPGNJm\":[\"Transfer\"],\"zXCpR0\":[\"Claim Rewards\"],\"zga9sT\":[\"OK\"]}")};
|
package/dist/locales/zh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*eslint-disable*/module.exports={messages:JSON.parse("{\"
|
|
1
|
+
/*eslint-disable*/module.exports={messages:JSON.parse("{\"14s9LL\":[\"Create Liquidity Mining\"],\"3UCJ3e\":[\"Check your email and click the link to complete login\"],\"3XBvkd\":[\"Remove Liquidity\"],\"3y6FjD\":[\"Log in with your email or a passkey\"],\"6KnyG0\":[\"Enter email\"],\"6Ui8nZ\":[\"Log in with your email\"],\"6V3Ea3\":[\"Copied\"],\"7Bj3x9\":[\"Failed\"],\"8OiU8L\":[\"Pool Creation\"],\"9ow2PX\":[\"Installed Wallet\"],\"9zb2WA\":[\"Connecting\"],\"AeXO77\":[\"Account\"],\"B2Tpo0\":[\"Invalid email\"],\"BzEFor\":[\"or\"],\"CtByM7\":[\"Connect Wallet\"],\"Du6bPw\":[\"Address\"],\"E/yE9x\":[\"Before proceeding make sure\"],\"EYDfo2\":[\"Loading more\"],\"FzJ11V\":[\"This is empty\"],\"JE8mMQ\":[\"No tokens\"],\"JYKRJS\":[\"Stake\"],\"JlFcis\":[\"Send\"],\"KAbcm2\":[\"Succeeded\"],\"LobdAW\":[\"Unknown Error\"],\"Mlg3Ds\":[\"Choose existing passkey\"],\"OBdohg\":[\"Add Liquidity\"],\"OfhWJH\":[\"Reset\"],\"OzjK0A\":[\"Create new passkey\"],\"QHcLEN\":[\"Connected\"],\"RETKSh\":[\"Connect Alchemy\"],\"S0kLOH\":[\"ID\"],\"Sz0SkD\":[\"1、Ledger Live APP is closed\",[\"BR\"],\"2、The device plugged in via USB,NOT Bluetooth\",[\"BR\"],\"3、The device is unlocked and in the \",[\"ledgerAppName\"],\" app\",[\"BR\"],\"4、”Blind Signing” is enabled in \",[\"ledgerAppName\"],\" app\"],\"TP9/K5\":[\"Token\"],\"U8oDGg\":[\"On-chain transaction records\"],\"UbRKMZ\":[\"Pending\"],\"XJOV1Y\":[\"Activity\"],\"Z3FXyt\":[\"Loading...\"],\"Z7ZXbT\":[\"Approve\"],\"fsBGk0\":[\"Balance\"],\"gCNLBV\":[\"Copy wallet address\"],\"gPbbTL\":[\"The Ledger Device is locked\\\\nPlease unlock from the device\"],\"hQRttt\":[\"Submit\"],\"lDgVWA\":[\"Receive\"],\"pkRuyd\":[\"Receiver address\"],\"rwC96V\":[\"Invalid wallet address\"],\"sr0UJD\":[\"Go Back\"],\"vH2C/2\":[\"Swap\"],\"vN+hAq\":[\"Available Ledger Account\"],\"xGVfLh\":[\"Continue\"],\"xHr8Pp\":[\"Last connection\"],\"yN5k0R\":[\"More Wallets\"],\"z5vMiF\":[\"End mining\\n\"],\"zPGNJm\":[\"Transfer\"],\"zXCpR0\":[\"Claim Rewards\"],\"zga9sT\":[\"OK\"]}")};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ClientProvider({ children }: React.PropsWithChildren): JSX.Element;
|
|
1
|
+
export default function ClientProvider({ children }: React.PropsWithChildren): import("react").JSX.Element;
|
|
@@ -7,5 +7,5 @@ interface LangProviderProps {
|
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}
|
|
9
9
|
export declare function loadI18(locale?: SupportedLang): Promise<void>;
|
|
10
|
-
export declare function LangProvider({ locale, children }: LangProviderProps): JSX.Element;
|
|
10
|
+
export declare function LangProvider({ locale, children }: LangProviderProps): import("react").JSX.Element;
|
|
11
11
|
export default LangProvider;
|
|
@@ -7,5 +7,5 @@ declare function AccountPage({ chainId, account, walletWeb3, onClose, setShowSen
|
|
|
7
7
|
onClose: () => void;
|
|
8
8
|
setShowSendTokenPage: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
9
|
setShowReceiveTokenPage: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
-
}): JSX.Element | null;
|
|
10
|
+
}): React.JSX.Element | null;
|
|
11
11
|
export default AccountPage;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { NoticeTransactionList, useTransactionList } from '../hooks/useTransactionList';
|
|
2
3
|
export default function ActivityList({ getScrollParent, fetchTransactionQuery, }: {
|
|
3
4
|
getScrollParent: () => HTMLDivElement | null;
|
|
4
5
|
fetchTransactionQuery: ReturnType<typeof useTransactionList>;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
+
}): React.JSX.Element;
|
|
6
7
|
export declare function TransactionList({ account, isLoading, isFetchingNextPage, list, }: {
|
|
7
8
|
account: string | undefined;
|
|
8
9
|
isLoading?: boolean;
|
|
9
10
|
isFetchingNextPage?: boolean;
|
|
10
11
|
list: NoticeTransactionList;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
+
}): React.JSX.Element;
|
|
12
13
|
export declare function SubmissionStatusIcon({ status }: {
|
|
13
14
|
status: string;
|
|
14
|
-
}): JSX.Element | null;
|
|
15
|
+
}): React.JSX.Element | null;
|
|
15
16
|
export declare function getTitleText(brief: string, status: string): string | null;
|
|
16
17
|
export declare function getSubmitTitleByBrief(brief: string): string | null;
|
|
17
18
|
export declare function SubmissionTypeIcon({ brief, chainId, }: {
|
|
18
19
|
brief: string;
|
|
19
20
|
chainId: number;
|
|
20
|
-
}): JSX.Element | null;
|
|
21
|
+
}): React.JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import WalletWeb3 from '@dodoex/wallet-web3';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export default function ConnectAlchemy({ open, walletWeb3, setOpen, }: {
|
|
3
4
|
open: boolean;
|
|
4
5
|
walletWeb3: WalletWeb3;
|
|
5
6
|
setOpen: (open: boolean) => void;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import WalletWeb3 from '@dodoex/wallet-web3';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { ConnectPageProps } from './ConnectPage';
|
|
3
4
|
export default function ConnectDialog({ open, onClose, walletWeb3, onConnectWallet, WalletTag, }: {
|
|
4
5
|
open: boolean;
|
|
@@ -6,4 +7,4 @@ export default function ConnectDialog({ open, onClose, walletWeb3, onConnectWall
|
|
|
6
7
|
walletWeb3: WalletWeb3;
|
|
7
8
|
onConnectWallet?: ConnectPageProps['onConnectWallet'];
|
|
8
9
|
WalletTag?: ConnectPageProps['WalletTag'];
|
|
9
|
-
}): JSX.Element;
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -14,5 +14,5 @@ export interface ConnectPageProps {
|
|
|
14
14
|
onConnectWallet?: (wallet: WalletItem) => void | Promise<void>;
|
|
15
15
|
WalletTag?: ConnectDialogWalletTag;
|
|
16
16
|
}
|
|
17
|
-
declare function ConnectPage({ chainId, account, walletWeb3, showOtherInjectWallet, onClose, onConnectWallet, WalletTag, }: ConnectPageProps): JSX.Element;
|
|
17
|
+
declare function ConnectPage({ chainId, account, walletWeb3, showOtherInjectWallet, onClose, onConnectWallet, WalletTag, }: ConnectPageProps): React.JSX.Element;
|
|
18
18
|
export default ConnectPage;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import WalletWeb3 from '@dodoex/wallet-web3';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { ConnectPageProps } from './ConnectPage';
|
|
3
4
|
export default function WalletDialog({ open, onClose, walletWeb3, onConnectWallet, WalletTag, }: {
|
|
4
5
|
open: boolean;
|
|
@@ -6,4 +7,4 @@ export default function WalletDialog({ open, onClose, walletWeb3, onConnectWalle
|
|
|
6
7
|
walletWeb3: WalletWeb3;
|
|
7
8
|
onConnectWallet?: ConnectPageProps['onConnectWallet'];
|
|
8
9
|
WalletTag?: ConnectPageProps['WalletTag'];
|
|
9
|
-
}): JSX.Element;
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -13,7 +13,7 @@ export declare const WalletConnectProvider: React.Provider<{
|
|
|
13
13
|
open?: boolean;
|
|
14
14
|
onClose: () => void;
|
|
15
15
|
onBack: () => void;
|
|
16
|
-
}) => JSX.Element;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
17
|
encryptFiatPriceToken?: () => string;
|
|
18
18
|
loadAccountListEthBalance?: (accountList: string[], chainId?: number) => Promise<Map<string, number | null>>;
|
|
19
19
|
getChain: (chainId: number) => null | {
|
|
@@ -48,7 +48,7 @@ export declare const useWalletConnectContext: () => {
|
|
|
48
48
|
open?: boolean;
|
|
49
49
|
onClose: () => void;
|
|
50
50
|
onBack: () => void;
|
|
51
|
-
}) => JSX.Element;
|
|
51
|
+
}) => React.JSX.Element;
|
|
52
52
|
encryptFiatPriceToken?: () => string;
|
|
53
53
|
loadAccountListEthBalance?: (accountList: string[], chainId?: number) => Promise<Map<string, number | null>>;
|
|
54
54
|
getChain: (chainId: number) => null | {
|
|
@@ -22,6 +22,6 @@ interface Props extends AddressTextProps {
|
|
|
22
22
|
export declare function AddressText({ truncate, address, disabledAddress, sx, handleOpen, addressHoverColor, addressHoverShowIcon, }: AddressTextProps & {
|
|
23
23
|
typography?: string;
|
|
24
24
|
domain?: string;
|
|
25
|
-
}): JSX.Element;
|
|
26
|
-
export declare function AddressWithLink({ address, truncate, size, iconSize, iconSpace: iconSpaceProps, sx, iconDarkHover, disabledAddress, addressHoverColor, addressHoverShowIcon, customChainId, handleOpen, onAddressClick, }: Props): JSX.Element;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
|
+
export declare function AddressWithLink({ address, truncate, size, iconSize, iconSpace: iconSpaceProps, sx, iconDarkHover, disabledAddress, addressHoverColor, addressHoverShowIcon, customChainId, handleOpen, onAddressClick, }: Props): import("react").JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -5,11 +5,11 @@ export declare function DialogTitle({ children, center, onClose, sx, }: React.Pr
|
|
|
5
5
|
center?: boolean;
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
sx?: BoxProps['sx'];
|
|
8
|
-
}>): JSX.Element;
|
|
9
|
-
export declare function DialogBase({ className, slots, ...props }: ModalProps): JSX.Element;
|
|
8
|
+
}>): React.JSX.Element;
|
|
9
|
+
export declare function DialogBase({ className, slots, ...props }: ModalProps): React.JSX.Element;
|
|
10
10
|
export default function Dialog({ children, sx, bodySx, slots, width, ...props }: Omit<ModalProps, 'children'> & {
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
sx?: BoxProps['sx'];
|
|
13
13
|
bodySx?: BoxProps['sx'];
|
|
14
14
|
width?: number;
|
|
15
|
-
}): JSX.Element;
|
|
15
|
+
}): React.JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface WalletTagProps {
|
|
|
5
5
|
isChecked: boolean;
|
|
6
6
|
installed: boolean;
|
|
7
7
|
}
|
|
8
|
-
export default function WalletTag({ loading, wallet, isChecked, installed, }: WalletTagProps): JSX.Element | null;
|
|
8
|
+
export default function WalletTag({ loading, wallet, isChecked, installed, }: WalletTagProps): import("react").JSX.Element | null;
|
package/lingui.config.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
locales: ['en', 'zh'],
|
|
3
|
-
sourceLocale: 'en',
|
|
4
|
-
catalogs: [
|
|
5
|
-
{
|
|
6
|
-
path: 'src/locales/{locale}',
|
|
7
|
-
include: ['src'],
|
|
8
|
-
},
|
|
9
|
-
],
|
|
10
|
-
format: 'po',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default config;
|
|
1
|
+
const config = {
|
|
2
|
+
locales: ['en', 'zh'],
|
|
3
|
+
sourceLocale: 'en',
|
|
4
|
+
catalogs: [
|
|
5
|
+
{
|
|
6
|
+
path: 'src/locales/{locale}',
|
|
7
|
+
include: ['src'],
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
format: 'po',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dodoex/wallet-web3-react",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"source": "src/index.tsx",
|
|
5
|
-
"types": "dist/types/index.d.ts",
|
|
6
|
-
"typings": "dist/types/index.d.ts",
|
|
7
|
-
"main": "dist/cjs/index.cjs",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"start": "yarn workspace doc start",
|
|
11
|
-
"build": "yarn extract && yarn compile && rollup -c && tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
12
|
-
"extract": "lingui extract --clean",
|
|
13
|
-
"compile": "lingui compile",
|
|
14
|
-
"release.npm-publish": "npm publish --access public",
|
|
15
|
-
"release.npm-publish-beta": "npm publish --tag beta"
|
|
16
|
-
},
|
|
17
|
-
"author": "",
|
|
18
|
-
"publishConfig": {
|
|
19
|
-
"access": "public",
|
|
20
|
-
"registry": "https://registry.npmjs.org"
|
|
21
|
-
},
|
|
22
|
-
"license": "GPL-3.0-or-later",
|
|
23
|
-
"description": "",
|
|
24
|
-
"keywords": [
|
|
25
|
-
"dodo",
|
|
26
|
-
"wallet",
|
|
27
|
-
"ethereum"
|
|
28
|
-
],
|
|
29
|
-
"browserslist": {
|
|
30
|
-
"production": [
|
|
31
|
-
">0.2%",
|
|
32
|
-
"not dead",
|
|
33
|
-
"not op_mini all"
|
|
34
|
-
],
|
|
35
|
-
"development": [
|
|
36
|
-
"last 1 chrome version",
|
|
37
|
-
"last 1 firefox version",
|
|
38
|
-
"last 1 safari version"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"exports": {
|
|
42
|
-
".": {
|
|
43
|
-
"types": "./dist/types/index.d.ts",
|
|
44
|
-
"import": "./dist/index.js",
|
|
45
|
-
"require": "./dist/cjs/index.cjs",
|
|
46
|
-
"default": "./dist/index.js"
|
|
47
|
-
},
|
|
48
|
-
"./locales/*": {
|
|
49
|
-
"import": "./dist/locales/*.js",
|
|
50
|
-
"require": "./dist/cjs/locales/*.js",
|
|
51
|
-
"default": "./dist/locales/*.js"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"@dodoex/wallet-web3": ">=0.
|
|
56
|
-
"@dodoex/contract-request": ">=1.x",
|
|
57
|
-
"@dodoex/dodo-contract-request": ">=1.x",
|
|
58
|
-
"@dodoex/icons": ">=2.0
|
|
59
|
-
"@dodoex/api": ">=3.0
|
|
60
|
-
"@dodoex/components": ">=3.0
|
|
61
|
-
"react": ">=17.0.2 <20.0.0",
|
|
62
|
-
"react-dom": ">=17.0.2 <20.0.0"
|
|
63
|
-
},
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"@lingui/cli": "^
|
|
66
|
-
"@lingui/loader": "^
|
|
67
|
-
"@rollup/plugin-replace": "^6.0.2",
|
|
68
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
69
|
-
"@rollup/plugin-typescript": "^12.1.1",
|
|
70
|
-
"@rollup/plugin-url": "^8.0.2",
|
|
71
|
-
"@svgr/rollup": "^8.1.0",
|
|
72
|
-
"@types/identicon.js": "^2.3.5",
|
|
73
|
-
"@types/react-infinite-scroller": "^1.2.5",
|
|
74
|
-
"babel-plugin-macros": "^3.1.0",
|
|
75
|
-
"rollup": "^4.28.0",
|
|
76
|
-
"rollup-plugin-clear": "^2.0.7",
|
|
77
|
-
"rollup-plugin-import-css": "^3.5.7",
|
|
78
|
-
"typescript": "^5.6.3"
|
|
79
|
-
},
|
|
80
|
-
"dependencies": {
|
|
81
|
-
"@lingui/macro": "^
|
|
82
|
-
"@lingui/react": "^
|
|
83
|
-
"@tanstack/react-query": "^5.18.1",
|
|
84
|
-
"bignumber.js": "^9.1.2",
|
|
85
|
-
"copy-to-clipboard": "^3.3.3",
|
|
86
|
-
"dayjs": "^1.11.13",
|
|
87
|
-
"identicon.js": "^2.3.3",
|
|
88
|
-
"qrcode.react": "^4.2.0",
|
|
89
|
-
"react-infinite-scroller": "^1.2.6"
|
|
90
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dodoex/wallet-web3-react",
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"source": "src/index.tsx",
|
|
5
|
+
"types": "dist/types/index.d.ts",
|
|
6
|
+
"typings": "dist/types/index.d.ts",
|
|
7
|
+
"main": "dist/cjs/index.cjs",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "yarn workspace doc start",
|
|
11
|
+
"build": "yarn extract && yarn compile && rollup -c && tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
12
|
+
"extract": "lingui extract --clean",
|
|
13
|
+
"compile": "lingui compile",
|
|
14
|
+
"release.npm-publish": "npm publish --access public",
|
|
15
|
+
"release.npm-publish-beta": "npm publish --tag beta"
|
|
16
|
+
},
|
|
17
|
+
"author": "",
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public",
|
|
20
|
+
"registry": "https://registry.npmjs.org"
|
|
21
|
+
},
|
|
22
|
+
"license": "GPL-3.0-or-later",
|
|
23
|
+
"description": "",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"dodo",
|
|
26
|
+
"wallet",
|
|
27
|
+
"ethereum"
|
|
28
|
+
],
|
|
29
|
+
"browserslist": {
|
|
30
|
+
"production": [
|
|
31
|
+
">0.2%",
|
|
32
|
+
"not dead",
|
|
33
|
+
"not op_mini all"
|
|
34
|
+
],
|
|
35
|
+
"development": [
|
|
36
|
+
"last 1 chrome version",
|
|
37
|
+
"last 1 firefox version",
|
|
38
|
+
"last 1 safari version"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./dist/types/index.d.ts",
|
|
44
|
+
"import": "./dist/index.js",
|
|
45
|
+
"require": "./dist/cjs/index.cjs",
|
|
46
|
+
"default": "./dist/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./locales/*": {
|
|
49
|
+
"import": "./dist/locales/*.js",
|
|
50
|
+
"require": "./dist/cjs/locales/*.js",
|
|
51
|
+
"default": "./dist/locales/*.js"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@dodoex/wallet-web3": ">=0.5.2",
|
|
56
|
+
"@dodoex/contract-request": ">=1.x",
|
|
57
|
+
"@dodoex/dodo-contract-request": ">=1.x",
|
|
58
|
+
"@dodoex/icons": ">=2.1.0",
|
|
59
|
+
"@dodoex/api": ">=3.6.0",
|
|
60
|
+
"@dodoex/components": ">=3.3.0",
|
|
61
|
+
"react": ">=17.0.2 <20.0.0",
|
|
62
|
+
"react-dom": ">=17.0.2 <20.0.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@lingui/cli": "^5",
|
|
66
|
+
"@lingui/loader": "^5",
|
|
67
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
68
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
69
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
70
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
71
|
+
"@svgr/rollup": "^8.1.0",
|
|
72
|
+
"@types/identicon.js": "^2.3.5",
|
|
73
|
+
"@types/react-infinite-scroller": "^1.2.5",
|
|
74
|
+
"babel-plugin-macros": "^3.1.0",
|
|
75
|
+
"rollup": "^4.28.0",
|
|
76
|
+
"rollup-plugin-clear": "^2.0.7",
|
|
77
|
+
"rollup-plugin-import-css": "^3.5.7",
|
|
78
|
+
"typescript": "^5.6.3"
|
|
79
|
+
},
|
|
80
|
+
"dependencies": {
|
|
81
|
+
"@lingui/macro": "^5",
|
|
82
|
+
"@lingui/react": "^5",
|
|
83
|
+
"@tanstack/react-query": "^5.18.1",
|
|
84
|
+
"bignumber.js": "^9.1.2",
|
|
85
|
+
"copy-to-clipboard": "^3.3.3",
|
|
86
|
+
"dayjs": "^1.11.13",
|
|
87
|
+
"identicon.js": "^2.3.3",
|
|
88
|
+
"qrcode.react": "^4.2.0",
|
|
89
|
+
"react-infinite-scroller": "^1.2.6"
|
|
90
|
+
}
|
|
91
91
|
}
|