@marimo-team/islands 0.23.10-dev23 → 0.23.10-dev25

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.
Files changed (99) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DdeG-Hi-.js → ConnectedDataExplorerComponent-DmBropAy.js} +11 -11
  2. package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
  3. package/dist/{any-language-editor-CiES2a2h.js → any-language-editor-DNmoSiWL.js} +20 -20
  4. package/dist/{chat-ui-BTobdMRF.js → chat-ui-D6oraHT2.js} +22 -22
  5. package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
  6. package/dist/{code-visibility-D4SjRKRB.js → code-visibility-CXkMXcdB.js} +20 -20
  7. package/dist/{copy-5jQ_kGE1.js → copy-UqRYxiOg.js} +1 -1
  8. package/dist/dist-7QfXoMdB.js +5 -0
  9. package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
  10. package/dist/dist-BEXXyZig.js +5 -0
  11. package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
  12. package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
  13. package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
  14. package/dist/dist-BYj57OV4.js +5 -0
  15. package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
  16. package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
  17. package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
  18. package/dist/dist-BlSvQzNr.js +5 -0
  19. package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
  20. package/dist/dist-CCBlxAgS.js +8 -0
  21. package/dist/dist-CIDTVIUf.js +5 -0
  22. package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
  23. package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
  24. package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
  25. package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
  26. package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
  27. package/dist/dist-CqQyhAM8.js +8 -0
  28. package/dist/dist-CwRu2Xzh.js +5 -0
  29. package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
  30. package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
  31. package/dist/dist-D8CDTVgf.js +6 -0
  32. package/dist/dist-D8DNB0nO.js +8 -0
  33. package/dist/dist-DL6N_q-A.js +5 -0
  34. package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
  35. package/dist/dist-DOFbNV_b.js +8 -0
  36. package/dist/dist-DPrYzMY0.js +6 -0
  37. package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
  38. package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
  39. package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
  40. package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
  41. package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
  42. package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
  43. package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
  44. package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
  45. package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
  46. package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
  47. package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
  48. package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
  49. package/dist/dist-cdmMjgsn.js +5 -0
  50. package/dist/dist-hT4QzYX-.js +1247 -0
  51. package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
  52. package/dist/{error-banner-5bz0L9hS.js → error-banner-Cc0I3C9e.js} +1 -1
  53. package/dist/esm-BaH2eg5-.js +1171 -0
  54. package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
  55. package/dist/{extends-CkydH1Q5.js → extends-D_hDsj6R.js} +4 -4
  56. package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
  57. package/dist/{glide-data-editor-CRvL2R9l.js → glide-data-editor-Qhu8oCX-.js} +8 -8
  58. package/dist/{html-to-image-CjsdUYrb.js → html-to-image-UEH5lFDZ.js} +2173 -2150
  59. package/dist/{input-DVkbXbIX.js → input-CMYy4hzj.js} +5 -5
  60. package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
  61. package/dist/main.js +46 -46
  62. package/dist/{mermaid-lXOw5Py9.js → mermaid-zuLgJ8J8.js} +4 -4
  63. package/dist/{process-output-CI8a-CUx.js → process-output-CyMLTogj.js} +3 -3
  64. package/dist/{reveal-component-CQUEth_r.js → reveal-component-dIolR_34.js} +567 -566
  65. package/dist/{spec-DMRQmLOc.js → spec-X7FwLJni.js} +4 -4
  66. package/dist/{strings-GCJA9n6d.js → strings-J57tzLr3.js} +22 -22
  67. package/dist/style.css +1 -1
  68. package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
  69. package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
  70. package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
  71. package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
  72. package/dist/{useDateFormatter-BRcO_TGJ.js → useDateFormatter-QB-3MpYr.js} +2 -2
  73. package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
  74. package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
  75. package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
  76. package/dist/{vega-component-Dq-SH463.js → vega-component-9h1ACS78.js} +8 -8
  77. package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
  78. package/package.json +1 -1
  79. package/src/components/editor/documentation.css +19 -0
  80. package/src/components/slides/reveal-component.tsx +4 -0
  81. package/src/core/codemirror/language/languages/python.ts +2 -0
  82. package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
  83. package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
  84. package/dist/dist-0Fif7jnk.js +0 -5
  85. package/dist/dist-B5h_9sHB.js +0 -6
  86. package/dist/dist-B9M6R5ye.js +0 -5
  87. package/dist/dist-BCt3tnck.js +0 -8
  88. package/dist/dist-BUIJwMwn.js +0 -8
  89. package/dist/dist-BpquMd3k.js +0 -5
  90. package/dist/dist-BzJsqYfz.js +0 -5
  91. package/dist/dist-CA5ELXAf.js +0 -6
  92. package/dist/dist-CLBRs6Uv.js +0 -5
  93. package/dist/dist-CStVCMbq.js +0 -5
  94. package/dist/dist-CZRIEY3Y.js +0 -8
  95. package/dist/dist-CuUHbFD0.js +0 -5
  96. package/dist/dist-DV7Iabxb.js +0 -8
  97. package/dist/dist-DhHh0jLg.js +0 -1247
  98. package/dist/dist-DuEeHMvL.js +0 -5
  99. package/dist/esm-CCuYCd3R.js +0 -1171
@@ -4,9 +4,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4
4
  import { t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
5
  import { _ as Logger } from "./button-C5K9fIPF.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
7
- import { u as createLucideIcon } from "./dist-C1BYNeCR.js";
7
+ import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
8
8
  import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
9
- import { b as atom, d as store, m as isIslands, p as waitFor } from "./useTheme-DHIrRQOe.js";
9
+ import { b as atom, d as store, m as isIslands, p as waitFor } from "./useTheme-DEhDzATN.js";
10
10
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
11
11
  var CircleQuestionMark = createLucideIcon("circle-question-mark", [
12
12
  ["circle", {
@@ -2,9 +2,9 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { f as createSlottable, g as cn, m as useComposedRefs } 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 { a as createPopperScope, i as Root2, n as Arrow, r as Content, s as Root, t as Anchor } from "./dist-C1BYNeCR.js";
5
+ import { a as createPopperScope, i as Root2, n as Arrow, r as Content, s as Root, t as Anchor } from "./dist-Dk6PV_d3.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
7
- import { $ as StyleNamespace, X as withFullScreenAsRoot, Z as withSmartCollisionBoundary, _t as Primitive, dt as Presence, ft as useControllableState, gt as createContextScope, it as Portal, mt as composeEventHandlers, st as DismissableLayer, ut as useId } from "./zod-CoBiJ5v4.js";
7
+ import { Q as withSmartCollisionBoundary, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, pt as useControllableState, vt as Primitive } from "./zod-aLSua2NL.js";
8
8
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [createPopperScope]), usePopperScope = createPopperScope(), PROVIDER_NAME = "TooltipProvider", DEFAULT_DELAY_DURATION = 700, TOOLTIP_OPEN = "tooltip.open", [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME), TooltipProvider$1 = (n) => {
9
9
  let { __scopeTooltip: j, delayDuration: M = DEFAULT_DELAY_DURATION, skipDelayDuration: N = 300, disableHoverableContent: P = false, children: F } = n, I = import_react.useRef(true), L = import_react.useRef(false), R = import_react.useRef(0);
10
10
  return import_react.useEffect(() => {
@@ -1,4 +1,4 @@
1
- import { u as createLucideIcon } from "./dist-C1BYNeCR.js";
1
+ import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
2
2
  var Pencil = createLucideIcon("pencil", [["path", {
3
3
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
4
4
  key: "1a8usu"
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DA-nE2FX.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
4
- import { T as useEvent_default } from "./useTheme-DHIrRQOe.js";
4
+ import { T as useEvent_default } from "./useTheme-DEhDzATN.js";
5
5
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
6
6
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), Result = {
7
7
  error(e, s) {
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DA-nE2FX.js";
3
- import { u as createLucideIcon } from "./dist-C1BYNeCR.js";
4
- import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./strings-GCJA9n6d.js";
3
+ import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
4
+ import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./strings-J57tzLr3.js";
5
5
  var ChartPie = createLucideIcon("chart-pie", [["path", {
6
6
  d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
7
7
  key: "pzmjnu"
@@ -1,6 +1,6 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DA-nE2FX.js";
3
- import { w as dequal } from "./useTheme-DHIrRQOe.js";
3
+ import { w as dequal } from "./useTheme-DEhDzATN.js";
4
4
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
5
5
  function useDeepCompareMemoize(e) {
6
6
  let i = import_react.useRef(e);
@@ -2,9 +2,9 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { _ as Logger, 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 { u as createLucideIcon } from "./dist-C1BYNeCR.js";
5
+ import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
7
- import { b as atom, v as useSetAtom } from "./useTheme-DHIrRQOe.js";
7
+ import { b as atom, v as useSetAtom } from "./useTheme-DEhDzATN.js";
8
8
  var Calendar = createLucideIcon("calendar", [
9
9
  ["path", {
10
10
  d: "M8 2v4",
@@ -2,7 +2,7 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { _ as Logger, a as OverridingHotkeyProvider, s as resolvePlatform } 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 { A as looseObject, B as union, I as record, N as number, P as object, R as string, T as boolean, b as _enum, w as array } from "./zod-CoBiJ5v4.js";
5
+ import { A as looseObject, B as union, I as record, N as number, P as object, R as string, T as boolean, b as _enum, w as array } from "./zod-aLSua2NL.js";
6
6
  import { t as merge_default } from "./merge-Be1CqGnU.js";
7
7
  var import_react = /* @__PURE__ */ __toESM(require_react()), useInsertionEffect = typeof window < "u" ? import_react.useInsertionEffect || import_react.useLayoutEffect : () => {
8
8
  };
@@ -2,23 +2,23 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { _ as Logger, c as Objects, 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 { c as asRemoteURL, v as CircleQuestionMark } from "./toDate-x-WRDCH7.js";
5
+ import { c as asRemoteURL, v as CircleQuestionMark } from "./toDate-d8RCRrRd.js";
6
6
  import "./react-dom-BTJzcVJ9.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
8
- import "./zod-CoBiJ5v4.js";
9
- import { n as ErrorBanner } from "./error-banner-5bz0L9hS.js";
10
- import { t as Tooltip } from "./tooltip-C5FYOpQc.js";
8
+ import "./zod-aLSua2NL.js";
9
+ import { n as ErrorBanner } from "./error-banner-Cc0I3C9e.js";
10
+ import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
11
11
  import { i as debounce_default } from "./constants-T20xxyNf.js";
12
- import { T as useEvent_default, n as useTheme } from "./useTheme-DHIrRQOe.js";
12
+ import { T as useEvent_default, n as useTheme } from "./useTheme-DEhDzATN.js";
13
13
  import { s as uniq } from "./arrays-sEtDRoG4.js";
14
- import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-DHxc-FdY.js";
14
+ import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-C4wO47tk.js";
15
15
  import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
16
16
  import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-BWLPpjKK.js";
17
17
  import { t as j } from "./react-vega-B0sAlDTL.js";
18
18
  import "./defaultLocale-u-3osm0P.js";
19
19
  import "./defaultLocale-BoHTsDG6.js";
20
- import { t as useAsyncData } from "./useAsyncData-iRgKDT5s.js";
21
- import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-CkQ57VS2.js";
20
+ import { t as useAsyncData } from "./useAsyncData-PonK__yh.js";
21
+ import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-D3NGWke6.js";
22
22
  import { t as Semaphore } from "./semaphore-CNDGTzkX.js";
23
23
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1);
24
24
  function fixRelativeUrl(e) {
@@ -11758,7 +11758,7 @@ var external_exports = /* @__PURE__ */ __export({
11758
11758
  config(en_default());
11759
11759
  var zod_default = external_exports;
11760
11760
  export {
11761
- StyleNamespace as $,
11761
+ isInVscodeExtension as $,
11762
11762
  looseObject as A,
11763
11763
  union as B,
11764
11764
  any as C,
@@ -11775,59 +11775,60 @@ export {
11775
11775
  number$1 as N,
11776
11776
  lazy as O,
11777
11777
  object as P,
11778
- isInVscodeExtension as Q,
11778
+ withSmartCollisionBoundary as Q,
11779
11779
  string$1 as R,
11780
11780
  _null as S,
11781
11781
  boolean$1 as T,
11782
11782
  ZodError as U,
11783
11783
  unknown as V,
11784
11784
  toJSONSchema as W,
11785
- withFullScreenAsRoot as X,
11785
+ useFullScreenElement as X,
11786
11786
  MAX_HEIGHT_OFFSET as Y,
11787
- withSmartCollisionBoundary as Z,
11787
+ withFullScreenAsRoot as Z,
11788
11788
  ZodString as _,
11789
- Primitive as _t,
11789
+ createContextScope as _t,
11790
11790
  ZodIssueCode as a,
11791
- FocusScope as at,
11791
+ Portal as at,
11792
11792
  _enum as b,
11793
11793
  ZodBoolean as c,
11794
- Root as ct,
11794
+ DismissableLayer as ct,
11795
11795
  ZodDiscriminatedUnion as d,
11796
- Presence as dt,
11797
- hideOthers as et,
11796
+ useId as dt,
11797
+ StyleNamespace as et,
11798
11798
  ZodEnum as f,
11799
- useControllableState as ft,
11799
+ Presence as ft,
11800
11800
  ZodOptional as g,
11801
- createContextScope as gt,
11801
+ createContext2 as gt,
11802
11802
  ZodObject as h,
11803
- createContext2 as ht,
11803
+ composeEventHandlers as ht,
11804
11804
  string as i,
11805
- Portal as it,
11805
+ useFocusGuards as it,
11806
11806
  nan as j,
11807
11807
  literal as k,
11808
11808
  ZodDate as l,
11809
- useCallbackRef$1 as lt,
11809
+ Root as lt,
11810
11810
  ZodNumber as m,
11811
- composeEventHandlers as mt,
11811
+ useLayoutEffect2 as mt,
11812
11812
  date as n,
11813
- __awaiter as nt,
11813
+ Combination_default as nt,
11814
11814
  ZodAny as o,
11815
- Branch as ot,
11815
+ FocusScope as ot,
11816
11816
  ZodLiteral as p,
11817
- useLayoutEffect2 as pt,
11817
+ useControllableState as pt,
11818
11818
  $ZodError as q,
11819
11819
  number as r,
11820
- useFocusGuards as rt,
11820
+ __awaiter as rt,
11821
11821
  ZodArray as s,
11822
- DismissableLayer as st,
11822
+ Branch as st,
11823
11823
  zod_default as t,
11824
- Combination_default as tt,
11824
+ hideOthers as tt,
11825
11825
  ZodDefault as u,
11826
- useId as ut,
11826
+ useCallbackRef$1 as ut,
11827
11827
  ZodType as v,
11828
- dispatchDiscreteCustomEvent as vt,
11828
+ Primitive as vt,
11829
11829
  array as w,
11830
11830
  _instanceof as x,
11831
11831
  ZodUnion as y,
11832
+ dispatchDiscreteCustomEvent as yt,
11832
11833
  tuple as z
11833
11834
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.23.10-dev23",
3
+ "version": "0.23.10-dev25",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -153,3 +153,22 @@
153
153
  }
154
154
  }
155
155
  }
156
+
157
+ /* Syntax highlighting for LSP hover code blocks (lezer classHighlighter tok-* classes) */
158
+ .docs-documentation,
159
+ .cm-tooltip .documentation {
160
+ .tok-keyword { color: light-dark(#708, #c678dd); font-weight: 500; }
161
+ .tok-string,
162
+ .tok-string2 { color: light-dark(#a11, #98c379); }
163
+ .tok-number { color: light-dark(#164, #d19a66); }
164
+ .tok-bool,
165
+ .tok-atom { color: light-dark(#219, #d19a66); }
166
+ .tok-comment { color: var(--cm-comment); }
167
+ .tok-className { color: light-dark(#00f, #61afef); }
168
+ .tok-typeName,
169
+ .tok-namespace { color: light-dark(#085, #56b6c2); }
170
+ .tok-operator { color: light-dark(#a2f, #56b6c2); }
171
+ .tok-propertyName { color: light-dark(#05a, #e5c07b); }
172
+ .tok-variableName { color: light-dark(#000, #abb2bf); }
173
+ .tok-punctuation { color: light-dark(#000, #abb2bf); }
174
+ }
@@ -14,6 +14,7 @@ import { Deck, Fragment, Slide, Stack } from "@revealjs/react";
14
14
  import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
15
15
  import { Slide as CellOutputSlide } from "@/components/slides/slide";
16
16
  import { Button } from "@/components/ui/button";
17
+ import { useFullScreenElement } from "@/components/ui/fullscreen";
17
18
  import { Tooltip } from "@/components/ui/tooltip";
18
19
  import type { CellId } from "@/core/cells/ids";
19
20
  import type { RuntimeCell } from "@/core/cells/types";
@@ -274,6 +275,8 @@ const RevealSlidesComponent = ({
274
275
  const containerRef = useRef<HTMLDivElement>(null);
275
276
  const deckRef = useRef<RevealApi | null>(null);
276
277
  const { width, height } = useSlideDimensions(containerRef);
278
+ const isFullscreen = useFullScreenElement() != null;
279
+
277
280
  // Skip the Notes plugin inside reveal's own speaker-view iframes so pressing
278
281
  // `S` there doesn't try to spawn another popup.
279
282
  const kioskMode = useAtomValue(kioskModeAtom);
@@ -607,6 +610,7 @@ const RevealSlidesComponent = ({
607
610
  <PanelResizeHandle
608
611
  className="mo-slides-notes-resize"
609
612
  hitAreaMargins={{ coarse: 12, fine: 4 }}
613
+ disabled={isFullscreen}
610
614
  />
611
615
  <Panel
612
616
  defaultSize={10}
@@ -33,6 +33,7 @@ import { cellActionsState } from "../../cells/state";
33
33
  import { pythonCompletionSource } from "../../completion/completer";
34
34
  import type { PlaceholderType } from "../../config/types";
35
35
  import { FederatedLanguageServerClient } from "../../lsp/federated-lsp";
36
+ import { createLspMarkdownRenderer } from "../../lsp/markdown-renderer";
36
37
  import { NotebookLanguageServerClient } from "../../lsp/notebook-lsp";
37
38
  import { createTransport } from "../../lsp/transports";
38
39
  import { CellDocumentUri, type ILanguageServerClient } from "../../lsp/types";
@@ -342,6 +343,7 @@ export class PythonLanguageAdapter implements LanguageAdapter<{}> {
342
343
  client: client as unknown as LanguageServerClient,
343
344
  languageId: "python",
344
345
  allowHTMLContent: true,
346
+ markdownRenderer: createLspMarkdownRenderer(),
345
347
  useSnippetOnCompletion: true,
346
348
  hoverConfig: hoverOptions,
347
349
  completionConfig: autocompleteOptions,
@@ -0,0 +1,41 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
+ import { describe, expect, it } from "vitest";
3
+ import { createLspMarkdownRenderer } from "../markdown-renderer";
4
+
5
+ describe("createLspMarkdownRenderer", () => {
6
+ it("syntax-highlights python code blocks with tok-* span classes", () => {
7
+ const render = createLspMarkdownRenderer();
8
+ const result = render("```python\ndef foo():\n pass\n```");
9
+ expect(result).toContain('class="language-python"');
10
+ expect(result).toContain("tok-keyword");
11
+ expect(result).toContain("<pre><code");
12
+ });
13
+
14
+ it("does not highlight non-python code blocks", () => {
15
+ const render = createLspMarkdownRenderer();
16
+ const result = render("```bash\necho hello\n```");
17
+ expect(result).not.toContain("tok-keyword");
18
+ expect(result).toContain("<code");
19
+ });
20
+
21
+ it("renders empty python code blocks as empty string", () => {
22
+ const render = createLspMarkdownRenderer();
23
+ const result = render("```python\n \n```");
24
+ expect(result).toBe("");
25
+ });
26
+
27
+ it("renders markdown prose unchanged", () => {
28
+ const render = createLspMarkdownRenderer();
29
+ const result = render("## Examples\n\nSome text.");
30
+ expect(result).toContain("<h2");
31
+ expect(result).toContain("Examples");
32
+ expect(result).toContain("Some text.");
33
+ });
34
+
35
+ it("escapes HTML in highlighted code", () => {
36
+ const render = createLspMarkdownRenderer();
37
+ const result = render('```python\nx = "<div>"\n```');
38
+ expect(result).not.toContain("<div>");
39
+ expect(result).toContain("&lt;div&gt;");
40
+ });
41
+ });
@@ -0,0 +1,59 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
+ import { classHighlighter, highlightCode } from "@lezer/highlight";
3
+ import { parser as pythonParser } from "@lezer/python";
4
+ import { marked } from "marked";
5
+
6
+ /**
7
+ * Syntax-highlight a Python code string using the lezer Python parser.
8
+ * Returns an HTML string with tok-* span classes for styling.
9
+ */
10
+ function highlightPython(code: string): string {
11
+ const tree = pythonParser.parse(code);
12
+ let html = "";
13
+ highlightCode(
14
+ code,
15
+ tree,
16
+ classHighlighter,
17
+ (text, classes) => {
18
+ const escaped = text
19
+ .replace(/&/g, "&amp;")
20
+ .replace(/</g, "&lt;")
21
+ .replace(/>/g, "&gt;");
22
+ html += classes ? `<span class="${classes}">${escaped}</span>` : escaped;
23
+ },
24
+ () => {
25
+ html += "\n";
26
+ },
27
+ );
28
+ return html;
29
+ }
30
+
31
+ /**
32
+ * A markdown renderer for LSP hover tooltips that adds syntax highlighting
33
+ * to Python code blocks using the lezer Python parser and classHighlighter.
34
+ * The tok-* CSS classes are defined in documentation.css.
35
+ */
36
+ export function createLspMarkdownRenderer(): (markdown: string) => string {
37
+ const renderer = new marked.Renderer();
38
+ const prevCode = renderer.code.bind(renderer);
39
+
40
+ renderer.code = (token) => {
41
+ const { text, lang } = token;
42
+ if (!text.trim()) {
43
+ return "";
44
+ }
45
+ if (lang === "python" || lang === "py") {
46
+ const highlighted = highlightPython(text);
47
+ return `<pre><code class="language-python">${highlighted}</code></pre>\n`;
48
+ }
49
+ return prevCode(token);
50
+ };
51
+
52
+ return (markdown: string): string =>
53
+ marked(markdown, {
54
+ async: false,
55
+ gfm: true,
56
+ breaks: true,
57
+ renderer,
58
+ }) as string;
59
+ }
@@ -1,5 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { i as pythonLanguage, n as localCompletionSource, r as python, t as globalCompletion } from "./dist-BotSqB48.js";
3
- export {
4
- python
5
- };
@@ -1,6 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import "./dist-DxvORzUR.js";
3
- import { n as sassCompletionSource, r as sassLanguage, t as sass } from "./dist-Bfwsv11D.js";
4
- export {
5
- sass
6
- };
@@ -1,5 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { i as defineCSSCompletionSource, n as cssCompletionSource, r as cssLanguage, t as css } from "./dist-DxvORzUR.js";
3
- export {
4
- css
5
- };
@@ -1,8 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import "./dist-DqAWR3CS.js";
5
- import { n as phpLanguage, t as php } from "./dist-Bde4a2kU.js";
6
- export {
7
- php
8
- };
@@ -1,8 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import "./dist-DqAWR3CS.js";
5
- import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-4j4c7bjm.js";
6
- export {
7
- liquid
8
- };
@@ -1,5 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { n as jsonLanguage, t as json } from "./dist-h2c8sZvT.js";
3
- export {
4
- json
5
- };
@@ -1,5 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { n as wastLanguage, t as wast } from "./dist-BbbIBDiQ.js";
3
- export {
4
- wast
5
- };
@@ -1,6 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import "./dist-DxvORzUR.js";
3
- import { n as lessCompletionSource, r as lessLanguage, t as less } from "./dist-luvabDEB.js";
4
- export {
5
- less
6
- };
@@ -1,5 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { n as rustLanguage, t as rust } from "./dist-D4CewLk6.js";
3
- export {
4
- rust
5
- };
@@ -1,5 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { n as cppLanguage, t as cpp } from "./dist-CLUtPrdy.js";
3
- export {
4
- cpp
5
- };
@@ -1,8 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import "./dist-DqAWR3CS.js";
5
- import { i as jinjaLanguage, n as jinja, r as jinjaCompletionSource, t as closePercentBrace } from "./dist-B3pZ0Ab6.js";
6
- export {
7
- jinja
8
- };
@@ -1,5 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { n as javaLanguage, t as java } from "./dist-DgnE8F-r.js";
3
- export {
4
- java
5
- };
@@ -1,8 +0,0 @@
1
- import "./dist-DNdhYsgW.js";
2
- import "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import "./dist-DqAWR3CS.js";
5
- import { n as vueLanguage, t as vue } from "./dist-CLJWPTX2.js";
6
- export {
7
- vue
8
- };