/** * record-history.tsx * * — chronological timeline of all ActivityEvents for a single * record. Most recent event first. Each event is shown as a collapsible card * with actor, relative date, and the inline. * * Intended to be embedded in a record dialog tab ("Historial"). * * Transport-agnostic: events and column metadata arrive via props. No fetching. */ import * as React from 'react'; import type { ColumnDefinition } from './types'; import type { ActivityEvent } from './activity-diff'; export interface RecordHistoryProps { /** * All activity events for the record, in any order. The component sorts * them chronologically (most recent first). */ events: ActivityEvent[]; /** * Column metadata for the record's model. Forwarded to so * field labels and display types are resolved correctly. */ columns?: ColumnDefinition[]; /** IANA timezone for datetime cells. */ timeZone?: string; /** ISO 4217 currency for money cells. */ currency?: string; /** BCP-47 locale. Defaults to 'es'. */ locale?: string; /** Class applied to the root element. */ className?: string; /** * When provided, each event header shows an "open in activity log" button * that invokes this with the event — the host navigates to its activity * detail page (e.g. `/activity/:id`). Omitted → no button. */ onOpenEvent?: (event: ActivityEvent) => void; /** * Resolves an event's `actor_avatar` storage path to a fetchable URL * (e.g. ops' `getStorageUrl(path, 'avatars')`). Identity when omitted — * fine for absolute same-origin paths. */ resolveAvatarUrl?: (path: string) => string; /** * Localized label for the badge on each event header (e.g. "Clientes"). * Falls back to the event's raw `addon_key` when omitted. */ moduleLabel?: string; } /** * Shows the full activity history of a single record as a vertical timeline. * Each event is collapsible — the header shows actor + time; expanding reveals * the with field-level changes. */ export declare const RecordHistory: React.FC; //# sourceMappingURL=record-history.d.ts.map