@lumerahq/ui 0.12.0-dev.4 → 0.13.0-dev.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 +16 -5
- package/dist/{RecordSheet-BuB-d3iw.js → RecordSheet-BwslIDfX.js} +360 -294
- package/dist/{automations-EgDXJ43_.js → automations-D4tZC_G7.js} +162 -1
- package/dist/components/audit-log/AuditLog.d.ts +3 -3
- package/dist/components/audit-log/AuditLog.d.ts.map +1 -1
- package/dist/components/audit-log/AuditLogEntry.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{highlighted-body-OFNGDK62-DkOFnnd1.js → highlighted-body-OFNGDK62-ClrpL6m7.js} +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.js +11 -4
- package/dist/lib/audit-log-core.d.ts +12 -0
- package/dist/lib/audit-log-core.d.ts.map +1 -1
- package/dist/lib/audit-log.d.ts +1 -1
- package/dist/lib/audit-log.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +8 -1
- package/dist/mermaid-GHXKKRXX-B_NhCUBg.js +4 -0
- package/dist/{use-automation-run-B2iPUXiG.js → use-automation-run-BHa7eyZU.js} +1 -142
- package/dist/{use-sql-table-DWHMqSIq.js → use-sql-table-CkRTvZmH.js} +1 -1
- package/package.json +1 -1
- package/dist/mermaid-GHXKKRXX-Dcx-81a_.js +0 -4
package/README.md
CHANGED
|
@@ -58,14 +58,14 @@ Show one globally ordered history across up to 20 audited collections:
|
|
|
58
58
|
import { AuditLog } from '@lumerahq/ui';
|
|
59
59
|
|
|
60
60
|
<AuditLog
|
|
61
|
-
collections={['
|
|
61
|
+
collections={['invoices', 'payments']}
|
|
62
62
|
collectionLabels={{
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
invoices: 'Invoices',
|
|
64
|
+
payments: 'Payments',
|
|
65
65
|
}}
|
|
66
66
|
activityNouns={{
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
invoices: 'invoice',
|
|
68
|
+
payments: 'payment',
|
|
69
69
|
}}
|
|
70
70
|
fieldLabels={{ customer_id: 'Customer' }}
|
|
71
71
|
showSystemFields={false}
|
|
@@ -73,6 +73,10 @@ import { AuditLog } from '@lumerahq/ui';
|
|
|
73
73
|
/>;
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
Inside a project app, pass the same bare collection names used for CRUD. The
|
|
77
|
+
bridge supplies project context and the backend resolves the physical
|
|
78
|
+
namespaced collections. Outside a project context, pass physical API names.
|
|
79
|
+
|
|
76
80
|
The component includes collection, date/time, event, and actor filters with
|
|
77
81
|
visible active-filter chips, quick date presets, lazy before/after details,
|
|
78
82
|
pagination, and CSV export with filename/count/truncation feedback. It also
|
|
@@ -86,6 +90,13 @@ collection label. If a selected collection has auditing turned off, existing
|
|
|
86
90
|
history remains visible and the component shows a warning that future changes
|
|
87
91
|
will not be recorded.
|
|
88
92
|
|
|
93
|
+
For custom audit tooling, `@lumerahq/ui/lib` publicly exports
|
|
94
|
+
`listRecordAuditLog`, `getRecordAuditLogSnapshot`, and
|
|
95
|
+
`fetchRecordAuditLogCsv`. Each record entry includes stable `collection`,
|
|
96
|
+
`collection_id`, `record_id`, `record_label`, and `changed_fields` properties;
|
|
97
|
+
do not parse display labels from `details`. Built-in controls and states also
|
|
98
|
+
carry stable `data-audit-log-*` attributes for preview automation.
|
|
99
|
+
|
|
89
100
|
### Assistant Chat
|
|
90
101
|
|
|
91
102
|
Use `AssistantPage` for a full-page chat, `AssistantWidget` for a floating widget, or `AssistantChat` when embedding the chat surface inside custom chrome.
|