@marimo-team/islands 0.25.3-dev3 → 0.25.3-dev31
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/{ConnectedDataExplorerComponent-CNSxdKyJ.js → ConnectedDataExplorerComponent-7EaP9VWb.js} +12 -12
- package/dist/{ErrorBoundary-iHE9DnZC.js → ErrorBoundary-DrVykO0s.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-DQDjNXt3.js → abnfDiagram-VCTEODGH-z_OSynK8.js} +2 -2
- package/dist/{any-language-editor-B9REGlD9.js → any-language-editor-D4q-IFcM.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-Nmls7Wxn.js → architectureDiagram-5GKGNRK7-Cs8J8BZr.js} +1 -1
- package/dist/{chat-ui-BDpymeoe.js → chat-ui-BeKQyQQI.js} +1151 -1152
- package/dist/{check-EDwSwP89.js → check-BMKBBrdc.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CoIFEo-1.js → chunk-IMKFNOWR-aoSFasqF.js} +1 -1
- package/dist/{chunk-SHT3W25Y-lHiGx3ZC.js → chunk-SHT3W25Y-CMaybO3O.js} +1 -1
- package/dist/{chunk-SVP7TREG-BvsHIrY_.js → chunk-SVP7TREG-BNBrTAw1.js} +1 -1
- package/dist/{chunk-TICWLB2K-BC8YIm_n.js → chunk-TICWLB2K-DXNxvUJn.js} +1 -1
- package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-YOKDWASO-DKplTrBY.js} +20 -20
- package/dist/{classDiagram-ZZMXUADV-Bt98lkkv.js → classDiagram-ZZMXUADV-DXdCCDOg.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-D9bfbcC3.js → classDiagram-v2-VYDZK3BY-DyZqrtLP.js} +2 -2
- package/dist/{code-visibility-BCpXa0Xh.js → code-visibility-UR3IN3fl.js} +16 -16
- package/dist/{common-BrBUdtPy.js → common-C6uebScP.js} +5737 -5439
- package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-BgUO8jsi.js} +2 -2
- package/dist/{cynefinDiagram-5FMLGOSQ-CgWra7wt.js → cynefinDiagram-5FMLGOSQ-DWHuKJs8.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-CFZ8-35c.js → dagre-GXQ25YYZ-DYLu-OCU.js} +1 -1
- package/dist/{data-grid-overlay-editor-Ch2SgmvG.js → data-grid-overlay-editor-DhdeVwuk.js} +5 -5
- package/dist/{data-grid-types-BH_r7g7l.js → data-grid-types-0PJ-9N5n.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-lCNQrW7d.js → diagram-S7CK7UJ4-PwwcUOHP.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CQPQ6pP_.js → diagram-UQ7AKVKN-CvJbL_IM.js} +1 -1
- package/dist/{diagram-VX7I27RA-Cf3b0llz.js → diagram-VX7I27RA-B5RkqnzN.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Bt4QLrpn.js → diagram-Z3DM3KII-CyijwTR2.js} +1 -1
- package/dist/{dialog-CEBFZNyc.js → dialog-Cc479ZEH.js} +24 -24
- package/dist/{dist-DpBpA_n1.js → dist-Lm-D-Vr6.js} +3 -3
- package/dist/{dropdown-menu-CP_qCYHC.js → dropdown-menu-BuE2b8Yb.js} +790 -790
- package/dist/{ebnfDiagram-PWID7BFC-D3NAyPFY.js → ebnfDiagram-PWID7BFC-DG90ELFp.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Tlu09_Nm.js → erDiagram-RLTQ6QDP-FMo_SpyX.js} +1 -1
- package/dist/{error-banner-Da600cwz.js → error-banner-CFPHFw4h.js} +26 -21
- package/dist/{cells-C8iCYvLU.js → error-entries-CnqKxhU9.js} +1370 -1314
- package/dist/{feedback-button-DxXNcC6q.js → feedback-button-DGkGODB3.js} +121 -122
- package/dist/{flowDiagram-HODETNUW-CAYbpJmV.js → flowDiagram-HODETNUW-DQ4JuadE.js} +2 -2
- package/dist/{formats-BGh2thRc.js → formats-DRHUWwSK.js} +2 -2
- package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js} +2 -2
- package/dist/{glide-data-editor-BQ7uKbeo.js → glide-data-editor-E8Z7sC5t.js} +55 -55
- package/dist/{glide-utils-DJyqh0EM.js → glide-utils-pisbYVjH.js} +3 -3
- package/dist/{globals-DSavh2ZB.js → globals-D7sKfXY8.js} +3 -3
- package/dist/{highlighted-body-KPVGNVTW-zwjq21tf.js → highlighted-body-KPVGNVTW-3Ziwfz-V.js} +2 -2
- package/dist/{html-to-image-CZY1pIZH.js → html-to-image-BsG_zyNW.js} +68 -68
- package/dist/{infoDiagram-27XIBGKW-XrDxhr0x.js → infoDiagram-27XIBGKW-CRSDtRrd.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CD1muzov.js → ishikawaDiagram-5VMMS53U-DxLEUldB.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Dg9W142_.js → kanban-definition-UXKFOSKX-BLhvu8o4.js} +1 -1
- package/dist/{label-BDKF3Afc.js → label-DoysmLMW.js} +1 -1
- package/dist/{linear-Cnaq3Tfb.js → linear-DWERh7eI.js} +121 -73
- package/dist/{loader-BQOfjTIJ.js → loader-BPdQhmlq.js} +10 -10
- package/dist/main.js +759 -759
- package/dist/{mermaid-CiAXjLpA.js → mermaid-Bjm6C1qN.js} +37 -37
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +2 -0
- package/dist/{mindmap-definition-YA3MSWOX-DgCidgYJ.js → mindmap-definition-YA3MSWOX-g2LwxnYQ.js} +1 -1
- package/dist/{number-overlay-editor-D6kYaqh5.js → number-overlay-editor-BV4UMoL2.js} +3 -3
- package/dist/{pegDiagram-XKGWAZYB-coOYYKB6.js → pegDiagram-XKGWAZYB-CpMAt3Qs.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BnXTc3bj.js → pieDiagram-E7YTZNPT-CVTthoZo.js} +1 -1
- package/dist/precisionRound-DhAzeRcm.js +49 -0
- package/dist/{process-output-e4jj9Ijt.js → process-output-DgQrilBD.js} +5 -5
- package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-Blrm7V7_.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-B28-u83n.js → railroadDiagram-O6MQD6OU-ao8cqqFB.js} +2 -2
- package/dist/{react-vega-BED0DjiB.js → react-vega-BDpbvBCb.js} +12284 -12270
- package/dist/{requirementDiagram-BXWQKSXE-CdYCTMu0.js → requirementDiagram-BXWQKSXE--J8vyfm-.js} +1 -1
- package/dist/{reveal-component-BTBfJ3ju.js → reveal-component-CpEtzUCU.js} +9 -9
- package/dist/{select-BButFi-d.js → select-DemoKT4G.js} +199 -199
- package/dist/{sequenceDiagram-WJ2MYXX4-CM3aRAe_.js → sequenceDiagram-WJ2MYXX4-CiQbn62x.js} +1 -1
- package/dist/{spec-BwarBpUJ.js → spec-D_u2ipzF.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DOZUMVj8.js → stateDiagram-D77RDMKH-DVEeGs5b.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CISYxma6.js → stateDiagram-v2-MP3YSRHH-1OQRe6iA.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BkSppxp8.js → swimlanes-42K2YHIH-CqkGoGqn.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-c8G5pGxC.js → swimlanesDiagram-VR7AAH4N-CszjkrKo.js} +2 -2
- package/dist/{time-BieKwdYS.js → time-BaMbJs4z.js} +18 -18
- package/dist/{timeline-definition-24CTP7MA-CaMQayqK.js → timeline-definition-24CTP7MA-DLRUNVAx.js} +1 -1
- package/dist/toDate-gyi35XS2.js +1185 -0
- package/dist/{toast-B9UMEi8u.js → toast-PkdZraM8.js} +221 -221
- package/dist/{tooltip-BO1REbqs.js → tooltip-CtBZ5q8p.js} +51 -51
- package/dist/{use-restore-focus-BEM7sFWl.js → use-restore-focus-CKjfFjLM.js} +1 -1
- package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-BneN349z.js} +1 -1
- package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-DkajGwwd.js} +2 -2
- package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-Z_7R8wTt.js} +1 -1
- package/dist/{useLifecycle-j7D9uD1o.js → useLifecycle-Dfq8UD-b.js} +2 -2
- package/dist/{useTheme-CRnjkku0.js → useTheme-Bu5bBgrh.js} +86 -86
- package/dist/{vega-component-DG29TAB7.js → vega-component-1lFfDE_8.js} +10 -10
- package/dist/{vega-embed-container-BNHE18G9.js → vega-embed-container-BgKnsDbB.js} +2 -2
- package/dist/{vega-loader.browser-DNST6uVf.js → vega-loader.browser-CpbZAXub.js} +297 -506
- package/dist/{vennDiagram-4TSXK5OY-CF8pfaK3.js → vennDiagram-4TSXK5OY-CypgoBVZ.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-dGPu39d-.js → wardleyDiagram-VM6X3IG4-B6xjiQ_g.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CP6-9q56.js → xychartDiagram-S5SC5T6Z-e0PefDVs.js} +2 -2
- package/package.json +4 -2
- package/src/__tests__/fixtures/{pair-preview.ts → pair-config.ts} +3 -2
- package/src/__tests__/mount.test.ts +28 -8
- package/src/components/data-table/__tests__/context-menu.test.ts +176 -0
- package/src/components/data-table/__tests__/date-filter-inputs.test.tsx +24 -1
- package/src/components/data-table/__tests__/export-actions.test.tsx +329 -6
- package/src/components/data-table/context-menu.tsx +125 -26
- package/src/components/data-table/date-filter-inputs.tsx +15 -42
- package/src/components/data-table/export-actions.tsx +192 -116
- package/src/components/data-table/schemas.ts +14 -36
- package/src/components/data-table/utils.ts +18 -0
- package/src/components/editor/Output.tsx +9 -2
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +111 -18
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +80 -252
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +186 -34
- package/src/components/editor/actions/pair-with-agent-commands.ts +42 -51
- package/src/components/editor/actions/pair-with-agent-modal.tsx +96 -36
- package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +366 -0
- package/src/components/editor/chrome/wrapper/footer-item.tsx +32 -24
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +237 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
- package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
- package/src/components/editor/controls/command-palette.tsx +22 -10
- package/src/components/editor/dynamic-favicon.tsx +21 -40
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +537 -0
- package/src/components/editor/errors/send-error-report-button.tsx +69 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +21 -5
- package/src/components/editor/output/MarimoTracebackOutput.tsx +35 -20
- package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
- package/src/components/editor/output/ansi-reduce.ts +6 -0
- package/src/core/attachments/__tests__/toast.test.tsx +58 -0
- package/src/core/attachments/state.ts +18 -0
- package/src/core/attachments/toast.ts +15 -0
- package/src/core/cells/__tests__/cells.test.ts +52 -0
- package/src/core/cells/__tests__/error-report.test.ts +139 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +113 -0
- package/src/core/cells/__tests__/session.test.ts +50 -1
- package/src/core/cells/cells.ts +2 -1
- package/src/core/cells/error-report.ts +63 -0
- package/src/core/cells/session.ts +28 -1
- package/src/core/config/pair.ts +5 -3
- package/src/core/edit-app.tsx +2 -2
- package/src/core/host/AGENTS.md +5 -0
- package/src/core/host/__tests__/attachments.test.ts +57 -0
- package/src/core/host/__tests__/document.test.ts +124 -0
- package/src/core/host/__tests__/events.test.ts +46 -0
- package/src/core/host/__tests__/fixtures.ts +39 -0
- package/src/core/host/__tests__/notebook-client.test.ts +433 -0
- package/src/core/host/__tests__/protocol.test.ts +15 -0
- package/src/core/host/__tests__/stream.test.ts +209 -0
- package/src/core/host/connection.ts +81 -0
- package/src/core/host/events.ts +61 -0
- package/src/core/host/notebook-client.ts +290 -0
- package/src/core/host/protocol.ts +11 -6
- package/src/core/host/resources/attachments.ts +19 -0
- package/src/core/host/resources/document.ts +101 -0
- package/src/core/host/resources/resource.ts +47 -0
- package/src/core/host/stream.ts +211 -0
- package/src/core/network/connection.ts +4 -2
- package/src/core/run-app.tsx +2 -2
- package/src/core/runtime/__tests__/runtime.test.ts +55 -11
- package/src/core/runtime/runtime.ts +15 -1
- package/src/core/runtime/types.ts +2 -0
- package/src/core/websocket/__tests__/{useMarimoKernelConnection.test.ts → connection-state.test.ts} +15 -17
- package/src/core/websocket/__tests__/{useWebSocket.test.ts → createConnectionTransport.test.ts} +1 -1
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +170 -0
- package/src/core/websocket/__tests__/{useMarimoKernelConnection.hook.test.tsx → useNotebookSession.hook.test.tsx} +181 -65
- package/src/core/websocket/connection-state.ts +70 -0
- package/src/core/websocket/state.ts +7 -0
- package/src/core/websocket/transports/__tests__/sse.test.ts +1 -4
- package/src/core/websocket/transports/create.ts +31 -0
- package/src/core/websocket/transports/transport.ts +12 -23
- package/src/core/websocket/types.ts +9 -39
- package/src/core/websocket/useNotebookClient.ts +88 -0
- package/src/core/websocket/{useMarimoKernelConnection.tsx → useNotebookSession.tsx} +59 -225
- package/src/mount.tsx +7 -3
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +84 -0
- package/src/utils/__tests__/dates.test.ts +116 -0
- package/src/utils/dates.ts +94 -0
- package/src/utils/once.ts +19 -19
- package/dist/error-entries-CzoYkIQZ.js +0 -56
- package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +0 -2
- package/dist/precisionRound-DMIVQrt2.js +0 -97
- package/dist/toDate-BNJf01u1.js +0 -703
- package/src/core/websocket/useWebSocket.tsx +0 -88
|
@@ -2,18 +2,18 @@ import { a as e, t } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { g as n, h as r, p as i, r as a, t as o, u as s } from "./button-CvjkwdSk.js";
|
|
3
3
|
import { t as c } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as l } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import { n as u, t as d } from "./copy-icon-
|
|
6
|
-
import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-
|
|
7
|
-
import { c as _, h as v, l as y, s as b, t as x, u as ee } from "./tooltip-
|
|
8
|
-
import { A as te,
|
|
9
|
-
import { M as Ce, O as we, k as Te } from "./select-
|
|
10
|
-
import { dt as Ee, q as De } from "./dropdown-menu-
|
|
11
|
-
import {
|
|
5
|
+
import { n as u, t as d } from "./copy-icon-BgUO8jsi.js";
|
|
6
|
+
import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DKplTrBY.js";
|
|
7
|
+
import { c as _, h as v, l as y, s as b, t as x, u as ee } from "./tooltip-CtBZ5q8p.js";
|
|
8
|
+
import { A as te, Ct as ne, Et as re, H as ie, M as ae, P as oe, Pt as se, Qt as ce, St as le, Tt as ue, U as de, Y as fe, a as pe, bt as me, d as he, it as ge, pt as _e, tn as ve, tt as ye, xt as be, y as xe, yt as Se } from "./error-entries-CnqKxhU9.js";
|
|
9
|
+
import { M as Ce, O as we, k as Te } from "./select-DemoKT4G.js";
|
|
10
|
+
import { dt as Ee, q as De } from "./dropdown-menu-BuE2b8Yb.js";
|
|
11
|
+
import { m as Oe, y as ke } from "./toDate-gyi35XS2.js";
|
|
12
12
|
import { t as Ae } from "./jsx-runtime-3BD1kT0s.js";
|
|
13
|
-
import {
|
|
14
|
-
import { A as Ge, C as T, E as Ke, _ as E, c as qe, n as Je } from "./useTheme-
|
|
13
|
+
import { $ as je, Ct as S, Dt as C, Et as Me, Q as Ne, St as Pe, Tt as w, Y as Fe, dt as Ie, ft as Le, gt as Re, ht as ze, mt as Be, tt as Ve, vt as He, wt as Ue, xt as We } from "./use-restore-focus-CKjfFjLM.js";
|
|
14
|
+
import { A as Ge, C as T, E as Ke, _ as E, c as qe, n as Je } from "./useTheme-Bu5bBgrh.js";
|
|
15
15
|
import { $ as Ye } from "./dist-DoE4XJBC.js";
|
|
16
|
-
import { t as Xe } from "./useAsyncData-
|
|
16
|
+
import { t as Xe } from "./useAsyncData-BneN349z.js";
|
|
17
17
|
//#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
|
|
18
18
|
var Ze = /* @__PURE__ */ t(((e) => {
|
|
19
19
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
|
|
@@ -1337,8 +1337,8 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1337
1337
|
}]]), A = Ae(), ht = Object.defineProperty, j = (e, t) => ht(e, "name", {
|
|
1338
1338
|
value: t,
|
|
1339
1339
|
configurable: !0
|
|
1340
|
-
}), M = "Collapsible", [gt, _t] =
|
|
1341
|
-
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] =
|
|
1340
|
+
}), M = "Collapsible", [gt, _t] = Me(M), [vt, N] = gt(M), yt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1341
|
+
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = S({
|
|
1342
1342
|
prop: r,
|
|
1343
1343
|
defaultProp: i ?? !1,
|
|
1344
1344
|
onChange: o,
|
|
@@ -1347,10 +1347,10 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1347
1347
|
return /* @__PURE__ */ (0, A.jsx)(vt, {
|
|
1348
1348
|
scope: n,
|
|
1349
1349
|
disabled: a,
|
|
1350
|
-
contentId:
|
|
1350
|
+
contentId: We(),
|
|
1351
1351
|
open: c,
|
|
1352
1352
|
onOpenToggle: D.useCallback(() => l((e) => !e), [l]),
|
|
1353
|
-
children: /* @__PURE__ */ (0, A.jsx)(
|
|
1353
|
+
children: /* @__PURE__ */ (0, A.jsx)(C.div, {
|
|
1354
1354
|
"data-state": P(c),
|
|
1355
1355
|
"data-disabled": a ? "" : void 0,
|
|
1356
1356
|
...s,
|
|
@@ -1359,7 +1359,7 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
}, "Collapsible")), bt = "CollapsibleTrigger", xt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1361
1361
|
let { __scopeCollapsible: n, ...r } = e, i = N(bt, n);
|
|
1362
|
-
return /* @__PURE__ */ (0, A.jsx)(
|
|
1362
|
+
return /* @__PURE__ */ (0, A.jsx)(C.button, {
|
|
1363
1363
|
type: "button",
|
|
1364
1364
|
"aria-controls": i.open ? i.contentId : void 0,
|
|
1365
1365
|
"aria-expanded": i.open || !1,
|
|
@@ -1368,11 +1368,11 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1368
1368
|
disabled: i.disabled,
|
|
1369
1369
|
...r,
|
|
1370
1370
|
ref: t,
|
|
1371
|
-
onClick:
|
|
1371
|
+
onClick: w(e.onClick, i.onOpenToggle)
|
|
1372
1372
|
});
|
|
1373
1373
|
}, "CollapsibleTrigger")), St = "CollapsibleContent", Ct = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1374
1374
|
let { forceMount: n, ...r } = e, i = N(St, e.__scopeCollapsible);
|
|
1375
|
-
return /* @__PURE__ */ (0, A.jsx)(
|
|
1375
|
+
return /* @__PURE__ */ (0, A.jsx)(Pe, {
|
|
1376
1376
|
present: n || i.open,
|
|
1377
1377
|
children: ({ present: e }) => /* @__PURE__ */ (0, A.jsx)(wt, {
|
|
1378
1378
|
...r,
|
|
@@ -1395,7 +1395,7 @@ var Ze = /* @__PURE__ */ t(((e) => {
|
|
|
1395
1395
|
let t = e.getBoundingClientRect();
|
|
1396
1396
|
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(r);
|
|
1397
1397
|
}
|
|
1398
|
-
}, [s.open, r]), /* @__PURE__ */ (0, A.jsx)(
|
|
1398
|
+
}, [s.open, r]), /* @__PURE__ */ (0, A.jsx)(C.div, {
|
|
1399
1399
|
"data-state": P(s.open),
|
|
1400
1400
|
"data-disabled": s.disabled ? "" : void 0,
|
|
1401
1401
|
id: s.contentId,
|
|
@@ -1424,7 +1424,7 @@ var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "
|
|
|
1424
1424
|
"ArrowUp",
|
|
1425
1425
|
"ArrowLeft",
|
|
1426
1426
|
"ArrowRight"
|
|
1427
|
-
], [At, jt, Mt] = Te(I), [L, Nt] =
|
|
1427
|
+
], [At, jt, Mt] = Te(I), [L, Nt] = Me(I, [Mt, _t]), Pt = _t(), Ft = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1428
1428
|
let { type: n, ...r } = e, i = r, a = r;
|
|
1429
1429
|
return /* @__PURE__ */ (0, A.jsx)(At.Provider, {
|
|
1430
1430
|
scope: e.__scopeAccordion,
|
|
@@ -1437,7 +1437,7 @@ var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "
|
|
|
1437
1437
|
})
|
|
1438
1438
|
});
|
|
1439
1439
|
}, "Accordion")), [It, Lt] = L(I), [Rt, zt] = L(I, { collapsible: !1 }), Bt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1440
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ F(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] =
|
|
1440
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ F(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] = S({
|
|
1441
1441
|
prop: n,
|
|
1442
1442
|
defaultProp: r ?? "",
|
|
1443
1443
|
onChange: i,
|
|
@@ -1458,7 +1458,7 @@ var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "
|
|
|
1458
1458
|
})
|
|
1459
1459
|
});
|
|
1460
1460
|
}, "AccordionImplSingle")), Vt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1461
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ F(() => {}, "onValueChange"), ...a } = e, [o, s] =
|
|
1461
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ F(() => {}, "onValueChange"), ...a } = e, [o, s] = S({
|
|
1462
1462
|
prop: n,
|
|
1463
1463
|
defaultProp: r ?? [],
|
|
1464
1464
|
onChange: i,
|
|
@@ -1479,7 +1479,7 @@ var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "
|
|
|
1479
1479
|
})
|
|
1480
1480
|
});
|
|
1481
1481
|
}, "AccordionImplMultiple")), [Ht, R] = L(I), Ut = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1482
|
-
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = D.useRef(null), l = i(c, t), u = jt(n), d = we(a) === "ltr", f =
|
|
1482
|
+
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = D.useRef(null), l = i(c, t), u = jt(n), d = we(a) === "ltr", f = w(e.onKeyDown, (e) => {
|
|
1483
1483
|
if (!kt.includes(e.key)) return;
|
|
1484
1484
|
let t = e.target, n = u().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
1485
1485
|
if (r === -1) return;
|
|
@@ -1516,7 +1516,7 @@ var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "
|
|
|
1516
1516
|
orientation: o,
|
|
1517
1517
|
children: /* @__PURE__ */ (0, A.jsx)(At.Slot, {
|
|
1518
1518
|
scope: n,
|
|
1519
|
-
children: /* @__PURE__ */ (0, A.jsx)(
|
|
1519
|
+
children: /* @__PURE__ */ (0, A.jsx)(C.div, {
|
|
1520
1520
|
...s,
|
|
1521
1521
|
"data-orientation": o,
|
|
1522
1522
|
ref: l,
|
|
@@ -1525,7 +1525,7 @@ var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "
|
|
|
1525
1525
|
})
|
|
1526
1526
|
});
|
|
1527
1527
|
}, "AccordionImpl")), Wt = "AccordionItem", [Gt, Kt] = L(Wt), qt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1528
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = R(Wt, n), o = Lt(Wt, n), s = Pt(n), c =
|
|
1528
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = R(Wt, n), o = Lt(Wt, n), s = Pt(n), c = We(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
1529
1529
|
return /* @__PURE__ */ (0, A.jsx)(Gt, {
|
|
1530
1530
|
scope: n,
|
|
1531
1531
|
open: l,
|
|
@@ -1546,7 +1546,7 @@ var Tt = yt, Et = xt, Dt = Ct, Ot = Object.defineProperty, F = (e, t) => Ot(e, "
|
|
|
1546
1546
|
});
|
|
1547
1547
|
}, "AccordionItem")), Jt = "AccordionHeader", Yt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ F(function(e, t) {
|
|
1548
1548
|
let { __scopeAccordion: n, ...r } = e, i = R(I, n), a = Kt(Jt, n);
|
|
1549
|
-
return /* @__PURE__ */ (0, A.jsx)(
|
|
1549
|
+
return /* @__PURE__ */ (0, A.jsx)(C.h3, {
|
|
1550
1550
|
"data-orientation": i.orientation,
|
|
1551
1551
|
"data-state": en(a.open),
|
|
1552
1552
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -1589,8 +1589,8 @@ F(en, "getState");
|
|
|
1589
1589
|
var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z = (e, t) => sn(e, "name", {
|
|
1590
1590
|
value: t,
|
|
1591
1591
|
configurable: !0
|
|
1592
|
-
}), B = "Popover", [cn, ln] =
|
|
1593
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = V(t), c = D.useRef(null), [l, u] = D.useState(!1), [d, f] =
|
|
1592
|
+
}), B = "Popover", [cn, ln] = Me(B, [ee]), V = ee(), [un, H] = cn(B), dn = /* @__PURE__ */ z((e) => {
|
|
1593
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = V(t), c = D.useRef(null), [l, u] = D.useState(!1), [d, f] = S({
|
|
1594
1594
|
prop: r,
|
|
1595
1595
|
defaultProp: i ?? !1,
|
|
1596
1596
|
onChange: a,
|
|
@@ -1600,7 +1600,7 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1600
1600
|
...s,
|
|
1601
1601
|
children: /* @__PURE__ */ (0, A.jsx)(un, {
|
|
1602
1602
|
scope: t,
|
|
1603
|
-
contentId:
|
|
1603
|
+
contentId: We(),
|
|
1604
1604
|
triggerRef: c,
|
|
1605
1605
|
open: d,
|
|
1606
1606
|
onOpenChange: f,
|
|
@@ -1620,7 +1620,7 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1620
1620
|
ref: t
|
|
1621
1621
|
});
|
|
1622
1622
|
}, "PopoverAnchor")), mn = "PopoverTrigger", hn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1623
|
-
let { __scopePopover: n, ...r } = e, a = H(mn, n), o = V(n), s = i(t, a.triggerRef), c = /* @__PURE__ */ (0, A.jsx)(
|
|
1623
|
+
let { __scopePopover: n, ...r } = e, a = H(mn, n), o = V(n), s = i(t, a.triggerRef), c = /* @__PURE__ */ (0, A.jsx)(C.button, {
|
|
1624
1624
|
type: "button",
|
|
1625
1625
|
"aria-haspopup": "dialog",
|
|
1626
1626
|
"aria-expanded": a.open,
|
|
@@ -1628,7 +1628,7 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1628
1628
|
"data-state": Dn(a.open),
|
|
1629
1629
|
...r,
|
|
1630
1630
|
ref: s,
|
|
1631
|
-
onClick:
|
|
1631
|
+
onClick: w(e.onClick, a.onOpenToggle)
|
|
1632
1632
|
});
|
|
1633
1633
|
return a.hasCustomAnchor ? c : /* @__PURE__ */ (0, A.jsx)(b, {
|
|
1634
1634
|
asChild: !0,
|
|
@@ -1640,9 +1640,9 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1640
1640
|
return /* @__PURE__ */ (0, A.jsx)(_n, {
|
|
1641
1641
|
scope: t,
|
|
1642
1642
|
forceMount: n,
|
|
1643
|
-
children: /* @__PURE__ */ (0, A.jsx)(
|
|
1643
|
+
children: /* @__PURE__ */ (0, A.jsx)(Pe, {
|
|
1644
1644
|
present: n || a.open,
|
|
1645
|
-
children: /* @__PURE__ */ (0, A.jsx)(
|
|
1645
|
+
children: /* @__PURE__ */ (0, A.jsx)(ze, {
|
|
1646
1646
|
asChild: !0,
|
|
1647
1647
|
container: i,
|
|
1648
1648
|
children: r
|
|
@@ -1651,7 +1651,7 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1651
1651
|
});
|
|
1652
1652
|
}, "PopoverPortal"), U = "PopoverContent", bn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1653
1653
|
let n = vn(U, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = H(U, e.__scopePopover);
|
|
1654
|
-
return /* @__PURE__ */ (0, A.jsx)(
|
|
1654
|
+
return /* @__PURE__ */ (0, A.jsx)(Pe, {
|
|
1655
1655
|
present: r || a.open,
|
|
1656
1656
|
children: a.modal ? /* @__PURE__ */ (0, A.jsx)(Sn, {
|
|
1657
1657
|
...i,
|
|
@@ -1666,7 +1666,7 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1666
1666
|
return D.useEffect(() => {
|
|
1667
1667
|
let e = r.current;
|
|
1668
1668
|
if (e) return Ie(e);
|
|
1669
|
-
}, []), /* @__PURE__ */ (0, A.jsx)(
|
|
1669
|
+
}, []), /* @__PURE__ */ (0, A.jsx)(Le, {
|
|
1670
1670
|
as: xn,
|
|
1671
1671
|
allowPinchZoom: !0,
|
|
1672
1672
|
children: /* @__PURE__ */ (0, A.jsx)(wn, {
|
|
@@ -1674,14 +1674,14 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1674
1674
|
ref: a,
|
|
1675
1675
|
trapFocus: n.open,
|
|
1676
1676
|
disableOutsidePointerEvents: !0,
|
|
1677
|
-
onCloseAutoFocus:
|
|
1677
|
+
onCloseAutoFocus: w(e.onCloseAutoFocus, (e) => {
|
|
1678
1678
|
e.preventDefault(), o.current || n.triggerRef.current?.focus();
|
|
1679
1679
|
}),
|
|
1680
|
-
onPointerDownOutside:
|
|
1680
|
+
onPointerDownOutside: w(e.onPointerDownOutside, (e) => {
|
|
1681
1681
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
1682
1682
|
o.current = r;
|
|
1683
1683
|
}, { checkForDefaultPrevented: !1 }),
|
|
1684
|
-
onFocusOutside:
|
|
1684
|
+
onFocusOutside: w(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
1685
1685
|
})
|
|
1686
1686
|
});
|
|
1687
1687
|
}, "PopoverContentModal")), Cn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
@@ -1702,13 +1702,13 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1702
1702
|
});
|
|
1703
1703
|
}, "PopoverContentNonModal")), wn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1704
1704
|
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...d } = e, f = H(U, n), p = V(n);
|
|
1705
|
-
return
|
|
1705
|
+
return Be(), /* @__PURE__ */ (0, A.jsx)(Re, {
|
|
1706
1706
|
asChild: !0,
|
|
1707
1707
|
loop: !0,
|
|
1708
1708
|
trapped: r,
|
|
1709
1709
|
onMountAutoFocus: i,
|
|
1710
1710
|
onUnmountAutoFocus: a,
|
|
1711
|
-
children: /* @__PURE__ */ (0, A.jsx)(
|
|
1711
|
+
children: /* @__PURE__ */ (0, A.jsx)(He, {
|
|
1712
1712
|
asChild: !0,
|
|
1713
1713
|
disableOutsidePointerEvents: o,
|
|
1714
1714
|
onInteractOutside: u,
|
|
@@ -1737,11 +1737,11 @@ var tn = Ft, nn = qt, rn = Yt, an = Zt, on = $t, sn = Object.defineProperty, z =
|
|
|
1737
1737
|
});
|
|
1738
1738
|
}, "PopoverContentImpl")), Tn = "PopoverClose", En = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ z(function(e, t) {
|
|
1739
1739
|
let { __scopePopover: n, ...r } = e, i = H(Tn, n);
|
|
1740
|
-
return /* @__PURE__ */ (0, A.jsx)(
|
|
1740
|
+
return /* @__PURE__ */ (0, A.jsx)(C.button, {
|
|
1741
1741
|
type: "button",
|
|
1742
1742
|
...r,
|
|
1743
1743
|
ref: t,
|
|
1744
|
-
onClick:
|
|
1744
|
+
onClick: w(e.onClick, () => i.onOpenChange(!1))
|
|
1745
1745
|
});
|
|
1746
1746
|
}, "PopoverClose"));
|
|
1747
1747
|
function Dn(e) {
|
|
@@ -1778,18 +1778,18 @@ var On = dn, kn = pn, An = hn, jn = yn, Mn = bn, Nn = En, Pn = (e) => {
|
|
|
1778
1778
|
...i,
|
|
1779
1779
|
children: n
|
|
1780
1780
|
}), t[10] = n, t[11] = d, t[12] = r, t[13] = l, t[14] = i, t[15] = f) : f = t[15], f;
|
|
1781
|
-
}, Fn = On, In = An, Ln =
|
|
1781
|
+
}, Fn = On, In = An, Ln = Ne(jn), Rn = Nn, zn = je(Mn), Bn = D.forwardRef((e, t) => {
|
|
1782
1782
|
let n = (0, O.c)(22), i, a, o, s, c, l;
|
|
1783
1783
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4], c = n[5], l = n[6]) : ({className: i, align: o, sideOffset: s, portal: c, scrollable: l, ...a} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s, n[5] = c, n[6] = l);
|
|
1784
1784
|
let u = o === void 0 ? "center" : o, d = s === void 0 ? 4 : s, f = c === void 0 || c, p = l !== void 0 && l, m = p && "overflow-auto", h;
|
|
1785
1785
|
n[7] !== i || n[8] !== m ? (h = r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", i, m), n[7] = i, n[8] = m, n[9] = h) : h = n[9];
|
|
1786
|
-
let g = p ? `calc(var(--radix-popover-content-available-height) - ${
|
|
1786
|
+
let g = p ? `calc(var(--radix-popover-content-available-height) - ${Fe}px)` : void 0, _;
|
|
1787
1787
|
n[10] !== a.style || n[11] !== g ? (_ = {
|
|
1788
1788
|
...a.style,
|
|
1789
1789
|
maxHeight: g
|
|
1790
1790
|
}, n[10] = a.style, n[11] = g, n[12] = _) : _ = n[12];
|
|
1791
1791
|
let v;
|
|
1792
|
-
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, A.jsx)(
|
|
1792
|
+
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, A.jsx)(Ve, { children: /* @__PURE__ */ (0, A.jsx)(zn, {
|
|
1793
1793
|
ref: t,
|
|
1794
1794
|
align: u,
|
|
1795
1795
|
sideOffset: d,
|
|
@@ -1808,15 +1808,15 @@ Bn.displayName = Mn.displayName;
|
|
|
1808
1808
|
//#endregion
|
|
1809
1809
|
//#region src/core/documentation/doc-lookup.ts
|
|
1810
1810
|
async function Vn(e) {
|
|
1811
|
-
let t =
|
|
1811
|
+
let t = he().inOrderIds.at(0);
|
|
1812
1812
|
if (t) try {
|
|
1813
|
-
let n = await
|
|
1813
|
+
let n = await ye.request({
|
|
1814
1814
|
document: e,
|
|
1815
1815
|
cellId: t
|
|
1816
1816
|
});
|
|
1817
1817
|
if (!n || n.options.length === 0) return;
|
|
1818
1818
|
let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
|
|
1819
|
-
a?.completion_info && E.set(
|
|
1819
|
+
a?.completion_info && E.set(ge, { documentation: a.completion_info });
|
|
1820
1820
|
} catch (t) {
|
|
1821
1821
|
n.debug(`Doc lookup failed for "${e}"`, t);
|
|
1822
1822
|
}
|
|
@@ -1982,7 +1982,7 @@ var Xn = [], Zn = (e) => {
|
|
|
1982
1982
|
bb0: {
|
|
1983
1983
|
if (i || o) {
|
|
1984
1984
|
let e;
|
|
1985
|
-
t[0] === n ? e = t[1] : (e =
|
|
1985
|
+
t[0] === n ? e = t[1] : (e = te(n), t[0] = n, t[1] = e), s = e;
|
|
1986
1986
|
break bb0;
|
|
1987
1987
|
}
|
|
1988
1988
|
s = n;
|
|
@@ -2301,7 +2301,7 @@ var Vr = D.forwardRef((e, t) => {
|
|
|
2301
2301
|
Vr.displayName = on.displayName;
|
|
2302
2302
|
//#endregion
|
|
2303
2303
|
//#region src/utils/multi-map.ts
|
|
2304
|
-
var Hr = /* @__PURE__ */ e(
|
|
2304
|
+
var Hr = /* @__PURE__ */ e(me(), 1), Ur = class {
|
|
2305
2305
|
map = /* @__PURE__ */ new Map();
|
|
2306
2306
|
get(e) {
|
|
2307
2307
|
return this.map.get(e) ?? [];
|
|
@@ -2441,7 +2441,7 @@ var Gr = class {
|
|
|
2441
2441
|
return (await Promise.all(i)).flat();
|
|
2442
2442
|
}
|
|
2443
2443
|
};
|
|
2444
|
-
|
|
2444
|
+
se([ce()], Kr.prototype, "getAllItems", null);
|
|
2445
2445
|
//#endregion
|
|
2446
2446
|
//#region src/core/ai/context/utils.ts
|
|
2447
2447
|
function qr(e) {
|
|
@@ -2496,12 +2496,12 @@ var Yr = {
|
|
|
2496
2496
|
connectionsMap;
|
|
2497
2497
|
dataframes;
|
|
2498
2498
|
constructor(e, t) {
|
|
2499
|
-
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) =>
|
|
2499
|
+
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => ne(e) === "dataframe");
|
|
2500
2500
|
}
|
|
2501
2501
|
getItems() {
|
|
2502
2502
|
return [...this.connectionsMap.values()].map((e) => {
|
|
2503
2503
|
let t = "Database schema.", n = { connection: e };
|
|
2504
|
-
return
|
|
2504
|
+
return ue.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
|
|
2505
2505
|
uri: this.asURI(e.name),
|
|
2506
2506
|
name: e.name,
|
|
2507
2507
|
description: t,
|
|
@@ -2512,7 +2512,7 @@ var Yr = {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
formatContext(e) {
|
|
2514
2514
|
let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
|
|
2515
|
-
return
|
|
2515
|
+
return ue.has(n) || (o = {
|
|
2516
2516
|
...a,
|
|
2517
2517
|
engine_name: n
|
|
2518
2518
|
}), Jr({
|
|
@@ -2525,38 +2525,38 @@ var Yr = {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
formatCompletion(e) {
|
|
2527
2527
|
let t = e.data, n = t.connection, r = t.tables, i = n.name;
|
|
2528
|
-
return
|
|
2528
|
+
return ue.has(n.name) && (i = "In-Memory"), {
|
|
2529
2529
|
label: `@${i}`,
|
|
2530
2530
|
displayLabel: i,
|
|
2531
|
-
detail:
|
|
2531
|
+
detail: Se(n.dialect),
|
|
2532
2532
|
boost: Yr.MEDIUM,
|
|
2533
2533
|
type: this.contextType,
|
|
2534
2534
|
section: Xr.DATA_SOURCES,
|
|
2535
2535
|
info: () => {
|
|
2536
2536
|
let e = document.createElement("div");
|
|
2537
|
-
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Hr.createRoot)(e).render(
|
|
2537
|
+
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Hr.createRoot)(e).render(_e(n, r)), e;
|
|
2538
2538
|
}
|
|
2539
2539
|
};
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
2542
|
function $r(e, t) {
|
|
2543
|
-
let n = t.get(
|
|
2543
|
+
let n = t.get(pe(e))?.code;
|
|
2544
2544
|
if (!n || n.trim() === "") return null;
|
|
2545
|
-
let [r, i, a] =
|
|
2545
|
+
let [r, i, a] = ie.sql.transformIn(n), o = t.get(le).connectionsMap.get(a.engine);
|
|
2546
2546
|
return o ? `@${Zr}://${o.name}` : null;
|
|
2547
2547
|
}
|
|
2548
2548
|
function ei(e, t) {
|
|
2549
2549
|
let n = $r(e, t);
|
|
2550
2550
|
if (!n) return null;
|
|
2551
|
-
let r = t.get(
|
|
2551
|
+
let r = t.get(le).connectionsMap, i = new Qr(r, t.get(be)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
|
|
2552
2552
|
return o ? i.formatContext(o) : null;
|
|
2553
2553
|
}
|
|
2554
2554
|
//#endregion
|
|
2555
2555
|
//#region src/core/cells/outputs.ts
|
|
2556
2556
|
var ti = {}, ni = {};
|
|
2557
2557
|
function ri(e) {
|
|
2558
|
-
let t = (0, O.c)(16), { mode: n } = T(ke), { updateCellConfig: r } =
|
|
2559
|
-
t[0] === e ? i = t[1] : (i =
|
|
2558
|
+
let t = (0, O.c)(16), { mode: n } = T(ke), { updateCellConfig: r } = xe(), i;
|
|
2559
|
+
t[0] === e ? i = t[1] : (i = ve(pe(e), ai, Object.is), t[0] = e, t[1] = i);
|
|
2560
2560
|
let a = T(i), o;
|
|
2561
2561
|
t[2] !== e || t[3] !== a ? (o = () => ti[e] ?? a, t[2] = e, t[3] = a, t[4] = o) : o = t[4];
|
|
2562
2562
|
let [s, c] = (0, D.useState)(o), l, u;
|
|
@@ -2570,7 +2570,7 @@ function ri(e) {
|
|
|
2570
2570
|
r({
|
|
2571
2571
|
cellId: e,
|
|
2572
2572
|
config: n
|
|
2573
|
-
}),
|
|
2573
|
+
}), re().saveCellConfig({ configs: { [e]: n } }).catch(ii);
|
|
2574
2574
|
}, t[9] = e, t[10] = d, t[11] = r, t[12] = p) : p = t[12];
|
|
2575
2575
|
let m = Ge(p), h;
|
|
2576
2576
|
return t[13] !== f || t[14] !== m ? (h = [f, m], t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
|
|
@@ -2594,17 +2594,17 @@ function si(e) {
|
|
|
2594
2594
|
}
|
|
2595
2595
|
//#endregion
|
|
2596
2596
|
//#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
|
|
2597
|
-
var ci = (0, D.lazy)(() => import("./any-language-editor-
|
|
2597
|
+
var ci = (0, D.lazy)(() => import("./any-language-editor-D4q-IFcM.js")), li = [Ye.lineWrapping];
|
|
2598
2598
|
function ui(e, t) {
|
|
2599
2599
|
return e ? e === "python" ? {
|
|
2600
2600
|
language: e,
|
|
2601
2601
|
code: t
|
|
2602
2602
|
} : e === "sql" ? {
|
|
2603
2603
|
language: "python",
|
|
2604
|
-
code:
|
|
2604
|
+
code: de.fromQuery(t)
|
|
2605
2605
|
} : e === "markdown" ? {
|
|
2606
2606
|
language: "python",
|
|
2607
|
-
code:
|
|
2607
|
+
code: fe.fromMarkdown(t)
|
|
2608
2608
|
} : e === "shell" || e === "bash" ? {
|
|
2609
2609
|
language: "python",
|
|
2610
2610
|
code: `import subprocess\nsubprocess.run("${t}")`
|
|
@@ -2617,10 +2617,10 @@ function ui(e, t) {
|
|
|
2617
2617
|
};
|
|
2618
2618
|
}
|
|
2619
2619
|
var di = (e) => {
|
|
2620
|
-
let t = (0, O.c)(9), { code: n, language: r } = e, { createNewCell: i } =
|
|
2620
|
+
let t = (0, O.c)(9), { code: n, language: r } = e, { createNewCell: i } = xe(), a = ae(), s = T(qe), c;
|
|
2621
2621
|
t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
|
|
2622
2622
|
let e = ui(r, n);
|
|
2623
|
-
r === "sql" &&
|
|
2623
|
+
r === "sql" && oe({
|
|
2624
2624
|
autoInstantiate: s,
|
|
2625
2625
|
createNewCell: i,
|
|
2626
2626
|
fromCellId: a
|
|
@@ -2717,7 +2717,7 @@ var di = (e) => {
|
|
|
2717
2717
|
children: e
|
|
2718
2718
|
});
|
|
2719
2719
|
} }, _i, vi = () => {
|
|
2720
|
-
let { data: e } = Xe(async () => _i || (_i = { math: (await import("./dist-
|
|
2720
|
+
let { data: e } = Xe(async () => _i || (_i = { math: (await import("./dist-Lm-D-Vr6.js")).math }, _i), []);
|
|
2721
2721
|
return e;
|
|
2722
2722
|
}, yi = (0, D.memo)((e) => {
|
|
2723
2723
|
let t = (0, O.c)(3), { content: n } = e, r = vi(), i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./src-CA_m4ONl.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
3
3
|
import { c as n } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
4
|
-
import { p as r } from "./mermaid-
|
|
4
|
+
import { p as r } from "./mermaid-Bjm6C1qN.js";
|
|
5
5
|
import { n as i } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
6
6
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-27XIBGKW.mjs
|
|
7
7
|
var a = { parse: /* @__PURE__ */ t(async (t) => {
|
|
@@ -3,7 +3,7 @@ import "./src-CA_m4ONl.js";
|
|
|
3
3
|
import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
4
4
|
import { H as n, K as r, U as i, a, c as o, s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
5
5
|
import { t as f } from "./rough.esm-CtV9AnV1.js";
|
|
6
|
-
import { p } from "./mermaid-
|
|
6
|
+
import { p } from "./mermaid-Bjm6C1qN.js";
|
|
7
7
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-5VMMS53U.mjs
|
|
8
8
|
var m = (function() {
|
|
9
9
|
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
package/dist/{kanban-definition-UXKFOSKX-Dg9W142_.js → kanban-definition-UXKFOSKX-BLhvu8o4.js}
RENAMED
|
@@ -8,7 +8,7 @@ import "./chunk-GMAD6QVW-BhaJx0X3.js";
|
|
|
8
8
|
import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
9
9
|
import { i as l, r as u } from "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
10
10
|
import { n as d } from "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
11
|
-
import { a as f, i as p, p as m } from "./mermaid-
|
|
11
|
+
import { a as f, i as p, p as m } from "./mermaid-Bjm6C1qN.js";
|
|
12
12
|
import { t as h } from "./chunk-5VM5RSS4-DKsmPCL6.js";
|
|
13
13
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-UXKFOSKX.mjs
|
|
14
14
|
var g = (function() {
|
|
@@ -3,7 +3,7 @@ import { h as t, r as n } from "./button-CvjkwdSk.js";
|
|
|
3
3
|
import { t as r } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as a } from "./jsx-runtime-3BD1kT0s.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Dt as o } from "./use-restore-focus-CKjfFjLM.js";
|
|
7
7
|
//#region ../node_modules/.pnpm/@radix-ui+react-label@2.1.15_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_da9b5a99f6ce769d732e2d76a1b400e7/node_modules/@radix-ui/react-label/dist/index.mjs
|
|
8
8
|
var s = /* @__PURE__ */ e(r(), 1), c = a(), l = Object.defineProperty, u = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ ((e, t) => l(e, "name", {
|
|
9
9
|
value: t,
|