hazo_audit 2.2.2 → 2.2.3

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.
@@ -35,7 +35,7 @@ export function FieldAuditIcon(props) {
35
35
  document.removeEventListener('keydown', onKey);
36
36
  };
37
37
  }, [open]);
38
- return (_jsxs("div", { ref: rootRef, className: "relative inline-block", children: [_jsx("button", { type: "button", "aria-label": label ?? `View audit history for ${fieldPath}`, title: label ?? 'View audit history', onClick: () => setOpen((v) => !v), className: cn('inline-flex h-6 w-6 items-center justify-center rounded-full', 'text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-700', 'focus:outline-none focus:ring-2 focus:ring-slate-400', 'dark:hover:bg-slate-800 dark:hover:text-slate-200', className), children: _jsx(ClockIcon, { className: "h-3.5 w-3.5" }) }), open && (_jsxs("div", { role: "dialog", "aria-label": "Audit history", className: cn('absolute right-0 z-50 mt-2 w-96 max-w-[calc(100vw-2rem)]', 'rounded-md border border-slate-300 bg-white p-3 shadow-xl ring-1 ring-black/5', 'dark:border-slate-700 dark:bg-slate-900 dark:ring-white/10'), children: [_jsxs("div", { className: "mb-2 flex items-center justify-between border-b border-slate-200 pb-2 dark:border-slate-700", children: [_jsxs("h3", { className: "truncate text-sm font-semibold text-slate-900 dark:text-slate-100", children: ["History \u00B7 ", fieldPath] }), _jsx("button", { type: "button", "aria-label": "Close", onClick: () => setOpen(false), className: "shrink-0 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200", children: _jsx(CloseIcon, { className: "h-4 w-4" }) })] }), _jsx("div", { className: "max-h-80 overflow-y-auto pr-1", children: _jsx(FieldAuditTrail, { subjectKind: subjectKind, subjectId: subjectId, fieldPath: fieldPath, api_base: api_base, intentLabels: intentLabels, opLabels: opLabels }) })] }))] }));
38
+ return (_jsxs("div", { ref: rootRef, className: "relative inline-block", children: [_jsx("button", { type: "button", "aria-label": label ?? `View audit history for ${fieldPath}`, title: label ?? 'View audit history', onClick: () => setOpen((v) => !v), className: cn('inline-flex h-3 w-3 items-center justify-center rounded-full', 'text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-700', 'focus:outline-none focus:ring-2 focus:ring-slate-400', 'dark:hover:bg-slate-800 dark:hover:text-slate-200', className), children: _jsx(ClockIcon, { className: "h-2.5 w-2.5" }) }), open && (_jsxs("div", { role: "dialog", "aria-label": "Audit history", className: cn('absolute right-0 z-50 mt-2 w-96 max-w-[calc(100vw-2rem)]', 'rounded-md border border-slate-300 bg-white p-3 shadow-xl ring-1 ring-black/5', 'dark:border-slate-700 dark:bg-slate-900 dark:ring-white/10'), children: [_jsxs("div", { className: "mb-2 flex items-center justify-between border-b border-slate-200 pb-2 dark:border-slate-700", children: [_jsxs("h3", { className: "truncate text-sm font-semibold text-slate-900 dark:text-slate-100", children: ["History \u00B7 ", fieldPath] }), _jsx("button", { type: "button", "aria-label": "Close", onClick: () => setOpen(false), className: "shrink-0 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200", children: _jsx(CloseIcon, { className: "h-4 w-4" }) })] }), _jsx("div", { className: "max-h-80 overflow-y-auto pr-1", children: _jsx(FieldAuditTrail, { subjectKind: subjectKind, subjectId: subjectId, fieldPath: fieldPath, api_base: api_base, intentLabels: intentLabels, opLabels: opLabels }) })] }))] }));
39
39
  }
40
40
  function ClockIcon({ className }) {
41
41
  return (_jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: className, "aria-hidden": true, children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("polyline", { points: "12 6 12 12 16 14" })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_audit",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Field-level audit trail for hazo_connect-backed apps. Attach to any adapter via wrapWithAudit() to auto-capture writes; ships worker, Next.js routes, and React UI primitives.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -67,13 +67,13 @@
67
67
  "tailwind-merge": "^3.5.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "hazo_auth": "^10.15.1",
70
+ "hazo_auth": "^10.16.0",
71
71
  "hazo_config": "^2.4.3",
72
- "hazo_connect": "^4.0.2",
73
- "hazo_core": "^2.0.0",
72
+ "hazo_connect": "^4.1.0",
73
+ "hazo_core": "^2.2.0",
74
74
  "hazo_logs": "^2.2.1",
75
75
  "hazo_theme": "^1.3.1",
76
- "hazo_ui": "^6.9.0",
76
+ "hazo_ui": "^6.11.0",
77
77
  "next": "^14.0.0 || ^16.0.0",
78
78
  "react": "^18.0.0 || ^19.0.0",
79
79
  "react-dom": "^18.0.0 || ^19.0.0"
@@ -101,12 +101,12 @@
101
101
  "@types/node": "^20.14.10",
102
102
  "@types/react": "^18.3.3",
103
103
  "@types/react-dom": "^18.3.0",
104
- "hazo_auth": "^10.15.1",
104
+ "hazo_auth": "^10.16.0",
105
105
  "hazo_config": "^2.4.3",
106
- "hazo_connect": "^4.0.2",
107
- "hazo_core": "^2.0.0",
106
+ "hazo_connect": "^4.1.0",
107
+ "hazo_core": "^2.2.0",
108
108
  "hazo_logs": "^2.2.1",
109
- "hazo_ui": "^6.9.0",
109
+ "hazo_ui": "^6.11.0",
110
110
  "jest": "^30.2.0",
111
111
  "jest-environment-node": "^30.2.0",
112
112
  "next": "^14.2.33",