@pstdio/ui 0.45.0-nightly.20261021143541 → 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-vdQK_rlu.js → MermaidComponent--W7gDFCk.js} +4 -5
- package/dist/{MermaidComponent-vdQK_rlu.js.map → MermaidComponent--W7gDFCk.js.map} +1 -1
- package/dist/{activity-timeline-DOMBQZfl.js → activity-timeline-D-IDENMg.js} +2 -3
- package/dist/{activity-timeline-DOMBQZfl.js.map → activity-timeline-D-IDENMg.js.map} +1 -1
- 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 +12 -50
- package/dist/chat-ui.js +51 -111
- 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-CzCMSUqv.js → edit-mode-data-table-lvGsQ1Da.js} +17 -27
- package/dist/{edit-mode-data-table-CzCMSUqv.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-CbtbcvKm.d.ts → index-CYiWcIGu.d.ts} +1 -19
- package/dist/{index-C0PaeiBy.d.ts → index-DYCXgPCg.d.ts} +2 -34
- package/dist/{index-C_ctB_DT.d.ts → index-DzVOXj8n.d.ts} +1 -37
- package/dist/index.d.ts +24 -174
- package/dist/index.js +39 -113
- 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-zGkAdDzD.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-DGkeaE-L.js → param-editor-DyIO1rSf.js} +8 -14
- package/dist/{param-editor-DGkeaE-L.js.map → param-editor-DyIO1rSf.js.map} +1 -1
- package/dist/{param-editor-field-Dwm94sf2.js → param-editor-field-Bt7NP9OH.js} +15 -27
- package/dist/{param-editor-field-Dwm94sf2.js.map → param-editor-field-Bt7NP9OH.js.map} +1 -1
- package/dist/param-editor.d.ts +0 -66
- package/dist/param-editor.js +3 -3
- package/dist/{prism-BeBL3a5W.js → prism-CQBZiF5P.js} +3 -4
- package/dist/{prism-BeBL3a5W.js.map → prism-CQBZiF5P.js.map} +1 -1
- 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-DgUaZYHr.js → rich-text-DBpBdWtn.js} +31 -61
- package/dist/{rich-text-DgUaZYHr.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-DxwT31KJ.js → theme-rmCwx-aG.js} +5 -5
- 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/markdown-editor-zGkAdDzD.js.map +0 -1
- package/dist/split-panel-motion-context-YB0sduVv.js +0 -7
- package/dist/theme-DxwT31KJ.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,7 +1,6 @@
|
|
|
1
1
|
import { HTMLChakraProps, ScrollArea } from "@chakra-ui/react";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
//#region src/components/primitives/scroll-area.d.ts
|
|
5
4
|
type VerticalScrollbarProps = Omit<ScrollArea.ScrollbarProps, "orientation">;
|
|
6
5
|
type HorizontalScrollbarProps = Omit<ScrollArea.ScrollbarProps, "orientation">;
|
|
7
6
|
interface ScrollAreaProps extends ScrollArea.RootProps {
|
|
@@ -16,8 +15,6 @@ interface ScrollAreaProps extends ScrollArea.RootProps {
|
|
|
16
15
|
showCorner?: boolean;
|
|
17
16
|
}
|
|
18
17
|
declare const ScrollArea$1: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/components/primitives/resource-badge.d.ts
|
|
21
18
|
declare const SIZE_STYLES: {
|
|
22
19
|
readonly sm: {
|
|
23
20
|
readonly container: {
|
|
@@ -72,6 +69,5 @@ interface ResourceBadgeProps extends Omit<HTMLChakraProps<"span">, "onSelect"> {
|
|
|
72
69
|
tooltip?: string | false;
|
|
73
70
|
}
|
|
74
71
|
declare const ResourceBadge: (props: ResourceBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
75
|
-
//#endregion
|
|
76
72
|
export { ScrollAreaProps as i, ResourceBadgeProps as n, ScrollArea$1 as r, ResourceBadge as t };
|
|
77
73
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as e, n as t, o as n, t as r } from "./activity-timeline-
|
|
2
|
-
import { t as i } from "./scroll-area-
|
|
3
|
-
import { t as a } from "./list-row-
|
|
4
|
-
import { c as o } from "./prism-
|
|
5
|
-
import { t as s } from "./empty-state-
|
|
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-
|
|
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";
|
|
7
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";
|
|
8
8
|
import { c as J } from "react/compiler-runtime";
|
|
9
9
|
import { jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
@@ -31,13 +31,12 @@ import { HistoryPlugin as nt } from "@lexical/react/LexicalHistoryPlugin";
|
|
|
31
31
|
import { MarkNode as rt } from "@lexical/mark";
|
|
32
32
|
import { useLexicalEditable as it } from "@lexical/react/useLexicalEditable";
|
|
33
33
|
import { ClickableLinkPlugin as at } from "@lexical/react/LexicalClickableLinkPlugin";
|
|
34
|
-
|
|
34
|
+
// src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx
|
|
35
35
|
function ot() {
|
|
36
36
|
let e = J(1), t;
|
|
37
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;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
//#region src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx
|
|
39
|
+
// src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx
|
|
41
40
|
function st(e) {
|
|
42
41
|
let t = J(43), { roomId: n, wsUrl: r, wsParams: i, userName: a, userColor: o, placeholder: s } = e, c;
|
|
43
42
|
t[0] === i ? c = t[1] : (c = i === void 0 ? {} : i, t[0] = i, t[1] = c);
|
|
@@ -147,11 +146,9 @@ function ct(e) {
|
|
|
147
146
|
function lt() {
|
|
148
147
|
return new De.Doc();
|
|
149
148
|
}
|
|
150
|
-
|
|
151
|
-
//#region src/components/rich-text/prompt-input/commands.ts
|
|
149
|
+
// src/components/rich-text/prompt-input/commands.ts
|
|
152
150
|
var ut = qe("INSERT_BLOCK");
|
|
153
|
-
|
|
154
|
-
//#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
|
|
155
152
|
function dt(e) {
|
|
156
153
|
let t = pt();
|
|
157
154
|
return e.style !== null && t.setFormat(e.style.textAlign), { node: t };
|
|
@@ -214,15 +211,10 @@ var ft = class e extends He {
|
|
|
214
211
|
function pt() {
|
|
215
212
|
return new ft();
|
|
216
213
|
}
|
|
217
|
-
|
|
218
|
-
//#region src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts
|
|
214
|
+
// src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts
|
|
219
215
|
var mt = (e, t) => {
|
|
220
216
|
let n = Pe(), r = pt();
|
|
221
|
-
|
|
222
|
-
t.getParent()?.replace(r, !0), t.remove(), r.selectEnd();
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
Ie(n) && Qe(n, pt);
|
|
217
|
+
t ? (t.getParent()?.replace(r, !0), t.remove(), r.selectEnd()) : Ie(n) && Qe(n, pt);
|
|
226
218
|
};
|
|
227
219
|
function ht() {
|
|
228
220
|
let e = J(3), [t] = Ye(), n, r;
|
|
@@ -232,8 +224,7 @@ function gt(e) {
|
|
|
232
224
|
let { optionId: t, nodeToReplace: n } = e;
|
|
233
225
|
return mt(t, n), !1;
|
|
234
226
|
}
|
|
235
|
-
|
|
236
|
-
//#region src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts
|
|
227
|
+
// src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts
|
|
237
228
|
var _t = () => {
|
|
238
229
|
let e = J(3), [t] = Ye(), n, r;
|
|
239
230
|
e[0] === t ? (n = e[1], r = e[2]) : (n = () => Ze(t.registerNodeTransform(ft, (e) => {
|
|
@@ -249,13 +240,11 @@ function vt(e) {
|
|
|
249
240
|
function yt(e) {
|
|
250
241
|
e.replace(ke(), !0);
|
|
251
242
|
}
|
|
252
|
-
|
|
253
|
-
//#region src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx
|
|
243
|
+
// src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx
|
|
254
244
|
function bt() {
|
|
255
245
|
return _t(), ht(), null;
|
|
256
246
|
}
|
|
257
|
-
|
|
258
|
-
//#region src/components/rich-text/prompt-input/plugins/command-query.ts
|
|
247
|
+
// src/components/rich-text/prompt-input/plugins/command-query.ts
|
|
259
248
|
var xt = (e) => {
|
|
260
249
|
let t = /(?:^|\s)(\/[^\s/]*)$/.exec(e)?.[1];
|
|
261
250
|
return t ? {
|
|
@@ -364,8 +353,7 @@ function Ot(e, t) {
|
|
|
364
353
|
}
|
|
365
354
|
}), e.current) : null;
|
|
366
355
|
}
|
|
367
|
-
|
|
368
|
-
//#region src/components/rich-text/prompt-input/plugins/focus-request-plugin.tsx
|
|
356
|
+
// src/components/rich-text/prompt-input/plugins/focus-request-plugin.tsx
|
|
369
357
|
var kt = (e) => {
|
|
370
358
|
let t = J(7), { requested: n, isEditable: r, onComplete: i } = e, [a] = Ye(), o = it(), s, c;
|
|
371
359
|
return t[0] !== a || t[1] !== r || t[2] !== i || t[3] !== o || t[4] !== n ? (s = () => {
|
|
@@ -393,11 +381,7 @@ var kt = (e) => {
|
|
|
393
381
|
let r = n.length;
|
|
394
382
|
for (let e = 0; e < r; e += 1) {
|
|
395
383
|
let i = n[e];
|
|
396
|
-
|
|
397
|
-
e !== r - 1 && (t += "\n");
|
|
398
|
-
continue;
|
|
399
|
-
}
|
|
400
|
-
t += Mt(i), jt(i) && (t += "\n");
|
|
384
|
+
i.type === "comment" ? e !== r - 1 && (t += "\n") : (t += Mt(i), jt(i) && (t += "\n"));
|
|
401
385
|
}
|
|
402
386
|
return t;
|
|
403
387
|
}, Nt = (e) => {
|
|
@@ -448,8 +432,7 @@ function Ft(e = "") {
|
|
|
448
432
|
}))
|
|
449
433
|
} } : JSON.parse(JSON.stringify(Pt));
|
|
450
434
|
}
|
|
451
|
-
|
|
452
|
-
//#region src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx
|
|
435
|
+
// src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx
|
|
453
436
|
function It(e) {
|
|
454
437
|
let t = J(4), { editorRef: n, previousTextRef: r } = e, [i] = Ye(), a, o;
|
|
455
438
|
return t[0] !== i || t[1] !== r ? (a = () => ({ setEditorValue: (e) => {
|
|
@@ -460,8 +443,7 @@ function It(e) {
|
|
|
460
443
|
function Lt() {
|
|
461
444
|
Ne().selectEnd();
|
|
462
445
|
}
|
|
463
|
-
|
|
464
|
-
//#region src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts
|
|
446
|
+
// src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts
|
|
465
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) => {
|
|
466
448
|
t.preventDefault(), t.shiftKey ? e.dispatchCommand(Ue, !1) : e.dispatchCommand(We, void 0);
|
|
467
449
|
};
|
|
@@ -474,8 +456,7 @@ function Ht(e) {
|
|
|
474
456
|
i
|
|
475
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;
|
|
476
458
|
}
|
|
477
|
-
|
|
478
|
-
//#region src/components/rich-text/prompt-input/plugins/preserve-selection-plugin.tsx
|
|
459
|
+
// src/components/rich-text/prompt-input/plugins/preserve-selection-plugin.tsx
|
|
479
460
|
var Ut = (e) => {
|
|
480
461
|
let t = Me(e.key);
|
|
481
462
|
return t?.isAttached() ? e.type === "text" ? Le(t) && e.offset <= t.getTextContentSize() : Fe(t) && e.offset <= t.getChildrenSize() : !1;
|
|
@@ -502,7 +483,7 @@ var Ut = (e) => {
|
|
|
502
483
|
return c.current = t, re(() => o.registerUpdateListener(({ editorState: e }) => {
|
|
503
484
|
e.read(() => {
|
|
504
485
|
let e = s.current;
|
|
505
|
-
if (e
|
|
486
|
+
if (!e || Ut(e.anchor) && Ut(e.focus) || (s.current = null), !c.current) return;
|
|
506
487
|
let t = Pe();
|
|
507
488
|
Ie(t) && (s.current = t.clone(), a.current?.({
|
|
508
489
|
anchor: Wt(t.anchor),
|
|
@@ -635,8 +616,7 @@ function Xt() {}
|
|
|
635
616
|
function Zt(e) {
|
|
636
617
|
return e.name;
|
|
637
618
|
}
|
|
638
|
-
|
|
639
|
-
//#region src/components/chat-ui/links/chat-code-link-node.ts
|
|
619
|
+
// src/components/chat-ui/links/chat-code-link-node.ts
|
|
640
620
|
var Qt = class e extends Ke {
|
|
641
621
|
__href;
|
|
642
622
|
__description;
|
|
@@ -836,7 +816,7 @@ var Qt = class e extends Ke {
|
|
|
836
816
|
}, a = l(i, window.location.origin);
|
|
837
817
|
if (!a) return;
|
|
838
818
|
let o = e.resolveHref(i);
|
|
839
|
-
|
|
819
|
+
a.kind === "external" && !o || o && cn(t) || (t.preventDefault(), t.stopImmediatePropagation(), e.open(i));
|
|
840
820
|
}, un = () => {
|
|
841
821
|
let e = J(4), [t] = Ye(), n = p(), r, i;
|
|
842
822
|
return e[0] !== t || e[1] !== n ? (r = () => {
|
|
@@ -908,16 +888,11 @@ var Qt = class e extends Ke {
|
|
|
908
888
|
let r = e.getChildren(), i = [], a = 0;
|
|
909
889
|
for (let e of t.flatMap(an)) {
|
|
910
890
|
let t = r[a];
|
|
911
|
-
if (t instanceof $t && t.matchesSource(e))
|
|
912
|
-
|
|
913
|
-
continue;
|
|
914
|
-
}
|
|
915
|
-
if (pn(e)) {
|
|
891
|
+
if (t instanceof $t && t.matchesSource(e)) i.push(t), a += 1;
|
|
892
|
+
else if (pn(e)) {
|
|
916
893
|
let t = gn(e, r, a, n);
|
|
917
894
|
i.push(...t.nodes), a = t.cursor;
|
|
918
|
-
|
|
919
|
-
}
|
|
920
|
-
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));
|
|
921
896
|
}
|
|
922
897
|
(i.length !== r.length || i.some((e, t) => e.getKey() !== r[t]?.getKey())) && e.splice(0, e.getChildrenSize(), i);
|
|
923
898
|
}, vn = (e, t, n = !0) => {
|
|
@@ -947,8 +922,7 @@ function bn(e) {
|
|
|
947
922
|
s
|
|
948
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;
|
|
949
924
|
}
|
|
950
|
-
|
|
951
|
-
//#region src/components/rich-text/rich-message/rich-message.tsx
|
|
925
|
+
// src/components/rich-text/rich-message/rich-message.tsx
|
|
952
926
|
var xn = {
|
|
953
927
|
rowNumbers: !1,
|
|
954
928
|
wrapRows: !0
|
|
@@ -1099,8 +1073,7 @@ function Cn(e) {
|
|
|
1099
1073
|
function wn(e) {
|
|
1100
1074
|
return console.error(e);
|
|
1101
1075
|
}
|
|
1102
|
-
|
|
1103
|
-
//#region src/components/rich-text/resource-activity-feed/resource-activity-feed.tsx
|
|
1076
|
+
// src/components/rich-text/resource-activity-feed/resource-activity-feed.tsx
|
|
1104
1077
|
var Tn = {
|
|
1105
1078
|
activity: oe,
|
|
1106
1079
|
bell: se,
|
|
@@ -1434,14 +1407,12 @@ function Ln(e) {
|
|
|
1434
1407
|
})
|
|
1435
1408
|
}, e);
|
|
1436
1409
|
}
|
|
1437
|
-
|
|
1438
|
-
//#region src/components/rich-text/utils/inferResourceType.ts
|
|
1410
|
+
// src/components/rich-text/utils/inferResourceType.ts
|
|
1439
1411
|
function Rn(e) {
|
|
1440
1412
|
let t = e.toLowerCase().trim();
|
|
1441
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";
|
|
1442
1414
|
}
|
|
1443
|
-
|
|
1444
|
-
//#region src/components/rich-text/utils/mediaType.ts
|
|
1415
|
+
// src/components/rich-text/utils/mediaType.ts
|
|
1445
1416
|
var zn = {
|
|
1446
1417
|
csv: "text/csv",
|
|
1447
1418
|
tsv: "text/tab-separated-values",
|
|
@@ -1470,7 +1441,6 @@ function Bn(e) {
|
|
|
1470
1441
|
let t = (e.split("?")[0]?.split("#")[0] ?? "").split(".").pop()?.toLowerCase();
|
|
1471
1442
|
return t ? zn[t] ?? null : null;
|
|
1472
1443
|
}
|
|
1473
|
-
//#endregion
|
|
1474
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 };
|
|
1475
1445
|
|
|
1476
|
-
//# sourceMappingURL=rich-text-
|
|
1446
|
+
//# sourceMappingURL=rich-text-DBpBdWtn.js.map
|