@object-ui/components 13.1.0 → 14.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.
- package/CHANGELOG.md +113 -0
- package/dist/index.js +113 -97
- package/dist/index.umd.cjs +3 -3
- package/dist/renderers/action/action-group.d.ts +16 -0
- package/package.json +34 -34
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { ActionSchema, ActionLocation } from '@object-ui/types';
|
|
2
3
|
export interface ActionGroupSchema {
|
|
3
4
|
type: 'action:group';
|
|
@@ -23,3 +24,18 @@ export interface ActionGroupSchema {
|
|
|
23
24
|
className?: string;
|
|
24
25
|
[key: string]: any;
|
|
25
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* One action inside an `action:group`'s dropdown (overflow) menu. Extracted
|
|
29
|
+
* into its own component so the action's `visible`/`enabled` CEL predicate can
|
|
30
|
+
* be evaluated with a hook (`useCondition`) without violating the
|
|
31
|
+
* rules-of-hooks inside a `.map()`. Mirrors `InlineActionButton` (the
|
|
32
|
+
* inline-mode leaf) so BOTH display modes honor `visible`/`enabled`
|
|
33
|
+
* identically — previously the dropdown branch rendered every action
|
|
34
|
+
* unconditionally, so an action with `visible: "record.role != 'owner'"`
|
|
35
|
+
* showed even when its predicate was false.
|
|
36
|
+
*/
|
|
37
|
+
export declare const DropdownActionItem: React.FC<{
|
|
38
|
+
action: ActionSchema;
|
|
39
|
+
index: number;
|
|
40
|
+
onSelect: (action: ActionSchema) => void | Promise<void>;
|
|
41
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.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",
|
|
@@ -26,55 +26,55 @@
|
|
|
26
26
|
"./style.css": "./dist/index.css"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
30
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
29
|
+
"@radix-ui/react-accordion": "^1.2.16",
|
|
30
|
+
"@radix-ui/react-alert-dialog": "^1.1.19",
|
|
31
31
|
"@radix-ui/react-aspect-ratio": "^1.1.11",
|
|
32
|
-
"@radix-ui/react-avatar": "^1.2.
|
|
33
|
-
"@radix-ui/react-checkbox": "^1.3.
|
|
34
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
35
|
-
"@radix-ui/react-context-menu": "^2.3.
|
|
36
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
37
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
38
|
-
"@radix-ui/react-hover-card": "^1.1.
|
|
32
|
+
"@radix-ui/react-avatar": "^1.2.2",
|
|
33
|
+
"@radix-ui/react-checkbox": "^1.3.7",
|
|
34
|
+
"@radix-ui/react-collapsible": "^1.1.16",
|
|
35
|
+
"@radix-ui/react-context-menu": "^2.3.3",
|
|
36
|
+
"@radix-ui/react-dialog": "^1.1.19",
|
|
37
|
+
"@radix-ui/react-dropdown-menu": "^2.1.20",
|
|
38
|
+
"@radix-ui/react-hover-card": "^1.1.19",
|
|
39
39
|
"@radix-ui/react-label": "^2.1.11",
|
|
40
|
-
"@radix-ui/react-menubar": "^1.1.
|
|
41
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
42
|
-
"@radix-ui/react-popover": "^1.1.
|
|
43
|
-
"@radix-ui/react-progress": "^1.1.
|
|
44
|
-
"@radix-ui/react-radio-group": "^1.4.
|
|
45
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
46
|
-
"@radix-ui/react-select": "^2.3.
|
|
40
|
+
"@radix-ui/react-menubar": "^1.1.20",
|
|
41
|
+
"@radix-ui/react-navigation-menu": "^1.2.18",
|
|
42
|
+
"@radix-ui/react-popover": "^1.1.19",
|
|
43
|
+
"@radix-ui/react-progress": "^1.1.12",
|
|
44
|
+
"@radix-ui/react-radio-group": "^1.4.3",
|
|
45
|
+
"@radix-ui/react-scroll-area": "^1.2.14",
|
|
46
|
+
"@radix-ui/react-select": "^2.3.3",
|
|
47
47
|
"@radix-ui/react-separator": "^1.1.11",
|
|
48
|
-
"@radix-ui/react-slider": "^1.4.
|
|
48
|
+
"@radix-ui/react-slider": "^1.4.3",
|
|
49
49
|
"@radix-ui/react-slot": "^1.3.0",
|
|
50
|
-
"@radix-ui/react-switch": "^1.3.
|
|
51
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
52
|
-
"@radix-ui/react-toast": "^1.2.
|
|
53
|
-
"@radix-ui/react-toggle": "^1.1.
|
|
54
|
-
"@radix-ui/react-toggle-group": "^1.1.
|
|
55
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
50
|
+
"@radix-ui/react-switch": "^1.3.3",
|
|
51
|
+
"@radix-ui/react-tabs": "^1.1.17",
|
|
52
|
+
"@radix-ui/react-toast": "^1.2.19",
|
|
53
|
+
"@radix-ui/react-toggle": "^1.1.14",
|
|
54
|
+
"@radix-ui/react-toggle-group": "^1.1.15",
|
|
55
|
+
"@radix-ui/react-tooltip": "^1.2.12",
|
|
56
56
|
"class-variance-authority": "^0.7.1",
|
|
57
57
|
"clsx": "^2.1.1",
|
|
58
58
|
"cmdk": "^1.1.1",
|
|
59
59
|
"date-fns": "^4.4.0",
|
|
60
60
|
"embla-carousel-react": "^8.6.0",
|
|
61
61
|
"input-otp": "^1.4.2",
|
|
62
|
-
"lucide-react": "^1.
|
|
62
|
+
"lucide-react": "^1.24.0",
|
|
63
63
|
"next-themes": "^0.4.6",
|
|
64
64
|
"react-day-picker": "^10.0.1",
|
|
65
65
|
"react-hook-form": "^7.81.0",
|
|
66
|
-
"react-resizable-panels": "^4.12.
|
|
66
|
+
"react-resizable-panels": "^4.12.2",
|
|
67
67
|
"recharts": "3.9.2",
|
|
68
68
|
"sonner": "^2.0.7",
|
|
69
69
|
"tailwind-merge": "^3.6.0",
|
|
70
70
|
"tailwindcss-animate": "^1.0.7",
|
|
71
71
|
"vaul": "^1.1.2",
|
|
72
|
-
"@object-ui/core": "
|
|
73
|
-
"@object-ui/i18n": "
|
|
74
|
-
"@object-ui/react": "
|
|
75
|
-
"@object-ui/react-runtime": "
|
|
76
|
-
"@object-ui/sdui-parser": "
|
|
77
|
-
"@object-ui/types": "
|
|
72
|
+
"@object-ui/core": "14.0.0",
|
|
73
|
+
"@object-ui/i18n": "14.0.0",
|
|
74
|
+
"@object-ui/react": "14.0.0",
|
|
75
|
+
"@object-ui/react-runtime": "14.0.0",
|
|
76
|
+
"@object-ui/sdui-parser": "14.0.0",
|
|
77
|
+
"@object-ui/types": "14.0.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
"@types/react-dom": "19.2.3",
|
|
88
88
|
"@vitejs/plugin-react": "^6.0.3",
|
|
89
89
|
"autoprefixer": "^10.5.2",
|
|
90
|
-
"postcss": "^8.5.
|
|
90
|
+
"postcss": "^8.5.18",
|
|
91
91
|
"shadcn": "^4.13.0",
|
|
92
92
|
"tailwindcss": "^4.3.2",
|
|
93
93
|
"typescript": "^6.0.3",
|
|
94
|
-
"vite": "^8.1.
|
|
94
|
+
"vite": "^8.1.4",
|
|
95
95
|
"vite-plugin-dts": "^5.0.3"
|
|
96
96
|
},
|
|
97
97
|
"keywords": [
|