@pstdio/ui 0.41.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-BCiI63_G.js → MermaidComponent-D7vhkpka.js} +2 -2
- package/dist/{MermaidComponent-BCiI63_G.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 +36 -5
- package/dist/chat-ui.js +1777 -1422
- package/dist/chat-ui.js.map +1 -1
- package/dist/collection-view-fields-D3cysHNT.d.ts +232 -0
- 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-EiTEONdY.js → data-table-stats-row-64magT2g.js} +2 -2
- package/dist/{data-table-stats-row-EiTEONdY.js.map → data-table-stats-row-64magT2g.js.map} +1 -1
- package/dist/data-table.d.ts +3 -1
- package/dist/data-table.js +279 -277
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-drawer-BwZBOObe.js → diff-drawer-IYpQ-QQK.js} +192 -191
- package/dist/diff-drawer-IYpQ-QQK.js.map +1 -0
- package/dist/{diff-viewer-kOOd7C7h.js → diff-viewer-C-0VAt9P.js} +4 -4
- package/dist/{diff-viewer-kOOd7C7h.js.map → diff-viewer-C-0VAt9P.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-DPxc0e5z.js → display-sort-control-f3rbILsV.js} +87 -86
- package/dist/{display-sort-control-DPxc0e5z.js.map → display-sort-control-f3rbILsV.js.map} +1 -1
- 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/icon-options-Tt6Wzhtv.js +308 -0
- package/dist/icon-options-Tt6Wzhtv.js.map +1 -0
- package/dist/{index-C9mywhyX.d.ts → index-B79hwNcB.d.ts} +17 -1
- package/dist/index-CKsd23jv.d.ts +80 -0
- package/dist/{index-D3UJyWWh.d.ts → index-ICoad2I_.d.ts} +4 -223
- package/dist/index.d.ts +22 -6
- package/dist/index.js +1174 -1112
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +2 -1
- package/dist/kanban-renderer.js +531 -528
- 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/number-input-7K66wnSC.js +63 -0
- package/dist/number-input-7K66wnSC.js.map +1 -0
- package/dist/param-editor-Dnix-fJo.js +225 -0
- package/dist/param-editor-Dnix-fJo.js.map +1 -0
- package/dist/param-editor-field-B3vLST-B.js +2394 -0
- package/dist/param-editor-field-B3vLST-B.js.map +1 -0
- package/dist/param-editor.js +4 -2
- 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/rich-text-BgEnAHr2.js +1160 -0
- package/dist/rich-text-BgEnAHr2.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +4 -2
- package/dist/terminal.js +1 -1
- package/dist/{theme-at0rtSnX.js → theme-CMJdH59Z.js} +224 -90
- package/dist/theme-CMJdH59Z.js.map +1 -0
- package/dist/theme.js +1 -1
- 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/{host-storage-DP0RLj4i.d.ts → workspace-badge-BKtB805G.d.ts} +6 -16
- package/package.json +6 -2
- package/dist/chat-question-bubble-w2vMbFsS.js +0 -68
- package/dist/chat-question-bubble-w2vMbFsS.js.map +0 -1
- package/dist/diff-drawer-BwZBOObe.js.map +0 -1
- package/dist/list-row-DM0DiIrN.js +0 -1167
- package/dist/list-row-DM0DiIrN.js.map +0 -1
- package/dist/prism-JVIsQMoJ.js +0 -1029
- package/dist/prism-JVIsQMoJ.js.map +0 -1
- package/dist/rich-text-DM24VNQZ.js +0 -10447
- package/dist/rich-text-DM24VNQZ.js.map +0 -1
- package/dist/theme-at0rtSnX.js.map +0 -1
- package/dist/tree-list-Cqgl8mnN.js +0 -1621
- package/dist/tree-list-Cqgl8mnN.js.map +0 -1
|
@@ -1,197 +1,7 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { C as KanbanRendererSettings, S as KanbanRendererSavedView, a as CollectionViewStoreState, b as KanbanRendererCreateSubmission, f as CollectionBadgeItem, m as EnumOption, s as AttributeDescriptor, u as AttributeType, w as KanbanRendererViewsSource, x as KanbanRendererRow, y as KanbanRendererCreateRowConfig } from "./collection-view-fields-D3cysHNT.js";
|
|
2
|
+
import { n as WorkspaceBadgeProps, u as ResourceContextAction } from "./workspace-badge-BKtB805G.js";
|
|
2
3
|
import { ComponentProps, ComponentType, DragEventHandler, ReactNode } from "react";
|
|
3
|
-
import {
|
|
4
|
-
//#region src/components/collection-view/collection-view-types.d.ts
|
|
5
|
-
declare const EMPTY_VIEW_FILTER: ViewFilterGroup;
|
|
6
|
-
/** What a saved view stores. Search, selection, and collapsed groups are screen state and never saved. */
|
|
7
|
-
interface CollectionSavedView<TSettings> {
|
|
8
|
-
id: string;
|
|
9
|
-
title: string;
|
|
10
|
-
settings: TSettings;
|
|
11
|
-
filter: ViewFilterGroup;
|
|
12
|
-
sorts: ViewSort[];
|
|
13
|
-
/** @deprecated Use defaultActiveViewId instead. */
|
|
14
|
-
isDefault?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface CollectionViewState<TSettings> {
|
|
17
|
-
settings: TSettings;
|
|
18
|
-
filter: ViewFilterGroup;
|
|
19
|
-
sorts: ViewSort[];
|
|
20
|
-
}
|
|
21
|
-
interface CollectionViewsSource<TSettings> {
|
|
22
|
-
views: (CollectionSavedView<TSettings> & {
|
|
23
|
-
builtIn: boolean;
|
|
24
|
-
})[];
|
|
25
|
-
defaultViewId: string;
|
|
26
|
-
onCreateView: (input: CollectionViewState<TSettings> & {
|
|
27
|
-
title: string;
|
|
28
|
-
copyFrom?: string;
|
|
29
|
-
}) => Promise<CollectionSavedView<TSettings>>;
|
|
30
|
-
onUpdateView: (id: string, input: Partial<CollectionViewState<TSettings>> & {
|
|
31
|
-
title?: string;
|
|
32
|
-
}) => Promise<void>;
|
|
33
|
-
onDeleteView: (id: string) => Promise<void>;
|
|
34
|
-
onSetDefaultView: (id: string | null) => Promise<void>;
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/components/kanban-renderer/types.d.ts
|
|
38
|
-
type ViewMode = "board" | "list";
|
|
39
|
-
declare const NO_GROUPING = "none";
|
|
40
|
-
interface EnumOption {
|
|
41
|
-
value: string;
|
|
42
|
-
label: string;
|
|
43
|
-
color?: string;
|
|
44
|
-
icon?: string | null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Reactive options source for enum / enum-multi attributes. Mirrors React's
|
|
48
|
-
* useSyncExternalStore contract so a contribution can hand its options off as
|
|
49
|
-
* a live collection (e.g. a project-scoped resource) instead of a frozen
|
|
50
|
-
* array, and the renderer subscribes to it the same way it subscribes to rows.
|
|
51
|
-
*/
|
|
52
|
-
interface EnumOptionsSource {
|
|
53
|
-
subscribe: (listener: () => void) => () => void;
|
|
54
|
-
getSnapshot: () => EnumOption[];
|
|
55
|
-
}
|
|
56
|
-
type EnumOptions = EnumOption[] | EnumOptionsSource;
|
|
57
|
-
type AttributeType = {
|
|
58
|
-
kind: "enum";
|
|
59
|
-
options: EnumOptions;
|
|
60
|
-
} | {
|
|
61
|
-
kind: "enum-multi";
|
|
62
|
-
options: EnumOptions;
|
|
63
|
-
} | {
|
|
64
|
-
kind: "boolean";
|
|
65
|
-
legacyValues?: Record<string, boolean>;
|
|
66
|
-
} | {
|
|
67
|
-
kind: "string";
|
|
68
|
-
} | {
|
|
69
|
-
kind: "date";
|
|
70
|
-
} | {
|
|
71
|
-
kind: "number";
|
|
72
|
-
} | {
|
|
73
|
-
kind: "user";
|
|
74
|
-
};
|
|
75
|
-
declare const isEnumOptionsSource: (options: EnumOptions) => options is EnumOptionsSource;
|
|
76
|
-
type AttributeKind = AttributeType["kind"];
|
|
77
|
-
type AttributeDisplayDescriptor = {
|
|
78
|
-
kind: "badge-list";
|
|
79
|
-
itemsAttributeId: string;
|
|
80
|
-
};
|
|
81
|
-
type CollectionBadgeJsonValue = string | number | boolean | null | CollectionBadgeJsonValue[] | CollectionBadgeJsonObject;
|
|
82
|
-
interface CollectionBadgeJsonObject {
|
|
83
|
-
[key: string]: CollectionBadgeJsonValue;
|
|
84
|
-
}
|
|
85
|
-
interface CollectionBadgeResource {
|
|
86
|
-
type: string;
|
|
87
|
-
id: string;
|
|
88
|
-
projectId?: string;
|
|
89
|
-
label?: string;
|
|
90
|
-
extensionId?: string;
|
|
91
|
-
metadata?: CollectionBadgeJsonObject;
|
|
92
|
-
}
|
|
93
|
-
interface CollectionBadgeItem {
|
|
94
|
-
id: string;
|
|
95
|
-
label: string;
|
|
96
|
-
icon?: string;
|
|
97
|
-
resource?: CollectionBadgeResource;
|
|
98
|
-
}
|
|
99
|
-
interface AttributeDescriptor {
|
|
100
|
-
id: string;
|
|
101
|
-
label: string;
|
|
102
|
-
type: AttributeType;
|
|
103
|
-
filterable?: boolean;
|
|
104
|
-
groupable?: boolean;
|
|
105
|
-
sortable?: boolean;
|
|
106
|
-
displayable?: boolean;
|
|
107
|
-
editable?: boolean;
|
|
108
|
-
display?: AttributeDisplayDescriptor;
|
|
109
|
-
render?: (value: unknown, row: KanbanRendererRow) => ReactNode;
|
|
110
|
-
compare?: (a: unknown, b: unknown) => number;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Reactive source for an entire attribute schema. Mirrors React's
|
|
114
|
-
* useSyncExternalStore contract so consumers (e.g. the workbench's
|
|
115
|
-
* kanban-renderer bridge) can subscribe and re-resolve when the schema changes
|
|
116
|
-
* — letting a contribution add/remove/edit attributes at runtime without
|
|
117
|
-
* re-registering.
|
|
118
|
-
*/
|
|
119
|
-
interface AttributesSource {
|
|
120
|
-
subscribe: (listener: () => void) => () => void;
|
|
121
|
-
getSnapshot: () => AttributeDescriptor[];
|
|
122
|
-
}
|
|
123
|
-
declare const isAttributesSource: (attributes: AttributeDescriptor[] | AttributesSource) => attributes is AttributesSource;
|
|
124
|
-
interface KanbanRendererRow {
|
|
125
|
-
id: string;
|
|
126
|
-
title: string;
|
|
127
|
-
/**
|
|
128
|
-
* Optional navigation handle. When set, the renderer's default click handler
|
|
129
|
-
* routes through the contribution's onRowClick (which typically opens the
|
|
130
|
-
* resource via the workbench).
|
|
131
|
-
*/
|
|
132
|
-
resource?: unknown;
|
|
133
|
-
attributes: Record<string, unknown>;
|
|
134
|
-
}
|
|
135
|
-
/** Board display settings. Order lives in the view's sorts. */
|
|
136
|
-
interface KanbanRendererSettings {
|
|
137
|
-
viewMode: ViewMode;
|
|
138
|
-
columnGrouping: string | typeof NO_GROUPING;
|
|
139
|
-
rowGrouping: string | typeof NO_GROUPING;
|
|
140
|
-
displayProperties: string[];
|
|
141
|
-
}
|
|
142
|
-
type KanbanRendererSavedView = CollectionSavedView<KanbanRendererSettings>;
|
|
143
|
-
type KanbanRendererCreateFieldType = "text" | "longtext" | "markdown" | "number" | "boolean" | "select" | "multi-select" | "files";
|
|
144
|
-
interface KanbanRendererCreateField {
|
|
145
|
-
id: string;
|
|
146
|
-
label: string;
|
|
147
|
-
description?: string;
|
|
148
|
-
placeholder?: string;
|
|
149
|
-
type: KanbanRendererCreateFieldType;
|
|
150
|
-
required?: boolean;
|
|
151
|
-
defaultValue?: unknown;
|
|
152
|
-
options?: EnumOption[];
|
|
153
|
-
/** `files` fields only. */
|
|
154
|
-
multiple?: boolean;
|
|
155
|
-
accept?: string;
|
|
156
|
-
}
|
|
157
|
-
/** Chrome copy is supplied by the caller so the dialog ships no strings of its own. */
|
|
158
|
-
interface KanbanRendererCreateLabels {
|
|
159
|
-
cancel: string;
|
|
160
|
-
properties: string;
|
|
161
|
-
submitError: string;
|
|
162
|
-
removeFile: string;
|
|
163
|
-
}
|
|
164
|
-
interface KanbanRendererCreateRowConfig {
|
|
165
|
-
title: string;
|
|
166
|
-
submitLabel: string;
|
|
167
|
-
fields: KanbanRendererCreateField[];
|
|
168
|
-
labels: KanbanRendererCreateLabels;
|
|
169
|
-
}
|
|
170
|
-
interface KanbanRendererCreateSubmission {
|
|
171
|
-
columnId: string;
|
|
172
|
-
columnAttributeId?: string;
|
|
173
|
-
/** Declared field values, excluding `files` fields — those arrive as `files`. */
|
|
174
|
-
values: Record<string, unknown>;
|
|
175
|
-
/** Every editable attribute the user set, keyed by attribute id. */
|
|
176
|
-
attributeValues: Record<string, unknown>;
|
|
177
|
-
files: File[];
|
|
178
|
-
}
|
|
179
|
-
declare const DEFAULT_KANBAN_RENDERER_SETTINGS: KanbanRendererSettings;
|
|
180
|
-
/**
|
|
181
|
-
* Look up an attribute by id from a contribution-provided descriptor list.
|
|
182
|
-
* Returns undefined for the "none" grouping or unknown ids.
|
|
183
|
-
*/
|
|
184
|
-
declare const findAttribute: (attributes: AttributeDescriptor[], id: string | undefined) => AttributeDescriptor | undefined;
|
|
185
|
-
type KanbanRendererViewsSource = CollectionViewsSource<KanbanRendererSettings>;
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region src/components/collection-view/collection-view-fields.d.ts
|
|
188
|
-
/**
|
|
189
|
-
* Read a typed attribute value out of a row. enum-multi normalizes to an array;
|
|
190
|
-
* single-valued kinds normalize to undefined when missing.
|
|
191
|
-
*/
|
|
192
|
-
declare const getAttributeValue: (row: KanbanRendererRow, descriptor: AttributeDescriptor) => unknown;
|
|
193
|
-
declare const getAttributeStringValues: (row: KanbanRendererRow, descriptor: AttributeDescriptor) => string[];
|
|
194
|
-
//#endregion
|
|
4
|
+
import { ViewFilterGroup, ViewSort } from "@pstdio/sdk/extensions";
|
|
195
5
|
//#region src/components/kanban-renderer/kanban-renderer-badge-helpers.d.ts
|
|
196
6
|
interface AttributeBadge {
|
|
197
7
|
attributeId: string;
|
|
@@ -443,35 +253,6 @@ interface KanbanRendererToolbarProps<TRow extends KanbanRendererRow = KanbanRend
|
|
|
443
253
|
}
|
|
444
254
|
declare const KanbanRendererToolbar: <TRow extends KanbanRendererRow>(props: KanbanRendererToolbarProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
445
255
|
//#endregion
|
|
446
|
-
//#region src/components/collection-view/use-collection-view-store.d.ts
|
|
447
|
-
/** The unsaved state of one renderer: the active view and the edits made on top of it. */
|
|
448
|
-
interface CollectionViewSnapshot<TSettings> {
|
|
449
|
-
settings: TSettings;
|
|
450
|
-
filter: ViewFilterGroup;
|
|
451
|
-
sorts: ViewSort[];
|
|
452
|
-
expandedGroups: Record<string, boolean>;
|
|
453
|
-
activeViewId: string;
|
|
454
|
-
}
|
|
455
|
-
type CollectionViewMenu = "filter";
|
|
456
|
-
interface CollectionViewStoreState<TSettings> extends CollectionViewSnapshot<TSettings> {
|
|
457
|
-
/** The view bar menu that is open. Screen state: never persisted. */
|
|
458
|
-
openMenu: CollectionViewMenu | null;
|
|
459
|
-
/** The root rule whose pill editor is open. Screen state: never persisted. */
|
|
460
|
-
openRuleIndex: number | null;
|
|
461
|
-
setOpenMenu: (menu: CollectionViewMenu | null) => void;
|
|
462
|
-
setOpenRuleIndex: (index: number | null) => void;
|
|
463
|
-
/** Adds a rule for the field and opens its pill editor. */
|
|
464
|
-
startRule: (field: AttributeDescriptor) => void;
|
|
465
|
-
/** Commits picker values; scalar values transfer editing to their bubble. */
|
|
466
|
-
selectRule: (rule: ViewFilterRule) => void;
|
|
467
|
-
setSettings: (settings: Partial<TSettings>) => void;
|
|
468
|
-
setFilter: (filter: ViewFilterGroup) => void;
|
|
469
|
-
setSorts: (sorts: ViewSort[]) => void;
|
|
470
|
-
setExpandedGroup: (groupId: string, isExpanded: boolean) => void;
|
|
471
|
-
activateView: (view: CollectionSavedView<TSettings>) => void;
|
|
472
|
-
reset: () => void;
|
|
473
|
-
}
|
|
474
|
-
//#endregion
|
|
475
256
|
//#region src/components/kanban-renderer/use-kanban-renderer-store.d.ts
|
|
476
257
|
type KanbanRendererState = CollectionViewStoreState<KanbanRendererSettings>;
|
|
477
258
|
interface KanbanRendererStoreInitialState {
|
|
@@ -497,5 +278,5 @@ declare const resolveAttributeOptions: (attributes: AttributeDescriptor[]) => At
|
|
|
497
278
|
*/
|
|
498
279
|
declare const useResolvedAttributes: (attributes: AttributeDescriptor[]) => AttributeDescriptor[];
|
|
499
280
|
//#endregion
|
|
500
|
-
export {
|
|
281
|
+
export { buildGroupingOptions as C, getEnumOptions as D, renderBadgeListDisplay as E, AttributeBadge as O, buildFilterCategories as S, renderAttributeBadge as T, KanbanRendererCardProps$1 as _, KanbanRendererToolbarProps as a, MenuOption as b, KanbanRendererCreateDialog as c, KanbanRendererProps as d, KanbanRendererBoard as f, KanbanRendererCard as g, KanbanRendererBoardItem as h, KanbanRendererToolbar as i, BoardColumnConfig as l, KanbanRendererBoardColumnAction as m, useResolvedAttributes as n, KanbanRendererList as o, KanbanRendererBoardColumn as p, useKanbanRendererStore as r, KanbanRendererListItem as s, resolveAttributeOptions as t, KanbanRenderer as u, DisplayMenu as v, collectDisplayBadges as w, buildDisplayPropertyOptions as x, FilterCategoryView as y };
|
|
501
282
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { i as ScrollAreaProps, r as ScrollArea, t as ResourceBadge } from "./resource-badge-nOWPqxFU.js";
|
|
2
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 {
|
|
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;
|
|
@@ -581,10 +586,10 @@ export declare const optionIcons: ({
|
|
|
581
586
|
value: string;
|
|
582
587
|
label: string;
|
|
583
588
|
icon: ComponentType<{
|
|
589
|
+
is?: string | undefined | undefined;
|
|
584
590
|
onChange?: import("react").ChangeEventHandler<HTMLSpanElement, Element> | undefined;
|
|
585
591
|
onError?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
586
592
|
onSubmit?: import("react").SubmitEventHandler<HTMLSpanElement> | undefined;
|
|
587
|
-
is?: string | undefined | undefined;
|
|
588
593
|
resource?: string | undefined | undefined;
|
|
589
594
|
id?: string | undefined | undefined;
|
|
590
595
|
slot?: string | undefined | undefined;
|
|
@@ -1042,6 +1047,8 @@ interface TreeListSection {
|
|
|
1042
1047
|
menuLabel?: string;
|
|
1043
1048
|
collapsible?: boolean;
|
|
1044
1049
|
actions?: TreeListAction[];
|
|
1050
|
+
contextMenuItems?: TreeListActionMenuItem[];
|
|
1051
|
+
inlineInput?: TreeListInlineInput;
|
|
1045
1052
|
emptyState?: ReactNode;
|
|
1046
1053
|
nodes: TreeListNode[];
|
|
1047
1054
|
hiddenByDefault?: boolean;
|
|
@@ -1376,8 +1383,8 @@ interface TreeListProps {
|
|
|
1376
1383
|
onReorderNodes?: (sectionId: string, nextNodeIds: string[]) => void;
|
|
1377
1384
|
/** Decide whether a proposed customization move is valid. */
|
|
1378
1385
|
canMove?: TreeListMovePolicy;
|
|
1379
|
-
/** Move a node
|
|
1380
|
-
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;
|
|
1381
1388
|
backgroundContextActions?: ResourceContextAction[];
|
|
1382
1389
|
}
|
|
1383
1390
|
export declare const TreeList: (props: TreeListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1397,12 +1404,21 @@ interface TreeListOrderSnapshot {
|
|
|
1397
1404
|
sectionOrder: string[];
|
|
1398
1405
|
nodeOrderBySection: Record<string, string[]>;
|
|
1399
1406
|
sectionSlotById: Record<string, TreeListOrderSlot>;
|
|
1407
|
+
groups: TreeListGroup[];
|
|
1400
1408
|
}
|
|
1401
1409
|
type TreeListOrderSlot = "header" | "content" | "footer";
|
|
1410
|
+
interface TreeListGroup {
|
|
1411
|
+
id: string;
|
|
1412
|
+
label: string;
|
|
1413
|
+
moveScope?: string;
|
|
1414
|
+
}
|
|
1402
1415
|
interface TreeListOrderState extends TreeListOrderSnapshot {
|
|
1403
1416
|
setSectionOrder: (nextSectionIds: string[]) => void;
|
|
1404
1417
|
setNodeOrder: (sectionId: string, nextNodeIds: string[]) => void;
|
|
1405
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;
|
|
1406
1422
|
resetSectionOrder: () => void;
|
|
1407
1423
|
resetNodeOrder: (sectionId: string) => void;
|
|
1408
1424
|
reset: () => void;
|
|
@@ -1423,7 +1439,7 @@ export declare const getTreeListOrderStore: (storageKey: string, storage?: HostS
|
|
|
1423
1439
|
export declare const useTreeListOrderStore: <T>(storageKey: string, selector: (state: TreeListOrderState) => T) => T;
|
|
1424
1440
|
//#endregion
|
|
1425
1441
|
//#region src/components/tree-list/tree-list-order-filter.d.ts
|
|
1426
|
-
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[];
|
|
1427
1443
|
//#endregion
|
|
1428
1444
|
//#region src/components/tree-list/tree-list-visibility-filter.d.ts
|
|
1429
1445
|
export declare const resolveVisibility: (override: VisibilityOverride | undefined, hiddenByDefault: boolean | undefined) => VisibilityOverride;
|
|
@@ -1538,5 +1554,5 @@ export declare const getInitialThemePreference: (themePreferences?: readonly The
|
|
|
1538
1554
|
export declare const ThemePreferenceProvider: (props: ThemePreferenceProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
1539
1555
|
export declare const useThemePreference: () => ThemePreferenceContextValue;
|
|
1540
1556
|
//#endregion
|
|
1541
|
-
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 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 };
|
|
1542
1558
|
export {};
|