@pstdio/ui 0.46.0 → 0.47.0-nightly.20261101230131
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 +5 -4
- package/dist/{MermaidComponent-CS4TBB2v.js → MermaidComponent-CYo77xk2.js} +2 -2
- package/dist/{MermaidComponent-CS4TBB2v.js.map → MermaidComponent-CYo77xk2.js.map} +1 -1
- package/dist/chat-ui.d.ts +1 -1
- package/dist/chat-ui.js +3 -3
- package/dist/collection-view.d.ts +76 -3
- package/dist/data-table.d.ts +0 -1
- package/dist/data-table.js +2 -2
- package/dist/data-table.js.map +1 -1
- package/dist/{edit-mode-data-table-BbvDriF_.js → edit-mode-data-table-CFSNfY2m.js} +3 -3
- package/dist/{edit-mode-data-table-BbvDriF_.js.map → edit-mode-data-table-CFSNfY2m.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/kanban-renderer.js +2 -2
- package/dist/{markdown-editor-MEuc6Ity.js → markdown-editor-B1T-VTtd.js} +5 -5
- package/dist/{markdown-editor-MEuc6Ity.js.map → markdown-editor-B1T-VTtd.js.map} +1 -1
- package/dist/{param-editor-field-CiHsVa1x.js → param-editor-field-Dj9M3U0u.js} +3 -3
- package/dist/{param-editor-field-CiHsVa1x.js.map → param-editor-field-Dj9M3U0u.js.map} +1 -1
- package/dist/{param-editor-D4JSAnDg.js → param-editor-xC0T-rD1.js} +2 -2
- package/dist/{param-editor-D4JSAnDg.js.map → param-editor-xC0T-rD1.js.map} +1 -1
- package/dist/param-editor.js +2 -2
- package/dist/{prism-C1VoFDsW.js → prism-DmG_rrDH.js} +28 -31
- package/dist/prism-DmG_rrDH.js.map +1 -0
- package/dist/{rich-text-B9vgllDX.js → rich-text-B_MuDf7G.js} +3 -3
- package/dist/{rich-text-B9vgllDX.js.map → rich-text-B_MuDf7G.js.map} +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/theme-BdHd4ALu.js.map +1 -1
- package/package.json +2 -2
- package/dist/index-Dvw3pBQh.d.ts +0 -77
- package/dist/prism-C1VoFDsW.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,14 +8,15 @@ Shared React UI package for Prompt Studio apps. This package owns:
|
|
|
8
8
|
|
|
9
9
|
## Work with the live catalog
|
|
10
10
|
|
|
11
|
-
Browse Design System in the Canvas extension. Open a component canvas and use
|
|
11
|
+
Browse Design System in the Canvas extension. Open a component canvas and use Theme and Props and source to inspect its states and public API.
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
bun run --cwd packages/ui build
|
|
15
|
-
bun run --cwd scripts canvas:build
|
|
16
15
|
bun run --cwd extensions/canvas test
|
|
17
16
|
```
|
|
18
17
|
|
|
18
|
+
Keep `bun run canvas` running in its own terminal while you work; UI Canvas shows what it builds.
|
|
19
|
+
|
|
19
20
|
See [Canvas coverage](../../documentation/guides/development/0003-canvas-coverage.md) for authoring and isolated browser checks.
|
|
20
21
|
|
|
21
22
|
## Package Layout
|
|
@@ -68,12 +69,12 @@ bun run test
|
|
|
68
69
|
UI-specific check:
|
|
69
70
|
|
|
70
71
|
```bash
|
|
71
|
-
bun run --cwd
|
|
72
|
+
bun run --cwd packages/canvas-tests test
|
|
72
73
|
```
|
|
73
74
|
|
|
74
75
|
## Example guidelines
|
|
75
76
|
|
|
76
77
|
- Treat each example as a reproducible test case for a real UI state.
|
|
77
78
|
- Include states like default, loading, empty, error, long content, and disabled where relevant.
|
|
78
|
-
-
|
|
79
|
+
- Keep examples for exploration; put critical behavioral assertions in separate tests.
|
|
79
80
|
- Keep examples deterministic: avoid real network calls.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./markdown-editor-
|
|
1
|
+
import { _ as e } from "./markdown-editor-B1T-VTtd.js";
|
|
2
2
|
import { t } from "./mermaid-renderer-CrLUQh_8.js";
|
|
3
3
|
import { Box as n, Button as r, Flex as i, Textarea as a } from "@chakra-ui/react";
|
|
4
4
|
import { c as o } from "react/compiler-runtime";
|
|
@@ -86,4 +86,4 @@ function m(m) {
|
|
|
86
86
|
}
|
|
87
87
|
export { m as default };
|
|
88
88
|
|
|
89
|
-
//# sourceMappingURL=MermaidComponent-
|
|
89
|
+
//# sourceMappingURL=MermaidComponent-CYo77xk2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MermaidComponent-
|
|
1
|
+
{"version":3,"file":"MermaidComponent-CYo77xk2.js","names":["Box","Button","Flex","Textarea","useLexicalComposerContext","useLexicalEditable","$getNodeByKey","useEffect","useState","MermaidRenderer","$isMermaidNode","MermaidComponentProps","code","nodeKey","MermaidComponent","props","$","_c","editor","isEditable","isEditing","setIsEditing","draftCode","setDraftCode","previewCode","setPreviewCode","t0","t1","t2","update","node","setCode","commitCodeChanges","t3","cancelEditing","t4","undefined","t5","t6","t7","Symbol","for","event","target","value","t8","t9","_c","$isMermaidNode","MermaidComponent","$","c","props","editor","useLexicalComposerContext","isEditable","useLexicalEditable","isEditing","setIsEditing","useState","draftCode","setDraftCode","code","previewCode","setPreviewCode","t0","t1","useEffect","t2","nodeKey","node","$getNodeByKey","commitCodeChanges","t3","cancelEditing","t4","t5","MermaidRenderer","Button","t6","Flex","t7","event","t8","Box","Textarea","t9"],"sources":["../src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx"],"sourcesContent":["import { Box, Button, Flex, Textarea } from \"@chakra-ui/react\";\nimport { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { useLexicalEditable } from \"@lexical/react/useLexicalEditable\";\nimport { $getNodeByKey } from \"lexical\";\nimport { useEffect, useState } from \"react\";\nimport { MermaidRenderer } from \"@/components/mermaid-renderer\";\nimport { $isMermaidNode } from \"./MermaidNode\";\n\ninterface MermaidComponentProps {\n code: string;\n nodeKey: string;\n}\n\nexport default function MermaidComponent(props: MermaidComponentProps) {\n const { code, nodeKey } = props;\n const [editor] = useLexicalComposerContext();\n const isEditable = useLexicalEditable();\n const [isEditing, setIsEditing] = useState(false);\n const [draftCode, setDraftCode] = useState(code);\n const [previewCode, setPreviewCode] = useState(code);\n\n useEffect(() => {\n setDraftCode(code);\n setPreviewCode(code);\n }, [code]);\n\n const commitCodeChanges = () => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey);\n if ($isMermaidNode(node)) {\n node.setCode(draftCode);\n }\n });\n\n setPreviewCode(draftCode);\n setIsEditing(false);\n };\n\n const cancelEditing = () => {\n setDraftCode(previewCode);\n setIsEditing(false);\n };\n\n if (!isEditing) {\n return (\n <MermaidRenderer\n key={previewCode}\n code={previewCode}\n isEditable={isEditable}\n onRequestEdit={isEditable ? () => setIsEditing(true) : undefined}\n />\n );\n }\n\n return (\n <Box borderWidth=\"1px\" borderColor=\"border.subtle\" borderRadius=\"md\" overflow=\"hidden\" width=\"100%\">\n <Flex justifyContent=\"flex-end\" alignItems=\"center\" gap=\"xs\" paddingX=\"sm\" paddingY=\"xs\" bg=\"bg.muted\">\n <Button size=\"xs\" variant=\"subtle\" onClick={cancelEditing}>\n Cancel\n </Button>\n <Button size=\"xs\" onClick={commitCodeChanges}>\n Preview\n </Button>\n </Flex>\n <Box padding=\"sm\" bg=\"bg.muted\">\n <Textarea\n value={draftCode}\n onChange={(event) => setDraftCode(event.target.value)}\n minHeight=\"180px\"\n resize=\"vertical\"\n fontFamily=\"mono\"\n fontSize=\"sm\"\n spellCheck={false}\n />\n </Box>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAec,EAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,GACb,EAAAL,SAAAC,eAA0BE,GAC1B,CAAAG,KAAiBd,EAA0B,GAC3Ce,IAAmBd,EAAmB,GACtC,CAAAe,GAAAC,KAAkCb,EAAS,EAAK,GAChD,CAAAc,GAAAC,KAAkCf,EAASI,CAAI,GAC/C,CAAAY,GAAAC,KAAsCjB,EAASI,CAAI,GAAEc,GAAAC;CAErDpB,AAFqDS,EAAA,OAAAJ,KAK5Cc,IAAAV,EAAA,IAAAW,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KAnBRC,IAAA,kBAACsC,GAAD;EAAiB,aAAA;EAAkB,aAAA;EAA6B,cAAA;EAAc,UAAA;EAAe,OAAA;EAA7F,UAAA,CACE9C,GAQAO,CATE;C,IAoBE7B,EAAA,MAAAsB,GAAAtB,EAAA,MAAA6B,GAAA7B,EAAA,MAAA8B,KAAAA,IAAA9B,EAAA,KApBN8B;AAoBM"}
|
package/dist/chat-ui.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ export declare const ChatPrimitives: {
|
|
|
22
22
|
id?: string | undefined | undefined;
|
|
23
23
|
resource?: string | undefined | undefined;
|
|
24
24
|
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
25
|
-
children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
|
|
26
25
|
slot?: string | undefined | undefined;
|
|
27
26
|
style?: import("react").CSSProperties | undefined;
|
|
28
27
|
title?: string | undefined | undefined;
|
|
29
28
|
"aria-roledescription"?: string | undefined | undefined;
|
|
30
29
|
role?: import("react").AriaRole | undefined;
|
|
30
|
+
children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
|
|
31
31
|
defaultChecked?: boolean | undefined | undefined;
|
|
32
32
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
33
33
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
package/dist/chat-ui.js
CHANGED
|
@@ -3,15 +3,15 @@ import { i as t, r as n, t as r } from "./tooltip-NokNp3Dz.js";
|
|
|
3
3
|
import { t as i } from "./scroll-area-ZHp84XPy.js";
|
|
4
4
|
import { t as a } from "./list-row-NJZoDO9r.js";
|
|
5
5
|
import { t as o } from "./use-virtualizer-D4LYTPXF.js";
|
|
6
|
-
import { c as s, i as c } from "./prism-
|
|
6
|
+
import { c as s, i as c } from "./prism-DmG_rrDH.js";
|
|
7
7
|
import { o as l } from "./host-storage-BHdlZIgQ.js";
|
|
8
8
|
import { t as u } from "./drop-indicator-66rhST1K.js";
|
|
9
9
|
import { t as d } from "./empty-state-J96iLli9.js";
|
|
10
10
|
import { t as f } from "./icon-options-DJmsp8bw.js";
|
|
11
11
|
import { n as p, t as m } from "./radio-BPnviQ4h.js";
|
|
12
12
|
import { n as h, t as g } from "./queued-follow-up-Bl8TC36-.js";
|
|
13
|
-
import { B as _, C as v, D as y, E as b, F as x, I as S, R as C, T as w, V as T, w as E } from "./markdown-editor-
|
|
14
|
-
import { c as D, l as O, o as k, s as A } from "./rich-text-
|
|
13
|
+
import { B as _, C as v, D as y, E as b, F as x, I as S, R as C, T as w, V as T, w as E } from "./markdown-editor-B1T-VTtd.js";
|
|
14
|
+
import { c as D, l as O, o as k, s as A } from "./rich-text-B_MuDf7G.js";
|
|
15
15
|
import { t as j } from "./diff-bubble-DietCcSc.js";
|
|
16
16
|
import { AbsoluteCenter as M, Avatar as N, Box as P, Button as F, Card as I, Code as L, Field as R, Flex as z, HStack as B, Icon as ee, IconButton as V, Image as H, Input as te, Kbd as U, Link as W, Skeleton as ne, Span as re, Spinner as ie, Stack as G, Tag as ae, Text as K, Textarea as oe, Timeline as se, chakra as ce, createSlotRecipeContext as le, defineRecipe as ue, defineSlotRecipe as de, useRecipe as fe, useSlotRecipe as pe } from "@chakra-ui/react";
|
|
17
17
|
import { c as q } from "react/compiler-runtime";
|
|
@@ -1,4 +1,77 @@
|
|
|
1
|
-
import { A as CollectionSavedView, F as ViewFilterGroup, I as ViewFilterRule, L as ViewSort, M as CollectionViewsSource, N as EMPTY_VIEW_FILTER, a as CollectionViewStoreState, i as CollectionViewStoreInitialState, j as CollectionViewState, o as useCollectionViewStore, r as withTitleField } from "./collection-view-fields-Cm3i_PLe.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { A as CollectionSavedView, F as ViewFilterGroup, I as ViewFilterRule, L as ViewSort, M as CollectionViewsSource, N as EMPTY_VIEW_FILTER, a as CollectionViewStoreState, i as CollectionViewStoreInitialState, j as CollectionViewState, o as useCollectionViewStore, r as withTitleField, s as AttributeDescriptor, x as KanbanRendererRow } from "./collection-view-fields-Cm3i_PLe.js";
|
|
2
|
+
import { ReactNode, RefObject } from "react";
|
|
3
|
+
import { ViewFilterGroup as ViewFilterGroup$1, ViewFilterRule as ViewFilterRule$1 } from "@pstdio/sdk/extensions";
|
|
4
|
+
interface RuleValueOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
count?: number;
|
|
8
|
+
icon?: string | null;
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
interface CollectionFilterProps {
|
|
12
|
+
itemLabel?: string;
|
|
13
|
+
fields: AttributeDescriptor[];
|
|
14
|
+
filter: ViewFilterGroup$1;
|
|
15
|
+
optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
|
|
16
|
+
onFilterChange: (filter: ViewFilterGroup$1) => void;
|
|
17
|
+
}
|
|
18
|
+
/** The collection picker and editable criteria, without saved views or search. */
|
|
19
|
+
export declare function CollectionFilter(props: CollectionFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
interface CollectionViewBarProps<TSettings> {
|
|
21
|
+
storageKey: string;
|
|
22
|
+
/** Singular resource label used as the subject of boolean predicates. */
|
|
23
|
+
itemLabel?: string;
|
|
24
|
+
initialState: CollectionViewStoreInitialState<TSettings>;
|
|
25
|
+
views: (CollectionSavedView<TSettings> & {
|
|
26
|
+
builtIn: boolean;
|
|
27
|
+
})[];
|
|
28
|
+
viewsSource?: CollectionViewsSource<TSettings>;
|
|
29
|
+
/** Every field of the view. Filter offers the filterable ones and Sort the sortable ones. */
|
|
30
|
+
fields: AttributeDescriptor[];
|
|
31
|
+
optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
|
|
32
|
+
/** Search is screen state owned by the renderer. It is never saved. */
|
|
33
|
+
search: string;
|
|
34
|
+
onSearchChange: (value: string) => void;
|
|
35
|
+
searchResultLabel?: string;
|
|
36
|
+
leading?: ReactNode;
|
|
37
|
+
actions?: ReactNode;
|
|
38
|
+
displayControl: ReactNode;
|
|
39
|
+
align?: "split" | "end";
|
|
40
|
+
}
|
|
41
|
+
/** One view bar for data tables and both kanban displays: saved views, then Search, Filter, and Display. */
|
|
42
|
+
export declare const CollectionViewBar: <TSettings>(props: CollectionViewBarProps<TSettings>) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
/** Rules that are incomplete or no longer fit a field are skipped, so they never hide rows. */
|
|
44
|
+
export declare const filterRowsByView: <TRow extends KanbanRendererRow>(rows: TRow[], filter: ViewFilterGroup$1, fields: AttributeDescriptor[], today?: Date) => TRow[];
|
|
45
|
+
/** Search only looks at the text a view shows, which the caller collects per row. */
|
|
46
|
+
export declare const searchRows: <TRow>(rows: TRow[], query: string, textsOf: (row: TRow) => string[]) => TRow[];
|
|
47
|
+
interface CollectionViewsInput<TSettings> {
|
|
48
|
+
storageKey: string;
|
|
49
|
+
fields?: AttributeDescriptor[];
|
|
50
|
+
initialState: CollectionViewStoreInitialState<TSettings>;
|
|
51
|
+
viewsSource?: CollectionViewsSource<TSettings>;
|
|
52
|
+
defaultViews?: CollectionSavedView<TSettings>[];
|
|
53
|
+
defaultActiveViewId?: string;
|
|
54
|
+
}
|
|
55
|
+
/** Picks the views a renderer offers and keeps the store on a view that still exists. */
|
|
56
|
+
export declare const useCollectionViews: <TSettings>(input: CollectionViewsInput<TSettings>) => {
|
|
57
|
+
views: (CollectionSavedView<TSettings> & {
|
|
58
|
+
builtIn: boolean;
|
|
59
|
+
})[];
|
|
60
|
+
defaultId: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
interface ViewBarPopoverProps {
|
|
63
|
+
open: boolean;
|
|
64
|
+
onOpenChange: (open: boolean) => void;
|
|
65
|
+
/** The button the menu opens from. Several buttons can open the same menu. */
|
|
66
|
+
anchorRef: RefObject<HTMLElement | null>;
|
|
67
|
+
width: string;
|
|
68
|
+
placement?: "bottom-start" | "bottom-end";
|
|
69
|
+
/** The quick picker draws its own panes edge to edge. */
|
|
70
|
+
padding?: "0" | "2xs";
|
|
71
|
+
testId?: string;
|
|
72
|
+
children: ReactNode;
|
|
73
|
+
}
|
|
74
|
+
/** The menu shell for Search, Filter, and Sort. Menus inside it render in place, so using them never closes it. */
|
|
75
|
+
export declare const ViewBarPopover: (props: ViewBarPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export { type CollectionFilterProps, type CollectionSavedView, type CollectionViewBarProps, type CollectionViewState, type CollectionViewStoreInitialState, type CollectionViewStoreState, type CollectionViewsInput, type CollectionViewsSource, EMPTY_VIEW_FILTER, type ViewBarPopoverProps, type ViewFilterGroup, type ViewFilterRule, type ViewSort, useCollectionViewStore, withTitleField };
|
|
4
77
|
export {};
|
package/dist/data-table.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { A as CollectionSavedView, M as CollectionViewsSource, a as CollectionViewStoreState } from "./collection-view-fields-Cm3i_PLe.js";
|
|
2
|
-
import "./index-Dvw3pBQh.js";
|
|
3
2
|
import { N as CollectionPageControl } from "./index-Dh4y8BN2.js";
|
|
4
3
|
import { ReactElement, ReactNode } from "react";
|
|
5
4
|
import { DataTableRendererSettings, ViewFilterGroup, ViewSort } from "@pstdio/sdk/extensions";
|
package/dist/data-table.js
CHANGED
|
@@ -2,10 +2,10 @@ import { i as e, t } from "./ui-scope-DQ0IRYlQ.js";
|
|
|
2
2
|
import { i as n, r, t as i } from "./tooltip-NokNp3Dz.js";
|
|
3
3
|
import { t as a } from "./scroll-area-ZHp84XPy.js";
|
|
4
4
|
import { a as o, t as s, u as c } from "./list-row-NJZoDO9r.js";
|
|
5
|
-
import { n as l } from "./prism-
|
|
5
|
+
import { n as l } from "./prism-DmG_rrDH.js";
|
|
6
6
|
import { o as u } from "./host-storage-BHdlZIgQ.js";
|
|
7
7
|
import { b as d, h as f } from "./collection-view-search-DgJT5Cr6.js";
|
|
8
|
-
import { C as p, S as m, T as h, _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L } from "./edit-mode-data-table-
|
|
8
|
+
import { C as p, S as m, T as h, _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L } from "./edit-mode-data-table-CFSNfY2m.js";
|
|
9
9
|
import { o as R } from "./collection-page-Cn8gHR3N.js";
|
|
10
10
|
import { t as z } from "./diff-bubble-DietCcSc.js";
|
|
11
11
|
import { i as B, n as V, t as H } from "./display-sort-control-Cpf5e5Se.js";
|