@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
package/dist/kanban-renderer.js
CHANGED
|
@@ -1,16 +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-
|
|
2
|
-
import { D as
|
|
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-Buek4icz.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, z as qn } from "./kanban-renderer-toolbar-Buek4icz.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-
|
|
9
|
-
import { T as ct, S as Pe } from "./
|
|
8
|
+
import { L as ke, R as We } from "./list-row-DHzRa9-O.js";
|
|
9
|
+
import { T as ct, S as Pe } from "./scroll-area-BMbg1WcD.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,
|
|
12
|
-
import { W as
|
|
13
|
-
import {
|
|
11
|
+
import { g as be, A as vt } from "./slider-DBHjdxsU.js";
|
|
12
|
+
import { W as xt, h as Ct } from "./workspace-badge-CuOcmnZc.js";
|
|
13
|
+
import { l as He, k as he, c as St, i as Dt } from "./param-editor-field-Bj-AGUY6.js";
|
|
14
|
+
import { L as It } from "./lazy-markdown-editor-PzIBc9-l.js";
|
|
14
15
|
const wt = async (r) => {
|
|
15
16
|
const {
|
|
16
17
|
settings: e,
|
|
@@ -169,7 +170,7 @@ const wt = async (r) => {
|
|
|
169
170
|
let S;
|
|
170
171
|
e[8] !== t || e[9] !== s ? (S = t || s ? /* @__PURE__ */ B(X, { minW: "0", gap: "2xs", children: [
|
|
171
172
|
t ? /* @__PURE__ */ d(_, { textStyle: "label/XS", color: "fg.muted", fontFamily: "mono", truncate: !0, children: t }) : null,
|
|
172
|
-
/* @__PURE__ */ d(X, { marginLeft: "auto", children: s ? /* @__PURE__ */ d(
|
|
173
|
+
/* @__PURE__ */ d(X, { marginLeft: "auto", children: s ? /* @__PURE__ */ d(xt, { ...s }) : null })
|
|
173
174
|
] }) : null, e[8] = t, e[9] = s, e[10] = S) : S = e[10];
|
|
174
175
|
let R;
|
|
175
176
|
e[11] !== n ? (R = /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", minW: "0", overflowWrap: "anywhere", children: n }), e[11] = n, e[12] = R) : R = e[12];
|
|
@@ -551,7 +552,7 @@ const Ne = (r, e, t = 0) => {
|
|
|
551
552
|
if (e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== p || e[4] !== t || e[5] !== n || e[6] !== c) {
|
|
552
553
|
const C = t === void 0 ? [] : t, w = n === void 0 ? [] : n, D = c === void 0 ? "default" : c, P = C.filter(He), E = w.map(Xt);
|
|
553
554
|
let v;
|
|
554
|
-
e[15] !== a || e[16] !== i || e[17] !== s || e[18] !== p || e[19] !== D ? (v = (A) => /* @__PURE__ */ d(
|
|
555
|
+
e[15] !== a || e[16] !== i || e[17] !== s || e[18] !== p || e[19] !== D ? (v = (A) => /* @__PURE__ */ d(St, { param: A, defaultValues: a, onChange: i, onOpenResource: s, readOnly: p, presentation: "horizontal", size: D === "small" ? "xs" : "sm" }, A.id), e[15] = a, e[16] = i, e[17] = s, e[18] = p, e[19] = D, e[20] = v) : v = e[20];
|
|
555
556
|
const k = v, I = P.filter(qt), y = P.filter(he), S = E.map(Yt).filter(Jt), R = E.map(Qt).filter(Zt), G = D === "small" ? "xs" : "sm", $ = I.length > 0 || S.length > 0;
|
|
556
557
|
f = q, g = "1", o = "full", u = G, b = "0", h = $ ? /* @__PURE__ */ B(X, { gap: G, flexWrap: "wrap", alignItems: "start", minW: "0", children: [
|
|
557
558
|
I.map(k),
|
|
@@ -654,7 +655,7 @@ const en = (r) => {
|
|
|
654
655
|
n.label
|
|
655
656
|
] }), e[12] = t, e[13] = n.label, e[14] = l) : l = e[14];
|
|
656
657
|
let m;
|
|
657
|
-
e[15] !== t || e[16] !== f || e[17] !== s || e[18] !== a ? (m = f.length > 0 ? /* @__PURE__ */ d(we, { gap: "2xs", children: f.map((C, w) => /* @__PURE__ */ d(
|
|
658
|
+
e[15] !== t || e[16] !== f || e[17] !== s || e[18] !== a ? (m = f.length > 0 ? /* @__PURE__ */ d(we, { gap: "2xs", children: f.map((C, w) => /* @__PURE__ */ d(vt, { file: C, disabled: t, removeLabel: a, onRemove: () => s(f.filter((D, P) => P !== w)) }, `${C.name}-${w.toString()}`)) }) : null, e[15] = t, e[16] = f, e[17] = s, e[18] = a, e[19] = m) : m = e[19];
|
|
658
659
|
let x;
|
|
659
660
|
return e[20] !== u || e[21] !== l || e[22] !== m ? (x = /* @__PURE__ */ B(q, { gap: "2xs", align: "start", children: [
|
|
660
661
|
u,
|
|
@@ -687,7 +688,7 @@ const en = (r) => {
|
|
|
687
688
|
let w;
|
|
688
689
|
e[15] !== i ? (w = (P, E) => i(E), e[15] = i, e[16] = w) : w = e[16];
|
|
689
690
|
let D;
|
|
690
|
-
return e[17] !== t || e[18] !== n.id || e[19] !== n.label || e[20] !== u || e[21] !== b || e[22] !== l || e[23] !== m || e[24] !== x || e[25] !== C || e[26] !== w ? (D = /* @__PURE__ */ d(
|
|
691
|
+
return e[17] !== t || e[18] !== n.id || e[19] !== n.label || e[20] !== u || e[21] !== b || e[22] !== l || e[23] !== m || e[24] !== x || e[25] !== C || e[26] !== w ? (D = /* @__PURE__ */ d(Dt, { hideLabel: !0, id: g, name: o, description: u, defaultValue: b, options: l, multiSelect: m, placeholder: x, clearable: C, readOnly: t, onChange: w }), e[17] = t, e[18] = n.id, e[19] = n.label, e[20] = u, e[21] = b, e[22] = l, e[23] = m, e[24] = x, e[25] = C, e[26] = w, e[27] = D) : D = e[27], D;
|
|
691
692
|
}
|
|
692
693
|
if (n.type === "boolean") {
|
|
693
694
|
let g;
|
|
@@ -835,7 +836,7 @@ const ln = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
|
|
|
835
836
|
};
|
|
836
837
|
return /* @__PURE__ */ B(ne.Root, { open: e, size: "lg", scrollBehavior: "inside", onOpenChange: (v) => !v.open && D(), children: [
|
|
837
838
|
/* @__PURE__ */ d(ne.Backdrop, {}),
|
|
838
|
-
/* @__PURE__ */ d(ne.Positioner, { children: /* @__PURE__ */ B(ne.Content, { maxH: "calc(100% - 48px)", onKeyDownCapture: (v) =>
|
|
839
|
+
/* @__PURE__ */ d(ne.Positioner, { children: /* @__PURE__ */ B(ne.Content, { maxH: "calc(100% - 48px)", onKeyDownCapture: (v) => Ct(v, () => {
|
|
839
840
|
E();
|
|
840
841
|
}, P && !u), children: [
|
|
841
842
|
/* @__PURE__ */ B(ne.Header, { children: [
|
|
@@ -933,7 +934,7 @@ const ln = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
|
|
|
933
934
|
}, un = (r) => {
|
|
934
935
|
const e = r.attributes.id;
|
|
935
936
|
return typeof e == "string" && e ? e : r.id;
|
|
936
|
-
},
|
|
937
|
+
}, En = (r) => {
|
|
937
938
|
const e = M(59), {
|
|
938
939
|
rows: t,
|
|
939
940
|
storageKey: n,
|
|
@@ -1072,9 +1073,9 @@ function bn(r) {
|
|
|
1072
1073
|
return r !== "id";
|
|
1073
1074
|
}
|
|
1074
1075
|
export {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1076
|
+
On as DisplayMenu,
|
|
1077
|
+
$n as FilterMenu,
|
|
1078
|
+
En as KanbanRenderer,
|
|
1078
1079
|
Bt as KanbanRendererBoard,
|
|
1079
1080
|
Fe as KanbanRendererCard,
|
|
1080
1081
|
dn as KanbanRendererCreateDialog,
|
|
@@ -1082,23 +1083,23 @@ export {
|
|
|
1082
1083
|
tt as KanbanRendererToolbar,
|
|
1083
1084
|
Ie as MANUAL_ORDERING,
|
|
1084
1085
|
Z as NO_GROUPING,
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1086
|
+
Bn as buildDisplayPropertyOptions,
|
|
1087
|
+
zn as buildFilterCategories,
|
|
1088
|
+
Kn as buildGroupingOptions,
|
|
1089
|
+
Mn as buildOrderingOptions,
|
|
1089
1090
|
Me as collectDisplayBadges,
|
|
1090
1091
|
Le as findAttribute,
|
|
1091
|
-
|
|
1092
|
-
|
|
1092
|
+
Ln as getAttributeStringValues,
|
|
1093
|
+
_n as getAttributeValue,
|
|
1093
1094
|
Ue as getEnumOptions,
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1095
|
+
Vn as isActiveKanbanRendererViewDirty,
|
|
1096
|
+
Wn as isAttributesSource,
|
|
1097
|
+
Hn as isEnumOptionsSource,
|
|
1098
|
+
jn as renderAttributeBadge,
|
|
1099
|
+
Fn as renderBadgeListDisplay,
|
|
1100
|
+
Nn as resolveAttributeOptions,
|
|
1101
|
+
Xn as sanitizeFilters,
|
|
1102
|
+
qn as sanitizeSettings,
|
|
1102
1103
|
pe as useKanbanRendererStore,
|
|
1103
1104
|
Je as useResolvedAttributes
|
|
1104
1105
|
};
|