@lumerahq/ui 0.11.3 → 0.12.0-dev.1

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 (32) hide show
  1. package/README.md +26 -0
  2. package/dist/{RecordSheet-SDw564xp.js → RecordSheet-gFscQDNL.js} +10408 -7405
  3. package/dist/{automations-DP-uLpqG.js → automations-EgDXJ43_.js} +2 -0
  4. package/dist/components/audit-log/AuditLog.d.ts +49 -0
  5. package/dist/components/audit-log/AuditLog.d.ts.map +1 -0
  6. package/dist/components/audit-log/AuditLogEntry.d.ts +17 -0
  7. package/dist/components/audit-log/AuditLogEntry.d.ts.map +1 -0
  8. package/dist/components/audit-log/index.d.ts +2 -0
  9. package/dist/components/audit-log/index.d.ts.map +1 -0
  10. package/dist/components/index.d.ts +1 -0
  11. package/dist/components/index.d.ts.map +1 -1
  12. package/dist/components/index.js +6 -5
  13. package/dist/{highlighted-body-OFNGDK62-7xB8r9be.js → highlighted-body-OFNGDK62-Dttr28i2.js} +1 -1
  14. package/dist/hooks/index.d.ts +1 -0
  15. package/dist/hooks/index.d.ts.map +1 -1
  16. package/dist/hooks/index.js +5 -4
  17. package/dist/hooks/use-audit-log.d.ts +18 -0
  18. package/dist/hooks/use-audit-log.d.ts.map +1 -0
  19. package/dist/index.js +16 -14
  20. package/dist/lib/api.d.ts +7 -0
  21. package/dist/lib/api.d.ts.map +1 -1
  22. package/dist/lib/audit-log-core.d.ts +88 -0
  23. package/dist/lib/audit-log-core.d.ts.map +1 -0
  24. package/dist/lib/audit-log.d.ts +7 -0
  25. package/dist/lib/audit-log.d.ts.map +1 -0
  26. package/dist/lib/index.js +1 -1
  27. package/dist/mermaid-GHXKKRXX-BxahFUxz.js +4 -0
  28. package/dist/ui.css +136 -0
  29. package/dist/{use-automation-run-BLpS4iVw.js → use-automation-run-D2HediFL.js} +165 -3
  30. package/dist/{use-sql-table-E2BSyNpX.js → use-sql-table-DWHMqSIq.js} +1 -1
  31. package/package.json +1 -1
  32. package/dist/mermaid-GHXKKRXX-D3I6gc8h.js +0 -4
package/README.md CHANGED
@@ -50,6 +50,32 @@ The stylesheet defines theme tokens as CSS custom properties. Override them on `
50
50
  import { AutomationRunner, DataTable, RecordSheet } from '@lumerahq/ui';
51
51
  ```
52
52
 
53
+ ### Record Audit Log
54
+
55
+ Show one globally ordered history across up to 20 audited collections:
56
+
57
+ ```tsx
58
+ import { AuditLog } from '@lumerahq/ui';
59
+
60
+ <AuditLog
61
+ collections={['finance__invoices', 'finance__payments']}
62
+ collectionLabels={{
63
+ finance__invoices: 'Invoices',
64
+ finance__payments: 'Payments',
65
+ }}
66
+ fieldLabels={{ customer_id: 'Customer' }}
67
+ showSystemFields={false}
68
+ exportFilename="finance-activity.csv"
69
+ />;
70
+ ```
71
+
72
+ The component includes collection, date/time, event, and actor filters; lazy
73
+ before/after details; pagination; and CSV export. It also supports controlled
74
+ filters, column and density options, record navigation callbacks, and custom
75
+ loading, empty, and error states. If a selected collection has auditing turned
76
+ off, existing history remains visible and the component shows a warning that
77
+ future changes will not be recorded.
78
+
53
79
  ### Assistant Chat
54
80
 
55
81
  Use `AssistantPage` for a full-page chat, `AssistantWidget` for a floating widget, or `AssistantChat` when embedding the chat surface inside custom chrome.