@marimo-team/islands 0.22.1-dev9 → 0.22.2
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-iT7t3FxV.js → ConnectedDataExplorerComponent-DuD8BVl6.js} +54 -54
- package/dist/{Plot-WhbJAbBh.js → Plot-BxlSHo0G.js} +47 -38
- package/dist/_basePickBy-Sow3pJjS.js +41 -0
- package/dist/{_baseUniq-B4eL5sTC.js → _baseUniq-C87CckHL.js} +15 -54
- package/dist/{any-language-editor-CT_9yBde.js → any-language-editor-BHH_pQ6M.js} +21 -21
- package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-vxgYGIMP.js → architectureDiagram-VXUJARFQ-B3YQo9At.js} +15 -15
- package/dist/{arrays-Du-jRBAy.js → arrays-beUWo8RF.js} +1 -1
- package/dist/assets/__vite-browser-external-WSlCcXn_.js +1 -0
- package/dist/assets/{worker-D10K3OOz.js → worker-DUYMdbtA.js} +2 -2
- package/dist/{blockDiagram-VD42YOAC-C7x6YTH7.js → blockDiagram-VD42YOAC-CpQ3TKEN.js} +7 -7
- package/dist/{button-qsiIHncQ.js → button-DNlNlZY_.js} +82 -84
- package/dist/{c4Diagram-YG6GDRKO-Cx4oseGg.js → c4Diagram-YG6GDRKO-CZSU4uqU.js} +4 -4
- package/dist/{capabilities-26mwv03y.js → capabilities-Coe9eM9T.js} +2 -2
- package/dist/{channel-C_50jIAn.js → channel-X3JKk8gE.js} +1 -1
- package/dist/{chat-ui-CtqUthFR.js → chat-ui-Cel1kBfc.js} +147 -146
- package/dist/{check-D_YwHEgY.js → check-CWUkiHmb.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-Dvo_CFnR.js → chunk-4F5CHEZ2-D5mClyDv.js} +1 -1
- package/dist/{chunk-ABZYJK2D-D5YIs71w.js → chunk-ABZYJK2D-CZYCCtLy.js} +1 -1
- package/dist/{chunk-ATLVNIR6-CyOjzOcf.js → chunk-ATLVNIR6-DaOzLLgN.js} +1 -1
- package/dist/{chunk-B2363JML-BzZqINRO.js → chunk-B2363JML-Br0eA2T3.js} +1 -1
- package/dist/{chunk-B4BG7PRW-ZJeV3KdD.js → chunk-B4BG7PRW-4BjV11Br.js} +4 -4
- package/dist/{chunk-DI55MBZ5-Dx_wwX6l.js → chunk-DI55MBZ5-DITY3EyP.js} +4 -4
- package/dist/{chunk-EXTU4WIE-CgefpSXQ.js → chunk-EXTU4WIE-jUPSAk3i.js} +1 -1
- package/dist/{chunk-FRFDVMJY-Derq8UzY.js → chunk-FRFDVMJY-DnEvEFRR.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-CcIOIFpc.js → chunk-JA3XYJ7Z-BcPEfxk_.js} +2 -2
- package/dist/{chunk-JZLCHNYA-CgO0GG1p.js → chunk-JZLCHNYA-2bnLL3xL.js} +4 -4
- package/dist/{chunk-N4CR4FBY-2qzGzAxT.js → chunk-N4CR4FBY-CpZSuGSU.js} +5 -5
- package/dist/{chunk-PL6DKKU2-KoG71Zin.js → chunk-PL6DKKU2-DnId6G-x.js} +1 -1
- package/dist/{chunk-QN33PNHL-Dp1qBo28.js → chunk-QN33PNHL-B9p5ojHB.js} +1 -1
- package/dist/{chunk-QXUST7PY-BxmmeIwf.js → chunk-QXUST7PY-Ch6F5Obl.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-D3Rys9ZW.js → chunk-S3R3BYOJ-B0UOFJwq.js} +3 -3
- package/dist/{chunk-SJTYNZTY-Co-DhKAG.js → chunk-SJTYNZTY-BsBZnJUj.js} +1 -1
- package/dist/{chunk-TCCFYFTB-BAhzIqBO.js → chunk-TCCFYFTB-Clbl-fTg.js} +8 -7
- package/dist/{chunk-TQ3KTPDO-DxYI735Z.js → chunk-TQ3KTPDO-CFkSQ30e.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Dxumt0wv.js → chunk-TZMSLE5B-D45397J2.js} +1 -1
- package/dist/{chunk-UMXZTB3W-CuahpKin.js → chunk-UMXZTB3W-D-A834Bq.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-CYoFMQKE.js → classDiagram-2ON5EDUG-C8-zE3Zv.js} +10 -10
- package/dist/{classDiagram-2ON5EDUG-DkOvXRlx.js → classDiagram-v2-WZHVMYZB-DrmbGANl.js} +10 -10
- package/dist/{clone-DDndUqI0.js → clone-DZFQCtFJ.js} +1 -1
- package/dist/{constants-D1Am36hX.js → constants-CvyfaCvs.js} +3 -3
- package/dist/{copy-CBo9JcJW.js → copy-B7781WJ3.js} +2 -2
- package/dist/{dagre-6UL2VRFP-BXBaU8PB.js → dagre-6UL2VRFP-OMItEBnY.js} +12 -12
- package/dist/{dagre-D3dlYz-r.js → dagre-QVd-lCXU.js} +13 -23
- package/dist/{data-grid-overlay-editor-nZux6_d2.js → data-grid-overlay-editor-lKF301ME.js} +1 -1
- package/dist/{diagram-PSM6KHXK-CJxjk4LG.js → diagram-PSM6KHXK-CkKbohWI.js} +16 -16
- package/dist/{diagram-QEK2KX5R-IMILPh_p.js → diagram-QEK2KX5R-DjUMpVcx.js} +14 -14
- package/dist/{diagram-S2PKOQOG-6O0g6Boj.js → diagram-S2PKOQOG-b-c0d-wZ.js} +14 -14
- package/dist/{dist-BkXs8bw0.js → dist--6TSlp8H.js} +1 -1
- package/dist/dist-7K5doRvB.js +6 -0
- package/dist/{dist-CQidOwep.js → dist-B43sbpd0.js} +3 -3
- package/dist/dist-B6I_A2-E.js +8 -0
- package/dist/dist-BEQsmaZY.js +5 -0
- package/dist/dist-BasY2RHp.js +8 -0
- package/dist/{dist-BemtTYzN.js → dist-Bfp1XXWt.js} +5 -5
- package/dist/{dist-v-1kgqZ3.js → dist-BjDuO5JW.js} +1 -1
- package/dist/dist-Bosc00dY.js +5 -0
- package/dist/{dist-DLNKBPsk.js → dist-BrxqmS9Q.js} +4 -4
- package/dist/{dist-DBYL08Lu.js → dist-BvhGByxL.js} +4 -4
- package/dist/{dist-CVqlhD3M.js → dist-C4bq5Ioy.js} +2 -2
- package/dist/{dist-DwmxBUOe.js → dist-CFKdzOIu.js} +2 -2
- package/dist/{dist-5nTQE2yt.js → dist-CIB8w0Fl.js} +2 -2
- package/dist/{dist-C-EcLtO9.js → dist-CNF0QBLR.js} +1 -1
- package/dist/dist-CQMZOn-_.js +8 -0
- package/dist/dist-CViQhWZ8.js +5 -0
- package/dist/{dist-Dg65j0em.js → dist-CcMfr7jD.js} +1 -1
- package/dist/{dist-C0XYIHKJ.js → dist-Ci0CXEFt.js} +1 -1
- package/dist/dist-Cz6rLfwY.js +5 -0
- package/dist/dist-D8eq8st3.js +6 -0
- package/dist/{dist-qoCY8giM.js → dist-DAfcmt-d.js} +2 -2
- package/dist/{dist-B6Op2ogv.js → dist-DD_cYHOl.js} +2 -2
- package/dist/{dist-BUSLKXcu.js → dist-DFK94vuS.js} +2 -2
- package/dist/{dist-DBXPlQ0D.js → dist-DGNtjMZu.js} +1 -1
- package/dist/{dist-C9qF7MRB.js → dist-DJ9F1eHs.js} +2 -2
- package/dist/{dist-Ci_jEudG.js → dist-DJKubHDd.js} +1 -1
- package/dist/{dist-CnFp2Kcl.js → dist-DLafRu9s.js} +2 -2
- package/dist/dist-DM1UDXdl.js +5 -0
- package/dist/dist-DNrtWPgS.js +5 -0
- package/dist/dist-D_UjpfOY.js +1381 -0
- package/dist/{dist-DmFS6KZW.js → dist-DbnBiLNH.js} +3 -3
- package/dist/{dist-BiZZAo22.js → dist-DlSUOIm9.js} +1 -1
- package/dist/{dist-DStU8He1.js → dist-Doy0mQDg.js} +2 -2
- package/dist/{dist-CxAX99oC.js → dist-DpkJHKB8.js} +2 -2
- package/dist/{dist-DjaZNkZ7.js → dist-LhQNUe5A.js} +3 -3
- package/dist/dist-V7q2qnpA.js +5 -0
- package/dist/{dist-BJ3fhRYu.js → dist-VqF3W_ue.js} +2 -2
- package/dist/dist-a5_hPgu2.js +8 -0
- package/dist/{dist-B9KLrfoh.js → dist-ej6AQKaS.js} +1 -1
- package/dist/{dist-Brb6VNc4.js → dist-m9tsXsFf.js} +2 -2
- package/dist/{dist-CBwMSFDu.js → dist-tGk0aZ--.js} +2 -2
- package/dist/dist-uVyZcV1-.js +5 -0
- package/dist/{erDiagram-Q2GNP2WA-sho7Cl9f.js → erDiagram-Q2GNP2WA-CDhLaOZ1.js} +10 -10
- package/dist/{error-banner-Bx9kIgrs.js → error-banner-Cjf0RU9I.js} +79 -79
- package/dist/{esm-CMg2ABu6.js → esm-4wmsH2lp.js} +6 -6
- package/dist/{esm-cqK9POGH.js → esm-CD1iby2n.js} +23 -23
- package/dist/{flowDiagram-NV44I4VS-C4nY4Fbz.js → flowDiagram-NV44I4VS-BDi4O4CL.js} +10 -10
- package/dist/{ganttDiagram-JELNMOA3-CtxNcCM2.js → ganttDiagram-JELNMOA3-BpZE6kVp.js} +3 -3
- package/dist/{gitGraph-G5XIXVHT-SL6TDof6.js → gitGraph-G5XIXVHT-B_c6xFJv.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-D9885mxd.js → gitGraphDiagram-V2S2FVAM-iQnXzbPM.js} +13 -13
- package/dist/{glide-data-editor-CkVEV-Gk.js → glide-data-editor-BqnvTmDo.js} +1739 -1708
- package/dist/{graphlib-CxWdvYQt.js → graphlib-BV1_gi0C.js} +4 -3
- package/dist/hasIn-DnfJcYpY.js +108 -0
- package/dist/{info-VBDWY6EO-6MXPTSmi.js → info-VBDWY6EO-BTyzxmhr.js} +3 -3
- package/dist/{infoDiagram-HS3SLOUP-Bw2FlRwF.js → infoDiagram-HS3SLOUP-OYrX6uO3.js} +13 -13
- package/dist/{input-BSde8uV4.js → input-CFY9gApZ.js} +5055 -5055
- package/dist/{isEmpty-BQtUinxJ.js → isEmpty-B7FX9wKt.js} +1 -1
- package/dist/{isSymbol-DFp8040B.js → isSymbol-DCbjQG_U.js} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BXlCEth8.js → journeyDiagram-XKPGCS4Q-ClPC94aN.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-CorxzSYm.js → kanban-definition-3W4ZIXB7-DHEAKdZt.js} +7 -7
- package/dist/{label-DTNqw9tv.js → label-DbZGAoCH.js} +538 -569
- package/dist/{loader-CMMa6QVT.js → loader-Bd1kgLn7.js} +15 -15
- package/dist/main.js +35011 -34898
- package/dist/{memoize-CuHciEBb.js → memoize-CSTI9eOX.js} +1 -1
- package/dist/{merge-CA_buyY3.js → merge-CVhG7q_o.js} +1 -1
- package/dist/{mermaid-CEKslOkI.js → mermaid-B2HDLx2g.js} +54 -54
- package/dist/{mermaid-parser.core-cq4YDee-.js → mermaid-parser.core-ntCgyx0x.js} +8 -8
- package/dist/min-Ds3gG0Ff.js +96 -0
- package/dist/{mindmap-definition-VGOIOE7T-DRsT8UaN.js → mindmap-definition-VGOIOE7T-CxEUZZvY.js} +9 -9
- package/dist/{now-CXAdKY5k.js → now-nrrrOr01.js} +1 -1
- package/dist/{once-CZno0h-b.js → once-C_TIu-kR.js} +1 -1
- package/dist/{packet-DYOGHKS2-Dw08gMaZ.js → packet-DYOGHKS2-BhvnpoGi.js} +3 -3
- package/dist/{pie-VRWISCQL-C5SPSvT8.js → pie-VRWISCQL-dILuA3iG.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-DhJ1Cx2O.js → pieDiagram-ADFJNKIX-U3LrUqAS.js} +14 -14
- package/dist/{process-output-KyzWazB-.js → process-output-DC1TOnIl.js} +3184 -3207
- package/dist/{quadrantDiagram-AYHSOK5B-DXUFIWlz.js → quadrantDiagram-AYHSOK5B-BVWuq-3R.js} +2 -2
- package/dist/{radar-ZZBFDIW7-BvY0bgSg.js → radar-ZZBFDIW7-DwFrOJDj.js} +3 -3
- package/dist/range-fJeId9Ri.js +30 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DO_gtQIb.js → requirementDiagram-UZGBJVZJ-D0zpQnKC.js} +9 -9
- package/dist/{sankeyDiagram-TZEHDZUN-OZzXEkuG.js → sankeyDiagram-TZEHDZUN-CExy1joT.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-K7nZRifV.js → sequenceDiagram-WL72ISMW-D1BJxLjH.js} +4 -4
- package/dist/{slides-component-CIcSvFh7.js → slides-component-CX2JC-Ws.js} +2 -2
- package/dist/{spec-DYaR1rJh.js → spec-CD7QaCV-.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-DzXJZAq7.js → stateDiagram-FKZM4ZOC-B1S8jGMn.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-BZBPUmyF.js → stateDiagram-v2-4FDKWEC3-BH5ozUbc.js} +10 -10
- package/dist/stex-CQDv3aS8.js +4 -0
- package/dist/style.css +1 -1
- package/dist/{timeline-definition-IT6M3QCI-DNoLAh-i.js → timeline-definition-IT6M3QCI-BDT9JAmn.js} +2 -2
- package/dist/{toDate-D6VXexnV.js → toDate-CUqpEbBS.js} +5 -5
- package/dist/{toNumber-xFPoy1OI.js → toNumber-55tjPCWr.js} +2 -2
- package/dist/tooltip-BXEpXV3R.js +404 -0
- package/dist/{treemap-GDKQZRPO-C5OoxpmV.js → treemap-GDKQZRPO-bx2ngsgN.js} +3 -3
- package/dist/{types-CQ-RbYxp.js → types-D_ntCXg0.js} +3 -3
- package/dist/{useAsyncData-Cd4Urlww.js → useAsyncData-rN1nzPaS.js} +2 -2
- package/dist/{useDeepCompareMemoize-DOzKCTzc.js → useDeepCompareMemoize-Ch-7Rk2x.js} +4 -4
- package/dist/{useIframeCapabilities-BVQrlRBd.js → useIframeCapabilities-CqhrVue6.js} +1 -1
- package/dist/useLifecycle-4fA1pHoh.js +177 -0
- package/dist/{useTheme-Dm1WaAGy.js → useTheme-MWfxn4oz.js} +4 -5
- package/dist/{vega-component-BaDgUvQP.js → vega-component-CPhNLfZZ.js} +25 -25
- package/dist/{xychartDiagram-PRI3JC2R-ehVeySMW.js → xychartDiagram-PRI3JC2R-CuAZiqHS.js} +5 -5
- package/dist/{Combination-B--d1_LV.js → zod-C6UGQ3fz.js} +8085 -8151
- package/package.json +8 -41
- package/src/__mocks__/common.ts +4 -4
- package/src/__tests__/main.test.tsx +12 -14
- package/src/components/ai/ai-provider-icon.tsx +3 -2
- package/src/components/app-config/user-config-form.tsx +0 -27
- package/src/components/chat/acp/agent-docs.tsx +3 -3
- package/src/components/chat/acp/agent-panel.tsx +71 -24
- package/src/components/chat/acp/agent-selector.tsx +2 -11
- package/src/components/chat/acp/state.ts +15 -3
- package/src/components/chat/chat-history-popover.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +2 -1
- package/src/components/data-table/TableBottomBar.tsx +7 -1
- package/src/components/data-table/TableTopBar.tsx +31 -35
- package/src/components/data-table/__tests__/columns.test.tsx +7 -7
- package/src/components/data-table/cell-hover-template/types.ts +1 -1
- package/src/components/data-table/cell-hover-text/types.ts +1 -1
- package/src/components/data-table/cell-selection/__tests__/feature.test.ts +1 -1
- package/src/components/data-table/cell-selection/types.ts +4 -3
- package/src/components/data-table/cell-styling/types.ts +1 -1
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -2
- package/src/components/data-table/charts/charts.tsx +2 -2
- package/src/components/data-table/charts/components/chart-items.tsx +1 -1
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-formatting/types.ts +5 -4
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +1 -1
- package/src/components/data-table/column-wrapping/types.ts +4 -3
- package/src/components/data-table/columns.tsx +4 -1
- package/src/components/data-table/copy-column/types.ts +4 -3
- package/src/components/data-table/data-table.tsx +12 -11
- package/src/components/data-table/focus-row/types.ts +4 -3
- package/src/components/data-table/loading-table.tsx +1 -1
- package/src/components/data-table/pagination.tsx +1 -1
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +13 -13
- package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +9 -11
- package/src/components/data-table/range-focus/atoms.ts +2 -2
- package/src/components/data-table/range-focus/cell-selection-stats.tsx +3 -1
- package/src/components/data-table/renderers.tsx +18 -12
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +1 -1
- package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +2 -2
- package/src/components/dependency-graph/dependency-graph-tree.tsx +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +93 -94
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +1 -1
- package/src/components/editor/actions/name-cell-input.tsx +4 -2
- package/src/components/editor/actions/pair-with-agent-modal.tsx +179 -0
- package/src/components/editor/actions/useCellActionButton.tsx +4 -2
- package/src/components/editor/actions/useNotebookActions.tsx +10 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/cell/CellStatus.tsx +4 -5
- package/src/components/editor/cell/cell-context-menu.tsx +4 -2
- package/src/components/editor/cell/code/cell-editor.tsx +3 -2
- package/src/components/editor/cell/toolbar.tsx +2 -1
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +4 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +4 -1
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/empty-state.tsx +1 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +0 -10
- package/src/components/editor/chrome/panels/snippets-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -1
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +2 -1
- package/src/components/editor/chrome/wrapper/storage.ts +2 -2
- package/src/components/editor/connections/database/as-code.ts +1 -1
- package/src/components/editor/connections/form-renderers.tsx +1 -1
- package/src/components/editor/connections/storage/as-code.ts +1 -1
- package/src/components/editor/controls/keyboard-shortcuts.tsx +1 -1
- package/src/components/editor/header/filename-input.tsx +4 -1
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/navigation/__tests__/navigation.test.ts +1 -1
- package/src/components/editor/navigation/clipboard.ts +1 -1
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +2 -2
- package/src/components/editor/navigation/navigation.ts +3 -3
- package/src/components/editor/notebook-cell.tsx +1 -1
- package/src/components/editor/output/JsonOutput.tsx +6 -6
- package/src/components/editor/output/ansi-reduce.ts +2 -2
- package/src/components/editor/output/console/ConsoleOutput.tsx +2 -2
- package/src/components/editor/renderers/cells-renderer.tsx +1 -1
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +1 -1
- package/src/components/editor/renderers/plugins.ts +1 -1
- package/src/components/editor/renderers/slides-layout/types.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -13
- package/src/components/find-replace/find-replace.tsx +3 -1
- package/src/components/forms/form.tsx +1 -1
- package/src/components/forms/options.ts +1 -1
- package/src/components/pages/gallery-page.tsx +1 -1
- package/src/components/static-html/static-banner.tsx +2 -2
- package/src/components/storage/__tests__/storage-snippets.test.ts +4 -6
- package/src/components/terminal/terminal.tsx +4 -4
- package/src/components/tracing/tracing.test.tsx +30 -30
- package/src/components/ui/accordion.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/badge.tsx +2 -1
- package/src/components/ui/button.tsx +5 -4
- package/src/components/ui/calendar.tsx +3 -2
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +2 -1
- package/src/components/ui/command.tsx +5 -2
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/date-input.tsx +7 -6
- package/src/components/ui/date-picker.tsx +6 -4
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +2 -1
- package/src/components/ui/field.tsx +1 -2
- package/src/components/ui/form.tsx +4 -5
- package/src/components/ui/fullscreen.tsx +4 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/navigation.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +4 -3
- package/src/components/ui/query-param-preserving-link.tsx +4 -2
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -2
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/variables/variables-table.tsx +1 -1
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/variable.test.ts +1 -1
- package/src/core/ai/context/providers/cell-output.ts +1 -2
- package/src/core/ai/context/registry.ts +2 -2
- package/src/core/ai/tools/edit-notebook-tool.ts +4 -3
- package/src/core/ai/tools/registry.ts +1 -1
- package/src/core/ai/tools/run-cells-tool.ts +4 -3
- package/src/core/cells/__tests__/add-missing-import.test.ts +23 -22
- package/src/core/cells/__tests__/cell.test.ts +14 -13
- package/src/core/cells/__tests__/cells.test.ts +2 -2
- package/src/core/cells/__tests__/scrollCellIntoView.test.ts +1 -1
- package/src/core/cells/__tests__/session.test.ts +1 -1
- package/src/core/cells/__tests__/utils.test.ts +1 -1
- package/src/core/cells/cells.ts +2 -2
- package/src/core/cells/ids.ts +1 -1
- package/src/core/cells/logs.ts +1 -1
- package/src/core/codemirror/ai/request.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -17
- package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +129 -3
- package/src/core/codemirror/copilot/client.ts +9 -2
- package/src/core/codemirror/copilot/getCodes.ts +1 -1
- package/src/core/codemirror/copilot/language-server.ts +12 -1
- package/src/core/codemirror/copilot/transport.ts +34 -8
- package/src/core/codemirror/copilot/types.ts +1 -1
- package/src/core/codemirror/facet.ts +1 -1
- package/src/core/codemirror/language/__tests__/sql.test.ts +4 -4
- package/src/core/codemirror/language/languages/markdown.ts +1 -3
- package/src/core/codemirror/language/languages/python.ts +4 -0
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +1 -1
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +4 -6
- package/src/core/codemirror/language/languages/sql/sql.ts +1 -3
- package/src/core/codemirror/language/metadata.ts +1 -1
- package/src/core/codemirror/language/panel/sql.tsx +4 -1
- package/src/core/codemirror/language/types.ts +1 -1
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -1
- package/src/core/codemirror/lsp/notebook-lsp.ts +1 -1
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +1 -1
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +28 -42
- package/src/core/codemirror/rtc/loro/awareness.ts +1 -1
- package/src/core/config/__tests__/config-schema.test.ts +2 -6
- package/src/core/config/config-schema.ts +0 -1
- package/src/core/config/feature-flag.tsx +1 -3
- package/src/core/datasets/data-source-connections.ts +4 -2
- package/src/core/datasets/state.ts +1 -1
- package/src/core/dom/__tests__/htmlUtils.test.ts +8 -14
- package/src/core/dom/__tests__/outline.test.ts +2 -3
- package/src/core/dom/outline.ts +1 -1
- package/src/core/dom/uiregistry.ts +42 -8
- package/src/core/edit-app.tsx +4 -1
- package/src/core/export/__tests__/hooks.test.ts +1 -1
- package/src/core/hotkeys/__tests__/hotkeys.test.ts +1 -1
- package/src/core/hotkeys/shortcuts.ts +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +2 -2
- package/src/core/islands/__tests__/parse.test.ts +8 -7
- package/src/core/islands/bridge.ts +2 -2
- package/src/core/islands/components/output-wrapper.tsx +1 -1
- package/src/core/islands/parse.ts +1 -1
- package/src/core/lsp/__tests__/transport.test.ts +1 -1
- package/src/core/network/CachingRequestRegistry.ts +1 -1
- package/src/core/network/DeferredRequestRegistry.ts +1 -1
- package/src/core/network/__tests__/requests-network.test.ts +1 -1
- package/src/core/network/api.ts +2 -2
- package/src/core/network/requests-lazy.ts +1 -1
- package/src/core/network/requests-toasting.tsx +1 -1
- package/src/core/runtime/runtime.ts +1 -0
- package/src/core/saving/__tests__/filename.test.ts +7 -6
- package/src/core/static/__tests__/download-html.test.ts +16 -15
- package/src/core/static/__tests__/files.test.ts +30 -28
- package/src/core/static/files.ts +1 -1
- package/src/core/vscode/vscode-bindings.ts +1 -1
- package/src/core/wasm/bridge.ts +3 -3
- package/src/core/wasm/worker/tracer.ts +1 -1
- package/src/core/websocket/useWebSocket.tsx +5 -3
- package/src/css/app/Cell.css +5 -2
- package/src/css/globals.css +18 -16
- package/src/custom.d.ts +1 -1
- package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +3 -3
- package/src/hooks/debug.ts +3 -3
- package/src/hooks/useDebounce.ts +1 -1
- package/src/hooks/useEventListener.ts +1 -1
- package/src/hooks/useHotkey.ts +1 -1
- package/src/hooks/useLifecycle.ts +2 -2
- package/src/hooks/useNonce.ts +1 -1
- package/src/hooks/useResizeObserver.ts +2 -2
- package/src/main.tsx +1 -1
- package/src/plugins/core/BadPlugin.tsx +7 -6
- package/src/plugins/core/RenderHTML.tsx +3 -3
- package/src/plugins/core/__test__/registerReactComponent.test.ts +1 -1
- package/src/plugins/core/registerReactComponent.tsx +4 -4
- package/src/plugins/core/rpc.ts +1 -1
- package/src/plugins/impl/CheckboxPlugin.tsx +4 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +8 -3
- package/src/plugins/impl/DataTablePlugin.tsx +5 -2
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -1
- package/src/plugins/impl/FormPlugin.tsx +2 -3
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +4 -1
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +43 -15
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +3 -12
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +2 -2
- package/src/plugins/impl/anywidget/model.ts +1 -1
- package/src/plugins/impl/anywidget/types.ts +2 -2
- package/src/plugins/impl/anywidget/widget-binding.ts +1 -1
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +5 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +2 -2
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +2 -2
- package/src/plugins/impl/data-explorer/components/query-form.tsx +1 -1
- package/src/plugins/impl/data-explorer/functions/function.ts +1 -1
- package/src/plugins/impl/data-explorer/queries/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +7 -9
- package/src/plugins/impl/data-frames/forms/renderers.tsx +1 -1
- package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
- package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +1 -1
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +1 -1
- package/src/plugins/impl/panel/PanelPlugin.tsx +2 -2
- package/src/plugins/impl/plotly/Plot.tsx +3 -3
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +65 -103
- package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +114 -0
- package/src/plugins/impl/plotly/__tests__/selection.test.ts +199 -0
- package/src/plugins/impl/plotly/selection.ts +333 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +13 -14
- package/src/plugins/impl/vega/batched.ts +1 -1
- package/src/plugins/impl/vega/make-selectable.ts +3 -3
- package/src/plugins/impl/vega/types.ts +1 -1
- package/src/plugins/layout/DownloadPlugin.tsx +1 -1
- package/src/plugins/layout/ImageComparisonPlugin.tsx +1 -3
- package/src/plugins/layout/LazyPlugin.tsx +1 -1
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/plugins/layout/mermaid/mermaid.tsx +1 -1
- package/src/plugins/plugins.ts +1 -1
- package/src/plugins/stateless-plugin.ts +4 -2
- package/src/stories/data-explorer.stories.tsx +1 -1
- package/src/stories/dataframe.stories.tsx +1 -1
- package/src/stories/editor.stories.tsx +1 -1
- package/src/stories/select.stories.tsx +1 -1
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/Logger.ts +1 -1
- package/src/utils/__tests__/arrays.test.ts +1 -1
- package/src/utils/__tests__/blob.test.ts +1 -1
- package/src/utils/__tests__/cell-urls.test.ts +24 -21
- package/src/utils/__tests__/dates.test.ts +1 -1
- package/src/utils/__tests__/errors.test.ts +1 -1
- package/src/utils/__tests__/filenames.test.ts +15 -14
- package/src/utils/__tests__/json-parser.test.ts +14 -21
- package/src/utils/__tests__/multi-map.test.ts +3 -3
- package/src/utils/__tests__/objects.test.ts +3 -3
- package/src/utils/__tests__/path.test.ts +34 -31
- package/src/utils/__tests__/urls.test.ts +19 -18
- package/src/utils/__tests__/versions.test.ts +5 -5
- package/src/utils/__tests__/waitForWs.test.ts +1 -1
- package/src/utils/arrays.ts +2 -2
- package/src/utils/assertNever.ts +1 -1
- package/src/utils/batch-requests.ts +2 -2
- package/src/utils/createReducer.ts +2 -2
- package/src/utils/id-tree.tsx +2 -2
- package/src/utils/idle.ts +1 -1
- package/src/utils/invariant.ts +1 -2
- package/src/utils/json/base64.ts +2 -5
- package/src/utils/maps.ts +1 -1
- package/src/utils/math.ts +0 -1
- package/src/utils/mime-types.ts +1 -1
- package/src/utils/multi-map.ts +1 -1
- package/src/utils/objects.ts +1 -1
- package/src/utils/once.ts +2 -2
- package/src/utils/staticImplements.ts +1 -1
- package/src/utils/storage/jotai.ts +1 -1
- package/src/utils/tracer.ts +3 -2
- package/dist/_basePickBy-QjOmBDRE.js +0 -110
- package/dist/_baseSet-xgn1IbGV.js +0 -27
- package/dist/architecture-7HQA4BMR-BRyVh_Za.js +0 -6
- package/dist/assets/__vite-browser-external-Us1ds95c.js +0 -1
- package/dist/dist-B0R_ZM4-.js +0 -6
- package/dist/dist-B4a9_9pj.js +0 -5
- package/dist/dist-BCSUKEwO.js +0 -5
- package/dist/dist-BONIDQq6.js +0 -5
- package/dist/dist-BYeRx2hb.js +0 -5
- package/dist/dist-D2Rk1j4R.js +0 -1381
- package/dist/dist-DZjX5TYv.js +0 -5
- package/dist/dist-Dkw9x6kc.js +0 -5
- package/dist/dist-Ds6UaXGR.js +0 -6
- package/dist/dist-KuEJ1Q53.js +0 -8
- package/dist/dist-S72WNyTZ.js +0 -5
- package/dist/dist-bTG-yssT.js +0 -5
- package/dist/dist-diF0sguc.js +0 -8
- package/dist/dist-mJ84BIgu.js +0 -8
- package/dist/dist-wSIhFWQz.js +0 -8
- package/dist/get-CqrzlV1v.js +0 -68
- package/dist/range-CYz5jI--.js +0 -17
- package/dist/stex-CZyTRGVB.js +0 -4
- package/dist/tooltip-DGHTbHl5.js +0 -404
- package/dist/useLifecycle-Dids8BPm.js +0 -173
- /package/dist/{dist-KZI_BHqV.js → dist-CxZvoNao.js} +0 -0
- /package/dist/{invariant-D4hPsZFI.js → invariant-e8eBgdux.js} +0 -0
- /package/dist/{isArrayLikeObject-C-hFPChh.js → isArrayLikeObject-LXbTYiBa.js} +0 -0
- /package/dist/{main-CvkAPtaq.js → main-XimWhSi_.js} +0 -0
- /package/dist/{purify.es-ukiMXY-F.js → purify.es-hTCfRGdl.js} +0 -0
- /package/dist/{react-dom-BKwCWYPW.js → react-dom-BSUuJjCR.js} +0 -0
- /package/dist/{stex-Ze8D4R_5.js → stex-D887Ylhf.js} +0 -0
|
@@ -4,32 +4,32 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
5
|
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
6
6
|
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
7
|
-
import { r as toast } from "./copy-
|
|
8
|
-
import { A as
|
|
7
|
+
import { r as toast } from "./copy-B7781WJ3.js";
|
|
8
|
+
import { A as MarimoIncomingMessageEvent, At as moveToEndOfEditor, Bn as CircleX, C as contextToXml, D as AccordionContent, Dn as Wrench, Dt as createVariableInfoElement, E as Accordion, Fn as File$1, Gt as dataSourceConnectionsAtom, I as ChatBubbleIcon, Jt as getRequestClient, Kt as getTableType, Lt as jotaiJsonStorage, Mn as LoaderCircle, O as AccordionItem, On as Trash2, Pn as Info, Q as cellErrorsAtom, Qt as singleFacet, Rt as variablesAtom, S as Sections, T as AIContextRegistry, U as deserializeBlob, W as base64ToDataURL, Wt as allTablesAtom, Z as renderHTML, a as toPng, bt as displayCellName, cn as CellOutputId, d as Spinner, f as Popover, g as isOutputEmpty, h as PopoverTrigger, k as AccordionTrigger, m as PopoverContent, n as blobToString, nt as notebookAtom, o as MarkdownRenderer, rn as ZodLocalStorage, t as processOutput, w as AIContextProvider, x as Boosts, xn as Anchor2, y as DatasourceContextProvider, yn as atomWithStorage, zt as PluralWord } from "./process-output-DC1TOnIl.js";
|
|
9
9
|
import "./chunk-5FQGJX7Z-C428iZBW.js";
|
|
10
|
-
import { l as createLucideIcon } from "./dist-
|
|
11
|
-
import {
|
|
12
|
-
import { a as NumberField, b as DropdownMenuTrigger, d as DropdownMenuContent, p as DropdownMenuItem, r as Input, u as DropdownMenu } from "./input-
|
|
13
|
-
import { g as CircleQuestionMark } from "./toDate-
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
10
|
+
import { l as createLucideIcon } from "./dist-D_UjpfOY.js";
|
|
11
|
+
import { C as logNever, I as X, n as Strings, t as Label } from "./label-DbZGAoCH.js";
|
|
12
|
+
import { a as NumberField, b as DropdownMenuTrigger, d as DropdownMenuContent, p as DropdownMenuItem, r as Input, u as DropdownMenu } from "./input-CFY9gApZ.js";
|
|
13
|
+
import { g as CircleQuestionMark } from "./toDate-CUqpEbBS.js";
|
|
14
|
+
import { c as Objects, g as Logger, l as useEventListener, t as Button, y as cn } from "./button-DNlNlZY_.js";
|
|
15
|
+
import "./react-dom-BSUuJjCR.js";
|
|
16
16
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
17
|
-
import "./
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import "./
|
|
25
|
-
import
|
|
26
|
-
import "./dist-
|
|
27
|
-
import "./dist-
|
|
28
|
-
import "./dist-
|
|
29
|
-
import "./dist-
|
|
30
|
-
import "./
|
|
31
|
-
import
|
|
32
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
17
|
+
import { B as union, C as any, D as discriminatedUnion, E as custom, H as safeParseAsync, I as record, L as strictObject, M as never, N as number, O as lazy, P as object$1, R as string, S as _null, T as boolean, V as unknown, W as toJSONSchema, b as _enum, k as literal, w as array$1, x as _instanceof } from "./zod-C6UGQ3fz.js";
|
|
18
|
+
import { n as ErrorBanner } from "./error-banner-Cjf0RU9I.js";
|
|
19
|
+
import { t as Tooltip } from "./tooltip-BXEpXV3R.js";
|
|
20
|
+
import { n as minimalSetup, t as esm_default, u as CopyClipboardIcon } from "./esm-4wmsH2lp.js";
|
|
21
|
+
import { t as isEmpty_default } from "./isEmpty-B7FX9wKt.js";
|
|
22
|
+
import { n as useTheme, v as useStore, w as useEvent_default } from "./useTheme-MWfxn4oz.js";
|
|
23
|
+
import { $ as ViewPlugin, At as Prec, Dt as EditorState, Ft as StateField, Lt as Transaction, Ot as Facet, Pt as StateEffect, Y as Decoration, Z as EditorView, dt as keymap, et as WidgetType, ut as hoverTooltip } from "./dist-CxZvoNao.js";
|
|
24
|
+
import { n as acceptCompletion, o as closeCompletion, r as autocompletion } from "./dist-DGNtjMZu.js";
|
|
25
|
+
import "./main-XimWhSi_.js";
|
|
26
|
+
import { a as markdown } from "./dist-DbnBiLNH.js";
|
|
27
|
+
import "./dist-B43sbpd0.js";
|
|
28
|
+
import "./dist-Ci0CXEFt.js";
|
|
29
|
+
import "./dist-DJ9F1eHs.js";
|
|
30
|
+
import "./dist-DAfcmt-d.js";
|
|
31
|
+
import "./purify.es-hTCfRGdl.js";
|
|
32
|
+
import { t as useAsyncData } from "./useAsyncData-rN1nzPaS.js";
|
|
33
33
|
var BotMessageSquare = createLucideIcon("bot-message-square", [
|
|
34
34
|
["path", {
|
|
35
35
|
d: "M12 6V2H8",
|
|
@@ -5780,6 +5780,7 @@ function useChat({ experimental_throttle: e18, resume: _ = false, ...v } = {}) {
|
|
|
5780
5780
|
addToolApprovalResponse: x.current.addToolApprovalResponse
|
|
5781
5781
|
};
|
|
5782
5782
|
}
|
|
5783
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
5783
5784
|
function isMediaMimetype(e18, _) {
|
|
5784
5785
|
return e18 ? !!([
|
|
5785
5786
|
"image/",
|
|
@@ -6170,18 +6171,18 @@ var DEFAULT_FILE_SEARCH_CONFIG = {
|
|
|
6170
6171
|
}));
|
|
6171
6172
|
}
|
|
6172
6173
|
formatContext(e18) {
|
|
6173
|
-
let { data: _ } = e18, { columns: v, source: y, num_rows: b, num_columns: x, name: S, variable_name: C } = _,
|
|
6174
|
-
if (
|
|
6175
|
-
`), C && (
|
|
6174
|
+
let { data: _ } = e18, { columns: v, source: y, num_rows: b, num_columns: x, name: S, variable_name: C } = _, T = [b == null ? void 0 : `${b} rows`, x == null ? void 0 : `${x} columns`].filter(Boolean).join(", "), E = "";
|
|
6175
|
+
if (T && (E += `Shape: ${T}
|
|
6176
|
+
`), C && (E += `Variable: ${C}
|
|
6176
6177
|
`), v && v.length > 0) {
|
|
6177
|
-
|
|
6178
|
+
E += "Columns:\n";
|
|
6178
6179
|
for (let e19 of v) {
|
|
6179
6180
|
let _2 = ` ${e19.name} (${e19.type})`;
|
|
6180
6181
|
if (e19.sample_values && e19.sample_values.length > 0) {
|
|
6181
6182
|
let v2 = e19.sample_values.slice(0, 3).map((e20) => e20 === null ? "null" : String(e20)).join(", ");
|
|
6182
6183
|
_2 += ` - samples: [${v2}]`;
|
|
6183
6184
|
}
|
|
6184
|
-
|
|
6185
|
+
E += `${_2}
|
|
6185
6186
|
`;
|
|
6186
6187
|
}
|
|
6187
6188
|
}
|
|
@@ -6191,7 +6192,7 @@ var DEFAULT_FILE_SEARCH_CONFIG = {
|
|
|
6191
6192
|
name: S,
|
|
6192
6193
|
source: y ?? "unknown"
|
|
6193
6194
|
},
|
|
6194
|
-
details:
|
|
6195
|
+
details: E.trim()
|
|
6195
6196
|
});
|
|
6196
6197
|
}
|
|
6197
6198
|
formatCompletion(e18) {
|
|
@@ -6330,7 +6331,7 @@ async function convertToFileUIPart(e18) {
|
|
|
6330
6331
|
url: await blobToString(e19, "dataUrl")
|
|
6331
6332
|
})));
|
|
6332
6333
|
}
|
|
6333
|
-
var import_compiler_runtime$4 = require_compiler_runtime()
|
|
6334
|
+
var import_compiler_runtime$4 = require_compiler_runtime();
|
|
6334
6335
|
const AttachmentRenderer = (e18) => {
|
|
6335
6336
|
var _a;
|
|
6336
6337
|
let _ = (0, import_compiler_runtime$4.c)(6), { attachment: v } = e18;
|
|
@@ -6352,15 +6353,15 @@ const AttachmentRenderer = (e18) => {
|
|
|
6352
6353
|
};
|
|
6353
6354
|
var import_compiler_runtime$3 = require_compiler_runtime();
|
|
6354
6355
|
const ReasoningAccordion = (e18) => {
|
|
6355
|
-
let _ = (0, import_compiler_runtime$3.c)(13), { reasoning: v, index: y, isStreaming: b } = e18,
|
|
6356
|
-
_[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
6357
|
-
let E =
|
|
6356
|
+
let _ = (0, import_compiler_runtime$3.c)(13), { reasoning: v, index: y, isStreaming: b } = e18, x = y === void 0 ? 0 : y, S = b === void 0 ? false : b, C = S ? "reasoning" : void 0, w;
|
|
6357
|
+
_[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-3 w-3" }), _[0] = w) : w = _[0];
|
|
6358
|
+
let E = S ? "Thinking" : "View reasoning", D;
|
|
6358
6359
|
_[1] !== v.length || _[2] !== E ? (D = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
6359
6360
|
className: "text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",
|
|
6360
6361
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
6361
6362
|
className: "flex items-center gap-2",
|
|
6362
6363
|
children: [
|
|
6363
|
-
|
|
6364
|
+
w,
|
|
6364
6365
|
E,
|
|
6365
6366
|
" (",
|
|
6366
6367
|
v.length,
|
|
@@ -6369,8 +6370,8 @@ const ReasoningAccordion = (e18) => {
|
|
|
6369
6370
|
]
|
|
6370
6371
|
})
|
|
6371
6372
|
}), _[1] = v.length, _[2] = E, _[3] = D) : D = _[3];
|
|
6372
|
-
let
|
|
6373
|
-
_[4] === v ?
|
|
6373
|
+
let k;
|
|
6374
|
+
_[4] === v ? k = _[5] : (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
6374
6375
|
className: "pb-2 px-2",
|
|
6375
6376
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
6376
6377
|
className: "bg-muted/30 border border-muted/50 rounded-md p-3 italic text-muted-foreground/90 relative",
|
|
@@ -6379,21 +6380,21 @@ const ReasoningAccordion = (e18) => {
|
|
|
6379
6380
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MarkdownRenderer, { content: v })
|
|
6380
6381
|
})
|
|
6381
6382
|
})
|
|
6382
|
-
}), _[4] = v, _[5] =
|
|
6383
|
-
let
|
|
6384
|
-
_[6] !== D || _[7] !==
|
|
6383
|
+
}), _[4] = v, _[5] = k);
|
|
6384
|
+
let A;
|
|
6385
|
+
_[6] !== D || _[7] !== k ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
6385
6386
|
value: "reasoning",
|
|
6386
6387
|
className: "border-0",
|
|
6387
|
-
children: [D,
|
|
6388
|
-
}), _[6] = D, _[7] =
|
|
6389
|
-
let
|
|
6390
|
-
return _[9] !==
|
|
6388
|
+
children: [D, k]
|
|
6389
|
+
}), _[6] = D, _[7] = k, _[8] = A) : A = _[8];
|
|
6390
|
+
let j;
|
|
6391
|
+
return _[9] !== x || _[10] !== C || _[11] !== A ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
|
|
6391
6392
|
type: "single",
|
|
6392
6393
|
collapsible: true,
|
|
6393
6394
|
className: "w-full mb-2",
|
|
6394
|
-
value:
|
|
6395
|
-
children:
|
|
6396
|
-
},
|
|
6395
|
+
value: C,
|
|
6396
|
+
children: A
|
|
6397
|
+
}, x), _[9] = x, _[10] = C, _[11] = A, _[12] = j) : j = _[12], j;
|
|
6397
6398
|
};
|
|
6398
6399
|
var import_compiler_runtime$2 = require_compiler_runtime(), SuccessResultSchema = object$1({
|
|
6399
6400
|
status: string().default("success"),
|
|
@@ -6485,9 +6486,9 @@ var import_compiler_runtime$2 = require_compiler_runtime(), SuccessResultSchema
|
|
|
6485
6486
|
}), _[7] = C, _[8] = w), w;
|
|
6486
6487
|
};
|
|
6487
6488
|
const ToolCallAccordion = (e18) => {
|
|
6488
|
-
let _ = (0, import_compiler_runtime$2.c)(38), { toolName: v, result: y, error: b, index:
|
|
6489
|
-
_[0] ===
|
|
6490
|
-
switch (
|
|
6489
|
+
let _ = (0, import_compiler_runtime$2.c)(38), { toolName: v, result: y, error: b, index: x, state: S, className: w, input: D } = e18, k = x === void 0 ? 0 : x, A = S === "output-available" && (y || b), j = b ? "error" : A ? "success" : "loading", M;
|
|
6490
|
+
_[0] === j ? M = _[1] : (M = () => {
|
|
6491
|
+
switch (j) {
|
|
6491
6492
|
case "loading":
|
|
6492
6493
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "h-3 w-3 animate-spin" });
|
|
6493
6494
|
case "error":
|
|
@@ -6497,39 +6498,39 @@ const ToolCallAccordion = (e18) => {
|
|
|
6497
6498
|
default:
|
|
6498
6499
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrench, { className: "h-3 w-3" });
|
|
6499
6500
|
}
|
|
6500
|
-
}, _[0] =
|
|
6501
|
-
let
|
|
6502
|
-
_[2] !== b || _[3] !==
|
|
6503
|
-
let
|
|
6504
|
-
_[6] ===
|
|
6505
|
-
let
|
|
6506
|
-
_[8] !==
|
|
6507
|
-
let
|
|
6508
|
-
_[11] ===
|
|
6509
|
-
let
|
|
6510
|
-
_[13] === v ?
|
|
6511
|
-
let G;
|
|
6512
|
-
_[15] === W ? G = _[16] : (G = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
6513
|
-
className: "font-mono text-xs",
|
|
6514
|
-
children: W
|
|
6515
|
-
}), _[15] = W, _[16] = G);
|
|
6501
|
+
}, _[0] = j, _[1] = M);
|
|
6502
|
+
let N = M, P;
|
|
6503
|
+
_[2] !== b || _[3] !== A || _[4] !== j ? (P = () => j === "loading" ? "Running" : b ? "Failed" : A ? "Done" : "Tool call", _[2] = b, _[3] = A, _[4] = j, _[5] = P) : P = _[5];
|
|
6504
|
+
let L = P, R = `tool-${k}`, z;
|
|
6505
|
+
_[6] === w ? z = _[7] : (z = cn("w-full", w), _[6] = w, _[7] = z);
|
|
6506
|
+
let B = j === "error" && "text-[var(--red-11)]/80", V = j === "success" && "text-[var(--grass-11)]/80", H;
|
|
6507
|
+
_[8] !== B || _[9] !== V ? (H = cn("h-6 text-xs border-border shadow-none! ring-0! bg-muted/60 hover:bg-muted py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180 hover:no-underline", B, V), _[8] = B, _[9] = V, _[10] = H) : H = _[10];
|
|
6508
|
+
let U;
|
|
6509
|
+
_[11] === N ? U = _[12] : (U = N(), _[11] = N, _[12] = U);
|
|
6510
|
+
let W = L(), G;
|
|
6511
|
+
_[13] === v ? G = _[14] : (G = formatToolName(v), _[13] = v, _[14] = G);
|
|
6516
6512
|
let K;
|
|
6517
|
-
_[
|
|
6513
|
+
_[15] === G ? K = _[16] : (K = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
6514
|
+
className: "font-mono text-xs",
|
|
6515
|
+
children: G
|
|
6516
|
+
}), _[15] = G, _[16] = K);
|
|
6517
|
+
let q;
|
|
6518
|
+
_[17] !== W || _[18] !== K || _[19] !== U ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
6518
6519
|
className: "flex items-center gap-1",
|
|
6519
6520
|
children: [
|
|
6520
|
-
H,
|
|
6521
6521
|
U,
|
|
6522
|
+
W,
|
|
6522
6523
|
":",
|
|
6523
|
-
|
|
6524
|
+
K
|
|
6524
6525
|
]
|
|
6525
|
-
}), _[17] =
|
|
6526
|
-
let q;
|
|
6527
|
-
_[21] !== K || _[22] !== V ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
6528
|
-
className: V,
|
|
6529
|
-
children: K
|
|
6530
|
-
}), _[21] = K, _[22] = V, _[23] = q) : q = _[23];
|
|
6526
|
+
}), _[17] = W, _[18] = K, _[19] = U, _[20] = q) : q = _[20];
|
|
6531
6527
|
let J;
|
|
6532
|
-
_[
|
|
6528
|
+
_[21] !== q || _[22] !== H ? (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
6529
|
+
className: H,
|
|
6530
|
+
children: q
|
|
6531
|
+
}), _[21] = q, _[22] = H, _[23] = J) : J = _[23];
|
|
6532
|
+
let Y;
|
|
6533
|
+
_[24] !== b || _[25] !== A || _[26] !== D || _[27] !== y ? (Y = A && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
6533
6534
|
className: "space-y-3",
|
|
6534
6535
|
children: [
|
|
6535
6536
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToolArgsRenderer, { input: D }),
|
|
@@ -6545,25 +6546,25 @@ const ToolCallAccordion = (e18) => {
|
|
|
6545
6546
|
})]
|
|
6546
6547
|
})
|
|
6547
6548
|
]
|
|
6548
|
-
}), _[24] = b, _[25] =
|
|
6549
|
-
let Y;
|
|
6550
|
-
_[29] === J ? Y = _[30] : (Y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
6551
|
-
className: "py-2 px-2",
|
|
6552
|
-
children: J
|
|
6553
|
-
}), _[29] = J, _[30] = Y);
|
|
6549
|
+
}), _[24] = b, _[25] = A, _[26] = D, _[27] = y, _[28] = Y) : Y = _[28];
|
|
6554
6550
|
let Z;
|
|
6555
|
-
_[
|
|
6551
|
+
_[29] === Y ? Z = _[30] : (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
6552
|
+
className: "py-2 px-2",
|
|
6553
|
+
children: Y
|
|
6554
|
+
}), _[29] = Y, _[30] = Z);
|
|
6555
|
+
let Q;
|
|
6556
|
+
_[31] !== J || _[32] !== Z ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
6556
6557
|
value: "tool-call",
|
|
6557
6558
|
className: "border-0",
|
|
6558
|
-
children: [
|
|
6559
|
-
}), _[31] =
|
|
6560
|
-
let
|
|
6561
|
-
return _[34] !==
|
|
6559
|
+
children: [J, Z]
|
|
6560
|
+
}), _[31] = J, _[32] = Z, _[33] = Q) : Q = _[33];
|
|
6561
|
+
let $;
|
|
6562
|
+
return _[34] !== Q || _[35] !== R || _[36] !== z ? ($ = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
|
|
6562
6563
|
type: "single",
|
|
6563
6564
|
collapsible: true,
|
|
6564
|
-
className:
|
|
6565
|
-
children:
|
|
6566
|
-
},
|
|
6565
|
+
className: z,
|
|
6566
|
+
children: Q
|
|
6567
|
+
}, R), _[34] = Q, _[35] = R, _[36] = z, _[37] = $) : $ = _[37], $;
|
|
6567
6568
|
};
|
|
6568
6569
|
function formatToolName(e18) {
|
|
6569
6570
|
return e18.replace("tool-", "");
|
|
@@ -7151,7 +7152,7 @@ function _temp2$1() {
|
|
|
7151
7152
|
function _temp3$1(e18) {
|
|
7152
7153
|
return promptHistoryStorage.set(KEY, e18);
|
|
7153
7154
|
}
|
|
7154
|
-
var import_compiler_runtime = require_compiler_runtime(), ChatMessageIncomingSchema = object$1({
|
|
7155
|
+
var import_compiler_runtime = require_compiler_runtime(), PopoverAnchor = Anchor2, ChatMessageIncomingSchema = object$1({
|
|
7155
7156
|
type: literal("stream_chunk"),
|
|
7156
7157
|
message_id: string(),
|
|
7157
7158
|
content: any().nullable().transform((e18) => e18),
|
|
@@ -7159,24 +7160,24 @@ var import_compiler_runtime = require_compiler_runtime(), ChatMessageIncomingSch
|
|
|
7159
7160
|
});
|
|
7160
7161
|
const Chatbot = (e18) => {
|
|
7161
7162
|
var _a;
|
|
7162
|
-
let [_, v] = (0, import_react.useState)(""), [y, b] = (0, import_react.useState)(e18.config), [
|
|
7163
|
-
Object.keys(e18.config).some((_2) => e18.config[_2] !==
|
|
7164
|
-
let
|
|
7165
|
-
|
|
7166
|
-
let
|
|
7163
|
+
let [_, v] = (0, import_react.useState)(""), [y, b] = (0, import_react.useState)(e18.config), [C, w] = (0, import_react.useState)(e18.config), [T, E] = (0, import_react.useState)(void 0), D = (0, import_react.useRef)(null), O = (0, import_react.useRef)(null), k = (0, import_react.useRef)(null), A = (0, import_react.useRef)(null);
|
|
7164
|
+
Object.keys(e18.config).some((_2) => e18.config[_2] !== C[_2]) && (b(e18.config), w(e18.config));
|
|
7165
|
+
let j = (0, import_react.useRef)(y);
|
|
7166
|
+
j.current = y;
|
|
7167
|
+
let M = (0, import_react.useRef)({
|
|
7167
7168
|
backendMessageId: null,
|
|
7168
7169
|
frontendMessageIndex: null
|
|
7169
|
-
}), N = (0, import_react.useRef)(null), { data: P } = useAsyncData(async () => (await e18.get_chat_history({})).messages, []), F = e18.value.length > 0 ? e18.value : P, { messages:
|
|
7170
|
+
}), N = (0, import_react.useRef)(null), { data: P } = useAsyncData(async () => (await e18.get_chat_history({})).messages, []), F = e18.value.length > 0 ? e18.value : P, { messages: I, sendMessage: R, setMessages: z, status: B, stop: V, error: H, regenerate: U, clearError: W } = useChat({
|
|
7170
7171
|
transport: new DefaultChatTransport({ fetch: async (_2, v2) => {
|
|
7171
7172
|
var _a2;
|
|
7172
7173
|
if (v2 === void 0) return fetch(_2);
|
|
7173
|
-
let y2 = JSON.parse(v2.body), b2 = v2.signal,
|
|
7174
|
-
max_tokens:
|
|
7175
|
-
temperature:
|
|
7176
|
-
top_p:
|
|
7177
|
-
top_k:
|
|
7178
|
-
frequency_penalty:
|
|
7179
|
-
presence_penalty:
|
|
7174
|
+
let y2 = JSON.parse(v2.body), b2 = v2.signal, x = {
|
|
7175
|
+
max_tokens: j.current.max_tokens,
|
|
7176
|
+
temperature: j.current.temperature,
|
|
7177
|
+
top_p: j.current.top_p,
|
|
7178
|
+
top_k: j.current.top_k,
|
|
7179
|
+
frequency_penalty: j.current.frequency_penalty,
|
|
7180
|
+
presence_penalty: j.current.presence_penalty
|
|
7180
7181
|
};
|
|
7181
7182
|
try {
|
|
7182
7183
|
let _3 = y2.messages.map((e19) => {
|
|
@@ -7206,13 +7207,13 @@ const Chatbot = (e18) => {
|
|
|
7206
7207
|
});
|
|
7207
7208
|
return e18.send_prompt({
|
|
7208
7209
|
messages: _3,
|
|
7209
|
-
config:
|
|
7210
|
+
config: x
|
|
7210
7211
|
}).catch((e19) => {
|
|
7211
7212
|
var _a3;
|
|
7212
7213
|
(_a3 = N.current) == null ? void 0 : _a3.error(e19), N.current = null;
|
|
7213
7214
|
}), createUIMessageStreamResponse({ stream: v3 });
|
|
7214
7215
|
} catch (e19) {
|
|
7215
|
-
if (
|
|
7216
|
+
if (M.current = {
|
|
7216
7217
|
backendMessageId: null,
|
|
7217
7218
|
frontendMessageIndex: null
|
|
7218
7219
|
}, e19 instanceof Error && e19.name === "AbortError") return new Response("Aborted", { status: 499 });
|
|
@@ -7222,13 +7223,13 @@ const Chatbot = (e18) => {
|
|
|
7222
7223
|
} }),
|
|
7223
7224
|
messages: F,
|
|
7224
7225
|
onFinish: (_2) => {
|
|
7225
|
-
|
|
7226
|
+
E(void 0), D.current && (D.current.value = ""), Logger.debug("Finished streaming message:", _2), M.current = {
|
|
7226
7227
|
backendMessageId: null,
|
|
7227
7228
|
frontendMessageIndex: null
|
|
7228
7229
|
}, e18.setValue(_2.messages);
|
|
7229
7230
|
},
|
|
7230
7231
|
onError: (e19) => {
|
|
7231
|
-
Logger.error("An error occurred:", e19),
|
|
7232
|
+
Logger.error("An error occurred:", e19), M.current = {
|
|
7232
7233
|
backendMessageId: null,
|
|
7233
7234
|
frontendMessageIndex: null
|
|
7234
7235
|
};
|
|
@@ -7241,9 +7242,9 @@ const Chatbot = (e18) => {
|
|
|
7241
7242
|
y2 && (v2.content && y2.enqueue(v2.content), v2.is_final && (y2.close(), N.current = null));
|
|
7242
7243
|
});
|
|
7243
7244
|
let G = B === "submitted" || B === "streaming", K = (_2) => {
|
|
7244
|
-
let v2 =
|
|
7245
|
+
let v2 = I.findIndex((e19) => e19.id === _2);
|
|
7245
7246
|
if (v2 !== -1) {
|
|
7246
|
-
let y2 =
|
|
7247
|
+
let y2 = I.filter((e19) => e19.id !== _2);
|
|
7247
7248
|
e18.delete_chat_message({ index: v2 }), z(y2), e18.setValue(y2);
|
|
7248
7249
|
}
|
|
7249
7250
|
}, q = Array.isArray(e18.allowAttachments) && e18.allowAttachments.length > 0 || e18.allowAttachments === true, J = {
|
|
@@ -7253,18 +7254,18 @@ const Chatbot = (e18) => {
|
|
|
7253
7254
|
displayLabel: e19,
|
|
7254
7255
|
apply: e19
|
|
7255
7256
|
}))
|
|
7256
|
-
},
|
|
7257
|
+
}, Y = e18.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
|
|
7257
7258
|
(0, import_react.useEffect)(() => {
|
|
7258
7259
|
var _a2;
|
|
7259
|
-
(_a2 =
|
|
7260
|
-
top:
|
|
7260
|
+
(_a2 = A.current) == null ? void 0 : _a2.scrollTo({
|
|
7261
|
+
top: A.current.scrollHeight,
|
|
7261
7262
|
behavior: "smooth"
|
|
7262
7263
|
});
|
|
7263
|
-
}, [
|
|
7264
|
-
let
|
|
7265
|
-
if (
|
|
7266
|
-
let e19 =
|
|
7267
|
-
|
|
7264
|
+
}, [I.length, A]);
|
|
7265
|
+
let Z = (_a = k.current) == null ? void 0 : _a.view, $ = () => {
|
|
7266
|
+
if (Z) {
|
|
7267
|
+
let e19 = Z.state.doc.length;
|
|
7268
|
+
Z.dispatch({ changes: {
|
|
7268
7269
|
from: 0,
|
|
7269
7270
|
to: e19,
|
|
7270
7271
|
insert: ""
|
|
@@ -7281,7 +7282,7 @@ const Chatbot = (e18) => {
|
|
|
7281
7282
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
7282
7283
|
variant: "text",
|
|
7283
7284
|
size: "icon",
|
|
7284
|
-
disabled:
|
|
7285
|
+
disabled: I.length === 0,
|
|
7285
7286
|
onClick: () => {
|
|
7286
7287
|
z([]), e18.setValue([]), e18.delete_chat_history({}), W();
|
|
7287
7288
|
},
|
|
@@ -7290,9 +7291,9 @@ const Chatbot = (e18) => {
|
|
|
7290
7291
|
}),
|
|
7291
7292
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7292
7293
|
className: "grow overflow-y-auto gap-4 pt-8 pb-4 px-2 flex flex-col",
|
|
7293
|
-
ref:
|
|
7294
|
+
ref: A,
|
|
7294
7295
|
children: [
|
|
7295
|
-
|
|
7296
|
+
I.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7296
7297
|
className: "flex flex-col items-center justify-center h-full text-muted-foreground text-center p-4",
|
|
7297
7298
|
children: [
|
|
7298
7299
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-12 w-12 mb-4" }),
|
|
@@ -7306,9 +7307,9 @@ const Chatbot = (e18) => {
|
|
|
7306
7307
|
})
|
|
7307
7308
|
]
|
|
7308
7309
|
}),
|
|
7309
|
-
|
|
7310
|
+
I.map((e19, _2) => {
|
|
7310
7311
|
var _a2;
|
|
7311
|
-
let v2 = (_a2 = e19.parts) == null ? void 0 : _a2.filter((e20) => e20.type === "text").map((e20) => e20.text).join("\n"), y2 = _2 ===
|
|
7312
|
+
let v2 = (_a2 = e19.parts) == null ? void 0 : _a2.filter((e20) => e20.type === "text").map((e20) => e20.text).join("\n"), y2 = _2 === I.length - 1;
|
|
7312
7313
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7313
7314
|
className: cn("flex flex-col group gap-2", e19.role === "user" ? "items-end" : "items-start"),
|
|
7314
7315
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -7357,7 +7358,7 @@ const Chatbot = (e18) => {
|
|
|
7357
7358
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
|
|
7358
7359
|
onSubmit: async (v2) => {
|
|
7359
7360
|
if (v2.preventDefault(), e18.disabled) return;
|
|
7360
|
-
let y2 =
|
|
7361
|
+
let y2 = T ? await convertToFileUIPart(T) : void 0;
|
|
7361
7362
|
R({
|
|
7362
7363
|
role: "user",
|
|
7363
7364
|
parts: [{
|
|
@@ -7366,7 +7367,7 @@ const Chatbot = (e18) => {
|
|
|
7366
7367
|
}, ...y2 ?? []]
|
|
7367
7368
|
}), $();
|
|
7368
7369
|
},
|
|
7369
|
-
ref:
|
|
7370
|
+
ref: O,
|
|
7370
7371
|
inert: e18.disabled || void 0,
|
|
7371
7372
|
className: cn("flex w-full border-t border-(--slate-6) px-2 py-1 items-center", e18.disabled && "opacity-50 cursor-not-allowed"),
|
|
7372
7373
|
children: [
|
|
@@ -7378,41 +7379,41 @@ const Chatbot = (e18) => {
|
|
|
7378
7379
|
prompts: e18.prompts,
|
|
7379
7380
|
onSelect: (e19) => {
|
|
7380
7381
|
v(e19), requestAnimationFrame(() => {
|
|
7381
|
-
|
|
7382
|
+
Z == null ? void 0 : Z.focus(), moveToEndOfEditor(Z);
|
|
7382
7383
|
});
|
|
7383
7384
|
}
|
|
7384
7385
|
}),
|
|
7385
7386
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PromptInput, {
|
|
7386
7387
|
className: "rounded-sm mr-2",
|
|
7387
|
-
placeholder:
|
|
7388
|
+
placeholder: Y,
|
|
7388
7389
|
value: _,
|
|
7389
|
-
inputRef:
|
|
7390
|
+
inputRef: k,
|
|
7390
7391
|
maxHeight: e18.maxHeight ? `${e18.maxHeight / 2}px` : void 0,
|
|
7391
7392
|
onChange: v,
|
|
7392
7393
|
onSubmit: (e19, _2) => {
|
|
7393
7394
|
var _a2;
|
|
7394
|
-
_2.trim() && ((_a2 =
|
|
7395
|
+
_2.trim() && ((_a2 = O.current) == null ? void 0 : _a2.requestSubmit());
|
|
7395
7396
|
},
|
|
7396
7397
|
onClose: () => {
|
|
7397
7398
|
},
|
|
7398
7399
|
additionalCompletions: J
|
|
7399
7400
|
}),
|
|
7400
|
-
|
|
7401
|
-
title:
|
|
7401
|
+
T && T.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
7402
|
+
title: T[0].name,
|
|
7402
7403
|
className: "text-sm text-(--slate-11) truncate shrink-0 w-fit max-w-24",
|
|
7403
|
-
children:
|
|
7404
|
+
children: T[0].name
|
|
7404
7405
|
}),
|
|
7405
|
-
|
|
7406
|
-
title: [...
|
|
7406
|
+
T && T.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
7407
|
+
title: [...T].map((e19) => e19.name).join("\n"),
|
|
7407
7408
|
className: "text-sm text-(--slate-11) truncate shrink-0",
|
|
7408
|
-
children: [
|
|
7409
|
+
children: [T.length, " files"]
|
|
7409
7410
|
}),
|
|
7410
|
-
|
|
7411
|
+
T && T.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
7411
7412
|
type: "button",
|
|
7412
7413
|
variant: "text",
|
|
7413
7414
|
size: "sm",
|
|
7414
7415
|
onClick: () => {
|
|
7415
|
-
|
|
7416
|
+
E(void 0), D.current && (D.current.value = "");
|
|
7416
7417
|
},
|
|
7417
7418
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
|
|
7418
7419
|
}),
|
|
@@ -7422,17 +7423,17 @@ const Chatbot = (e18) => {
|
|
|
7422
7423
|
size: "sm",
|
|
7423
7424
|
onClick: () => {
|
|
7424
7425
|
var _a2;
|
|
7425
|
-
return (_a2 =
|
|
7426
|
+
return (_a2 = D.current) == null ? void 0 : _a2.click();
|
|
7426
7427
|
},
|
|
7427
7428
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Paperclip, { className: "h-4" })
|
|
7428
7429
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
|
|
7429
7430
|
type: "file",
|
|
7430
|
-
ref:
|
|
7431
|
+
ref: D,
|
|
7431
7432
|
className: "hidden",
|
|
7432
7433
|
multiple: true,
|
|
7433
7434
|
accept: Array.isArray(e18.allowAttachments) ? e18.allowAttachments.join(",") : void 0,
|
|
7434
7435
|
onChange: (e19) => {
|
|
7435
|
-
e19.target.files &&
|
|
7436
|
+
e19.target.files && E([...e19.target.files]);
|
|
7436
7437
|
}
|
|
7437
7438
|
})] }),
|
|
7438
7439
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -7601,8 +7602,8 @@ var configDescriptions = {
|
|
|
7601
7602
|
})] }) }), _[8] = D, _[9] = O);
|
|
7602
7603
|
let k;
|
|
7603
7604
|
_[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => x(false), _[10] = k) : k = _[10];
|
|
7604
|
-
let
|
|
7605
|
-
_[11] !== y || _[12] !== S ? (
|
|
7605
|
+
let A;
|
|
7606
|
+
_[11] !== y || _[12] !== S ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
7606
7607
|
side: "right",
|
|
7607
7608
|
align: "end",
|
|
7608
7609
|
className: "min-w-80 px-2",
|
|
@@ -7611,13 +7612,13 @@ var configDescriptions = {
|
|
|
7611
7612
|
onClose: k,
|
|
7612
7613
|
onSelect: y
|
|
7613
7614
|
})
|
|
7614
|
-
}), _[11] = y, _[12] = S, _[13] =
|
|
7615
|
+
}), _[11] = y, _[12] = S, _[13] = A) : A = _[13];
|
|
7615
7616
|
let M;
|
|
7616
|
-
return _[14] !== b || _[15] !== O || _[16] !==
|
|
7617
|
+
return _[14] !== b || _[15] !== O || _[16] !== A ? (M = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Popover, {
|
|
7617
7618
|
open: b,
|
|
7618
7619
|
onOpenChange: x,
|
|
7619
|
-
children: [O,
|
|
7620
|
-
}), _[14] = b, _[15] = O, _[16] =
|
|
7620
|
+
children: [O, A]
|
|
7621
|
+
}), _[14] = b, _[15] = O, _[16] = A, _[17] = M) : M = _[17], M;
|
|
7621
7622
|
}, PromptVariablesForm = (e18) => {
|
|
7622
7623
|
let _ = (0, import_compiler_runtime.c)(32), { prompt: v, onClose: y, onSelect: b } = e18, x;
|
|
7623
7624
|
_[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {}, _[0] = x) : x = _[0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { a as GitGraphGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, i as CommonValueConverter, m as inject, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-
|
|
2
|
+
import { a as GitGraphGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, i as CommonValueConverter, m as inject, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-Clbl-fTg.js";
|
|
3
3
|
var GitGraphTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
|
|
4
4
|
constructor() {
|
|
5
5
|
super(["gitGraph"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as purify } from "./purify.es-
|
|
1
|
+
import { t as purify } from "./purify.es-hTCfRGdl.js";
|
|
2
2
|
import { a as setLogLevel, i as log, n as __export, r as __name } from "./src-DbP20yFZ.js";
|
|
3
3
|
let rgba_default, parseGenericTypes, setAccTitle, getDiagramTitle, getUserDefinedConfig, getUrl, sanitizeDirective, setupGraphViewbox, setConfig2, sanitizeText, themes_default, setupGraphViewbox2, sanitizeText3, registerLazyLoadedDiagrams, renderKatexSanitized, hasKatex, reset, is_dark_default, saveConfigFromInitialize, getDiagramLoader, getThemeVariables3, setDiagramTitle, setConfig, setSiteConfig, darken_default, updateSiteConfig, lighten_default, getAccDescription, clear, getConfig2, configureSvgSize, defaultConfig_default, color_default, detectType, frontMatterRegex, evaluate, calculateMathMLDimensions, registerDiagram, lineBreakRegex, defaultConfig, directiveRegex, addDirective, commonDb_exports, detectors, styles_default, assignWithDepth_default, common_default, UnknownDiagramError, utils_default, defaultConfig2, getAccTitle, getSiteConfig, getDiagram, getConfig, setAccDescription;
|
|
4
4
|
let __tla = (async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __name } from "./src-DbP20yFZ.js";
|
|
2
|
-
import { b as getConfig2 } from "./chunk-ABZYJK2D-
|
|
2
|
+
import { b as getConfig2 } from "./chunk-ABZYJK2D-CZYCCtLy.js";
|
|
3
3
|
var solidStateFill = /* @__PURE__ */ __name((e) => {
|
|
4
4
|
let { handDrawnSeed: r } = getConfig2();
|
|
5
5
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _a, _b, _c;
|
|
2
|
-
import { d as TreemapGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, m as inject, n as AbstractMermaidValueConverter, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-
|
|
2
|
+
import { d as TreemapGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, m as inject, n as AbstractMermaidValueConverter, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-Clbl-fTg.js";
|
|
3
3
|
var TreemapTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
|
|
4
4
|
constructor() {
|
|
5
5
|
super(["treemap"]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
|
-
import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-
|
|
2
|
+
import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-B0UOFJwq.js";
|
|
3
3
|
import { i as log, r as __name, t as select_default } from "./src-DbP20yFZ.js";
|
|
4
|
-
import { A as parseGenericTypes, B as setAccTitle, C as getDiagramTitle, I as sanitizeText, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-
|
|
5
|
-
import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-
|
|
4
|
+
import { A as parseGenericTypes, B as setAccTitle, C as getDiagramTitle, I as sanitizeText, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-CZYCCtLy.js";
|
|
5
|
+
import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-CpZSuGSU.js";
|
|
6
6
|
import { t as getIconStyles } from "./chunk-FMBD7UC4-BjIaI-XO.js";
|
|
7
7
|
import { t as getDiagramElement } from "./chunk-55IACEB6-DRsSqxbU.js";
|
|
8
|
-
import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-
|
|
8
|
+
import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-B9p5ojHB.js";
|
|
9
9
|
var parser = (function() {
|
|
10
10
|
var e = /* @__PURE__ */ __name(function(e2, t2, n2, r) {
|
|
11
11
|
for (n2 || (n2 = {}), r = e2.length; r--; n2[e2[r]] = t2) ;
|