@marimo-team/islands 0.25.3-dev191 → 0.25.3-dev193
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-BBbOElk3.js → ConnectedDataExplorerComponent-BRuwLOIx.js} +9 -9
- package/dist/{ErrorBoundary--X0z83Yx.js → ErrorBoundary-BVu_xT-p.js} +2 -2
- package/dist/{abnfDiagram-VCTEODGH-DhMT6Uhd.js → abnfDiagram-VCTEODGH-LlJTOOU_.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-BVbEiJLq.js → architectureDiagram-5GKGNRK7-9PQtGLLZ.js} +1 -1
- package/dist/{arrays-R6JsImiT.js → arrays-DA6KkLfq.js} +6 -12
- package/dist/assets/__vite-browser-external-BCJsx8QS.js +1 -0
- package/dist/assets/{worker-C6e9ERyd.js → worker-DodjWT_Z.js} +2 -2
- package/dist/{capabilities-CI4xUPsp.js → capabilities-CvWU-ey_.js} +1 -1
- package/dist/{chat-ui-BguxTQEL.js → chat-ui-Bl2euMBD.js} +93 -93
- package/dist/{chunk-IMKFNOWR-By5hSbJJ.js → chunk-IMKFNOWR-DcXv-BD5.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DFrEYG54.js → chunk-SHT3W25Y-VwnELN23.js} +1 -1
- package/dist/{chunk-SVP7TREG-DFXGc9ew.js → chunk-SVP7TREG-DgQpI5Zi.js} +1 -1
- package/dist/{chunk-TICWLB2K-DZdNIpoZ.js → chunk-TICWLB2K-CTg6VTJT.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-Cgj_eEQA.js → classDiagram-ZZMXUADV-UzmcFrnW.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DLAUrSqj.js → classDiagram-v2-VYDZK3BY-DhjiI6IQ.js} +2 -2
- package/dist/{code-visibility-uDyLo9_i.js → code-visibility-BTVimCUw.js} +38 -42
- package/dist/{common-DWKY45Md.js → common-fTgq7gO-.js} +849 -849
- package/dist/{cynefinDiagram-5FMLGOSQ-Cikf9AKa.js → cynefinDiagram-5FMLGOSQ-O4ShIbJX.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-C5KEi5_l.js → dagre-GXQ25YYZ-dtHhhcPu.js} +1 -1
- package/dist/{data-grid-overlay-editor-CRnYWD1L.js → data-grid-overlay-editor-DAZZkLWg.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BaoBTQjR.js → diagram-S7CK7UJ4-ppPYVZ6W.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DDufBsUA.js → diagram-UQ7AKVKN-CMZDf--k.js} +1 -1
- package/dist/{diagram-VX7I27RA-CY6RALJ8.js → diagram-VX7I27RA-CFvJdx-C.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Bc-LHsD6.js → diagram-Z3DM3KII-Dt6_uFbv.js} +1 -1
- package/dist/{dropdown-menu-drDjxJyV.js → dropdown-menu-CeaOsjWZ.js} +2 -2
- package/dist/{ebnfDiagram-PWID7BFC-Cz0J-tcC.js → ebnfDiagram-PWID7BFC-DpRFrKK-.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-DTXTDgFu.js → erDiagram-RLTQ6QDP-CqAU4b0u.js} +1 -1
- package/dist/{error-entries-CZ1NQ6Kv.js → error-entries-CYGwr5-O.js} +5596 -6012
- package/dist/feedback-button-DzFFn-n4.js +374 -0
- package/dist/{flowDiagram-HODETNUW-RbwWf2zc.js → flowDiagram-HODETNUW-i8-Gw8HO.js} +2 -2
- package/dist/{formats-DbXnijtH.js → formats-BtoHHy42.js} +1 -1
- package/dist/{glide-data-editor-CvRiA49N.js → glide-data-editor-DFsqVbWR.js} +5 -5
- package/dist/{globals-BR4CmGOS.js → globals-Dr0MRANu.js} +2 -2
- package/dist/{html-to-image-D_4_hQ8U.js → html-to-image-Cy5UDpQJ.js} +56 -56
- package/dist/{infoDiagram-27XIBGKW-DlmzZjmI.js → infoDiagram-27XIBGKW-DpfOKdLL.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-EN3TYP_q.js → ishikawaDiagram-5VMMS53U-Dg7mrMG7.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CK_-Ru7Q.js → kanban-definition-UXKFOSKX-QB6e3Jrj.js} +1 -1
- package/dist/main.js +5875 -5876
- package/dist/{mermaid-DU9ZRmkG.js → mermaid-CeWG4Egr.js} +48 -48
- package/dist/{mindmap-definition-YA3MSWOX-C-hqgUvF.js → mindmap-definition-YA3MSWOX-BTz3uTGe.js} +1 -1
- package/dist/{number-overlay-editor-DiYGbxNa.js → number-overlay-editor-DupOSYHx.js} +1 -1
- package/dist/{once-eG8Vmvjd.js → once-DWGO2mQ2.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BiMejYPB.js → pegDiagram-XKGWAZYB-3ZIEa3mB.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-B1zCZ1eq.js → pieDiagram-E7YTZNPT-BJAlk046.js} +1 -1
- package/dist/{process-output-DxSCHBWp.js → process-output-q9MTAIMX.js} +2 -2
- package/dist/{railroadDiagram-O6MQD6OU-BLcfaASl.js → railroadDiagram-O6MQD6OU-Dn3bsSRa.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DtBOf52-.js → requirementDiagram-BXWQKSXE-wcOmQQCL.js} +1 -1
- package/dist/{reveal-component-D3DsXPIm.js → reveal-component-Bg8rP_Uo.js} +17 -17
- package/dist/{sequenceDiagram-WJ2MYXX4-DIwF19_n.js → sequenceDiagram-WJ2MYXX4-DSh_qxoF.js} +1 -1
- package/dist/{spec-DZDnnlgT.js → spec-C7Fos-If.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-sWk1AdYL.js → stateDiagram-D77RDMKH-DH_H8NMH.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CiNo-OI7.js → stateDiagram-v2-MP3YSRHH-D_JM7MEK.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Bj3hiOY5.js → swimlanes-42K2YHIH-CfoTJO-9.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BzEo2r_N.js → swimlanesDiagram-VR7AAH4N-Z_QhvK0G.js} +2 -2
- package/dist/{swiper-component-BkCm-kLg.js → swiper-component-D2geL1Ku.js} +1 -1
- package/dist/{timeline-definition-24CTP7MA-CrPQk42H.js → timeline-definition-24CTP7MA-BFtdScaL.js} +1 -1
- package/dist/{toDate-Cu2pIZcC.js → toDate-CQAFSwos.js} +24 -24
- package/dist/{useAsyncData-DEhLdRIu.js → useAsyncData-BeyZyjso.js} +1 -1
- package/dist/{useDeepCompareMemoize-RjZGVhBV.js → useDeepCompareMemoize-DOQgae0W.js} +1 -1
- package/dist/{useIframeCapabilities-CSdWn6NP.js → useIframeCapabilities-DNvaj9wM.js} +1 -1
- package/dist/{useLifecycle-DtcB2s1z.js → useLifecycle-n2lnCFS8.js} +1 -1
- package/dist/{useTheme-CoEtr4mK.js → useTheme-CY777LXN.js} +303 -99
- package/dist/{vega-component-BhjTrP9-.js → vega-component-0nQzA-I8.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-BaYMoIpj.js → vennDiagram-4TSXK5OY-BXY8IGCA.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DjHeuj8p.js → wardleyDiagram-VM6X3IG4-D0tFe6eC.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-Bc_hcuXS.js → xychartDiagram-S5SC5T6Z-Dx8wFM-y.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/notebook.ts +0 -1
- package/src/__mocks__/partial.ts +26 -0
- package/src/__tests__/main.test.tsx +24 -1
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/editor/__tests__/data-attributes.test.tsx +0 -1
- package/src/components/editor/__tests__/output-persistence.test.tsx +0 -1
- package/src/components/editor/actions/useCellActionButton.tsx +6 -5
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +5 -4
- package/src/components/editor/cell/code/cell-editor.tsx +13 -6
- package/src/components/editor/cell/collapse.tsx +6 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +1 -7
- package/src/components/editor/controls/Controls.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +8 -6
- package/src/components/editor/navigation/__tests__/navigation.test.ts +15 -15
- package/src/components/editor/navigation/__tests__/selection.test.ts +44 -21
- package/src/components/editor/navigation/focus-utils.ts +19 -0
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +6 -13
- package/src/components/editor/navigation/navigation.ts +52 -43
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-cell.tsx +10 -18
- package/src/components/editor/renderers/cell-array.tsx +6 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/components/pages/edit-page.tsx +0 -13
- package/src/components/scratchpad/scratchpad.tsx +0 -1
- package/src/components/slides/reveal-component.tsx +1 -1
- package/src/components/slides/slide-cell-view.tsx +0 -1
- package/src/components/sort/SortableCellsProvider.tsx +6 -5
- package/src/core/MarimoApp.tsx +1 -1
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -37
- package/src/core/cells/__tests__/actions.test.ts +190 -80
- package/src/core/cells/__tests__/arrange.test.ts +263 -0
- package/src/core/cells/__tests__/cells.test.ts +11 -1101
- package/src/core/cells/__tests__/document.test.ts +3 -32
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/harness.ts +82 -0
- package/src/core/cells/__tests__/layout.test.ts +189 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +7 -1
- package/src/core/cells/__tests__/session.test.ts +329 -174
- package/src/core/cells/__tests__/utils.test.ts +0 -1
- package/src/core/cells/actions.ts +247 -82
- package/src/core/cells/arrange.ts +341 -0
- package/src/core/cells/cells.ts +27 -516
- package/src/core/cells/document.ts +6 -5
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/layout.ts +152 -0
- package/src/core/cells/session.ts +75 -52
- package/src/core/cells/types.ts +0 -5
- package/src/core/cells/utils.ts +6 -4
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +1 -1
- package/src/core/config/config-schema.ts +6 -2
- package/src/core/config/config.ts +26 -12
- package/src/core/islands/bootstrap.ts +0 -1
- package/src/core/kernel/handlers.ts +1 -13
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +15 -0
- package/src/core/notebook/index.ts +2 -1
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/save-component.tsx +19 -33
- package/src/core/saving/state.ts +38 -39
- package/src/core/saving/useAutoSave.ts +8 -35
- package/src/core/session/__tests__/backend.test.ts +1 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +1 -0
- package/src/core/session/active-notebook.ts +11 -0
- package/src/core/session/backend.ts +17 -19
- package/src/core/session/embedded.ts +7 -0
- package/src/core/session/useNotebookReplica.ts +3 -1
- package/src/core/session/useNotebookSession.tsx +7 -8
- package/src/core/transports/__tests__/static.test.ts +139 -8
- package/src/core/transports/static.ts +98 -16
- package/src/core/wasm/__tests__/bridge.test.ts +1 -0
- package/src/mount.tsx +19 -10
- package/src/stories/cell.stories.tsx +0 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +0 -2
- package/src/utils/__tests__/id-tree.test.ts +20 -1548
- package/src/utils/id-tree.tsx +12 -537
- package/dist/assets/__vite-browser-external-C8gQho07.js +0 -1
- package/dist/feedback-button-CDf1yRm_.js +0 -379
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
|
@@ -5,15 +5,15 @@ import { t as l } from "./compiler-runtime-CldRdSsv.js";
|
|
|
5
5
|
import { n as u, t as d } from "./copy-icon-De584pZ4.js";
|
|
6
6
|
import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DKplTrBY.js";
|
|
7
7
|
import { c as _, l as v, m as y, s as b, t as x, u as ee } from "./tooltip-s4zZxwKe.js";
|
|
8
|
-
import {
|
|
9
|
-
import { D as
|
|
10
|
-
import { J as
|
|
11
|
-
import { m as
|
|
12
|
-
import { t as
|
|
13
|
-
import { $ as
|
|
14
|
-
import {
|
|
8
|
+
import { $t as te, Ct as ne, Et as re, Ft as ie, H as ae, O as oe, P as se, St as ce, U as le, X as ue, a as de, at as fe, bt as pe, d as me, j as he, k as ge, mt as _e, nt as ve, wt as ye, xt as be } from "./error-entries-CYGwr5-O.js";
|
|
9
|
+
import { D as xe, M as Se, k as Ce } from "./select-2KOiReNY.js";
|
|
10
|
+
import { J as we, pt as Te } from "./dropdown-menu-CeaOsjWZ.js";
|
|
11
|
+
import { m as Ee, y as De } from "./toDate-CQAFSwos.js";
|
|
12
|
+
import { t as Oe } from "./jsx-runtime-3BD1kT0s.js";
|
|
13
|
+
import { $ as ke, Ct as S, Dt as Ae, Et as C, Ot as je, Q as Me, Tt as w, Y as Ne, _t as Pe, bt as Fe, dt as Ie, ft as Le, gt as Re, ht as ze, kt as T, mt as Be, tt as Ve, vt as He, wt as Ue, yt as We } from "./use-restore-focus-BgDTd2tc.js";
|
|
14
|
+
import { F as Ge, M as E, N as Ke, O as qe, R as Je, S as Ye, c as Xe, n as Ze, y as D } from "./useTheme-CY777LXN.js";
|
|
15
15
|
import { G as Qe } from "./dist-BmS-ZGjl.js";
|
|
16
|
-
import { t as $e } from "./useAsyncData-
|
|
16
|
+
import { t as $e } from "./useAsyncData-BeyZyjso.js";
|
|
17
17
|
//#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
|
|
18
18
|
var et = /* @__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;
|
|
@@ -1334,10 +1334,10 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1334
1334
|
]), _t = y("wrench", [["path", {
|
|
1335
1335
|
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
1336
1336
|
key: "1ngwbx"
|
|
1337
|
-
}]]), j =
|
|
1337
|
+
}]]), j = Oe(), vt = Object.defineProperty, M = (e, t) => vt(e, "name", {
|
|
1338
1338
|
value: t,
|
|
1339
1339
|
configurable: !0
|
|
1340
|
-
}), yt = "Collapsible", [bt, xt] =
|
|
1340
|
+
}), yt = "Collapsible", [bt, xt] = je(yt), [St, Ct] = bt(yt), wt = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ M(function(e, t) {
|
|
1341
1341
|
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = w({
|
|
1342
1342
|
prop: r,
|
|
1343
1343
|
defaultProp: i ?? !1,
|
|
@@ -1372,7 +1372,7 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1372
1372
|
});
|
|
1373
1373
|
}, "CollapsibleTrigger")), Dt = "CollapsibleContent", Ot = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ M(function(e, t) {
|
|
1374
1374
|
let { forceMount: n, ...r } = e, i = Ct(Dt, e.__scopeCollapsible);
|
|
1375
|
-
return /* @__PURE__ */ (0, j.jsx)(
|
|
1375
|
+
return /* @__PURE__ */ (0, j.jsx)(Ue, {
|
|
1376
1376
|
present: n || i.open,
|
|
1377
1377
|
children: ({ present: e }) => /* @__PURE__ */ (0, j.jsx)(kt, {
|
|
1378
1378
|
...r,
|
|
@@ -1385,7 +1385,7 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1385
1385
|
return O.useEffect(() => {
|
|
1386
1386
|
let e = requestAnimationFrame(() => _.current = !1);
|
|
1387
1387
|
return () => cancelAnimationFrame(e);
|
|
1388
|
-
}, []),
|
|
1388
|
+
}, []), Ae(() => {
|
|
1389
1389
|
let e = u.current;
|
|
1390
1390
|
if (e) {
|
|
1391
1391
|
v.current = v.current || {
|
|
@@ -1435,7 +1435,7 @@ var At = Object.defineProperty, P = (e, t) => At(e, "name", {
|
|
|
1435
1435
|
"ArrowUp",
|
|
1436
1436
|
"ArrowLeft",
|
|
1437
1437
|
"ArrowRight"
|
|
1438
|
-
], [Pt, { useGetCollection: Ft, createCollectionScope: It }] =
|
|
1438
|
+
], [Pt, { useGetCollection: Ft, createCollectionScope: It }] = Ce(I), [L, Lt] = je(I, [It, xt]), Rt = xt(), zt = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
1439
1439
|
let { type: n, ...r } = e, i = r, a = r;
|
|
1440
1440
|
return /* @__PURE__ */ (0, j.jsx)(Pt.Provider, {
|
|
1441
1441
|
scope: e.__scopeAccordion,
|
|
@@ -1490,7 +1490,7 @@ var At = Object.defineProperty, P = (e, t) => At(e, "name", {
|
|
|
1490
1490
|
})
|
|
1491
1491
|
});
|
|
1492
1492
|
}, "AccordionImplMultiple")), [Kt, R] = L(I), qt = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
1493
|
-
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = F.Vertical, ...s } = e, c = O.useRef(null), l = i(c, t), u = Ft(n), d =
|
|
1493
|
+
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = F.Vertical, ...s } = e, c = O.useRef(null), l = i(c, t), u = Ft(n), d = xe(a) === Mt.LTR, f = C(e.onKeyDown, (e) => {
|
|
1494
1494
|
if (!Nt.includes(e.key)) return;
|
|
1495
1495
|
let t = u(), n = e.target, r = t.filter(([, e]) => !e.element.disabled), i = r.findIndex(([, e]) => e.element === n), a = r.size;
|
|
1496
1496
|
if (i === -1) return;
|
|
@@ -1603,7 +1603,7 @@ P(rn, "getState");
|
|
|
1603
1603
|
var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
1604
1604
|
value: t,
|
|
1605
1605
|
configurable: !0
|
|
1606
|
-
}), V = "Popover", [on, sn] =
|
|
1606
|
+
}), V = "Popover", [on, sn] = je(V, [ee]), H = ee(), [cn, U] = on(V), ln = /* @__PURE__ */ B((e) => {
|
|
1607
1607
|
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = H(t), c = O.useRef(null), [l, u] = O.useState(!1), [d, f] = O.useState(0), [p, m] = O.useState(0), [h, g] = w({
|
|
1608
1608
|
prop: r,
|
|
1609
1609
|
defaultProp: i ?? !1,
|
|
@@ -1660,9 +1660,9 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1660
1660
|
return /* @__PURE__ */ (0, j.jsx)(hn, {
|
|
1661
1661
|
scope: t,
|
|
1662
1662
|
forceMount: n,
|
|
1663
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1663
|
+
children: /* @__PURE__ */ (0, j.jsx)(Ue, {
|
|
1664
1664
|
present: n || a.open,
|
|
1665
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1665
|
+
children: /* @__PURE__ */ (0, j.jsx)(ze, {
|
|
1666
1666
|
asChild: !0,
|
|
1667
1667
|
container: i,
|
|
1668
1668
|
children: r
|
|
@@ -1671,7 +1671,7 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1671
1671
|
});
|
|
1672
1672
|
}, "PopoverPortal"), W = "PopoverContent", vn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1673
1673
|
let n = gn(W, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = U(W, e.__scopePopover);
|
|
1674
|
-
return /* @__PURE__ */ (0, j.jsx)(
|
|
1674
|
+
return /* @__PURE__ */ (0, j.jsx)(Ue, {
|
|
1675
1675
|
present: r || a.open,
|
|
1676
1676
|
children: a.modal ? /* @__PURE__ */ (0, j.jsx)(bn, {
|
|
1677
1677
|
...i,
|
|
@@ -1685,8 +1685,8 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1685
1685
|
let n = U(W, e.__scopePopover), r = O.useRef(null), a = i(t, r), o = O.useRef(!1), { nodes: s, registry: c } = We();
|
|
1686
1686
|
return O.useEffect(() => {
|
|
1687
1687
|
let e = r.current;
|
|
1688
|
-
if (e) return
|
|
1689
|
-
}, []), /* @__PURE__ */ (0, j.jsx)(
|
|
1688
|
+
if (e) return Ie(e);
|
|
1689
|
+
}, []), /* @__PURE__ */ (0, j.jsx)(Le, {
|
|
1690
1690
|
as: yn,
|
|
1691
1691
|
allowPinchZoom: !0,
|
|
1692
1692
|
shards: O.useMemo(() => [r, ...s.map((e) => ({ current: e }))], [r, s]),
|
|
@@ -1725,16 +1725,16 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1725
1725
|
});
|
|
1726
1726
|
}, "PopoverContentNonModal")), Sn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1727
1727
|
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, "aria-describedby": f, branchNodes: p, branchRegistry: m, ...h } = e, g = U(W, n), _ = H(n), [y, b] = O.useState(null), x = i(t, b);
|
|
1728
|
-
return
|
|
1728
|
+
return He(y), Be(), /* @__PURE__ */ (0, j.jsx)(Pe, {
|
|
1729
1729
|
registry: m,
|
|
1730
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1730
|
+
children: /* @__PURE__ */ (0, j.jsx)(Re, {
|
|
1731
1731
|
asChild: !0,
|
|
1732
1732
|
loop: !0,
|
|
1733
1733
|
trapped: r,
|
|
1734
1734
|
branches: p,
|
|
1735
1735
|
onMountAutoFocus: a,
|
|
1736
1736
|
onUnmountAutoFocus: o,
|
|
1737
|
-
children: /* @__PURE__ */ (0, j.jsx)(
|
|
1737
|
+
children: /* @__PURE__ */ (0, j.jsx)(Fe, {
|
|
1738
1738
|
asChild: !0,
|
|
1739
1739
|
disableOutsidePointerEvents: s,
|
|
1740
1740
|
onInteractOutside: d,
|
|
@@ -1802,7 +1802,7 @@ var Dn = (e) => {
|
|
|
1802
1802
|
t[6] === s ? c = t[7] : (c = { onPress: () => {
|
|
1803
1803
|
s();
|
|
1804
1804
|
} }, t[6] = s, t[7] = c);
|
|
1805
|
-
let { pressProps: l } =
|
|
1805
|
+
let { pressProps: l } = Te(c), u;
|
|
1806
1806
|
t[8] === s ? u = t[9] : (u = (e) => {
|
|
1807
1807
|
e.preventDefault(), s();
|
|
1808
1808
|
}, t[8] = s, t[9] = u);
|
|
@@ -1815,18 +1815,18 @@ var Dn = (e) => {
|
|
|
1815
1815
|
...i,
|
|
1816
1816
|
children: n
|
|
1817
1817
|
}), t[10] = n, t[11] = d, t[12] = r, t[13] = l, t[14] = i, t[15] = f) : f = t[15], f;
|
|
1818
|
-
}, On = ln, kn = pn, An =
|
|
1818
|
+
}, On = ln, kn = pn, An = Me(_n), jn = wn, Mn = ke(vn), Nn = O.forwardRef((e, t) => {
|
|
1819
1819
|
let n = (0, k.c)(22), i, a, o, s, c, l;
|
|
1820
1820
|
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);
|
|
1821
1821
|
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;
|
|
1822
1822
|
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];
|
|
1823
|
-
let g = p ? `calc(var(--radix-popover-content-available-height) - ${
|
|
1823
|
+
let g = p ? `calc(var(--radix-popover-content-available-height) - ${Ne}px)` : void 0, _;
|
|
1824
1824
|
n[10] !== a.style || n[11] !== g ? (_ = {
|
|
1825
1825
|
...a.style,
|
|
1826
1826
|
maxHeight: g
|
|
1827
1827
|
}, n[10] = a.style, n[11] = g, n[12] = _) : _ = n[12];
|
|
1828
1828
|
let v;
|
|
1829
|
-
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, j.jsx)(
|
|
1829
|
+
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, j.jsx)(Ve, { children: /* @__PURE__ */ (0, j.jsx)(Mn, {
|
|
1830
1830
|
ref: t,
|
|
1831
1831
|
align: u,
|
|
1832
1832
|
sideOffset: d,
|
|
@@ -1845,15 +1845,15 @@ Nn.displayName = vn.displayName;
|
|
|
1845
1845
|
//#endregion
|
|
1846
1846
|
//#region src/core/documentation/doc-lookup.ts
|
|
1847
1847
|
async function Pn(e) {
|
|
1848
|
-
let t =
|
|
1848
|
+
let t = me().inOrderIds.at(0);
|
|
1849
1849
|
if (t) try {
|
|
1850
|
-
let n = await
|
|
1850
|
+
let n = await ve.request({
|
|
1851
1851
|
document: e,
|
|
1852
1852
|
cellId: t
|
|
1853
1853
|
});
|
|
1854
1854
|
if (!n || n.options.length === 0) return;
|
|
1855
1855
|
let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
|
|
1856
|
-
a?.completion_info &&
|
|
1856
|
+
a?.completion_info && D.set(fe, { documentation: a.completion_info });
|
|
1857
1857
|
} catch (t) {
|
|
1858
1858
|
n.debug(`Doc lookup failed for "${e}"`, t);
|
|
1859
1859
|
}
|
|
@@ -1865,7 +1865,7 @@ var Fn = (e) => {
|
|
|
1865
1865
|
t[0] === n ? i = t[1] : (i = () => {
|
|
1866
1866
|
Pn(n);
|
|
1867
1867
|
}, t[0] = n, t[1] = i);
|
|
1868
|
-
let a =
|
|
1868
|
+
let a = we(i, 100), o;
|
|
1869
1869
|
t[2] === a ? o = t[3] : (o = () => a.cancel(), t[2] = a, t[3] = o);
|
|
1870
1870
|
let s;
|
|
1871
1871
|
return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0, j.jsx)("span", {
|
|
@@ -1873,7 +1873,7 @@ var Fn = (e) => {
|
|
|
1873
1873
|
onMouseLeave: o,
|
|
1874
1874
|
children: r
|
|
1875
1875
|
}), t[4] = r, t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
|
|
1876
|
-
}, In =
|
|
1876
|
+
}, In = Ge(!1);
|
|
1877
1877
|
//#endregion
|
|
1878
1878
|
//#region src/core/static/export-context.ts
|
|
1879
1879
|
function Ln(e) {
|
|
@@ -1889,27 +1889,27 @@ function zn() {
|
|
|
1889
1889
|
return Rn()?.trusted === !0;
|
|
1890
1890
|
}
|
|
1891
1891
|
function Bn() {
|
|
1892
|
-
if (
|
|
1892
|
+
if (D.get(In) || zn() || D.get(Xe)) return !0;
|
|
1893
1893
|
try {
|
|
1894
|
-
if (
|
|
1894
|
+
if (Ee() === "read") return !0;
|
|
1895
1895
|
} catch {}
|
|
1896
1896
|
return !1;
|
|
1897
1897
|
}
|
|
1898
1898
|
//#endregion
|
|
1899
1899
|
//#region src/plugins/core/sanitize.ts
|
|
1900
|
-
var Vn =
|
|
1900
|
+
var Vn = Ge((e) => {
|
|
1901
1901
|
let t = e(In), n = e(Xe);
|
|
1902
1902
|
if (t || n || zn()) return !1;
|
|
1903
1903
|
let r = !0;
|
|
1904
1904
|
try {
|
|
1905
|
-
r =
|
|
1905
|
+
r = Ee() === "read";
|
|
1906
1906
|
} catch {
|
|
1907
1907
|
return !0;
|
|
1908
1908
|
}
|
|
1909
1909
|
return !r;
|
|
1910
1910
|
});
|
|
1911
1911
|
function Hn() {
|
|
1912
|
-
return
|
|
1912
|
+
return E(Vn);
|
|
1913
1913
|
}
|
|
1914
1914
|
//#endregion
|
|
1915
1915
|
//#region src/plugins/core/RenderHTML.tsx
|
|
@@ -2019,7 +2019,7 @@ var Un = [], Wn = (e) => {
|
|
|
2019
2019
|
bb0: {
|
|
2020
2020
|
if (i || o) {
|
|
2021
2021
|
let e;
|
|
2022
|
-
t[0] === n ? e = t[1] : (e =
|
|
2022
|
+
t[0] === n ? e = t[1] : (e = he(n), t[0] = n, t[1] = e), s = e;
|
|
2023
2023
|
break bb0;
|
|
2024
2024
|
}
|
|
2025
2025
|
s = n;
|
|
@@ -2302,7 +2302,7 @@ var Nr = O.forwardRef((e, t) => {
|
|
|
2302
2302
|
let s;
|
|
2303
2303
|
n[4] === a ? s = n[5] : (s = r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-start", a), n[4] = a, n[5] = s);
|
|
2304
2304
|
let c;
|
|
2305
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, j.jsx)(
|
|
2305
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, j.jsx)(Se, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
|
|
2306
2306
|
let l;
|
|
2307
2307
|
return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0, j.jsx)($t, {
|
|
2308
2308
|
className: "flex",
|
|
@@ -2338,7 +2338,7 @@ var Pr = O.forwardRef((e, t) => {
|
|
|
2338
2338
|
Pr.displayName = nn.displayName;
|
|
2339
2339
|
//#endregion
|
|
2340
2340
|
//#region src/utils/multi-map.ts
|
|
2341
|
-
var Fr = /* @__PURE__ */ e(
|
|
2341
|
+
var Fr = /* @__PURE__ */ e(be(), 1), Ir = class {
|
|
2342
2342
|
map = /* @__PURE__ */ new Map();
|
|
2343
2343
|
get(e) {
|
|
2344
2344
|
return this.map.get(e) ?? [];
|
|
@@ -2478,7 +2478,7 @@ var Rr = class {
|
|
|
2478
2478
|
return (await Promise.all(i)).flat();
|
|
2479
2479
|
}
|
|
2480
2480
|
};
|
|
2481
|
-
|
|
2481
|
+
ie([te()], zr.prototype, "getAllItems", null);
|
|
2482
2482
|
//#endregion
|
|
2483
2483
|
//#region src/core/ai/context/utils.ts
|
|
2484
2484
|
function Br(e) {
|
|
@@ -2533,7 +2533,7 @@ var Hr = {
|
|
|
2533
2533
|
connectionsMap;
|
|
2534
2534
|
dataframes;
|
|
2535
2535
|
constructor(e, t) {
|
|
2536
|
-
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) =>
|
|
2536
|
+
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => ye(e) === "dataframe");
|
|
2537
2537
|
}
|
|
2538
2538
|
getItems() {
|
|
2539
2539
|
return [...this.connectionsMap.values()].map((e) => {
|
|
@@ -2565,33 +2565,33 @@ var Hr = {
|
|
|
2565
2565
|
return re.has(n.name) && (i = "In-Memory"), {
|
|
2566
2566
|
label: `@${i}`,
|
|
2567
2567
|
displayLabel: i,
|
|
2568
|
-
detail:
|
|
2568
|
+
detail: pe(n.dialect),
|
|
2569
2569
|
boost: Hr.MEDIUM,
|
|
2570
2570
|
type: this.contextType,
|
|
2571
2571
|
section: Ur.DATA_SOURCES,
|
|
2572
2572
|
info: () => {
|
|
2573
2573
|
let e = document.createElement("div");
|
|
2574
|
-
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Fr.createRoot)(e).render(
|
|
2574
|
+
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Fr.createRoot)(e).render(_e(n, r)), e;
|
|
2575
2575
|
}
|
|
2576
2576
|
};
|
|
2577
2577
|
}
|
|
2578
2578
|
};
|
|
2579
2579
|
function Kr(e, t) {
|
|
2580
|
-
let n = t.get(
|
|
2580
|
+
let n = t.get(de(e))?.code;
|
|
2581
2581
|
if (!n || n.trim() === "") return null;
|
|
2582
|
-
let [r, i, a] =
|
|
2582
|
+
let [r, i, a] = ae.sql.transformIn(n), o = t.get(ne).connectionsMap.get(a.engine);
|
|
2583
2583
|
return o ? `@${Wr}://${o.name}` : null;
|
|
2584
2584
|
}
|
|
2585
2585
|
function qr(e, t) {
|
|
2586
2586
|
let n = Kr(e, t);
|
|
2587
2587
|
if (!n) return null;
|
|
2588
|
-
let r = t.get(
|
|
2588
|
+
let r = t.get(ne).connectionsMap, i = new Gr(r, t.get(ce)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
|
|
2589
2589
|
return o ? i.formatContext(o) : null;
|
|
2590
2590
|
}
|
|
2591
2591
|
//#endregion
|
|
2592
2592
|
//#region src/core/notebook/document/select.ts
|
|
2593
2593
|
function Jr(e, t, n) {
|
|
2594
|
-
return
|
|
2594
|
+
return qe(e, (e) => e?.cells.get(t)?.[n], Ye);
|
|
2595
2595
|
}
|
|
2596
2596
|
//#endregion
|
|
2597
2597
|
//#region src/core/notebook/document/hooks.tsx
|
|
@@ -2603,19 +2603,19 @@ function Xr() {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
function Zr(e, t) {
|
|
2605
2605
|
let n = (0, k.c)(4), { documentAtom: r } = Xr(), i;
|
|
2606
|
-
return n[0] !== r || n[1] !== t || n[2] !== e ? (i = Jr(r, e, t), n[0] = r, n[1] = t, n[2] = e, n[3] = i) : i = n[3],
|
|
2606
|
+
return n[0] !== r || n[1] !== t || n[2] !== e ? (i = Jr(r, e, t), n[0] = r, n[1] = t, n[2] = e, n[3] = i) : i = n[3], E(i);
|
|
2607
2607
|
}
|
|
2608
2608
|
function Qr(e) {
|
|
2609
2609
|
return Zr(e, "config");
|
|
2610
2610
|
}
|
|
2611
2611
|
function $r() {
|
|
2612
|
-
return
|
|
2612
|
+
return Ke(Xr().editAtom);
|
|
2613
2613
|
}
|
|
2614
2614
|
//#endregion
|
|
2615
2615
|
//#region src/core/cells/outputs.ts
|
|
2616
2616
|
var ei = {}, ti = {};
|
|
2617
2617
|
function ni(e) {
|
|
2618
|
-
let t = (0, k.c)(14), { mode: n } =
|
|
2618
|
+
let t = (0, k.c)(14), { mode: n } = E(De), r = $r(), i = Qr(e)?.expand_output ?? !1, a;
|
|
2619
2619
|
t[0] !== e || t[1] !== i ? (a = () => ei[e] ?? i, t[0] = e, t[1] = i, t[2] = a) : a = t[2];
|
|
2620
2620
|
let [o, s] = (0, O.useState)(a), c, l;
|
|
2621
2621
|
t[3] !== e || t[4] !== o ? (c = () => {
|
|
@@ -2625,7 +2625,7 @@ function ni(e) {
|
|
|
2625
2625
|
t[7] !== e || t[8] !== r || t[9] !== u ? (f = (t) => {
|
|
2626
2626
|
s(t), !(!u || e === "__scratch__") && r((n) => n.updateConfig(e, { expand_output: t }));
|
|
2627
2627
|
}, t[7] = e, t[8] = r, t[9] = u, t[10] = f) : f = t[10];
|
|
2628
|
-
let p =
|
|
2628
|
+
let p = Je(f), m;
|
|
2629
2629
|
return t[11] !== d || t[12] !== p ? (m = [d, p], t[11] = d, t[12] = p, t[13] = m) : m = t[13], m;
|
|
2630
2630
|
}
|
|
2631
2631
|
function ri(e) {
|
|
@@ -2648,10 +2648,10 @@ function si(e, t) {
|
|
|
2648
2648
|
code: t
|
|
2649
2649
|
} : e === "sql" ? {
|
|
2650
2650
|
language: "python",
|
|
2651
|
-
code:
|
|
2651
|
+
code: le.fromQuery(t)
|
|
2652
2652
|
} : e === "markdown" ? {
|
|
2653
2653
|
language: "python",
|
|
2654
|
-
code:
|
|
2654
|
+
code: ue.fromMarkdown(t)
|
|
2655
2655
|
} : e === "shell" || e === "bash" ? {
|
|
2656
2656
|
language: "python",
|
|
2657
2657
|
code: `import subprocess\nsubprocess.run("${t}")`
|
|
@@ -2664,10 +2664,10 @@ function si(e, t) {
|
|
|
2664
2664
|
};
|
|
2665
2665
|
}
|
|
2666
2666
|
var ci = (e) => {
|
|
2667
|
-
let t = (0, k.c)(9), { code: n, language: r } = e, { createCell: i } = ge(), a =
|
|
2667
|
+
let t = (0, k.c)(9), { code: n, language: r } = e, { createCell: i } = ge(), a = oe(), s = E(Xe), c;
|
|
2668
2668
|
t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
|
|
2669
2669
|
let e = si(r, n);
|
|
2670
|
-
r === "sql" &&
|
|
2670
|
+
r === "sql" && se({
|
|
2671
2671
|
autoInstantiate: s,
|
|
2672
2672
|
createCell: i,
|
|
2673
2673
|
fromCellId: a
|
|
@@ -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-CeWG4Egr.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-CeWG4Egr.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-CK_-Ru7Q.js → kanban-definition-UXKFOSKX-QB6e3Jrj.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-CeWG4Egr.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() {
|