@object-ui/components 14.1.0 → 16.0.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.
@@ -34,4 +34,30 @@ export declare const DataTableRowActionItem: React.FC<{
34
34
  row: any;
35
35
  onActionDef?: (action: RowActionDef, row: any) => void | Promise<void>;
36
36
  }>;
37
+ /**
38
+ * A built-in Edit/Delete item in the data-table's row overflow menu, gated by
39
+ * the per-record CEL predicates from the object's `userActions.edit` /
40
+ * `delete` object form (objectui#2614) — `schema.rowEditPredicates` /
41
+ * `rowDeletePredicates`. Mirrors `BuiltinRowActionItem` on the ObjectGrid
42
+ * path so BOTH row-menu renderers honor the predicates identically (the
43
+ * related-list case is where the master-detail scenario from the issue
44
+ * actually renders). Same posture: `visibleWhen` fails CLOSED, `disabledWhen`
45
+ * fails soft. Evaluation only happens when the menu is open (Radix mounts
46
+ * content lazily), so declared predicates cost nothing at table render time.
47
+ *
48
+ * Exported for unit tests — NOT part of the package's public API (the barrel
49
+ * only side-effect-imports this module; see `DataTableRowActionItem`).
50
+ */
51
+ export declare const DataTableBuiltinRowActionItem: React.FC<{
52
+ name: 'edit' | 'delete';
53
+ predicates?: {
54
+ visibleWhen?: unknown;
55
+ disabledWhen?: unknown;
56
+ };
57
+ row: any;
58
+ icon: React.ReactNode;
59
+ label: string;
60
+ className?: string;
61
+ onSelect: (row: any) => void;
62
+ }>;
37
63
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/components",
3
- "version": "14.1.0",
3
+ "version": "16.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Standard UI component library for Object UI, built with Shadcn UI + Tailwind CSS",
@@ -69,12 +69,12 @@
69
69
  "tailwind-merge": "^3.6.0",
70
70
  "tailwindcss-animate": "^1.0.7",
71
71
  "vaul": "^1.1.2",
72
- "@object-ui/core": "14.1.0",
73
- "@object-ui/i18n": "14.1.0",
74
- "@object-ui/react": "14.1.0",
75
- "@object-ui/react-runtime": "14.1.0",
76
- "@object-ui/sdui-parser": "14.1.0",
77
- "@object-ui/types": "14.1.0"
72
+ "@object-ui/core": "16.0.0",
73
+ "@object-ui/i18n": "16.0.0",
74
+ "@object-ui/react": "16.0.0",
75
+ "@object-ui/react-runtime": "16.0.0",
76
+ "@object-ui/sdui-parser": "16.0.0",
77
+ "@object-ui/types": "16.0.0"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "react": "^18.0.0 || ^19.0.0",