@dodoex/widgets 3.2.4-beta.44 → 3.2.4-beta.46
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/LICENSE +674 -674
- package/README.md +69 -69
- package/dist/{34acf2e58b457195.svg → 28442382d977858a.svg} +9 -9
- package/dist/{219f8611c6c9e6e2.svg → 8de9a184d4ef0a11.svg} +6 -6
- package/dist/{44df077bd19df476.svg → b3f16b2626f03378.svg} +10 -10
- package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
- package/dist/{helper-aUAb1kwx.cjs → helper-CHO3i96Z.cjs} +1 -1
- package/dist/{helper-vwXlNIy3.js → helper-ChcjlWto.js} +1 -1
- package/dist/{index-p3lRsQVy.js → index-BMCxhz49.js} +1 -1
- package/dist/index-CCQqqgBF.js +31 -0
- package/dist/{index-BxR6w89p.cjs → index-CDM8lhdG.cjs} +1 -1
- package/dist/{index-Aonu1dg2.js → index-CM1YOr5T.js} +1 -1
- package/dist/{index-N_wf2vBs.cjs → index-CfsEcTjf.cjs} +1 -1
- package/dist/index-Dq451yHC.cjs +31 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -0
- package/dist/types/components/TokenPicker/index.d.ts +2 -1
- package/dist/types/hooks/Token/useTokenList.d.ts +2 -1
- package/dist/types/hooks/contract/wallet.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionManage.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.d.ts +3 -1
- package/package.json +156 -156
- package/dist/index-DceWa25H.js +0 -31
- package/dist/index-ShykMJMe.cjs +0 -31
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./index-
|
|
1
|
+
"use strict";var e=require("./index-Dq451yHC.cjs");require("react"),require("@dodoex/api"),require("@web3-react/core"),require("@tanstack/react-query"),require("lodash"),require("@lingui/core"),require("@web3-react/eip1193"),require("@web3-react/walletconnect-v2"),require("@web3-react/metamask"),require("@web3-react/types"),require("@lingui/react"),require("bignumber.js"),require("@dodoex/components"),require("@dodoex/dodo-contract-request"),require("identicon.js"),require("zustand"),require("react-dom"),require("react-window"),require("@ethersproject/bignumber"),require("dayjs"),require("react-transition-group"),require("@dodoex/contract-request"),require("axios"),require("recharts"),require("jsbi"),require("tiny-invariant"),require("@uniswap/sdk-core"),require("@uniswap/v2-sdk"),require("react-infinite-scroller"),require("d3"),require("rmc-date-picker"),exports.AMMV2Create=e.AMMV2Create,exports.AMMV3Create=e.AddLiquidityV3,exports.AMMV3PositionManage=e.AMMV3PositionManage,exports.AMMV3PositionsView=e.AMMV3PositionsView,exports.AddLiquidityList=e.AddLiquidityList,exports.AddLiquidityV3=e.AddLiquidityV3,exports.AddressWithLinkAndCopy=e.AddressWithLinkAndCopy,exports.ConnectWallet=e.ConnectWallet,exports.CreatePoolBtn=e.CreatePoolBtn,exports.EmptyList=e.EmptyList,exports.FailedList=e.FailedList,exports.InitSwapWidget=e.InitSwapWidget,exports.Message=e.Message,Object.defineProperty(exports,"MetadataFlag",{enumerable:!0,get:function(){return e.MetadataFlag}}),exports.MiningCreate=e.MiningCreate,exports.MiningDetail=e.MiningDetail,exports.MiningList=e.MiningList,exports.MyCreatedList=e.MyCreated,exports.MyLiquidityList=e.MyLiquidity,Object.defineProperty(exports,"PageType",{enumerable:!0,get:function(){return e.PageType}}),exports.Pool=e.Pool,exports.PoolCreate=e.PoolCreate,exports.PoolDetail=e.PoolDetail,exports.PoolList=e.PoolList,exports.PoolModify=e.PoolModify,exports.PoolOperate=e.PoolOperate,exports.PoolOperateDialog=e.PoolOperateDialog,Object.defineProperty(exports,"PoolTab",{enumerable:!0,get:function(){return e.PoolTab}}),exports.PoolWidget=e.PoolWidget,exports.ReviewDialog=e.ReviewDialog,Object.defineProperty(exports,"RoutePriceStatus",{enumerable:!0,get:function(){return e.RoutePriceStatus}}),exports.Swap=e.Swap,exports.SwapOrderHistory=e.SwapOrderHistory,exports.SwapSettingsDialog=e.SwapSettingsDialog,exports.SwapWidget=e.SwapWidget,exports.TokenAndPoolFilter=e.TokenAndPoolFilter,exports.TokenCard=e.TokenCard,exports.TokenListPoolItem=e.TokenListPoolItem,exports.TokenLogo=e.TokenLogo,exports.TokenPairPriceWithToggle=e.TokenPairPriceWithToggle,exports.TokenPairStatusButton=e.TokenPairStatusButton,exports.TokenStatusButton=e.TokenStatusButton,exports.UnstyleWidget=e.UnstyleWidget,exports.WIDGET_CLASS_NAME=e.WIDGET_CLASS_NAME,exports.WIDGET_MODULE_CLASS_NAME=e.WIDGET_MODULE_CLASS_NAME,exports.Widget=e.Widget,exports.chainListMap=e.chainListMap,exports.formatPercentageNumber=e.formatPercentageNumber,exports.formatReadableNumber=e.formatReadableNumber,exports.formatShortNumber=e.formatShortNumber,exports.formatTokenAmountNumber=e.formatTokenAmountNumber,exports.getEtherscanPage=e.getEtherscanPage,exports.getMaxSlippageWarning=e.getMaxSlippageWarning,exports.rpcServerMap=e.rpcServerMap,exports.scanUrlDomainMap=e.scanUrlDomainMap,exports.useFetchETHBalance=e.useFetchETHBalance,exports.useFetchFiatPrice=e.useFetchFiatPrice,exports.useFetchRoutePrice=e.useFetchRoutePrice,exports.useInflights=e.useInflights,exports.useMarginAmount=e.useMarginAmount,exports.useMessageState=e.useMessageState,exports.usePoolBalanceInfo=e.usePoolBalanceInfo,exports.usePoolListFilterChainId=e.usePoolListFilterChainId,exports.usePoolListFilterTokenAndPool=e.usePoolListFilterTokenAndPool,exports.usePoolListTabs=e.usePoolListTabs,exports.useRouterStore=e.useRouterStore,exports.useSetAutoSlippage=e.useSetAutoSlippage,exports.useSlippageLimit=e.useSlippageLimit,exports.useSwapSlippage=e.useSwapSlippage,exports.useTokenStatus=e.useTokenStatus,exports.useTradeSwapOrderList=e.useTradeSwapOrderList;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{E as AMMV2Create,Q as AMMV3Create,X as AMMV3PositionManage,V as AMMV3PositionsView,Y as AddLiquidityList,Q as AddLiquidityV3,A as AddressWithLinkAndCopy,C as ConnectWallet,a2 as CreatePoolBtn,ae as EmptyList,ad as FailedList,I as InitSwapWidget,q as Message,M as MetadataFlag,O as MiningCreate,N as MiningDetail,L as MiningList,_ as MyCreatedList,Z as MyLiquidityList,c as PageType,z as Pool,D as PoolCreate,G as PoolDetail,B as PoolList,F as PoolModify,J as PoolOperate,H as PoolOperateDialog,a0 as PoolTab,P as PoolWidget,R as ReviewDialog,a8 as RoutePriceStatus,w as Swap,x as SwapOrderHistory,o as SwapSettingsDialog,S as SwapWidget,a4 as TokenAndPoolFilter,ab as TokenCard,a5 as TokenListPoolItem,ac as TokenLogo,T as TokenPairPriceWithToggle,aa as TokenPairStatusButton,a9 as TokenStatusButton,U as UnstyleWidget,W as WIDGET_CLASS_NAME,t as WIDGET_MODULE_CLASS_NAME,p as Widget,d as chainListMap,a as formatPercentageNumber,ag as formatReadableNumber,f as formatShortNumber,ah as formatTokenAmountNumber,af as getEtherscanPage,h as getMaxSlippageWarning,r as rpcServerMap,s as scanUrlDomainMap,i as useFetchETHBalance,m as useFetchFiatPrice,a7 as useFetchRoutePrice,e as useInflights,l as useMarginAmount,v as useMessageState,K as usePoolBalanceInfo,a1 as usePoolListFilterChainId,a3 as usePoolListFilterTokenAndPool,$ as usePoolListTabs,u as useRouterStore,k as useSetAutoSlippage,g as useSlippageLimit,n as useSwapSlippage,a6 as useTokenStatus,y as useTradeSwapOrderList}from"./index-
|
|
1
|
+
export{E as AMMV2Create,Q as AMMV3Create,X as AMMV3PositionManage,V as AMMV3PositionsView,Y as AddLiquidityList,Q as AddLiquidityV3,A as AddressWithLinkAndCopy,C as ConnectWallet,a2 as CreatePoolBtn,ae as EmptyList,ad as FailedList,I as InitSwapWidget,q as Message,M as MetadataFlag,O as MiningCreate,N as MiningDetail,L as MiningList,_ as MyCreatedList,Z as MyLiquidityList,c as PageType,z as Pool,D as PoolCreate,G as PoolDetail,B as PoolList,F as PoolModify,J as PoolOperate,H as PoolOperateDialog,a0 as PoolTab,P as PoolWidget,R as ReviewDialog,a8 as RoutePriceStatus,w as Swap,x as SwapOrderHistory,o as SwapSettingsDialog,S as SwapWidget,a4 as TokenAndPoolFilter,ab as TokenCard,a5 as TokenListPoolItem,ac as TokenLogo,T as TokenPairPriceWithToggle,aa as TokenPairStatusButton,a9 as TokenStatusButton,U as UnstyleWidget,W as WIDGET_CLASS_NAME,t as WIDGET_MODULE_CLASS_NAME,p as Widget,d as chainListMap,a as formatPercentageNumber,ag as formatReadableNumber,f as formatShortNumber,ah as formatTokenAmountNumber,af as getEtherscanPage,h as getMaxSlippageWarning,r as rpcServerMap,s as scanUrlDomainMap,i as useFetchETHBalance,m as useFetchFiatPrice,a7 as useFetchRoutePrice,e as useInflights,l as useMarginAmount,v as useMessageState,K as usePoolBalanceInfo,a1 as usePoolListFilterChainId,a3 as usePoolListFilterTokenAndPool,$ as usePoolListTabs,u as useRouterStore,k as useSetAutoSlippage,g as useSlippageLimit,n as useSwapSlippage,a6 as useTokenStatus,y as useTradeSwapOrderList}from"./index-CCQqqgBF.js";import"react";import"@dodoex/api";import"@web3-react/core";import"@tanstack/react-query";import"lodash";import"@lingui/core";import"@web3-react/eip1193";import"@web3-react/walletconnect-v2";import"@web3-react/metamask";import"@web3-react/types";import"@lingui/react";import"bignumber.js";import"@dodoex/components";import"@dodoex/dodo-contract-request";import"identicon.js";import"zustand";import"react-dom";import"react-window";import"@ethersproject/bignumber";import"dayjs";import"react-transition-group";import"@dodoex/contract-request";import"axios";import"recharts";import"jsbi";import"tiny-invariant";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"react-infinite-scroller";import"d3";import"rmc-date-picker";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TokenPickerProps } from '../../../TokenPicker';
|
|
2
2
|
import { DialogProps } from '../Dialog';
|
|
3
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
4
|
export interface TokenPickerDialogProps {
|
|
4
5
|
open: boolean;
|
|
5
6
|
title?: React.ReactNode | string;
|
|
@@ -16,5 +17,6 @@ export interface TokenPickerDialogProps {
|
|
|
16
17
|
searchOtherAddress?: TokenPickerProps['searchOtherAddress'];
|
|
17
18
|
chainId?: TokenPickerProps['chainId'];
|
|
18
19
|
modal?: boolean;
|
|
20
|
+
tokenList?: Array<TokenInfo>;
|
|
19
21
|
}
|
|
20
22
|
export declare function TokenPickerDialog(props: TokenPickerDialogProps): JSX.Element;
|
|
@@ -21,5 +21,6 @@ export interface TokenPickerProps {
|
|
|
21
21
|
/** like search pool address */
|
|
22
22
|
searchOtherAddress?: (address: string) => Promise<JSX.Element | null>;
|
|
23
23
|
sx?: BoxProps['sx'];
|
|
24
|
+
tokenList?: Array<TokenInfo>;
|
|
24
25
|
}
|
|
25
|
-
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, sx, }: TokenPickerProps): JSX.Element;
|
|
26
|
+
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, sx, tokenList, }: TokenPickerProps): JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { ChainId } from '@dodoex/api';
|
|
|
4
4
|
export declare const getFuzzySearchTokenSort: (token: TokenInfo, search: string, { matchAddress, }?: {
|
|
5
5
|
matchAddress?: boolean;
|
|
6
6
|
}) => number;
|
|
7
|
-
export default function useTokenList({ value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, side, chainId: chainIdProps, visible, defaultLoadBalance, multiple, }: {
|
|
7
|
+
export default function useTokenList({ value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, side, chainId: chainIdProps, visible, defaultLoadBalance, multiple, tokenList: tokenListProps, }: {
|
|
8
8
|
value?: TokenInfo | null | Array<TokenInfo>;
|
|
9
9
|
onChange: (token: TokenInfo | Array<TokenInfo>, isOccupied: boolean) => void;
|
|
10
10
|
/** token pair usage */
|
|
@@ -22,6 +22,7 @@ export default function useTokenList({ value, onChange, occupiedAddrs, occupiedC
|
|
|
22
22
|
visible?: boolean;
|
|
23
23
|
defaultLoadBalance?: boolean;
|
|
24
24
|
multiple?: boolean;
|
|
25
|
+
tokenList?: TokenInfo[];
|
|
25
26
|
}): {
|
|
26
27
|
filter: string;
|
|
27
28
|
setFilter: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
@@ -13,8 +13,8 @@ export declare enum WatchResult {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const getEstimateGas: (params: any, provider: JsonRpcProvider) => Promise<EthersBigNumber | null>;
|
|
15
15
|
export declare const getGasPrice: (provider: JsonRpcProvider) => Promise<EthersBigNumber | null>;
|
|
16
|
-
export declare const sendTransaction: (params: Deferrable<TransactionRequest>, provider: JsonRpcProvider) => Promise<import("@ethersproject/
|
|
17
|
-
export declare const approve: (tokenAddress: string, accountAddress: string, contractAddress: string, allowance: BigNumber, provider: JsonRpcProvider) => Promise<import("@ethersproject/
|
|
16
|
+
export declare const sendTransaction: (params: Deferrable<TransactionRequest>, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
|
|
17
|
+
export declare const approve: (tokenAddress: string, accountAddress: string, contractAddress: string, allowance: BigNumber, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Add custom token to metamask
|
|
20
20
|
* https://docs.metamask.io/guide/registering-your-token.html#registering-tokens-with-users
|
|
@@ -10,4 +10,4 @@ export interface AMMV3PositionManageProps {
|
|
|
10
10
|
onClose: (() => void) | undefined;
|
|
11
11
|
noHeader?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const AMMV3PositionManage: ({ chainId, baseToken, quoteToken, feeAmount, tokenId, onClose, noHeader }: AMMV3PositionManageProps) => JSX.Element;
|
|
13
|
+
export declare const AMMV3PositionManage: ({ chainId, baseToken, quoteToken, feeAmount, tokenId, onClose, noHeader, }: AMMV3PositionManageProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Currency, CurrencyAmount } from '../sdks/sdk-core';
|
|
2
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
3
|
export interface CurrencyInputPanelProps {
|
|
3
4
|
value: string;
|
|
4
5
|
onUserInput: (value: string) => void;
|
|
@@ -6,5 +7,6 @@ export interface CurrencyInputPanelProps {
|
|
|
6
7
|
balance: CurrencyAmount<Currency> | undefined;
|
|
7
8
|
currency?: Currency | null;
|
|
8
9
|
locked?: boolean;
|
|
10
|
+
onChangeNativeCurrenct?: (c: TokenInfo) => void;
|
|
9
11
|
}
|
|
10
|
-
export declare const CurrencyInputPanel: ({ value, onUserInput, maxAmount, balance, currency, locked, }: CurrencyInputPanelProps) => JSX.Element;
|
|
12
|
+
export declare const CurrencyInputPanel: ({ value, onUserInput, maxAmount, balance, currency, locked, onChangeNativeCurrenct, }: CurrencyInputPanelProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.2.4-beta.
|
|
4
|
-
"description": "DODO Widgets",
|
|
5
|
-
"source": "src/index.tsx",
|
|
6
|
-
"types": "dist/types/index.d.ts",
|
|
7
|
-
"main": "dist/index.cjs",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
|
-
"license": "GPL-3.0-or-later",
|
|
10
|
-
"homepage": "https://github.com/DODOEX/widgets#readme",
|
|
11
|
-
"repository": "https://github.com/DODOEX/widgets",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"prepare": "yarn compile:i18n",
|
|
17
|
-
"extract:i18n": "lingui extract --clean",
|
|
18
|
-
"compile:i18n": "yarn extract:i18n && lingui compile",
|
|
19
|
-
"sync:i18n": "export $(cat .env | xargs) && env lingui extract --overwrite && lingui compile",
|
|
20
|
-
"watch": "yarn run rollup -c --watch",
|
|
21
|
-
"build": "yarn compile:i18n && rollup --config",
|
|
22
|
-
"prerelease": "yarn run build",
|
|
23
|
-
"release": "semantic-release",
|
|
24
|
-
"release:local": "np --any-branch --no-cleanup --no-tests",
|
|
25
|
-
"release.npm-publish": "npm publish --access public",
|
|
26
|
-
"release.npm-publish-beta": "npm publish --tag beta",
|
|
27
|
-
"test": "jest src",
|
|
28
|
-
"test:e2e": "jest e2e"
|
|
29
|
-
},
|
|
30
|
-
"author": "",
|
|
31
|
-
"publishConfig": {
|
|
32
|
-
"access": "public",
|
|
33
|
-
"registry": "https://registry.npmjs.org"
|
|
34
|
-
},
|
|
35
|
-
"exports": {
|
|
36
|
-
".": {
|
|
37
|
-
"types": "./dist/types/index.d.ts",
|
|
38
|
-
"import": "./dist/index.js",
|
|
39
|
-
"require": "./dist/index.cjs"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"keywords": [
|
|
43
|
-
"dodo",
|
|
44
|
-
"widgets",
|
|
45
|
-
"interfaces"
|
|
46
|
-
],
|
|
47
|
-
"browserslist": {
|
|
48
|
-
"production": [
|
|
49
|
-
">0.2%",
|
|
50
|
-
"not dead",
|
|
51
|
-
"not op_mini all"
|
|
52
|
-
],
|
|
53
|
-
"development": [
|
|
54
|
-
"last 1 chrome version",
|
|
55
|
-
"last 1 firefox version",
|
|
56
|
-
"last 1 safari version"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"dependencies": {
|
|
60
|
-
"@babel/runtime": "^7.17.0",
|
|
61
|
-
"@dodoex/api": "3.0.6",
|
|
62
|
-
"@dodoex/components": "3.0.9",
|
|
63
|
-
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
-
"@dodoex/dodo-contract-request": "1.24.0",
|
|
65
|
-
"@dodoex/icons": "^2.0.2",
|
|
66
|
-
"@emotion/react": "^11.10.0",
|
|
67
|
-
"@emotion/styled": "^11.10.0",
|
|
68
|
-
"@ethersproject/bignumber": "^5.6.2",
|
|
69
|
-
"@ethersproject/contracts": "^5.7.0",
|
|
70
|
-
"@lingui/core": "^4.3.0",
|
|
71
|
-
"@lingui/macro": "^4.3.0",
|
|
72
|
-
"@lingui/react": "^4.3.0",
|
|
73
|
-
"@reduxjs/toolkit": "^1.6.1",
|
|
74
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
75
|
-
"@semantic-release/git": "^10.0.1",
|
|
76
|
-
"@tanstack/react-query": "^5.18.1",
|
|
77
|
-
"@uniswap/sdk-core": "^5.9.0",
|
|
78
|
-
"@uniswap/v2-sdk": "^4.6.2",
|
|
79
|
-
"@web3-react/core": "8.2.0",
|
|
80
|
-
"@web3-react/eip1193": "8.2.0",
|
|
81
|
-
"@web3-react/metamask": "8.2.1",
|
|
82
|
-
"@web3-react/types": "8.2.0",
|
|
83
|
-
"@web3-react/walletconnect-v2": "8.3.6",
|
|
84
|
-
"axios": "^0.27.2",
|
|
85
|
-
"bignumber.js": "^9.0.2",
|
|
86
|
-
"d3": "7.6.1",
|
|
87
|
-
"dayjs": "^1.11.11",
|
|
88
|
-
"identicon.js": "^2.3.3",
|
|
89
|
-
"jsbi": "^3.1.4",
|
|
90
|
-
"konva": "^9.3.6",
|
|
91
|
-
"lodash": "^4.17.21",
|
|
92
|
-
"make-plural": "^7.0.0",
|
|
93
|
-
"moment": "^2.29.4",
|
|
94
|
-
"react-datetime": "^3.1.1",
|
|
95
|
-
"react-icons": "^5.0.1",
|
|
96
|
-
"react-infinite-scroller": "^1.2.6",
|
|
97
|
-
"react-konva": "^18.2.10",
|
|
98
|
-
"react-transition-group": "^4.4.5",
|
|
99
|
-
"react-window": "^1.8.8",
|
|
100
|
-
"recharts": "^2.12.7",
|
|
101
|
-
"rmc-date-picker": "^6.0.10",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"react": ">=17.0.1"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"@babel/preset-
|
|
113
|
-
"@babel/preset-
|
|
114
|
-
"@babel
|
|
115
|
-
"@lingui/
|
|
116
|
-
"@
|
|
117
|
-
"@
|
|
118
|
-
"@
|
|
119
|
-
"@rollup/plugin-
|
|
120
|
-
"@rollup/plugin-
|
|
121
|
-
"@rollup/plugin-
|
|
122
|
-
"@rollup/plugin-
|
|
123
|
-
"@rollup/plugin-
|
|
124
|
-
"@rollup/plugin-
|
|
125
|
-
"@rollup/plugin-
|
|
126
|
-
"@rollup
|
|
127
|
-
"@
|
|
128
|
-
"@testing-library/
|
|
129
|
-
"@testing-library/react": "^
|
|
130
|
-
"@
|
|
131
|
-
"@types/
|
|
132
|
-
"@types/
|
|
133
|
-
"@types/
|
|
134
|
-
"@types/
|
|
135
|
-
"@types/react-
|
|
136
|
-
"@types/react-
|
|
137
|
-
"
|
|
138
|
-
"babel-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"jest": "^
|
|
146
|
-
"jest-environment-
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"rollup": "^
|
|
150
|
-
"rollup-plugin-
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@dodoex/widgets",
|
|
3
|
+
"version": "3.2.4-beta.46",
|
|
4
|
+
"description": "DODO Widgets",
|
|
5
|
+
"source": "src/index.tsx",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
|
+
"main": "dist/index.cjs",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"license": "GPL-3.0-or-later",
|
|
10
|
+
"homepage": "https://github.com/DODOEX/widgets#readme",
|
|
11
|
+
"repository": "https://github.com/DODOEX/widgets",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"prepare": "yarn compile:i18n",
|
|
17
|
+
"extract:i18n": "lingui extract --clean",
|
|
18
|
+
"compile:i18n": "yarn extract:i18n && lingui compile",
|
|
19
|
+
"sync:i18n": "export $(cat .env | xargs) && env lingui extract --overwrite && lingui compile",
|
|
20
|
+
"watch": "yarn run rollup -c --watch",
|
|
21
|
+
"build": "yarn compile:i18n && rollup --config",
|
|
22
|
+
"prerelease": "yarn run build",
|
|
23
|
+
"release": "semantic-release",
|
|
24
|
+
"release:local": "np --any-branch --no-cleanup --no-tests",
|
|
25
|
+
"release.npm-publish": "npm publish --access public",
|
|
26
|
+
"release.npm-publish-beta": "npm publish --tag beta",
|
|
27
|
+
"test": "jest src",
|
|
28
|
+
"test:e2e": "jest e2e"
|
|
29
|
+
},
|
|
30
|
+
"author": "",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"registry": "https://registry.npmjs.org"
|
|
34
|
+
},
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/types/index.d.ts",
|
|
38
|
+
"import": "./dist/index.js",
|
|
39
|
+
"require": "./dist/index.cjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"dodo",
|
|
44
|
+
"widgets",
|
|
45
|
+
"interfaces"
|
|
46
|
+
],
|
|
47
|
+
"browserslist": {
|
|
48
|
+
"production": [
|
|
49
|
+
">0.2%",
|
|
50
|
+
"not dead",
|
|
51
|
+
"not op_mini all"
|
|
52
|
+
],
|
|
53
|
+
"development": [
|
|
54
|
+
"last 1 chrome version",
|
|
55
|
+
"last 1 firefox version",
|
|
56
|
+
"last 1 safari version"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@babel/runtime": "^7.17.0",
|
|
61
|
+
"@dodoex/api": "3.0.6",
|
|
62
|
+
"@dodoex/components": "3.0.9",
|
|
63
|
+
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
+
"@dodoex/dodo-contract-request": "1.24.0",
|
|
65
|
+
"@dodoex/icons": "^2.0.2",
|
|
66
|
+
"@emotion/react": "^11.10.0",
|
|
67
|
+
"@emotion/styled": "^11.10.0",
|
|
68
|
+
"@ethersproject/bignumber": "^5.6.2",
|
|
69
|
+
"@ethersproject/contracts": "^5.7.0",
|
|
70
|
+
"@lingui/core": "^4.3.0",
|
|
71
|
+
"@lingui/macro": "^4.3.0",
|
|
72
|
+
"@lingui/react": "^4.3.0",
|
|
73
|
+
"@reduxjs/toolkit": "^1.6.1",
|
|
74
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
75
|
+
"@semantic-release/git": "^10.0.1",
|
|
76
|
+
"@tanstack/react-query": "^5.18.1",
|
|
77
|
+
"@uniswap/sdk-core": "^5.9.0",
|
|
78
|
+
"@uniswap/v2-sdk": "^4.6.2",
|
|
79
|
+
"@web3-react/core": "8.2.0",
|
|
80
|
+
"@web3-react/eip1193": "8.2.0",
|
|
81
|
+
"@web3-react/metamask": "8.2.1",
|
|
82
|
+
"@web3-react/types": "8.2.0",
|
|
83
|
+
"@web3-react/walletconnect-v2": "8.3.6",
|
|
84
|
+
"axios": "^0.27.2",
|
|
85
|
+
"bignumber.js": "^9.0.2",
|
|
86
|
+
"d3": "7.6.1",
|
|
87
|
+
"dayjs": "^1.11.11",
|
|
88
|
+
"identicon.js": "^2.3.3",
|
|
89
|
+
"jsbi": "^3.1.4",
|
|
90
|
+
"konva": "^9.3.6",
|
|
91
|
+
"lodash": "^4.17.21",
|
|
92
|
+
"make-plural": "^7.0.0",
|
|
93
|
+
"moment": "^2.29.4",
|
|
94
|
+
"react-datetime": "^3.1.1",
|
|
95
|
+
"react-icons": "^5.0.1",
|
|
96
|
+
"react-infinite-scroller": "^1.2.6",
|
|
97
|
+
"react-konva": "^18.2.10",
|
|
98
|
+
"react-transition-group": "^4.4.5",
|
|
99
|
+
"react-window": "^1.8.8",
|
|
100
|
+
"recharts": "^2.12.7",
|
|
101
|
+
"rmc-date-picker": "^6.0.10",
|
|
102
|
+
"tiny-invariant": "^1.1.0",
|
|
103
|
+
"zustand": "^4.5.5"
|
|
104
|
+
},
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"@babel/runtime": ">=7.17.0",
|
|
107
|
+
"react": ">=17.0.1",
|
|
108
|
+
"react-dom": ">=17.0.1"
|
|
109
|
+
},
|
|
110
|
+
"devDependencies": {
|
|
111
|
+
"@babel/preset-env": "^7.16.11",
|
|
112
|
+
"@babel/preset-react": "^7.18.6",
|
|
113
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
114
|
+
"@lingui/babel-preset-react": "^2.9.2",
|
|
115
|
+
"@lingui/cli": "^4.3.0",
|
|
116
|
+
"@nomicfoundation/hardhat-network-helpers": "^1.0.6",
|
|
117
|
+
"@nomiclabs/hardhat-ethers": "^2.1.1",
|
|
118
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
119
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
120
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
121
|
+
"@rollup/plugin-multi-entry": "^6.0.1",
|
|
122
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
123
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
124
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
125
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
126
|
+
"@svgr/rollup": "^6.2.1",
|
|
127
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
128
|
+
"@testing-library/react": "^13.4.0",
|
|
129
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
130
|
+
"@types/d3": "7.4.3",
|
|
131
|
+
"@types/identicon.js": "^2.3.1",
|
|
132
|
+
"@types/jest": "^29.0.3",
|
|
133
|
+
"@types/lodash": "^4.14.184",
|
|
134
|
+
"@types/react-infinite-scroller": "^1.2.5",
|
|
135
|
+
"@types/react-transition-group": "^4.4.11",
|
|
136
|
+
"@types/react-window": "^1.8.5",
|
|
137
|
+
"babel-plugin-macros": "^3.1.0",
|
|
138
|
+
"babel-runtime": "^6.26.0",
|
|
139
|
+
"dotenv": "^16.0.2",
|
|
140
|
+
"ethers": "^5.7.1",
|
|
141
|
+
"gettext-parser": "^8.0.0",
|
|
142
|
+
"hardhat": "^2.22.13",
|
|
143
|
+
"identity-obj-proxy": "^3.0.0",
|
|
144
|
+
"jest": "^29.0.3",
|
|
145
|
+
"jest-environment-hardhat": "^1.1.9",
|
|
146
|
+
"jest-environment-jsdom": "^29.0.3",
|
|
147
|
+
"np": "^7.6.1",
|
|
148
|
+
"rollup": "^4.18.0",
|
|
149
|
+
"rollup-plugin-clear": "^2.0.7",
|
|
150
|
+
"rollup-plugin-import-css": "^3.5.5",
|
|
151
|
+
"svg-jest": "^1.0.1",
|
|
152
|
+
"ts-jest": "^29.0.1",
|
|
153
|
+
"typescript": "^5.6.3"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|