@solana/connector 0.2.1 → 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.
Files changed (79) hide show
  1. package/README.md +17 -0
  2. package/dist/{chunk-UCISIAOG.mjs → chunk-A7WQ3K75.mjs} +3 -3
  3. package/dist/{chunk-UCISIAOG.mjs.map → chunk-A7WQ3K75.mjs.map} +1 -1
  4. package/dist/{chunk-4Z2F6ERB.js → chunk-B6YBZB6H.js} +49 -48
  5. package/dist/chunk-B6YBZB6H.js.map +1 -0
  6. package/dist/{chunk-SITQ4JWM.js → chunk-BF67LVVM.js} +17 -21
  7. package/dist/chunk-BF67LVVM.js.map +1 -0
  8. package/dist/{chunk-IDTUFDNB.mjs → chunk-DFKGCW7K.mjs} +98 -12
  9. package/dist/chunk-DFKGCW7K.mjs.map +1 -0
  10. package/dist/chunk-E3DAIOYS.mjs +22 -0
  11. package/dist/chunk-E3DAIOYS.mjs.map +1 -0
  12. package/dist/chunk-FG7HTQTV.mjs +7 -0
  13. package/dist/chunk-FG7HTQTV.mjs.map +1 -0
  14. package/dist/chunk-L5FWMNWO.js +9 -0
  15. package/dist/chunk-L5FWMNWO.js.map +1 -0
  16. package/dist/{chunk-HN5AJF7F.js → chunk-NLPEO5GT.js} +5 -5
  17. package/dist/{chunk-HN5AJF7F.js.map → chunk-NLPEO5GT.js.map} +1 -1
  18. package/dist/chunk-QST7XLMB.js +26 -0
  19. package/dist/chunk-QST7XLMB.js.map +1 -0
  20. package/dist/{chunk-ZZTY3O4N.mjs → chunk-SJCQ3KZE.mjs} +4 -7
  21. package/dist/chunk-SJCQ3KZE.mjs.map +1 -0
  22. package/dist/{chunk-BZ2VBJCZ.js → chunk-ULEPN4NL.js} +181 -95
  23. package/dist/chunk-ULEPN4NL.js.map +1 -0
  24. package/dist/{chunk-HPQ5T32K.mjs → chunk-UOML5ULB.mjs} +4 -4
  25. package/dist/{chunk-HPQ5T32K.mjs.map → chunk-UOML5ULB.mjs.map} +1 -1
  26. package/dist/{chunk-MDR4Y37Z.mjs → chunk-WPDCSFX2.mjs} +5 -4
  27. package/dist/chunk-WPDCSFX2.mjs.map +1 -0
  28. package/dist/{chunk-BJAVJQLK.js → chunk-X2X5TFXS.js} +6 -6
  29. package/dist/{chunk-BJAVJQLK.js.map → chunk-X2X5TFXS.js.map} +1 -1
  30. package/dist/compat.js +2 -2
  31. package/dist/compat.mjs +1 -1
  32. package/dist/fireblocks-FLKRTJU3.js +67 -0
  33. package/dist/fireblocks-FLKRTJU3.js.map +1 -0
  34. package/dist/fireblocks-KCJV3GEK.mjs +65 -0
  35. package/dist/fireblocks-KCJV3GEK.mjs.map +1 -0
  36. package/dist/headless.d.mts +11 -11
  37. package/dist/headless.d.ts +11 -11
  38. package/dist/headless.js +147 -147
  39. package/dist/headless.mjs +4 -4
  40. package/dist/index.d.mts +1 -1
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +188 -188
  43. package/dist/index.mjs +5 -5
  44. package/dist/privy-6LYDE24Z.mjs +64 -0
  45. package/dist/privy-6LYDE24Z.mjs.map +1 -0
  46. package/dist/privy-ID4YFTKR.js +66 -0
  47. package/dist/privy-ID4YFTKR.js.map +1 -0
  48. package/dist/protocol-G-z1lRqo.d.mts +166 -0
  49. package/dist/protocol-G-z1lRqo.d.ts +166 -0
  50. package/dist/react.d.mts +3 -3
  51. package/dist/react.d.ts +3 -3
  52. package/dist/react.js +49 -49
  53. package/dist/react.mjs +2 -2
  54. package/dist/remote.d.mts +46 -0
  55. package/dist/remote.d.ts +46 -0
  56. package/dist/remote.js +212 -0
  57. package/dist/remote.js.map +1 -0
  58. package/dist/remote.mjs +198 -0
  59. package/dist/remote.mjs.map +1 -0
  60. package/dist/server.d.mts +141 -0
  61. package/dist/server.d.ts +141 -0
  62. package/dist/server.js +189 -0
  63. package/dist/server.js.map +1 -0
  64. package/dist/server.mjs +187 -0
  65. package/dist/server.mjs.map +1 -0
  66. package/dist/{standard-shim-tmnQelaJ.d.ts → standard-shim-BB0Lkg_C.d.ts} +44 -1
  67. package/dist/{standard-shim-CGB88PPO.d.mts → standard-shim-n5phZB1d.d.mts} +44 -1
  68. package/dist/{walletconnect-447EY3OJ.js → walletconnect-F2M3PAAN.js} +8 -8
  69. package/dist/{walletconnect-447EY3OJ.js.map → walletconnect-F2M3PAAN.js.map} +1 -1
  70. package/dist/walletconnect-Z6LPGALR.mjs +3 -0
  71. package/dist/{walletconnect-U455PO4I.mjs.map → walletconnect-Z6LPGALR.mjs.map} +1 -1
  72. package/package.json +27 -2
  73. package/dist/chunk-4Z2F6ERB.js.map +0 -1
  74. package/dist/chunk-BZ2VBJCZ.js.map +0 -1
  75. package/dist/chunk-IDTUFDNB.mjs.map +0 -1
  76. package/dist/chunk-MDR4Y37Z.mjs.map +0 -1
  77. package/dist/chunk-SITQ4JWM.js.map +0 -1
  78. package/dist/chunk-ZZTY3O4N.mjs.map +0 -1
  79. package/dist/walletconnect-U455PO4I.mjs +0 -3
@@ -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>;
@@ -700,6 +728,11 @@ interface ConnectorConfig {
700
728
  * @see https://docs.walletconnect.network/wallet-sdk/chain-support/solana
701
729
  */
702
730
  walletConnect?: WalletConnectConfig;
731
+ /**
732
+ * Additional wallets to include alongside Wallet Standard wallets.
733
+ * Use this to add remote/server-backed signers created via `createRemoteSignerWallet()`.
734
+ */
735
+ additionalWallets?: Wallet[];
703
736
  }
704
737
  /**
705
738
  * Health check information for connector diagnostics
@@ -991,6 +1024,16 @@ interface DefaultConfigOptions {
991
1024
  * @see https://docs.walletconnect.network/wallet-sdk/chain-support/solana
992
1025
  */
993
1026
  walletConnect?: boolean | SimplifiedWalletConnectConfig;
1027
+ /**
1028
+ * Additional wallets to include alongside Wallet Standard wallets.
1029
+ * Use this to add remote/server-backed signers created via `createRemoteSignerWallet()`.
1030
+ */
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;
994
1037
  }
995
1038
  /**
996
1039
  * Simplified WalletConnect configuration
@@ -1574,4 +1617,4 @@ declare const ready: Promise<void>;
1574
1617
  */
1575
1618
  declare function getWalletsRegistry(): WalletsRegistry;
1576
1619
 
1577
- 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 };
@@ -1,28 +1,28 @@
1
1
  'use strict';
2
2
 
3
- var chunkHN5AJF7F_js = require('./chunk-HN5AJF7F.js');
3
+ var chunkNLPEO5GT_js = require('./chunk-NLPEO5GT.js');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createMockWalletConnectTransport", {
8
8
  enumerable: true,
9
- get: function () { return chunkHN5AJF7F_js.createMockWalletConnectTransport; }
9
+ get: function () { return chunkNLPEO5GT_js.createMockWalletConnectTransport; }
10
10
  });
11
11
  Object.defineProperty(exports, "createWalletConnectTransport", {
12
12
  enumerable: true,
13
- get: function () { return chunkHN5AJF7F_js.createWalletConnectTransport; }
13
+ get: function () { return chunkNLPEO5GT_js.createWalletConnectTransport; }
14
14
  });
15
15
  Object.defineProperty(exports, "createWalletConnectWallet", {
16
16
  enumerable: true,
17
- get: function () { return chunkHN5AJF7F_js.createWalletConnectWallet; }
17
+ get: function () { return chunkNLPEO5GT_js.createWalletConnectWallet; }
18
18
  });
19
19
  Object.defineProperty(exports, "isWalletConnectAvailable", {
20
20
  enumerable: true,
21
- get: function () { return chunkHN5AJF7F_js.isWalletConnectAvailable; }
21
+ get: function () { return chunkNLPEO5GT_js.isWalletConnectAvailable; }
22
22
  });
23
23
  Object.defineProperty(exports, "registerWalletConnectWallet", {
24
24
  enumerable: true,
25
- get: function () { return chunkHN5AJF7F_js.registerWalletConnectWallet; }
25
+ get: function () { return chunkNLPEO5GT_js.registerWalletConnectWallet; }
26
26
  });
27
- //# sourceMappingURL=walletconnect-447EY3OJ.js.map
28
- //# sourceMappingURL=walletconnect-447EY3OJ.js.map
27
+ //# sourceMappingURL=walletconnect-F2M3PAAN.js.map
28
+ //# sourceMappingURL=walletconnect-F2M3PAAN.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-447EY3OJ.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-F2M3PAAN.js"}
@@ -0,0 +1,3 @@
1
+ export { createMockWalletConnectTransport, createWalletConnectTransport, createWalletConnectWallet, isWalletConnectAvailable, registerWalletConnectWallet } from './chunk-A7WQ3K75.mjs';
2
+ //# sourceMappingURL=walletconnect-Z6LPGALR.mjs.map
3
+ //# sourceMappingURL=walletconnect-Z6LPGALR.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-U455PO4I.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"walletconnect-Z6LPGALR.mjs"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/connector",
3
- "version": "0.2.1",
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",
@@ -26,6 +26,16 @@
26
26
  "types": "./dist/compat.d.ts",
27
27
  "import": "./dist/compat.mjs",
28
28
  "require": "./dist/compat.js"
29
+ },
30
+ "./remote": {
31
+ "types": "./dist/remote.d.ts",
32
+ "import": "./dist/remote.mjs",
33
+ "require": "./dist/remote.js"
34
+ },
35
+ "./server": {
36
+ "types": "./dist/server.d.ts",
37
+ "import": "./dist/server.mjs",
38
+ "require": "./dist/server.js"
29
39
  }
30
40
  },
31
41
  "files": [
@@ -49,7 +59,13 @@
49
59
  "peerDependencies": {
50
60
  "@solana/web3.js": "^1.0.0",
51
61
  "react": ">=18.0.0",
52
- "@walletconnect/universal-provider": "^2.0.0"
62
+ "@walletconnect/universal-provider": "^2.0.0",
63
+ "@solana/keychain": "^0.2.1",
64
+ "@solana/keychain-fireblocks": "^0.2.1",
65
+ "@solana/keychain-privy": "^0.2.1",
66
+ "@solana/keychain-turnkey": "^0.2.1",
67
+ "@solana/keychain-vault": "^0.2.1",
68
+ "@solana/keychain-aws-kms": "^0.2.1"
53
69
  },
54
70
  "peerDependenciesMeta": {
55
71
  "react": {
@@ -63,6 +79,15 @@
63
79
  },
64
80
  "@solana/web3.js": {
65
81
  "optional": true
82
+ },
83
+ "@solana/keychain": {
84
+ "optional": true
85
+ },
86
+ "@solana/keychain-fireblocks": {
87
+ "optional": true
88
+ },
89
+ "@solana/keychain-privy": {
90
+ "optional": true
66
91
  }
67
92
  },
68
93
  "dependencies": {