@marimo-team/islands 0.25.3-dev2 → 0.25.3-dev200
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-CNSxdKyJ.js → ConnectedDataExplorerComponent-BsWiIPFk.js} +22 -20
- package/dist/{ErrorBoundary-DWEpirf3.js → ErrorBoundary-UWARECs-.js} +19 -19
- package/dist/{abnfDiagram-VCTEODGH-DQDjNXt3.js → abnfDiagram-VCTEODGH-I2x4Yu25.js} +2 -2
- package/dist/any-language-editor-BVFHDDQ3.js +75 -0
- package/dist/{architectureDiagram-5GKGNRK7-Nmls7Wxn.js → architectureDiagram-5GKGNRK7-1bSQMKzK.js} +1 -1
- package/dist/{arrays-CN1djC4k.js → arrays-DoQ-AILx.js} +15 -27
- package/dist/assets/__vite-browser-external-BCJsx8QS.js +1 -0
- package/dist/assets/worker-DodjWT_Z.js +113 -0
- package/dist/{button-CvjkwdSk.js → button-BQRdqQi1.js} +199 -192
- package/dist/{capabilities-CQ5IjhzL.js → capabilities-C2QUNRXi.js} +2 -2
- package/dist/{chat-ui-BDpymeoe.js → chat-ui-DXDoSuS4.js} +667 -667
- package/dist/{check-EDwSwP89.js → check-C9Mp9eCK.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CoIFEo-1.js → chunk-IMKFNOWR-fsCGAJ9G.js} +1 -1
- package/dist/{chunk-SHT3W25Y-lHiGx3ZC.js → chunk-SHT3W25Y-D2STW4hj.js} +1 -1
- package/dist/{chunk-SVP7TREG-BvsHIrY_.js → chunk-SVP7TREG-CiY7cQG-.js} +1 -1
- package/dist/{chunk-TICWLB2K-BC8YIm_n.js → chunk-TICWLB2K-C_t5RBp9.js} +1 -1
- package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-YOKDWASO-DKplTrBY.js} +20 -20
- package/dist/{classDiagram-ZZMXUADV-Bt98lkkv.js → classDiagram-ZZMXUADV-B2JvZAP4.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-D9bfbcC3.js → classDiagram-v2-VYDZK3BY-L8VsZG5A.js} +2 -2
- package/dist/{code-visibility-CLNfgCjd.js → code-visibility-33fxfX1p.js} +45 -49
- package/dist/{common-fyD_6mT2.js → common-D09oJJ8Z.js} +7354 -6884
- package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-De584pZ4.js} +3 -3
- package/dist/{cynefinDiagram-5FMLGOSQ-CgWra7wt.js → cynefinDiagram-5FMLGOSQ-DdllC264.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-CFZ8-35c.js → dagre-GXQ25YYZ-BaWHw4_f.js} +1 -1
- package/dist/{data-grid-overlay-editor-BmqASKep.js → data-grid-overlay-editor-lGsInXfR.js} +5 -5
- package/dist/{data-grid-types-BH_r7g7l.js → data-grid-types-0PJ-9N5n.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-lCNQrW7d.js → diagram-S7CK7UJ4-pFt-tUDe.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CQPQ6pP_.js → diagram-UQ7AKVKN-DqGJiBp4.js} +1 -1
- package/dist/{diagram-VX7I27RA-Cf3b0llz.js → diagram-VX7I27RA-Dr-yzMjf.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Bt4QLrpn.js → diagram-Z3DM3KII-8xzJzv-w.js} +1 -1
- package/dist/{dialog-CEBFZNyc.js → dialog-DVRfQuhD.js} +25 -25
- package/dist/{dist-F8Ep36rk.js → dist-B1M0bGO3.js} +1 -1
- package/dist/{dist-D6d86eNJ.js → dist-BA13RJj5.js} +1 -1
- package/dist/{dist-Bvs24R_E.js → dist-BJtmSgcE.js} +48 -48
- package/dist/{dist-CN_BeG2I.js → dist-Ba2VIn1K.js} +53 -53
- package/dist/{dist-PXYI_yuP.js → dist-Bj4bmwUm.js} +12 -12
- package/dist/{dist-DoE4XJBC.js → dist-BmS-ZGjl.js} +8626 -8626
- package/dist/{dist-BorMD-uX.js → dist-Bzogh7CW.js} +87 -87
- package/dist/{dist-CN8zI-XC.js → dist-CThPVKaP.js} +1385 -1382
- package/dist/{dist-DiDibOYr.js → dist-CTi5FTiV.js} +87 -87
- package/dist/{dist-diIx5qJW.js → dist-Ck_C32ye.js} +2 -2
- package/dist/{dist-BLfKmR-l.js → dist-D1fnFp1J.js} +1 -1
- package/dist/{dist-OR1OnN-y.js → dist-D3x9__Fu.js} +46 -46
- package/dist/{dist-BMQf5zIS.js → dist-D7mrh5sO.js} +36 -36
- package/dist/{dist-CSJ0MDRw.js → dist-D9Q3xjiP.js} +1 -1
- package/dist/{dist-BuaRHxOc.js → dist-DP60Ubh8.js} +2 -2
- package/dist/{dist-CSbh1PNP.js → dist-DTv9KkpW.js} +12 -12
- package/dist/{dist-D-wwqlzJ.js → dist-DVVwOfrD.js} +109 -109
- package/dist/{dist-C8fAKSH1.js → dist-DYXM73-k.js} +36 -36
- package/dist/{dist-DBtSl3sf.js → dist-DjeybPOb.js} +1 -1
- package/dist/{dist-CrSP_H1M.js → dist-DtGn9N4h.js} +197 -197
- package/dist/{dist-CLdpGQVr.js → dist-KN80qWCP.js} +2 -2
- package/dist/{dist-DpBpA_n1.js → dist-Lm-D-Vr6.js} +3 -3
- package/dist/{dist-Cg7gzw-a.js → dist-O0qFpEJh.js} +56 -56
- package/dist/{dist-CkTTIdBe.js → dist-OUle2RT7.js} +207 -207
- package/dist/{dist-BK4Oj99o.js → dist-T5rh6JvL.js} +1 -1
- package/dist/{dropdown-menu-CP_qCYHC.js → dropdown-menu-NlnsmNA6.js} +1481 -1433
- package/dist/{ebnfDiagram-PWID7BFC-D3NAyPFY.js → ebnfDiagram-PWID7BFC-Br04Wy-E.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Tlu09_Nm.js → erDiagram-RLTQ6QDP-D5-XVgvv.js} +1 -1
- package/dist/{error-banner-Da600cwz.js → error-banner-DxJ3s8YO.js} +89 -84
- package/dist/{cells-C8iCYvLU.js → error-entries-C2Ux0Fjt.js} +7970 -8605
- package/dist/{esm-D2gTsXEV.js → esm-Bbw_Njjx.js} +575 -575
- package/dist/{esm-AMFssoNp.js → esm-mDQNEFe_.js} +354 -354
- package/dist/feedback-button-B0CMhVv7.js +374 -0
- package/dist/{flowDiagram-HODETNUW-CAYbpJmV.js → flowDiagram-HODETNUW-CVl2kREF.js} +2 -2
- package/dist/{formats-BGh2thRc.js → formats-BCYthwyc.js} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js} +2 -2
- package/dist/{glide-data-editor-BkjP14aq.js → glide-data-editor-CL535A5q.js} +370 -368
- package/dist/{glide-utils-DJyqh0EM.js → glide-utils-D98laidb.js} +16 -16
- package/dist/{globals-BN2O0F8N.js → globals-Bsr6T2yD.js} +3 -3
- package/dist/{highlighted-body-KPVGNVTW-zwjq21tf.js → highlighted-body-KPVGNVTW-3Ziwfz-V.js} +2 -2
- package/dist/{html-to-image-CZY1pIZH.js → html-to-image-CkH7vdBZ.js} +478 -381
- package/dist/{infoDiagram-27XIBGKW-XrDxhr0x.js → infoDiagram-27XIBGKW-BJ4vNcZE.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-CD1muzov.js → ishikawaDiagram-5VMMS53U-B_Jy1Dsm.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Dg9W142_.js → kanban-definition-UXKFOSKX-C6MkS9vw.js} +1 -1
- package/dist/{label-BDKF3Afc.js → label-Qvw1E97W.js} +3 -3
- package/dist/{linear-Cnaq3Tfb.js → linear-DWERh7eI.js} +121 -73
- package/dist/{loader-BQOfjTIJ.js → loader-DOVB0Syl.js} +12 -12
- package/dist/main.js +9706 -7708
- package/dist/{mermaid-CiAXjLpA.js → mermaid-Bh918qrq.js} +52 -52
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +2 -0
- package/dist/{mindmap-definition-YA3MSWOX-DgCidgYJ.js → mindmap-definition-YA3MSWOX-BP3ZTuir.js} +1 -1
- package/dist/{number-overlay-editor-BEBWJnbL.js → number-overlay-editor-CzbkG4E2.js} +3 -3
- package/dist/{objects-CzUgoMIF.js → objects-DCmMvZtn.js} +1 -3
- package/dist/{once-BtE-wKRL.js → once-NnpX_HnX.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-coOYYKB6.js → pegDiagram-XKGWAZYB-nNGOQtnt.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BnXTc3bj.js → pieDiagram-E7YTZNPT-CpRz5BZz.js} +1 -1
- package/dist/precisionRound-DhAzeRcm.js +49 -0
- package/dist/{process-output-e4jj9Ijt.js → process-output-OujAtFW4.js} +4 -4
- package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-Blrm7V7_.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-B28-u83n.js → railroadDiagram-O6MQD6OU-BqOEN4I0.js} +2 -2
- package/dist/{react-vega-BED0DjiB.js → react-vega-C4T9Rb_w.js} +12284 -12270
- package/dist/{requirementDiagram-BXWQKSXE-CdYCTMu0.js → requirementDiagram-BXWQKSXE-CEfg6vu9.js} +1 -1
- package/dist/{reveal-component-DK69bOki.js → reveal-component-CbEK0sNX.js} +733 -710
- package/dist/{select-BButFi-d.js → select-2KOiReNY.js} +536 -457
- package/dist/{sequenceDiagram-WJ2MYXX4-CM3aRAe_.js → sequenceDiagram-WJ2MYXX4-IOmpQcOi.js} +1 -1
- package/dist/{spec-BwarBpUJ.js → spec-Dkp64vVQ.js} +41 -11
- package/dist/{stateDiagram-D77RDMKH-DOZUMVj8.js → stateDiagram-D77RDMKH-tgU-EY9_.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CISYxma6.js → stateDiagram-v2-MP3YSRHH-BofhG6q1.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BkSppxp8.js → swimlanes-42K2YHIH-DW4vWDBd.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-c8G5pGxC.js → swimlanesDiagram-VR7AAH4N-BJcrqUJr.js} +2 -2
- package/dist/{swiper-component-DKntyn8p.js → swiper-component-BVfnhbnt.js} +2 -2
- package/dist/{time-BieKwdYS.js → time-BaMbJs4z.js} +18 -18
- package/dist/{timeline-definition-24CTP7MA-CaMQayqK.js → timeline-definition-24CTP7MA-D_QU3NGs.js} +1 -1
- package/dist/{toDate-BNJf01u1.js → toDate-BNDEXbfV.js} +77 -74
- package/dist/{toast-B9UMEi8u.js → toast-B5t9o6s_.js} +219 -201
- package/dist/{tooltip-BO1REbqs.js → tooltip-s4zZxwKe.js} +325 -301
- package/dist/{use-restore-focus-BEM7sFWl.js → use-restore-focus-BgDTd2tc.js} +1482 -1433
- package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-ASDni9vH.js} +15 -14
- package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-D3Tkfzej.js} +2 -2
- package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-B1Ogyf53.js} +1 -1
- package/dist/{useIframeCapabilities-DBETvvPl.js → useIframeCapabilities-6a_yDNXp.js} +1 -1
- package/dist/{useLifecycle-j7D9uD1o.js → useLifecycle-Bfpa2m7k.js} +28 -25
- package/dist/{useTheme-CRnjkku0.js → useTheme-5TwyOh3B.js} +522 -314
- package/dist/{vega-component-DG29TAB7.js → vega-component-BHS9UOtC.js} +158 -158
- package/dist/{vega-embed-container-BNHE18G9.js → vega-embed-container--LYZqguO.js} +2 -2
- package/dist/{vega-loader.browser-DNST6uVf.js → vega-loader.browser-B9Pz0EGP.js} +298 -507
- package/dist/{vennDiagram-4TSXK5OY-CF8pfaK3.js → vennDiagram-4TSXK5OY-YFYsNIAh.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-dGPu39d-.js → wardleyDiagram-VM6X3IG4-i_n8mAWC.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CP6-9q56.js → xychartDiagram-S5SC5T6Z-BYGN95wW.js} +2 -2
- package/package.json +16 -16
- package/src/__mocks__/document.tsx +63 -0
- package/src/__mocks__/notebook.ts +3 -4
- package/src/__mocks__/partial.ts +26 -0
- package/src/__mocks__/requests.ts +0 -3
- package/src/__tests__/fixtures/{pair-preview.ts → pair-config.ts} +3 -2
- package/src/__tests__/main.test.tsx +24 -1
- package/src/__tests__/module-entry.test.ts +44 -0
- package/src/__tests__/mount.test.ts +9 -9
- package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +12 -11
- package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
- package/src/components/ai/ai-model-dropdown.tsx +11 -6
- package/src/components/app-config/ai-config.tsx +7 -2
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/app-config/user-config-form.tsx +35 -0
- package/src/components/chat/__tests__/message-queue.test.tsx +17 -0
- package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
- package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/blocks.tsx +3 -2
- package/src/components/chat/acp/session-tabs.tsx +8 -3
- package/src/components/chat/chat-components.tsx +2 -0
- package/src/components/chat/chat-panel.tsx +20 -101
- package/src/components/chat/chat-utils.ts +4 -8
- package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
- package/src/components/chat/notebook-access-selector.tsx +100 -0
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/TableTopBar.tsx +2 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
- package/src/components/data-table/__tests__/column-explorer.test.tsx +27 -1
- package/src/components/data-table/__tests__/columns.test.tsx +105 -0
- package/src/components/data-table/__tests__/context-menu-interaction.test.tsx +130 -0
- package/src/components/data-table/__tests__/context-menu.test.ts +176 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
- package/src/components/data-table/__tests__/date-filter-inputs.test.tsx +24 -1
- package/src/components/data-table/__tests__/date-popover.test.tsx +72 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +434 -6
- package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
- package/src/components/data-table/__tests__/search-highlight.test.tsx +109 -0
- package/src/components/data-table/__tests__/url-detector.test.tsx +74 -0
- package/src/components/data-table/cell-selection/feature.ts +2 -2
- package/src/components/data-table/cell-selection/types.ts +2 -2
- package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +74 -1
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
- package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
- package/src/components/data-table/charts/__tests__/storage.test.ts +4 -1
- package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
- package/src/components/data-table/charts/charts.tsx +40 -30
- package/src/components/data-table/charts/storage.ts +16 -5
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
- package/src/components/data-table/column-summary/column-summary.tsx +2 -4
- package/src/components/data-table/column-visibility-dropdown.tsx +8 -13
- package/src/components/data-table/columns.tsx +45 -46
- package/src/components/data-table/context-menu.tsx +161 -46
- package/src/components/data-table/data-table.tsx +17 -1
- package/src/components/data-table/date-filter-inputs.tsx +15 -42
- package/src/components/data-table/date-popover.tsx +6 -4
- package/src/components/data-table/export-actions.tsx +267 -163
- package/src/components/data-table/pagination.tsx +44 -33
- package/src/components/data-table/range-focus/atoms.ts +4 -6
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
- package/src/components/data-table/renderers.tsx +16 -7
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +4 -4
- package/src/components/data-table/schemas.ts +14 -36
- package/src/components/data-table/search-highlight.tsx +79 -0
- package/src/components/data-table/types.ts +1 -0
- package/src/components/data-table/url-detector.tsx +49 -9
- package/src/components/data-table/utils.ts +18 -0
- package/src/components/datasources/__tests__/column-actions.test.tsx +97 -0
- package/src/components/datasources/__tests__/column-preview.test.tsx +96 -5
- package/src/components/datasources/__tests__/datasources-interactions.test.tsx +181 -0
- package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
- package/src/components/datasources/__tests__/utils.test.ts +57 -6
- package/src/components/datasources/column-preview.tsx +17 -12
- package/src/components/datasources/datasources.tsx +56 -43
- package/src/components/datasources/utils.ts +32 -23
- package/src/components/debugger/debugger-code.tsx +5 -0
- package/src/components/dependency-graph/custom-node.tsx +1 -1
- package/src/components/dependency-graph/dependency-graph-tree.tsx +8 -8
- package/src/components/dependency-graph/elements.ts +24 -21
- package/src/components/dependency-graph/minimap-content.tsx +13 -19
- package/src/components/dependency-graph/panels.tsx +4 -2
- package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
- package/src/components/editor/Output.tsx +9 -2
- package/src/components/editor/SortableCell.tsx +1 -3
- package/src/components/editor/__tests__/Output.test.tsx +50 -32
- package/src/components/editor/__tests__/agent-toast.test.tsx +58 -0
- package/src/components/editor/__tests__/data-attributes.test.tsx +28 -14
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +111 -18
- package/src/components/editor/__tests__/output-persistence.test.tsx +6 -2
- package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +69 -0
- 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 +218 -40
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +2 -6
- package/src/components/editor/actions/name-cell-input.tsx +4 -3
- package/src/components/editor/actions/pair-with-agent-commands.ts +44 -53
- package/src/components/editor/actions/pair-with-agent-modal.tsx +101 -38
- package/src/components/editor/actions/useCellActionButton.tsx +26 -31
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +19 -23
- package/src/components/editor/actions/useRestartKernel.tsx +1 -1
- package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
- package/src/components/editor/actions/useSetOutputsExpanded.ts +14 -19
- package/src/components/editor/agent-toast.ts +15 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +3 -3
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -0
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
- package/src/components/editor/alerts/connection-notice.tsx +1 -1
- package/src/components/editor/alerts/startup-logs-alert.tsx +1 -0
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +1 -1
- package/src/components/editor/cell/CreateCellButton.tsx +15 -21
- package/src/components/editor/cell/DeleteButton.tsx +3 -2
- package/src/components/editor/cell/RunButton.tsx +2 -2
- package/src/components/editor/cell/StagedAICell.tsx +10 -2
- package/src/components/editor/cell/StopButton.tsx +2 -2
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +3 -1
- package/src/components/editor/cell/__tests__/useShouldShowInterrupt.test.ts +39 -0
- package/src/components/editor/cell/cell-actions.tsx +12 -1
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +54 -0
- package/src/components/editor/cell/code/cell-editor.tsx +36 -43
- package/src/components/editor/cell/code/language-toggle.tsx +8 -7
- package/src/components/editor/cell/collapse.tsx +11 -4
- package/src/components/editor/cell/useAddCell.ts +4 -8
- package/src/components/editor/cell/useDeleteCell.tsx +10 -36
- package/src/components/editor/cell/useRunCells.ts +2 -5
- package/src/components/editor/cell/useShouldShowInterrupt.ts +2 -12
- package/src/components/editor/cell/useSplitCell.tsx +10 -6
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +31 -2
- package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
- package/src/components/editor/chrome/panels/cache-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/error-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
- package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
- package/src/components/editor/chrome/panels/packages-panel.tsx +4 -7
- package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
- package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +363 -0
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +92 -0
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +61 -2
- 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-items/backend-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
- package/src/components/editor/chrome/wrapper/footer.tsx +4 -0
- package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +12 -2
- package/src/components/editor/chrome/wrapper/storage.ts +1 -1
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
- package/src/components/editor/columns/cell-column.tsx +1 -1
- package/src/components/editor/columns/sortable-column.tsx +2 -2
- package/src/components/editor/connections/components.tsx +5 -10
- package/src/components/editor/controls/Controls.tsx +4 -4
- package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
- package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
- package/src/components/editor/controls/command-palette.tsx +22 -10
- package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
- package/src/components/editor/documentation.css +34 -11
- package/src/components/editor/dynamic-favicon.tsx +21 -40
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +536 -0
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/errors/send-error-report-button.tsx +66 -0
- package/src/components/editor/file-tree/__tests__/file-explorer-interactions.test.tsx +6 -0
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
- package/src/components/editor/file-tree/__tests__/use-file-search.test.tsx +91 -0
- package/src/components/editor/file-tree/file-explorer.tsx +48 -15
- package/src/components/editor/file-tree/file-name-input.tsx +1 -0
- package/src/components/editor/file-tree/file-viewer.tsx +4 -2
- package/src/components/editor/file-tree/use-file-search.ts +35 -21
- package/src/components/editor/header/__tests__/status.test.tsx +5 -3
- package/src/components/editor/header/app-header.tsx +1 -1
- package/src/components/editor/header/status.tsx +40 -20
- package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/links/cell-link.tsx +17 -7
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
- package/src/components/editor/navigation/__tests__/navigation.test.ts +108 -85
- package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
- package/src/components/editor/navigation/clipboard.ts +17 -14
- package/src/components/editor/navigation/focus-utils.ts +23 -4
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
- package/src/components/editor/navigation/navigation.ts +71 -70
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-banner.tsx +1 -0
- package/src/components/editor/notebook-cell.tsx +29 -31
- package/src/components/editor/output/MarimoErrorOutput.tsx +23 -6
- package/src/components/editor/output/MarimoTracebackOutput.tsx +54 -37
- package/src/components/editor/output/Outputs.css +8 -0
- package/src/components/editor/output/__tests__/ansi-reduce.test.ts +18 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/output/ansi-reduce.ts +36 -17
- package/src/components/editor/output/console/ConsoleOutput.tsx +19 -25
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +125 -69
- package/src/components/editor/package-alert.tsx +14 -7
- package/src/components/editor/renderers/cell-array.tsx +22 -33
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +12 -6
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +4 -4
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +7 -1
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/components/editor/stdin-blocking-alert.tsx +1 -1
- package/src/components/home/components.tsx +17 -31
- package/src/components/icons/__tests__/large-spinner.test.tsx +39 -0
- package/src/components/icons/large-spinner.tsx +3 -14
- package/src/components/icons/spinner.tsx +1 -1
- package/src/components/markdown/markdown-renderer.tsx +4 -8
- package/src/components/mcp/mcp-status-indicator.tsx +1 -1
- package/src/components/pages/__tests__/home-page.test.tsx +116 -0
- package/src/components/pages/edit-page.tsx +19 -17
- package/src/components/pages/home-page.tsx +164 -91
- package/src/components/scratchpad/scratchpad.test.tsx +97 -0
- package/src/components/scratchpad/scratchpad.tsx +20 -11
- package/src/components/slides/__tests__/minimap-actions.test.tsx +22 -29
- package/src/components/slides/__tests__/minimap.test.ts +38 -19
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
- package/src/components/slides/minimap.tsx +17 -12
- package/src/components/slides/reveal-component.tsx +58 -26
- package/src/components/slides/reveal-slides.css +5 -4
- package/src/components/slides/slide-cell-view.tsx +4 -5
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-scroll-hint.tsx +3 -1
- package/src/components/sort/SortableCellsProvider.tsx +8 -25
- package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
- package/src/components/tracing/tracing.tsx +46 -42
- package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
- package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +24 -2
- package/src/components/ui/range-slider.tsx +22 -9
- package/src/core/MarimoApp.tsx +1 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +27 -26
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +8 -12
- package/src/core/ai/context/providers/cell-output.ts +2 -2
- package/src/core/ai/context/providers/datasource.ts +6 -2
- package/src/core/ai/staged-cells.ts +15 -18
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +40 -88
- package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
- package/src/core/ai/tools/base.ts +18 -15
- package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
- package/src/core/ai/tools/registry.ts +13 -10
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +4 -37
- package/src/core/cells/__tests__/actions.test.ts +624 -35
- package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
- package/src/core/cells/__tests__/arrange.test.ts +432 -0
- package/src/core/cells/__tests__/cell.test.ts +39 -0
- package/src/core/cells/__tests__/cells.test.ts +256 -2477
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +54 -0
- package/src/core/cells/__tests__/document.test.ts +341 -0
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/error-report.test.ts +139 -0
- package/src/core/cells/__tests__/flush-document.test.ts +40 -0
- package/src/core/cells/__tests__/harness.ts +106 -0
- package/src/core/cells/__tests__/layout.test.ts +177 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +120 -0
- package/src/core/cells/__tests__/outputs.test.tsx +71 -53
- package/src/core/cells/__tests__/session.test.ts +493 -210
- package/src/core/cells/__tests__/utils.test.ts +9 -108
- package/src/core/cells/__tests__/with-document-save.test.ts +67 -0
- package/src/core/cells/actions.ts +636 -6
- package/src/core/cells/add-missing-import.ts +47 -43
- package/src/core/cells/arrange.ts +529 -0
- package/src/core/cells/cell.ts +14 -3
- package/src/core/cells/cells.ts +120 -1337
- package/src/core/cells/columns.ts +38 -0
- package/src/core/cells/document.ts +289 -0
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/error-report.ts +63 -0
- package/src/core/cells/layout.ts +221 -0
- package/src/core/cells/outputs.ts +12 -28
- package/src/core/cells/pending-delete-service.ts +3 -7
- package/src/core/cells/session.ts +104 -54
- package/src/core/cells/types.ts +22 -6
- package/src/core/cells/utils.ts +10 -8
- package/src/core/codemirror/__tests__/setup.test.ts +29 -29
- package/src/core/codemirror/ai/__tests__/resources.test.ts +117 -0
- package/src/core/codemirror/ai/resources.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +42 -1
- package/src/core/codemirror/cells/extensions.ts +27 -9
- package/src/core/codemirror/cells/state.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +6 -7
- package/src/core/codemirror/copilot/getCodes.ts +2 -2
- package/src/core/codemirror/format.ts +6 -5
- package/src/core/codemirror/keymaps/vim.ts +4 -8
- package/src/core/codemirror/language/__tests__/sql.test.ts +22 -20
- package/src/core/codemirror/language/__tests__/utils.test.ts +187 -15
- package/src/core/codemirror/language/cell-code.ts +114 -0
- package/src/core/codemirror/language/extension.ts +52 -35
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +16 -10
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -24
- package/src/core/codemirror/language/panel/panel.tsx +1 -0
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/language/utils.ts +9 -39
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
- package/src/core/codemirror/lsp/utils.ts +1 -1
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/codemirror/rtc/extension.ts +24 -13
- package/src/core/codemirror/rtc/loro/awareness.ts +34 -19
- package/src/core/codemirror/rtc/loro/sync.ts +1 -0
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +13 -6
- package/src/core/config/config-schema.ts +13 -3
- package/src/core/config/config.ts +26 -12
- package/src/core/config/pair.ts +5 -3
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +5 -5
- package/src/core/datasets/data-source-discovery.ts +4 -6
- package/src/core/documentation/doc-lookup.ts +1 -1
- package/src/core/edit-app.tsx +21 -28
- package/src/core/errors/error-entries.ts +4 -1
- package/src/core/export/hooks.ts +1 -1
- package/src/core/export/layout.ts +2 -2
- package/src/core/hotkeys/actions.ts +2 -4
- package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
- package/src/core/islands/__tests__/bridge.test.ts +72 -25
- package/src/core/islands/bootstrap.ts +46 -53
- package/src/core/islands/bridge.ts +74 -23
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +7 -5
- package/src/core/islands/components/web-components.tsx +1 -1
- package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
- package/src/core/islands/worker/controller.ts +4 -10
- package/src/core/islands/worker/worker.tsx +33 -33
- package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
- package/src/core/kernel/__tests__/handlers.test.ts +7 -153
- package/src/core/kernel/handlers.ts +19 -72
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/network/__tests__/connection.test.ts +1 -1
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -3
- package/src/core/network/connection-notice.ts +1 -1
- package/src/core/network/connection.ts +5 -3
- package/src/core/network/requests-lazy.ts +1 -4
- package/src/core/network/requests-network.ts +0 -25
- package/src/core/network/requests-static.ts +0 -3
- package/src/core/network/requests-toasting.tsx +0 -3
- package/src/core/network/types.ts +0 -12
- package/src/core/network/useConnectionNotice.ts +8 -2
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/attachments.ts +38 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +586 -0
- package/src/core/notebook/document/__tests__/draft.test.ts +363 -0
- package/src/core/notebook/document/__tests__/fixtures.ts +92 -0
- package/src/core/notebook/document/__tests__/hold.test.ts +88 -0
- package/src/core/notebook/document/__tests__/hooks.test.tsx +391 -0
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
- package/src/core/notebook/document/__tests__/model.test.ts +247 -0
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +230 -0
- package/src/core/notebook/document/__tests__/scenario-fixture.ts +43 -0
- package/src/core/notebook/document/__tests__/scenarios.test.ts +205 -0
- package/src/core/notebook/document/__tests__/state.test.ts +459 -0
- package/src/core/notebook/document/__tests__/submission.test.ts +203 -0
- package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
- package/src/core/notebook/document/__tests__/test-host.ts +247 -0
- package/src/core/notebook/document/__tests__/test-notebook.ts +149 -0
- package/src/core/notebook/document/__tests__/user.ts +61 -0
- package/src/core/notebook/document/codemirror.ts +216 -0
- package/src/core/notebook/document/draft.ts +502 -0
- package/src/core/notebook/document/hooks.tsx +118 -0
- package/src/core/notebook/document/index.ts +24 -0
- package/src/core/notebook/document/model.ts +105 -0
- package/src/core/notebook/document/select.ts +41 -0
- package/src/core/notebook/document/state.ts +378 -0
- package/src/core/notebook/document/sync.ts +418 -0
- package/src/core/notebook/index.ts +19 -0
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/notebook/replica/AGENTS.md +11 -0
- package/src/core/notebook/replica/__tests__/attachments.test.ts +56 -0
- package/src/core/notebook/replica/__tests__/document.test.ts +126 -0
- package/src/core/notebook/replica/__tests__/fixtures.ts +79 -0
- package/src/core/notebook/replica/__tests__/replica.test.ts +550 -0
- package/src/core/notebook/replica/backend.ts +19 -0
- package/src/core/{websocket/types.ts → notebook/replica/connection.ts} +10 -15
- package/src/core/notebook/replica/index.ts +13 -0
- package/src/core/notebook/replica/replica.ts +286 -0
- package/src/core/notebook/replica/resources/attachments.ts +22 -0
- package/src/core/notebook/replica/resources/document.ts +101 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
- package/src/core/packages/useSandboxController.ts +1 -1
- package/src/core/run-app.tsx +48 -51
- package/src/core/runtime/__tests__/adapter.test.ts +1 -1
- package/src/core/runtime/__tests__/createWsUrl.test.ts +77 -7
- package/src/core/runtime/__tests__/runtime.test.ts +33 -15
- package/src/core/runtime/adapter.ts +1 -1
- package/src/core/runtime/config.ts +2 -2
- package/src/core/runtime/runtime.ts +39 -30
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
- package/src/core/saving/filename.ts +1 -1
- package/src/core/saving/save-component.tsx +28 -36
- package/src/core/saving/state.ts +38 -39
- package/src/core/saving/useAutoSave.ts +17 -53
- package/src/core/session/__tests__/backend.test.ts +236 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +184 -0
- package/src/core/{websocket/__tests__/useMarimoKernelConnection.hook.test.tsx → session/__tests__/useNotebookSession.hook.test.tsx} +252 -185
- package/src/core/session/active-notebook.ts +22 -0
- package/src/core/session/backend.ts +123 -0
- package/src/core/session/embedded.ts +7 -0
- package/src/core/session/types.ts +17 -0
- package/src/core/session/useNotebookReplica.ts +74 -0
- package/src/core/{websocket/useMarimoKernelConnection.tsx → session/useNotebookSession.tsx} +120 -273
- package/src/core/state/__tests__/jotai.test.tsx +108 -0
- package/src/core/state/jotai.ts +1 -1
- package/src/core/static/__tests__/files.test.ts +38 -10
- package/src/core/static/files.ts +2 -0
- package/src/core/{websocket/__tests__/useMarimoKernelConnection.test.ts → transports/__tests__/connection-state.test.ts} +16 -30
- package/src/core/transports/__tests__/server.test.ts +408 -0
- package/src/core/transports/__tests__/static.test.ts +306 -0
- package/src/core/transports/__tests__/wasm.test.ts +166 -0
- package/src/core/transports/connection-state.ts +63 -0
- package/src/core/transports/server.ts +152 -0
- package/src/core/transports/static.ts +166 -0
- package/src/core/transports/wasm.ts +97 -0
- package/src/core/wasm/__tests__/bridge.test.ts +214 -50
- package/src/core/wasm/__tests__/worker.test.ts +187 -0
- package/src/core/wasm/bridge.ts +75 -69
- package/src/core/wasm/rpc.ts +15 -3
- package/src/core/wasm/store.ts +3 -3
- package/src/core/wasm/worker/bootstrap.ts +55 -51
- package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
- package/src/core/wasm/worker/save-worker.ts +9 -10
- package/src/core/wasm/worker/types.ts +29 -18
- package/src/core/wasm/worker/worker.ts +88 -44
- package/src/css/globals.css +66 -22
- package/src/hooks/__tests__/useAsyncData.test.tsx +148 -0
- package/src/hooks/__tests__/useDebounce.test.tsx +51 -0
- package/src/hooks/__tests__/useDeepCompareMemoize.test.tsx +39 -0
- package/src/hooks/__tests__/useDelayElapsed.test.tsx +28 -0
- package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +20 -0
- package/src/hooks/__tests__/useScript.test.tsx +77 -0
- package/src/hooks/__tests__/useStateForKey.test.tsx +257 -0
- package/src/hooks/useAsyncData.ts +3 -3
- package/src/hooks/useDataSourceDiscovery.ts +6 -4
- package/src/hooks/useDebounce.ts +6 -10
- package/src/hooks/useDeepCompareMemoize.ts +1 -1
- package/src/hooks/useDelayElapsed.ts +14 -10
- package/src/hooks/useElapsedTime.ts +3 -3
- package/src/hooks/useEventListener.ts +1 -2
- package/src/hooks/useInputHistory.ts +4 -7
- package/src/hooks/useInternalStateWithSync.ts +6 -6
- package/src/hooks/useResizeObserver.ts +4 -7
- package/src/hooks/useScript.ts +67 -70
- package/src/hooks/useStateForKey.ts +93 -0
- package/src/mount.tsx +23 -14
- package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
- package/src/plugins/core/registerReactComponent.tsx +1 -1
- package/src/plugins/impl/CodeEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataTablePlugin.tsx +69 -37
- package/src/plugins/impl/DropdownPlugin.tsx +2 -6
- package/src/plugins/impl/FileBrowserPlugin.tsx +4 -16
- package/src/plugins/impl/FormPlugin.tsx +1 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +16 -2
- package/src/plugins/impl/RefreshPlugin.tsx +1 -0
- package/src/plugins/impl/SliderPlugin.tsx +6 -8
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +471 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +24 -3
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +153 -0
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +241 -2
- package/src/plugins/impl/anywidget/model.ts +3 -1
- package/src/plugins/impl/anywidget/registry.ts +18 -14
- package/src/plugins/impl/anywidget/runtime.ts +21 -9
- package/src/plugins/impl/anywidget/widget-binding.ts +160 -82
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +93 -0
- package/src/plugins/impl/chat/chat-ui.tsx +14 -11
- package/src/plugins/impl/code/any-language-editor.tsx +2 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +8 -5
- package/src/plugins/impl/data-editor/glide-utils.ts +3 -1
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
- package/src/plugins/impl/data-explorer/state/reducer.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -2
- package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
- package/src/plugins/impl/data-frames/panel.tsx +43 -16
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +5 -3
- package/src/plugins/impl/panel/PanelPlugin.tsx +16 -17
- package/src/plugins/impl/panel/__tests__/utils.test.ts +39 -1
- package/src/plugins/impl/panel/utils.ts +17 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
- package/src/plugins/impl/plotly/selection.ts +25 -19
- package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
- package/src/plugins/impl/vega/make-selectable.ts +4 -7
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/stories/__tests__/editor-story.test.tsx +33 -0
- package/src/stories/button.stories.tsx +1 -0
- package/src/stories/cell.stories.tsx +2 -5
- package/src/stories/data-table.stories.tsx +31 -0
- package/src/stories/editor.stories.tsx +24 -17
- package/src/stories/form-wrapper.stories.tsx +2 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +2 -5
- package/src/stories/runtime-story.tsx +23 -17
- package/src/stories/select.stories.tsx +2 -2
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/__tests__/arrays.test.ts +35 -0
- package/src/utils/__tests__/batch-requests.test.ts +3 -3
- package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +29 -0
- package/src/utils/__tests__/dates.test.ts +116 -0
- package/src/utils/__tests__/numbers.test.ts +105 -1
- package/src/utils/__tests__/objects.test.ts +21 -0
- package/src/utils/arrays.ts +11 -2
- package/src/utils/blob.ts +1 -1
- package/src/utils/createReducer.ts +53 -26
- package/src/utils/dates.ts +94 -0
- package/src/utils/maps.ts +0 -3
- package/src/utils/numbers.ts +79 -18
- package/src/utils/objects.ts +4 -9
- package/src/utils/once.ts +19 -19
- package/src/utils/tracer.ts +9 -5
- package/src/utils/zod-utils.ts +1 -3
- package/dist/any-language-editor-B9REGlD9.js +0 -76
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
- package/dist/assets/worker-HPY9fbhz.js +0 -114
- package/dist/error-entries-CzoYkIQZ.js +0 -56
- package/dist/feedback-button-fND8YT59.js +0 -380
- package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +0 -2
- package/dist/precisionRound-DMIVQrt2.js +0 -97
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
- package/src/core/ai/tools/run-cells-tool.ts +0 -303
- package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
- package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
- package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
- package/src/core/cells/document-changes.ts +0 -944
- package/src/core/host/AGENTS.md +0 -6
- package/src/core/host/__tests__/protocol.test.ts +0 -214
- package/src/core/host/protocol.ts +0 -1943
- package/src/core/state/__tests__/jotai.test.ts +0 -25
- package/src/core/wasm/worker/message-buffer.ts +0 -33
- package/src/core/websocket/__tests__/useWebSocket.test.ts +0 -49
- package/src/core/websocket/transports/__tests__/basic.test.ts +0 -275
- package/src/core/websocket/transports/__tests__/sse.test.ts +0 -338
- package/src/core/websocket/transports/__tests__/transport.test.ts +0 -308
- package/src/core/websocket/transports/__tests__/ws.test.ts +0 -125
- package/src/core/websocket/transports/basic.ts +0 -102
- package/src/core/websocket/transports/sse.ts +0 -308
- package/src/core/websocket/transports/transport.ts +0 -61
- package/src/core/websocket/transports/ws.ts +0 -98
- package/src/core/websocket/useWebSocket.tsx +0 -88
- package/src/utils/__tests__/id-tree.test.ts +0 -2145
- package/src/utils/id-tree.tsx +0 -1134
- /package/src/core/{websocket → session}/connection-utils.ts +0 -0
|
@@ -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-
|
|
2
|
+
import { a as n, g as r, s as i } from "./button-BQRdqQi1.js";
|
|
3
3
|
import { t as a } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as o } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import {
|
|
5
|
+
import { A as s, C as c, I as l, L as u, N as d, P as f, w as p, y as m, z as h } from "./use-restore-focus-BgDTd2tc.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) {
|
|
@@ -22,94 +22,52 @@ function S() {
|
|
|
22
22
|
throw Error("INVALID_USEEVENT_INVOCATION: the callback from useEvent cannot be invoked before the component has mounted.");
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region ../node_modules/.pnpm/
|
|
26
|
-
var C =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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.3.0_react@19.3.0/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
|
|
25
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/vanilla/internals.mjs
|
|
26
|
+
var C = /* @__PURE__ */ t({
|
|
27
|
+
INTERNAL_addPendingPromiseToDependency: () => A,
|
|
28
|
+
INTERNAL_buildStoreRev3: () => Ce,
|
|
29
|
+
INTERNAL_getBuildingBlocksRev3: () => Se,
|
|
30
|
+
INTERNAL_getMountedOrPendingDependents: () => j,
|
|
31
|
+
INTERNAL_hasInitialValue: () => w,
|
|
32
|
+
INTERNAL_initializeStoreHooksRev3: () => te,
|
|
33
|
+
INTERNAL_isActuallyWritableAtom: () => T,
|
|
34
|
+
INTERNAL_isAtomStateInitialized: () => D,
|
|
35
|
+
INTERNAL_isPromiseLike: () => k,
|
|
36
|
+
INTERNAL_returnAtomValue: () => O,
|
|
37
|
+
INTERNAL_shouldThrowSynchronously: () => ee
|
|
80
38
|
});
|
|
81
|
-
function
|
|
39
|
+
function w(e) {
|
|
82
40
|
return "init" in e;
|
|
83
41
|
}
|
|
84
|
-
function
|
|
42
|
+
function T(e) {
|
|
85
43
|
return typeof e.write == "function";
|
|
86
44
|
}
|
|
87
|
-
function
|
|
45
|
+
function E(e) {
|
|
88
46
|
return !!e.onMount;
|
|
89
47
|
}
|
|
90
|
-
function
|
|
48
|
+
function D(e) {
|
|
91
49
|
return "v" in e || "e" in e;
|
|
92
50
|
}
|
|
93
|
-
function
|
|
51
|
+
function O(e) {
|
|
94
52
|
if ("e" in e) throw e.e;
|
|
95
53
|
return e.v;
|
|
96
54
|
}
|
|
97
|
-
function
|
|
55
|
+
function k(e) {
|
|
98
56
|
return typeof e?.then == "function";
|
|
99
57
|
}
|
|
100
|
-
function
|
|
58
|
+
function ee(e) {
|
|
101
59
|
if (!(e instanceof Error)) return !1;
|
|
102
60
|
let t = e.name, n = e.message.toLowerCase();
|
|
103
61
|
return (t === "RangeError" || t === "InternalError") && (n.includes("call stack") || n.includes("too much recursion") || n.includes("stack overflow"));
|
|
104
62
|
}
|
|
105
|
-
function
|
|
63
|
+
function A(e, t, n) {
|
|
106
64
|
if (!n.p.has(e)) {
|
|
107
65
|
n.p.add(e);
|
|
108
66
|
let r = () => n.p.delete(e);
|
|
109
67
|
t.then(r, r);
|
|
110
68
|
}
|
|
111
69
|
}
|
|
112
|
-
function
|
|
70
|
+
function j(e, t, n) {
|
|
113
71
|
let r = n.get(e)?.t, i = t.p;
|
|
114
72
|
if (!r?.size) return i;
|
|
115
73
|
if (!i.size) return r;
|
|
@@ -117,10 +75,10 @@ function P(e, t, n) {
|
|
|
117
75
|
for (let e of i) a.add(e);
|
|
118
76
|
return a;
|
|
119
77
|
}
|
|
120
|
-
var
|
|
78
|
+
var M = () => {
|
|
121
79
|
let e = /* @__PURE__ */ new Set(), t = () => e.forEach((e) => e());
|
|
122
80
|
return t.add = (t) => (e.add(t), () => e.delete(t)), t;
|
|
123
|
-
},
|
|
81
|
+
}, N = () => {
|
|
124
82
|
let e = {}, t = /* @__PURE__ */ new WeakMap(), n = (n) => {
|
|
125
83
|
var r, i;
|
|
126
84
|
(r = t.get(e)) == null || r.forEach((e) => e(n)), (i = t.get(n)) == null || i.forEach((e) => e());
|
|
@@ -132,13 +90,13 @@ var ne = () => {
|
|
|
132
90
|
};
|
|
133
91
|
}, n;
|
|
134
92
|
};
|
|
135
|
-
function
|
|
136
|
-
return e.i ||=
|
|
93
|
+
function te(e) {
|
|
94
|
+
return e.i ||= N(), e.r ||= N(), e.c ||= N(), e.m ||= N(), e.u ||= N(), e.f ||= M(), e;
|
|
137
95
|
}
|
|
138
|
-
function
|
|
96
|
+
function P(e) {
|
|
139
97
|
return !!e.INTERNAL_onInit;
|
|
140
98
|
}
|
|
141
|
-
var
|
|
99
|
+
var ne = (e, t, n, ...r) => n.read(...r), re = (e, t, n, ...r) => n.write(...r), ie = (e, t, n) => n.INTERNAL_onInit(t), ae = (e, t, n, r) => n.onMount?.call(n, r), oe = (e, t, n) => {
|
|
142
100
|
var r;
|
|
143
101
|
let i = e[0], a = i.get(n);
|
|
144
102
|
if (!a) {
|
|
@@ -147,10 +105,10 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
147
105
|
d: /* @__PURE__ */ new Map(),
|
|
148
106
|
p: /* @__PURE__ */ new Set(),
|
|
149
107
|
n: 0
|
|
150
|
-
}, i.set(n, a), (r = o.i) == null || r.call(o, n),
|
|
108
|
+
}, i.set(n, a), (r = o.i) == null || r.call(o, n), P(n) && s(e, t, n);
|
|
151
109
|
}
|
|
152
110
|
return a;
|
|
153
|
-
},
|
|
111
|
+
}, se = (e, t) => {
|
|
154
112
|
let n = e[1], r = e[3], i = e[4], a = e[5], o = e[6], s = e[13];
|
|
155
113
|
if (!o.f && !r.size && !i.size && !a.size) return;
|
|
156
114
|
let c = [], l = (e) => {
|
|
@@ -176,7 +134,7 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
176
134
|
r.size && s(e, t);
|
|
177
135
|
} while (r.size || a.size || i.size);
|
|
178
136
|
if (c.length) throw AggregateError(c);
|
|
179
|
-
},
|
|
137
|
+
}, ce = (e, t) => {
|
|
180
138
|
let n = e[1], r = e[2], i = e[3], a = e[11], o = e[14], s = e[17];
|
|
181
139
|
if (!i.size) return;
|
|
182
140
|
let c = [], l = [], u = /* @__PURE__ */ new WeakSet(), d = /* @__PURE__ */ new WeakSet(), f = [], p = [];
|
|
@@ -192,7 +150,7 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
192
150
|
continue;
|
|
193
151
|
}
|
|
194
152
|
u.add(o);
|
|
195
|
-
for (let r of
|
|
153
|
+
for (let r of j(o, s, n)) u.has(r) || (f.push(r), p.push(a(e, t, r)));
|
|
196
154
|
}
|
|
197
155
|
for (let n = c.length - 1; n >= 0; --n) {
|
|
198
156
|
let a = c[n], u = l[n], d = !1;
|
|
@@ -202,10 +160,10 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
202
160
|
}
|
|
203
161
|
d && (r.set(a, u.n), o(e, t, a), s(e, t, a)), r.delete(a);
|
|
204
162
|
}
|
|
205
|
-
},
|
|
163
|
+
}, le = (e, t, n) => {
|
|
206
164
|
var r, i;
|
|
207
165
|
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 (
|
|
166
|
+
if (D(y)) {
|
|
209
167
|
if (a.has(n) && o.get(n) !== y.n || y.m === b) return y.m = b, y;
|
|
210
168
|
let r = !1;
|
|
211
169
|
for (let [n, i] of y.d) if (p(e, t, n).n !== i) {
|
|
@@ -216,73 +174,73 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
216
174
|
}
|
|
217
175
|
let x = !0, S = new Set(y.d.keys()), C = () => {
|
|
218
176
|
for (let e of S) y.d.delete(e);
|
|
219
|
-
},
|
|
177
|
+
}, E = () => {
|
|
220
178
|
if (a.has(n)) {
|
|
221
179
|
let r = !s.size;
|
|
222
180
|
h(e, t, n), r && (f(e, t), d(e, t));
|
|
223
181
|
}
|
|
224
|
-
},
|
|
182
|
+
}, j = (r) => {
|
|
225
183
|
var i;
|
|
226
184
|
if (r === n) {
|
|
227
185
|
let n = u(e, t, r);
|
|
228
|
-
if (!
|
|
229
|
-
if (
|
|
186
|
+
if (!D(n)) {
|
|
187
|
+
if (w(r)) g(e, t, r, r.init);
|
|
230
188
|
else throw Error("no atom init");
|
|
231
189
|
}
|
|
232
|
-
return
|
|
190
|
+
return O(n);
|
|
233
191
|
}
|
|
234
192
|
let o = p(e, t, r);
|
|
235
193
|
try {
|
|
236
|
-
return
|
|
194
|
+
return O(o);
|
|
237
195
|
} finally {
|
|
238
|
-
S.delete(r), y.d.set(r, o.n),
|
|
196
|
+
S.delete(r), y.d.set(r, o.n), k(y.v) && A(n, y.v, o), a.has(n) && ((i = a.get(r)) == null || i.t.add(n)), x || E();
|
|
239
197
|
}
|
|
240
|
-
},
|
|
198
|
+
}, M, N, te = {
|
|
241
199
|
get signal() {
|
|
242
|
-
return
|
|
200
|
+
return M ||= new AbortController(), M.signal;
|
|
243
201
|
},
|
|
244
202
|
get setSelf() {
|
|
245
|
-
return !
|
|
203
|
+
return !N && T(n) && (N = (...r) => {
|
|
246
204
|
if (!x) try {
|
|
247
205
|
return m(e, t, n, r);
|
|
248
206
|
} finally {
|
|
249
207
|
f(e, t), d(e, t);
|
|
250
208
|
}
|
|
251
|
-
}),
|
|
209
|
+
}), N;
|
|
252
210
|
}
|
|
253
211
|
}, P = y.n, ne = o.get(n) === P;
|
|
254
212
|
try {
|
|
255
|
-
let i = l(e, t, n,
|
|
256
|
-
if (g(e, t, n, i),
|
|
257
|
-
_(e, t, i, () =>
|
|
213
|
+
let i = l(e, t, n, j, te);
|
|
214
|
+
if (g(e, t, n, i), k(i)) {
|
|
215
|
+
_(e, t, i, () => M?.abort());
|
|
258
216
|
let n = () => {
|
|
259
|
-
C(),
|
|
217
|
+
C(), E();
|
|
260
218
|
};
|
|
261
219
|
i.then(n, n);
|
|
262
220
|
} else C();
|
|
263
221
|
return (r = c.r) == null || r.call(c, n), y.m = b, y;
|
|
264
222
|
} catch (e) {
|
|
265
|
-
if (
|
|
223
|
+
if (ee(e)) throw e;
|
|
266
224
|
return delete y.v, y.e = e, ++y.n, y.m = b, y;
|
|
267
225
|
} finally {
|
|
268
226
|
x = !1, y.n !== P && ne && (o.set(n, y.n), s.add(n), (i = c.c) == null || i.call(c, n));
|
|
269
227
|
}
|
|
270
|
-
},
|
|
228
|
+
}, ue = (e, t, n) => {
|
|
271
229
|
let r = e[1], i = e[2], a = e[11], o = [n];
|
|
272
230
|
for (; o.length;) {
|
|
273
231
|
let n = o.pop(), s = a(e, t, n);
|
|
274
|
-
for (let c of
|
|
232
|
+
for (let c of j(n, s, r)) {
|
|
275
233
|
let n = a(e, t, c);
|
|
276
234
|
i.get(c) !== n.n && (i.set(c, n.n), o.push(c));
|
|
277
235
|
}
|
|
278
236
|
}
|
|
279
|
-
},
|
|
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) =>
|
|
237
|
+
}, de = (e, t, n, r) => {
|
|
238
|
+
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) => O(u(e, t, n)), v = (r, ...o) => {
|
|
281
239
|
var u;
|
|
282
240
|
let _ = s(e, t, r);
|
|
283
241
|
try {
|
|
284
242
|
if (r === n) {
|
|
285
|
-
if (!
|
|
243
|
+
if (!w(r)) throw Error("atom not writable");
|
|
286
244
|
let n = _.n, s = o[0];
|
|
287
245
|
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
246
|
return;
|
|
@@ -297,7 +255,7 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
297
255
|
} finally {
|
|
298
256
|
g = !1;
|
|
299
257
|
}
|
|
300
|
-
},
|
|
258
|
+
}, fe = (e, t, n) => {
|
|
301
259
|
var r;
|
|
302
260
|
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
261
|
if (f && d.d.size > 0) {
|
|
@@ -307,7 +265,7 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
307
265
|
}
|
|
308
266
|
for (let r of f.d) d.d.has(r) || (f.d.delete(r), u(e, t, r)?.t.delete(n));
|
|
309
267
|
}
|
|
310
|
-
},
|
|
268
|
+
}, pe = (e, t, n) => {
|
|
311
269
|
var r;
|
|
312
270
|
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
271
|
if (!h) {
|
|
@@ -317,7 +275,7 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
317
275
|
l: /* @__PURE__ */ new Set(),
|
|
318
276
|
d: new Set(m.d.keys()),
|
|
319
277
|
t: /* @__PURE__ */ new Set()
|
|
320
|
-
}, i.set(n, h),
|
|
278
|
+
}, i.set(n, h), T(n) && E(n) && a.add(() => {
|
|
321
279
|
let r = !0, i = (...i) => {
|
|
322
280
|
try {
|
|
323
281
|
return f(e, t, n, i);
|
|
@@ -341,7 +299,7 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
341
299
|
}), (r = o.m) == null || r.call(o, n);
|
|
342
300
|
}
|
|
343
301
|
return h;
|
|
344
|
-
},
|
|
302
|
+
}, me = (e, t, n) => {
|
|
345
303
|
var r;
|
|
346
304
|
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
305
|
if (!u || u.l.size) return u;
|
|
@@ -357,26 +315,26 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
357
315
|
return;
|
|
358
316
|
}
|
|
359
317
|
return u;
|
|
360
|
-
},
|
|
318
|
+
}, he = (e, t, n, r) => {
|
|
361
319
|
let i = e[11], a = e[27], o = i(e, t, n), s = "v" in o, c = o.v;
|
|
362
|
-
if (
|
|
363
|
-
o.v = r, delete o.e, (!s || !Object.is(c, o.v)) && (++o.n,
|
|
364
|
-
},
|
|
320
|
+
if (k(r)) for (let a of o.d.keys()) A(n, r, i(e, t, a));
|
|
321
|
+
o.v = r, delete o.e, (!s || !Object.is(c, o.v)) && (++o.n, k(c) && a(e, t, c));
|
|
322
|
+
}, ge = (e, t, n) => {
|
|
365
323
|
let r = e[14];
|
|
366
|
-
return
|
|
367
|
-
},
|
|
324
|
+
return O(r(e, t, n));
|
|
325
|
+
}, _e = (e, t, n, ...r) => {
|
|
368
326
|
let i = e[3], a = e[12], o = e[13], s = e[16], c = i.size;
|
|
369
327
|
try {
|
|
370
328
|
return s(e, t, n, r);
|
|
371
329
|
} finally {
|
|
372
330
|
i.size !== c && (o(e, t), a(e, t));
|
|
373
331
|
}
|
|
374
|
-
},
|
|
332
|
+
}, ve = (e, t, n, r) => {
|
|
375
333
|
let i = e[12], a = e[13], o = e[18], s = e[19], c = o(e, t, n).l;
|
|
376
334
|
return c.add(r), a(e, t), i(e, t), () => {
|
|
377
335
|
c.delete(r), s(e, t, n), a(e, t), i(e, t);
|
|
378
336
|
};
|
|
379
|
-
},
|
|
337
|
+
}, ye = (e, t, n, r) => {
|
|
380
338
|
let i = e[25], a = i.get(n);
|
|
381
339
|
if (!a) {
|
|
382
340
|
a = /* @__PURE__ */ new Set(), i.set(n, a);
|
|
@@ -384,14 +342,14 @@ var ae = (e, t, n, ...r) => n.read(...r), oe = (e, t, n, ...r) => n.write(...r),
|
|
|
384
342
|
n.then(e, e);
|
|
385
343
|
}
|
|
386
344
|
a.add(r);
|
|
387
|
-
},
|
|
345
|
+
}, be = (e, t, n) => {
|
|
388
346
|
e[25].get(n)?.forEach((e) => e());
|
|
389
|
-
},
|
|
390
|
-
function
|
|
391
|
-
let t =
|
|
347
|
+
}, xe = /* @__PURE__ */ new WeakMap();
|
|
348
|
+
function Se(e) {
|
|
349
|
+
let t = xe.get(e), n = t[24];
|
|
392
350
|
return n ? n(t, e) : t;
|
|
393
351
|
}
|
|
394
|
-
function
|
|
352
|
+
function Ce(...e) {
|
|
395
353
|
let t = {
|
|
396
354
|
get(e) {
|
|
397
355
|
return r(n, t, e);
|
|
@@ -410,6 +368,9 @@ function we(...e) {
|
|
|
410
368
|
/* @__PURE__ */ new Set(),
|
|
411
369
|
/* @__PURE__ */ new Set(),
|
|
412
370
|
{},
|
|
371
|
+
ne,
|
|
372
|
+
re,
|
|
373
|
+
ie,
|
|
413
374
|
ae,
|
|
414
375
|
oe,
|
|
415
376
|
se,
|
|
@@ -424,64 +385,61 @@ function we(...e) {
|
|
|
424
385
|
ge,
|
|
425
386
|
_e,
|
|
426
387
|
ve,
|
|
427
|
-
ye,
|
|
428
|
-
be,
|
|
429
|
-
xe,
|
|
430
388
|
void 0,
|
|
431
389
|
/* @__PURE__ */ new WeakMap(),
|
|
432
|
-
|
|
433
|
-
|
|
390
|
+
ye,
|
|
391
|
+
be,
|
|
434
392
|
[0]
|
|
435
393
|
].map((t, n) => e[n] || t);
|
|
436
|
-
|
|
394
|
+
xe.set(t, Object.freeze(n));
|
|
437
395
|
let r = n[21], i = n[22], a = n[23];
|
|
438
396
|
return t;
|
|
439
397
|
}
|
|
440
398
|
//#endregion
|
|
441
|
-
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.
|
|
442
|
-
var
|
|
443
|
-
function
|
|
444
|
-
let n = `atom${++
|
|
399
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/vanilla.mjs
|
|
400
|
+
var we = 0;
|
|
401
|
+
function F(e, t) {
|
|
402
|
+
let n = `atom${++we}`, r = { toString() {
|
|
445
403
|
return n;
|
|
446
404
|
} };
|
|
447
|
-
return typeof e == "function" ? r.read = e : (r.init = e, r.read =
|
|
405
|
+
return typeof e == "function" ? r.read = e : (r.init = e, r.read = Te, r.write = Ee), t && (r.write = t), r;
|
|
448
406
|
}
|
|
449
|
-
function
|
|
407
|
+
function Te(e) {
|
|
450
408
|
return e(this);
|
|
451
409
|
}
|
|
452
|
-
function
|
|
410
|
+
function Ee(e, t, n) {
|
|
453
411
|
return t(this, typeof n == "function" ? n(e(this)) : n);
|
|
454
412
|
}
|
|
455
|
-
function
|
|
456
|
-
return
|
|
413
|
+
function I() {
|
|
414
|
+
return Ce();
|
|
457
415
|
}
|
|
458
|
-
var
|
|
459
|
-
function
|
|
460
|
-
return
|
|
416
|
+
var De;
|
|
417
|
+
function Oe() {
|
|
418
|
+
return De ||= I(), De;
|
|
461
419
|
}
|
|
462
420
|
//#endregion
|
|
463
|
-
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.
|
|
464
|
-
var
|
|
465
|
-
function
|
|
466
|
-
let t = (0, y.useContext)(
|
|
467
|
-
return e?.store || t ||
|
|
421
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/react.mjs
|
|
422
|
+
var L = (0, y.createContext)(void 0);
|
|
423
|
+
function R(e) {
|
|
424
|
+
let t = (0, y.useContext)(L);
|
|
425
|
+
return e?.store || t || Oe();
|
|
468
426
|
}
|
|
469
|
-
function
|
|
427
|
+
function ke({ children: e, store: t }) {
|
|
470
428
|
let n = (0, y.useRef)(null);
|
|
471
|
-
return t ? (0, y.createElement)(
|
|
429
|
+
return t ? (0, y.createElement)(L.Provider, { value: t }, e) : (n.current === null && (n.current = I()), (0, y.createElement)(L.Provider, { value: n.current }, e));
|
|
472
430
|
}
|
|
473
|
-
var
|
|
431
|
+
var z = (e) => typeof e?.then == "function", B = (e) => {
|
|
474
432
|
e.status || (e.status = "pending", e.then((t) => {
|
|
475
433
|
e.status = "fulfilled", e.value = t;
|
|
476
434
|
}, (t) => {
|
|
477
435
|
e.status = "rejected", e.reason = t;
|
|
478
436
|
}));
|
|
479
|
-
},
|
|
437
|
+
}, Ae = y.use || ((e) => {
|
|
480
438
|
if (e.status === "pending") throw e;
|
|
481
439
|
if (e.status === "fulfilled") return e.value;
|
|
482
|
-
throw e.status === "rejected" ? e.reason : (
|
|
483
|
-
}),
|
|
484
|
-
let r =
|
|
440
|
+
throw e.status === "rejected" ? e.reason : (B(e), e);
|
|
441
|
+
}), V = /* @__PURE__ */ new WeakMap(), je = (e, t, n) => {
|
|
442
|
+
let r = Se(e), i = r[26], a = V.get(t);
|
|
485
443
|
return a || (a = new Promise((o, s) => {
|
|
486
444
|
let c = t, l = (e) => (t) => {
|
|
487
445
|
c === e && o(t);
|
|
@@ -490,16 +448,16 @@ var H = (e) => typeof e?.then == "function", U = (e) => {
|
|
|
490
448
|
}, d = () => {
|
|
491
449
|
try {
|
|
492
450
|
let t = n();
|
|
493
|
-
|
|
451
|
+
z(t) ? (V.set(t, a), c = t, t.then(l(t), u(t)), i(r, e, t, d)) : o(t);
|
|
494
452
|
} catch (e) {
|
|
495
453
|
s(e);
|
|
496
454
|
}
|
|
497
455
|
};
|
|
498
456
|
t.then(l(t), u(t)), i(r, e, t, d);
|
|
499
|
-
}),
|
|
457
|
+
}), V.set(t, a)), a;
|
|
500
458
|
};
|
|
501
|
-
function
|
|
502
|
-
let { delay: n, unstable_promiseStatus: r = !y.use } = t || {}, i =
|
|
459
|
+
function H(e, t) {
|
|
460
|
+
let { delay: n, unstable_promiseStatus: r = !y.use } = t || {}, i = R(t), [[a, o, s], c] = (0, y.useReducer)((t) => {
|
|
503
461
|
let n = i.get(e);
|
|
504
462
|
return Object.is(t[0], n) && t[1] === i && t[2] === e ? t : [
|
|
505
463
|
n,
|
|
@@ -515,7 +473,7 @@ function G(e, t) {
|
|
|
515
473
|
let t = i.sub(e, () => {
|
|
516
474
|
if (r) try {
|
|
517
475
|
let t = i.get(e);
|
|
518
|
-
|
|
476
|
+
z(t) && B(je(i, t, () => i.get(e)));
|
|
519
477
|
} catch {}
|
|
520
478
|
if (typeof n == "number") {
|
|
521
479
|
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);
|
|
@@ -529,28 +487,267 @@ function G(e, t) {
|
|
|
529
487
|
e,
|
|
530
488
|
n,
|
|
531
489
|
r
|
|
532
|
-
]), (0, y.useDebugValue)(l),
|
|
533
|
-
let t =
|
|
534
|
-
return r &&
|
|
490
|
+
]), (0, y.useDebugValue)(l), z(l)) {
|
|
491
|
+
let t = je(i, l, () => i.get(e));
|
|
492
|
+
return r && B(t), Ae(t);
|
|
535
493
|
}
|
|
536
494
|
return l;
|
|
537
495
|
}
|
|
538
|
-
function
|
|
539
|
-
let n =
|
|
496
|
+
function U(e, t) {
|
|
497
|
+
let n = R(t);
|
|
540
498
|
return (0, y.useCallback)((...t) => n.set(e, ...t), [n, e]);
|
|
541
499
|
}
|
|
542
|
-
function
|
|
543
|
-
return [
|
|
500
|
+
function Me(e, t) {
|
|
501
|
+
return [H(e, t), U(e, t)];
|
|
544
502
|
}
|
|
545
503
|
//#endregion
|
|
546
|
-
//#region
|
|
547
|
-
|
|
548
|
-
|
|
504
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/vanilla/utils.mjs
|
|
505
|
+
var W = o(), Ne = /* @__PURE__ */ Symbol("");
|
|
506
|
+
function Pe(e, t) {
|
|
507
|
+
return F(e, function(e, n, r) {
|
|
508
|
+
n(this, t(e(this), r));
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
function Fe(e, t) {
|
|
512
|
+
let n = null, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), a = (i) => {
|
|
513
|
+
let s;
|
|
514
|
+
if (t === void 0) s = r.get(i);
|
|
515
|
+
else for (let [e, n] of r) if (t(e, i)) {
|
|
516
|
+
s = n;
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
if (s !== void 0) {
|
|
520
|
+
if (n?.(s[1], i)) a.remove(i);
|
|
521
|
+
else return s[0];
|
|
522
|
+
}
|
|
523
|
+
let c = e(i);
|
|
524
|
+
return r.set(i, [c, Date.now()]), o("CREATE", i, c), c;
|
|
525
|
+
}, o = (e, t, n) => {
|
|
526
|
+
for (let r of i) r({
|
|
527
|
+
type: e,
|
|
528
|
+
param: t,
|
|
529
|
+
atom: n
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
return a.unstable_listen = (e) => (i.add(e), () => {
|
|
533
|
+
i.delete(e);
|
|
534
|
+
}), a.getParams = () => r.keys(), a.remove = (e) => {
|
|
535
|
+
if (t === void 0) {
|
|
536
|
+
if (!r.has(e)) return;
|
|
537
|
+
let [t] = r.get(e);
|
|
538
|
+
r.delete(e), o("REMOVE", e, t);
|
|
539
|
+
} else for (let [n, [i]] of r) if (t(n, e)) {
|
|
540
|
+
r.delete(n), o("REMOVE", n, i);
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
}, a.setShouldRemove = (e) => {
|
|
544
|
+
if (n = e, n) for (let [e, [t, i]] of r) n(i, e) && (r.delete(e), o("REMOVE", e, t));
|
|
545
|
+
}, a;
|
|
546
|
+
}
|
|
547
|
+
var G = (e, t, n) => (t.has(n) ? t : t.set(n, e())).get(n), Ie = /* @__PURE__ */ new WeakMap(), Le = (e, t, n, r) => G(e, G(() => /* @__PURE__ */ new WeakMap(), G(() => /* @__PURE__ */ new WeakMap(), Ie, t), n), r);
|
|
548
|
+
function Re(e, t, n = Object.is) {
|
|
549
|
+
return Le(() => {
|
|
550
|
+
let r = /* @__PURE__ */ Symbol(), i = ([e, i]) => {
|
|
551
|
+
if (i === r) return t(e);
|
|
552
|
+
let a = t(e, i);
|
|
553
|
+
return n(i, a) ? i : a;
|
|
554
|
+
}, a = F((t) => {
|
|
555
|
+
let n = t(a), r = t(e);
|
|
556
|
+
return i([r, n]);
|
|
557
|
+
});
|
|
558
|
+
return a.init = r, a;
|
|
559
|
+
}, e, t, n);
|
|
560
|
+
}
|
|
561
|
+
var ze = (e, t, n) => (t.has(n) ? t : t.set(n, e())).get(n), Be = /* @__PURE__ */ new WeakMap(), Ve = (e, t, n) => ze(e, ze(() => /* @__PURE__ */ new WeakMap(), Be, t), n), He = {}, Ue = (e) => !!e.write, We = (e) => typeof e == "function";
|
|
562
|
+
function Ge(e, t) {
|
|
563
|
+
return Ve(() => {
|
|
564
|
+
let n = /* @__PURE__ */ new WeakMap(), r = (a, o) => {
|
|
565
|
+
let s = n.get(a);
|
|
566
|
+
if (s) return s;
|
|
567
|
+
let c = o && n.get(o), l = [], u = [];
|
|
568
|
+
return a.forEach((n, o) => {
|
|
569
|
+
let s = t ? t(n) : o;
|
|
570
|
+
u[o] = s;
|
|
571
|
+
let d = c && c.atomList[c.keyList.indexOf(s)];
|
|
572
|
+
if (d) {
|
|
573
|
+
l[o] = d;
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
let f = (t) => {
|
|
577
|
+
let n = t(i), o = t(e), c = r(o, n?.arr).keyList.indexOf(s);
|
|
578
|
+
if (c < 0 || c >= o.length) {
|
|
579
|
+
let e = a[r(a).keyList.indexOf(s)];
|
|
580
|
+
if (e) return e;
|
|
581
|
+
throw Error("splitAtom: index out of bounds for read");
|
|
582
|
+
}
|
|
583
|
+
return o[c];
|
|
584
|
+
};
|
|
585
|
+
l[o] = Ue(e) ? F(f, (t, n, a) => {
|
|
586
|
+
let o = t(i), c = t(e), l = r(c, o?.arr).keyList.indexOf(s);
|
|
587
|
+
if (l < 0 || l >= c.length) throw Error("splitAtom: index out of bounds for write");
|
|
588
|
+
let u = We(a) ? a(c[l]) : a;
|
|
589
|
+
Object.is(c[l], u) || n(e, [
|
|
590
|
+
...c.slice(0, l),
|
|
591
|
+
u,
|
|
592
|
+
...c.slice(l + 1)
|
|
593
|
+
]);
|
|
594
|
+
}) : F(f);
|
|
595
|
+
}), s = c && c.keyList.length === u.length && c.keyList.every((e, t) => e === u[t]) ? c : {
|
|
596
|
+
arr: a,
|
|
597
|
+
atomList: l,
|
|
598
|
+
keyList: u
|
|
599
|
+
}, n.set(a, s), s;
|
|
600
|
+
}, i = F((t) => {
|
|
601
|
+
let n = t(i), a = t(e);
|
|
602
|
+
return r(a, n?.arr);
|
|
603
|
+
});
|
|
604
|
+
i.init = void 0;
|
|
605
|
+
let a = Ue(e) ? F((e) => e(i).atomList, (t, n, r) => {
|
|
606
|
+
switch (r.type) {
|
|
607
|
+
case "remove": {
|
|
608
|
+
let i = t(a).indexOf(r.atom);
|
|
609
|
+
if (i >= 0) {
|
|
610
|
+
let r = t(e);
|
|
611
|
+
n(e, [...r.slice(0, i), ...r.slice(i + 1)]);
|
|
612
|
+
}
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
case "insert": {
|
|
616
|
+
let i = r.before ? t(a).indexOf(r.before) : t(a).length;
|
|
617
|
+
if (i >= 0) {
|
|
618
|
+
let a = t(e);
|
|
619
|
+
n(e, [
|
|
620
|
+
...a.slice(0, i),
|
|
621
|
+
r.value,
|
|
622
|
+
...a.slice(i)
|
|
623
|
+
]);
|
|
624
|
+
}
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
case "move": {
|
|
628
|
+
let i = t(a).indexOf(r.atom), o = r.before ? t(a).indexOf(r.before) : t(a).length;
|
|
629
|
+
if (i >= 0 && o >= 0) {
|
|
630
|
+
let r = t(e);
|
|
631
|
+
i < o ? n(e, [
|
|
632
|
+
...r.slice(0, i),
|
|
633
|
+
...r.slice(i + 1, o),
|
|
634
|
+
r[i],
|
|
635
|
+
...r.slice(o)
|
|
636
|
+
]) : n(e, [
|
|
637
|
+
...r.slice(0, o),
|
|
638
|
+
r[i],
|
|
639
|
+
...r.slice(o, i),
|
|
640
|
+
...r.slice(i + 1)
|
|
641
|
+
]);
|
|
642
|
+
}
|
|
643
|
+
break;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}) : F((e) => e(i).atomList);
|
|
647
|
+
return a;
|
|
648
|
+
}, e, t || He);
|
|
649
|
+
}
|
|
650
|
+
var Ke = (e) => typeof e?.then == "function";
|
|
651
|
+
function qe(e = () => {
|
|
652
|
+
try {
|
|
653
|
+
return window.localStorage;
|
|
654
|
+
} catch {
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
}, t) {
|
|
658
|
+
let n, r, i = {
|
|
659
|
+
getItem: (i, a) => {
|
|
660
|
+
let o = (e) => {
|
|
661
|
+
if (e ||= "", n !== e) {
|
|
662
|
+
try {
|
|
663
|
+
r = JSON.parse(e, t?.reviver);
|
|
664
|
+
} catch {
|
|
665
|
+
return a;
|
|
666
|
+
}
|
|
667
|
+
n = e;
|
|
668
|
+
}
|
|
669
|
+
return r;
|
|
670
|
+
}, s = e()?.getItem(i) ?? null;
|
|
671
|
+
return Ke(s) ? s.then(o) : o(s);
|
|
672
|
+
},
|
|
673
|
+
setItem: (n, r) => e()?.setItem(n, JSON.stringify(r, t?.replacer)),
|
|
674
|
+
removeItem: (t) => e()?.removeItem(t)
|
|
675
|
+
}, a = (e) => (n, r, i) => e(n, (e) => {
|
|
676
|
+
let n;
|
|
677
|
+
try {
|
|
678
|
+
n = JSON.parse(e || "", t?.reviver);
|
|
679
|
+
} catch {
|
|
680
|
+
n = i;
|
|
681
|
+
}
|
|
682
|
+
r(n);
|
|
683
|
+
}), o;
|
|
684
|
+
try {
|
|
685
|
+
o = e()?.subscribe;
|
|
686
|
+
} catch {}
|
|
687
|
+
return !o && typeof window < "u" && typeof window.addEventListener == "function" && window.Storage && (o = (t, n) => {
|
|
688
|
+
if (!(e() instanceof window.Storage)) return () => {};
|
|
689
|
+
let r = (r) => {
|
|
690
|
+
r.storageArea === e() && r.key === t && n(r.newValue);
|
|
691
|
+
};
|
|
692
|
+
return window.addEventListener("storage", r), () => {
|
|
693
|
+
window.removeEventListener("storage", r);
|
|
694
|
+
};
|
|
695
|
+
}), o && (i.subscribe = a(o)), i;
|
|
696
|
+
}
|
|
697
|
+
var Je = qe();
|
|
698
|
+
function Ye(e, t, n = Je, r) {
|
|
699
|
+
let i = r?.getOnInit, a = F(i ? n.getItem(e, t) : t);
|
|
700
|
+
return a.onMount = (r) => (r(n.getItem(e, t)), n.subscribe?.call(n, e, r, t)), F((e) => e(a), (r, i, o) => {
|
|
701
|
+
let s = typeof o == "function" ? o(r(a)) : o;
|
|
702
|
+
return s === Ne ? (i(a, t), n.removeItem(e)) : Ke(s) ? s.then((t) => (i(a, t), n.setItem(e, t))) : (i(a, s), n.setItem(e, s));
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
//#endregion
|
|
706
|
+
//#region ../node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.mjs
|
|
707
|
+
var Xe = Object.prototype.hasOwnProperty;
|
|
708
|
+
function Ze(e, t, n) {
|
|
709
|
+
for (n of e.keys()) if (K(n, t)) return n;
|
|
710
|
+
}
|
|
711
|
+
function K(e, t) {
|
|
712
|
+
var n, r, i;
|
|
713
|
+
if (e === t) return !0;
|
|
714
|
+
if (e && t && (n = e.constructor) === t.constructor) {
|
|
715
|
+
if (n === Date) return e.getTime() === t.getTime();
|
|
716
|
+
if (n === RegExp) return e.toString() === t.toString();
|
|
717
|
+
if (n === Array) {
|
|
718
|
+
if ((r = e.length) === t.length) for (; r-- && K(e[r], t[r]););
|
|
719
|
+
return r === -1;
|
|
720
|
+
}
|
|
721
|
+
if (n === Set) {
|
|
722
|
+
if (e.size !== t.size) return !1;
|
|
723
|
+
for (r of e) if (i = r, i && typeof i == "object" && (i = Ze(t, i), !i) || !t.has(i)) return !1;
|
|
724
|
+
return !0;
|
|
725
|
+
}
|
|
726
|
+
if (n === Map) {
|
|
727
|
+
if (e.size !== t.size) return !1;
|
|
728
|
+
for (r of e) if (i = r[0], i && typeof i == "object" && (i = Ze(t, i), !i) || !K(r[1], t.get(i))) return !1;
|
|
729
|
+
return !0;
|
|
730
|
+
}
|
|
731
|
+
if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
|
|
732
|
+
else if (n === DataView) {
|
|
733
|
+
if ((r = e.byteLength) === t.byteLength) for (; r-- && e.getInt8(r) === t.getInt8(r););
|
|
734
|
+
return r === -1;
|
|
735
|
+
}
|
|
736
|
+
if (ArrayBuffer.isView(e)) {
|
|
737
|
+
if ((r = e.byteLength) === t.byteLength) for (; r-- && e[r] === t[r];);
|
|
738
|
+
return r === -1;
|
|
739
|
+
}
|
|
740
|
+
if (!n || typeof e == "object") {
|
|
741
|
+
for (n in r = 0, e) if (Xe.call(e, n) && ++r && !Xe.call(t, n) || !(n in t) || !K(e[n], t[n])) return !1;
|
|
742
|
+
return Object.keys(t).length === r;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return e !== e && t !== t;
|
|
549
746
|
}
|
|
550
747
|
//#endregion
|
|
551
748
|
//#region src/core/state/jotai.ts
|
|
552
|
-
var q =
|
|
553
|
-
async function
|
|
749
|
+
var q = I();
|
|
750
|
+
async function Qe(e, t) {
|
|
554
751
|
return t(q.get(e)) ? q.get(e) : new Promise((n) => {
|
|
555
752
|
let r = q.sub(e, () => {
|
|
556
753
|
let i = q.get(e);
|
|
@@ -558,11 +755,11 @@ async function Fe(e, t) {
|
|
|
558
755
|
});
|
|
559
756
|
});
|
|
560
757
|
}
|
|
561
|
-
function
|
|
562
|
-
let n = (0,
|
|
758
|
+
function $e(e, t) {
|
|
759
|
+
let n = (0, W.c)(5), r = R(), i, a;
|
|
563
760
|
n[0] !== e || n[1] !== t || n[2] !== r ? (i = () => {
|
|
564
761
|
let n = r.get(e);
|
|
565
|
-
r.sub(e, () => {
|
|
762
|
+
return r.sub(e, () => {
|
|
566
763
|
let i = r.get(e);
|
|
567
764
|
t(i, n), n = i;
|
|
568
765
|
});
|
|
@@ -572,114 +769,120 @@ function Ie(e, t) {
|
|
|
572
769
|
r
|
|
573
770
|
], 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
771
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
577
|
-
let n =
|
|
578
|
-
return
|
|
772
|
+
var et = Symbol("sentinel");
|
|
773
|
+
function tt(e, t = K) {
|
|
774
|
+
let n = et;
|
|
775
|
+
return F((r) => {
|
|
579
776
|
let i = r(e);
|
|
580
|
-
return (n ===
|
|
777
|
+
return (n === et || !t(n, i)) && (n = i), n;
|
|
581
778
|
});
|
|
582
779
|
}
|
|
583
780
|
//#endregion
|
|
584
|
-
//#region src/core/
|
|
585
|
-
var
|
|
781
|
+
//#region src/core/session/active-notebook.ts
|
|
782
|
+
var nt = F(null), rt = F(null), it = F((e) => {
|
|
783
|
+
let t = e(nt);
|
|
784
|
+
return t === null ? null : e(t.documentAtom);
|
|
785
|
+
}), at = [
|
|
586
786
|
"pip",
|
|
587
787
|
"uv",
|
|
588
788
|
"rye",
|
|
589
789
|
"poetry",
|
|
590
790
|
"pixi"
|
|
591
|
-
],
|
|
791
|
+
], ot = [
|
|
592
792
|
"normal",
|
|
593
793
|
"compact",
|
|
594
794
|
"medium",
|
|
595
795
|
"full",
|
|
596
796
|
"columns"
|
|
597
|
-
],
|
|
797
|
+
], st = [
|
|
598
798
|
"auto",
|
|
599
799
|
"native",
|
|
600
800
|
"polars",
|
|
601
801
|
"lazy-polars",
|
|
602
802
|
"pandas"
|
|
603
|
-
],
|
|
803
|
+
], ct = [
|
|
604
804
|
"html",
|
|
605
805
|
"markdown",
|
|
606
806
|
"ipynb"
|
|
607
|
-
],
|
|
807
|
+
], lt = ["off", "jedi"], ut = [
|
|
608
808
|
"manual",
|
|
609
809
|
"ask",
|
|
610
810
|
"agent",
|
|
611
811
|
"code_mode"
|
|
612
|
-
], J =
|
|
613
|
-
api_key:
|
|
614
|
-
base_url:
|
|
615
|
-
project:
|
|
616
|
-
}).loose(),
|
|
617
|
-
chat_model:
|
|
618
|
-
edit_model:
|
|
619
|
-
autocomplete_model:
|
|
620
|
-
displayed_models:
|
|
621
|
-
custom_models:
|
|
622
|
-
}),
|
|
623
|
-
completion:
|
|
624
|
-
activate_on_typing:
|
|
625
|
-
signature_hint_on_typing:
|
|
626
|
-
auto_close_pairs:
|
|
627
|
-
copilot:
|
|
812
|
+
], J = f({
|
|
813
|
+
api_key: u().optional(),
|
|
814
|
+
base_url: u().optional(),
|
|
815
|
+
project: u().optional()
|
|
816
|
+
}).loose(), dt = f({
|
|
817
|
+
chat_model: u().nullish(),
|
|
818
|
+
edit_model: u().nullish(),
|
|
819
|
+
autocomplete_model: u().nullish(),
|
|
820
|
+
displayed_models: c(u()).default([]),
|
|
821
|
+
custom_models: c(u()).default([])
|
|
822
|
+
}), ft = s({
|
|
823
|
+
completion: f({
|
|
824
|
+
activate_on_typing: p().prefault(!0),
|
|
825
|
+
signature_hint_on_typing: p().prefault(!1),
|
|
826
|
+
auto_close_pairs: p().prefault(!0),
|
|
827
|
+
copilot: h([p(), m([
|
|
628
828
|
"github",
|
|
629
829
|
"codeium",
|
|
630
830
|
"custom"
|
|
631
831
|
])]).prefault(!1).transform((e) => e === !0 ? "github" : e),
|
|
632
|
-
codeium_api_key:
|
|
832
|
+
codeium_api_key: u().nullish()
|
|
833
|
+
}).prefault({}),
|
|
834
|
+
save: s({
|
|
835
|
+
autosave: m(["off", "after_delay"]).prefault("after_delay"),
|
|
836
|
+
autosave_delay: d().nonnegative().transform((e) => Math.max(e, 1e3)).prefault(1e3),
|
|
837
|
+
format_on_save: p().prefault(!1)
|
|
633
838
|
}).prefault({}),
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
format_on_save: s().prefault(!1)
|
|
839
|
+
formatting: s({
|
|
840
|
+
line_length: d().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)),
|
|
841
|
+
infer_types: m(lt).prefault("off")
|
|
638
842
|
}).prefault({}),
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
destructive_delete: s().prefault(!0)
|
|
843
|
+
keymap: s({
|
|
844
|
+
preset: m(["default", "vim"]).prefault("default"),
|
|
845
|
+
overrides: l(u(), u()).prefault({}),
|
|
846
|
+
destructive_delete: p().prefault(!0)
|
|
644
847
|
}).prefault({}),
|
|
645
|
-
runtime:
|
|
646
|
-
auto_instantiate:
|
|
647
|
-
on_cell_change:
|
|
648
|
-
auto_reload:
|
|
848
|
+
runtime: s({
|
|
849
|
+
auto_instantiate: p().prefault(!0),
|
|
850
|
+
on_cell_change: m(["lazy", "autorun"]).prefault("autorun"),
|
|
851
|
+
auto_reload: m([
|
|
649
852
|
"off",
|
|
650
853
|
"lazy",
|
|
651
854
|
"autorun"
|
|
652
855
|
]).prefault("off"),
|
|
653
|
-
reactive_tests:
|
|
654
|
-
watcher_on_save:
|
|
655
|
-
default_sql_output:
|
|
656
|
-
default_auto_download:
|
|
657
|
-
show_tracebacks:
|
|
856
|
+
reactive_tests: p().prefault(!0),
|
|
857
|
+
watcher_on_save: m(["lazy", "autorun"]).prefault("lazy"),
|
|
858
|
+
default_sql_output: m(st).prefault("auto"),
|
|
859
|
+
default_auto_download: c(m(ct)).prefault([]),
|
|
860
|
+
show_tracebacks: p().prefault(!1)
|
|
658
861
|
}).prefault({}),
|
|
659
|
-
display:
|
|
660
|
-
theme:
|
|
862
|
+
display: s({
|
|
863
|
+
theme: m([
|
|
661
864
|
"light",
|
|
662
865
|
"dark",
|
|
663
866
|
"system"
|
|
664
867
|
]).prefault("light"),
|
|
665
|
-
code_editor_font_size:
|
|
666
|
-
cell_output:
|
|
667
|
-
dataframes:
|
|
668
|
-
default_table_page_size:
|
|
669
|
-
default_table_max_columns:
|
|
670
|
-
default_width:
|
|
671
|
-
locale:
|
|
672
|
-
reference_highlighting:
|
|
673
|
-
code_lens:
|
|
868
|
+
code_editor_font_size: d().nonnegative().prefault(14),
|
|
869
|
+
cell_output: m(["above", "below"]).prefault("below"),
|
|
870
|
+
dataframes: m(["rich", "plain"]).prefault("rich"),
|
|
871
|
+
default_table_page_size: d().prefault(10),
|
|
872
|
+
default_table_max_columns: d().prefault(50),
|
|
873
|
+
default_width: m(ot).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
|
|
874
|
+
locale: u().nullable().optional(),
|
|
875
|
+
reference_highlighting: p().prefault(!0),
|
|
876
|
+
code_lens: p().prefault(!0)
|
|
674
877
|
}).prefault({}),
|
|
675
|
-
package_management:
|
|
676
|
-
ai:
|
|
677
|
-
enabled:
|
|
678
|
-
rules:
|
|
679
|
-
max_tokens:
|
|
680
|
-
mode:
|
|
681
|
-
inline_tooltip:
|
|
682
|
-
allow_provider_config:
|
|
878
|
+
package_management: s({ manager: m(at).prefault("pip") }).prefault({}),
|
|
879
|
+
ai: s({
|
|
880
|
+
enabled: p().prefault(!0),
|
|
881
|
+
rules: u().prefault(""),
|
|
882
|
+
max_tokens: d().int().positive().nullable().optional(),
|
|
883
|
+
mode: m(ut).transform((e) => e === "manual" ? "ask" : e).prefault("ask"),
|
|
884
|
+
inline_tooltip: p().prefault(!1),
|
|
885
|
+
allow_provider_config: p().prefault(!0),
|
|
683
886
|
open_ai: J.optional(),
|
|
684
887
|
github: J.optional(),
|
|
685
888
|
anthropic: J.optional(),
|
|
@@ -690,40 +893,40 @@ var ze = [
|
|
|
690
893
|
opencode_go: J.optional(),
|
|
691
894
|
open_ai_compatible: J.optional(),
|
|
692
895
|
azure: J.optional(),
|
|
693
|
-
bedrock:
|
|
694
|
-
region_name:
|
|
695
|
-
profile_name:
|
|
696
|
-
aws_access_key_id:
|
|
697
|
-
aws_secret_access_key:
|
|
896
|
+
bedrock: s({
|
|
897
|
+
region_name: u().optional(),
|
|
898
|
+
profile_name: u().optional(),
|
|
899
|
+
aws_access_key_id: u().optional(),
|
|
900
|
+
aws_secret_access_key: u().optional()
|
|
698
901
|
}).optional(),
|
|
699
|
-
custom_providers:
|
|
700
|
-
models:
|
|
902
|
+
custom_providers: l(u(), J).prefault({}),
|
|
903
|
+
models: dt.prefault({
|
|
701
904
|
displayed_models: [],
|
|
702
905
|
custom_models: []
|
|
703
906
|
})
|
|
704
907
|
}).prefault({}),
|
|
705
|
-
experimental:
|
|
706
|
-
markdown:
|
|
707
|
-
rtc:
|
|
908
|
+
experimental: s({
|
|
909
|
+
markdown: p().optional(),
|
|
910
|
+
rtc: p().optional()
|
|
708
911
|
}).prefault(() => ({})),
|
|
709
|
-
server:
|
|
710
|
-
disable_file_downloads:
|
|
711
|
-
transport:
|
|
912
|
+
server: s({
|
|
913
|
+
disable_file_downloads: p().optional(),
|
|
914
|
+
transport: m(["websocket", "sse"]).optional()
|
|
712
915
|
}).prefault(() => ({})),
|
|
713
|
-
diagnostics:
|
|
714
|
-
enabled:
|
|
715
|
-
sql_linter:
|
|
916
|
+
diagnostics: s({
|
|
917
|
+
enabled: p().optional(),
|
|
918
|
+
sql_linter: p().optional()
|
|
716
919
|
}).prefault(() => ({})),
|
|
717
|
-
file_browser:
|
|
718
|
-
path:
|
|
719
|
-
name:
|
|
920
|
+
file_browser: s({ folders: c(f({
|
|
921
|
+
path: u(),
|
|
922
|
+
name: u().optional()
|
|
720
923
|
})).optional() }).optional().prefault({}),
|
|
721
|
-
sharing:
|
|
722
|
-
html:
|
|
723
|
-
wasm:
|
|
724
|
-
molab:
|
|
924
|
+
sharing: s({
|
|
925
|
+
html: p().optional(),
|
|
926
|
+
wasm: p().optional(),
|
|
927
|
+
molab: p().optional()
|
|
725
928
|
}).optional(),
|
|
726
|
-
mcp:
|
|
929
|
+
mcp: s({ presets: c(m(["marimo", "context7"])).optional() }).optional().prefault({})
|
|
727
930
|
}).partial().prefault(() => ({
|
|
728
931
|
completion: {},
|
|
729
932
|
save: {},
|
|
@@ -738,27 +941,27 @@ var ze = [
|
|
|
738
941
|
ai: {},
|
|
739
942
|
package_management: {},
|
|
740
943
|
mcp: {}
|
|
741
|
-
})),
|
|
742
|
-
width:
|
|
743
|
-
app_title:
|
|
744
|
-
css_file:
|
|
745
|
-
html_head_file:
|
|
746
|
-
auto_download:
|
|
747
|
-
sql_output:
|
|
944
|
+
})), pt = u(), mt = m(st).prefault("auto"), ht = f({
|
|
945
|
+
width: m(ot).prefault("compact").transform((e) => e === "normal" ? "compact" : e),
|
|
946
|
+
app_title: pt.nullish(),
|
|
947
|
+
css_file: u().nullish(),
|
|
948
|
+
html_head_file: u().nullish(),
|
|
949
|
+
auto_download: c(m(ct)).prefault([]),
|
|
950
|
+
sql_output: mt
|
|
748
951
|
}).prefault(() => ({
|
|
749
|
-
width: "
|
|
952
|
+
width: "compact",
|
|
750
953
|
auto_download: [],
|
|
751
954
|
sql_output: "auto"
|
|
752
955
|
}));
|
|
753
|
-
function
|
|
956
|
+
function gt(e) {
|
|
754
957
|
try {
|
|
755
|
-
return
|
|
958
|
+
return ht.parse(e);
|
|
756
959
|
} catch (e) {
|
|
757
|
-
return r.error(`Marimo got an unexpected value in the configuration file: ${e}`),
|
|
960
|
+
return r.error(`Marimo got an unexpected value in the configuration file: ${e}`), ht.parse({});
|
|
758
961
|
}
|
|
759
962
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
963
|
+
function _t() {
|
|
964
|
+
return ft.parse({
|
|
762
965
|
completion: {},
|
|
763
966
|
save: {},
|
|
764
967
|
formatting: {},
|
|
@@ -776,47 +979,52 @@ function Ye() {
|
|
|
776
979
|
}
|
|
777
980
|
//#endregion
|
|
778
981
|
//#region src/core/config/config.ts
|
|
779
|
-
function
|
|
982
|
+
function vt(...e) {
|
|
780
983
|
return v({}, ...e, (e, t) => {
|
|
781
984
|
if (Array.isArray(t)) return [...t];
|
|
782
985
|
});
|
|
783
986
|
}
|
|
784
|
-
var
|
|
785
|
-
let t = e(
|
|
786
|
-
return
|
|
787
|
-
}),
|
|
788
|
-
|
|
789
|
-
let t = e(
|
|
987
|
+
var Y = F(_t()), yt = F({}), X = F((e) => {
|
|
988
|
+
let t = e(yt);
|
|
989
|
+
return vt(e(Y), t);
|
|
990
|
+
}), bt = F((e) => e(X).runtime.auto_instantiate), xt = F((e) => e(X).keymap.overrides ?? {}), St = F(i());
|
|
991
|
+
F((e) => {
|
|
992
|
+
let t = e(xt), r = e(St);
|
|
790
993
|
return new n(t, { platform: r });
|
|
791
|
-
}),
|
|
792
|
-
function
|
|
793
|
-
let e = (0,
|
|
994
|
+
}), F((e) => e(X).save), F((e) => e(X).server.transport === "sse" ? "sse" : "websocket"), F((e) => e(X).ai), F((e) => e(X).completion), F((e) => e(X).keymap.preset);
|
|
995
|
+
function Ct() {
|
|
996
|
+
let e = (0, W.c)(3), t = H(X), n = U(Y), r;
|
|
794
997
|
return e[0] !== t || e[1] !== n ? (r = [t, n], e[0] = t, e[1] = n, e[2] = r) : r = e[2], r;
|
|
795
998
|
}
|
|
796
|
-
function
|
|
797
|
-
return q.get(
|
|
999
|
+
function wt() {
|
|
1000
|
+
return q.get(X);
|
|
798
1001
|
}
|
|
799
|
-
|
|
800
|
-
var
|
|
801
|
-
|
|
802
|
-
var
|
|
803
|
-
function
|
|
1002
|
+
F((e) => Z(e(X)));
|
|
1003
|
+
var Tt = F((e) => Ot(e(X))), Et = F((e) => kt(e(X)));
|
|
1004
|
+
F((e) => e(X).display.code_editor_font_size);
|
|
1005
|
+
var Dt = F((e) => e(X).display.locale);
|
|
1006
|
+
function Z(e) {
|
|
804
1007
|
return e.ai?.enabled !== !1;
|
|
805
1008
|
}
|
|
806
|
-
function
|
|
1009
|
+
function Ot(e) {
|
|
807
1010
|
return !!e.ai?.models?.chat_model || !!e.ai?.models?.edit_model || !!e.ai?.models?.autocomplete_model;
|
|
808
1011
|
}
|
|
809
|
-
function
|
|
810
|
-
return
|
|
1012
|
+
function kt(e) {
|
|
1013
|
+
return Z(e) && Ot(e);
|
|
811
1014
|
}
|
|
812
|
-
var
|
|
813
|
-
|
|
814
|
-
let t = e(
|
|
1015
|
+
var At = F({}), jt = Re(F((e) => e(it)?.revision.app_config ?? e(At)), (e) => e, K), Mt = F((e) => gt(e(jt)));
|
|
1016
|
+
F((e) => e(Mt).width), F((e) => {
|
|
1017
|
+
let t = e(X), n = t.snippets?.custom_paths ?? [], r = t.snippets?.include_default_snippets;
|
|
815
1018
|
return n.length > 0 || r === !0;
|
|
816
|
-
}),
|
|
1019
|
+
}), F((e) => e(X).server?.disable_file_downloads ?? !1);
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region src/core/islands/utils.ts
|
|
1022
|
+
function Nt() {
|
|
1023
|
+
return !0;
|
|
1024
|
+
}
|
|
817
1025
|
//#endregion
|
|
818
1026
|
//#region src/core/constants.ts
|
|
819
|
-
var
|
|
1027
|
+
var Pt = {
|
|
820
1028
|
githubPage: "https://github.com/marimo-team/marimo",
|
|
821
1029
|
releasesPage: "https://github.com/marimo-team/marimo/releases",
|
|
822
1030
|
issuesPage: "https://github.com/marimo-team/marimo/issues",
|
|
@@ -826,7 +1034,7 @@ var ut = {
|
|
|
826
1034
|
docsPage: "https://docs.marimo.io",
|
|
827
1035
|
youtube: "https://www.youtube.com/@marimo-team",
|
|
828
1036
|
molab: "https://molab.marimo.io"
|
|
829
|
-
},
|
|
1037
|
+
}, Ft = {
|
|
830
1038
|
showCode: "show-code",
|
|
831
1039
|
includeCode: "include-code",
|
|
832
1040
|
sessionId: "session_id",
|
|
@@ -837,18 +1045,18 @@ var ut = {
|
|
|
837
1045
|
viewAs: "view-as",
|
|
838
1046
|
showChrome: "show-chrome",
|
|
839
1047
|
theme: "theme"
|
|
840
|
-
},
|
|
1048
|
+
}, It = { outputArea: "output-area" }, Lt = [
|
|
841
1049
|
"light",
|
|
842
1050
|
"dark",
|
|
843
1051
|
"system"
|
|
844
1052
|
];
|
|
845
|
-
function
|
|
1053
|
+
function Rt() {
|
|
846
1054
|
if (typeof window > "u") return;
|
|
847
|
-
let e = new URLSearchParams(window.location.search).get(
|
|
848
|
-
return
|
|
1055
|
+
let e = new URLSearchParams(window.location.search).get(Ft.theme);
|
|
1056
|
+
return Lt.includes(e) ? e : void 0;
|
|
849
1057
|
}
|
|
850
|
-
var
|
|
851
|
-
if (
|
|
1058
|
+
var zt = F((e) => {
|
|
1059
|
+
if (Nt()) {
|
|
852
1060
|
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
1061
|
let e = window.getComputedStyle(document.body), t = e.getPropertyValue("color-scheme").trim();
|
|
854
1062
|
if (t) return t.includes("dark") ? "dark" : "light";
|
|
@@ -859,16 +1067,16 @@ var ht = R((e) => {
|
|
|
859
1067
|
}
|
|
860
1068
|
return "light";
|
|
861
1069
|
}
|
|
862
|
-
return
|
|
863
|
-
}), Q =
|
|
864
|
-
function
|
|
1070
|
+
return Rt() ?? e(X).display.theme;
|
|
1071
|
+
}), Q = F(!1);
|
|
1072
|
+
function Bt() {
|
|
865
1073
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
866
1074
|
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
867
1075
|
q.set(Q, e.matches), e.addEventListener("change", (e) => {
|
|
868
1076
|
q.set(Q, e.matches);
|
|
869
1077
|
});
|
|
870
1078
|
}
|
|
871
|
-
|
|
1079
|
+
Bt();
|
|
872
1080
|
function $() {
|
|
873
1081
|
switch (document.body.dataset.vscodeThemeKind) {
|
|
874
1082
|
case "vscode-dark": return "dark";
|
|
@@ -876,29 +1084,29 @@ function $() {
|
|
|
876
1084
|
case "vscode-light": return "light";
|
|
877
1085
|
}
|
|
878
1086
|
}
|
|
879
|
-
var
|
|
880
|
-
function
|
|
1087
|
+
var Vt = F($());
|
|
1088
|
+
function Ht() {
|
|
881
1089
|
let e = new MutationObserver(() => {
|
|
882
1090
|
let e = $();
|
|
883
|
-
q.set(
|
|
1091
|
+
q.set(Vt, e);
|
|
884
1092
|
});
|
|
885
1093
|
return e.observe(document.body, {
|
|
886
1094
|
attributes: !0,
|
|
887
1095
|
attributeFilter: ["data-vscode-theme-kind"]
|
|
888
1096
|
}), () => e.disconnect();
|
|
889
1097
|
}
|
|
890
|
-
|
|
891
|
-
var
|
|
892
|
-
let t = e(
|
|
1098
|
+
Ht();
|
|
1099
|
+
var Ut = F((e) => {
|
|
1100
|
+
let t = e(zt), n = e(Vt);
|
|
893
1101
|
if (n !== void 0) return n;
|
|
894
1102
|
let r = e(Q);
|
|
895
1103
|
return t === "system" ? r ? "dark" : "light" : t;
|
|
896
1104
|
});
|
|
897
|
-
function
|
|
898
|
-
let e = (0,
|
|
1105
|
+
function Wt() {
|
|
1106
|
+
let e = (0, W.c)(3), t;
|
|
899
1107
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store: q }, e[0] = t) : t = e[0];
|
|
900
|
-
let n =
|
|
1108
|
+
let n = H(Ut, t), r;
|
|
901
1109
|
return e[1] === n ? r = e[2] : (r = { theme: n }, e[1] = n, e[2] = r), r;
|
|
902
1110
|
}
|
|
903
1111
|
//#endregion
|
|
904
|
-
export {
|
|
1112
|
+
export { ke as A, K as C, qe as D, Ye as E, F, I, C as L, H as M, U as N, Re as O, R as P, x as R, Qe as S, Pe as T, nt as _, Ft as a, q as b, Tt as c, Dt as d, vt as f, rt as g, Y as h, Pt as i, Me as j, Ge as k, bt as l, Ct as m, Wt as n, Nt as o, X as p, It as r, Et as s, Ut as t, wt as u, it as v, Fe as w, $e as x, tt as y };
|