@marimo-team/islands 0.24.3-dev9 → 0.25.0
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-C9OF_75w.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1066 -1066
- package/dist/ErrorBoundary-DnNkbB_U.js +200 -0
- package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-Dlm5aWnH.js} +4 -4
- package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
- package/dist/_baseMerge-BiGRwuqv.js +165 -0
- package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +17 -18
- package/dist/{any-language-editor-DmQ7dyCx.js → any-language-editor-CycIVIeP.js} +17 -17
- package/dist/arc-7ra3iNdN.js +81 -0
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +25 -25
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +1 -0
- package/dist/assets/worker-D7hWi02M.js +109 -0
- package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
- package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
- package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
- package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
- package/dist/{html-to-image-BtFMe_Nq.js → cells-DYIkSxs6.js} +6757 -10137
- package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
- package/dist/chat-ui-BXj3uYjy.js +5786 -0
- package/dist/{check-CHig47QV.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
- package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
- package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
- package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
- package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
- package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
- package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
- package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
- package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
- package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-BfwTebD0.js} +11 -11
- package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
- package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
- package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
- package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
- package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
- package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
- package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-BspJEJ5H.js} +109 -63
- package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DX3rFNTe.js} +5 -5
- package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-fVF7Uujg.js} +13 -13
- package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +30 -0
- package/dist/code-visibility-DElzk_hh.js +138 -0
- package/dist/{common-Cv-4hMa0.js → common-B4-ih9IA.js} +8838 -12645
- package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
- package/dist/cubic-OaEBhQPK.js +1404 -0
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +10 -10
- package/dist/{dagre-CGyalH38.js → dagre-BGSfXNEb.js} +678 -537
- package/dist/dagre-GXQ25YYZ-xHNAUTyG.js +425 -0
- package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-CRH6JQPE.js} +8 -9
- package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
- package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
- package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +40 -39
- package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +10 -10
- package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
- package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-BMwGFVD6.js} +21 -21
- package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII--KLDR9Pl.js} +10 -10
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
- package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
- package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
- package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
- package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
- package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
- package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
- package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
- package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
- package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
- package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
- package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
- package/dist/dist-CMh_W4y4.js +538 -0
- package/dist/{extends-BPB6_lTK.js → dist-CO1AwwG_.js} +516 -561
- package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
- package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
- package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
- package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
- package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
- package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
- package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
- package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
- package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
- package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
- package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
- package/dist/dropdown-menu-CZgjYSAh.js +4502 -0
- package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +17 -18
- package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1037 -798
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-C0NsUqXl.js +56 -0
- package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
- package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
- package/dist/{esm-CesmlDrs.js → esm-h8f7-1CJ.js} +423 -423
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
- package/dist/feedback-button-cQcMqpEP.js +380 -0
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +16 -0
- package/dist/{formats-CslNOKy0.js → formats-BR5iGb4s.js} +8 -8
- package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
- package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-DYOxfSzI.js} +2143 -1910
- package/dist/{glide-utils-NShAPPtn.js → glide-utils-B3rUT5PI.js} +15 -15
- package/dist/globals-BOoLHa7X.js +19 -0
- package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
- package/dist/html-to-image-CeYYvQNb.js +3272 -0
- package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
- package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-BagtCX_5.js} +7 -7
- package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +8 -8
- package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
- package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
- package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +29 -29
- package/dist/katex-DFBiSucW.js +21840 -0
- package/dist/{label-lwzzBHUW.js → label-BJ49YTvk.js} +6 -6
- package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
- package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
- package/dist/main.js +8113 -13475
- package/dist/mermaid-DPNuhemn.js +3084 -0
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
- package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
- package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
- package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
- package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +17 -17
- package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
- package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-DZp5bEmI.js} +5 -5
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
- package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +19 -20
- package/dist/{pick-SnHlmIBN.js → pick-CJeoxYOS.js} +1 -1
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
- package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +29 -31
- package/dist/{process-output-CPy0YKUe.js → process-output-BCTjlyuH.js} +7 -6
- package/dist/purify.es-DgKyQviY.js +805 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
- package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +17 -18
- package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
- package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
- package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
- package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +20 -19
- package/dist/{reveal-component-CVsYlb9J.js → reveal-component-C9h2Lubu.js} +1303 -1237
- package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
- package/dist/{select-3qHpFKF9.js → select-C6plhmZr.js} +317 -562
- package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +11 -11
- package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
- package/dist/{spec-CutWdqo3.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
- package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-orN6AwMx.js} +19 -20
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +30 -0
- package/dist/style.css +2 -2
- package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1501 -1591
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +30 -0
- package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
- package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
- package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +7 -7
- package/dist/{toDate-CpXBeDq0.js → toDate-WXg1yLcI.js} +7 -7
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
- package/dist/use-restore-focus-D5D9xEjZ.js +5946 -0
- package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
- package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-BD6AStMt.js} +3 -3
- package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BRTPsUK7.js} +8 -8
- package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-D_HNdyvI.js} +2 -2
- package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
- package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-DPgiiwwU.js} +6 -6
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/useTheme-DzXmYZ5V.js +904 -0
- package/dist/{vega-component-ovBXgp91.js → vega-component-D0QXopU8.js} +34 -34
- package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
- package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
- package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +9 -9
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
- package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +10 -10
- package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +248 -139
- package/package.json +54 -57
- package/src/__mocks__/notebook.ts +1 -0
- package/src/__mocks__/requests.ts +7 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/fixtures/pair-preview.ts +19 -0
- package/src/__tests__/mount.test.ts +18 -0
- package/src/components/app-config/optional-features.tsx +6 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +394 -0
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +272 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +115 -74
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/data-table/__tests__/filters.test.ts +21 -21
- package/src/components/data-table/charts/__tests__/spec.test.ts +5 -10
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -1
- package/src/components/data-table/columns.tsx +64 -67
- package/src/components/editor/RecoveryButton.tsx +1 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +36 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +115 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +46 -9
- package/src/components/editor/actions/pair-with-agent-modal.tsx +49 -23
- package/src/components/editor/ai/add-cell-with-ai.tsx +1 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +3 -1
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +186 -0
- package/src/components/editor/alerts/__tests__/startup-progress.test.tsx +185 -0
- package/src/components/editor/alerts/connecting-alert.tsx +1 -66
- package/src/components/editor/alerts/connection-notice.tsx +186 -0
- package/src/components/editor/alerts/startup-output.tsx +173 -0
- package/src/components/editor/alerts/startup-progress.tsx +204 -0
- package/src/components/editor/app-container.tsx +9 -3
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/cell/__tests__/toolbar.test.tsx +73 -0
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +50 -0
- package/src/components/editor/cell/code/cell-editor.tsx +41 -42
- package/src/components/editor/cell/toolbar.tsx +11 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +63 -42
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +164 -8
- package/src/components/editor/chrome/panels/__tests__/sandbox-details.test.tsx +358 -0
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +168 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +113 -175
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +106 -0
- package/src/components/editor/chrome/panels/sandbox-details-state.ts +38 -0
- package/src/components/editor/chrome/panels/sandbox-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +52 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +7 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -1
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +98 -98
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +11 -5
- package/src/components/editor/dynamic-favicon.tsx +17 -10
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +13 -11
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/header/__tests__/status.test.tsx +8 -20
- package/src/components/editor/header/filename-input.tsx +2 -0
- package/src/components/editor/header/status.tsx +5 -3
- package/src/components/editor/navigation/clipboard.ts +1 -0
- package/src/components/editor/notebook-cell.tsx +4 -2
- package/src/components/editor/output/JsonOutput.tsx +182 -632
- package/src/components/editor/output/Outputs.css +49 -17
- package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
- package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
- package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
- package/src/components/editor/output/json-output/formatting.ts +167 -0
- package/src/components/editor/output/json-output/pagination.ts +155 -0
- package/src/components/editor/output/json-output/renderers.tsx +196 -0
- package/src/components/editor/output/json-output/themes.ts +52 -0
- package/src/components/editor/package-alert.tsx +112 -66
- package/src/components/editor/renderers/cell-array.tsx +1 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +3 -7
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-notes-editor.tsx +1 -0
- package/src/components/tracing/tracing-spec.ts +1 -1
- package/src/components/ui/__tests__/badge.test.ts +6 -4
- package/src/components/ui/use-toast.ts +8 -0
- package/src/core/MarimoApp.tsx +0 -2
- package/src/core/ai/context/providers/__tests__/error.test.ts +16 -22
- package/src/core/alerts/__tests__/environment.test.ts +183 -0
- package/src/core/alerts/__tests__/state.test.tsx +240 -0
- package/src/core/alerts/environment.ts +57 -0
- package/src/core/alerts/state.ts +155 -99
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +296 -259
- package/src/core/cells/__tests__/apply-transaction.test.ts +34 -0
- package/src/core/cells/__tests__/cell.test.ts +61 -0
- package/src/core/cells/__tests__/cells.test.ts +182 -37
- package/src/core/cells/__tests__/document-changes.test.ts +39 -1
- package/src/core/cells/__tests__/outputs.test.tsx +117 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -3
- package/src/core/cells/__tests__/session.test.ts +7 -0
- package/src/core/cells/cell.ts +9 -1
- package/src/core/cells/cells.ts +13 -18
- package/src/core/cells/document-changes.ts +11 -1
- package/src/core/cells/outputs.ts +66 -9
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/cells/session.ts +2 -0
- package/src/core/cells/types.ts +2 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +8 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +4 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/codemirror/rtc/extension.ts +5 -2
- package/src/core/config/pair.ts +19 -0
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/state.ts +1 -2
- package/src/core/export/__tests__/hooks.test.ts +1 -6
- package/src/core/islands/bootstrap.ts +3 -1
- package/src/core/islands/bridge.ts +3 -0
- package/src/core/islands/worker-factory.ts +2 -12
- package/src/core/kernel/messages.ts +2 -2
- package/src/core/network/__tests__/requests-network.test.ts +4 -3
- package/src/core/network/connection-notice.ts +117 -0
- package/src/core/network/connection.ts +19 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +12 -0
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/resolve.ts +2 -1
- package/src/core/network/types.ts +7 -0
- package/src/core/network/useConnectionNotice.ts +53 -0
- package/src/core/packages/__tests__/usePackageAction.test.tsx +129 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +246 -0
- package/src/core/packages/package-data.ts +35 -0
- package/src/core/packages/sandbox-state.ts +67 -0
- package/src/core/packages/toast-components.tsx +11 -0
- package/src/core/packages/useInstallPackage.ts +1 -1
- package/src/core/packages/usePackageAction.ts +51 -0
- package/src/core/packages/usePackageDependencies.ts +22 -0
- package/src/core/packages/useSandboxController.ts +208 -0
- package/src/core/run-app.tsx +2 -0
- package/src/core/static/__tests__/files.test.ts +12 -30
- package/src/core/wasm/__tests__/bootstrap.test.ts +63 -0
- package/src/core/wasm/__tests__/bridge.test.ts +13 -4
- package/src/core/wasm/__tests__/fs.test.ts +22 -0
- package/src/core/wasm/__tests__/runtime-config.test.ts +65 -0
- package/src/core/wasm/bridge.ts +35 -23
- package/src/core/wasm/rpc.ts +2 -0
- package/src/core/wasm/runtime-config.ts +31 -0
- package/src/core/wasm/worker/bootstrap.ts +21 -11
- package/src/core/wasm/worker/constants.ts +1 -0
- package/src/core/wasm/worker/fs.ts +4 -0
- package/src/core/wasm/worker/getController.ts +3 -1
- package/src/core/wasm/worker/save-worker.ts +10 -9
- package/src/core/wasm/worker/types.ts +6 -4
- package/src/core/wasm/worker/worker.ts +9 -9
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +404 -3
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +8 -6
- package/src/core/websocket/transports/transport.ts +1 -1
- package/src/core/websocket/transports/ws.ts +1 -1
- package/src/core/websocket/types.ts +11 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +63 -16
- package/src/hooks/useDebounce.ts +2 -0
- package/src/mount.tsx +3 -0
- package/src/plugins/core/BadPlugin.tsx +3 -14
- package/src/plugins/core/RenderHTML.tsx +22 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
- package/src/plugins/core/registerReactComponent.tsx +0 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +10 -4
- package/src/plugins/impl/FormPlugin.tsx +2 -0
- package/src/plugins/impl/MatrixPlugin.tsx +2 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
- package/src/plugins/impl/SliderPlugin.tsx +2 -0
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +50 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +23 -18
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +1 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +15 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +42 -48
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
- package/src/stories/sandbox.stories.tsx +488 -0
- package/src/utils/__tests__/path.test.ts +6 -5
- package/src/utils/__tests__/worker.test.ts +81 -0
- package/src/utils/worker.ts +22 -0
- package/dist/ErrorBoundary-CR-ZQN_c.js +0 -125
- package/dist/_baseMerge-Dv8bBloN.js +0 -73
- package/dist/_initCloneObject---vediN2.js +0 -95
- package/dist/arc-DOVLrCPd.js +0 -82
- package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
- package/dist/assets/worker-DlIBfp9S.js +0 -98
- package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
- package/dist/chat-ui-BSwr409J.js +0 -8455
- package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
- package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
- package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
- package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
- package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
- package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
- package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
- package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
- package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
- package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
- package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
- package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
- package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
- package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
- package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
- package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
- package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
- package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
- package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
- package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
- package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
- package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
- package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
- package/dist/click-outside-container-D_URcm3D.js +0 -167
- package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
- package/dist/copy-CD7S58CY.js +0 -141
- package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
- package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
- package/dist/dist-3_o3T78I.js +0 -1360
- package/dist/dist-ABQjhuek.js +0 -64
- package/dist/dist-CO5R6VMi.js +0 -538
- package/dist/dropdown-menu-DhCfcscX.js +0 -5858
- package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
- package/dist/error-banner-CsXbEEjo.js +0 -611
- package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
- package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
- package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
- package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
- package/dist/line-CuKjIQa1.js +0 -34
- package/dist/map-BJpOfPlL.js +0 -149
- package/dist/math-BXtKgYah.js +0 -10
- package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
- package/dist/mermaid-Bi23Ibnw.js +0 -1173
- package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
- package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
- package/dist/path-BNHuHZP8.js +0 -87
- package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
- package/dist/purify.es-CB-YO1Hn.js +0 -774
- package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
- package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
- package/dist/schemas-DzK6U94N.js +0 -6057
- package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
- package/dist/step-CKczO72Q.js +0 -670
- package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
- package/dist/timer-DpDyj9G0.js +0 -596
- package/dist/tooltip-Dt77sBeT.js +0 -390
- package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
- package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
- package/dist/useTheme-CVJ0UOf2.js +0 -841
- package/dist/vega-loader.browser-DEggZzni.js +0 -1083
- package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
- package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
|
@@ -0,0 +1,904 @@
|
|
|
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-DdXAm8iz.js";
|
|
3
|
+
import { t as a } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as o } from "./compiler-runtime-Cj8ZWiNS.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-D5D9xEjZ.js";
|
|
6
|
+
import { l as g, t as _ } from "./_baseMerge-BiGRwuqv.js";
|
|
7
|
+
//#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
|
|
8
|
+
var v = g(function(e, t, n, r) {
|
|
9
|
+
_(e, t, n, r);
|
|
10
|
+
}), y = /* @__PURE__ */ e(a()), b = typeof window < "u" ? y.useInsertionEffect || y.useLayoutEffect : () => {};
|
|
11
|
+
function x(e) {
|
|
12
|
+
let t = y.useRef(S);
|
|
13
|
+
b(() => {
|
|
14
|
+
t.current = e;
|
|
15
|
+
}, [e]);
|
|
16
|
+
let n = y.useRef(null);
|
|
17
|
+
return n.current ||= function() {
|
|
18
|
+
return t.current.apply(this, arguments);
|
|
19
|
+
}, n.current;
|
|
20
|
+
}
|
|
21
|
+
function S() {
|
|
22
|
+
throw Error("INVALID_USEEVENT_INVOCATION: the callback from useEvent cannot be invoked before the component has mounted.");
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.mjs
|
|
26
|
+
var C = o(), w = Object.prototype.hasOwnProperty;
|
|
27
|
+
function T(e, t, n) {
|
|
28
|
+
for (n of e.keys()) if (E(n, t)) return n;
|
|
29
|
+
}
|
|
30
|
+
function E(e, t) {
|
|
31
|
+
var n, r, i;
|
|
32
|
+
if (e === t) return !0;
|
|
33
|
+
if (e && t && (n = e.constructor) === t.constructor) {
|
|
34
|
+
if (n === Date) return e.getTime() === t.getTime();
|
|
35
|
+
if (n === RegExp) return e.toString() === t.toString();
|
|
36
|
+
if (n === Array) {
|
|
37
|
+
if ((r = e.length) === t.length) for (; r-- && E(e[r], t[r]););
|
|
38
|
+
return r === -1;
|
|
39
|
+
}
|
|
40
|
+
if (n === Set) {
|
|
41
|
+
if (e.size !== t.size) return !1;
|
|
42
|
+
for (r of e) if (i = r, i && typeof i == "object" && (i = T(t, i), !i) || !t.has(i)) return !1;
|
|
43
|
+
return !0;
|
|
44
|
+
}
|
|
45
|
+
if (n === Map) {
|
|
46
|
+
if (e.size !== t.size) return !1;
|
|
47
|
+
for (r of e) if (i = r[0], i && typeof i == "object" && (i = T(t, i), !i) || !E(r[1], t.get(i))) return !1;
|
|
48
|
+
return !0;
|
|
49
|
+
}
|
|
50
|
+
if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
|
|
51
|
+
else if (n === DataView) {
|
|
52
|
+
if ((r = e.byteLength) === t.byteLength) for (; r-- && e.getInt8(r) === t.getInt8(r););
|
|
53
|
+
return r === -1;
|
|
54
|
+
}
|
|
55
|
+
if (ArrayBuffer.isView(e)) {
|
|
56
|
+
if ((r = e.byteLength) === t.byteLength) for (; r-- && e[r] === t[r];);
|
|
57
|
+
return r === -1;
|
|
58
|
+
}
|
|
59
|
+
if (!n || typeof e == "object") {
|
|
60
|
+
for (n in r = 0, e) if (w.call(e, n) && ++r && !w.call(t, n) || !(n in t) || !E(e[n], t[n])) return !1;
|
|
61
|
+
return Object.keys(t).length === r;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return e !== e && t !== t;
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.2.18_react@19.2.8/node_modules/jotai/esm/vanilla/internals.mjs
|
|
68
|
+
var D = /* @__PURE__ */ t({
|
|
69
|
+
INTERNAL_addPendingPromiseToDependency: () => N,
|
|
70
|
+
INTERNAL_buildStoreRev3: () => we,
|
|
71
|
+
INTERNAL_getBuildingBlocksRev3: () => L,
|
|
72
|
+
INTERNAL_getMountedOrPendingDependents: () => P,
|
|
73
|
+
INTERNAL_hasInitialValue: () => O,
|
|
74
|
+
INTERNAL_initializeStoreHooksRev3: () => re,
|
|
75
|
+
INTERNAL_isActuallyWritableAtom: () => k,
|
|
76
|
+
INTERNAL_isAtomStateInitialized: () => A,
|
|
77
|
+
INTERNAL_isPromiseLike: () => M,
|
|
78
|
+
INTERNAL_returnAtomValue: () => j,
|
|
79
|
+
INTERNAL_shouldThrowSynchronously: () => te
|
|
80
|
+
});
|
|
81
|
+
function O(e) {
|
|
82
|
+
return "init" in e;
|
|
83
|
+
}
|
|
84
|
+
function k(e) {
|
|
85
|
+
return typeof e.write == "function";
|
|
86
|
+
}
|
|
87
|
+
function ee(e) {
|
|
88
|
+
return !!e.onMount;
|
|
89
|
+
}
|
|
90
|
+
function A(e) {
|
|
91
|
+
return "v" in e || "e" in e;
|
|
92
|
+
}
|
|
93
|
+
function j(e) {
|
|
94
|
+
if ("e" in e) throw e.e;
|
|
95
|
+
return e.v;
|
|
96
|
+
}
|
|
97
|
+
function M(e) {
|
|
98
|
+
return typeof e?.then == "function";
|
|
99
|
+
}
|
|
100
|
+
function te(e) {
|
|
101
|
+
if (!(e instanceof Error)) return !1;
|
|
102
|
+
let t = e.name, n = e.message.toLowerCase();
|
|
103
|
+
return (t === "RangeError" || t === "InternalError") && (n.includes("call stack") || n.includes("too much recursion") || n.includes("stack overflow"));
|
|
104
|
+
}
|
|
105
|
+
function N(e, t, n) {
|
|
106
|
+
if (!n.p.has(e)) {
|
|
107
|
+
n.p.add(e);
|
|
108
|
+
let r = () => n.p.delete(e);
|
|
109
|
+
t.then(r, r);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function P(e, t, n) {
|
|
113
|
+
let r = n.get(e)?.t, i = t.p;
|
|
114
|
+
if (!r?.size) return i;
|
|
115
|
+
if (!i.size) return r;
|
|
116
|
+
let a = new Set(r);
|
|
117
|
+
for (let e of i) a.add(e);
|
|
118
|
+
return a;
|
|
119
|
+
}
|
|
120
|
+
var ne = () => {
|
|
121
|
+
let e = /* @__PURE__ */ new Set(), t = () => e.forEach((e) => e());
|
|
122
|
+
return t.add = (t) => (e.add(t), () => e.delete(t)), t;
|
|
123
|
+
}, F = () => {
|
|
124
|
+
let e = {}, t = /* @__PURE__ */ new WeakMap(), n = (n) => {
|
|
125
|
+
var r, i;
|
|
126
|
+
(r = t.get(e)) == null || r.forEach((e) => e(n)), (i = t.get(n)) == null || i.forEach((e) => e());
|
|
127
|
+
};
|
|
128
|
+
return n.add = (n, r) => {
|
|
129
|
+
let i = n || e, a = t.get(i);
|
|
130
|
+
return a || (a = /* @__PURE__ */ new Set(), t.set(i, a)), a.add(r), () => {
|
|
131
|
+
a.delete(r), a.size || t.delete(i);
|
|
132
|
+
};
|
|
133
|
+
}, n;
|
|
134
|
+
};
|
|
135
|
+
function re(e) {
|
|
136
|
+
return e.i ||= F(), e.r ||= F(), e.c ||= F(), e.m ||= F(), e.u ||= F(), e.f ||= ne(), e;
|
|
137
|
+
}
|
|
138
|
+
function ie(e) {
|
|
139
|
+
return !!e.INTERNAL_onInit;
|
|
140
|
+
}
|
|
141
|
+
var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r), se = (e, t, n) => n.INTERNAL_onInit(t), ce = (e, t, n, r) => n.onMount?.call(n, r), le = (e, t, n) => {
|
|
142
|
+
var r;
|
|
143
|
+
let i = e[0], a = i.get(n);
|
|
144
|
+
if (!a) {
|
|
145
|
+
let o = e[6], s = e[9];
|
|
146
|
+
a = {
|
|
147
|
+
d: /* @__PURE__ */ new Map(),
|
|
148
|
+
p: /* @__PURE__ */ new Set(),
|
|
149
|
+
n: 0
|
|
150
|
+
}, i.set(n, a), (r = o.i) == null || r.call(o, n), ie(n) && s(e, t, n);
|
|
151
|
+
}
|
|
152
|
+
return a;
|
|
153
|
+
}, ue = (e, t) => {
|
|
154
|
+
let n = e[1], r = e[3], i = e[4], a = e[5], o = e[6], s = e[13];
|
|
155
|
+
if (!o.f && !r.size && !i.size && !a.size) return;
|
|
156
|
+
let c = [], l = (e) => {
|
|
157
|
+
try {
|
|
158
|
+
e();
|
|
159
|
+
} catch (e) {
|
|
160
|
+
c.push(e);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
do {
|
|
164
|
+
o.f && l(o.f);
|
|
165
|
+
let c = /* @__PURE__ */ new Set();
|
|
166
|
+
for (let e of r) {
|
|
167
|
+
let t = n.get(e)?.l;
|
|
168
|
+
if (t) for (let e of t) c.add(e);
|
|
169
|
+
}
|
|
170
|
+
r.clear();
|
|
171
|
+
for (let e of a) c.add(e);
|
|
172
|
+
a.clear();
|
|
173
|
+
for (let e of i) c.add(e);
|
|
174
|
+
i.clear();
|
|
175
|
+
for (let e of c) l(e);
|
|
176
|
+
r.size && s(e, t);
|
|
177
|
+
} while (r.size || a.size || i.size);
|
|
178
|
+
if (c.length) throw AggregateError(c);
|
|
179
|
+
}, de = (e, t) => {
|
|
180
|
+
let n = e[1], r = e[2], i = e[3], a = e[11], o = e[14], s = e[17];
|
|
181
|
+
if (!i.size) return;
|
|
182
|
+
let c = [], l = [], u = /* @__PURE__ */ new WeakSet(), d = /* @__PURE__ */ new WeakSet(), f = [], p = [];
|
|
183
|
+
for (let n of i) f.push(n), p.push(a(e, t, n));
|
|
184
|
+
for (; f.length;) {
|
|
185
|
+
let i = f.length - 1, o = f[i], s = p[i];
|
|
186
|
+
if (d.has(o)) {
|
|
187
|
+
f.pop(), p.pop();
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
if (u.has(o)) {
|
|
191
|
+
r.get(o) === s.n && (c.push(o), l.push(s)), d.add(o), f.pop(), p.pop();
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
u.add(o);
|
|
195
|
+
for (let r of P(o, s, n)) u.has(r) || (f.push(r), p.push(a(e, t, r)));
|
|
196
|
+
}
|
|
197
|
+
for (let n = c.length - 1; n >= 0; --n) {
|
|
198
|
+
let a = c[n], u = l[n], d = !1;
|
|
199
|
+
for (let e of u.d.keys()) if (e !== a && i.has(e)) {
|
|
200
|
+
d = !0;
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
d && (r.set(a, u.n), o(e, t, a), s(e, t, a)), r.delete(a);
|
|
204
|
+
}
|
|
205
|
+
}, fe = (e, t, n) => {
|
|
206
|
+
var r, i;
|
|
207
|
+
let a = e[1], o = e[2], s = e[3], c = e[6], l = e[7], u = e[11], d = e[12], f = e[13], p = e[14], m = e[16], h = e[17], g = e[20], _ = e[26], v = e[28], y = u(e, t, n), b = v[0];
|
|
208
|
+
if (A(y)) {
|
|
209
|
+
if (a.has(n) && o.get(n) !== y.n || y.m === b) return y.m = b, y;
|
|
210
|
+
let r = !1;
|
|
211
|
+
for (let [n, i] of y.d) if (p(e, t, n).n !== i) {
|
|
212
|
+
r = !0;
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
if (!r) return y.m = b, y;
|
|
216
|
+
}
|
|
217
|
+
let x = !0, S = new Set(y.d.keys()), C = () => {
|
|
218
|
+
for (let e of S) y.d.delete(e);
|
|
219
|
+
}, w = () => {
|
|
220
|
+
if (a.has(n)) {
|
|
221
|
+
let r = !s.size;
|
|
222
|
+
h(e, t, n), r && (f(e, t), d(e, t));
|
|
223
|
+
}
|
|
224
|
+
}, T = (r) => {
|
|
225
|
+
var i;
|
|
226
|
+
if (r === n) {
|
|
227
|
+
let n = u(e, t, r);
|
|
228
|
+
if (!A(n)) {
|
|
229
|
+
if (O(r)) g(e, t, r, r.init);
|
|
230
|
+
else throw Error("no atom init");
|
|
231
|
+
}
|
|
232
|
+
return j(n);
|
|
233
|
+
}
|
|
234
|
+
let o = p(e, t, r);
|
|
235
|
+
try {
|
|
236
|
+
return j(o);
|
|
237
|
+
} finally {
|
|
238
|
+
S.delete(r), y.d.set(r, o.n), M(y.v) && N(n, y.v, o), a.has(n) && ((i = a.get(r)) == null || i.t.add(n)), x || w();
|
|
239
|
+
}
|
|
240
|
+
}, E, D, ee = {
|
|
241
|
+
get signal() {
|
|
242
|
+
return E ||= new AbortController(), E.signal;
|
|
243
|
+
},
|
|
244
|
+
get setSelf() {
|
|
245
|
+
return !D && k(n) && (D = (...r) => {
|
|
246
|
+
if (!x) try {
|
|
247
|
+
return m(e, t, n, r);
|
|
248
|
+
} finally {
|
|
249
|
+
f(e, t), d(e, t);
|
|
250
|
+
}
|
|
251
|
+
}), D;
|
|
252
|
+
}
|
|
253
|
+
}, P = y.n, ne = o.get(n) === P;
|
|
254
|
+
try {
|
|
255
|
+
let i = l(e, t, n, T, ee);
|
|
256
|
+
if (g(e, t, n, i), M(i)) {
|
|
257
|
+
_(e, t, i, () => E?.abort());
|
|
258
|
+
let n = () => {
|
|
259
|
+
C(), w();
|
|
260
|
+
};
|
|
261
|
+
i.then(n, n);
|
|
262
|
+
} else C();
|
|
263
|
+
return (r = c.r) == null || r.call(c, n), y.m = b, y;
|
|
264
|
+
} catch (e) {
|
|
265
|
+
if (te(e)) throw e;
|
|
266
|
+
return delete y.v, y.e = e, ++y.n, y.m = b, y;
|
|
267
|
+
} finally {
|
|
268
|
+
x = !1, y.n !== P && ne && (o.set(n, y.n), s.add(n), (i = c.c) == null || i.call(c, n));
|
|
269
|
+
}
|
|
270
|
+
}, pe = (e, t, n) => {
|
|
271
|
+
let r = e[1], i = e[2], a = e[11], o = [n];
|
|
272
|
+
for (; o.length;) {
|
|
273
|
+
let n = o.pop(), s = a(e, t, n);
|
|
274
|
+
for (let c of P(n, s, r)) {
|
|
275
|
+
let n = a(e, t, c);
|
|
276
|
+
i.get(c) !== n.n && (i.set(c, n.n), o.push(c));
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}, me = (e, t, n, r) => {
|
|
280
|
+
let i = e[3], a = e[6], o = e[8], s = e[11], c = e[12], l = e[13], u = e[14], d = e[15], f = e[16], p = e[17], m = e[20], h = e[28], g = !0, _ = (n) => j(u(e, t, n)), v = (r, ...o) => {
|
|
281
|
+
var u;
|
|
282
|
+
let _ = s(e, t, r);
|
|
283
|
+
try {
|
|
284
|
+
if (r === n) {
|
|
285
|
+
if (!O(r)) throw Error("atom not writable");
|
|
286
|
+
let n = _.n, s = o[0];
|
|
287
|
+
m(e, t, r, s), p(e, t, r), n !== _.n && (++h[0], i.add(r), d(e, t, r), (u = a.c) == null || u.call(a, r));
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
return f(e, t, r, o);
|
|
291
|
+
} finally {
|
|
292
|
+
g || (l(e, t), c(e, t));
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
try {
|
|
296
|
+
return o(e, t, n, _, v, ...r);
|
|
297
|
+
} finally {
|
|
298
|
+
g = !1;
|
|
299
|
+
}
|
|
300
|
+
}, he = (e, t, n) => {
|
|
301
|
+
var r;
|
|
302
|
+
let i = e[1], a = e[3], o = e[6], s = e[11], c = e[15], l = e[18], u = e[19], d = s(e, t, n), f = i.get(n);
|
|
303
|
+
if (f && d.d.size > 0) {
|
|
304
|
+
for (let [i, u] of d.d) if (!f.d.has(i)) {
|
|
305
|
+
let d = s(e, t, i);
|
|
306
|
+
l(e, t, i).t.add(n), f.d.add(i), u !== d.n && (a.add(i), c(e, t, i), (r = o.c) == null || r.call(o, i));
|
|
307
|
+
}
|
|
308
|
+
for (let r of f.d) d.d.has(r) || (f.d.delete(r), u(e, t, r)?.t.delete(n));
|
|
309
|
+
}
|
|
310
|
+
}, ge = (e, t, n) => {
|
|
311
|
+
var r;
|
|
312
|
+
let i = e[1], a = e[4], o = e[6], s = e[10], c = e[11], l = e[12], u = e[13], d = e[14], f = e[16], p = e[18], m = c(e, t, n), h = i.get(n);
|
|
313
|
+
if (!h) {
|
|
314
|
+
d(e, t, n);
|
|
315
|
+
for (let r of m.d.keys()) p(e, t, r).t.add(n);
|
|
316
|
+
h = {
|
|
317
|
+
l: /* @__PURE__ */ new Set(),
|
|
318
|
+
d: new Set(m.d.keys()),
|
|
319
|
+
t: /* @__PURE__ */ new Set()
|
|
320
|
+
}, i.set(n, h), k(n) && ee(n) && a.add(() => {
|
|
321
|
+
let r = !0, i = (...i) => {
|
|
322
|
+
try {
|
|
323
|
+
return f(e, t, n, i);
|
|
324
|
+
} finally {
|
|
325
|
+
r || (u(e, t), l(e, t));
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
try {
|
|
329
|
+
let a = s(e, t, n, i);
|
|
330
|
+
a && (h.u = () => {
|
|
331
|
+
r = !0;
|
|
332
|
+
try {
|
|
333
|
+
a();
|
|
334
|
+
} finally {
|
|
335
|
+
r = !1;
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
} finally {
|
|
339
|
+
r = !1;
|
|
340
|
+
}
|
|
341
|
+
}), (r = o.m) == null || r.call(o, n);
|
|
342
|
+
}
|
|
343
|
+
return h;
|
|
344
|
+
}, _e = (e, t, n) => {
|
|
345
|
+
var r;
|
|
346
|
+
let i = e[1], a = e[5], o = e[6], s = e[11], c = e[19], l = s(e, t, n), u = i.get(n);
|
|
347
|
+
if (!u || u.l.size) return u;
|
|
348
|
+
let d = !1;
|
|
349
|
+
for (let e of u.t) if (i.get(e)?.d.has(n)) {
|
|
350
|
+
d = !0;
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
if (!d) {
|
|
354
|
+
u.u && a.add(u.u), u = void 0, i.delete(n);
|
|
355
|
+
for (let r of l.d.keys()) c(e, t, r)?.t.delete(n);
|
|
356
|
+
(r = o.u) == null || r.call(o, n);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
return u;
|
|
360
|
+
}, ve = (e, t, n, r) => {
|
|
361
|
+
let i = e[11], a = e[27], o = i(e, t, n), s = "v" in o, c = o.v;
|
|
362
|
+
if (M(r)) for (let a of o.d.keys()) N(n, r, i(e, t, a));
|
|
363
|
+
o.v = r, delete o.e, (!s || !Object.is(c, o.v)) && (++o.n, M(c) && a(e, t, c));
|
|
364
|
+
}, ye = (e, t, n) => {
|
|
365
|
+
let r = e[14];
|
|
366
|
+
return j(r(e, t, n));
|
|
367
|
+
}, be = (e, t, n, ...r) => {
|
|
368
|
+
let i = e[3], a = e[12], o = e[13], s = e[16], c = i.size;
|
|
369
|
+
try {
|
|
370
|
+
return s(e, t, n, r);
|
|
371
|
+
} finally {
|
|
372
|
+
i.size !== c && (o(e, t), a(e, t));
|
|
373
|
+
}
|
|
374
|
+
}, xe = (e, t, n, r) => {
|
|
375
|
+
let i = e[12], a = e[13], o = e[18], s = e[19], c = o(e, t, n).l;
|
|
376
|
+
return c.add(r), a(e, t), i(e, t), () => {
|
|
377
|
+
c.delete(r), s(e, t, n), a(e, t), i(e, t);
|
|
378
|
+
};
|
|
379
|
+
}, Se = (e, t, n, r) => {
|
|
380
|
+
let i = e[25], a = i.get(n);
|
|
381
|
+
if (!a) {
|
|
382
|
+
a = /* @__PURE__ */ new Set(), i.set(n, a);
|
|
383
|
+
let e = () => i.delete(n);
|
|
384
|
+
n.then(e, e);
|
|
385
|
+
}
|
|
386
|
+
a.add(r);
|
|
387
|
+
}, Ce = (e, t, n) => {
|
|
388
|
+
e[25].get(n)?.forEach((e) => e());
|
|
389
|
+
}, I = /* @__PURE__ */ new WeakMap();
|
|
390
|
+
function L(e) {
|
|
391
|
+
let t = I.get(e), n = t[24];
|
|
392
|
+
return n ? n(t, e) : t;
|
|
393
|
+
}
|
|
394
|
+
function we(...e) {
|
|
395
|
+
let t = {
|
|
396
|
+
get(e) {
|
|
397
|
+
return r(n, t, e);
|
|
398
|
+
},
|
|
399
|
+
set(e, ...r) {
|
|
400
|
+
return i(n, t, e, ...r);
|
|
401
|
+
},
|
|
402
|
+
sub(e, r) {
|
|
403
|
+
return a(n, t, e, r);
|
|
404
|
+
}
|
|
405
|
+
}, n = [
|
|
406
|
+
/* @__PURE__ */ new WeakMap(),
|
|
407
|
+
/* @__PURE__ */ new WeakMap(),
|
|
408
|
+
/* @__PURE__ */ new WeakMap(),
|
|
409
|
+
/* @__PURE__ */ new Set(),
|
|
410
|
+
/* @__PURE__ */ new Set(),
|
|
411
|
+
/* @__PURE__ */ new Set(),
|
|
412
|
+
{},
|
|
413
|
+
ae,
|
|
414
|
+
oe,
|
|
415
|
+
se,
|
|
416
|
+
ce,
|
|
417
|
+
le,
|
|
418
|
+
ue,
|
|
419
|
+
de,
|
|
420
|
+
fe,
|
|
421
|
+
pe,
|
|
422
|
+
me,
|
|
423
|
+
he,
|
|
424
|
+
ge,
|
|
425
|
+
_e,
|
|
426
|
+
ve,
|
|
427
|
+
ye,
|
|
428
|
+
be,
|
|
429
|
+
xe,
|
|
430
|
+
void 0,
|
|
431
|
+
/* @__PURE__ */ new WeakMap(),
|
|
432
|
+
Se,
|
|
433
|
+
Ce,
|
|
434
|
+
[0]
|
|
435
|
+
].map((t, n) => e[n] || t);
|
|
436
|
+
I.set(t, Object.freeze(n));
|
|
437
|
+
let r = n[21], i = n[22], a = n[23];
|
|
438
|
+
return t;
|
|
439
|
+
}
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.2.18_react@19.2.8/node_modules/jotai/esm/vanilla.mjs
|
|
442
|
+
var Te = 0;
|
|
443
|
+
function R(e, t) {
|
|
444
|
+
let n = `atom${++Te}`, r = { toString() {
|
|
445
|
+
return n;
|
|
446
|
+
} };
|
|
447
|
+
return typeof e == "function" ? r.read = e : (r.init = e, r.read = Ee, r.write = De), t && (r.write = t), r;
|
|
448
|
+
}
|
|
449
|
+
function Ee(e) {
|
|
450
|
+
return e(this);
|
|
451
|
+
}
|
|
452
|
+
function De(e, t, n) {
|
|
453
|
+
return t(this, typeof n == "function" ? n(e(this)) : n);
|
|
454
|
+
}
|
|
455
|
+
function z() {
|
|
456
|
+
return we();
|
|
457
|
+
}
|
|
458
|
+
var Oe;
|
|
459
|
+
function ke() {
|
|
460
|
+
return Oe ||= z(), Oe;
|
|
461
|
+
}
|
|
462
|
+
//#endregion
|
|
463
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_@babel+template@7.28.6_@types+react@19.2.18_react@19.2.8/node_modules/jotai/esm/react.mjs
|
|
464
|
+
var B = (0, y.createContext)(void 0);
|
|
465
|
+
function V(e) {
|
|
466
|
+
let t = (0, y.useContext)(B);
|
|
467
|
+
return e?.store || t || ke();
|
|
468
|
+
}
|
|
469
|
+
function Ae({ children: e, store: t }) {
|
|
470
|
+
let n = (0, y.useRef)(null);
|
|
471
|
+
return t ? (0, y.createElement)(B.Provider, { value: t }, e) : (n.current === null && (n.current = z()), (0, y.createElement)(B.Provider, { value: n.current }, e));
|
|
472
|
+
}
|
|
473
|
+
var H = (e) => typeof e?.then == "function", U = (e) => {
|
|
474
|
+
e.status || (e.status = "pending", e.then((t) => {
|
|
475
|
+
e.status = "fulfilled", e.value = t;
|
|
476
|
+
}, (t) => {
|
|
477
|
+
e.status = "rejected", e.reason = t;
|
|
478
|
+
}));
|
|
479
|
+
}, je = y.use || ((e) => {
|
|
480
|
+
if (e.status === "pending") throw e;
|
|
481
|
+
if (e.status === "fulfilled") return e.value;
|
|
482
|
+
throw e.status === "rejected" ? e.reason : (U(e), e);
|
|
483
|
+
}), W = /* @__PURE__ */ new WeakMap(), Me = (e, t, n) => {
|
|
484
|
+
let r = L(e), i = r[26], a = W.get(t);
|
|
485
|
+
return a || (a = new Promise((o, s) => {
|
|
486
|
+
let c = t, l = (e) => (t) => {
|
|
487
|
+
c === e && o(t);
|
|
488
|
+
}, u = (e) => (t) => {
|
|
489
|
+
c === e && s(t);
|
|
490
|
+
}, d = () => {
|
|
491
|
+
try {
|
|
492
|
+
let t = n();
|
|
493
|
+
H(t) ? (W.set(t, a), c = t, t.then(l(t), u(t)), i(r, e, t, d)) : o(t);
|
|
494
|
+
} catch (e) {
|
|
495
|
+
s(e);
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
t.then(l(t), u(t)), i(r, e, t, d);
|
|
499
|
+
}), W.set(t, a)), a;
|
|
500
|
+
};
|
|
501
|
+
function G(e, t) {
|
|
502
|
+
let { delay: n, unstable_promiseStatus: r = !y.use } = t || {}, i = V(t), [[a, o, s], c] = (0, y.useReducer)((t) => {
|
|
503
|
+
let n = i.get(e);
|
|
504
|
+
return Object.is(t[0], n) && t[1] === i && t[2] === e ? t : [
|
|
505
|
+
n,
|
|
506
|
+
i,
|
|
507
|
+
e
|
|
508
|
+
];
|
|
509
|
+
}, void 0, () => [
|
|
510
|
+
i.get(e),
|
|
511
|
+
i,
|
|
512
|
+
e
|
|
513
|
+
]), l = a;
|
|
514
|
+
if ((o !== i || s !== e) && (c(), l = i.get(e)), (0, y.useEffect)(() => {
|
|
515
|
+
let t = i.sub(e, () => {
|
|
516
|
+
if (r) try {
|
|
517
|
+
let t = i.get(e);
|
|
518
|
+
H(t) && U(Me(i, t, () => i.get(e)));
|
|
519
|
+
} catch {}
|
|
520
|
+
if (typeof n == "number") {
|
|
521
|
+
console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"), setTimeout(c, n);
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
c();
|
|
525
|
+
});
|
|
526
|
+
return c(), t;
|
|
527
|
+
}, [
|
|
528
|
+
i,
|
|
529
|
+
e,
|
|
530
|
+
n,
|
|
531
|
+
r
|
|
532
|
+
]), (0, y.useDebugValue)(l), H(l)) {
|
|
533
|
+
let t = Me(i, l, () => i.get(e));
|
|
534
|
+
return r && U(t), je(t);
|
|
535
|
+
}
|
|
536
|
+
return l;
|
|
537
|
+
}
|
|
538
|
+
function K(e, t) {
|
|
539
|
+
let n = V(t);
|
|
540
|
+
return (0, y.useCallback)((...t) => n.set(e, ...t), [n, e]);
|
|
541
|
+
}
|
|
542
|
+
function Ne(e, t) {
|
|
543
|
+
return [G(e, t), K(e, t)];
|
|
544
|
+
}
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region src/core/islands/utils.ts
|
|
547
|
+
function Pe() {
|
|
548
|
+
return !0;
|
|
549
|
+
}
|
|
550
|
+
//#endregion
|
|
551
|
+
//#region src/core/state/jotai.ts
|
|
552
|
+
var q = z();
|
|
553
|
+
async function Fe(e, t) {
|
|
554
|
+
return t(q.get(e)) ? q.get(e) : new Promise((n) => {
|
|
555
|
+
let r = q.sub(e, () => {
|
|
556
|
+
let i = q.get(e);
|
|
557
|
+
t(i) && (r(), n(i));
|
|
558
|
+
});
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
function Ie(e, t) {
|
|
562
|
+
let n = (0, C.c)(5), r = V(), i, a;
|
|
563
|
+
n[0] !== e || n[1] !== t || n[2] !== r ? (i = () => {
|
|
564
|
+
let n = r.get(e);
|
|
565
|
+
r.sub(e, () => {
|
|
566
|
+
let i = r.get(e);
|
|
567
|
+
t(i, n), n = i;
|
|
568
|
+
});
|
|
569
|
+
}, a = [
|
|
570
|
+
e,
|
|
571
|
+
t,
|
|
572
|
+
r
|
|
573
|
+
], n[0] = e, n[1] = t, n[2] = r, n[3] = i, n[4] = a) : (i = n[3], a = n[4]), (0, y.useEffect)(i, a);
|
|
574
|
+
}
|
|
575
|
+
var Le = Symbol("sentinel");
|
|
576
|
+
function Re(e, t = E) {
|
|
577
|
+
let n = Le;
|
|
578
|
+
return R((r) => {
|
|
579
|
+
let i = r(e);
|
|
580
|
+
return (n === Le || !t(n, i)) && (n = i), n;
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region src/core/config/config-schema.ts
|
|
585
|
+
var ze = [
|
|
586
|
+
"pip",
|
|
587
|
+
"uv",
|
|
588
|
+
"rye",
|
|
589
|
+
"poetry",
|
|
590
|
+
"pixi"
|
|
591
|
+
], Be = [
|
|
592
|
+
"normal",
|
|
593
|
+
"compact",
|
|
594
|
+
"medium",
|
|
595
|
+
"full",
|
|
596
|
+
"columns"
|
|
597
|
+
], Ve = [
|
|
598
|
+
"auto",
|
|
599
|
+
"native",
|
|
600
|
+
"polars",
|
|
601
|
+
"lazy-polars",
|
|
602
|
+
"pandas"
|
|
603
|
+
], He = [
|
|
604
|
+
"html",
|
|
605
|
+
"markdown",
|
|
606
|
+
"ipynb"
|
|
607
|
+
], Ue = [
|
|
608
|
+
"manual",
|
|
609
|
+
"ask",
|
|
610
|
+
"agent",
|
|
611
|
+
"code_mode"
|
|
612
|
+
], J = u({
|
|
613
|
+
api_key: c().optional(),
|
|
614
|
+
base_url: c().optional(),
|
|
615
|
+
project: c().optional()
|
|
616
|
+
}).loose(), We = u({
|
|
617
|
+
chat_model: c().nullish(),
|
|
618
|
+
edit_model: c().nullish(),
|
|
619
|
+
autocomplete_model: c().nullish(),
|
|
620
|
+
displayed_models: p(c()).default([]),
|
|
621
|
+
custom_models: p(c()).default([])
|
|
622
|
+
}), Ge = d({
|
|
623
|
+
completion: u({
|
|
624
|
+
activate_on_typing: s().prefault(!0),
|
|
625
|
+
signature_hint_on_typing: s().prefault(!1),
|
|
626
|
+
auto_close_pairs: s().prefault(!0),
|
|
627
|
+
copilot: l([s(), h([
|
|
628
|
+
"github",
|
|
629
|
+
"codeium",
|
|
630
|
+
"custom"
|
|
631
|
+
])]).prefault(!1).transform((e) => e === !0 ? "github" : e),
|
|
632
|
+
codeium_api_key: c().nullish()
|
|
633
|
+
}).prefault({}),
|
|
634
|
+
save: d({
|
|
635
|
+
autosave: h(["off", "after_delay"]).prefault("after_delay"),
|
|
636
|
+
autosave_delay: m().nonnegative().transform((e) => Math.max(e, 1e3)).prefault(1e3),
|
|
637
|
+
format_on_save: s().prefault(!1)
|
|
638
|
+
}).prefault({}),
|
|
639
|
+
formatting: d({ line_length: m().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)) }).prefault({}),
|
|
640
|
+
keymap: d({
|
|
641
|
+
preset: h(["default", "vim"]).prefault("default"),
|
|
642
|
+
overrides: f(c(), c()).prefault({}),
|
|
643
|
+
destructive_delete: s().prefault(!0)
|
|
644
|
+
}).prefault({}),
|
|
645
|
+
runtime: d({
|
|
646
|
+
auto_instantiate: s().prefault(!0),
|
|
647
|
+
on_cell_change: h(["lazy", "autorun"]).prefault("autorun"),
|
|
648
|
+
auto_reload: h([
|
|
649
|
+
"off",
|
|
650
|
+
"lazy",
|
|
651
|
+
"autorun"
|
|
652
|
+
]).prefault("off"),
|
|
653
|
+
reactive_tests: s().prefault(!0),
|
|
654
|
+
watcher_on_save: h(["lazy", "autorun"]).prefault("lazy"),
|
|
655
|
+
default_sql_output: h(Ve).prefault("auto"),
|
|
656
|
+
default_auto_download: p(h(He)).prefault([]),
|
|
657
|
+
show_tracebacks: s().prefault(!1)
|
|
658
|
+
}).prefault({}),
|
|
659
|
+
display: d({
|
|
660
|
+
theme: h([
|
|
661
|
+
"light",
|
|
662
|
+
"dark",
|
|
663
|
+
"system"
|
|
664
|
+
]).prefault("light"),
|
|
665
|
+
code_editor_font_size: m().nonnegative().prefault(14),
|
|
666
|
+
cell_output: h(["above", "below"]).prefault("below"),
|
|
667
|
+
dataframes: h(["rich", "plain"]).prefault("rich"),
|
|
668
|
+
default_table_page_size: m().prefault(10),
|
|
669
|
+
default_table_max_columns: m().prefault(50),
|
|
670
|
+
default_width: h(Be).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
|
|
671
|
+
locale: c().nullable().optional(),
|
|
672
|
+
reference_highlighting: s().prefault(!0),
|
|
673
|
+
code_lens: s().prefault(!0)
|
|
674
|
+
}).prefault({}),
|
|
675
|
+
package_management: d({ manager: h(ze).prefault("pip") }).prefault({}),
|
|
676
|
+
ai: d({
|
|
677
|
+
enabled: s().prefault(!0),
|
|
678
|
+
rules: c().prefault(""),
|
|
679
|
+
max_tokens: m().int().positive().nullable().optional(),
|
|
680
|
+
mode: h(Ue).prefault("manual"),
|
|
681
|
+
inline_tooltip: s().prefault(!1),
|
|
682
|
+
allow_provider_config: s().prefault(!0),
|
|
683
|
+
open_ai: J.optional(),
|
|
684
|
+
github: J.optional(),
|
|
685
|
+
anthropic: J.optional(),
|
|
686
|
+
google: J.optional(),
|
|
687
|
+
ollama: J.optional(),
|
|
688
|
+
openrouter: J.optional(),
|
|
689
|
+
wandb: J.optional(),
|
|
690
|
+
opencode_go: J.optional(),
|
|
691
|
+
open_ai_compatible: J.optional(),
|
|
692
|
+
azure: J.optional(),
|
|
693
|
+
bedrock: d({
|
|
694
|
+
region_name: c().optional(),
|
|
695
|
+
profile_name: c().optional(),
|
|
696
|
+
aws_access_key_id: c().optional(),
|
|
697
|
+
aws_secret_access_key: c().optional()
|
|
698
|
+
}).optional(),
|
|
699
|
+
custom_providers: f(c(), J).prefault({}),
|
|
700
|
+
models: We.prefault({
|
|
701
|
+
displayed_models: [],
|
|
702
|
+
custom_models: []
|
|
703
|
+
})
|
|
704
|
+
}).prefault({}),
|
|
705
|
+
experimental: d({
|
|
706
|
+
markdown: s().optional(),
|
|
707
|
+
rtc: s().optional()
|
|
708
|
+
}).prefault(() => ({})),
|
|
709
|
+
server: d({
|
|
710
|
+
disable_file_downloads: s().optional(),
|
|
711
|
+
transport: h(["websocket", "sse"]).optional()
|
|
712
|
+
}).prefault(() => ({})),
|
|
713
|
+
diagnostics: d({
|
|
714
|
+
enabled: s().optional(),
|
|
715
|
+
sql_linter: s().optional()
|
|
716
|
+
}).prefault(() => ({})),
|
|
717
|
+
file_browser: d({ folders: p(u({
|
|
718
|
+
path: c(),
|
|
719
|
+
name: c().optional()
|
|
720
|
+
})).optional() }).optional().prefault({}),
|
|
721
|
+
sharing: d({
|
|
722
|
+
html: s().optional(),
|
|
723
|
+
wasm: s().optional(),
|
|
724
|
+
molab: s().optional()
|
|
725
|
+
}).optional(),
|
|
726
|
+
mcp: d({ presets: p(h(["marimo", "context7"])).optional() }).optional().prefault({})
|
|
727
|
+
}).partial().prefault(() => ({
|
|
728
|
+
completion: {},
|
|
729
|
+
save: {},
|
|
730
|
+
formatting: {},
|
|
731
|
+
keymap: {},
|
|
732
|
+
runtime: {},
|
|
733
|
+
display: {},
|
|
734
|
+
diagnostics: {},
|
|
735
|
+
file_browser: {},
|
|
736
|
+
experimental: {},
|
|
737
|
+
server: {},
|
|
738
|
+
ai: {},
|
|
739
|
+
package_management: {},
|
|
740
|
+
mcp: {}
|
|
741
|
+
})), Ke = c(), qe = h(Ve).prefault("auto"), Y = u({
|
|
742
|
+
width: h(Be).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
|
|
743
|
+
app_title: Ke.nullish(),
|
|
744
|
+
css_file: c().nullish(),
|
|
745
|
+
html_head_file: c().nullish(),
|
|
746
|
+
auto_download: p(h(He)).prefault([]),
|
|
747
|
+
sql_output: qe
|
|
748
|
+
}).prefault(() => ({
|
|
749
|
+
width: "medium",
|
|
750
|
+
auto_download: [],
|
|
751
|
+
sql_output: "auto"
|
|
752
|
+
}));
|
|
753
|
+
function Je(e) {
|
|
754
|
+
try {
|
|
755
|
+
return Y.parse(e);
|
|
756
|
+
} catch (e) {
|
|
757
|
+
return r.error(`Marimo got an unexpected value in the configuration file: ${e}`), Y.parse({});
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
function Ye() {
|
|
761
|
+
return Ge.parse({
|
|
762
|
+
completion: {},
|
|
763
|
+
save: {},
|
|
764
|
+
formatting: {},
|
|
765
|
+
keymap: {},
|
|
766
|
+
runtime: {},
|
|
767
|
+
display: {},
|
|
768
|
+
diagnostics: {},
|
|
769
|
+
file_browser: {},
|
|
770
|
+
experimental: {},
|
|
771
|
+
server: {},
|
|
772
|
+
ai: {},
|
|
773
|
+
package_management: {},
|
|
774
|
+
mcp: {}
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
//#endregion
|
|
778
|
+
//#region src/core/config/config.ts
|
|
779
|
+
function Xe(...e) {
|
|
780
|
+
return v({}, ...e, (e, t) => {
|
|
781
|
+
if (Array.isArray(t)) return [...t];
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
var X = R(Ye()), Ze = R({}), Z = R((e) => {
|
|
785
|
+
let t = e(Ze);
|
|
786
|
+
return Xe(e(X), t);
|
|
787
|
+
}), Qe = R((e) => e(Z).runtime.auto_instantiate), $e = R((e) => e(Z).keymap.overrides ?? {}), et = R(i());
|
|
788
|
+
R((e) => {
|
|
789
|
+
let t = e($e), r = e(et);
|
|
790
|
+
return new n(t, { platform: r });
|
|
791
|
+
}), R((e) => e(Z).save), R((e) => e(Z).server.transport === "sse" ? "sse" : "websocket"), R((e) => e(Z).ai), R((e) => e(Z).completion), R((e) => e(Z).keymap.preset);
|
|
792
|
+
function tt() {
|
|
793
|
+
let e = (0, C.c)(3), t = G(Z), n = K(X), r;
|
|
794
|
+
return e[0] !== t || e[1] !== n ? (r = [t, n], e[0] = t, e[1] = n, e[2] = r) : r = e[2], r;
|
|
795
|
+
}
|
|
796
|
+
function nt() {
|
|
797
|
+
return q.get(Z);
|
|
798
|
+
}
|
|
799
|
+
R((e) => ot(e(Z)));
|
|
800
|
+
var rt = R((e) => st(e(Z))), it = R((e) => ct(e(Z)));
|
|
801
|
+
R((e) => e(Z).display.code_editor_font_size);
|
|
802
|
+
var at = R((e) => e(Z).display.locale);
|
|
803
|
+
function ot(e) {
|
|
804
|
+
return e.ai?.enabled !== !1;
|
|
805
|
+
}
|
|
806
|
+
function st(e) {
|
|
807
|
+
return !!e.ai?.models?.chat_model || !!e.ai?.models?.edit_model || !!e.ai?.models?.autocomplete_model;
|
|
808
|
+
}
|
|
809
|
+
function ct(e) {
|
|
810
|
+
return ot(e) && st(e);
|
|
811
|
+
}
|
|
812
|
+
var lt = R(Je({}));
|
|
813
|
+
R((e) => e(lt).width), R((e) => {
|
|
814
|
+
let t = e(Z), n = t.snippets?.custom_paths ?? [], r = t.snippets?.include_default_snippets;
|
|
815
|
+
return n.length > 0 || r === !0;
|
|
816
|
+
}), R((e) => e(Z).server?.disable_file_downloads ?? !1);
|
|
817
|
+
//#endregion
|
|
818
|
+
//#region src/core/constants.ts
|
|
819
|
+
var ut = {
|
|
820
|
+
githubPage: "https://github.com/marimo-team/marimo",
|
|
821
|
+
releasesPage: "https://github.com/marimo-team/marimo/releases",
|
|
822
|
+
issuesPage: "https://github.com/marimo-team/marimo/issues",
|
|
823
|
+
bugReportUrl: "https://github.com/marimo-team/marimo/issues/new?template=bug_report.yaml",
|
|
824
|
+
feedbackForm: "https://marimo.io/feedback",
|
|
825
|
+
discordLink: "https://marimo.io/discord?ref=notebook",
|
|
826
|
+
docsPage: "https://docs.marimo.io",
|
|
827
|
+
youtube: "https://www.youtube.com/@marimo-team",
|
|
828
|
+
molab: "https://molab.marimo.io"
|
|
829
|
+
}, dt = {
|
|
830
|
+
showCode: "show-code",
|
|
831
|
+
includeCode: "include-code",
|
|
832
|
+
sessionId: "session_id",
|
|
833
|
+
kiosk: "kiosk",
|
|
834
|
+
vscode: "vscode",
|
|
835
|
+
filePath: "file",
|
|
836
|
+
accessToken: "access_token",
|
|
837
|
+
viewAs: "view-as",
|
|
838
|
+
showChrome: "show-chrome",
|
|
839
|
+
theme: "theme"
|
|
840
|
+
}, ft = { outputArea: "output-area" }, pt = [
|
|
841
|
+
"light",
|
|
842
|
+
"dark",
|
|
843
|
+
"system"
|
|
844
|
+
];
|
|
845
|
+
function mt() {
|
|
846
|
+
if (typeof window > "u") return;
|
|
847
|
+
let e = new URLSearchParams(window.location.search).get(dt.theme);
|
|
848
|
+
return pt.includes(e) ? e : void 0;
|
|
849
|
+
}
|
|
850
|
+
var ht = R((e) => {
|
|
851
|
+
if (Pe()) {
|
|
852
|
+
if (document.body.classList.contains("dark-mode") || document.body.classList.contains("dark") || document.body.dataset.theme === "dark" || document.body.dataset.mode === "dark" || $() === "dark") return "dark";
|
|
853
|
+
let e = window.getComputedStyle(document.body), t = e.getPropertyValue("color-scheme").trim();
|
|
854
|
+
if (t) return t.includes("dark") ? "dark" : "light";
|
|
855
|
+
let n = e.getPropertyValue("background-color").match(/\d+/g);
|
|
856
|
+
if (n) {
|
|
857
|
+
let [e, t, r] = n.map(Number);
|
|
858
|
+
return (e * 299 + t * 587 + r * 114) / 1e3 < 128 ? "dark" : "light";
|
|
859
|
+
}
|
|
860
|
+
return "light";
|
|
861
|
+
}
|
|
862
|
+
return mt() ?? e(Z).display.theme;
|
|
863
|
+
}), Q = R(!1);
|
|
864
|
+
function gt() {
|
|
865
|
+
if (typeof window > "u" || !window.matchMedia) return;
|
|
866
|
+
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
867
|
+
q.set(Q, e.matches), e.addEventListener("change", (e) => {
|
|
868
|
+
q.set(Q, e.matches);
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
gt();
|
|
872
|
+
function $() {
|
|
873
|
+
switch (document.body.dataset.vscodeThemeKind) {
|
|
874
|
+
case "vscode-dark": return "dark";
|
|
875
|
+
case "vscode-high-contrast": return "dark";
|
|
876
|
+
case "vscode-light": return "light";
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
var _t = R($());
|
|
880
|
+
function vt() {
|
|
881
|
+
let e = new MutationObserver(() => {
|
|
882
|
+
let e = $();
|
|
883
|
+
q.set(_t, e);
|
|
884
|
+
});
|
|
885
|
+
return e.observe(document.body, {
|
|
886
|
+
attributes: !0,
|
|
887
|
+
attributeFilter: ["data-vscode-theme-kind"]
|
|
888
|
+
}), () => e.disconnect();
|
|
889
|
+
}
|
|
890
|
+
vt();
|
|
891
|
+
var yt = R((e) => {
|
|
892
|
+
let t = e(ht), n = e(_t);
|
|
893
|
+
if (n !== void 0) return n;
|
|
894
|
+
let r = e(Q);
|
|
895
|
+
return t === "system" ? r ? "dark" : "light" : t;
|
|
896
|
+
});
|
|
897
|
+
function bt() {
|
|
898
|
+
let e = (0, C.c)(3), t;
|
|
899
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store: q }, e[0] = t) : t = e[0];
|
|
900
|
+
let n = G(yt, t), r;
|
|
901
|
+
return e[1] === n ? r = e[2] : (r = { theme: n }, e[1] = n, e[2] = r), r;
|
|
902
|
+
}
|
|
903
|
+
//#endregion
|
|
904
|
+
export { x as A, G as C, z as D, R as E, D as O, Ne as S, V as T, q as _, dt as a, Pe as b, Qe as c, Xe as d, Z as f, Re as g, Y as h, ut as i, E as k, nt as l, X as m, bt as n, it as o, tt as p, ft as r, rt as s, yt as t, at as u, Ie as v, K as w, Ae as x, Fe as y };
|