@lumerahq/ui 0.13.0-dev.2 → 0.13.0
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 +29 -21
- package/dist/{RecordSheet-CawHELpB.js → RecordSheet-BGs3rudM.js} +9146 -5815
- package/dist/{automations-EgDXJ43_.js → automations-DGUEnAYR.js} +199 -38
- package/dist/components/audit-log/AuditLog.d.ts +51 -0
- package/dist/components/audit-log/AuditLog.d.ts.map +1 -0
- package/dist/components/audit-log/AuditLogEntry.d.ts +19 -0
- package/dist/components/audit-log/AuditLogEntry.d.ts.map +1 -0
- package/dist/components/audit-log/index.d.ts +2 -0
- package/dist/components/audit-log/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -5
- package/dist/{highlighted-body-OFNGDK62-TFNZl-GI.js → highlighted-body-OFNGDK62-V6FEuBTg.js} +1 -1
- package/dist/hooks/index.d.ts +1 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -7
- package/dist/hooks/use-audit-log.d.ts +18 -0
- package/dist/hooks/use-audit-log.d.ts.map +1 -0
- package/dist/index.js +55 -65
- package/dist/lib/audit-log-core.d.ts +46 -40
- package/dist/lib/audit-log-core.d.ts.map +1 -1
- package/dist/lib/audit-log.d.ts +5 -5
- package/dist/lib/audit-log.d.ts.map +1 -1
- package/dist/lib/bridge.d.ts +28 -0
- package/dist/lib/bridge.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +36 -46
- package/dist/mermaid-GHXKKRXX-AvjGDhsO.js +4 -0
- package/dist/ui.css +185 -1
- package/dist/{use-automation-run-IypX1vtN.js → use-automation-run-D6DIaHy3.js} +189 -3
- package/dist/{use-sql-table-By700ZAo.js → use-sql-table-BfA0A-w3.js} +3 -72
- package/package.json +1 -1
- package/dist/audit-log-BPvip04_.js +0 -128
- package/dist/hooks/use-record-audit-log-snapshot.d.ts +0 -15
- package/dist/hooks/use-record-audit-log-snapshot.d.ts.map +0 -1
- package/dist/hooks/use-record-audit-log.d.ts +0 -23
- package/dist/hooks/use-record-audit-log.d.ts.map +0 -1
- package/dist/mermaid-GHXKKRXX-9ec0sPET.js +0 -4
package/README.md
CHANGED
|
@@ -52,31 +52,39 @@ import { AutomationRunner, DataTable, RecordSheet } from '@lumerahq/ui';
|
|
|
52
52
|
|
|
53
53
|
### Record Audit Log
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
20 audited collections. Pass the same bare collection names used by record
|
|
57
|
-
CRUD:
|
|
55
|
+
Show one globally ordered history across up to 20 audited collections:
|
|
58
56
|
|
|
59
57
|
```tsx
|
|
60
|
-
import {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
collections
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
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
|
+
activityNouns={{
|
|
67
|
+
finance__invoices: 'invoice',
|
|
68
|
+
finance__payments: 'payment',
|
|
69
|
+
}}
|
|
70
|
+
fieldLabels={{ customer_id: 'Customer' }}
|
|
71
|
+
showSystemFields={false}
|
|
72
|
+
exportFilename="finance-activity.csv"
|
|
73
|
+
/>;
|
|
72
74
|
```
|
|
73
75
|
|
|
74
|
-
The
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
The component includes collection, date/time, event, and actor filters with
|
|
77
|
+
visible active-filter chips, quick date presets, lazy before/after details,
|
|
78
|
+
pagination, and CSV export with filename/count/truncation feedback. It also
|
|
79
|
+
supports controlled filters, column and density options, record navigation
|
|
80
|
+
callbacks, and custom loading, empty, and error states. Friendly collection
|
|
81
|
+
labels are used in the collection column and CSV export. Pass
|
|
82
|
+
`activityNouns` when the collection label is plural, so activity text can read
|
|
83
|
+
naturally, for example "Updated invoice" instead of "Updated Invoices". If an
|
|
84
|
+
activity noun is not provided, the component falls back to the friendly
|
|
85
|
+
collection label. If a selected collection has auditing turned off, existing
|
|
86
|
+
history remains visible and the component shows a warning that future changes
|
|
87
|
+
will not be recorded.
|
|
80
88
|
|
|
81
89
|
### Assistant Chat
|
|
82
90
|
|