@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.
Files changed (99) hide show
  1. package/README.md +8 -1
  2. package/dist/{MermaidComponent-BVdDqDRU.js → MermaidComponent-X__B6qib.js} +3 -3
  3. package/dist/{MermaidComponent-BVdDqDRU.js.map → MermaidComponent-X__B6qib.js.map} +1 -1
  4. package/dist/activity-timeline-BynMjXSB.js +283 -0
  5. package/dist/activity-timeline-BynMjXSB.js.map +1 -0
  6. package/dist/alert-ubcrW24X.js +33 -0
  7. package/dist/alert-ubcrW24X.js.map +1 -0
  8. package/dist/browser-storage-BinyFNJX.js +40 -0
  9. package/dist/browser-storage-BinyFNJX.js.map +1 -0
  10. package/dist/chat-ui.js +1515 -1429
  11. package/dist/chat-ui.js.map +1 -1
  12. package/dist/components/activity/index.d.ts +1 -3
  13. package/dist/components/chat-ui/components/chat-history-story.d.ts +14 -0
  14. package/dist/components/chat-ui/components/chat-input-history.d.ts +6 -0
  15. package/dist/components/chat-ui/components/chat-input.d.ts +2 -0
  16. package/dist/components/chat-ui/components/chat-panel-composer.d.ts +49 -0
  17. package/dist/components/chat-ui/components/use-chat-input-history.d.ts +16 -0
  18. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +1 -1
  19. package/dist/components/chat-ui/tool-rendering/shared.d.ts +1 -1
  20. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  21. package/dist/components/rich-text/index.d.ts +2 -0
  22. package/dist/components/rich-text/markdown-editor/markdown-editor-scrolling.play.d.ts +4 -0
  23. package/dist/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +3 -1
  24. package/dist/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +2 -0
  25. package/dist/components/rich-text/prompt-input/prompt-input.d.ts +2 -0
  26. package/dist/components/{activity → rich-text/resource-activity-feed}/resource-activity-feed.d.ts +1 -1
  27. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +1 -0
  28. package/dist/data-table.js +6 -6
  29. package/dist/diff.js +524 -522
  30. package/dist/diff.js.map +1 -1
  31. package/dist/{edit-mode-data-table-B8UpWb7i.js → edit-mode-data-table-Nfmfi7bz.js} +23 -22
  32. package/dist/{edit-mode-data-table-B8UpWb7i.js.map → edit-mode-data-table-Nfmfi7bz.js.map} +1 -1
  33. package/dist/index.d.ts +2 -3
  34. package/dist/index.js +1766 -2232
  35. package/dist/index.js.map +1 -1
  36. package/dist/{kanban-renderer-toolbar-DzY6THJY.js → kanban-renderer-toolbar-Buek4icz.js} +34 -33
  37. package/dist/{kanban-renderer-toolbar-DzY6THJY.js.map → kanban-renderer-toolbar-Buek4icz.js.map} +1 -1
  38. package/dist/kanban-renderer.js +31 -30
  39. package/dist/kanban-renderer.js.map +1 -1
  40. package/dist/lazy-markdown-editor-PzIBc9-l.js +42 -0
  41. package/dist/lazy-markdown-editor-PzIBc9-l.js.map +1 -0
  42. package/dist/{list-row-BDoV_iMV.js → list-row-DHzRa9-O.js} +2 -2
  43. package/dist/{list-row-BDoV_iMV.js.map → list-row-DHzRa9-O.js.map} +1 -1
  44. package/dist/{markdown-gNucAjnF.js → markdown-BCfPxNpb.js} +323 -303
  45. package/dist/markdown-BCfPxNpb.js.map +1 -0
  46. package/dist/markdown-editor-CsJ4KNGu.js +1034 -0
  47. package/dist/markdown-editor-CsJ4KNGu.js.map +1 -0
  48. package/dist/{mermaid-renderer-CVnuKs-A.js → mermaid-renderer-D0YP0FmJ.js} +3 -3
  49. package/dist/{mermaid-renderer-CVnuKs-A.js.map → mermaid-renderer-D0YP0FmJ.js.map} +1 -1
  50. package/dist/mermaid.js +1 -1
  51. package/dist/{param-editor-CTx3mDxQ.js → param-editor-CFM2Nf3l.js} +2 -2
  52. package/dist/{param-editor-CTx3mDxQ.js.map → param-editor-CFM2Nf3l.js.map} +1 -1
  53. package/dist/param-editor-field-Bj-AGUY6.js +1728 -0
  54. package/dist/param-editor-field-Bj-AGUY6.js.map +1 -0
  55. package/dist/param-editor.d.ts +2 -0
  56. package/dist/param-editor.js +47 -0
  57. package/dist/param-editor.js.map +1 -0
  58. package/dist/prism-n5gcERyD.js +202 -0
  59. package/dist/prism-n5gcERyD.js.map +1 -0
  60. package/dist/radio-BfjibByI.js +51 -0
  61. package/dist/radio-BfjibByI.js.map +1 -0
  62. package/dist/rich-message-q6Y6QJOq.js +633 -0
  63. package/dist/rich-message-q6Y6QJOq.js.map +1 -0
  64. package/dist/rich-text.js +342 -178
  65. package/dist/rich-text.js.map +1 -1
  66. package/dist/scroll-area-BMbg1WcD.js +91 -0
  67. package/dist/scroll-area-BMbg1WcD.js.map +1 -0
  68. package/dist/slider-DBHjdxsU.js +1092 -0
  69. package/dist/slider-DBHjdxsU.js.map +1 -0
  70. package/dist/style.css +1 -1
  71. package/dist/terminal.js +96 -93
  72. package/dist/terminal.js.map +1 -1
  73. package/dist/theme/recipes/timeline.d.ts +9 -0
  74. package/dist/{theme-Dc7hVvMC.js → theme-AzJH4Om3.js} +10 -1
  75. package/dist/theme-AzJH4Om3.js.map +1 -0
  76. package/dist/{theme-preference-Bpobguh4.js → theme-preference-DxGW1qg-.js} +2 -2
  77. package/dist/{theme-preference-Bpobguh4.js.map → theme-preference-DxGW1qg-.js.map} +1 -1
  78. package/dist/theme.js +1 -1
  79. package/dist/{tree-list-CZvcg3_6.js → tree-list-CPjbGTvs.js} +2 -2
  80. package/dist/{tree-list-CZvcg3_6.js.map → tree-list-CPjbGTvs.js.map} +1 -1
  81. package/dist/{workspace-badge-BR_GgsAG.js → workspace-badge-CuOcmnZc.js} +2 -2
  82. package/dist/{workspace-badge-BR_GgsAG.js.map → workspace-badge-CuOcmnZc.js.map} +1 -1
  83. package/package.json +7 -2
  84. package/dist/browser-storage-DPtOQJx0.js +0 -127
  85. package/dist/browser-storage-DPtOQJx0.js.map +0 -1
  86. package/dist/lazy-markdown-editor-ClZPZuaU.js +0 -235
  87. package/dist/lazy-markdown-editor-ClZPZuaU.js.map +0 -1
  88. package/dist/markdown-editor-CAVqJ9yR.js +0 -1019
  89. package/dist/markdown-editor-CAVqJ9yR.js.map +0 -1
  90. package/dist/markdown-gNucAjnF.js.map +0 -1
  91. package/dist/param-editor-field-DteDEyeU.js +0 -2810
  92. package/dist/param-editor-field-DteDEyeU.js.map +0 -1
  93. package/dist/prompt-input-DNpRL5tI.js +0 -564
  94. package/dist/prompt-input-DNpRL5tI.js.map +0 -1
  95. package/dist/radio-cLMEBBZk.js +0 -76
  96. package/dist/radio-cLMEBBZk.js.map +0 -1
  97. package/dist/rich-message-CuPiKxKX.js +0 -78
  98. package/dist/rich-message-CuPiKxKX.js.map +0 -1
  99. package/dist/theme-Dc7hVvMC.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 { c as Jt, T as Ue, S as Ye } from "./browser-storage-DPtOQJx0.js";
8
- import { C as Yt } from "./lazy-markdown-editor-ClZPZuaU.js";
9
- import { L as Qe, R as Qt } from "./list-row-BDoV_iMV.js";
10
- import { useStore as Zt } from "zustand";
11
- import { persist as en, createJSONStorage as tn } from "zustand/middleware";
12
- import { createStore as nn } from "zustand/vanilla";
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), Fi = (t) => !Array.isArray(t), sn = {
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
- }, $i = (t, e, n) => {
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
- }, Ei = (t, e, n) => {
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), Ti = (t, e) => t === W ? "all" : e?.columnKey, Li = (t, e, n) => {
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
- }, Ni = (t, e) => {
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
- }, Bi = (t, e) => {
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 nn()(en((o) => ({
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: tn(Jt),
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], Zt(o, e);
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(Yt, { 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
+ 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
- }, zi = (t, e, n) => {
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
- }, Mi = (t, e) => {
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
- }, ji = (t, e, n) => {
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(Qt, { actions: O(V), positioning: {
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 Wi = (t) => {
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
- Wi as K,
1345
+ Ki as K,
1345
1346
  se as M,
1346
1347
  W as N,
1347
- $i as a,
1348
+ Ei as a,
1348
1349
  ae as b,
1349
- Ei as c,
1350
+ Ti as c,
1350
1351
  qe as d,
1351
1352
  ui as e,
1352
- ji as f,
1353
+ Wi as f,
1353
1354
  ee as g,
1354
- Li as h,
1355
- Mi as i,
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
- zi as o,
1362
+ Mi as o,
1362
1363
  ue as p,
1363
1364
  Pn as q,
1364
- Ti as r,
1365
- Fi as s,
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
- Bi as y,
1372
- Ni as z
1372
+ zi as y,
1373
+ Bi as z
1373
1374
  };
1374
- //# sourceMappingURL=kanban-renderer-toolbar-DzY6THJY.js.map
1375
+ //# sourceMappingURL=kanban-renderer-toolbar-Buek4icz.js.map