@pstdio/ui 0.45.0-nightly.20261021030241 → 0.45.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/dist/{EquationComponent-DDd5UoIP.js → EquationComponent-BtOgXA3g.js} +3 -5
- package/dist/{EquationComponent-DDd5UoIP.js.map → EquationComponent-BtOgXA3g.js.map} +1 -1
- package/dist/{MermaidComponent-CTWuGAqI.js → MermaidComponent--W7gDFCk.js} +4 -5
- package/dist/{MermaidComponent-CTWuGAqI.js.map → MermaidComponent--W7gDFCk.js.map} +1 -1
- package/dist/activity-timeline-D-IDENMg.js +349 -0
- package/dist/activity-timeline-D-IDENMg.js.map +1 -0
- package/dist/{apply-theme-preference-B0vCu8zY.d.ts → apply-theme-preference-Wdm8bz5f.d.ts} +0 -2
- package/dist/{browser-storage-C_ipoNwP.js → browser-storage-CIj_9R9x.js} +2 -3
- package/dist/{browser-storage-C_ipoNwP.js.map → browser-storage-CIj_9R9x.js.map} +1 -1
- package/dist/chat-ui.d.ts +2 -40
- package/dist/chat-ui.js +219 -280
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-fields-tMtZmuhS.d.ts → collection-view-fields-CBlYAPxD.d.ts} +1 -9
- package/dist/{collection-view-grouping-BQMfKdQG.js → collection-view-grouping-BHuFPVAV.js} +3 -4
- package/dist/{collection-view-grouping-BQMfKdQG.js.map → collection-view-grouping-BHuFPVAV.js.map} +1 -1
- package/dist/{collection-view-search-DS9U9WAl.js → collection-view-search-CLvyY0cg.js} +21 -35
- package/dist/{collection-view-search-DS9U9WAl.js.map → collection-view-search-CLvyY0cg.js.map} +1 -1
- package/dist/collection-view.d.ts +1 -15
- package/dist/collection-view.js +3 -4
- package/dist/collection-view.js.map +1 -1
- package/dist/{data-table-stat-chart-content-waJAm_nt.js → data-table-stat-chart-content-CJVgiHlL.js} +2 -3
- package/dist/{data-table-stat-chart-content-waJAm_nt.js.map → data-table-stat-chart-content-CJVgiHlL.js.map} +1 -1
- package/dist/data-table.d.ts +2 -14
- package/dist/data-table.js +16 -22
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-bubble-DewUd_2w.js → diff-bubble-DietCcSc.js} +2 -3
- package/dist/{diff-bubble-DewUd_2w.js.map → diff-bubble-DietCcSc.js.map} +1 -1
- package/dist/{diff-drawer-ByJsQg8F.js → diff-drawer-COlghuX8.js} +11 -25
- package/dist/{diff-drawer-ByJsQg8F.js.map → diff-drawer-COlghuX8.js.map} +1 -1
- package/dist/{diff-editor-CGpeyoCE.js → diff-editor-BMBk4KXR.js} +3 -4
- package/dist/{diff-editor-CGpeyoCE.js.map → diff-editor-BMBk4KXR.js.map} +1 -1
- package/dist/{diff-size-Dydn_Uw5.js → diff-size-BR8D-bcL.js} +2 -3
- package/dist/{diff-size-Dydn_Uw5.js.map → diff-size-BR8D-bcL.js.map} +1 -1
- package/dist/{diff-viewer-ChEyTNpa.js → diff-viewer-nCYtig03.js} +10 -15
- package/dist/{diff-viewer-ChEyTNpa.js.map → diff-viewer-nCYtig03.js.map} +1 -1
- package/dist/diff.d.ts +0 -22
- package/dist/diff.js +8 -9
- package/dist/{display-sort-control-BUMkmlIu.js → display-sort-control-DXXkOgUC.js} +6 -7
- package/dist/{display-sort-control-BUMkmlIu.js.map → display-sort-control-DXXkOgUC.js.map} +1 -1
- package/dist/{drop-indicator-HjlBSIeV.js → drop-indicator-66rhST1K.js} +2 -3
- package/dist/{drop-indicator-HjlBSIeV.js.map → drop-indicator-66rhST1K.js.map} +1 -1
- package/dist/{edit-mode-data-table-MKEjfFUw.js → edit-mode-data-table-lvGsQ1Da.js} +17 -27
- package/dist/{edit-mode-data-table-MKEjfFUw.js.map → edit-mode-data-table-lvGsQ1Da.js.map} +1 -1
- package/dist/{empty-state-3mVV_pV-.js → empty-state-J96iLli9.js} +2 -3
- package/dist/{empty-state-3mVV_pV-.js.map → empty-state-J96iLli9.js.map} +1 -1
- package/dist/{file-change-badge-0QFNv82B.js → file-change-badge-5_T5hnWQ.js} +2 -3
- package/dist/{file-change-badge-0QFNv82B.js.map → file-change-badge-5_T5hnWQ.js.map} +1 -1
- package/dist/{host-storage-28AkEy1N.js → host-storage-CtscVB4w.js} +3 -4
- package/dist/{host-storage-28AkEy1N.js.map → host-storage-CtscVB4w.js.map} +1 -1
- package/dist/{host-storage-J0089Hyk.d.ts → host-storage-SnBKPpbc.d.ts} +0 -2
- package/dist/{icon-options-DpzDAnlu.js → icon-options-DJmsp8bw.js} +2 -4
- package/dist/{icon-options-DpzDAnlu.js.map → icon-options-DJmsp8bw.js.map} +1 -1
- package/dist/{index-3H4B61XK.d.ts → index-B0bZ__Yf.d.ts} +1 -5
- package/dist/{index-DlmvvQ6x.d.ts → index-CYiWcIGu.d.ts} +0 -18
- package/dist/{index-C0PaeiBy.d.ts → index-DYCXgPCg.d.ts} +2 -34
- package/dist/{index-eV_0Gjzo.d.ts → index-DzVOXj8n.d.ts} +1 -37
- package/dist/index.d.ts +6 -156
- package/dist/index.js +973 -958
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +2 -2
- package/dist/kanban-renderer.js +24 -44
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{list-row-BDDAVuVd.js → list-row-Dqb5Xfjf.js} +12 -39
- package/dist/{list-row-BDDAVuVd.js.map → list-row-Dqb5Xfjf.js.map} +1 -1
- package/dist/{markdown-editor-BPGIS9ku.js → markdown-editor-D419iTD2.js} +65 -159
- package/dist/markdown-editor-D419iTD2.js.map +1 -0
- package/dist/{mermaid-renderer-BtW_13Sz.js → mermaid-renderer-B8LpF3rD.js} +6 -12
- package/dist/{mermaid-renderer-BtW_13Sz.js.map → mermaid-renderer-B8LpF3rD.js.map} +1 -1
- package/dist/mermaid.d.ts +0 -2
- package/dist/mermaid.js +1 -2
- package/dist/{monaco-browser-CLRPSE4-.js → monaco-browser-BBIyiPtL.js} +2 -3
- package/dist/{monaco-browser-CLRPSE4-.js.map → monaco-browser-BBIyiPtL.js.map} +1 -1
- package/dist/{number-input-QDqWYzTR.js → number-input-DzRvKj64.js} +3 -4
- package/dist/{number-input-QDqWYzTR.js.map → number-input-DzRvKj64.js.map} +1 -1
- package/dist/{param-editor-Bva0M7Ns.js → param-editor-DyIO1rSf.js} +8 -14
- package/dist/{param-editor-Bva0M7Ns.js.map → param-editor-DyIO1rSf.js.map} +1 -1
- package/dist/{param-editor-field-BPBlweVg.js → param-editor-field-Bt7NP9OH.js} +682 -676
- package/dist/param-editor-field-Bt7NP9OH.js.map +1 -0
- package/dist/param-editor.d.ts +0 -66
- package/dist/param-editor.js +3 -3
- package/dist/prism-CQBZiF5P.js +391 -0
- package/dist/prism-CQBZiF5P.js.map +1 -0
- package/dist/{queued-follow-up-Bj_vtMgd.js → queued-follow-up-Bl8TC36-.js} +2 -3
- package/dist/{queued-follow-up-Bj_vtMgd.js.map → queued-follow-up-Bl8TC36-.js.map} +1 -1
- package/dist/{radio-CiFrDN6O.js → radio-BPnviQ4h.js} +2 -3
- package/dist/{radio-CiFrDN6O.js.map → radio-BPnviQ4h.js.map} +1 -1
- package/dist/{resolve-icon-component-Dy0pOuj5.js → resolve-icon-component-BrIOFsnC.js} +3 -4
- package/dist/{resolve-icon-component-Dy0pOuj5.js.map → resolve-icon-component-BrIOFsnC.js.map} +1 -1
- package/dist/{resource-badge-DGwekS-G.d.ts → resource-badge-C73K0Vg9.d.ts} +0 -4
- package/dist/{rich-text-CH2psble.js → rich-text-DBpBdWtn.js} +75 -104
- package/dist/{rich-text-CH2psble.js.map → rich-text-DBpBdWtn.js.map} +1 -1
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{scroll-area-IeoRS73V.js → scroll-area-BfAlvhjh.js} +3 -5
- package/dist/{scroll-area-IeoRS73V.js.map → scroll-area-BfAlvhjh.js.map} +1 -1
- package/dist/split-panel-motion-context-B8QvAyTv.js +6 -0
- package/dist/{split-panel-motion-context-YB0sduVv.js.map → split-panel-motion-context-B8QvAyTv.js.map} +1 -1
- package/dist/terminal.d.ts +1 -11
- package/dist/terminal.js +7 -15
- package/dist/terminal.js.map +1 -1
- package/dist/{theme-kKuLN2jb.js → theme-BMHkV5Ry.js} +2 -3
- package/dist/{theme-kKuLN2jb.js.map → theme-BMHkV5Ry.js.map} +1 -1
- package/dist/{theme-preference-BV4cbJNB.js → theme-preference-Bdi0s7vE.js} +10 -19
- package/dist/{theme-preference-BV4cbJNB.js.map → theme-preference-Bdi0s7vE.js.map} +1 -1
- package/dist/{theme-BsStBWWL.js → theme-rmCwx-aG.js} +30 -14
- package/dist/theme-rmCwx-aG.js.map +1 -0
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +2 -2
- package/dist/{tree-list-aNC_UTGS.js → tree-list-Bg8U7ZYc.js} +31 -65
- package/dist/{tree-list-aNC_UTGS.js.map → tree-list-Bg8U7ZYc.js.map} +1 -1
- package/dist/{use-virtualizer-CqDYJolY.js → use-virtualizer-B6ABIiNI.js} +2 -3
- package/dist/{use-virtualizer-CqDYJolY.js.map → use-virtualizer-B6ABIiNI.js.map} +1 -1
- package/dist/{workspace-badge-BMjS8ii4.d.ts → workspace-badge-DI6ZpW9Z.d.ts} +0 -6
- package/dist/{workspace-badge-DqQKSUJw.js → workspace-badge-Dqi-Sh_Q.js} +3 -4
- package/dist/{workspace-badge-DqQKSUJw.js.map → workspace-badge-Dqi-Sh_Q.js.map} +1 -1
- package/dist-monaco/assets/{css.worker-DFdt6_zu.js → css.worker-D55UB6Ki.js} +7 -7
- package/dist-monaco/assets/editor.worker-C3R1XRkp.js +26 -0
- package/dist-monaco/assets/{html.worker-JUzsMP-j.js → html.worker-CFLR1M2C.js} +7 -7
- package/dist-monaco/assets/json.worker-DJ19GkSR.js +58 -0
- package/dist-monaco/assets/{ts.worker-CmEKzkmF.js → ts.worker-DJNYEI7I.js} +32 -32
- package/dist-monaco/monaco.js +188 -188
- package/package.json +2 -2
- package/dist/alert-CO-uOKLm.js +0 -409
- package/dist/alert-CO-uOKLm.js.map +0 -1
- package/dist/markdown-editor-BPGIS9ku.js.map +0 -1
- package/dist/param-editor-field-BPBlweVg.js.map +0 -1
- package/dist/prism-E3-NXX_t.js +0 -335
- package/dist/prism-E3-NXX_t.js.map +0 -1
- package/dist/split-panel-motion-context-YB0sduVv.js +0 -7
- package/dist/theme-BsStBWWL.js.map +0 -1
- package/dist-monaco/assets/editor.worker-O-CH8JUO.js +0 -26
- package/dist-monaco/assets/json.worker-B4dEhy0e.js +0 -58
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { a as e, n as t, o as n, t as r } from "./activity-timeline-D-IDENMg.js";
|
|
2
|
+
import { t as i } from "./scroll-area-BfAlvhjh.js";
|
|
3
|
+
import { t as a } from "./list-row-Dqb5Xfjf.js";
|
|
4
|
+
import { c as o } from "./prism-CQBZiF5P.js";
|
|
5
|
+
import { t as s } from "./empty-state-J96iLli9.js";
|
|
6
|
+
import { A as c, B as l, D as u, F as d, I as f, L as p, M as m, N as h, O as g, R as _, V as v, _ as y, a as b, b as x, c as S, d as C, f as w, h as T, i as E, j as D, k as O, l as ee, m as te, o as k, p as A, r as j, s as M, u as N, v as P, x as F, y as I } from "./markdown-editor-D419iTD2.js";
|
|
6
7
|
import { Box as L, Button as R, Flex as ne, HStack as z, Icon as B, Spinner as V, Stack as H, Table as U, Text as W, Textarea as G, useRecipe as K, useSlotRecipe as q } from "@chakra-ui/react";
|
|
7
8
|
import { c as J } from "react/compiler-runtime";
|
|
8
9
|
import { jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
@@ -30,13 +31,12 @@ import { HistoryPlugin as nt } from "@lexical/react/LexicalHistoryPlugin";
|
|
|
30
31
|
import { MarkNode as rt } from "@lexical/mark";
|
|
31
32
|
import { useLexicalEditable as it } from "@lexical/react/useLexicalEditable";
|
|
32
33
|
import { ClickableLinkPlugin as at } from "@lexical/react/LexicalClickableLinkPlugin";
|
|
33
|
-
|
|
34
|
+
// src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx
|
|
34
35
|
function ot() {
|
|
35
36
|
let e = J(1), t;
|
|
36
37
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Y("style", { children: "\n .collaboration-cursor-container {\n position: relative;\n display: inline;\n }\n\n .collaboration-cursor-caret {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 2px;\n pointer-events: none;\n }\n\n .collaboration-cursor-label {\n position: absolute;\n top: -18px;\n left: -2px;\n padding: 1px 6px;\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n white-space: nowrap;\n border-radius: 4px 4px 4px 0;\n color: #fff;\n pointer-events: none;\n user-select: none;\n }\n\n .collaboration-cursor-selection {\n position: absolute;\n pointer-events: none;\n opacity: 0.25;\n }\n " }), e[0] = t) : t = e[0], t;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
//#region src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx
|
|
39
|
+
// src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx
|
|
40
40
|
function st(e) {
|
|
41
41
|
let t = J(43), { roomId: n, wsUrl: r, wsParams: i, userName: a, userColor: o, placeholder: s } = e, c;
|
|
42
42
|
t[0] === i ? c = t[1] : (c = i === void 0 ? {} : i, t[0] = i, t[1] = c);
|
|
@@ -146,11 +146,9 @@ function ct(e) {
|
|
|
146
146
|
function lt() {
|
|
147
147
|
return new De.Doc();
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
//#region src/components/rich-text/prompt-input/commands.ts
|
|
149
|
+
// src/components/rich-text/prompt-input/commands.ts
|
|
151
150
|
var ut = qe("INSERT_BLOCK");
|
|
152
|
-
|
|
153
|
-
//#region src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx
|
|
151
|
+
// src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx
|
|
154
152
|
function dt(e) {
|
|
155
153
|
let t = pt();
|
|
156
154
|
return e.style !== null && t.setFormat(e.style.textAlign), { node: t };
|
|
@@ -213,15 +211,10 @@ var ft = class e extends He {
|
|
|
213
211
|
function pt() {
|
|
214
212
|
return new ft();
|
|
215
213
|
}
|
|
216
|
-
|
|
217
|
-
//#region src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts
|
|
214
|
+
// src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts
|
|
218
215
|
var mt = (e, t) => {
|
|
219
216
|
let n = Pe(), r = pt();
|
|
220
|
-
|
|
221
|
-
t.getParent()?.replace(r, !0), t.remove(), r.selectEnd();
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
Ie(n) && Qe(n, pt);
|
|
217
|
+
t ? (t.getParent()?.replace(r, !0), t.remove(), r.selectEnd()) : Ie(n) && Qe(n, pt);
|
|
225
218
|
};
|
|
226
219
|
function ht() {
|
|
227
220
|
let e = J(3), [t] = Ye(), n, r;
|
|
@@ -231,8 +224,7 @@ function gt(e) {
|
|
|
231
224
|
let { optionId: t, nodeToReplace: n } = e;
|
|
232
225
|
return mt(t, n), !1;
|
|
233
226
|
}
|
|
234
|
-
|
|
235
|
-
//#region src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts
|
|
227
|
+
// src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts
|
|
236
228
|
var _t = () => {
|
|
237
229
|
let e = J(3), [t] = Ye(), n, r;
|
|
238
230
|
e[0] === t ? (n = e[1], r = e[2]) : (n = () => Ze(t.registerNodeTransform(ft, (e) => {
|
|
@@ -248,13 +240,11 @@ function vt(e) {
|
|
|
248
240
|
function yt(e) {
|
|
249
241
|
e.replace(ke(), !0);
|
|
250
242
|
}
|
|
251
|
-
|
|
252
|
-
//#region src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx
|
|
243
|
+
// src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx
|
|
253
244
|
function bt() {
|
|
254
245
|
return _t(), ht(), null;
|
|
255
246
|
}
|
|
256
|
-
|
|
257
|
-
//#region src/components/rich-text/prompt-input/plugins/command-query.ts
|
|
247
|
+
// src/components/rich-text/prompt-input/plugins/command-query.ts
|
|
258
248
|
var xt = (e) => {
|
|
259
249
|
let t = /(?:^|\s)(\/[^\s/]*)$/.exec(e)?.[1];
|
|
260
250
|
return t ? {
|
|
@@ -268,7 +258,7 @@ var xt = (e) => {
|
|
|
268
258
|
super(e.name), this.command = e;
|
|
269
259
|
}
|
|
270
260
|
}, Ct = (e) => {
|
|
271
|
-
let t = J(21), { options: n, selectedIndex: r, onSelect:
|
|
261
|
+
let t = J(21), { options: n, selectedIndex: r, onSelect: o, onHighlight: s } = e, c;
|
|
272
262
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = { key: "menu" }, t[0] = c) : c = t[0];
|
|
273
263
|
let l = q(c), u;
|
|
274
264
|
t[1] === l ? u = t[2] : (u = l(), t[1] = l, t[2] = u);
|
|
@@ -277,9 +267,9 @@ var xt = (e) => {
|
|
|
277
267
|
n[r ?? -1]?.ref?.current?.scrollIntoView({ block: "nearest" });
|
|
278
268
|
}, p = [n, r], t[3] = n, t[4] = r, t[5] = f, t[6] = p) : (f = t[5], p = t[6]), Q(f, p);
|
|
279
269
|
let m = d.content, h;
|
|
280
|
-
if (t[7] !== s || t[8] !==
|
|
270
|
+
if (t[7] !== s || t[8] !== o || t[9] !== n || t[10] !== r) {
|
|
281
271
|
let e;
|
|
282
|
-
t[12] !== s || t[13] !==
|
|
272
|
+
t[12] !== s || t[13] !== o || t[14] !== r ? (e = (e, t) => /* @__PURE__ */ Y(a, {
|
|
283
273
|
id: `typeahead-item-${t}`,
|
|
284
274
|
ref: e.setRefElement,
|
|
285
275
|
role: "option",
|
|
@@ -293,11 +283,11 @@ var xt = (e) => {
|
|
|
293
283
|
isSelected: r === t,
|
|
294
284
|
onMouseDown: Tt,
|
|
295
285
|
onPointerMove: () => s(t),
|
|
296
|
-
onActivate: () =>
|
|
297
|
-
}, e.key), t[12] = s, t[13] =
|
|
286
|
+
onActivate: () => o(e, t)
|
|
287
|
+
}, e.key), t[12] = s, t[13] = o, t[14] = r, t[15] = e) : e = t[15], h = n.map(e), t[7] = s, t[8] = o, t[9] = n, t[10] = r, t[11] = h;
|
|
298
288
|
} else h = t[11];
|
|
299
289
|
let g;
|
|
300
|
-
t[16] === h ? g = t[17] : (g = /* @__PURE__ */ Y(
|
|
290
|
+
t[16] === h ? g = t[17] : (g = /* @__PURE__ */ Y(i, {
|
|
301
291
|
maxH: "xs",
|
|
302
292
|
showHorizontalScrollbar: !1,
|
|
303
293
|
children: h
|
|
@@ -363,8 +353,7 @@ function Ot(e, t) {
|
|
|
363
353
|
}
|
|
364
354
|
}), e.current) : null;
|
|
365
355
|
}
|
|
366
|
-
|
|
367
|
-
//#region src/components/rich-text/prompt-input/plugins/focus-request-plugin.tsx
|
|
356
|
+
// src/components/rich-text/prompt-input/plugins/focus-request-plugin.tsx
|
|
368
357
|
var kt = (e) => {
|
|
369
358
|
let t = J(7), { requested: n, isEditable: r, onComplete: i } = e, [a] = Ye(), o = it(), s, c;
|
|
370
359
|
return t[0] !== a || t[1] !== r || t[2] !== i || t[3] !== o || t[4] !== n ? (s = () => {
|
|
@@ -392,11 +381,7 @@ var kt = (e) => {
|
|
|
392
381
|
let r = n.length;
|
|
393
382
|
for (let e = 0; e < r; e += 1) {
|
|
394
383
|
let i = n[e];
|
|
395
|
-
|
|
396
|
-
e !== r - 1 && (t += "\n");
|
|
397
|
-
continue;
|
|
398
|
-
}
|
|
399
|
-
t += Mt(i), jt(i) && (t += "\n");
|
|
384
|
+
i.type === "comment" ? e !== r - 1 && (t += "\n") : (t += Mt(i), jt(i) && (t += "\n"));
|
|
400
385
|
}
|
|
401
386
|
return t;
|
|
402
387
|
}, Nt = (e) => {
|
|
@@ -447,8 +432,7 @@ function Ft(e = "") {
|
|
|
447
432
|
}))
|
|
448
433
|
} } : JSON.parse(JSON.stringify(Pt));
|
|
449
434
|
}
|
|
450
|
-
|
|
451
|
-
//#region src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx
|
|
435
|
+
// src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx
|
|
452
436
|
function It(e) {
|
|
453
437
|
let t = J(4), { editorRef: n, previousTextRef: r } = e, [i] = Ye(), a, o;
|
|
454
438
|
return t[0] !== i || t[1] !== r ? (a = () => ({ setEditorValue: (e) => {
|
|
@@ -459,8 +443,7 @@ function It(e) {
|
|
|
459
443
|
function Lt() {
|
|
460
444
|
Ne().selectEnd();
|
|
461
445
|
}
|
|
462
|
-
|
|
463
|
-
//#region src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts
|
|
446
|
+
// src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts
|
|
464
447
|
var Rt = (e) => e.key === "Enter" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, zt = (e) => e.key === "ArrowUp" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, Bt = (e) => e.key === "ArrowDown" && !e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey, Vt = (e, t) => {
|
|
465
448
|
t.preventDefault(), t.shiftKey ? e.dispatchCommand(Ue, !1) : e.dispatchCommand(We, void 0);
|
|
466
449
|
};
|
|
@@ -473,8 +456,7 @@ function Ht(e) {
|
|
|
473
456
|
i
|
|
474
457
|
], t[0] = a, t[1] = i, t[2] = r, t[3] = n, t[4] = o, t[5] = s) : (o = t[4], s = t[5]), Q(o, s), null;
|
|
475
458
|
}
|
|
476
|
-
|
|
477
|
-
//#region src/components/rich-text/prompt-input/plugins/preserve-selection-plugin.tsx
|
|
459
|
+
// src/components/rich-text/prompt-input/plugins/preserve-selection-plugin.tsx
|
|
478
460
|
var Ut = (e) => {
|
|
479
461
|
let t = Me(e.key);
|
|
480
462
|
return t?.isAttached() ? e.type === "text" ? Le(t) && e.offset <= t.getTextContentSize() : Fe(t) && e.offset <= t.getChildrenSize() : !1;
|
|
@@ -501,7 +483,7 @@ var Ut = (e) => {
|
|
|
501
483
|
return c.current = t, re(() => o.registerUpdateListener(({ editorState: e }) => {
|
|
502
484
|
e.read(() => {
|
|
503
485
|
let e = s.current;
|
|
504
|
-
if (e
|
|
486
|
+
if (!e || Ut(e.anchor) && Ut(e.focus) || (s.current = null), !c.current) return;
|
|
505
487
|
let t = Pe();
|
|
506
488
|
Ie(t) && (s.current = t.clone(), a.current?.({
|
|
507
489
|
anchor: Wt(t.anchor),
|
|
@@ -634,8 +616,7 @@ function Xt() {}
|
|
|
634
616
|
function Zt(e) {
|
|
635
617
|
return e.name;
|
|
636
618
|
}
|
|
637
|
-
|
|
638
|
-
//#region src/components/chat-ui/links/chat-code-link-node.ts
|
|
619
|
+
// src/components/chat-ui/links/chat-code-link-node.ts
|
|
639
620
|
var Qt = class e extends Ke {
|
|
640
621
|
__href;
|
|
641
622
|
__description;
|
|
@@ -835,7 +816,7 @@ var Qt = class e extends Ke {
|
|
|
835
816
|
}, a = l(i, window.location.origin);
|
|
836
817
|
if (!a) return;
|
|
837
818
|
let o = e.resolveHref(i);
|
|
838
|
-
|
|
819
|
+
a.kind === "external" && !o || o && cn(t) || (t.preventDefault(), t.stopImmediatePropagation(), e.open(i));
|
|
839
820
|
}, un = () => {
|
|
840
821
|
let e = J(4), [t] = Ye(), n = p(), r, i;
|
|
841
822
|
return e[0] !== t || e[1] !== n ? (r = () => {
|
|
@@ -907,16 +888,11 @@ var Qt = class e extends Ke {
|
|
|
907
888
|
let r = e.getChildren(), i = [], a = 0;
|
|
908
889
|
for (let e of t.flatMap(an)) {
|
|
909
890
|
let t = r[a];
|
|
910
|
-
if (t instanceof $t && t.matchesSource(e))
|
|
911
|
-
|
|
912
|
-
continue;
|
|
913
|
-
}
|
|
914
|
-
if (pn(e)) {
|
|
891
|
+
if (t instanceof $t && t.matchesSource(e)) i.push(t), a += 1;
|
|
892
|
+
else if (pn(e)) {
|
|
915
893
|
let t = gn(e, r, a, n);
|
|
916
894
|
i.push(...t.nodes), a = t.cursor;
|
|
917
|
-
|
|
918
|
-
}
|
|
919
|
-
t && dn(t, e) ? (Fe(t) && Fe(e) && _n(t, e.getChildren(), n), i.push(t), a += 1) : (i.push(hn(e, n && !t)), t && (a += 1));
|
|
895
|
+
} else t && dn(t, e) ? (Fe(t) && Fe(e) && _n(t, e.getChildren(), n), i.push(t), a += 1) : (i.push(hn(e, n && !t)), t && (a += 1));
|
|
920
896
|
}
|
|
921
897
|
(i.length !== r.length || i.some((e, t) => e.getKey() !== r[t]?.getKey())) && e.splice(0, e.getChildrenSize(), i);
|
|
922
898
|
}, vn = (e, t, n = !0) => {
|
|
@@ -946,8 +922,7 @@ function bn(e) {
|
|
|
946
922
|
s
|
|
947
923
|
], t[0] = n, t[1] = c, t[2] = i, t[3] = o, t[4] = r, t[5] = s, t[6] = a, t[7] = l, t[8] = u) : (l = t[7], u = t[8]), Q(l, u), null;
|
|
948
924
|
}
|
|
949
|
-
|
|
950
|
-
//#region src/components/rich-text/rich-message/rich-message.tsx
|
|
925
|
+
// src/components/rich-text/rich-message/rich-message.tsx
|
|
951
926
|
var xn = {
|
|
952
927
|
rowNumbers: !1,
|
|
953
928
|
wrapRows: !0
|
|
@@ -1098,8 +1073,7 @@ function Cn(e) {
|
|
|
1098
1073
|
function wn(e) {
|
|
1099
1074
|
return console.error(e);
|
|
1100
1075
|
}
|
|
1101
|
-
|
|
1102
|
-
//#region src/components/rich-text/resource-activity-feed/resource-activity-feed.tsx
|
|
1076
|
+
// src/components/rich-text/resource-activity-feed/resource-activity-feed.tsx
|
|
1103
1077
|
var Tn = {
|
|
1104
1078
|
activity: oe,
|
|
1105
1079
|
bell: se,
|
|
@@ -1160,8 +1134,8 @@ var Tn = {
|
|
|
1160
1134
|
color: "fg.warning",
|
|
1161
1135
|
children: [i, a]
|
|
1162
1136
|
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6], o;
|
|
1163
|
-
}, kn = (
|
|
1164
|
-
let i = J(50), { item: a, size: o, fallbackActorName: s, formatTimestamp: c, onActionSelect: l, onRelatedResourceSelect: u } =
|
|
1137
|
+
}, kn = (t) => {
|
|
1138
|
+
let i = J(50), { item: a, size: o, fallbackActorName: s, formatTimestamp: c, onActionSelect: l, onRelatedResourceSelect: u } = t, d;
|
|
1165
1139
|
i[0] !== s || i[1] !== a.actor ? (d = a.actor ?? { name: s }, i[0] = s, i[1] = a.actor, i[2] = d) : d = i[2];
|
|
1166
1140
|
let f = d, p;
|
|
1167
1141
|
i[3] !== c || i[4] !== a ? (p = a.timestampLabel ?? c(a.createdAt, a), i[3] = c, i[4] = a, i[5] = p) : p = i[5];
|
|
@@ -1172,9 +1146,9 @@ var Tn = {
|
|
|
1172
1146
|
}), i[6] = a.createdAt, i[7] = p, i[8] = m) : m = i[8];
|
|
1173
1147
|
let h = m;
|
|
1174
1148
|
if (a.kind === "event") {
|
|
1175
|
-
let
|
|
1176
|
-
i[9] === a.icon ?
|
|
1177
|
-
let
|
|
1149
|
+
let t;
|
|
1150
|
+
i[9] === a.icon ? t = i[10] : (t = a.icon ? /* @__PURE__ */ Y(En, { name: a.icon }) : void 0, i[9] = a.icon, i[10] = t);
|
|
1151
|
+
let n = o === "compact" ? "sm" : "md", s;
|
|
1178
1152
|
i[11] === a.summary ? s = i[12] : (s = /* @__PURE__ */ Y(W, {
|
|
1179
1153
|
as: "span",
|
|
1180
1154
|
children: a.summary
|
|
@@ -1186,13 +1160,13 @@ var Tn = {
|
|
|
1186
1160
|
onRelatedResourceSelect: u
|
|
1187
1161
|
}), i[13] = a, i[14] = u, i[15] = o, i[16] = c) : c = i[16];
|
|
1188
1162
|
let l;
|
|
1189
|
-
return i[17] !== f || i[18] !==
|
|
1163
|
+
return i[17] !== f || i[18] !== t || i[19] !== n || i[20] !== s || i[21] !== c || i[22] !== h ? (l = /* @__PURE__ */ Y(r, { children: /* @__PURE__ */ X(e, {
|
|
1190
1164
|
actor: f,
|
|
1191
|
-
icon:
|
|
1165
|
+
icon: t,
|
|
1192
1166
|
timestamp: h,
|
|
1193
|
-
paddingX:
|
|
1167
|
+
paddingX: n,
|
|
1194
1168
|
children: [s, c]
|
|
1195
|
-
}) }), i[17] = f, i[18] =
|
|
1169
|
+
}) }), i[17] = f, i[18] = t, i[19] = n, i[20] = s, i[21] = c, i[22] = h, i[23] = l) : l = i[23], l;
|
|
1196
1170
|
}
|
|
1197
1171
|
let g = a.attention?.icon ?? "bell", _;
|
|
1198
1172
|
i[24] !== g || i[25] !== a.attention ? (_ = a.attention ? /* @__PURE__ */ Y(En, { name: g }) : void 0, i[24] = g, i[25] = a.attention, i[26] = _) : _ = i[26];
|
|
@@ -1216,7 +1190,7 @@ var Tn = {
|
|
|
1216
1190
|
children: [C, w]
|
|
1217
1191
|
}), i[36] = w, i[37] = S, i[38] = C, i[39] = T) : T = i[39];
|
|
1218
1192
|
let E;
|
|
1219
|
-
return i[40] !== f || i[41] !== o || i[42] !== T || i[43] !== _ || i[44] !== v || i[45] !== y || i[46] !== b || i[47] !== x || i[48] !== h ? (E = /* @__PURE__ */ Y(
|
|
1193
|
+
return i[40] !== f || i[41] !== o || i[42] !== T || i[43] !== _ || i[44] !== v || i[45] !== y || i[46] !== b || i[47] !== x || i[48] !== h ? (E = /* @__PURE__ */ Y(n, {
|
|
1220
1194
|
actor: f,
|
|
1221
1195
|
icon: _,
|
|
1222
1196
|
iconColor: v,
|
|
@@ -1228,60 +1202,60 @@ var Tn = {
|
|
|
1228
1202
|
children: T
|
|
1229
1203
|
}), i[40] = f, i[41] = o, i[42] = T, i[43] = _, i[44] = v, i[45] = y, i[46] = b, i[47] = x, i[48] = h, i[49] = E) : E = i[49], E;
|
|
1230
1204
|
}, An = (e) => e, jn = (e) => {
|
|
1231
|
-
let
|
|
1232
|
-
|
|
1205
|
+
let n = J(56), r, i, a, c, l, u, d, f, p, m, h, g, _, v, y, b, x;
|
|
1206
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], c = n[4], l = n[5], u = n[6], d = n[7], f = n[8], p = n[9], m = n[10], h = n[11], g = n[12], _ = n[13], v = n[14], y = n[15], b = n[16], x = n[17]) : ({items: i, size: d, isLoading: f, error: r, hasMore: m, isLoadingMore: h, emptyTitle: g, emptyDescription: _, errorTitle: v, loadMoreLabel: y, loadingLabel: b, fallbackActorName: x, formatTimestamp: p, onActionSelect: a, onLoadMore: c, onRelatedResourceSelect: l, ...u} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = c, n[5] = l, n[6] = u, n[7] = d, n[8] = f, n[9] = p, n[10] = m, n[11] = h, n[12] = g, n[13] = _, n[14] = v, n[15] = y, n[16] = b, n[17] = x);
|
|
1233
1207
|
let S = d === void 0 ? "comfortable" : d, C = f !== void 0 && f, w = m !== void 0 && m, T = h !== void 0 && h, E = g === void 0 ? "No activity yet" : g, D = _ === void 0 ? "Events and messages will appear here." : _, O = v === void 0 ? "Activity unavailable" : v, ee = y === void 0 ? "Load more" : y, te = b === void 0 ? "Loading activity" : b, k = x === void 0 ? "System" : x, A = p === void 0 ? An : p;
|
|
1234
1208
|
if (r) {
|
|
1235
1209
|
let e;
|
|
1236
|
-
return
|
|
1210
|
+
return n[18] !== r || n[19] !== O || n[20] !== u ? (e = /* @__PURE__ */ Y(o, {
|
|
1237
1211
|
status: "error",
|
|
1238
1212
|
colorPalette: "red",
|
|
1239
1213
|
title: O,
|
|
1240
1214
|
size: "sm",
|
|
1241
1215
|
...u,
|
|
1242
1216
|
children: r
|
|
1243
|
-
}),
|
|
1217
|
+
}), n[18] = r, n[19] = O, n[20] = u, n[21] = e) : e = n[21], e;
|
|
1244
1218
|
}
|
|
1245
|
-
if (C &&
|
|
1219
|
+
if (C && i.length === 0) {
|
|
1246
1220
|
let e;
|
|
1247
|
-
|
|
1248
|
-
let
|
|
1249
|
-
|
|
1221
|
+
n[22] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Y(V, { size: "sm" }), n[22] = e) : e = n[22];
|
|
1222
|
+
let t;
|
|
1223
|
+
n[23] === te ? t = n[24] : (t = /* @__PURE__ */ Y(W, {
|
|
1250
1224
|
textStyle: "label/S/regular",
|
|
1251
1225
|
children: te
|
|
1252
|
-
}),
|
|
1226
|
+
}), n[23] = te, n[24] = t);
|
|
1253
1227
|
let r;
|
|
1254
|
-
return
|
|
1228
|
+
return n[25] !== u || n[26] !== t ? (r = /* @__PURE__ */ X(z, {
|
|
1255
1229
|
role: "status",
|
|
1256
1230
|
"aria-live": "polite",
|
|
1257
1231
|
gap: "xs",
|
|
1258
1232
|
color: "fg.muted",
|
|
1259
1233
|
...u,
|
|
1260
|
-
children: [e,
|
|
1261
|
-
}),
|
|
1234
|
+
children: [e, t]
|
|
1235
|
+
}), n[25] = u, n[26] = t, n[27] = r) : r = n[27], r;
|
|
1262
1236
|
}
|
|
1263
|
-
if (
|
|
1237
|
+
if (i.length === 0) {
|
|
1264
1238
|
let e;
|
|
1265
|
-
return
|
|
1239
|
+
return n[28] !== D || n[29] !== E || n[30] !== u ? (e = /* @__PURE__ */ Y(s, {
|
|
1266
1240
|
title: E,
|
|
1267
1241
|
description: D,
|
|
1268
1242
|
...u
|
|
1269
|
-
}),
|
|
1243
|
+
}), n[28] = D, n[29] = E, n[30] = u, n[31] = e) : e = n[31], e;
|
|
1270
1244
|
}
|
|
1271
1245
|
let j = S === "compact" ? "sm" : "md", M;
|
|
1272
|
-
if (
|
|
1246
|
+
if (n[32] !== k || n[33] !== A || n[34] !== i || n[35] !== a || n[36] !== l || n[37] !== S) {
|
|
1273
1247
|
let e;
|
|
1274
|
-
|
|
1248
|
+
n[39] !== k || n[40] !== A || n[41] !== a || n[42] !== l || n[43] !== S ? (e = (e) => /* @__PURE__ */ Y(kn, {
|
|
1275
1249
|
item: e,
|
|
1276
1250
|
size: S,
|
|
1277
1251
|
fallbackActorName: k,
|
|
1278
1252
|
formatTimestamp: A,
|
|
1279
|
-
onActionSelect:
|
|
1253
|
+
onActionSelect: a,
|
|
1280
1254
|
onRelatedResourceSelect: l
|
|
1281
|
-
}, e.id),
|
|
1282
|
-
} else M =
|
|
1255
|
+
}, e.id), n[39] = k, n[40] = A, n[41] = a, n[42] = l, n[43] = S, n[44] = e) : e = n[44], M = i.map(e), n[32] = k, n[33] = A, n[34] = i, n[35] = a, n[36] = l, n[37] = S, n[38] = M;
|
|
1256
|
+
} else M = n[38];
|
|
1283
1257
|
let N;
|
|
1284
|
-
|
|
1258
|
+
n[45] !== w || n[46] !== T || n[47] !== ee || n[48] !== c || n[49] !== S ? (N = w ? /* @__PURE__ */ Y(R, {
|
|
1285
1259
|
type: "button",
|
|
1286
1260
|
width: "full",
|
|
1287
1261
|
size: S === "compact" ? "xs" : "sm",
|
|
@@ -1289,15 +1263,15 @@ var Tn = {
|
|
|
1289
1263
|
loading: T,
|
|
1290
1264
|
onClick: c,
|
|
1291
1265
|
children: ee
|
|
1292
|
-
}) : null,
|
|
1266
|
+
}) : null, n[45] = w, n[46] = T, n[47] = ee, n[48] = c, n[49] = S, n[50] = N) : N = n[50];
|
|
1293
1267
|
let P;
|
|
1294
|
-
return
|
|
1268
|
+
return n[51] !== u || n[52] !== j || n[53] !== M || n[54] !== N ? (P = /* @__PURE__ */ X(t, {
|
|
1295
1269
|
gap: j,
|
|
1296
1270
|
...u,
|
|
1297
1271
|
children: [M, N]
|
|
1298
|
-
}),
|
|
1272
|
+
}), n[51] = u, n[52] = j, n[53] = M, n[54] = N, n[55] = P) : P = n[55], P;
|
|
1299
1273
|
}, Mn = "calc(var(--chakra-font-sizes-sm) * var(--rich-text-font-scale))", Nn = (e) => e == null ? "-" : typeof e == "string" ? e.length ? e : "-" : typeof e == "number" || typeof e == "boolean" ? String(e).toUpperCase() : e instanceof Date ? e.toISOString() : JSON.stringify(e), Pn = (e) => {
|
|
1300
|
-
let t = J(8), { defaultCode: n, isEditable: r, showLineNumbers:
|
|
1274
|
+
let t = J(8), { defaultCode: n, isEditable: r, showLineNumbers: a, disableScroll: o } = e, s = n === void 0 ? "" : n, c = r !== void 0 && r, l = a !== void 0 && a, u = o !== void 0 && o;
|
|
1301
1275
|
if (c) {
|
|
1302
1276
|
let e;
|
|
1303
1277
|
return t[0] === s ? e = t[1] : (e = /* @__PURE__ */ Y(G, {
|
|
@@ -1337,7 +1311,7 @@ var Tn = {
|
|
|
1337
1311
|
let f = d;
|
|
1338
1312
|
if (u) return f;
|
|
1339
1313
|
let p;
|
|
1340
|
-
return t[6] === f ? p = t[7] : (p = /* @__PURE__ */ Y(
|
|
1314
|
+
return t[6] === f ? p = t[7] : (p = /* @__PURE__ */ Y(i, {
|
|
1341
1315
|
width: "100%",
|
|
1342
1316
|
background: "bg.code",
|
|
1343
1317
|
borderRadius: "md",
|
|
@@ -1345,7 +1319,7 @@ var Tn = {
|
|
|
1345
1319
|
children: f
|
|
1346
1320
|
}), t[6] = f, t[7] = p), p;
|
|
1347
1321
|
}, Fn = (e) => {
|
|
1348
|
-
let t = J(26), { data: n, fullWidth: r, noBorder:
|
|
1322
|
+
let t = J(26), { data: n, fullWidth: r, noBorder: a, hiddenColumns: o } = e, s = r !== void 0 && r, c = a !== void 0 && a, l;
|
|
1349
1323
|
t[0] === o ? l = t[1] : (l = o === void 0 ? [] : o, t[0] = o, t[1] = l);
|
|
1350
1324
|
let u = l;
|
|
1351
1325
|
if (!n.length) {
|
|
@@ -1391,7 +1365,7 @@ var Tn = {
|
|
|
1391
1365
|
let b;
|
|
1392
1366
|
t[19] === y ? b = t[20] : (b = /* @__PURE__ */ Y(U.Body, { children: y }), t[19] = y, t[20] = b);
|
|
1393
1367
|
let x;
|
|
1394
|
-
return t[21] !== b || t[22] !== g || t[23] !== _ || t[24] !== v ? (x = /* @__PURE__ */ Y(
|
|
1368
|
+
return t[21] !== b || t[22] !== g || t[23] !== _ || t[24] !== v ? (x = /* @__PURE__ */ Y(i, {
|
|
1395
1369
|
maxWidth: "100%",
|
|
1396
1370
|
showHorizontalScrollbar: !0,
|
|
1397
1371
|
showVerticalScrollbar: !1,
|
|
@@ -1433,14 +1407,12 @@ function Ln(e) {
|
|
|
1433
1407
|
})
|
|
1434
1408
|
}, e);
|
|
1435
1409
|
}
|
|
1436
|
-
|
|
1437
|
-
//#region src/components/rich-text/utils/inferResourceType.ts
|
|
1410
|
+
// src/components/rich-text/utils/inferResourceType.ts
|
|
1438
1411
|
function Rn(e) {
|
|
1439
1412
|
let t = e.toLowerCase().trim();
|
|
1440
1413
|
return t ? t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : t === "text/markdown" ? "markdown" : t === "text/csv" || t === "text/tab-separated-values" ? "table" : t === "application/json" ? "json" : (t.startsWith("text/") || t.startsWith("application/"), "text") : "text";
|
|
1441
1414
|
}
|
|
1442
|
-
|
|
1443
|
-
//#region src/components/rich-text/utils/mediaType.ts
|
|
1415
|
+
// src/components/rich-text/utils/mediaType.ts
|
|
1444
1416
|
var zn = {
|
|
1445
1417
|
csv: "text/csv",
|
|
1446
1418
|
tsv: "text/tab-separated-values",
|
|
@@ -1469,7 +1441,6 @@ function Bn(e) {
|
|
|
1469
1441
|
let t = (e.split("?")[0]?.split("#")[0] ?? "").split(".").pop()?.toLowerCase();
|
|
1470
1442
|
return t ? zn[t] ?? null : null;
|
|
1471
1443
|
}
|
|
1472
|
-
//#endregion
|
|
1473
1444
|
export { jn as a, Ft as c, Fn as i, Nt as l, Rn as n, Sn as o, Pn as r, Yt as s, Bn as t, st as u };
|
|
1474
1445
|
|
|
1475
|
-
//# sourceMappingURL=rich-text-
|
|
1446
|
+
//# sourceMappingURL=rich-text-DBpBdWtn.js.map
|