@chainberry/ui-components 1.0.24 → 1.0.25

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
@@ -30,6 +30,8 @@ export declare function ActionFooter({ actions, bleed, className, ...props }: {
30
30
  className?: string;
31
31
  } & Omit<ComponentProps<"div">, "className">): JSX.Element;
32
32
 
33
+ declare type ActionKey = 'approve' | 'reject' | 'refund' | 'verify';
34
+
33
35
  /** Fields every activity row carries, regardless of kind. */
34
36
  declare type ActivityBase = {
35
37
  /** stable id + React key */
@@ -49,25 +51,11 @@ export declare namespace activityData {
49
51
  }
50
52
  }
51
53
 
52
- export declare function ActivityDetailPanel({ record, open, onOpenChange, show, onApprove, onReject, }: {
54
+ export declare function ActivityDetailPanel({ record, open, onOpenChange, }: {
53
55
  record: TreasuryActivityRecord | null;
54
56
  open: boolean;
55
57
  onOpenChange: (open: boolean) => void;
56
- /** per-section visibility — every section defaults to shown */
57
- show?: ActivityDetailVisibility;
58
- onApprove?: () => void;
59
- onReject?: () => void;
60
- }): JSX.Element;
61
-
62
- /** Per-section visibility — every section defaults to shown. Lets a caller (or a
63
- story) trim sections without touching the panel. */
64
- declare type ActivityDetailVisibility = {
65
- timeline?: boolean;
66
- approvals?: boolean;
67
- compliance?: boolean;
68
- onchain?: boolean;
69
- notes?: boolean;
70
- };
58
+ }): JSX.Element;
71
59
 
72
60
  declare type ActivityFilter = {
73
61
  kinds: ActivityKind[];
@@ -892,8 +880,11 @@ declare const EXPORT_HISTORY: ExportEntry[];
892
880
  declare type ExportEntry = {
893
881
  id: string;
894
882
  file: string;
883
+ /** human period label shown in the row, e.g. "Jun 2026" */
895
884
  period: string;
896
885
  generatedBy: string;
886
+ /** the period this export covered — lets a re-download regenerate its data */
887
+ selection?: PeriodSelection;
897
888
  };
898
889
 
899
890
  export declare function ExportHistoryList({ entries, onDownload, }: {
@@ -1400,7 +1391,9 @@ export declare function NavSection({ label, icon, expanded, onToggle, controls,
1400
1391
  controls?: string;
1401
1392
  }): JSX.Element;
1402
1393
 
1403
- /** A row "needs action" — awaiting approval or flagged for a currency mismatch. */
1394
+ /** A row "needs action" — the operator review queue. Exactly three cases:
1395
+ * Deposit · Pending Approval, Withdrawal · Pending Approval, and
1396
+ * Deposit · Currency Mismatch. Nothing else enters the queue. */
1404
1397
  declare function needsAction(tx: Transaction): boolean;
1405
1398
 
1406
1399
  /** A blockchain a coin can arrive over, e.g. { code: "ETH", name: "Ethereum" }. */
@@ -2060,21 +2053,17 @@ declare type TransactionDetail = {
2060
2053
  blockchainDetails: BlockchainDetails_2[];
2061
2054
  };
2062
2055
 
2063
- export declare function TransactionDetailPanel({ detail, open, actionRequired, onOpenChange, show, onApprove, onReject, approveActionTitle, rejectActionTitle, approveActionDescription, rejectActionDescription, }: {
2056
+ export declare function TransactionDetailPanel({ detail, open, actionRequired, onOpenChange, show, onApprove, onReject, }: {
2064
2057
  detail: TransactionDetail | undefined;
2065
2058
  open: boolean;
2066
2059
  actionRequired?: boolean;
2067
2060
  onOpenChange: (open: boolean) => void;
2068
2061
  /** per-section, per-field visibility — every value defaults to shown */
2069
2062
  show?: TransactionDetailVisibility;
2070
- /** Risk Assessment approve/reject handlers (Pending Approval / Currency Mismatch) */
2071
- onApprove?: (id: string) => void;
2072
- onReject?: (id: string) => void;
2073
- /** Custom titles and descriptions for approve/reject actions */
2074
- approveActionTitle?: string;
2075
- rejectActionTitle?: string;
2076
- approveActionDescription?: string;
2077
- rejectActionDescription?: string;
2063
+ /** fired when an approve/verify flow is confirmed (after 2FA) */
2064
+ onApprove?: (key: ActionKey) => void;
2065
+ /** fired when a reject/refund flow is confirmed (after 2FA) */
2066
+ onReject?: (key: ActionKey) => void;
2078
2067
  }): JSX.Element;
2079
2068
 
2080
2069
  export declare type TransactionDetailVisibility = {
@@ -2104,7 +2093,8 @@ export declare function TransactionReference({ detail, show, className, }: {
2104
2093
 
2105
2094
  export declare type TransactionReferenceField = 'transactionUid' | 'partnerPaymentId';
2106
2095
 
2107
- /** Full ledger — the hand-written sample plus 243 generated test rows. */
2096
+ /** Full ledger — the curated Action-Required seed, the hand-written sample and
2097
+ 243 generated test rows. */
2108
2098
  declare const TRANSACTIONS: Transaction[];
2109
2099
 
2110
2100
  export declare namespace transactionsData {