@marimo-team/islands 0.25.1-dev90 → 0.25.1
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-KVhjDMSe.js → ConnectedDataExplorerComponent-C2d9ysUI.js} +8 -9
- package/dist/{ErrorBoundary-D7_peFI9.js → ErrorBoundary-1wHWKFoG.js} +1 -1
- package/dist/{ImageComparisonComponent-Dlm5aWnH.js → ImageComparisonComponent-Cpfz30OZ.js} +51 -52
- package/dist/{abnfDiagram-VCTEODGH-CpN0FRda.js → abnfDiagram-VCTEODGH-AFhOQTt8.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-DDyj5SRB.js → architectureDiagram-5GKGNRK7-BngksAAQ.js} +5 -5
- package/dist/{blockDiagram-I7D4REHJ-BbXEXJRu.js → blockDiagram-I7D4REHJ-CvBmppdy.js} +9 -9
- package/dist/{c4Diagram-7LVT6UL2-DcLsbQmR.js → c4Diagram-7LVT6UL2-EceL4_jH.js} +7 -7
- package/dist/{cells-DYIkSxs6.js → cells-Cv93oav_.js} +4124 -4151
- package/dist/{channel-B5XnTarr.js → channel-z7HZXHwv.js} +1 -1
- package/dist/{chat-ui-BXj3uYjy.js → chat-ui-fVyVOhYN.js} +47 -47
- package/dist/{chunk-4HAMMTFA-D2qv8E0X.js → chunk-4HAMMTFA-BPTTOOC5.js} +5 -5
- package/dist/{chunk-75Z2AOVW-5_HsvXwr.js → chunk-75Z2AOVW-C4AOleKf.js} +1 -1
- package/dist/{chunk-DU6HZSFF-BUgAHvnM.js → chunk-DU6HZSFF-1TwWR6gh.js} +1 -1
- package/dist/{chunk-F27PBJKO-DHmYWZXr.js → chunk-F27PBJKO-DMI1PBe4.js} +1 -1
- package/dist/{chunk-GMAD6QVW-Czynz8aA.js → chunk-GMAD6QVW-vStrMz2P.js} +3 -3
- package/dist/{chunk-GVQU2GXP-yQEdulRS.js → chunk-GVQU2GXP-2HwWgs4u.js} +2 -2
- package/dist/{chunk-IMKFNOWR-BfwTebD0.js → chunk-IMKFNOWR-UOVZuZVn.js} +5 -5
- package/dist/{chunk-L3NEJ4N5-DwRWnDDK.js → chunk-L3NEJ4N5-RhC7i0I2.js} +5 -5
- package/dist/{chunk-OSK3NFVY-BBKU_Ign.js → chunk-OSK3NFVY-CZV09N-U.js} +6 -6
- package/dist/{chunk-P2QGCYS3-C0iGU29N.js → chunk-P2QGCYS3-0TAWai9C.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-BCbS3Ozc.js → chunk-POPQ4Y6H-Cc3_56GX.js} +1 -1
- package/dist/{chunk-PWAF6VOD-CTFCL0jI.js → chunk-PWAF6VOD-lNxB9k8z.js} +1 -1
- package/dist/{chunk-SHT3W25Y-BspJEJ5H.js → chunk-SHT3W25Y-CrEPyWy1.js} +7 -7
- package/dist/{chunk-SVP7TREG-DX3rFNTe.js → chunk-SVP7TREG-uIyyySp6.js} +2 -2
- package/dist/{chunk-TICWLB2K-fVF7Uujg.js → chunk-TICWLB2K-DdXM3eg6.js} +5 -5
- package/dist/classDiagram-ZZMXUADV-BiATbBE4.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-JnH97GYw.js +30 -0
- package/dist/{code-visibility-Cv2cG11L.js → code-visibility-DMcT7AsU.js} +17 -17
- package/dist/{common-DVOYsne0.js → common-B58G5YN_.js} +6726 -6430
- package/dist/{cynefinDiagram-5FMLGOSQ-CFQrqzSX.js → cynefinDiagram-5FMLGOSQ-zknaAsGy.js} +3 -3
- package/dist/{dagre-GXQ25YYZ-xHNAUTyG.js → dagre-GXQ25YYZ-BhMOoMGJ.js} +10 -10
- package/dist/{data-grid-overlay-editor--Egdzm1k.js → data-grid-overlay-editor-DUWqrgYI.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Bt1rPbAx.js → diagram-S7CK7UJ4-V5-Z-EDY.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-D1sq5FoZ.js → diagram-UQ7AKVKN-qw8AjDal.js} +3 -3
- package/dist/{diagram-VSXAHHWV-BKpmG23x.js → diagram-VSXAHHWV-CR7BJygZ.js} +2 -2
- package/dist/{diagram-VX7I27RA-BMwGFVD6.js → diagram-VX7I27RA-DfuqFb1E.js} +5 -5
- package/dist/{diagram-Z3DM3KII--KLDR9Pl.js → diagram-Z3DM3KII-DpWwlYZB.js} +3 -3
- package/dist/{dist-BaHjhkpZ.js → dist-CcyKTBTF.js} +1 -1
- package/dist/{dropdown-menu-CZgjYSAh.js → dropdown-menu-CZy06LAq.js} +12 -12
- package/dist/{ebnfDiagram-PWID7BFC-WnG4cvSQ.js → ebnfDiagram-PWID7BFC-C20OnNMZ.js} +3 -3
- package/dist/{erDiagram-RLTQ6QDP-DhzKiYHc.js → erDiagram-RLTQ6QDP-DBXLWO9v.js} +12 -12
- package/dist/{error-entries-C0NsUqXl.js → error-entries-DLl0XqoW.js} +18 -18
- package/dist/{feedback-button-WVepiUsI.js → feedback-button-BmlXbdJI.js} +19 -19
- package/dist/flowDiagram-HODETNUW-DL52nMkt.js +16 -0
- package/dist/{formats-BR5iGb4s.js → formats-Cl_67ghI.js} +2 -2
- package/dist/{ganttDiagram-EL5Y4UJY-DbzEBLbl.js → ganttDiagram-EL5Y4UJY-cRRaDt88.js} +2 -2
- package/dist/{gitGraphDiagram-WWUBYQGX-BMf0iKi1.js → gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js} +2 -2
- package/dist/{glide-data-editor-S0WTUxUP.js → glide-data-editor-DnxrqL3c.js} +5 -5
- package/dist/{globals-B0NGznoE.js → globals-C6IYCw1c.js} +1 -1
- package/dist/{html-to-image-CeYYvQNb.js → html-to-image-CmkwfNkf.js} +32 -31
- package/dist/{infoDiagram-27XIBGKW-BagtCX_5.js → infoDiagram-27XIBGKW-ntpxMfrq.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-DByDehYy.js → ishikawaDiagram-5VMMS53U-BllIlHE5.js} +3 -3
- package/dist/{journeyDiagram-3NMN7TZE-D2LcKDUO.js → journeyDiagram-3NMN7TZE-EPJDPlt0.js} +2 -2
- package/dist/{kanban-definition-UXKFOSKX-BxwkbBI_.js → kanban-definition-UXKFOSKX-GYtNMjtS.js} +9 -9
- package/dist/{katex-C6D4cX_N.js → katex-BNCmKUol.js} +983 -1120
- package/dist/{useNumberFormatter-BfDpa21j.js → label-BslhXqL6.js} +108 -81
- package/dist/{loader-D2W4oM-3.js → loader-DEZSzvma.js} +253 -248
- package/dist/main.js +670 -661
- package/dist/{mermaid-DPNuhemn.js → mermaid-Dnzoxjt1.js} +49 -49
- package/dist/{mhchem-DWCF06w9.js → mhchem-BEc7A1or.js} +1 -1
- package/dist/{mindmap-definition-YA3MSWOX-Cgvojw3y.js → mindmap-definition-YA3MSWOX-Cth76xgH.js} +11 -11
- package/dist/{number-overlay-editor-5uyVnQ6u.js → number-overlay-editor-BO78Sr4W.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DahHhYyN.js → pegDiagram-XKGWAZYB-Cu4uOXii.js} +3 -3
- package/dist/{pieDiagram-E7YTZNPT-CCtX0oCK.js → pieDiagram-E7YTZNPT-Bh3eDa9s.js} +3 -3
- package/dist/{process-output-BCTjlyuH.js → process-output-CYN5E-iO.js} +2 -2
- package/dist/{quadrantDiagram-AXDQQJYC-DftINo6g.js → quadrantDiagram-AXDQQJYC--kqzFC3w.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-Du5NsPUb.js → railroadDiagram-O6MQD6OU-DG-M6Rnc.js} +3 -3
- package/dist/{react-vega-5AcMW8gG.js → react-vega-ewj7q_U5.js} +1 -1
- package/dist/{requirementDiagram-BXWQKSXE-0pmmxL6_.js → requirementDiagram-BXWQKSXE-DCwsThh0.js} +11 -11
- package/dist/{reveal-component-CKpvbtfe.js → reveal-component-C1yOCuj8.js} +744 -743
- package/dist/{sankeyDiagram-P5KCCOFB-CDKR5TJH.js → sankeyDiagram-P5KCCOFB-BdzhT0BM.js} +1 -1
- package/dist/{sequenceDiagram-WJ2MYXX4-DB-ChWwU.js → sequenceDiagram-WJ2MYXX4-CbXB1_PU.js} +4 -4
- package/dist/{spec-CAYwFeV6.js → spec-DQBRQSba.js} +123 -102
- package/dist/{stateDiagram-D77RDMKH-orN6AwMx.js → stateDiagram-D77RDMKH-A-Zf3Sb2.js} +13 -13
- package/dist/stateDiagram-v2-MP3YSRHH-D9YMnUGx.js +30 -0
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-BkSDcqDT.js → swimlanes-42K2YHIH-B_pMf0J4.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-Ctgy-yGP.js +30 -0
- package/dist/{timeline-definition-24CTP7MA-BuqJUIRZ.js → timeline-definition-24CTP7MA-DTXFjTTM.js} +3 -3
- package/dist/{toDate-WXg1yLcI.js → toDate-C67bxMWn.js} +139 -111
- package/dist/{useDateFormatter-BRTPsUK7.js → useDateFormatter-BXQGu86d.js} +28 -49
- package/dist/{vega-component-D0QXopU8.js → vega-component-tFOzgarw.js} +12 -12
- package/dist/{vega-embed-container-CbnTccZi.js → vega-embed-container-sSR5hAsy.js} +2 -2
- package/dist/{vega-loader.browser-D95WfUcj.js → vega-loader.browser-DNST6uVf.js} +2 -2
- package/dist/{vennDiagram-4TSXK5OY-CTUlJ2PK.js → vennDiagram-4TSXK5OY-BPHjZo0R.js} +3 -3
- package/dist/{wardleyDiagram-VM6X3IG4-3evLUb0M.js → wardleyDiagram-VM6X3IG4-6fTLYBuD.js} +3 -3
- package/dist/{xychartDiagram-S5SC5T6Z-DL2E3K8-.js → xychartDiagram-S5SC5T6Z-BYjwjrzE.js} +5 -5
- package/package.json +1 -2
- package/src/__mocks__/common.ts +3 -3
- package/src/__tests__/CellStatus.test.tsx +1 -1
- package/src/__tests__/setup.ts +7 -7
- package/src/components/app-config/ai-config.tsx +2 -0
- package/src/components/app-config/optional-features.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +19 -8
- package/src/components/data-table/TableTopBar.tsx +2 -2
- package/src/components/data-table/__tests__/export-actions.test.tsx +662 -0
- package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +286 -0
- package/src/components/data-table/charts/charts.tsx +26 -13
- package/src/components/data-table/column-summary/chart-spec-model.tsx +4 -4
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/data-table/export-actions.tsx +642 -176
- package/src/components/data-table/schemas.ts +25 -3
- package/src/components/dependency-graph/elements.ts +2 -2
- package/src/components/editor/__tests__/package-alert.test.tsx +140 -0
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +107 -0
- package/src/components/editor/actions/pair-with-agent.tsx +119 -0
- package/src/components/editor/actions/useNotebookActions.tsx +2 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -0
- package/src/components/editor/ai/staged-cell-submission.ts +2 -2
- package/src/components/editor/ai/transport/chat-transport.tsx +1 -1
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +6 -1
- package/src/components/editor/connections/database/as-code.ts +44 -44
- package/src/components/editor/connections/storage/as-code.ts +3 -3
- package/src/components/editor/file-tree/requesting-tree.tsx +16 -13
- package/src/components/editor/navigation/clipboard.ts +2 -2
- package/src/components/editor/notebook-cell.tsx +2 -2
- package/src/components/editor/output/MarimoTracebackOutput.tsx +1 -1
- package/src/components/editor/output/VideoOutput.tsx +1 -1
- package/src/components/editor/output/ansi-reduce.ts +21 -17
- package/src/components/editor/output/console/ConsoleOutput.tsx +3 -3
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +59 -0
- package/src/components/editor/output/console/text-rendering.tsx +3 -1
- package/src/components/editor/package-alert.tsx +20 -7
- package/src/components/home/components.tsx +1 -0
- package/src/components/markdown/markdown-renderer.css +1 -1
- package/src/components/pages/run-page.tsx +1 -0
- package/src/components/slides/__tests__/minimap-actions.test.tsx +7 -7
- package/src/components/slides/__tests__/minimap.test.ts +12 -12
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +8 -8
- package/src/components/static-html/__tests__/share-modal.test.tsx +154 -0
- package/src/components/static-html/__tests__/stage-for-publish.test.ts +111 -0
- package/src/components/static-html/share-modal.tsx +114 -144
- package/src/components/static-html/stage-for-publish.ts +56 -0
- package/src/components/static-html/static-banner.tsx +2 -2
- package/src/components/ui/links.tsx +6 -1
- package/src/components/ui/typography.tsx +16 -8
- package/src/core/ai/context/__tests__/registry.test.ts +31 -28
- package/src/core/ai/context/providers/cell-output.ts +8 -8
- package/src/core/ai/context/providers/datasource.ts +10 -7
- package/src/core/ai/context/providers/error.ts +7 -7
- package/src/core/ai/context/providers/file.ts +8 -8
- package/src/core/ai/context/providers/tables.ts +7 -7
- package/src/core/ai/context/providers/variable.ts +7 -7
- package/src/core/ai/context/registry.ts +18 -18
- package/src/core/ai/ids/ids.ts +5 -5
- package/src/core/ai/model-registry.ts +12 -9
- package/src/core/ai/staged-cells.ts +6 -6
- package/src/core/ai/tools/base.ts +6 -6
- package/src/core/ai/tools/edit-notebook-tool.ts +6 -6
- package/src/core/ai/tools/registry.ts +4 -4
- package/src/core/ai/tools/run-cells-tool.ts +7 -7
- package/src/core/ai/tools/sample-tool.ts +6 -6
- package/src/core/cells/__tests__/cells.test.ts +27 -0
- package/src/core/cells/cells.ts +2 -1
- package/src/core/codemirror/cells/debugger-decorations.ts +13 -7
- package/src/core/codemirror/cells/line-timing-decorations.ts +9 -9
- package/src/core/codemirror/cells/traceback-decorations.ts +7 -4
- package/src/core/codemirror/code-lens/extension.ts +13 -13
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +6 -6
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +12 -12
- package/src/core/codemirror/copilot/language-server.ts +13 -13
- package/src/core/codemirror/copilot/transport.ts +1 -1
- package/src/core/codemirror/find-replace/search-highlight.ts +5 -5
- package/src/core/codemirror/go-to-definition/underline.ts +3 -3
- package/src/core/codemirror/keymaps/vim.ts +3 -3
- package/src/core/codemirror/language/languages/markdown.ts +8 -8
- package/src/core/codemirror/language/languages/python.ts +7 -7
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +5 -5
- package/src/core/codemirror/language/languages/sql/completion-store.ts +4 -4
- package/src/core/codemirror/language/languages/sql/sql.ts +21 -21
- package/src/core/codemirror/lsp/__tests__/transports.test.ts +10 -10
- package/src/core/codemirror/lsp/federated-lsp.ts +29 -27
- package/src/core/codemirror/lsp/notebook-lsp.ts +21 -21
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +10 -10
- package/src/core/codemirror/misc/__tests__/paste.test.ts +7 -4
- package/src/core/codemirror/reactive-references/extension.ts +3 -3
- package/src/core/codemirror/rtc/loro/awareness.ts +12 -12
- package/src/core/codemirror/rtc/loro/sync.ts +5 -5
- package/src/core/codemirror/vim/cursor-visibility.ts +3 -3
- package/src/core/dom/ui-element.ts +5 -5
- package/src/core/dom/uiregistry.ts +10 -10
- package/src/core/hotkeys/hotkeys.ts +9 -9
- package/src/core/islands/__tests__/bridge.test.ts +4 -4
- package/src/core/islands/__tests__/test-utils.tsx +4 -4
- package/src/core/islands/bridge.ts +85 -82
- package/src/core/islands/components/web-components.tsx +7 -7
- package/src/core/islands/worker/__tests__/controller.test.ts +1 -1
- package/src/core/islands/worker/controller.ts +6 -3
- package/src/core/islands/worker-factory.ts +2 -2
- package/src/core/kernel/RuntimeState.ts +4 -4
- package/src/core/kernel/__tests__/session.test.ts +110 -1
- package/src/core/kernel/session.ts +46 -15
- package/src/core/lsp/__tests__/transport.test.ts +19 -19
- package/src/core/lsp/transport.ts +5 -5
- package/src/core/network/CachingRequestRegistry.ts +2 -2
- package/src/core/network/DeferredRequestRegistry.ts +4 -4
- package/src/core/network/__tests__/export-asset-url.test.ts +45 -0
- package/src/core/network/export-asset-url.ts +19 -0
- package/src/core/network/requests-network.ts +2 -7
- package/src/core/runtime/runtime.ts +25 -20
- package/src/core/static/virtual-file-tracker.ts +5 -5
- package/src/core/wasm/__tests__/bridge.test.ts +2 -2
- package/src/core/wasm/bridge.ts +132 -133
- package/src/core/wasm/router.ts +5 -5
- package/src/core/wasm/store.ts +4 -4
- package/src/core/wasm/worker/bootstrap.ts +8 -5
- package/src/core/wasm/worker/message-buffer.ts +3 -3
- package/src/core/websocket/transports/__tests__/ws.test.ts +8 -8
- package/src/core/websocket/transports/basic.ts +15 -8
- package/src/core/websocket/transports/sse.ts +7 -7
- package/src/core/websocket/transports/transport.ts +3 -3
- package/src/core/websocket/transports/ws.ts +9 -7
- package/src/css/globals.css +18 -21
- package/src/css/katex.min.css +260 -241
- package/src/hooks/__tests__/useOverflowDetection.test.tsx +5 -5
- package/src/hooks/__tests__/useResizeObserver.test.tsx +12 -12
- package/src/plugins/core/registerReactComponent.tsx +5 -5
- package/src/plugins/core/sidebar-element.tsx +2 -2
- package/src/plugins/impl/ButtonPlugin.tsx +3 -3
- package/src/plugins/impl/CheckboxPlugin.tsx +3 -3
- package/src/plugins/impl/CodeEditorPlugin.tsx +3 -3
- package/src/plugins/impl/DatePickerPlugin.tsx +3 -3
- package/src/plugins/impl/DateRangePlugin.tsx +3 -3
- package/src/plugins/impl/DateTimePickerPlugin.tsx +3 -3
- package/src/plugins/impl/DictPlugin.tsx +3 -3
- package/src/plugins/impl/DropdownPlugin.tsx +3 -3
- package/src/plugins/impl/FileUploadPlugin.tsx +3 -3
- package/src/plugins/impl/MatrixPlugin.tsx +4 -4
- package/src/plugins/impl/MicrophonePlugin.tsx +3 -3
- package/src/plugins/impl/MultiselectPlugin.tsx +3 -3
- package/src/plugins/impl/NumberPlugin.tsx +3 -3
- package/src/plugins/impl/RadioPlugin.tsx +9 -5
- package/src/plugins/impl/RangeSliderPlugin.tsx +3 -3
- package/src/plugins/impl/RefreshPlugin.tsx +3 -3
- package/src/plugins/impl/SliderPlugin.tsx +3 -3
- package/src/plugins/impl/SwitchPlugin.tsx +3 -3
- package/src/plugins/impl/TabsPlugin.tsx +3 -3
- package/src/plugins/impl/TextAreaPlugin.tsx +3 -3
- package/src/plugins/impl/TextInputPlugin.tsx +3 -3
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +2 -2
- package/src/plugins/impl/anywidget/model.ts +10 -10
- package/src/plugins/impl/anywidget/registry.ts +12 -9
- package/src/plugins/impl/anywidget/runtime.ts +11 -9
- package/src/plugins/impl/anywidget/widget-binding.ts +6 -6
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +7 -6
- package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +3 -3
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +2 -2
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +2 -2
- package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +10 -10
- package/src/plugins/impl/panel/utils.ts +5 -5
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +3 -3
- package/src/plugins/impl/vega/VegaPlugin.tsx +3 -3
- package/src/plugins/impl/vega/__tests__/use-vega-container-remeasure.test.ts +7 -7
- package/src/plugins/impl/vega/__tests__/utils.test.ts +16 -1
- package/src/plugins/impl/vega/__tests__/vega.test.ts +37 -0
- package/src/plugins/impl/vega/loader.ts +23 -1
- package/src/plugins/impl/vega/utils.ts +5 -4
- package/src/plugins/layout/AccordionPlugin.tsx +3 -3
- package/src/plugins/layout/CalloutPlugin.tsx +3 -3
- package/src/plugins/layout/ImageComparisonPlugin.tsx +5 -3
- package/src/plugins/layout/JsonOutputPlugin.tsx +3 -3
- package/src/plugins/layout/MimeRenderPlugin.tsx +3 -3
- package/src/plugins/layout/NavigationMenuPlugin.tsx +3 -3
- package/src/plugins/layout/OutlinePlugin.tsx +3 -3
- package/src/plugins/layout/ProgressPlugin.tsx +3 -3
- package/src/plugins/layout/RoutesPlugin.tsx +6 -8
- package/src/plugins/layout/StatPlugin.tsx +3 -3
- package/src/plugins/layout/TexPlugin.tsx +3 -3
- package/src/plugins/layout/carousel/CarouselPlugin.tsx +4 -4
- package/src/plugins/layout/mermaid/MermaidPlugin.tsx +3 -3
- package/src/utils/Deferred.ts +6 -6
- package/src/utils/async-capture-tracker.ts +10 -7
- package/src/utils/errors.ts +5 -5
- package/src/utils/id-tree.tsx +83 -80
- package/src/utils/lru.ts +1 -1
- package/src/utils/multi-map.ts +14 -12
- package/src/utils/paths.ts +6 -6
- package/src/utils/pluralize.ts +3 -3
- package/src/utils/progress.ts +6 -6
- package/src/utils/python-poet/poet.ts +14 -14
- package/src/utils/routes.ts +4 -2
- package/src/utils/semaphore.ts +6 -6
- package/src/utils/storage/storage.ts +6 -6
- package/src/utils/storage/typed.ts +16 -12
- package/src/utils/time.ts +9 -9
- package/src/utils/timed-cache.ts +4 -4
- package/src/utils/tracer.ts +9 -6
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +0 -30
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +0 -16
- package/dist/katex-DFBiSucW.js +0 -21840
- package/dist/label-BJ49YTvk.js +0 -30
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +0 -30
|
@@ -1,51 +1,63 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { h as t, r as n } from "./button-DdXAm8iz.js";
|
|
3
|
+
import { t as r } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { t as a } from "./jsx-runtime-DgDPJV9S.js";
|
|
6
|
+
import { Tt as o } from "./use-restore-focus-D5D9xEjZ.js";
|
|
7
|
+
//#region ../node_modules/.pnpm/@radix-ui+react-label@2.1.7_@types+react-dom@19.2.5_@types+react@19.2.18__@types+react@_81412ca2c9e8ab48c66df9560ce8a98f/node_modules/@radix-ui/react-label/dist/index.mjs
|
|
8
|
+
var s = /* @__PURE__ */ e(r(), 1), c = a(), l = "Label", u = s.forwardRef((e, t) => /* @__PURE__ */ (0, c.jsx)(o.label, {
|
|
9
|
+
...e,
|
|
10
|
+
ref: t,
|
|
11
|
+
onMouseDown: (t) => {
|
|
12
|
+
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
13
|
+
}
|
|
14
|
+
}));
|
|
15
|
+
u.displayName = l;
|
|
16
|
+
var d = u, f = {
|
|
5
17
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
6
18
|
current: 0
|
|
7
|
-
},
|
|
19
|
+
}, p = /*#__PURE__*/ s.createContext(f), m = /*#__PURE__*/ s.createContext(!1);
|
|
8
20
|
typeof window < "u" && window.document && window.document.createElement;
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let t = (0,
|
|
12
|
-
if (
|
|
13
|
-
let e =
|
|
21
|
+
var h = /* @__PURE__ */ new WeakMap();
|
|
22
|
+
function g(e = !1) {
|
|
23
|
+
let t = (0, s.useContext)(p), n = (0, s.useRef)(null);
|
|
24
|
+
if (n.current === null && !e) {
|
|
25
|
+
let e = s.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
|
|
14
26
|
if (e) {
|
|
15
|
-
let n =
|
|
16
|
-
n == null ?
|
|
27
|
+
let n = h.get(e);
|
|
28
|
+
n == null ? h.set(e, {
|
|
17
29
|
id: t.current,
|
|
18
30
|
state: e.memoizedState
|
|
19
|
-
}) : e.memoizedState !== n.state && (t.current = n.id,
|
|
31
|
+
}) : e.memoizedState !== n.state && (t.current = n.id, h.delete(e));
|
|
20
32
|
}
|
|
21
|
-
|
|
33
|
+
n.current = ++t.current;
|
|
22
34
|
}
|
|
23
|
-
return
|
|
35
|
+
return n.current;
|
|
24
36
|
}
|
|
25
|
-
function
|
|
26
|
-
let t = (0,
|
|
27
|
-
return e || `${
|
|
37
|
+
function _(e) {
|
|
38
|
+
let t = (0, s.useContext)(p), n = g(!!e), r = `react-aria${t.prefix}`;
|
|
39
|
+
return e || `${r}-${n}`;
|
|
28
40
|
}
|
|
29
|
-
function
|
|
30
|
-
let t =
|
|
31
|
-
return e || `${
|
|
41
|
+
function v(e) {
|
|
42
|
+
let t = s.useId(), [n] = (0, s.useState)(C()), r = n ? "react-aria" : `react-aria${f.prefix}`;
|
|
43
|
+
return e || `${r}-${t}`;
|
|
32
44
|
}
|
|
33
|
-
var
|
|
34
|
-
function
|
|
45
|
+
var y = typeof s.useId == "function" ? v : _;
|
|
46
|
+
function b() {
|
|
35
47
|
return !1;
|
|
36
48
|
}
|
|
37
|
-
function
|
|
49
|
+
function x() {
|
|
38
50
|
return !0;
|
|
39
51
|
}
|
|
40
|
-
function
|
|
52
|
+
function S(e) {
|
|
41
53
|
return () => {};
|
|
42
54
|
}
|
|
43
|
-
function
|
|
44
|
-
return typeof
|
|
55
|
+
function C() {
|
|
56
|
+
return typeof s.useSyncExternalStore == "function" ? s.useSyncExternalStore(S, b, x) : (0, s.useContext)(m);
|
|
45
57
|
}
|
|
46
58
|
//#endregion
|
|
47
59
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/utils.mjs
|
|
48
|
-
var
|
|
60
|
+
var w = /* @__PURE__ */ new Set([
|
|
49
61
|
"Arab",
|
|
50
62
|
"Syrc",
|
|
51
63
|
"Samr",
|
|
@@ -56,7 +68,7 @@ var h = /* @__PURE__ */ new Set([
|
|
|
56
68
|
"Adlm",
|
|
57
69
|
"Rohg",
|
|
58
70
|
"Hebr"
|
|
59
|
-
]),
|
|
71
|
+
]), T = /* @__PURE__ */ new Set([
|
|
60
72
|
"ae",
|
|
61
73
|
"ar",
|
|
62
74
|
"arc",
|
|
@@ -77,20 +89,20 @@ var h = /* @__PURE__ */ new Set([
|
|
|
77
89
|
"ur",
|
|
78
90
|
"yi"
|
|
79
91
|
]);
|
|
80
|
-
function
|
|
92
|
+
function E(e) {
|
|
81
93
|
if (Intl.Locale) {
|
|
82
94
|
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
|
|
83
95
|
if (n) return n.direction === "rtl";
|
|
84
|
-
if (t.script) return
|
|
96
|
+
if (t.script) return w.has(t.script);
|
|
85
97
|
}
|
|
86
98
|
let t = e.split("-")[0];
|
|
87
|
-
return
|
|
99
|
+
return T.has(t);
|
|
88
100
|
}
|
|
89
101
|
//#endregion
|
|
90
102
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs
|
|
91
|
-
var
|
|
92
|
-
function
|
|
93
|
-
let e = typeof window < "u" && window[
|
|
103
|
+
var D = Symbol.for("react-aria.i18n.locale");
|
|
104
|
+
function O() {
|
|
105
|
+
let e = typeof window < "u" && window[D] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
94
106
|
try {
|
|
95
107
|
Intl.DateTimeFormat.supportedLocalesOf([e]);
|
|
96
108
|
} catch {
|
|
@@ -98,73 +110,73 @@ function y() {
|
|
|
98
110
|
}
|
|
99
111
|
return {
|
|
100
112
|
locale: e,
|
|
101
|
-
direction:
|
|
113
|
+
direction: E(e) ? "rtl" : "ltr"
|
|
102
114
|
};
|
|
103
115
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
for (let e of
|
|
116
|
+
var k = O(), A = /* @__PURE__ */ new Set();
|
|
117
|
+
function j() {
|
|
118
|
+
k = O();
|
|
119
|
+
for (let e of A) e(k);
|
|
108
120
|
}
|
|
109
|
-
function
|
|
110
|
-
let e =
|
|
111
|
-
return (0,
|
|
112
|
-
|
|
121
|
+
function M() {
|
|
122
|
+
let e = C(), [t, n] = (0, s.useState)(k);
|
|
123
|
+
return (0, s.useEffect)(() => (A.size === 0 && window.addEventListener("languagechange", j), A.add(n), () => {
|
|
124
|
+
A.delete(n), A.size === 0 && window.removeEventListener("languagechange", j);
|
|
113
125
|
}), []), e ? {
|
|
114
|
-
locale: typeof window < "u" && window[
|
|
126
|
+
locale: typeof window < "u" && window[D] || "en-US",
|
|
115
127
|
direction: "ltr"
|
|
116
128
|
} : t;
|
|
117
129
|
}
|
|
118
130
|
//#endregion
|
|
119
131
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/context.mjs
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
let { locale: t, children:
|
|
132
|
+
var N = /*#__PURE__*/ s.createContext(null);
|
|
133
|
+
function P(e) {
|
|
134
|
+
let { locale: t, children: n } = e, r = s.useMemo(() => ({
|
|
123
135
|
locale: t,
|
|
124
|
-
direction:
|
|
136
|
+
direction: E(t) ? "rtl" : "ltr"
|
|
125
137
|
}), [t]);
|
|
126
|
-
return /*#__PURE__*/
|
|
138
|
+
return /*#__PURE__*/ s.createElement(N.Provider, { value: r }, n);
|
|
127
139
|
}
|
|
128
|
-
function
|
|
129
|
-
let { children: t } = e,
|
|
130
|
-
return /*#__PURE__*/
|
|
140
|
+
function F(e) {
|
|
141
|
+
let { children: t } = e, n = M();
|
|
142
|
+
return /*#__PURE__*/ s.createElement(N.Provider, { value: n }, t);
|
|
131
143
|
}
|
|
132
|
-
function
|
|
133
|
-
let { locale: t, children:
|
|
134
|
-
return t ? /*#__PURE__*/
|
|
144
|
+
function I(e) {
|
|
145
|
+
let { locale: t, children: n } = e;
|
|
146
|
+
return t ? /*#__PURE__*/ s.createElement(P, {
|
|
135
147
|
locale: t,
|
|
136
|
-
children:
|
|
137
|
-
}) : /*#__PURE__*/
|
|
148
|
+
children: n
|
|
149
|
+
}) : /*#__PURE__*/ s.createElement(F, { children: n });
|
|
138
150
|
}
|
|
139
|
-
function
|
|
140
|
-
let e =
|
|
141
|
-
return (0,
|
|
151
|
+
function L() {
|
|
152
|
+
let e = M();
|
|
153
|
+
return (0, s.useContext)(N) || e;
|
|
142
154
|
}
|
|
143
155
|
//#endregion
|
|
144
156
|
//#region ../node_modules/.pnpm/@internationalized+number@3.6.5/node_modules/@internationalized/number/dist/NumberFormatter.mjs
|
|
145
|
-
var
|
|
157
|
+
var R = /* @__PURE__ */ new Map(), z = !1;
|
|
146
158
|
try {
|
|
147
|
-
|
|
159
|
+
z = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
148
160
|
} catch {}
|
|
149
|
-
var
|
|
161
|
+
var B = !1;
|
|
150
162
|
try {
|
|
151
|
-
|
|
163
|
+
B = new Intl.NumberFormat("de-DE", {
|
|
152
164
|
style: "unit",
|
|
153
165
|
unit: "degree"
|
|
154
166
|
}).resolvedOptions().style === "unit";
|
|
155
167
|
} catch {}
|
|
156
|
-
var
|
|
168
|
+
var V = { degree: { narrow: {
|
|
157
169
|
default: "°",
|
|
158
170
|
"ja-JP": " 度",
|
|
159
171
|
"zh-TW": "度",
|
|
160
172
|
"sl-SI": " °"
|
|
161
|
-
} } },
|
|
173
|
+
} } }, H = class {
|
|
162
174
|
format(e) {
|
|
163
175
|
let t = "";
|
|
164
|
-
if (t = !
|
|
176
|
+
if (t = !z && this.options.signDisplay != null ? W(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !B) {
|
|
165
177
|
let { unit: e, unitDisplay: n = "short", locale: r } = this.resolvedOptions();
|
|
166
178
|
if (!e) return t;
|
|
167
|
-
let i =
|
|
179
|
+
let i = V[e]?.[n];
|
|
168
180
|
t += i[r] || i.default;
|
|
169
181
|
}
|
|
170
182
|
return t;
|
|
@@ -199,10 +211,10 @@ var M = { degree: { narrow: {
|
|
|
199
211
|
}
|
|
200
212
|
resolvedOptions() {
|
|
201
213
|
let e = this.numberFormatter.resolvedOptions();
|
|
202
|
-
return !
|
|
214
|
+
return !z && this.options.signDisplay != null && (e = {
|
|
203
215
|
...e,
|
|
204
216
|
signDisplay: this.options.signDisplay
|
|
205
|
-
}), !
|
|
217
|
+
}), !B && this.options.style === "unit" && (e = {
|
|
206
218
|
...e,
|
|
207
219
|
style: "unit",
|
|
208
220
|
unit: this.options.unit,
|
|
@@ -210,26 +222,26 @@ var M = { degree: { narrow: {
|
|
|
210
222
|
}), e;
|
|
211
223
|
}
|
|
212
224
|
constructor(e, t = {}) {
|
|
213
|
-
this.numberFormatter =
|
|
225
|
+
this.numberFormatter = U(e, t), this.options = t;
|
|
214
226
|
}
|
|
215
227
|
};
|
|
216
|
-
function
|
|
228
|
+
function U(e, t = {}) {
|
|
217
229
|
let { numberingSystem: n } = t;
|
|
218
|
-
if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !
|
|
230
|
+
if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !B) {
|
|
219
231
|
let { unit: e, unitDisplay: n = "short" } = t;
|
|
220
232
|
if (!e) throw Error("unit option must be provided with style: \"unit\"");
|
|
221
|
-
if (!
|
|
233
|
+
if (!V[e]?.[n]) throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);
|
|
222
234
|
t = {
|
|
223
235
|
...t,
|
|
224
236
|
style: "decimal"
|
|
225
237
|
};
|
|
226
238
|
}
|
|
227
239
|
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
|
|
228
|
-
if (
|
|
240
|
+
if (R.has(r)) return R.get(r);
|
|
229
241
|
let i = new Intl.NumberFormat(e, t);
|
|
230
|
-
return
|
|
242
|
+
return R.set(r, i), i;
|
|
231
243
|
}
|
|
232
|
-
function
|
|
244
|
+
function W(e, t, n) {
|
|
233
245
|
if (t === "auto") return e.format(n);
|
|
234
246
|
if (t === "never") return e.format(Math.abs(n));
|
|
235
247
|
{
|
|
@@ -243,9 +255,24 @@ function F(e, t, n) {
|
|
|
243
255
|
}
|
|
244
256
|
//#endregion
|
|
245
257
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs
|
|
246
|
-
function
|
|
247
|
-
let { locale: t } =
|
|
248
|
-
return (0,
|
|
258
|
+
function G(e = {}) {
|
|
259
|
+
let { locale: t } = L();
|
|
260
|
+
return (0, s.useMemo)(() => new H(t, e), [t, e]);
|
|
249
261
|
}
|
|
250
262
|
//#endregion
|
|
251
|
-
|
|
263
|
+
//#region src/components/ui/label.tsx
|
|
264
|
+
var K = i(), q = n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), J = s.forwardRef((e, n) => {
|
|
265
|
+
let r = (0, K.c)(9), i, a;
|
|
266
|
+
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
267
|
+
let o;
|
|
268
|
+
r[3] === i ? o = r[4] : (o = t(q(), i), r[3] = i, r[4] = o);
|
|
269
|
+
let s;
|
|
270
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, c.jsx)(d, {
|
|
271
|
+
ref: n,
|
|
272
|
+
className: o,
|
|
273
|
+
...a
|
|
274
|
+
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
275
|
+
});
|
|
276
|
+
J.displayName = d.displayName;
|
|
277
|
+
//#endregion
|
|
278
|
+
export { I as a, L as i, G as n, C as o, H as r, y as s, J as t };
|