@pstdio/ui 0.20.0 → 0.20.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.
Files changed (51) hide show
  1. package/dist/{MermaidComponent-AmAjWLPm.js → MermaidComponent-BVMyKttu.js} +2 -2
  2. package/dist/{MermaidComponent-AmAjWLPm.js.map → MermaidComponent-BVMyKttu.js.map} +1 -1
  3. package/dist/chat-ui.js +1 -1
  4. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  5. package/dist/components/diff-viewer/file-change-badge.d.ts +3 -0
  6. package/dist/components/diff-viewer/file-list-panel.d.ts +0 -1
  7. package/dist/components/diff-viewer/index.d.ts +1 -0
  8. package/dist/components/param-editor/param-editor.types.d.ts +2 -0
  9. package/dist/components/tree-list/tree-list-background.d.ts +8 -0
  10. package/dist/components/tree-list/tree-list-drag.d.ts +7 -0
  11. package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +3 -0
  12. package/dist/components/tree-list/tree-list-inline-input.d.ts +9 -0
  13. package/dist/components/tree-list/tree-list-move-surface.d.ts +7 -0
  14. package/dist/components/tree-list/tree-list-node-row.d.ts +1 -0
  15. package/dist/components/tree-list/tree-list.d.ts +2 -0
  16. package/dist/components/tree-list/tree-list.types.d.ts +13 -0
  17. package/dist/data-table.js +5 -5
  18. package/dist/diff.js +796 -815
  19. package/dist/diff.js.map +1 -1
  20. package/dist/{edit-mode-data-table-4GMiDy75.js → edit-mode-data-table-D6NeiDJx.js} +3 -3
  21. package/dist/{edit-mode-data-table-4GMiDy75.js.map → edit-mode-data-table-D6NeiDJx.js.map} +1 -1
  22. package/dist/{editor-config-Dyh8n5A2.js → editor-config-D9OksZ93.js} +3 -3
  23. package/dist/{editor-config-Dyh8n5A2.js.map → editor-config-D9OksZ93.js.map} +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +324 -349
  26. package/dist/index.js.map +1 -1
  27. package/dist/{kanban-renderer-toolbar-BcUZvGyY.js → kanban-renderer-toolbar-CpegGbwq.js} +2 -2
  28. package/dist/{kanban-renderer-toolbar-BcUZvGyY.js.map → kanban-renderer-toolbar-CpegGbwq.js.map} +1 -1
  29. package/dist/kanban-renderer.js +5 -5
  30. package/dist/{lazy-markdown-editor-CWSREEhf.js → lazy-markdown-editor-B7uP2ALS.js} +2 -2
  31. package/dist/{lazy-markdown-editor-CWSREEhf.js.map → lazy-markdown-editor-B7uP2ALS.js.map} +1 -1
  32. package/dist/{list-row-B8L4TGsh.js → list-row-9oxy-F0v.js} +228 -253
  33. package/dist/list-row-9oxy-F0v.js.map +1 -0
  34. package/dist/{param-editor-w3xH-t8A.js → param-editor-B8Ff9Nm8.js} +2 -2
  35. package/dist/{param-editor-w3xH-t8A.js.map → param-editor-B8Ff9Nm8.js.map} +1 -1
  36. package/dist/{param-editor-field-C8zRDStn.js → param-editor-field-Cu4pto_a.js} +3 -3
  37. package/dist/{param-editor-field-C8zRDStn.js.map → param-editor-field-Cu4pto_a.js.map} +1 -1
  38. package/dist/{rich-message-jZ2oPQhU.js → rich-message-DdFYRzTo.js} +2 -2
  39. package/dist/{rich-message-jZ2oPQhU.js.map → rich-message-DdFYRzTo.js.map} +1 -1
  40. package/dist/rich-text.js +4 -4
  41. package/dist/theme/recipes/input.d.ts +32 -0
  42. package/dist/{theme-J8K8KbZi.js → theme-BH4fSst9.js} +33 -1
  43. package/dist/theme-BH4fSst9.js.map +1 -0
  44. package/dist/theme.js +1 -1
  45. package/dist/tree-list-uV4UFj0x.js +1116 -0
  46. package/dist/tree-list-uV4UFj0x.js.map +1 -0
  47. package/package.json +1 -1
  48. package/dist/list-row-B8L4TGsh.js.map +0 -1
  49. package/dist/theme-J8K8KbZi.js.map +0 -1
  50. package/dist/tree-list-CC13pOYi.js +0 -1033
  51. package/dist/tree-list-CC13pOYi.js.map +0 -1
@@ -6,7 +6,7 @@ import { useLexicalEditable as L } from "@lexical/react/useLexicalEditable";
6
6
  import { $getNodeByKey as N } from "lexical";
7
7
  import { useState as z, useEffect as P } from "react";
8
8
  import { M as _ } from "./mermaid-renderer-H3IhLqnQ.js";
9
- import { $ as q } from "./editor-config-Dyh8n5A2.js";
9
+ import { $ as q } from "./editor-config-D9OksZ93.js";
10
10
  function O(B) {
11
11
  const e = S(28), {
12
12
  code: i,
@@ -57,4 +57,4 @@ function O(B) {
57
57
  export {
58
58
  O as default
59
59
  };
60
- //# sourceMappingURL=MermaidComponent-AmAjWLPm.js.map
60
+ //# sourceMappingURL=MermaidComponent-BVMyKttu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MermaidComponent-AmAjWLPm.js","sources":["../src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx"],"sourcesContent":["import { Box, Button, Flex, Textarea } from \"@chakra-ui/react\";\nimport { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { useLexicalEditable } from \"@lexical/react/useLexicalEditable\";\nimport { $getNodeByKey } from \"lexical\";\nimport { useEffect, useState } from \"react\";\nimport { MermaidRenderer } from \"@/components/mermaid-renderer\";\nimport { $isMermaidNode } from \"./MermaidNode\";\n\ninterface MermaidComponentProps {\n code: string;\n nodeKey: string;\n}\n\nexport default function MermaidComponent(props: MermaidComponentProps) {\n const { code, nodeKey } = props;\n const [editor] = useLexicalComposerContext();\n const isEditable = useLexicalEditable();\n const [isEditing, setIsEditing] = useState(false);\n const [draftCode, setDraftCode] = useState(code);\n const [previewCode, setPreviewCode] = useState(code);\n\n useEffect(() => {\n setDraftCode(code);\n setPreviewCode(code);\n }, [code]);\n\n const commitCodeChanges = () => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey);\n if ($isMermaidNode(node)) {\n node.setCode(draftCode);\n }\n });\n\n setPreviewCode(draftCode);\n setIsEditing(false);\n };\n\n const cancelEditing = () => {\n setDraftCode(previewCode);\n setIsEditing(false);\n };\n\n if (!isEditing) {\n return (\n <MermaidRenderer\n key={previewCode}\n code={previewCode}\n isEditable={isEditable}\n onRequestEdit={isEditable ? () => setIsEditing(true) : undefined}\n />\n );\n }\n\n return (\n <Box borderWidth=\"1px\" borderColor=\"border.subtle\" borderRadius=\"md\" overflow=\"hidden\" width=\"100%\">\n <Flex justifyContent=\"flex-end\" alignItems=\"center\" gap=\"xs\" paddingX=\"sm\" paddingY=\"xs\" bg=\"bg.muted\">\n <Button size=\"xs\" variant=\"subtle\" onClick={cancelEditing}>\n Cancel\n </Button>\n <Button size=\"xs\" onClick={commitCodeChanges}>\n Preview\n </Button>\n </Flex>\n <Box padding=\"sm\" bg=\"bg.muted\">\n <Textarea\n value={draftCode}\n onChange={(event) => setDraftCode(event.target.value)}\n minHeight=\"180px\"\n resize=\"vertical\"\n fontFamily=\"mono\"\n fontSize=\"sm\"\n spellCheck={false}\n />\n </Box>\n </Box>\n );\n}\n"],"names":["MermaidComponent","props","$","_c","code","nodeKey","editor","useLexicalComposerContext","isEditable","useLexicalEditable","isEditing","setIsEditing","useState","draftCode","setDraftCode","previewCode","setPreviewCode","t0","t1","useEffect","t2","update","node","$getNodeByKey","$isMermaidNode","setCode","commitCodeChanges","t3","cancelEditing","t4","undefined","t5","MermaidRenderer","Button","t6","jsxs","Flex","t7","Symbol","for","event","target","value","t8","jsx","Box","Textarea","t9"],"mappings":";;;;;;;;;AAaA,SAAeA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA,GACb;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,SAAAA;AAAAA,EAAAA,IAA0BJ,GAC1B,CAAAK,CAAA,IAAiBC,EAAAA,GACjBC,IAAmBC,EAAAA,GACnB,CAAAC,GAAAC,CAAA,IAAkCC,EAAS,EAAK,GAChD,CAAAC,GAAAC,CAAA,IAAkCF,EAASR,CAAI,GAC/C,CAAAW,GAAAC,CAAA,IAAsCJ,EAASR,CAAI;AAAE,MAAAa,GAAAC;AAAA,EAAAhB,SAAAE,KAE3Ca,IAAAA,MAAA;AACRH,IAAAA,EAAaV,CAAI,GACjBY,EAAeZ,CAAI;AAAA,EAAC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AAc,UAAA,UAAe,OAAA,QAC3FX,UAAAA;AAAAA,IAAAA;AAAAA,IAQAS;AAAAA,EAAAA,GAWF,GAAMzC,QAAAgC,GAAAhC,QAAAyC,GAAAzC,QAAA6C,KAAAA,IAAA7C,EAAA,EAAA,GApBN6C;AAoBM;"}
1
+ {"version":3,"file":"MermaidComponent-BVMyKttu.js","sources":["../src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx"],"sourcesContent":["import { Box, Button, Flex, Textarea } from \"@chakra-ui/react\";\nimport { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { useLexicalEditable } from \"@lexical/react/useLexicalEditable\";\nimport { $getNodeByKey } from \"lexical\";\nimport { useEffect, useState } from \"react\";\nimport { MermaidRenderer } from \"@/components/mermaid-renderer\";\nimport { $isMermaidNode } from \"./MermaidNode\";\n\ninterface MermaidComponentProps {\n code: string;\n nodeKey: string;\n}\n\nexport default function MermaidComponent(props: MermaidComponentProps) {\n const { code, nodeKey } = props;\n const [editor] = useLexicalComposerContext();\n const isEditable = useLexicalEditable();\n const [isEditing, setIsEditing] = useState(false);\n const [draftCode, setDraftCode] = useState(code);\n const [previewCode, setPreviewCode] = useState(code);\n\n useEffect(() => {\n setDraftCode(code);\n setPreviewCode(code);\n }, [code]);\n\n const commitCodeChanges = () => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey);\n if ($isMermaidNode(node)) {\n node.setCode(draftCode);\n }\n });\n\n setPreviewCode(draftCode);\n setIsEditing(false);\n };\n\n const cancelEditing = () => {\n setDraftCode(previewCode);\n setIsEditing(false);\n };\n\n if (!isEditing) {\n return (\n <MermaidRenderer\n key={previewCode}\n code={previewCode}\n isEditable={isEditable}\n onRequestEdit={isEditable ? () => setIsEditing(true) : undefined}\n />\n );\n }\n\n return (\n <Box borderWidth=\"1px\" borderColor=\"border.subtle\" borderRadius=\"md\" overflow=\"hidden\" width=\"100%\">\n <Flex justifyContent=\"flex-end\" alignItems=\"center\" gap=\"xs\" paddingX=\"sm\" paddingY=\"xs\" bg=\"bg.muted\">\n <Button size=\"xs\" variant=\"subtle\" onClick={cancelEditing}>\n Cancel\n </Button>\n <Button size=\"xs\" onClick={commitCodeChanges}>\n Preview\n </Button>\n </Flex>\n <Box padding=\"sm\" bg=\"bg.muted\">\n <Textarea\n value={draftCode}\n onChange={(event) => setDraftCode(event.target.value)}\n minHeight=\"180px\"\n resize=\"vertical\"\n fontFamily=\"mono\"\n fontSize=\"sm\"\n spellCheck={false}\n />\n </Box>\n </Box>\n );\n}\n"],"names":["MermaidComponent","props","$","_c","code","nodeKey","editor","useLexicalComposerContext","isEditable","useLexicalEditable","isEditing","setIsEditing","useState","draftCode","setDraftCode","previewCode","setPreviewCode","t0","t1","useEffect","t2","update","node","$getNodeByKey","$isMermaidNode","setCode","commitCodeChanges","t3","cancelEditing","t4","undefined","t5","MermaidRenderer","Button","t6","jsxs","Flex","t7","Symbol","for","event","target","value","t8","jsx","Box","Textarea","t9"],"mappings":";;;;;;;;;AAaA,SAAeA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA,GACb;AAAA,IAAAC,MAAAA;AAAAA,IAAAC,SAAAA;AAAAA,EAAAA,IAA0BJ,GAC1B,CAAAK,CAAA,IAAiBC,EAAAA,GACjBC,IAAmBC,EAAAA,GACnB,CAAAC,GAAAC,CAAA,IAAkCC,EAAS,EAAK,GAChD,CAAAC,GAAAC,CAAA,IAAkCF,EAASR,CAAI,GAC/C,CAAAW,GAAAC,CAAA,IAAsCJ,EAASR,CAAI;AAAE,MAAAa,GAAAC;AAAA,EAAAhB,SAAAE,KAE3Ca,IAAAA,MAAA;AACRH,IAAAA,EAAaV,CAAI,GACjBY,EAAeZ,CAAI;AAAA,EAAC,GACnBc,IAAA,CAACd,CAAI,GAACF,OAAAE,GAAAF,OAAAe,GAAAf,OAAAgB,MAAAD,IAAAf,EAAA,CAAA,GAAAgB,IAAAhB,EAAA,CAAA,IAHTiB,EAAUF,GAGPC,CAAM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,EAAA,EAAA,GApBN6C;AAoBM;"}
package/dist/chat-ui.js CHANGED
@@ -6,7 +6,7 @@ import { useStickToBottomContext as It, StickToBottom as Gs } from "use-stick-to
6
6
  import { S as _t, T as sn } from "./browser-storage-DPtOQJx0.js";
7
7
  import { Fragment as Ys, useRef as Te, useEffect as le, useState as H } from "react";
8
8
  import { R as on, C as $n } from "./number-input-WUfejtNx.js";
9
- import { a as Vt, P as Js, g as Zs, R as On } from "./rich-message-jZ2oPQhU.js";
9
+ import { a as Vt, P as Js, g as Zs, R as On } from "./rich-message-DdFYRzTo.js";
10
10
  import { R as eo, a as to, A as mn } from "./radio-cLMEBBZk.js";
11
11
  import { E as no } from "./empty-state-Bo4HVrgr.js";
12
12
  import { useVirtualizer as so } from "@tanstack/react-virtual";
@@ -1,3 +1,4 @@
1
+ import { OnMount } from '@monaco-editor/react';
1
2
  export declare const createCodeEditorPreloader: (initialize: () => Promise<unknown>) => () => Promise<unknown>;
2
3
  export declare const preloadCodeEditor: () => Promise<unknown>;
3
4
  export declare const customTheme: {
@@ -14,6 +15,7 @@ export declare const customTheme: {
14
15
  "editorIndentGuide.activeBackground": string;
15
16
  };
16
17
  };
18
+ export declare const configureCodeEditor: (editor: Parameters<OnMount>[0], monaco: Parameters<OnMount>[1]) => void;
17
19
  interface CodeEditorProps {
18
20
  language: string;
19
21
  defaultCode?: string;
@@ -0,0 +1,3 @@
1
+ export declare const FileChangeBadge: (props: {
2
+ change: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { ChangedFilesViewMode, FileIconInfo } from './types';
2
2
  interface FileListPanelProps {
3
- title: string;
4
3
  paths: string[];
5
4
  selectedPath: string | null;
6
5
  viewMode: ChangedFilesViewMode;
@@ -4,4 +4,5 @@ export type { Diff } from './diff-card';
4
4
  export { DiffDrawer } from './diff-drawer';
5
5
  export { DiffViewer, type DiffViewerProps } from './diff-viewer';
6
6
  export { useDiffViewerStore } from './diff-viewer.store';
7
+ export { FileChangeBadge } from './file-change-badge';
7
8
  export type { ChangedFilesViewMode, DiffViewMode, FileIconInfo } from './types';
@@ -194,6 +194,8 @@ export interface FileUploadValue {
194
194
  id: string;
195
195
  file: File;
196
196
  status: FileUploadStatus;
197
+ /** Host-owned upload ref. Set after the selected file reaches storage. */
198
+ ref?: string;
197
199
  progress?: number;
198
200
  error?: string;
199
201
  }
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ResourceContextAction } from '../overlays/resource-context-menu';
3
+ interface TreeListBackgroundProps {
4
+ actions: ResourceContextAction[];
5
+ children: ReactNode;
6
+ }
7
+ export declare const TreeListBackground: (props: TreeListBackgroundProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ interface TreeNodeDataTransfer {
2
+ getData(type: string): string;
3
+ setData(type: string, value: string): void;
4
+ }
5
+ export declare const writeDraggedTreeNodeId: (dataTransfer: TreeNodeDataTransfer, nodeId: string) => void;
6
+ export declare const readDraggedTreeNodeId: (dataTransfer: TreeNodeDataTransfer) => string | undefined;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const TreeListInlineCreationStory: (props: {
2
+ type?: "file" | "folder";
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { TreeListInlineInput } from './tree-list.types';
3
+ interface TreeListInlineInputRowProps {
4
+ input: TreeListInlineInput;
5
+ icon?: ReactNode;
6
+ level: number;
7
+ }
8
+ export declare const TreeListInlineInputRow: (props: TreeListInlineInputRowProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface TreeListMoveSurfaceProps {
3
+ children: ReactNode;
4
+ onMoveNode?: (sourceNodeId: string, targetNodeId?: string) => void;
5
+ }
6
+ export declare const TreeListMoveSurface: (props: TreeListMoveSurfaceProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -15,6 +15,7 @@ interface TreeListNodeRowProps {
15
15
  onFocus?: FocusEventHandler<HTMLElement>;
16
16
  onNavigate?: (event: TreeListNavigateEvent) => void;
17
17
  onToggleNode?: (nodeId: string) => void;
18
+ onMoveNode?: (sourceNodeId: string, targetNodeId?: string) => void;
18
19
  }
19
20
  export declare const TreeListNodeRow: (props: TreeListNodeRowProps) => import("react/jsx-runtime").JSX.Element;
20
21
  export {};
@@ -31,6 +31,8 @@ interface TreeListProps {
31
31
  draggable?: boolean;
32
32
  onReorderSections?: (nextSectionIds: string[]) => void;
33
33
  onReorderNodes?: (sectionId: string, nextNodeIds: string[]) => void;
34
+ /** Move a node onto another node, or onto the tree root when the target is omitted. */
35
+ onMoveNode?: (sourceNodeId: string, targetNodeId?: string) => void;
34
36
  backgroundContextActions?: ResourceContextAction[];
35
37
  }
36
38
  export declare const TreeList: (props: TreeListProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,17 +5,30 @@ export type TreeListActionContext = ListRowActionContext;
5
5
  export type TreeListActionMenuItem = ListRowActionMenuItem;
6
6
  export type TreeListAction = ListRowAction;
7
7
  export type TreeListNodeRowVariant = Extract<ListRowVariant, "empty-state">;
8
+ export interface TreeListInlineInput {
9
+ ariaLabel: string;
10
+ defaultValue?: string;
11
+ placeholder?: string;
12
+ onCommit(value: string): Promise<void> | void;
13
+ onCancel?(): void;
14
+ }
8
15
  /** Tree node data rendered by `TreeList`; extends the row API used by `ListRow`. */
9
16
  export type TreeListNode = ListRowItem & {
10
17
  id: string;
11
18
  children?: TreeListNode[];
12
19
  /** Per-node visual row variant. Used for non-interactive placeholder rows. */
13
20
  rowVariant?: TreeListNodeRowVariant;
21
+ inlineInput?: TreeListInlineInput;
22
+ showContextMenuTrigger?: boolean;
14
23
  hiddenByDefault?: boolean;
15
24
  /** Opt in to the tree-customization (hide/show) menu. Items are non-hideable unless this is true. */
16
25
  canHide?: boolean;
17
26
  /** Opt out of reordering while keeping the node visible in its group. */
18
27
  canReorder?: boolean;
28
+ /** Allow this node to be moved to another tree location. */
29
+ canDrag?: boolean;
30
+ /** Allow movable nodes to be dropped on this node. */
31
+ canDrop?: boolean;
19
32
  };
20
33
  /** Top-level tree section with optional header, actions, empty state, and child nodes. */
21
34
  export interface TreeListSection {
@@ -4,16 +4,16 @@ import { Text as O, Popover as Q, HStack as Ne, Portal as de, Image as st, Butto
4
4
  import { flexRender as ge, useReactTable as ct, getPaginationRowModel as dt, getCoreRowModel as ut, getSortedRowModel as mt } from "@tanstack/react-table";
5
5
  import { isValidElement as Ee, cloneElement as ft, useRef as Ae, useState as Z, useEffect as Be, Fragment as ht } from "react";
6
6
  import { S as xe, T as We } from "./browser-storage-DPtOQJx0.js";
7
- import { u as gt } from "./kanban-renderer-toolbar-BcUZvGyY.js";
7
+ import { u as gt } from "./kanban-renderer-toolbar-CpegGbwq.js";
8
8
  import { Braces as bt, ChevronRight as pt, CircleHelp as St, Minus as xt, Check as we, ChevronDown as wt, Settings2 as yt, GripVertical as Ct, ArrowUpAZ as Fe, ArrowDownAZ as Ke, MoreVertical as vt } from "lucide-react";
9
9
  import { C as ye } from "./number-input-WUfejtNx.js";
10
- import { L as ae, a as Rt, R as It } from "./list-row-B8L4TGsh.js";
11
- import { c as re, g as $t, i as Je, f as kt, E as At, r as zt, a as ze, s as _t, b as Tt, d as Dt, e as Vt, h as Mt, j as Pt, k as Ht, l as Lt, m as Ot, D as Nt, n as jt, S as Et, P as Bt } from "./edit-mode-data-table-4GMiDy75.js";
12
- import { P as Wt } from "./param-editor-w3xH-t8A.js";
10
+ import { L as ae, S as Rt, R as It } from "./list-row-9oxy-F0v.js";
11
+ import { c as re, g as $t, i as Je, f as kt, E as At, r as zt, a as ze, s as _t, b as Tt, d as Dt, e as Vt, h as Mt, j as Pt, k as Ht, l as Lt, m as Ot, D as Nt, n as jt, S as Et, P as Bt } from "./edit-mode-data-table-D6NeiDJx.js";
12
+ import { P as Wt } from "./param-editor-B8Ff9Nm8.js";
13
13
  import { useSensors as Ft, useSensor as Kt, PointerSensor as Jt, DndContext as Xt, closestCenter as qt } from "@dnd-kit/core";
14
14
  import { SortableContext as Gt, verticalListSortingStrategy as Ut, useSortable as Yt } from "@dnd-kit/sortable";
15
15
  import { CSS as Zt } from "@dnd-kit/utilities";
16
- import { b as Qt } from "./param-editor-field-C8zRDStn.js";
16
+ import { b as Qt } from "./param-editor-field-Cu4pto_a.js";
17
17
  import { useChart as eo, Chart as _e } from "@chakra-ui/charts";
18
18
  import { XAxis as to, YAxis as oo, Bar as lo, Tooltip as no, BarChart as ro, useActiveTooltipCoordinate as io, usePlotArea as so } from "recharts";
19
19
  const Xe = (o, e) => e.find((t) => Object.is(t.value, o))?.color ?? null, ao = (o) => {