@marimo-team/islands 0.23.10-dev8 → 0.23.10
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-CyV83R2m.js → ConnectedDataExplorerComponent-Z3RP7Vmm.js} +31 -31
- package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
- package/dist/{any-language-editor-CiES2a2h.js → any-language-editor-CAgFD4Kd.js} +20 -20
- package/dist/assets/__vite-browser-external-eshhtsgZ.js +1 -0
- package/dist/assets/worker-CC0Oul9k.js +73 -0
- package/dist/{chat-ui-K84W5ecY.js → chat-ui-C4-GMW9y.js} +77 -77
- package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BNjes6Yx.js → chunk-5FQGJX7Z-BbqSm5gU.js} +1227 -1222
- package/dist/{code-block-37QAKDTI-m92Yc8pv.js → code-block-37QAKDTI-O6IH6wAi.js} +1 -1
- package/dist/{code-visibility-ChnpTxqU.js → code-visibility-DrFozVlm.js} +1943 -1223
- package/dist/{copy-5jQ_kGE1.js → copy-UqRYxiOg.js} +1 -1
- package/dist/dist-7QfXoMdB.js +5 -0
- package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
- package/dist/dist-BEXXyZig.js +5 -0
- package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
- package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
- package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
- package/dist/dist-BYj57OV4.js +5 -0
- package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
- package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
- package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
- package/dist/dist-BlSvQzNr.js +5 -0
- package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
- package/dist/dist-CCBlxAgS.js +8 -0
- package/dist/dist-CIDTVIUf.js +5 -0
- package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
- package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
- package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
- package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
- package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
- package/dist/dist-CqQyhAM8.js +8 -0
- package/dist/dist-CwRu2Xzh.js +5 -0
- package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
- package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
- package/dist/dist-D8CDTVgf.js +6 -0
- package/dist/dist-D8DNB0nO.js +8 -0
- package/dist/dist-DL6N_q-A.js +5 -0
- package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
- package/dist/dist-DOFbNV_b.js +8 -0
- package/dist/dist-DPrYzMY0.js +6 -0
- package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
- package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
- package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
- package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
- package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
- package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
- package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
- package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
- package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
- package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
- package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
- package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
- package/dist/dist-cdmMjgsn.js +5 -0
- package/dist/dist-hT4QzYX-.js +1247 -0
- package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
- package/dist/{error-banner-5bz0L9hS.js → error-banner-CJXYJ6Sb.js} +11 -6
- package/dist/esm-BaH2eg5-.js +1171 -0
- package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
- package/dist/{extends-CkydH1Q5.js → extends-D_hDsj6R.js} +4 -4
- package/dist/files/wasm-intro.py +11 -8
- package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
- package/dist/{glide-data-editor-CgIxTzAP.js → glide-data-editor-BPkCPs7L.js} +255 -255
- package/dist/{html-to-image-B93KtAVY.js → html-to-image-BwfcJJxA.js} +2412 -2282
- package/dist/{input-_2sjvfne.js → input-OdWHkobi.js} +263 -245
- package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
- package/dist/main.js +7630 -7558
- package/dist/{mermaid-4DMBBIKO-DIdL224_.js → mermaid-4DMBBIKO-Eg3D4FVz.js} +1 -1
- package/dist/{mermaid-lXOw5Py9.js → mermaid-BotvIKg9.js} +4 -4
- package/dist/{process-output-BOXi9fnS.js → process-output-DsloEDna.js} +3 -3
- package/dist/{reveal-component-OrljHylW.js → reveal-component-3YQBHWuD.js} +698 -620
- package/dist/{spec-B96zNUEA.js → spec-X7FwLJni.js} +4 -4
- package/dist/{strings-Bu3vlb6W.js → strings-J57tzLr3.js} +47 -46
- package/dist/style.css +1 -1
- package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
- package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
- package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
- package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
- package/dist/{useDateFormatter-BA4FCquG.js → useDateFormatter-QB-3MpYr.js} +2 -2
- package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
- package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
- package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
- package/dist/{vega-component-Dq-SH463.js → vega-component-DGPUhbDs.js} +8 -8
- package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
- package/package.json +4 -3
- package/src/__tests__/setup.ts +16 -0
- package/src/components/chat/chat-display.tsx +2 -2
- package/src/components/data-table/TableBottomBar.tsx +1 -15
- package/src/components/data-table/TableTopBar.tsx +8 -13
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +6 -12
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +227 -0
- package/src/components/data-table/column-visibility-dropdown.tsx +204 -0
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/data-table/filter-by-values-picker.tsx +39 -17
- package/src/components/data-table/filter-pills.tsx +1 -1
- package/src/components/datasources/__tests__/filter-empty.test.ts +183 -0
- package/src/components/datasources/datasources.tsx +92 -3
- package/src/components/editor/cell/code/cell-editor.tsx +70 -32
- package/src/components/editor/cell/code/code-placeholder.css +18 -0
- package/src/components/editor/cell/code/code-placeholder.tsx +47 -0
- package/src/components/editor/cell/code/language-toggle.tsx +7 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
- package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +9 -2
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +62 -27
- package/src/components/editor/connections/storage/add-storage-form.tsx +5 -1
- package/src/components/editor/connections/storage/as-code.ts +20 -6
- package/src/components/editor/documentation.css +35 -0
- package/src/components/editor/file-tree/file-explorer.tsx +8 -18
- package/src/components/editor/file-tree/tree-actions.tsx +46 -1
- package/src/components/editor/notebook-cell.tsx +3 -3
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
- package/src/components/editor/renderers/slides-layout/types.ts +1 -0
- package/src/components/markdown/__tests__/markdown-renderer.test.tsx +43 -0
- package/src/components/markdown/markdown-renderer.tsx +24 -1
- package/src/components/slides/__tests__/minimap-actions.test.tsx +166 -0
- package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
- package/src/components/slides/minimap.tsx +127 -10
- package/src/components/slides/reveal-component.tsx +287 -61
- package/src/components/slides/slide-cell-view.tsx +26 -2
- package/src/components/slides/slide-form.tsx +26 -4
- package/src/components/storage/__tests__/storage-inspector.test.ts +180 -0
- package/src/components/storage/storage-inspector.tsx +535 -81
- package/src/components/ui/combobox.tsx +51 -32
- package/src/components/ui/number-field.tsx +5 -1
- package/src/components/ui/reorderable-list.tsx +13 -0
- package/src/components/ui/select-core/__tests__/use-select-list.test.ts +294 -0
- package/src/components/ui/select-core/__tests__/utils.test.ts +222 -0
- package/src/components/ui/select-core/index.ts +16 -0
- package/src/components/ui/select-core/option-row.tsx +33 -0
- package/src/components/ui/select-core/render-slot.ts +20 -0
- package/src/components/ui/select-core/select-list.tsx +248 -0
- package/src/components/ui/select-core/types.ts +44 -0
- package/src/components/ui/select-core/use-select-list.ts +347 -0
- package/src/components/ui/select-core/utils.ts +121 -0
- package/src/components/ui/toast.tsx +1 -0
- package/src/core/cells/__tests__/document-changes.test.ts +2 -2
- package/src/core/cells/__tests__/focus.test.ts +45 -2
- package/src/core/cells/focus.ts +1 -1
- package/src/core/cells/scrollCellIntoView.ts +4 -0
- package/src/core/cells/utils.ts +1 -1
- package/src/core/codemirror/__tests__/editor-mount-scheduler.test.ts +143 -0
- package/src/core/codemirror/copilot/getCodes.ts +3 -1
- package/src/core/codemirror/editor-mount-scheduler.ts +101 -0
- package/src/core/codemirror/language/languages/python.ts +2 -0
- package/src/core/codemirror/language/languages/sql/utils.ts +3 -1
- package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
- package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
- package/src/core/datasets/data-source-connections.ts +2 -0
- package/src/core/errors/errors.ts +1 -1
- package/src/core/storage/__tests__/state.test.ts +49 -0
- package/src/core/storage/__tests__/useStorageEntries.test.tsx +199 -3
- package/src/core/storage/state.ts +124 -13
- package/src/core/storage/types.ts +6 -0
- package/src/core/wasm/worker/bootstrap.ts +12 -4
- package/src/plugins/core/__test__/registerReactComponent.test.ts +96 -0
- package/src/plugins/core/registerReactComponent.tsx +42 -10
- package/src/plugins/impl/MultiselectPlugin.tsx +19 -142
- package/src/plugins/impl/SearchableSelect.tsx +16 -97
- package/src/plugins/impl/SliderPlugin.tsx +132 -18
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +5 -2
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +1 -1
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +278 -8
- package/src/utils/__tests__/numbers.test.ts +20 -0
- package/src/utils/errors.ts +9 -0
- package/src/utils/lazy.ts +6 -1
- package/src/utils/numbers.ts +27 -0
- package/src/utils/schedule-task.ts +71 -0
- package/dist/assets/__vite-browser-external-Ci2ZQfXU.js +0 -1
- package/dist/assets/worker-ip3AI_sN.js +0 -73
- package/dist/dist-0Fif7jnk.js +0 -5
- package/dist/dist-B5h_9sHB.js +0 -6
- package/dist/dist-B9M6R5ye.js +0 -5
- package/dist/dist-BCt3tnck.js +0 -8
- package/dist/dist-BUIJwMwn.js +0 -8
- package/dist/dist-BpquMd3k.js +0 -5
- package/dist/dist-BzJsqYfz.js +0 -5
- package/dist/dist-CA5ELXAf.js +0 -6
- package/dist/dist-CLBRs6Uv.js +0 -5
- package/dist/dist-CStVCMbq.js +0 -5
- package/dist/dist-CZRIEY3Y.js +0 -8
- package/dist/dist-CuUHbFD0.js +0 -5
- package/dist/dist-DV7Iabxb.js +0 -8
- package/dist/dist-DhHh0jLg.js +0 -1247
- package/dist/dist-DuEeHMvL.js +0 -5
- package/dist/esm-CCuYCd3R.js +0 -1171
- package/src/plugins/impl/multiselectFilterFn.tsx +0 -22
- /package/src/components/{data-table → ui}/value-chips.tsx +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
3
|
-
import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-
|
|
4
|
-
import { a as markdown } from "./dist-
|
|
5
|
-
import { n as html, r as htmlCompletionSource } from "./dist-
|
|
6
|
-
import { r as cssLanguage, t as css } from "./dist-
|
|
7
|
-
import { c as typescriptLanguage, n as javascript, r as javascriptLanguage, u as parser$1 } from "./dist-
|
|
8
|
-
import { r as python } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, R as Tag, S as foldInside, V as styleTags, X as parseMixed, f as StreamLanguage, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
|
|
3
|
+
import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-CcWX6tmx.js";
|
|
4
|
+
import { a as markdown } from "./dist-Dv_Y15yk.js";
|
|
5
|
+
import { n as html, r as htmlCompletionSource } from "./dist-BSAt6RhH.js";
|
|
6
|
+
import { r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
|
|
7
|
+
import { c as typescriptLanguage, n as javascript, r as javascriptLanguage, u as parser$1 } from "./dist-M9Vag9Y0.js";
|
|
8
|
+
import { r as python } from "./dist-C_Y3oV3C.js";
|
|
9
9
|
import { t as stex } from "./stex-BIsgBmK4.js";
|
|
10
|
-
import { t as cpp } from "./dist-
|
|
11
|
-
import { t as go } from "./dist-
|
|
12
|
-
import { t as java } from "./dist-
|
|
13
|
-
import { n as jinja } from "./dist-
|
|
14
|
-
import { t as json } from "./dist-
|
|
15
|
-
import { t as less } from "./dist-
|
|
16
|
-
import { n as liquid } from "./dist-
|
|
17
|
-
import { t as php } from "./dist-
|
|
18
|
-
import { t as rust } from "./dist-
|
|
19
|
-
import { t as sass } from "./dist-
|
|
20
|
-
import { t as wast } from "./dist-
|
|
21
|
-
import { r as xml } from "./dist-
|
|
22
|
-
import { t as yaml } from "./dist-
|
|
10
|
+
import { t as cpp } from "./dist-CIYBwstr.js";
|
|
11
|
+
import { t as go } from "./dist-abid3KgM.js";
|
|
12
|
+
import { t as java } from "./dist-A2846XWO.js";
|
|
13
|
+
import { n as jinja } from "./dist-BR_gyG9L.js";
|
|
14
|
+
import { t as json } from "./dist-DZORgqKY.js";
|
|
15
|
+
import { t as less } from "./dist-t9Kf7xqC.js";
|
|
16
|
+
import { n as liquid } from "./dist-CpxNdDkw.js";
|
|
17
|
+
import { t as php } from "./dist-BY018Paw.js";
|
|
18
|
+
import { t as rust } from "./dist-Dax--nl9.js";
|
|
19
|
+
import { t as sass } from "./dist-DyyjKEYf.js";
|
|
20
|
+
import { t as wast } from "./dist-DMjWuVs8.js";
|
|
21
|
+
import { r as xml } from "./dist-DZo4nSS0.js";
|
|
22
|
+
import { t as yaml } from "./dist-BzEzfugY.js";
|
|
23
23
|
import { t as apl } from "./apl-BCgCq9iM.js";
|
|
24
24
|
import { t as asciiArmor } from "./asciiarmor-BtqU-KJQ.js";
|
|
25
25
|
import { t as asn1 } from "./asn1-Dmb-dTMx.js";
|
|
@@ -102,7 +102,7 @@ import { t as xQuery } from "./xquery-Ba_NB5bD.js";
|
|
|
102
102
|
import { t as yacas } from "./yacas-HKQU6hyk.js";
|
|
103
103
|
import { t as z80 } from "./z80-CXkHXLdj.js";
|
|
104
104
|
import { n as msgenny, r as xu, t as mscgen } from "./mscgen-DJfqD3bN.js";
|
|
105
|
-
import { t as vue } from "./dist-
|
|
105
|
+
import { t as vue } from "./dist-LTU8Hdvn.js";
|
|
106
106
|
var strContent = 63, strDollarBrace = 64, strEnd = 65, escapeSequence = 66, indStrContent = 67, indStrDollarBrace = 68, indStrEnd = 69, indEscapeSequence = 70, quote = 34, backslack = 92, braceL = 123, dollar = 36, apostrophe = 39, scanString = /* @__PURE__ */ new ExternalTokenizer((y) => {
|
|
107
107
|
for (let G = false, K = 0; ; K++) {
|
|
108
108
|
let { next: J } = y;
|
|
@@ -883,15 +883,15 @@ function maybeNest(y, G, K) {
|
|
|
883
883
|
}
|
|
884
884
|
var expressionParser = /* @__PURE__ */ parser$1.configure({ top: "SingleExpression" });
|
|
885
885
|
function configureNesting(y) {
|
|
886
|
-
let G = [], K = [],
|
|
887
|
-
for (let
|
|
888
|
-
let y2 =
|
|
886
|
+
let G = [], K = [], J = [];
|
|
887
|
+
for (let Y of y) {
|
|
888
|
+
let y2 = Y.tag == "script" ? G : Y.tag == "style" ? K : Y.tag == "textarea" ? J : null;
|
|
889
889
|
if (!y2) throw RangeError("Only script, style, and textarea tags can host nested parsers");
|
|
890
|
-
y2.push(
|
|
890
|
+
y2.push(Y);
|
|
891
891
|
}
|
|
892
|
-
return parseMixed((y2,
|
|
892
|
+
return parseMixed((y2, Y) => {
|
|
893
893
|
let X = y2.type.id;
|
|
894
|
-
return X === LongExpression || X === ShortExpression ? { parser: expressionParser } : X === ScriptText ? maybeNest(y2,
|
|
894
|
+
return X === LongExpression || X === ShortExpression ? { parser: expressionParser } : X === ScriptText ? maybeNest(y2, Y, G) : X === StyleText ? maybeNest(y2, Y, K) : X === TextareaText ? maybeNest(y2, Y, J) : null;
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
897
|
var defaultNesting = [
|
|
@@ -985,36 +985,36 @@ function elementName(y, G, K = y.length) {
|
|
|
985
985
|
let J = G.firstChild, Y = J && (J.getChild("TagName") || J.getChild("ComponentName") || J.getChild("SvelteElementName"));
|
|
986
986
|
return Y ? y.sliceString(Y.from, Math.min(Y.to, K)) : "";
|
|
987
987
|
}
|
|
988
|
-
var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((y,
|
|
989
|
-
if (y.composing || y.state.readOnly ||
|
|
990
|
-
let { state: Z } = y, Q = Z.changeByRange((
|
|
988
|
+
var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((y, G, J, X) => {
|
|
989
|
+
if (y.composing || y.state.readOnly || G != J || X != ">" && X != "/" || !svelteLanguage.isActiveAt(y.state, G, -1)) return false;
|
|
990
|
+
let { state: Z } = y, Q = Z.changeByRange((G2) => {
|
|
991
991
|
var _a, _b, _c;
|
|
992
|
-
let { head:
|
|
992
|
+
let { head: J2 } = G2, Q2 = syntaxTree(Z).resolveInner(J2, -1), $;
|
|
993
993
|
if ((Q2.name === "TagName" || Q2.name === "ComponentName" || Q2.name === "SvelteElementName" || Q2.name === "StartTag") && (Q2 = Q2.parent), X === ">" && Q2.name === "OpenTag") {
|
|
994
|
-
if (((_b = (_a = Q2.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && ($ = elementName(Z.doc, Q2.parent,
|
|
995
|
-
let
|
|
994
|
+
if (((_b = (_a = Q2.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && ($ = elementName(Z.doc, Q2.parent, J2))) {
|
|
995
|
+
let G3 = y.state.doc.sliceString(J2, J2 + 1) === ">", K = `${G3 ? "" : ">"}</${$}>`;
|
|
996
996
|
return {
|
|
997
|
-
range: EditorSelection.cursor(
|
|
997
|
+
range: EditorSelection.cursor(J2 + 1),
|
|
998
998
|
changes: {
|
|
999
|
-
from:
|
|
1000
|
-
insert:
|
|
999
|
+
from: J2 + (G3 ? 1 : 0),
|
|
1000
|
+
insert: K
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
} else if (X === "/" && Q2.name === "OpenTag") {
|
|
1005
|
-
let
|
|
1006
|
-
if (
|
|
1007
|
-
let
|
|
1005
|
+
let G3 = Q2.parent, K = G3 == null ? void 0 : G3.parent;
|
|
1006
|
+
if (G3.from == J2 - 1 && ((_c = K.lastChild) == null ? void 0 : _c.name) != "CloseTag" && ($ = elementName(Z.doc, K, J2))) {
|
|
1007
|
+
let G4 = y.state.doc.sliceString(J2, J2 + 1) === ">", K2 = `/${$}${G4 ? "" : ">"}`, X2 = J2 + K2.length + (G4 ? 1 : 0);
|
|
1008
1008
|
return {
|
|
1009
1009
|
range: EditorSelection.cursor(X2),
|
|
1010
1010
|
changes: {
|
|
1011
|
-
from:
|
|
1012
|
-
insert:
|
|
1011
|
+
from: J2,
|
|
1012
|
+
insert: K2
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
return { range:
|
|
1017
|
+
return { range: G2 };
|
|
1018
1018
|
});
|
|
1019
1019
|
return Q.changes.empty ? false : (y.dispatch(Q, {
|
|
1020
1020
|
userEvent: "input.type",
|
|
@@ -2,11 +2,11 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
2
2
|
import { g as cn, h as Events } from "./button-C5K9fIPF.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
6
|
-
import { t as Check } from "./check-
|
|
5
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UqRYxiOg.js";
|
|
6
|
+
import { t as Check } from "./check-BCaJeT-J.js";
|
|
7
7
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
8
|
-
import { t as Tooltip } from "./tooltip-
|
|
9
|
-
import { $ as
|
|
8
|
+
import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
|
|
9
|
+
import { $ as EditorView, A as indentString, At as Facet, Ct as Annotation, D as getIndentation, E as getIndentUnit, Ht as combineConfig, I as syntaxTree, It as StateEffect, Lt as StateField, N as matchBrackets, Nt as RangeSet, Ot as EditorSelection, Pt as RangeSetBuilder, Q as Direction, Rt as Text, St as crelt, Tt as ChangeSet, Ut as countColumn, W as NodeProp, Wt as findClusterBreak, Z as Decoration, bt as showPanel, ft as hoverTooltip, ht as logException, j as indentUnit, nt as WidgetType, o as IndentContext, ot as getPanel, tt as ViewPlugin, wt as ChangeDesc, zt as Transaction } from "./dist-U4F-tbMs.js";
|
|
10
10
|
var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
11
11
|
const CopyClipboardIcon = (e5) => {
|
|
12
12
|
let M = (0, import_compiler_runtime.c)(14), { value: N, className: R, buttonClassName: B, tooltip: V, toastTitle: H, ariaLabel: U } = e5, [W, G] = (0, import_react.useState)(false), K;
|
package/dist/files/wasm-intro.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Copyright 2026 Marimo. All rights reserved.
|
|
2
2
|
|
|
3
|
+
# ruff: noqa: ANN202, B018
|
|
3
4
|
import marimo
|
|
4
5
|
|
|
5
6
|
__generated_with = "0.2.6"
|
|
@@ -11,7 +12,7 @@ def __():
|
|
|
11
12
|
import marimo as mo
|
|
12
13
|
|
|
13
14
|
mo.md("# Welcome to [marimo](https://github.com/marimo-team/marimo)! 🌊🍃")
|
|
14
|
-
return mo,
|
|
15
|
+
return (mo,)
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
@app.cell(hide_code=True)
|
|
@@ -41,8 +42,10 @@ def __(mo):
|
|
|
41
42
|
and models, doing lightweight data analysis, authoring blog
|
|
42
43
|
posts, tutorials, and educational articles, and even building internal
|
|
43
44
|
tools. They are not well-suited for notebooks that do heavy
|
|
44
|
-
computation
|
|
45
|
-
|
|
45
|
+
computation or need true CPU parallelism. WASM notebooks support a
|
|
46
|
+
limited cooperative concurrency surface, but not OS threads,
|
|
47
|
+
shared-memory multiprocessing, or process isolation. For those
|
|
48
|
+
cases, use a regular marimo notebook.
|
|
46
49
|
"""
|
|
47
50
|
}
|
|
48
51
|
)
|
|
@@ -75,7 +78,7 @@ def __(mo):
|
|
|
75
78
|
@app.cell
|
|
76
79
|
def __(mo):
|
|
77
80
|
slider = mo.ui.slider(1, 22)
|
|
78
|
-
return slider,
|
|
81
|
+
return (slider,)
|
|
79
82
|
|
|
80
83
|
|
|
81
84
|
@app.cell
|
|
@@ -145,7 +148,7 @@ def __(changed, mo):
|
|
|
145
148
|
@app.cell
|
|
146
149
|
def __():
|
|
147
150
|
changed = False
|
|
148
|
-
return changed,
|
|
151
|
+
return (changed,)
|
|
149
152
|
|
|
150
153
|
|
|
151
154
|
@app.cell(hide_code=True)
|
|
@@ -234,13 +237,13 @@ def __(mo):
|
|
|
234
237
|
@app.cell
|
|
235
238
|
def __(mo):
|
|
236
239
|
icon = mo.ui.dropdown(["🍃", "🌊", "✨"], value="🍃")
|
|
237
|
-
return icon,
|
|
240
|
+
return (icon,)
|
|
238
241
|
|
|
239
242
|
|
|
240
243
|
@app.cell
|
|
241
244
|
def __(icon, mo):
|
|
242
245
|
repetitions = mo.ui.slider(1, 16, label=f"number of {icon.value}: ")
|
|
243
|
-
return repetitions,
|
|
246
|
+
return (repetitions,)
|
|
244
247
|
|
|
245
248
|
|
|
246
249
|
@app.cell
|
|
@@ -486,7 +489,7 @@ def __():
|
|
|
486
489
|
"""
|
|
487
490
|
),
|
|
488
491
|
}
|
|
489
|
-
return tips,
|
|
492
|
+
return (tips,)
|
|
490
493
|
|
|
491
494
|
|
|
492
495
|
if __name__ == "__main__":
|
|
@@ -2,7 +2,7 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
2
2
|
import { g as cn, r as cva } from "./button-C5K9fIPF.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
-
import { t as toDate } from "./toDate-
|
|
5
|
+
import { t as toDate } from "./toDate-d8RCRrRd.js";
|
|
6
6
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
7
7
|
import { i as tableFromIPC } from "./loader-BWLPpjKK.js";
|
|
8
8
|
function isDate(e) {
|