@pstdio/ui 0.25.0 → 0.26.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/README.md +8 -1
- package/dist/{MermaidComponent-BVdDqDRU.js → MermaidComponent-X__B6qib.js} +3 -3
- package/dist/{MermaidComponent-BVdDqDRU.js.map → MermaidComponent-X__B6qib.js.map} +1 -1
- package/dist/activity-timeline-BynMjXSB.js +283 -0
- package/dist/activity-timeline-BynMjXSB.js.map +1 -0
- package/dist/alert-ubcrW24X.js +33 -0
- package/dist/alert-ubcrW24X.js.map +1 -0
- package/dist/browser-storage-BinyFNJX.js +40 -0
- package/dist/browser-storage-BinyFNJX.js.map +1 -0
- package/dist/chat-ui.js +1515 -1429
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/activity/index.d.ts +1 -3
- package/dist/components/chat-ui/components/chat-history-story.d.ts +14 -0
- package/dist/components/chat-ui/components/chat-input-history.d.ts +6 -0
- package/dist/components/chat-ui/components/chat-input.d.ts +2 -0
- package/dist/components/chat-ui/components/chat-panel-composer.d.ts +49 -0
- package/dist/components/chat-ui/components/use-chat-input-history.d.ts +16 -0
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +1 -1
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +1 -1
- package/dist/components/diff-viewer/code-editor.d.ts +2 -0
- package/dist/components/rich-text/index.d.ts +2 -0
- package/dist/components/rich-text/markdown-editor/markdown-editor-scrolling.play.d.ts +4 -0
- package/dist/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +3 -1
- package/dist/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +2 -0
- package/dist/components/rich-text/prompt-input/prompt-input.d.ts +2 -0
- package/dist/components/{activity → rich-text/resource-activity-feed}/resource-activity-feed.d.ts +1 -1
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +1 -0
- package/dist/data-table.js +6 -6
- package/dist/diff.js +524 -522
- package/dist/diff.js.map +1 -1
- package/dist/{edit-mode-data-table-B8UpWb7i.js → edit-mode-data-table-Nfmfi7bz.js} +23 -22
- package/dist/{edit-mode-data-table-B8UpWb7i.js.map → edit-mode-data-table-Nfmfi7bz.js.map} +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1766 -2232
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-DzY6THJY.js → kanban-renderer-toolbar-Buek4icz.js} +34 -33
- package/dist/{kanban-renderer-toolbar-DzY6THJY.js.map → kanban-renderer-toolbar-Buek4icz.js.map} +1 -1
- package/dist/kanban-renderer.js +31 -30
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/lazy-markdown-editor-PzIBc9-l.js +42 -0
- package/dist/lazy-markdown-editor-PzIBc9-l.js.map +1 -0
- package/dist/{list-row-BDoV_iMV.js → list-row-DHzRa9-O.js} +2 -2
- package/dist/{list-row-BDoV_iMV.js.map → list-row-DHzRa9-O.js.map} +1 -1
- package/dist/{markdown-gNucAjnF.js → markdown-BCfPxNpb.js} +323 -303
- package/dist/markdown-BCfPxNpb.js.map +1 -0
- package/dist/markdown-editor-CsJ4KNGu.js +1034 -0
- package/dist/markdown-editor-CsJ4KNGu.js.map +1 -0
- package/dist/{mermaid-renderer-CVnuKs-A.js → mermaid-renderer-D0YP0FmJ.js} +3 -3
- package/dist/{mermaid-renderer-CVnuKs-A.js.map → mermaid-renderer-D0YP0FmJ.js.map} +1 -1
- package/dist/mermaid.js +1 -1
- package/dist/{param-editor-CTx3mDxQ.js → param-editor-CFM2Nf3l.js} +2 -2
- package/dist/{param-editor-CTx3mDxQ.js.map → param-editor-CFM2Nf3l.js.map} +1 -1
- package/dist/param-editor-field-Bj-AGUY6.js +1728 -0
- package/dist/param-editor-field-Bj-AGUY6.js.map +1 -0
- package/dist/param-editor.d.ts +2 -0
- package/dist/param-editor.js +47 -0
- package/dist/param-editor.js.map +1 -0
- package/dist/prism-n5gcERyD.js +202 -0
- package/dist/prism-n5gcERyD.js.map +1 -0
- package/dist/radio-BfjibByI.js +51 -0
- package/dist/radio-BfjibByI.js.map +1 -0
- package/dist/rich-message-q6Y6QJOq.js +633 -0
- package/dist/rich-message-q6Y6QJOq.js.map +1 -0
- package/dist/rich-text.js +342 -178
- package/dist/rich-text.js.map +1 -1
- package/dist/scroll-area-BMbg1WcD.js +91 -0
- package/dist/scroll-area-BMbg1WcD.js.map +1 -0
- package/dist/slider-DBHjdxsU.js +1092 -0
- package/dist/slider-DBHjdxsU.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/terminal.js +96 -93
- package/dist/terminal.js.map +1 -1
- package/dist/theme/recipes/timeline.d.ts +9 -0
- package/dist/{theme-Dc7hVvMC.js → theme-AzJH4Om3.js} +10 -1
- package/dist/theme-AzJH4Om3.js.map +1 -0
- package/dist/{theme-preference-Bpobguh4.js → theme-preference-DxGW1qg-.js} +2 -2
- package/dist/{theme-preference-Bpobguh4.js.map → theme-preference-DxGW1qg-.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{tree-list-CZvcg3_6.js → tree-list-CPjbGTvs.js} +2 -2
- package/dist/{tree-list-CZvcg3_6.js.map → tree-list-CPjbGTvs.js.map} +1 -1
- package/dist/{workspace-badge-BR_GgsAG.js → workspace-badge-CuOcmnZc.js} +2 -2
- package/dist/{workspace-badge-BR_GgsAG.js.map → workspace-badge-CuOcmnZc.js.map} +1 -1
- package/package.json +7 -2
- package/dist/browser-storage-DPtOQJx0.js +0 -127
- package/dist/browser-storage-DPtOQJx0.js.map +0 -1
- package/dist/lazy-markdown-editor-ClZPZuaU.js +0 -235
- package/dist/lazy-markdown-editor-ClZPZuaU.js.map +0 -1
- package/dist/markdown-editor-CAVqJ9yR.js +0 -1019
- package/dist/markdown-editor-CAVqJ9yR.js.map +0 -1
- package/dist/markdown-gNucAjnF.js.map +0 -1
- package/dist/param-editor-field-DteDEyeU.js +0 -2810
- package/dist/param-editor-field-DteDEyeU.js.map +0 -1
- package/dist/prompt-input-DNpRL5tI.js +0 -564
- package/dist/prompt-input-DNpRL5tI.js.map +0 -1
- package/dist/radio-cLMEBBZk.js +0 -76
- package/dist/radio-cLMEBBZk.js.map +0 -1
- package/dist/rich-message-CuPiKxKX.js +0 -78
- package/dist/rich-message-CuPiKxKX.js.map +0 -1
- package/dist/theme-Dc7hVvMC.js.map +0 -1
|
@@ -2,12 +2,13 @@ import { jsx as o, jsxs as H } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as j } from "react/compiler-runtime";
|
|
3
3
|
import { Popover as oe, IconButton as Z, Text as ie, Box as ne, Icon as $, Portal as qe, chakra as Ht, Flex as le, Table as L, Button as Ie, Menu as J, Stack as wt } from "@chakra-ui/react";
|
|
4
4
|
import { isValidElement as Ct, useRef as ft, useEffect as ht, useState as ve } from "react";
|
|
5
|
-
import { S as St } from "./
|
|
6
|
-
import { K as Pt, f as Tt, u as Mt } from "./kanban-renderer-toolbar-
|
|
5
|
+
import { S as St } from "./scroll-area-BMbg1WcD.js";
|
|
6
|
+
import { K as Pt, f as Tt, u as Mt } from "./kanban-renderer-toolbar-Buek4icz.js";
|
|
7
7
|
import { Settings2 as Ot, CalendarClock as Nt, Type as $t, Hash as Bt, CheckCircle2 as Vt, Check as gt, X as xt, Minus as Lt, Plus as vt, Trash2 as yt, Pencil as jt, ChevronsLeft as Kt, ChevronLeft as Ft, ChevronRight as Xt, ChevronsRight as Gt } from "lucide-react";
|
|
8
|
-
import { S as Ut, C as Rt
|
|
9
|
-
import { createColumnHelper as
|
|
10
|
-
import { R as It, L as kt } from "./list-row-
|
|
8
|
+
import { S as Ut, C as Rt } from "./prism-n5gcERyD.js";
|
|
9
|
+
import { createColumnHelper as Yt } from "@tanstack/react-table";
|
|
10
|
+
import { R as It, L as kt } from "./list-row-DHzRa9-O.js";
|
|
11
|
+
import { N as qt, a as Jt } from "./lazy-markdown-editor-PzIBc9-l.js";
|
|
11
12
|
const Qt = (t) => {
|
|
12
13
|
const e = j(8), {
|
|
13
14
|
rows: l,
|
|
@@ -81,7 +82,7 @@ const Qt = (t) => {
|
|
|
81
82
|
const e = ln(t);
|
|
82
83
|
return e === "date" ? /* @__PURE__ */ o($, { as: Nt, ...Ye }) : e === "string" ? /* @__PURE__ */ o($, { as: $t, ...Ye }) : e === "number" ? /* @__PURE__ */ o($, { as: Bt, ...Ye }) : e === "boolean" ? /* @__PURE__ */ o($, { as: Vt, ...Ye }) : null;
|
|
83
84
|
};
|
|
84
|
-
function
|
|
85
|
+
function Yn(t) {
|
|
85
86
|
if (mt(t)) return t.display;
|
|
86
87
|
if (Ct(t)) return t;
|
|
87
88
|
switch ((t instanceof String || t instanceof Number || t instanceof Boolean) && (t = t.valueOf()), typeof t) {
|
|
@@ -97,7 +98,7 @@ function Un(t) {
|
|
|
97
98
|
return t ? String(t) : "-";
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
|
-
const
|
|
101
|
+
const qn = Yt(), rn = 30, Dt = (t, e, l) => l ? l(t, e) : typeof t.id == "string" ? t.id : String(e), Jn = (t) => typeof t.initialPageSize == "number" && t.initialPageSize > 0 ? t.initialPageSize : rn, Qn = (t) => t.map((e) => e.original), an = (t) => {
|
|
101
102
|
const e = [...t.selectionActions ?? []];
|
|
102
103
|
return t.onCSVDownload && e.push({
|
|
103
104
|
label: "Download CSV",
|
|
@@ -105,7 +106,7 @@ const Yn = Jt(), rn = 30, Dt = (t, e, l) => l ? l(t, e) : typeof t.id == "string
|
|
|
105
106
|
t.onCSVDownload?.(l.map((n, a) => Dt(n, a, t.getRowId)));
|
|
106
107
|
}
|
|
107
108
|
}), e;
|
|
108
|
-
}, sn = (t) => t.selectionMode === "multiple" || !!t.onCSVDownload || !!t.selectionActions?.length,
|
|
109
|
+
}, sn = (t) => t.selectionMode === "multiple" || !!t.onCSVDownload || !!t.selectionActions?.length, Zn = (t) => t.enableRowActivation === !0 && t.activeRowId === t.rowId, ut = (t) => {
|
|
109
110
|
const e = mt(t) ? t.sortValue : t;
|
|
110
111
|
return typeof e == "boolean" ? String(e) : e;
|
|
111
112
|
}, cn = (t, e) => {
|
|
@@ -130,10 +131,10 @@ const Yn = Jt(), rn = 30, Dt = (t, e, l) => l ? l(t, e) : typeof t.id == "string
|
|
|
130
131
|
attributes: s,
|
|
131
132
|
sourceRow: n
|
|
132
133
|
};
|
|
133
|
-
}), un = (t, e, l) => Tt(t, e, l),
|
|
134
|
+
}), un = (t, e, l) => Tt(t, e, l), el = (t, e) => {
|
|
134
135
|
const l = new Set(t), n = e.filter((i) => l.has(i)), a = new Set(n), s = t.filter((i) => !a.has(i));
|
|
135
136
|
return [...n, ...s];
|
|
136
|
-
},
|
|
137
|
+
}, tl = (t, e, l) => {
|
|
137
138
|
const n = t.indexOf(e), a = t.indexOf(l);
|
|
138
139
|
if (n < 0 || a < 0 || n === a) return t;
|
|
139
140
|
const s = [...t], [i] = s.splice(n, 1);
|
|
@@ -519,9 +520,9 @@ function yn(t) {
|
|
|
519
520
|
r(re - 1);
|
|
520
521
|
}, e[45] = r, e[46] = c, e[47] = G) : G = e[47];
|
|
521
522
|
let ye;
|
|
522
|
-
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ o(
|
|
523
|
+
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ o(qt, { className: "nodrag" }), e[48] = ye) : ye = e[48];
|
|
523
524
|
let ee;
|
|
524
|
-
e[49] !== Y || e[50] !== G || e[51] !== c ? (ee = /* @__PURE__ */ o(
|
|
525
|
+
e[49] !== Y || e[50] !== G || e[51] !== c ? (ee = /* @__PURE__ */ o(Jt, { margin: "2xs", width: "3rem", size: "xs", min: 1, max: c, value: Y, onValueChange: G, children: ye }), e[49] = Y, e[50] = G, e[51] = c, e[52] = ee) : ee = e[52];
|
|
525
526
|
let _;
|
|
526
527
|
e[53] !== c ? (_ = /* @__PURE__ */ H(ie, { children: [
|
|
527
528
|
"of ",
|
|
@@ -597,7 +598,7 @@ const pt = (t) => {
|
|
|
597
598
|
},
|
|
598
599
|
views: t.defaultViews,
|
|
599
600
|
activeViewId: t.defaultActiveViewId
|
|
600
|
-
}),
|
|
601
|
+
}), nl = (t) => {
|
|
601
602
|
const e = j(151), {
|
|
602
603
|
data: l,
|
|
603
604
|
editMode: n,
|
|
@@ -822,25 +823,25 @@ function On(t) {
|
|
|
822
823
|
}
|
|
823
824
|
export {
|
|
824
825
|
Zt as D,
|
|
825
|
-
|
|
826
|
+
nl as E,
|
|
826
827
|
yn as P,
|
|
827
828
|
Rn as S,
|
|
828
|
-
|
|
829
|
+
el as a,
|
|
829
830
|
an as b,
|
|
830
|
-
|
|
831
|
+
qn as c,
|
|
831
832
|
fn as d,
|
|
832
833
|
hn as e,
|
|
833
|
-
|
|
834
|
+
Yn as f,
|
|
834
835
|
on as g,
|
|
835
836
|
gn as h,
|
|
836
837
|
mt as i,
|
|
837
838
|
un as j,
|
|
838
839
|
Dt as k,
|
|
839
|
-
|
|
840
|
-
|
|
840
|
+
Qn as l,
|
|
841
|
+
tl as m,
|
|
841
842
|
Qt as n,
|
|
842
|
-
|
|
843
|
-
|
|
843
|
+
Zn as o,
|
|
844
|
+
Jn as r,
|
|
844
845
|
sn as s
|
|
845
846
|
};
|
|
846
|
-
//# sourceMappingURL=edit-mode-data-table-
|
|
847
|
+
//# sourceMappingURL=edit-mode-data-table-Nfmfi7bz.js.map
|