@edgex-web/components 0.2.0-beta.6 → 1.0.0-beta.10
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/README.md +29 -3
- package/dist/{ccip-DGLIdqJC.mjs → ccip-CquERB6a.mjs} +2 -2
- package/dist/{ccip-DGLIdqJC.mjs.map → ccip-CquERB6a.mjs.map} +1 -1
- package/dist/components/Deposit/src/components/evm/hooks/useDepositButtonState.d.ts.map +1 -1
- package/dist/components/Deposit/src/components/evm/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/components/evm/types/approve.d.ts +1 -1
- package/dist/components/Deposit/src/components/evm/types/approve.d.ts.map +1 -1
- package/dist/components/Deposit/src/components/evm/types/index.d.ts +3 -1
- package/dist/components/Deposit/src/components/evm/types/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/components/evm/utils/index.d.ts +1 -1
- package/dist/components/Deposit/src/components/evm/utils/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/components/mpc/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/components/mpc/types/index.d.ts +10 -1
- package/dist/components/Deposit/src/components/mpc/types/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/constants/index.d.ts.map +1 -1
- package/dist/components/Deposit/src/index.d.ts.map +1 -1
- package/dist/components/Deposit/types/index.d.ts +52 -30
- package/dist/components/Deposit/types/index.d.ts.map +1 -1
- package/dist/components/Tooltip/src/Tooltip.d.ts.map +1 -1
- package/dist/components/Withdraw/src/WithdrawManager.d.ts.map +1 -1
- package/dist/components/Withdraw/src/evm/WalletView.d.ts +1 -1
- package/dist/components/Withdraw/src/evm/WalletView.d.ts.map +1 -1
- package/dist/components/Withdraw/src/evm/index.d.ts +6 -11
- package/dist/components/Withdraw/src/evm/index.d.ts.map +1 -1
- package/dist/components/Withdraw/src/index.d.ts.map +1 -1
- package/dist/components/Withdraw/types/index.d.ts +18 -19
- package/dist/components/Withdraw/types/index.d.ts.map +1 -1
- package/dist/components/shared/components/selector/Account.d.ts.map +1 -1
- package/dist/components/shared/components/selector/Asset.d.ts.map +1 -1
- package/dist/components/shared/components/selector/index.d.ts.map +1 -1
- package/dist/components/shared/components/selector/types/index.d.ts +8 -0
- package/dist/components/shared/components/selector/types/index.d.ts.map +1 -1
- package/dist/components/shared/constants/index.d.ts +8 -0
- package/dist/components/shared/constants/index.d.ts.map +1 -1
- package/dist/components/shared/utils/index.d.ts +1 -0
- package/dist/components/shared/utils/index.d.ts.map +1 -1
- package/dist/hooks/useTranslation.d.ts +41 -3
- package/dist/hooks/useTranslation.d.ts.map +1 -1
- package/dist/index-CRmwQQOf.mjs +22244 -0
- package/dist/index-CRmwQQOf.mjs.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +105 -95
- package/dist/index.umd.js.map +1 -1
- package/dist/locales/de-DE.d.ts +84 -0
- package/dist/locales/de-DE.d.ts.map +1 -0
- package/dist/locales/en-US.d.ts +20 -1
- package/dist/locales/en-US.d.ts.map +1 -1
- package/dist/locales/es-LA.d.ts +84 -0
- package/dist/locales/es-LA.d.ts.map +1 -0
- package/dist/locales/fr-FR.d.ts +84 -0
- package/dist/locales/fr-FR.d.ts.map +1 -0
- package/dist/locales/index.d.ts +7 -3
- package/dist/locales/index.d.ts.map +1 -1
- package/dist/locales/it-IT.d.ts +84 -0
- package/dist/locales/it-IT.d.ts.map +1 -0
- package/dist/locales/ja-JP.d.ts +20 -1
- package/dist/locales/ja-JP.d.ts.map +1 -1
- package/dist/locales/ru-RU.d.ts +20 -1
- package/dist/locales/ru-RU.d.ts.map +1 -1
- package/dist/locales/zh-CN.d.ts +20 -1
- package/dist/locales/zh-CN.d.ts.map +1 -1
- package/dist/locales/zh-TW.d.ts +20 -1
- package/dist/locales/zh-TW.d.ts.map +1 -1
- package/dist/style.css +3 -0
- package/dist/styles.css +4 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/token.d.ts +1 -0
- package/dist/types/token.d.ts.map +1 -1
- package/package.json +18 -4
- package/dist/index-C2V944VK.mjs +0 -20451
- package/dist/index-C2V944VK.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/components/selector/types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,kDAAkD;AAClD,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,aAAa,EAAE,KAAK,CAAA;IACpB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,aAAa,EAAE,KAAK,CAAA;IACpB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/components/selector/types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,kDAAkD;AAClD,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;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A0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,kBAAkB,EAAE,SAAS,CAAA;IAC7B,SAAS,EAAE,SAAS,EAAE,CAAA;IACtB,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAExC,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEtC,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE1C,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export declare const MPC: "MPC";
|
|
2
2
|
export declare const EVM: "EVM";
|
|
3
|
+
/**
|
|
4
|
+
* 业务类型枚举
|
|
5
|
+
*/
|
|
6
|
+
export declare enum BUSINESS_TYPE {
|
|
7
|
+
SPOT = "spot",
|
|
8
|
+
PERPETUAL = "perpetual",
|
|
9
|
+
PERPETUALV2 = "perpetual_v2"
|
|
10
|
+
}
|
|
3
11
|
export declare const ACCOUNT_TYPE_SPOT: "spot";
|
|
4
12
|
export declare const ACCOUNT_TYPE_PERPETUAL: "perpetual";
|
|
5
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,EAAG,KAAc,CAAA;AACjC,eAAO,MAAM,GAAG,EAAG,KAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,EAAG,KAAc,CAAA;AACjC,eAAO,MAAM,GAAG,EAAG,KAAc,CAAA;AAEjC;;GAEG;AACH,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,WAAW,iBAAiB;CAC7B;AAGD,eAAO,MAAM,iBAAiB,EAAG,MAAe,CAAA;AAChD,eAAO,MAAM,sBAAsB,EAAG,WAAoB,CAAA"}
|
|
@@ -20,4 +20,5 @@ export declare const isMpcWalletType: (account: Account) => boolean;
|
|
|
20
20
|
* @returns boolean
|
|
21
21
|
*/
|
|
22
22
|
export declare const isEvmWalletType: (account: Account) => boolean;
|
|
23
|
+
export declare const normalizeBusinessType: (value?: string) => string;
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAI/D;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,UAAU,KAAG,UAElD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,YAE/C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,YAE/C,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAI/D;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,UAAU,KAAG,UAElD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,YAE/C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,YAE/C,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,WAOnD,CAAA"}
|
|
@@ -34,6 +34,8 @@ export declare const useTranslation: () => {
|
|
|
34
34
|
confirmDeposit: string;
|
|
35
35
|
switchNetwork: string;
|
|
36
36
|
max: string;
|
|
37
|
+
fast: string;
|
|
38
|
+
standard: string;
|
|
37
39
|
arrivalTime: string;
|
|
38
40
|
ethCrossChainDepositInitiated: string;
|
|
39
41
|
minDeposit: string;
|
|
@@ -41,19 +43,30 @@ export declare const useTranslation: () => {
|
|
|
41
43
|
maxDeposit: string;
|
|
42
44
|
depositTipFor25w: string;
|
|
43
45
|
depositAllTip: string;
|
|
46
|
+
maxDepositSplitTip: string;
|
|
47
|
+
spotDepositNotSupportedTip: string;
|
|
44
48
|
crossChainDepositFeeTip: string;
|
|
49
|
+
addressUpdatedNotice: string;
|
|
45
50
|
enableSystemProWithToken: string;
|
|
46
51
|
enableTokenDesc: string;
|
|
47
52
|
enableWithToken: string;
|
|
48
53
|
arrivaltimeTooltip1: string;
|
|
49
54
|
arrivaltimeTooltip2: string;
|
|
50
55
|
arrivalEstimated: string;
|
|
56
|
+
feeRateTooltip: string;
|
|
51
57
|
availableDesc: string;
|
|
52
58
|
noPrivateKeyWalletWarning: string;
|
|
53
59
|
layerZeroDepositTip: string;
|
|
54
60
|
layerZeroDepositTipExceedPool: string;
|
|
55
61
|
layerZeroDepositTipGte200k: string;
|
|
56
62
|
layerZeroDepositButton: string;
|
|
63
|
+
defaultSpotNotice: string;
|
|
64
|
+
defaultSpotToPerpNotice: string;
|
|
65
|
+
connectedWalletTitle: string;
|
|
66
|
+
connectedWalletDesc: string;
|
|
67
|
+
externalWalletTitle: string;
|
|
68
|
+
externalWalletDesc: string;
|
|
69
|
+
or: string;
|
|
57
70
|
};
|
|
58
71
|
withdraw: {
|
|
59
72
|
noticeDesc: string;
|
|
@@ -79,14 +92,20 @@ export declare const useTranslation: () => {
|
|
|
79
92
|
crossChainPoolBalance: string;
|
|
80
93
|
poolBalance: string;
|
|
81
94
|
poolBalanceInsufficientTip: string;
|
|
95
|
+
connectedWalletTitle: string;
|
|
96
|
+
connectedWalletDesc: string;
|
|
97
|
+
externalWalletTitle: string;
|
|
98
|
+
externalWalletDesc: string;
|
|
82
99
|
};
|
|
83
100
|
account: {
|
|
84
101
|
title: string;
|
|
85
|
-
|
|
102
|
+
perp: string;
|
|
103
|
+
'perpetual-v1': string;
|
|
104
|
+
'perpetual-v2': string;
|
|
86
105
|
spot: string;
|
|
87
106
|
};
|
|
88
107
|
};
|
|
89
|
-
locale: "en-US" | "ja-JP" | "ru-RU" | "zh-CN" | "zh-TW";
|
|
108
|
+
locale: "en-US" | "ja-JP" | "ru-RU" | "zh-CN" | "zh-TW" | "de-DE" | "es-LA" | "fr-FR" | "it-IT";
|
|
90
109
|
getTranslationObject: (key: string) => Record<string, any>;
|
|
91
110
|
hasTranslation: (key: string) => boolean;
|
|
92
111
|
};
|
|
@@ -107,6 +126,8 @@ export declare const useTranslationWithLocale: (localLocale?: string) => {
|
|
|
107
126
|
confirmDeposit: string;
|
|
108
127
|
switchNetwork: string;
|
|
109
128
|
max: string;
|
|
129
|
+
fast: string;
|
|
130
|
+
standard: string;
|
|
110
131
|
arrivalTime: string;
|
|
111
132
|
ethCrossChainDepositInitiated: string;
|
|
112
133
|
minDeposit: string;
|
|
@@ -114,19 +135,30 @@ export declare const useTranslationWithLocale: (localLocale?: string) => {
|
|
|
114
135
|
maxDeposit: string;
|
|
115
136
|
depositTipFor25w: string;
|
|
116
137
|
depositAllTip: string;
|
|
138
|
+
maxDepositSplitTip: string;
|
|
139
|
+
spotDepositNotSupportedTip: string;
|
|
117
140
|
crossChainDepositFeeTip: string;
|
|
141
|
+
addressUpdatedNotice: string;
|
|
118
142
|
enableSystemProWithToken: string;
|
|
119
143
|
enableTokenDesc: string;
|
|
120
144
|
enableWithToken: string;
|
|
121
145
|
arrivaltimeTooltip1: string;
|
|
122
146
|
arrivaltimeTooltip2: string;
|
|
123
147
|
arrivalEstimated: string;
|
|
148
|
+
feeRateTooltip: string;
|
|
124
149
|
availableDesc: string;
|
|
125
150
|
noPrivateKeyWalletWarning: string;
|
|
126
151
|
layerZeroDepositTip: string;
|
|
127
152
|
layerZeroDepositTipExceedPool: string;
|
|
128
153
|
layerZeroDepositTipGte200k: string;
|
|
129
154
|
layerZeroDepositButton: string;
|
|
155
|
+
defaultSpotNotice: string;
|
|
156
|
+
defaultSpotToPerpNotice: string;
|
|
157
|
+
connectedWalletTitle: string;
|
|
158
|
+
connectedWalletDesc: string;
|
|
159
|
+
externalWalletTitle: string;
|
|
160
|
+
externalWalletDesc: string;
|
|
161
|
+
or: string;
|
|
130
162
|
};
|
|
131
163
|
withdraw: {
|
|
132
164
|
noticeDesc: string;
|
|
@@ -152,10 +184,16 @@ export declare const useTranslationWithLocale: (localLocale?: string) => {
|
|
|
152
184
|
crossChainPoolBalance: string;
|
|
153
185
|
poolBalance: string;
|
|
154
186
|
poolBalanceInsufficientTip: string;
|
|
187
|
+
connectedWalletTitle: string;
|
|
188
|
+
connectedWalletDesc: string;
|
|
189
|
+
externalWalletTitle: string;
|
|
190
|
+
externalWalletDesc: string;
|
|
155
191
|
};
|
|
156
192
|
account: {
|
|
157
193
|
title: string;
|
|
158
|
-
|
|
194
|
+
perp: string;
|
|
195
|
+
'perpetual-v1': string;
|
|
196
|
+
'perpetual-v2': string;
|
|
159
197
|
spot: string;
|
|
160
198
|
};
|
|
161
199
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc;aAST,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM
|
|
1
|
+
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc;aAST,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAyCtC,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;0BAyBlC,MAAM,KAAG,OAAO;CA0B9C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,cAAc,MAAM;aAW3C,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1E,CAAA;AAED,eAAe,cAAc,CAAA"}
|