@solana/connector 0.1.8 → 0.1.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.
Files changed (58) hide show
  1. package/README.md +97 -0
  2. package/dist/chunk-4JT24DIX.js +466 -0
  3. package/dist/chunk-4JT24DIX.js.map +1 -0
  4. package/dist/chunk-4KD6HQQG.js +69 -0
  5. package/dist/chunk-4KD6HQQG.js.map +1 -0
  6. package/dist/{chunk-DSUCH44G.js → chunk-64LV76OK.js} +2 -67
  7. package/dist/chunk-64LV76OK.js.map +1 -0
  8. package/dist/{chunk-FTXIXM43.js → chunk-6AJJJG5B.js} +614 -138
  9. package/dist/chunk-6AJJJG5B.js.map +1 -0
  10. package/dist/chunk-7XHVZW2L.mjs +460 -0
  11. package/dist/chunk-7XHVZW2L.mjs.map +1 -0
  12. package/dist/{chunk-K3BNIGPX.js → chunk-ATYK5OKR.js} +81 -33
  13. package/dist/chunk-ATYK5OKR.js.map +1 -0
  14. package/dist/{chunk-J7DHGLW6.mjs → chunk-DKCZA2QI.mjs} +3 -61
  15. package/dist/chunk-DKCZA2QI.mjs.map +1 -0
  16. package/dist/chunk-FVA4TUI4.mjs +178 -0
  17. package/dist/chunk-FVA4TUI4.mjs.map +1 -0
  18. package/dist/chunk-HO6QNKFM.mjs +61 -0
  19. package/dist/chunk-HO6QNKFM.mjs.map +1 -0
  20. package/dist/chunk-MN7XNCYI.js +230 -0
  21. package/dist/chunk-MN7XNCYI.js.map +1 -0
  22. package/dist/{chunk-6F6M6L7R.mjs → chunk-QOIQBWMP.mjs} +524 -56
  23. package/dist/chunk-QOIQBWMP.mjs.map +1 -0
  24. package/dist/{chunk-TTOKQAPX.mjs → chunk-WGZYKDXF.mjs} +57 -11
  25. package/dist/chunk-WGZYKDXF.mjs.map +1 -0
  26. package/dist/compat.js +10 -9
  27. package/dist/compat.js.map +1 -1
  28. package/dist/compat.mjs +2 -1
  29. package/dist/compat.mjs.map +1 -1
  30. package/dist/headless.d.mts +217 -100
  31. package/dist/headless.d.ts +217 -100
  32. package/dist/headless.js +190 -168
  33. package/dist/headless.mjs +5 -3
  34. package/dist/index.d.mts +3 -3
  35. package/dist/index.d.ts +3 -3
  36. package/dist/index.js +233 -203
  37. package/dist/index.mjs +6 -4
  38. package/dist/react.d.mts +72 -4
  39. package/dist/react.d.ts +72 -4
  40. package/dist/react.js +52 -36
  41. package/dist/react.mjs +2 -2
  42. package/dist/{standard-shim-CT49DM5l.d.mts → standard-shim-BTUm7cur.d.mts} +280 -1
  43. package/dist/{standard-shim-D9guL5fz.d.ts → standard-shim-LsQ97i9T.d.ts} +280 -1
  44. package/dist/walletconnect-D4JN6H2O.js +28 -0
  45. package/dist/walletconnect-D4JN6H2O.js.map +1 -0
  46. package/dist/walletconnect-I3PZUBTA.mjs +3 -0
  47. package/dist/walletconnect-I3PZUBTA.mjs.map +1 -0
  48. package/package.json +6 -2
  49. package/dist/chunk-6F6M6L7R.mjs.map +0 -1
  50. package/dist/chunk-AOIXHVRH.js +0 -535
  51. package/dist/chunk-AOIXHVRH.js.map +0 -1
  52. package/dist/chunk-DSUCH44G.js.map +0 -1
  53. package/dist/chunk-FTXIXM43.js.map +0 -1
  54. package/dist/chunk-G575OAT4.mjs +0 -476
  55. package/dist/chunk-G575OAT4.mjs.map +0 -1
  56. package/dist/chunk-J7DHGLW6.mjs.map +0 -1
  57. package/dist/chunk-K3BNIGPX.js.map +0 -1
  58. package/dist/chunk-TTOKQAPX.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,6 +1,8 @@
1
- export { EnhancedStorage, EnhancedStorageAdapter, SOLANA_CHAIN_IDS, address, chainIdToClusterId, chainIdToClusterType, clusterToChainId, copySignature, createEnhancedStorageAccount, createEnhancedStorageCluster, createEnhancedStorageWallet, createSignableMessage, createSolanaDevnet, createSolanaLocalnet, createSolanaMainnet, createSolanaTestnet, formatSignature, getAllExplorerUrls, getChainIdFromCluster, getChainIdFromClusterId, getChainIdFromClusterType, getChainIdFromConnection, getClusterIdFromChainId, getClusterTypeFromChainId, getClusterTypeFromConnection, getDefaultConfig, getDefaultMobileConfig, getLatestBlockhash, getSolanaExplorerUrl, getSolanaFmUrl, getSolscanUrl, getXrayUrl, isAccountAddress, isKitConnection, isKnownSolanaChain, isLegacyConnection, isSolanaChain, isWalletName, parseConfigOptions, sendRawTransaction, validateConfigOptions, validateKnownSolanaChain } from './chunk-G575OAT4.mjs';
2
- export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnector, useConnectorClient, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo } from './chunk-TTOKQAPX.mjs';
3
- export { ClipboardErrorType, ConnectorClient, ConnectorErrorBoundary, PUBLIC_RPC_ENDPOINTS, TransactionSignerError, WalletErrorType, copyAddressToClipboard, copySignatureToClipboard, copyToClipboard, createGillTransactionSigner, createKitTransactionSigner, createTransactionSigner, formatAddress, formatBigIntBalance, formatBigIntUsd, formatLamportsToSolSafe, formatNumber, formatSOL, formatTokenAmount, formatTokenBalanceSafe, getAddressUrl, getBlockUrl, getChainIdForWalletStandard, getClusterChainId, getClusterExplorerUrl, getClusterName, getClusterRpcUrl, getClusterType, getDefaultRpcUrl, getNetworkDisplayName, getPolyfillStatus, getTokenUrl, getTransactionUrl, getWalletsRegistry, installPolyfills, isClipboardAvailable, isCryptoAvailable, isDevnet, isDevnetCluster, isLocalCluster, isLocalnet, isMainnet, isMainnetCluster, isPolyfillInstalled, isTestnet, isTestnetCluster, isTransactionSignerError, normalizeNetwork, ready, toClusterId, truncate, withErrorBoundary } from './chunk-6F6M6L7R.mjs';
4
- export { ConfigurationError, ConnectionError, ConnectorError, Errors, LAMPORTS_PER_SOL, NetworkError, TransactionError, ValidationError, base58ToSignatureBytes, createKitSignersFromWallet, createMessageSignerFromWallet, createSolanaClient, createTransactionSendingSignerFromWallet, detectMessageModification, freezeSigner, getExplorerLink, getPublicSolanaRpcUrl, getUserFriendlyMessage, isConfigurationError, isConnectionError, isConnectorError, isFailure, isNetworkError, isSuccess, isTransactionError, isValidationError, lamportsToSol, prepareTransaction, signatureBytesToBase58, solToLamports, toConnectorError, tryCatch, tryCatchSync, updateSignatureDictionary } from './chunk-J7DHGLW6.mjs';
1
+ export { SOLANA_CHAIN_IDS, address, chainIdToClusterId, chainIdToClusterType, clusterToChainId, copySignature, createSignableMessage, createSolanaDevnet, createSolanaLocalnet, createSolanaMainnet, createSolanaTestnet, formatSignature, getAllExplorerUrls, getChainIdFromCluster, getChainIdFromClusterId, getChainIdFromClusterType, getChainIdFromConnection, getClusterIdFromChainId, getClusterTypeFromChainId, getClusterTypeFromConnection, getLatestBlockhash, getSolanaExplorerUrl, getSolanaFmUrl, getSolscanUrl, getXrayUrl, isAccountAddress, isKitConnection, isKnownSolanaChain, isLegacyConnection, isSolanaChain, isWalletName, sendRawTransaction, validateKnownSolanaChain } from './chunk-FVA4TUI4.mjs';
2
+ export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletConnectProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnector, useConnectorClient, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletConnectUri, useWalletInfo } from './chunk-WGZYKDXF.mjs';
3
+ export { ClipboardErrorType, ConnectorClient, ConnectorErrorBoundary, EnhancedStorage, EnhancedStorageAdapter, PUBLIC_RPC_ENDPOINTS, TransactionSignerError, WalletErrorType, copyAddressToClipboard, copySignatureToClipboard, copyToClipboard, createEnhancedStorageAccount, createEnhancedStorageCluster, createEnhancedStorageWallet, createGillTransactionSigner, createKitTransactionSigner, createTransactionSigner, formatAddress, formatBigIntBalance, formatBigIntUsd, formatLamportsToSolSafe, formatNumber, formatSOL, formatTokenAmount, formatTokenBalanceSafe, getAddressUrl, getBlockUrl, getChainIdForWalletStandard, getClusterChainId, getClusterExplorerUrl, getClusterName, getClusterRpcUrl, getClusterType, getDefaultConfig, getDefaultMobileConfig, getDefaultRpcUrl, getNetworkDisplayName, getPolyfillStatus, getTokenUrl, getTransactionUrl, getWalletsRegistry, installPolyfills, isClipboardAvailable, isCryptoAvailable, isDevnet, isDevnetCluster, isLocalCluster, isLocalnet, isMainnet, isMainnetCluster, isPolyfillInstalled, isTestnet, isTestnetCluster, isTransactionSignerError, normalizeNetwork, parseConfigOptions, ready, toClusterId, truncate, validateConfigOptions, withErrorBoundary } from './chunk-QOIQBWMP.mjs';
4
+ export { isFailure, isSuccess, tryCatch, tryCatchSync } from './chunk-HO6QNKFM.mjs';
5
+ export { createMockWalletConnectTransport, createWalletConnectTransport, createWalletConnectWallet, isWalletConnectAvailable, registerWalletConnectWallet } from './chunk-7XHVZW2L.mjs';
6
+ export { ConfigurationError, ConnectionError, ConnectorError, Errors, LAMPORTS_PER_SOL, NetworkError, TransactionError, ValidationError, base58ToSignatureBytes, createKitSignersFromWallet, createMessageSignerFromWallet, createSolanaClient, createTransactionSendingSignerFromWallet, detectMessageModification, freezeSigner, getExplorerLink, getPublicSolanaRpcUrl, getUserFriendlyMessage, isConfigurationError, isConnectionError, isConnectorError, isNetworkError, isTransactionError, isValidationError, lamportsToSol, prepareTransaction, signatureBytesToBase58, solToLamports, toConnectorError, updateSignatureDictionary } from './chunk-DKCZA2QI.mjs';
5
7
  //# sourceMappingURL=index.mjs.map
6
8
  //# sourceMappingURL=index.mjs.map
package/dist/react.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as ConnectorConfig, M as MobileWalletAdapterConfig, h as ClusterType, A as AccountInfo, T as ClipboardResult, s as SolanaClient } from './standard-shim-CT49DM5l.mjs';
2
- export { b as ConnectorErrorBoundary, C as ConnectorProvider, c as ConnectorSnapshot, e as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, W as WalletInfo, g as WalletStandardAccount, f as WalletStandardWallet, u as useConnector, a as useConnectorClient, w as withErrorBoundary } from './standard-shim-CT49DM5l.mjs';
1
+ import { e as ConnectorConfig, M as MobileWalletAdapterConfig, j as ClusterType, A as AccountInfo, a5 as ClipboardResult, t as SolanaClient } from './standard-shim-BTUm7cur.mjs';
2
+ export { c as ConnectorErrorBoundary, C as ConnectorProvider, d as ConnectorSnapshot, f as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, S as SimplifiedWalletConnectConfig, W as WalletInfo, i as WalletStandardAccount, h as WalletStandardWallet, g as getDefaultConfig, b as getDefaultMobileConfig, u as useConnector, a as useConnectorClient, w as withErrorBoundary } from './standard-shim-BTUm7cur.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode, ComponentType, PropsWithChildren } from 'react';
5
5
  import { SolanaCluster, SolanaClusterId } from '@wallet-ui/core';
@@ -26,12 +26,80 @@ interface AppProviderProps {
26
26
  props?: Record<string, unknown>;
27
27
  }>;
28
28
  }
29
- declare function AppProvider({ children, connectorConfig, mobile, providers }: AppProviderProps): react_jsx_runtime.JSX.Element;
29
+ /**
30
+ * Main application provider for ConnectorKit
31
+ *
32
+ * Automatically sets up:
33
+ * - Wallet connection management
34
+ * - WalletConnect URI state (when enabled)
35
+ * - Mobile Wallet Adapter (when configured)
36
+ * - Error boundaries (when configured)
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * import { AppProvider, getDefaultConfig } from '@solana/connector/react';
41
+ *
42
+ * const config = getDefaultConfig({
43
+ * appName: 'My App',
44
+ * walletConnect: true, // Auto-detects project ID from env
45
+ * });
46
+ *
47
+ * export function Providers({ children }) {
48
+ * return (
49
+ * <AppProvider connectorConfig={config}>
50
+ * {children}
51
+ * </AppProvider>
52
+ * );
53
+ * }
54
+ * ```
55
+ */
56
+ declare function AppProvider(props: AppProviderProps): react_jsx_runtime.JSX.Element;
30
57
  /** @deprecated Use `AppProvider` instead */
31
58
  declare const UnifiedProvider: typeof AppProvider;
32
59
  /** @deprecated Use `AppProviderProps` instead */
33
60
  type UnifiedProviderProps = AppProviderProps;
34
61
 
62
+ /**
63
+ * WalletConnect URI context value
64
+ * Used to share the WalletConnect pairing URI between components
65
+ */
66
+ interface WalletConnectContextValue {
67
+ /** The current WalletConnect URI for QR code display */
68
+ uri: string | null;
69
+ /** Set the URI (called internally when display_uri event fires) */
70
+ setUri: (uri: string | null) => void;
71
+ /** Clear the URI (called when session is established or disconnected) */
72
+ clearUri: () => void;
73
+ }
74
+ /**
75
+ * Provider component for WalletConnect URI state
76
+ *
77
+ * This is automatically wrapped by AppProvider when WalletConnect is enabled.
78
+ * You typically don't need to use this directly.
79
+ */
80
+ declare function WalletConnectProvider({ children }: {
81
+ children: ReactNode;
82
+ }): react_jsx_runtime.JSX.Element;
83
+ /**
84
+ * Hook to access the WalletConnect URI for QR code display
85
+ *
86
+ * @example
87
+ * ```tsx
88
+ * import { useWalletConnectUri } from '@solana/connector/react';
89
+ *
90
+ * function WalletModal() {
91
+ * const { uri, clearUri } = useWalletConnectUri();
92
+ *
93
+ * return uri ? (
94
+ * <QRCodeSVG value={uri} />
95
+ * ) : (
96
+ * <Spinner />
97
+ * );
98
+ * }
99
+ * ```
100
+ */
101
+ declare function useWalletConnectUri(): WalletConnectContextValue;
102
+
35
103
  /**
36
104
  * @solana/connector - useCluster hook
37
105
  *
@@ -1400,4 +1468,4 @@ declare namespace SkeletonShine {
1400
1468
  var displayName: string;
1401
1469
  }
1402
1470
 
1403
- export { AccountElement, type AccountElementProps, type AccountElementRenderProps, AccountInfo, AppProvider, type AppProviderProps, BalanceElement, type BalanceElementProps, type BalanceElementRenderProps, ClusterElement, type ClusterElementProps, type ClusterElementRenderProps, ClusterType, ConnectorConfig, DisconnectElement, type DisconnectElementProps, MobileWalletAdapterConfig, SkeletonShine, type Token, type TokenBalance, TokenListElement, type TokenListElementProps, type TokenListElementRenderProps, TransactionHistoryElement, type TransactionHistoryElementProps, type TransactionHistoryElementRenderProps, type TransactionInfo, type TransactionPrepareOptions, type TransactionsQueryKeyOptions, UnifiedProvider, type UnifiedProviderProps, type UseAccountReturn, type UseBalanceOptions, type UseBalanceReturn, type UseClusterReturn, type UseGillSolanaClientReturn, type UseGillTransactionSignerReturn, type UseKitTransactionSignerReturn, type UseSolanaClientReturn, type UseTokensOptions, type UseTokensReturn, type UseTransactionPreparerReturn, type UseTransactionSignerReturn, type UseTransactionsOptions, type UseTransactionsReturn, type UseWalletInfoReturn, type WalletDisplayInfo, WalletListElement, type WalletListElementProps, type WalletListElementRenderProps, type WalletListElementWalletProps, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo };
1471
+ export { AccountElement, type AccountElementProps, type AccountElementRenderProps, AccountInfo, AppProvider, type AppProviderProps, BalanceElement, type BalanceElementProps, type BalanceElementRenderProps, ClusterElement, type ClusterElementProps, type ClusterElementRenderProps, ClusterType, ConnectorConfig, DisconnectElement, type DisconnectElementProps, MobileWalletAdapterConfig, SkeletonShine, type Token, type TokenBalance, TokenListElement, type TokenListElementProps, type TokenListElementRenderProps, TransactionHistoryElement, type TransactionHistoryElementProps, type TransactionHistoryElementRenderProps, type TransactionInfo, type TransactionPrepareOptions, type TransactionsQueryKeyOptions, UnifiedProvider, type UnifiedProviderProps, type UseAccountReturn, type UseBalanceOptions, type UseBalanceReturn, type UseClusterReturn, type UseGillSolanaClientReturn, type UseGillTransactionSignerReturn, type UseKitTransactionSignerReturn, type UseSolanaClientReturn, type UseTokensOptions, type UseTokensReturn, type UseTransactionPreparerReturn, type UseTransactionSignerReturn, type UseTransactionsOptions, type UseTransactionsReturn, type UseWalletInfoReturn, type WalletConnectContextValue, WalletConnectProvider, type WalletDisplayInfo, WalletListElement, type WalletListElementProps, type WalletListElementRenderProps, type WalletListElementWalletProps, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletConnectUri, useWalletInfo };
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as ConnectorConfig, M as MobileWalletAdapterConfig, h as ClusterType, A as AccountInfo, T as ClipboardResult, s as SolanaClient } from './standard-shim-D9guL5fz.js';
2
- export { b as ConnectorErrorBoundary, C as ConnectorProvider, c as ConnectorSnapshot, e as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, W as WalletInfo, g as WalletStandardAccount, f as WalletStandardWallet, u as useConnector, a as useConnectorClient, w as withErrorBoundary } from './standard-shim-D9guL5fz.js';
1
+ import { e as ConnectorConfig, M as MobileWalletAdapterConfig, j as ClusterType, A as AccountInfo, a5 as ClipboardResult, t as SolanaClient } from './standard-shim-LsQ97i9T.js';
2
+ export { c as ConnectorErrorBoundary, C as ConnectorProvider, d as ConnectorSnapshot, f as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, S as SimplifiedWalletConnectConfig, W as WalletInfo, i as WalletStandardAccount, h as WalletStandardWallet, g as getDefaultConfig, b as getDefaultMobileConfig, u as useConnector, a as useConnectorClient, w as withErrorBoundary } from './standard-shim-LsQ97i9T.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode, ComponentType, PropsWithChildren } from 'react';
5
5
  import { SolanaCluster, SolanaClusterId } from '@wallet-ui/core';
@@ -26,12 +26,80 @@ interface AppProviderProps {
26
26
  props?: Record<string, unknown>;
27
27
  }>;
28
28
  }
29
- declare function AppProvider({ children, connectorConfig, mobile, providers }: AppProviderProps): react_jsx_runtime.JSX.Element;
29
+ /**
30
+ * Main application provider for ConnectorKit
31
+ *
32
+ * Automatically sets up:
33
+ * - Wallet connection management
34
+ * - WalletConnect URI state (when enabled)
35
+ * - Mobile Wallet Adapter (when configured)
36
+ * - Error boundaries (when configured)
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * import { AppProvider, getDefaultConfig } from '@solana/connector/react';
41
+ *
42
+ * const config = getDefaultConfig({
43
+ * appName: 'My App',
44
+ * walletConnect: true, // Auto-detects project ID from env
45
+ * });
46
+ *
47
+ * export function Providers({ children }) {
48
+ * return (
49
+ * <AppProvider connectorConfig={config}>
50
+ * {children}
51
+ * </AppProvider>
52
+ * );
53
+ * }
54
+ * ```
55
+ */
56
+ declare function AppProvider(props: AppProviderProps): react_jsx_runtime.JSX.Element;
30
57
  /** @deprecated Use `AppProvider` instead */
31
58
  declare const UnifiedProvider: typeof AppProvider;
32
59
  /** @deprecated Use `AppProviderProps` instead */
33
60
  type UnifiedProviderProps = AppProviderProps;
34
61
 
62
+ /**
63
+ * WalletConnect URI context value
64
+ * Used to share the WalletConnect pairing URI between components
65
+ */
66
+ interface WalletConnectContextValue {
67
+ /** The current WalletConnect URI for QR code display */
68
+ uri: string | null;
69
+ /** Set the URI (called internally when display_uri event fires) */
70
+ setUri: (uri: string | null) => void;
71
+ /** Clear the URI (called when session is established or disconnected) */
72
+ clearUri: () => void;
73
+ }
74
+ /**
75
+ * Provider component for WalletConnect URI state
76
+ *
77
+ * This is automatically wrapped by AppProvider when WalletConnect is enabled.
78
+ * You typically don't need to use this directly.
79
+ */
80
+ declare function WalletConnectProvider({ children }: {
81
+ children: ReactNode;
82
+ }): react_jsx_runtime.JSX.Element;
83
+ /**
84
+ * Hook to access the WalletConnect URI for QR code display
85
+ *
86
+ * @example
87
+ * ```tsx
88
+ * import { useWalletConnectUri } from '@solana/connector/react';
89
+ *
90
+ * function WalletModal() {
91
+ * const { uri, clearUri } = useWalletConnectUri();
92
+ *
93
+ * return uri ? (
94
+ * <QRCodeSVG value={uri} />
95
+ * ) : (
96
+ * <Spinner />
97
+ * );
98
+ * }
99
+ * ```
100
+ */
101
+ declare function useWalletConnectUri(): WalletConnectContextValue;
102
+
35
103
  /**
36
104
  * @solana/connector - useCluster hook
37
105
  *
@@ -1400,4 +1468,4 @@ declare namespace SkeletonShine {
1400
1468
  var displayName: string;
1401
1469
  }
1402
1470
 
1403
- export { AccountElement, type AccountElementProps, type AccountElementRenderProps, AccountInfo, AppProvider, type AppProviderProps, BalanceElement, type BalanceElementProps, type BalanceElementRenderProps, ClusterElement, type ClusterElementProps, type ClusterElementRenderProps, ClusterType, ConnectorConfig, DisconnectElement, type DisconnectElementProps, MobileWalletAdapterConfig, SkeletonShine, type Token, type TokenBalance, TokenListElement, type TokenListElementProps, type TokenListElementRenderProps, TransactionHistoryElement, type TransactionHistoryElementProps, type TransactionHistoryElementRenderProps, type TransactionInfo, type TransactionPrepareOptions, type TransactionsQueryKeyOptions, UnifiedProvider, type UnifiedProviderProps, type UseAccountReturn, type UseBalanceOptions, type UseBalanceReturn, type UseClusterReturn, type UseGillSolanaClientReturn, type UseGillTransactionSignerReturn, type UseKitTransactionSignerReturn, type UseSolanaClientReturn, type UseTokensOptions, type UseTokensReturn, type UseTransactionPreparerReturn, type UseTransactionSignerReturn, type UseTransactionsOptions, type UseTransactionsReturn, type UseWalletInfoReturn, type WalletDisplayInfo, WalletListElement, type WalletListElementProps, type WalletListElementRenderProps, type WalletListElementWalletProps, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo };
1471
+ export { AccountElement, type AccountElementProps, type AccountElementRenderProps, AccountInfo, AppProvider, type AppProviderProps, BalanceElement, type BalanceElementProps, type BalanceElementRenderProps, ClusterElement, type ClusterElementProps, type ClusterElementRenderProps, ClusterType, ConnectorConfig, DisconnectElement, type DisconnectElementProps, MobileWalletAdapterConfig, SkeletonShine, type Token, type TokenBalance, TokenListElement, type TokenListElementProps, type TokenListElementRenderProps, TransactionHistoryElement, type TransactionHistoryElementProps, type TransactionHistoryElementRenderProps, type TransactionInfo, type TransactionPrepareOptions, type TransactionsQueryKeyOptions, UnifiedProvider, type UnifiedProviderProps, type UseAccountReturn, type UseBalanceOptions, type UseBalanceReturn, type UseClusterReturn, type UseGillSolanaClientReturn, type UseGillTransactionSignerReturn, type UseKitTransactionSignerReturn, type UseSolanaClientReturn, type UseTokensOptions, type UseTokensReturn, type UseTransactionPreparerReturn, type UseTransactionSignerReturn, type UseTransactionsOptions, type UseTransactionsReturn, type UseWalletInfoReturn, type WalletConnectContextValue, WalletConnectProvider, type WalletDisplayInfo, WalletListElement, type WalletListElementProps, type WalletListElementRenderProps, type WalletListElementWalletProps, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletConnectUri, useWalletInfo };
package/dist/react.js CHANGED
@@ -1,145 +1,161 @@
1
1
  'use strict';
2
2
 
3
- var chunkK3BNIGPX_js = require('./chunk-K3BNIGPX.js');
4
- var chunkFTXIXM43_js = require('./chunk-FTXIXM43.js');
3
+ var chunkATYK5OKR_js = require('./chunk-ATYK5OKR.js');
4
+ var chunk6AJJJG5B_js = require('./chunk-6AJJJG5B.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AccountElement", {
9
9
  enumerable: true,
10
- get: function () { return chunkK3BNIGPX_js.AccountElement; }
10
+ get: function () { return chunkATYK5OKR_js.AccountElement; }
11
11
  });
12
12
  Object.defineProperty(exports, "AppProvider", {
13
13
  enumerable: true,
14
- get: function () { return chunkK3BNIGPX_js.AppProvider; }
14
+ get: function () { return chunkATYK5OKR_js.AppProvider; }
15
15
  });
16
16
  Object.defineProperty(exports, "BalanceElement", {
17
17
  enumerable: true,
18
- get: function () { return chunkK3BNIGPX_js.BalanceElement; }
18
+ get: function () { return chunkATYK5OKR_js.BalanceElement; }
19
19
  });
20
20
  Object.defineProperty(exports, "ClusterElement", {
21
21
  enumerable: true,
22
- get: function () { return chunkK3BNIGPX_js.ClusterElement; }
22
+ get: function () { return chunkATYK5OKR_js.ClusterElement; }
23
23
  });
24
24
  Object.defineProperty(exports, "ConnectorProvider", {
25
25
  enumerable: true,
26
- get: function () { return chunkK3BNIGPX_js.ConnectorProvider; }
26
+ get: function () { return chunkATYK5OKR_js.ConnectorProvider; }
27
27
  });
28
28
  Object.defineProperty(exports, "DisconnectElement", {
29
29
  enumerable: true,
30
- get: function () { return chunkK3BNIGPX_js.DisconnectElement; }
30
+ get: function () { return chunkATYK5OKR_js.DisconnectElement; }
31
31
  });
32
32
  Object.defineProperty(exports, "SkeletonShine", {
33
33
  enumerable: true,
34
- get: function () { return chunkK3BNIGPX_js.SkeletonShine; }
34
+ get: function () { return chunkATYK5OKR_js.SkeletonShine; }
35
35
  });
36
36
  Object.defineProperty(exports, "TokenListElement", {
37
37
  enumerable: true,
38
- get: function () { return chunkK3BNIGPX_js.TokenListElement; }
38
+ get: function () { return chunkATYK5OKR_js.TokenListElement; }
39
39
  });
40
40
  Object.defineProperty(exports, "TransactionHistoryElement", {
41
41
  enumerable: true,
42
- get: function () { return chunkK3BNIGPX_js.TransactionHistoryElement; }
42
+ get: function () { return chunkATYK5OKR_js.TransactionHistoryElement; }
43
43
  });
44
44
  Object.defineProperty(exports, "UnifiedProvider", {
45
45
  enumerable: true,
46
- get: function () { return chunkK3BNIGPX_js.UnifiedProvider; }
46
+ get: function () { return chunkATYK5OKR_js.UnifiedProvider; }
47
+ });
48
+ Object.defineProperty(exports, "WalletConnectProvider", {
49
+ enumerable: true,
50
+ get: function () { return chunkATYK5OKR_js.WalletConnectProvider; }
47
51
  });
48
52
  Object.defineProperty(exports, "WalletListElement", {
49
53
  enumerable: true,
50
- get: function () { return chunkK3BNIGPX_js.WalletListElement; }
54
+ get: function () { return chunkATYK5OKR_js.WalletListElement; }
51
55
  });
52
56
  Object.defineProperty(exports, "clearSharedQueryCache", {
53
57
  enumerable: true,
54
- get: function () { return chunkK3BNIGPX_js.clearSharedQueryCache; }
58
+ get: function () { return chunkATYK5OKR_js.clearSharedQueryCache; }
55
59
  });
56
60
  Object.defineProperty(exports, "clearTokenCaches", {
57
61
  enumerable: true,
58
- get: function () { return chunkK3BNIGPX_js.clearTokenCaches; }
62
+ get: function () { return chunkATYK5OKR_js.clearTokenCaches; }
59
63
  });
60
64
  Object.defineProperty(exports, "getBalanceQueryKey", {
61
65
  enumerable: true,
62
- get: function () { return chunkK3BNIGPX_js.getBalanceQueryKey; }
66
+ get: function () { return chunkATYK5OKR_js.getBalanceQueryKey; }
63
67
  });
64
68
  Object.defineProperty(exports, "getTokensQueryKey", {
65
69
  enumerable: true,
66
- get: function () { return chunkK3BNIGPX_js.getTokensQueryKey; }
70
+ get: function () { return chunkATYK5OKR_js.getTokensQueryKey; }
67
71
  });
68
72
  Object.defineProperty(exports, "getTransactionsQueryKey", {
69
73
  enumerable: true,
70
- get: function () { return chunkK3BNIGPX_js.getTransactionsQueryKey; }
74
+ get: function () { return chunkATYK5OKR_js.getTransactionsQueryKey; }
71
75
  });
72
76
  Object.defineProperty(exports, "getWalletAssetsQueryKey", {
73
77
  enumerable: true,
74
- get: function () { return chunkK3BNIGPX_js.getWalletAssetsQueryKey; }
78
+ get: function () { return chunkATYK5OKR_js.getWalletAssetsQueryKey; }
75
79
  });
76
80
  Object.defineProperty(exports, "invalidateSharedQuery", {
77
81
  enumerable: true,
78
- get: function () { return chunkK3BNIGPX_js.invalidateSharedQuery; }
82
+ get: function () { return chunkATYK5OKR_js.invalidateSharedQuery; }
79
83
  });
80
84
  Object.defineProperty(exports, "useAccount", {
81
85
  enumerable: true,
82
- get: function () { return chunkK3BNIGPX_js.useAccount; }
86
+ get: function () { return chunkATYK5OKR_js.useAccount; }
83
87
  });
84
88
  Object.defineProperty(exports, "useBalance", {
85
89
  enumerable: true,
86
- get: function () { return chunkK3BNIGPX_js.useBalance; }
90
+ get: function () { return chunkATYK5OKR_js.useBalance; }
87
91
  });
88
92
  Object.defineProperty(exports, "useCluster", {
89
93
  enumerable: true,
90
- get: function () { return chunkK3BNIGPX_js.useCluster; }
94
+ get: function () { return chunkATYK5OKR_js.useCluster; }
91
95
  });
92
96
  Object.defineProperty(exports, "useConnector", {
93
97
  enumerable: true,
94
- get: function () { return chunkK3BNIGPX_js.useConnector; }
98
+ get: function () { return chunkATYK5OKR_js.useConnector; }
95
99
  });
96
100
  Object.defineProperty(exports, "useConnectorClient", {
97
101
  enumerable: true,
98
- get: function () { return chunkK3BNIGPX_js.useConnectorClient; }
102
+ get: function () { return chunkATYK5OKR_js.useConnectorClient; }
99
103
  });
100
104
  Object.defineProperty(exports, "useGillSolanaClient", {
101
105
  enumerable: true,
102
- get: function () { return chunkK3BNIGPX_js.useGillSolanaClient; }
106
+ get: function () { return chunkATYK5OKR_js.useGillSolanaClient; }
103
107
  });
104
108
  Object.defineProperty(exports, "useGillTransactionSigner", {
105
109
  enumerable: true,
106
- get: function () { return chunkK3BNIGPX_js.useGillTransactionSigner; }
110
+ get: function () { return chunkATYK5OKR_js.useGillTransactionSigner; }
107
111
  });
108
112
  Object.defineProperty(exports, "useKitTransactionSigner", {
109
113
  enumerable: true,
110
- get: function () { return chunkK3BNIGPX_js.useKitTransactionSigner; }
114
+ get: function () { return chunkATYK5OKR_js.useKitTransactionSigner; }
111
115
  });
112
116
  Object.defineProperty(exports, "useSolanaClient", {
113
117
  enumerable: true,
114
- get: function () { return chunkK3BNIGPX_js.useSolanaClient; }
118
+ get: function () { return chunkATYK5OKR_js.useSolanaClient; }
115
119
  });
116
120
  Object.defineProperty(exports, "useTokens", {
117
121
  enumerable: true,
118
- get: function () { return chunkK3BNIGPX_js.useTokens; }
122
+ get: function () { return chunkATYK5OKR_js.useTokens; }
119
123
  });
120
124
  Object.defineProperty(exports, "useTransactionPreparer", {
121
125
  enumerable: true,
122
- get: function () { return chunkK3BNIGPX_js.useTransactionPreparer; }
126
+ get: function () { return chunkATYK5OKR_js.useTransactionPreparer; }
123
127
  });
124
128
  Object.defineProperty(exports, "useTransactionSigner", {
125
129
  enumerable: true,
126
- get: function () { return chunkK3BNIGPX_js.useTransactionSigner; }
130
+ get: function () { return chunkATYK5OKR_js.useTransactionSigner; }
127
131
  });
128
132
  Object.defineProperty(exports, "useTransactions", {
129
133
  enumerable: true,
130
- get: function () { return chunkK3BNIGPX_js.useTransactions; }
134
+ get: function () { return chunkATYK5OKR_js.useTransactions; }
135
+ });
136
+ Object.defineProperty(exports, "useWalletConnectUri", {
137
+ enumerable: true,
138
+ get: function () { return chunkATYK5OKR_js.useWalletConnectUri; }
131
139
  });
132
140
  Object.defineProperty(exports, "useWalletInfo", {
133
141
  enumerable: true,
134
- get: function () { return chunkK3BNIGPX_js.useWalletInfo; }
142
+ get: function () { return chunkATYK5OKR_js.useWalletInfo; }
135
143
  });
136
144
  Object.defineProperty(exports, "ConnectorErrorBoundary", {
137
145
  enumerable: true,
138
- get: function () { return chunkFTXIXM43_js.ConnectorErrorBoundary; }
146
+ get: function () { return chunk6AJJJG5B_js.ConnectorErrorBoundary; }
147
+ });
148
+ Object.defineProperty(exports, "getDefaultConfig", {
149
+ enumerable: true,
150
+ get: function () { return chunk6AJJJG5B_js.getDefaultConfig; }
151
+ });
152
+ Object.defineProperty(exports, "getDefaultMobileConfig", {
153
+ enumerable: true,
154
+ get: function () { return chunk6AJJJG5B_js.getDefaultMobileConfig; }
139
155
  });
140
156
  Object.defineProperty(exports, "withErrorBoundary", {
141
157
  enumerable: true,
142
- get: function () { return chunkFTXIXM43_js.withErrorBoundary; }
158
+ get: function () { return chunk6AJJJG5B_js.withErrorBoundary; }
143
159
  });
144
160
  //# sourceMappingURL=react.js.map
145
161
  //# sourceMappingURL=react.js.map
package/dist/react.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnector, useConnectorClient, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo } from './chunk-TTOKQAPX.mjs';
2
- export { ConnectorErrorBoundary, withErrorBoundary } from './chunk-6F6M6L7R.mjs';
1
+ export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletConnectProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnector, useConnectorClient, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletConnectUri, useWalletInfo } from './chunk-WGZYKDXF.mjs';
2
+ export { ConnectorErrorBoundary, getDefaultConfig, getDefaultMobileConfig, withErrorBoundary } from './chunk-QOIQBWMP.mjs';
3
3
  //# sourceMappingURL=react.mjs.map
4
4
  //# sourceMappingURL=react.mjs.map