@chainberry/ui-components 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -944,6 +944,11 @@ declare function filterMatches_2(r: TreasuryActivityRecord, f: ActivityFilter):
944
944
  /** A short, human name summarizing the selection — used to prefill the preset name. */
945
945
  declare function filterToName(f: TxFilter): string;
946
946
 
947
+ /** Filter the user groups by a query. A hit on the userId keeps the whole group;
948
+ otherwise only the address rows that match are kept, dropping empty groups.
949
+ Powers the page search box. */
950
+ export declare function filterUserGroups(groups: UserWalletGroup[], query: string): UserWalletGroup[];
951
+
947
952
  export declare function findNavItem(id: string): NavItemConfig | undefined;
948
953
 
949
954
  export declare type FooterAction = {
@@ -2356,6 +2361,9 @@ export declare function UiBadge({ className, variant, asChild, ...props }: React
2356
2361
 
2357
2362
  export declare function useHeaderExtension(): HeaderStickyValue;
2358
2363
 
2364
+ /** Deposit addresses grouped by end user. */
2365
+ declare const USER_WALLET_GROUPS: UserWalletGroup[];
2366
+
2359
2367
  export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, headerMode, onHeaderModeChange, onAccount, onLogout, onTakeTour, onResetDemo, collapsed, side, align, fullWidth, }: {
2360
2368
  name?: string;
2361
2369
  avatarSrc?: string;
@@ -2379,6 +2387,44 @@ export declare function UserMenu({ name, avatarSrc, navMode, onNavModeChange, he
2379
2387
  fullWidth?: boolean;
2380
2388
  }): JSX.Element;
2381
2389
 
2390
+ /** An end user and the deposit addresses they hold across networks. */
2391
+ export declare type UserWalletGroup = {
2392
+ /** userId — group key + React key. */
2393
+ id: string;
2394
+ userId: string;
2395
+ rows: UserWalletRow[];
2396
+ };
2397
+
2398
+ /** One deposit address held by a user — a single table row. */
2399
+ export declare type UserWalletRow = {
2400
+ id: string;
2401
+ /** On-chain deposit address (rendered as a link). */
2402
+ address: string;
2403
+ /** Destination tag / memo — only networks that share one address across users
2404
+ (e.g. TON) carry it; omitted elsewhere. */
2405
+ tag?: string;
2406
+ /** Network code for the badge logo (resolved via coinSrc), e.g. "TRX". */
2407
+ network: string;
2408
+ /** Network label shown in the row, e.g. "TRON". */
2409
+ networkName: string;
2410
+ };
2411
+
2412
+ export declare namespace userWalletsData {
2413
+ export {
2414
+ filterUserGroups,
2415
+ UserWalletRow,
2416
+ UserWalletGroup,
2417
+ USER_WALLET_GROUPS
2418
+ }
2419
+ }
2420
+
2421
+ export declare function UserWalletsPage(): JSX.Element;
2422
+
2423
+ export declare function UserWalletsTable({ groups, className, }: {
2424
+ groups: UserWalletGroup[];
2425
+ className?: string;
2426
+ }): JSX.Element;
2427
+
2382
2428
  /** A vault and the currency/network rows it holds. */
2383
2429
  declare type Vault = {
2384
2430
  kind: VaultKind;