@pstdio/ui 0.19.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.
- package/dist/{MermaidComponent-BPiVFNYK.js → MermaidComponent-BVMyKttu.js} +3 -3
- package/dist/{MermaidComponent-BPiVFNYK.js.map → MermaidComponent-BVMyKttu.js.map} +1 -1
- package/dist/browser-storage-DPtOQJx0.js +127 -0
- package/dist/browser-storage-DPtOQJx0.js.map +1 -0
- package/dist/chat-ui.js +19 -20
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/data-table/data-table-header.d.ts +3 -1
- package/dist/components/data-table/edit-mode-data-table-body.d.ts +29 -0
- package/dist/components/data-table/edit-mode-data-table-cell.d.ts +15 -0
- package/dist/components/data-table/edit-mode-data-table-editors.d.ts +19 -0
- package/dist/components/data-table/edit-mode-data-table-header.d.ts +23 -0
- package/dist/components/data-table/edit-mode-data-table-selection.d.ts +12 -0
- package/dist/components/data-table/edit-mode-data-table.d.ts +2 -0
- package/dist/components/data-table/edit-mode-story.d.ts +5 -0
- package/dist/components/data-table/index.d.ts +1 -1
- package/dist/components/data-table/pagination-footer.d.ts +8 -5
- package/dist/components/data-table/types.d.ts +24 -0
- package/dist/components/diff-viewer/code-editor.d.ts +2 -0
- package/dist/components/diff-viewer/file-change-badge.d.ts +3 -0
- package/dist/components/diff-viewer/file-list-panel.d.ts +0 -1
- package/dist/components/diff-viewer/index.d.ts +1 -0
- package/dist/components/param-editor/param-editor.types.d.ts +2 -0
- package/dist/components/rich-text/index.d.ts +2 -0
- package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +7 -0
- package/dist/components/rich-text/markdown-editor/markdown-table.story-fixture.d.ts +3 -0
- package/dist/components/rich-text/markdown-editor/plugins/MarkdownSectionNavigationPlugin.d.ts +8 -0
- package/dist/components/rich-text/markdown-editor/plugins/MarkdownSlashCommandPlugin.d.ts +1 -0
- package/dist/components/rich-text/markdown-editor/plugins/markdown-history-plugin.d.ts +1 -0
- package/dist/components/rich-text/markdown-editor/plugins/markdown-section-navigation.d.ts +20 -0
- package/dist/components/rich-text/rich-message/rich-message.d.ts +2 -0
- package/dist/components/rich-text/shared/markdown-ast.d.ts +6 -0
- package/dist/components/rich-text/shared/markdown-codec.d.ts +3 -0
- package/dist/components/rich-text/shared/markdown-export.d.ts +2 -0
- package/dist/components/rich-text/shared/markdown-import.d.ts +2 -0
- package/dist/components/rich-text/shared/markdown-inline.d.ts +5 -0
- package/dist/components/rich-text/shared/markdown-table.d.ts +41 -0
- package/dist/components/rich-text/shared/markdown-url-context.d.ts +9 -0
- package/dist/components/rich-text/shared/markdown-url.d.ts +3 -0
- package/dist/components/rich-text/shared/nodes/DataTableNode.d.ts +13 -11
- package/dist/components/rich-text/shared/nodes/MarkdownImageNode.d.ts +35 -0
- package/dist/components/rich-text/shared/nodes/MarkdownLinkNode.d.ts +18 -0
- package/dist/components/rich-text/shared/nodes/RawHtmlNode.d.ts +31 -0
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/floating-toolbar-buttons.d.ts +4 -2
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +1 -1
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +1 -1
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +1 -0
- package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +2 -3
- package/dist/components/tree-list/tree-list-background.d.ts +8 -0
- package/dist/components/tree-list/tree-list-drag.d.ts +7 -0
- package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +3 -0
- package/dist/components/tree-list/tree-list-inline-input.d.ts +9 -0
- package/dist/components/tree-list/tree-list-move-surface.d.ts +7 -0
- package/dist/components/tree-list/tree-list-node-row.d.ts +1 -0
- package/dist/components/tree-list/tree-list.d.ts +2 -0
- package/dist/components/tree-list/tree-list.types.d.ts +13 -0
- package/dist/data-table.js +723 -923
- package/dist/data-table.js.map +1 -1
- package/dist/diff.js +796 -815
- package/dist/diff.js.map +1 -1
- package/dist/edit-mode-data-table-D6NeiDJx.js +775 -0
- package/dist/edit-mode-data-table-D6NeiDJx.js.map +1 -0
- package/dist/editor-config-D9OksZ93.js +2416 -0
- package/dist/editor-config-D9OksZ93.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +326 -353
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-Bcj_N1qr.js → kanban-renderer-toolbar-CpegGbwq.js} +359 -361
- package/dist/kanban-renderer-toolbar-CpegGbwq.js.map +1 -0
- package/dist/kanban-renderer.js +28 -27
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{lazy-markdown-editor-DwhqQ-NN.js → lazy-markdown-editor-B7uP2ALS.js} +2 -2
- package/dist/{lazy-markdown-editor-DwhqQ-NN.js.map → lazy-markdown-editor-B7uP2ALS.js.map} +1 -1
- package/dist/{list-row-BtoVJpFs.js → list-row-9oxy-F0v.js} +229 -254
- package/dist/list-row-9oxy-F0v.js.map +1 -0
- package/dist/{mermaid-renderer-DZo3qj6D.js → mermaid-renderer-H3IhLqnQ.js} +3 -3
- package/dist/{mermaid-renderer-DZo3qj6D.js.map → mermaid-renderer-H3IhLqnQ.js.map} +1 -1
- package/dist/mermaid.js +1 -1
- package/dist/number-input-WUfejtNx.js +343 -0
- package/dist/number-input-WUfejtNx.js.map +1 -0
- package/dist/{param-editor-XRjSu6MT.js → param-editor-B8Ff9Nm8.js} +2 -2
- package/dist/{param-editor-XRjSu6MT.js.map → param-editor-B8Ff9Nm8.js.map} +1 -1
- package/dist/param-editor-field-Cu4pto_a.js +2845 -0
- package/dist/param-editor-field-Cu4pto_a.js.map +1 -0
- package/dist/rich-message-DdFYRzTo.js +658 -0
- package/dist/rich-message-DdFYRzTo.js.map +1 -0
- package/dist/rich-text.js +182 -110
- package/dist/rich-text.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/recipes/button.d.ts +11 -0
- package/dist/theme/recipes/input.d.ts +32 -0
- package/dist/{theme-7PDdD9OD.js → theme-BH4fSst9.js} +44 -1
- package/dist/theme-BH4fSst9.js.map +1 -0
- package/dist/{theme-preference-DOzHx64J.js → theme-preference-DyymrYpR.js} +2 -2
- package/dist/{theme-preference-DOzHx64J.js.map → theme-preference-DyymrYpR.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/tree-list-uV4UFj0x.js +1116 -0
- package/dist/tree-list-uV4UFj0x.js.map +1 -0
- package/package.json +9 -1
- package/dist/browser-storage-BinyFNJX.js +0 -40
- package/dist/browser-storage-BinyFNJX.js.map +0 -1
- package/dist/checkbox-B2zYVemL.js +0 -70
- package/dist/checkbox-B2zYVemL.js.map +0 -1
- package/dist/components/data-table/editable-cells-story.d.ts +0 -9
- package/dist/kanban-renderer-toolbar-Bcj_N1qr.js.map +0 -1
- package/dist/list-row-BtoVJpFs.js.map +0 -1
- package/dist/markdown-DDd2ESoH.js +0 -743
- package/dist/markdown-DDd2ESoH.js.map +0 -1
- package/dist/markdown-editor-CYVkzt8t.js +0 -741
- package/dist/markdown-editor-CYVkzt8t.js.map +0 -1
- package/dist/param-editor-field-B9lEPq8c.js +0 -3028
- package/dist/param-editor-field-B9lEPq8c.js.map +0 -1
- package/dist/resource-badge-CuItchgL.js +0 -98
- package/dist/resource-badge-CuItchgL.js.map +0 -1
- package/dist/rich-message--eRzjWYK.js +0 -730
- package/dist/rich-message--eRzjWYK.js.map +0 -1
- package/dist/scroll-area-BMbg1WcD.js +0 -91
- package/dist/scroll-area-BMbg1WcD.js.map +0 -1
- package/dist/theme-7PDdD9OD.js.map +0 -1
- package/dist/tree-list-B2L0cTj2.js +0 -1033
- package/dist/tree-list-B2L0cTj2.js.map +0 -1
|
@@ -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,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 {
|