@marimo-team/islands 0.14.18-dev4 → 0.14.18-dev40
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-BxgomKEj.js → ConnectedDataExplorerComponent-D9q8jDgz.js} +2 -2
- package/dist/{ImageComparisonComponent-euoD7dEQ.js → ImageComparisonComponent-TLrFyeGm.js} +1 -1
- package/dist/{_baseUniq-B0fx6-mD.js → _baseUniq-C789h55S.js} +54 -54
- package/dist/{any-language-editor-Dhx2399Z.js → any-language-editor-CtYF3mh0.js} +1 -1
- package/dist/{architectureDiagram-SUXI7LT5-B0sXh36T.js → architectureDiagram-SUXI7LT5-tI_uA6-G.js} +5 -5
- package/dist/assets/{worker-BFGyNjDW.js → worker-COGufAQn.js} +866 -857
- package/dist/{blockDiagram-6J76NXCF-BV6y0dGc.js → blockDiagram-6J76NXCF-BkW28X9c.js} +5 -5
- package/dist/{c4Diagram-6F6E4RAY-DMvA8syT.js → c4Diagram-6F6E4RAY-Oc0r0zWU.js} +2 -2
- package/dist/{channel-DUrqW7jq.js → channel-Cug1-1-S.js} +1 -1
- package/dist/{chunk-353BL4L5-D07DCz1P.js → chunk-353BL4L5-BZJMXfnU.js} +1 -1
- package/dist/{chunk-67H74DCK-Dxl6YFgh.js → chunk-67H74DCK-m0H-ur8r.js} +1 -1
- package/dist/{chunk-AACKK3MU-CAcS9PuO.js → chunk-AACKK3MU-gr8QIV67.js} +1 -1
- package/dist/{chunk-BFAMUDN2-Co4EIchY.js → chunk-BFAMUDN2-BYrkUIjj.js} +1 -1
- package/dist/{chunk-E2GYISFI-C_TSWe1f.js → chunk-E2GYISFI-CeMgtQH_.js} +1 -1
- package/dist/{chunk-OW32GOEJ-C11RCuWa.js → chunk-OW32GOEJ-zkwG7LnM.js} +3 -3
- package/dist/{chunk-SKB7J2MH-rWkMGBQ9.js → chunk-SKB7J2MH-_tLm2ZU7.js} +1 -1
- package/dist/{chunk-SZ463SBG-C32KIeaO.js → chunk-SZ463SBG-CHYxV7Jf.js} +4 -4
- package/dist/{classDiagram-v2-YAWTLIQI-DxWIMGpC.js → classDiagram-M3E45YP4-D2Gg6x1M.js} +2 -2
- package/dist/{classDiagram-M3E45YP4-DxWIMGpC.js → classDiagram-v2-YAWTLIQI-D2Gg6x1M.js} +2 -2
- package/dist/{clone-ByH0K_W2.js → clone-BZjp8DHO.js} +1 -1
- package/dist/common-keywords-BefPf8TA.js +7 -0
- package/dist/{dagre-JOIXM2OF-f0SO6y9I.js → dagre-JOIXM2OF-C35wyuSf.js} +6 -6
- package/dist/{data-grid-overlay-editor-CfB3QC9_.js → data-grid-overlay-editor-DSpSXYZ0.js} +2 -2
- package/dist/{diagram-5UYTHUR4-F7GLu-Ns.js → diagram-5UYTHUR4-BTq6bqU6.js} +3 -3
- package/dist/{diagram-VMROVX33-Csog3YHt.js → diagram-VMROVX33-Cy-ErxuA.js} +5 -5
- package/dist/{diagram-ZTM2IBQH-Xjsw2NPe.js → diagram-ZTM2IBQH-mgYUHXfx.js} +3 -3
- package/dist/duckdb-keywords-WTV2Iln-.js +7 -0
- package/dist/{erDiagram-3M52JZNH-BAui6m1D.js → erDiagram-3M52JZNH-oW-ZhqQr.js} +4 -4
- package/dist/{flowDiagram-KYDEHFYC-0wQEMK2o.js → flowDiagram-KYDEHFYC-IkABodJ8.js} +5 -5
- package/dist/{ganttDiagram-EK5VF46D-DHo-b5pj.js → ganttDiagram-EK5VF46D-hP8YkTqz.js} +77 -77
- package/dist/{gitGraphDiagram-GW3U2K7C-wZ-56Hnm.js → gitGraphDiagram-GW3U2K7C-DcZiyFUT.js} +4 -4
- package/dist/{glide-data-editor-B3XVw2Mw.js → glide-data-editor-sn6tfLNF.js} +3 -3
- package/dist/{graph-DXnsoOOA.js → graph-B03e3k7d.js} +3 -3
- package/dist/{index-CU6lfdjU.js → index-BU6LQTfP.js} +144 -144
- package/dist/{index-B-ooTna3.js → index-Clz9Ku-U.js} +1 -1
- package/dist/{index-DO0k7DqJ.js → index-Cz2tYb3q.js} +1 -1
- package/dist/{index-B6IPVf5H.js → index-PgGpU5la.js} +1 -1
- package/dist/index-pjylFSfy.js +40315 -0
- package/dist/{infoDiagram-LHK5PUON-DUJ_JyYE.js → infoDiagram-LHK5PUON-DW_psL4D.js} +2 -2
- package/dist/{journeyDiagram-EWQZEKCU-CoKJET3s.js → journeyDiagram-EWQZEKCU-btmYkpZ5.js} +3 -3
- package/dist/{kanban-definition-ZSS6B67P-77ozoRYv.js → kanban-definition-ZSS6B67P-BJgjVeuK.js} +2 -2
- package/dist/{layout-CVyew7cl.js → layout-D5tYKGro.js} +35 -35
- package/dist/{linear-KLiyUEfW.js → linear-C57Qg6o9.js} +19 -19
- package/dist/{main-oBXj9Aa7.js → main-D1gyEFIz.js} +41512 -40168
- package/dist/main.js +1 -1
- package/dist/{mermaid-DaNqdymj.js → mermaid-B67irHCy.js} +29 -29
- package/dist/{min-CtguZ_r5.js → min-DB4yN-iG.js} +14 -14
- package/dist/{mindmap-definition-6CBA2TL7-B2lGu2md.js → mindmap-definition-6CBA2TL7-Btj_GH0i.js} +2 -2
- package/dist/{number-overlay-editor-oN-BU6fN.js → number-overlay-editor-DLOwjGyR.js} +2 -2
- package/dist/{pieDiagram-NIOCPIFQ-BCBeeFaR.js → pieDiagram-NIOCPIFQ-zbyN2OKJ.js} +3 -3
- package/dist/{quadrantDiagram-2OG54O6I-BC4xBrui.js → quadrantDiagram-2OG54O6I-6nUlmHsX.js} +2 -2
- package/dist/{react-plotly-CiGb_W-q.js → react-plotly-QT9ITkZn.js} +1 -1
- package/dist/{requirementDiagram-QOLK2EJ7-B2-hPu1P.js → requirementDiagram-QOLK2EJ7-DHTcmfBW.js} +3 -3
- package/dist/{sankeyDiagram-4UZDY2LN-OwmYOUUc.js → sankeyDiagram-4UZDY2LN-C-KvjQAY.js} +1 -1
- package/dist/{sequenceDiagram-SKLFT4DO-B27yiIzR.js → sequenceDiagram-SKLFT4DO-DM4_c2yP.js} +3 -3
- package/dist/{slides-component-CRfxAQyL.js → slides-component-W8fG0alk.js} +26 -26
- package/dist/{stateDiagram-MI5ZYTHO-C_LRbiOo.js → stateDiagram-MI5ZYTHO-CBM4CjaM.js} +4 -4
- package/dist/{stateDiagram-v2-5AN5P6BG-DKz7e8Yc.js → stateDiagram-v2-5AN5P6BG-QO6urHDg.js} +2 -2
- package/dist/{time-C_5XCLWA.js → time-C5vL_Q_i.js} +2 -2
- package/dist/{timeline-definition-MYPXXCX6-C39p9cJ6.js → timeline-definition-MYPXXCX6-CjPJ5yOK.js} +1 -1
- package/dist/{treemap-75Q7IDZK-DG5pexEL.js → treemap-75Q7IDZK-CaHoPejr.js} +131 -131
- package/dist/{vega-component-B1zImi__.js → vega-component-D4reQ-3p.js} +2 -2
- package/dist/{xychartDiagram-H2YORKM3-D3ljR9-t.js → xychartDiagram-H2YORKM3-DHBboBU3.js} +2 -2
- package/package.json +12 -6
- package/src/README.md +18 -0
- package/src/__mocks__/common.ts +160 -0
- package/src/__mocks__/notebook.ts +76 -0
- package/src/__mocks__/requests.ts +72 -0
- package/src/__mocks__/tracebacks.ts +32 -0
- package/src/__tests__/CellStatus.test.tsx +263 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +523 -0
- package/src/__tests__/chat-utils.test.ts +234 -0
- package/src/__tests__/lru.test.ts +74 -0
- package/src/__tests__/main.test.tsx +174 -0
- package/src/__tests__/setup.ts +17 -0
- package/src/__tests__/test-helpers.ts +24 -0
- package/src/assets/circle-check.ico +0 -0
- package/src/assets/circle-play.ico +0 -0
- package/src/assets/circle-x.ico +0 -0
- package/src/assets/gradient.png +0 -0
- package/src/assets/icon-16x16.png +0 -0
- package/src/assets/icon-32x32.png +0 -0
- package/src/assets/noise.png +0 -0
- package/src/components/ai/ai-model-dropdown.tsx +280 -0
- package/src/components/ai/ai-provider-icon.tsx +52 -0
- package/src/components/app-config/ai-config.tsx +855 -0
- package/src/components/app-config/app-config-button.tsx +100 -0
- package/src/components/app-config/app-config-form.tsx +307 -0
- package/src/components/app-config/common.tsx +48 -0
- package/src/components/app-config/constants.ts +13 -0
- package/src/components/app-config/incorrect-model-id.tsx +43 -0
- package/src/components/app-config/is-overridden.tsx +119 -0
- package/src/components/app-config/optional-features.tsx +251 -0
- package/src/components/app-config/state.ts +18 -0
- package/src/components/app-config/user-config-form.tsx +1361 -0
- package/src/components/audio/audio-recorder.tsx +63 -0
- package/src/components/buttons/clear-button.tsx +23 -0
- package/src/components/buttons/undo-button.tsx +35 -0
- package/src/components/chat/chat-panel.tsx +715 -0
- package/src/components/chat/markdown-renderer.tsx +217 -0
- package/src/components/chat/reasoning-accordion.tsx +50 -0
- package/src/components/chat/tool-call-accordion.tsx +118 -0
- package/src/components/data-table/SearchBar.tsx +66 -0
- package/src/components/data-table/TableActions.tsx +183 -0
- package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +1079 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +707 -0
- package/src/components/data-table/__tests__/column_formatting.test.ts +115 -0
- package/src/components/data-table/__tests__/columns.test.tsx +341 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +60 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +152 -0
- package/src/components/data-table/__tests__/types.test.ts +44 -0
- package/src/components/data-table/__tests__/url-detector.test.tsx +169 -0
- package/src/components/data-table/__tests__/useColumnPinning.test.ts +76 -0
- package/src/components/data-table/cell-selection/__tests__/feature.test.ts +187 -0
- package/src/components/data-table/cell-selection/feature.ts +123 -0
- package/src/components/data-table/cell-selection/types.ts +49 -0
- package/src/components/data-table/cell-styling/feature.ts +40 -0
- package/src/components/data-table/cell-styling/types.ts +26 -0
- package/src/components/data-table/charts/README.md +65 -0
- package/src/components/data-table/charts/__tests__/__snapshots__/spec-snapshot.test.ts.snap +47 -0
- package/src/components/data-table/charts/__tests__/altair-generator.test.ts +425 -0
- package/src/components/data-table/charts/__tests__/renderer.test.ts +20 -0
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +83 -0
- package/src/components/data-table/charts/__tests__/spec.test.ts +997 -0
- package/src/components/data-table/charts/__tests__/storage.test.ts +103 -0
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +162 -0
- package/src/components/data-table/charts/chart-spec/encodings.ts +173 -0
- package/src/components/data-table/charts/chart-spec/spec.ts +345 -0
- package/src/components/data-table/charts/chart-spec/tooltips.ts +168 -0
- package/src/components/data-table/charts/chart-spec/types.ts +77 -0
- package/src/components/data-table/charts/charts.tsx +492 -0
- package/src/components/data-table/charts/components/chart-items.tsx +369 -0
- package/src/components/data-table/charts/components/chart-states.tsx +37 -0
- package/src/components/data-table/charts/components/form-fields.tsx +872 -0
- package/src/components/data-table/charts/components/layouts.tsx +118 -0
- package/src/components/data-table/charts/constants.ts +159 -0
- package/src/components/data-table/charts/context.ts +20 -0
- package/src/components/data-table/charts/forms/common-chart.tsx +202 -0
- package/src/components/data-table/charts/forms/heatmap.tsx +44 -0
- package/src/components/data-table/charts/forms/pie.tsx +70 -0
- package/src/components/data-table/charts/lazy-chart.tsx +56 -0
- package/src/components/data-table/charts/schemas.ts +140 -0
- package/src/components/data-table/charts/storage.ts +88 -0
- package/src/components/data-table/charts/types.ts +124 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +227 -0
- package/src/components/data-table/column-formatting/feature.ts +247 -0
- package/src/components/data-table/column-formatting/types.ts +54 -0
- package/src/components/data-table/column-header.tsx +672 -0
- package/src/components/data-table/column-summary/chart-skeleton.tsx +57 -0
- package/src/components/data-table/column-summary/chart-spec-model.tsx +916 -0
- package/src/components/data-table/column-summary/column-summary.tsx +166 -0
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +242 -0
- package/src/components/data-table/column-summary/utils.ts +142 -0
- package/src/components/data-table/column-wrapping/feature.ts +62 -0
- package/src/components/data-table/column-wrapping/types.ts +29 -0
- package/src/components/data-table/columns.tsx +528 -0
- package/src/components/data-table/copy-column/feature.ts +27 -0
- package/src/components/data-table/copy-column/types.ts +19 -0
- package/src/components/data-table/data-table.tsx +298 -0
- package/src/components/data-table/date-popover.tsx +146 -0
- package/src/components/data-table/download-actions.tsx +186 -0
- package/src/components/data-table/filter-pills.tsx +120 -0
- package/src/components/data-table/filters.ts +202 -0
- package/src/components/data-table/focus-row/feature.ts +41 -0
- package/src/components/data-table/focus-row/types.ts +32 -0
- package/src/components/data-table/header-items.tsx +295 -0
- package/src/components/data-table/hooks/use-column-pinning.ts +51 -0
- package/src/components/data-table/hooks/use-panel-ownership.ts +98 -0
- package/src/components/data-table/loading-table.tsx +56 -0
- package/src/components/data-table/mime-cell.tsx +68 -0
- package/src/components/data-table/pagination.tsx +329 -0
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +907 -0
- package/src/components/data-table/range-focus/__tests__/utils.test.ts +316 -0
- package/src/components/data-table/range-focus/atoms.ts +380 -0
- package/src/components/data-table/range-focus/cell-selection-indicator.tsx +37 -0
- package/src/components/data-table/range-focus/provider.tsx +13 -0
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +119 -0
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +46 -0
- package/src/components/data-table/range-focus/utils.ts +105 -0
- package/src/components/data-table/renderers.tsx +247 -0
- package/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.ts +82 -0
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +58 -0
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +371 -0
- package/src/components/data-table/types.ts +81 -0
- package/src/components/data-table/uniformSample.tsx +19 -0
- package/src/components/data-table/url-detector.tsx +111 -0
- package/src/components/data-table/utils.ts +46 -0
- package/src/components/databases/display.tsx +66 -0
- package/src/components/databases/engine-variable.tsx +51 -0
- package/src/components/databases/icon.tsx +91 -0
- package/src/components/databases/icons/clickhouse.svg +1 -0
- package/src/components/databases/icons/databricks.svg +1 -0
- package/src/components/databases/icons/datafusion.png +0 -0
- package/src/components/databases/icons/duckdb.svg +1 -0
- package/src/components/databases/icons/googlebigquery.svg +1 -0
- package/src/components/databases/icons/iceberg.png +0 -0
- package/src/components/databases/icons/motherduck.svg +9 -0
- package/src/components/databases/icons/mysql.svg +1 -0
- package/src/components/databases/icons/postgresql.svg +1 -0
- package/src/components/databases/icons/redshift.svg +1 -0
- package/src/components/databases/icons/snowflake.svg +1 -0
- package/src/components/databases/icons/spark.svg +1 -0
- package/src/components/databases/icons/sqlalchemy.svg +1 -0
- package/src/components/databases/icons/sqlite.svg +1 -0
- package/src/components/databases/icons/timeplus.svg +17 -0
- package/src/components/databases/icons/trino.svg +1 -0
- package/src/components/datasets/icons.tsx +55 -0
- package/src/components/datasources/__tests__/install-package-button.test.tsx +85 -0
- package/src/components/datasources/__tests__/utils.test.ts +171 -0
- package/src/components/datasources/column-preview.tsx +269 -0
- package/src/components/datasources/components.tsx +100 -0
- package/src/components/datasources/datasources.tsx +782 -0
- package/src/components/datasources/install-package-button.tsx +46 -0
- package/src/components/datasources/utils.ts +62 -0
- package/src/components/debug/indicator.tsx +19 -0
- package/src/components/debugger/debugger-code.css +3 -0
- package/src/components/debugger/debugger-code.tsx +222 -0
- package/src/components/dependency-graph/custom-node.tsx +89 -0
- package/src/components/dependency-graph/dependency-graph-minimap.tsx +197 -0
- package/src/components/dependency-graph/dependency-graph-tree.tsx +181 -0
- package/src/components/dependency-graph/dependency-graph.css +17 -0
- package/src/components/dependency-graph/dependency-graph.tsx +66 -0
- package/src/components/dependency-graph/elements.ts +185 -0
- package/src/components/dependency-graph/panels.tsx +279 -0
- package/src/components/dependency-graph/types.ts +21 -0
- package/src/components/dependency-graph/utils/changes.ts +54 -0
- package/src/components/dependency-graph/utils/layout.ts +45 -0
- package/src/components/dependency-graph/utils/useFitToViewOnDimensionChange.ts +25 -0
- package/src/components/editor/Cell.tsx +1175 -0
- package/src/components/editor/Disconnected.tsx +72 -0
- package/src/components/editor/Output.tsx +462 -0
- package/src/components/editor/RecoveryButton.tsx +161 -0
- package/src/components/editor/SortableCell.tsx +161 -0
- package/src/components/editor/__tests__/data-attributes.test.tsx +173 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +183 -0
- package/src/components/editor/actions/name-cell-input.tsx +137 -0
- package/src/components/editor/actions/types.ts +53 -0
- package/src/components/editor/actions/useCellActionButton.tsx +422 -0
- package/src/components/editor/actions/useConfigActions.tsx +182 -0
- package/src/components/editor/actions/useCopyNotebook.tsx +41 -0
- package/src/components/editor/actions/useHideAllMarkdownCode.ts +53 -0
- package/src/components/editor/actions/useNotebookActions.tsx +556 -0
- package/src/components/editor/actions/useRestartKernel.tsx +36 -0
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +379 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +423 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +261 -0
- package/src/components/editor/ai/completion-utils.ts +95 -0
- package/src/components/editor/ai/merge-editor.css +9 -0
- package/src/components/editor/alerts/connecting-alert.tsx +46 -0
- package/src/components/editor/alerts/floating-alert.tsx +47 -0
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +61 -0
- package/src/components/editor/app-container.tsx +53 -0
- package/src/components/editor/boundary/ErrorBoundary.tsx +41 -0
- package/src/components/editor/cell/CellStatus.tsx +371 -0
- package/src/components/editor/cell/CreateCellButton.tsx +132 -0
- package/src/components/editor/cell/DeleteButton.tsx +58 -0
- package/src/components/editor/cell/PendingDeleteConfirmation.tsx +126 -0
- package/src/components/editor/cell/RunButton.tsx +109 -0
- package/src/components/editor/cell/StopButton.tsx +36 -0
- package/src/components/editor/cell/TinyCode.css +10 -0
- package/src/components/editor/cell/TinyCode.tsx +53 -0
- package/src/components/editor/cell/cell-actions.tsx +185 -0
- package/src/components/editor/cell/cell-context-menu.tsx +243 -0
- package/src/components/editor/cell/cell-status.css +21 -0
- package/src/components/editor/cell/code/cell-editor.tsx +546 -0
- package/src/components/editor/cell/code/icons.tsx +31 -0
- package/src/components/editor/cell/code/language-toggle.tsx +140 -0
- package/src/components/editor/cell/collapse.tsx +100 -0
- package/src/components/editor/cell/toolbar.tsx +89 -0
- package/src/components/editor/cell/useAddCell.ts +29 -0
- package/src/components/editor/cell/useDeleteCell.tsx +89 -0
- package/src/components/editor/cell/useRunCells.ts +86 -0
- package/src/components/editor/cell/useShouldShowInterrupt.ts +26 -0
- package/src/components/editor/cell/useSplitCell.tsx +41 -0
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +138 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +105 -0
- package/src/components/editor/chrome/panels/__tests__/write-secret-modal.test.ts +43 -0
- package/src/components/editor/chrome/panels/constants.ts +2 -0
- package/src/components/editor/chrome/panels/context-aware-panel/atoms.ts +28 -0
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +167 -0
- package/src/components/editor/chrome/panels/datasources-panel.tsx +6 -0
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +23 -0
- package/src/components/editor/chrome/panels/documentation-panel.tsx +29 -0
- package/src/components/editor/chrome/panels/empty-state.tsx +28 -0
- package/src/components/editor/chrome/panels/error-panel.tsx +35 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +33 -0
- package/src/components/editor/chrome/panels/logs-panel.tsx +97 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +129 -0
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +172 -0
- package/src/components/editor/chrome/panels/outline-panel.css +6 -0
- package/src/components/editor/chrome/panels/outline-panel.tsx +39 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +635 -0
- package/src/components/editor/chrome/panels/packages-state.ts +5 -0
- package/src/components/editor/chrome/panels/scratchpad-panel.tsx +8 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +155 -0
- package/src/components/editor/chrome/panels/snippets-panel.css +11 -0
- package/src/components/editor/chrome/panels/snippets-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/tracing-panel.tsx +28 -0
- package/src/components/editor/chrome/panels/variable-panel.tsx +31 -0
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +190 -0
- package/src/components/editor/chrome/state.ts +102 -0
- package/src/components/editor/chrome/types.ts +133 -0
- package/src/components/editor/chrome/wrapper/__tests__/minimap-state.test.ts +209 -0
- package/src/components/editor/chrome/wrapper/__tests__/storage.test.ts +41 -0
- package/src/components/editor/chrome/wrapper/app-chrome.css +22 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +256 -0
- package/src/components/editor/chrome/wrapper/footer-item.tsx +43 -0
- package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +47 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +111 -0
- package/src/components/editor/chrome/wrapper/footer-items/copilot-status.tsx +125 -0
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +185 -0
- package/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx +21 -0
- package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +65 -0
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +370 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +90 -0
- package/src/components/editor/chrome/wrapper/minimap-state.ts +164 -0
- package/src/components/editor/chrome/wrapper/minimap.tsx +443 -0
- package/src/components/editor/chrome/wrapper/panels.tsx +10 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +100 -0
- package/src/components/editor/chrome/wrapper/storage.ts +56 -0
- package/src/components/editor/chrome/wrapper/utils.ts +8 -0
- package/src/components/editor/code/readonly-python-code.tsx +160 -0
- package/src/components/editor/columns/__tests__/storage.test.ts +104 -0
- package/src/components/editor/columns/cell-column.tsx +105 -0
- package/src/components/editor/columns/sortable-column.tsx +175 -0
- package/src/components/editor/columns/storage.ts +56 -0
- package/src/components/editor/common.ts +20 -0
- package/src/components/editor/controls/Controls.tsx +225 -0
- package/src/components/editor/controls/command-palette-button.tsx +27 -0
- package/src/components/editor/controls/command-palette.tsx +210 -0
- package/src/components/editor/controls/keyboard-shortcuts.tsx +309 -0
- package/src/components/editor/controls/notebook-menu-dropdown.tsx +157 -0
- package/src/components/editor/controls/shutdown-button.tsx +70 -0
- package/src/components/editor/database/__tests__/__snapshots__/as-code.test.ts.snap +659 -0
- package/src/components/editor/database/__tests__/as-code.test.ts +598 -0
- package/src/components/editor/database/__tests__/secrets.test.ts +38 -0
- package/src/components/editor/database/add-database-form.tsx +395 -0
- package/src/components/editor/database/as-code.ts +786 -0
- package/src/components/editor/database/form-renderers.tsx +211 -0
- package/src/components/editor/database/schemas.ts +485 -0
- package/src/components/editor/database/secrets.ts +25 -0
- package/src/components/editor/documentation.css +139 -0
- package/src/components/editor/dynamic-favicon.tsx +126 -0
- package/src/components/editor/errors/auto-fix.tsx +61 -0
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +321 -0
- package/src/components/editor/file-tree/file-explorer.tsx +679 -0
- package/src/components/editor/file-tree/file-viewer.tsx +283 -0
- package/src/components/editor/file-tree/renderers.tsx +83 -0
- package/src/components/editor/file-tree/requesting-tree.tsx +228 -0
- package/src/components/editor/file-tree/state.tsx +26 -0
- package/src/components/editor/file-tree/types.ts +118 -0
- package/src/components/editor/file-tree/upload.tsx +101 -0
- package/src/components/editor/header/app-header.tsx +28 -0
- package/src/components/editor/header/filename-form.tsx +27 -0
- package/src/components/editor/header/filename-input.css +21 -0
- package/src/components/editor/header/filename-input.tsx +244 -0
- package/src/components/editor/header/status.tsx +72 -0
- package/src/components/editor/inputs/Inputs.css +118 -0
- package/src/components/editor/inputs/Inputs.styles.ts +66 -0
- package/src/components/editor/inputs/Inputs.tsx +34 -0
- package/src/components/editor/kiosk-mode.tsx +25 -0
- package/src/components/editor/links/cell-link-list.tsx +74 -0
- package/src/components/editor/links/cell-link.tsx +128 -0
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +466 -0
- package/src/components/editor/navigation/__tests__/navigation.test.ts +1743 -0
- package/src/components/editor/navigation/__tests__/selection.test.ts +194 -0
- package/src/components/editor/navigation/clipboard.ts +205 -0
- package/src/components/editor/navigation/focus-utils.ts +48 -0
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +499 -0
- package/src/components/editor/navigation/navigation.ts +698 -0
- package/src/components/editor/navigation/selection.ts +114 -0
- package/src/components/editor/navigation/state.ts +5 -0
- package/src/components/editor/navigation/vim-bindings.test.ts +109 -0
- package/src/components/editor/navigation/vim-bindings.ts +90 -0
- package/src/components/editor/notebook-banner.tsx +75 -0
- package/src/components/editor/output/CalloutOutput.styles.ts +22 -0
- package/src/components/editor/output/CalloutOutput.tsx +19 -0
- package/src/components/editor/output/ConsoleOutput.tsx +276 -0
- package/src/components/editor/output/EmotionCacheProvider.tsx +32 -0
- package/src/components/editor/output/HtmlOutput.tsx +25 -0
- package/src/components/editor/output/ImageOutput.tsx +25 -0
- package/src/components/editor/output/JsonOutput.tsx +424 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +511 -0
- package/src/components/editor/output/MarimoTracebackOutput.tsx +233 -0
- package/src/components/editor/output/Outputs.css +102 -0
- package/src/components/editor/output/TextOutput.tsx +42 -0
- package/src/components/editor/output/VideoOutput.tsx +11 -0
- package/src/components/editor/output/__tests__/ansi.test.ts +39 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +269 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +105 -0
- package/src/components/editor/output/useWrapText.ts +14 -0
- package/src/components/editor/package-alert.tsx +596 -0
- package/src/components/editor/renderMimeIcon.tsx +38 -0
- package/src/components/editor/renderers/CellArray.tsx +352 -0
- package/src/components/editor/renderers/cells-renderer.tsx +96 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +650 -0
- package/src/components/editor/renderers/grid-layout/plugin.tsx +146 -0
- package/src/components/editor/renderers/grid-layout/styles.css +31 -0
- package/src/components/editor/renderers/grid-layout/types.ts +89 -0
- package/src/components/editor/renderers/layout-select.tsx +86 -0
- package/src/components/editor/renderers/plugins.ts +31 -0
- package/src/components/editor/renderers/slides-layout/plugin.tsx +31 -0
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +74 -0
- package/src/components/editor/renderers/slides-layout/types.ts +12 -0
- package/src/components/editor/renderers/types.ts +75 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/useDelayVisibility.test.ts +87 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +123 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +173 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/__tests__/sidebar.test.tsx +56 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sheet-sidebar.tsx +32 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar-slot.tsx +10 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css +20 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.tsx +30 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/state.ts +46 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +25 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/wrapped-with-sidebar.tsx +38 -0
- package/src/components/editor/renderers/vertical-layout/useDelayVisibility.ts +32 -0
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +107 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +46 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +451 -0
- package/src/components/editor/stdin-blocking-alert.tsx +83 -0
- package/src/components/export/export-output-button.tsx +14 -0
- package/src/components/find-replace/find-replace.tsx +293 -0
- package/src/components/forms/__tests__/form-utils.test.ts +104 -0
- package/src/components/forms/form-utils.ts +90 -0
- package/src/components/forms/form.tsx +817 -0
- package/src/components/forms/options.ts +59 -0
- package/src/components/forms/switchable-multi-select.tsx +134 -0
- package/src/components/home/components.tsx +189 -0
- package/src/components/home/state.ts +30 -0
- package/src/components/icons/copy-icon.tsx +59 -0
- package/src/components/icons/github-copilot.tsx +17 -0
- package/src/components/icons/large-spinner.tsx +39 -0
- package/src/components/icons/loading-ellipsis.tsx +46 -0
- package/src/components/icons/multi-icon.css +9 -0
- package/src/components/icons/multi-icon.tsx +30 -0
- package/src/components/icons/spinner.tsx +38 -0
- package/src/components/layout/toolbar.tsx +26 -0
- package/src/components/modal/ImperativeModal.tsx +187 -0
- package/src/components/pages/edit-page.tsx +37 -0
- package/src/components/pages/home-page.tsx +514 -0
- package/src/components/pages/run-page.tsx +55 -0
- package/src/components/scratchpad/scratchpad-history.ts +28 -0
- package/src/components/scratchpad/scratchpad.tsx +280 -0
- package/src/components/shortcuts/renderShortcut.tsx +208 -0
- package/src/components/slides/slides-component.tsx +132 -0
- package/src/components/slides/slides.css +100 -0
- package/src/components/sort/SortableCellsProvider.tsx +242 -0
- package/src/components/static-html/share-modal.tsx +181 -0
- package/src/components/static-html/static-banner.tsx +164 -0
- package/src/components/terminal/terminal.tsx +110 -0
- package/src/components/terminal/xterm.css +3 -0
- package/src/components/tracing/tracing-spec.ts +118 -0
- package/src/components/tracing/tracing.test.tsx +66 -0
- package/src/components/tracing/tracing.tsx +410 -0
- package/src/components/ui/accordion.tsx +70 -0
- package/src/components/ui/alert-dialog.tsx +176 -0
- package/src/components/ui/alert.tsx +64 -0
- package/src/components/ui/aria-popover.tsx +43 -0
- package/src/components/ui/badge.tsx +41 -0
- package/src/components/ui/button.tsx +156 -0
- package/src/components/ui/calendar.tsx +231 -0
- package/src/components/ui/card.tsx +83 -0
- package/src/components/ui/checkbox.tsx +33 -0
- package/src/components/ui/combobox.tsx +278 -0
- package/src/components/ui/command.tsx +165 -0
- package/src/components/ui/context-menu.tsx +193 -0
- package/src/components/ui/date-input.tsx +127 -0
- package/src/components/ui/date-picker.tsx +188 -0
- package/src/components/ui/dialog.tsx +155 -0
- package/src/components/ui/draggable-popover.tsx +68 -0
- package/src/components/ui/dropdown-menu.tsx +189 -0
- package/src/components/ui/field.tsx +90 -0
- package/src/components/ui/form.tsx +224 -0
- package/src/components/ui/fullscreen.tsx +38 -0
- package/src/components/ui/input.tsx +208 -0
- package/src/components/ui/kbd.tsx +22 -0
- package/src/components/ui/label.tsx +26 -0
- package/src/components/ui/links.tsx +23 -0
- package/src/components/ui/menu-items.tsx +101 -0
- package/src/components/ui/native-select.tsx +39 -0
- package/src/components/ui/navigation.tsx +154 -0
- package/src/components/ui/number-field.tsx +99 -0
- package/src/components/ui/popover.tsx +63 -0
- package/src/components/ui/progress.tsx +28 -0
- package/src/components/ui/radio-group.tsx +44 -0
- package/src/components/ui/range-slider.tsx +102 -0
- package/src/components/ui/scroll-area.tsx +47 -0
- package/src/components/ui/select.tsx +167 -0
- package/src/components/ui/sheet.tsx +143 -0
- package/src/components/ui/skeleton.tsx +16 -0
- package/src/components/ui/slider.tsx +80 -0
- package/src/components/ui/switch.tsx +54 -0
- package/src/components/ui/table.tsx +122 -0
- package/src/components/ui/tabs.tsx +55 -0
- package/src/components/ui/textarea.tsx +104 -0
- package/src/components/ui/toast.tsx +133 -0
- package/src/components/ui/toaster.tsx +30 -0
- package/src/components/ui/toggle.tsx +49 -0
- package/src/components/ui/tooltip.tsx +87 -0
- package/src/components/ui/typography.tsx +207 -0
- package/src/components/ui/use-restore-focus.ts +28 -0
- package/src/components/ui/use-toast.ts +224 -0
- package/src/components/utils/delay-mount.tsx +81 -0
- package/src/components/utils/lazy-mount.tsx +24 -0
- package/src/components/variables/common.tsx +37 -0
- package/src/components/variables/variables-table.tsx +335 -0
- package/src/core/MarimoApp.tsx +103 -0
- package/src/core/ai/__tests__/model-registry.test.ts +357 -0
- package/src/core/ai/chat-utils.ts +71 -0
- package/src/core/ai/config.ts +76 -0
- package/src/core/ai/context/__tests__/registry.test.ts +516 -0
- package/src/core/ai/context/context.ts +16 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/tables.test.ts.snap +291 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/variable.test.ts.snap +378 -0
- package/src/core/ai/context/providers/__tests__/tables.test.ts +271 -0
- package/src/core/ai/context/providers/__tests__/variable.test.ts +312 -0
- package/src/core/ai/context/providers/common.ts +7 -0
- package/src/core/ai/context/providers/tables.ts +208 -0
- package/src/core/ai/context/providers/variable.ts +72 -0
- package/src/core/ai/context/registry.ts +180 -0
- package/src/core/ai/ids/__tests__/ids.test.ts +193 -0
- package/src/core/ai/ids/ids.ts +70 -0
- package/src/core/ai/model-registry.ts +164 -0
- package/src/core/ai/state.ts +58 -0
- package/src/core/alerts/state.ts +75 -0
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +1312 -0
- package/src/core/cells/__tests__/add-missing-import.test.ts +78 -0
- package/src/core/cells/__tests__/cell.test.ts +193 -0
- package/src/core/cells/__tests__/cells.test.ts +2664 -0
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +239 -0
- package/src/core/cells/__tests__/focus.test.ts +271 -0
- package/src/core/cells/__tests__/ids.test.ts +90 -0
- package/src/core/cells/__tests__/names.test.ts +62 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +202 -0
- package/src/core/cells/__tests__/runs.test.ts +453 -0
- package/src/core/cells/__tests__/session.test.ts +757 -0
- package/src/core/cells/__tests__/utils.test.ts +428 -0
- package/src/core/cells/actions.ts +21 -0
- package/src/core/cells/add-missing-import.ts +114 -0
- package/src/core/cells/cell.ts +243 -0
- package/src/core/cells/cells.ts +1751 -0
- package/src/core/cells/collapseConsoleOutputs.tsx +133 -0
- package/src/core/cells/effects.ts +42 -0
- package/src/core/cells/focus.ts +128 -0
- package/src/core/cells/ids.ts +124 -0
- package/src/core/cells/logs.ts +114 -0
- package/src/core/cells/names.ts +107 -0
- package/src/core/cells/outline.ts +30 -0
- package/src/core/cells/outputs.ts +34 -0
- package/src/core/cells/pending-delete-service.ts +183 -0
- package/src/core/cells/runs.ts +196 -0
- package/src/core/cells/scrollCellIntoView.ts +133 -0
- package/src/core/cells/session.ts +281 -0
- package/src/core/cells/types.ts +128 -0
- package/src/core/cells/utils.ts +141 -0
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +216 -0
- package/src/core/codemirror/__tests__/extensions.test.ts +117 -0
- package/src/core/codemirror/__tests__/format.test.ts +227 -0
- package/src/core/codemirror/__tests__/setup.test.ts +178 -0
- package/src/core/codemirror/ai/request.ts +72 -0
- package/src/core/codemirror/ai/resources.ts +90 -0
- package/src/core/codemirror/cells/extensions.ts +387 -0
- package/src/core/codemirror/cells/state.ts +32 -0
- package/src/core/codemirror/cells/traceback-decorations.ts +111 -0
- package/src/core/codemirror/cm.ts +267 -0
- package/src/core/codemirror/compat/__tests__/jupyter.test.ts +136 -0
- package/src/core/codemirror/compat/jupyter.tsx +244 -0
- package/src/core/codemirror/completion/Autocompleter.ts +172 -0
- package/src/core/codemirror/completion/__tests__/hints.test.ts +84 -0
- package/src/core/codemirror/completion/__tests__/keymap.test.ts +44 -0
- package/src/core/codemirror/completion/completer.ts +58 -0
- package/src/core/codemirror/completion/hints.ts +143 -0
- package/src/core/codemirror/completion/keymap.ts +70 -0
- package/src/core/codemirror/completion/utils.ts +18 -0
- package/src/core/codemirror/completion/variable-completions.ts +100 -0
- package/src/core/codemirror/config/extension.ts +63 -0
- package/src/core/codemirror/config/types.ts +10 -0
- package/src/core/codemirror/copilot/__tests__/copilot.test.ts +260 -0
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +209 -0
- package/src/core/codemirror/copilot/__tests__/trim-utils.test.ts +291 -0
- package/src/core/codemirror/copilot/client.ts +123 -0
- package/src/core/codemirror/copilot/copilot-config.tsx +285 -0
- package/src/core/codemirror/copilot/extension.ts +285 -0
- package/src/core/codemirror/copilot/getCodes.ts +130 -0
- package/src/core/codemirror/copilot/language-server.ts +255 -0
- package/src/core/codemirror/copilot/state.ts +66 -0
- package/src/core/codemirror/copilot/trim-utils.ts +33 -0
- package/src/core/codemirror/copilot/types.ts +41 -0
- package/src/core/codemirror/editing/__tests__/commands.test.ts +106 -0
- package/src/core/codemirror/editing/__tests__/debugging.test.ts +193 -0
- package/src/core/codemirror/editing/commands.ts +25 -0
- package/src/core/codemirror/editing/debugging.ts +58 -0
- package/src/core/codemirror/editing/extensions.ts +4 -0
- package/src/core/codemirror/extensions.ts +95 -0
- package/src/core/codemirror/facet.ts +19 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +695 -0
- package/src/core/codemirror/find-replace/extension.ts +41 -0
- package/src/core/codemirror/find-replace/navigate.ts +221 -0
- package/src/core/codemirror/find-replace/query.ts +31 -0
- package/src/core/codemirror/find-replace/search-highlight.ts +148 -0
- package/src/core/codemirror/find-replace/state.ts +167 -0
- package/src/core/codemirror/format.ts +120 -0
- package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +205 -0
- package/src/core/codemirror/go-to-definition/commands.ts +80 -0
- package/src/core/codemirror/go-to-definition/extension.ts +23 -0
- package/src/core/codemirror/go-to-definition/underline.ts +223 -0
- package/src/core/codemirror/go-to-definition/utils.ts +126 -0
- package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +43 -0
- package/src/core/codemirror/keymaps/__tests__/vimrc.test.ts +121 -0
- package/src/core/codemirror/keymaps/keymaps.ts +163 -0
- package/src/core/codemirror/keymaps/vim.ts +348 -0
- package/src/core/codemirror/keymaps/vimrc.ts +149 -0
- package/src/core/codemirror/language/LanguageAdapters.ts +23 -0
- package/src/core/codemirror/language/__tests__/ast.test.ts +124 -0
- package/src/core/codemirror/language/__tests__/extension.test.ts +260 -0
- package/src/core/codemirror/language/__tests__/indentOneTab.test.ts +31 -0
- package/src/core/codemirror/language/__tests__/markdown.test.ts +495 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +1640 -0
- package/src/core/codemirror/language/__tests__/utils.test.ts +166 -0
- package/src/core/codemirror/language/commands.ts +59 -0
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +163 -0
- package/src/core/codemirror/language/embedded/embedded-python.ts +131 -0
- package/src/core/codemirror/language/embedded/latex.ts +257 -0
- package/src/core/codemirror/language/extension.ts +322 -0
- package/src/core/codemirror/language/languages/markdown.ts +261 -0
- package/src/core/codemirror/language/languages/python.ts +329 -0
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +99 -0
- package/src/core/codemirror/language/languages/sql/completion-store.ts +191 -0
- package/src/core/codemirror/language/languages/sql/sql.ts +545 -0
- package/src/core/codemirror/language/languages/sql/utils.ts +42 -0
- package/src/core/codemirror/language/metadata.ts +71 -0
- package/src/core/codemirror/language/panel/markdown.tsx +63 -0
- package/src/core/codemirror/language/panel/panel.tsx +197 -0
- package/src/core/codemirror/language/panel/sql.tsx +132 -0
- package/src/core/codemirror/language/types.ts +41 -0
- package/src/core/codemirror/language/utils/ast.ts +84 -0
- package/src/core/codemirror/language/utils/indentOneTab.ts +9 -0
- package/src/core/codemirror/language/utils/quotes.ts +18 -0
- package/src/core/codemirror/language/utils.ts +78 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +860 -0
- package/src/core/codemirror/lsp/federated-lsp.ts +235 -0
- package/src/core/codemirror/lsp/lens.ts +130 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +604 -0
- package/src/core/codemirror/lsp/transports.ts +31 -0
- package/src/core/codemirror/lsp/types.ts +55 -0
- package/src/core/codemirror/lsp/utils.ts +11 -0
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +522 -0
- package/src/core/codemirror/markdown/commands.ts +478 -0
- package/src/core/codemirror/markdown/completions.ts +273 -0
- package/src/core/codemirror/markdown/extension.ts +106 -0
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +111 -0
- package/src/core/codemirror/misc/__tests__/paste.test.ts +239 -0
- package/src/core/codemirror/misc/dnd.ts +48 -0
- package/src/core/codemirror/misc/paste.ts +181 -0
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +132 -0
- package/src/core/codemirror/placeholder/extensions.ts +99 -0
- package/src/core/codemirror/react-dom/createPanel.tsx +39 -0
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +1222 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +608 -0
- package/src/core/codemirror/reactive-references/extension.ts +154 -0
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +55 -0
- package/src/core/codemirror/readonly/extension.ts +187 -0
- package/src/core/codemirror/rtc/extension.ts +450 -0
- package/src/core/codemirror/rtc/loro/awareness.ts +496 -0
- package/src/core/codemirror/rtc/loro/colors.ts +38 -0
- package/src/core/codemirror/rtc/loro/sync.ts +159 -0
- package/src/core/codemirror/theme/__tests__/light.test.ts +136 -0
- package/src/core/codemirror/theme/dark.ts +50 -0
- package/src/core/codemirror/theme/light.ts +58 -0
- package/src/core/codemirror/types.ts +5 -0
- package/src/core/codemirror/utils.ts +103 -0
- package/src/core/codemirror/vim/cursor-visibility.ts +58 -0
- package/src/core/config/__tests__/config-schema.test.ts +232 -0
- package/src/core/config/capabilities.ts +15 -0
- package/src/core/config/config-schema.ts +296 -0
- package/src/core/config/config.ts +109 -0
- package/src/core/config/feature-flag.tsx +62 -0
- package/src/core/config/if-capability.tsx +19 -0
- package/src/core/config/widths.ts +5 -0
- package/src/core/constants.ts +52 -0
- package/src/core/datasets/__tests__/all-tables.test.ts +466 -0
- package/src/core/datasets/__tests__/data-source.test.ts +461 -0
- package/src/core/datasets/data-source-connections.ts +334 -0
- package/src/core/datasets/engines.ts +10 -0
- package/src/core/datasets/request-registry.ts +34 -0
- package/src/core/datasets/state.ts +143 -0
- package/src/core/datasets/types.ts +38 -0
- package/src/core/debugger/state.ts +10 -0
- package/src/core/documentation/state.ts +13 -0
- package/src/core/dom/__tests__/htmlUtils.test.ts +22 -0
- package/src/core/dom/__tests__/outline.test.ts +370 -0
- package/src/core/dom/defineCustomElement.ts +23 -0
- package/src/core/dom/events.ts +94 -0
- package/src/core/dom/htmlUtils.ts +75 -0
- package/src/core/dom/outline.ts +123 -0
- package/src/core/dom/ui-element.css +8 -0
- package/src/core/dom/ui-element.ts +249 -0
- package/src/core/dom/uiregistry.ts +209 -0
- package/src/core/edit-app.tsx +189 -0
- package/src/core/errors/__tests__/errors.test.ts +62 -0
- package/src/core/errors/__tests__/utils.test.ts +108 -0
- package/src/core/errors/errors.ts +96 -0
- package/src/core/errors/state.ts +44 -0
- package/src/core/errors/utils.ts +67 -0
- package/src/core/export/hooks.ts +60 -0
- package/src/core/functions/FunctionRegistry.ts +18 -0
- package/src/core/hotkeys/__tests__/shortcuts.test.ts +166 -0
- package/src/core/hotkeys/actions.ts +38 -0
- package/src/core/hotkeys/hotkeys.ts +503 -0
- package/src/core/hotkeys/shortcuts.ts +117 -0
- package/src/core/islands/__tests__/parse.test.ts +89 -0
- package/src/core/islands/bridge.ts +196 -0
- package/src/core/islands/components/output-wrapper.tsx +154 -0
- package/src/core/islands/components/web-components.tsx +120 -0
- package/src/core/islands/islands.css +14 -0
- package/src/core/islands/main.ts +200 -0
- package/src/core/islands/parse.ts +161 -0
- package/src/core/islands/state.ts +30 -0
- package/src/core/islands/toast.ts +41 -0
- package/src/core/islands/utils.ts +5 -0
- package/src/core/islands/worker/controller.ts +52 -0
- package/src/core/islands/worker/worker.tsx +178 -0
- package/src/core/kernel/RuntimeState.ts +94 -0
- package/src/core/kernel/__tests__/RuntimeState.test.ts +57 -0
- package/src/core/kernel/__tests__/handlers.test.ts +61 -0
- package/src/core/kernel/__tests__/session.test.ts +10 -0
- package/src/core/kernel/handlers.ts +159 -0
- package/src/core/kernel/messages.ts +54 -0
- package/src/core/kernel/queryParamHandlers.ts +39 -0
- package/src/core/kernel/session.ts +50 -0
- package/src/core/layout/layout.ts +99 -0
- package/src/core/layout/useTogglePresenting.ts +50 -0
- package/src/core/meta/globals.ts +25 -0
- package/src/core/meta/state.ts +25 -0
- package/src/core/mime.ts +9 -0
- package/src/core/mode.ts +80 -0
- package/src/core/network/DeferredRequestRegistry.ts +71 -0
- package/src/core/network/__tests__/DeferredRequestRegistry.test.ts +37 -0
- package/src/core/network/__tests__/api.test.ts +80 -0
- package/src/core/network/api.ts +145 -0
- package/src/core/network/auth.ts +13 -0
- package/src/core/network/connection.ts +33 -0
- package/src/core/network/requests-network.ts +398 -0
- package/src/core/network/requests-static.ts +88 -0
- package/src/core/network/requests-toasting.ts +91 -0
- package/src/core/network/requests.ts +24 -0
- package/src/core/network/resolve.ts +17 -0
- package/src/core/network/types.ts +188 -0
- package/src/core/packages/toast-components.tsx +88 -0
- package/src/core/packages/useInstallPackage.ts +46 -0
- package/src/core/rtc/state.ts +20 -0
- package/src/core/run-app.tsx +69 -0
- package/src/core/runtime/__tests__/config.test.ts +173 -0
- package/src/core/runtime/__tests__/createWsUrl.test.ts +61 -0
- package/src/core/runtime/__tests__/runtime.test.ts +603 -0
- package/src/core/runtime/config.ts +45 -0
- package/src/core/runtime/runtime.ts +277 -0
- package/src/core/runtime/types.ts +7 -0
- package/src/core/runtime/utils.ts +9 -0
- package/src/core/saving/file-state.ts +15 -0
- package/src/core/saving/filename.ts +55 -0
- package/src/core/saving/save-component.tsx +274 -0
- package/src/core/saving/state.ts +51 -0
- package/src/core/saving/useAutoSave.ts +68 -0
- package/src/core/secrets/request-registry.ts +16 -0
- package/src/core/slots/slots.ts +9 -0
- package/src/core/state/__tests__/jotai.test.ts +25 -0
- package/src/core/state/jotai.ts +69 -0
- package/src/core/state/observable.ts +23 -0
- package/src/core/static/__tests__/download-html.test.ts +41 -0
- package/src/core/static/__tests__/files.test.ts +494 -0
- package/src/core/static/__tests__/virtual-file-tracker.test.ts +92 -0
- package/src/core/static/download-html.ts +59 -0
- package/src/core/static/files.ts +150 -0
- package/src/core/static/static-state.ts +19 -0
- package/src/core/static/types.ts +8 -0
- package/src/core/static/virtual-file-tracker.ts +83 -0
- package/src/core/variables/__tests__/state.test.ts +148 -0
- package/src/core/variables/state.ts +81 -0
- package/src/core/variables/types.ts +22 -0
- package/src/core/vscode/vscode-bindings.ts +176 -0
- package/src/core/wasm/PyodideLoader.tsx +72 -0
- package/src/core/wasm/__tests__/router.test.ts +57 -0
- package/src/core/wasm/__tests__/share.test.ts +35 -0
- package/src/core/wasm/__tests__/state.test.ts +124 -0
- package/src/core/wasm/__tests__/store.test.ts +55 -0
- package/src/core/wasm/bridge.ts +622 -0
- package/src/core/wasm/router.ts +39 -0
- package/src/core/wasm/rpc.ts +32 -0
- package/src/core/wasm/share.ts +15 -0
- package/src/core/wasm/state.ts +21 -0
- package/src/core/wasm/store.ts +122 -0
- package/src/core/wasm/utils.ts +12 -0
- package/src/core/wasm/worker/bootstrap.ts +223 -0
- package/src/core/wasm/worker/constants.ts +2 -0
- package/src/core/wasm/worker/fs.ts +90 -0
- package/src/core/wasm/worker/getController.ts +16 -0
- package/src/core/wasm/worker/getFS.ts +9 -0
- package/src/core/wasm/worker/getMarimoWheel.ts +15 -0
- package/src/core/wasm/worker/getPyodideVersion.ts +10 -0
- package/src/core/wasm/worker/message-buffer.ts +32 -0
- package/src/core/wasm/worker/save-worker.ts +107 -0
- package/src/core/wasm/worker/tracer.ts +7 -0
- package/src/core/wasm/worker/types.ts +97 -0
- package/src/core/wasm/worker/worker.ts +375 -0
- package/src/core/websocket/StaticWebsocket.ts +61 -0
- package/src/core/websocket/connection-utils.ts +59 -0
- package/src/core/websocket/types.ts +43 -0
- package/src/core/websocket/useMarimoWebSocket.tsx +386 -0
- package/src/core/websocket/useWebSocket.tsx +88 -0
- package/src/css/admonition.css +127 -0
- package/src/css/app/App.css +77 -0
- package/src/css/app/Cell.css +433 -0
- package/src/css/app/Header.css +25 -0
- package/src/css/app/codemirror-completions.css +308 -0
- package/src/css/app/codemirror.css +136 -0
- package/src/css/app/fonts.css +50 -0
- package/src/css/app/print.css +86 -0
- package/src/css/app/reset.css +18 -0
- package/src/css/codehilite.css +354 -0
- package/src/css/common.css +45 -0
- package/src/css/globals.css +176 -0
- package/src/css/index.css +10 -0
- package/src/css/katex-fonts.css +214 -0
- package/src/css/katex.min.css +1182 -0
- package/src/css/md-tooltip.css +52 -0
- package/src/css/md.css +365 -0
- package/src/css/progress.css +93 -0
- package/src/css/table.css +45 -0
- package/src/custom.d.ts +24 -0
- package/src/fonts/Fira_Mono/FiraMono-Bold.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Medium.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/src/fonts/Lora/Lora-Italic-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/Lora-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Bold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-BoldItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Italic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Medium.ttf +0 -0
- package/src/fonts/Lora/static/Lora-MediumItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Regular.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
- package/src/hooks/__tests__/useBoolean.test.tsx +33 -0
- package/src/hooks/__tests__/useDebounce.test.tsx +182 -0
- package/src/hooks/__tests__/useEffectSkipFirstRender.test.tsx +42 -0
- package/src/hooks/__tests__/useEventListener.test.tsx +148 -0
- package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +76 -0
- package/src/hooks/__tests__/useInterval.test.tsx +70 -0
- package/src/hooks/__tests__/usePackageMetadata.test.tsx +219 -0
- package/src/hooks/__tests__/useResizeHandle.test.tsx +240 -0
- package/src/hooks/__tests__/useResizeObserver.test.tsx +86 -0
- package/src/hooks/__tests__/useTimer.test.tsx +62 -0
- package/src/hooks/debug.ts +116 -0
- package/src/hooks/useAsyncData.ts +392 -0
- package/src/hooks/useAudioRecorder.ts +89 -0
- package/src/hooks/useAutoGrowInputProps.ts +56 -0
- package/src/hooks/useBoolean.ts +26 -0
- package/src/hooks/useCellRenderCount.ts +15 -0
- package/src/hooks/useDebounce.ts +95 -0
- package/src/hooks/useDeepCompareMemoize.ts +22 -0
- package/src/hooks/useEffectSkipFirstRender.ts +24 -0
- package/src/hooks/useElapsedTime.ts +25 -0
- package/src/hooks/useEvent.ts +2 -0
- package/src/hooks/useEventListener.ts +68 -0
- package/src/hooks/useHotkey.ts +77 -0
- package/src/hooks/useInternalStateWithSync.ts +26 -0
- package/src/hooks/useInterval.ts +49 -0
- package/src/hooks/useIsDragging.tsx +39 -0
- package/src/hooks/useLifecycle.ts +20 -0
- package/src/hooks/useLocalStorage.ts +22 -0
- package/src/hooks/useNonce.ts +9 -0
- package/src/hooks/usePackageMetadata.ts +52 -0
- package/src/hooks/useRecentCommands.ts +25 -0
- package/src/hooks/useResizeHandle.ts +110 -0
- package/src/hooks/useResizeObserver.ts +101 -0
- package/src/hooks/useScript.ts +90 -0
- package/src/hooks/useSelectAllContent.ts +42 -0
- package/src/hooks/useTimer.ts +48 -0
- package/src/main.tsx +20 -0
- package/src/mount.tsx +331 -0
- package/src/plugins/core/BadPlugin.tsx +72 -0
- package/src/plugins/core/RenderHTML.tsx +136 -0
- package/src/plugins/core/__test__/RenderHTML.test.ts +146 -0
- package/src/plugins/core/builder.ts +59 -0
- package/src/plugins/core/registerReactComponent.tsx +535 -0
- package/src/plugins/core/rpc.ts +55 -0
- package/src/plugins/core/sidebar-element.tsx +104 -0
- package/src/plugins/impl/ButtonPlugin.tsx +95 -0
- package/src/plugins/impl/CheckboxPlugin.tsx +56 -0
- package/src/plugins/impl/CodeEditorPlugin.tsx +119 -0
- package/src/plugins/impl/DataEditorPlugin.tsx +181 -0
- package/src/plugins/impl/DataTablePlugin.tsx +948 -0
- package/src/plugins/impl/DatePickerPlugin.tsx +74 -0
- package/src/plugins/impl/DateRangePlugin.tsx +82 -0
- package/src/plugins/impl/DateTimePickerPlugin.tsx +76 -0
- package/src/plugins/impl/DictPlugin.tsx +80 -0
- package/src/plugins/impl/DropdownPlugin.tsx +102 -0
- package/src/plugins/impl/FileBrowserPlugin.tsx +500 -0
- package/src/plugins/impl/FileUploadPlugin.tsx +302 -0
- package/src/plugins/impl/FormPlugin.tsx +294 -0
- package/src/plugins/impl/MicrophonePlugin.tsx +58 -0
- package/src/plugins/impl/MultiselectPlugin.tsx +207 -0
- package/src/plugins/impl/NumberPlugin.tsx +84 -0
- package/src/plugins/impl/RadioPlugin.tsx +77 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +163 -0
- package/src/plugins/impl/RefreshPlugin.tsx +158 -0
- package/src/plugins/impl/SearchableSelect.tsx +122 -0
- package/src/plugins/impl/SliderPlugin.tsx +166 -0
- package/src/plugins/impl/SwitchPlugin.tsx +48 -0
- package/src/plugins/impl/TabsPlugin.tsx +83 -0
- package/src/plugins/impl/TextAreaPlugin.tsx +131 -0
- package/src/plugins/impl/TextInputPlugin.tsx +169 -0
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +178 -0
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +41 -0
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +144 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +269 -0
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +181 -0
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +370 -0
- package/src/plugins/impl/anywidget/model.ts +314 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +98 -0
- package/src/plugins/impl/chat/chat-ui.tsx +713 -0
- package/src/plugins/impl/chat/types.ts +39 -0
- package/src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx +6 -0
- package/src/plugins/impl/code/any-language-editor.tsx +68 -0
- package/src/plugins/impl/common/error-banner.tsx +111 -0
- package/src/plugins/impl/common/intent.ts +18 -0
- package/src/plugins/impl/common/labeled.tsx +69 -0
- package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +876 -0
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +452 -0
- package/src/plugins/impl/data-editor/components.tsx +179 -0
- package/src/plugins/impl/data-editor/data-utils.ts +123 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +651 -0
- package/src/plugins/impl/data-editor/glide-utils.ts +200 -0
- package/src/plugins/impl/data-editor/themes.ts +49 -0
- package/src/plugins/impl/data-editor/types.ts +44 -0
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +268 -0
- package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +31 -0
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +174 -0
- package/src/plugins/impl/data-explorer/components/icons.tsx +30 -0
- package/src/plugins/impl/data-explorer/components/query-form.tsx +296 -0
- package/src/plugins/impl/data-explorer/encoding.ts +107 -0
- package/src/plugins/impl/data-explorer/functions/function.ts +83 -0
- package/src/plugins/impl/data-explorer/functions/types.ts +32 -0
- package/src/plugins/impl/data-explorer/marks.ts +21 -0
- package/src/plugins/impl/data-explorer/queries/field-suggestion.ts +65 -0
- package/src/plugins/impl/data-explorer/queries/histograms.ts +41 -0
- package/src/plugins/impl/data-explorer/queries/queries.ts +204 -0
- package/src/plugins/impl/data-explorer/queries/removeUndefined.ts +11 -0
- package/src/plugins/impl/data-explorer/queries/types.ts +54 -0
- package/src/plugins/impl/data-explorer/queries/utils.ts +85 -0
- package/src/plugins/impl/data-explorer/spec.ts +28 -0
- package/src/plugins/impl/data-explorer/state/reducer.ts +92 -0
- package/src/plugins/impl/data-explorer/state/types.ts +28 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +303 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +1600 -0
- package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +67 -0
- package/src/plugins/impl/data-frames/forms/context.ts +13 -0
- package/src/plugins/impl/data-frames/forms/datatype-icon.tsx +43 -0
- package/src/plugins/impl/data-frames/forms/renderers.tsx +518 -0
- package/src/plugins/impl/data-frames/panel.tsx +308 -0
- package/src/plugins/impl/data-frames/schema.ts +211 -0
- package/src/plugins/impl/data-frames/types.ts +91 -0
- package/src/plugins/impl/data-frames/utils/__tests__/getUpdatedColumnTypes.test.ts +191 -0
- package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +116 -0
- package/src/plugins/impl/data-frames/utils/getUpdatedColumnTypes.ts +67 -0
- package/src/plugins/impl/data-frames/utils/operators.ts +202 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +39 -0
- package/src/plugins/impl/multiselectFilterFn.tsx +22 -0
- package/src/plugins/impl/panel/PanelPlugin.tsx +266 -0
- package/src/plugins/impl/panel/__tests__/utils.test.ts +119 -0
- package/src/plugins/impl/panel/utils.ts +104 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +300 -0
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +73 -0
- package/src/plugins/impl/plotly/mapbox.css +359 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +58 -0
- package/src/plugins/impl/plotly/plotly.css +280 -0
- package/src/plugins/impl/vega/VegaPlugin.tsx +40 -0
- package/src/plugins/impl/vega/__tests__/__snapshots__/make-selectable.test.ts.snap +1210 -0
- package/src/plugins/impl/vega/__tests__/encodings.test.ts +172 -0
- package/src/plugins/impl/vega/__tests__/loader.test.ts +73 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +575 -0
- package/src/plugins/impl/vega/__tests__/params.test.ts +52 -0
- package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +236 -0
- package/src/plugins/impl/vega/__tests__/vega.test.ts +603 -0
- package/src/plugins/impl/vega/batched.ts +41 -0
- package/src/plugins/impl/vega/encodings.ts +111 -0
- package/src/plugins/impl/vega/fix-relative-url.ts +15 -0
- package/src/plugins/impl/vega/formats.ts +25 -0
- package/src/plugins/impl/vega/loader.ts +320 -0
- package/src/plugins/impl/vega/make-selectable.ts +248 -0
- package/src/plugins/impl/vega/marks.ts +36 -0
- package/src/plugins/impl/vega/params.ts +192 -0
- package/src/plugins/impl/vega/resolve-data.ts +101 -0
- package/src/plugins/impl/vega/types.ts +32 -0
- package/src/plugins/impl/vega/utils.ts +46 -0
- package/src/plugins/impl/vega/vega-component.tsx +271 -0
- package/src/plugins/impl/vega/vega-loader.ts +53 -0
- package/src/plugins/impl/vega/vega.css +31 -0
- package/src/plugins/layout/AccordionPlugin.tsx +63 -0
- package/src/plugins/layout/CalloutPlugin.tsx +34 -0
- package/src/plugins/layout/DownloadPlugin.tsx +136 -0
- package/src/plugins/layout/ImageComparisonPlugin.tsx +35 -0
- package/src/plugins/layout/JsonOutputPlugin.tsx +47 -0
- package/src/plugins/layout/LazyPlugin.tsx +98 -0
- package/src/plugins/layout/MimeRenderPlugin.tsx +45 -0
- package/src/plugins/layout/NavigationMenuPlugin.tsx +219 -0
- package/src/plugins/layout/ProgressPlugin.tsx +175 -0
- package/src/plugins/layout/RoutesPlugin.tsx +81 -0
- package/src/plugins/layout/StatPlugin.tsx +100 -0
- package/src/plugins/layout/TexPlugin.tsx +102 -0
- package/src/plugins/layout/__test__/ProgressPlugin.test.ts +26 -0
- package/src/plugins/layout/carousel/CarouselPlugin.tsx +48 -0
- package/src/plugins/layout/mermaid/MermaidPlugin.tsx +26 -0
- package/src/plugins/layout/mermaid/mermaid.tsx +94 -0
- package/src/plugins/layout/navigation-menu.css +37 -0
- package/src/plugins/plugins.ts +116 -0
- package/src/plugins/stateless-plugin.ts +29 -0
- package/src/plugins/types.ts +82 -0
- package/src/stories/__fixtures__/vega.ts +225 -0
- package/src/stories/accordion.stories.tsx +100 -0
- package/src/stories/alert-dialog.mdx +42 -0
- package/src/stories/app-chrome.stories.tsx +26 -0
- package/src/stories/button.stories.tsx +90 -0
- package/src/stories/callout.stories.tsx +73 -0
- package/src/stories/cell-status.stories.tsx +145 -0
- package/src/stories/cell.stories.tsx +336 -0
- package/src/stories/checkbox.stories.tsx +44 -0
- package/src/stories/colors.stories.tsx +156 -0
- package/src/stories/combobox.stories.tsx +133 -0
- package/src/stories/context-menu.mdx +23 -0
- package/src/stories/data-explorer.stories.tsx +30 -0
- package/src/stories/data-table.stories.tsx +130 -0
- package/src/stories/dataframe.stories.tsx +46 -0
- package/src/stories/debugger.stories.tsx +34 -0
- package/src/stories/dialog.stories.tsx +80 -0
- package/src/stories/dropdown-menu.mdx +159 -0
- package/src/stories/editor-inputs.stories.tsx +47 -0
- package/src/stories/editor.stories.tsx +91 -0
- package/src/stories/file-upload.stories.tsx +103 -0
- package/src/stories/form-wrapper.stories.tsx +147 -0
- package/src/stories/input.stories.tsx +56 -0
- package/src/stories/label.mdx +9 -0
- package/src/stories/log-viewer.stories.tsx +74 -0
- package/src/stories/number-field.mdx +17 -0
- package/src/stories/number-field.stories.tsx +41 -0
- package/src/stories/progress-component.stories.tsx +74 -0
- package/src/stories/progress.stories.tsx +33 -0
- package/src/stories/radio-group.mdx +54 -0
- package/src/stories/select-native.stories.tsx +49 -0
- package/src/stories/select.stories.tsx +92 -0
- package/src/stories/slider.stories.tsx +27 -0
- package/src/stories/stat.stories.tsx +123 -0
- package/src/stories/switch.mdx +20 -0
- package/src/stories/switchable-multi-select.stories.tsx +31 -0
- package/src/stories/tabs.mdx +59 -0
- package/src/stories/textarea.stories.tsx +58 -0
- package/src/stories/theme.stories.tsx +111 -0
- package/src/stories/tooltip.mdx +32 -0
- package/src/stories/typography.stories.tsx +80 -0
- package/src/stories/variables.stories.tsx +58 -0
- package/src/stories/vega.stories.tsx +57 -0
- package/src/theme/ThemeProvider.tsx +32 -0
- package/src/theme/namespace.tsx +23 -0
- package/src/theme/useTheme.ts +89 -0
- package/src/utils/Deferred.ts +20 -0
- package/src/utils/Logger.ts +91 -0
- package/src/utils/__tests__/Deferred.test.ts +38 -0
- package/src/utils/__tests__/arrays.test.ts +130 -0
- package/src/utils/__tests__/batch-requests.test.ts +60 -0
- package/src/utils/__tests__/blob.test.ts +52 -0
- package/src/utils/__tests__/cell-urls.test.ts +92 -0
- package/src/utils/__tests__/createReducer.test.ts +184 -0
- package/src/utils/__tests__/data-views.test.ts +112 -0
- package/src/utils/__tests__/dates.test.ts +188 -0
- package/src/utils/__tests__/edit-distance.test.ts +302 -0
- package/src/utils/__tests__/errors.test.ts +54 -0
- package/src/utils/__tests__/filenames.test.ts +30 -0
- package/src/utils/__tests__/id-tree.test.ts +1994 -0
- package/src/utils/__tests__/json-parser.test.ts +79 -0
- package/src/utils/__tests__/local-storage.test.ts +77 -0
- package/src/utils/__tests__/lru.test.ts +74 -0
- package/src/utils/__tests__/maps.test.ts +91 -0
- package/src/utils/__tests__/math.test.ts +29 -0
- package/src/utils/__tests__/multi-map.test.ts +295 -0
- package/src/utils/__tests__/numbers.test.ts +76 -0
- package/src/utils/__tests__/path.test.ts +170 -0
- package/src/utils/__tests__/pluralize.test.ts +47 -0
- package/src/utils/__tests__/routes.test.ts +134 -0
- package/src/utils/__tests__/sets.test.ts +41 -0
- package/src/utils/__tests__/shallow-compare.test.ts +55 -0
- package/src/utils/__tests__/strings.test.ts +68 -0
- package/src/utils/__tests__/time.test.ts +61 -0
- package/src/utils/__tests__/timed-cache.test.ts +142 -0
- package/src/utils/__tests__/timeout.test.ts +153 -0
- package/src/utils/__tests__/traceback.test.ts +34 -0
- package/src/utils/__tests__/url.test.ts +100 -0
- package/src/utils/__tests__/urls.test.ts +10 -0
- package/src/utils/__tests__/versions.test.ts +63 -0
- package/src/utils/__tests__/waitForWs.test.ts +76 -0
- package/src/utils/arrays.ts +75 -0
- package/src/utils/assertExists.ts +12 -0
- package/src/utils/assertNever.ts +20 -0
- package/src/utils/batch-requests.ts +28 -0
- package/src/utils/blob.ts +45 -0
- package/src/utils/cell-urls.ts +31 -0
- package/src/utils/cn.ts +8 -0
- package/src/utils/copy.ts +17 -0
- package/src/utils/createReducer.ts +137 -0
- package/src/utils/data-views.ts +54 -0
- package/src/utils/dates.ts +145 -0
- package/src/utils/dereference.ts +10 -0
- package/src/utils/download.ts +47 -0
- package/src/utils/edit-distance.ts +141 -0
- package/src/utils/errors.ts +63 -0
- package/src/utils/events.ts +85 -0
- package/src/utils/fileToBase64.ts +30 -0
- package/src/utils/filenames.ts +29 -0
- package/src/utils/functions.ts +24 -0
- package/src/utils/id-tree.tsx +1032 -0
- package/src/utils/idle.ts +19 -0
- package/src/utils/invariant.ts +37 -0
- package/src/utils/json/__tests__/base64.test.ts +100 -0
- package/src/utils/json/base64.ts +51 -0
- package/src/utils/json/json-parser.ts +65 -0
- package/src/utils/lazy.ts +30 -0
- package/src/utils/links.ts +11 -0
- package/src/utils/localStorage.ts +132 -0
- package/src/utils/lru.ts +68 -0
- package/src/utils/maps.ts +65 -0
- package/src/utils/math.ts +6 -0
- package/src/utils/mergeRefs.ts +14 -0
- package/src/utils/multi-map.ts +71 -0
- package/src/utils/numbers.ts +124 -0
- package/src/utils/objects.ts +105 -0
- package/src/utils/once.ts +17 -0
- package/src/utils/pathUtils.test.ts +113 -0
- package/src/utils/pathUtils.ts +76 -0
- package/src/utils/paths.ts +67 -0
- package/src/utils/pluralize.ts +35 -0
- package/src/utils/python-poet/__tests__/poet.test.ts +286 -0
- package/src/utils/python-poet/poet.ts +196 -0
- package/src/utils/reload-safe.ts +15 -0
- package/src/utils/repl.ts +23 -0
- package/src/utils/routes.ts +36 -0
- package/src/utils/scroll.ts +38 -0
- package/src/utils/sets.ts +30 -0
- package/src/utils/shallow-compare.ts +30 -0
- package/src/utils/staticImplements.ts +7 -0
- package/src/utils/strings.ts +64 -0
- package/src/utils/time.ts +39 -0
- package/src/utils/timed-cache.ts +52 -0
- package/src/utils/timeout.ts +42 -0
- package/src/utils/traceback.ts +104 -0
- package/src/utils/tracer.ts +106 -0
- package/src/utils/typed.ts +17 -0
- package/src/utils/url.ts +12 -0
- package/src/utils/urls.ts +33 -0
- package/src/utils/uuid.ts +8 -0
- package/src/utils/versions.ts +66 -0
- package/src/utils/vitals.ts +30 -0
- package/src/utils/waitForWs.ts +31 -0
|
@@ -2,18 +2,18 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2, _b, _c2, _d2, _e, _f2, _g, _h2, _i2, _j, _k, _l2, _m2, _n2, _o2, _p2, _q;
|
|
5
|
-
import { e6 as Kl,
|
|
6
|
-
import { g as ei, d as bt, k as nu, v as
|
|
7
|
-
import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-
|
|
8
|
-
import { ad as P } from "./mermaid-
|
|
9
|
-
import { c as te } from "./clone-
|
|
5
|
+
import { e6 as Kl, bZ as Vl, aw as Ma, b2 as Hl, F as _t, aZ as Wl, az as Q, bv as jl, bw as zl, y as ql, A as Ni, z as Da, ax as Qs, e7 as Fa, aV as Yl, bb as Ga, e8 as Ua, aX as Xl, bd as wi, ay as Jl, e9 as Zl, br as Ql, ea as eu, a_ as Ie, D as vt, aC as _i, be as tu, eb as H, ec as Re } from "./main-D1gyEFIz.js";
|
|
6
|
+
import { g as ei, d as bt, k as nu, v as W, l as Ba, m as ru, n as su, a as Ka, c as x, i as qe, r as ae, f as ke, o as z } from "./_baseUniq-C789h55S.js";
|
|
7
|
+
import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-DB4yN-iG.js";
|
|
8
|
+
import { ad as P } from "./mermaid-B67irHCy.js";
|
|
9
|
+
import { c as te } from "./clone-BZjp8DHO.js";
|
|
10
10
|
var au = Object.prototype, ou = au.hasOwnProperty, Ee = Kl(function(n, e) {
|
|
11
11
|
if (Vl(e) || Ma(e)) {
|
|
12
|
-
|
|
12
|
+
Hl(e, _t(e), n);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
for (var t in e)
|
|
16
|
-
ou.call(e, t) &&
|
|
16
|
+
ou.call(e, t) && Wl(n, t, e[t]);
|
|
17
17
|
});
|
|
18
18
|
function wn(n) {
|
|
19
19
|
for (var e = -1, t = n == null ? 0 : n.length, r = 0, s = []; ++e < t; ) {
|
|
@@ -99,7 +99,7 @@ function de(n) {
|
|
|
99
99
|
}
|
|
100
100
|
var Ru = Math.max;
|
|
101
101
|
function ue(n, e, t, r) {
|
|
102
|
-
n = Ma(n) ? n :
|
|
102
|
+
n = Ma(n) ? n : W(n), t = t ? Qs(t) : 0;
|
|
103
103
|
var s = n.length;
|
|
104
104
|
return t < 0 && (t = Ru(s + t, 0)), de(n) ? t <= s && n.indexOf(e, t) > -1 : !!s && Ba(n, e, t) > -1;
|
|
105
105
|
}
|
|
@@ -175,7 +175,7 @@ function Cu(n) {
|
|
|
175
175
|
function ar(n) {
|
|
176
176
|
return typeof n == "object" && n !== null && se(n.container) && Ge(n.reference) && typeof n.message == "string";
|
|
177
177
|
}
|
|
178
|
-
class
|
|
178
|
+
class Ha {
|
|
179
179
|
constructor() {
|
|
180
180
|
this.subtypes = {}, this.allSubtypes = {};
|
|
181
181
|
}
|
|
@@ -210,7 +210,7 @@ class Wa {
|
|
|
210
210
|
function In(n) {
|
|
211
211
|
return typeof n == "object" && n !== null && Array.isArray(n.content);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Wa(n) {
|
|
214
214
|
return typeof n == "object" && n !== null && typeof n.tokenType == "object";
|
|
215
215
|
}
|
|
216
216
|
function ja(n) {
|
|
@@ -594,20 +594,20 @@ function Er(n) {
|
|
|
594
594
|
length: t - e
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
var
|
|
597
|
+
var We;
|
|
598
598
|
(function(n) {
|
|
599
599
|
n[n.Before = 0] = "Before", n[n.After = 1] = "After", n[n.OverlapFront = 2] = "OverlapFront", n[n.OverlapBack = 3] = "OverlapBack", n[n.Inside = 4] = "Inside", n[n.Outside = 5] = "Outside";
|
|
600
|
-
})(
|
|
600
|
+
})(We || (We = {}));
|
|
601
601
|
function wu(n, e) {
|
|
602
602
|
if (n.end.line < e.start.line || n.end.line === e.start.line && n.end.character <= e.start.character)
|
|
603
|
-
return
|
|
603
|
+
return We.Before;
|
|
604
604
|
if (n.start.line > e.end.line || n.start.line === e.end.line && n.start.character >= e.end.character)
|
|
605
|
-
return
|
|
605
|
+
return We.After;
|
|
606
606
|
const t = n.start.line > e.start.line || n.start.line === e.start.line && n.start.character >= e.start.character, r = n.end.line < e.end.line || n.end.line === e.end.line && n.end.character <= e.end.character;
|
|
607
|
-
return t && r ?
|
|
607
|
+
return t && r ? We.Inside : t ? We.OverlapBack : r ? We.OverlapFront : We.Outside;
|
|
608
608
|
}
|
|
609
609
|
function _u(n, e) {
|
|
610
|
-
return wu(n, e) >
|
|
610
|
+
return wu(n, e) > We.After;
|
|
611
611
|
}
|
|
612
612
|
const Lu = /^[\w\p{L}]$/u;
|
|
613
613
|
function Ou(n, e) {
|
|
@@ -626,7 +626,7 @@ function Ou(n, e) {
|
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
function Pi(n, e) {
|
|
629
|
-
return
|
|
629
|
+
return Wa(n) && e.includes(n.tokenType.name);
|
|
630
630
|
}
|
|
631
631
|
function Pu(n, e = true) {
|
|
632
632
|
for (; n.container; ) {
|
|
@@ -653,13 +653,13 @@ const Fn = "AbstractRule", Gn = "AbstractType", ns = "Condition", bi = "TypeDefi
|
|
|
653
653
|
function bu(n) {
|
|
654
654
|
return O.isInstance(n, Vt);
|
|
655
655
|
}
|
|
656
|
-
const Un = "ArrayLiteral", Bn = "ArrayType",
|
|
656
|
+
const Un = "ArrayLiteral", Bn = "ArrayType", Ht = "BooleanLiteral";
|
|
657
657
|
function Mu(n) {
|
|
658
|
-
return O.isInstance(n,
|
|
658
|
+
return O.isInstance(n, Ht);
|
|
659
659
|
}
|
|
660
|
-
const
|
|
660
|
+
const Wt = "Conjunction";
|
|
661
661
|
function Du(n) {
|
|
662
|
-
return O.isInstance(n,
|
|
662
|
+
return O.isInstance(n, Wt);
|
|
663
663
|
}
|
|
664
664
|
const jt = "Disjunction";
|
|
665
665
|
function Fu(n) {
|
|
@@ -677,7 +677,7 @@ const is = "NamedArgument", Yt = "Negation";
|
|
|
677
677
|
function Gu(n) {
|
|
678
678
|
return O.isInstance(n, Yt);
|
|
679
679
|
}
|
|
680
|
-
const Vn = "NumberLiteral",
|
|
680
|
+
const Vn = "NumberLiteral", Hn = "Parameter", Xt = "ParameterReference";
|
|
681
681
|
function Uu(n) {
|
|
682
682
|
return O.isInstance(n, Xt);
|
|
683
683
|
}
|
|
@@ -685,7 +685,7 @@ const Jt = "ParserRule";
|
|
|
685
685
|
function Ne(n) {
|
|
686
686
|
return O.isInstance(n, Jt);
|
|
687
687
|
}
|
|
688
|
-
const
|
|
688
|
+
const Wn = "ReferenceType", or = "ReturnType";
|
|
689
689
|
function Bu(n) {
|
|
690
690
|
return O.isInstance(n, or);
|
|
691
691
|
}
|
|
@@ -722,7 +722,7 @@ function si(n) {
|
|
|
722
722
|
return O.isInstance(n, sn);
|
|
723
723
|
}
|
|
724
724
|
const an = "EndOfFile";
|
|
725
|
-
function
|
|
725
|
+
function Hu(n) {
|
|
726
726
|
return O.isInstance(n, an);
|
|
727
727
|
}
|
|
728
728
|
const on = "Group";
|
|
@@ -734,7 +734,7 @@ function mt(n) {
|
|
|
734
734
|
return O.isInstance(n, ln);
|
|
735
735
|
}
|
|
736
736
|
const un = "NegatedToken";
|
|
737
|
-
function
|
|
737
|
+
function Wu(n) {
|
|
738
738
|
return O.isInstance(n, un);
|
|
739
739
|
}
|
|
740
740
|
const cn = "RegexToken";
|
|
@@ -769,9 +769,9 @@ const yn = "Wildcard";
|
|
|
769
769
|
function Ju(n) {
|
|
770
770
|
return O.isInstance(n, yn);
|
|
771
771
|
}
|
|
772
|
-
class Qa extends
|
|
772
|
+
class Qa extends Ha {
|
|
773
773
|
getAllTypes() {
|
|
774
|
-
return [Vt, Fn, Gn, en, tn, Un, Bn, nn,
|
|
774
|
+
return [Vt, Fn, Gn, en, tn, Un, Bn, nn, Ht, rn, ns, Wt, sn, jt, an, Kn, ss, on, zt, qt, ln, is, un, Yt, Vn, Hn, Xt, Jt, Wn, cn, or, dn, Zt, jn, fn, hn, xt, pn, Qt, as, bi, zn, mn, gn, rs, yn];
|
|
775
775
|
}
|
|
776
776
|
computeIsSubtype(e, t) {
|
|
777
777
|
switch (e) {
|
|
@@ -798,13 +798,13 @@ class Qa extends Wa {
|
|
|
798
798
|
case jn:
|
|
799
799
|
return this.isSubtype(rs, t);
|
|
800
800
|
case Bn:
|
|
801
|
-
case
|
|
801
|
+
case Wn:
|
|
802
802
|
case Zt:
|
|
803
803
|
case zn:
|
|
804
804
|
return this.isSubtype(bi, t);
|
|
805
|
-
case Wt:
|
|
806
|
-
return this.isSubtype(ns, t) || this.isSubtype(rs, t);
|
|
807
805
|
case Ht:
|
|
806
|
+
return this.isSubtype(ns, t) || this.isSubtype(rs, t);
|
|
807
|
+
case Wt:
|
|
808
808
|
case jt:
|
|
809
809
|
case Yt:
|
|
810
810
|
case Xt:
|
|
@@ -838,7 +838,7 @@ class Qa extends Wa {
|
|
|
838
838
|
return Kn;
|
|
839
839
|
case "NamedArgument:parameter":
|
|
840
840
|
case "ParameterReference:parameter":
|
|
841
|
-
return
|
|
841
|
+
return Hn;
|
|
842
842
|
case "TerminalRuleCall:rule":
|
|
843
843
|
return xt;
|
|
844
844
|
default:
|
|
@@ -869,16 +869,16 @@ class Qa extends Wa {
|
|
|
869
869
|
{ name: "elementType" }
|
|
870
870
|
]
|
|
871
871
|
};
|
|
872
|
-
case
|
|
872
|
+
case Ht:
|
|
873
873
|
return {
|
|
874
|
-
name:
|
|
874
|
+
name: Ht,
|
|
875
875
|
properties: [
|
|
876
876
|
{ name: "true", defaultValue: false }
|
|
877
877
|
]
|
|
878
878
|
};
|
|
879
|
-
case
|
|
879
|
+
case Wt:
|
|
880
880
|
return {
|
|
881
|
-
name:
|
|
881
|
+
name: Wt,
|
|
882
882
|
properties: [
|
|
883
883
|
{ name: "left" },
|
|
884
884
|
{ name: "right" }
|
|
@@ -953,9 +953,9 @@ class Qa extends Wa {
|
|
|
953
953
|
{ name: "value" }
|
|
954
954
|
]
|
|
955
955
|
};
|
|
956
|
-
case
|
|
956
|
+
case Hn:
|
|
957
957
|
return {
|
|
958
|
-
name:
|
|
958
|
+
name: Hn,
|
|
959
959
|
properties: [
|
|
960
960
|
{ name: "name" }
|
|
961
961
|
]
|
|
@@ -984,9 +984,9 @@ class Qa extends Wa {
|
|
|
984
984
|
{ name: "wildcard", defaultValue: false }
|
|
985
985
|
]
|
|
986
986
|
};
|
|
987
|
-
case
|
|
987
|
+
case Wn:
|
|
988
988
|
return {
|
|
989
|
-
name:
|
|
989
|
+
name: Wn,
|
|
990
990
|
properties: [
|
|
991
991
|
{ name: "referenceType" }
|
|
992
992
|
]
|
|
@@ -2099,7 +2099,7 @@ class ic extends Vr {
|
|
|
2099
2099
|
` && (this.multiline = true), e.quantifier)
|
|
2100
2100
|
this.isStarting = false, this.endRegexpStack = [];
|
|
2101
2101
|
else {
|
|
2102
|
-
const r =
|
|
2102
|
+
const r = Hr(t);
|
|
2103
2103
|
this.endRegexpStack.push(r), this.isStarting && (this.startRegexp += r);
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
@@ -2134,11 +2134,11 @@ function Ps(n) {
|
|
|
2134
2134
|
const e = typeof n == "string" ? new RegExp(n) : n;
|
|
2135
2135
|
return oc.some((t) => e.test(t));
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2137
|
+
function Hr(n) {
|
|
2138
2138
|
return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2139
2139
|
}
|
|
2140
2140
|
function lc(n) {
|
|
2141
|
-
return Array.prototype.map.call(n, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` :
|
|
2141
|
+
return Array.prototype.map.call(n, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : Hr(e)).join("");
|
|
2142
2142
|
}
|
|
2143
2143
|
function uc(n, e) {
|
|
2144
2144
|
const t = cc(n), r = e.match(t);
|
|
@@ -2426,7 +2426,7 @@ function Mt(n, e) {
|
|
|
2426
2426
|
lookahead: n.lookahead
|
|
2427
2427
|
});
|
|
2428
2428
|
} else {
|
|
2429
|
-
if (
|
|
2429
|
+
if (Wu(n))
|
|
2430
2430
|
return $c(n);
|
|
2431
2431
|
if (Xu(n))
|
|
2432
2432
|
return kc(n);
|
|
@@ -2483,7 +2483,7 @@ function Sc(n) {
|
|
|
2483
2483
|
});
|
|
2484
2484
|
}
|
|
2485
2485
|
function us(n) {
|
|
2486
|
-
return
|
|
2486
|
+
return Hr(n.value);
|
|
2487
2487
|
}
|
|
2488
2488
|
function ze(n, e) {
|
|
2489
2489
|
var t;
|
|
@@ -2775,7 +2775,7 @@ function Fe(n) {
|
|
|
2775
2775
|
return "CONSUME";
|
|
2776
2776
|
throw Error("non exhaustive match");
|
|
2777
2777
|
}
|
|
2778
|
-
class
|
|
2778
|
+
class Wr {
|
|
2779
2779
|
walk(e, t = []) {
|
|
2780
2780
|
x(e.definition, (r, s) => {
|
|
2781
2781
|
const i = X(e.definition, s + 1);
|
|
@@ -2877,7 +2877,7 @@ function Pc(n) {
|
|
|
2877
2877
|
return [n.terminalType];
|
|
2878
2878
|
}
|
|
2879
2879
|
const po = "_~IN~_";
|
|
2880
|
-
class bc extends
|
|
2880
|
+
class bc extends Wr {
|
|
2881
2881
|
constructor(e) {
|
|
2882
2882
|
super(), this.topProd = e, this.follows = {};
|
|
2883
2883
|
}
|
|
@@ -3012,7 +3012,7 @@ function Ms(n, e, t) {
|
|
|
3012
3012
|
default:
|
|
3013
3013
|
throw Error("non exhaustive match!");
|
|
3014
3014
|
}
|
|
3015
|
-
return
|
|
3015
|
+
return W(e);
|
|
3016
3016
|
}
|
|
3017
3017
|
function Yn(n, e, t) {
|
|
3018
3018
|
const r = Qe(n);
|
|
@@ -3217,14 +3217,14 @@ function Vc(n, e) {
|
|
|
3217
3217
|
canBeOptimized: v
|
|
3218
3218
|
};
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function Hc(n, e) {
|
|
3221
3221
|
let t = [];
|
|
3222
3222
|
const r = jc(n);
|
|
3223
3223
|
t = t.concat(r.errors);
|
|
3224
3224
|
const s = zc(r.valid), i = s.valid;
|
|
3225
|
-
return t = t.concat(s.errors), t = t.concat(
|
|
3225
|
+
return t = t.concat(s.errors), t = t.concat(Wc(i)), t = t.concat(td(i)), t = t.concat(nd(i, e)), t = t.concat(rd(i)), t;
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function Wc(n) {
|
|
3228
3228
|
let e = [];
|
|
3229
3229
|
const t = ke(n, (r) => Ye(r[yt]));
|
|
3230
3230
|
return e = e.concat(Yc(t)), e = e.concat(Zc(t)), e = e.concat(Qc(t)), e = e.concat(ed(t)), e = e.concat(Xc(t)), e;
|
|
@@ -3453,7 +3453,7 @@ function ad(n, e, t) {
|
|
|
3453
3453
|
function od(n, e, t) {
|
|
3454
3454
|
const r = [];
|
|
3455
3455
|
let s = false;
|
|
3456
|
-
const i = wn(Ie(
|
|
3456
|
+
const i = wn(Ie(W(n.modes))), a = Ur(i, (l) => l[yt] === ce.NA), o = Ro(t);
|
|
3457
3457
|
return e && x(a, (l) => {
|
|
3458
3458
|
const u = To(l, o);
|
|
3459
3459
|
if (u !== false) {
|
|
@@ -3591,7 +3591,7 @@ function hd(n) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
function pd(n) {
|
|
3593
3593
|
x(n, (e) => {
|
|
3594
|
-
Eo(e) || (vo[Vi] = e, e.tokenTypeIdx = Vi++),
|
|
3594
|
+
Eo(e) || (vo[Vi] = e, e.tokenTypeIdx = Vi++), Hi(e) && !Q(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), Hi(e) || (e.CATEGORIES = []), yd(e) || (e.categoryMatches = []), Td(e) || (e.categoryMatchesMap = {});
|
|
3595
3595
|
});
|
|
3596
3596
|
}
|
|
3597
3597
|
function md(n) {
|
|
@@ -3617,7 +3617,7 @@ function Ao(n, e) {
|
|
|
3617
3617
|
function Eo(n) {
|
|
3618
3618
|
return I(n, "tokenTypeIdx");
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function Hi(n) {
|
|
3621
3621
|
return I(n, "CATEGORIES");
|
|
3622
3622
|
}
|
|
3623
3623
|
function yd(n) {
|
|
@@ -3696,7 +3696,7 @@ a boolean 2nd argument is no longer supported`);
|
|
|
3696
3696
|
if (x(s.modes, (o, l) => {
|
|
3697
3697
|
this.TRACE_INIT(`Mode: <${l}> processing`, () => {
|
|
3698
3698
|
if (this.modes.push(l), this.config.skipValidations === false && this.TRACE_INIT("validatePatterns", () => {
|
|
3699
|
-
this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(
|
|
3699
|
+
this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(Hc(o, a));
|
|
3700
3700
|
}), P(this.lexerDefinitionErrors)) {
|
|
3701
3701
|
bn(o);
|
|
3702
3702
|
let u;
|
|
@@ -3936,7 +3936,7 @@ function wt(n) {
|
|
|
3936
3936
|
function ko(n) {
|
|
3937
3937
|
return de(n.LABEL) && n.LABEL !== "";
|
|
3938
3938
|
}
|
|
3939
|
-
const vd = "parent",
|
|
3939
|
+
const vd = "parent", Wi = "categories", ji = "label", zi = "group", qi = "push_mode", Yi = "pop_mode", Xi = "longer_alt", Ji = "line_breaks", Zi = "start_chars_hint";
|
|
3940
3940
|
function $o(n) {
|
|
3941
3941
|
return Ad(n);
|
|
3942
3942
|
}
|
|
@@ -3945,7 +3945,7 @@ function Ad(n) {
|
|
|
3945
3945
|
if (t.name = n.name, qe(e) || (t.PATTERN = e), I(n, vd))
|
|
3946
3946
|
throw `The parent property is no longer supported.
|
|
3947
3947
|
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;
|
|
3948
|
-
return I(n,
|
|
3948
|
+
return I(n, Wi) && (t.CATEGORIES = n[Wi]), bn([t]), I(n, ji) && (t.LABEL = n[ji]), I(n, zi) && (t.GROUP = n[zi]), I(n, Yi) && (t.POP_MODE = n[Yi]), I(n, qi) && (t.PUSH_MODE = n[qi]), I(n, Xi) && (t.LONGER_ALT = n[Xi]), I(n, Ji) && (t.LINE_BREAKS = n[Ji]), I(n, Zi) && (t.START_CHARS_HINT = n[Zi]), t;
|
|
3949
3949
|
}
|
|
3950
3950
|
const et = $o({ name: "EOF", pattern: ce.NA });
|
|
3951
3951
|
bn([et]);
|
|
@@ -4085,7 +4085,7 @@ class $d extends Ft {
|
|
|
4085
4085
|
super(), this.nameToTopRule = e, this.errMsgProvider = t, this.errors = [];
|
|
4086
4086
|
}
|
|
4087
4087
|
resolveRefs() {
|
|
4088
|
-
x(
|
|
4088
|
+
x(W(this.nameToTopRule), (e) => {
|
|
4089
4089
|
this.currTopLevel = e, e.accept(this);
|
|
4090
4090
|
});
|
|
4091
4091
|
}
|
|
@@ -4104,7 +4104,7 @@ class $d extends Ft {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
}
|
|
4106
4106
|
}
|
|
4107
|
-
class Sd extends
|
|
4107
|
+
class Sd extends Wr {
|
|
4108
4108
|
constructor(e, t) {
|
|
4109
4109
|
super(), this.topProd = e, this.path = t, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = false, this.isAtEndOfPath = false;
|
|
4110
4110
|
}
|
|
@@ -4137,7 +4137,7 @@ class Cd extends Sd {
|
|
|
4137
4137
|
}
|
|
4138
4138
|
}
|
|
4139
4139
|
}
|
|
4140
|
-
class zr extends
|
|
4140
|
+
class zr extends Wr {
|
|
4141
4141
|
constructor(e, t) {
|
|
4142
4142
|
super(), this.topRule = e, this.occurrence = t, this.result = {
|
|
4143
4143
|
token: void 0,
|
|
@@ -4529,7 +4529,7 @@ function Od(n, e, t) {
|
|
|
4529
4529
|
return false;
|
|
4530
4530
|
};
|
|
4531
4531
|
}
|
|
4532
|
-
class Pd extends
|
|
4532
|
+
class Pd extends Wr {
|
|
4533
4533
|
constructor(e, t, r) {
|
|
4534
4534
|
super(), this.topProd = e, this.targetOccurrence = t, this.targetProdType = r;
|
|
4535
4535
|
}
|
|
@@ -4706,7 +4706,7 @@ function Gd(n, e) {
|
|
|
4706
4706
|
const t = new Bd();
|
|
4707
4707
|
n.accept(t);
|
|
4708
4708
|
const r = t.allProductions, s = yu(r, Ud), i = be(s, (o) => o.length > 1);
|
|
4709
|
-
return k(
|
|
4709
|
+
return k(W(i), (o) => {
|
|
4710
4710
|
const l = Pe(o), u = e.buildDuplicateFoundError(n, o), c = Fe(l), d = {
|
|
4711
4711
|
message: u,
|
|
4712
4712
|
type: le.DUPLICATE_PRODUCTIONS,
|
|
@@ -4824,7 +4824,7 @@ class mi extends Ft {
|
|
|
4824
4824
|
this.alternations.push(e);
|
|
4825
4825
|
}
|
|
4826
4826
|
}
|
|
4827
|
-
function
|
|
4827
|
+
function Hd(n, e) {
|
|
4828
4828
|
const t = new mi();
|
|
4829
4829
|
n.accept(t);
|
|
4830
4830
|
const r = t.alternations;
|
|
@@ -4848,7 +4848,7 @@ function Wd(n, e) {
|
|
|
4848
4848
|
});
|
|
4849
4849
|
});
|
|
4850
4850
|
}
|
|
4851
|
-
function
|
|
4851
|
+
function Wd(n, e, t) {
|
|
4852
4852
|
const r = new mi();
|
|
4853
4853
|
n.accept(r);
|
|
4854
4854
|
let s = r.alternations;
|
|
@@ -5211,10 +5211,10 @@ class gi {
|
|
|
5211
5211
|
return Ae(e, (t) => _o(t, t, ht));
|
|
5212
5212
|
}
|
|
5213
5213
|
validateEmptyOrAlternatives(e) {
|
|
5214
|
-
return Ae(e, (t) =>
|
|
5214
|
+
return Ae(e, (t) => Hd(t, ht));
|
|
5215
5215
|
}
|
|
5216
5216
|
validateAmbiguousAlternationAlternatives(e, t) {
|
|
5217
|
-
return Ae(e, (r) =>
|
|
5217
|
+
return Ae(e, (r) => Wd(r, t, ht));
|
|
5218
5218
|
}
|
|
5219
5219
|
validateSomeNonEmptyLookaheadPath(e, t) {
|
|
5220
5220
|
return qd(e, t, ht);
|
|
@@ -5394,17 +5394,17 @@ function gf(n, e, t) {
|
|
|
5394
5394
|
s[i] = pf;
|
|
5395
5395
|
}), r.prototype = s, r.prototype.constructor = r, r;
|
|
5396
5396
|
}
|
|
5397
|
-
var
|
|
5397
|
+
var Hs;
|
|
5398
5398
|
(function(n) {
|
|
5399
5399
|
n[n.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", n[n.MISSING_METHOD = 1] = "MISSING_METHOD";
|
|
5400
|
-
})(
|
|
5400
|
+
})(Hs || (Hs = {}));
|
|
5401
5401
|
function yf(n, e) {
|
|
5402
5402
|
return Tf(n, e);
|
|
5403
5403
|
}
|
|
5404
5404
|
function Tf(n, e) {
|
|
5405
5405
|
const t = ke(e, (s) => vt(n[s]) === false), r = k(t, (s) => ({
|
|
5406
5406
|
msg: `Missing visitor method: <${s}> on ${n.constructor.name} CST Visitor.`,
|
|
5407
|
-
type:
|
|
5407
|
+
type: Hs.MISSING_METHOD,
|
|
5408
5408
|
methodName: s
|
|
5409
5409
|
}));
|
|
5410
5410
|
return wn(r);
|
|
@@ -5862,7 +5862,7 @@ class Af {
|
|
|
5862
5862
|
return this.gastProductionsCache;
|
|
5863
5863
|
}
|
|
5864
5864
|
getSerializedGastProductions() {
|
|
5865
|
-
return Nc(
|
|
5865
|
+
return Nc(W(this.gastProductionsCache));
|
|
5866
5866
|
}
|
|
5867
5867
|
}
|
|
5868
5868
|
class Ef {
|
|
@@ -5883,16 +5883,16 @@ class Ef {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
if (Q(e))
|
|
5885
5885
|
this.tokensMap = ae(e, (i, a) => (i[a.name] = a, i), {});
|
|
5886
|
-
else if (I(e, "modes") && Oe(Ie(
|
|
5887
|
-
const i = Ie(
|
|
5886
|
+
else if (I(e, "modes") && Oe(Ie(W(e.modes)), Rd)) {
|
|
5887
|
+
const i = Ie(W(e.modes)), a = ni(i);
|
|
5888
5888
|
this.tokensMap = ae(a, (o, l) => (o[l.name] = l, o), {});
|
|
5889
5889
|
} else if (tu(e))
|
|
5890
5890
|
this.tokensMap = te(e);
|
|
5891
5891
|
else
|
|
5892
5892
|
throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");
|
|
5893
5893
|
this.tokensMap.EOF = et;
|
|
5894
|
-
const r = I(e, "modes") ? Ie(
|
|
5895
|
-
this.tokenMatcher = s ? xr : Pn, bn(
|
|
5894
|
+
const r = I(e, "modes") ? Ie(W(e.modes)) : W(e), s = Oe(r, (i) => P(i.categoryMatches));
|
|
5895
|
+
this.tokenMatcher = s ? xr : Pn, bn(W(this.tokensMap));
|
|
5896
5896
|
}
|
|
5897
5897
|
defineRule(e, t, r) {
|
|
5898
5898
|
if (this.selfAnalysisDone)
|
|
@@ -6505,31 +6505,31 @@ class Mn {
|
|
|
6505
6505
|
let r = [];
|
|
6506
6506
|
if (this.TRACE_INIT("Grammar Resolving", () => {
|
|
6507
6507
|
r = Zd({
|
|
6508
|
-
rules:
|
|
6508
|
+
rules: W(this.gastProductionsCache)
|
|
6509
6509
|
}), this.definitionErrors = this.definitionErrors.concat(r);
|
|
6510
6510
|
}), this.TRACE_INIT("Grammar Validations", () => {
|
|
6511
6511
|
if (P(r) && this.skipValidations === false) {
|
|
6512
6512
|
const s = Qd({
|
|
6513
|
-
rules:
|
|
6514
|
-
tokenTypes:
|
|
6513
|
+
rules: W(this.gastProductionsCache),
|
|
6514
|
+
tokenTypes: W(this.tokensMap),
|
|
6515
6515
|
errMsgProvider: ht,
|
|
6516
6516
|
grammarName: t
|
|
6517
6517
|
}), i = Dd({
|
|
6518
6518
|
lookaheadStrategy: this.lookaheadStrategy,
|
|
6519
|
-
rules:
|
|
6520
|
-
tokenTypes:
|
|
6519
|
+
rules: W(this.gastProductionsCache),
|
|
6520
|
+
tokenTypes: W(this.tokensMap),
|
|
6521
6521
|
grammarName: t
|
|
6522
6522
|
});
|
|
6523
6523
|
this.definitionErrors = this.definitionErrors.concat(s, i);
|
|
6524
6524
|
}
|
|
6525
6525
|
}), P(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => {
|
|
6526
|
-
const s = Mc(
|
|
6526
|
+
const s = Mc(W(this.gastProductionsCache));
|
|
6527
6527
|
this.resyncFollows = s;
|
|
6528
6528
|
}), this.TRACE_INIT("ComputeLookaheadFunctions", () => {
|
|
6529
6529
|
var s, i;
|
|
6530
6530
|
(i = (s = this.lookaheadStrategy).initialize) === null || i === void 0 || i.call(s, {
|
|
6531
|
-
rules:
|
|
6532
|
-
}), this.preComputeLookaheadFunctions(
|
|
6531
|
+
rules: W(this.gastProductionsCache)
|
|
6532
|
+
}), this.preComputeLookaheadFunctions(W(this.gastProductionsCache));
|
|
6533
6533
|
})), !Mn.DEFER_DEFINITION_ERRORS_HANDLING && !P(this.definitionErrors))
|
|
6534
6534
|
throw e = k(this.definitionErrors, (s) => s.message), new Error(`Parser Definition Errors detected:
|
|
6535
6535
|
${e.join(`
|
|
@@ -6570,7 +6570,7 @@ class wf extends Mn {
|
|
|
6570
6570
|
function Pt(n, e, t) {
|
|
6571
6571
|
return `${n.name}_${e}_${t}`;
|
|
6572
6572
|
}
|
|
6573
|
-
const tt = 1, _f = 2,
|
|
6573
|
+
const tt = 1, _f = 2, Ho = 4, Wo = 5, Dn = 7, Lf = 8, Of = 9, Pf = 10, bf = 11, jo = 12;
|
|
6574
6574
|
class yi {
|
|
6575
6575
|
constructor(e) {
|
|
6576
6576
|
this.target = e;
|
|
@@ -6632,7 +6632,7 @@ function qo(n, e, t) {
|
|
|
6632
6632
|
}
|
|
6633
6633
|
function Ff(n, e, t) {
|
|
6634
6634
|
const r = q(n, e, t, {
|
|
6635
|
-
type:
|
|
6635
|
+
type: Wo
|
|
6636
6636
|
});
|
|
6637
6637
|
st(n, r);
|
|
6638
6638
|
const s = Gt(n, e, r, t, Et(n, e, t));
|
|
@@ -6640,7 +6640,7 @@ function Ff(n, e, t) {
|
|
|
6640
6640
|
}
|
|
6641
6641
|
function Gf(n, e, t) {
|
|
6642
6642
|
const r = q(n, e, t, {
|
|
6643
|
-
type:
|
|
6643
|
+
type: Wo
|
|
6644
6644
|
});
|
|
6645
6645
|
st(n, r);
|
|
6646
6646
|
const s = Gt(n, e, r, t, Et(n, e, t)), i = vi(n, e, t.separator, t);
|
|
@@ -6648,7 +6648,7 @@ function Gf(n, e, t) {
|
|
|
6648
6648
|
}
|
|
6649
6649
|
function Uf(n, e, t) {
|
|
6650
6650
|
const r = q(n, e, t, {
|
|
6651
|
-
type:
|
|
6651
|
+
type: Ho
|
|
6652
6652
|
});
|
|
6653
6653
|
st(n, r);
|
|
6654
6654
|
const s = Gt(n, e, r, t, Et(n, e, t));
|
|
@@ -6656,7 +6656,7 @@ function Uf(n, e, t) {
|
|
|
6656
6656
|
}
|
|
6657
6657
|
function Bf(n, e, t) {
|
|
6658
6658
|
const r = q(n, e, t, {
|
|
6659
|
-
type:
|
|
6659
|
+
type: Ho
|
|
6660
6660
|
});
|
|
6661
6661
|
st(n, r);
|
|
6662
6662
|
const s = Gt(n, e, r, t, Et(n, e, t)), i = vi(n, e, t.separator, t);
|
|
@@ -6676,7 +6676,7 @@ function Vf(n, e, t) {
|
|
|
6676
6676
|
});
|
|
6677
6677
|
st(n, r);
|
|
6678
6678
|
const s = Gt(n, e, r, t, Et(n, e, t));
|
|
6679
|
-
return
|
|
6679
|
+
return Hf(n, e, t, s);
|
|
6680
6680
|
}
|
|
6681
6681
|
function Et(n, e, t) {
|
|
6682
6682
|
const r = ke(k(t.definition, (s) => qo(n, e, s)), (s) => s !== void 0);
|
|
@@ -6710,7 +6710,7 @@ function Xo(n, e, t, r, s) {
|
|
|
6710
6710
|
right: l
|
|
6711
6711
|
};
|
|
6712
6712
|
}
|
|
6713
|
-
function
|
|
6713
|
+
function Hf(n, e, t, r) {
|
|
6714
6714
|
const s = r.left, i = r.right;
|
|
6715
6715
|
return V(s, i), n.decisionMap[Pt(e, "Option", t.idx)] = s, r;
|
|
6716
6716
|
}
|
|
@@ -6729,9 +6729,9 @@ function Gt(n, e, t, r, ...s) {
|
|
|
6729
6729
|
left: t,
|
|
6730
6730
|
right: i
|
|
6731
6731
|
};
|
|
6732
|
-
return n.decisionMap[Pt(e,
|
|
6732
|
+
return n.decisionMap[Pt(e, Wf(r), r.idx)] = t, a;
|
|
6733
6733
|
}
|
|
6734
|
-
function
|
|
6734
|
+
function Wf(n) {
|
|
6735
6735
|
if (n instanceof pe)
|
|
6736
6736
|
return "Alternation";
|
|
6737
6737
|
if (n instanceof ee)
|
|
@@ -6815,7 +6815,7 @@ function Yf(n, e) {
|
|
|
6815
6815
|
n.states.splice(n.states.indexOf(e), 1);
|
|
6816
6816
|
}
|
|
6817
6817
|
const Lr = {};
|
|
6818
|
-
class
|
|
6818
|
+
class Ws {
|
|
6819
6819
|
constructor() {
|
|
6820
6820
|
this.map = {}, this.configs = [];
|
|
6821
6821
|
}
|
|
@@ -7073,7 +7073,7 @@ function ih(n, e) {
|
|
|
7073
7073
|
return n.edges[e.tokenTypeIdx];
|
|
7074
7074
|
}
|
|
7075
7075
|
function ah(n, e, t) {
|
|
7076
|
-
const r = new
|
|
7076
|
+
const r = new Ws(), s = [];
|
|
7077
7077
|
for (const a of n.elements) {
|
|
7078
7078
|
if (t.is(a.alt) === false)
|
|
7079
7079
|
continue;
|
|
@@ -7093,7 +7093,7 @@ function ah(n, e, t) {
|
|
|
7093
7093
|
}
|
|
7094
7094
|
let i;
|
|
7095
7095
|
if (s.length === 0 && r.size === 1 && (i = r), i === void 0) {
|
|
7096
|
-
i = new
|
|
7096
|
+
i = new Ws();
|
|
7097
7097
|
for (const a of r.elements)
|
|
7098
7098
|
Or(a, i);
|
|
7099
7099
|
}
|
|
@@ -7135,7 +7135,7 @@ function el(n, e) {
|
|
|
7135
7135
|
return r !== void 0 ? r : (e.configs.finalize(), n.states[t] = e, e);
|
|
7136
7136
|
}
|
|
7137
7137
|
function uh(n) {
|
|
7138
|
-
const e = new
|
|
7138
|
+
const e = new Ws(), t = n.transitions.length;
|
|
7139
7139
|
for (let r = 0; r < t; r++) {
|
|
7140
7140
|
const i = {
|
|
7141
7141
|
state: n.transitions[r].target,
|
|
@@ -7357,7 +7357,7 @@ class Ei extends tl {
|
|
|
7357
7357
|
}
|
|
7358
7358
|
return this._rangeCache;
|
|
7359
7359
|
} else
|
|
7360
|
-
return { start:
|
|
7360
|
+
return { start: H.create(0, 0), end: H.create(0, 0) };
|
|
7361
7361
|
}
|
|
7362
7362
|
get firstNonHiddenNode() {
|
|
7363
7363
|
for (const e of this.content)
|
|
@@ -7765,7 +7765,7 @@ function Tt(n, e, t = false) {
|
|
|
7765
7765
|
r = Ih(n, e);
|
|
7766
7766
|
else if (ii(e))
|
|
7767
7767
|
r = Nh(n, e);
|
|
7768
|
-
else if (
|
|
7768
|
+
else if (Hu(e)) {
|
|
7769
7769
|
const s = n.consume++;
|
|
7770
7770
|
r = () => n.parser.consume(s, et, e);
|
|
7771
7771
|
} else
|
|
@@ -9123,12 +9123,12 @@ class Vh {
|
|
|
9123
9123
|
return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${s} named '${e.reference.$refText}'.`, targetDescription: t });
|
|
9124
9124
|
}
|
|
9125
9125
|
}
|
|
9126
|
-
function
|
|
9126
|
+
function Hh(n) {
|
|
9127
9127
|
return typeof n.name == "string";
|
|
9128
9128
|
}
|
|
9129
|
-
class
|
|
9129
|
+
class Wh {
|
|
9130
9130
|
getName(e) {
|
|
9131
|
-
if (
|
|
9131
|
+
if (Hh(e))
|
|
9132
9132
|
return e.name;
|
|
9133
9133
|
}
|
|
9134
9134
|
getNameNode(e) {
|
|
@@ -10586,7 +10586,7 @@ function Aa(n) {
|
|
|
10586
10586
|
}
|
|
10587
10587
|
function Tp(n, e, t) {
|
|
10588
10588
|
let r, s;
|
|
10589
|
-
typeof n == "string" ? (s = e, r = t) : (s = n.range.start, r = e), s || (s =
|
|
10589
|
+
typeof n == "string" ? (s = e, r = t) : (s = n.range.start, r = e), s || (s = H.create(0, 0));
|
|
10590
10590
|
const i = Rl(n), a = Si(r), o = Ap({
|
|
10591
10591
|
lines: i,
|
|
10592
10592
|
position: s,
|
|
@@ -10630,7 +10630,7 @@ function Ap(n) {
|
|
|
10630
10630
|
}
|
|
10631
10631
|
if (c = c.substring(0, Sp(c)), Js(c, d) >= c.length) {
|
|
10632
10632
|
if (s.length > 0) {
|
|
10633
|
-
const h =
|
|
10633
|
+
const h = H.create(i, a);
|
|
10634
10634
|
s.push({
|
|
10635
10635
|
type: "break",
|
|
10636
10636
|
content: "",
|
|
@@ -10641,7 +10641,7 @@ function Ap(n) {
|
|
|
10641
10641
|
Ea.lastIndex = d;
|
|
10642
10642
|
const h = Ea.exec(c);
|
|
10643
10643
|
if (h) {
|
|
10644
|
-
const p = h[0], m = h[1], v =
|
|
10644
|
+
const p = h[0], m = h[1], v = H.create(i, a + d), y = H.create(i, a + d + p.length);
|
|
10645
10645
|
s.push({
|
|
10646
10646
|
type: "tag",
|
|
10647
10647
|
content: m,
|
|
@@ -10660,7 +10660,7 @@ function Ap(n) {
|
|
|
10660
10660
|
function Ep(n, e, t, r) {
|
|
10661
10661
|
const s = [];
|
|
10662
10662
|
if (n.length === 0) {
|
|
10663
|
-
const i =
|
|
10663
|
+
const i = H.create(t, r), a = H.create(t, r + e.length);
|
|
10664
10664
|
s.push({
|
|
10665
10665
|
type: "text",
|
|
10666
10666
|
content: e,
|
|
@@ -10673,27 +10673,27 @@ function Ep(n, e, t, r) {
|
|
|
10673
10673
|
u.length > 0 && s.push({
|
|
10674
10674
|
type: "text",
|
|
10675
10675
|
content: e.substring(i, l),
|
|
10676
|
-
range: Re.create(
|
|
10676
|
+
range: Re.create(H.create(t, i + r), H.create(t, l + r))
|
|
10677
10677
|
});
|
|
10678
10678
|
let c = u.length + 1;
|
|
10679
10679
|
const d = o[1];
|
|
10680
10680
|
if (s.push({
|
|
10681
10681
|
type: "inline-tag",
|
|
10682
10682
|
content: d,
|
|
10683
|
-
range: Re.create(
|
|
10683
|
+
range: Re.create(H.create(t, i + c + r), H.create(t, i + c + d.length + r))
|
|
10684
10684
|
}), c += d.length, o.length === 4) {
|
|
10685
10685
|
c += o[2].length;
|
|
10686
10686
|
const f = o[3];
|
|
10687
10687
|
s.push({
|
|
10688
10688
|
type: "text",
|
|
10689
10689
|
content: f,
|
|
10690
|
-
range: Re.create(
|
|
10690
|
+
range: Re.create(H.create(t, i + c + r), H.create(t, i + c + f.length + r))
|
|
10691
10691
|
});
|
|
10692
10692
|
} else
|
|
10693
10693
|
s.push({
|
|
10694
10694
|
type: "text",
|
|
10695
10695
|
content: "",
|
|
10696
|
-
range: Re.create(
|
|
10696
|
+
range: Re.create(H.create(t, i + c + r), H.create(t, i + c + r))
|
|
10697
10697
|
});
|
|
10698
10698
|
i = l + o[0].length;
|
|
10699
10699
|
}
|
|
@@ -10701,7 +10701,7 @@ function Ep(n, e, t, r) {
|
|
|
10701
10701
|
a.length > 0 && s.push({
|
|
10702
10702
|
type: "text",
|
|
10703
10703
|
content: a,
|
|
10704
|
-
range: Re.create(
|
|
10704
|
+
range: Re.create(H.create(t, i + r), H.create(t, i + r + a.length))
|
|
10705
10705
|
});
|
|
10706
10706
|
}
|
|
10707
10707
|
return s;
|
|
@@ -10718,7 +10718,7 @@ function Sp(n) {
|
|
|
10718
10718
|
}
|
|
10719
10719
|
function Cp(n) {
|
|
10720
10720
|
var e, t, r, s;
|
|
10721
|
-
const i =
|
|
10721
|
+
const i = H.create(n.position.line, n.position.character);
|
|
10722
10722
|
if (n.tokens.length === 0)
|
|
10723
10723
|
return new ka([], Re.create(i, i));
|
|
10724
10724
|
const a = [];
|
|
@@ -10790,7 +10790,7 @@ function Si(n) {
|
|
|
10790
10790
|
}
|
|
10791
10791
|
function Ts(n, e) {
|
|
10792
10792
|
if (typeof n == "string" || typeof n == "object") {
|
|
10793
|
-
const t = typeof n == "string" ?
|
|
10793
|
+
const t = typeof n == "string" ? Hr(n) : n.source;
|
|
10794
10794
|
return e ? new RegExp(`^\\s*${t}`) : new RegExp(`\\s*${t}\\s*$`);
|
|
10795
10795
|
} else
|
|
10796
10796
|
return n;
|
|
@@ -11066,7 +11066,7 @@ class Mp {
|
|
|
11066
11066
|
}
|
|
11067
11067
|
dehydrateCstNode(e, t) {
|
|
11068
11068
|
const r = t.cstNodes.get(e);
|
|
11069
|
-
return ja(e) ? r.fullText = e.fullText : r.grammarSource = this.getGrammarElementId(e.grammarSource), r.hidden = e.hidden, r.astNode = t.astNodes.get(e.astNode), In(e) ? r.content = e.content.map((s) => this.dehydrateCstNode(s, t)) :
|
|
11069
|
+
return ja(e) ? r.fullText = e.fullText : r.grammarSource = this.getGrammarElementId(e.grammarSource), r.hidden = e.hidden, r.astNode = t.astNodes.get(e.astNode), In(e) ? r.content = e.content.map((s) => this.dehydrateCstNode(s, t)) : Wa(e) && (r.tokenType = e.tokenType.name, r.offset = e.offset, r.length = e.length, r.startLine = e.range.start.line, r.startColumn = e.range.start.character, r.endLine = e.range.end.line, r.endColumn = e.range.end.character), r;
|
|
11070
11070
|
}
|
|
11071
11071
|
hydrate(e) {
|
|
11072
11072
|
const t = e.value, r = this.createHydrationContext(t);
|
|
@@ -11173,7 +11173,7 @@ function it(n) {
|
|
|
11173
11173
|
},
|
|
11174
11174
|
references: {
|
|
11175
11175
|
Linker: (e) => new Vh(e),
|
|
11176
|
-
NameProvider: () => new
|
|
11176
|
+
NameProvider: () => new Wh(),
|
|
11177
11177
|
ScopeProvider: (e) => new Zh(e),
|
|
11178
11178
|
ScopeComputation: (e) => new zh(e),
|
|
11179
11179
|
References: (e) => new jh(e)
|
|
@@ -11295,15 +11295,15 @@ function Vp(n) {
|
|
|
11295
11295
|
}
|
|
11296
11296
|
R(Vp, "isArchitecture");
|
|
11297
11297
|
var Qn = "Axis", En = "Branch";
|
|
11298
|
-
function
|
|
11298
|
+
function Hp(n) {
|
|
11299
11299
|
return Me.isInstance(n, En);
|
|
11300
11300
|
}
|
|
11301
|
-
R(
|
|
11301
|
+
R(Hp, "isBranch");
|
|
11302
11302
|
var er = "Checkout", tr = "CherryPicking", vs = "ClassDefStatement", kn = "Commit";
|
|
11303
|
-
function
|
|
11303
|
+
function Wp(n) {
|
|
11304
11304
|
return Me.isInstance(n, kn);
|
|
11305
11305
|
}
|
|
11306
|
-
R(
|
|
11306
|
+
R(Wp, "isCommit");
|
|
11307
11307
|
var As = "Curve", Es = "Edge", ks = "Entry", $n = "GitGraph";
|
|
11308
11308
|
function jp(n) {
|
|
11309
11309
|
return Me.isInstance(n, $n);
|
|
@@ -11344,7 +11344,7 @@ function Qp(n) {
|
|
|
11344
11344
|
return Me.isInstance(n, vr);
|
|
11345
11345
|
}
|
|
11346
11346
|
R(Qp, "isTreemap");
|
|
11347
|
-
var Ns = "TreemapRow", rr = "Direction", sr = "Leaf", ir = "Section", Sl = (_a2 = class extends
|
|
11347
|
+
var Ns = "TreemapRow", rr = "Direction", sr = "Leaf", ir = "Section", Sl = (_a2 = class extends Ha {
|
|
11348
11348
|
getAllTypes() {
|
|
11349
11349
|
return [pr, Qn, En, er, tr, vs, kn, As, rr, Es, ks, $n, $s, mr, nr, Ss, sr, Sn, Cs, gr, yr, Tr, Rr, xs, ir, Is, Ia, vr, Ns];
|
|
11350
11350
|
}
|
|
@@ -11974,42 +11974,42 @@ function Ul(n = ot) {
|
|
|
11974
11974
|
return e.ServiceRegistry.register(t), Fl(t), { shared: e, Treemap: t };
|
|
11975
11975
|
}
|
|
11976
11976
|
R(Ul, "createTreemapServices");
|
|
11977
|
-
var
|
|
11977
|
+
var He = {}, Dm = {
|
|
11978
11978
|
info: /* @__PURE__ */ R(async () => {
|
|
11979
11979
|
const { createInfoServices: n } = await Promise.resolve().then(() => Um), e = n().Info.parser.LangiumParser;
|
|
11980
|
-
|
|
11980
|
+
He.info = e;
|
|
11981
11981
|
}, "info"),
|
|
11982
11982
|
packet: /* @__PURE__ */ R(async () => {
|
|
11983
11983
|
const { createPacketServices: n } = await Promise.resolve().then(() => Bm), e = n().Packet.parser.LangiumParser;
|
|
11984
|
-
|
|
11984
|
+
He.packet = e;
|
|
11985
11985
|
}, "packet"),
|
|
11986
11986
|
pie: /* @__PURE__ */ R(async () => {
|
|
11987
11987
|
const { createPieServices: n } = await Promise.resolve().then(() => Km), e = n().Pie.parser.LangiumParser;
|
|
11988
|
-
|
|
11988
|
+
He.pie = e;
|
|
11989
11989
|
}, "pie"),
|
|
11990
11990
|
architecture: /* @__PURE__ */ R(async () => {
|
|
11991
11991
|
const { createArchitectureServices: n } = await Promise.resolve().then(() => Vm), e = n().Architecture.parser.LangiumParser;
|
|
11992
|
-
|
|
11992
|
+
He.architecture = e;
|
|
11993
11993
|
}, "architecture"),
|
|
11994
11994
|
gitGraph: /* @__PURE__ */ R(async () => {
|
|
11995
|
-
const { createGitGraphServices: n } = await Promise.resolve().then(() =>
|
|
11996
|
-
|
|
11995
|
+
const { createGitGraphServices: n } = await Promise.resolve().then(() => Hm), e = n().GitGraph.parser.LangiumParser;
|
|
11996
|
+
He.gitGraph = e;
|
|
11997
11997
|
}, "gitGraph"),
|
|
11998
11998
|
radar: /* @__PURE__ */ R(async () => {
|
|
11999
|
-
const { createRadarServices: n } = await Promise.resolve().then(() =>
|
|
12000
|
-
|
|
11999
|
+
const { createRadarServices: n } = await Promise.resolve().then(() => Wm), e = n().Radar.parser.LangiumParser;
|
|
12000
|
+
He.radar = e;
|
|
12001
12001
|
}, "radar"),
|
|
12002
12002
|
treemap: /* @__PURE__ */ R(async () => {
|
|
12003
12003
|
const { createTreemapServices: n } = await Promise.resolve().then(() => jm), e = n().Treemap.parser.LangiumParser;
|
|
12004
|
-
|
|
12004
|
+
He.treemap = e;
|
|
12005
12005
|
}, "treemap")
|
|
12006
12006
|
};
|
|
12007
12007
|
async function Fm(n, e) {
|
|
12008
12008
|
const t = Dm[n];
|
|
12009
12009
|
if (!t)
|
|
12010
12010
|
throw new Error(`Unknown diagram type: ${n}`);
|
|
12011
|
-
|
|
12012
|
-
const s =
|
|
12011
|
+
He[n] || await t();
|
|
12012
|
+
const s = He[n].parse(e);
|
|
12013
12013
|
if (s.lexerErrors.length > 0 || s.parserErrors.length > 0)
|
|
12014
12014
|
throw new Gm(s);
|
|
12015
12015
|
return s.value;
|
|
@@ -12039,11 +12039,11 @@ const Um = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12039
12039
|
__proto__: null,
|
|
12040
12040
|
ArchitectureModule: Pl,
|
|
12041
12041
|
createArchitectureServices: bl
|
|
12042
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12042
|
+
}, Symbol.toStringTag, { value: "Module" })), Hm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12043
12043
|
__proto__: null,
|
|
12044
12044
|
GitGraphModule: Cl,
|
|
12045
12045
|
createGitGraphServices: xl
|
|
12046
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12046
|
+
}, Symbol.toStringTag, { value: "Module" })), Wm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12047
12047
|
__proto__: null,
|
|
12048
12048
|
RadarModule: Ml,
|
|
12049
12049
|
createRadarServices: Dl
|