@ant-design/web3-tron 1.0.5 → 1.1.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/CHANGELOG.md +6 -1
- package/dist/esm/provider/config-provider.d.ts +6 -0
- package/dist/esm/provider/config-provider.js +2 -0
- package/dist/esm/provider/index.d.ts +6 -0
- package/dist/esm/provider/index.js +2 -0
- package/dist/lib/provider/config-provider.d.ts +6 -0
- package/dist/lib/provider/config-provider.js +2 -0
- package/dist/lib/provider/index.d.ts +6 -0
- package/dist/lib/provider/index.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# @ant-design/web3-tron
|
|
2
2
|
|
|
3
|
-
## 1.0
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2ae483c: feat: support ignoreConfig for support multiple chain better
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
11
|
- Updated dependencies [dfa67c5]
|
|
12
|
+
- Updated dependencies [2ae483c]
|
|
8
13
|
- @ant-design/web3-common@1.22.0
|
|
9
14
|
- @ant-design/web3-assets@1.14.3
|
|
10
15
|
|
|
@@ -5,6 +5,12 @@ interface AntDesignWeb3ConfigProviderProps {
|
|
|
5
5
|
availableWallets?: Wallet[];
|
|
6
6
|
locale?: Locale;
|
|
7
7
|
connectionError?: WalletError;
|
|
8
|
+
/**
|
|
9
|
+
* If true, this provider's configuration will be ignored when merging with parent context.
|
|
10
|
+
* This is useful when you have multiple chain providers and want to switch between them
|
|
11
|
+
* without causing page flickering. Only the active provider should not have this flag set.
|
|
12
|
+
*/
|
|
13
|
+
ignoreConfig?: boolean;
|
|
8
14
|
}
|
|
9
15
|
export declare const AntDesignWeb3ConfigProvider: React.FC<React.PropsWithChildren<AntDesignWeb3ConfigProviderProps>>;
|
|
10
16
|
export {};
|
|
@@ -8,6 +8,7 @@ export const AntDesignWeb3ConfigProvider = ({
|
|
|
8
8
|
availableWallets,
|
|
9
9
|
locale,
|
|
10
10
|
connectionError,
|
|
11
|
+
ignoreConfig,
|
|
11
12
|
children
|
|
12
13
|
}) => {
|
|
13
14
|
const {
|
|
@@ -116,6 +117,7 @@ export const AntDesignWeb3ConfigProvider = ({
|
|
|
116
117
|
console.error(error);
|
|
117
118
|
}
|
|
118
119
|
},
|
|
120
|
+
ignoreConfig: ignoreConfig,
|
|
119
121
|
children: children
|
|
120
122
|
});
|
|
121
123
|
};
|
|
@@ -6,5 +6,11 @@ export interface TronWeb3ConfigProviderProps {
|
|
|
6
6
|
autoConnect?: boolean;
|
|
7
7
|
locale?: Locale;
|
|
8
8
|
walletProviderProps?: Omit<React.PropsWithChildren<TronWeb3ConfigProviderProps>, 'children'>;
|
|
9
|
+
/**
|
|
10
|
+
* If true, this provider's configuration will be ignored when merging with parent context.
|
|
11
|
+
* This is useful when you have multiple chain providers and want to switch between them
|
|
12
|
+
* without causing page flickering. Only the active provider should not have this flag set.
|
|
13
|
+
*/
|
|
14
|
+
ignoreConfig?: boolean;
|
|
9
15
|
}
|
|
10
16
|
export declare const TronWeb3ConfigProvider: React.FC<PropsWithChildren<TronWeb3ConfigProviderProps>>;
|
|
@@ -10,6 +10,7 @@ export const TronWeb3ConfigProvider = ({
|
|
|
10
10
|
onError,
|
|
11
11
|
locale,
|
|
12
12
|
autoConnect,
|
|
13
|
+
ignoreConfig,
|
|
13
14
|
children,
|
|
14
15
|
walletProviderProps
|
|
15
16
|
}) => {
|
|
@@ -32,6 +33,7 @@ export const TronWeb3ConfigProvider = ({
|
|
|
32
33
|
locale: locale,
|
|
33
34
|
connectionError: connectionError,
|
|
34
35
|
availableWallets: wallets,
|
|
36
|
+
ignoreConfig: ignoreConfig,
|
|
35
37
|
children: children
|
|
36
38
|
})
|
|
37
39
|
});
|
|
@@ -5,6 +5,12 @@ interface AntDesignWeb3ConfigProviderProps {
|
|
|
5
5
|
availableWallets?: Wallet[];
|
|
6
6
|
locale?: Locale;
|
|
7
7
|
connectionError?: WalletError;
|
|
8
|
+
/**
|
|
9
|
+
* If true, this provider's configuration will be ignored when merging with parent context.
|
|
10
|
+
* This is useful when you have multiple chain providers and want to switch between them
|
|
11
|
+
* without causing page flickering. Only the active provider should not have this flag set.
|
|
12
|
+
*/
|
|
13
|
+
ignoreConfig?: boolean;
|
|
8
14
|
}
|
|
9
15
|
export declare const AntDesignWeb3ConfigProvider: React.FC<React.PropsWithChildren<AntDesignWeb3ConfigProviderProps>>;
|
|
10
16
|
export {};
|
|
@@ -16,6 +16,7 @@ const AntDesignWeb3ConfigProvider = ({
|
|
|
16
16
|
availableWallets,
|
|
17
17
|
locale,
|
|
18
18
|
connectionError,
|
|
19
|
+
ignoreConfig,
|
|
19
20
|
children
|
|
20
21
|
}) => {
|
|
21
22
|
const {
|
|
@@ -124,6 +125,7 @@ const AntDesignWeb3ConfigProvider = ({
|
|
|
124
125
|
console.error(error);
|
|
125
126
|
}
|
|
126
127
|
},
|
|
128
|
+
ignoreConfig: ignoreConfig,
|
|
127
129
|
children: children
|
|
128
130
|
});
|
|
129
131
|
};
|
|
@@ -6,5 +6,11 @@ export interface TronWeb3ConfigProviderProps {
|
|
|
6
6
|
autoConnect?: boolean;
|
|
7
7
|
locale?: Locale;
|
|
8
8
|
walletProviderProps?: Omit<React.PropsWithChildren<TronWeb3ConfigProviderProps>, 'children'>;
|
|
9
|
+
/**
|
|
10
|
+
* If true, this provider's configuration will be ignored when merging with parent context.
|
|
11
|
+
* This is useful when you have multiple chain providers and want to switch between them
|
|
12
|
+
* without causing page flickering. Only the active provider should not have this flag set.
|
|
13
|
+
*/
|
|
14
|
+
ignoreConfig?: boolean;
|
|
9
15
|
}
|
|
10
16
|
export declare const TronWeb3ConfigProvider: React.FC<PropsWithChildren<TronWeb3ConfigProviderProps>>;
|
|
@@ -18,6 +18,7 @@ const TronWeb3ConfigProvider = ({
|
|
|
18
18
|
onError,
|
|
19
19
|
locale,
|
|
20
20
|
autoConnect,
|
|
21
|
+
ignoreConfig,
|
|
21
22
|
children,
|
|
22
23
|
walletProviderProps
|
|
23
24
|
}) => {
|
|
@@ -40,6 +41,7 @@ const TronWeb3ConfigProvider = ({
|
|
|
40
41
|
locale: locale,
|
|
41
42
|
connectionError: connectionError,
|
|
42
43
|
availableWallets: wallets,
|
|
44
|
+
ignoreConfig: ignoreConfig,
|
|
43
45
|
children: children
|
|
44
46
|
})
|
|
45
47
|
});
|