@dodoex/wallet-web3-react 0.3.0 → 0.4.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/wallet-web3-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"source": "src/index.tsx",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"typings": "dist/types/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"module": "dist/index.js",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "yarn workspace doc start",
|
|
11
|
-
"build": "yarn extract && yarn compile && rollup -c",
|
|
11
|
+
"build": "yarn extract && yarn compile && rollup -c && tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
12
12
|
"extract": "lingui extract --clean",
|
|
13
13
|
"compile": "lingui compile",
|
|
14
14
|
"release.npm-publish": "npm publish --access public",
|
package/rollup.config.mjs
CHANGED
|
@@ -25,6 +25,7 @@ const baseConfig = {
|
|
|
25
25
|
replace({
|
|
26
26
|
'../locales/${locale}.js': './locales/${locale}.js',
|
|
27
27
|
delimiters: ['', ''],
|
|
28
|
+
preventAssignment: true,
|
|
28
29
|
}),
|
|
29
30
|
url(),
|
|
30
31
|
svgr({
|
|
@@ -39,7 +40,9 @@ const baseConfig = {
|
|
|
39
40
|
},
|
|
40
41
|
}),
|
|
41
42
|
json(),
|
|
42
|
-
typescript(
|
|
43
|
+
typescript({
|
|
44
|
+
declaration: false,
|
|
45
|
+
}),
|
|
43
46
|
commonjs(),
|
|
44
47
|
resolve(),
|
|
45
48
|
babel({
|
|
@@ -86,7 +89,7 @@ export default [
|
|
|
86
89
|
plugins: [terser()],
|
|
87
90
|
},
|
|
88
91
|
{
|
|
89
|
-
dir: 'dist',
|
|
92
|
+
dir: 'dist/cjs',
|
|
90
93
|
entryFileNames: '[name].cjs',
|
|
91
94
|
chunkFileNames: '[name]-[hash].cjs',
|
|
92
95
|
format: 'cjs',
|
|
@@ -475,7 +475,9 @@ function AccountPage({
|
|
|
475
475
|
/>
|
|
476
476
|
<Tabs
|
|
477
477
|
value={listTab}
|
|
478
|
-
onChange={(_: any, v:
|
|
478
|
+
onChange={(_: any, v: string | number | null) => {
|
|
479
|
+
if (v !== null) setListTab(v as ListTab);
|
|
480
|
+
}}
|
|
479
481
|
>
|
|
480
482
|
<TabsGroup tabs={tabs} />
|
|
481
483
|
<TabPanel value={ListTab.tokens}>
|