@pstdio/ui 0.20.0 → 0.20.1

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 (51) hide show
  1. package/dist/{MermaidComponent-AmAjWLPm.js → MermaidComponent-BVMyKttu.js} +2 -2
  2. package/dist/{MermaidComponent-AmAjWLPm.js.map → MermaidComponent-BVMyKttu.js.map} +1 -1
  3. package/dist/chat-ui.js +1 -1
  4. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  5. package/dist/components/diff-viewer/file-change-badge.d.ts +3 -0
  6. package/dist/components/diff-viewer/file-list-panel.d.ts +0 -1
  7. package/dist/components/diff-viewer/index.d.ts +1 -0
  8. package/dist/components/param-editor/param-editor.types.d.ts +2 -0
  9. package/dist/components/tree-list/tree-list-background.d.ts +8 -0
  10. package/dist/components/tree-list/tree-list-drag.d.ts +7 -0
  11. package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +3 -0
  12. package/dist/components/tree-list/tree-list-inline-input.d.ts +9 -0
  13. package/dist/components/tree-list/tree-list-move-surface.d.ts +7 -0
  14. package/dist/components/tree-list/tree-list-node-row.d.ts +1 -0
  15. package/dist/components/tree-list/tree-list.d.ts +2 -0
  16. package/dist/components/tree-list/tree-list.types.d.ts +13 -0
  17. package/dist/data-table.js +5 -5
  18. package/dist/diff.js +796 -815
  19. package/dist/diff.js.map +1 -1
  20. package/dist/{edit-mode-data-table-4GMiDy75.js → edit-mode-data-table-D6NeiDJx.js} +3 -3
  21. package/dist/{edit-mode-data-table-4GMiDy75.js.map → edit-mode-data-table-D6NeiDJx.js.map} +1 -1
  22. package/dist/{editor-config-Dyh8n5A2.js → editor-config-D9OksZ93.js} +3 -3
  23. package/dist/{editor-config-Dyh8n5A2.js.map → editor-config-D9OksZ93.js.map} +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +324 -349
  26. package/dist/index.js.map +1 -1
  27. package/dist/{kanban-renderer-toolbar-BcUZvGyY.js → kanban-renderer-toolbar-CpegGbwq.js} +2 -2
  28. package/dist/{kanban-renderer-toolbar-BcUZvGyY.js.map → kanban-renderer-toolbar-CpegGbwq.js.map} +1 -1
  29. package/dist/kanban-renderer.js +5 -5
  30. package/dist/{lazy-markdown-editor-CWSREEhf.js → lazy-markdown-editor-B7uP2ALS.js} +2 -2
  31. package/dist/{lazy-markdown-editor-CWSREEhf.js.map → lazy-markdown-editor-B7uP2ALS.js.map} +1 -1
  32. package/dist/{list-row-B8L4TGsh.js → list-row-9oxy-F0v.js} +228 -253
  33. package/dist/list-row-9oxy-F0v.js.map +1 -0
  34. package/dist/{param-editor-w3xH-t8A.js → param-editor-B8Ff9Nm8.js} +2 -2
  35. package/dist/{param-editor-w3xH-t8A.js.map → param-editor-B8Ff9Nm8.js.map} +1 -1
  36. package/dist/{param-editor-field-C8zRDStn.js → param-editor-field-Cu4pto_a.js} +3 -3
  37. package/dist/{param-editor-field-C8zRDStn.js.map → param-editor-field-Cu4pto_a.js.map} +1 -1
  38. package/dist/{rich-message-jZ2oPQhU.js → rich-message-DdFYRzTo.js} +2 -2
  39. package/dist/{rich-message-jZ2oPQhU.js.map → rich-message-DdFYRzTo.js.map} +1 -1
  40. package/dist/rich-text.js +4 -4
  41. package/dist/theme/recipes/input.d.ts +32 -0
  42. package/dist/{theme-J8K8KbZi.js → theme-BH4fSst9.js} +33 -1
  43. package/dist/theme-BH4fSst9.js.map +1 -0
  44. package/dist/theme.js +1 -1
  45. package/dist/tree-list-uV4UFj0x.js +1116 -0
  46. package/dist/tree-list-uV4UFj0x.js.map +1 -0
  47. package/package.json +1 -1
  48. package/dist/list-row-B8L4TGsh.js.map +0 -1
  49. package/dist/theme-J8K8KbZi.js.map +0 -1
  50. package/dist/tree-list-CC13pOYi.js +0 -1033
  51. package/dist/tree-list-CC13pOYi.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { N as Z, M as Ie, g as Ue, o as ge, r as Ye, c as Ke, a as Me, b as Le, d as _e, e as Je, u as pe, f as Qe, h as Ze, i as et, K as tt } from "./kanban-renderer-toolbar-BcUZvGyY.js";
2
- import { D as On, F as $n, j as Bn, k as zn, l as Kn, m as Mn, n as Ln, p as _n, q as Vn, s as Wn, t as Hn, v as jn, w as Fn, x as Nn, y as Xn } from "./kanban-renderer-toolbar-BcUZvGyY.js";
1
+ import { N as Z, M as Ie, g as Ue, o as ge, r as Ye, c as Ke, a as Me, b as Le, d as _e, e as Je, u as pe, f as Qe, h as Ze, i as et, K as tt } from "./kanban-renderer-toolbar-CpegGbwq.js";
2
+ import { D as On, F as $n, j as Bn, k as zn, l as Kn, m as Mn, n as Ln, p as _n, q as Vn, s as Wn, t as Hn, v as jn, w as Fn, x as Nn, y as Xn } from "./kanban-renderer-toolbar-CpegGbwq.js";
3
3
  import { jsx as d, jsxs as B, Fragment as nt } from "react/jsx-runtime";
4
4
  import { c as M } from "react/compiler-runtime";
5
5
  import { Text as _, Badge as fe, IconButton as Ee, Icon as N, Menu as F, Spacer as rt, HStack as X, Portal as ot, Wrap as we, Stack as q, Box as re, VStack as lt, Textarea as at, Button as me, Input as it, Dialog as ne, CloseButton as st } from "@chakra-ui/react";
6
6
  import { useState as W, useRef as Ve, useEffect as Se } from "react";
7
7
  import { E as dt } from "./empty-state-Bo4HVrgr.js";
8
- import { L as ke, R as We } from "./list-row-B8L4TGsh.js";
8
+ import { L as ke, R as We } from "./list-row-9oxy-F0v.js";
9
9
  import { T as ct, S as Pe } from "./browser-storage-DPtOQJx0.js";
10
10
  import { Plus as ut, MoreHorizontal as pt, SquareCheck as gt, Square as ft, Check as mt, ChevronDown as bt, ChevronRight as ht, Paperclip as yt } from "lucide-react";
11
- import { g as be, i as He, a as he, P as vt, S as xt, A as Ct } from "./param-editor-field-C8zRDStn.js";
11
+ import { g as be, i as He, a as he, P as vt, S as xt, A as Ct } from "./param-editor-field-Cu4pto_a.js";
12
12
  import { W as St } from "./number-input-WUfejtNx.js";
13
13
  import { h as Dt } from "./dialog-accept-shortcut-DAEBsoWW.js";
14
- import { L as It } from "./lazy-markdown-editor-CWSREEhf.js";
14
+ import { L as It } from "./lazy-markdown-editor-B7uP2ALS.js";
15
15
  const wt = async (r) => {
16
16
  const {
17
17
  settings: e,
@@ -12,7 +12,7 @@ const m = (r) => r.default ?? r, c = async () => {
12
12
  let t = !1;
13
13
  return (async () => {
14
14
  await c();
15
- const a = await import("./editor-config-Dyh8n5A2.js").then((s) => s.m);
15
+ const a = await import("./editor-config-D9OksZ93.js").then((s) => s.m);
16
16
  t || i(() => a.MarkdownEditor);
17
17
  })(), () => {
18
18
  t = !0;
@@ -23,4 +23,4 @@ export {
23
23
  b as L,
24
24
  c as i
25
25
  };
26
- //# sourceMappingURL=lazy-markdown-editor-CWSREEhf.js.map
26
+ //# sourceMappingURL=lazy-markdown-editor-B7uP2ALS.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lazy-markdown-editor-CWSREEhf.js","sources":["../src/utils/prism.ts","../src/components/rich-text/lazy-markdown-editor.tsx"],"sourcesContent":["const readDefaultExport = (module: { default?: unknown }) => module.default ?? module;\n\nexport const installPrismGlobal = async () => {\n const globalScope = globalThis as typeof globalThis & { Prism?: unknown };\n if (globalScope.Prism) return;\n\n const prismModule = await import(\"prismjs\");\n globalScope.Prism = readDefaultExport(prismModule);\n};\n","import { Box } from \"@chakra-ui/react\";\nimport { type ComponentType, useEffect, useState } from \"react\";\nimport { installPrismGlobal } from \"@/utils/prism\";\nimport type { MarkdownEditorProps } from \"./markdown-editor/markdown-editor\";\n\nexport const LazyMarkdownEditor = (props: MarkdownEditorProps) => {\n const [Editor, setEditor] = useState<ComponentType<MarkdownEditorProps> | null>(null);\n\n useEffect(() => {\n let cancelled = false;\n\n void (async () => {\n await installPrismGlobal();\n const module = await import(\"./markdown-editor/markdown-editor\");\n if (!cancelled) setEditor(() => module.MarkdownEditor);\n })();\n\n return () => {\n cancelled = true;\n };\n }, []);\n\n if (!Editor) return <Box minH=\"7rem\" borderWidth=\"1px\" borderColor=\"border\" borderRadius=\"xs\" />;\n\n return <Editor {...props} />;\n};\n"],"names":["readDefaultExport","module","default","installPrismGlobal","globalScope","globalThis","Prism","prismModule","LazyMarkdownEditor","props","Editor","setEditor","useState","useEffect","cancelled","n","MarkdownEditor","jsx","Box"],"mappings":";;;AAAA,MAAMA,IAAoBA,CAACC,MAAkCA,EAAOC,WAAWD,GAElEE,IAAqB,YAAY;AAC5C,QAAMC,IAAcC;AACpB,MAAID,EAAYE,MAAO;AAEvB,QAAMC,IAAc,MAAM,OAAO,SAAS;AAC1CH,EAAAA,EAAYE,QAAQN,EAAkBO,CAAW;AACnD,GCHaC,IAAqBA,CAACC,MAA+B;AAChE,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAoD,IAAI;AAgBpF,SAdAC,EAAU,MAAM;AACd,QAAIC,IAAY;AAEhB,YAAM,YAAY;AAChB,YAAMX,EAAAA;AACN,YAAMF,IAAS,MAAM,OAAO,6BAAmC,EAAA,KAAA,CAAAc,MAAAA,EAAA,CAAA;AAC/D,MAAKD,KAAWH,EAAU,MAAMV,EAAOe,cAAc;AAAA,IACvD,GAAA,GAEO,MAAM;AACXF,MAAAA,IAAY;AAAA,IACd;AAAA,EACF,GAAG,CAAA,CAAE,GAEAJ,IAEE,gBAAAO,EAACP,GAAA,EAAO,GAAID,EAAAA,CAAM,IAFL,gBAAAQ,EAACC,GAAA,EAAI,MAAK,QAAO,aAAY,OAAM,aAAY,UAAS,cAAa,KAAA,CAAI;AAG/F;"}
1
+ {"version":3,"file":"lazy-markdown-editor-B7uP2ALS.js","sources":["../src/utils/prism.ts","../src/components/rich-text/lazy-markdown-editor.tsx"],"sourcesContent":["const readDefaultExport = (module: { default?: unknown }) => module.default ?? module;\n\nexport const installPrismGlobal = async () => {\n const globalScope = globalThis as typeof globalThis & { Prism?: unknown };\n if (globalScope.Prism) return;\n\n const prismModule = await import(\"prismjs\");\n globalScope.Prism = readDefaultExport(prismModule);\n};\n","import { Box } from \"@chakra-ui/react\";\nimport { type ComponentType, useEffect, useState } from \"react\";\nimport { installPrismGlobal } from \"@/utils/prism\";\nimport type { MarkdownEditorProps } from \"./markdown-editor/markdown-editor\";\n\nexport const LazyMarkdownEditor = (props: MarkdownEditorProps) => {\n const [Editor, setEditor] = useState<ComponentType<MarkdownEditorProps> | null>(null);\n\n useEffect(() => {\n let cancelled = false;\n\n void (async () => {\n await installPrismGlobal();\n const module = await import(\"./markdown-editor/markdown-editor\");\n if (!cancelled) setEditor(() => module.MarkdownEditor);\n })();\n\n return () => {\n cancelled = true;\n };\n }, []);\n\n if (!Editor) return <Box minH=\"7rem\" borderWidth=\"1px\" borderColor=\"border\" borderRadius=\"xs\" />;\n\n return <Editor {...props} />;\n};\n"],"names":["readDefaultExport","module","default","installPrismGlobal","globalScope","globalThis","Prism","prismModule","LazyMarkdownEditor","props","Editor","setEditor","useState","useEffect","cancelled","n","MarkdownEditor","jsx","Box"],"mappings":";;;AAAA,MAAMA,IAAoBA,CAACC,MAAkCA,EAAOC,WAAWD,GAElEE,IAAqB,YAAY;AAC5C,QAAMC,IAAcC;AACpB,MAAID,EAAYE,MAAO;AAEvB,QAAMC,IAAc,MAAM,OAAO,SAAS;AAC1CH,EAAAA,EAAYE,QAAQN,EAAkBO,CAAW;AACnD,GCHaC,IAAqBA,CAACC,MAA+B;AAChE,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAoD,IAAI;AAgBpF,SAdAC,EAAU,MAAM;AACd,QAAIC,IAAY;AAEhB,YAAM,YAAY;AAChB,YAAMX,EAAAA;AACN,YAAMF,IAAS,MAAM,OAAO,6BAAmC,EAAA,KAAA,CAAAc,MAAAA,EAAA,CAAA;AAC/D,MAAKD,KAAWH,EAAU,MAAMV,EAAOe,cAAc;AAAA,IACvD,GAAA,GAEO,MAAM;AACXF,MAAAA,IAAY;AAAA,IACd;AAAA,EACF,GAAG,CAAA,CAAE,GAEAJ,IAEE,gBAAAO,EAACP,GAAA,EAAO,GAAID,EAAAA,CAAM,IAFL,gBAAAQ,EAACC,GAAA,EAAI,MAAK,QAAO,aAAY,OAAM,aAAY,UAAS,cAAa,KAAA,CAAI;AAG/F;"}