@solana/connector 0.1.6 → 0.1.8

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 (50) hide show
  1. package/README.md +122 -44
  2. package/dist/{chunk-VMSZJPR5.mjs → chunk-6F6M6L7R.mjs} +152 -173
  3. package/dist/chunk-6F6M6L7R.mjs.map +1 -0
  4. package/dist/{chunk-NQXK7PGX.js → chunk-AOIXHVRH.js} +82 -235
  5. package/dist/chunk-AOIXHVRH.js.map +1 -0
  6. package/dist/chunk-DSUCH44G.js +678 -0
  7. package/dist/chunk-DSUCH44G.js.map +1 -0
  8. package/dist/{chunk-JUZVCBAI.js → chunk-FTXIXM43.js} +240 -271
  9. package/dist/chunk-FTXIXM43.js.map +1 -0
  10. package/dist/{chunk-QKVL45F6.mjs → chunk-G575OAT4.mjs} +73 -218
  11. package/dist/chunk-G575OAT4.mjs.map +1 -0
  12. package/dist/chunk-J7DHGLW6.mjs +638 -0
  13. package/dist/chunk-J7DHGLW6.mjs.map +1 -0
  14. package/dist/{chunk-ULUYX23Q.js → chunk-K3BNIGPX.js} +1023 -404
  15. package/dist/chunk-K3BNIGPX.js.map +1 -0
  16. package/dist/{chunk-3STZXVXD.mjs → chunk-TTOKQAPX.mjs} +998 -388
  17. package/dist/chunk-TTOKQAPX.mjs.map +1 -0
  18. package/dist/compat.d.mts +1 -1
  19. package/dist/compat.d.ts +1 -1
  20. package/dist/compat.js +40 -39
  21. package/dist/compat.js.map +1 -1
  22. package/dist/compat.mjs +39 -38
  23. package/dist/compat.mjs.map +1 -1
  24. package/dist/headless.d.mts +540 -152
  25. package/dist/headless.d.ts +540 -152
  26. package/dist/headless.js +226 -190
  27. package/dist/headless.mjs +3 -3
  28. package/dist/index.d.mts +8 -6
  29. package/dist/index.d.ts +8 -6
  30. package/dist/index.js +286 -218
  31. package/dist/index.mjs +4 -4
  32. package/dist/react.d.mts +283 -16
  33. package/dist/react.d.ts +283 -16
  34. package/dist/react.js +60 -28
  35. package/dist/react.mjs +2 -2
  36. package/dist/{wallet-standard-shim--YcrQNRt.d.ts → standard-shim-CT49DM5l.d.mts} +72 -252
  37. package/dist/{wallet-standard-shim-Dx7H8Ctf.d.mts → standard-shim-D9guL5fz.d.ts} +72 -252
  38. package/dist/{transaction-signer-D9d8nxwb.d.mts → transaction-signer-T-KVQFi8.d.mts} +2 -2
  39. package/dist/{transaction-signer-D9d8nxwb.d.ts → transaction-signer-T-KVQFi8.d.ts} +2 -2
  40. package/package.json +3 -3
  41. package/dist/chunk-3STZXVXD.mjs.map +0 -1
  42. package/dist/chunk-I64FD2EH.js +0 -312
  43. package/dist/chunk-I64FD2EH.js.map +0 -1
  44. package/dist/chunk-JUZVCBAI.js.map +0 -1
  45. package/dist/chunk-NQXK7PGX.js.map +0 -1
  46. package/dist/chunk-QKVL45F6.mjs.map +0 -1
  47. package/dist/chunk-QL3IT3TS.mjs +0 -299
  48. package/dist/chunk-QL3IT3TS.mjs.map +0 -1
  49. package/dist/chunk-ULUYX23Q.js.map +0 -1
  50. package/dist/chunk-VMSZJPR5.mjs.map +0 -1
package/dist/react.d.ts CHANGED
@@ -1,29 +1,36 @@
1
- import { h as UnifiedConfig, d as ConnectorConfig, M as MobileWalletAdapterConfig, i as ClusterType, A as AccountInfo, V as ClipboardResult, Q as SolanaClient } from './wallet-standard-shim--YcrQNRt.js';
2
- export { b as ConnectorErrorBoundary, C as ConnectorProvider, c as ConnectorSnapshot, e as ConnectorState, D as DefaultConfigOptions, E as ExtendedConnectorConfig, U as UnifiedConfigOptions, W as WalletInfo, g as WalletStandardAccount, f as WalletStandardWallet, u as useConnector, a as useConnectorClient, w as withErrorBoundary } from './wallet-standard-shim--YcrQNRt.js';
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';
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';
6
6
  export { SolanaCluster, SolanaClusterId } from '@wallet-ui/core';
7
- import { j as TransactionSigner, b as TransactionSignerCapabilities } from './transaction-signer-D9d8nxwb.js';
7
+ import { a as TransactionSigner, v as TransactionSignerCapabilities } from './transaction-signer-T-KVQFi8.js';
8
8
  import { TransactionModifyingSigner } from '@solana/signers';
9
9
  import { TransactionMessage, TransactionMessageWithFeePayer, TransactionMessageWithBlockhashLifetime } from '@solana/kit';
10
10
  export { Wallet, WalletAccount } from '@wallet-standard/base';
11
11
  import '@solana/addresses';
12
12
  import '@solana/keys';
13
+ import '@solana-mobile/wallet-standard-mobile';
13
14
  import '@solana/transaction-messages';
14
15
  import '@solana/web3.js';
15
16
 
16
- interface UnifiedProviderProps {
17
+ interface AppProviderProps {
17
18
  children: ReactNode;
18
- config?: UnifiedConfig;
19
+ /** ConnectorKit configuration */
19
20
  connectorConfig?: ConnectorConfig;
21
+ /** Mobile Wallet Adapter configuration */
20
22
  mobile?: MobileWalletAdapterConfig;
23
+ /** Optional additional providers to wrap around children */
21
24
  providers?: Array<{
22
25
  component: ComponentType<PropsWithChildren>;
23
26
  props?: Record<string, unknown>;
24
27
  }>;
25
28
  }
26
- declare function UnifiedProvider({ children, config, connectorConfig, mobile, providers }: UnifiedProviderProps): react_jsx_runtime.JSX.Element;
29
+ declare function AppProvider({ children, connectorConfig, mobile, providers }: AppProviderProps): react_jsx_runtime.JSX.Element;
30
+ /** @deprecated Use `AppProvider` instead */
31
+ declare const UnifiedProvider: typeof AppProvider;
32
+ /** @deprecated Use `AppProviderProps` instead */
33
+ type UnifiedProviderProps = AppProviderProps;
27
34
 
28
35
  /**
29
36
  * @solana/connector - useCluster hook
@@ -495,6 +502,24 @@ interface UseTransactionPreparerReturn {
495
502
  */
496
503
  declare function useTransactionPreparer(): UseTransactionPreparerReturn;
497
504
 
505
+ /**
506
+ * Generate the query key for balance data.
507
+ * Use this to invalidate the balance cache externally.
508
+ *
509
+ * Note: Balance and tokens share the same underlying cache (wallet-assets).
510
+ *
511
+ * @param rpcUrl - The RPC URL being used
512
+ * @param address - The wallet address
513
+ * @returns The query key string, or null if params are invalid
514
+ *
515
+ * @example
516
+ * ```tsx
517
+ * // Invalidate balance after sending a transaction
518
+ * const key = getBalanceQueryKey(rpcUrl, address);
519
+ * if (key) invalidateSharedQuery(key);
520
+ * ```
521
+ */
522
+ declare function getBalanceQueryKey(rpcUrl: string | null, address: string | null): string | null;
498
523
  interface TokenBalance {
499
524
  /** Token mint address */
500
525
  mint: string;
@@ -511,6 +536,25 @@ interface TokenBalance {
511
536
  /** Token logo URL if known */
512
537
  logo?: string;
513
538
  }
539
+ /**
540
+ * Options for useBalance hook
541
+ */
542
+ interface UseBalanceOptions {
543
+ /** Whether the hook is enabled (default: true) */
544
+ enabled?: boolean;
545
+ /** Whether to auto-refresh balance (default: true) */
546
+ autoRefresh?: boolean;
547
+ /** Refresh interval in milliseconds (default: 30000) */
548
+ refreshInterval?: number;
549
+ /** Time in ms to consider data fresh (default: 0) */
550
+ staleTimeMs?: number;
551
+ /** Time in ms to keep cache after unmount (default: 300000) */
552
+ cacheTimeMs?: number;
553
+ /** Whether to refetch on mount (default: 'stale') */
554
+ refetchOnMount?: boolean | 'stale';
555
+ /** Override the Solana client from provider */
556
+ client?: SolanaClient | null;
557
+ }
514
558
  interface UseBalanceReturn {
515
559
  /** SOL balance in SOL (not lamports) */
516
560
  solBalance: number;
@@ -524,14 +568,27 @@ interface UseBalanceReturn {
524
568
  isLoading: boolean;
525
569
  /** Error if balance fetch failed */
526
570
  error: Error | null;
527
- /** Refetch balance */
528
- refetch: () => Promise<void>;
571
+ /** Refetch balance, optionally with an abort signal */
572
+ refetch: (options?: {
573
+ signal?: AbortSignal;
574
+ }) => Promise<void>;
575
+ /** Abort any in-flight balance fetch */
576
+ abort: () => void;
529
577
  /** Last updated timestamp */
530
578
  lastUpdated: Date | null;
531
579
  }
532
580
  /**
533
581
  * Hook for fetching wallet balance (SOL and tokens).
534
582
  *
583
+ * Features:
584
+ * - Automatic request deduplication across components
585
+ * - Shared data with useTokens (single RPC query)
586
+ * - Token-2022 support
587
+ * - Shared polling interval (ref-counted)
588
+ * - Configurable auto-refresh behavior
589
+ * - Abort support for in-flight requests
590
+ * - Optional client override
591
+ *
535
592
  * @example Basic usage
536
593
  * ```tsx
537
594
  * function Balance() {
@@ -542,6 +599,23 @@ interface UseBalanceReturn {
542
599
  * }
543
600
  * ```
544
601
  *
602
+ * @example With options
603
+ * ```tsx
604
+ * function Balance() {
605
+ * const { formattedSol, refetch, abort } = useBalance({
606
+ * autoRefresh: false, // Disable polling
607
+ * staleTimeMs: 10000, // Consider data fresh for 10s
608
+ * });
609
+ *
610
+ * return (
611
+ * <div>
612
+ * {formattedSol}
613
+ * <button onClick={() => refetch()}>Refresh</button>
614
+ * </div>
615
+ * );
616
+ * }
617
+ * ```
618
+ *
545
619
  * @example With token balances
546
620
  * ```tsx
547
621
  * function TokenBalances() {
@@ -559,8 +633,37 @@ interface UseBalanceReturn {
559
633
  * }
560
634
  * ```
561
635
  */
562
- declare function useBalance(): UseBalanceReturn;
636
+ declare function useBalance(options?: UseBalanceOptions): UseBalanceReturn;
563
637
 
638
+ /**
639
+ * Options for generating the transactions query key
640
+ */
641
+ interface TransactionsQueryKeyOptions {
642
+ rpcUrl: string;
643
+ address: string;
644
+ clusterId: SolanaClusterId;
645
+ limit?: number;
646
+ fetchDetails?: boolean;
647
+ }
648
+ /**
649
+ * Generate the query key for transactions data.
650
+ * Use this to invalidate the transactions cache externally.
651
+ *
652
+ * @param options - Query key options
653
+ * @returns The query key string, or null if required params are missing
654
+ *
655
+ * @example
656
+ * ```tsx
657
+ * // Invalidate transactions after sending a new transaction
658
+ * const key = getTransactionsQueryKey({
659
+ * rpcUrl: 'https://api.mainnet-beta.solana.com',
660
+ * address: 'ABC123...',
661
+ * clusterId: 'solana:mainnet',
662
+ * });
663
+ * if (key) invalidateSharedQuery(key);
664
+ * ```
665
+ */
666
+ declare function getTransactionsQueryKey(options: TransactionsQueryKeyOptions): string | null;
564
667
  interface TransactionInfo {
565
668
  /** Transaction signature */
566
669
  signature: string;
@@ -573,7 +676,7 @@ interface TransactionInfo {
573
676
  /** Error message if failed */
574
677
  error?: string;
575
678
  /** Transaction type (if detected) */
576
- type: 'sent' | 'received' | 'swap' | 'nft' | 'stake' | 'program' | 'unknown';
679
+ type: 'sent' | 'received' | 'swap' | 'nft' | 'stake' | 'program' | 'tokenAccountClosed' | 'unknown';
577
680
  /** Direction for transfers */
578
681
  direction?: 'in' | 'out';
579
682
  /** Amount in SOL (for transfers) */
@@ -594,8 +697,32 @@ interface TransactionInfo {
594
697
  formattedTime: string;
595
698
  /** Explorer URL */
596
699
  explorerUrl: string;
700
+ /** Swap from token (only for swap transactions) */
701
+ swapFromToken?: {
702
+ mint: string;
703
+ symbol?: string;
704
+ icon?: string;
705
+ };
706
+ /** Swap to token (only for swap transactions) */
707
+ swapToToken?: {
708
+ mint: string;
709
+ symbol?: string;
710
+ icon?: string;
711
+ };
712
+ /** Primary program ID involved in the transaction (best-effort) */
713
+ programId?: string;
714
+ /** Friendly name for the primary program if known */
715
+ programName?: string;
716
+ /** All program IDs involved in the transaction (best-effort) */
717
+ programIds?: string[];
718
+ /** Parsed instruction types (best-effort, only available for some programs in `jsonParsed` mode) */
719
+ instructionTypes?: string[];
720
+ /** Number of top-level instructions in the transaction message (best-effort) */
721
+ instructionCount?: number;
597
722
  }
598
723
  interface UseTransactionsOptions {
724
+ /** Whether the hook is enabled (default: true) */
725
+ enabled?: boolean;
599
726
  /** Number of transactions to fetch */
600
727
  limit?: number;
601
728
  /** Whether to auto-refresh */
@@ -604,6 +731,21 @@ interface UseTransactionsOptions {
604
731
  refreshInterval?: number;
605
732
  /** Fetch full transaction details (slower but more info) */
606
733
  fetchDetails?: boolean;
734
+ /**
735
+ * Max concurrent `getTransaction` RPC calls when `fetchDetails` is true.
736
+ * Lower this if you see throttling on public RPCs.
737
+ *
738
+ * @default 6
739
+ */
740
+ detailsConcurrency?: number;
741
+ /** Time in ms to consider data fresh (default: 0) */
742
+ staleTimeMs?: number;
743
+ /** Time in ms to keep cache after unmount (default: 300000) */
744
+ cacheTimeMs?: number;
745
+ /** Whether to refetch on mount (default: 'stale') */
746
+ refetchOnMount?: boolean | 'stale';
747
+ /** Override the Solana client from provider */
748
+ client?: SolanaClient | null;
607
749
  }
608
750
  interface UseTransactionsReturn {
609
751
  /** List of transactions */
@@ -616,8 +758,12 @@ interface UseTransactionsReturn {
616
758
  hasMore: boolean;
617
759
  /** Load more transactions */
618
760
  loadMore: () => Promise<void>;
619
- /** Refetch transactions */
620
- refetch: () => Promise<void>;
761
+ /** Refetch transactions, optionally with an abort signal */
762
+ refetch: (options?: {
763
+ signal?: AbortSignal;
764
+ }) => Promise<void>;
765
+ /** Abort any in-flight transaction fetch */
766
+ abort: () => void;
621
767
  /** Last updated timestamp */
622
768
  lastUpdated: Date | null;
623
769
  }
@@ -646,6 +792,24 @@ interface UseTransactionsReturn {
646
792
  */
647
793
  declare function useTransactions(options?: UseTransactionsOptions): UseTransactionsReturn;
648
794
 
795
+ /**
796
+ * Generate the query key for tokens data.
797
+ * Use this to invalidate the tokens cache externally.
798
+ *
799
+ * Note: Balance and tokens share the same underlying cache (wallet-assets).
800
+ *
801
+ * @param rpcUrl - The RPC URL being used
802
+ * @param address - The wallet address
803
+ * @returns The query key string, or null if params are invalid
804
+ *
805
+ * @example
806
+ * ```tsx
807
+ * // Invalidate tokens after receiving new tokens
808
+ * const key = getTokensQueryKey(rpcUrl, address);
809
+ * if (key) invalidateSharedQuery(key);
810
+ * ```
811
+ */
812
+ declare function getTokensQueryKey(rpcUrl: string | null, address: string | null): string | null;
649
813
  interface Token {
650
814
  /** Token mint address */
651
815
  mint: string;
@@ -671,8 +835,12 @@ interface Token {
671
835
  isFrozen: boolean;
672
836
  /** Owner address */
673
837
  owner: string;
838
+ /** Which token program (token or token-2022) */
839
+ programId?: 'token' | 'token-2022';
674
840
  }
675
841
  interface UseTokensOptions {
842
+ /** Whether the hook is enabled (default: true) */
843
+ enabled?: boolean;
676
844
  /** Whether to include zero balance tokens */
677
845
  includeZeroBalance?: boolean;
678
846
  /** Whether to auto-refresh */
@@ -683,6 +851,14 @@ interface UseTokensOptions {
683
851
  fetchMetadata?: boolean;
684
852
  /** Include native SOL balance */
685
853
  includeNativeSol?: boolean;
854
+ /** Time in ms to consider data fresh (default: 0) */
855
+ staleTimeMs?: number;
856
+ /** Time in ms to keep cache after unmount (default: 300000) */
857
+ cacheTimeMs?: number;
858
+ /** Whether to refetch on mount (default: 'stale') */
859
+ refetchOnMount?: boolean | 'stale';
860
+ /** Override the Solana client from provider */
861
+ client?: SolanaClient | null;
686
862
  }
687
863
  interface UseTokensReturn {
688
864
  /** List of tokens */
@@ -691,17 +867,34 @@ interface UseTokensReturn {
691
867
  isLoading: boolean;
692
868
  /** Error if fetch failed */
693
869
  error: Error | null;
694
- /** Refetch tokens */
695
- refetch: () => Promise<void>;
870
+ /** Refetch tokens, optionally with an abort signal */
871
+ refetch: (options?: {
872
+ signal?: AbortSignal;
873
+ }) => Promise<void>;
874
+ /** Abort any in-flight token fetch */
875
+ abort: () => void;
696
876
  /** Last updated timestamp */
697
877
  lastUpdated: Date | null;
698
878
  /** Total number of token accounts */
699
879
  totalAccounts: number;
700
880
  }
881
+ /**
882
+ * Clear all token caches. Called on disconnect/session end.
883
+ */
884
+ declare function clearTokenCaches(): void;
701
885
  /**
702
886
  * Hook for fetching wallet token holdings.
703
887
  * Fetches metadata (name, symbol, icon) from Solana Token List API and USD prices from CoinGecko.
704
888
  *
889
+ * Features:
890
+ * - Automatic request deduplication across components
891
+ * - Shared data with useBalance (single RPC query)
892
+ * - Token-2022 support
893
+ * - Shared polling interval (ref-counted)
894
+ * - Configurable auto-refresh behavior
895
+ * - Abort support for in-flight requests
896
+ * - Optional client override
897
+ *
705
898
  * @example Basic usage
706
899
  * ```tsx
707
900
  * function TokenList() {
@@ -722,9 +915,55 @@ interface UseTokensReturn {
722
915
  * );
723
916
  * }
724
917
  * ```
918
+ *
919
+ * @example With options
920
+ * ```tsx
921
+ * function TokenList() {
922
+ * const { tokens, refetch, abort } = useTokens({
923
+ * autoRefresh: true,
924
+ * refreshInterval: 30000,
925
+ * includeNativeSol: true,
926
+ * });
927
+ *
928
+ * return (
929
+ * <div>
930
+ * {tokens.map(token => (
931
+ * <div key={token.mint}>{token.symbol}: {token.formatted}</div>
932
+ * ))}
933
+ * <button onClick={() => refetch()}>Refresh</button>
934
+ * </div>
935
+ * );
936
+ * }
937
+ * ```
725
938
  */
726
939
  declare function useTokens(options?: UseTokensOptions): UseTokensReturn;
727
940
 
941
+ /**
942
+ * Invalidate a query, causing it to refetch on next access
943
+ */
944
+ declare function invalidateSharedQuery(key: string): void;
945
+ /**
946
+ * Clear all cached queries (useful for logout/disconnect)
947
+ */
948
+ declare function clearSharedQueryCache(): void;
949
+
950
+ /**
951
+ * Generate the query key for wallet assets.
952
+ * Use this to invalidate the cache externally.
953
+ *
954
+ * @param rpcUrl - The RPC URL being used
955
+ * @param address - The wallet address
956
+ * @returns The stringified query key, or null if params are invalid
957
+ *
958
+ * @example
959
+ * ```tsx
960
+ * // Invalidate wallet assets after a transaction
961
+ * const key = getWalletAssetsQueryKey(rpcUrl, address);
962
+ * if (key) invalidateSharedQuery(key);
963
+ * ```
964
+ */
965
+ declare function getWalletAssetsQueryKey(rpcUrl: string | null, address: string | null): string | null;
966
+
728
967
  interface DisconnectElementProps {
729
968
  /** Display variant */
730
969
  variant?: 'button' | 'menuitem' | 'link';
@@ -1032,6 +1271,20 @@ interface TransactionHistoryElementRenderProps {
1032
1271
  interface TransactionHistoryElementProps {
1033
1272
  /** Number of transactions to display */
1034
1273
  limit?: number;
1274
+ /**
1275
+ * Fetch full transaction details (slower, but enables richer parsing like token icons + swap detection).
1276
+ *
1277
+ * Passed through to `useTransactions({ fetchDetails })`.
1278
+ * @default true
1279
+ */
1280
+ fetchDetails?: boolean;
1281
+ /**
1282
+ * Max concurrent `getTransaction` RPC calls when `fetchDetails` is true.
1283
+ *
1284
+ * Passed through to `useTransactions({ detailsConcurrency })`.
1285
+ * @default 6
1286
+ */
1287
+ detailsConcurrency?: number;
1035
1288
  /** Show transaction status */
1036
1289
  showStatus?: boolean;
1037
1290
  /** Show transaction time */
@@ -1062,6 +1315,11 @@ interface TransactionHistoryElementProps {
1062
1315
  * <TransactionHistoryElement limit={10} showLoadMore />
1063
1316
  * ```
1064
1317
  *
1318
+ * @example Throttle-safe details fetching (recommended for public RPCs)
1319
+ * ```tsx
1320
+ * <TransactionHistoryElement limit={10} fetchDetails detailsConcurrency={4} />
1321
+ * ```
1322
+ *
1065
1323
  * @example Custom item render
1066
1324
  * ```tsx
1067
1325
  * <TransactionHistoryElement
@@ -1073,7 +1331,7 @@ interface TransactionHistoryElementProps {
1073
1331
  * />
1074
1332
  * ```
1075
1333
  */
1076
- declare function TransactionHistoryElement({ limit, showStatus, showTime, className, variant, showLoadMore, showSkeleton, render, renderItem, }: TransactionHistoryElementProps): react_jsx_runtime.JSX.Element;
1334
+ declare function TransactionHistoryElement({ limit, fetchDetails, detailsConcurrency, showStatus, showTime, className, variant, showLoadMore, showSkeleton, render, renderItem, }: TransactionHistoryElementProps): react_jsx_runtime.JSX.Element;
1077
1335
  declare namespace TransactionHistoryElement {
1078
1336
  var displayName: string;
1079
1337
  }
@@ -1133,4 +1391,13 @@ declare namespace TokenListElement {
1133
1391
  var displayName: string;
1134
1392
  }
1135
1393
 
1136
- export { AccountElement, type AccountElementProps, type AccountElementRenderProps, AccountInfo, UnifiedProvider as AppProvider, BalanceElement, type BalanceElementProps, type BalanceElementRenderProps, ClusterElement, type ClusterElementProps, type ClusterElementRenderProps, ClusterType, ConnectorConfig, DisconnectElement, type DisconnectElementProps, MobileWalletAdapterConfig, type Token, type TokenBalance, TokenListElement, type TokenListElementProps, type TokenListElementRenderProps, TransactionHistoryElement, type TransactionHistoryElementProps, type TransactionHistoryElementRenderProps, type TransactionInfo, type TransactionPrepareOptions, UnifiedConfig, UnifiedProvider, type UnifiedProviderProps, type UseAccountReturn, 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, WalletListElement, type WalletListElementProps, type WalletListElementRenderProps, type WalletListElementWalletProps, useAccount, useBalance, useCluster, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo };
1394
+ /**
1395
+ * Shine overlay component for skeleton loading states.
1396
+ * Injects CSS styles once and provides the animated shine effect.
1397
+ */
1398
+ declare function SkeletonShine(): react_jsx_runtime.JSX.Element;
1399
+ declare namespace SkeletonShine {
1400
+ var displayName: string;
1401
+ }
1402
+
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 };
package/dist/react.js CHANGED
@@ -1,113 +1,145 @@
1
1
  'use strict';
2
2
 
3
- var chunkULUYX23Q_js = require('./chunk-ULUYX23Q.js');
4
- var chunkJUZVCBAI_js = require('./chunk-JUZVCBAI.js');
3
+ var chunkK3BNIGPX_js = require('./chunk-K3BNIGPX.js');
4
+ var chunkFTXIXM43_js = require('./chunk-FTXIXM43.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AccountElement", {
9
9
  enumerable: true,
10
- get: function () { return chunkULUYX23Q_js.AccountElement; }
10
+ get: function () { return chunkK3BNIGPX_js.AccountElement; }
11
11
  });
12
12
  Object.defineProperty(exports, "AppProvider", {
13
13
  enumerable: true,
14
- get: function () { return chunkULUYX23Q_js.UnifiedProvider; }
14
+ get: function () { return chunkK3BNIGPX_js.AppProvider; }
15
15
  });
16
16
  Object.defineProperty(exports, "BalanceElement", {
17
17
  enumerable: true,
18
- get: function () { return chunkULUYX23Q_js.BalanceElement; }
18
+ get: function () { return chunkK3BNIGPX_js.BalanceElement; }
19
19
  });
20
20
  Object.defineProperty(exports, "ClusterElement", {
21
21
  enumerable: true,
22
- get: function () { return chunkULUYX23Q_js.ClusterElement; }
22
+ get: function () { return chunkK3BNIGPX_js.ClusterElement; }
23
23
  });
24
24
  Object.defineProperty(exports, "ConnectorProvider", {
25
25
  enumerable: true,
26
- get: function () { return chunkULUYX23Q_js.ConnectorProvider; }
26
+ get: function () { return chunkK3BNIGPX_js.ConnectorProvider; }
27
27
  });
28
28
  Object.defineProperty(exports, "DisconnectElement", {
29
29
  enumerable: true,
30
- get: function () { return chunkULUYX23Q_js.DisconnectElement; }
30
+ get: function () { return chunkK3BNIGPX_js.DisconnectElement; }
31
+ });
32
+ Object.defineProperty(exports, "SkeletonShine", {
33
+ enumerable: true,
34
+ get: function () { return chunkK3BNIGPX_js.SkeletonShine; }
31
35
  });
32
36
  Object.defineProperty(exports, "TokenListElement", {
33
37
  enumerable: true,
34
- get: function () { return chunkULUYX23Q_js.TokenListElement; }
38
+ get: function () { return chunkK3BNIGPX_js.TokenListElement; }
35
39
  });
36
40
  Object.defineProperty(exports, "TransactionHistoryElement", {
37
41
  enumerable: true,
38
- get: function () { return chunkULUYX23Q_js.TransactionHistoryElement; }
42
+ get: function () { return chunkK3BNIGPX_js.TransactionHistoryElement; }
39
43
  });
40
44
  Object.defineProperty(exports, "UnifiedProvider", {
41
45
  enumerable: true,
42
- get: function () { return chunkULUYX23Q_js.UnifiedProvider; }
46
+ get: function () { return chunkK3BNIGPX_js.UnifiedProvider; }
43
47
  });
44
48
  Object.defineProperty(exports, "WalletListElement", {
45
49
  enumerable: true,
46
- get: function () { return chunkULUYX23Q_js.WalletListElement; }
50
+ get: function () { return chunkK3BNIGPX_js.WalletListElement; }
51
+ });
52
+ Object.defineProperty(exports, "clearSharedQueryCache", {
53
+ enumerable: true,
54
+ get: function () { return chunkK3BNIGPX_js.clearSharedQueryCache; }
55
+ });
56
+ Object.defineProperty(exports, "clearTokenCaches", {
57
+ enumerable: true,
58
+ get: function () { return chunkK3BNIGPX_js.clearTokenCaches; }
59
+ });
60
+ Object.defineProperty(exports, "getBalanceQueryKey", {
61
+ enumerable: true,
62
+ get: function () { return chunkK3BNIGPX_js.getBalanceQueryKey; }
63
+ });
64
+ Object.defineProperty(exports, "getTokensQueryKey", {
65
+ enumerable: true,
66
+ get: function () { return chunkK3BNIGPX_js.getTokensQueryKey; }
67
+ });
68
+ Object.defineProperty(exports, "getTransactionsQueryKey", {
69
+ enumerable: true,
70
+ get: function () { return chunkK3BNIGPX_js.getTransactionsQueryKey; }
71
+ });
72
+ Object.defineProperty(exports, "getWalletAssetsQueryKey", {
73
+ enumerable: true,
74
+ get: function () { return chunkK3BNIGPX_js.getWalletAssetsQueryKey; }
75
+ });
76
+ Object.defineProperty(exports, "invalidateSharedQuery", {
77
+ enumerable: true,
78
+ get: function () { return chunkK3BNIGPX_js.invalidateSharedQuery; }
47
79
  });
48
80
  Object.defineProperty(exports, "useAccount", {
49
81
  enumerable: true,
50
- get: function () { return chunkULUYX23Q_js.useAccount; }
82
+ get: function () { return chunkK3BNIGPX_js.useAccount; }
51
83
  });
52
84
  Object.defineProperty(exports, "useBalance", {
53
85
  enumerable: true,
54
- get: function () { return chunkULUYX23Q_js.useBalance; }
86
+ get: function () { return chunkK3BNIGPX_js.useBalance; }
55
87
  });
56
88
  Object.defineProperty(exports, "useCluster", {
57
89
  enumerable: true,
58
- get: function () { return chunkULUYX23Q_js.useCluster; }
90
+ get: function () { return chunkK3BNIGPX_js.useCluster; }
59
91
  });
60
92
  Object.defineProperty(exports, "useConnector", {
61
93
  enumerable: true,
62
- get: function () { return chunkULUYX23Q_js.useConnector; }
94
+ get: function () { return chunkK3BNIGPX_js.useConnector; }
63
95
  });
64
96
  Object.defineProperty(exports, "useConnectorClient", {
65
97
  enumerable: true,
66
- get: function () { return chunkULUYX23Q_js.useConnectorClient; }
98
+ get: function () { return chunkK3BNIGPX_js.useConnectorClient; }
67
99
  });
68
100
  Object.defineProperty(exports, "useGillSolanaClient", {
69
101
  enumerable: true,
70
- get: function () { return chunkULUYX23Q_js.useGillSolanaClient; }
102
+ get: function () { return chunkK3BNIGPX_js.useGillSolanaClient; }
71
103
  });
72
104
  Object.defineProperty(exports, "useGillTransactionSigner", {
73
105
  enumerable: true,
74
- get: function () { return chunkULUYX23Q_js.useGillTransactionSigner; }
106
+ get: function () { return chunkK3BNIGPX_js.useGillTransactionSigner; }
75
107
  });
76
108
  Object.defineProperty(exports, "useKitTransactionSigner", {
77
109
  enumerable: true,
78
- get: function () { return chunkULUYX23Q_js.useKitTransactionSigner; }
110
+ get: function () { return chunkK3BNIGPX_js.useKitTransactionSigner; }
79
111
  });
80
112
  Object.defineProperty(exports, "useSolanaClient", {
81
113
  enumerable: true,
82
- get: function () { return chunkULUYX23Q_js.useSolanaClient; }
114
+ get: function () { return chunkK3BNIGPX_js.useSolanaClient; }
83
115
  });
84
116
  Object.defineProperty(exports, "useTokens", {
85
117
  enumerable: true,
86
- get: function () { return chunkULUYX23Q_js.useTokens; }
118
+ get: function () { return chunkK3BNIGPX_js.useTokens; }
87
119
  });
88
120
  Object.defineProperty(exports, "useTransactionPreparer", {
89
121
  enumerable: true,
90
- get: function () { return chunkULUYX23Q_js.useTransactionPreparer; }
122
+ get: function () { return chunkK3BNIGPX_js.useTransactionPreparer; }
91
123
  });
92
124
  Object.defineProperty(exports, "useTransactionSigner", {
93
125
  enumerable: true,
94
- get: function () { return chunkULUYX23Q_js.useTransactionSigner; }
126
+ get: function () { return chunkK3BNIGPX_js.useTransactionSigner; }
95
127
  });
96
128
  Object.defineProperty(exports, "useTransactions", {
97
129
  enumerable: true,
98
- get: function () { return chunkULUYX23Q_js.useTransactions; }
130
+ get: function () { return chunkK3BNIGPX_js.useTransactions; }
99
131
  });
100
132
  Object.defineProperty(exports, "useWalletInfo", {
101
133
  enumerable: true,
102
- get: function () { return chunkULUYX23Q_js.useWalletInfo; }
134
+ get: function () { return chunkK3BNIGPX_js.useWalletInfo; }
103
135
  });
104
136
  Object.defineProperty(exports, "ConnectorErrorBoundary", {
105
137
  enumerable: true,
106
- get: function () { return chunkJUZVCBAI_js.ConnectorErrorBoundary; }
138
+ get: function () { return chunkFTXIXM43_js.ConnectorErrorBoundary; }
107
139
  });
108
140
  Object.defineProperty(exports, "withErrorBoundary", {
109
141
  enumerable: true,
110
- get: function () { return chunkJUZVCBAI_js.withErrorBoundary; }
142
+ get: function () { return chunkFTXIXM43_js.withErrorBoundary; }
111
143
  });
112
144
  //# sourceMappingURL=react.js.map
113
145
  //# sourceMappingURL=react.js.map
package/dist/react.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { AccountElement, UnifiedProvider as AppProvider, BalanceElement, ClusterElement, ConnectorProvider, DisconnectElement, TokenListElement, TransactionHistoryElement, UnifiedProvider, WalletListElement, useAccount, useBalance, useCluster, useConnector, useConnectorClient, useGillSolanaClient, useGillTransactionSigner, useKitTransactionSigner, useSolanaClient, useTokens, useTransactionPreparer, useTransactionSigner, useTransactions, useWalletInfo } from './chunk-3STZXVXD.mjs';
2
- export { ConnectorErrorBoundary, withErrorBoundary } from './chunk-VMSZJPR5.mjs';
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';
3
3
  //# sourceMappingURL=react.mjs.map
4
4
  //# sourceMappingURL=react.mjs.map