@pstdio/ui 0.43.0 → 0.43.1-nightly.20261013030813
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/README.md +11 -0
- package/dist/{MermaidComponent-X7N-8w2S.js → MermaidComponent-CJCip-GB.js} +3 -3
- package/dist/{MermaidComponent-X7N-8w2S.js.map → MermaidComponent-CJCip-GB.js.map} +1 -1
- package/dist/chat-ui.d.ts +1 -1
- package/dist/chat-ui.js +621 -640
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-grouping-DnuJ1U4R.js → collection-view-grouping-Bm7Hlt5w.js} +2 -2
- package/dist/{collection-view-grouping-DnuJ1U4R.js.map → collection-view-grouping-Bm7Hlt5w.js.map} +1 -1
- package/dist/{collection-view-search-D_7Qvz7p.js → collection-view-search-BqYMZQ4q.js} +166 -156
- package/dist/collection-view-search-BqYMZQ4q.js.map +1 -0
- package/dist/collection-view.d.ts +3 -90
- package/dist/collection-view.js +2 -2
- package/dist/{data-table-stats-row-C8CtvdDt.js → data-table-stats-row-RwLXF9EW.js} +2 -2
- package/dist/{data-table-stats-row-C8CtvdDt.js.map → data-table-stats-row-RwLXF9EW.js.map} +1 -1
- package/dist/data-table.d.ts +1 -0
- package/dist/data-table.js +8 -8
- package/dist/{diff-drawer-BGQhxyOh.js → diff-drawer-BMl0zobj.js} +2 -2
- package/dist/{diff-drawer-BGQhxyOh.js.map → diff-drawer-BMl0zobj.js.map} +1 -1
- package/dist/{diff-viewer-DYcswG6O.js → diff-viewer-BD2PQ4SS.js} +5 -5
- package/dist/{diff-viewer-DYcswG6O.js.map → diff-viewer-BD2PQ4SS.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-n3L5WvkJ.js → display-sort-control-BSFhWHgn.js} +194 -183
- package/dist/display-sort-control-BSFhWHgn.js.map +1 -0
- package/dist/{edit-mode-data-table-BclZ-pWe.js → edit-mode-data-table-TdIRPVU1.js} +8 -8
- package/dist/{edit-mode-data-table-BclZ-pWe.js.map → edit-mode-data-table-TdIRPVU1.js.map} +1 -1
- package/dist/{index-5Lw7YMKy.d.ts → index-Bc2BsdD1.d.ts} +6 -0
- package/dist/index-r6SFPkUI.d.ts +91 -0
- package/dist/index.js +6 -6
- package/dist/kanban-renderer.js +8 -8
- package/dist/{list-row-CmFG_jCC.js → list-row-DCHZXCVH.js} +2 -2
- package/dist/{list-row-CmFG_jCC.js.map → list-row-DCHZXCVH.js.map} +1 -1
- package/dist/{markdown-editor-CN4qOKky.js → markdown-editor-6jAy_E3r.js} +6 -6
- package/dist/{markdown-editor-CN4qOKky.js.map → markdown-editor-6jAy_E3r.js.map} +1 -1
- package/dist/{mermaid-renderer-DybQ_2Cp.js → mermaid-renderer-BtW_13Sz.js} +2 -2
- package/dist/{mermaid-renderer-DybQ_2Cp.js.map → mermaid-renderer-BtW_13Sz.js.map} +1 -1
- package/dist/mermaid.js +1 -1
- package/dist/{number-input-CyrMrDxB.js → number-input-QDqWYzTR.js} +2 -2
- package/dist/{number-input-CyrMrDxB.js.map → number-input-QDqWYzTR.js.map} +1 -1
- package/dist/{param-editor-28dBRSV4.js → param-editor-f57ea8V9.js} +2 -2
- package/dist/{param-editor-28dBRSV4.js.map → param-editor-f57ea8V9.js.map} +1 -1
- package/dist/{param-editor-field-GxhFb86w.js → param-editor-field-CePT5hCj.js} +5 -5
- package/dist/{param-editor-field-GxhFb86w.js.map → param-editor-field-CePT5hCj.js.map} +1 -1
- package/dist/param-editor.js +3 -3
- package/dist/{prism-CnkSh-ZG.js → prism-EZSmZh-a.js} +2 -2
- package/dist/{prism-CnkSh-ZG.js.map → prism-EZSmZh-a.js.map} +1 -1
- package/dist/{rich-text-DOK4dDeb.js → rich-text-bKBLAco5.js} +384 -363
- package/dist/rich-text-bKBLAco5.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/{scroll-area-crJfiiuF.js → scroll-area-IeoRS73V.js} +3 -5
- package/dist/scroll-area-IeoRS73V.js.map +1 -0
- package/dist/terminal.js +1 -1
- package/dist/{theme-Bd_a7sU8.js → theme-bxwJIMKe.js} +22 -2
- package/dist/theme-bxwJIMKe.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-B_qqiIoM.js → tree-list-nFNO7MV4.js} +2 -2
- package/dist/{tree-list-B_qqiIoM.js.map → tree-list-nFNO7MV4.js.map} +1 -1
- package/dist/{workspace-badge-BfSkiGP_.js → workspace-badge-BgiTennO.js} +2 -2
- package/dist/{workspace-badge-BfSkiGP_.js.map → workspace-badge-BgiTennO.js.map} +1 -1
- package/package.json +2 -2
- package/dist/collection-view-search-D_7Qvz7p.js.map +0 -1
- package/dist/display-sort-control-n3L5WvkJ.js.map +0 -1
- package/dist/rich-text-DOK4dDeb.js.map +0 -1
- package/dist/scroll-area-crJfiiuF.js.map +0 -1
- package/dist/theme-Bd_a7sU8.js.map +0 -1
|
@@ -83,6 +83,12 @@ interface PromptEditorProps {
|
|
|
83
83
|
onSelectionChange?: (selection: PromptSelectionSnapshot) => void;
|
|
84
84
|
debug?: boolean;
|
|
85
85
|
isEditable?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Focus the editor as soon as it is editable, then call `onFocusRequestComplete`. The caller clears the
|
|
88
|
+
* request there. Focus stays in a field or embedded view the person moved to while the editor was locked.
|
|
89
|
+
*/
|
|
90
|
+
focusRequested?: boolean;
|
|
91
|
+
onFocusRequestComplete?: () => void;
|
|
86
92
|
placeholder?: ReactElement | ((isEditable: boolean) => ReactElement | null);
|
|
87
93
|
onChange?: (text: string, state: object) => void;
|
|
88
94
|
onError?: (error: Error) => void;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { A as CollectionSavedView, M as CollectionViewsSource, i as CollectionViewStoreInitialState, s as AttributeDescriptor, x as KanbanRendererRow } from "./collection-view-fields-CajuwtKF.js";
|
|
2
|
+
import { ReactNode, RefObject } from "react";
|
|
3
|
+
import { ViewFilterGroup, ViewFilterRule } from "@pstdio/sdk/extensions";
|
|
4
|
+
//#region src/components/collection-view/filter-rule-value.d.ts
|
|
5
|
+
interface RuleValueOption {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
count?: number;
|
|
9
|
+
icon?: string | null;
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/collection-view/collection-filter.d.ts
|
|
14
|
+
interface CollectionFilterProps {
|
|
15
|
+
itemLabel?: string;
|
|
16
|
+
fields: AttributeDescriptor[];
|
|
17
|
+
filter: ViewFilterGroup;
|
|
18
|
+
optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
|
|
19
|
+
onFilterChange: (filter: ViewFilterGroup) => void;
|
|
20
|
+
}
|
|
21
|
+
/** The collection picker and editable criteria, without saved views or search. */
|
|
22
|
+
declare function CollectionFilter(props: CollectionFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/collection-view/collection-view-bar.d.ts
|
|
25
|
+
interface CollectionViewBarProps<TSettings> {
|
|
26
|
+
storageKey: string;
|
|
27
|
+
/** Singular resource label used as the subject of boolean predicates. */
|
|
28
|
+
itemLabel?: string;
|
|
29
|
+
initialState: CollectionViewStoreInitialState<TSettings>;
|
|
30
|
+
views: (CollectionSavedView<TSettings> & {
|
|
31
|
+
builtIn: boolean;
|
|
32
|
+
})[];
|
|
33
|
+
viewsSource?: CollectionViewsSource<TSettings>;
|
|
34
|
+
/** Every field of the view. Filter offers the filterable ones and Sort the sortable ones. */
|
|
35
|
+
fields: AttributeDescriptor[];
|
|
36
|
+
optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
|
|
37
|
+
/** Search is screen state owned by the renderer. It is never saved. */
|
|
38
|
+
search: string;
|
|
39
|
+
onSearchChange: (value: string) => void;
|
|
40
|
+
searchResultLabel?: string;
|
|
41
|
+
leading?: ReactNode;
|
|
42
|
+
actions?: ReactNode;
|
|
43
|
+
displayControl: ReactNode;
|
|
44
|
+
align?: "split" | "end";
|
|
45
|
+
}
|
|
46
|
+
/** One view bar for data tables and both kanban displays: saved views, then Search, Filter, and Display. */
|
|
47
|
+
declare const CollectionViewBar: <TSettings>(props: CollectionViewBarProps<TSettings>) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/collection-view/collection-view-filter.d.ts
|
|
50
|
+
/** Rules that are incomplete or no longer fit a field are skipped, so they never hide rows. */
|
|
51
|
+
declare const filterRowsByView: <TRow extends KanbanRendererRow>(rows: TRow[], filter: ViewFilterGroup, fields: AttributeDescriptor[], today?: Date) => TRow[];
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/collection-view/collection-view-search.d.ts
|
|
54
|
+
/** Search only looks at the text a view shows, which the caller collects per row. */
|
|
55
|
+
declare const searchRows: <TRow>(rows: TRow[], query: string, textsOf: (row: TRow) => string[]) => TRow[];
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/collection-view/use-collection-views.d.ts
|
|
58
|
+
interface CollectionViewsInput<TSettings> {
|
|
59
|
+
storageKey: string;
|
|
60
|
+
fields?: AttributeDescriptor[];
|
|
61
|
+
initialState: CollectionViewStoreInitialState<TSettings>;
|
|
62
|
+
viewsSource?: CollectionViewsSource<TSettings>;
|
|
63
|
+
defaultViews?: CollectionSavedView<TSettings>[];
|
|
64
|
+
defaultActiveViewId?: string;
|
|
65
|
+
}
|
|
66
|
+
/** Picks the views a renderer offers and keeps the store on a view that still exists. */
|
|
67
|
+
declare const useCollectionViews: <TSettings>(input: CollectionViewsInput<TSettings>) => {
|
|
68
|
+
views: (CollectionSavedView<TSettings> & {
|
|
69
|
+
builtIn: boolean;
|
|
70
|
+
})[];
|
|
71
|
+
defaultId: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/collection-view/view-bar-popover.d.ts
|
|
75
|
+
interface ViewBarPopoverProps {
|
|
76
|
+
open: boolean;
|
|
77
|
+
onOpenChange: (open: boolean) => void;
|
|
78
|
+
/** The button the menu opens from. Several buttons can open the same menu. */
|
|
79
|
+
anchorRef: RefObject<HTMLElement | null>;
|
|
80
|
+
width: string;
|
|
81
|
+
placement?: "bottom-start" | "bottom-end";
|
|
82
|
+
/** The quick picker draws its own panes edge to edge. */
|
|
83
|
+
padding?: "0" | "2xs";
|
|
84
|
+
testId?: string;
|
|
85
|
+
children: ReactNode;
|
|
86
|
+
}
|
|
87
|
+
/** The menu shell for Search, Filter, and Sort. Menus inside it render in place, so using them never closes it. */
|
|
88
|
+
declare const ViewBarPopover: (props: ViewBarPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
//#endregion
|
|
90
|
+
export { searchRows as a, CollectionViewBarProps as c, useCollectionViews as i, CollectionFilter as l, ViewBarPopoverProps as n, filterRowsByView as o, CollectionViewsInput as r, CollectionViewBar as s, ViewBarPopover as t, CollectionFilterProps as u };
|
|
91
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./alert-MQ47wy7f.js";
|
|
2
|
-
import { n as l, t as u } from "./scroll-area-
|
|
3
|
-
import { a as d, l as f, r as p, s as m, t as h, u as g } from "./list-row-
|
|
2
|
+
import { n as l, t as u } from "./scroll-area-IeoRS73V.js";
|
|
3
|
+
import { a as d, l as f, r as p, s as m, t as h, u as g } from "./list-row-DCHZXCVH.js";
|
|
4
4
|
import { t as _ } from "./use-virtualizer-CfDHoDer.js";
|
|
5
|
-
import { n as v, r as y, t as b } from "./tree-list-
|
|
6
|
-
import { a as x, i as S, n as C, o as w, r as T, s as E, t as D } from "./prism-
|
|
7
|
-
import { a as O, i as k, n as A, o as j, r as M, t as N } from "./workspace-badge-
|
|
5
|
+
import { n as v, r as y, t as b } from "./tree-list-nFNO7MV4.js";
|
|
6
|
+
import { a as x, i as S, n as C, o as w, r as T, s as E, t as D } from "./prism-EZSmZh-a.js";
|
|
7
|
+
import { a as O, i as k, n as A, o as j, r as M, t as N } from "./workspace-badge-BgiTennO.js";
|
|
8
8
|
import { t as P } from "./drop-indicator-HjlBSIeV.js";
|
|
9
9
|
import { t as F } from "./empty-state-3mVV_pV-.js";
|
|
10
10
|
import { i as I, n as L, r as ee, t as R } from "./icon-options-Tt6Wzhtv.js";
|
|
11
11
|
import { n as te, t as ne } from "./radio-CiFrDN6O.js";
|
|
12
12
|
import { t as re } from "./browser-storage-C_ipoNwP.js";
|
|
13
|
-
import { n as ie, r as ae, t as z } from "./theme-
|
|
13
|
+
import { n as ie, r as ae, t as z } from "./theme-bxwJIMKe.js";
|
|
14
14
|
import { i as B, n as V, r as oe, t as H } from "./host-storage-BIo5azql.js";
|
|
15
15
|
import { n as U, t as se } from "./theme-kKuLN2jb.js";
|
|
16
16
|
import { a as ce, c as le, i as ue, l as de, n as fe, o as pe, r as me, s as he, t as ge } from "./theme-preference-BV4cbJNB.js";
|
package/dist/kanban-renderer.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e, t } from "./scroll-area-
|
|
2
|
-
import { t as n, u as r } from "./list-row-
|
|
3
|
-
import { s as i } from "./prism-
|
|
4
|
-
import { o as a, t as o } from "./workspace-badge-
|
|
1
|
+
import { n as e, t } from "./scroll-area-IeoRS73V.js";
|
|
2
|
+
import { t as n, u as r } from "./list-row-DCHZXCVH.js";
|
|
3
|
+
import { s as i } from "./prism-EZSmZh-a.js";
|
|
4
|
+
import { o as a, t as o } from "./workspace-badge-BgiTennO.js";
|
|
5
5
|
import { t as s } from "./empty-state-3mVV_pV-.js";
|
|
6
6
|
import { t as c } from "./icon-options-Tt6Wzhtv.js";
|
|
7
7
|
import { i as l, n as u, r as d } from "./host-storage-BIo5azql.js";
|
|
8
|
-
import { A as f, C as p, D as m, M as h, N as g, O as _, P as v, S as y, T as b, a as x, b as S, i as C, j as w, l as T, n as E, r as D, s as O, u as k, x as A } from "./collection-view-search-
|
|
9
|
-
import { a as j, i as M, r as N } from "./collection-view-grouping-
|
|
10
|
-
import { c as P, i as F, m as I, r as L, t as R } from "./param-editor-field-
|
|
11
|
-
import { a as ee, c as z, d as B, f as te, l as V, n as H, o as U, p as ne, r as re, s as ie, t as ae, u as oe } from "./display-sort-control-
|
|
8
|
+
import { A as f, C as p, D as m, M as h, N as g, O as _, P as v, S as y, T as b, a as x, b as S, i as C, j as w, l as T, n as E, r as D, s as O, u as k, x as A } from "./collection-view-search-BqYMZQ4q.js";
|
|
9
|
+
import { a as j, i as M, r as N } from "./collection-view-grouping-Bm7Hlt5w.js";
|
|
10
|
+
import { c as P, i as F, m as I, r as L, t as R } from "./param-editor-field-CePT5hCj.js";
|
|
11
|
+
import { a as ee, c as z, d as B, f as te, l as V, n as H, o as U, p as ne, r as re, s as ie, t as ae, u as oe } from "./display-sort-control-BSFhWHgn.js";
|
|
12
12
|
import { Badge as se, Box as W, Button as ce, ButtonGroup as le, CloseButton as ue, Dialog as G, HStack as K, Icon as q, IconButton as de, Input as fe, Menu as J, Portal as pe, Spacer as me, Stack as he, Text as Y, Textarea as ge, VStack as _e, Wrap as ve } from "@chakra-ui/react";
|
|
13
13
|
import { c as X } from "react/compiler-runtime";
|
|
14
14
|
import { Fragment as ye, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./scroll-area-
|
|
1
|
+
import { n as e, t } from "./scroll-area-IeoRS73V.js";
|
|
2
2
|
import { Box as n, Checkbox as r, HStack as i, Icon as a, IconButton as o, Input as s, InputGroup as c, Menu as l, Portal as u, Stack as d, Text as f, chakra as p, useMenu as m, useRecipe as h } from "@chakra-ui/react";
|
|
3
3
|
import { c as g } from "react/compiler-runtime";
|
|
4
4
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
@@ -1219,4 +1219,4 @@ function Te(e) {
|
|
|
1219
1219
|
//#endregion
|
|
1220
1220
|
export { H as a, L as c, ne as i, N as l, ce as n, V as o, ae as r, B as s, Ce as t, P as u };
|
|
1221
1221
|
|
|
1222
|
-
//# sourceMappingURL=list-row-
|
|
1222
|
+
//# sourceMappingURL=list-row-DCHZXCVH.js.map
|