@solana/connector 0.2.2 → 0.2.3

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.mjs CHANGED
@@ -1,6 +1,6 @@
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-3623Z2QL.mjs';
2
- export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorErrorBoundary, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletConnectProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnectWallet, useConnector, useConnectorClient, useDisconnectWallet, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWallet, useWalletConnectUri, useWalletConnectors, useWalletInfo, withErrorBoundary } from './chunk-DFHJYZKZ.mjs';
3
- export { ClipboardErrorType, ConnectorClient, EnhancedStorage, EnhancedStorageAdapter, INITIAL_WALLET_STATUS, PUBLIC_RPC_ENDPOINTS, TransactionSignerError, WALLET_STATE_VERSION, clearWalletState, copyAddressToClipboard, copySignatureToClipboard, copyToClipboard, createConnectorId, createEnhancedStorageAccount, createEnhancedStorageCluster, createEnhancedStorageWallet, createEnhancedStorageWalletState, 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, getWalletNameFromConnectorId, getWalletsRegistry, installPolyfills, isClipboardAvailable, isConnected, isConnecting, isCryptoAvailable, isDevnet, isDevnetCluster, isDisconnected, isLocalCluster, isLocalnet, isMainnet, isMainnetCluster, isPolyfillInstalled, isStatusError, isTestnet, isTestnetCluster, isTransactionSignerError, isWalletConnectorId, isWalletStatusError, normalizeNetwork, parseConfigOptions, ready, saveWalletState, toClusterId, toLegacyWalletState, truncate, validateConfigOptions } from './chunk-SQ2JEA2M.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-UOML5ULB.mjs';
2
+ export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorErrorBoundary, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletConnectProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnectWallet, useConnector, useConnectorClient, useDisconnectWallet, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWallet, useWalletConnectUri, useWalletConnectors, useWalletInfo, withErrorBoundary } from './chunk-WPDCSFX2.mjs';
3
+ export { ClipboardErrorType, ConnectorClient, EnhancedStorage, EnhancedStorageAdapter, INITIAL_WALLET_STATUS, PUBLIC_RPC_ENDPOINTS, TransactionSignerError, WALLET_STATE_VERSION, clearWalletState, copyAddressToClipboard, copySignatureToClipboard, copyToClipboard, createConnectorId, createEnhancedStorageAccount, createEnhancedStorageCluster, createEnhancedStorageWallet, createEnhancedStorageWalletState, 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, getWalletNameFromConnectorId, getWalletsRegistry, installPolyfills, isClipboardAvailable, isConnected, isConnecting, isCryptoAvailable, isDevnet, isDevnetCluster, isDisconnected, isLocalCluster, isLocalnet, isMainnet, isMainnetCluster, isPolyfillInstalled, isStatusError, isTestnet, isTestnetCluster, isTransactionSignerError, isWalletConnectorId, isWalletStatusError, normalizeNetwork, parseConfigOptions, ready, saveWalletState, toClusterId, toLegacyWalletState, truncate, validateConfigOptions } from './chunk-DFKGCW7K.mjs';
4
4
  export { isFailure, isSuccess, tryCatch, tryCatchSync } from './chunk-HO6QNKFM.mjs';
5
5
  export { createMockWalletConnectTransport, createWalletConnectTransport, createWalletConnectWallet, isWalletConnectAvailable, registerWalletConnectWallet } from './chunk-A7WQ3K75.mjs';
6
6
  export { ConfigurationError, ConnectionError, ConnectorError, Errors, LAMPORTS_PER_SOL, NetworkError, TransactionError, ValidationError, WalletErrorType, base58ToSignatureBytes, createKitSignersFromWallet, createMessageSignerFromWallet, createSolanaClient, createTransactionSendingSignerFromWallet, createWalletError, detectMessageModification, freezeSigner, getExplorerLink, getPublicSolanaRpcUrl, getUserFriendlyMessage, isConfigurationError, isConnectionError, isConnectorError, isNetworkError, isTransactionError, isValidationError, isWalletError, lamportsToSol, prepareTransaction, signatureBytesToBase58, solToLamports, toConnectorError, updateSignatureDictionary } from './chunk-SJCQ3KZE.mjs';
package/dist/react.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as ConnectorConfig, M as MobileWalletAdapterConfig, Q as WalletError, l as WalletStatus, i as WalletConnectorId, m as SessionAccount, k as WalletSession, j as WalletConnectorMetadata, n as ConnectOptions, t as ClusterType, A as AccountInfo, at as ClipboardResult, Y as SolanaClient } from './standard-shim-Cz4UNS7t.mjs';
2
- export { C as ConnectorProvider, c as ConnectorSnapshot, e as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, S as SimplifiedWalletConnectConfig, W as WalletInfo, h as WalletStandardAccount, f as WalletStandardWallet, o as createConnectorId, g as getDefaultConfig, b as getDefaultMobileConfig, q as isConnected, r as isConnecting, s as isDisconnected, p as isWalletConnectorId, u as useConnector, a as useConnectorClient } from './standard-shim-Cz4UNS7t.mjs';
1
+ import { d as ConnectorConfig, M as MobileWalletAdapterConfig, T as WalletError, m as WalletStatus, j as WalletConnectorId, n as SessionAccount, l as WalletSession, k as WalletConnectorMetadata, o as ConnectOptions, v as ClusterType, A as AccountInfo, au as ClipboardResult, Z as SolanaClient } from './standard-shim-n5phZB1d.mjs';
2
+ export { C as ConnectorProvider, c as ConnectorSnapshot, e as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, S as SimplifiedWalletConnectConfig, f as WalletDisplayConfig, W as WalletInfo, i as WalletStandardAccount, h as WalletStandardWallet, p as createConnectorId, g as getDefaultConfig, b as getDefaultMobileConfig, r as isConnected, s as isConnecting, t as isDisconnected, q as isWalletConnectorId, u as useConnector, a as useConnectorClient } from './standard-shim-n5phZB1d.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import React, { ReactNode, ComponentType, PropsWithChildren, Component, ErrorInfo } from 'react';
5
5
  export { Wallet, WalletAccount } from '@wallet-standard/base';
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as ConnectorConfig, M as MobileWalletAdapterConfig, Q as WalletError, l as WalletStatus, i as WalletConnectorId, m as SessionAccount, k as WalletSession, j as WalletConnectorMetadata, n as ConnectOptions, t as ClusterType, A as AccountInfo, at as ClipboardResult, Y as SolanaClient } from './standard-shim-Cg6fmjK_.js';
2
- export { C as ConnectorProvider, c as ConnectorSnapshot, e as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, S as SimplifiedWalletConnectConfig, W as WalletInfo, h as WalletStandardAccount, f as WalletStandardWallet, o as createConnectorId, g as getDefaultConfig, b as getDefaultMobileConfig, q as isConnected, r as isConnecting, s as isDisconnected, p as isWalletConnectorId, u as useConnector, a as useConnectorClient } from './standard-shim-Cg6fmjK_.js';
1
+ import { d as ConnectorConfig, M as MobileWalletAdapterConfig, T as WalletError, m as WalletStatus, j as WalletConnectorId, n as SessionAccount, l as WalletSession, k as WalletConnectorMetadata, o as ConnectOptions, v as ClusterType, A as AccountInfo, au as ClipboardResult, Z as SolanaClient } from './standard-shim-BB0Lkg_C.js';
2
+ export { C as ConnectorProvider, c as ConnectorSnapshot, e as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, S as SimplifiedWalletConnectConfig, f as WalletDisplayConfig, W as WalletInfo, i as WalletStandardAccount, h as WalletStandardWallet, p as createConnectorId, g as getDefaultConfig, b as getDefaultMobileConfig, r as isConnected, s as isConnecting, t as isDisconnected, q as isWalletConnectorId, u as useConnector, a as useConnectorClient } from './standard-shim-BB0Lkg_C.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import React, { ReactNode, ComponentType, PropsWithChildren, Component, ErrorInfo } from 'react';
5
5
  export { Wallet, WalletAccount } from '@wallet-standard/base';
package/dist/react.js CHANGED
@@ -1,197 +1,197 @@
1
1
  'use strict';
2
2
 
3
- var chunkVVLY6QPI_js = require('./chunk-VVLY6QPI.js');
4
- var chunkTRSJSU33_js = require('./chunk-TRSJSU33.js');
3
+ var chunkB6YBZB6H_js = require('./chunk-B6YBZB6H.js');
4
+ var chunkULEPN4NL_js = require('./chunk-ULEPN4NL.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AccountElement", {
9
9
  enumerable: true,
10
- get: function () { return chunkVVLY6QPI_js.AccountElement; }
10
+ get: function () { return chunkB6YBZB6H_js.AccountElement; }
11
11
  });
12
12
  Object.defineProperty(exports, "AppProvider", {
13
13
  enumerable: true,
14
- get: function () { return chunkVVLY6QPI_js.AppProvider; }
14
+ get: function () { return chunkB6YBZB6H_js.AppProvider; }
15
15
  });
16
16
  Object.defineProperty(exports, "BalanceElement", {
17
17
  enumerable: true,
18
- get: function () { return chunkVVLY6QPI_js.BalanceElement; }
18
+ get: function () { return chunkB6YBZB6H_js.BalanceElement; }
19
19
  });
20
20
  Object.defineProperty(exports, "ClusterElement", {
21
21
  enumerable: true,
22
- get: function () { return chunkVVLY6QPI_js.ClusterElement; }
22
+ get: function () { return chunkB6YBZB6H_js.ClusterElement; }
23
23
  });
24
24
  Object.defineProperty(exports, "ConnectorErrorBoundary", {
25
25
  enumerable: true,
26
- get: function () { return chunkVVLY6QPI_js.ConnectorErrorBoundary; }
26
+ get: function () { return chunkB6YBZB6H_js.ConnectorErrorBoundary; }
27
27
  });
28
28
  Object.defineProperty(exports, "ConnectorProvider", {
29
29
  enumerable: true,
30
- get: function () { return chunkVVLY6QPI_js.ConnectorProvider; }
30
+ get: function () { return chunkB6YBZB6H_js.ConnectorProvider; }
31
31
  });
32
32
  Object.defineProperty(exports, "DisconnectElement", {
33
33
  enumerable: true,
34
- get: function () { return chunkVVLY6QPI_js.DisconnectElement; }
34
+ get: function () { return chunkB6YBZB6H_js.DisconnectElement; }
35
35
  });
36
36
  Object.defineProperty(exports, "SkeletonShine", {
37
37
  enumerable: true,
38
- get: function () { return chunkVVLY6QPI_js.SkeletonShine; }
38
+ get: function () { return chunkB6YBZB6H_js.SkeletonShine; }
39
39
  });
40
40
  Object.defineProperty(exports, "TokenListElement", {
41
41
  enumerable: true,
42
- get: function () { return chunkVVLY6QPI_js.TokenListElement; }
42
+ get: function () { return chunkB6YBZB6H_js.TokenListElement; }
43
43
  });
44
44
  Object.defineProperty(exports, "TransactionHistoryElement", {
45
45
  enumerable: true,
46
- get: function () { return chunkVVLY6QPI_js.TransactionHistoryElement; }
46
+ get: function () { return chunkB6YBZB6H_js.TransactionHistoryElement; }
47
47
  });
48
48
  Object.defineProperty(exports, "UnifiedProvider", {
49
49
  enumerable: true,
50
- get: function () { return chunkVVLY6QPI_js.UnifiedProvider; }
50
+ get: function () { return chunkB6YBZB6H_js.UnifiedProvider; }
51
51
  });
52
52
  Object.defineProperty(exports, "WalletConnectProvider", {
53
53
  enumerable: true,
54
- get: function () { return chunkVVLY6QPI_js.WalletConnectProvider; }
54
+ get: function () { return chunkB6YBZB6H_js.WalletConnectProvider; }
55
55
  });
56
56
  Object.defineProperty(exports, "WalletListElement", {
57
57
  enumerable: true,
58
- get: function () { return chunkVVLY6QPI_js.WalletListElement; }
58
+ get: function () { return chunkB6YBZB6H_js.WalletListElement; }
59
59
  });
60
60
  Object.defineProperty(exports, "clearSharedQueryCache", {
61
61
  enumerable: true,
62
- get: function () { return chunkVVLY6QPI_js.clearSharedQueryCache; }
62
+ get: function () { return chunkB6YBZB6H_js.clearSharedQueryCache; }
63
63
  });
64
64
  Object.defineProperty(exports, "clearTokenCaches", {
65
65
  enumerable: true,
66
- get: function () { return chunkVVLY6QPI_js.clearTokenCaches; }
66
+ get: function () { return chunkB6YBZB6H_js.clearTokenCaches; }
67
67
  });
68
68
  Object.defineProperty(exports, "getBalanceQueryKey", {
69
69
  enumerable: true,
70
- get: function () { return chunkVVLY6QPI_js.getBalanceQueryKey; }
70
+ get: function () { return chunkB6YBZB6H_js.getBalanceQueryKey; }
71
71
  });
72
72
  Object.defineProperty(exports, "getTokensQueryKey", {
73
73
  enumerable: true,
74
- get: function () { return chunkVVLY6QPI_js.getTokensQueryKey; }
74
+ get: function () { return chunkB6YBZB6H_js.getTokensQueryKey; }
75
75
  });
76
76
  Object.defineProperty(exports, "getTransactionsQueryKey", {
77
77
  enumerable: true,
78
- get: function () { return chunkVVLY6QPI_js.getTransactionsQueryKey; }
78
+ get: function () { return chunkB6YBZB6H_js.getTransactionsQueryKey; }
79
79
  });
80
80
  Object.defineProperty(exports, "getWalletAssetsQueryKey", {
81
81
  enumerable: true,
82
- get: function () { return chunkVVLY6QPI_js.getWalletAssetsQueryKey; }
82
+ get: function () { return chunkB6YBZB6H_js.getWalletAssetsQueryKey; }
83
83
  });
84
84
  Object.defineProperty(exports, "invalidateSharedQuery", {
85
85
  enumerable: true,
86
- get: function () { return chunkVVLY6QPI_js.invalidateSharedQuery; }
86
+ get: function () { return chunkB6YBZB6H_js.invalidateSharedQuery; }
87
87
  });
88
88
  Object.defineProperty(exports, "useAccount", {
89
89
  enumerable: true,
90
- get: function () { return chunkVVLY6QPI_js.useAccount; }
90
+ get: function () { return chunkB6YBZB6H_js.useAccount; }
91
91
  });
92
92
  Object.defineProperty(exports, "useBalance", {
93
93
  enumerable: true,
94
- get: function () { return chunkVVLY6QPI_js.useBalance; }
94
+ get: function () { return chunkB6YBZB6H_js.useBalance; }
95
95
  });
96
96
  Object.defineProperty(exports, "useCluster", {
97
97
  enumerable: true,
98
- get: function () { return chunkVVLY6QPI_js.useCluster; }
98
+ get: function () { return chunkB6YBZB6H_js.useCluster; }
99
99
  });
100
100
  Object.defineProperty(exports, "useConnectWallet", {
101
101
  enumerable: true,
102
- get: function () { return chunkVVLY6QPI_js.useConnectWallet; }
102
+ get: function () { return chunkB6YBZB6H_js.useConnectWallet; }
103
103
  });
104
104
  Object.defineProperty(exports, "useConnector", {
105
105
  enumerable: true,
106
- get: function () { return chunkVVLY6QPI_js.useConnector; }
106
+ get: function () { return chunkB6YBZB6H_js.useConnector; }
107
107
  });
108
108
  Object.defineProperty(exports, "useConnectorClient", {
109
109
  enumerable: true,
110
- get: function () { return chunkVVLY6QPI_js.useConnectorClient; }
110
+ get: function () { return chunkB6YBZB6H_js.useConnectorClient; }
111
111
  });
112
112
  Object.defineProperty(exports, "useDisconnectWallet", {
113
113
  enumerable: true,
114
- get: function () { return chunkVVLY6QPI_js.useDisconnectWallet; }
114
+ get: function () { return chunkB6YBZB6H_js.useDisconnectWallet; }
115
115
  });
116
116
  Object.defineProperty(exports, "useGillSolanaClient", {
117
117
  enumerable: true,
118
- get: function () { return chunkVVLY6QPI_js.useGillSolanaClient; }
118
+ get: function () { return chunkB6YBZB6H_js.useGillSolanaClient; }
119
119
  });
120
120
  Object.defineProperty(exports, "useGillTransactionSigner", {
121
121
  enumerable: true,
122
- get: function () { return chunkVVLY6QPI_js.useGillTransactionSigner; }
122
+ get: function () { return chunkB6YBZB6H_js.useGillTransactionSigner; }
123
123
  });
124
124
  Object.defineProperty(exports, "useKitTransactionSigner", {
125
125
  enumerable: true,
126
- get: function () { return chunkVVLY6QPI_js.useKitTransactionSigner; }
126
+ get: function () { return chunkB6YBZB6H_js.useKitTransactionSigner; }
127
127
  });
128
128
  Object.defineProperty(exports, "useSolanaClient", {
129
129
  enumerable: true,
130
- get: function () { return chunkVVLY6QPI_js.useSolanaClient; }
130
+ get: function () { return chunkB6YBZB6H_js.useSolanaClient; }
131
131
  });
132
132
  Object.defineProperty(exports, "useTokens", {
133
133
  enumerable: true,
134
- get: function () { return chunkVVLY6QPI_js.useTokens; }
134
+ get: function () { return chunkB6YBZB6H_js.useTokens; }
135
135
  });
136
136
  Object.defineProperty(exports, "useTransactionPreparer", {
137
137
  enumerable: true,
138
- get: function () { return chunkVVLY6QPI_js.useTransactionPreparer; }
138
+ get: function () { return chunkB6YBZB6H_js.useTransactionPreparer; }
139
139
  });
140
140
  Object.defineProperty(exports, "useTransactionSigner", {
141
141
  enumerable: true,
142
- get: function () { return chunkVVLY6QPI_js.useTransactionSigner; }
142
+ get: function () { return chunkB6YBZB6H_js.useTransactionSigner; }
143
143
  });
144
144
  Object.defineProperty(exports, "useTransactions", {
145
145
  enumerable: true,
146
- get: function () { return chunkVVLY6QPI_js.useTransactions; }
146
+ get: function () { return chunkB6YBZB6H_js.useTransactions; }
147
147
  });
148
148
  Object.defineProperty(exports, "useWallet", {
149
149
  enumerable: true,
150
- get: function () { return chunkVVLY6QPI_js.useWallet; }
150
+ get: function () { return chunkB6YBZB6H_js.useWallet; }
151
151
  });
152
152
  Object.defineProperty(exports, "useWalletConnectUri", {
153
153
  enumerable: true,
154
- get: function () { return chunkVVLY6QPI_js.useWalletConnectUri; }
154
+ get: function () { return chunkB6YBZB6H_js.useWalletConnectUri; }
155
155
  });
156
156
  Object.defineProperty(exports, "useWalletConnectors", {
157
157
  enumerable: true,
158
- get: function () { return chunkVVLY6QPI_js.useWalletConnectors; }
158
+ get: function () { return chunkB6YBZB6H_js.useWalletConnectors; }
159
159
  });
160
160
  Object.defineProperty(exports, "useWalletInfo", {
161
161
  enumerable: true,
162
- get: function () { return chunkVVLY6QPI_js.useWalletInfo; }
162
+ get: function () { return chunkB6YBZB6H_js.useWalletInfo; }
163
163
  });
164
164
  Object.defineProperty(exports, "withErrorBoundary", {
165
165
  enumerable: true,
166
- get: function () { return chunkVVLY6QPI_js.withErrorBoundary; }
166
+ get: function () { return chunkB6YBZB6H_js.withErrorBoundary; }
167
167
  });
168
168
  Object.defineProperty(exports, "createConnectorId", {
169
169
  enumerable: true,
170
- get: function () { return chunkTRSJSU33_js.createConnectorId; }
170
+ get: function () { return chunkULEPN4NL_js.createConnectorId; }
171
171
  });
172
172
  Object.defineProperty(exports, "getDefaultConfig", {
173
173
  enumerable: true,
174
- get: function () { return chunkTRSJSU33_js.getDefaultConfig; }
174
+ get: function () { return chunkULEPN4NL_js.getDefaultConfig; }
175
175
  });
176
176
  Object.defineProperty(exports, "getDefaultMobileConfig", {
177
177
  enumerable: true,
178
- get: function () { return chunkTRSJSU33_js.getDefaultMobileConfig; }
178
+ get: function () { return chunkULEPN4NL_js.getDefaultMobileConfig; }
179
179
  });
180
180
  Object.defineProperty(exports, "isConnected", {
181
181
  enumerable: true,
182
- get: function () { return chunkTRSJSU33_js.isConnected; }
182
+ get: function () { return chunkULEPN4NL_js.isConnected; }
183
183
  });
184
184
  Object.defineProperty(exports, "isConnecting", {
185
185
  enumerable: true,
186
- get: function () { return chunkTRSJSU33_js.isConnecting; }
186
+ get: function () { return chunkULEPN4NL_js.isConnecting; }
187
187
  });
188
188
  Object.defineProperty(exports, "isDisconnected", {
189
189
  enumerable: true,
190
- get: function () { return chunkTRSJSU33_js.isDisconnected; }
190
+ get: function () { return chunkULEPN4NL_js.isDisconnected; }
191
191
  });
192
192
  Object.defineProperty(exports, "isWalletConnectorId", {
193
193
  enumerable: true,
194
- get: function () { return chunkTRSJSU33_js.isWalletConnectorId; }
194
+ get: function () { return chunkULEPN4NL_js.isWalletConnectorId; }
195
195
  });
196
196
  //# sourceMappingURL=react.js.map
197
197
  //# sourceMappingURL=react.js.map
package/dist/react.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorErrorBoundary, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletConnectProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnectWallet, useConnector, useConnectorClient, useDisconnectWallet, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWallet, useWalletConnectUri, useWalletConnectors, useWalletInfo, withErrorBoundary } from './chunk-DFHJYZKZ.mjs';
2
- export { createConnectorId, getDefaultConfig, getDefaultMobileConfig, isConnected, isConnecting, isDisconnected, isWalletConnectorId } from './chunk-SQ2JEA2M.mjs';
1
+ export { AccountElement, AppProvider, BalanceElement, ClusterElement, ConnectorErrorBoundary, ConnectorProvider, DisconnectElement, SkeletonShine, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletConnectProvider, WalletListElement, clearSharedQueryCache, clearTokenCaches, getBalanceQueryKey, getTokensQueryKey, getTransactionsQueryKey, getWalletAssetsQueryKey, invalidateSharedQuery, useAccount, useBalance, useCluster, useConnectWallet, useConnector, useConnectorClient, useDisconnectWallet, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWallet, useWalletConnectUri, useWalletConnectors, useWalletInfo, withErrorBoundary } from './chunk-WPDCSFX2.mjs';
2
+ export { createConnectorId, getDefaultConfig, getDefaultMobileConfig, isConnected, isConnecting, isDisconnected, isWalletConnectorId } from './chunk-DFKGCW7K.mjs';
3
3
  //# sourceMappingURL=react.mjs.map
4
4
  //# sourceMappingURL=react.mjs.map
@@ -661,9 +661,37 @@ type Listener = (s: ConnectorState) => void;
661
661
  /**
662
662
  * Connector configuration options
663
663
  */
664
+ interface WalletDisplayConfig {
665
+ /**
666
+ * Explicit allowlist of wallet display names to expose as connectors.
667
+ *
668
+ * - Matching is case-insensitive and uses exact name equality (after trimming).
669
+ * - When provided and non-empty, only wallets in this list are shown/available.
670
+ */
671
+ allowList?: string[];
672
+ /**
673
+ * Denylist of wallet display names to hide/remove.
674
+ *
675
+ * - Matching is case-insensitive and uses exact name equality (after trimming).
676
+ * - Deny wins over allow/featured when the same wallet appears in multiple lists.
677
+ */
678
+ denyList?: string[];
679
+ /**
680
+ * Wallets to prioritize to the top of the list (in the provided order).
681
+ *
682
+ * - Matching is case-insensitive and uses exact name equality (after trimming).
683
+ * - Does not filter wallets by itself; it only reorders remaining wallets.
684
+ */
685
+ featured?: string[];
686
+ }
664
687
  interface ConnectorConfig {
665
688
  autoConnect?: boolean;
666
689
  debug?: boolean;
690
+ /**
691
+ * Wallet list controls for Wallet Standard auto-discovery.
692
+ * This affects which detected wallets are exposed as connectors (and therefore selectable / autoConnect-able).
693
+ */
694
+ wallets?: WalletDisplayConfig;
667
695
  /** Storage configuration using enhanced storage adapters */
668
696
  storage?: {
669
697
  account: StorageAdapter<string | undefined>;
@@ -1001,6 +1029,11 @@ interface DefaultConfigOptions {
1001
1029
  * Use this to add remote/server-backed signers created via `createRemoteSignerWallet()`.
1002
1030
  */
1003
1031
  additionalWallets?: Wallet[];
1032
+ /**
1033
+ * Optional wallet display controls for Wallet Standard auto-discovery.
1034
+ * Use this to filter/prioritize which detected wallets are exposed as connectors.
1035
+ */
1036
+ wallets?: WalletDisplayConfig;
1004
1037
  }
1005
1038
  /**
1006
1039
  * Simplified WalletConnect configuration
@@ -1584,4 +1617,4 @@ declare const ready: Promise<void>;
1584
1617
  */
1585
1618
  declare function getWalletsRegistry(): WalletsRegistry;
1586
1619
 
1587
- export { type WalletConnectMetadata as $, type AccountInfo as A, isWalletStatusError as B, ConnectorProvider as C, type DefaultConfigOptions as D, type ExtendedConnectorConfig as E, toLegacyWalletState as F, type WalletConnector as G, type WalletStatusDisconnected as H, INITIAL_WALLET_STATUS as I, type WalletStatusConnecting as J, type WalletStatusConnected as K, type WalletStatusError as L, type MobileWalletAdapterConfig as M, WalletErrorType as N, isWalletError as O, createWalletError as P, type WalletError as Q, type RegisterMwaConfig as R, type SimplifiedWalletConnectConfig as S, getPublicSolanaRpcUrl as T, createSolanaClient as U, type SolanaClusterMoniker as V, type WalletInfo as W, type ModifiedClusterUrl as X, type SolanaClient as Y, type CreateSolanaClientArgs as Z, type WalletConnectConfig as _, useConnectorClient as a, type WalletConnectTransport as a0, type WalletName as a1, type AccountAddress as a2, isWalletName as a3, isAccountAddress as a4, type CoinGeckoConfig as a5, type ConnectorHealth as a6, type ConnectorDebugMetrics as a7, type ConnectorDebugState as a8, type Listener as a9, getClusterExplorerUrl as aA, getTransactionUrl as aB, getAddressUrl as aC, getTokenUrl as aD, getBlockUrl as aE, isMainnetCluster as aF, isDevnetCluster as aG, isTestnetCluster as aH, isLocalCluster as aI, getClusterName as aJ, getClusterType as aK, getClusterChainId as aL, getChainIdForWalletStandard as aM, type ConnectorEvent as aa, type ConnectorEventListener as ab, type StorageAdapter as ac, type StorageOptions as ad, type EnhancedStorageAccountOptions as ae, type EnhancedStorageClusterOptions as af, type EnhancedStorageWalletOptions as ag, type EnhancedStorageWalletStateOptions as ah, type PersistedWalletState as ai, type WalletConnectSolanaAccount as aj, type WalletConnectSignMessageParams as ak, type WalletConnectSignMessageResult as al, type WalletConnectSignTransactionParams as am, type WalletConnectSignTransactionResult as an, type WalletConnectSignAllTransactionsParams as ao, type WalletConnectSignAllTransactionsResult as ap, type WalletConnectSignAndSendTransactionParams as aq, type WalletConnectSignAndSendTransactionResult as ar, ClipboardErrorType as as, type ClipboardResult as at, type CopyOptions as au, isClipboardAvailable as av, copyToClipboard as aw, copyAddressToClipboard as ax, copySignatureToClipboard as ay, getClusterRpcUrl as az, getDefaultMobileConfig as b, type ConnectorSnapshot as c, type ConnectorConfig as d, type ConnectorState as e, type WalletStandardWallet as f, getDefaultConfig as g, type WalletStandardAccount as h, type WalletConnectorId as i, type WalletConnectorMetadata as j, type WalletSession as k, type WalletStatus as l, type SessionAccount as m, type ConnectOptions as n, createConnectorId as o, isWalletConnectorId as p, isConnected as q, isConnecting as r, isDisconnected as s, type ClusterType as t, useConnector as u, ConnectorClient as v, getWalletsRegistry as w, ready as x, getWalletNameFromConnectorId as y, isStatusError as z };
1620
+ export { type WalletConnectConfig as $, type AccountInfo as A, isStatusError as B, ConnectorProvider as C, type DefaultConfigOptions as D, type ExtendedConnectorConfig as E, isWalletStatusError as F, toLegacyWalletState as G, type WalletConnector as H, INITIAL_WALLET_STATUS as I, type WalletStatusDisconnected as J, type WalletStatusConnecting as K, type WalletStatusConnected as L, type MobileWalletAdapterConfig as M, type WalletStatusError as N, WalletErrorType as O, isWalletError as P, createWalletError as Q, type RegisterMwaConfig as R, type SimplifiedWalletConnectConfig as S, type WalletError as T, getPublicSolanaRpcUrl as U, createSolanaClient as V, type WalletInfo as W, type SolanaClusterMoniker as X, type ModifiedClusterUrl as Y, type SolanaClient as Z, type CreateSolanaClientArgs as _, useConnectorClient as a, type WalletConnectMetadata as a0, type WalletConnectTransport as a1, type WalletName as a2, type AccountAddress as a3, isWalletName as a4, isAccountAddress as a5, type CoinGeckoConfig as a6, type ConnectorHealth as a7, type ConnectorDebugMetrics as a8, type ConnectorDebugState as a9, getClusterRpcUrl as aA, getClusterExplorerUrl as aB, getTransactionUrl as aC, getAddressUrl as aD, getTokenUrl as aE, getBlockUrl as aF, isMainnetCluster as aG, isDevnetCluster as aH, isTestnetCluster as aI, isLocalCluster as aJ, getClusterName as aK, getClusterType as aL, getClusterChainId as aM, getChainIdForWalletStandard as aN, type Listener as aa, type ConnectorEvent as ab, type ConnectorEventListener as ac, type StorageAdapter as ad, type StorageOptions as ae, type EnhancedStorageAccountOptions as af, type EnhancedStorageClusterOptions as ag, type EnhancedStorageWalletOptions as ah, type EnhancedStorageWalletStateOptions as ai, type PersistedWalletState as aj, type WalletConnectSolanaAccount as ak, type WalletConnectSignMessageParams as al, type WalletConnectSignMessageResult as am, type WalletConnectSignTransactionParams as an, type WalletConnectSignTransactionResult as ao, type WalletConnectSignAllTransactionsParams as ap, type WalletConnectSignAllTransactionsResult as aq, type WalletConnectSignAndSendTransactionParams as ar, type WalletConnectSignAndSendTransactionResult as as, ClipboardErrorType as at, type ClipboardResult as au, type CopyOptions as av, isClipboardAvailable as aw, copyToClipboard as ax, copyAddressToClipboard as ay, copySignatureToClipboard as az, getDefaultMobileConfig as b, type ConnectorSnapshot as c, type ConnectorConfig as d, type ConnectorState as e, type WalletDisplayConfig as f, getDefaultConfig as g, type WalletStandardWallet as h, type WalletStandardAccount as i, type WalletConnectorId as j, type WalletConnectorMetadata as k, type WalletSession as l, type WalletStatus as m, type SessionAccount as n, type ConnectOptions as o, createConnectorId as p, isWalletConnectorId as q, isConnected as r, isConnecting as s, isDisconnected as t, useConnector as u, type ClusterType as v, ConnectorClient as w, getWalletsRegistry as x, ready as y, getWalletNameFromConnectorId as z };
@@ -661,9 +661,37 @@ type Listener = (s: ConnectorState) => void;
661
661
  /**
662
662
  * Connector configuration options
663
663
  */
664
+ interface WalletDisplayConfig {
665
+ /**
666
+ * Explicit allowlist of wallet display names to expose as connectors.
667
+ *
668
+ * - Matching is case-insensitive and uses exact name equality (after trimming).
669
+ * - When provided and non-empty, only wallets in this list are shown/available.
670
+ */
671
+ allowList?: string[];
672
+ /**
673
+ * Denylist of wallet display names to hide/remove.
674
+ *
675
+ * - Matching is case-insensitive and uses exact name equality (after trimming).
676
+ * - Deny wins over allow/featured when the same wallet appears in multiple lists.
677
+ */
678
+ denyList?: string[];
679
+ /**
680
+ * Wallets to prioritize to the top of the list (in the provided order).
681
+ *
682
+ * - Matching is case-insensitive and uses exact name equality (after trimming).
683
+ * - Does not filter wallets by itself; it only reorders remaining wallets.
684
+ */
685
+ featured?: string[];
686
+ }
664
687
  interface ConnectorConfig {
665
688
  autoConnect?: boolean;
666
689
  debug?: boolean;
690
+ /**
691
+ * Wallet list controls for Wallet Standard auto-discovery.
692
+ * This affects which detected wallets are exposed as connectors (and therefore selectable / autoConnect-able).
693
+ */
694
+ wallets?: WalletDisplayConfig;
667
695
  /** Storage configuration using enhanced storage adapters */
668
696
  storage?: {
669
697
  account: StorageAdapter<string | undefined>;
@@ -1001,6 +1029,11 @@ interface DefaultConfigOptions {
1001
1029
  * Use this to add remote/server-backed signers created via `createRemoteSignerWallet()`.
1002
1030
  */
1003
1031
  additionalWallets?: Wallet[];
1032
+ /**
1033
+ * Optional wallet display controls for Wallet Standard auto-discovery.
1034
+ * Use this to filter/prioritize which detected wallets are exposed as connectors.
1035
+ */
1036
+ wallets?: WalletDisplayConfig;
1004
1037
  }
1005
1038
  /**
1006
1039
  * Simplified WalletConnect configuration
@@ -1584,4 +1617,4 @@ declare const ready: Promise<void>;
1584
1617
  */
1585
1618
  declare function getWalletsRegistry(): WalletsRegistry;
1586
1619
 
1587
- export { type WalletConnectMetadata as $, type AccountInfo as A, isWalletStatusError as B, ConnectorProvider as C, type DefaultConfigOptions as D, type ExtendedConnectorConfig as E, toLegacyWalletState as F, type WalletConnector as G, type WalletStatusDisconnected as H, INITIAL_WALLET_STATUS as I, type WalletStatusConnecting as J, type WalletStatusConnected as K, type WalletStatusError as L, type MobileWalletAdapterConfig as M, WalletErrorType as N, isWalletError as O, createWalletError as P, type WalletError as Q, type RegisterMwaConfig as R, type SimplifiedWalletConnectConfig as S, getPublicSolanaRpcUrl as T, createSolanaClient as U, type SolanaClusterMoniker as V, type WalletInfo as W, type ModifiedClusterUrl as X, type SolanaClient as Y, type CreateSolanaClientArgs as Z, type WalletConnectConfig as _, useConnectorClient as a, type WalletConnectTransport as a0, type WalletName as a1, type AccountAddress as a2, isWalletName as a3, isAccountAddress as a4, type CoinGeckoConfig as a5, type ConnectorHealth as a6, type ConnectorDebugMetrics as a7, type ConnectorDebugState as a8, type Listener as a9, getClusterExplorerUrl as aA, getTransactionUrl as aB, getAddressUrl as aC, getTokenUrl as aD, getBlockUrl as aE, isMainnetCluster as aF, isDevnetCluster as aG, isTestnetCluster as aH, isLocalCluster as aI, getClusterName as aJ, getClusterType as aK, getClusterChainId as aL, getChainIdForWalletStandard as aM, type ConnectorEvent as aa, type ConnectorEventListener as ab, type StorageAdapter as ac, type StorageOptions as ad, type EnhancedStorageAccountOptions as ae, type EnhancedStorageClusterOptions as af, type EnhancedStorageWalletOptions as ag, type EnhancedStorageWalletStateOptions as ah, type PersistedWalletState as ai, type WalletConnectSolanaAccount as aj, type WalletConnectSignMessageParams as ak, type WalletConnectSignMessageResult as al, type WalletConnectSignTransactionParams as am, type WalletConnectSignTransactionResult as an, type WalletConnectSignAllTransactionsParams as ao, type WalletConnectSignAllTransactionsResult as ap, type WalletConnectSignAndSendTransactionParams as aq, type WalletConnectSignAndSendTransactionResult as ar, ClipboardErrorType as as, type ClipboardResult as at, type CopyOptions as au, isClipboardAvailable as av, copyToClipboard as aw, copyAddressToClipboard as ax, copySignatureToClipboard as ay, getClusterRpcUrl as az, getDefaultMobileConfig as b, type ConnectorSnapshot as c, type ConnectorConfig as d, type ConnectorState as e, type WalletStandardWallet as f, getDefaultConfig as g, type WalletStandardAccount as h, type WalletConnectorId as i, type WalletConnectorMetadata as j, type WalletSession as k, type WalletStatus as l, type SessionAccount as m, type ConnectOptions as n, createConnectorId as o, isWalletConnectorId as p, isConnected as q, isConnecting as r, isDisconnected as s, type ClusterType as t, useConnector as u, ConnectorClient as v, getWalletsRegistry as w, ready as x, getWalletNameFromConnectorId as y, isStatusError as z };
1620
+ export { type WalletConnectConfig as $, type AccountInfo as A, isStatusError as B, ConnectorProvider as C, type DefaultConfigOptions as D, type ExtendedConnectorConfig as E, isWalletStatusError as F, toLegacyWalletState as G, type WalletConnector as H, INITIAL_WALLET_STATUS as I, type WalletStatusDisconnected as J, type WalletStatusConnecting as K, type WalletStatusConnected as L, type MobileWalletAdapterConfig as M, type WalletStatusError as N, WalletErrorType as O, isWalletError as P, createWalletError as Q, type RegisterMwaConfig as R, type SimplifiedWalletConnectConfig as S, type WalletError as T, getPublicSolanaRpcUrl as U, createSolanaClient as V, type WalletInfo as W, type SolanaClusterMoniker as X, type ModifiedClusterUrl as Y, type SolanaClient as Z, type CreateSolanaClientArgs as _, useConnectorClient as a, type WalletConnectMetadata as a0, type WalletConnectTransport as a1, type WalletName as a2, type AccountAddress as a3, isWalletName as a4, isAccountAddress as a5, type CoinGeckoConfig as a6, type ConnectorHealth as a7, type ConnectorDebugMetrics as a8, type ConnectorDebugState as a9, getClusterRpcUrl as aA, getClusterExplorerUrl as aB, getTransactionUrl as aC, getAddressUrl as aD, getTokenUrl as aE, getBlockUrl as aF, isMainnetCluster as aG, isDevnetCluster as aH, isTestnetCluster as aI, isLocalCluster as aJ, getClusterName as aK, getClusterType as aL, getClusterChainId as aM, getChainIdForWalletStandard as aN, type Listener as aa, type ConnectorEvent as ab, type ConnectorEventListener as ac, type StorageAdapter as ad, type StorageOptions as ae, type EnhancedStorageAccountOptions as af, type EnhancedStorageClusterOptions as ag, type EnhancedStorageWalletOptions as ah, type EnhancedStorageWalletStateOptions as ai, type PersistedWalletState as aj, type WalletConnectSolanaAccount as ak, type WalletConnectSignMessageParams as al, type WalletConnectSignMessageResult as am, type WalletConnectSignTransactionParams as an, type WalletConnectSignTransactionResult as ao, type WalletConnectSignAllTransactionsParams as ap, type WalletConnectSignAllTransactionsResult as aq, type WalletConnectSignAndSendTransactionParams as ar, type WalletConnectSignAndSendTransactionResult as as, ClipboardErrorType as at, type ClipboardResult as au, type CopyOptions as av, isClipboardAvailable as aw, copyToClipboard as ax, copyAddressToClipboard as ay, copySignatureToClipboard as az, getDefaultMobileConfig as b, type ConnectorSnapshot as c, type ConnectorConfig as d, type ConnectorState as e, type WalletDisplayConfig as f, getDefaultConfig as g, type WalletStandardWallet as h, type WalletStandardAccount as i, type WalletConnectorId as j, type WalletConnectorMetadata as k, type WalletSession as l, type WalletStatus as m, type SessionAccount as n, type ConnectOptions as o, createConnectorId as p, isWalletConnectorId as q, isConnected as r, isConnecting as s, isDisconnected as t, useConnector as u, type ClusterType as v, ConnectorClient as w, getWalletsRegistry as x, ready as y, getWalletNameFromConnectorId as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/connector",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Headless wallet connector client and React provider built on Wallet Standard",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",