@marimo-team/islands 0.19.3-dev23 → 0.19.3-dev27
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-BIfUtj_S.js → ConnectedDataExplorerComponent-CfcCqsSs.js} +2 -2
- package/dist/{glide-data-editor-Bv8bVIJ9.js → glide-data-editor-Ciz7NmAf.js} +2 -2
- package/dist/{label-oKuiQuiM.js → label-CACbEFdz.js} +1 -1
- package/dist/main.js +193 -103
- package/dist/{spec-hsYzGr6F.js → spec-BlMFtDSw.js} +1 -1
- package/dist/{types-DEmfj_i8.js → types-BPXrSAML.js} +290 -251
- package/package.json +3 -3
- package/src/components/app-config/__tests__/get-dirty-values.test.ts +1 -1
- package/src/components/app-config/user-config-form.tsx +1 -1
- package/src/components/editor/chrome/types.ts +2 -4
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +123 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +44 -4
- package/src/core/kernel/__tests__/handlers.test.ts +2 -2
- package/src/core/kernel/state.ts +1 -0
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -1
- package/src/core/network/requests-lazy.ts +2 -2
- package/src/css/globals.css +2 -0
|
@@ -2,8 +2,8 @@ import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __c
|
|
|
2
2
|
import { t as require_react } from "./react-DdA8EBol.js";
|
|
3
3
|
import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
|
|
4
4
|
import { N as createLucideIcon } from "./Combination-33P1MEPK.js";
|
|
5
|
-
import { A as Badge, B as ListFilter, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, V as Hash, W as Calendar, j as createReducerAndAtoms, t as augmentSpecWithData, z as SquareFunction } from "./spec-
|
|
6
|
-
import { E as useOnMount, M as $a916eb452884faea$export$b7a616150fdb9f44, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Label, u as SelectValue } from "./label-
|
|
5
|
+
import { A as Badge, B as ListFilter, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, V as Hash, W as Calendar, j as createReducerAndAtoms, t as augmentSpecWithData, z as SquareFunction } from "./spec-BlMFtDSw.js";
|
|
6
|
+
import { E as useOnMount, M as $a916eb452884faea$export$b7a616150fdb9f44, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Label, u as SelectValue } from "./label-CACbEFdz.js";
|
|
7
7
|
import { t as Button, u as cn } from "./button-BlF-78eJ.js";
|
|
8
8
|
import { o as Objects, s as Logger } from "./hotkeys-C4e3s3sJ.js";
|
|
9
9
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
@@ -6,8 +6,8 @@ import { t as require_react } from "./react-DdA8EBol.js";
|
|
|
6
6
|
import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
|
|
7
7
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-B5nooU3m.js";
|
|
8
8
|
import "./Combination-33P1MEPK.js";
|
|
9
|
-
import { A as logNever, E as useOnMount, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-
|
|
10
|
-
import { S as DropdownMenuSubTrigger, W as ErrorBoundary, b as DropdownMenuSub, fn as Trash, g as DropdownMenuItem, hn as Pencil, ht as capitalize_default, i as Input, m as DropdownMenuContent, mn as Plus, mt as marked, p as DropdownMenu, pt as useNonce, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-
|
|
9
|
+
import { A as logNever, E as useOnMount, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-CACbEFdz.js";
|
|
10
|
+
import { S as DropdownMenuSubTrigger, W as ErrorBoundary, b as DropdownMenuSub, fn as Trash, g as DropdownMenuItem, hn as Pencil, ht as capitalize_default, i as Input, m as DropdownMenuContent, mn as Plus, mt as marked, p as DropdownMenu, pt as useNonce, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-BPXrSAML.js";
|
|
11
11
|
import { l as Events, t as Button } from "./button-BlF-78eJ.js";
|
|
12
12
|
import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
|
|
13
13
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
@@ -130,7 +130,7 @@ function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
|
|
|
130
130
|
return (0, import_react.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(a), () => {
|
|
131
131
|
$1e5a04cdaf7d1af8$var$listeners.delete(a), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
|
|
132
132
|
}), []), e ? {
|
|
133
|
-
locale: "en-US",
|
|
133
|
+
locale: typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || "en-US",
|
|
134
134
|
direction: "ltr"
|
|
135
135
|
} : i;
|
|
136
136
|
}
|
package/dist/main.js
CHANGED
|
@@ -7,10 +7,10 @@ import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
|
|
|
7
7
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-B5nooU3m.js";
|
|
8
8
|
import { h as require_cjs$1, i as Go$1, __tla as __tla_0 } from "./chunk-OGVTOU66-RMy3tlM6.js";
|
|
9
9
|
import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive$1, M as composeEventHandlers, N as createLucideIcon, O as createSlot, S as useId$12, T as useCallbackRef, _ as Arrow, a as __awaiter, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$5, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope$1, l as isInVscodeExtension, m as Presence, n as hideOthers, o as MAX_HEIGHT_OFFSET, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$3, w as DismissableLayer, x as useSize, y as Root2$6 } from "./Combination-33P1MEPK.js";
|
|
10
|
-
import { A as Badge, B as ListFilter, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $5a387cc49350e6db$export$722debc0e56fea39, H as ChartPie, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, O as TIME_UNIT_DESCRIPTIONS, P as $fb18d541ea1ad717$export$ad991b66133851cf, R as Table$1, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as ChartColumn, V as Hash, W as Calendar, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as createReducerAndAtoms, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON, z as SquareFunction } from "./spec-
|
|
10
|
+
import { A as Badge, B as ListFilter, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $5a387cc49350e6db$export$722debc0e56fea39, H as ChartPie, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, O as TIME_UNIT_DESCRIPTIONS, P as $fb18d541ea1ad717$export$ad991b66133851cf, R as Table$1, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as ChartColumn, V as Hash, W as Calendar, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as createReducerAndAtoms, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON, z as SquareFunction } from "./spec-BlMFtDSw.js";
|
|
11
11
|
import { t as Check } from "./check-DDykH_Yi.js";
|
|
12
|
-
import { A as logNever, B as ChevronDown, C as useDirection, D as useOnUnmount, E as useOnMount, F as $18f2051aff69b9bf$export$a54013f0d02a8f82, I as $b5e257d569688ac6$export$535bd6ca7f90a273, M as $a916eb452884faea$export$b7a616150fdb9f44, O as usePrevious, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as X, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, k as assertNever, l as SelectTrigger, m as menuContentCommon, n as Primitive, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-
|
|
13
|
-
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $
|
|
12
|
+
import { A as logNever, B as ChevronDown, C as useDirection, D as useOnUnmount, E as useOnMount, F as $18f2051aff69b9bf$export$a54013f0d02a8f82, I as $b5e257d569688ac6$export$535bd6ca7f90a273, M as $a916eb452884faea$export$b7a616150fdb9f44, O as usePrevious, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as X, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, k as assertNever, l as SelectTrigger, m as menuContentCommon, n as Primitive, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-CACbEFdz.js";
|
|
13
|
+
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $7215afc6de606d6b$export$de79e2c695e052f3, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $8ae05eaa5c114e9c$export$7f54fc3180508a52, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$6446a186d09e379e, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $df56164dff5785e2$export$4338b53315abf666, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $c87311424ea30a05$export$fedb369cb70207f1, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$9ac100e40613ea10, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$78551043582a6a98, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$a11b0059900ceec8, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $f4e2df6bd15f8569$export$98658e8c59125e6a, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $ff5963eb1fccf552$export$e08e3b67e392101e, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $d4ee10de306f2510$export$e58f029f0fbfdb29, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$b4cc09c592e8fdb8, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$4282f70798064fe0, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$b204af158042fbac, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $313b98861ee5dd6c$export$d6875122194c7b44, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$cd4e5573fbe2b576, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $431fbd86ca7dc216$export$f21a1ffae260145a, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $3ef42575df84b30b$export$9d1611c77c2fe928, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $bdb11010cef70236$export$f680877a34711e37, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-BPXrSAML.js";
|
|
14
14
|
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-1wVjsLov.js";
|
|
15
15
|
import { n as clsx_default } from "./clsx-D2KVTYnW.js";
|
|
16
16
|
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-BlF-78eJ.js";
|
|
@@ -5940,35 +5940,34 @@ let __tla = Promise.all([
|
|
|
5940
5940
|
}
|
|
5941
5941
|
var import_react = __toESM(require_react(), 1);
|
|
5942
5942
|
function $4f58c5f72bcf79f7$export$496315a1608d9602(e, r) {
|
|
5943
|
-
let c = (0, import_react.useRef)(true), d = (0, import_react.useRef)(null);
|
|
5943
|
+
let c = (0, import_react.useRef)(true), d = (0, import_react.useRef)(null), f = $8ae05eaa5c114e9c$export$7f54fc3180508a52(e);
|
|
5944
5944
|
(0, import_react.useEffect)(() => (c.current = true, () => {
|
|
5945
5945
|
c.current = false;
|
|
5946
5946
|
}), []), (0, import_react.useEffect)(() => {
|
|
5947
|
-
let
|
|
5948
|
-
c.current ? c.current = false : (!
|
|
5947
|
+
let e2 = d.current;
|
|
5948
|
+
c.current ? c.current = false : (!e2 || r.some((r2, c2) => !Object.is(r2, e2[c2]))) && f(), d.current = r;
|
|
5949
5949
|
}, r);
|
|
5950
5950
|
}
|
|
5951
5951
|
function $9daab02d461809db$var$hasResizeObserver() {
|
|
5952
5952
|
return window.ResizeObserver !== void 0;
|
|
5953
5953
|
}
|
|
5954
5954
|
function $9daab02d461809db$export$683480f191c0e3ea(e) {
|
|
5955
|
-
let { ref: r, box: c, onResize: d } = e;
|
|
5955
|
+
let { ref: r, box: c, onResize: d } = e, f = $8ae05eaa5c114e9c$export$7f54fc3180508a52(d);
|
|
5956
5956
|
(0, import_react.useEffect)(() => {
|
|
5957
5957
|
let e2 = r == null ? void 0 : r.current;
|
|
5958
5958
|
if (e2) if ($9daab02d461809db$var$hasResizeObserver()) {
|
|
5959
5959
|
let r2 = new window.ResizeObserver((e3) => {
|
|
5960
|
-
e3.length &&
|
|
5960
|
+
e3.length && f();
|
|
5961
5961
|
});
|
|
5962
5962
|
return r2.observe(e2, {
|
|
5963
5963
|
box: c
|
|
5964
5964
|
}), () => {
|
|
5965
5965
|
e2 && r2.unobserve(e2);
|
|
5966
5966
|
};
|
|
5967
|
-
} else return window.addEventListener("resize",
|
|
5968
|
-
window.removeEventListener("resize",
|
|
5967
|
+
} else return window.addEventListener("resize", f, false), () => {
|
|
5968
|
+
window.removeEventListener("resize", f, false);
|
|
5969
5969
|
};
|
|
5970
5970
|
}, [
|
|
5971
|
-
d,
|
|
5972
5971
|
r,
|
|
5973
5972
|
c
|
|
5974
5973
|
]);
|
|
@@ -6028,11 +6027,8 @@ let __tla = Promise.all([
|
|
|
6028
6027
|
};
|
|
6029
6028
|
}
|
|
6030
6029
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, r) {
|
|
6031
|
-
let c = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "left"), d = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "top"), f = r.offsetWidth, h = r.offsetHeight, _ = e.scrollLeft, v = e.scrollTop, { borderTopWidth: y, borderLeftWidth: S, scrollPaddingTop: w, scrollPaddingRight: E, scrollPaddingBottom: O, scrollPaddingLeft: M } = getComputedStyle(e),
|
|
6032
|
-
|
|
6033
|
-
left: _,
|
|
6034
|
-
top: v
|
|
6035
|
-
});
|
|
6030
|
+
let c = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "left"), d = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "top"), f = r.offsetWidth, h = r.offsetHeight, _ = e.scrollLeft, v = e.scrollTop, { borderTopWidth: y, borderLeftWidth: S, scrollPaddingTop: w, scrollPaddingRight: E, scrollPaddingBottom: O, scrollPaddingLeft: M } = getComputedStyle(e), I = _ + parseInt(S, 10), z = v + parseInt(y, 10), G = I + e.clientWidth, q = z + e.clientHeight, LY = parseInt(w, 10) || 0, RY = parseInt(O, 10) || 0, zY = parseInt(E, 10) || 0, BY = parseInt(M, 10) || 0;
|
|
6031
|
+
c <= _ + BY ? _ = c - parseInt(S, 10) - BY : c + f > G - zY && (_ += c + f - G + zY), d <= z + LY ? v = d - parseInt(y, 10) - LY : d + h > q - RY && (v += d + h - q + RY), e.scrollLeft = _, e.scrollTop = v;
|
|
6036
6032
|
}
|
|
6037
6033
|
function $2f04cbc44ee30ce0$var$relativeOffset(e, r, c) {
|
|
6038
6034
|
let d = c === "left" ? "offsetLeft" : "offsetTop", f = 0;
|
|
@@ -6047,15 +6043,19 @@ let __tla = Promise.all([
|
|
|
6047
6043
|
}
|
|
6048
6044
|
function $2f04cbc44ee30ce0$export$c826860796309d1b(e, r) {
|
|
6049
6045
|
if (e && document.contains(e)) {
|
|
6050
|
-
let _ = document.scrollingElement || document.documentElement;
|
|
6051
|
-
if (
|
|
6046
|
+
let _ = document.scrollingElement || document.documentElement, v = window.getComputedStyle(_).overflow === "hidden";
|
|
6047
|
+
if (v) {
|
|
6048
|
+
let r2 = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(e);
|
|
6049
|
+
v || r2.push(_);
|
|
6050
|
+
for (let c2 of r2) $2f04cbc44ee30ce0$export$53a0910f038337bd(c2, e);
|
|
6051
|
+
} else {
|
|
6052
6052
|
var c;
|
|
6053
|
-
let { left: _2, top:
|
|
6053
|
+
let { left: _2, top: v2 } = e.getBoundingClientRect();
|
|
6054
6054
|
e == null || (c = e.scrollIntoView) == null || c.call(e, {
|
|
6055
6055
|
block: "nearest"
|
|
6056
6056
|
});
|
|
6057
6057
|
let { left: y, top: S } = e.getBoundingClientRect();
|
|
6058
|
-
if (Math.abs(_2 - y) > 1 || Math.abs(
|
|
6058
|
+
if (Math.abs(_2 - y) > 1 || Math.abs(v2 - S) > 1) {
|
|
6059
6059
|
var d, f, h;
|
|
6060
6060
|
r == null || (f = r.containingElement) == null || (d = f.scrollIntoView) == null || d.call(f, {
|
|
6061
6061
|
block: "center",
|
|
@@ -6064,9 +6064,6 @@ let __tla = Promise.all([
|
|
|
6064
6064
|
block: "nearest"
|
|
6065
6065
|
});
|
|
6066
6066
|
}
|
|
6067
|
-
} else {
|
|
6068
|
-
let r2 = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(e);
|
|
6069
|
-
for (let c2 of r2) $2f04cbc44ee30ce0$export$53a0910f038337bd(c2, e);
|
|
6070
6067
|
}
|
|
6071
6068
|
}
|
|
6072
6069
|
}
|
|
@@ -6156,9 +6153,7 @@ let __tla = Promise.all([
|
|
|
6156
6153
|
}
|
|
6157
6154
|
}, [
|
|
6158
6155
|
r,
|
|
6159
|
-
d
|
|
6160
|
-
_,
|
|
6161
|
-
v
|
|
6156
|
+
d
|
|
6162
6157
|
]);
|
|
6163
6158
|
}
|
|
6164
6159
|
function $e0b6e0b68ec7f50f$var$isValidEvent(e, r) {
|
|
@@ -9070,21 +9065,21 @@ let __tla = Promise.all([
|
|
|
9070
9065
|
}, $edcf132a9284368a$var$TOTAL_SIZE = {
|
|
9071
9066
|
width: "totalWidth",
|
|
9072
9067
|
height: "totalHeight"
|
|
9073
|
-
}, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {}, $edcf132a9284368a$var$
|
|
9074
|
-
function $edcf132a9284368a$var$getContainerDimensions(e) {
|
|
9075
|
-
let
|
|
9076
|
-
if (e.tagName === "BODY") {
|
|
9077
|
-
let
|
|
9078
|
-
|
|
9079
|
-
} else ({ width:
|
|
9080
|
-
return $c87311424ea30a05$export$78551043582a6a98() && (e.tagName === "BODY" || e.tagName === "HTML") &&
|
|
9081
|
-
width:
|
|
9082
|
-
height:
|
|
9083
|
-
totalWidth:
|
|
9084
|
-
totalHeight:
|
|
9085
|
-
scroll:
|
|
9086
|
-
top:
|
|
9087
|
-
left:
|
|
9068
|
+
}, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {}, $edcf132a9284368a$var$getVisualViewport = () => typeof document < "u" ? window.visualViewport : null;
|
|
9069
|
+
function $edcf132a9284368a$var$getContainerDimensions(e, r) {
|
|
9070
|
+
let c = 0, d = 0, f = 0, h = 0, _ = 0, v = 0, y = {}, S = ((r == null ? void 0 : r.scale) ?? 1) > 1;
|
|
9071
|
+
if (e.tagName === "BODY" || e.tagName === "HTML") {
|
|
9072
|
+
let S2 = document.documentElement;
|
|
9073
|
+
f = S2.clientWidth, h = S2.clientHeight, c = (r == null ? void 0 : r.width) ?? f, d = (r == null ? void 0 : r.height) ?? h, y.top = S2.scrollTop || e.scrollTop, y.left = S2.scrollLeft || e.scrollLeft, r && (_ = r.offsetTop, v = r.offsetLeft);
|
|
9074
|
+
} else ({ width: c, height: d, top: _, left: v } = $edcf132a9284368a$var$getOffset(e, false)), y.top = e.scrollTop, y.left = e.scrollLeft, f = c, h = d;
|
|
9075
|
+
return $c87311424ea30a05$export$78551043582a6a98() && (e.tagName === "BODY" || e.tagName === "HTML") && S && (y.top = 0, y.left = 0, _ = (r == null ? void 0 : r.pageTop) ?? 0, v = (r == null ? void 0 : r.pageLeft) ?? 0), {
|
|
9076
|
+
width: c,
|
|
9077
|
+
height: d,
|
|
9078
|
+
totalWidth: f,
|
|
9079
|
+
totalHeight: h,
|
|
9080
|
+
scroll: y,
|
|
9081
|
+
top: _,
|
|
9082
|
+
left: v
|
|
9088
9083
|
};
|
|
9089
9084
|
}
|
|
9090
9085
|
function $edcf132a9284368a$var$getScroll(e) {
|
|
@@ -9096,7 +9091,7 @@ let __tla = Promise.all([
|
|
|
9096
9091
|
};
|
|
9097
9092
|
}
|
|
9098
9093
|
function $edcf132a9284368a$var$getDelta(e, r, c, d, f, h, _) {
|
|
9099
|
-
let v = f.scroll[e] ?? 0, y = d[$edcf132a9284368a$var$AXIS_SIZE[e]], S = d.scroll[$edcf132a9284368a$var$AXIS[e]] + h, w =
|
|
9094
|
+
let v = f.scroll[e] ?? 0, y = d[$edcf132a9284368a$var$AXIS_SIZE[e]], S = _[e] + d.scroll[$edcf132a9284368a$var$AXIS[e]] + h, w = _[e] + d.scroll[$edcf132a9284368a$var$AXIS[e]] + y - h, E = r - v + d.scroll[$edcf132a9284368a$var$AXIS[e]] + _[e] - d[$edcf132a9284368a$var$AXIS[e]], O = r - v + c + d.scroll[$edcf132a9284368a$var$AXIS[e]] + _[e] - d[$edcf132a9284368a$var$AXIS[e]];
|
|
9100
9095
|
return E < S ? S - E : O > w ? Math.max(w - O, S - E) : 0;
|
|
9101
9096
|
}
|
|
9102
9097
|
function $edcf132a9284368a$var$getMargins(e) {
|
|
@@ -9122,61 +9117,62 @@ let __tla = Promise.all([
|
|
|
9122
9117
|
crossSize: _
|
|
9123
9118
|
}, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[e];
|
|
9124
9119
|
}
|
|
9125
|
-
function $edcf132a9284368a$var$computePosition(e, r, c, d, f, h, _, v, y, S) {
|
|
9126
|
-
let { placement:
|
|
9127
|
-
|
|
9128
|
-
let
|
|
9129
|
-
if (
|
|
9130
|
-
let
|
|
9131
|
-
|
|
9132
|
-
} else
|
|
9133
|
-
return
|
|
9134
|
-
}
|
|
9135
|
-
function $edcf132a9284368a$var$getMaxHeight(e, r, c, d, f, h, _, v) {
|
|
9136
|
-
let
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9120
|
+
function $edcf132a9284368a$var$computePosition(e, r, c, d, f, h, _, v, y, S, w) {
|
|
9121
|
+
let { placement: E, crossPlacement: O, axis: M, crossAxis: I, size: z, crossSize: G } = d, q = {};
|
|
9122
|
+
q[I] = e[I] ?? 0, O === "center" ? q[I] += ((e[G] ?? 0) - (c[G] ?? 0)) / 2 : O !== I && (q[I] += (e[G] ?? 0) - (c[G] ?? 0)), q[I] += h;
|
|
9123
|
+
let LY = e[I] - c[G] + y + S, RY = e[I] + e[G] - y - S;
|
|
9124
|
+
if (q[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(q[I], LY, RY), E === M) {
|
|
9125
|
+
let r2 = v ? w[z] : w[$edcf132a9284368a$var$TOTAL_SIZE[z]];
|
|
9126
|
+
q[$edcf132a9284368a$var$FLIPPED_DIRECTION[M]] = Math.floor(r2 - e[M] + f);
|
|
9127
|
+
} else q[M] = Math.floor(e[M] + e[z] + f);
|
|
9128
|
+
return q;
|
|
9129
|
+
}
|
|
9130
|
+
function $edcf132a9284368a$var$getMaxHeight(e, r, c, d, f, h, _, v, y, S, w) {
|
|
9131
|
+
let E = (e.top == null ? y[$edcf132a9284368a$var$TOTAL_SIZE.height] - (e.bottom ?? 0) - _ : e.top) - (y.scroll.top ?? 0), O = S ? c.top : 0, M = {
|
|
9132
|
+
top: Math.max(r.top + O, ((w == null ? void 0 : w.offsetTop) ?? r.top) + O),
|
|
9133
|
+
bottom: Math.min(r.top + r.height + O, ((w == null ? void 0 : w.offsetTop) ?? 0) + ((w == null ? void 0 : w.height) ?? 0))
|
|
9134
|
+
};
|
|
9135
|
+
return v === "top" ? Math.max(0, E + _ - M.top - ((f.top ?? 0) + (f.bottom ?? 0) + h)) : Math.max(0, M.bottom - E - ((f.top ?? 0) + (f.bottom ?? 0) + h));
|
|
9136
|
+
}
|
|
9137
|
+
function $edcf132a9284368a$var$getAvailableSpace(e, r, c, d, f, h, _, v) {
|
|
9138
|
+
let { placement: y, axis: S, size: w } = h;
|
|
9139
|
+
return y === S ? Math.max(0, c[S] - (_.scroll[S] ?? 0) - (e[S] + (v ? r[S] : 0)) - (d[S] ?? 0) - d[$edcf132a9284368a$var$FLIPPED_DIRECTION[S]] - f) : Math.max(0, e[w] + e[S] + (v ? r[S] : 0) - c[S] - c[w] + (_.scroll[S] ?? 0) - (d[S] ?? 0) - d[$edcf132a9284368a$var$FLIPPED_DIRECTION[S]] - f);
|
|
9140
|
+
}
|
|
9141
|
+
function $edcf132a9284368a$export$6839422d1f33cee9(e, r, c, d, f, h, _, v, y, S, w, E, O, M, I, z, G, q) {
|
|
9142
|
+
let LY = $edcf132a9284368a$var$parsePlacement(e), { size: RY, crossAxis: zY, crossSize: BY, placement: VY, crossPlacement: HY } = LY, UY = $edcf132a9284368a$var$computePosition(r, v, c, LY, w, E, S, O, I, z, y), WY = w, GY = $edcf132a9284368a$var$getAvailableSpace(v, S, r, f, h + w, LY, y, G);
|
|
9143
|
+
if (_ && c[RY] > GY) {
|
|
9144
|
+
let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[VY]} ${HY}`), d2 = $edcf132a9284368a$var$computePosition(r, v, c, e2, w, E, S, O, I, z, y);
|
|
9145
|
+
$edcf132a9284368a$var$getAvailableSpace(v, S, r, f, h + w, e2, y, G) > GY && (LY = e2, UY = d2, WY = w);
|
|
9146
|
+
}
|
|
9147
|
+
let KY = "bottom";
|
|
9148
|
+
LY.axis === "top" ? LY.placement === "top" ? KY = "top" : LY.placement === "bottom" && (KY = "bottom") : LY.crossAxis === "top" && (LY.crossPlacement === "top" ? KY = "bottom" : LY.crossPlacement === "bottom" && (KY = "top"));
|
|
9149
|
+
let qY = $edcf132a9284368a$var$getDelta(zY, UY[zY], c[BY], v, y, h, S);
|
|
9150
|
+
UY[zY] += qY;
|
|
9151
|
+
let JY = $edcf132a9284368a$var$getMaxHeight(UY, v, S, O, f, h, c.height, KY, y, G, q);
|
|
9152
|
+
M && M < JY && (JY = M), c.height = Math.min(c.height, JY), UY = $edcf132a9284368a$var$computePosition(r, v, c, LY, WY, E, S, O, I, z, y), qY = $edcf132a9284368a$var$getDelta(zY, UY[zY], c[BY], v, y, h, S), UY[zY] += qY;
|
|
9153
|
+
let YY = {}, XY = r[zY] - UY[zY] - f[$edcf132a9284368a$var$AXIS[zY]], ZY = XY + 0.5 * r[BY], QY = I / 2 + z, $Y = $edcf132a9284368a$var$AXIS[zY] === "left" ? (f.left ?? 0) + (f.right ?? 0) : (f.top ?? 0) + (f.bottom ?? 0), eX = c[BY] - $Y - I / 2 - z;
|
|
9154
|
+
YY[zY] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(ZY, r[zY] + I / 2 - (UY[zY] + f[$edcf132a9284368a$var$AXIS[zY]]), r[zY] + r[BY] - I / 2 - (UY[zY] + f[$edcf132a9284368a$var$AXIS[zY]])), QY, eX), { placement: VY, crossPlacement: HY } = LY, I ? XY = YY[zY] : HY === "right" ? XY += r[BY] : HY === "center" && (XY += r[BY] / 2);
|
|
9155
|
+
let tX = VY === "left" || VY === "top" ? c[RY] : 0, nX = {
|
|
9156
|
+
x: VY === "top" || VY === "bottom" ? XY : tX,
|
|
9157
|
+
y: VY === "left" || VY === "right" ? XY : tX
|
|
9160
9158
|
};
|
|
9161
9159
|
return {
|
|
9162
|
-
position:
|
|
9163
|
-
maxHeight:
|
|
9164
|
-
arrowOffsetLeft:
|
|
9165
|
-
arrowOffsetTop:
|
|
9166
|
-
placement:
|
|
9167
|
-
triggerAnchorPoint:
|
|
9160
|
+
position: UY,
|
|
9161
|
+
maxHeight: JY,
|
|
9162
|
+
arrowOffsetLeft: YY.left,
|
|
9163
|
+
arrowOffsetTop: YY.top,
|
|
9164
|
+
placement: VY,
|
|
9165
|
+
triggerAnchorPoint: nX
|
|
9168
9166
|
};
|
|
9169
9167
|
}
|
|
9170
9168
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
9171
|
-
let { placement: r, targetNode: c, overlayNode: d, scrollNode: f, padding: h, shouldFlip: _, boundaryElement: v, offset: y, crossOffset: S, maxHeight: w, arrowSize: E = 0, arrowBoundaryOffset: O = 0 } = e, M = d instanceof HTMLElement ? $edcf132a9284368a$var$getContainingBlock(d) : document.documentElement,
|
|
9172
|
-
if (!
|
|
9169
|
+
let { placement: r, targetNode: c, overlayNode: d, scrollNode: f, padding: h, shouldFlip: _, boundaryElement: v, offset: y, crossOffset: S, maxHeight: w, arrowSize: E = 0, arrowBoundaryOffset: O = 0 } = e, M = $edcf132a9284368a$var$getVisualViewport(), I = d instanceof HTMLElement ? $edcf132a9284368a$var$getContainingBlock(d) : document.documentElement, z = I === document.documentElement, G = window.getComputedStyle(I).position, q = !!G && G !== "static", LY = z ? $edcf132a9284368a$var$getOffset(c, false) : $edcf132a9284368a$var$getPosition(c, I, false);
|
|
9170
|
+
if (!z) {
|
|
9173
9171
|
let { marginTop: e2, marginLeft: r2 } = window.getComputedStyle(c);
|
|
9174
|
-
|
|
9172
|
+
LY.top += parseInt(e2, 10) || 0, LY.left += parseInt(r2, 10) || 0;
|
|
9175
9173
|
}
|
|
9176
|
-
let
|
|
9177
|
-
|
|
9178
|
-
let zY = $edcf132a9284368a$var$getScroll(f), BY = $edcf132a9284368a$var$getContainerDimensions(v), VY = $edcf132a9284368a$var$getContainerDimensions(M), HY = v.tagName === "BODY" ? $edcf132a9284368a$var$getOffset(M, false) : $edcf132a9284368a$var$getPosition(M, v, false);
|
|
9179
|
-
return M.tagName === "HTML" && v.tagName === "BODY" && (VY.scroll.top = 0, VY.scroll.left = 0), $edcf132a9284368a$export$6839422d1f33cee9(r, q, LY, zY, RY, h, _, BY, VY, HY, y, S, G, w, E, O);
|
|
9174
|
+
let RY = $edcf132a9284368a$var$getOffset(d, true), zY = $edcf132a9284368a$var$getMargins(d);
|
|
9175
|
+
return RY.width += (zY.left ?? 0) + (zY.right ?? 0), RY.height += (zY.top ?? 0) + (zY.bottom ?? 0), $edcf132a9284368a$export$6839422d1f33cee9(r, LY, RY, $edcf132a9284368a$var$getScroll(f), zY, h, _, $edcf132a9284368a$var$getContainerDimensions(v, M), $edcf132a9284368a$var$getContainerDimensions(I, M), $edcf132a9284368a$var$getPosition(v, I, false), y, S, q, w, E, O, v.contains(I), M);
|
|
9180
9176
|
}
|
|
9181
9177
|
function $edcf132a9284368a$export$4b834cebd9e5cebe(e, r) {
|
|
9182
9178
|
let { top: c, left: d, width: f, height: h } = e.getBoundingClientRect();
|
|
@@ -30382,7 +30378,7 @@ ${c.sqlString}
|
|
|
30382
30378
|
});
|
|
30383
30379
|
return c;
|
|
30384
30380
|
}
|
|
30385
|
-
})
|
|
30381
|
+
});
|
|
30386
30382
|
function adaptForLocalStorage(e) {
|
|
30387
30383
|
let r = e.storage || availableStorage;
|
|
30388
30384
|
return {
|
|
@@ -30632,6 +30628,33 @@ ${c.sqlString}
|
|
|
30632
30628
|
const documentationAtom = atom({
|
|
30633
30629
|
documentation: null
|
|
30634
30630
|
});
|
|
30631
|
+
var reactiveVariableDecoration = Decoration.mark({
|
|
30632
|
+
class: "mo-cm-reactive-reference"
|
|
30633
|
+
});
|
|
30634
|
+
Decoration.mark({
|
|
30635
|
+
class: "mo-cm-reactive-reference-hover"
|
|
30636
|
+
});
|
|
30637
|
+
var updateReactiveVariables = StateEffect.define();
|
|
30638
|
+
const reactiveReferencesField = StateField.define({
|
|
30639
|
+
create() {
|
|
30640
|
+
return {
|
|
30641
|
+
decorations: Decoration.none,
|
|
30642
|
+
ranges: []
|
|
30643
|
+
};
|
|
30644
|
+
},
|
|
30645
|
+
update(e, r) {
|
|
30646
|
+
let c = {
|
|
30647
|
+
decorations: e.decorations.map(r.changes),
|
|
30648
|
+
ranges: e.ranges
|
|
30649
|
+
};
|
|
30650
|
+
for (let e2 of r.effects) e2.is(updateReactiveVariables) && (c = {
|
|
30651
|
+
decorations: Decoration.set(e2.value.map((e3) => reactiveVariableDecoration.range(e3.from, e3.to))),
|
|
30652
|
+
ranges: e2.value
|
|
30653
|
+
});
|
|
30654
|
+
return c;
|
|
30655
|
+
},
|
|
30656
|
+
provide: (e) => EditorView.decorations.from(e, (e2) => e2.decorations)
|
|
30657
|
+
});
|
|
30635
30658
|
function generateUUID() {
|
|
30636
30659
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, (e) => {
|
|
30637
30660
|
let r = Math.trunc(Math.random() * 16);
|
|
@@ -30725,6 +30748,63 @@ ${c.sqlString}
|
|
|
30725
30748
|
if (r) return e.find((e2) => e2.name === r);
|
|
30726
30749
|
}
|
|
30727
30750
|
}
|
|
30751
|
+
async function requestDocumentation({ view: e, pos: r, excludeTypes: c }) {
|
|
30752
|
+
var _a2;
|
|
30753
|
+
let d = HTMLCellId.findElement(e.dom);
|
|
30754
|
+
if (!d) return Logger.error("Failed to find active cell."), null;
|
|
30755
|
+
let f = HTMLCellId.parse(d.id), { startToken: h, endToken: _ } = getPositionAtWordBounds(e.state.doc, r), v = ((_a2 = e.state.field(reactiveReferencesField, false)) == null ? void 0 : _a2.ranges.some((e2) => r >= e2.from && r <= e2.to)) ?? false, y = await AUTOCOMPLETER.request({
|
|
30756
|
+
document: e.state.doc.slice(0, _).toString(),
|
|
30757
|
+
cellId: f
|
|
30758
|
+
});
|
|
30759
|
+
if (!y) return "cancelled";
|
|
30760
|
+
let S = e.state.doc.slice(h, _).toString();
|
|
30761
|
+
return Autocompleter.asHoverTooltip({
|
|
30762
|
+
position: _,
|
|
30763
|
+
message: y,
|
|
30764
|
+
exactName: S,
|
|
30765
|
+
excludeTypes: c,
|
|
30766
|
+
showGoToDefinitionHint: v
|
|
30767
|
+
}) ?? null;
|
|
30768
|
+
}
|
|
30769
|
+
function getPositionAtWordBounds(e, r) {
|
|
30770
|
+
let c = r, d = c > 0 ? e.sliceString(c - 1, c) : "", f = c < e.length ? e.sliceString(c, c + 1) : "";
|
|
30771
|
+
d === "(" && f === ")" && --c;
|
|
30772
|
+
let h = c, _ = c;
|
|
30773
|
+
for (; h > 0; ) {
|
|
30774
|
+
let r2 = e.sliceString(h - 1, h);
|
|
30775
|
+
if (!/\w/.test(r2)) break;
|
|
30776
|
+
h--;
|
|
30777
|
+
}
|
|
30778
|
+
for (; _ < e.length; ) {
|
|
30779
|
+
let r2 = e.sliceString(_, _ + 1);
|
|
30780
|
+
if (!/\w/.test(r2)) break;
|
|
30781
|
+
_++;
|
|
30782
|
+
}
|
|
30783
|
+
return {
|
|
30784
|
+
startToken: h,
|
|
30785
|
+
endToken: _
|
|
30786
|
+
};
|
|
30787
|
+
}
|
|
30788
|
+
function isCursorInText(e) {
|
|
30789
|
+
let { head: r } = e.selection.main, c = e.doc.sliceString(r - 1, r);
|
|
30790
|
+
return /\w/.test(c);
|
|
30791
|
+
}
|
|
30792
|
+
var debouncedAutocomplete = debounce_default(async (e, r) => {
|
|
30793
|
+
if (store.get(chromeAtom).selectedPanel !== "documentation") return;
|
|
30794
|
+
let c = await requestDocumentation({
|
|
30795
|
+
view: e,
|
|
30796
|
+
pos: r
|
|
30797
|
+
});
|
|
30798
|
+
c !== "cancelled" && store.set(documentationAtom, {
|
|
30799
|
+
documentation: (c == null ? void 0 : c.html) ?? null
|
|
30800
|
+
});
|
|
30801
|
+
}, 300);
|
|
30802
|
+
EditorView.updateListener.of((e) => {
|
|
30803
|
+
if (e.selectionSet && isCursorInText(e.state)) {
|
|
30804
|
+
let r = e.state.selection.main.head;
|
|
30805
|
+
debouncedAutocomplete(e.view, r);
|
|
30806
|
+
}
|
|
30807
|
+
});
|
|
30728
30808
|
function goToPosition(e, r) {
|
|
30729
30809
|
e.focus(), requestAnimationFrame(() => {
|
|
30730
30810
|
e.dispatch({
|
|
@@ -32257,6 +32337,9 @@ ${c.sqlString}
|
|
|
32257
32337
|
function isClientWithNotify(e) {
|
|
32258
32338
|
return "notify" in e;
|
|
32259
32339
|
}
|
|
32340
|
+
function isPrivateVariable(e) {
|
|
32341
|
+
return e.startsWith("_") && !e.startsWith("__");
|
|
32342
|
+
}
|
|
32260
32343
|
var Snapshotter = class {
|
|
32261
32344
|
constructor(e) {
|
|
32262
32345
|
__publicField(this, "documentVersion", 0);
|
|
@@ -32457,10 +32540,15 @@ ${c.sqlString}
|
|
|
32457
32540
|
let y = d.getEditsForNewText(v.newText), S = new Map(y.map((e2) => [
|
|
32458
32541
|
e2.cellId,
|
|
32459
32542
|
e2.text
|
|
32460
|
-
])), w = this.getNotebookEditors();
|
|
32543
|
+
])), w = this.getNotebookEditors(), E = w[c], O = false;
|
|
32544
|
+
if (E) {
|
|
32545
|
+
let r2 = E.state.doc.line(e.position.line + 1).from + e.position.character, { startToken: c2, endToken: d2 } = getPositionAtWordBounds(E.state.doc, r2), f2 = E.state.doc.sliceString(c2, d2);
|
|
32546
|
+
O = isPrivateVariable(f2), O && Logger.debug("[lsp] Private variable rename detected, limiting to current cell", f2);
|
|
32547
|
+
}
|
|
32461
32548
|
for (let [e2, r2] of Objects.entries(w)) {
|
|
32462
|
-
|
|
32463
|
-
|
|
32549
|
+
if (O && e2 !== c) continue;
|
|
32550
|
+
let d2 = S.get(e2);
|
|
32551
|
+
if (d2 == null) {
|
|
32464
32552
|
Logger.warn("No new code for cell", e2);
|
|
32465
32553
|
continue;
|
|
32466
32554
|
}
|
|
@@ -32468,7 +32556,7 @@ ${c.sqlString}
|
|
|
32468
32556
|
Logger.warn("No view for plugin", e2);
|
|
32469
32557
|
continue;
|
|
32470
32558
|
}
|
|
32471
|
-
getEditorCodeAsPython(r2) !==
|
|
32559
|
+
getEditorCodeAsPython(r2) !== d2 && updateEditorCodeFromPython(r2, d2);
|
|
32472
32560
|
}
|
|
32473
32561
|
return {
|
|
32474
32562
|
...h,
|
|
@@ -32571,7 +32659,7 @@ ${c.sqlString}
|
|
|
32571
32659
|
};
|
|
32572
32660
|
this.client.processNotification = c;
|
|
32573
32661
|
}
|
|
32574
|
-
}, __publicField(_a, "SEEN_CELL_DOCUMENT_URIS", /* @__PURE__ */ new Set()), _a), import_build = require_build(), ReconnectingWebSocketTransport = class extends import_Transport.Transport {
|
|
32662
|
+
}, __publicField(_a, "SEEN_CELL_DOCUMENT_URIS", /* @__PURE__ */ new Set()), _a), import_build = require_build(), import_Transport = require_Transport(), ReconnectingWebSocketTransport = class extends import_Transport.Transport {
|
|
32575
32663
|
constructor(e) {
|
|
32576
32664
|
super();
|
|
32577
32665
|
__publicField(this, "isClosed", false);
|
|
@@ -41779,7 +41867,7 @@ ${c.sqlString}
|
|
|
41779
41867
|
$d34552a7550967e7$exports = {
|
|
41780
41868
|
rangeOverflow: (e) => `\uAC12\uC740 ${e.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,
|
|
41781
41869
|
rangeReversed: "\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",
|
|
41782
|
-
rangeUnderflow: (e) => `\uAC12\uC740 ${e.minValue} \uC774\
|
|
41870
|
+
rangeUnderflow: (e) => `\uAC12\uC740 ${e.minValue} \uC774\uD6C4\uC5EC\uC57C \uD569\uB2C8\uB2E4.`,
|
|
41783
41871
|
unavailableDate: "\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."
|
|
41784
41872
|
};
|
|
41785
41873
|
var $8f855bffe63f6eca$exports = {};
|
|
@@ -43180,7 +43268,7 @@ ${c.sqlString}
|
|
|
43180
43268
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(v, h),
|
|
43181
43269
|
ref: r,
|
|
43182
43270
|
style: d,
|
|
43183
|
-
className: f
|
|
43271
|
+
className: f ?? "react-aria-CalendarGridHeader"
|
|
43184
43272
|
}, import_react.createElement("tr", null, _.map((e2, r2) => import_react.cloneElement(c(e2), {
|
|
43185
43273
|
key: r2
|
|
43186
43274
|
}))));
|
|
@@ -43206,7 +43294,7 @@ ${c.sqlString}
|
|
|
43206
43294
|
...w,
|
|
43207
43295
|
ref: r,
|
|
43208
43296
|
style: d,
|
|
43209
|
-
className: f
|
|
43297
|
+
className: f ?? "react-aria-CalendarGridBody"
|
|
43210
43298
|
}, [
|
|
43211
43299
|
...Array(S).keys()
|
|
43212
43300
|
].map((e2) => import_react.createElement("tr", {
|
|
@@ -43556,7 +43644,9 @@ ${c.sqlString}
|
|
|
43556
43644
|
isDisabled: _.isDisabled
|
|
43557
43645
|
}, _.segments.map((e2, r2) => (0, import_react.cloneElement)(d(e2), {
|
|
43558
43646
|
key: r2
|
|
43559
|
-
}))), import_react.createElement($3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
43647
|
+
}))), import_react.createElement($3985021b0ad6602f$export$f5b8910cec6cf069, {
|
|
43648
|
+
className: ""
|
|
43649
|
+
}));
|
|
43560
43650
|
}), $40825cdb76e74f70$export$336ab7fa954c4b5f = (0, import_react.forwardRef)(function({ segment: e, ...r }, c) {
|
|
43561
43651
|
let d = (0, import_react.useContext)($40825cdb76e74f70$export$3b08bebcf796eea0), f = (0, import_react.useContext)($40825cdb76e74f70$export$5d8dc44abd10a920), h = d ?? f, _ = $df56164dff5785e2$export$4338b53315abf666(c), { segmentProps: v } = $32489daedd52963e$export$1315d136e6f7581(e, h, _), { focusProps: y, isFocused: S, isFocusVisible: w } = $f7dceffc5ad7768b$export$4e328f61c538687f(), { hoverProps: E, isHovered: O } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
43562
43652
|
...r,
|
|
@@ -72010,7 +72100,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72010
72100
|
function getVegaFieldTypes(e) {
|
|
72011
72101
|
return !e || Object.keys(e).length === 0 ? "auto" : Objects.mapValues(e, (e2) => e2 === "date" || e2 === "time" ? "string" : e2 === "datetime" ? "date" : e2);
|
|
72012
72102
|
}
|
|
72013
|
-
var import_compiler_runtime$84 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
72103
|
+
var import_compiler_runtime$84 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-Ciz7NmAf.js").then(async (m2) => {
|
|
72014
72104
|
await m2.__tla;
|
|
72015
72105
|
return m2;
|
|
72016
72106
|
}));
|
|
@@ -83668,7 +83758,7 @@ ${c}
|
|
|
83668
83758
|
fullWidth: v,
|
|
83669
83759
|
children: z
|
|
83670
83760
|
}), r[19] = v, r[20] = y, r[21] = c, r[22] = z, r[23] = G) : G = r[23], G;
|
|
83671
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
83761
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-CfcCqsSs.js"));
|
|
83672
83762
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
|
|
83673
83763
|
label: string$2().nullish(),
|
|
83674
83764
|
data: string$2()
|
|
@@ -101069,7 +101159,7 @@ Defaulting to \`null\`.`;
|
|
|
101069
101159
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
101070
101160
|
}
|
|
101071
101161
|
}
|
|
101072
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.3-
|
|
101162
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.3-dev27"), showCodeInRunModeAtom = atom(true);
|
|
101073
101163
|
atom(null);
|
|
101074
101164
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
101075
101165
|
constructor() {
|
|
@@ -2,7 +2,7 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
2
2
|
import { t as require_react } from "./react-DdA8EBol.js";
|
|
3
3
|
import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
|
|
4
4
|
import { N as createLucideIcon } from "./Combination-33P1MEPK.js";
|
|
5
|
-
import { A as logNever, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, j as upperFirst_default } from "./label-
|
|
5
|
+
import { A as logNever, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, j as upperFirst_default } from "./label-CACbEFdz.js";
|
|
6
6
|
import { a as cva, u as cn } from "./button-BlF-78eJ.js";
|
|
7
7
|
import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
|
|
8
8
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|