@pstdio/ui 0.24.2 → 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-DSvPk-J8.js → MermaidComponent-X__B6qib.js} +3 -3
- package/dist/{MermaidComponent-DSvPk-J8.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 -1428
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/activity/activity-comment.d.ts +10 -2
- 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/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/rich-text/resource-activity-feed/resource-activity-feed.d.ts +58 -0
- 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-2E4GSOou.js → edit-mode-data-table-Nfmfi7bz.js} +23 -22
- package/dist/{edit-mode-data-table-2E4GSOou.js.map → edit-mode-data-table-Nfmfi7bz.js.map} +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1619 -1852
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-Dcbxujbk.js → kanban-renderer-toolbar-Buek4icz.js} +34 -33
- package/dist/{kanban-renderer-toolbar-Dcbxujbk.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-Cli3KGu9.js → markdown-BCfPxNpb.js} +322 -302
- 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-CaRflJ3e.js → param-editor-CFM2Nf3l.js} +2 -2
- package/dist/{param-editor-CaRflJ3e.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 -177
- 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/primitives/colors.d.ts +0 -23
- package/dist/theme/recipes/activity-comment.d.ts +36 -0
- package/dist/theme/recipes/alert.d.ts +1 -1
- package/dist/theme/recipes/dialog.d.ts +1 -1
- package/dist/theme/recipes/drawer.d.ts +1 -1
- package/dist/theme/recipes/menu.d.ts +1 -1
- package/dist/theme/recipes/popover.d.ts +1 -1
- package/dist/theme/recipes/progress-circle.d.ts +3 -3
- package/dist/theme/recipes/switch.d.ts +1 -1
- package/dist/theme/recipes/timeline.d.ts +10 -1
- package/dist/theme/recipes/tooltip.d.ts +1 -1
- package/dist/theme/recipes/window-title-bar.d.ts +1 -1
- package/dist/{theme-B5OVwYEU.js → theme-AzJH4Om3.js} +127 -808
- 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-DSlelhHV.js +0 -235
- package/dist/lazy-markdown-editor-DSlelhHV.js.map +0 -1
- package/dist/markdown-Cli3KGu9.js.map +0 -1
- package/dist/markdown-editor-BHoRATej.js +0 -1019
- package/dist/markdown-editor-BHoRATej.js.map +0 -1
- package/dist/param-editor-field-DVQlXbid.js +0 -2810
- package/dist/param-editor-field-DVQlXbid.js.map +0 -1
- package/dist/radio-cLMEBBZk.js +0 -76
- package/dist/radio-cLMEBBZk.js.map +0 -1
- package/dist/rich-message-gWYlm8Ji.js +0 -628
- package/dist/rich-message-gWYlm8Ji.js.map +0 -1
- package/dist/theme/recipes/landing-story.d.ts +0 -10
- package/dist/theme/recipes/landing-tool-demo.d.ts +0 -1
- package/dist/theme/recipes/landing.d.ts +0 -23
- package/dist/theme-B5OVwYEU.js.map +0 -1
|
@@ -4,12 +4,13 @@ import { Badge as je, Icon as Q, Text as q, Popover as le, IconButton as Ke, Por
|
|
|
4
4
|
import * as Gt from "lucide-react";
|
|
5
5
|
import { Settings2 as Dt, SortAsc as Pt, SortDesc as Ft, Check as $t, ChevronDown as Et, List as Tt, SquareKanban as Lt, Filter as Nt, Search as Bt, RotateCcw as zt, X as Mt, Pencil as jt, Copy as Wt, Trash2 as Kt, Plus as Xt } from "lucide-react";
|
|
6
6
|
import { createElement as Ut, useRef as Ge, useState as xe, useEffect as Xe, Fragment as Ht, useReducer as qt } from "react";
|
|
7
|
-
import {
|
|
8
|
-
import { C as
|
|
9
|
-
import { L as Qe, R as
|
|
10
|
-
import { useStore as
|
|
11
|
-
import { persist as
|
|
12
|
-
import { createStore as
|
|
7
|
+
import { T as Ue, S as Ye } from "./scroll-area-BMbg1WcD.js";
|
|
8
|
+
import { C as Jt } from "./prism-n5gcERyD.js";
|
|
9
|
+
import { L as Qe, R as Yt } from "./list-row-DHzRa9-O.js";
|
|
10
|
+
import { useStore as Qt } from "zustand";
|
|
11
|
+
import { persist as Zt, createJSONStorage as en } from "zustand/middleware";
|
|
12
|
+
import { createStore as tn } from "zustand/vanilla";
|
|
13
|
+
import { c as nn } from "./browser-storage-BinyFNJX.js";
|
|
13
14
|
const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(""), on = (t) => {
|
|
14
15
|
if (!t) return;
|
|
15
16
|
const e = rn(t);
|
|
@@ -64,7 +65,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
64
65
|
}
|
|
65
66
|
let g;
|
|
66
67
|
return e[15] !== d ? (g = /* @__PURE__ */ a(je, { as: "span", ...p, cursor: "default", children: d }), e[15] = d, e[16] = g) : g = e[16], g;
|
|
67
|
-
}, W = "none", se = "manual", He = (t) => !Array.isArray(t),
|
|
68
|
+
}, W = "none", se = "manual", He = (t) => !Array.isArray(t), $i = (t) => !Array.isArray(t), sn = {
|
|
68
69
|
viewMode: "board",
|
|
69
70
|
columnGrouping: W,
|
|
70
71
|
rowGrouping: W,
|
|
@@ -204,7 +205,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
204
205
|
attributeId: t.id,
|
|
205
206
|
label: o
|
|
206
207
|
} : null;
|
|
207
|
-
},
|
|
208
|
+
}, Ei = (t, e, n) => {
|
|
208
209
|
const i = [];
|
|
209
210
|
for (const o of n) {
|
|
210
211
|
const r = ae(e, o);
|
|
@@ -213,7 +214,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
213
214
|
l && i.push(l);
|
|
214
215
|
}
|
|
215
216
|
return i;
|
|
216
|
-
},
|
|
217
|
+
}, Ti = (t, e, n) => {
|
|
217
218
|
const i = [];
|
|
218
219
|
for (const o of n) {
|
|
219
220
|
const r = ae(e, o);
|
|
@@ -298,7 +299,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
298
299
|
label: n.label
|
|
299
300
|
});
|
|
300
301
|
return e;
|
|
301
|
-
}, Vn = (t, e) => e === W ? t.filter((n) => n.value === W) : t.filter((n) => n.value === W || n.value !== e),
|
|
302
|
+
}, Vn = (t, e) => e === W ? t.filter((n) => n.value === W) : t.filter((n) => n.value === W || n.value !== e), Li = (t, e) => t === W ? "all" : e?.columnKey, Ni = (t, e, n) => {
|
|
302
303
|
if (t === W) return;
|
|
303
304
|
const i = ae(e, t), o = n?.[t];
|
|
304
305
|
if (i && o && o.length > 0) return Je(i, o);
|
|
@@ -309,7 +310,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
309
310
|
...t
|
|
310
311
|
};
|
|
311
312
|
return delete n[e], n;
|
|
312
|
-
},
|
|
313
|
+
}, Bi = (t, e) => {
|
|
313
314
|
const n = new Set(e.map((u) => u.id)), i = (u) => u === W || n.has(u), o = (u) => u === se || u === "title" || n.has(u), r = i(t.columnGrouping) ? t.columnGrouping : W, l = i(t.rowGrouping) ? t.rowGrouping : W, s = o(t.ordering.attributeId) ? t.ordering.attributeId : se, c = t.displayProperties.filter(i);
|
|
314
315
|
return {
|
|
315
316
|
viewMode: t.viewMode,
|
|
@@ -321,7 +322,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
321
322
|
},
|
|
322
323
|
displayProperties: c
|
|
323
324
|
};
|
|
324
|
-
},
|
|
325
|
+
}, zi = (t, e) => {
|
|
325
326
|
const n = new Map(e.map((o) => [o.id, o])), i = {};
|
|
326
327
|
for (const [o, r] of Object.entries(t)) {
|
|
327
328
|
const l = n.get(o);
|
|
@@ -394,7 +395,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
394
395
|
storageKey: e,
|
|
395
396
|
initialState: n
|
|
396
397
|
} = t, i = it(n);
|
|
397
|
-
return
|
|
398
|
+
return tn()(Zt((o) => ({
|
|
398
399
|
...i,
|
|
399
400
|
setViewMode: (r) => o((l) => ({
|
|
400
401
|
...l,
|
|
@@ -581,7 +582,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
581
582
|
filters: c
|
|
582
583
|
});
|
|
583
584
|
},
|
|
584
|
-
storage:
|
|
585
|
+
storage: en(nn),
|
|
585
586
|
partialize: (o) => ({
|
|
586
587
|
settings: o.settings,
|
|
587
588
|
filters: o.filters,
|
|
@@ -600,7 +601,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
600
601
|
}, D = (t, e, n) => {
|
|
601
602
|
const i = J(3);
|
|
602
603
|
let o;
|
|
603
|
-
return i[0] !== n || i[1] !== t ? (o = Dn(t, n), i[0] = n, i[1] = t, i[2] = o) : o = i[2],
|
|
604
|
+
return i[0] !== n || i[1] !== t ? (o = Dn(t, n), i[0] = n, i[1] = t, i[2] = o) : o = i[2], Qt(o, e);
|
|
604
605
|
}, Pn = (t) => kn(t.views.find((e) => e.id === t.activeViewId), t), ot = (t) => {
|
|
605
606
|
const e = J(2);
|
|
606
607
|
let n;
|
|
@@ -784,7 +785,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
784
785
|
"aria-hidden": !0
|
|
785
786
|
}, e[0] = n) : n = e[0];
|
|
786
787
|
let i;
|
|
787
|
-
e[1] !== t.checked ? (i = /* @__PURE__ */ a(
|
|
788
|
+
e[1] !== t.checked ? (i = /* @__PURE__ */ a(Jt, { checked: t.checked, readOnly: !0, "aria-readonly": "true", inputProps: n, pointerEvents: "none", size: "sm" }), e[1] = t.checked, e[2] = i) : i = e[2];
|
|
788
789
|
let o;
|
|
789
790
|
e[3] !== t.label ? (o = /* @__PURE__ */ a(q, { textStyle: "label/S/regular", truncate: !0, children: t.label }), e[3] = t.label, e[4] = o) : o = e[4];
|
|
790
791
|
let r;
|
|
@@ -950,13 +951,13 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
950
951
|
return r.localeCompare(l, void 0, {
|
|
951
952
|
numeric: !0
|
|
952
953
|
});
|
|
953
|
-
},
|
|
954
|
+
}, Mi = (t, e, n) => {
|
|
954
955
|
if (e.attributeId === se) return t;
|
|
955
956
|
if (e.attributeId === "title")
|
|
956
957
|
return [...t].sort((o, r) => gt(o.title.localeCompare(r.title), e.direction));
|
|
957
958
|
const i = ae(n, e.attributeId);
|
|
958
959
|
return i ? [...t].sort((o, r) => gt(Mn(o, r, i), e.direction)) : t;
|
|
959
|
-
},
|
|
960
|
+
}, ji = (t, e) => {
|
|
960
961
|
const {
|
|
961
962
|
attributes: n,
|
|
962
963
|
columnGrouping: i,
|
|
@@ -998,7 +999,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
998
999
|
}, jn = (t, e, n) => {
|
|
999
1000
|
const i = de(t, e), o = Je(e, n);
|
|
1000
1001
|
return i.some((r) => o.includes(r));
|
|
1001
|
-
},
|
|
1002
|
+
}, Wi = (t, e, n) => {
|
|
1002
1003
|
const i = Object.entries(e).filter((o) => Array.isArray(o[1]) && o[1].length > 0);
|
|
1003
1004
|
return i.length === 0 ? t : t.filter((o) => i.every(([r, l]) => {
|
|
1004
1005
|
const s = ae(n, r);
|
|
@@ -1144,7 +1145,7 @@ const rn = (t) => t.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
1144
1145
|
let G;
|
|
1145
1146
|
if (e[8] !== O || e[9] !== f || e[10] !== p || e[11] !== d) {
|
|
1146
1147
|
let h;
|
|
1147
|
-
e[13] !== O || e[14] !== f || e[15] !== p ? (h = (V) => /* @__PURE__ */ a(
|
|
1148
|
+
e[13] !== O || e[14] !== f || e[15] !== p ? (h = (V) => /* @__PURE__ */ a(Yt, { actions: O(V), positioning: {
|
|
1148
1149
|
placement: "bottom-start"
|
|
1149
1150
|
}, children: /* @__PURE__ */ y(Le.Trigger, { value: V.id, children: [
|
|
1150
1151
|
V.title,
|
|
@@ -1263,7 +1264,7 @@ const ai = (t) => {
|
|
|
1263
1264
|
function di(t) {
|
|
1264
1265
|
return t + 1;
|
|
1265
1266
|
}
|
|
1266
|
-
const
|
|
1267
|
+
const Ki = (t) => {
|
|
1267
1268
|
const e = J(42), {
|
|
1268
1269
|
rows: n,
|
|
1269
1270
|
storageKey: i,
|
|
@@ -1341,34 +1342,34 @@ function xi(t) {
|
|
|
1341
1342
|
export {
|
|
1342
1343
|
Fn as D,
|
|
1343
1344
|
Nn as F,
|
|
1344
|
-
|
|
1345
|
+
Ki as K,
|
|
1345
1346
|
se as M,
|
|
1346
1347
|
W as N,
|
|
1347
|
-
|
|
1348
|
+
Ei as a,
|
|
1348
1349
|
ae as b,
|
|
1349
|
-
|
|
1350
|
+
Ti as c,
|
|
1350
1351
|
qe as d,
|
|
1351
1352
|
ui as e,
|
|
1352
|
-
|
|
1353
|
+
Wi as f,
|
|
1353
1354
|
ee as g,
|
|
1354
|
-
|
|
1355
|
-
|
|
1355
|
+
Ni as h,
|
|
1356
|
+
ji as i,
|
|
1356
1357
|
Cn as j,
|
|
1357
1358
|
wn as k,
|
|
1358
1359
|
Sn as l,
|
|
1359
1360
|
xn as m,
|
|
1360
1361
|
de as n,
|
|
1361
|
-
|
|
1362
|
+
Mi as o,
|
|
1362
1363
|
ue as p,
|
|
1363
1364
|
Pn as q,
|
|
1364
|
-
|
|
1365
|
-
|
|
1365
|
+
Li as r,
|
|
1366
|
+
$i as s,
|
|
1366
1367
|
He as t,
|
|
1367
1368
|
D as u,
|
|
1368
1369
|
vn as v,
|
|
1369
1370
|
yn as w,
|
|
1370
1371
|
ci as x,
|
|
1371
|
-
|
|
1372
|
-
|
|
1372
|
+
zi as y,
|
|
1373
|
+
Bi as z
|
|
1373
1374
|
};
|
|
1374
|
-
//# sourceMappingURL=kanban-renderer-toolbar-
|
|
1375
|
+
//# sourceMappingURL=kanban-renderer-toolbar-Buek4icz.js.map
|