@chainberry/ui-components 1.0.34 → 1.0.36

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
@@ -699,6 +699,9 @@ declare type DateField = 'createdAt' | 'confirmedAt';
699
699
  /** Default (English) tier column headers; override via the `tierLabels` prop. */
700
700
  export declare const DEFAULT_TIER_LABELS: Record<WalletTier, string>;
701
701
 
702
+ /** Default (English) copy; override any subset via the `labels` prop. */
703
+ export declare const DEFAULT_USER_WALLETS_LABELS: UserWalletsTableLabels;
704
+
702
705
  /** Default (English) copy; override any subset via the `labels` prop. */
703
706
  export declare const DEFAULT_V3_LABELS: WalletBalancesTableV3Labels;
704
707
 
@@ -2127,6 +2130,9 @@ declare type TransactionDetail = {
2127
2130
  updatedAt?: Date;
2128
2131
  userId?: string;
2129
2132
  customerWallet: string;
2133
+ /** Explorer URL for `customerWallet`, mirroring `fromAddressUrl`/`toAddressUrl`
2134
+ * on BlockchainDetails. Without it the address renders as an inert `#` link. */
2135
+ customerWalletUrl?: string;
2130
2136
  expectedAmount: string;
2131
2137
  rate: string;
2132
2138
  commission: Commission;
@@ -2392,6 +2398,9 @@ export declare type UserWalletGroup = {
2392
2398
  /** userId — group key + React key. */
2393
2399
  id: string;
2394
2400
  userId: string;
2401
+ /** Band heading, when the group is keyed by something other than an end user
2402
+ (e.g. a vault account). Defaults to `userId`. */
2403
+ label?: string;
2395
2404
  rows: UserWalletRow[];
2396
2405
  };
2397
2406
 
@@ -2407,6 +2416,17 @@ export declare type UserWalletRow = {
2407
2416
  network: string;
2408
2417
  /** Network label shown in the row, e.g. "TRON". */
2409
2418
  networkName: string;
2419
+ /** Block-explorer URL for this address. Defaults to the "#" placeholder. */
2420
+ addressUrl?: string;
2421
+ /** Network logo URL, when the caller resolves its own chain artwork.
2422
+ Defaults to `coinSrc(network)`. */
2423
+ networkSrc?: string;
2424
+ /** Asset code (e.g. "USDT"). Rows carrying one render an asset chip before
2425
+ the address — needed when a group holds addresses across several coins,
2426
+ which the by-network sample data never does. */
2427
+ symbol?: string;
2428
+ /** Asset logo URL. Defaults to `coinSrc(symbol)`. */
2429
+ symbolSrc?: string;
2410
2430
  };
2411
2431
 
2412
2432
  export declare namespace userWalletsData {
@@ -2420,11 +2440,26 @@ export declare namespace userWalletsData {
2420
2440
 
2421
2441
  export declare function UserWalletsPage(): JSX.Element;
2422
2442
 
2423
- export declare function UserWalletsTable({ groups, className, }: {
2443
+ export declare function UserWalletsTable({ groups, labels, className, }: {
2424
2444
  groups: UserWalletGroup[];
2445
+ /** Translated copy; unset keys fall back to English. */
2446
+ labels?: Partial<UserWalletsTableLabels>;
2425
2447
  className?: string;
2426
2448
  }): JSX.Element;
2427
2449
 
2450
+ /** Translatable strings the table renders itself. Everything else — the band
2451
+ headings, addresses, tags and network names — comes in through `groups`. */
2452
+ export declare type UserWalletsTableLabels = {
2453
+ /** Address column header. */
2454
+ address: string;
2455
+ /** Tag column header. */
2456
+ tag: string;
2457
+ /** Network column header. */
2458
+ network: string;
2459
+ /** A group's address count, e.g. (3) => "3 wallets". */
2460
+ wallets: (count: number) => string;
2461
+ };
2462
+
2428
2463
  /** A vault and the currency/network rows it holds. */
2429
2464
  declare type Vault = {
2430
2465
  kind: VaultKind;