@lumerahq/ui 0.12.0-dev.0 → 0.12.0-dev.2
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/README.md +28 -0
- package/dist/{RecordSheet-DJoKhb3u.js → RecordSheet-B0IaPMZs.js} +574 -159
- package/dist/components/audit-log/AuditLog.d.ts +38 -1
- package/dist/components/audit-log/AuditLog.d.ts.map +1 -1
- package/dist/components/audit-log/AuditLogEntry.d.ts +15 -2
- package/dist/components/audit-log/AuditLogEntry.d.ts.map +1 -1
- package/dist/components/audit-log/index.d.ts +1 -1
- package/dist/components/audit-log/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{highlighted-body-OFNGDK62-DD5EYZQR.js → highlighted-body-OFNGDK62-DzatZiEq.js} +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-audit-log.d.ts +2 -1
- package/dist/hooks/use-audit-log.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/lib/audit-log-core.d.ts +16 -1
- package/dist/lib/audit-log-core.d.ts.map +1 -1
- package/dist/lib/audit-log.d.ts +3 -3
- package/dist/lib/audit-log.d.ts.map +1 -1
- package/dist/mermaid-GHXKKRXX-BPtfcw6Y.js +4 -0
- package/dist/ui.css +39 -5
- package/dist/{use-automation-run-BrghacFY.js → use-automation-run-DmMpzFCS.js} +47 -10
- package/package.json +1 -1
- package/dist/mermaid-GHXKKRXX-BdrbO7XD.js +0 -4
package/README.md
CHANGED
|
@@ -50,6 +50,34 @@ 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 with
|
|
73
|
+
visible active-filter chips; lazy before/after details; pagination; and CSV
|
|
74
|
+
export with filename/count/truncation feedback. It also supports controlled
|
|
75
|
+
filters, column and density options, record navigation callbacks, and custom
|
|
76
|
+
loading, empty, and error states. Friendly collection labels are used in both
|
|
77
|
+
the collection column and activity text. If a selected collection has auditing
|
|
78
|
+
turned off, existing history remains visible and the component shows a warning
|
|
79
|
+
that future changes will not be recorded.
|
|
80
|
+
|
|
53
81
|
### Assistant Chat
|
|
54
82
|
|
|
55
83
|
Use `AssistantPage` for a full-page chat, `AssistantWidget` for a floating widget, or `AssistantChat` when embedding the chat surface inside custom chrome.
|