@broxus/evm-connect 1.4.0 → 1.4.1
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/dist/cjs/context/EvmWalletServiceContext.d.ts +1 -1
- package/dist/cjs/context/EvmWalletServiceContext.js +3 -2
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/context/EvmWalletServiceContext.d.ts +1 -1
- package/dist/esm/context/EvmWalletServiceContext.js +2 -2
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -7,5 +7,5 @@ type EvmWalletProviderProps = React.PropsWithChildren<{
|
|
|
7
7
|
params?: EvmWalletServiceCtorParams;
|
|
8
8
|
wallet?: EvmWalletService;
|
|
9
9
|
}>;
|
|
10
|
-
export declare
|
|
10
|
+
export declare function EvmWalletServiceProvider({ agreementsNote, children, params, wallet, }: EvmWalletProviderProps): React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -8,7 +8,7 @@ export const EvmWalletServiceContext = React.createContext(null);
|
|
|
8
8
|
export function useEvmWalletService() {
|
|
9
9
|
return useContext(EvmWalletServiceContext);
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export function EvmWalletServiceProvider({ agreementsNote, children, params, wallet, }) {
|
|
12
12
|
const [, setRecentMeta] = useRecentConnectionMeta();
|
|
13
13
|
const context = React.useMemo(() => {
|
|
14
14
|
if (wallet instanceof EvmWalletService) {
|
|
@@ -24,7 +24,7 @@ export const EvmWalletServiceProvider = React.memo(({ agreementsNote, children,
|
|
|
24
24
|
}, { delay: 10, fireImmediately: context.isReady }), [context, setRecentMeta]);
|
|
25
25
|
return (React.createElement(EvmWalletServiceContext.Provider, { value: context },
|
|
26
26
|
React.createElement(EvmWalletProvidersProvider, { agreementsNote: agreementsNote }, children)));
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
28
|
if (process.env.NODE_ENV !== 'production') {
|
|
29
29
|
EvmWalletServiceContext.displayName = 'EvmWalletServiceContext';
|
|
30
30
|
}
|