@marimo-team/islands 0.17.4 → 0.17.5

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.
@@ -27,7 +27,7 @@ import { t as useAsyncData } from "./useAsyncData-Dp2V69OV.js";
27
27
  import "./vega-loader.browser-BK7-IO9k.js";
28
28
  import "./precisionRound-DMLkFNYv.js";
29
29
  import "./linear-CgANSWNu.js";
30
- import { n as q, r as contains } from "./react-vega-B9eMrRW1.js";
30
+ import { n as q, r as contains } from "./react-vega-C3G6aCB7.js";
31
31
  import "./ordinal-pQYxWJYN.js";
32
32
  import "./time-U9NHhrDC.js";
33
33
  import "./range-sX2tw-Jz.js";
package/dist/main.js CHANGED
@@ -21982,19 +21982,11 @@ ${g}
21982
21982
  }
21983
21983
  transformOut(e, r) {
21984
21984
  e === "" && (e = " ");
21985
- let { quotePrefix: c } = r, l = e.replaceAll('"""', String.raw`\"""`), d = !e.includes("\n"), f = e.startsWith('"') || e.endsWith('"');
21986
- if (d && !f) {
21987
- let e2 = `mo.md(${c}"""`;
21988
- return {
21989
- code: e2 + l + '""")',
21990
- offset: e2.length
21991
- };
21992
- }
21993
- let h = `mo.md(${c}"""
21985
+ let { quotePrefix: c } = r, l = e.replaceAll('""', String.raw`"\"`), d = `mo.md(${c}"""
21994
21986
  `;
21995
21987
  return {
21996
- code: h + l + '\n""")',
21997
- offset: h.length + 1
21988
+ code: d + l + '\n""")',
21989
+ offset: d.length + 1
21998
21990
  };
21999
21991
  }
22000
21992
  isSupported(e) {
@@ -58891,7 +58883,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
58891
58883
  function isOutputEmpty(e) {
58892
58884
  return e == null || e.data == null || e.data === "";
58893
58885
  }
58894
- const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-DM3e8kar.js").then((e) => ({
58886
+ const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-BhZaW0DJ.js").then((e) => ({
58895
58887
  default: e.VegaEmbed
58896
58888
  })));
58897
58889
  var import_compiler_runtime$108 = __toESM(require_compiler_runtime(), 1);
@@ -81164,7 +81156,7 @@ ${c}
81164
81156
  fullWidth: g,
81165
81157
  children: F
81166
81158
  }), r[19] = g, r[20] = _, r[21] = c, r[22] = F, r[23] = R) : R = r[23], R;
81167
- }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-DY9cADKc.js"));
81159
+ }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-DGGP9Mxg.js"));
81168
81160
  const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
81169
81161
  label: string$2().nullish(),
81170
81162
  data: string$2()
@@ -91396,7 +91388,7 @@ ${c}
91396
91388
  return true;
91397
91389
  }
91398
91390
  }
91399
- var LazyVegaComponent = import_react.lazy(() => import("./vega-component-C58Jk3ub.js")), VegaPlugin = class {
91391
+ var LazyVegaComponent = import_react.lazy(() => import("./vega-component-_Sq_uxzm.js")), VegaPlugin = class {
91400
91392
  constructor() {
91401
91393
  __publicField(this, "tagName", "marimo-vega");
91402
91394
  __publicField(this, "validator", object$1({
@@ -93645,6 +93637,7 @@ Defaulting to \`null\`.`;
93645
93637
  }
93646
93638
  render(e) {
93647
93639
  return (0, import_jsx_runtime.jsx)(TexComponent, {
93640
+ host: e.host,
93648
93641
  tex: e.host.textContent || e.host.innerHTML
93649
93642
  });
93650
93643
  }
@@ -93674,16 +93667,31 @@ Defaulting to \`null\`.`;
93674
93667
  });
93675
93668
  }
93676
93669
  var TexComponent = (e) => {
93677
- let r = (0, import_compiler_runtime$8.c)(4), { tex: c } = e, l = (0, import_react.useRef)(null), d, f;
93678
- r[0] === c ? (d = r[1], f = r[2]) : (d = () => {
93679
- l.current && renderLatex(l.current, c);
93680
- }, f = [
93670
+ let r = (0, import_compiler_runtime$8.c)(7), { host: c, tex: l } = e, d = (0, import_react.useRef)(null), [f, h] = (0, import_react.useState)(l), g, _;
93671
+ r[0] === c ? (g = r[1], _ = r[2]) : (g = () => {
93672
+ let e2 = new MutationObserver(() => {
93673
+ h(c.textContent || c.innerHTML);
93674
+ });
93675
+ return e2.observe(c, {
93676
+ childList: true,
93677
+ characterData: true,
93678
+ subtree: true
93679
+ }), () => {
93680
+ e2.disconnect();
93681
+ };
93682
+ }, _ = [
93681
93683
  c
93682
- ], r[0] = c, r[1] = d, r[2] = f), (0, import_react.useLayoutEffect)(d, f);
93683
- let h;
93684
- return r[3] === Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)("span", {
93685
- ref: l
93686
- }), r[3] = h) : h = r[3], h;
93684
+ ], r[0] = c, r[1] = g, r[2] = _), (0, import_react.useLayoutEffect)(g, _);
93685
+ let y, b;
93686
+ r[3] === f ? (y = r[4], b = r[5]) : (y = () => {
93687
+ d.current && renderLatex(d.current, f);
93688
+ }, b = [
93689
+ f
93690
+ ], r[3] = f, r[4] = y, r[5] = b), (0, import_react.useLayoutEffect)(y, b);
93691
+ let S;
93692
+ return r[6] === Symbol.for("react.memo_cache_sentinel") ? (S = (0, import_jsx_runtime.jsx)("span", {
93693
+ ref: d
93694
+ }), r[6] = S) : S = r[6], S;
93687
93695
  };
93688
93696
  const UI_PLUGINS = [
93689
93697
  new ButtonPlugin(),
@@ -97599,7 +97607,7 @@ Defaulting to \`null\`.`;
97599
97607
  return Logger.warn("Failed to get version from mount config"), null;
97600
97608
  }
97601
97609
  }
97602
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.17.4"), showCodeInRunModeAtom = atom(true);
97610
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.17.5"), showCodeInRunModeAtom = atom(true);
97603
97611
  atom(null);
97604
97612
  var VIRTUAL_FILE_REGEX = /\/@file\/([^\s/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
97605
97613
  constructor() {
@@ -3,7 +3,7 @@ import "./jsx-runtime-CvL6gNI-.js";
3
3
  import "./vega-loader.browser-BK7-IO9k.js";
4
4
  import "./precisionRound-DMLkFNYv.js";
5
5
  import "./linear-CgANSWNu.js";
6
- import { n as q, t as j } from "./react-vega-B9eMrRW1.js";
6
+ import { n as q, t as j } from "./react-vega-C3G6aCB7.js";
7
7
  import "./ordinal-pQYxWJYN.js";
8
8
  import "./time-U9NHhrDC.js";
9
9
  import "./range-sX2tw-Jz.js";