@marimo-team/islands 0.17.3 → 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,28 +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('"'), h = `${c}"""`;
21986
- if (d && !f) {
21987
- if (`${h}${l}"""`.length >= 74) {
21988
- let e3 = `mo.md("
21989
- ${h}`;
21990
- return {
21991
- code: `${e3}${l}"""
21992
- )`,
21993
- offset: e3.length
21994
- };
21995
- }
21996
- let e2 = `mo.md(${c}"""`;
21997
- return {
21998
- code: e2 + l + '""")',
21999
- offset: e2.length
22000
- };
22001
- }
22002
- let g = `mo.md(${c}"""
21985
+ let { quotePrefix: c } = r, l = e.replaceAll('""', String.raw`"\"`), d = `mo.md(${c}"""
22003
21986
  `;
22004
21987
  return {
22005
- code: g + l + '\n""")',
22006
- offset: g.length + 1
21988
+ code: d + l + '\n""")',
21989
+ offset: d.length + 1
22007
21990
  };
22008
21991
  }
22009
21992
  isSupported(e) {
@@ -38465,7 +38448,7 @@ ${JSON.stringify(e2, null, 4)}`);
38465
38448
  },
38466
38449
  FORCE_BODY: true,
38467
38450
  CUSTOM_ELEMENT_HANDLING: {
38468
- tagNameCheck: /^marimo-[A-Za-z][\w-]*$/,
38451
+ tagNameCheck: /^(marimo-[A-Za-z][\w-]*|iconify-icon)$/,
38469
38452
  attributeNameCheck: /^[A-Za-z][\w-]*$/
38470
38453
  }
38471
38454
  });
@@ -58900,7 +58883,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
58900
58883
  function isOutputEmpty(e) {
58901
58884
  return e == null || e.data == null || e.data === "";
58902
58885
  }
58903
- 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) => ({
58904
58887
  default: e.VegaEmbed
58905
58888
  })));
58906
58889
  var import_compiler_runtime$108 = __toESM(require_compiler_runtime(), 1);
@@ -81173,7 +81156,7 @@ ${c}
81173
81156
  fullWidth: g,
81174
81157
  children: F
81175
81158
  }), r[19] = g, r[20] = _, r[21] = c, r[22] = F, r[23] = R) : R = r[23], R;
81176
- }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-DY9cADKc.js"));
81159
+ }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-DGGP9Mxg.js"));
81177
81160
  const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
81178
81161
  label: string$2().nullish(),
81179
81162
  data: string$2()
@@ -91405,7 +91388,7 @@ ${c}
91405
91388
  return true;
91406
91389
  }
91407
91390
  }
91408
- 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 {
91409
91392
  constructor() {
91410
91393
  __publicField(this, "tagName", "marimo-vega");
91411
91394
  __publicField(this, "validator", object$1({
@@ -93654,6 +93637,7 @@ Defaulting to \`null\`.`;
93654
93637
  }
93655
93638
  render(e) {
93656
93639
  return (0, import_jsx_runtime.jsx)(TexComponent, {
93640
+ host: e.host,
93657
93641
  tex: e.host.textContent || e.host.innerHTML
93658
93642
  });
93659
93643
  }
@@ -93683,16 +93667,31 @@ Defaulting to \`null\`.`;
93683
93667
  });
93684
93668
  }
93685
93669
  var TexComponent = (e) => {
93686
- let r = (0, import_compiler_runtime$8.c)(4), { tex: c } = e, l = (0, import_react.useRef)(null), d, f;
93687
- r[0] === c ? (d = r[1], f = r[2]) : (d = () => {
93688
- l.current && renderLatex(l.current, c);
93689
- }, 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
+ }, _ = [
93690
93683
  c
93691
- ], r[0] = c, r[1] = d, r[2] = f), (0, import_react.useLayoutEffect)(d, f);
93692
- let h;
93693
- return r[3] === Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)("span", {
93694
- ref: l
93695
- }), 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;
93696
93695
  };
93697
93696
  const UI_PLUGINS = [
93698
93697
  new ButtonPlugin(),
@@ -97608,7 +97607,7 @@ Defaulting to \`null\`.`;
97608
97607
  return Logger.warn("Failed to get version from mount config"), null;
97609
97608
  }
97610
97609
  }
97611
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.17.3"), showCodeInRunModeAtom = atom(true);
97610
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.17.5"), showCodeInRunModeAtom = atom(true);
97612
97611
  atom(null);
97613
97612
  var VIRTUAL_FILE_REGEX = /\/@file\/([^\s/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
97614
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";