@marimo-team/islands 0.25.3-dev20 → 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-CNMliVzw.js → ConnectedDataExplorerComponent-BsWiIPFk.js} +22 -20
- package/dist/{ErrorBoundary-DAPIRYqd.js → ErrorBoundary-UWARECs-.js} +19 -19
- package/dist/{abnfDiagram-VCTEODGH-D-Ez91gV.js → abnfDiagram-VCTEODGH-I2x4Yu25.js} +2 -2
- package/dist/any-language-editor-BVFHDDQ3.js +75 -0
- package/dist/{architectureDiagram-5GKGNRK7-CTpcNtO8.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-DaHynk8g.js → chat-ui-DXDoSuS4.js} +370 -369
- package/dist/{check-EDwSwP89.js → check-C9Mp9eCK.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DGxi-zeo.js → chunk-IMKFNOWR-fsCGAJ9G.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CV9J3rAB.js → chunk-SHT3W25Y-D2STW4hj.js} +1 -1
- package/dist/{chunk-SVP7TREG-BL-9Fqgg.js → chunk-SVP7TREG-CiY7cQG-.js} +1 -1
- package/dist/{chunk-TICWLB2K-Cu_XMjDM.js → chunk-TICWLB2K-C_t5RBp9.js} +1 -1
- package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-YOKDWASO-DKplTrBY.js} +20 -20
- package/dist/{classDiagram-ZZMXUADV-BXXV13Hq.js → classDiagram-ZZMXUADV-B2JvZAP4.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js → classDiagram-v2-VYDZK3BY-L8VsZG5A.js} +2 -2
- package/dist/code-visibility-33fxfX1p.js +134 -0
- package/dist/{common-DsUPhkD6.js → common-D09oJJ8Z.js} +6040 -5865
- package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-De584pZ4.js} +3 -3
- package/dist/{cynefinDiagram-5FMLGOSQ-CH96rwba.js → cynefinDiagram-5FMLGOSQ-DdllC264.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BD3PmpFY.js → dagre-GXQ25YYZ-BaWHw4_f.js} +1 -1
- package/dist/{data-grid-overlay-editor-D7UuVsgB.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-BsSJJldB.js → diagram-S7CK7UJ4-pFt-tUDe.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-muQtNZc4.js → diagram-UQ7AKVKN-DqGJiBp4.js} +1 -1
- package/dist/{diagram-VX7I27RA-CdhuZAqR.js → diagram-VX7I27RA-Dr-yzMjf.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BD8mXjOj.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-BIN1sweE.js → ebnfDiagram-PWID7BFC-Br04Wy-E.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Ctp5cfoN.js → erDiagram-RLTQ6QDP-D5-XVgvv.js} +1 -1
- package/dist/{error-banner-D-WCIiMt.js → error-banner-DxJ3s8YO.js} +86 -86
- package/dist/{error-entries-Bv6bZPF3.js → error-entries-C2Ux0Fjt.js} +8404 -9095
- 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-3EfLrlFb.js → flowDiagram-HODETNUW-CVl2kREF.js} +2 -2
- package/dist/{formats-27CW_UP4.js → formats-BCYthwyc.js} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js} +2 -2
- package/dist/{glide-data-editor-KvS90MGh.js → glide-data-editor-CL535A5q.js} +370 -368
- package/dist/{glide-utils-DJyqh0EM.js → glide-utils-D98laidb.js} +16 -16
- package/dist/{globals-yruoELTW.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-Bf8QMGi4.js → html-to-image-CkH7vdBZ.js} +477 -380
- package/dist/{infoDiagram-27XIBGKW-DipQoHxl.js → infoDiagram-27XIBGKW-BJ4vNcZE.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DgFMjSGz.js → ishikawaDiagram-5VMMS53U-B_Jy1Dsm.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-w1ACVjgl.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 -7709
- package/dist/{mermaid-CHo49Yv-.js → mermaid-Bh918qrq.js} +52 -52
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +2 -0
- package/dist/{mindmap-definition-YA3MSWOX-CrT0KSfX.js → mindmap-definition-YA3MSWOX-BP3ZTuir.js} +1 -1
- package/dist/{number-overlay-editor-R2i0FdxV.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-BqvywNJA.js → pegDiagram-XKGWAZYB-nNGOQtnt.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BfxJ_XCc.js → pieDiagram-E7YTZNPT-CpRz5BZz.js} +1 -1
- package/dist/precisionRound-DhAzeRcm.js +49 -0
- package/dist/{process-output-BZg56CCb.js → process-output-OujAtFW4.js} +5 -5
- package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-Blrm7V7_.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-8vFLVTPu.js → railroadDiagram-O6MQD6OU-BqOEN4I0.js} +2 -2
- package/dist/{react-vega-BED0DjiB.js → react-vega-C4T9Rb_w.js} +12284 -12270
- package/dist/{requirementDiagram-BXWQKSXE-a_MxGvxe.js → requirementDiagram-BXWQKSXE-CEfg6vu9.js} +1 -1
- package/dist/{reveal-component-C42-YBfQ.js → reveal-component-CbEK0sNX.js} +733 -710
- package/dist/{select-BButFi-d.js → select-2KOiReNY.js} +536 -457
- package/dist/{sequenceDiagram-WJ2MYXX4-CXFMnxGh.js → sequenceDiagram-WJ2MYXX4-IOmpQcOi.js} +1 -1
- package/dist/{spec-BwarBpUJ.js → spec-Dkp64vVQ.js} +41 -11
- package/dist/{stateDiagram-D77RDMKH-DQeA_CwI.js → stateDiagram-D77RDMKH-tgU-EY9_.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BxxQucm1.js → stateDiagram-v2-MP3YSRHH-BofhG6q1.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Do6L-cYg.js → swimlanes-42K2YHIH-DW4vWDBd.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-DUzPvSVU.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-D3c46WM5.js → timeline-definition-24CTP7MA-D_QU3NGs.js} +1 -1
- package/dist/{toDate-UtiwmnH2.js → toDate-BNDEXbfV.js} +44 -43
- 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-BeF9dfyO.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-BSZD8JcZ.js → vennDiagram-4TSXK5OY-YFYsNIAh.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-48cUWkfA.js → wardleyDiagram-VM6X3IG4-i_n8mAWC.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CswYgYeu.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__/main.test.tsx +24 -1
- package/src/__tests__/module-entry.test.ts +44 -0
- package/src/__tests__/mount.test.ts +1 -21
- 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__/data-table.test.tsx +1 -0
- package/src/components/data-table/__tests__/date-popover.test.tsx +72 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +105 -0
- 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 +36 -20
- package/src/components/data-table/data-table.tsx +17 -1
- package/src/components/data-table/date-popover.tsx +6 -4
- package/src/components/data-table/export-actions.tsx +76 -48
- 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/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/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/SortableCell.tsx +1 -3
- package/src/components/editor/__tests__/Output.test.tsx +50 -32
- package/src/{core/attachments/__tests__/toast.test.tsx → components/editor/__tests__/agent-toast.test.tsx} +1 -1
- 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-modal.test.tsx +34 -8
- 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 +2 -2
- package/src/components/editor/actions/pair-with-agent-modal.tsx +19 -16
- 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/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/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 +9 -18
- 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-items/attachment-status.tsx +4 -4
- 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 +2 -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 +17 -29
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/errors/send-error-report-button.tsx +3 -6
- 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 +2 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +19 -17
- package/src/components/editor/output/Outputs.css +8 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/output/ansi-reduce.ts +33 -20
- 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 +218 -2491
- 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__/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 +445 -211
- 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/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 +76 -53
- 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/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 -43
- package/src/core/islands/__tests__/bridge.test.ts +72 -25
- package/src/core/islands/bootstrap.ts +46 -54
- 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 +1 -1
- 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/{host → notebook/replica}/__tests__/document.test.ts +18 -16
- 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/notebook/replica/connection.ts +42 -0
- 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/{host → notebook/replica}/resources/document.ts +4 -4
- 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 +32 -58
- package/src/core/runtime/adapter.ts +1 -1
- package/src/core/runtime/config.ts +2 -2
- package/src/core/runtime/runtime.ts +38 -42
- package/src/core/runtime/types.ts +0 -2
- 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/session/__tests__/useNotebookSession.hook.test.tsx +663 -0
- 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/{websocket → session}/types.ts +2 -2
- package/src/core/session/useNotebookReplica.ts +74 -0
- package/src/core/{websocket → session}/useNotebookSession.tsx +77 -72
- 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 → transports}/__tests__/connection-state.test.ts +1 -13
- 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/{websocket → transports}/connection-state.ts +9 -16
- 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 +20 -15
- 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 +387 -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__/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/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-DZ_YTVus.js +0 -76
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
- package/dist/assets/worker-HPY9fbhz.js +0 -114
- package/dist/code-visibility-DkCqn-PO.js +0 -138
- package/dist/feedback-button-wnAMXOGA.js +0 -379
- 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/attachments/state.ts +0 -21
- 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 -11
- package/src/core/host/__tests__/events.test.ts +0 -46
- package/src/core/host/__tests__/fixtures.ts +0 -39
- package/src/core/host/__tests__/notebook-client.test.ts +0 -303
- package/src/core/host/__tests__/protocol.test.ts +0 -214
- package/src/core/host/__tests__/stream.test.ts +0 -211
- package/src/core/host/connection.ts +0 -81
- package/src/core/host/events.ts +0 -60
- package/src/core/host/notebook-client.ts +0 -272
- package/src/core/host/protocol.ts +0 -1943
- package/src/core/host/resources/resource.ts +0 -59
- package/src/core/host/stream.ts +0 -213
- 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__/createConnectionTransport.test.ts +0 -49
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -140
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +0 -883
- package/src/core/websocket/transports/__tests__/basic.test.ts +0 -275
- package/src/core/websocket/transports/__tests__/sse.test.ts +0 -335
- 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/create.ts +0 -31
- package/src/core/websocket/transports/sse.ts +0 -308
- package/src/core/websocket/transports/transport.ts +0 -50
- package/src/core/websocket/transports/ws.ts +0 -98
- package/src/core/websocket/useNotebookClient.ts +0 -80
- package/src/utils/__tests__/id-tree.test.ts +0 -2145
- package/src/utils/id-tree.tsx +0 -1134
- /package/src/{core/attachments/toast.ts → components/editor/agent-toast.ts} +0 -0
- /package/src/core/{websocket → session}/connection-utils.ts +0 -0
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { h as t, p as n, r } from "./button-
|
|
2
|
+
import { h as t, p as n, r } from "./button-BQRdqQi1.js";
|
|
3
3
|
import { t as i } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as a } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
-
import {
|
|
6
|
-
import { A as s,
|
|
5
|
+
import { p as o } from "./tooltip-s4zZxwKe.js";
|
|
6
|
+
import { A as s, O as c } from "./select-2KOiReNY.js";
|
|
7
7
|
import { t as l } from "./react-dom-DUmH0GXv.js";
|
|
8
8
|
import { t as u } from "./jsx-runtime-3BD1kT0s.js";
|
|
9
|
-
import {
|
|
10
|
-
//#region ../node_modules/.pnpm/@radix-ui+react-toast@1.
|
|
9
|
+
import { At as d, Dt as f, Et as p, Ot as m, St as h, Tt as g, bt as ee, ht as te, kt as _, wt as v, xt as ne } from "./use-restore-focus-BgDTd2tc.js";
|
|
10
|
+
//#region ../node_modules/.pnpm/@radix-ui+react-toast@1.3.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@1_9e7c08a11157ed276bff36e462c11a8f/node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
11
11
|
var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x = Object.defineProperty, S = (e, t) => x(e, "name", {
|
|
12
12
|
value: t,
|
|
13
13
|
configurable: !0
|
|
14
|
-
}), ie =
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
}), ie = y.startTransition || (() => void 0), ae = "ToastProvider", [oe, se, C] = c("Toast"), w = {
|
|
15
|
+
Up: "up",
|
|
16
|
+
Down: "down",
|
|
17
|
+
Left: "left",
|
|
18
|
+
Right: "right"
|
|
19
|
+
}, ce = {
|
|
20
|
+
Foreground: "foreground",
|
|
21
|
+
Background: "background"
|
|
22
|
+
}, [T, le] = m("Toast", [C]), [E, D] = T(ae);
|
|
23
|
+
function O(e) {
|
|
24
|
+
typeof ie == "function" ? ie(e) : e();
|
|
25
|
+
}
|
|
26
|
+
S(O, "scheduleUpdate");
|
|
27
|
+
var ue = /* @__PURE__ */ S((e) => {
|
|
28
|
+
let { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: i = w.Right, swipeThreshold: a = 50, announcerContainer: o, children: s } = e, [c, l] = y.useState(null), [u, d] = y.useState(0), f = y.useRef(!1), p = y.useCallback((e) => {
|
|
29
|
+
O(() => l(e));
|
|
30
|
+
}, []), m = y.useCallback(() => {
|
|
31
|
+
O(() => d((e) => e + 1));
|
|
32
|
+
}, []), h = y.useCallback(() => {
|
|
33
|
+
O(() => d((e) => e - 1));
|
|
34
|
+
}, []);
|
|
35
|
+
return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${ae}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ (0, b.jsx)(oe.Provider, {
|
|
17
36
|
scope: t,
|
|
18
|
-
children: /* @__PURE__ */ (0, b.jsx)(
|
|
37
|
+
children: /* @__PURE__ */ (0, b.jsx)(E, {
|
|
19
38
|
scope: t,
|
|
20
39
|
label: n,
|
|
21
40
|
duration: r,
|
|
@@ -23,16 +42,16 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
23
42
|
swipeThreshold: a,
|
|
24
43
|
toastCount: u,
|
|
25
44
|
viewport: c,
|
|
26
|
-
onViewportChange:
|
|
27
|
-
onToastAdd:
|
|
28
|
-
onToastRemove:
|
|
45
|
+
onViewportChange: p,
|
|
46
|
+
onToastAdd: m,
|
|
47
|
+
onToastRemove: h,
|
|
29
48
|
isClosePausedRef: f,
|
|
30
49
|
announcerContainer: o,
|
|
31
50
|
children: s
|
|
32
51
|
})
|
|
33
52
|
});
|
|
34
|
-
}, "ToastProvider"),
|
|
35
|
-
let { __scopeToast: r, hotkey: i =
|
|
53
|
+
}, "ToastProvider"), de = "ToastViewport", k = ["F8"], fe = "toast.viewportPause", pe = "toast.viewportResume", A = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
54
|
+
let { __scopeToast: r, hotkey: i = k, label: a = "Notifications ({hotkey})", ...o } = e, s = D(de, r), c = se(r), l = y.useRef(null), u = y.useRef(null), d = y.useRef(null), f = y.useRef(null), p = n(t, f, s.onViewportChange), m = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), h = s.toastCount > 0;
|
|
36
55
|
y.useEffect(() => {
|
|
37
56
|
let e = /* @__PURE__ */ S((e) => {
|
|
38
57
|
i.length !== 0 && i.every((t) => e[t] || e.code === t) && f.current?.focus();
|
|
@@ -43,12 +62,12 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
43
62
|
if (h && e && t) {
|
|
44
63
|
let n = /* @__PURE__ */ S(() => {
|
|
45
64
|
if (!s.isClosePausedRef.current) {
|
|
46
|
-
let e = new CustomEvent(
|
|
65
|
+
let e = new CustomEvent(fe);
|
|
47
66
|
t.dispatchEvent(e), s.isClosePausedRef.current = !0;
|
|
48
67
|
}
|
|
49
68
|
}, "handlePause"), r = /* @__PURE__ */ S(() => {
|
|
50
69
|
if (s.isClosePausedRef.current) {
|
|
51
|
-
let e = new CustomEvent(
|
|
70
|
+
let e = new CustomEvent(pe);
|
|
52
71
|
t.dispatchEvent(e), s.isClosePausedRef.current = !1;
|
|
53
72
|
}
|
|
54
73
|
}, "handleResume"), i = /* @__PURE__ */ S((t) => {
|
|
@@ -63,7 +82,7 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
63
82
|
}, [h, s.isClosePausedRef]);
|
|
64
83
|
let g = y.useCallback(({ tabbingDirection: e }) => {
|
|
65
84
|
let t = c().map((t) => {
|
|
66
|
-
let n = t.ref.current, r = [n, ...
|
|
85
|
+
let n = t.ref.current, r = [n, ...Ie(n)];
|
|
67
86
|
return e === "forwards" ? r : r.reverse();
|
|
68
87
|
});
|
|
69
88
|
return (e === "forwards" ? t.reverse() : t).flat();
|
|
@@ -85,20 +104,20 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
85
104
|
}, "handleKeyDown");
|
|
86
105
|
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
87
106
|
}
|
|
88
|
-
}, [c, g]), /* @__PURE__ */ (0, b.jsxs)(
|
|
107
|
+
}, [c, g]), /* @__PURE__ */ (0, b.jsxs)(ne, {
|
|
89
108
|
ref: l,
|
|
90
109
|
role: "region",
|
|
91
110
|
"aria-label": a.replace("{hotkey}", m),
|
|
92
111
|
tabIndex: -1,
|
|
93
112
|
style: { pointerEvents: h ? void 0 : "none" },
|
|
94
113
|
children: [
|
|
95
|
-
h && /* @__PURE__ */ (0, b.jsx)(
|
|
114
|
+
h && /* @__PURE__ */ (0, b.jsx)(he, {
|
|
96
115
|
ref: u,
|
|
97
116
|
onFocusFromOutsideViewport: () => {
|
|
98
117
|
N(g({ tabbingDirection: "forwards" }));
|
|
99
118
|
}
|
|
100
119
|
}),
|
|
101
|
-
/* @__PURE__ */ (0, b.jsx)(
|
|
120
|
+
/* @__PURE__ */ (0, b.jsx)(oe.Slot, {
|
|
102
121
|
scope: r,
|
|
103
122
|
children: /* @__PURE__ */ (0, b.jsx)(_.ol, {
|
|
104
123
|
tabIndex: -1,
|
|
@@ -106,7 +125,7 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
106
125
|
ref: p
|
|
107
126
|
})
|
|
108
127
|
}),
|
|
109
|
-
h && /* @__PURE__ */ (0, b.jsx)(
|
|
128
|
+
h && /* @__PURE__ */ (0, b.jsx)(he, {
|
|
110
129
|
ref: d,
|
|
111
130
|
onFocusFromOutsideViewport: () => {
|
|
112
131
|
N(g({ tabbingDirection: "backwards" }));
|
|
@@ -114,8 +133,8 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
114
133
|
})
|
|
115
134
|
]
|
|
116
135
|
});
|
|
117
|
-
}, "ToastViewport")),
|
|
118
|
-
let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a =
|
|
136
|
+
}, "ToastViewport")), me = "ToastFocusProxy", he = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
137
|
+
let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = D(me, n);
|
|
119
138
|
return /* @__PURE__ */ (0, b.jsx)(o, {
|
|
120
139
|
tabIndex: 0,
|
|
121
140
|
...i,
|
|
@@ -126,55 +145,55 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
126
145
|
a.viewport?.contains(t) || r();
|
|
127
146
|
}
|
|
128
147
|
});
|
|
129
|
-
}, "ToastFocusProxy")),
|
|
130
|
-
let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] =
|
|
148
|
+
}, "ToastFocusProxy")), j = "Toast", ge = "toast.swipeStart", _e = "toast.swipeMove", ve = "toast.swipeCancel", ye = "toast.swipeEnd", be = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
149
|
+
let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] = g({
|
|
131
150
|
prop: r,
|
|
132
151
|
defaultProp: i ?? !0,
|
|
133
152
|
onChange: a,
|
|
134
|
-
caller:
|
|
153
|
+
caller: j
|
|
135
154
|
});
|
|
136
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
155
|
+
return /* @__PURE__ */ (0, b.jsx)(v, {
|
|
137
156
|
present: n || s,
|
|
138
|
-
children: /* @__PURE__ */ (0, b.jsx)(
|
|
157
|
+
children: /* @__PURE__ */ (0, b.jsx)(Ce, {
|
|
139
158
|
open: s,
|
|
140
159
|
...o,
|
|
141
160
|
ref: t,
|
|
142
161
|
onClose: () => c(!1),
|
|
143
|
-
onPause:
|
|
144
|
-
onResume:
|
|
145
|
-
onSwipeStart:
|
|
162
|
+
onPause: h(e.onPause),
|
|
163
|
+
onResume: h(e.onResume),
|
|
164
|
+
onSwipeStart: p(e.onSwipeStart, (e) => {
|
|
146
165
|
e.currentTarget.setAttribute("data-swipe", "start");
|
|
147
166
|
}),
|
|
148
|
-
onSwipeMove:
|
|
167
|
+
onSwipeMove: p(e.onSwipeMove, (e) => {
|
|
149
168
|
let { x: t, y: n } = e.detail.delta;
|
|
150
169
|
e.currentTarget.setAttribute("data-swipe", "move"), e.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${n}px`);
|
|
151
170
|
}),
|
|
152
|
-
onSwipeCancel:
|
|
171
|
+
onSwipeCancel: p(e.onSwipeCancel, (e) => {
|
|
153
172
|
e.currentTarget.setAttribute("data-swipe", "cancel"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
154
173
|
}),
|
|
155
|
-
onSwipeEnd:
|
|
174
|
+
onSwipeEnd: p(e.onSwipeEnd, (e) => {
|
|
156
175
|
let { x: t, y: n } = e.detail.delta;
|
|
157
176
|
e.currentTarget.setAttribute("data-swipe", "end"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${n}px`), c(!1);
|
|
158
177
|
})
|
|
159
178
|
})
|
|
160
179
|
});
|
|
161
|
-
}, "Toast")), [
|
|
162
|
-
let { __scopeToast: r, type: i =
|
|
180
|
+
}, "Toast")), [xe, Se] = T(j, { onClose() {} }), Ce = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
181
|
+
let { __scopeToast: r, type: i = ce.Foreground, duration: a, open: o, onClose: s, onEscapeKeyDown: c, onPause: l, onResume: u, onSwipeStart: d, onSwipeMove: f, onSwipeCancel: m, onSwipeEnd: g, ...te } = e, v = D(j, r), ne = se(r), [x, ie] = y.useState(null), ae = n(t, ie), C = y.useRef(null), w = y.useRef(null), T = a || v.duration, le = y.useRef(0), E = y.useRef(T), O = y.useRef(0), { onToastAdd: ue, onToastRemove: de } = v, k = h(() => {
|
|
163
182
|
x?.contains(document.activeElement) && v.viewport?.focus(), s();
|
|
164
|
-
}),
|
|
165
|
-
!e || e === Infinity || (window.clearTimeout(O.current),
|
|
183
|
+
}), A = y.useCallback((e) => {
|
|
184
|
+
!e || e === Infinity || (window.clearTimeout(O.current), le.current = (/* @__PURE__ */ new Date()).getTime(), O.current = window.setTimeout(k, e));
|
|
166
185
|
}, [k]);
|
|
167
186
|
y.useEffect(() => {
|
|
168
187
|
let e = v.viewport;
|
|
169
188
|
if (e) {
|
|
170
189
|
let t = /* @__PURE__ */ S(() => {
|
|
171
|
-
|
|
190
|
+
A(E.current), u?.();
|
|
172
191
|
}, "handleResume"), n = /* @__PURE__ */ S(() => {
|
|
173
|
-
let e = (/* @__PURE__ */ new Date()).getTime() -
|
|
174
|
-
|
|
192
|
+
let e = (/* @__PURE__ */ new Date()).getTime() - le.current;
|
|
193
|
+
E.current -= e, window.clearTimeout(O.current), l?.();
|
|
175
194
|
}, "handlePause");
|
|
176
|
-
return e.addEventListener(
|
|
177
|
-
e.removeEventListener(
|
|
195
|
+
return e.addEventListener(fe, n), e.addEventListener(pe, t), () => {
|
|
196
|
+
e.removeEventListener(fe, n), e.removeEventListener(pe, t);
|
|
178
197
|
};
|
|
179
198
|
}
|
|
180
199
|
}, [
|
|
@@ -182,31 +201,31 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
182
201
|
T,
|
|
183
202
|
l,
|
|
184
203
|
u,
|
|
185
|
-
|
|
204
|
+
A
|
|
186
205
|
]), y.useEffect(() => {
|
|
187
|
-
o && !v.isClosePausedRef.current &&
|
|
206
|
+
E.current = T, o && !v.isClosePausedRef.current && A(T);
|
|
188
207
|
}, [
|
|
189
208
|
o,
|
|
190
209
|
T,
|
|
191
210
|
v.isClosePausedRef,
|
|
192
|
-
|
|
211
|
+
A
|
|
193
212
|
]), y.useEffect(() => () => {
|
|
194
213
|
window.clearTimeout(O.current);
|
|
195
|
-
}, []), y.useEffect(() => (
|
|
196
|
-
let
|
|
197
|
-
return v.viewport ? /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [
|
|
214
|
+
}, []), y.useEffect(() => (ue(), () => de()), [ue, de]);
|
|
215
|
+
let me = y.useMemo(() => x ? Me(x) : null, [x]);
|
|
216
|
+
return v.viewport ? /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [me && /* @__PURE__ */ (0, b.jsx)(we, {
|
|
198
217
|
__scopeToast: r,
|
|
199
218
|
role: "status",
|
|
200
|
-
"aria-live": i ===
|
|
201
|
-
children:
|
|
202
|
-
}), /* @__PURE__ */ (0, b.jsx)(
|
|
219
|
+
"aria-live": i === ce.Foreground ? "assertive" : "polite",
|
|
220
|
+
children: me
|
|
221
|
+
}), /* @__PURE__ */ (0, b.jsx)(xe, {
|
|
203
222
|
scope: r,
|
|
204
223
|
onClose: k,
|
|
205
|
-
children: re.createPortal(/* @__PURE__ */ (0, b.jsx)(
|
|
224
|
+
children: re.createPortal(/* @__PURE__ */ (0, b.jsx)(oe.ItemSlot, {
|
|
206
225
|
scope: r,
|
|
207
226
|
children: /* @__PURE__ */ (0, b.jsx)(ee, {
|
|
208
227
|
asChild: !0,
|
|
209
|
-
onEscapeKeyDown:
|
|
228
|
+
onEscapeKeyDown: p(c, (e) => {
|
|
210
229
|
ne().some((t) => t.ref.current?.contains(e.target)) || k();
|
|
211
230
|
}),
|
|
212
231
|
children: /* @__PURE__ */ (0, b.jsx)(_.li, {
|
|
@@ -214,22 +233,22 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
214
233
|
"data-state": o ? "open" : "closed",
|
|
215
234
|
"data-swipe-direction": v.swipeDirection,
|
|
216
235
|
...te,
|
|
217
|
-
ref:
|
|
236
|
+
ref: ae,
|
|
218
237
|
style: {
|
|
219
238
|
userSelect: "none",
|
|
220
239
|
touchAction: "none",
|
|
221
240
|
...e.style
|
|
222
241
|
},
|
|
223
|
-
onKeyDown:
|
|
242
|
+
onKeyDown: p(e.onKeyDown, (e) => {
|
|
224
243
|
e.key === "Escape" && (c?.(e.nativeEvent), e.nativeEvent.defaultPrevented || k());
|
|
225
244
|
}),
|
|
226
|
-
onPointerDown:
|
|
245
|
+
onPointerDown: p(e.onPointerDown, (e) => {
|
|
227
246
|
e.button === 0 && (C.current = {
|
|
228
247
|
x: e.clientX,
|
|
229
248
|
y: e.clientY
|
|
230
249
|
});
|
|
231
250
|
}),
|
|
232
|
-
onPointerMove:
|
|
251
|
+
onPointerMove: p(e.onPointerMove, (e) => {
|
|
233
252
|
if (!C.current) return;
|
|
234
253
|
let t = e.clientX - C.current.x, n = e.clientY - C.current.y, r = !!w.current, i = ["left", "right"].includes(v.swipeDirection), a = ["left", "up"].includes(v.swipeDirection) ? Math.min : Math.max, o = i ? a(0, t) : 0, s = i ? 0 : a(0, n), c = e.pointerType === "touch" ? 10 : 2, l = {
|
|
235
254
|
x: o,
|
|
@@ -238,28 +257,28 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
238
257
|
originalEvent: e,
|
|
239
258
|
delta: l
|
|
240
259
|
};
|
|
241
|
-
r ? (w.current = l, M(
|
|
260
|
+
r ? (w.current = l, M(_e, f, u, { discrete: !1 })) : Ne(l, v.swipeDirection, c) ? (w.current = l, M(ge, d, u, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (C.current = null);
|
|
242
261
|
}),
|
|
243
|
-
onPointerUp:
|
|
262
|
+
onPointerUp: p(e.onPointerUp, (e) => {
|
|
244
263
|
let t = w.current, n = e.target;
|
|
245
264
|
if (n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), w.current = null, C.current = null, t) {
|
|
246
265
|
let n = e.currentTarget, r = {
|
|
247
266
|
originalEvent: e,
|
|
248
267
|
delta: t
|
|
249
268
|
};
|
|
250
|
-
|
|
269
|
+
Ne(t, v.swipeDirection, v.swipeThreshold) ? M(ye, g, r, { discrete: !0 }) : M(ve, m, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
|
|
251
270
|
}
|
|
252
271
|
})
|
|
253
272
|
})
|
|
254
273
|
})
|
|
255
274
|
}), v.viewport)
|
|
256
275
|
})] }) : null;
|
|
257
|
-
}, "ToastImpl")),
|
|
258
|
-
let { __scopeToast: t, children: n, ...r } = e, i =
|
|
259
|
-
return
|
|
276
|
+
}, "ToastImpl")), we = /* @__PURE__ */ S((e) => {
|
|
277
|
+
let { __scopeToast: t, children: n, ...r } = e, i = D(j, t), [a, s] = y.useState(!1), [c, l] = y.useState(!1);
|
|
278
|
+
return Pe(() => s(!0)), y.useEffect(() => {
|
|
260
279
|
let e = window.setTimeout(() => l(!0), 1e3);
|
|
261
280
|
return () => window.clearTimeout(e);
|
|
262
|
-
}, []), c ? null : /* @__PURE__ */ (0, b.jsx)(
|
|
281
|
+
}, []), c ? null : /* @__PURE__ */ (0, b.jsx)(te, {
|
|
263
282
|
asChild: !0,
|
|
264
283
|
container: i.announcerContainer || void 0,
|
|
265
284
|
children: /* @__PURE__ */ (0, b.jsx)(o, {
|
|
@@ -271,40 +290,40 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
271
290
|
] })
|
|
272
291
|
})
|
|
273
292
|
});
|
|
274
|
-
}, "ToastAnnounce"),
|
|
293
|
+
}, "ToastAnnounce"), Te = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
275
294
|
let { __scopeToast: n, ...r } = e;
|
|
276
295
|
return /* @__PURE__ */ (0, b.jsx)(_.div, {
|
|
277
296
|
...r,
|
|
278
297
|
ref: t
|
|
279
298
|
});
|
|
280
|
-
}, "ToastTitle")),
|
|
299
|
+
}, "ToastTitle")), Ee = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
281
300
|
let { __scopeToast: n, ...r } = e;
|
|
282
301
|
return /* @__PURE__ */ (0, b.jsx)(_.div, {
|
|
283
302
|
...r,
|
|
284
303
|
ref: t
|
|
285
304
|
});
|
|
286
|
-
}, "ToastDescription")),
|
|
305
|
+
}, "ToastDescription")), De = "ToastAction", Oe = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
287
306
|
let { altText: n, ...r } = e;
|
|
288
|
-
return n.trim() ? /* @__PURE__ */ (0, b.jsx)(
|
|
307
|
+
return n.trim() ? /* @__PURE__ */ (0, b.jsx)(je, {
|
|
289
308
|
altText: n,
|
|
290
309
|
asChild: !0,
|
|
291
|
-
children: /* @__PURE__ */ (0, b.jsx)(
|
|
310
|
+
children: /* @__PURE__ */ (0, b.jsx)(Ae, {
|
|
292
311
|
...r,
|
|
293
312
|
ref: t
|
|
294
313
|
})
|
|
295
|
-
}) : (console.error(`Invalid prop \`altText\` supplied to \`${
|
|
296
|
-
}, "ToastAction")),
|
|
297
|
-
let { __scopeToast: n, ...r } = e, i =
|
|
298
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
314
|
+
}) : (console.error(`Invalid prop \`altText\` supplied to \`${De}\`. Expected non-empty \`string\`.`), null);
|
|
315
|
+
}, "ToastAction")), ke = "ToastClose", Ae = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
316
|
+
let { __scopeToast: n, ...r } = e, i = Se(ke, n);
|
|
317
|
+
return /* @__PURE__ */ (0, b.jsx)(je, {
|
|
299
318
|
asChild: !0,
|
|
300
319
|
children: /* @__PURE__ */ (0, b.jsx)(_.button, {
|
|
301
320
|
type: "button",
|
|
302
321
|
...r,
|
|
303
322
|
ref: t,
|
|
304
|
-
onClick:
|
|
323
|
+
onClick: p(e.onClick, i.onClose)
|
|
305
324
|
})
|
|
306
325
|
});
|
|
307
|
-
}, "ToastClose")),
|
|
326
|
+
}, "ToastClose")), je = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
|
|
308
327
|
let { __scopeToast: n, altText: r, ...i } = e;
|
|
309
328
|
return /* @__PURE__ */ (0, b.jsx)(_.div, {
|
|
310
329
|
"data-radix-toast-announce-exclude": "",
|
|
@@ -313,49 +332,49 @@ var y = /* @__PURE__ */ e(i(), 1), re = /* @__PURE__ */ e(l(), 1), b = u(), x =
|
|
|
313
332
|
ref: t
|
|
314
333
|
});
|
|
315
334
|
}, "ToastAnnounceExclude"));
|
|
316
|
-
function
|
|
335
|
+
function Me(e) {
|
|
317
336
|
let t = [];
|
|
318
337
|
return Array.from(e.childNodes).forEach((e) => {
|
|
319
|
-
if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent),
|
|
338
|
+
if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), Fe(e)) {
|
|
320
339
|
let n = e.ariaHidden || e.hidden || e.style.display === "none", r = e.dataset.radixToastAnnounceExclude === "";
|
|
321
340
|
if (!n) {
|
|
322
341
|
if (r) {
|
|
323
342
|
let n = e.dataset.radixToastAnnounceAlt;
|
|
324
343
|
n && t.push(n);
|
|
325
|
-
} else t.push(...
|
|
344
|
+
} else t.push(...Me(e));
|
|
326
345
|
}
|
|
327
346
|
}
|
|
328
347
|
}), t;
|
|
329
348
|
}
|
|
330
|
-
S(
|
|
349
|
+
S(Me, "getAnnounceTextContent");
|
|
331
350
|
function M(e, t, n, { discrete: r }) {
|
|
332
351
|
let i = n.originalEvent.currentTarget, a = new CustomEvent(e, {
|
|
333
352
|
bubbles: !0,
|
|
334
353
|
cancelable: !0,
|
|
335
354
|
detail: n
|
|
336
355
|
});
|
|
337
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
356
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? d(i, a) : i.dispatchEvent(a);
|
|
338
357
|
}
|
|
339
358
|
S(M, "handleAndDispatchCustomEvent");
|
|
340
|
-
var
|
|
359
|
+
var Ne = /* @__PURE__ */ S((e, t, n = 0) => {
|
|
341
360
|
let r = Math.abs(e.x), i = Math.abs(e.y), a = r > i;
|
|
342
|
-
return t ===
|
|
361
|
+
return t === w.Left || t === w.Right ? a && r > n : !a && i > n;
|
|
343
362
|
}, "isDeltaInDirection");
|
|
344
|
-
function
|
|
345
|
-
let t =
|
|
346
|
-
|
|
363
|
+
function Pe(e = () => {}) {
|
|
364
|
+
let t = h(e);
|
|
365
|
+
f(() => {
|
|
347
366
|
let e = 0, n = 0;
|
|
348
367
|
return e = window.requestAnimationFrame(() => n = window.requestAnimationFrame(t)), () => {
|
|
349
368
|
window.cancelAnimationFrame(e), window.cancelAnimationFrame(n);
|
|
350
369
|
};
|
|
351
370
|
}, [t]);
|
|
352
371
|
}
|
|
353
|
-
S(
|
|
354
|
-
function
|
|
372
|
+
S(Pe, "useNextFrame");
|
|
373
|
+
function Fe(e) {
|
|
355
374
|
return e.nodeType === e.ELEMENT_NODE;
|
|
356
375
|
}
|
|
357
|
-
S(
|
|
358
|
-
function
|
|
376
|
+
S(Fe, "isHTMLElement");
|
|
377
|
+
function Ie(e) {
|
|
359
378
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ S((e) => {
|
|
360
379
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
361
380
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -363,16 +382,15 @@ function Me(e) {
|
|
|
363
382
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
364
383
|
return t;
|
|
365
384
|
}
|
|
366
|
-
S(
|
|
385
|
+
S(Ie, "getTabbableCandidates");
|
|
367
386
|
function N(e) {
|
|
368
387
|
let t = document.activeElement;
|
|
369
388
|
return e.some((e) => e === t || (e.focus(), document.activeElement !== t));
|
|
370
389
|
}
|
|
371
390
|
S(N, "focusFirst");
|
|
372
|
-
var Ne = D, Pe = de, Fe = j, Ie = xe, Le = Se, Re = we, ze = Ee;
|
|
373
391
|
//#endregion
|
|
374
392
|
//#region ../node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.js
|
|
375
|
-
function
|
|
393
|
+
function Le() {
|
|
376
394
|
return {
|
|
377
395
|
async: !1,
|
|
378
396
|
breaks: !1,
|
|
@@ -386,8 +404,8 @@ function Be() {
|
|
|
386
404
|
walkTokens: null
|
|
387
405
|
};
|
|
388
406
|
}
|
|
389
|
-
var P =
|
|
390
|
-
function
|
|
407
|
+
var P = Le();
|
|
408
|
+
function Re(e) {
|
|
391
409
|
P = e;
|
|
392
410
|
}
|
|
393
411
|
var F = { exec: () => null };
|
|
@@ -458,92 +476,92 @@ var L = {
|
|
|
458
476
|
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
459
477
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
460
478
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
461
|
-
},
|
|
462
|
-
blockquote: I(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",
|
|
463
|
-
code:
|
|
464
|
-
def:
|
|
465
|
-
fences:
|
|
466
|
-
heading:
|
|
479
|
+
}, ze = /^(?:[ \t]*(?:\n|$))+/, Be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ve = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, R = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, He = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ue = /(?:[*+-]|\d{1,9}[.)])/, We = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ge = I(We).replace(/bull/g, Ue).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ke = I(We).replace(/bull/g, Ue).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), qe = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Je = /^[^\n]+/, Ye = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Xe = I(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ye).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ze = I(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ue).getRegex(), z = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Qe = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, $e = I("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Qe).replace("tag", z).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), et = I(qe).replace("hr", R).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", z).getRegex(), tt = {
|
|
480
|
+
blockquote: I(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", et).getRegex(),
|
|
481
|
+
code: Be,
|
|
482
|
+
def: Xe,
|
|
483
|
+
fences: Ve,
|
|
484
|
+
heading: He,
|
|
467
485
|
hr: R,
|
|
468
|
-
html:
|
|
469
|
-
lheading:
|
|
470
|
-
list:
|
|
471
|
-
newline:
|
|
472
|
-
paragraph:
|
|
486
|
+
html: $e,
|
|
487
|
+
lheading: Ge,
|
|
488
|
+
list: Ze,
|
|
489
|
+
newline: ze,
|
|
490
|
+
paragraph: et,
|
|
473
491
|
table: F,
|
|
474
|
-
text:
|
|
475
|
-
},
|
|
476
|
-
...
|
|
477
|
-
lheading:
|
|
478
|
-
table:
|
|
479
|
-
paragraph: I(
|
|
480
|
-
},
|
|
481
|
-
...
|
|
482
|
-
html: I("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",
|
|
492
|
+
text: Je
|
|
493
|
+
}, nt = I("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", R).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", z).getRegex(), rt = {
|
|
494
|
+
...tt,
|
|
495
|
+
lheading: Ke,
|
|
496
|
+
table: nt,
|
|
497
|
+
paragraph: I(qe).replace("hr", R).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", nt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", z).getRegex()
|
|
498
|
+
}, it = {
|
|
499
|
+
...tt,
|
|
500
|
+
html: I("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Qe).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
483
501
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
484
502
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
485
503
|
fences: F,
|
|
486
504
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
487
|
-
paragraph: I(
|
|
488
|
-
},
|
|
505
|
+
paragraph: I(qe).replace("hr", R).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Ge).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
506
|
+
}, at = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ot = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, st = /^( {2,}|\\)\n(?!\s*$)/, ct = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, B = /[\p{P}\p{S}]/u, lt = /[\s\p{P}\p{S}]/u, ut = /[^\s\p{P}\p{S}]/u, dt = I(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, lt).getRegex(), ft = /(?!~)[\p{P}\p{S}]/u, pt = /(?!~)[\s\p{P}\p{S}]/u, mt = /(?:[^\s\p{P}\p{S}]|~)/u, ht = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, gt = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, _t = I(gt, "u").replace(/punct/g, B).getRegex(), vt = I(gt, "u").replace(/punct/g, ft).getRegex(), yt = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", bt = I(yt, "gu").replace(/notPunctSpace/g, ut).replace(/punctSpace/g, lt).replace(/punct/g, B).getRegex(), xt = I(yt, "gu").replace(/notPunctSpace/g, mt).replace(/punctSpace/g, pt).replace(/punct/g, ft).getRegex(), St = I("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ut).replace(/punctSpace/g, lt).replace(/punct/g, B).getRegex(), Ct = I(/\\(punct)/, "gu").replace(/punct/g, B).getRegex(), wt = I(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Tt = I(Qe).replace("(?:-->|$)", "-->").getRegex(), Et = I("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Tt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), V = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Dt = I(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", V).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ot = I(/^!?\[(label)\]\[(ref)\]/).replace("label", V).replace("ref", Ye).getRegex(), kt = I(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ye).getRegex(), At = {
|
|
489
507
|
_backpedal: F,
|
|
490
|
-
anyPunctuation:
|
|
491
|
-
autolink:
|
|
492
|
-
blockSkip:
|
|
493
|
-
br:
|
|
494
|
-
code:
|
|
508
|
+
anyPunctuation: Ct,
|
|
509
|
+
autolink: wt,
|
|
510
|
+
blockSkip: ht,
|
|
511
|
+
br: st,
|
|
512
|
+
code: ot,
|
|
495
513
|
del: F,
|
|
496
|
-
emStrongLDelim:
|
|
497
|
-
emStrongRDelimAst:
|
|
498
|
-
emStrongRDelimUnd:
|
|
499
|
-
escape:
|
|
500
|
-
link:
|
|
501
|
-
nolink:
|
|
502
|
-
punctuation:
|
|
503
|
-
reflink:
|
|
504
|
-
reflinkSearch: I("reflink|nolink(?!\\()", "g").replace("reflink",
|
|
505
|
-
tag:
|
|
506
|
-
text:
|
|
514
|
+
emStrongLDelim: _t,
|
|
515
|
+
emStrongRDelimAst: bt,
|
|
516
|
+
emStrongRDelimUnd: St,
|
|
517
|
+
escape: at,
|
|
518
|
+
link: Dt,
|
|
519
|
+
nolink: kt,
|
|
520
|
+
punctuation: dt,
|
|
521
|
+
reflink: Ot,
|
|
522
|
+
reflinkSearch: I("reflink|nolink(?!\\()", "g").replace("reflink", Ot).replace("nolink", kt).getRegex(),
|
|
523
|
+
tag: Et,
|
|
524
|
+
text: ct,
|
|
507
525
|
url: F
|
|
508
|
-
},
|
|
509
|
-
...
|
|
526
|
+
}, jt = {
|
|
527
|
+
...At,
|
|
510
528
|
link: I(/^!?\[(label)\]\((.*?)\)/).replace("label", V).getRegex(),
|
|
511
529
|
reflink: I(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", V).getRegex()
|
|
512
|
-
},
|
|
513
|
-
...
|
|
514
|
-
emStrongRDelimAst:
|
|
515
|
-
emStrongLDelim:
|
|
530
|
+
}, Mt = {
|
|
531
|
+
...At,
|
|
532
|
+
emStrongRDelimAst: xt,
|
|
533
|
+
emStrongLDelim: vt,
|
|
516
534
|
url: I(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
517
535
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
518
536
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
519
537
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
520
|
-
},
|
|
521
|
-
...
|
|
522
|
-
br: I(
|
|
523
|
-
text: I(
|
|
538
|
+
}, Nt = {
|
|
539
|
+
...Mt,
|
|
540
|
+
br: I(st).replace("{2,}", "*").getRegex(),
|
|
541
|
+
text: I(Mt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
524
542
|
}, H = {
|
|
525
|
-
normal:
|
|
526
|
-
gfm:
|
|
527
|
-
pedantic:
|
|
543
|
+
normal: tt,
|
|
544
|
+
gfm: rt,
|
|
545
|
+
pedantic: it
|
|
528
546
|
}, U = {
|
|
529
|
-
normal:
|
|
530
|
-
gfm:
|
|
531
|
-
breaks:
|
|
532
|
-
pedantic:
|
|
533
|
-
},
|
|
547
|
+
normal: At,
|
|
548
|
+
gfm: Mt,
|
|
549
|
+
breaks: Nt,
|
|
550
|
+
pedantic: jt
|
|
551
|
+
}, Pt = {
|
|
534
552
|
"&": "&",
|
|
535
553
|
"<": "<",
|
|
536
554
|
">": ">",
|
|
537
555
|
"\"": """,
|
|
538
556
|
"'": "'"
|
|
539
|
-
},
|
|
557
|
+
}, Ft = (e) => Pt[e];
|
|
540
558
|
function W(e, t) {
|
|
541
559
|
if (t) {
|
|
542
|
-
if (L.escapeTest.test(e)) return e.replace(L.escapeReplace,
|
|
543
|
-
} else if (L.escapeTestNoEncode.test(e)) return e.replace(L.escapeReplaceNoEncode,
|
|
560
|
+
if (L.escapeTest.test(e)) return e.replace(L.escapeReplace, Ft);
|
|
561
|
+
} else if (L.escapeTestNoEncode.test(e)) return e.replace(L.escapeReplaceNoEncode, Ft);
|
|
544
562
|
return e;
|
|
545
563
|
}
|
|
546
|
-
function
|
|
564
|
+
function It(e) {
|
|
547
565
|
try {
|
|
548
566
|
e = encodeURI(e).replace(L.percentDecode, "%");
|
|
549
567
|
} catch {
|
|
@@ -551,7 +569,7 @@ function zt(e) {
|
|
|
551
569
|
}
|
|
552
570
|
return e;
|
|
553
571
|
}
|
|
554
|
-
function
|
|
572
|
+
function Lt(e, t) {
|
|
555
573
|
let n = e.replace(L.findPipe, (e, t, n) => {
|
|
556
574
|
let r = !1, i = t;
|
|
557
575
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
@@ -576,7 +594,7 @@ function G(e, t, n) {
|
|
|
576
594
|
}
|
|
577
595
|
return e.slice(0, r - i);
|
|
578
596
|
}
|
|
579
|
-
function
|
|
597
|
+
function Rt(e, t) {
|
|
580
598
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
581
599
|
let n = 0;
|
|
582
600
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -584,7 +602,7 @@ function Vt(e, t) {
|
|
|
584
602
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
585
603
|
return n > 0 ? -2 : -1;
|
|
586
604
|
}
|
|
587
|
-
function
|
|
605
|
+
function zt(e, t, n, r, i) {
|
|
588
606
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
589
607
|
r.state.inLink = !0;
|
|
590
608
|
let c = {
|
|
@@ -597,7 +615,7 @@ function Ht(e, t, n, r, i) {
|
|
|
597
615
|
};
|
|
598
616
|
return r.state.inLink = !1, c;
|
|
599
617
|
}
|
|
600
|
-
function
|
|
618
|
+
function Bt(e, t, n) {
|
|
601
619
|
let r = e.match(n.other.indentCodeCompensation);
|
|
602
620
|
if (r === null) return t;
|
|
603
621
|
let i = r[1];
|
|
@@ -637,7 +655,7 @@ var K = class {
|
|
|
637
655
|
fences(e) {
|
|
638
656
|
let t = this.rules.block.fences.exec(e);
|
|
639
657
|
if (t) {
|
|
640
|
-
let e = t[0], n =
|
|
658
|
+
let e = t[0], n = Bt(e, t[3] || "", this.rules);
|
|
641
659
|
return {
|
|
642
660
|
type: "code",
|
|
643
661
|
raw: e,
|
|
@@ -788,7 +806,7 @@ ${c}` : c;
|
|
|
788
806
|
table(e) {
|
|
789
807
|
let t = this.rules.block.table.exec(e);
|
|
790
808
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
791
|
-
let n =
|
|
809
|
+
let n = Lt(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
792
810
|
type: "table",
|
|
793
811
|
raw: t[0],
|
|
794
812
|
header: [],
|
|
@@ -803,7 +821,7 @@ ${c}` : c;
|
|
|
803
821
|
header: !0,
|
|
804
822
|
align: a.align[e]
|
|
805
823
|
});
|
|
806
|
-
for (let e of i) a.rows.push(
|
|
824
|
+
for (let e of i) a.rows.push(Lt(e, a.header.length).map((e, t) => ({
|
|
807
825
|
text: e,
|
|
808
826
|
tokens: this.lexer.inline(e),
|
|
809
827
|
header: !1,
|
|
@@ -871,7 +889,7 @@ ${c}` : c;
|
|
|
871
889
|
let t = G(e.slice(0, -1), "\\");
|
|
872
890
|
if ((e.length - t.length) % 2 == 0) return;
|
|
873
891
|
} else {
|
|
874
|
-
let e =
|
|
892
|
+
let e = Rt(t[2], "()");
|
|
875
893
|
if (e === -2) return;
|
|
876
894
|
if (e > -1) {
|
|
877
895
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -883,7 +901,7 @@ ${c}` : c;
|
|
|
883
901
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
884
902
|
e && (n = e[1], r = e[3]);
|
|
885
903
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
886
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
904
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), zt(t, {
|
|
887
905
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
888
906
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
889
907
|
}, t[0], this.lexer, this.rules);
|
|
@@ -901,7 +919,7 @@ ${c}` : c;
|
|
|
901
919
|
text: e
|
|
902
920
|
};
|
|
903
921
|
}
|
|
904
|
-
return
|
|
922
|
+
return zt(n, e, n[0], this.lexer, this.rules);
|
|
905
923
|
}
|
|
906
924
|
}
|
|
907
925
|
emStrong(e, t, n = "") {
|
|
@@ -1328,7 +1346,7 @@ ${e}</tr>
|
|
|
1328
1346
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1329
1347
|
}
|
|
1330
1348
|
link({ href: e, title: t, tokens: n }) {
|
|
1331
|
-
let r = this.parser.parseInline(n), i =
|
|
1349
|
+
let r = this.parser.parseInline(n), i = It(e);
|
|
1332
1350
|
if (i === null) return r;
|
|
1333
1351
|
e = i;
|
|
1334
1352
|
let a = "<a href=\"" + e + "\"";
|
|
@@ -1336,7 +1354,7 @@ ${e}</tr>
|
|
|
1336
1354
|
}
|
|
1337
1355
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1338
1356
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1339
|
-
let i =
|
|
1357
|
+
let i = It(e);
|
|
1340
1358
|
if (i === null) return W(n);
|
|
1341
1359
|
e = i;
|
|
1342
1360
|
let a = `<img src="${e}" alt="${n}"`;
|
|
@@ -1345,7 +1363,7 @@ ${e}</tr>
|
|
|
1345
1363
|
text(e) {
|
|
1346
1364
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : W(e.text);
|
|
1347
1365
|
}
|
|
1348
|
-
},
|
|
1366
|
+
}, Vt = class {
|
|
1349
1367
|
strong({ text: e }) {
|
|
1350
1368
|
return e;
|
|
1351
1369
|
}
|
|
@@ -1378,7 +1396,7 @@ ${e}</tr>
|
|
|
1378
1396
|
renderer;
|
|
1379
1397
|
textRenderer;
|
|
1380
1398
|
constructor(e) {
|
|
1381
|
-
this.options = e || P, this.options.renderer = this.options.renderer || new J(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new
|
|
1399
|
+
this.options = e || P, this.options.renderer = this.options.renderer || new J(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Vt();
|
|
1382
1400
|
}
|
|
1383
1401
|
static parse(t, n) {
|
|
1384
1402
|
return new e(n).parse(t);
|
|
@@ -1552,13 +1570,13 @@ ${e}</tr>
|
|
|
1552
1570
|
return this.block ? Y.parse : Y.parseInline;
|
|
1553
1571
|
}
|
|
1554
1572
|
}, Z = new class {
|
|
1555
|
-
defaults =
|
|
1573
|
+
defaults = Le();
|
|
1556
1574
|
options = this.setOptions;
|
|
1557
1575
|
parse = this.parseMarkdown(!0);
|
|
1558
1576
|
parseInline = this.parseMarkdown(!1);
|
|
1559
1577
|
Parser = Y;
|
|
1560
1578
|
Renderer = J;
|
|
1561
|
-
TextRenderer =
|
|
1579
|
+
TextRenderer = Vt;
|
|
1562
1580
|
Lexer = q;
|
|
1563
1581
|
Tokenizer = K;
|
|
1564
1582
|
Hooks = X;
|
|
@@ -1721,64 +1739,64 @@ function Q(e, t) {
|
|
|
1721
1739
|
return Z.parse(e, t);
|
|
1722
1740
|
}
|
|
1723
1741
|
Q.options = Q.setOptions = function(e) {
|
|
1724
|
-
return Z.setOptions(e), Q.defaults = Z.defaults,
|
|
1725
|
-
}, Q.getDefaults =
|
|
1726
|
-
return Z.use(...e), Q.defaults = Z.defaults,
|
|
1742
|
+
return Z.setOptions(e), Q.defaults = Z.defaults, Re(Q.defaults), Q;
|
|
1743
|
+
}, Q.getDefaults = Le, Q.defaults = P, Q.use = function(...e) {
|
|
1744
|
+
return Z.use(...e), Q.defaults = Z.defaults, Re(Q.defaults), Q;
|
|
1727
1745
|
}, Q.walkTokens = function(e, t) {
|
|
1728
1746
|
return Z.walkTokens(e, t);
|
|
1729
|
-
}, Q.parseInline = Z.parseInline, Q.Parser = Y, Q.parser = Y.parse, Q.Renderer = J, Q.TextRenderer =
|
|
1747
|
+
}, Q.parseInline = Z.parseInline, Q.Parser = Y, Q.parser = Y.parse, Q.Renderer = J, Q.TextRenderer = Vt, Q.Lexer = q, Q.lexer = q.lex, Q.Tokenizer = K, Q.Hooks = X, Q.parse = Q, Q.options, Q.setOptions, Q.use, Q.walkTokens, Q.parseInline, Y.parse, q.lex;
|
|
1730
1748
|
//#endregion
|
|
1731
1749
|
//#region src/components/ui/toast.tsx
|
|
1732
|
-
var $ = a(),
|
|
1750
|
+
var $ = a(), Ht = ue, Ut = y.forwardRef((e, n) => {
|
|
1733
1751
|
let r = (0, $.c)(9), i, a;
|
|
1734
1752
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1735
1753
|
let o;
|
|
1736
1754
|
r[3] === i ? o = r[4] : (o = t("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]", "print:hidden", i), r[3] = i, r[4] = o);
|
|
1737
1755
|
let s;
|
|
1738
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, b.jsx)(
|
|
1756
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, b.jsx)(A, {
|
|
1739
1757
|
ref: n,
|
|
1740
1758
|
className: o,
|
|
1741
1759
|
...a
|
|
1742
1760
|
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1743
1761
|
});
|
|
1744
|
-
|
|
1745
|
-
var
|
|
1762
|
+
Ut.displayName = A.displayName;
|
|
1763
|
+
var Wt = {
|
|
1746
1764
|
default: "bg-background border forced-colors:border-[CanvasText] forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]",
|
|
1747
1765
|
danger: "group destructive text-error border-destructive bg-(--red-1) shadow-md-solid shadow-error forced-colors:border-[CanvasText] forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]"
|
|
1748
|
-
},
|
|
1749
|
-
variants: { variant:
|
|
1766
|
+
}, Gt = r("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-start justify-between gap-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full forced-color-adjust-none", {
|
|
1767
|
+
variants: { variant: Wt },
|
|
1750
1768
|
defaultVariants: { variant: "default" }
|
|
1751
1769
|
});
|
|
1752
|
-
function
|
|
1753
|
-
return typeof e == "string" && e in
|
|
1770
|
+
function Kt(e) {
|
|
1771
|
+
return typeof e == "string" && e in Wt;
|
|
1754
1772
|
}
|
|
1755
|
-
var
|
|
1773
|
+
var qt = y.forwardRef((e, n) => {
|
|
1756
1774
|
let r = (0, $.c)(11), i, a, o;
|
|
1757
1775
|
r[0] === e ? (i = r[1], a = r[2], o = r[3]) : ({className: i, variant: o, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o);
|
|
1758
|
-
let s =
|
|
1759
|
-
r[4] !== i || r[5] !== s ? (c = t(
|
|
1776
|
+
let s = Kt(o) ? o : "default", c;
|
|
1777
|
+
r[4] !== i || r[5] !== s ? (c = t(Gt({ variant: s }), "print:hidden", i), r[4] = i, r[5] = s, r[6] = c) : c = r[6];
|
|
1760
1778
|
let l;
|
|
1761
|
-
return r[7] !== a || r[8] !== n || r[9] !== c ? (l = /* @__PURE__ */ (0, b.jsx)(
|
|
1779
|
+
return r[7] !== a || r[8] !== n || r[9] !== c ? (l = /* @__PURE__ */ (0, b.jsx)(be, {
|
|
1762
1780
|
ref: n,
|
|
1763
1781
|
className: c,
|
|
1764
1782
|
...a
|
|
1765
1783
|
}), r[7] = a, r[8] = n, r[9] = c, r[10] = l) : l = r[10], l;
|
|
1766
1784
|
});
|
|
1767
|
-
|
|
1768
|
-
var
|
|
1785
|
+
qt.displayName = be.displayName;
|
|
1786
|
+
var Jt = y.forwardRef((e, n) => {
|
|
1769
1787
|
let r = (0, $.c)(9), i, a;
|
|
1770
1788
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1771
1789
|
let o;
|
|
1772
1790
|
r[3] === i ? o = r[4] : (o = t("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus-visible:group-[.destructive]:ring-destructive", "forced-color-adjust-none forced-colors:border-[ButtonText] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText] forced-colors:hover:bg-[Highlight] forced-colors:hover:text-[HighlightText] forced-colors:disabled:border-[GrayText] forced-colors:disabled:text-[GrayText]", i), r[3] = i, r[4] = o);
|
|
1773
1791
|
let s;
|
|
1774
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, b.jsx)(
|
|
1792
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, b.jsx)(Oe, {
|
|
1775
1793
|
ref: n,
|
|
1776
1794
|
className: o,
|
|
1777
1795
|
...a
|
|
1778
1796
|
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1779
1797
|
});
|
|
1780
|
-
|
|
1781
|
-
var
|
|
1798
|
+
Jt.displayName = Oe.displayName;
|
|
1799
|
+
var Yt = y.forwardRef((e, n) => {
|
|
1782
1800
|
let r = (0, $.c)(10), i, a;
|
|
1783
1801
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1784
1802
|
let o;
|
|
@@ -1786,7 +1804,7 @@ var Qt = y.forwardRef((e, n) => {
|
|
|
1786
1804
|
let c;
|
|
1787
1805
|
r[5] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, b.jsx)(s, { className: "h-4 w-4" }), r[5] = c) : c = r[5];
|
|
1788
1806
|
let l;
|
|
1789
|
-
return r[6] !== a || r[7] !== n || r[8] !== o ? (l = /* @__PURE__ */ (0, b.jsx)(
|
|
1807
|
+
return r[6] !== a || r[7] !== n || r[8] !== o ? (l = /* @__PURE__ */ (0, b.jsx)(Ae, {
|
|
1790
1808
|
ref: n,
|
|
1791
1809
|
className: o,
|
|
1792
1810
|
"toast-close": "",
|
|
@@ -1794,21 +1812,21 @@ var Qt = y.forwardRef((e, n) => {
|
|
|
1794
1812
|
children: c
|
|
1795
1813
|
}), r[6] = a, r[7] = n, r[8] = o, r[9] = l) : l = r[9], l;
|
|
1796
1814
|
});
|
|
1797
|
-
|
|
1798
|
-
var
|
|
1815
|
+
Yt.displayName = Ae.displayName;
|
|
1816
|
+
var Xt = y.forwardRef((e, n) => {
|
|
1799
1817
|
let r = (0, $.c)(9), i, a;
|
|
1800
1818
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1801
1819
|
let o;
|
|
1802
1820
|
r[3] === i ? o = r[4] : (o = t("text-sm font-semibold", i), r[3] = i, r[4] = o);
|
|
1803
1821
|
let s;
|
|
1804
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, b.jsx)(
|
|
1822
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, b.jsx)(Te, {
|
|
1805
1823
|
ref: n,
|
|
1806
1824
|
className: o,
|
|
1807
1825
|
...a
|
|
1808
1826
|
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1809
1827
|
});
|
|
1810
|
-
|
|
1811
|
-
var
|
|
1828
|
+
Xt.displayName = Te.displayName;
|
|
1829
|
+
var Zt = y.forwardRef((e, n) => {
|
|
1812
1830
|
let r = (0, $.c)(13), i, a, o;
|
|
1813
1831
|
r[0] === e ? (i = r[1], a = r[2], o = r[3]) : ({className: i, onPointerDown: a, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o);
|
|
1814
1832
|
let s;
|
|
@@ -1818,13 +1836,13 @@ var en = y.forwardRef((e, n) => {
|
|
|
1818
1836
|
e.stopPropagation(), a?.(e);
|
|
1819
1837
|
}, r[6] = a, r[7] = c);
|
|
1820
1838
|
let l;
|
|
1821
|
-
return r[8] !== o || r[9] !== n || r[10] !== s || r[11] !== c ? (l = /* @__PURE__ */ (0, b.jsx)(
|
|
1839
|
+
return r[8] !== o || r[9] !== n || r[10] !== s || r[11] !== c ? (l = /* @__PURE__ */ (0, b.jsx)(Ee, {
|
|
1822
1840
|
ref: n,
|
|
1823
1841
|
className: s,
|
|
1824
1842
|
onPointerDown: c,
|
|
1825
1843
|
...o
|
|
1826
1844
|
}), r[8] = o, r[9] = n, r[10] = s, r[11] = c, r[12] = l) : l = r[12], l;
|
|
1827
1845
|
});
|
|
1828
|
-
|
|
1846
|
+
Zt.displayName = Ee.displayName;
|
|
1829
1847
|
//#endregion
|
|
1830
|
-
export {
|
|
1848
|
+
export { Ht as a, Q as c, Zt as i, Jt as n, Xt as o, Yt as r, Ut as s, qt as t };
|