@getpara/solana-wallet-connectors 2.0.0-alpha.27 → 2.0.0-alpha.28
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/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { ParaSolanaProvider } from './providers/ParaSolanaProvider.js';
|
|
|
4
4
|
export type { ParaSolanaProviderConfig, ParaSolanaProviderProps } from './providers/ParaSolanaProvider.js';
|
|
5
5
|
export * from './wallets/connectors/index.js';
|
|
6
6
|
export type { WalletList } from './types/Wallet.js';
|
|
7
|
+
export type { Adapter } from '@solana/wallet-adapter-base';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { CreateWalletFn } from '../types/Wallet.js';
|
|
3
3
|
import { ExternalWalletContextType, ExternalWalletProviderConfig, ExternalWalletProviderConfigBase } from '@getpara/react-common';
|
|
4
|
-
|
|
4
|
+
import { TExternalHooks } from './externalHooks.js';
|
|
5
|
+
export type SolanaExternalWalletContextType = ExternalWalletContextType & TExternalHooks;
|
|
5
6
|
export declare const SolanaExternalWalletContext: import("react").Context<SolanaExternalWalletContextType>;
|
|
6
7
|
export type SolanaExternalWalletProviderConfig = ExternalWalletProviderConfigBase;
|
|
7
8
|
type SolanaExternalWalletProviderConfigFull = ExternalWalletProviderConfig<CreateWalletFn>;
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
defaultSolanaExternalWallet
|
|
44
44
|
} from "@getpara/react-common";
|
|
45
45
|
import bs58 from "bs58";
|
|
46
|
+
import { externalHooks } from "./externalHooks.js";
|
|
46
47
|
const SolanaExternalWalletContext = createContext(defaultSolanaExternalWallet);
|
|
47
48
|
function SolanaExternalWalletProvider({
|
|
48
49
|
children,
|
|
@@ -302,7 +303,7 @@ function SolanaExternalWalletProvider({
|
|
|
302
303
|
SolanaExternalWalletContext.Provider,
|
|
303
304
|
{
|
|
304
305
|
value: useMemo(
|
|
305
|
-
() => ({ wallets, disconnect, signMessage, signVerificationMessage, requestInfo, disconnectBase }),
|
|
306
|
+
() => __spreadValues({ wallets, disconnect, signMessage, signVerificationMessage, requestInfo, disconnectBase }, externalHooks),
|
|
306
307
|
[wallets, disconnect, signMessage, signVerificationMessage, requestInfo, disconnectBase]
|
|
307
308
|
),
|
|
308
309
|
children
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/solana-wallet-connectors",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.28",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/react-common": "2.0.0-alpha.
|
|
6
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
5
|
+
"@getpara/react-common": "2.0.0-alpha.28",
|
|
6
|
+
"@getpara/web-sdk": "2.0.0-alpha.28",
|
|
7
7
|
"bs58": "6.0.0"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dist",
|
|
24
24
|
"package.json"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "1da9f8663f58015a70686f45741fb76ddc671ac7",
|
|
27
27
|
"main": "dist/index.js",
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@solana-mobile/wallet-adapter-mobile": "2.x",
|