@molecule/app-audit-log-row-react 4.0.0 → 4.1.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 +3 -3
- package/dist/AuditLogRow.d.ts.map +1 -1
- package/dist/AuditLogRow.js +2 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-25T00:35:35.494Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-audit-log-row-react
|
|
@@ -110,8 +110,8 @@ function AuditLogRow({ entry, onClick, className }: AuditLogRowProps): JSX.Eleme
|
|
|
110
110
|
Peer dependencies:
|
|
111
111
|
|
|
112
112
|
- `@molecule/app-react` ^4.0.0
|
|
113
|
-
- `@molecule/app-ui` ^1.0
|
|
114
|
-
- `@molecule/app-ui-react` ^4.
|
|
113
|
+
- `@molecule/app-ui` ^1.5.0
|
|
114
|
+
- `@molecule/app-ui-react` ^4.4.0
|
|
115
115
|
- `react` ^18.0.0 || ^19.0.0
|
|
116
116
|
|
|
117
117
|
### Runtime Dependencies
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLogRow.d.ts","sourceRoot":"","sources":["../src/AuditLogRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"AuditLogRow.d.ts","sourceRoot":"","sources":["../src/AuditLogRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAK3C,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,wBAAwB;IACxB,KAAK,EAAE,SAAS,CAAA;IAChB,wEAAwE;IACxE,MAAM,EAAE,SAAS,CAAA;IACjB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,qGAAqG;IACrG,SAAS,EAAE,SAAS,CAAA;IACpB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,kCAAkC;IAClC,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,wCAAwC;IACxC,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,aAAa,CAAA;IACpB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CA+ExF"}
|
package/dist/AuditLogRow.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getClassMap } from '@molecule/app-ui';
|
|
3
|
+
import { Box, Pressable, Text } from '@molecule/app-ui-react/elements';
|
|
3
4
|
/**
|
|
4
5
|
* One row of an audit / activity / event log. Shape:
|
|
5
6
|
* `[actor] [action] [target] · [timestamp]` with optional
|
|
@@ -21,5 +22,5 @@ export function AuditLogRow({ entry, onClick, className }) {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
: undefined;
|
|
24
|
-
return (_jsx("div",
|
|
25
|
+
return (_jsx(Pressable, { as: "div", onClick: onClick, onKeyDown: handleKeyDown, role: onClick ? 'button' : undefined, tabIndex: onClick ? 0 : undefined, "data-mol-id": "audit-log-row", className: cm.cn(cm.flex({ align: 'start', gap: 'sm' }), cm.sp('py', 2), onClick ? cm.cursorPointer : undefined, className), children: _jsxs(Box, { as: "div", className: cm.cn(cm.flex1, cm.stack(1)), children: [_jsxs(Box, { as: "div", className: cm.cn(cm.textSize('sm')), children: [_jsx(Box, { as: "span", className: cm.fontWeight('semibold'), children: actor }), ' ', _jsx(Box, { as: "span", children: action }), ' ', target && (_jsx(Box, { as: "span", className: cm.fontWeight('medium'), children: target })), _jsxs(Box, { as: "span", className: cm.cn(cm.sp('ml', 2), cm.textSize('xs')), children: ["\u00B7 ", timestamp] }), environment && (_jsxs(Box, { as: "span", className: cm.cn(cm.sp('ml', 2), cm.textSize('xs'), cm.fontWeight('semibold')), children: ["[", environment, "]"] }))] }), showDelta && (_jsxs(Box, { as: "div", className: cm.cn(cm.flex({ align: 'center', gap: 'sm' }), cm.textSize('xs')), children: [oldValue !== undefined && (_jsx(Box, { as: "span", style: { opacity: 0.7 }, webStyle: { textDecoration: 'line-through' }, children: oldValue })), oldValue !== undefined && newValue !== undefined && (_jsx(Text, { as: "span", "aria-hidden": true, children: "\u2192" })), newValue !== undefined && _jsx(Box, { as: "span", children: newValue })] })), traceId && (_jsx(Box, { as: "span", className: cm.textSize('xs'), children: traceId }))] }) }));
|
|
25
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-audit-log-row-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Audit / error / event-log row: actor + action + object + timestamp + old/new values",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-audit-log-row-react",
|
|
6
6
|
"type": "module",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@molecule/app-react": "^4.0.0",
|
|
37
|
-
"@molecule/app-ui": "^1.0
|
|
38
|
-
"@molecule/app-ui-react": "^4.
|
|
37
|
+
"@molecule/app-ui": "^1.5.0",
|
|
38
|
+
"@molecule/app-ui-react": "^4.4.0",
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@molecule/app-react": "4.
|
|
43
|
-
"@molecule/app-ui": "1.
|
|
44
|
-
"@molecule/app-ui-react": "4.
|
|
42
|
+
"@molecule/app-react": "4.17.0",
|
|
43
|
+
"@molecule/app-ui": "1.13.0",
|
|
44
|
+
"@molecule/app-ui-react": "4.11.0",
|
|
45
45
|
"@testing-library/dom": "10.4.2",
|
|
46
46
|
"@testing-library/react": "16.3.3",
|
|
47
47
|
"@types/node": "26.6.5",
|
|
48
48
|
"@types/react": "19.3.0",
|
|
49
49
|
"@types/react-dom": "19.3.0",
|
|
50
|
-
"jsdom": "
|
|
50
|
+
"jsdom": "31.0.1",
|
|
51
51
|
"react": "19.3.1",
|
|
52
52
|
"react-dom": "19.3.1",
|
|
53
53
|
"typescript": "6.0.3",
|