@marimo-team/islands 0.24.1-dev59 → 0.24.1-dev60
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-CxLgYj_n.js → ConnectedDataExplorerComponent-C-ewmsyP.js} +8 -8
- package/dist/{ErrorBoundary-DLlMgwFe.js → ErrorBoundary-BF3QLrI_.js} +1 -1
- package/dist/{merge-D55NDT_4.js → _baseMerge-Dv8bBloN.js} +1 -6
- package/dist/assets/__vite-browser-external-CLzCcAWX.js +1 -0
- package/dist/assets/{worker-351YtjpJ.js → worker-BX-jM9UB.js} +2 -2
- package/dist/{chat-ui-Mjq3lBLn.js → chat-ui-DYcwIX9k.js} +8 -8
- package/dist/{chunk-5RXB4S5H-BNr_Y0g7.js → chunk-5RXB4S5H-tLNUVDdO.js} +1 -1
- package/dist/{chunk-GF5L2VYU-CnHs9qnW.js → chunk-GF5L2VYU-B0wgCQgS.js} +1 -1
- package/dist/{chunk-J7OUQ5F2-CC_9qqUR.js → chunk-J7OUQ5F2-CM_meqZH.js} +1 -1
- package/dist/{chunk-JQJVKLGR-AdpKD9XE.js → chunk-JQJVKLGR-CgqCwe8E.js} +1 -1
- package/dist/{classDiagram-JCYQIIEL-C_cJuFSv.js → classDiagram-JCYQIIEL-DmXSLxe_.js} +2 -2
- package/dist/{classDiagram-v2-OCEON4UE-6i_e6jgp.js → classDiagram-v2-OCEON4UE-CooqVexA.js} +2 -2
- package/dist/{common-6TJkmXPQ.js → common-B4y5CeYZ.js} +67 -68
- package/dist/{dagre-COxSzFxd.js → dagre-CGyalH38.js} +324 -319
- package/dist/{dagre-VZM6K2ZE-CUvaH2_x.js → dagre-VZM6K2ZE-CJggWPTJ.js} +1 -1
- package/dist/{dropdown-menu-DEu759Oe.js → dropdown-menu-DrzAtluA.js} +1 -1
- package/dist/{erDiagram-JOGREHBK-28REhfzr.js → erDiagram-JOGREHBK-rVDG3VSQ.js} +1 -1
- package/dist/{flowDiagram-UKHOOZJN-JpGQDhyA.js → flowDiagram-UKHOOZJN-g1AmrZzM.js} +2 -2
- package/dist/{formats-l5hZdDGj.js → formats-BepI-dIg.js} +1 -1
- package/dist/{glide-data-editor-C2RTkAgQ.js → glide-data-editor-DjrkfE8e.js} +3 -3
- package/dist/{html-to-image-hKcfSWj_.js → html-to-image-DnwkphJg.js} +44 -44
- package/dist/main.js +83 -83
- package/dist/{mermaid-OsTxhZOI.js → mermaid-B3nc_uR6.js} +14 -14
- package/dist/{mindmap-definition-FAOFIHXS-CXIO0zKm.js → mindmap-definition-FAOFIHXS-C9gRhzZq.js} +1 -1
- package/dist/{process-output-BkHK-KDc.js → process-output-BkiZCdL9.js} +1 -1
- package/dist/{requirementDiagram-LRYGKXZP-BPDMWOL7.js → requirementDiagram-LRYGKXZP-X_x-Y713.js} +1 -1
- package/dist/{reveal-component-Bkv-spJe.js → reveal-component-BwwB0hbT.js} +308 -308
- package/dist/{spec-DqUrBQpS.js → spec-iNjNWU_x.js} +1 -1
- package/dist/{stateDiagram-OKZ733FA-2vqKTq34.js → stateDiagram-OKZ733FA-B7QyNBxH.js} +3 -3
- package/dist/{stateDiagram-v2-UEYNNEHI-BLxoenec.js → stateDiagram-v2-UEYNNEHI-BTRUs8Il.js} +2 -2
- package/dist/{swimlanesDiagram-ULZ7WXOC-CLup3b2B.js → swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js} +2 -2
- package/dist/{toDate-C4ZHOUTi.js → toDate-Mzvy7JMZ.js} +11 -11
- package/dist/{useAsyncData-BPIoRmNG.js → useAsyncData-VgHmkX1q.js} +1 -1
- package/dist/{useDeepCompareMemoize-rqhnGZ6D.js → useDeepCompareMemoize-CcanIsdI.js} +1 -1
- package/dist/{useLifecycle-D-zb2Ha5.js → useLifecycle-ClOphI_o.js} +3 -3
- package/dist/{useTheme-CLjV5H1i.js → useTheme-3Ul40fOV.js} +165 -157
- package/dist/{vega-component-A2xO4BUa.js → vega-component-D45ozr-k.js} +5 -5
- package/package.json +1 -1
- package/src/components/ai/__tests__/ai-utils.test.ts +64 -66
- package/src/components/ai/ai-model-dropdown.tsx +5 -1
- package/src/components/ai/ai-utils.ts +37 -21
- package/src/components/app-config/ai-config.tsx +86 -24
- package/src/components/app-config/user-config-form.tsx +2 -3
- package/src/core/ai/config.ts +2 -3
- package/src/core/config/__tests__/config-schema.test.ts +31 -0
- package/src/core/config/config-schema.ts +1 -0
- package/src/core/config/config.ts +15 -2
- package/dist/assets/__vite-browser-external-DX3F82ls.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./dagre-
|
|
1
|
+
import { t as e } from "./dagre-CGyalH38.js";
|
|
2
2
|
import { t } from "./graphlib-BmY_CCV9.js";
|
|
3
3
|
import { a as n, i as r, n as i, o as a, r as o, t as s } from "./chunk-RYQCIY6F-BWbIlBIH.js";
|
|
4
4
|
import "./chunk-NSK5VX7P-CDTMcJB0.js";
|
|
@@ -10,7 +10,7 @@ import { t as P } from "./react-dom-C94wmq5w.js";
|
|
|
10
10
|
import { t as F } from "./jsx-runtime-CpoKNRgu.js";
|
|
11
11
|
import { Ac as I, Bc as L, Dc as ee, Ec as te, Fc as ne, Hc as re, Jc as ie, Kc as ae, Lc as oe, Nc as se, Pc as ce, Vc as le, Wc as R, jc as ue, kc as de, qc as fe, wc as pe, zc as me } from "./schemas-DeBAkn_c.js";
|
|
12
12
|
import { t as he } from "./debounce-C3jyATpc.js";
|
|
13
|
-
import {
|
|
13
|
+
import { j as ge } from "./useTheme-3Ul40fOV.js";
|
|
14
14
|
import { t as _e } from "./once-BtE-wKRL.js";
|
|
15
15
|
var ve = m("chevron-right", [["path", {
|
|
16
16
|
d: "m9 18 6-6-6-6",
|
|
@@ -10,7 +10,7 @@ import "./chunk-WRU74C26-BpWsbiDK.js";
|
|
|
10
10
|
import "./chunk-QR6OTTB3-D4wH2ldi.js";
|
|
11
11
|
import "./chunk-7BUUIJ7U-5afmIPeo.js";
|
|
12
12
|
import "./chunk-7Z6QIM7H-Dc18hFxH.js";
|
|
13
|
-
import { r as g, t as _ } from "./chunk-J7OUQ5F2-
|
|
13
|
+
import { r as g, t as _ } from "./chunk-J7OUQ5F2-CM_meqZH.js";
|
|
14
14
|
import { t as v } from "./chunk-XXDRQBXY-D73H4IN0.js";
|
|
15
15
|
import { t as y } from "./chunk-KBJHAD2P-BuqWqkcW.js";
|
|
16
16
|
//#region ../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.mjs
|
|
@@ -9,9 +9,9 @@ import "./chunk-WRU74C26-BpWsbiDK.js";
|
|
|
9
9
|
import "./chunk-QR6OTTB3-D4wH2ldi.js";
|
|
10
10
|
import "./chunk-7BUUIJ7U-5afmIPeo.js";
|
|
11
11
|
import "./chunk-7Z6QIM7H-Dc18hFxH.js";
|
|
12
|
-
import "./chunk-J7OUQ5F2-
|
|
12
|
+
import "./chunk-J7OUQ5F2-CM_meqZH.js";
|
|
13
13
|
import "./chunk-2GRJ4B5K-DgO8Qudq.js";
|
|
14
14
|
import "./chunk-XXDRQBXY-D73H4IN0.js";
|
|
15
15
|
import "./chunk-KBJHAD2P-BuqWqkcW.js";
|
|
16
|
-
import { n as e } from "./chunk-JQJVKLGR-
|
|
16
|
+
import { n as e } from "./chunk-JQJVKLGR-CgqCwe8E.js";
|
|
17
17
|
export { e as diagram };
|
|
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { h as t, r as n } from "./button-DOCIubLd.js";
|
|
3
3
|
import { t as r } from "./react-DMWcHin-.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
|
-
import { t as a } from "./toDate-
|
|
5
|
+
import { t as a } from "./toDate-Mzvy7JMZ.js";
|
|
6
6
|
import { t as o } from "./jsx-runtime-CpoKNRgu.js";
|
|
7
7
|
import { i as s } from "./loader-CgRtoLc5.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js
|
|
@@ -4,13 +4,13 @@ import { t as a } from "./react-DMWcHin-.js";
|
|
|
4
4
|
import { t as o } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { n as s, r as c, t as l } from "./copy-DgAphl4k.js";
|
|
6
6
|
import { C as u, c as d, i as f, n as p, s as m, t as h, x as g } from "./select-Bakm9EUs.js";
|
|
7
|
-
import { J as _, d as v, g as y, i as b, l as x, n as S, o as C, p as w, s as T, t as E, u as D } from "./dropdown-menu-
|
|
7
|
+
import { J as _, d as v, g as y, i as b, l as x, n as S, o as C, p as w, s as T, t as E, u as D } from "./dropdown-menu-DrzAtluA.js";
|
|
8
8
|
import { i as O, n as k, r as A, t as j } from "./types-D8U7wKuc.js";
|
|
9
|
-
import { n as M, t as ee } from "./ErrorBoundary-
|
|
9
|
+
import { n as M, t as ee } from "./ErrorBoundary-BF3QLrI_.js";
|
|
10
10
|
import { t as N } from "./react-dom-C94wmq5w.js";
|
|
11
11
|
import { t as P } from "./jsx-runtime-CpoKNRgu.js";
|
|
12
12
|
import { t as te } from "./label-CrQkwOWC.js";
|
|
13
|
-
import {
|
|
13
|
+
import { j as ne, n as re } from "./useTheme-3Ul40fOV.js";
|
|
14
14
|
import { A as F, B as I, C as L, D as R, E as ie, F as z, G as ae, H as oe, I as se, K as ce, L as le, M as ue, N as de, O as fe, P as pe, R as me, S as he, T as B, U as ge, V, W as _e, _ as ve, a as ye, b as H, c as be, d as U, f as xe, g as Se, h as Ce, i as we, j as Te, k as Ee, l as W, m as De, n as Oe, o as ke, p as Ae, q as je, r as Me, s as Ne, t as Pe, u as Fe, v as Ie, w as Le, x as Re, y as ze, z as Be } from "./click-outside-container-CVJZE0x6.js";
|
|
15
15
|
import { t as Ve } from "./dist-ABQjhuek.js";
|
|
16
16
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.2.4_4b66885481293829737255dc19981073/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/image-overlay-editor-style.js
|
|
@@ -5,18 +5,18 @@ import { t as p } from "./compiler-runtime-CAH9RLw2.js";
|
|
|
5
5
|
import { r as m, t as h } from "./copy-DgAphl4k.js";
|
|
6
6
|
import { a as g, c as _, l as v, s as y, u as b } from "./chunk-5FQGJX7Z-B85XCPv6.js";
|
|
7
7
|
import { a as x, i as S, l as C, n as w, o as ee, r as T, t as te, u as E } from "./dist-DTSuOdDc.js";
|
|
8
|
-
import { a as ne, c as re, i as D, o as ie, r as O, s as k, t as A } from "./useLifecycle-
|
|
8
|
+
import { a as ne, c as re, i as D, o as ie, r as O, s as k, t as A } from "./useLifecycle-ClOphI_o.js";
|
|
9
9
|
import { t as ae } from "./check-DIJJHY-E.js";
|
|
10
10
|
import { C as oe, F as se, I as j, N as ce, P as M, R as le, S as ue, a as de, b as fe, c as pe, i as me, n as he, o as ge, r as _e, s as ve, t as ye } from "./select-Bakm9EUs.js";
|
|
11
|
-
import { J as be, X as xe, _t as Se, p as Ce } from "./dropdown-menu-
|
|
12
|
-
import { _ as we, g as Te, h as Ee, l as De, t as Oe } from "./toDate-
|
|
11
|
+
import { J as be, X as xe, _t as Se, p as Ce } from "./dropdown-menu-DrzAtluA.js";
|
|
12
|
+
import { _ as we, g as Te, h as Ee, l as De, t as Oe } from "./toDate-Mzvy7JMZ.js";
|
|
13
13
|
import { t as ke } from "./react-dom-C94wmq5w.js";
|
|
14
14
|
import { t as Ae } from "./jsx-runtime-CpoKNRgu.js";
|
|
15
15
|
import { Ac as je, Bc as Me, Cn as Ne, Dc as Pe, Ec as Fe, Fc as Ie, Hc as Le, Ic as Re, In as ze, Jc as Be, Jn as Ve, Kc as He, Lc as Ue, Nc as We, Pc as Ge, Rc as Ke, Sn as qe, Tt as Je, Uc as Ye, Vc as Xe, Wc as N, jc as Ze, kc as Qe, kt as $e, ln as et, qc as tt, wc as nt, zc as rt } from "./schemas-DeBAkn_c.js";
|
|
16
16
|
import { i as it, t as at } from "./tooltip-rwx3Qbw6.js";
|
|
17
17
|
import { a as ot, c as st, d as ct, f as lt, i as ut, n as dt, s as ft } from "./extends-C80Jsccd.js";
|
|
18
18
|
import { t as pt } from "./debounce-C3jyATpc.js";
|
|
19
|
-
import {
|
|
19
|
+
import { A as mt, C as ht, E as P, S as gt, _ as F, a as _t, b as vt, c as yt, g as bt, l as xt, n as St, t as Ct, x as wt, y as Tt } from "./useTheme-3Ul40fOV.js";
|
|
20
20
|
import { $ as Et, At as Dt, B as Ot, Bt as kt, E as At, H as jt, I as Mt, L as Nt, Lt as Pt, Nt as Ft, Ot as It, Pt as Lt, Rt, S as zt, St as Bt, X as Vt, Z as Ht, _t as Ut, b as Wt, et as Gt, f as Kt, jt as qt, kt as Jt, l as I, lt as Yt, mt as Xt, pt as Zt, tt as Qt, u as $t, w as en, wt as tn, xt as nn, z as rn, zt as an } from "./dist-C2unEUWZ.js";
|
|
21
21
|
import { t as on } from "./invariant-DLmrl-hA.js";
|
|
22
22
|
import { a as sn, i as cn, n as ln, r as un, s as dn, u as fn } from "./arrays-CN1djC4k.js";
|
|
@@ -28,7 +28,7 @@ import { a as bn, c as xn, d as Sn, f as Cn, i as wn, l as Tn, n as En, o as Dn,
|
|
|
28
28
|
import { n as Mn, r as Nn } from "./dist-CkF6zgs_.js";
|
|
29
29
|
import { a as Pn, i as Fn, n as In, o as Ln, r as Rn } from "./dist-C9fJPKPl.js";
|
|
30
30
|
import { n as zn } from "./stex-DylRJo9v.js";
|
|
31
|
-
import { t as Bn } from "./useAsyncData-
|
|
31
|
+
import { t as Bn } from "./useAsyncData-VgHmkX1q.js";
|
|
32
32
|
import { t as Vn } from "./purify.es-CB-YO1Hn.js";
|
|
33
33
|
//#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
|
|
34
34
|
var Hn = /* @__PURE__ */ i(((e) => {
|
|
@@ -3270,7 +3270,7 @@ function gs(e, t) {
|
|
|
3270
3270
|
return n && t.has(n) ? t.lookupValue(n) : ms(e.dataset.initialValue);
|
|
3271
3271
|
}
|
|
3272
3272
|
function _s() {
|
|
3273
|
-
if (
|
|
3273
|
+
if (vt()) return document.title || null;
|
|
3274
3274
|
if (Te()) {
|
|
3275
3275
|
let e = ps.getFilename();
|
|
3276
3276
|
if (e) return e;
|
|
@@ -10199,7 +10199,7 @@ function af({ errored: e, interrupted: t, stopped: n, output: r, showErrorTraceb
|
|
|
10199
10199
|
//#region src/core/network/requests.ts
|
|
10200
10200
|
var of = P(null);
|
|
10201
10201
|
function sf() {
|
|
10202
|
-
let e =
|
|
10202
|
+
let e = ht(of);
|
|
10203
10203
|
return on(e, "useRequestClient() requires setting requestClientAtom."), e;
|
|
10204
10204
|
}
|
|
10205
10205
|
function cf() {
|
|
@@ -11244,11 +11244,11 @@ var Hf = class {
|
|
|
11244
11244
|
A.p = n;
|
|
11245
11245
|
}
|
|
11246
11246
|
}
|
|
11247
|
-
var lt = Math.random().toString(36).slice(2), ut = "__reactFiber$" + lt, dt = "__reactProps$" + lt, ft = "__reactContainer$" + lt, pt = "__reactEvents$" + lt, mt = "__reactListeners$" + lt,
|
|
11248
|
-
function _t(e) {
|
|
11249
|
-
delete e[ut], delete e[dt], delete e[pt], delete e[mt], delete e[P];
|
|
11250
|
-
}
|
|
11247
|
+
var lt = Math.random().toString(36).slice(2), ut = "__reactFiber$" + lt, dt = "__reactProps$" + lt, ft = "__reactContainer$" + lt, pt = "__reactEvents$" + lt, mt = "__reactListeners$" + lt, ht = "__reactHandles$" + lt, P = "__reactResources$" + lt, gt = "__reactMarker$" + lt;
|
|
11251
11248
|
function F(e) {
|
|
11249
|
+
delete e[ut], delete e[dt], delete e[pt], delete e[mt], delete e[ht];
|
|
11250
|
+
}
|
|
11251
|
+
function _t(e) {
|
|
11252
11252
|
var t = e[ut];
|
|
11253
11253
|
if (t) return t;
|
|
11254
11254
|
for (var n = e.parentNode; n;) {
|
|
@@ -11276,8 +11276,8 @@ var Hf = class {
|
|
|
11276
11276
|
throw Error(i(33));
|
|
11277
11277
|
}
|
|
11278
11278
|
function bt(e) {
|
|
11279
|
-
var t = e[
|
|
11280
|
-
return t ||= e[
|
|
11279
|
+
var t = e[P];
|
|
11280
|
+
return t ||= e[P] = {
|
|
11281
11281
|
hoistableStyles: /* @__PURE__ */ new Map(),
|
|
11282
11282
|
hoistableScripts: /* @__PURE__ */ new Map()
|
|
11283
11283
|
}, t;
|
|
@@ -14994,7 +14994,7 @@ var Hf = class {
|
|
|
14994
14994
|
}
|
|
14995
14995
|
function cl(e) {
|
|
14996
14996
|
var t = e.alternate;
|
|
14997
|
-
t !== null && (e.alternate = null, cl(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null &&
|
|
14997
|
+
t !== null && (e.alternate = null, cl(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && F(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
|
|
14998
14998
|
}
|
|
14999
14999
|
var ll = null, ul = !1;
|
|
15000
15000
|
function dl(e, t, n) {
|
|
@@ -16381,7 +16381,7 @@ var Hf = class {
|
|
|
16381
16381
|
s = s.return;
|
|
16382
16382
|
}
|
|
16383
16383
|
for (; c !== null;) {
|
|
16384
|
-
if (s =
|
|
16384
|
+
if (s = _t(c), s === null) return;
|
|
16385
16385
|
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
|
|
16386
16386
|
r = a = s;
|
|
16387
16387
|
continue a;
|
|
@@ -16488,9 +16488,9 @@ var Hf = class {
|
|
|
16488
16488
|
}
|
|
16489
16489
|
if (!(t & 7)) {
|
|
16490
16490
|
a: {
|
|
16491
|
-
if (c = e === "mouseover" || e === "pointerover", l = e === "mouseout" || e === "pointerout", c && n !== tn && (u = n.relatedTarget || n.fromElement) && (
|
|
16492
|
-
if ((l || c) && (c = i.window === i ? i : (c = i.ownerDocument) ? c.defaultView || c.parentWindow : window, l ? (u = n.relatedTarget || n.toElement, l = r, u = u ?
|
|
16493
|
-
if (d = kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = Vn, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = l == null ? c : yt(l), h = u == null ? c : yt(u), c = new d(g, m + "leave", l, n, i), c.target = f, c.relatedTarget = h, g = null,
|
|
16491
|
+
if (c = e === "mouseover" || e === "pointerover", l = e === "mouseout" || e === "pointerout", c && n !== tn && (u = n.relatedTarget || n.fromElement) && (_t(u) || u[ft])) break a;
|
|
16492
|
+
if ((l || c) && (c = i.window === i ? i : (c = i.ownerDocument) ? c.defaultView || c.parentWindow : window, l ? (u = n.relatedTarget || n.toElement, l = r, u = u ? _t(u) : null, u !== null && (f = o(u), d = u.tag, u !== f || d !== 5 && d !== 27 && d !== 6) && (u = null)) : (l = null, u = r), l !== u)) {
|
|
16493
|
+
if (d = kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = Vn, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = l == null ? c : yt(l), h = u == null ? c : yt(u), c = new d(g, m + "leave", l, n, i), c.target = f, c.relatedTarget = h, g = null, _t(i) === r && (d = new d(p, m + "enter", u, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, l && u) b: {
|
|
16494
16494
|
for (d = kd, p = l, m = u, h = 0, g = p; g; g = d(g)) h++;
|
|
16495
16495
|
g = 0;
|
|
16496
16496
|
for (var _ = m; _; _ = d(_)) g++;
|
|
@@ -17222,7 +17222,7 @@ var Hf = class {
|
|
|
17222
17222
|
case "HTML":
|
|
17223
17223
|
case "HEAD":
|
|
17224
17224
|
case "BODY":
|
|
17225
|
-
nf(n),
|
|
17225
|
+
nf(n), F(n);
|
|
17226
17226
|
continue;
|
|
17227
17227
|
case "SCRIPT":
|
|
17228
17228
|
case "STYLE": continue;
|
|
@@ -17342,7 +17342,7 @@ var Hf = class {
|
|
|
17342
17342
|
}
|
|
17343
17343
|
function hf(e) {
|
|
17344
17344
|
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
|
|
17345
|
-
|
|
17345
|
+
F(e);
|
|
17346
17346
|
}
|
|
17347
17347
|
var gf = /* @__PURE__ */ new Map(), _f = /* @__PURE__ */ new Set();
|
|
17348
17348
|
function vf(e) {
|
|
@@ -17842,7 +17842,7 @@ var Hf = class {
|
|
|
17842
17842
|
}
|
|
17843
17843
|
var hp = null;
|
|
17844
17844
|
function gp(e) {
|
|
17845
|
-
if (hp = null, e =
|
|
17845
|
+
if (hp = null, e = _t(e), e !== null) {
|
|
17846
17846
|
var t = o(e);
|
|
17847
17847
|
if (t === null) e = null;
|
|
17848
17848
|
else {
|
|
@@ -17990,7 +17990,7 @@ var Hf = class {
|
|
|
17990
17990
|
return !1;
|
|
17991
17991
|
}
|
|
17992
17992
|
function kp(e) {
|
|
17993
|
-
var t =
|
|
17993
|
+
var t = _t(e.target);
|
|
17994
17994
|
if (t !== null) {
|
|
17995
17995
|
var n = o(t);
|
|
17996
17996
|
if (n !== null) {
|
|
@@ -18943,13 +18943,13 @@ function Ip(e, t) {
|
|
|
18943
18943
|
return {
|
|
18944
18944
|
dom: n,
|
|
18945
18945
|
mount() {
|
|
18946
|
-
r = (0, qf.createRoot)(n), r.render(/* @__PURE__ */ (0, z.jsx)(
|
|
18946
|
+
r = (0, qf.createRoot)(n), r.render(/* @__PURE__ */ (0, z.jsx)(wt, {
|
|
18947
18947
|
store: F,
|
|
18948
18948
|
children: /* @__PURE__ */ (0, z.jsx)(t, { view: e })
|
|
18949
18949
|
}));
|
|
18950
18950
|
},
|
|
18951
18951
|
update() {
|
|
18952
|
-
r?.render(/* @__PURE__ */ (0, z.jsx)(
|
|
18952
|
+
r?.render(/* @__PURE__ */ (0, z.jsx)(wt, {
|
|
18953
18953
|
store: F,
|
|
18954
18954
|
children: /* @__PURE__ */ (0, z.jsx)(t, { view: e })
|
|
18955
18955
|
}));
|
|
@@ -20626,7 +20626,7 @@ var Om = {
|
|
|
20626
20626
|
line_timing: !1
|
|
20627
20627
|
};
|
|
20628
20628
|
function km(e) {
|
|
20629
|
-
return
|
|
20629
|
+
return xt()?.experimental?.[e] ?? Om[e];
|
|
20630
20630
|
}
|
|
20631
20631
|
function Am(e, t) {
|
|
20632
20632
|
cf().saveUserConfig({ config: { experimental: { [e]: t } } });
|
|
@@ -23651,7 +23651,7 @@ function R_() {
|
|
|
23651
23651
|
return Wo(e, "internal-error: initial mode not found"), on(e !== "present", "internal-error: initial mode cannot be 'present'"), e;
|
|
23652
23652
|
}
|
|
23653
23653
|
var z_ = P({
|
|
23654
|
-
mode:
|
|
23654
|
+
mode: vt() ? "read" : "not-set",
|
|
23655
23655
|
cellAnchor: null
|
|
23656
23656
|
}), B_ = P(void 0);
|
|
23657
23657
|
function V_() {
|
|
@@ -23660,8 +23660,8 @@ function V_() {
|
|
|
23660
23660
|
}
|
|
23661
23661
|
var H_ = P(!1);
|
|
23662
23662
|
function U_() {
|
|
23663
|
-
let e = (0, R.c)(1), { mode: t } =
|
|
23664
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = new URLSearchParams(window.location.search).get(
|
|
23663
|
+
let e = (0, R.c)(1), { mode: t } = ht(z_), n = ht(H_), r;
|
|
23664
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = new URLSearchParams(window.location.search).get(_t.kiosk), e[0] = r) : r = e[0], t !== "read" && !n && r !== "true";
|
|
23665
23665
|
}
|
|
23666
23666
|
//#endregion
|
|
23667
23667
|
//#region src/core/websocket/types.ts
|
|
@@ -23673,7 +23673,7 @@ var W_ = {
|
|
|
23673
23673
|
CLOSED: "CLOSED"
|
|
23674
23674
|
}, G_ = P({ state: W_.NOT_STARTED });
|
|
23675
23675
|
function K_() {
|
|
23676
|
-
return
|
|
23676
|
+
return Tt(G_, (e) => e.state === W_.OPEN);
|
|
23677
23677
|
}
|
|
23678
23678
|
function q_() {
|
|
23679
23679
|
return V_() ? K_() : Promise.resolve();
|
|
@@ -26165,7 +26165,7 @@ var nx = mn(async () => {
|
|
|
26165
26165
|
};
|
|
26166
26166
|
}), rx = Bo("marimo:notebook-sql-mode", "default", Lm);
|
|
26167
26167
|
function ix() {
|
|
26168
|
-
let e = (0, R.c)(3), [t, n] =
|
|
26168
|
+
let e = (0, R.c)(3), [t, n] = gt(rx), r;
|
|
26169
26169
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
26170
26170
|
sqlMode: t,
|
|
26171
26171
|
setSQLMode: n
|
|
@@ -26236,7 +26236,7 @@ var ux = class {
|
|
|
26236
26236
|
})
|
|
26237
26237
|
];
|
|
26238
26238
|
if (i?.diagnostics?.sql_linter ?? !1) {
|
|
26239
|
-
let e = F.get(
|
|
26239
|
+
let e = F.get(Ct), t = new hx({ getParserOptions: (e) => ({ database: Cx(e) ?? sx }) });
|
|
26240
26240
|
o.push(Ub({
|
|
26241
26241
|
schema: xx,
|
|
26242
26242
|
enableLinting: !0,
|
|
@@ -26823,7 +26823,7 @@ var { reducer: fS, createActions: pS, valueAtom: mS, useActions: hS } = D(dS, {
|
|
|
26823
26823
|
})
|
|
26824
26824
|
}), gS = P((e) => e(mS).lastFocusedCellId);
|
|
26825
26825
|
function _S() {
|
|
26826
|
-
return
|
|
26826
|
+
return ht(gS);
|
|
26827
26827
|
}
|
|
26828
26828
|
P((e) => {
|
|
26829
26829
|
let t = e(gS);
|
|
@@ -26844,7 +26844,7 @@ function vS(e, t) {
|
|
|
26844
26844
|
//#endregion
|
|
26845
26845
|
//#region src/components/editor/connections/components.tsx
|
|
26846
26846
|
function yS() {
|
|
26847
|
-
let e = (0, R.c)(4), { createNewCell: t } = lT(), n = _S(), r =
|
|
26847
|
+
let e = (0, R.c)(4), { createNewCell: t } = lT(), n = _S(), r = ht(yt), i;
|
|
26848
26848
|
return e[0] !== r || e[1] !== t || e[2] !== n ? (i = (e) => {
|
|
26849
26849
|
/\bmo\./.test(e) && lS({
|
|
26850
26850
|
autoInstantiate: r,
|
|
@@ -26935,11 +26935,11 @@ var { reducer: AS, createActions: jS, valueAtom: MS, useActions: NS } = D(kS, {
|
|
|
26935
26935
|
//#endregion
|
|
26936
26936
|
//#region src/hooks/useDataSourceDiscovery.ts
|
|
26937
26937
|
function FS() {
|
|
26938
|
-
let e = (0, R.c)(2), t =
|
|
26938
|
+
let e = (0, R.c)(2), t = ht(CS), n;
|
|
26939
26939
|
return e[0] === t ? n = e[1] : (n = [t], e[0] = t, e[1] = n), Bn(ES, n);
|
|
26940
26940
|
}
|
|
26941
26941
|
function IS(e) {
|
|
26942
|
-
let t = (0, R.c)(6), { data: n } = FS(), r =
|
|
26942
|
+
let t = (0, R.c)(6), { data: n } = FS(), r = ht(Rf), i = ht(PS), a;
|
|
26943
26943
|
bb0: {
|
|
26944
26944
|
if (!n) {
|
|
26945
26945
|
let e;
|
|
@@ -26994,7 +26994,7 @@ var BS = (e) => {
|
|
|
26994
26994
|
addDetectedDataSource: i
|
|
26995
26995
|
}), t[3] = i, t[4] = n, t[5] = r, t[6] = a) : a = t[6], a;
|
|
26996
26996
|
}, HS = (e) => {
|
|
26997
|
-
let t = (0, R.c)(42), { selectedEngine: n, onChange: r, cellId: i, detectedDataSources: a, addDetectedDataSource: o } = e, s =
|
|
26997
|
+
let t = (0, R.c)(42), { selectedEngine: n, onChange: r, cellId: i, detectedDataSources: a, addDetectedDataSource: o } = e, s = ht(Rf), c = [], l = [];
|
|
26998
26998
|
for (let [e, t] of s.entries()) xf.has(e) ? c.push(t) : l.push(t);
|
|
26999
26999
|
let u = Ce(), d;
|
|
27000
27000
|
t[0] !== s || t[1] !== n ? (d = n && !s.has(n), t[0] = s, t[1] = n, t[2] = d) : d = t[2];
|
|
@@ -29253,7 +29253,7 @@ var { reducer: zw, addMiddleware: Bw, createActions: Vw, useActions: Hw, valueAt
|
|
|
29253
29253
|
cellLogs: [...e.cellLogs, ...t.logs]
|
|
29254
29254
|
}),
|
|
29255
29255
|
setCellIds: (e, t) => {
|
|
29256
|
-
if (
|
|
29256
|
+
if (mt(e.cellIds.inOrderIds, t.cellIds)) return e;
|
|
29257
29257
|
let n = { ...e.cellData }, r = { ...e.cellRuntime }, i = { ...e.cellHandles };
|
|
29258
29258
|
for (let a of t.cellIds) a in e.cellData || (n[a] = Pw({ id: a })), a in e.cellRuntime || (r[a] = Iw()), a in e.cellHandles || (i[a] = (0, L.createRef)());
|
|
29259
29259
|
return {
|
|
@@ -29690,12 +29690,12 @@ var Yw = P((e) => {
|
|
|
29690
29690
|
return _C(t.inOrderIds.map((e) => n[e].outline));
|
|
29691
29691
|
});
|
|
29692
29692
|
P((e) => e(Yw).length);
|
|
29693
|
-
var Zw =
|
|
29693
|
+
var Zw = bt(P((e) => {
|
|
29694
29694
|
let { cellIds: t, cellData: n } = e($);
|
|
29695
29695
|
return pn.fromEntries(t.inOrderIds.map((e) => [e, n[e]?.name]));
|
|
29696
29696
|
}));
|
|
29697
29697
|
P((e) => e($).scrollKey);
|
|
29698
|
-
var Qw = () =>
|
|
29698
|
+
var Qw = () => ht(qw), $w = () => ht(Zw), eT = () => F.get($), tT = () => F.get($).cellIds, nT = () => {
|
|
29699
29699
|
let { cellIds: e, cellData: t } = F.get($);
|
|
29700
29700
|
return e.inOrderIds.map((e) => t[e]?.name).filter(Boolean);
|
|
29701
29701
|
};
|
|
@@ -29764,7 +29764,7 @@ function hT() {
|
|
|
29764
29764
|
return mT()?.trusted === !0;
|
|
29765
29765
|
}
|
|
29766
29766
|
function gT() {
|
|
29767
|
-
if (F.get(fT) || hT() || F.get(
|
|
29767
|
+
if (F.get(fT) || hT() || F.get(yt)) return !0;
|
|
29768
29768
|
try {
|
|
29769
29769
|
if (R_() === "read") return !0;
|
|
29770
29770
|
} catch {}
|
|
@@ -29773,7 +29773,7 @@ function gT() {
|
|
|
29773
29773
|
//#endregion
|
|
29774
29774
|
//#region src/plugins/core/sanitize.ts
|
|
29775
29775
|
var _T = P((e) => {
|
|
29776
|
-
let t = e(fT), n = e(
|
|
29776
|
+
let t = e(fT), n = e(yt);
|
|
29777
29777
|
if (t || n || hT()) return !1;
|
|
29778
29778
|
let r = !0;
|
|
29779
29779
|
try {
|
|
@@ -29784,7 +29784,7 @@ var _T = P((e) => {
|
|
|
29784
29784
|
return !r;
|
|
29785
29785
|
});
|
|
29786
29786
|
function vT() {
|
|
29787
|
-
return
|
|
29787
|
+
return ht(_T);
|
|
29788
29788
|
}
|
|
29789
29789
|
//#endregion
|
|
29790
29790
|
//#region src/plugins/core/RenderHTML.tsx
|
|
@@ -30509,7 +30509,7 @@ function AE(e, t) {
|
|
|
30509
30509
|
};
|
|
30510
30510
|
}
|
|
30511
30511
|
var jE = (e) => {
|
|
30512
|
-
let t = (0, R.c)(9), { code: n, language: r } = e, { createNewCell: i } = lT(), a = _S(), o =
|
|
30512
|
+
let t = (0, R.c)(9), { code: n, language: r } = e, { createNewCell: i } = lT(), a = _S(), o = ht(yt), s;
|
|
30513
30513
|
t[0] !== o || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (s = () => {
|
|
30514
30514
|
let e = AE(r, n);
|
|
30515
30515
|
r === "sql" && lS({
|
|
@@ -30532,7 +30532,7 @@ var jE = (e) => {
|
|
|
30532
30532
|
children: ["Add to Notebook", l]
|
|
30533
30533
|
}), t[7] = c, t[8] = d), d;
|
|
30534
30534
|
}, ME = (e) => {
|
|
30535
|
-
let t = (0, R.c)(17), { code: n, language: r } = e, { theme: i } =
|
|
30535
|
+
let t = (0, R.c)(17), { code: n, language: r } = e, { theme: i } = St(), [a, o] = (0, L.useState)(n);
|
|
30536
30536
|
a !== n && o(n);
|
|
30537
30537
|
let s;
|
|
30538
30538
|
t[0] === a ? s = t[1] : (s = async () => {
|