@marimo-team/islands 0.21.1-dev94 → 0.21.2-dev0
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/{Combination-Dk6JxauT.js → Combination-BBPQRrDo.js} +1 -1
- package/dist/{ConnectedDataExplorerComponent-Bh11efrC.js → ConnectedDataExplorerComponent-D0GoOd_c.js} +14 -13
- package/dist/{any-language-editor-BIj11a2e.js → any-language-editor-DlsjUw_l.js} +4 -4
- package/dist/{button-DQpBib29.js → button-BKkuUpZh.js} +8 -0
- package/dist/{check-DpqPQmzz.js → check-Diwc5emq.js} +1 -1
- package/dist/{copy-BkBF0Xgk.js → copy-DIK6DiIA.js} +2 -2
- package/dist/{dist-WIWVvdBh.js → dist-C0Rnbr-_.js} +2 -2
- package/dist/{error-banner-BctofTCP.js → error-banner-Dmi5ujan.js} +2 -2
- package/dist/{esm-BBkPJL8N.js → esm-BLobyqMs.js} +8 -7
- package/dist/{glide-data-editor-DqxJOnJk.js → glide-data-editor-pZyd9UJ_.js} +6 -6
- package/dist/{label-BLDcDYdI.js → label-BbpGrh4j.js} +4 -4
- package/dist/{loader-DsE3MiYo.js → loader-CABJs6GU.js} +12 -3
- package/dist/main.js +186 -127
- package/dist/{mermaid-DkdSmFY8.js → mermaid-CrKqsE2j.js} +5 -5
- package/dist/{slides-component-DwvL_HJi.js → slides-component-GkilRW21.js} +2 -2
- package/dist/{spec-CbYkiXG3.js → spec-Bfvf9Hre.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{tooltip-SPkubVH3.js → tooltip-CKG75XQa.js} +3 -3
- package/dist/{types-0FB-N7AA.js → types-CGc7peZV.js} +6 -6
- package/dist/{useAsyncData-D7-oahg5.js → useAsyncData-CEjJxwFB.js} +1 -1
- package/dist/{useDeepCompareMemoize-DLS-bHHT.js → useDeepCompareMemoize-BWUwfh37.js} +4 -4
- package/dist/{useIframeCapabilities-DFGZKWkO.js → useIframeCapabilities-OQaMKgZl.js} +1 -1
- package/dist/{useTheme-D0rdoMBF.js → useTheme-CPybHVFN.js} +2 -2
- package/dist/{vega-component-CnO3mkFC.js → vega-component-CuPTCRp5.js} +13 -10
- package/package.json +1 -1
- package/src/components/data-table/charts/lazy-chart.tsx +2 -0
- package/src/components/data-table/column-summary/column-summary.tsx +1 -0
- package/src/components/datasources/column-preview.tsx +1 -0
- package/src/components/editor/Output.tsx +2 -0
- package/src/components/editor/actions/useCellActionButton.tsx +38 -29
- package/src/components/editor/cell/code/cell-editor.tsx +9 -0
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +6 -0
- package/src/components/editor/chrome/wrapper/__tests__/utils.test.ts +35 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +12 -14
- package/src/components/editor/chrome/wrapper/utils.ts +5 -1
- package/src/components/editor/header/status.tsx +19 -11
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +10 -3
- package/src/core/cells/cells.ts +6 -0
- package/src/core/cells/utils.ts +1 -0
- package/src/core/codemirror/__tests__/setup.test.ts +1 -0
- package/src/core/codemirror/cells/state.ts +1 -0
- package/src/core/codemirror/extensions.ts +20 -0
- package/src/core/codemirror/language/utils.ts +16 -1
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +54 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +14 -0
- package/src/core/dom/outline.ts +1 -1
- package/src/core/hotkeys/hotkeys.ts +8 -0
- package/src/css/md.css +4 -0
- package/src/plugins/core/sanitize-html.ts +50 -0
- package/src/plugins/core/sanitize.ts +3 -49
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +6 -3
- package/src/plugins/impl/vega/__tests__/utils.test.ts +36 -0
- package/src/plugins/impl/vega/utils.ts +14 -0
- package/src/plugins/impl/vega/vega-component.tsx +6 -7
- package/src/plugins/impl/vega/vega.css +1 -1
package/dist/main.js
CHANGED
|
@@ -20,32 +20,32 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
20
20
|
import { a as __toCommonJS, n as __esmMin, o as __toDynamicImportESM, r as __export$1, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
21
21
|
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
22
22
|
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
23
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
23
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DIK6DiIA.js";
|
|
24
24
|
import { _ as require_cjs$1, c as markdownLineEnding, d as SKIP, f as visitParents, g as s$2, h as h$1, l as longestStreak, m as webNamespaces, o as xn$1, p as convert$1, s as factorySpace, u as ok, __tla as __tla_0 } from "./chunk-5FQGJX7Z-BkzUmppO.js";
|
|
25
|
-
import { a as Content$3, c as useSize, i as Arrow, l as createLucideIcon, o as Root2$6, r as Anchor, s as createPopperScope, t as Root$5 } from "./dist-
|
|
26
|
-
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ 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 useOnUnmount, 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 ToggleLeft } from "./spec-
|
|
27
|
-
import { t as Check } from "./check-
|
|
28
|
-
import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, D as assertNever, E as usePrevious$1, I as X, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, N as $18f2051aff69b9bf$export$a54013f0d02a8f82, O as logNever, P as $b5e257d569688ac6$export$535bd6ca7f90a273, R as ChevronDown, 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, j as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, 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-
|
|
29
|
-
import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $t as $c87311424ea30a05$export$a11b0059900ceec8, A as Portal$2, At as $fca6afa0e843324b$export$87b761675e8eaa10, B as Root$6, Bt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, C as Arrow2, Ct as $e5be200c675c3b3a$export$aca958c65c314e6c, D as Item2$2, Dt as $f7dceffc5ad7768b$export$4e328f61c538687f, E as Group$1, Et as $319e236875307eab$export$a9b970dcc4ae71a9, F as Sub, Ft as $9ab94262bd0047c7$export$420e68273165f4ec, G as $3985021b0ad6602f$export$f5b8910cec6cf069, Gt as $99facab73266f662$export$5add1d006293d136, H as ErrorBoundary, Ht as $458b0a5536c1a7cf$export$40bfa8c7b0832715, I as SubContent, It as $3ad3f6e1647bc98d$export$80f3e147d781571c, J as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Jt as $df56164dff5785e2$export$4338b53315abf666, K as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Kt as $e9faafb641e167db$export$90fc3a17d93f704c, L as SubTrigger, Lt as $507fabe10e71c6fb$export$630ff653c5ada6a9, M as RadioItem, Mt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, N as Root3, Nt as $5b160d28a433310d$export$c17fa47878dc55b6, O as ItemIndicator, Ot as $701a24aa0da5b062$export$ea18c227d4417cc3, P as Separator, Pt as $6179b936705e76d3$export$ae780daf29e6d456, Q as $514c0188e459b4c0$export$9afb8bc826b033ea, Qt as $c87311424ea30a05$export$9ac100e40613ea10, R as createMenuScope, Rt as $f6c31cce2adf654f$export$45712eceda6fad21, S as Anchor2, St as $e5be200c675c3b3a$export$a763b9476acd3eb, T as Content2$3, Tt as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, U as require_prop_types, Ut as $b4b717babfbb907b$export$4c063cf1350e6fed, V as createRovingFocusGroupScope, Vt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, W as $3985021b0ad6602f$export$37fb8590cf2c088c, Wt as $b4b717babfbb907b$export$bebd5a1431fec25d, X as $ee014567cb39d3f0$export$ff05c3ac10437e03, Xt as $c87311424ea30a05$export$6446a186d09e379e, Y as $ee014567cb39d3f0$export$f551688fc98f2e09, Yt as $313b98861ee5dd6c$export$d6875122194c7b44, Z as $514c0188e459b4c0$export$5f1af8db9871e1d6, Zt as $c87311424ea30a05$export$78551043582a6a98, _ as DropdownMenuSeparator, _n as Plus, _t as capitalize_default, a as OnBlurredInput, an as $d4ee10de306f2510$export$b4f377a2b6254582, at as $64fa3d84918910a7$export$29f1550f4b0d4415, b as DropdownMenuSubTrigger, bn as ChevronRight, bt as $e93e671b31057976$export$b8473d3665f3a75a, c as prettyEngineeringNumber, cn as $f4e2df6bd15f8569$export$98658e8c59125e6a, ct as $64fa3d84918910a7$export$c245e6201fed2f75, d as DropdownMenu, dn as $ff5963eb1fccf552$export$e08e3b67e392101e, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $c87311424ea30a05$export$fedb369cb70207f1, et as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, f as DropdownMenuContent, fn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuPortal, gn as Search, gt as useDebouncedCallback, h as DropdownMenuLabel, hn as Trash, ht as useDebounceControlledState, i as Input, in as $d4ee10de306f2510$export$4282f70798064fe0, it as $64fa3d84918910a7$export$2881499e37b75b9a, j as RadioGroup$2, jt as $fca6afa0e843324b$export$f12b703ca79dfbb1, k as Label$2, kt as $6c7bd7858deea686$export$cd11ab140839f11d, l as prettyNumber, ln as $431fbd86ca7dc216$export$b204af158042fbac, lt as $64fa3d84918910a7$export$c62b8e45d58ddad9, m as DropdownMenuItem, mn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, mt as marked, n as DebouncedInput, nn as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, nt as $01b77f81d0f07f68$export$b04be29aa201d4f5, o as NumberField, on as $d4ee10de306f2510$export$cd4e5573fbe2b576, ot as $64fa3d84918910a7$export$4d86445c2cf5e3, p as DropdownMenuGroup, pn as $bdb11010cef70236$export$f680877a34711e37, pt as useNonce, q as $a049562f99e7db0e$export$f9c6924e160136d1, qt as $8ae05eaa5c114e9c$export$7f54fc3180508a52, r as DebouncedNumberInput, rn as $3ef42575df84b30b$export$9d1611c77c2fe928, rt as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, s as maxFractionalDigits, sn as $d4ee10de306f2510$export$e58f029f0fbfdb29, st as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, t as BulkEdit, tn as $7215afc6de606d6b$export$de79e2c695e052f3, tt as $01b77f81d0f07f68$export$75b6ee27786ba447, u as prettyScientificNumber, un as $431fbd86ca7dc216$export$f21a1ffae260145a, ut as $64fa3d84918910a7$export$df3a06d6289f983e, v as DropdownMenuSub, vn as Pencil, vt as $d2e8511e6f209edf$export$e908e06f4b8e3402, w as CheckboxItem, wt as $e5be200c675c3b3a$export$dad6ae84456c676a, x as DropdownMenuTrigger, xt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, y as DropdownMenuSubContent, yn as Circle, yt as $2baaea4c71418dea$export$294aa081a6c6f55d, z as Item$2, zt as _class_private_field_init } from "./types-
|
|
30
|
-
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-
|
|
25
|
+
import { a as Content$3, c as useSize, i as Arrow, l as createLucideIcon, o as Root2$6, r as Anchor, s as createPopperScope, t as Root$5 } from "./dist-C0Rnbr-_.js";
|
|
26
|
+
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ 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 useOnUnmount, 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 ToggleLeft } from "./spec-Bfvf9Hre.js";
|
|
27
|
+
import { t as Check } from "./check-Diwc5emq.js";
|
|
28
|
+
import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, D as assertNever, E as usePrevious$1, I as X, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, N as $18f2051aff69b9bf$export$a54013f0d02a8f82, O as logNever, P as $b5e257d569688ac6$export$535bd6ca7f90a273, R as ChevronDown, 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, j as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, 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-BbpGrh4j.js";
|
|
29
|
+
import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $t as $c87311424ea30a05$export$a11b0059900ceec8, A as Portal$2, At as $fca6afa0e843324b$export$87b761675e8eaa10, B as Root$6, Bt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, C as Arrow2, Ct as $e5be200c675c3b3a$export$aca958c65c314e6c, D as Item2$2, Dt as $f7dceffc5ad7768b$export$4e328f61c538687f, E as Group$1, Et as $319e236875307eab$export$a9b970dcc4ae71a9, F as Sub, Ft as $9ab94262bd0047c7$export$420e68273165f4ec, G as $3985021b0ad6602f$export$f5b8910cec6cf069, Gt as $99facab73266f662$export$5add1d006293d136, H as ErrorBoundary, Ht as $458b0a5536c1a7cf$export$40bfa8c7b0832715, I as SubContent, It as $3ad3f6e1647bc98d$export$80f3e147d781571c, J as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Jt as $df56164dff5785e2$export$4338b53315abf666, K as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Kt as $e9faafb641e167db$export$90fc3a17d93f704c, L as SubTrigger, Lt as $507fabe10e71c6fb$export$630ff653c5ada6a9, M as RadioItem, Mt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, N as Root3, Nt as $5b160d28a433310d$export$c17fa47878dc55b6, O as ItemIndicator, Ot as $701a24aa0da5b062$export$ea18c227d4417cc3, P as Separator, Pt as $6179b936705e76d3$export$ae780daf29e6d456, Q as $514c0188e459b4c0$export$9afb8bc826b033ea, Qt as $c87311424ea30a05$export$9ac100e40613ea10, R as createMenuScope, Rt as $f6c31cce2adf654f$export$45712eceda6fad21, S as Anchor2, St as $e5be200c675c3b3a$export$a763b9476acd3eb, T as Content2$3, Tt as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, U as require_prop_types, Ut as $b4b717babfbb907b$export$4c063cf1350e6fed, V as createRovingFocusGroupScope, Vt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, W as $3985021b0ad6602f$export$37fb8590cf2c088c, Wt as $b4b717babfbb907b$export$bebd5a1431fec25d, X as $ee014567cb39d3f0$export$ff05c3ac10437e03, Xt as $c87311424ea30a05$export$6446a186d09e379e, Y as $ee014567cb39d3f0$export$f551688fc98f2e09, Yt as $313b98861ee5dd6c$export$d6875122194c7b44, Z as $514c0188e459b4c0$export$5f1af8db9871e1d6, Zt as $c87311424ea30a05$export$78551043582a6a98, _ as DropdownMenuSeparator, _n as Plus, _t as capitalize_default, a as OnBlurredInput, an as $d4ee10de306f2510$export$b4f377a2b6254582, at as $64fa3d84918910a7$export$29f1550f4b0d4415, b as DropdownMenuSubTrigger, bn as ChevronRight, bt as $e93e671b31057976$export$b8473d3665f3a75a, c as prettyEngineeringNumber, cn as $f4e2df6bd15f8569$export$98658e8c59125e6a, ct as $64fa3d84918910a7$export$c245e6201fed2f75, d as DropdownMenu, dn as $ff5963eb1fccf552$export$e08e3b67e392101e, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $c87311424ea30a05$export$fedb369cb70207f1, et as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, f as DropdownMenuContent, fn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuPortal, gn as Search, gt as useDebouncedCallback, h as DropdownMenuLabel, hn as Trash, ht as useDebounceControlledState, i as Input, in as $d4ee10de306f2510$export$4282f70798064fe0, it as $64fa3d84918910a7$export$2881499e37b75b9a, j as RadioGroup$2, jt as $fca6afa0e843324b$export$f12b703ca79dfbb1, k as Label$2, kt as $6c7bd7858deea686$export$cd11ab140839f11d, l as prettyNumber, ln as $431fbd86ca7dc216$export$b204af158042fbac, lt as $64fa3d84918910a7$export$c62b8e45d58ddad9, m as DropdownMenuItem, mn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, mt as marked, n as DebouncedInput, nn as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, nt as $01b77f81d0f07f68$export$b04be29aa201d4f5, o as NumberField, on as $d4ee10de306f2510$export$cd4e5573fbe2b576, ot as $64fa3d84918910a7$export$4d86445c2cf5e3, p as DropdownMenuGroup, pn as $bdb11010cef70236$export$f680877a34711e37, pt as useNonce, q as $a049562f99e7db0e$export$f9c6924e160136d1, qt as $8ae05eaa5c114e9c$export$7f54fc3180508a52, r as DebouncedNumberInput, rn as $3ef42575df84b30b$export$9d1611c77c2fe928, rt as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, s as maxFractionalDigits, sn as $d4ee10de306f2510$export$e58f029f0fbfdb29, st as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, t as BulkEdit, tn as $7215afc6de606d6b$export$de79e2c695e052f3, tt as $01b77f81d0f07f68$export$75b6ee27786ba447, u as prettyScientificNumber, un as $431fbd86ca7dc216$export$f21a1ffae260145a, ut as $64fa3d84918910a7$export$df3a06d6289f983e, v as DropdownMenuSub, vn as Pencil, vt as $d2e8511e6f209edf$export$e908e06f4b8e3402, w as CheckboxItem, wt as $e5be200c675c3b3a$export$dad6ae84456c676a, x as DropdownMenuTrigger, xt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, y as DropdownMenuSubContent, yn as Circle, yt as $2baaea4c71418dea$export$294aa081a6c6f55d, z as Item$2, zt as _class_private_field_init } from "./types-CGc7peZV.js";
|
|
30
|
+
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-BWUwfh37.js";
|
|
31
31
|
import { n as clsx_default } from "./clsx-D2KVTYnW.js";
|
|
32
|
-
import { _ as Functions, a as cva, c as isPlatformMac, d as Objects, f as useEventListener, g as Logger, h as Events, l as parseShortcut, m as useComposedRefs, n as buttonVariants, o as NOT_SET, p as composeRefs, r as Slot$1, t as Button, v as throwNotImplemented, y as cn } from "./button-
|
|
33
|
-
import { $ as __awaiter, A as custom, B as record, C as ZodUnion$1, D as any, E as _null, F as nan, G as unknown, H as string, I as never, J as toJSONSchema, K as safeParseAsync, L as number, M as lazy$4, N as literal, O as array, P as looseObject, Q as prettifyError, R as object$1, S as ZodType$1, T as _instanceof, U as tuple, V as strictObject, W as union, X as parseAsync, Y as parse$3, Z as $ZodError, _ as ZodLiteral$1, _t as createContextScope, a as zod_default, at as useControllableState, b as ZodOptional$1, c as string$1, ct as useId$12, d as ZodArray$1, dt as useCallbackRef, et as MAX_HEIGHT_OFFSET, f as ZodBoolean$1, ft as Primitive, g as ZodEnum$1, h as ZodDiscriminatedUnion$1, i as useFocusGuards, it as StyleNamespace, j as discriminatedUnion, k as boolean, l as ZodIssueCode$1, lt as useLayoutEffect2, m as ZodDefault$1, mt as createSlot, n as hideOthers, nt as withSmartCollisionBoundary, o as date, ot as Presence, p as ZodDate$1, pt as dispatchDiscreteCustomEvent, q as ZodError$1, r as FocusScope, rt as isInVscodeExtension, s as number$1, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, u as ZodAny$1, ut as DismissableLayer, v as ZodNumber$1, vt as composeEventHandlers$1, w as _enum, x as ZodString$1, y as ZodObject$1, z as optional } from "./Combination-
|
|
32
|
+
import { _ as Functions, a as cva, c as isPlatformMac, d as Objects, f as useEventListener, g as Logger, h as Events, l as parseShortcut, m as useComposedRefs, n as buttonVariants, o as NOT_SET, p as composeRefs, r as Slot$1, t as Button, v as throwNotImplemented, y as cn } from "./button-BKkuUpZh.js";
|
|
33
|
+
import { $ as __awaiter, A as custom, B as record, C as ZodUnion$1, D as any, E as _null, F as nan, G as unknown, H as string, I as never, J as toJSONSchema, K as safeParseAsync, L as number, M as lazy$4, N as literal, O as array, P as looseObject, Q as prettifyError, R as object$1, S as ZodType$1, T as _instanceof, U as tuple, V as strictObject, W as union, X as parseAsync, Y as parse$3, Z as $ZodError, _ as ZodLiteral$1, _t as createContextScope, a as zod_default, at as useControllableState, b as ZodOptional$1, c as string$1, ct as useId$12, d as ZodArray$1, dt as useCallbackRef, et as MAX_HEIGHT_OFFSET, f as ZodBoolean$1, ft as Primitive, g as ZodEnum$1, h as ZodDiscriminatedUnion$1, i as useFocusGuards, it as StyleNamespace, j as discriminatedUnion, k as boolean, l as ZodIssueCode$1, lt as useLayoutEffect2, m as ZodDefault$1, mt as createSlot, n as hideOthers, nt as withSmartCollisionBoundary, o as date, ot as Presence, p as ZodDate$1, pt as dispatchDiscreteCustomEvent, q as ZodError$1, r as FocusScope, rt as isInVscodeExtension, s as number$1, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, u as ZodAny$1, ut as DismissableLayer, v as ZodNumber$1, vt as composeEventHandlers$1, w as _enum, x as ZodString$1, y as ZodObject$1, z as optional } from "./Combination-BBPQRrDo.js";
|
|
34
34
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
35
35
|
import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
|
|
36
|
-
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, s as TooltipProvider$1, t as Tooltip } from "./tooltip-
|
|
37
|
-
import { a as _extends$5, c as setDiagnostics, d as CopyClipboardIcon, i as minimalSetup, l as
|
|
36
|
+
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, s as TooltipProvider$1, t as Tooltip } from "./tooltip-CKG75XQa.js";
|
|
37
|
+
import { a as _extends$5, c as setDiagnostics, d as insertTab, f as CopyClipboardIcon, i as minimalSetup, l as history, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as historyField } from "./esm-BLobyqMs.js";
|
|
38
38
|
import { i as toInteger_default, n as _baseSet_default } from "./_basePickBy-pTDW2_2A.js";
|
|
39
39
|
import { i as get_default } from "./hasIn-B9AbGLj3.js";
|
|
40
40
|
import { n as pick_default, t as range_default } from "./range-BKaWvVUE.js";
|
|
41
41
|
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-CytQ_3LM.js";
|
|
42
42
|
import { t as isEmpty_default } from "./isEmpty-C-xMag79.js";
|
|
43
|
-
import { C as useEvent_default, S as getBuildingBlocks, _ as useSetAtom, a as getResolvedMarimoConfig, c as AppConfigSchema, d as useJotaiEffect, g as useAtomValue, h as useAtom, i as autoInstantiateAtom, l as createDeepEqualAtom, m as Provider, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useStore, w as isEqual_default, x as buildStore, y as atom } from "./useTheme-
|
|
44
|
-
import { a as
|
|
43
|
+
import { C as useEvent_default, S as getBuildingBlocks, _ as useSetAtom, a as getResolvedMarimoConfig, c as AppConfigSchema, d as useJotaiEffect, g as useAtomValue, h as useAtom, i as autoInstantiateAtom, l as createDeepEqualAtom, m as Provider, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useStore, w as isEqual_default, x as buildStore, y as atom } from "./useTheme-CPybHVFN.js";
|
|
44
|
+
import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-CABJs6GU.js";
|
|
45
45
|
import { $ as ViewPlugin, At as Prec, B as tags$1, Dt as EditorState, E as getIndentUnit, Et as EditorSelection, Ft as StateField, I as syntaxTree, It as Text$2, J as parseMixed, L as unfoldAll, Lt as Transaction, Ot as Facet$1, Pt as StateEffect, Q as GutterMarker, S as foldInside, Tt as Compartment, Y as Decoration, Z as EditorView, b as foldAll, dt as keymap, et as WidgetType, f as StreamLanguage, jt as RangeSet, l as LanguageDescription, mt as placeholder, ot as gutter, u as LanguageSupport, ut as hoverTooltip, vt as showPanel, w as foldNodeProp, xt as Annotation, yt as showTooltip } from "./dist-DOoqn-VL.js";
|
|
46
46
|
import { t as invariant } from "./invariant-D9QLJ4SZ.js";
|
|
47
47
|
import { a as arrayInsert, c as arrayShallowEquals, i as arrayDelete, l as uniqueBy, n as once, o as arrayInsertMany, r as Arrays, s as arrayMove, t as memoizeLastValue, u as clamp } from "./once-BqS42WgZ.js";
|
|
48
|
-
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-
|
|
48
|
+
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-OQaMKgZl.js";
|
|
49
49
|
import { d as snippet, n as acceptCompletion, o as closeCompletion, r as autocompletion, u as insertCompletionText } from "./dist-CSEWGuDq.js";
|
|
50
50
|
import { t as require_main } from "./main-Tj_-QTyF.js";
|
|
51
51
|
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-Bq5eYK43.js";
|
|
@@ -56,10 +56,10 @@ import "./dist-D4gcY469.js";
|
|
|
56
56
|
import { a as parser$1, i as pythonLanguage, n as localCompletionSource, r as python, t as globalCompletion } from "./dist-C4K7pumm.js";
|
|
57
57
|
import { n as stexMath } from "./stex-BIsgBmK4.js";
|
|
58
58
|
import { t as purify } from "./purify.es-DGenX2XH.js";
|
|
59
|
-
import { a as Portal$3, c as prettyError, i as Overlay, n as ErrorBanner, o as Root$7, r as Content$4, s as CellNotInitializedError, t as Banner } from "./error-banner-
|
|
59
|
+
import { a as Portal$3, c as prettyError, i as Overlay, n as ErrorBanner, o as Root$7, r as Content$4, s as CellNotInitializedError, t as Banner } from "./error-banner-Dmi5ujan.js";
|
|
60
60
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DtW2o230.js";
|
|
61
61
|
import { n as formats } from "./vega-loader.browser-CQ-lnUkI.js";
|
|
62
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
62
|
+
import { t as useAsyncData } from "./useAsyncData-CEjJxwFB.js";
|
|
63
63
|
import "./defaultLocale-Bklbu-Tp.js";
|
|
64
64
|
import "./defaultLocale-CfQ4kBaV.js";
|
|
65
65
|
import { c as katex } from "./katex-Bk_FvVSR.js";
|
|
@@ -15378,9 +15378,7 @@ ${d.join("\n")}`;
|
|
|
15378
15378
|
combine: (e) => e.find((e2) => e2 !== void 0)
|
|
15379
15379
|
});
|
|
15380
15380
|
}
|
|
15381
|
-
singleFacet(), singleFacet(), singleFacet();
|
|
15382
|
-
const cellIdState$1 = singleFacet();
|
|
15383
|
-
singleFacet();
|
|
15381
|
+
const completionConfigState = singleFacet(), hotkeysProviderState = singleFacet(), placeholderState = singleFacet(), cellIdState = singleFacet(), lspConfigState = singleFacet(), historyCompartment = new Compartment();
|
|
15384
15382
|
function notebookIsRunning(e) {
|
|
15385
15383
|
return Object.values(e.cellRuntime).some((e2) => e2.status === "running");
|
|
15386
15384
|
}
|
|
@@ -15427,7 +15425,7 @@ ${d.join("\n")}`;
|
|
|
15427
15425
|
}
|
|
15428
15426
|
const cellActionsState = Facet$1.define({
|
|
15429
15427
|
combine: (e) => e[0]
|
|
15430
|
-
}), cellIdState = Facet$1.define({
|
|
15428
|
+
}), cellIdState$1 = Facet$1.define({
|
|
15431
15429
|
combine: (e) => e[0]
|
|
15432
15430
|
});
|
|
15433
15431
|
var BigQuery = {
|
|
@@ -24938,7 +24936,7 @@ ${d.join("\n")}`;
|
|
|
24938
24936
|
});
|
|
24939
24937
|
return;
|
|
24940
24938
|
}
|
|
24941
|
-
let S = f.transformIn(y)[0], w = e.state.facet(cellActionsState), E = e.state.facet(cellIdState
|
|
24939
|
+
let S = f.transformIn(y)[0], w = e.state.facet(cellActionsState), E = e.state.facet(cellIdState);
|
|
24942
24940
|
w.updateCellCode({
|
|
24943
24941
|
cellId: E,
|
|
24944
24942
|
code: S,
|
|
@@ -31242,6 +31240,10 @@ ${c.sqlString}
|
|
|
31242
31240
|
function updateSQLDialectFromConnection(e, r) {
|
|
31243
31241
|
updateSQLDialect(e, SCHEMA_CACHE.getDialect(r));
|
|
31244
31242
|
}
|
|
31243
|
+
function initializeSQLDialect(e) {
|
|
31244
|
+
let r = getSQLMetadata(e.state).engine;
|
|
31245
|
+
updateSQLDialect(e, SCHEMA_CACHE.getDialect(r));
|
|
31246
|
+
}
|
|
31245
31247
|
function getSQLMetadata(e) {
|
|
31246
31248
|
return e.field(languageMetadataField);
|
|
31247
31249
|
}
|
|
@@ -31314,7 +31316,7 @@ ${c.sqlString}
|
|
|
31314
31316
|
var SQL_VALIDATION_DEBOUNCE_MS = 300;
|
|
31315
31317
|
function sqlValidationExtension() {
|
|
31316
31318
|
return ViewPlugin.define((e) => {
|
|
31317
|
-
let r, c = null, d = e.state.facet(cellIdState);
|
|
31319
|
+
let r, c = null, d = e.state.facet(cellIdState$1);
|
|
31318
31320
|
return {
|
|
31319
31321
|
update(e2) {
|
|
31320
31322
|
if (!e2.docChanged) return;
|
|
@@ -31956,7 +31958,7 @@ ${c.sqlString}
|
|
|
31956
31958
|
let { spanProps: f, inputProps: _ } = useAutoGrowInputProps(d), v;
|
|
31957
31959
|
r[1] === c.state ? v = r[2] : (v = c.state.field(languageAdapterState), r[1] = c.state, r[2] = v);
|
|
31958
31960
|
let y = v, S;
|
|
31959
|
-
r[3] === c.state ? S = r[4] : (S = c.state.facet(cellIdState), r[3] = c.state, r[4] = S);
|
|
31961
|
+
r[3] === c.state ? S = r[4] : (S = c.state.facet(cellIdState$1), r[3] = c.state, r[4] = S);
|
|
31960
31962
|
let w = S, E;
|
|
31961
31963
|
r[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)("div", {}), r[5] = E) : E = r[5];
|
|
31962
31964
|
let O = E, M = false, I;
|
|
@@ -32188,7 +32190,7 @@ ${c.sqlString}
|
|
|
32188
32190
|
})
|
|
32189
32191
|
}), r[98] = O, r[99] = y.type, r[100] = G, r[101] = q) : q = r[101], q;
|
|
32190
32192
|
};
|
|
32191
|
-
new Compartment();
|
|
32193
|
+
var languageCompartment = new Compartment();
|
|
32192
32194
|
const setLanguageAdapter = StateEffect.define(), languageAdapterState = StateField.define({
|
|
32193
32195
|
create() {
|
|
32194
32196
|
return LanguageAdapters.python;
|
|
@@ -32199,13 +32201,61 @@ ${c.sqlString}
|
|
|
32199
32201
|
},
|
|
32200
32202
|
provide: (e) => showPanel.from(e, (e2) => e2.type === "python" ? null : (e3) => createPanel(e3, LanguagePanelComponent))
|
|
32201
32203
|
});
|
|
32204
|
+
function updateLanguageAdapterAndCode({ view: e, nextLanguage: r, opts: c }) {
|
|
32205
|
+
let d = e.state.field(languageAdapterState), f = e.state.doc.toString(), _ = e.state.facet(completionConfigState), v = e.state.facet(hotkeysProviderState), y = e.state.facet(placeholderState), S = e.state.facet(cellIdState), w = e.state.facet(lspConfigState), E = e.state.field(languageMetadataField), O = e.state.selection.main.head, M;
|
|
32206
|
+
if (c.keepCodeAsIs) M = f, d.type !== r.type && (E = {
|
|
32207
|
+
...r.defaultMetadata
|
|
32208
|
+
});
|
|
32209
|
+
else {
|
|
32210
|
+
let [e2, c2] = d.transformOut(f, E), [_2, v2, y2] = r.transformIn(e2);
|
|
32211
|
+
O += c2, O -= v2, O = clamp(O, 0, _2.length), M = _2, E = y2;
|
|
32212
|
+
}
|
|
32213
|
+
e.dispatch({
|
|
32214
|
+
effects: [
|
|
32215
|
+
setLanguageAdapter.of(r),
|
|
32216
|
+
setLanguageMetadata.of(E),
|
|
32217
|
+
languageCompartment.reconfigure(r.getExtension(S, _, v, y, w)),
|
|
32218
|
+
historyCompartment.reconfigure([]),
|
|
32219
|
+
formattingChangeEffect.of(true)
|
|
32220
|
+
],
|
|
32221
|
+
changes: c.keepCodeAsIs ? void 0 : {
|
|
32222
|
+
from: 0,
|
|
32223
|
+
to: e.state.doc.length,
|
|
32224
|
+
insert: M
|
|
32225
|
+
},
|
|
32226
|
+
selection: c.keepCodeAsIs ? void 0 : EditorSelection.cursor(O)
|
|
32227
|
+
}), e.dispatch({
|
|
32228
|
+
effects: [
|
|
32229
|
+
historyCompartment.reconfigure([
|
|
32230
|
+
history()
|
|
32231
|
+
])
|
|
32232
|
+
]
|
|
32233
|
+
}), r.type === "sql" && initializeSQLDialect(e);
|
|
32234
|
+
}
|
|
32235
|
+
function languageAdapterFromCode(e) {
|
|
32236
|
+
return e ? LanguageAdapters.markdown.isSupported(e) ? LanguageAdapters.markdown : LanguageAdapters.sql.isSupported(e) ? LanguageAdapters.sql : LanguageAdapters.python : LanguageAdapters.python;
|
|
32237
|
+
}
|
|
32238
|
+
function switchLanguage(e, r) {
|
|
32239
|
+
e.state.field(languageAdapterState).type !== r.language && updateLanguageAdapterAndCode({
|
|
32240
|
+
view: e,
|
|
32241
|
+
nextLanguage: LanguageAdapters[r.language],
|
|
32242
|
+
opts: {
|
|
32243
|
+
keepCodeAsIs: r.keepCodeAsIs ?? false
|
|
32244
|
+
}
|
|
32245
|
+
});
|
|
32246
|
+
}
|
|
32202
32247
|
function getEditorCodeAsPython(e, r, c) {
|
|
32203
32248
|
let d = e.state.field(languageAdapterState), f = e.state.field(languageMetadataField), _ = e.state.doc.toString();
|
|
32204
32249
|
return r === void 0 ? d.transformOut(_, f)[0] : d.transformOut(_.slice(r, c), f)[0];
|
|
32205
32250
|
}
|
|
32206
32251
|
function updateEditorCodeFromPython(e, r) {
|
|
32207
|
-
let
|
|
32208
|
-
|
|
32252
|
+
let c = e.state.field(languageAdapterState), d = languageAdapterFromCode(r);
|
|
32253
|
+
d.type !== c.type && switchLanguage(e, {
|
|
32254
|
+
language: d.type,
|
|
32255
|
+
keepCodeAsIs: true
|
|
32256
|
+
});
|
|
32257
|
+
let [f] = e.state.field(languageAdapterState).transformIn(r);
|
|
32258
|
+
return replaceEditorContent(e, f), f;
|
|
32209
32259
|
}
|
|
32210
32260
|
function splitEditor(e) {
|
|
32211
32261
|
let r = e.state.selection.main.head, c = e.state.doc.toString(), d = c.length > 0 && c[r - 1] === "\n", f = c.length > 0 && c[r] === "\n", _ = d ? r - 1 : r, v = f ? r + 1 : r;
|
|
@@ -32214,30 +32264,6 @@ ${c.sqlString}
|
|
|
32214
32264
|
afterCursorCode: getEditorCodeAsPython(e, v)
|
|
32215
32265
|
};
|
|
32216
32266
|
}
|
|
32217
|
-
require_compiler_runtime();
|
|
32218
|
-
const hasRunAnyCellAtom = atom(false);
|
|
32219
|
-
function getInitialAppMode() {
|
|
32220
|
-
let e = store.get(initialModeAtom);
|
|
32221
|
-
return assertExists(e, "internal-error: initial mode not found"), invariant(e !== "present", "internal-error: initial mode cannot be 'present'"), e;
|
|
32222
|
-
}
|
|
32223
|
-
const viewStateAtom = atom({
|
|
32224
|
-
mode: isIslands() ? "read" : "not-set",
|
|
32225
|
-
cellAnchor: null
|
|
32226
|
-
}), initialModeAtom = atom(void 0), kioskModeAtom = atom(false);
|
|
32227
|
-
var sanitizeHtmlAtom = atom((e) => {
|
|
32228
|
-
let r = e(hasRunAnyCellAtom), c = e(autoInstantiateAtom);
|
|
32229
|
-
if (r || c) return false;
|
|
32230
|
-
let d = true;
|
|
32231
|
-
try {
|
|
32232
|
-
d = getInitialAppMode() === "read";
|
|
32233
|
-
} catch {
|
|
32234
|
-
return true;
|
|
32235
|
-
}
|
|
32236
|
-
return !d;
|
|
32237
|
-
});
|
|
32238
|
-
function useSanitizeHtml() {
|
|
32239
|
-
return useAtomValue(sanitizeHtmlAtom);
|
|
32240
|
-
}
|
|
32241
32267
|
var TEMPORARY_ATTRIBUTE = "data-temp-href-target";
|
|
32242
32268
|
purify.addHook("beforeSanitizeAttributes", (e) => {
|
|
32243
32269
|
e.tagName === "A" && (e.hasAttribute("target") || e.setAttribute("target", "_self"), e.hasAttribute("target") && e.setAttribute(TEMPORARY_ATTRIBUTE, e.getAttribute("target") || ""));
|
|
@@ -37087,7 +37113,10 @@ ${c.sqlString}
|
|
|
37087
37113
|
return (_a3 = r[e2]) == null ? void 0 : _a3.name;
|
|
37088
37114
|
}).filter(Boolean);
|
|
37089
37115
|
};
|
|
37090
|
-
splitAtom(selectAtom(notebookAtom, (e) => e.cellIds.inOrderIds.map((r) => e.cellData[r]))), atom((e) => e(notebookAtom).cellRuntime), atom((e) => notebookIsRunning(e(notebookAtom))), atom((e) =>
|
|
37116
|
+
splitAtom(selectAtom(notebookAtom, (e) => e.cellIds.inOrderIds.map((r) => e.cellData[r]))), atom((e) => e(notebookAtom).cellRuntime), atom((e) => notebookIsRunning(e(notebookAtom))), atom((e) => {
|
|
37117
|
+
let { cellRuntime: r } = e(notebookAtom);
|
|
37118
|
+
return Object.entries(r).every(([e2, r2]) => r2.status !== "running" || e2 === "__scratch__");
|
|
37119
|
+
}), atom((e) => notebookQueueOrRunningCount(e(notebookAtom))), atom((e) => e(notebookAtom).cellIds.colLength), atom((e) => e(notebookAtom).cellIds.idLength > 0), atom((e) => e(notebookAtom).cellIds.getColumnIds());
|
|
37091
37120
|
const cellDataAtom = atomFamily((e) => atom((r) => r(notebookAtom).cellData[e]));
|
|
37092
37121
|
var cellRuntimeAtom = atomFamily((e) => atom((r) => r(notebookAtom).cellRuntime[e]));
|
|
37093
37122
|
const cellHandleAtom = atomFamily((e) => atom((r) => r(notebookAtom).cellHandles[e]));
|
|
@@ -37118,9 +37147,9 @@ ${c.sqlString}
|
|
|
37118
37147
|
Logger.debug(`Doc lookup failed for "${e}"`, r2);
|
|
37119
37148
|
}
|
|
37120
37149
|
}
|
|
37121
|
-
var import_compiler_runtime$
|
|
37150
|
+
var import_compiler_runtime$152 = require_compiler_runtime();
|
|
37122
37151
|
const DocHoverTarget = (e) => {
|
|
37123
|
-
let r = (0, import_compiler_runtime$
|
|
37152
|
+
let r = (0, import_compiler_runtime$152.c)(8), { qualifiedName: c, children: d } = e, f;
|
|
37124
37153
|
r[0] === c ? f = r[1] : (f = () => {
|
|
37125
37154
|
requestOutputDocumentation(c);
|
|
37126
37155
|
}, r[0] = c, r[1] = f);
|
|
@@ -37133,6 +37162,30 @@ ${c.sqlString}
|
|
|
37133
37162
|
children: d
|
|
37134
37163
|
}), r[4] = d, r[5] = _, r[6] = v, r[7] = y) : y = r[7], y;
|
|
37135
37164
|
};
|
|
37165
|
+
require_compiler_runtime();
|
|
37166
|
+
const hasRunAnyCellAtom = atom(false);
|
|
37167
|
+
function getInitialAppMode() {
|
|
37168
|
+
let e = store.get(initialModeAtom);
|
|
37169
|
+
return assertExists(e, "internal-error: initial mode not found"), invariant(e !== "present", "internal-error: initial mode cannot be 'present'"), e;
|
|
37170
|
+
}
|
|
37171
|
+
const viewStateAtom = atom({
|
|
37172
|
+
mode: isIslands() ? "read" : "not-set",
|
|
37173
|
+
cellAnchor: null
|
|
37174
|
+
}), initialModeAtom = atom(void 0), kioskModeAtom = atom(false);
|
|
37175
|
+
var sanitizeHtmlAtom = atom((e) => {
|
|
37176
|
+
let r = e(hasRunAnyCellAtom), c = e(autoInstantiateAtom);
|
|
37177
|
+
if (r || c) return false;
|
|
37178
|
+
let d = true;
|
|
37179
|
+
try {
|
|
37180
|
+
d = getInitialAppMode() === "read";
|
|
37181
|
+
} catch {
|
|
37182
|
+
return true;
|
|
37183
|
+
}
|
|
37184
|
+
return !d;
|
|
37185
|
+
});
|
|
37186
|
+
function useSanitizeHtml() {
|
|
37187
|
+
return useAtomValue(sanitizeHtmlAtom);
|
|
37188
|
+
}
|
|
37136
37189
|
var import_compiler_runtime$150 = require_compiler_runtime(), replaceValidTags = (e) => {
|
|
37137
37190
|
if (e instanceof import_lib$1.Element && !/^[A-Za-z][\w-]*$/.test(e.name)) return import_react.createElement(import_react.Fragment);
|
|
37138
37191
|
}, removeWrappingBodyTags = (e, r) => {
|
|
@@ -55448,6 +55501,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
55448
55501
|
fallback: f2,
|
|
55449
55502
|
children: (0, import_jsx_runtime.jsx)(LazyVegaEmbed, {
|
|
55450
55503
|
spec: e2,
|
|
55504
|
+
"data-container-width": "container",
|
|
55451
55505
|
options: y2,
|
|
55452
55506
|
style: S2
|
|
55453
55507
|
})
|
|
@@ -56357,7 +56411,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
56357
56411
|
hasConsoleOutput: (v == null ? void 0 : v.consoleOutputs) != null
|
|
56358
56412
|
};
|
|
56359
56413
|
}
|
|
56360
|
-
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-
|
|
56414
|
+
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-DlsjUw_l.js"));
|
|
56361
56415
|
var import_compiler_runtime$117 = require_compiler_runtime(), extensions = [
|
|
56362
56416
|
EditorView.lineWrapping
|
|
56363
56417
|
];
|
|
@@ -60529,7 +60583,7 @@ ${O}`,
|
|
|
60529
60583
|
}
|
|
60530
60584
|
var import_compiler_runtime$102 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
|
|
60531
60585
|
const OutputRenderer = (0, import_react.memo)((e) => {
|
|
60532
|
-
let r = (0, import_compiler_runtime$102.c)(
|
|
60586
|
+
let r = (0, import_compiler_runtime$102.c)(54), { message: c, onRefactorWithAI: d, cellId: f, wrapText: _, metadata: v, renderFallback: y } = e, { theme: S } = useTheme(), w;
|
|
60533
60587
|
bb0: {
|
|
60534
60588
|
let e2 = c.data;
|
|
60535
60589
|
switch (c.mimetype) {
|
|
@@ -60649,38 +60703,41 @@ ${O}`,
|
|
|
60649
60703
|
case "application/vnd.vega.v6+json": {
|
|
60650
60704
|
let e2;
|
|
60651
60705
|
r[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(ChartLoadingState, {}), r[34] = e2) : e2 = r[34];
|
|
60652
|
-
let c2 = E, d2
|
|
60653
|
-
r[35] ===
|
|
60654
|
-
|
|
60706
|
+
let c2 = E, d2;
|
|
60707
|
+
r[35] === E ? d2 = r[36] : (d2 = getContainerWidth(E), r[35] = E, r[36] = d2);
|
|
60708
|
+
let f2 = S === "dark" ? "dark" : void 0, _2;
|
|
60709
|
+
r[37] === f2 ? _2 = r[38] : (_2 = {
|
|
60710
|
+
theme: f2,
|
|
60655
60711
|
mode: "vega-lite",
|
|
60656
60712
|
tooltip: tooltipHandler.call,
|
|
60657
60713
|
renderer: "canvas"
|
|
60658
|
-
}, r[
|
|
60659
|
-
let
|
|
60660
|
-
return r[
|
|
60714
|
+
}, r[37] = f2, r[38] = _2);
|
|
60715
|
+
let v2;
|
|
60716
|
+
return r[39] !== c2 || r[40] !== d2 || r[41] !== _2 ? (v2 = (0, import_jsx_runtime.jsx)(import_react.Suspense, {
|
|
60661
60717
|
fallback: e2,
|
|
60662
60718
|
children: (0, import_jsx_runtime.jsx)(LazyVegaEmbed, {
|
|
60663
60719
|
spec: c2,
|
|
60664
|
-
|
|
60720
|
+
"data-container-width": d2,
|
|
60721
|
+
options: _2
|
|
60665
60722
|
})
|
|
60666
|
-
}), r[
|
|
60723
|
+
}), r[39] = c2, r[40] = d2, r[41] = _2, r[42] = v2) : v2 = r[42], v2;
|
|
60667
60724
|
}
|
|
60668
60725
|
case "application/vnd.marimo+mimebundle": {
|
|
60669
60726
|
let e2 = E, c2;
|
|
60670
|
-
return r[
|
|
60727
|
+
return r[43] !== O || r[44] !== e2 ? (c2 = (0, import_jsx_runtime.jsx)(MimeBundleOutputRenderer, {
|
|
60671
60728
|
channel: O,
|
|
60672
60729
|
data: e2
|
|
60673
|
-
}), r[
|
|
60730
|
+
}), r[43] = O, r[44] = e2, r[45] = c2) : c2 = r[45], c2;
|
|
60674
60731
|
}
|
|
60675
60732
|
case "application/vnd.jupyter.widget-view+json": {
|
|
60676
60733
|
let e2;
|
|
60677
|
-
r[
|
|
60734
|
+
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("b", {
|
|
60678
60735
|
children: "Jupyter widgets are not supported in marimo."
|
|
60679
|
-
}), r[
|
|
60736
|
+
}), r[46] = e2) : e2 = r[46];
|
|
60680
60737
|
let c2;
|
|
60681
|
-
r[
|
|
60738
|
+
r[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c2 = (0, import_jsx_runtime.jsx)("br", {}), r[47] = c2) : c2 = r[47];
|
|
60682
60739
|
let d2;
|
|
60683
|
-
return r[
|
|
60740
|
+
return r[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d2 = (0, import_jsx_runtime.jsxs)(Banner, {
|
|
60684
60741
|
kind: "warn",
|
|
60685
60742
|
children: [
|
|
60686
60743
|
e2,
|
|
@@ -60697,21 +60754,21 @@ ${O}`,
|
|
|
60697
60754
|
}),
|
|
60698
60755
|
"."
|
|
60699
60756
|
]
|
|
60700
|
-
}), r[
|
|
60757
|
+
}), r[48] = d2) : d2 = r[48], d2;
|
|
60701
60758
|
}
|
|
60702
60759
|
default: {
|
|
60703
60760
|
if (logNever(I), y) {
|
|
60704
60761
|
let e3;
|
|
60705
|
-
return r[
|
|
60762
|
+
return r[49] !== I || r[50] !== y ? (e3 = y(I), r[49] = I, r[50] = y, r[51] = e3) : e3 = r[51], e3;
|
|
60706
60763
|
}
|
|
60707
60764
|
let e2;
|
|
60708
|
-
return r[
|
|
60765
|
+
return r[52] === I ? e2 = r[53] : (e2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
60709
60766
|
className: "text-destructive",
|
|
60710
60767
|
children: [
|
|
60711
60768
|
"Unsupported mimetype: ",
|
|
60712
60769
|
I
|
|
60713
60770
|
]
|
|
60714
|
-
}), r[
|
|
60771
|
+
}), r[52] = I, r[53] = e2), e2;
|
|
60715
60772
|
}
|
|
60716
60773
|
}
|
|
60717
60774
|
});
|
|
@@ -70720,7 +70777,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
70720
70777
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
70721
70778
|
}
|
|
70722
70779
|
}
|
|
70723
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.21.
|
|
70780
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.21.2-dev0"), showCodeInRunModeAtom = atom(true);
|
|
70724
70781
|
atom(null);
|
|
70725
70782
|
var import_compiler_runtime$89 = require_compiler_runtime();
|
|
70726
70783
|
function useKeydownOnElement(e, r) {
|
|
@@ -72279,10 +72336,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72279
72336
|
"time",
|
|
72280
72337
|
"unknown"
|
|
72281
72338
|
];
|
|
72282
|
-
|
|
72283
|
-
return !e || Object.keys(e).length === 0 ? "auto" : Objects.mapValues(e, (e2) => e2 === "date" || e2 === "time" ? "string" : e2 === "datetime" ? "date" : e2);
|
|
72284
|
-
}
|
|
72285
|
-
var import_compiler_runtime$82 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-DqxJOnJk.js").then(async (m2) => {
|
|
72339
|
+
var import_compiler_runtime$82 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-pZyd9UJ_.js").then(async (m2) => {
|
|
72286
72340
|
await m2.__tla;
|
|
72287
72341
|
return m2;
|
|
72288
72342
|
}));
|
|
@@ -78032,6 +78086,7 @@ ${c}
|
|
|
78032
78086
|
fallback: (0, import_jsx_runtime.jsx)(LoadingChart$1, {}),
|
|
78033
78087
|
children: (0, import_jsx_runtime.jsx)(LazyVegaEmbed, {
|
|
78034
78088
|
spec: r2,
|
|
78089
|
+
"data-container-width": getContainerWidth(r2),
|
|
78035
78090
|
options: {
|
|
78036
78091
|
theme: _ === "dark" ? "dark" : void 0,
|
|
78037
78092
|
height: f,
|
|
@@ -78701,17 +78756,19 @@ ${c}
|
|
|
78701
78756
|
})
|
|
78702
78757
|
});
|
|
78703
78758
|
function renderChart(e, r) {
|
|
78759
|
+
let c = (e2) => ({
|
|
78760
|
+
...e2,
|
|
78761
|
+
background: "transparent",
|
|
78762
|
+
config: {
|
|
78763
|
+
...e2.config,
|
|
78764
|
+
background: "transparent"
|
|
78765
|
+
}
|
|
78766
|
+
});
|
|
78704
78767
|
return (0, import_jsx_runtime.jsx)(import_react.Suspense, {
|
|
78705
78768
|
fallback: LoadingChart,
|
|
78706
78769
|
children: (0, import_jsx_runtime.jsx)(LazyVegaEmbed, {
|
|
78707
|
-
|
|
78708
|
-
|
|
78709
|
-
background: "transparent",
|
|
78710
|
-
config: {
|
|
78711
|
-
...e2.config,
|
|
78712
|
-
background: "transparent"
|
|
78713
|
-
}
|
|
78714
|
-
}))(JSON.parse(e)),
|
|
78770
|
+
"data-container-width": "container",
|
|
78771
|
+
spec: c(JSON.parse(e)),
|
|
78715
78772
|
options: {
|
|
78716
78773
|
theme: r === "dark" ? "dark" : "vox",
|
|
78717
78774
|
height: 100,
|
|
@@ -82375,7 +82432,7 @@ ${c}
|
|
|
82375
82432
|
fullWidth: y,
|
|
82376
82433
|
children: G
|
|
82377
82434
|
}), r[19] = y, r[20] = S, r[21] = c, r[22] = G, r[23] = q) : q = r[23], q;
|
|
82378
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
82435
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-D0GoOd_c.js"));
|
|
82379
82436
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
|
|
82380
82437
|
label: string().nullish(),
|
|
82381
82438
|
data: string()
|
|
@@ -93462,7 +93519,7 @@ ${c}
|
|
|
93462
93519
|
return true;
|
|
93463
93520
|
}
|
|
93464
93521
|
}
|
|
93465
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
93522
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-CuPTCRp5.js")), VegaPlugin = class {
|
|
93466
93523
|
constructor() {
|
|
93467
93524
|
__publicField(this, "tagName", "marimo-vega");
|
|
93468
93525
|
__publicField(this, "validator", object$1({
|
|
@@ -93603,7 +93660,7 @@ ${c}
|
|
|
93603
93660
|
children: e.children
|
|
93604
93661
|
});
|
|
93605
93662
|
}
|
|
93606
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-
|
|
93663
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-GkilRW21.js"));
|
|
93607
93664
|
const DownloadPlugin = createPlugin("marimo-download").withData(object$1({
|
|
93608
93665
|
data: string(),
|
|
93609
93666
|
disabled: boolean().default(false),
|
|
@@ -93785,7 +93842,7 @@ ${c}
|
|
|
93785
93842
|
diagram: e.data.diagram
|
|
93786
93843
|
});
|
|
93787
93844
|
}
|
|
93788
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
93845
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-CrKqsE2j.js").then(async (m2) => {
|
|
93789
93846
|
await m2.__tla;
|
|
93790
93847
|
return m2;
|
|
93791
93848
|
})), import_compiler_runtime$18 = require_compiler_runtime();
|
|
@@ -99231,7 +99288,7 @@ ${c}
|
|
|
99231
99288
|
0
|
|
99232
99289
|
], DRAG_HANDLE = "grid-drag-handle";
|
|
99233
99290
|
const GridLayoutRenderer = (e) => {
|
|
99234
|
-
let r = (0, import_compiler_runtime$9.c)(
|
|
99291
|
+
let r = (0, import_compiler_runtime$9.c)(161), { layout: c, setLayout: d, cells: f, mode: _ } = e, v = _ === "read", y;
|
|
99235
99292
|
r[0] === c.cells ? y = r[1] : (y = new Set(c.cells.map(_temp$4)), r[0] = c.cells, r[1] = y);
|
|
99236
99293
|
let S = y, [w, E] = (0, import_react.useState)(null), [O, M] = (0, import_react.useState)(false), I;
|
|
99237
99294
|
r[2] === c.columns ? I = r[3] : (I = {
|
|
@@ -99274,14 +99331,16 @@ ${c}
|
|
|
99274
99331
|
r[60] !== I2 || r[61] !== G2 || r[62] !== q2 ? (UY = cn("w-full mx-auto bg-background flex-1 min-h-full", I2, G2, q2), r[60] = I2, r[61] = G2, r[62] = q2, r[63] = UY) : UY = r[63], r[64] === v ? WY = r[65] : (WY = v ? [
|
|
99275
99332
|
20,
|
|
99276
99333
|
20
|
|
99277
|
-
] : void 0, r[64] = v, r[65] = WY), GY = MARGIN, KY = false, qY = null, JY = true, YY = c.rowHeight, r[66] !==
|
|
99278
|
-
|
|
99279
|
-
|
|
99280
|
-
|
|
99334
|
+
] : void 0, r[64] = v, r[65] = WY), GY = MARGIN, KY = false, qY = null, JY = true, YY = c.rowHeight, r[66] !== v || r[67] !== c || r[68] !== d ? (XY = (e3) => {
|
|
99335
|
+
v || d({
|
|
99336
|
+
...c,
|
|
99337
|
+
cells: e3
|
|
99338
|
+
});
|
|
99339
|
+
}, r[66] = v, r[67] = c, r[68] = d, r[69] = XY) : XY = r[69], r[70] === w ? ZY = r[71] : (ZY = w ? {
|
|
99281
99340
|
i: w.i,
|
|
99282
99341
|
w: w.w || 2,
|
|
99283
99342
|
h: w.h || 2
|
|
99284
|
-
} : void 0, r[
|
|
99343
|
+
} : void 0, r[70] = w, r[71] = ZY), r[72] !== LY || r[73] !== c || r[74] !== d ? (QY = (e3, r2, f2) => {
|
|
99285
99344
|
LY.onDragStop(), r2 && d({
|
|
99286
99345
|
...c,
|
|
99287
99346
|
cells: [
|
|
@@ -99289,15 +99348,15 @@ ${c}
|
|
|
99289
99348
|
r2
|
|
99290
99349
|
]
|
|
99291
99350
|
});
|
|
99292
|
-
}, r[
|
|
99351
|
+
}, r[72] = LY, r[73] = c, r[74] = d, r[75] = QY) : QY = r[75], r[76] === LY ? ($Y = r[77], eX = r[78], tX = r[79]) : ($Y = (e3, r2, c2, d2, f2) => {
|
|
99293
99352
|
LY.onDragStart(f2);
|
|
99294
99353
|
}, eX = (e3, r2, c2, d2, f2) => {
|
|
99295
99354
|
LY.onDragMove(f2);
|
|
99296
99355
|
}, tX = () => {
|
|
99297
99356
|
LY.onDragStop();
|
|
99298
|
-
}, r[
|
|
99357
|
+
}, r[76] = LY, r[77] = $Y, r[78] = eX, r[79] = tX), nX = _temp3$2, rX = zY, iX = zY, aX = zY, oX = zY ? `.${DRAG_HANDLE}` : "noop";
|
|
99299
99358
|
let IY2;
|
|
99300
|
-
r[
|
|
99359
|
+
r[80] === S ? IY2 = r[81] : (IY2 = (e3) => S.has(e3.id), r[80] = S, r[81] = IY2), sX = f.filter(IY2).map((r2) => {
|
|
99301
99360
|
let f2 = e2.get(r2.id), v2 = c.scrollableCells.has(r2.id) ?? false, y3 = c.cellSide.get(r2.id), S2 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
99302
99361
|
code: r2.code,
|
|
99303
99362
|
mode: _,
|
|
@@ -99329,7 +99388,7 @@ ${c}
|
|
|
99329
99388
|
}), r[10] = f, r[11] = z, r[12] = LY, r[13] = w, r[14] = zY, r[15] = S, r[16] = RY, r[17] = v, r[18] = c, r[19] = _, r[20] = d, r[21] = BY, r[22] = VY, r[23] = HY, r[24] = UY, r[25] = WY, r[26] = GY, r[27] = KY, r[28] = qY, r[29] = JY, r[30] = YY, r[31] = XY, r[32] = ZY, r[33] = QY, r[34] = $Y, r[35] = eX, r[36] = tX, r[37] = nX, r[38] = rX, r[39] = iX, r[40] = aX, r[41] = oX, r[42] = sX, r[43] = cX, r[44] = lX, r[45] = uX, r[46] = dX;
|
|
99330
99389
|
} else BY = r[21], VY = r[22], HY = r[23], UY = r[24], WY = r[25], GY = r[26], KY = r[27], qY = r[28], JY = r[29], YY = r[30], XY = r[31], ZY = r[32], QY = r[33], $Y = r[34], eX = r[35], tX = r[36], nX = r[37], rX = r[38], iX = r[39], aX = r[40], oX = r[41], sX = r[42], cX = r[43], lX = r[44], uX = r[45], dX = r[46];
|
|
99331
99390
|
let fX;
|
|
99332
|
-
r[
|
|
99391
|
+
r[82] !== BY || r[83] !== HY || r[84] !== UY || r[85] !== WY || r[86] !== GY || r[87] !== KY || r[88] !== qY || r[89] !== JY || r[90] !== YY || r[91] !== XY || r[92] !== ZY || r[93] !== QY || r[94] !== $Y || r[95] !== eX || r[96] !== tX || r[97] !== nX || r[98] !== rX || r[99] !== iX || r[100] !== aX || r[101] !== oX || r[102] !== sX || r[103] !== cX || r[104] !== lX || r[105] !== uX || r[106] !== dX ? (fX = (0, import_jsx_runtime.jsx)(BY, {
|
|
99333
99392
|
breakpoint: cX,
|
|
99334
99393
|
layouts: lX,
|
|
99335
99394
|
style: uX,
|
|
@@ -99354,28 +99413,28 @@ ${c}
|
|
|
99354
99413
|
isResizable: aX,
|
|
99355
99414
|
draggableHandle: oX,
|
|
99356
99415
|
children: sX
|
|
99357
|
-
}), r[
|
|
99416
|
+
}), r[82] = BY, r[83] = HY, r[84] = UY, r[85] = WY, r[86] = GY, r[87] = KY, r[88] = qY, r[89] = JY, r[90] = YY, r[91] = XY, r[92] = ZY, r[93] = QY, r[94] = $Y, r[95] = eX, r[96] = tX, r[97] = nX, r[98] = rX, r[99] = iX, r[100] = aX, r[101] = oX, r[102] = sX, r[103] = cX, r[104] = lX, r[105] = uX, r[106] = dX, r[107] = fX) : fX = r[107];
|
|
99358
99417
|
let pX = fX, mX, hX, gX, _X, vX, yX, bX;
|
|
99359
|
-
if (r[
|
|
99418
|
+
if (r[108] !== f || r[109] !== pX || r[110] !== S || r[111] !== O || r[112] !== v || r[113] !== c || r[114] !== _ || r[115] !== d || r[116] !== VY) {
|
|
99360
99419
|
bX = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
99361
99420
|
bb0: {
|
|
99362
99421
|
let e2;
|
|
99363
|
-
r[
|
|
99422
|
+
r[125] === S ? e2 = r[126] : (e2 = (e3) => !S.has(e3.id), r[125] = S, r[126] = e2);
|
|
99364
99423
|
let y2 = f.filter(e2);
|
|
99365
99424
|
if (v) {
|
|
99366
99425
|
if (c.bordered) {
|
|
99367
99426
|
let e4;
|
|
99368
|
-
r[
|
|
99427
|
+
r[127] !== pX || r[128] !== VY ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
99369
99428
|
className: "flex flex-1 flex-col items-center",
|
|
99370
99429
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
99371
99430
|
style: VY,
|
|
99372
99431
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
99373
99432
|
children: pX
|
|
99374
99433
|
})
|
|
99375
|
-
}), r[
|
|
99434
|
+
}), r[127] = pX, r[128] = VY, r[129] = e4) : e4 = r[129], pX = e4;
|
|
99376
99435
|
}
|
|
99377
99436
|
let e3 = y2.filter(_temp4$2), d2;
|
|
99378
|
-
r[
|
|
99437
|
+
r[130] === _ ? d2 = r[131] : (d2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
99379
99438
|
code: e4.code,
|
|
99380
99439
|
mode: _,
|
|
99381
99440
|
cellId: e4.id,
|
|
@@ -99383,7 +99442,7 @@ ${c}
|
|
|
99383
99442
|
status: e4.status,
|
|
99384
99443
|
isScrollable: false,
|
|
99385
99444
|
hidden: false
|
|
99386
|
-
}, e4.id), r[
|
|
99445
|
+
}, e4.id), r[130] = _, r[131] = d2), bX = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
99387
99446
|
children: [
|
|
99388
99447
|
pX,
|
|
99389
99448
|
(0, import_jsx_runtime.jsx)("div", {
|
|
@@ -99396,33 +99455,33 @@ ${c}
|
|
|
99396
99455
|
}
|
|
99397
99456
|
if (c.bordered) {
|
|
99398
99457
|
let e3;
|
|
99399
|
-
r[
|
|
99458
|
+
r[132] === pX ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
99400
99459
|
className: "h-full overflow-auto",
|
|
99401
99460
|
children: pX
|
|
99402
|
-
}), r[
|
|
99461
|
+
}), r[132] = pX, r[133] = e3);
|
|
99403
99462
|
let c2;
|
|
99404
|
-
r[
|
|
99463
|
+
r[134] !== VY || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
99405
99464
|
style: VY,
|
|
99406
99465
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
99407
99466
|
children: e3
|
|
99408
|
-
}), r[
|
|
99467
|
+
}), r[134] = VY, r[135] = e3, r[136] = c2) : c2 = r[136], pX = c2;
|
|
99409
99468
|
}
|
|
99410
|
-
r[
|
|
99469
|
+
r[137] !== O || r[138] !== c || r[139] !== d ? (yX = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
99411
99470
|
layout: c,
|
|
99412
99471
|
setLayout: d,
|
|
99413
99472
|
isLocked: O,
|
|
99414
99473
|
setIsLocked: M
|
|
99415
|
-
}), r[
|
|
99474
|
+
}), r[137] = O, r[138] = c, r[139] = d, r[140] = yX) : yX = r[140];
|
|
99416
99475
|
let w2;
|
|
99417
|
-
r[
|
|
99476
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_X = cn("relative flex z-10 flex-1 overflow-hidden"), w2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = _X, r[142] = w2) : (_X = r[141], w2 = r[142]), r[143] === pX ? vX = r[144] : (vX = (0, import_jsx_runtime.jsx)("div", {
|
|
99418
99477
|
className: w2,
|
|
99419
99478
|
children: pX
|
|
99420
|
-
}), r[
|
|
99479
|
+
}), r[143] = pX, r[144] = vX), mX = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hX = (0, import_jsx_runtime.jsx)("div", {
|
|
99421
99480
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
99422
99481
|
children: "Outputs"
|
|
99423
|
-
}), r[
|
|
99482
|
+
}), r[145] = hX) : hX = r[145];
|
|
99424
99483
|
let I2;
|
|
99425
|
-
r[
|
|
99484
|
+
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== _ ? (I2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
99426
99485
|
draggable: true,
|
|
99427
99486
|
unselectable: "on",
|
|
99428
99487
|
"data-cell-id": e3.id,
|
|
@@ -99445,34 +99504,34 @@ ${c}
|
|
|
99445
99504
|
status: e3.status,
|
|
99446
99505
|
hidden: false
|
|
99447
99506
|
})
|
|
99448
|
-
}, e3.id), r[
|
|
99507
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = _, r[149] = I2) : I2 = r[149], gX = y2.map(I2);
|
|
99449
99508
|
}
|
|
99450
|
-
r[
|
|
99451
|
-
} else mX = r[
|
|
99509
|
+
r[108] = f, r[109] = pX, r[110] = S, r[111] = O, r[112] = v, r[113] = c, r[114] = _, r[115] = d, r[116] = VY, r[117] = mX, r[118] = hX, r[119] = gX, r[120] = _X, r[121] = vX, r[122] = yX, r[123] = bX, r[124] = pX;
|
|
99510
|
+
} else mX = r[117], hX = r[118], gX = r[119], _X = r[120], vX = r[121], yX = r[122], bX = r[123], pX = r[124];
|
|
99452
99511
|
if (bX !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return bX;
|
|
99453
99512
|
let xX;
|
|
99454
|
-
r[
|
|
99513
|
+
r[150] !== mX || r[151] !== hX || r[152] !== gX ? (xX = (0, import_jsx_runtime.jsxs)("div", {
|
|
99455
99514
|
className: mX,
|
|
99456
99515
|
children: [
|
|
99457
99516
|
hX,
|
|
99458
99517
|
gX
|
|
99459
99518
|
]
|
|
99460
|
-
}), r[
|
|
99519
|
+
}), r[150] = mX, r[151] = hX, r[152] = gX, r[153] = xX) : xX = r[153];
|
|
99461
99520
|
let SX;
|
|
99462
|
-
r[
|
|
99521
|
+
r[154] !== _X || r[155] !== vX || r[156] !== xX ? (SX = (0, import_jsx_runtime.jsxs)("div", {
|
|
99463
99522
|
className: _X,
|
|
99464
99523
|
children: [
|
|
99465
99524
|
vX,
|
|
99466
99525
|
xX
|
|
99467
99526
|
]
|
|
99468
|
-
}), r[
|
|
99527
|
+
}), r[154] = _X, r[155] = vX, r[156] = xX, r[157] = SX) : SX = r[157];
|
|
99469
99528
|
let CX;
|
|
99470
|
-
return r[
|
|
99529
|
+
return r[158] !== yX || r[159] !== SX ? (CX = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
99471
99530
|
children: [
|
|
99472
99531
|
yX,
|
|
99473
99532
|
SX
|
|
99474
99533
|
]
|
|
99475
|
-
}), r[
|
|
99534
|
+
}), r[158] = yX, r[159] = SX, r[160] = CX) : CX = r[160], CX;
|
|
99476
99535
|
};
|
|
99477
99536
|
var GridCell = (0, import_react.memo)((e) => {
|
|
99478
99537
|
let r = (0, import_compiler_runtime$9.c)(20), { output: c, cellId: d, status: f, mode: _, code: v, hidden: y, isScrollable: S, side: w, className: E } = e, O;
|
|
@@ -99903,7 +99962,7 @@ ${c}
|
|
|
99903
99962
|
cells: []
|
|
99904
99963
|
})
|
|
99905
99964
|
};
|
|
99906
|
-
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-
|
|
99965
|
+
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-GkilRW21.js"));
|
|
99907
99966
|
const SlidesLayoutRenderer = (e) => {
|
|
99908
99967
|
let r = (0, import_compiler_runtime$8.c)(11), { cells: c, mode: d } = e, f = d === "read", _;
|
|
99909
99968
|
if (r[0] !== c || r[1] !== d) {
|