@marimo-team/islands 0.24.3-dev33 → 0.24.3-dev36

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 (86) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BLO7UDpo.js → ConnectedDataExplorerComponent-DeiKXaGB.js} +4 -4
  2. package/dist/{ErrorBoundary-B7uSdDUm.js → ErrorBoundary-B3IKS4qY.js} +1 -1
  3. package/dist/{_baseMerge-Bnytch8P.js → _baseMerge-BiGRwuqv.js} +1 -1
  4. package/dist/{abnfDiagram-VCTEODGH-DCb2K_RB.js → abnfDiagram-VCTEODGH-DKNGRyhn.js} +2 -2
  5. package/dist/{any-language-editor-C0dftc2Z.js → any-language-editor-BdvsE_1G.js} +2 -2
  6. package/dist/{architectureDiagram-5GKGNRK7-Bb_n642s.js → architectureDiagram-5GKGNRK7-C9oCEyV-.js} +1 -1
  7. package/dist/{chat-ui-DiMxe-GH.js → chat-ui-D15itIKJ.js} +8 -8
  8. package/dist/{chunk-IMKFNOWR-Du9BN2Ul.js → chunk-IMKFNOWR-ByL0a1rh.js} +1 -1
  9. package/dist/{chunk-SHT3W25Y-tUelricH.js → chunk-SHT3W25Y-D1Nb5X1c.js} +1 -1
  10. package/dist/{chunk-SVP7TREG-DK3egkfQ.js → chunk-SVP7TREG-BShKxcfD.js} +1 -1
  11. package/dist/{chunk-TICWLB2K-DRANTdnp.js → chunk-TICWLB2K-zpDbKPt8.js} +1 -1
  12. package/dist/{classDiagram-ZZMXUADV-7wCSVH7o.js → classDiagram-ZZMXUADV-qcsoIIQw.js} +2 -2
  13. package/dist/{classDiagram-v2-VYDZK3BY-QwnvcnhB.js → classDiagram-v2-VYDZK3BY-CAgMct5x.js} +2 -2
  14. package/dist/{common-0eAIfiA-.js → common-CWnP5Rod.js} +7921 -11807
  15. package/dist/{cynefinDiagram-5FMLGOSQ-CB7O4IZB.js → cynefinDiagram-5FMLGOSQ-BzBXigwN.js} +1 -1
  16. package/dist/{dagre-DfYd3btw.js → dagre-BGSfXNEb.js} +21 -21
  17. package/dist/{dagre-GXQ25YYZ-C-a95ISW.js → dagre-GXQ25YYZ-B-75J283.js} +2 -2
  18. package/dist/{data-grid-overlay-editor-C5eUZVTo.js → data-grid-overlay-editor-DMu5X3F1.js} +1 -1
  19. package/dist/{diagram-S7CK7UJ4-BsKLYQaH.js → diagram-S7CK7UJ4-Bzr5oWc0.js} +1 -1
  20. package/dist/{diagram-UQ7AKVKN-ppYdvuTN.js → diagram-UQ7AKVKN-CVIH_HJ_.js} +1 -1
  21. package/dist/{diagram-VX7I27RA-CAMK2l0E.js → diagram-VX7I27RA-BmoMwYLC.js} +1 -1
  22. package/dist/{diagram-Z3DM3KII-CxQ7MggT.js → diagram-Z3DM3KII-BW1w6mnj.js} +1 -1
  23. package/dist/{dropdown-menu-C73aTomr.js → dropdown-menu-WMrB1UnI.js} +1 -1
  24. package/dist/{ebnfDiagram-PWID7BFC-DzybELvk.js → ebnfDiagram-PWID7BFC-90Q6gkC0.js} +2 -2
  25. package/dist/{erDiagram-RLTQ6QDP-BVxV97ld.js → erDiagram-RLTQ6QDP-BZkLy3TR.js} +1 -1
  26. package/dist/{esm-blALgIVy.js → esm-qM9GvHZi.js} +293 -307
  27. package/dist/{flowDiagram-HODETNUW-BKvXsWYX.js → flowDiagram-HODETNUW-CD1F_wj5.js} +2 -2
  28. package/dist/{formats-vDAoRpYs.js → formats-B-gajYGs.js} +1 -1
  29. package/dist/{glide-data-editor-Bcy8iaZa.js → glide-data-editor-DzFEatOq.js} +2218 -2209
  30. package/dist/{glide-utils-BMnFm0vZ.js → glide-utils-4WmLlefP.js} +11 -11
  31. package/dist/{html-to-image-mVIbKn_Y.js → html-to-image-CZm_DMIE.js} +15 -15
  32. package/dist/{infoDiagram-27XIBGKW-B_ucqo-U.js → infoDiagram-27XIBGKW-t0zIIRVa.js} +1 -1
  33. package/dist/{ishikawaDiagram-5VMMS53U-BZFx9b-o.js → ishikawaDiagram-5VMMS53U-DtQUIYgx.js} +1 -1
  34. package/dist/{kanban-definition-UXKFOSKX-BpIfcu3G.js → kanban-definition-UXKFOSKX-CUMmwuNB.js} +1 -1
  35. package/dist/main.js +5274 -5283
  36. package/dist/{mermaid-B1Jb9HfY.js → mermaid-CMLxoJ0m.js} +34 -34
  37. package/dist/{mindmap-definition-YA3MSWOX-CmpAfv8K.js → mindmap-definition-YA3MSWOX-DnbkiQla.js} +1 -1
  38. package/dist/{number-overlay-editor-CFofZaOi.js → number-overlay-editor-lGqRHkFt.js} +1 -1
  39. package/dist/{extends-Do6pRuJa.js → objectWithoutPropertiesLoose-BbiTb8zy.js} +12 -1
  40. package/dist/{pegDiagram-XKGWAZYB-DO-0Q8SE.js → pegDiagram-XKGWAZYB-qgqAYMdv.js} +2 -2
  41. package/dist/{pick-B7vX8zxG.js → pick-CJeoxYOS.js} +1 -1
  42. package/dist/{pieDiagram-E7YTZNPT-B1MbuA_g.js → pieDiagram-E7YTZNPT-DJUB6w6B.js} +1 -1
  43. package/dist/{process-output-Cr6U5ULK.js → process-output-DuupNR0m.js} +1 -1
  44. package/dist/{railroadDiagram-O6MQD6OU-DPVOQUXC.js → railroadDiagram-O6MQD6OU-C0dtw4sR.js} +2 -2
  45. package/dist/{requirementDiagram-BXWQKSXE-CC7wZ-tM.js → requirementDiagram-BXWQKSXE-DqaTsUuC.js} +1 -1
  46. package/dist/{reveal-component-C6z2iWf2.js → reveal-component-SdzpGkJs.js} +486 -486
  47. package/dist/{sequenceDiagram-WJ2MYXX4-DomSyoJI.js → sequenceDiagram-WJ2MYXX4-D2NyWGuu.js} +1 -1
  48. package/dist/{spec-g740fOWu.js → spec-BiD5y7ft.js} +1 -1
  49. package/dist/{stateDiagram-D77RDMKH-SQLLjdtF.js → stateDiagram-D77RDMKH-JChw35bc.js} +3 -3
  50. package/dist/{stateDiagram-v2-MP3YSRHH-Dup4KkIr.js → stateDiagram-v2-MP3YSRHH-BfVY7OxA.js} +2 -2
  51. package/dist/style.css +1 -1
  52. package/dist/{swimlanes-42K2YHIH-ZXbhyGv6.js → swimlanes-42K2YHIH-eAB6utyY.js} +1 -1
  53. package/dist/{swimlanesDiagram-VR7AAH4N-CluwxV0g.js → swimlanesDiagram-VR7AAH4N-Cnpd2YtA.js} +2 -2
  54. package/dist/{timeline-definition-24CTP7MA-B8i6B9RR.js → timeline-definition-24CTP7MA-DlnODX3U.js} +1 -1
  55. package/dist/{toDate-C3JOXlJT.js → toDate-0cxDmdsp.js} +1 -1
  56. package/dist/{useAsyncData-C0f7qnnN.js → useAsyncData-DCIhDLCe.js} +1 -1
  57. package/dist/{useDeepCompareMemoize-QCa0HbWB.js → useDeepCompareMemoize-CLaZB7Gc.js} +1 -1
  58. package/dist/{useLifecycle-BGRBkTFT.js → useLifecycle-C1ViBACC.js} +1 -1
  59. package/dist/{useTheme-iQ0VoptU.js → useTheme-Da9LJvrQ.js} +1 -1
  60. package/dist/{vega-component-DRI4BDLQ.js → vega-component-Bt6d8B4Q.js} +5 -5
  61. package/dist/{vennDiagram-4TSXK5OY-CS7lHhxI.js → vennDiagram-4TSXK5OY-B_m5KxUg.js} +1 -1
  62. package/dist/{wardleyDiagram-VM6X3IG4-BSm-L8JI.js → wardleyDiagram-VM6X3IG4-Dw-Lgv3D.js} +1 -1
  63. package/dist/{xychartDiagram-S5SC5T6Z-8fKCJGrJ.js → xychartDiagram-S5SC5T6Z-BjfRms1e.js} +1 -1
  64. package/package.json +3 -6
  65. package/src/components/data-table/columns.tsx +64 -67
  66. package/src/components/editor/header/filename-input.tsx +2 -0
  67. package/src/components/editor/output/JsonOutput.tsx +182 -632
  68. package/src/components/editor/output/Outputs.css +49 -17
  69. package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
  70. package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
  71. package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
  72. package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
  73. package/src/components/editor/output/json-output/formatting.ts +167 -0
  74. package/src/components/editor/output/json-output/pagination.ts +155 -0
  75. package/src/components/editor/output/json-output/renderers.tsx +196 -0
  76. package/src/components/editor/output/json-output/themes.ts +52 -0
  77. package/src/hooks/useDebounce.ts +2 -0
  78. package/src/plugins/core/BadPlugin.tsx +3 -14
  79. package/src/plugins/core/registerReactComponent.tsx +0 -1
  80. package/src/plugins/impl/FormPlugin.tsx +2 -0
  81. package/src/plugins/impl/MatrixPlugin.tsx +2 -0
  82. package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
  83. package/src/plugins/impl/SliderPlugin.tsx +2 -0
  84. package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
  85. package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
  86. package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
@@ -9,7 +9,7 @@ import "./chunk-4HAMMTFA-D2qv8E0X.js";
9
9
  import "./chunk-GVQU2GXP-yQEdulRS.js";
10
10
  import "./chunk-L3NEJ4N5-DwRWnDDK.js";
11
11
  import { o as n } from "./chunk-OSK3NFVY-BBKU_Ign.js";
12
- import { c as r } from "./mermaid-B1Jb9HfY.js";
12
+ import { c as r } from "./mermaid-CMLxoJ0m.js";
13
13
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-42K2YHIH.mjs
14
14
  var i = 5, a = 1e-5, o = 1e-6;
15
15
  function s(e) {
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D2qv8E0X.js";
9
9
  import "./chunk-GVQU2GXP-yQEdulRS.js";
10
10
  import "./chunk-L3NEJ4N5-DwRWnDDK.js";
11
11
  import "./chunk-OSK3NFVY-BBKU_Ign.js";
12
- import "./mermaid-B1Jb9HfY.js";
12
+ import "./mermaid-CMLxoJ0m.js";
13
13
  import "./chunk-F27PBJKO-DHmYWZXr.js";
14
14
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
15
  import "./chunk-POPQ4Y6H-BCbS3Ozc.js";
16
- import { r as t, t as n } from "./chunk-SHT3W25Y-tUelricH.js";
16
+ import { r as t, t as n } from "./chunk-SHT3W25Y-D1Nb5X1c.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-VR7AAH4N.mjs
18
18
  var r = n({
19
19
  defaultLayout: "swimlane",
@@ -3,7 +3,7 @@ import { p as t } from "./chunk-75Z2AOVW-5_HsvXwr.js";
3
3
  import { n, t as r } from "./src-CA_m4ONl.js";
4
4
  import { n as i, t as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { $ as o, J as s, a as c, b as l, et as u, nt as d, o as f, x as p } from "./chunk-DU6HZSFF-BUgAHvnM.js";
6
- import { p as m } from "./mermaid-B1Jb9HfY.js";
6
+ import { p as m } from "./mermaid-CMLxoJ0m.js";
7
7
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-24CTP7MA.mjs
8
8
  var h = (function() {
9
9
  var e = /* @__PURE__ */ i(function(e, t, n, r) {
@@ -2,7 +2,7 @@ import { t as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { g as t } from "./button-DdXAm8iz.js";
3
3
  import { t as n } from "./compiler-runtime-Cj8ZWiNS.js";
4
4
  import { u as r } from "./dist-6ChWbo8z.js";
5
- import { E as i, _ as a, a as o, b as s } from "./useTheme-iQ0VoptU.js";
5
+ import { E as i, _ as a, a as o, b as s } from "./useTheme-Da9LJvrQ.js";
6
6
  import { t as c } from "./invariant-DLmrl-hA.js";
7
7
  var l = r("circle-question-mark", [
8
8
  ["circle", {
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
3
  import { t as n } from "./compiler-runtime-Cj8ZWiNS.js";
4
- import { A as r } from "./useTheme-iQ0VoptU.js";
4
+ import { A as r } from "./useTheme-Da9LJvrQ.js";
5
5
  import { t as i } from "./invariant-DLmrl-hA.js";
6
6
  //#region src/hooks/useAsyncData.ts
7
7
  var a = n(), o = /* @__PURE__ */ e(t(), 1), s = {
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
- import { k as n } from "./useTheme-iQ0VoptU.js";
3
+ import { k as n } from "./useTheme-Da9LJvrQ.js";
4
4
  //#region src/hooks/useDeepCompareMemoize.ts
5
5
  var r = /* @__PURE__ */ e(t(), 1);
6
6
  function i(e) {
@@ -4,7 +4,7 @@ import { t as i } from "./react-ofJbxM4x.js";
4
4
  import { t as a } from "./compiler-runtime-Cj8ZWiNS.js";
5
5
  import { u as o } from "./dist-6ChWbo8z.js";
6
6
  import { t as s } from "./jsx-runtime-DgDPJV9S.js";
7
- import { E as c, w as l } from "./useTheme-iQ0VoptU.js";
7
+ import { E as c, w as l } from "./useTheme-Da9LJvrQ.js";
8
8
  var u = o("calendar", [
9
9
  ["path", {
10
10
  d: "M8 2v4",
@@ -3,7 +3,7 @@ import { a as n, g as r, s as i } from "./button-DdXAm8iz.js";
3
3
  import { t as a } from "./react-ofJbxM4x.js";
4
4
  import { t as o } from "./compiler-runtime-Cj8ZWiNS.js";
5
5
  import { A as s, D as c, I as l, N as u, P as d, S as f, _ as p, j as m, x as h } from "./schemas-BDZr-nP0.js";
6
- import { c as g, t as _ } from "./_baseMerge-Bnytch8P.js";
6
+ import { l as g, t as _ } from "./_baseMerge-BiGRwuqv.js";
7
7
  //#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
8
8
  var v = g(function(e, t, n, r) {
9
9
  _(e, t, n, r);
@@ -2,20 +2,20 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { g as t, h as n, m as r, o as i } from "./button-DdXAm8iz.js";
3
3
  import { t as a } from "./react-ofJbxM4x.js";
4
4
  import { t as o } from "./compiler-runtime-Cj8ZWiNS.js";
5
- import { c as s, v as c } from "./toDate-C3JOXlJT.js";
5
+ import { c as s, v as c } from "./toDate-0cxDmdsp.js";
6
6
  import { t as l } from "./jsx-runtime-DgDPJV9S.js";
7
7
  import { n as u } from "./error-banner-hCaH06e3.js";
8
8
  import { t as d } from "./tooltip-CdE8k0pS.js";
9
9
  import { t as f } from "./debounce-C3jyATpc.js";
10
- import { A as p, n as ee } from "./useTheme-iQ0VoptU.js";
10
+ import { A as p, n as ee } from "./useTheme-Da9LJvrQ.js";
11
11
  import { c as m } from "./arrays-CN1djC4k.js";
12
12
  import { t as te } from "./objects-CzUgoMIF.js";
13
- import { t as h } from "./useAsyncData-C0f7qnnN.js";
14
- import { a as ne, i as re, n as ie, t as g } from "./formats-vDAoRpYs.js";
13
+ import { t as h } from "./useAsyncData-DCIhDLCe.js";
14
+ import { a as ne, i as re, n as ie, t as g } from "./formats-B-gajYGs.js";
15
15
  import { M as ae, n as oe } from "./vega-loader.browser-D95WfUcj.js";
16
16
  import { t as se } from "./react-vega-5AcMW8gG.js";
17
17
  import { a as ce, n as _ } from "./loader-D2W4oM-3.js";
18
- import { t as le } from "./useDeepCompareMemoize-QCa0HbWB.js";
18
+ import { t as le } from "./useDeepCompareMemoize-CLaZB7Gc.js";
19
19
  import { t as ue } from "./semaphore-89jsoHtS.js";
20
20
  import { t as de } from "./use-vega-container-remeasure-4DwJbPWu.js";
21
21
  //#region src/plugins/impl/vega/fix-relative-url.ts
@@ -3,7 +3,7 @@ import { t } from "./src-CA_m4ONl.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
4
  import { $ as r, H as i, K as a, U as o, a as s, b as c, c as l, et as u, f as d, nt as f, tt as p, v as m, w as h, y as g } from "./chunk-DU6HZSFF-BUgAHvnM.js";
5
5
  import { t as _ } from "./rough.esm-CtV9AnV1.js";
6
- import { p as v } from "./mermaid-B1Jb9HfY.js";
6
+ import { p as v } from "./mermaid-CMLxoJ0m.js";
7
7
  //#region ../node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/transparentize.js
8
8
  var y = (e, t) => p(e, "a", -t), b = 1e-10;
9
9
  function x(e, t) {
@@ -2,7 +2,7 @@ import { i as e } from "./chunk-75Z2AOVW-5_HsvXwr.js";
2
2
  import { n as t } from "./src-CA_m4ONl.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
4
  import { D as r, H as i, K as a, U as o, a as s, b as c, c as l, v as u, w as d, x as f, y as p } from "./chunk-DU6HZSFF-BUgAHvnM.js";
5
- import { p as m } from "./mermaid-B1Jb9HfY.js";
5
+ import { p as m } from "./mermaid-CMLxoJ0m.js";
6
6
  import { n as h } from "./mermaid-parser.core-DxuSfYwJ.js";
7
7
  import { t as g } from "./chunk-JWPE2WC7-DJvv1t8U.js";
8
8
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-VM6X3IG4.mjs
@@ -9,7 +9,7 @@ import { n as s } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
9
9
  import { D as c, H as l, K as u, U as d, a as f, b as p, c as m, f as h, v as g, w as _, y as v, z as y } from "./chunk-DU6HZSFF-BUgAHvnM.js";
10
10
  import "./chunk-PWAF6VOD-CTFCL0jI.js";
11
11
  import { t as b } from "./chunk-GMAD6QVW-Czynz8aA.js";
12
- import { p as x } from "./mermaid-B1Jb9HfY.js";
12
+ import { p as x } from "./mermaid-CMLxoJ0m.js";
13
13
  //#region ../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.js
14
14
  function S() {
15
15
  var e = t().unknown(void 0), r = e.domain, i = e.range, o = 0, s = 1, c, l, u = !1, d = 0, f = 0, p = .5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.24.3-dev33",
3
+ "version": "0.24.3-dev36",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -43,8 +43,6 @@
43
43
  "@dnd-kit/modifiers": "^9.0.0",
44
44
  "@dnd-kit/sortable": "^10.0.0",
45
45
  "@dnd-kit/utilities": "^3.2.2",
46
- "@emotion/cache": "^11.14.0",
47
- "@emotion/react": "^11.14.0",
48
46
  "@glideapps/glide-data-grid": "6.0.4-alpha24",
49
47
  "@hookform/resolvers": "^5.9.1",
50
48
  "@img-comparison-slider/react": "^8.0.2",
@@ -62,7 +60,6 @@
62
60
  "@marimo-team/marimo-api": "workspace:*",
63
61
  "@marimo-team/react-slotz": "^0.2.0",
64
62
  "@marimo-team/smart-cells": "workspace:*",
65
- "@mui/material": "^6.5.0",
66
63
  "@paralleldrive/cuid2": "^2.3.1",
67
64
  "@radix-ui/colors": "^3.0.0",
68
65
  "@radix-ui/react-icons": "~1.3.2",
@@ -74,7 +71,6 @@
74
71
  "@tailwindcss/typography": "^0.5.20",
75
72
  "@tanstack/react-table": "^8.21.3",
76
73
  "@tanstack/react-virtual": "^3.14.10",
77
- "@textea/json-viewer": "^4.0.1",
78
74
  "@types/humanize-duration": "^3.27.4",
79
75
  "@types/js-cookie": "^3.0.6",
80
76
  "@types/jsdom": "^21.1.7",
@@ -82,6 +78,7 @@
82
78
  "@uidotdev/usehooks": "^2.4.1",
83
79
  "@uiw/codemirror-extensions-langs": "^4.25.11",
84
80
  "@uiw/react-codemirror": "4.25.11",
81
+ "@uiw/react-json-view": "2.0.0-alpha.43",
85
82
  "@uwdata/flechette": "^1.1.2",
86
83
  "@valtown/codemirror-codeium": "^1.1.1",
87
84
  "@xterm/addon-attach": "^0.12.0",
@@ -215,9 +212,9 @@
215
212
  "jsdom": "^24.1.3",
216
213
  "msw": "^2.15.0",
217
214
  "npm-run-all2": "^6.2.6",
215
+ "oxc-transform-react": "0.145.0",
218
216
  "oxfmt": "^0.64.0",
219
217
  "oxlint": "^1.79.0",
220
- "oxc-transform-react": "0.145.0",
221
218
  "postcss": "^8.5.26",
222
219
  "postcss-prefix-selector": "^2.2.0",
223
220
  "react": "^19.2.8",
@@ -20,7 +20,6 @@ import { Maps } from "@/utils/maps";
20
20
  import { maxFractionalDigits } from "@/utils/numbers";
21
21
  import { Objects } from "@/utils/objects";
22
22
  import { parseContent } from "@/utils/url-parser";
23
- import { EmotionCacheProvider } from "../editor/output/EmotionCacheProvider";
24
23
  import { JsonOutput } from "../editor/output/JsonOutput";
25
24
  import { CopyClipboardIcon } from "../icons/copy-icon";
26
25
  import { Button } from "../ui/button";
@@ -412,76 +411,74 @@ const PopoutColumn = ({
412
411
  : rawStringValue;
413
412
 
414
413
  return (
415
- <EmotionCacheProvider container={null}>
416
- <Popover>
417
- <PopoverTrigger
418
- ref={triggerRef}
419
- className={cn(cellStyles, "max-w-fit outline-hidden")}
420
- onClick={selectCell}
421
- onMouseDown={(e) => {
422
- // Prevent cell underneath from being selected
423
- e.stopPropagation();
424
- }}
425
- >
426
- <span
427
- className={cn(
428
- "cursor-pointer hover:text-link",
429
- wrapped && COLUMN_WRAPPING_STYLES,
430
- )}
431
- title={rawStringValue}
432
- >
433
- {edges ? <WhitespaceMarkers value={edges.leading} /> : null}
434
- {displayText}
435
- {edges ? <WhitespaceMarkers value={edges.trailing} /> : null}
436
- </span>
437
- </PopoverTrigger>
438
- <PopoverContent
414
+ <Popover>
415
+ <PopoverTrigger
416
+ ref={triggerRef}
417
+ className={cn(cellStyles, "max-w-fit outline-hidden")}
418
+ onClick={selectCell}
419
+ onMouseDown={(e) => {
420
+ // Prevent cell underneath from being selected
421
+ e.stopPropagation();
422
+ }}
423
+ >
424
+ <span
439
425
  className={cn(
440
- contentClassName,
441
- scrollable && "flex flex-col overflow-hidden",
426
+ "cursor-pointer hover:text-link",
427
+ wrapped && COLUMN_WRAPPING_STYLES,
442
428
  )}
443
- align="start"
444
- alignOffset={10}
445
- onInteractOutside={(event) => {
446
- // Radix sees the shadow host as the target. Resolve the original
447
- // target so pointer-down does not dismiss before click toggles.
448
- const target = Events.composedTarget(event.detail.originalEvent);
449
- if (triggerRef.current?.contains(target)) {
450
- event.preventDefault();
451
- }
452
- }}
429
+ title={rawStringValue}
453
430
  >
454
- <div
455
- className={cn(
456
- "flex -mt-3 -mr-2",
457
- scrollable ? "shrink-0 justify-end" : "float-right",
458
- )}
459
- >
460
- <CopyClipboardIcon
461
- value={rawStringValue}
462
- className="size-3 hover:text-link"
463
- buttonClassName="flex size-5 items-center justify-center"
464
- tooltip={false}
465
- />
466
- <PopoverClose asChild={true}>
467
- <Button
468
- variant="link"
469
- size="xs"
470
- className={cn("size-5 p-0", !buttonText && "ml-1.5 mr-1")}
471
- aria-label="Close"
472
- >
473
- {buttonText ?? "Close"}
474
- </Button>
475
- </PopoverClose>
476
- </div>
477
- {scrollable ? (
478
- <div className="min-h-0 overflow-auto">{children}</div>
479
- ) : (
480
- children
431
+ {edges ? <WhitespaceMarkers value={edges.leading} /> : null}
432
+ {displayText}
433
+ {edges ? <WhitespaceMarkers value={edges.trailing} /> : null}
434
+ </span>
435
+ </PopoverTrigger>
436
+ <PopoverContent
437
+ className={cn(
438
+ contentClassName,
439
+ scrollable && "flex flex-col overflow-hidden",
440
+ )}
441
+ align="start"
442
+ alignOffset={10}
443
+ onInteractOutside={(event) => {
444
+ // Radix sees the shadow host as the target. Resolve the original
445
+ // target so pointer-down does not dismiss before click toggles.
446
+ const target = Events.composedTarget(event.detail.originalEvent);
447
+ if (triggerRef.current?.contains(target)) {
448
+ event.preventDefault();
449
+ }
450
+ }}
451
+ >
452
+ <div
453
+ className={cn(
454
+ "flex -mt-3 -mr-2",
455
+ scrollable ? "shrink-0 justify-end" : "float-right",
481
456
  )}
482
- </PopoverContent>
483
- </Popover>
484
- </EmotionCacheProvider>
457
+ >
458
+ <CopyClipboardIcon
459
+ value={rawStringValue}
460
+ className="size-3 hover:text-link"
461
+ buttonClassName="flex size-5 items-center justify-center"
462
+ tooltip={false}
463
+ />
464
+ <PopoverClose asChild={true}>
465
+ <Button
466
+ variant="link"
467
+ size="xs"
468
+ className={cn("size-5 p-0", !buttonText && "ml-1.5 mr-1")}
469
+ aria-label="Close"
470
+ >
471
+ {buttonText ?? "Close"}
472
+ </Button>
473
+ </PopoverClose>
474
+ </div>
475
+ {scrollable ? (
476
+ <div className="min-h-0 overflow-auto">{children}</div>
477
+ ) : (
478
+ children
479
+ )}
480
+ </PopoverContent>
481
+ </Popover>
485
482
  );
486
483
  };
487
484
 
@@ -53,6 +53,8 @@ export const FilenameInput = ({
53
53
  const skipReset = useRef<boolean>(false);
54
54
 
55
55
  useEffect(() => {
56
+ // TODO: Reset the editable draft without synchronizing state in an effect.
57
+ // oxlint-disable-next-line react/no-deriving-state-in-effects -- Reset the editable draft when the external filename changes.
56
58
  setSearchValue(initialValue);
57
59
  }, [initialValue]);
58
60