@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
@@ -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 "./browser-storage-DPtOQJx0.js";
6
- import { K as Pt, f as Tt, u as Mt } from "./kanban-renderer-toolbar-DzY6THJY.js";
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, N as Yt, a as qt } from "./lazy-markdown-editor-ClZPZuaU.js";
9
- import { createColumnHelper as Jt } from "@tanstack/react-table";
10
- import { R as It, L as kt } from "./list-row-BDoV_iMV.js";
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 Un(t) {
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 Yn = Jt(), rn = 30, Dt = (t, e, l) => l ? l(t, e) : typeof t.id == "string" ? t.id : String(e), qn = (t) => typeof t.initialPageSize == "number" && t.initialPageSize > 0 ? t.initialPageSize : rn, Jn = (t) => t.map((e) => e.original), an = (t) => {
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, Qn = (t) => t.enableRowActivation === !0 && t.activeRowId === t.rowId, ut = (t) => {
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), Zn = (t, e) => {
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
- }, el = (t, e, l) => {
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(Yt, { className: "nodrag" }), e[48] = ye) : ye = e[48];
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(qt, { 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
+ 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
- }), tl = (t) => {
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
- tl as E,
826
+ nl as E,
826
827
  yn as P,
827
828
  Rn as S,
828
- Zn as a,
829
+ el as a,
829
830
  an as b,
830
- Yn as c,
831
+ qn as c,
831
832
  fn as d,
832
833
  hn as e,
833
- Un as f,
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
- Jn as l,
840
- el as m,
840
+ Qn as l,
841
+ tl as m,
841
842
  Qt as n,
842
- Qn as o,
843
- qn as r,
843
+ Zn as o,
844
+ Jn as r,
844
845
  sn as s
845
846
  };
846
- //# sourceMappingURL=edit-mode-data-table-B8UpWb7i.js.map
847
+ //# sourceMappingURL=edit-mode-data-table-Nfmfi7bz.js.map