@pstdio/ui 0.40.0 → 0.42.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-81jr28u4.js → MermaidComponent-D7vhkpka.js} +3 -3
- package/dist/{MermaidComponent-81jr28u4.js.map → MermaidComponent-D7vhkpka.js.map} +1 -1
- package/dist/alert-MQ47wy7f.js +388 -0
- package/dist/alert-MQ47wy7f.js.map +1 -0
- package/dist/chat-ui.d.ts +129 -23
- package/dist/chat-ui.js +2596 -1591
- package/dist/chat-ui.js.map +1 -1
- package/dist/{types-DWA3enV6.d.ts → collection-view-fields-D3cysHNT.d.ts} +87 -37
- package/dist/collection-view-grouping-D4nZk8-3.js +90 -0
- package/dist/collection-view-grouping-D4nZk8-3.js.map +1 -0
- package/dist/collection-view-search-CpjJy76w.js +1973 -0
- package/dist/collection-view-search-CpjJy76w.js.map +1 -0
- package/dist/collection-view.d.ts +4 -0
- package/dist/collection-view.js +2 -0
- package/dist/{data-table-stats-row-CpRe_xK2.js → data-table-stats-row-64magT2g.js} +2 -2
- package/dist/{data-table-stats-row-CpRe_xK2.js.map → data-table-stats-row-64magT2g.js.map} +1 -1
- package/dist/data-table.d.ts +29 -7
- package/dist/data-table.js +1043 -878
- package/dist/data-table.js.map +1 -1
- package/dist/diff-bubble-DewUd_2w.js +61 -0
- package/dist/diff-bubble-DewUd_2w.js.map +1 -0
- package/dist/{diff-drawer-45rpk3aq.js → diff-drawer-IYpQ-QQK.js} +264 -242
- package/dist/diff-drawer-IYpQ-QQK.js.map +1 -0
- package/dist/diff-viewer-C-0VAt9P.js +574 -0
- package/dist/diff-viewer-C-0VAt9P.js.map +1 -0
- package/dist/diff.d.ts +11 -0
- package/dist/diff.js +107 -98
- package/dist/diff.js.map +1 -1
- package/dist/display-sort-control-f3rbILsV.js +588 -0
- package/dist/display-sort-control-f3rbILsV.js.map +1 -0
- package/dist/drop-indicator-HjlBSIeV.js +27 -0
- package/dist/drop-indicator-HjlBSIeV.js.map +1 -0
- package/dist/edit-mode-data-table-DnMB2jiy.js +1449 -0
- package/dist/edit-mode-data-table-DnMB2jiy.js.map +1 -0
- package/dist/host-storage-BIo5azql.js +31 -0
- package/dist/host-storage-BIo5azql.js.map +1 -0
- package/dist/host-storage-J0089Hyk.d.ts +17 -0
- package/dist/{slider-hwHYe98I.js → icon-options-Tt6Wzhtv.js} +86 -201
- package/dist/icon-options-Tt6Wzhtv.js.map +1 -0
- package/dist/{index-Bfddrlz8.d.ts → index-B79hwNcB.d.ts} +66 -14
- package/dist/index-CKsd23jv.d.ts +80 -0
- package/dist/{index-CbtbcvKm.d.ts → index-DlmvvQ6x.d.ts} +1 -1
- package/dist/index-ICoad2I_.d.ts +282 -0
- package/dist/index.d.ts +63 -22
- package/dist/index.js +1149 -1054
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +3 -326
- package/dist/kanban-renderer.js +980 -596
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/list-row-Z4SHkseA.js +1195 -0
- package/dist/list-row-Z4SHkseA.js.map +1 -0
- package/dist/markdown-editor-Dd4mor7l.js +3236 -0
- package/dist/markdown-editor-Dd4mor7l.js.map +1 -0
- package/dist/{mermaid-renderer-DImi0fDp.js → mermaid-renderer-0PmNkOXI.js} +29 -29
- package/dist/mermaid-renderer-0PmNkOXI.js.map +1 -0
- package/dist/mermaid.js +1 -1
- package/dist/number-input-7K66wnSC.js +63 -0
- package/dist/number-input-7K66wnSC.js.map +1 -0
- package/dist/{param-editor-BQd4AOUP.js → param-editor-Dnix-fJo.js} +2 -2
- package/dist/{param-editor-BQd4AOUP.js.map → param-editor-Dnix-fJo.js.map} +1 -1
- package/dist/{param-editor-field-BJ_rLUnV.js → param-editor-field-B3vLST-B.js} +1436 -1427
- package/dist/param-editor-field-B3vLST-B.js.map +1 -0
- package/dist/param-editor.js +4 -3
- package/dist/prism-OG4H7Hu4.js +334 -0
- package/dist/prism-OG4H7Hu4.js.map +1 -0
- package/dist/queued-follow-up-Bj_vtMgd.js +208 -0
- package/dist/queued-follow-up-Bj_vtMgd.js.map +1 -0
- package/dist/{resource-badge-95WPVlZf.d.ts → resource-badge-nOWPqxFU.d.ts} +1 -0
- package/dist/rich-text-BgEnAHr2.js +1160 -0
- package/dist/rich-text-BgEnAHr2.js.map +1 -0
- package/dist/rich-text.d.ts +2 -2
- package/dist/rich-text.js +4 -2
- package/dist/style.css +1 -1
- package/dist/terminal.d.ts +5 -63
- package/dist/terminal.js +102 -122
- package/dist/terminal.js.map +1 -1
- package/dist/{theme-CbmSEbRF.js → theme-CMJdH59Z.js} +589 -265
- package/dist/theme-CMJdH59Z.js.map +1 -0
- package/dist/theme-kKuLN2jb.js +80 -0
- package/dist/theme-kKuLN2jb.js.map +1 -0
- package/dist/theme-preference-BV4cbJNB.js +115 -0
- package/dist/theme-preference-BV4cbJNB.js.map +1 -0
- package/dist/theme.js +3 -2
- package/dist/tree-list-jarhD31R.js +1652 -0
- package/dist/tree-list-jarhD31R.js.map +1 -0
- package/dist/use-virtualizer-uj43XjBp.js +10 -0
- package/dist/use-virtualizer-uj43XjBp.js.map +1 -0
- package/dist/{workspace-badge-Brm3Xr3m.d.ts → workspace-badge-BKtB805G.d.ts} +5 -1
- package/package.json +8 -4
- package/dist/diff-bubble-DZsarmSG.js +0 -61
- package/dist/diff-bubble-DZsarmSG.js.map +0 -1
- package/dist/diff-drawer-45rpk3aq.js.map +0 -1
- package/dist/diff-viewer-BP_mI6Wx.js +0 -558
- package/dist/diff-viewer-BP_mI6Wx.js.map +0 -1
- package/dist/list-row-uqD-q4gv.js +0 -1018
- package/dist/list-row-uqD-q4gv.js.map +0 -1
- package/dist/mermaid-renderer-DImi0fDp.js.map +0 -1
- package/dist/param-editor-field-BJ_rLUnV.js.map +0 -1
- package/dist/prism-BStPsJSB.js +0 -658
- package/dist/prism-BStPsJSB.js.map +0 -1
- package/dist/rich-text-VYAmEigU.js +0 -6979
- package/dist/rich-text-VYAmEigU.js.map +0 -1
- package/dist/slider-hwHYe98I.js.map +0 -1
- package/dist/theme-CbmSEbRF.js.map +0 -1
- package/dist/theme-preference-pzfuK5cH.js +0 -101
- package/dist/theme-preference-pzfuK5cH.js.map +0 -1
- package/dist/tree-list-BNZwjQZA.js +0 -1616
- package/dist/tree-list-BNZwjQZA.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { i as ScrollAreaProps, r as ScrollArea, t as ResourceBadge } from "./resource-badge-
|
|
2
|
-
import { _ as ActivityHeader, a as ActivityComposerProps, b as ActivityRootProps, c as ActivityReply, d as ActivityEventProps, f as ActivityActor, g as ActivityFeedProps, h as ActivityFeed, i as ActivityComposer, l as ActivityReplyProps, m as ActivityTimelineProps, n as ActivityAvatar, o as ActivityComment, p as ActivityTimeline, r as ActivityAvatarProps, s as ActivityCommentProps, t as Activity, u as ActivityEvent, v as ActivityHeaderProps, y as ActivityRoot } from "./index-
|
|
3
|
-
import {
|
|
1
|
+
import { i as ScrollAreaProps, r as ScrollArea, t as ResourceBadge } from "./resource-badge-nOWPqxFU.js";
|
|
2
|
+
import { _ as ActivityHeader, a as ActivityComposerProps, b as ActivityRootProps, c as ActivityReply, d as ActivityEventProps, f as ActivityActor, g as ActivityFeedProps, h as ActivityFeed, i as ActivityComposer, l as ActivityReplyProps, m as ActivityTimelineProps, n as ActivityAvatar, o as ActivityComment, p as ActivityTimeline, r as ActivityAvatarProps, s as ActivityCommentProps, t as Activity, u as ActivityEvent, v as ActivityHeaderProps, y as ActivityRoot } from "./index-DlmvvQ6x.js";
|
|
3
|
+
import { n as HostStorageProvider, t as HostStorage } from "./host-storage-J0089Hyk.js";
|
|
4
|
+
import { a as resolveSessionIndicatorColor, c as ResourceActionMenu, d as ResourceContextMenu, i as SessionIndicator, l as ResourceActionMenuProps, n as WorkspaceBadgeProps, o as resolveSessionIndicatorIcon, r as SessionCompletionStatus, s as sessionCompletionStatuses, t as WorkspaceBadge, u as ResourceContextAction } from "./workspace-badge-BKtB805G.js";
|
|
4
5
|
import { a as createThemePreferenceFromVsCodeTheme, c as ThemePreferenceOption, d as defaultThemePreferences, f as getThemePreferenceClassName, h as isThemePreference, i as createMonacoThemeFromVsCodeTheme, l as ThemePreferenceTokens, m as getThemePreferenceMode, n as MonacoThemeData, o as ThemePreference, p as getThemePreferenceClassNames, r as VsCodeColorTheme, s as ThemePreferenceMode, t as _default, u as applyThemePreference } from "./index-Dd6e8lU_.js";
|
|
5
6
|
import { Alert, BadgeProps, BoxProps, Breadcrumb as Breadcrumb$1, CenterProps, ChakraProvider, Checkbox as Checkbox$1, ConditionalValue, EmptyState as EmptyState$1, FlexProps, HTMLChakraProps, IconButtonProps, IconProps, Menu, RadioGroup as RadioGroup$1, RecipeVariantProps, Slider as Slider$1, StackProps, Switch as Switch$1, SystemStyleObject, TextProps, Tooltip as Tooltip$1, chakra, createToaster } from "@chakra-ui/react";
|
|
6
7
|
import * as React$2 from "react";
|
|
@@ -55,6 +56,10 @@ interface PaletteEscapeContext<T extends PaletteEntry> extends PaletteState<T> {
|
|
|
55
56
|
type PaletteStateValue<T extends PaletteEntry, TValue> = TValue | ((state: PaletteState<T>) => TValue);
|
|
56
57
|
interface PaletteProps<T extends PaletteEntry = PaletteEntry> {
|
|
57
58
|
open: boolean;
|
|
59
|
+
/** Fill the viewport, with a scrollable results area. */
|
|
60
|
+
fullScreen?: boolean;
|
|
61
|
+
/** Focus the dialog instead of opening a touch keyboard when false. */
|
|
62
|
+
searchAutoFocus?: boolean;
|
|
58
63
|
entries: T[];
|
|
59
64
|
initialQuery?: string;
|
|
60
65
|
initialActiveIndex?: number;
|
|
@@ -318,6 +323,9 @@ interface BubbleButtonProps extends Omit<IconButtonProps, BubbleButtonStyleProps
|
|
|
318
323
|
export declare const BubbleButton: import("react").ForwardRefExoticComponent<BubbleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
319
324
|
//#endregion
|
|
320
325
|
//#region src/components/overlays/bubble-panel.d.ts
|
|
326
|
+
interface BubblePanelContainerProps extends HTMLChakraProps<"section"> {
|
|
327
|
+
[attribute: `data-${string}`]: string | number | boolean | undefined;
|
|
328
|
+
}
|
|
321
329
|
interface BubblePanelProps {
|
|
322
330
|
isOpen?: boolean;
|
|
323
331
|
title?: string;
|
|
@@ -328,10 +336,11 @@ interface BubblePanelProps {
|
|
|
328
336
|
popOutLabel?: string;
|
|
329
337
|
width?: string;
|
|
330
338
|
height?: string;
|
|
331
|
-
containerProps?:
|
|
339
|
+
containerProps?: BubblePanelContainerProps;
|
|
332
340
|
testId?: string;
|
|
333
341
|
"aria-label"?: string;
|
|
334
342
|
children?: ReactNode;
|
|
343
|
+
overlay?: ReactNode;
|
|
335
344
|
}
|
|
336
345
|
export declare const BubblePanel: import("react").ForwardRefExoticComponent<BubblePanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
337
346
|
//#endregion
|
|
@@ -413,6 +422,7 @@ interface SearchableMenuItem {
|
|
|
413
422
|
secondaryLabel?: string;
|
|
414
423
|
tooltipLabel?: ReactNode;
|
|
415
424
|
icon?: ElementType;
|
|
425
|
+
iconColor?: string;
|
|
416
426
|
variant?: "default" | "compact" | "full-width";
|
|
417
427
|
isDisabled?: boolean;
|
|
418
428
|
isSelected?: boolean;
|
|
@@ -451,6 +461,7 @@ interface SearchableMenuProps<T extends SearchableMenuItem> {
|
|
|
451
461
|
contentTestId?: string;
|
|
452
462
|
portalled?: boolean;
|
|
453
463
|
parentList?: SearchableMenuParentList<T>;
|
|
464
|
+
multiple?: boolean;
|
|
454
465
|
}
|
|
455
466
|
export declare const SearchableMenu: <T extends SearchableMenuItem>(props: SearchableMenuProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
456
467
|
//#endregion
|
|
@@ -510,6 +521,12 @@ interface CopyButtonProps extends Omit<IconButtonProps, "children" | "onClick">
|
|
|
510
521
|
/** Webviews must declare clipboard.write. Copy from a click so browser activation is preserved. */
|
|
511
522
|
export declare const CopyButton: (props: CopyButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
512
523
|
//#endregion
|
|
524
|
+
//#region src/components/primitives/drop-indicator.d.ts
|
|
525
|
+
interface DropIndicatorProps extends BoxProps {
|
|
526
|
+
orientation?: "horizontal" | "vertical";
|
|
527
|
+
}
|
|
528
|
+
export declare const DropIndicator: (props: DropIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
529
|
+
//#endregion
|
|
513
530
|
//#region src/components/primitives/empty-state.d.ts
|
|
514
531
|
/** Centered empty-state message with optional icon, description, and follow-up actions. */
|
|
515
532
|
interface EmptyStateProps extends EmptyState$1.RootProps {
|
|
@@ -569,18 +586,21 @@ export declare const optionIcons: ({
|
|
|
569
586
|
value: string;
|
|
570
587
|
label: string;
|
|
571
588
|
icon: ComponentType<{
|
|
589
|
+
is?: string | undefined | undefined;
|
|
572
590
|
onChange?: import("react").ChangeEventHandler<HTMLSpanElement, Element> | undefined;
|
|
573
591
|
onError?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
574
592
|
onSubmit?: import("react").SubmitEventHandler<HTMLSpanElement> | undefined;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
578
|
-
hidden?: boolean | undefined | undefined;
|
|
579
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
580
|
-
radioGroup?: string | undefined | undefined;
|
|
593
|
+
resource?: string | undefined | undefined;
|
|
594
|
+
id?: string | undefined | undefined;
|
|
581
595
|
slot?: string | undefined | undefined;
|
|
582
596
|
style?: import("react").CSSProperties | undefined;
|
|
583
597
|
title?: string | undefined | undefined;
|
|
598
|
+
color?: string | undefined | undefined;
|
|
599
|
+
content?: string | undefined | undefined;
|
|
600
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
601
|
+
hidden?: boolean | undefined | undefined;
|
|
602
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
603
|
+
role?: import("react").AriaRole | undefined;
|
|
584
604
|
defaultChecked?: boolean | undefined | undefined;
|
|
585
605
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
586
606
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -594,19 +614,17 @@ export declare const optionIcons: ({
|
|
|
594
614
|
dir?: string | undefined | undefined;
|
|
595
615
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
596
616
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
597
|
-
id?: string | undefined | undefined;
|
|
598
617
|
lang?: string | undefined | undefined;
|
|
599
618
|
nonce?: string | undefined | undefined;
|
|
600
619
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
601
620
|
tabIndex?: number | undefined | undefined;
|
|
602
|
-
|
|
621
|
+
radioGroup?: string | undefined | undefined;
|
|
603
622
|
about?: string | undefined | undefined;
|
|
604
623
|
datatype?: string | undefined | undefined;
|
|
605
624
|
inlist?: any;
|
|
606
625
|
prefix?: string | undefined | undefined;
|
|
607
626
|
property?: string | undefined | undefined;
|
|
608
627
|
rel?: string | undefined | undefined;
|
|
609
|
-
resource?: string | undefined | undefined;
|
|
610
628
|
rev?: string | undefined | undefined;
|
|
611
629
|
typeof?: string | undefined | undefined;
|
|
612
630
|
vocab?: string | undefined | undefined;
|
|
@@ -620,11 +638,11 @@ export declare const optionIcons: ({
|
|
|
620
638
|
results?: number | undefined | undefined;
|
|
621
639
|
security?: string | undefined | undefined;
|
|
622
640
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
641
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
623
642
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
624
643
|
popoverTarget?: string | undefined | undefined;
|
|
625
644
|
inert?: boolean | undefined | undefined;
|
|
626
645
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
627
|
-
is?: string | undefined | undefined;
|
|
628
646
|
exportparts?: string | undefined | undefined;
|
|
629
647
|
part?: string | undefined | undefined;
|
|
630
648
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
@@ -668,7 +686,6 @@ export declare const optionIcons: ({
|
|
|
668
686
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
669
687
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
670
688
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
671
|
-
"aria-roledescription"?: string | undefined | undefined;
|
|
672
689
|
"aria-rowcount"?: number | undefined | undefined;
|
|
673
690
|
"aria-rowindex"?: number | undefined | undefined;
|
|
674
691
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
@@ -1030,6 +1047,8 @@ interface TreeListSection {
|
|
|
1030
1047
|
menuLabel?: string;
|
|
1031
1048
|
collapsible?: boolean;
|
|
1032
1049
|
actions?: TreeListAction[];
|
|
1050
|
+
contextMenuItems?: TreeListActionMenuItem[];
|
|
1051
|
+
inlineInput?: TreeListInlineInput;
|
|
1033
1052
|
emptyState?: ReactNode;
|
|
1034
1053
|
nodes: TreeListNode[];
|
|
1035
1054
|
hiddenByDefault?: boolean;
|
|
@@ -1120,7 +1139,7 @@ interface TreeListVisibilityState extends TreeListVisibilitySnapshot {
|
|
|
1120
1139
|
clearNode: (id: string) => void;
|
|
1121
1140
|
reset: () => void;
|
|
1122
1141
|
}
|
|
1123
|
-
export declare const getTreeListVisibilityStore: (storageKey: string) => Omit<import("zustand").StoreApi<TreeListVisibilityState>, "setState" | "persist"> & {
|
|
1142
|
+
export declare const getTreeListVisibilityStore: (storageKey: string, storage?: HostStorage) => Omit<import("zustand").StoreApi<TreeListVisibilityState>, "setState" | "persist"> & {
|
|
1124
1143
|
setState(partial: TreeListVisibilityState | Partial<TreeListVisibilityState> | ((state: TreeListVisibilityState) => TreeListVisibilityState | Partial<TreeListVisibilityState>), replace?: false | undefined): unknown;
|
|
1125
1144
|
setState(state: TreeListVisibilityState | ((state: TreeListVisibilityState) => TreeListVisibilityState), replace: true): unknown;
|
|
1126
1145
|
persist: {
|
|
@@ -1364,8 +1383,8 @@ interface TreeListProps {
|
|
|
1364
1383
|
onReorderNodes?: (sectionId: string, nextNodeIds: string[]) => void;
|
|
1365
1384
|
/** Decide whether a proposed customization move is valid. */
|
|
1366
1385
|
canMove?: TreeListMovePolicy;
|
|
1367
|
-
/** Move a node
|
|
1368
|
-
onMoveNode?: (sourceNodeId: string, targetNodeId?: string) => void;
|
|
1386
|
+
/** Move a node before/after a leaf, into a container, or into the background when the target is omitted. */
|
|
1387
|
+
onMoveNode?: (sourceNodeId: string, targetNodeId?: string, position?: "before" | "after" | "inside") => void;
|
|
1369
1388
|
backgroundContextActions?: ResourceContextAction[];
|
|
1370
1389
|
}
|
|
1371
1390
|
export declare const TreeList: (props: TreeListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1385,17 +1404,26 @@ interface TreeListOrderSnapshot {
|
|
|
1385
1404
|
sectionOrder: string[];
|
|
1386
1405
|
nodeOrderBySection: Record<string, string[]>;
|
|
1387
1406
|
sectionSlotById: Record<string, TreeListOrderSlot>;
|
|
1407
|
+
groups: TreeListGroup[];
|
|
1388
1408
|
}
|
|
1389
1409
|
type TreeListOrderSlot = "header" | "content" | "footer";
|
|
1410
|
+
interface TreeListGroup {
|
|
1411
|
+
id: string;
|
|
1412
|
+
label: string;
|
|
1413
|
+
moveScope?: string;
|
|
1414
|
+
}
|
|
1390
1415
|
interface TreeListOrderState extends TreeListOrderSnapshot {
|
|
1391
1416
|
setSectionOrder: (nextSectionIds: string[]) => void;
|
|
1392
1417
|
setNodeOrder: (sectionId: string, nextNodeIds: string[]) => void;
|
|
1393
1418
|
setSectionSlot: (sectionId: string, slot: TreeListOrderSlot) => void;
|
|
1419
|
+
addGroup: (group: TreeListGroup, sectionIds: string[]) => void;
|
|
1420
|
+
renameGroup: (groupId: string, label: string) => void;
|
|
1421
|
+
removeGroup: (groupId: string) => void;
|
|
1394
1422
|
resetSectionOrder: () => void;
|
|
1395
1423
|
resetNodeOrder: (sectionId: string) => void;
|
|
1396
1424
|
reset: () => void;
|
|
1397
1425
|
}
|
|
1398
|
-
export declare const getTreeListOrderStore: (storageKey: string) => Omit<import("zustand").StoreApi<TreeListOrderState>, "setState" | "persist"> & {
|
|
1426
|
+
export declare const getTreeListOrderStore: (storageKey: string, storage?: HostStorage) => Omit<import("zustand").StoreApi<TreeListOrderState>, "setState" | "persist"> & {
|
|
1399
1427
|
setState(partial: TreeListOrderState | Partial<TreeListOrderState> | ((state: TreeListOrderState) => TreeListOrderState | Partial<TreeListOrderState>), replace?: false | undefined): unknown;
|
|
1400
1428
|
setState(state: TreeListOrderState | ((state: TreeListOrderState) => TreeListOrderState), replace: true): unknown;
|
|
1401
1429
|
persist: {
|
|
@@ -1411,7 +1439,7 @@ export declare const getTreeListOrderStore: (storageKey: string) => Omit<import(
|
|
|
1411
1439
|
export declare const useTreeListOrderStore: <T>(storageKey: string, selector: (state: TreeListOrderState) => T) => T;
|
|
1412
1440
|
//#endregion
|
|
1413
1441
|
//#region src/components/tree-list/tree-list-order-filter.d.ts
|
|
1414
|
-
export declare const applyTreeListOrder: (sections: TreeListSection[], sectionOrder: string[], nodeOrderBySection: Record<string, string[]
|
|
1442
|
+
export declare const applyTreeListOrder: (sections: TreeListSection[], sectionOrder: string[], nodeOrderBySection: Record<string, string[]>, groups?: TreeListGroup[]) => TreeListSection[];
|
|
1415
1443
|
//#endregion
|
|
1416
1444
|
//#region src/components/tree-list/tree-list-visibility-filter.d.ts
|
|
1417
1445
|
export declare const resolveVisibility: (override: VisibilityOverride | undefined, hiddenByDefault: boolean | undefined) => VisibilityOverride;
|
|
@@ -1495,10 +1523,22 @@ interface ResolveFileIconElementOptions {
|
|
|
1495
1523
|
export declare const resolveFileIconElement: (filename: string, options?: ResolveFileIconElementOptions) => import("react/jsx-runtime").JSX.Element;
|
|
1496
1524
|
//#endregion
|
|
1497
1525
|
//#region src/utils/theme-preference.d.ts
|
|
1526
|
+
/** Where the provider reads and saves the chosen theme. Defaults to browser storage. */
|
|
1527
|
+
interface ThemePreferenceStorage {
|
|
1528
|
+
getItem: (key: string) => string | null;
|
|
1529
|
+
setItem: (key: string, value: string) => void;
|
|
1530
|
+
}
|
|
1498
1531
|
interface ThemePreferenceContextValue {
|
|
1532
|
+
/** The theme on screen: a preview while one is shown, otherwise the chosen theme. */
|
|
1499
1533
|
themePreference: ThemePreference;
|
|
1534
|
+
/** The saved choice. It differs from `themePreference` only while a preview is shown. */
|
|
1535
|
+
chosenThemePreference: ThemePreference;
|
|
1536
|
+
/** The chosen theme while it waits for its contribution to register; `themePreference` shows a fallback until then. */
|
|
1537
|
+
pendingThemePreference: ThemePreference | null;
|
|
1500
1538
|
themePreferences: readonly ThemePreferenceOption[];
|
|
1501
1539
|
setThemePreference: (preference: ThemePreference) => void;
|
|
1540
|
+
/** Shows a theme without saving it. Pass `null` to return to the chosen theme. */
|
|
1541
|
+
previewThemePreference: (preference: ThemePreference | null) => void;
|
|
1502
1542
|
toggleThemePreference: () => void;
|
|
1503
1543
|
}
|
|
1504
1544
|
interface ThemePreferenceProviderProps {
|
|
@@ -1507,11 +1547,12 @@ interface ThemePreferenceProviderProps {
|
|
|
1507
1547
|
/** A default used only when the user has not chosen a theme in this scope. */
|
|
1508
1548
|
defaultPreference?: ThemePreference;
|
|
1509
1549
|
preferenceScope?: string;
|
|
1550
|
+
storage?: ThemePreferenceStorage;
|
|
1510
1551
|
themePreferences?: readonly ThemePreferenceOption[];
|
|
1511
1552
|
}
|
|
1512
|
-
export declare const getInitialThemePreference: (themePreferences?: readonly ThemePreferenceOption[]) => string;
|
|
1553
|
+
export declare const getInitialThemePreference: (themePreferences?: readonly ThemePreferenceOption[], storage?: ThemePreferenceStorage) => string;
|
|
1513
1554
|
export declare const ThemePreferenceProvider: (props: ThemePreferenceProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
1514
1555
|
export declare const useThemePreference: () => ThemePreferenceContextValue;
|
|
1515
1556
|
//#endregion
|
|
1516
|
-
export { Activity, type ActivityActor, ActivityAvatar, type ActivityAvatarProps, ActivityComment, type ActivityCommentProps, ActivityComposer, type ActivityComposerProps, ActivityEvent, type ActivityEventProps, ActivityFeed, type ActivityFeedProps, ActivityHeader, type ActivityHeaderProps, ActivityReply, type ActivityReplyProps, ActivityRoot, type ActivityRootProps, ActivityTimeline, type ActivityTimelineProps, type AlertProps, type AttachedMenuProps, type AttachmentChipProps, type BreadcrumbItem, ChakraProvider, type CheckboxProps, type ChipProps, Label as ContentPlaceholderLabel, type CopyButtonProps, type EmptyStateProps, type FileIconThemeFont, type FileIconThemePreferenceOption, type FilterPaletteEntriesOptions, type FolderPickerEntry, type FolderPickerProps, type HeaderProps, type HeaderVariant, type IconColorPickerIconOption, type IconColorPickerProps, type IntegrationCardProps, type ItemSectionProps, type ListRowAction, type ListRowActionContext, type ListRowActionMenuItem, type ListRowItem, type ListRowNavigationIntent, type MonacoThemeData, type NotificationCenterAction, type NotificationCenterItem, type NotificationCenterPriority, type NotificationCenterProps, type NotificationCenterStatus, type PaletteEntry, type PaletteEscapeContext, type PaletteMode, type PaletteProps, type PaletteSearchEntry, type PaletteShortcutBinding, type PaletteState, type PaletteStateValue, type RadioProps, type ResizableSplitSeparator, ResourceActionMenu, type ResourceActionMenuProps, ResourceBadge, type ResourceContextAction, ResourceContextMenu, type SaveTagSettingsInput, ScrollArea, type SearchModalContentProps, type SearchableMenuItem, type SearchableMenuParentList, type SegmentedControlOption, type SegmentedControlProps, type SessionCompletionStatus, SessionIndicator, type SidenavProps, type SimpleCardBodyProps, type SimpleCardProps, type SliderProps, type SwitchProps, type TabVisibilityPlacement, type TagEditorAction, type TagEditorHeadingProps, type TagEditorProps, type TagEditorSaveBarProps, type TagEditorValue, type TagSettingsPanelProps, type TagSwatchProps, type ThemePreference, type ThemePreferenceMode, type ThemePreferenceOption, type ThemePreferenceTokens, type TreeListAction, type TreeListActionContext, type TreeListActionMenuItem, type TreeListInlineInput, type TreeListLinkComponent, type TreeListMove, type TreeListMoveEndpoint, type TreeListMovePolicy, type TreeListNavigateEvent, type TreeListNavigationIntent, type TreeListNode, type TreeListSection, type TreeVisibilityMenuItems, type VisibilityOverride, type VsCodeColorTheme, type WindowTab, type WindowTabsProps, type WindowTitleBarProps, WorkspaceBadge, type WorkspaceBadgeProps, applyThemePreference, createMonacoThemeFromVsCodeTheme, createThemePreferenceFromVsCodeTheme, defaultThemePreferences, getThemePreferenceClassName, getThemePreferenceClassNames, getThemePreferenceMode, isThemePreference, _default as psTheme, resolveSessionIndicatorColor, resolveSessionIndicatorIcon, sessionCompletionStatuses };
|
|
1557
|
+
export { Activity, type ActivityActor, ActivityAvatar, type ActivityAvatarProps, ActivityComment, type ActivityCommentProps, ActivityComposer, type ActivityComposerProps, ActivityEvent, type ActivityEventProps, ActivityFeed, type ActivityFeedProps, ActivityHeader, type ActivityHeaderProps, ActivityReply, type ActivityReplyProps, ActivityRoot, type ActivityRootProps, ActivityTimeline, type ActivityTimelineProps, type AlertProps, type AttachedMenuProps, type AttachmentChipProps, type BreadcrumbItem, ChakraProvider, type CheckboxProps, type ChipProps, Label as ContentPlaceholderLabel, type CopyButtonProps, type EmptyStateProps, type FileIconThemeFont, type FileIconThemePreferenceOption, type FilterPaletteEntriesOptions, type FolderPickerEntry, type FolderPickerProps, type HeaderProps, type HeaderVariant, type HostStorage, HostStorageProvider, type IconColorPickerIconOption, type IconColorPickerProps, type IntegrationCardProps, type ItemSectionProps, type ListRowAction, type ListRowActionContext, type ListRowActionMenuItem, type ListRowItem, type ListRowNavigationIntent, type MonacoThemeData, type NotificationCenterAction, type NotificationCenterItem, type NotificationCenterPriority, type NotificationCenterProps, type NotificationCenterStatus, type PaletteEntry, type PaletteEscapeContext, type PaletteMode, type PaletteProps, type PaletteSearchEntry, type PaletteShortcutBinding, type PaletteState, type PaletteStateValue, type RadioProps, type ResizableSplitSeparator, ResourceActionMenu, type ResourceActionMenuProps, ResourceBadge, type ResourceContextAction, ResourceContextMenu, type SaveTagSettingsInput, ScrollArea, type SearchModalContentProps, type SearchableMenuItem, type SearchableMenuParentList, type SegmentedControlOption, type SegmentedControlProps, type SessionCompletionStatus, SessionIndicator, type SidenavProps, type SimpleCardBodyProps, type SimpleCardProps, type SliderProps, type SwitchProps, type TabVisibilityPlacement, type TagEditorAction, type TagEditorHeadingProps, type TagEditorProps, type TagEditorSaveBarProps, type TagEditorValue, type TagSettingsPanelProps, type TagSwatchProps, type ThemePreference, type ThemePreferenceMode, type ThemePreferenceOption, type ThemePreferenceStorage, type ThemePreferenceTokens, type TreeListAction, type TreeListActionContext, type TreeListActionMenuItem, type TreeListGroup, type TreeListInlineInput, type TreeListLinkComponent, type TreeListMove, type TreeListMoveEndpoint, type TreeListMovePolicy, type TreeListNavigateEvent, type TreeListNavigationIntent, type TreeListNode, type TreeListSection, type TreeVisibilityMenuItems, type VisibilityOverride, type VsCodeColorTheme, type WindowTab, type WindowTabsProps, type WindowTitleBarProps, WorkspaceBadge, type WorkspaceBadgeProps, applyThemePreference, createMonacoThemeFromVsCodeTheme, createThemePreferenceFromVsCodeTheme, defaultThemePreferences, getThemePreferenceClassName, getThemePreferenceClassNames, getThemePreferenceMode, isThemePreference, _default as psTheme, resolveSessionIndicatorColor, resolveSessionIndicatorIcon, sessionCompletionStatuses };
|
|
1517
1558
|
export {};
|