@almadar/ui 5.27.0 → 5.28.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/dist/components/core/molecules/JsonTreeEditor.d.ts +18 -0
- package/dist/components/core/molecules/index.d.ts +1 -3
- package/dist/components/index.cjs +228 -400
- package/dist/components/index.js +229 -401
- package/package.json +1 -1
- package/dist/components/core/molecules/ArrayEditor.d.ts +0 -15
- package/dist/components/core/molecules/MapEditor.d.ts +0 -16
- package/dist/components/core/molecules/ObjectEditor.d.ts +0 -15
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TraitConfigValue } from '@almadar/core';
|
|
3
|
+
export interface JsonTreeEditorProps {
|
|
4
|
+
/** Current value (object / array / scalar). */
|
|
5
|
+
value: TraitConfigValue;
|
|
6
|
+
/** Fired with the next value on any edit. */
|
|
7
|
+
onChange: (next: TraitConfigValue) => void;
|
|
8
|
+
/** Additional CSS classes. */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* JsonTreeEditor — a visual, collapsible tree editor for any `TraitConfigValue`
|
|
13
|
+
* (object / array / nested / scalar). Replaces raw `JSON.stringify` text editing:
|
|
14
|
+
* each node renders a typed inline control, containers collapse, and rows can be
|
|
15
|
+
* added, removed, retyped, and (for objects) re-keyed. Self-contained — styled
|
|
16
|
+
* purely with `@almadar/ui` atoms + design tokens.
|
|
17
|
+
*/
|
|
18
|
+
export declare const JsonTreeEditor: React.FC<JsonTreeEditorProps>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { ErrorBoundary, type ErrorBoundaryProps } from './ErrorBoundary';
|
|
2
|
-
export {
|
|
3
|
-
export { ObjectEditor, type ObjectEditorProps } from './ObjectEditor';
|
|
4
|
-
export { MapEditor, type MapEditorProps } from './MapEditor';
|
|
2
|
+
export { JsonTreeEditor, type JsonTreeEditorProps } from './JsonTreeEditor';
|
|
5
3
|
export { FileTree, type FileTreeProps, type FileTreeNode } from './FileTree';
|
|
6
4
|
export { FormField, type FormFieldProps } from './FormField';
|
|
7
5
|
export { EmptyState, type EmptyStateProps } from './EmptyState';
|