@object-ui/plugin-designer 3.1.5 → 3.3.1
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 +159 -0
- package/README.md +21 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2486 -1352
- package/dist/index.umd.cjs +2 -2
- package/dist/packages/plugin-designer/src/FieldDesigner.d.ts +15 -0
- package/dist/packages/plugin-designer/src/ObjectManager.d.ts +17 -0
- package/dist/packages/plugin-designer/src/__tests__/__mocks__/plugin-form.d.ts +3 -0
- package/dist/packages/plugin-designer/src/__tests__/__mocks__/plugin-grid.d.ts +2 -0
- package/dist/{plugin-designer → packages/plugin-designer}/src/index.d.ts +9 -1
- package/dist/packages/plugin-designer/src/pages/CreateAppPage.d.ts +9 -0
- package/dist/packages/plugin-designer/src/pages/DashboardDesignPage.d.ts +8 -0
- package/dist/packages/plugin-designer/src/pages/EditAppPage.d.ts +9 -0
- package/dist/packages/plugin-designer/src/pages/PageDesignPage.d.ts +8 -0
- package/package.json +46 -11
- /package/dist/{plugin-designer → packages/plugin-designer}/src/AppCreationWizard.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/BrandingEditor.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/CollaborationProvider.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/DashboardEditor.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/DashboardEditor.stories.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/DataModelDesigner.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/EditorModeToggle.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/NavigationDesigner.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/ObjectViewConfigurator.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/PageCanvasEditor.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/PageCanvasEditor.stories.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/PageDesigner.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/ProcessDesigner.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/ReportDesigner.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/components/ConfirmDialog.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/components/Minimap.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/components/PropertyEditor.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/components/VersionHistory.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/components/index.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/index.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useCanvasPanZoom.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useClipboard.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useConfirmDialog.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useDesignerHistory.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useDesignerTranslation.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useMultiSelect.d.ts +0 -0
- /package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useUndoRedo.d.ts +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DesignerFieldDefinition } from '../../types/src';
|
|
2
|
+
export interface FieldDesignerProps {
|
|
3
|
+
/** Object name this designer belongs to */
|
|
4
|
+
objectName: string;
|
|
5
|
+
/** List of field definitions */
|
|
6
|
+
fields: DesignerFieldDefinition[];
|
|
7
|
+
/** Callback when fields change */
|
|
8
|
+
onFieldsChange?: (fields: DesignerFieldDefinition[]) => void;
|
|
9
|
+
/** Read-only mode */
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
/** CSS class */
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function FieldDesigner({ objectName, fields, onFieldsChange, readOnly, className, }: FieldDesignerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default FieldDesigner;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ObjectDefinition } from '../../types/src';
|
|
2
|
+
export interface ObjectManagerProps {
|
|
3
|
+
/** List of object definitions */
|
|
4
|
+
objects: ObjectDefinition[];
|
|
5
|
+
/** Callback when objects change */
|
|
6
|
+
onObjectsChange?: (objects: ObjectDefinition[]) => void;
|
|
7
|
+
/** Callback when an object is selected for field editing */
|
|
8
|
+
onSelectObject?: (object: ObjectDefinition) => void;
|
|
9
|
+
/** Whether to show system objects */
|
|
10
|
+
showSystemObjects?: boolean;
|
|
11
|
+
/** Read-only mode */
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
/** CSS class */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function ObjectManager({ objects, onObjectsChange, onSelectObject, showSystemObjects, readOnly, className, }: ObjectManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default ObjectManager;
|
|
@@ -10,7 +10,9 @@ import { DashboardEditor } from './DashboardEditor';
|
|
|
10
10
|
import { PageCanvasEditor } from './PageCanvasEditor';
|
|
11
11
|
import { ObjectViewConfigurator } from './ObjectViewConfigurator';
|
|
12
12
|
import { BrandingEditor } from './BrandingEditor';
|
|
13
|
-
|
|
13
|
+
import { ObjectManager } from './ObjectManager';
|
|
14
|
+
import { FieldDesigner } from './FieldDesigner';
|
|
15
|
+
export { PageDesigner, DataModelDesigner, ProcessDesigner, ReportDesigner, CollaborationProvider, ConnectionStatusIndicator, AppCreationWizard, NavigationDesigner, EditorModeToggle, DashboardEditor, PageCanvasEditor, ObjectViewConfigurator, BrandingEditor, ObjectManager, FieldDesigner, };
|
|
14
16
|
export type { AppCreationWizardProps } from './AppCreationWizard';
|
|
15
17
|
export type { NavigationDesignerProps } from './NavigationDesigner';
|
|
16
18
|
export type { EditorModeToggleProps } from './EditorModeToggle';
|
|
@@ -18,6 +20,8 @@ export type { DashboardEditorProps } from './DashboardEditor';
|
|
|
18
20
|
export type { PageCanvasEditorProps, CanvasComponent } from './PageCanvasEditor';
|
|
19
21
|
export type { ObjectViewConfiguratorProps, ViewConfig, ViewColumn, ViewType } from './ObjectViewConfigurator';
|
|
20
22
|
export type { BrandingEditorProps } from './BrandingEditor';
|
|
23
|
+
export type { ObjectManagerProps } from './ObjectManager';
|
|
24
|
+
export type { FieldDesignerProps } from './FieldDesigner';
|
|
21
25
|
export { useUndoRedo } from './hooks/useUndoRedo';
|
|
22
26
|
export { useDesignerHistory } from './hooks/useDesignerHistory';
|
|
23
27
|
export { useConfirmDialog } from './hooks/useConfirmDialog';
|
|
@@ -28,3 +32,7 @@ export { ConfirmDialog } from './components/ConfirmDialog';
|
|
|
28
32
|
export { Minimap } from './components/Minimap';
|
|
29
33
|
export { PropertyEditor } from './components/PropertyEditor';
|
|
30
34
|
export { VersionHistory } from './components/VersionHistory';
|
|
35
|
+
export { CreateAppPage } from './pages/CreateAppPage';
|
|
36
|
+
export { EditAppPage } from './pages/EditAppPage';
|
|
37
|
+
export { PageDesignPage } from './pages/PageDesignPage';
|
|
38
|
+
export { DashboardDesignPage } from './pages/DashboardDesignPage';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateAppPage
|
|
3
|
+
*
|
|
4
|
+
* Console page that renders the AppCreationWizard from @object-ui/plugin-designer.
|
|
5
|
+
* Handles wizard callbacks: onComplete (create app), onCancel (navigate back),
|
|
6
|
+
* onSaveDraft (persist to localStorage).
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
export declare function CreateAppPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EditAppPage
|
|
3
|
+
*
|
|
4
|
+
* Console page that reuses AppCreationWizard in edit mode.
|
|
5
|
+
* Loads the existing app configuration as `initialDraft` and
|
|
6
|
+
* updates the app on completion.
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
export declare function EditAppPage(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-designer",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Visual designer plugin for Object UI with page, data model, process, and report designers plus collaborative editing.",
|
|
@@ -15,33 +15,68 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
-
"dist"
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"CHANGELOG.md",
|
|
21
|
+
"LICENSE"
|
|
19
22
|
],
|
|
20
23
|
"peerDependencies": {
|
|
21
24
|
"react": "^18.0.0 || ^19.0.0",
|
|
22
25
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
23
|
-
"
|
|
24
|
-
"@object-ui/core": "3.1.5",
|
|
25
|
-
"@object-ui/react": "3.1.5",
|
|
26
|
-
"@object-ui/types": "3.1.5"
|
|
26
|
+
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@dnd-kit/core": "^6.3.1",
|
|
30
30
|
"@dnd-kit/sortable": "^10.0.0",
|
|
31
31
|
"@dnd-kit/utilities": "^3.2.2",
|
|
32
32
|
"clsx": "^2.1.1",
|
|
33
|
-
"lucide-react": "^
|
|
33
|
+
"lucide-react": "^1.8.0",
|
|
34
|
+
"sonner": "^2.0.7",
|
|
34
35
|
"tailwind-merge": "^3.5.0",
|
|
35
|
-
"@object-ui/
|
|
36
|
+
"@object-ui/components": "3.3.1",
|
|
37
|
+
"@object-ui/fields": "3.3.1",
|
|
38
|
+
"@object-ui/i18n": "3.3.1",
|
|
39
|
+
"@object-ui/plugin-grid": "3.3.1",
|
|
40
|
+
"@object-ui/core": "3.3.1",
|
|
41
|
+
"@object-ui/plugin-form": "3.3.1",
|
|
42
|
+
"@object-ui/types": "3.3.1",
|
|
43
|
+
"@object-ui/react": "3.3.1"
|
|
36
44
|
},
|
|
37
45
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^25.
|
|
46
|
+
"@types/node": "^25.6.0",
|
|
39
47
|
"@types/react": "19.2.14",
|
|
40
48
|
"@types/react-dom": "19.2.3",
|
|
41
49
|
"@vitejs/plugin-react": "^6.0.1",
|
|
42
|
-
"vite": "^8.0.
|
|
50
|
+
"vite": "^8.0.9",
|
|
43
51
|
"vite-plugin-dts": "^4.5.4",
|
|
44
|
-
"vitest": "^4.1.
|
|
52
|
+
"vitest": "^4.1.5"
|
|
53
|
+
},
|
|
54
|
+
"keywords": [
|
|
55
|
+
"objectui",
|
|
56
|
+
"sdui",
|
|
57
|
+
"schema-driven-ui",
|
|
58
|
+
"react",
|
|
59
|
+
"tailwind",
|
|
60
|
+
"shadcn",
|
|
61
|
+
"objectstack",
|
|
62
|
+
"plugin",
|
|
63
|
+
"designer",
|
|
64
|
+
"wysiwyg",
|
|
65
|
+
"page-builder",
|
|
66
|
+
"low-code"
|
|
67
|
+
],
|
|
68
|
+
"author": "ObjectStack Team <team@objectstack.ai>",
|
|
69
|
+
"repository": {
|
|
70
|
+
"type": "git",
|
|
71
|
+
"url": "git+https://github.com/objectstack-ai/objectui.git",
|
|
72
|
+
"directory": "packages/plugin-designer"
|
|
73
|
+
},
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/objectstack-ai/objectui/issues"
|
|
76
|
+
},
|
|
77
|
+
"homepage": "https://www.objectui.org/docs/plugins/plugin-designer",
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"access": "public"
|
|
45
80
|
},
|
|
46
81
|
"scripts": {
|
|
47
82
|
"build": "vite build",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{plugin-designer → packages/plugin-designer}/src/PageCanvasEditor.stories.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{plugin-designer → packages/plugin-designer}/src/components/ConfirmDialog.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{plugin-designer → packages/plugin-designer}/src/components/PropertyEditor.d.ts
RENAMED
|
File without changes
|
/package/dist/{plugin-designer → packages/plugin-designer}/src/components/VersionHistory.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useDesignerHistory.d.ts
RENAMED
|
File without changes
|
/package/dist/{plugin-designer → packages/plugin-designer}/src/hooks/useDesignerTranslation.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|