@pstdio/ui 0.21.0 → 0.23.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-BTgLnpLA.js} +3 -3
- package/dist/{MermaidComponent-BVMyKttu.js.map → MermaidComponent-BTgLnpLA.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/list-row/list-row-root-props.d.ts +34 -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/tab-strip/window-tabs.d.ts +14 -0
- package/dist/components/tab-strip/window-title-bar.d.ts +6 -0
- 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 +489 -489
- package/dist/diff.js.map +1 -1
- package/dist/edit-mode-data-table-BrydKuMM.js +846 -0
- package/dist/edit-mode-data-table-BrydKuMM.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1580 -1407
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-CpegGbwq.js → kanban-renderer-toolbar-ebqlG13w.js} +527 -469
- package/dist/kanban-renderer-toolbar-ebqlG13w.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-Obb0M8xc.js +235 -0
- package/dist/lazy-markdown-editor-Obb0M8xc.js.map +1 -0
- package/dist/list-row-CRi3Luog.js +815 -0
- package/dist/list-row-CRi3Luog.js.map +1 -0
- package/dist/markdown-editor-Bj_QX4oN.js +1019 -0
- package/dist/markdown-editor-Bj_QX4oN.js.map +1 -0
- package/dist/markdown-kuU19Oh3.js +1643 -0
- package/dist/markdown-kuU19Oh3.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-l82HnffN.js +22 -0
- package/dist/monaco-browser-l82HnffN.js.map +1 -0
- package/dist/{param-editor-B8Ff9Nm8.js → param-editor-DgzVeyJ0.js} +2 -2
- package/dist/{param-editor-B8Ff9Nm8.js.map → param-editor-DgzVeyJ0.js.map} +1 -1
- package/dist/param-editor-field-BMvuSAP5.js +2809 -0
- package/dist/param-editor-field-BMvuSAP5.js.map +1 -0
- package/dist/rich-message-dNYvLDd4.js +628 -0
- package/dist/{rich-message-DdFYRzTo.js.map → rich-message-dNYvLDd4.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 +27 -0
- package/dist/theme/recipes/button.d.ts +5 -3
- package/dist/theme/recipes/window-title-bar.d.ts +16 -0
- package/dist/{theme-BH4fSst9.js → theme-C0empEin.js} +321 -145
- package/dist/theme-C0empEin.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-BHFSyvIZ.js +1262 -0
- package/dist/tree-list-BHFSyvIZ.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
|
@@ -13,6 +13,8 @@ export interface TagEditorValue {
|
|
|
13
13
|
export interface TagEditorAction {
|
|
14
14
|
value: string;
|
|
15
15
|
label: string;
|
|
16
|
+
/** Rendered before the label in the trigger and the menu row. */
|
|
17
|
+
icon?: ReactNode;
|
|
16
18
|
}
|
|
17
19
|
export interface TagEditorProps {
|
|
18
20
|
values: TagEditorValue[];
|
|
@@ -33,6 +35,10 @@ export interface TagEditorProps {
|
|
|
33
35
|
/** Name given to a freshly added option before it is renamed inline. */
|
|
34
36
|
addName?: string;
|
|
35
37
|
actionOptions?: TagEditorAction[];
|
|
38
|
+
/** Names the per-row action control, e.g. "Commands". Used in its label and aria-label. */
|
|
39
|
+
actionsLabel?: string;
|
|
40
|
+
/** Names the default-value control shown under the list when showDefault is set. */
|
|
41
|
+
defaultValueLabel?: string;
|
|
36
42
|
defaultAddColor?: string;
|
|
37
43
|
defaultAddIcon?: string | null;
|
|
38
44
|
deleteButtonText?: string;
|
|
@@ -42,4 +48,10 @@ export interface TagEditorProps {
|
|
|
42
48
|
iconOptions?: readonly IconColorPickerIconOption[];
|
|
43
49
|
showDefault?: boolean;
|
|
44
50
|
showIcons?: boolean;
|
|
51
|
+
/** Draws the list as a bordered card, so the header and footer bands read as one panel. */
|
|
52
|
+
framed?: boolean;
|
|
53
|
+
/** Renders a column header band above the rows. Needs `framed` to look right. */
|
|
54
|
+
showColumnHeaders?: boolean;
|
|
55
|
+
/** Header label above the option names, e.g. "State". */
|
|
56
|
+
valueColumnLabel?: string;
|
|
45
57
|
}
|
|
@@ -4,7 +4,7 @@ export interface SaveTagSettingsInput<TValue> {
|
|
|
4
4
|
drafts: TagEditorValue[];
|
|
5
5
|
values: TValue[];
|
|
6
6
|
}
|
|
7
|
-
type EditorLabels = Pick<TagEditorProps, "actionOptions" | "addLabel" | "addName" | "colorOptions" | "deleteButtonText" | "deleteHeadline" | "deleteNotificationText" | "description" | "iconOptions" | "readOnly" | "showDefault" | "onSetDefault" | "showIcons" | "title">;
|
|
7
|
+
type EditorLabels = Pick<TagEditorProps, "actionOptions" | "actionsLabel" | "addLabel" | "addName" | "colorOptions" | "deleteButtonText" | "deleteHeadline" | "defaultValueLabel" | "deleteNotificationText" | "description" | "framed" | "iconOptions" | "readOnly" | "showDefault" | "onSetDefault" | "showColumnHeaders" | "showIcons" | "title" | "valueColumnLabel">;
|
|
8
8
|
type SortableValue = {
|
|
9
9
|
id: string;
|
|
10
10
|
sortOrder: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TreeListSection } from './tree-list.types';
|
|
3
|
+
import { TreeListMovePolicy } from './tree-list-reorder';
|
|
4
|
+
export declare const SharedTreeListDragContext: import('react').Context<boolean>;
|
|
5
|
+
interface TreeListDragProviderProps {
|
|
6
|
+
sections: TreeListSection[];
|
|
7
|
+
canMove?: TreeListMovePolicy;
|
|
8
|
+
onReorderSections?: (nextSectionIds: string[], sourceSectionId: string, destinationSectionId: string) => void;
|
|
9
|
+
onReorderNodes?: (sectionId: string, nextNodeIds: string[]) => void;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const TreeListDragProvider: (props: TreeListDragProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
interface TreeListOrderSnapshot {
|
|
2
2
|
sectionOrder: string[];
|
|
3
3
|
nodeOrderBySection: Record<string, string[]>;
|
|
4
|
+
sectionSlotById: Record<string, TreeListOrderSlot>;
|
|
4
5
|
}
|
|
6
|
+
type TreeListOrderSlot = "header" | "content" | "footer";
|
|
5
7
|
interface TreeListOrderState extends TreeListOrderSnapshot {
|
|
6
8
|
setSectionOrder: (nextSectionIds: string[]) => void;
|
|
7
9
|
setNodeOrder: (sectionId: string, nextNodeIds: string[]) => void;
|
|
10
|
+
setSectionSlot: (sectionId: string, slot: TreeListOrderSlot) => void;
|
|
8
11
|
resetSectionOrder: () => void;
|
|
9
12
|
resetNodeOrder: (sectionId: string) => void;
|
|
10
13
|
reset: () => void;
|
|
@@ -39,4 +42,4 @@ export declare const getTreeListOrderStore: (storageKey: string) => Omit<import(
|
|
|
39
42
|
};
|
|
40
43
|
};
|
|
41
44
|
export declare const useTreeListOrderStore: <T>(storageKey: string, selector: (state: TreeListOrderState) => T) => T;
|
|
42
|
-
export type { TreeListOrderSnapshot, TreeListOrderState };
|
|
45
|
+
export type { TreeListOrderSlot, TreeListOrderSnapshot, TreeListOrderState };
|
|
@@ -7,7 +7,18 @@ export type ReorderResult = {
|
|
|
7
7
|
nextSectionIds: string[];
|
|
8
8
|
} | {
|
|
9
9
|
kind: "node";
|
|
10
|
-
|
|
11
|
-
nextNodeIds: string[];
|
|
10
|
+
orders: Record<string, string[]>;
|
|
12
11
|
};
|
|
13
|
-
export
|
|
12
|
+
export interface TreeListMoveEndpoint {
|
|
13
|
+
kind: "section" | "node";
|
|
14
|
+
sectionId: string;
|
|
15
|
+
id: string;
|
|
16
|
+
moveScope?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface TreeListMove {
|
|
19
|
+
source: TreeListMoveEndpoint;
|
|
20
|
+
destination: TreeListMoveEndpoint;
|
|
21
|
+
}
|
|
22
|
+
export type TreeListMovePolicy = (move: TreeListMove) => boolean;
|
|
23
|
+
export declare const canDropOnTreeListTarget: (sections: TreeListSection[], activeId: string, overId: string, canMove?: TreeListMovePolicy) => boolean;
|
|
24
|
+
export declare const computeReorderResult: (sections: TreeListSection[], activeId: string, overId: string, canMove?: TreeListMovePolicy) => ReorderResult | null;
|
|
@@ -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[];
|