@object-ui/plugin-designer 3.1.5 → 3.3.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/dist/index.d.ts +1 -1
- package/dist/index.js +2697 -1898
- 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 +5 -1
- package/package.json +14 -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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-designer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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.",
|
|
@@ -19,29 +19,32 @@
|
|
|
19
19
|
],
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^18.0.0 || ^19.0.0",
|
|
22
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
23
|
-
"@object-ui/components": "3.1.5",
|
|
24
|
-
"@object-ui/core": "3.1.5",
|
|
25
|
-
"@object-ui/react": "3.1.5",
|
|
26
|
-
"@object-ui/types": "3.1.5"
|
|
22
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
27
23
|
},
|
|
28
24
|
"dependencies": {
|
|
29
25
|
"@dnd-kit/core": "^6.3.1",
|
|
30
26
|
"@dnd-kit/sortable": "^10.0.0",
|
|
31
27
|
"@dnd-kit/utilities": "^3.2.2",
|
|
32
28
|
"clsx": "^2.1.1",
|
|
33
|
-
"lucide-react": "^
|
|
29
|
+
"lucide-react": "^1.8.0",
|
|
34
30
|
"tailwind-merge": "^3.5.0",
|
|
35
|
-
"@object-ui/
|
|
31
|
+
"@object-ui/components": "3.3.0",
|
|
32
|
+
"@object-ui/core": "3.3.0",
|
|
33
|
+
"@object-ui/fields": "3.3.0",
|
|
34
|
+
"@object-ui/i18n": "3.3.0",
|
|
35
|
+
"@object-ui/plugin-form": "3.3.0",
|
|
36
|
+
"@object-ui/plugin-grid": "3.3.0",
|
|
37
|
+
"@object-ui/react": "3.3.0",
|
|
38
|
+
"@object-ui/types": "3.3.0"
|
|
36
39
|
},
|
|
37
40
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^25.
|
|
41
|
+
"@types/node": "^25.6.0",
|
|
39
42
|
"@types/react": "19.2.14",
|
|
40
43
|
"@types/react-dom": "19.2.3",
|
|
41
44
|
"@vitejs/plugin-react": "^6.0.1",
|
|
42
|
-
"vite": "^8.0.
|
|
45
|
+
"vite": "^8.0.8",
|
|
43
46
|
"vite-plugin-dts": "^4.5.4",
|
|
44
|
-
"vitest": "^4.1.
|
|
47
|
+
"vitest": "^4.1.4"
|
|
45
48
|
},
|
|
46
49
|
"scripts": {
|
|
47
50
|
"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
|