@pstdio/ui 0.21.0 → 0.22.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/{MermaidComponent-BVMyKttu.js → MermaidComponent-D92GMhht.js} +3 -3
- package/dist/{MermaidComponent-BVMyKttu.js.map → MermaidComponent-D92GMhht.js.map} +1 -1
- package/dist/chat-ui.d.ts +2 -0
- package/dist/chat-ui.js +2 -2
- package/dist/components/data-table/build-columns.d.ts +1 -0
- package/dist/components/data-table/data-table-column-menu.d.ts +2 -0
- package/dist/components/data-table/data-table-row-display.d.ts +11 -0
- package/dist/components/data-table/data-table-table-parts.d.ts +1 -0
- package/dist/components/data-table/edit-mode-data-table-body.d.ts +1 -0
- package/dist/components/data-table/edit-mode-data-table-cell.d.ts +1 -0
- package/dist/components/data-table/edit-mode-data-table-header.d.ts +1 -0
- package/dist/components/diff-viewer/code-editor.d.ts +8 -2
- package/dist/components/kanban-renderer/collection-badge.d.ts +7 -0
- package/dist/components/kanban-renderer/index.d.ts +1 -1
- package/dist/components/kanban-renderer/kanban-renderer-helpers.d.ts +2 -1
- package/dist/components/kanban-renderer/types.d.ts +20 -1
- package/dist/components/list-row/list-row-content.d.ts +1 -0
- package/dist/components/param-editor/param-editor-presentation.d.ts +1 -1
- package/dist/components/param-editor/param-editor.types.d.ts +5 -193
- package/dist/components/rich-text/shared/markdown-ast.d.ts +1 -0
- package/dist/components/rich-text/shared/markdown-source-document.d.ts +7 -0
- package/dist/components/rich-text/shared/markdown-source-links.d.ts +11 -0
- package/dist/components/rich-text/shared/markdown-source-map.d.ts +10 -0
- package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
- package/dist/components/tag-editor/tag-editor-row.d.ts +1 -1
- package/dist/components/tag-editor/tag-editor.types.d.ts +12 -0
- package/dist/components/tag-editor/tag-settings-panel.d.ts +1 -1
- package/dist/components/tree-list/tree-list-drag-provider.d.ts +13 -0
- package/dist/components/tree-list/tree-list-order.store.d.ts +4 -1
- package/dist/components/tree-list/tree-list-reorder.d.ts +14 -3
- package/dist/components/tree-list/tree-list-sortable.d.ts +2 -0
- package/dist/components/tree-list/tree-list-visibility-filter.d.ts +2 -2
- package/dist/components/tree-list/tree-list.d.ts +3 -0
- package/dist/components/tree-list/tree-list.types.d.ts +4 -0
- package/dist/data-table.d.ts +2 -0
- package/dist/data-table.js +806 -793
- package/dist/data-table.js.map +1 -1
- package/dist/diff.d.ts +2 -0
- package/dist/diff.js +529 -533
- package/dist/diff.js.map +1 -1
- package/dist/edit-mode-data-table-DGgRuSW3.js +846 -0
- package/dist/edit-mode-data-table-DGgRuSW3.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1516 -1413
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-CpegGbwq.js → kanban-renderer-toolbar-Bl8xXdwU.js} +527 -469
- package/dist/kanban-renderer-toolbar-Bl8xXdwU.js.map +1 -0
- package/dist/kanban-renderer.d.ts +2 -0
- package/dist/kanban-renderer.js +21 -21
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/lazy-markdown-editor-CCOchoJX.js +235 -0
- package/dist/lazy-markdown-editor-CCOchoJX.js.map +1 -0
- package/dist/list-row-DCgdza1i.js +812 -0
- package/dist/list-row-DCgdza1i.js.map +1 -0
- package/dist/markdown-CASvn1Z2.js +1643 -0
- package/dist/markdown-CASvn1Z2.js.map +1 -0
- package/dist/markdown-editor-C4GCyebp.js +1019 -0
- package/dist/markdown-editor-C4GCyebp.js.map +1 -0
- package/dist/{mermaid-renderer-H3IhLqnQ.js → mermaid-renderer-CVnuKs-A.js} +2 -2
- package/dist/{mermaid-renderer-H3IhLqnQ.js.map → mermaid-renderer-CVnuKs-A.js.map} +1 -1
- package/dist/mermaid.d.ts +2 -0
- package/dist/mermaid.js +1 -1
- package/dist/monaco-browser-CgvlArN7.js +21 -0
- package/dist/monaco-browser-CgvlArN7.js.map +1 -0
- package/dist/{param-editor-B8Ff9Nm8.js → param-editor-CkDq623X.js} +2 -2
- package/dist/{param-editor-B8Ff9Nm8.js.map → param-editor-CkDq623X.js.map} +1 -1
- package/dist/param-editor-field-DRgbnL7-.js +2809 -0
- package/dist/param-editor-field-DRgbnL7-.js.map +1 -0
- package/dist/rich-message-DARuDVOX.js +628 -0
- package/dist/{rich-message-DdFYRzTo.js.map → rich-message-DARuDVOX.js.map} +1 -1
- package/dist/rich-text.d.ts +2 -0
- package/dist/rich-text.js +48 -47
- package/dist/rich-text.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/terminal.d.ts +2 -0
- package/dist/theme/primitives/sizes.d.ts +9 -0
- package/dist/{theme-BH4fSst9.js → theme-B-l5_a6F.js} +69 -50
- package/dist/theme-B-l5_a6F.js.map +1 -0
- package/dist/theme-preference-Bpobguh4.js +114 -0
- package/dist/theme-preference-Bpobguh4.js.map +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-AlO5ZmxQ.js +1262 -0
- package/dist/tree-list-AlO5ZmxQ.js.map +1 -0
- package/dist/utils/theme-preference.d.ts +4 -1
- package/dist/workspace-badge-BR_GgsAG.js +175 -0
- package/dist/workspace-badge-BR_GgsAG.js.map +1 -0
- package/package.json +5 -42
- package/dist/dialog-accept-shortcut-DAEBsoWW.js +0 -7
- package/dist/dialog-accept-shortcut-DAEBsoWW.js.map +0 -1
- package/dist/edit-mode-data-table-D6NeiDJx.js +0 -775
- package/dist/edit-mode-data-table-D6NeiDJx.js.map +0 -1
- package/dist/editor-config-D9OksZ93.js +0 -2416
- package/dist/editor-config-D9OksZ93.js.map +0 -1
- package/dist/kanban-renderer-toolbar-CpegGbwq.js.map +0 -1
- package/dist/lazy-markdown-editor-B7uP2ALS.js +0 -26
- package/dist/lazy-markdown-editor-B7uP2ALS.js.map +0 -1
- package/dist/list-row-9oxy-F0v.js +0 -796
- package/dist/list-row-9oxy-F0v.js.map +0 -1
- package/dist/monaco-browser-CO0NxK_Z.js +0 -19
- package/dist/monaco-browser-CO0NxK_Z.js.map +0 -1
- package/dist/number-input-WUfejtNx.js +0 -343
- package/dist/number-input-WUfejtNx.js.map +0 -1
- package/dist/param-editor-field-Cu4pto_a.js +0 -2845
- package/dist/param-editor-field-Cu4pto_a.js.map +0 -1
- package/dist/rich-message-DdFYRzTo.js +0 -658
- package/dist/theme-BH4fSst9.js.map +0 -1
- package/dist/theme-preference-DyymrYpR.js +0 -123
- package/dist/theme-preference-DyymrYpR.js.map +0 -1
- package/dist/tree-list-uV4UFj0x.js +0 -1116
- package/dist/tree-list-uV4UFj0x.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StackProps } from '@chakra-ui/react';
|
|
2
2
|
import { MouseEvent as ReactMouseEvent } from 'react';
|
|
3
3
|
import { TreeListLinkComponent, TreeListNavigateEvent, TreeListSection } from './tree-list.types';
|
|
4
|
+
import { TreeListMovePolicy } from './tree-list-reorder';
|
|
4
5
|
type TreeListRowVariant = "compact" | "tree";
|
|
5
6
|
interface TreeListSortableProps {
|
|
6
7
|
sections: TreeListSection[];
|
|
@@ -17,6 +18,7 @@ interface TreeListSortableProps {
|
|
|
17
18
|
onSectionContextMenu?: (event: ReactMouseEvent<HTMLElement>, sectionId: string) => void;
|
|
18
19
|
onReorderSections?: (nextSectionIds: string[]) => void;
|
|
19
20
|
onReorderNodes?: (sectionId: string, nextNodeIds: string[]) => void;
|
|
21
|
+
canMove?: TreeListMovePolicy;
|
|
20
22
|
}
|
|
21
23
|
export declare const TreeListSortable: (props: TreeListSortableProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
export {};
|
|
@@ -16,9 +16,9 @@ interface BuildMenuOptions {
|
|
|
16
16
|
resetIcon?: ReactNode;
|
|
17
17
|
}
|
|
18
18
|
export interface TreeVisibilityMenuItems {
|
|
19
|
-
|
|
19
|
+
headerSections?: TreeListSection[];
|
|
20
20
|
sections: TreeListSection[];
|
|
21
|
-
|
|
21
|
+
footerSections?: TreeListSection[];
|
|
22
22
|
}
|
|
23
23
|
export declare const buildTreeVisibilityMenuActions: (items: TreeVisibilityMenuItems, sectionOverrides: Record<string, VisibilityOverride>, nodeOverrides: Record<string, VisibilityOverride>, actions: TreeVisibilityMenuActions, options: BuildMenuOptions) => ResourceContextAction[];
|
|
24
24
|
export {};
|
|
@@ -2,6 +2,7 @@ import { StackProps } from '@chakra-ui/react';
|
|
|
2
2
|
import { MouseEvent as ReactMouseEvent, RefObject } from 'react';
|
|
3
3
|
import { ResourceContextAction } from '../overlays/resource-context-menu';
|
|
4
4
|
import { TreeListLinkComponent, TreeListNavigateEvent, TreeListSection } from './tree-list.types';
|
|
5
|
+
import { TreeListMovePolicy } from './tree-list-reorder';
|
|
5
6
|
export { buildVirtualRows } from './tree-list-model';
|
|
6
7
|
type TreeListRowVariant = "compact" | "tree";
|
|
7
8
|
/** Sectioned hierarchical list for files, resources, navigation, and customizable sidenavs. */
|
|
@@ -31,6 +32,8 @@ interface TreeListProps {
|
|
|
31
32
|
draggable?: boolean;
|
|
32
33
|
onReorderSections?: (nextSectionIds: string[]) => void;
|
|
33
34
|
onReorderNodes?: (sectionId: string, nextNodeIds: string[]) => void;
|
|
35
|
+
/** Decide whether a proposed customization move is valid. */
|
|
36
|
+
canMove?: TreeListMovePolicy;
|
|
34
37
|
/** Move a node onto another node, or onto the tree root when the target is omitted. */
|
|
35
38
|
onMoveNode?: (sourceNodeId: string, targetNodeId?: string) => void;
|
|
36
39
|
backgroundContextActions?: ResourceContextAction[];
|
|
@@ -15,6 +15,8 @@ export interface TreeListInlineInput {
|
|
|
15
15
|
/** Tree node data rendered by `TreeList`; extends the row API used by `ListRow`. */
|
|
16
16
|
export type TreeListNode = ListRowItem & {
|
|
17
17
|
id: string;
|
|
18
|
+
/** Opaque host scope passed to a configurable move policy. */
|
|
19
|
+
moveScope?: string;
|
|
18
20
|
children?: TreeListNode[];
|
|
19
21
|
/** Per-node visual row variant. Used for non-interactive placeholder rows. */
|
|
20
22
|
rowVariant?: TreeListNodeRowVariant;
|
|
@@ -33,6 +35,8 @@ export type TreeListNode = ListRowItem & {
|
|
|
33
35
|
/** Top-level tree section with optional header, actions, empty state, and child nodes. */
|
|
34
36
|
export interface TreeListSection {
|
|
35
37
|
id: string;
|
|
38
|
+
/** Opaque host scope passed to a configurable move policy. */
|
|
39
|
+
moveScope?: string;
|
|
36
40
|
label?: string;
|
|
37
41
|
collapsible?: boolean;
|
|
38
42
|
actions?: TreeListAction[];
|