@marimo-team/islands 0.25.2-dev99 → 0.25.3-dev10
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-BZmqc_F0.js → ConnectedDataExplorerComponent-CNMliVzw.js} +15 -15
- package/dist/{ErrorBoundary-CXkr_IcB.js → ErrorBoundary-BsqSMK9Y.js} +12 -12
- package/dist/{ImageComparisonComponent-Cpfz30OZ.js → ImageComparisonComponent-uU8FSKZE.js} +3 -3
- package/dist/{Plot-CTyjbQDT.js → Plot-DdYOe1UK.js} +2 -2
- package/dist/{abnfDiagram-VCTEODGH-C_Lmaa2j.js → abnfDiagram-VCTEODGH-D-Ez91gV.js} +3 -3
- package/dist/{any-language-editor-BFzqhOBR.js → any-language-editor-DZ_YTVus.js} +7 -7
- package/dist/{architectureDiagram-5GKGNRK7-BKMataHB.js → architectureDiagram-5GKGNRK7-CTpcNtO8.js} +5 -5
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +1 -0
- package/dist/assets/worker-HPY9fbhz.js +114 -0
- package/dist/{blockDiagram-I7D4REHJ-BeHOjyDk.js → blockDiagram-I7D4REHJ-Cg25UrxT.js} +9 -9
- package/dist/{button-BtsM2UqM.js → button-CvjkwdSk.js} +5 -5
- package/dist/{c4Diagram-7LVT6UL2-Bao10t_O.js → c4Diagram-7LVT6UL2-BxFgrnNV.js} +7 -7
- package/dist/{capabilities-A5jrzjCJ.js → capabilities-CQ5IjhzL.js} +1 -1
- package/dist/{channel-BxCkvUgE.js → channel-CPObtJXj.js} +1 -1
- package/dist/{chat-ui-CwOWzoSO.js → chat-ui-0lKdOoQ3.js} +1588 -1396
- package/dist/{check-CNP79M3A.js → check-EDwSwP89.js} +1 -1
- package/dist/{chunk-4HAMMTFA-CH7Gpamd.js → chunk-4HAMMTFA-D4eFPyFh.js} +5 -5
- package/dist/{chunk-75Z2AOVW-AI7CvgKn.js → chunk-75Z2AOVW-D7gxIs2Q.js} +1 -1
- package/dist/{chunk-DU6HZSFF-BSvuTkX4.js → chunk-DU6HZSFF-BwiyaNpg.js} +1 -1
- package/dist/{chunk-F27PBJKO-CLshwT9T.js → chunk-F27PBJKO-ufseIn5y.js} +1 -1
- package/dist/{chunk-GMAD6QVW-wnHcn-lH.js → chunk-GMAD6QVW-BhaJx0X3.js} +3 -3
- package/dist/{chunk-GVQU2GXP-7O2p8hut.js → chunk-GVQU2GXP-Cwbt-lF0.js} +2 -2
- package/dist/{chunk-IMKFNOWR-Bu0Vh_Yi.js → chunk-IMKFNOWR-DGxi-zeo.js} +5 -5
- package/dist/{chunk-L3NEJ4N5-B9_Alrxb.js → chunk-L3NEJ4N5-n-zgIVSy.js} +5 -5
- package/dist/{chunk-OSK3NFVY-PeQPH2fD.js → chunk-OSK3NFVY-DXa-Cxbn.js} +6 -6
- package/dist/{chunk-P2QGCYS3-D9twiFuU.js → chunk-P2QGCYS3-B_Zd3-X0.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-BUiNs18s.js → chunk-POPQ4Y6H-hYOXbYH_.js} +1 -1
- package/dist/{chunk-PWAF6VOD-D8S9NPCy.js → chunk-PWAF6VOD-CQw5qATZ.js} +1 -1
- package/dist/{chunk-SHT3W25Y-B2dyNZ31.js → chunk-SHT3W25Y-CV9J3rAB.js} +7 -7
- package/dist/{chunk-SVP7TREG-D7UPvB10.js → chunk-SVP7TREG-BL-9Fqgg.js} +2 -2
- package/dist/{chunk-TICWLB2K-BNaGoadd.js → chunk-TICWLB2K-Cu_XMjDM.js} +5 -5
- package/dist/{chunk-YOKDWASO-DrWbKnxA.js → chunk-YOKDWASO-DPZk8vhS.js} +6 -6
- package/dist/classDiagram-ZZMXUADV-BXXV13Hq.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js +30 -0
- package/dist/{code-visibility-pPjYsRTH.js → code-visibility-CXQvUXHT.js} +18 -18
- package/dist/{common-CkvBp0B4.js → common-CuD-CAC-.js} +6128 -7136
- package/dist/{compiler-runtime-Cj8ZWiNS.js → compiler-runtime-CldRdSsv.js} +2 -2
- package/dist/{copy-icon-BY7jgcaV.js → copy-icon-Ft7t9bqz.js} +6 -6
- package/dist/{cynefinDiagram-5FMLGOSQ-CCDn4Z9e.js → cynefinDiagram-5FMLGOSQ-CH96rwba.js} +3 -3
- package/dist/{dagre-GXQ25YYZ-BJiUO_SV.js → dagre-GXQ25YYZ-BD3PmpFY.js} +10 -10
- package/dist/{data-grid-overlay-editor-L6ELxFAh.js → data-grid-overlay-editor-DgeyYmC1.js} +7 -7
- package/dist/{data-grid-types-BucVmDDp.js → data-grid-types-BH_r7g7l.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BZfxFNRR.js → diagram-S7CK7UJ4-BsSJJldB.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-1xcsiIMg.js → diagram-UQ7AKVKN-muQtNZc4.js} +3 -3
- package/dist/{diagram-VSXAHHWV-DPAWJ9Nw.js → diagram-VSXAHHWV-BJWcVVJY.js} +2 -2
- package/dist/{diagram-VX7I27RA-DmRsnHYY.js → diagram-VX7I27RA-CdhuZAqR.js} +5 -5
- package/dist/{diagram-Z3DM3KII--b49ryKx.js → diagram-Z3DM3KII-BD8mXjOj.js} +3 -3
- package/dist/{dialog-CmExhUDI.js → dialog-CEBFZNyc.js} +6 -6
- package/dist/{dist-CcyKTBTF.js → dist-DpBpA_n1.js} +2 -2
- package/dist/{dropdown-menu-Cz4TdOJh.js → dropdown-menu-CP_qCYHC.js} +139 -139
- package/dist/{ebnfDiagram-PWID7BFC-rSwVyh4y.js → ebnfDiagram-PWID7BFC-BIN1sweE.js} +3 -3
- package/dist/{erDiagram-RLTQ6QDP-Bfd3iAoC.js → erDiagram-RLTQ6QDP-Ctp5cfoN.js} +12 -12
- package/dist/{error-banner-D30nA9nE.js → error-banner-D-WCIiMt.js} +16 -11
- package/dist/{cells-DZi0ioak.js → error-entries-DSvFWT_M.js} +6171 -5075
- package/dist/{esm-DAVrGVKP.js → esm-AMFssoNp.js} +4 -4
- package/dist/{feedback-button-D-pV0Qji.js → feedback-button-DZMj9PF3.js} +119 -120
- package/dist/flowDiagram-HODETNUW-3EfLrlFb.js +16 -0
- package/dist/{formats-DhhbdyAH.js → formats-CeOmU1MU.js} +6 -6
- package/dist/{ganttDiagram-EL5Y4UJY-B4m_YsKa.js → ganttDiagram-EL5Y4UJY-BQT16JSc.js} +2 -2
- package/dist/{gitGraphDiagram-WWUBYQGX-QRBbvWXh.js → gitGraphDiagram-WWUBYQGX-D5nSIzdE.js} +2 -2
- package/dist/{glide-data-editor-D6CfYwdr.js → glide-data-editor-g_L8FLAC.js} +60 -60
- package/dist/{glide-utils-BVJ4fkxX.js → glide-utils-DJyqh0EM.js} +4 -4
- package/dist/{globals-BwK9YGrX.js → globals-CYGlmBXb.js} +3 -3
- package/dist/{highlighted-body-KPVGNVTW-Ad3MKZ18.js → highlighted-body-KPVGNVTW-zwjq21tf.js} +4 -4
- package/dist/{html-to-image-Cn1_16-x.js → html-to-image-B8s5SgGm.js} +37 -37
- package/dist/{infoDiagram-27XIBGKW-DVQFYvhg.js → infoDiagram-27XIBGKW-DipQoHxl.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-viPND-nm.js → ishikawaDiagram-5VMMS53U-DgFMjSGz.js} +3 -3
- package/dist/{journeyDiagram-3NMN7TZE-BeeJdJo3.js → journeyDiagram-3NMN7TZE-BaLqn-dZ.js} +2 -2
- package/dist/{jsx-runtime-DgDPJV9S.js → jsx-runtime-3BD1kT0s.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Dcl_ECO9.js → kanban-definition-UXKFOSKX-w1ACVjgl.js} +9 -9
- package/dist/{katex-BNCmKUol.js → katex-BIdZGsyO.js} +141 -116
- package/dist/{label-DQO1jFjf.js → label-BDKF3Afc.js} +10 -10
- package/dist/{loader-Cm-ATtou.js → loader-BQOfjTIJ.js} +1 -1
- package/dist/main.js +623 -590
- package/dist/{mermaid-BfhcnSj-.js → mermaid-CHo49Yv-.js} +56 -56
- package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +2 -0
- package/dist/{mhchem-BEc7A1or.js → mhchem-CdWPJK6g.js} +1 -1
- package/dist/{mindmap-definition-YA3MSWOX-BdxxhF-5.js → mindmap-definition-YA3MSWOX-CrT0KSfX.js} +11 -11
- package/dist/{number-overlay-editor-tMylyldi.js → number-overlay-editor-9VRv-pdj.js} +5 -5
- package/dist/{pegDiagram-XKGWAZYB-Du5p2s0w.js → pegDiagram-XKGWAZYB-BqvywNJA.js} +3 -3
- package/dist/{pieDiagram-E7YTZNPT-DJg-SOIq.js → pieDiagram-E7YTZNPT-BfxJ_XCc.js} +3 -3
- package/dist/{process-output-CUG57KRp.js → process-output-CKRXyszb.js} +5 -5
- package/dist/{quadrantDiagram-AXDQQJYC-keLfFx9f.js → quadrantDiagram-AXDQQJYC-Ccw0xMjN.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-C0ojm-6_.js → railroadDiagram-O6MQD6OU-8vFLVTPu.js} +3 -3
- package/dist/{react-dom-BUgJ-ab_.js → react-dom-DUmH0GXv.js} +29 -21
- package/dist/{react-ofJbxM4x.js → react-sHtZdjeP.js} +103 -94
- package/dist/{react-vega-ewj7q_U5.js → react-vega-BED0DjiB.js} +3 -3
- package/dist/{requirementDiagram-BXWQKSXE-CNwNBmI3.js → requirementDiagram-BXWQKSXE-a_MxGvxe.js} +11 -11
- package/dist/{reveal-component-LXUMcqWX.js → reveal-component-C87mv9Mn.js} +906 -878
- package/dist/{sankeyDiagram-P5KCCOFB-Bh4EsJox.js → sankeyDiagram-P5KCCOFB-ELvOcnZH.js} +1 -1
- package/dist/{select-Bs-nmvm6.js → select-BButFi-d.js} +11 -11
- package/dist/{sequenceDiagram-WJ2MYXX4-DQaW5qBG.js → sequenceDiagram-WJ2MYXX4-CXFMnxGh.js} +4 -4
- package/dist/{spec-DVsoMvYT.js → spec-BwarBpUJ.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-BDa515QC.js → stateDiagram-D77RDMKH-DQeA_CwI.js} +13 -13
- package/dist/stateDiagram-v2-MP3YSRHH-BxxQucm1.js +30 -0
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-M4IdGi8J.js → swimlanes-42K2YHIH-Do6L-cYg.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-DUzPvSVU.js +30 -0
- package/dist/{swiper-component-CpN-hewZ.js → swiper-component-DKntyn8p.js} +5 -5
- package/dist/{timeline-definition-24CTP7MA-DH-kvakg.js → timeline-definition-24CTP7MA-D3c46WM5.js} +3 -3
- package/dist/{toDate-vEi5kTfY.js → toDate-vIXljnsr.js} +43 -42
- package/dist/{toast-DfEpJedt.js → toast-B9UMEi8u.js} +9 -9
- package/dist/{tooltip-CuNWg2ay.js → tooltip-BO1REbqs.js} +7 -7
- package/dist/{use-restore-focus-kmgwrL8q.js → use-restore-focus-BEM7sFWl.js} +2042 -1827
- package/dist/{use-vega-container-remeasure-4DwJbPWu.js → use-vega-container-remeasure-Bz4PZMtt.js} +2 -2
- package/dist/{useAsyncData-rkAlR_vh.js → useAsyncData-Deh5kszT.js} +3 -3
- package/dist/{useDateFormatter-C-tz65rD.js → useDateFormatter-D8XruNGG.js} +4 -4
- package/dist/{useDeepCompareMemoize-BlHFBj5_.js → useDeepCompareMemoize-DXwzRINI.js} +2 -2
- package/dist/{useIframeCapabilities-C1Bt04Iz.js → useIframeCapabilities-DBETvvPl.js} +2 -2
- package/dist/{useLifecycle-B68iY077.js → useLifecycle-j7D9uD1o.js} +6 -6
- package/dist/{useTheme-BwSgeAFb.js → useTheme-CRnjkku0.js} +7 -7
- package/dist/{vega-component-C-bPttRN.js → vega-component-DTG6zxaY.js} +14 -14
- package/dist/{vega-embed-container-sSR5hAsy.js → vega-embed-container-BNHE18G9.js} +5 -5
- package/dist/{vennDiagram-4TSXK5OY-d5g7XeiI.js → vennDiagram-4TSXK5OY-BSZD8JcZ.js} +3 -3
- package/dist/{wardleyDiagram-VM6X3IG4-BfX3bSzR.js → wardleyDiagram-VM6X3IG4-48cUWkfA.js} +3 -3
- package/dist/{xychartDiagram-S5SC5T6Z-C1QsLZg7.js → xychartDiagram-S5SC5T6Z-CswYgYeu.js} +5 -5
- package/package.json +25 -22
- package/src/__tests__/fixtures/{pair-preview.ts → pair-config.ts} +3 -2
- package/src/__tests__/host-imports.test.ts +100 -0
- package/src/__tests__/mount.test.ts +8 -8
- package/src/components/data-table/__tests__/column_formatting.test.ts +30 -0
- package/src/components/data-table/__tests__/columns.test.tsx +70 -0
- package/src/components/data-table/__tests__/context-menu.test.ts +176 -0
- package/src/components/data-table/__tests__/date-filter-inputs.test.tsx +24 -1
- package/src/components/data-table/__tests__/export-actions.test.tsx +329 -6
- package/src/components/data-table/column-formatting/feature.ts +20 -1
- package/src/components/data-table/columns.tsx +25 -18
- package/src/components/data-table/context-menu.tsx +125 -26
- package/src/components/data-table/date-filter-inputs.tsx +15 -42
- package/src/components/data-table/export-actions.tsx +192 -116
- package/src/components/data-table/schemas.ts +14 -36
- package/src/components/data-table/utils.ts +18 -0
- package/src/components/editor/Output.tsx +9 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +80 -252
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +186 -34
- package/src/components/editor/actions/pair-with-agent-commands.ts +42 -51
- package/src/components/editor/actions/pair-with-agent-modal.tsx +96 -36
- package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +372 -0
- package/src/components/editor/chrome/wrapper/footer-item.tsx +32 -24
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +237 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +4 -3
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +548 -0
- package/src/components/editor/errors/send-error-report-button.tsx +69 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +21 -5
- package/src/components/editor/output/MarimoTracebackOutput.tsx +35 -20
- package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
- package/src/components/editor/output/ansi-reduce.ts +6 -0
- package/src/components/editor/output/console/ConsoleOutput.tsx +5 -3
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +18 -0
- package/src/components/storage/__tests__/storage-file-viewer.test.tsx +2 -1
- package/src/core/attachments/__tests__/toast.test.tsx +58 -0
- package/src/core/attachments/state.ts +21 -0
- package/src/core/attachments/toast.ts +15 -0
- package/src/core/cells/__tests__/cells.test.ts +52 -0
- package/src/core/cells/__tests__/document-roundtrip.test.ts +16 -0
- package/src/core/cells/__tests__/error-report.test.ts +139 -0
- package/src/core/cells/__tests__/session.test.ts +50 -1
- package/src/core/cells/error-report.ts +63 -0
- package/src/core/cells/session.ts +28 -1
- package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +447 -0
- package/src/core/codemirror/copilot/__tests__/inline-completion.test.ts +395 -0
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +511 -2
- package/src/core/codemirror/copilot/__tests__/rpc-cancellation.test.ts +201 -0
- package/src/core/codemirror/copilot/extension.ts +22 -11
- package/src/core/codemirror/copilot/language-server.ts +109 -60
- package/src/core/codemirror/language/__tests__/sql.test.ts +4 -3
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +138 -26
- package/src/core/codemirror/language/embedded/embedded-python.ts +47 -13
- package/src/core/codemirror/language/embedded/latex.ts +20 -13
- package/src/core/config/pair.ts +5 -3
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +18 -11
- package/src/core/host/AGENTS.md +6 -0
- package/src/core/host/__tests__/protocol.test.ts +214 -0
- package/src/core/host/protocol.ts +1943 -0
- package/src/core/islands/__tests__/bootstrap.test.ts +26 -0
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/islands/bridge.ts +2 -2
- package/src/core/kernel/messages.ts +4 -7
- package/src/core/network/__tests__/api.test.ts +114 -1
- package/src/core/network/api.ts +3 -2
- package/src/core/wasm/bridge.ts +2 -2
- package/src/core/wasm/worker/types.ts +2 -2
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +193 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +9 -0
- package/src/css/katex-css.test.ts +1 -1
- package/src/css/katex.min.css +6 -1
- package/src/hooks/__tests__/useEventListener.test.tsx +45 -1
- package/src/hooks/useEventListener.ts +6 -1
- package/src/mount.tsx +3 -3
- package/src/plugins/impl/NumberPlugin.tsx +20 -3
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +84 -0
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +159 -1
- package/src/utils/__tests__/dates.test.ts +116 -0
- package/src/utils/dates.ts +94 -0
- package/dist/assets/__vite-browser-external-BqAtzd2P.js +0 -1
- package/dist/assets/worker-Bf8dt6S-.js +0 -109
- package/dist/classDiagram-ZZMXUADV-Bbo2n384.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-xR8cGP0r.js +0 -30
- package/dist/error-entries-BovkFYNy.js +0 -56
- package/dist/flowDiagram-HODETNUW-D7IBKS12.js +0 -16
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +0 -2
- package/dist/stateDiagram-v2-MP3YSRHH-ChNddepZ.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-FUSwmzEp.js +0 -30
package/dist/{use-vega-container-remeasure-4DwJbPWu.js → use-vega-container-remeasure-Bz4PZMtt.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./react-
|
|
3
|
-
import { t as n } from "./compiler-runtime-
|
|
2
|
+
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
+
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
4
|
//#region src/plugins/impl/vega/use-vega-container-remeasure.ts
|
|
5
5
|
var r = n(), i = /* @__PURE__ */ e(t(), 1);
|
|
6
6
|
function a(e, t) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./react-
|
|
3
|
-
import { t as n } from "./compiler-runtime-
|
|
4
|
-
import { A as r } from "./useTheme-
|
|
2
|
+
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
+
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
|
+
import { A as r } from "./useTheme-CRnjkku0.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,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./react-
|
|
3
|
-
import { h as n } from "./tooltip-
|
|
4
|
-
import { i as r } from "./label-
|
|
2
|
+
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
+
import { h as n } from "./tooltip-BO1REbqs.js";
|
|
4
|
+
import { i as r } from "./label-BDKF3Afc.js";
|
|
5
5
|
var i = n("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"
|
|
@@ -131,7 +131,7 @@ function _(e, t) {
|
|
|
131
131
|
throw Error("Unexpected hour cycle result");
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
|
-
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.
|
|
134
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/useDateFormatter.mjs
|
|
135
135
|
function v(e) {
|
|
136
136
|
e = c(e ?? {}, y);
|
|
137
137
|
let { locale: t } = r();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./react-
|
|
3
|
-
import { k as n } from "./useTheme-
|
|
2
|
+
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
+
import { k as n } from "./useTheme-CRnjkku0.js";
|
|
4
4
|
//#region src/hooks/useDeepCompareMemoize.ts
|
|
5
5
|
var r = /* @__PURE__ */ e(t(), 1);
|
|
6
6
|
function i(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./compiler-runtime-
|
|
2
|
-
import { t } from "./capabilities-
|
|
1
|
+
import { t as e } from "./compiler-runtime-CldRdSsv.js";
|
|
2
|
+
import { t } from "./capabilities-CQ5IjhzL.js";
|
|
3
3
|
//#region src/hooks/useIframeCapabilities.ts
|
|
4
4
|
var n = e();
|
|
5
5
|
function r() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { g as t, h as n, r } from "./button-
|
|
3
|
-
import { t as i } from "./react-
|
|
4
|
-
import { t as a } from "./compiler-runtime-
|
|
5
|
-
import { h as o } from "./tooltip-
|
|
6
|
-
import { t as s } from "./jsx-runtime-
|
|
7
|
-
import { E as c, w as l } from "./useTheme-
|
|
2
|
+
import { g as t, h as n, r } from "./button-CvjkwdSk.js";
|
|
3
|
+
import { t as i } from "./react-sHtZdjeP.js";
|
|
4
|
+
import { t as a } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
+
import { h as o } from "./tooltip-BO1REbqs.js";
|
|
6
|
+
import { t as s } from "./jsx-runtime-3BD1kT0s.js";
|
|
7
|
+
import { E as c, w as l } from "./useTheme-CRnjkku0.js";
|
|
8
8
|
var u = o("calendar", [
|
|
9
9
|
["path", {
|
|
10
10
|
d: "M8 2v4",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, r as t } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { a as n, g as r, s as i } from "./button-
|
|
3
|
-
import { t as a } from "./react-
|
|
4
|
-
import { t as o } from "./compiler-runtime-
|
|
5
|
-
import { C as s, F as c, L as l, M as u, O as d, P as f, S as p, j as m, v as h } from "./use-restore-focus-
|
|
2
|
+
import { a as n, g as r, s as i } from "./button-CvjkwdSk.js";
|
|
3
|
+
import { t as a } from "./react-sHtZdjeP.js";
|
|
4
|
+
import { t as o } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
+
import { C as s, F as c, L as l, M as u, O as d, P as f, S as p, j as m, v as h } from "./use-restore-focus-BEM7sFWl.js";
|
|
6
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) {
|
|
@@ -64,7 +64,7 @@ function E(e, t) {
|
|
|
64
64
|
return e !== e && t !== t;
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
|
-
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.
|
|
67
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/vanilla/internals.mjs
|
|
68
68
|
var D = /* @__PURE__ */ t({
|
|
69
69
|
INTERNAL_addPendingPromiseToDependency: () => N,
|
|
70
70
|
INTERNAL_buildStoreRev3: () => we,
|
|
@@ -438,7 +438,7 @@ function we(...e) {
|
|
|
438
438
|
return t;
|
|
439
439
|
}
|
|
440
440
|
//#endregion
|
|
441
|
-
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.
|
|
441
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/vanilla.mjs
|
|
442
442
|
var Te = 0;
|
|
443
443
|
function R(e, t) {
|
|
444
444
|
let n = `atom${++Te}`, r = { toString() {
|
|
@@ -460,7 +460,7 @@ function ke() {
|
|
|
460
460
|
return Oe ||= z(), Oe;
|
|
461
461
|
}
|
|
462
462
|
//#endregion
|
|
463
|
-
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.
|
|
463
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/react.mjs
|
|
464
464
|
var B = (0, y.createContext)(void 0);
|
|
465
465
|
function V(e) {
|
|
466
466
|
let t = (0, y.useContext)(B);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { g as t, h as n, m as r, o as i } from "./button-
|
|
3
|
-
import { t as a } from "./react-
|
|
4
|
-
import { t as o } from "./compiler-runtime-
|
|
5
|
-
import { t as s } from "./tooltip-
|
|
6
|
-
import {
|
|
7
|
-
import { t as u } from "./jsx-runtime-
|
|
8
|
-
import { n as d } from "./error-banner-
|
|
2
|
+
import { g as t, h as n, m as r, o as i } from "./button-CvjkwdSk.js";
|
|
3
|
+
import { t as a } from "./react-sHtZdjeP.js";
|
|
4
|
+
import { t as o } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
+
import { t as s } from "./tooltip-BO1REbqs.js";
|
|
6
|
+
import { C as c, a as l } from "./toDate-vIXljnsr.js";
|
|
7
|
+
import { t as u } from "./jsx-runtime-3BD1kT0s.js";
|
|
8
|
+
import { n as d } from "./error-banner-D-WCIiMt.js";
|
|
9
9
|
import { t as f } from "./debounce-C3jyATpc.js";
|
|
10
|
-
import { A as p, n as ee } from "./useTheme-
|
|
10
|
+
import { A as p, n as ee } from "./useTheme-CRnjkku0.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-
|
|
14
|
-
import { a as ne, i as re, n as ie, t as g } from "./formats-
|
|
13
|
+
import { t as h } from "./useAsyncData-Deh5kszT.js";
|
|
14
|
+
import { a as ne, i as re, n as ie, t as g } from "./formats-CeOmU1MU.js";
|
|
15
15
|
import { M as ae, n as oe } from "./vega-loader.browser-DNST6uVf.js";
|
|
16
|
-
import { t as se } from "./react-vega-
|
|
17
|
-
import { a as ce, n as _ } from "./loader-
|
|
18
|
-
import { t as le } from "./useDeepCompareMemoize-
|
|
16
|
+
import { t as se } from "./react-vega-BED0DjiB.js";
|
|
17
|
+
import { a as ce, n as _ } from "./loader-BQOfjTIJ.js";
|
|
18
|
+
import { t as le } from "./useDeepCompareMemoize-DXwzRINI.js";
|
|
19
19
|
import { t as ue } from "./semaphore-89jsoHtS.js";
|
|
20
|
-
import { t as de } from "./use-vega-container-remeasure-
|
|
20
|
+
import { t as de } from "./use-vega-container-remeasure-Bz4PZMtt.js";
|
|
21
21
|
//#region src/plugins/impl/vega/fix-relative-url.ts
|
|
22
22
|
var fe = /* @__PURE__ */ e(a(), 1), pe = o();
|
|
23
23
|
function me(e) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./react-
|
|
3
|
-
import { t as n } from "./compiler-runtime-
|
|
4
|
-
import { t as r } from "./jsx-runtime-
|
|
2
|
+
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
+
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
|
+
import { t as r } from "./jsx-runtime-3BD1kT0s.js";
|
|
5
5
|
import { M as i } from "./vega-loader.browser-DNST6uVf.js";
|
|
6
|
-
import { n as a } from "./react-vega-
|
|
7
|
-
import { t as o } from "./use-vega-container-remeasure-
|
|
6
|
+
import { n as a } from "./react-vega-BED0DjiB.js";
|
|
7
|
+
import { t as o } from "./use-vega-container-remeasure-Bz4PZMtt.js";
|
|
8
8
|
//#region src/components/charts/vega-embed-container.tsx
|
|
9
9
|
var s = n(), c = /* @__PURE__ */ e(t(), 1), l = r();
|
|
10
10
|
function u(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as e } from "./chunk-75Z2AOVW-
|
|
1
|
+
import { i as e } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
|
|
2
2
|
import { t } from "./src-CA_m4ONl.js";
|
|
3
3
|
import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
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-
|
|
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-BwiyaNpg.js";
|
|
5
5
|
import { t as _ } from "./rough.esm-CtV9AnV1.js";
|
|
6
|
-
import { p as v } from "./mermaid-
|
|
6
|
+
import { p as v } from "./mermaid-CHo49Yv-.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) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as e } from "./chunk-75Z2AOVW-
|
|
1
|
+
import { i as e } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
|
|
2
2
|
import { n as t } from "./src-CA_m4ONl.js";
|
|
3
3
|
import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
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-
|
|
5
|
-
import { p as m } from "./mermaid-
|
|
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-BwiyaNpg.js";
|
|
5
|
+
import { p as m } from "./mermaid-CHo49Yv-.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
|
|
@@ -2,14 +2,14 @@ import { t as e } from "./linear-Cnaq3Tfb.js";
|
|
|
2
2
|
import { n as t } from "./ordinal-c7efuCSS.js";
|
|
3
3
|
import { t as n } from "./range-BAIvbVHp.js";
|
|
4
4
|
import { q as r } from "./cubic-OaEBhQPK.js";
|
|
5
|
-
import { i } from "./chunk-75Z2AOVW-
|
|
5
|
+
import { i } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
|
|
6
6
|
import { n as a } from "./init-Ix4LXMlt.js";
|
|
7
7
|
import { n as o } from "./src-CA_m4ONl.js";
|
|
8
8
|
import { n as s } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
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-
|
|
10
|
-
import "./chunk-PWAF6VOD-
|
|
11
|
-
import { t as b } from "./chunk-GMAD6QVW-
|
|
12
|
-
import { p as x } from "./mermaid-
|
|
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-BwiyaNpg.js";
|
|
10
|
+
import "./chunk-PWAF6VOD-CQw5qATZ.js";
|
|
11
|
+
import { t as b } from "./chunk-GMAD6QVW-BhaJx0X3.js";
|
|
12
|
+
import { p as x } from "./mermaid-CHo49Yv-.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.25.
|
|
3
|
+
"version": "0.25.3-dev10",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"./unstable_internal/*": "./src/*"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ai-sdk/react": "^4.0.
|
|
24
|
+
"@ai-sdk/react": "^4.0.110",
|
|
25
25
|
"@anywidget/types": "^0.4.0",
|
|
26
26
|
"@codemirror/autocomplete": "^6.20.3",
|
|
27
27
|
"@codemirror/commands": "^6.11.1",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@glideapps/glide-data-grid": "6.0.4-alpha24",
|
|
47
47
|
"@hookform/resolvers": "^5.9.1",
|
|
48
48
|
"@img-comparison-slider/react": "^8.0.2",
|
|
49
|
-
"@internationalized/date": "^3.12.
|
|
49
|
+
"@internationalized/date": "^3.12.4",
|
|
50
50
|
"@lezer/common": "^1.5.2",
|
|
51
51
|
"@lezer/highlight": "^1.2.3",
|
|
52
52
|
"@lezer/lr": "^1.4.10",
|
|
53
53
|
"@lezer/markdown": "^1.7.2",
|
|
54
54
|
"@lezer/python": "^1.1.19",
|
|
55
|
-
"@marimo-team/codemirror-ai": "^0.3.
|
|
56
|
-
"@marimo-team/codemirror-languageserver": "^2.0.
|
|
55
|
+
"@marimo-team/codemirror-ai": "^0.3.10",
|
|
56
|
+
"@marimo-team/codemirror-languageserver": "^2.0.1",
|
|
57
57
|
"@marimo-team/codemirror-mcp": "^0.1.7",
|
|
58
58
|
"@marimo-team/codemirror-sql": "^0.3.0",
|
|
59
59
|
"@marimo-team/llm-info": "workspace:*",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"@radix-ui/react-icons": "~1.3.2",
|
|
66
66
|
"@radix-ui/react-use-controllable-state": "~1.2.6",
|
|
67
67
|
"@replit/codemirror-vim": "^6.4.0",
|
|
68
|
-
"@revealjs/react": "^0.2.
|
|
68
|
+
"@revealjs/react": "^0.2.2",
|
|
69
69
|
"@streamdown/math": "^1.0.2",
|
|
70
70
|
"@tailwindcss/postcss": "^4.3.3",
|
|
71
71
|
"@tailwindcss/typography": "^0.5.20",
|
|
72
72
|
"@tanstack/react-table": "^8.21.3",
|
|
73
|
-
"@tanstack/react-virtual": "^3.14.
|
|
73
|
+
"@tanstack/react-virtual": "^3.14.13",
|
|
74
74
|
"@types/humanize-duration": "^3.27.4",
|
|
75
75
|
"@types/js-cookie": "^3.0.6",
|
|
76
76
|
"@types/jsdom": "^21.1.7",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@xterm/addon-web-links": "^0.12.0",
|
|
90
90
|
"@xterm/xterm": "^5.5.0",
|
|
91
91
|
"@zed-industries/agent-client-protocol": "^0.4.5",
|
|
92
|
-
"ai": "^7.0.
|
|
92
|
+
"ai": "^7.0.107",
|
|
93
93
|
"ansi_up": "^6.0.6",
|
|
94
94
|
"class-variance-authority": "^0.7.1",
|
|
95
95
|
"clsx": "^2.1.1",
|
|
@@ -103,15 +103,15 @@
|
|
|
103
103
|
"htm": "^3.1.1",
|
|
104
104
|
"html-react-parser": "^5.2.17",
|
|
105
105
|
"html-to-image": "1.11.13",
|
|
106
|
-
"humanize-duration": "^3.
|
|
106
|
+
"humanize-duration": "^3.35.0",
|
|
107
107
|
"iconify-icon": "^2.3.0",
|
|
108
108
|
"jotai": "^2.20.3",
|
|
109
109
|
"jotai-scope": "^0.12.2",
|
|
110
110
|
"js-cookie": "^3.0.8",
|
|
111
|
-
"katex": "^0.18.
|
|
111
|
+
"katex": "^0.18.7",
|
|
112
112
|
"lodash-es": "^4.18.1",
|
|
113
113
|
"loro-codemirror": "^0.3.3",
|
|
114
|
-
"loro-crdt": "^1.
|
|
114
|
+
"loro-crdt": "^1.16.1",
|
|
115
115
|
"lucide-react": "^0.577.0",
|
|
116
116
|
"lz-string": "^1.5.0",
|
|
117
117
|
"marked": "^15.0.12",
|
|
@@ -135,11 +135,11 @@
|
|
|
135
135
|
"react-resizable-panels": "2.1.9",
|
|
136
136
|
"react-use-event-hook": "^0.9.6",
|
|
137
137
|
"react-vega": "^8.0.0",
|
|
138
|
-
"react-virtuoso": "^4.18.
|
|
138
|
+
"react-virtuoso": "^4.18.14",
|
|
139
139
|
"reactflow": "^11.11.4",
|
|
140
140
|
"rehype-sanitize": "^6.0.0",
|
|
141
141
|
"remark-gfm": "^4.0.1",
|
|
142
|
-
"reveal.js": "^6.0.
|
|
142
|
+
"reveal.js": "^6.0.2",
|
|
143
143
|
"rpc-anywhere": "^1.7.0",
|
|
144
144
|
"sql-formatter": "^15.8.2",
|
|
145
145
|
"streamdown": "^2.6.0",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"vscode-jsonrpc": "^8.2.1",
|
|
160
160
|
"vscode-languageserver-protocol": "^3.18.3",
|
|
161
161
|
"web-vitals": "^4.2.4",
|
|
162
|
-
"zod": "^4.5
|
|
162
|
+
"zod": "^4.6.5"
|
|
163
163
|
},
|
|
164
164
|
"scripts": {
|
|
165
165
|
"preinstall": "npx only-allow pnpm",
|
|
@@ -183,7 +183,9 @@
|
|
|
183
183
|
"preview:islands": "cross-env VITE_MARIMO_VERSION='0.4.6' VITE_MARIMO_ISLANDS=true vite --config islands/vite.config.mts build",
|
|
184
184
|
"storybook": "storybook dev -p 6006",
|
|
185
185
|
"build-storybook": "storybook build",
|
|
186
|
-
"sync-katex-css": "node --experimental-strip-types scripts/sync-katex-css.ts"
|
|
186
|
+
"sync-katex-css": "node --experimental-strip-types scripts/sync-katex-css.ts",
|
|
187
|
+
"codegen": "node --experimental-strip-types scripts/generate-host-protocol.ts",
|
|
188
|
+
"codegen:check": "node --experimental-strip-types scripts/generate-host-protocol.ts --check"
|
|
187
189
|
},
|
|
188
190
|
"peerDependencies": {
|
|
189
191
|
"react": "^17 || ^18 || ^19",
|
|
@@ -200,10 +202,10 @@
|
|
|
200
202
|
"@testing-library/react": "^16.3.3",
|
|
201
203
|
"@types/dompurify": "^3.2.0",
|
|
202
204
|
"@types/lodash-es": "^4.17.12",
|
|
203
|
-
"@types/node": "^24.13.
|
|
205
|
+
"@types/node": "^24.13.6",
|
|
204
206
|
"@types/plotly.js": "^2.35.16",
|
|
205
|
-
"@types/react": "^19.
|
|
206
|
-
"@types/react-dom": "^19.
|
|
207
|
+
"@types/react": "^19.3.0",
|
|
208
|
+
"@types/react-dom": "^19.3.0",
|
|
207
209
|
"@types/timestring": "^6.0.5",
|
|
208
210
|
"@vitejs/plugin-react": "^6.1.1",
|
|
209
211
|
"@vitest/coverage-v8": "4.1.11",
|
|
@@ -212,13 +214,14 @@
|
|
|
212
214
|
"jsdom": "^24.1.3",
|
|
213
215
|
"msw": "^2.15.0",
|
|
214
216
|
"npm-run-all2": "^6.2.6",
|
|
217
|
+
"orval": "8.40.0",
|
|
215
218
|
"oxc-transform-react": "0.145.0",
|
|
216
219
|
"oxfmt": "^0.68.0",
|
|
217
220
|
"oxlint": "^1.83.0",
|
|
218
221
|
"postcss": "^8.5.28",
|
|
219
|
-
"postcss-prefix-selector": "^2.2.
|
|
220
|
-
"react": "^19.
|
|
221
|
-
"react-dom": "^19.
|
|
222
|
+
"postcss-prefix-selector": "^2.2.1",
|
|
223
|
+
"react": "^19.3.0",
|
|
224
|
+
"react-dom": "^19.3.0",
|
|
222
225
|
"storybook": "^10.6.0",
|
|
223
226
|
"stylelint": "^16.26.1",
|
|
224
227
|
"stylelint-config-standard": "^36.0.1",
|
|
@@ -227,6 +230,6 @@
|
|
|
227
230
|
"vite": "^8.3.0",
|
|
228
231
|
"vite-plugin-wasm": "^3.6.0",
|
|
229
232
|
"vitest": "^4.1.11",
|
|
230
|
-
"yaml": "^2.9.
|
|
233
|
+
"yaml": "^2.9.1"
|
|
231
234
|
}
|
|
232
235
|
}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import {
|
|
5
|
+
import { pairConfigSchema } from "@/core/config/pair";
|
|
6
6
|
|
|
7
7
|
// Read the Python-owned resource only in tests to check the shared contract.
|
|
8
|
-
export const
|
|
8
|
+
export const PAIR_CONFIG = pairConfigSchema.parse({
|
|
9
9
|
command: "uvx marimo@latest",
|
|
10
|
+
hostEnabled: true,
|
|
10
11
|
templates: JSON.parse(
|
|
11
12
|
readFileSync(
|
|
12
13
|
path.resolve(
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import NodeChildProcess from "node:child_process";
|
|
4
|
+
import NodeFs from "node:fs";
|
|
5
|
+
import NodeOs from "node:os";
|
|
6
|
+
import NodePath from "node:path";
|
|
7
|
+
import NodeUrl from "node:url";
|
|
8
|
+
import { expect, it } from "vitest";
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
|
|
11
|
+
it("enforces host dependencies for runtime and type imports", () => {
|
|
12
|
+
const frontend = NodeUrl.fileURLToPath(
|
|
13
|
+
new NodeUrl.URL("../../", import.meta.url),
|
|
14
|
+
);
|
|
15
|
+
const directory = NodeFs.mkdtempSync(
|
|
16
|
+
NodePath.join(NodeOs.tmpdir(), "host-imports-"),
|
|
17
|
+
);
|
|
18
|
+
const files = {
|
|
19
|
+
"src/core/host/allowed.ts": `
|
|
20
|
+
import { atom } from "jotai/vanilla";
|
|
21
|
+
import { z } from "zod";
|
|
22
|
+
import { Logger } from "@/utils/Logger";
|
|
23
|
+
import type { Document } from "./document";
|
|
24
|
+
export * from "@/core/host/events";
|
|
25
|
+
type Event = import("./events").NotebookEvent;
|
|
26
|
+
void import("./protocol");
|
|
27
|
+
`,
|
|
28
|
+
"src/core/host/protocol.ts": `
|
|
29
|
+
import type { NotificationMessage as A } from "../kernel/messages";
|
|
30
|
+
import { type NotificationMessage as B } from "@/core/kernel/messages";
|
|
31
|
+
import { NotificationMessage as C } from "../kernel/messages";
|
|
32
|
+
import type { NotificationPayload } from "../kernel/messages";
|
|
33
|
+
`,
|
|
34
|
+
"src/core/host/forbidden.ts": `
|
|
35
|
+
import { useEffect } from "react";
|
|
36
|
+
import type { NotificationMessage } from "../kernel/messages";
|
|
37
|
+
export * from "../kernel/messages";
|
|
38
|
+
export { Logger } from "@/utils/Logger/../other";
|
|
39
|
+
void import("../kernel/messages");
|
|
40
|
+
type Message = import("../kernel/messages").NotificationMessage;
|
|
41
|
+
const module = require("../kernel/messages");
|
|
42
|
+
void import(module);
|
|
43
|
+
import "./__tests__/allowed";
|
|
44
|
+
import "./allowed.test";
|
|
45
|
+
`,
|
|
46
|
+
"src/core/host/__tests__/allowed.ts": `import { useEffect } from "react";`,
|
|
47
|
+
"src/core/host/allowed.test.ts": `import { useEffect } from "react";`,
|
|
48
|
+
"src/core/host/allowed.spec.ts": `import { useEffect } from "react";`,
|
|
49
|
+
"src/core/websocket/allowed.ts": `import { useEffect } from "react";`,
|
|
50
|
+
};
|
|
51
|
+
try {
|
|
52
|
+
for (const [path, source] of Object.entries(files)) {
|
|
53
|
+
const destination = NodePath.join(directory, path);
|
|
54
|
+
NodeFs.mkdirSync(NodePath.dirname(destination), { recursive: true });
|
|
55
|
+
NodeFs.writeFileSync(destination, source);
|
|
56
|
+
}
|
|
57
|
+
const result = NodeChildProcess.spawnSync(
|
|
58
|
+
NodePath.join(frontend, "node_modules/.bin/oxlint"),
|
|
59
|
+
[
|
|
60
|
+
"--config",
|
|
61
|
+
NodePath.join(frontend, ".oxlintrc.json"),
|
|
62
|
+
"--format",
|
|
63
|
+
"json",
|
|
64
|
+
directory,
|
|
65
|
+
],
|
|
66
|
+
{ cwd: frontend, encoding: "utf8" },
|
|
67
|
+
);
|
|
68
|
+
const report = z
|
|
69
|
+
.object({
|
|
70
|
+
diagnostics: z.array(
|
|
71
|
+
z.object({
|
|
72
|
+
severity: z.string(),
|
|
73
|
+
filename: z.string(),
|
|
74
|
+
labels: z.array(z.object({ span: z.object({ line: z.number() }) })),
|
|
75
|
+
}),
|
|
76
|
+
),
|
|
77
|
+
})
|
|
78
|
+
.parse(JSON.parse(result.stdout));
|
|
79
|
+
const errors = report.diagnostics.filter(
|
|
80
|
+
(diagnostic) => diagnostic.severity === "error",
|
|
81
|
+
);
|
|
82
|
+
expect(
|
|
83
|
+
errors
|
|
84
|
+
.map((error) => ({
|
|
85
|
+
file: NodePath.basename(error.filename),
|
|
86
|
+
line: error.labels[0].span.line,
|
|
87
|
+
}))
|
|
88
|
+
.toSorted((a, b) => a.file.localeCompare(b.file) || a.line - b.line),
|
|
89
|
+
).toEqual([
|
|
90
|
+
...[2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map((line) => ({
|
|
91
|
+
file: "forbidden.ts",
|
|
92
|
+
line,
|
|
93
|
+
})),
|
|
94
|
+
...[2, 3, 4, 5].map((line) => ({ file: "protocol.ts", line })),
|
|
95
|
+
]);
|
|
96
|
+
expect(result.status).toBe(1);
|
|
97
|
+
} finally {
|
|
98
|
+
NodeFs.rmSync(directory, { recursive: true, force: true });
|
|
99
|
+
}
|
|
100
|
+
});
|
|
@@ -8,8 +8,8 @@ import { connectionAtom } from "@/core/network/connection";
|
|
|
8
8
|
import { store } from "@/core/state/jotai";
|
|
9
9
|
import { isStaticNotebook } from "@/core/static/static-state";
|
|
10
10
|
import { ConnectionState } from "@/core/websocket/types";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { pairConfigAtom } from "@/core/config/pair";
|
|
12
|
+
import { PAIR_CONFIG } from "./fixtures/pair-config";
|
|
13
13
|
import { mount, visibleForTesting } from "../mount";
|
|
14
14
|
|
|
15
15
|
// Mock React DOM
|
|
@@ -84,20 +84,20 @@ describe("mount", () => {
|
|
|
84
84
|
mockElement,
|
|
85
85
|
);
|
|
86
86
|
|
|
87
|
-
it("hydrates the server's Pair
|
|
88
|
-
const error = mountRead({
|
|
87
|
+
it("hydrates the server's Pair configuration", () => {
|
|
88
|
+
const error = mountRead({ pairConfig: PAIR_CONFIG });
|
|
89
89
|
|
|
90
90
|
expect(error).toBeUndefined();
|
|
91
|
-
expect(store.get(
|
|
91
|
+
expect(store.get(pairConfigAtom)).toEqual(PAIR_CONFIG);
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
it("
|
|
95
|
-
store.set(
|
|
94
|
+
it("clears Pair configuration when the server omits it", () => {
|
|
95
|
+
store.set(pairConfigAtom, PAIR_CONFIG);
|
|
96
96
|
|
|
97
97
|
const error = mountRead();
|
|
98
98
|
|
|
99
99
|
expect(error).toBeUndefined();
|
|
100
|
-
expect(store.get(
|
|
100
|
+
expect(store.get(pairConfigAtom)).toBeUndefined();
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
describe("connection state initialization", () => {
|
|
@@ -50,6 +50,36 @@ describe("applyFormat", () => {
|
|
|
50
50
|
}),
|
|
51
51
|
).toBe("10/1/23, 12:00:00 PM UTC");
|
|
52
52
|
});
|
|
53
|
+
|
|
54
|
+
it("should treat naive datetime strings as UTC", () => {
|
|
55
|
+
const naive = "2023-10-01 23:30:00";
|
|
56
|
+
expect(
|
|
57
|
+
applyFormat(naive, { locale, format: "Date", dataType: "datetime" }),
|
|
58
|
+
).toBe("10/1/23");
|
|
59
|
+
expect(
|
|
60
|
+
applyFormat(naive, {
|
|
61
|
+
locale,
|
|
62
|
+
format: "Datetime",
|
|
63
|
+
dataType: "datetime",
|
|
64
|
+
}),
|
|
65
|
+
).toBe("10/1/23, 11:30:00 PM UTC");
|
|
66
|
+
expect(
|
|
67
|
+
applyFormat(naive, { locale, format: "Time", dataType: "datetime" }),
|
|
68
|
+
).toBe("11:30:00 PM UTC");
|
|
69
|
+
expect(
|
|
70
|
+
applyFormat("2023-10-01T23:30:00.250", {
|
|
71
|
+
locale,
|
|
72
|
+
format: "Time",
|
|
73
|
+
dataType: "datetime",
|
|
74
|
+
}),
|
|
75
|
+
).toBe("11:30:00 PM UTC");
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("should keep the calendar date for date-only strings", () => {
|
|
79
|
+
expect(
|
|
80
|
+
applyFormat("2023-10-01", { locale, format: "Date", dataType: "date" }),
|
|
81
|
+
).toBe("10/1/23");
|
|
82
|
+
});
|
|
53
83
|
});
|
|
54
84
|
|
|
55
85
|
describe("number formatting", () => {
|
|
@@ -1268,6 +1268,76 @@ describe("renderCellValue with datetime values", () => {
|
|
|
1268
1268
|
}).not.toThrow();
|
|
1269
1269
|
});
|
|
1270
1270
|
});
|
|
1271
|
+
|
|
1272
|
+
it("should render the column format for datetime strings", () => {
|
|
1273
|
+
const mockColumn = {
|
|
1274
|
+
...createMockColumn(),
|
|
1275
|
+
getColumnFormatting: () => "Date",
|
|
1276
|
+
applyColumnFormatting: () => "FORMATTED",
|
|
1277
|
+
} as unknown as Column<unknown>;
|
|
1278
|
+
|
|
1279
|
+
const selectCell = vi.fn();
|
|
1280
|
+
const result = renderCellValue({
|
|
1281
|
+
column: mockColumn,
|
|
1282
|
+
renderValue: () => "2024-06-14 12:34:20",
|
|
1283
|
+
getValue: () => "2024-06-14 12:34:20",
|
|
1284
|
+
selectCell,
|
|
1285
|
+
cellStyles: "cell-styles",
|
|
1286
|
+
});
|
|
1287
|
+
const { container } = render(
|
|
1288
|
+
<I18nProvider locale="en-US">
|
|
1289
|
+
<TooltipProvider>{result}</TooltipProvider>
|
|
1290
|
+
</I18nProvider>,
|
|
1291
|
+
);
|
|
1292
|
+
expect(container.textContent).toContain("FORMATTED");
|
|
1293
|
+
expect(container.textContent).not.toContain("2024-06-14 12:34:20");
|
|
1294
|
+
|
|
1295
|
+
const wrapper = container.querySelector(".cell-styles");
|
|
1296
|
+
expect(wrapper).not.toBeNull();
|
|
1297
|
+
wrapper?.dispatchEvent(new MouseEvent("click", { bubbles: true }));
|
|
1298
|
+
expect(selectCell).toHaveBeenCalledTimes(1);
|
|
1299
|
+
});
|
|
1300
|
+
|
|
1301
|
+
it("should render the column format for Date instances", () => {
|
|
1302
|
+
const mockColumn = {
|
|
1303
|
+
...createMockColumn(),
|
|
1304
|
+
getColumnFormatting: () => "Date",
|
|
1305
|
+
applyColumnFormatting: () => "FORMATTED",
|
|
1306
|
+
} as unknown as Column<unknown>;
|
|
1307
|
+
const value = new Date("2024-06-14T12:34:20Z");
|
|
1308
|
+
|
|
1309
|
+
const result = renderCellValue({
|
|
1310
|
+
column: mockColumn,
|
|
1311
|
+
renderValue: () => value,
|
|
1312
|
+
getValue: () => value,
|
|
1313
|
+
selectCell: undefined,
|
|
1314
|
+
cellStyles: "",
|
|
1315
|
+
});
|
|
1316
|
+
const { container } = render(
|
|
1317
|
+
<I18nProvider locale="en-US">
|
|
1318
|
+
<TooltipProvider>{result}</TooltipProvider>
|
|
1319
|
+
</I18nProvider>,
|
|
1320
|
+
);
|
|
1321
|
+
expect(container.textContent).toContain("FORMATTED");
|
|
1322
|
+
});
|
|
1323
|
+
|
|
1324
|
+
it("should keep the raw string when no column format is set", () => {
|
|
1325
|
+
const mockColumn = createMockColumn();
|
|
1326
|
+
|
|
1327
|
+
const result = renderCellValue({
|
|
1328
|
+
column: mockColumn,
|
|
1329
|
+
renderValue: () => "2024-06-14",
|
|
1330
|
+
getValue: () => "2024-06-14",
|
|
1331
|
+
selectCell: undefined,
|
|
1332
|
+
cellStyles: "",
|
|
1333
|
+
});
|
|
1334
|
+
const { container } = render(
|
|
1335
|
+
<I18nProvider locale="en-US">
|
|
1336
|
+
<TooltipProvider>{result}</TooltipProvider>
|
|
1337
|
+
</I18nProvider>,
|
|
1338
|
+
);
|
|
1339
|
+
expect(container.textContent).toContain("2024-06-14");
|
|
1340
|
+
});
|
|
1271
1341
|
});
|
|
1272
1342
|
|
|
1273
1343
|
test("column_widths sets fixed size and meta.width", () => {
|