@marimo-team/frontend 0.24.1-dev2 → 0.24.1-dev20
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/assets/{CellStatus-DqJypoFY.js → CellStatus-B_dBNTJO.js} +1 -1
- package/dist/assets/{JsonOutput-DnrBQBRT.js → JsonOutput-C5g_bqiZ.js} +1 -1
- package/dist/assets/{MarimoErrorOutput-BVdFtnJz.js → MarimoErrorOutput-Cb0evuEp.js} +1 -1
- package/dist/assets/{RenderHTML-X9kskQZ0.js → RenderHTML-BoN8Qu7U.js} +1 -1
- package/dist/assets/{RunButton-D83R2wvd.js → RunButton-C3V3v58F.js} +1 -1
- package/dist/assets/{add-cell-with-ai-HD16K3PB.js → add-cell-with-ai-C5JH9LS2.js} +1 -1
- package/dist/assets/{add-connection-dialog-V86wrXca.js → add-connection-dialog-DHyonb9T.js} +1 -1
- package/dist/assets/{agent-panel-XdLSrKjl.js → agent-panel-D7DLUBam.js} +1 -1
- package/dist/assets/{ai-model-dropdown-BJp70TST.js → ai-model-dropdown-DWDm50eM.js} +4 -4
- package/dist/assets/app-config-button-DhZke6rt.js +1 -0
- package/dist/assets/{blob-BKW9TqBu.js → blob-XD7AvCQ1.js} +1 -1
- package/dist/assets/{cell-editor-DQSrfeL3.js → cell-editor-DZg8uKWr.js} +14 -14
- package/dist/assets/{cell-link-D26WjdN1.js → cell-link-WDIIwzUn.js} +1 -1
- package/dist/assets/{cells-DTFqEQb0.js → cells-BvgwUKB9.js} +1 -1
- package/dist/assets/{chat-display-CclXFQQP.js → chat-display-CR9X_gwB.js} +1 -1
- package/dist/assets/{chat-panel-ft0VIKS8.js → chat-panel-DnGBFlLk.js} +1 -1
- package/dist/assets/{chat-ui-DUYenr6D.js → chat-ui-BVFULpKr.js} +1 -1
- package/dist/assets/{column-preview-BLap3eAk.js → column-preview-DMqGohE5.js} +1 -1
- package/dist/assets/{command-palette-C7nz0zHt.js → command-palette-fK5U3VCd.js} +1 -1
- package/dist/assets/{common-DKQZgzC9.js → common-Dx_4ekWj.js} +1 -1
- package/dist/assets/{components-Bf_hykBb.js → components-DVs9Yu7X.js} +1 -1
- package/dist/assets/config-DFK5eCC3.js +1 -0
- package/dist/assets/{datasource-DZgUyqAK.js → datasource-Le540Ng6.js} +1 -1
- package/dist/assets/{dependency-graph-panel-CH6kIoat.js → dependency-graph-panel-BsdBM_AS.js} +1 -1
- package/dist/assets/{documentation-panel-BQYA8gCW.js → documentation-panel-RJNMjUK6.js} +1 -1
- package/dist/assets/{download-_oAlkvj6.js → download-B8NwKEtr.js} +1 -1
- package/dist/assets/{edit-page-DnXTBsfC.js → edit-page-DUnHDaYA.js} +6 -6
- package/dist/assets/{error-entries-uxjSsTal.js → error-entries-yYB8PZoo.js} +1 -1
- package/dist/assets/{error-panel-Bq0TKquh.js → error-panel-Dr928gBs.js} +1 -1
- package/dist/assets/{file-explorer-panel-uhg7VNMd.js → file-explorer-panel-Brf39GIG.js} +1 -1
- package/dist/assets/{file-icons-V3puz20c.js → file-icons-D39zbjsS.js} +1 -1
- package/dist/assets/{file-name-input-DWf6YZwM.js → file-name-input-BLH5fTEA.js} +1 -1
- package/dist/assets/{floating-outline-Vqr5D17R.js → floating-outline-UPrDtFZF.js} +1 -1
- package/dist/assets/{focus-BTlyH5K_.js → focus-BArgHYf8.js} +1 -1
- package/dist/assets/{form-CRSnWxLR.js → form-BN1AKD58.js} +1 -1
- package/dist/assets/{form-Bb1JVuzT.js → form-BvzcNsxB.js} +1 -1
- package/dist/assets/{home-page-RduyhdYP.js → home-page-Dwl_Carc.js} +1 -1
- package/dist/assets/{html-to-image-BsXiWo0v.js → html-to-image-DKEUbBwc.js} +1 -1
- package/dist/assets/index-Dqr3-dR1.js +38 -0
- package/dist/assets/{index-WoaGtlKd.css → index-n_AVX7aW.css} +1 -1
- package/dist/assets/{kiosk-mode-BH15-Gn-.js → kiosk-mode-B8UhlOLw.js} +1 -1
- package/dist/assets/{layout-1X5SpE18.js → layout-YbL5eg7A.js} +3 -3
- package/dist/assets/{logs-panel-CVxksxou.js → logs-panel-DItocggZ.js} +1 -1
- package/dist/assets/{markdown-renderer-BjuEVUOa.js → markdown-renderer-D7RLn6TA.js} +1 -1
- package/dist/assets/{name-cell-input-CtYGGTR5.js → name-cell-input-jausH-CL.js} +1 -1
- package/dist/assets/{outline-panel-BhxoKAbS.js → outline-panel-C_pASL6b.js} +1 -1
- package/dist/assets/{packages-panel-BWP3YWNW.js → packages-panel-ItQn6qH4.js} +1 -1
- package/dist/assets/{pair-with-agent-modal-BCMZbqSR.js → pair-with-agent-modal-DiDLAjxV.js} +1 -1
- package/dist/assets/{panel-accordion-state-0CKLFeAf.js → panel-accordion-state-DaMmC7UV.js} +1 -1
- package/dist/assets/{panels-D40pa9F1.js → panels-Bhzy-m2X.js} +1 -1
- package/dist/assets/{process-output-WaMx3G7b.js → process-output-ClE9lj2U.js} +1 -1
- package/dist/assets/{radio-group-5KDs5aO1.js → radio-group-CSwRGU0A.js} +1 -1
- package/dist/assets/{readonly-code-display-DnHcjfFl.js → readonly-code-display-kRUXu5aJ.js} +1 -1
- package/dist/assets/{readonly-python-code-BV8otm7e.js → readonly-python-code-BCOkadQf.js} +1 -1
- package/dist/assets/{reveal-component-yVci-fc9.js → reveal-component-CnIgubBp.js} +1 -1
- package/dist/assets/{run-page-aQycuCjn.js → run-page-Du8ylzny.js} +1 -1
- package/dist/assets/{scratchpad-panel-lsqN24Au.js → scratchpad-panel-BEn7TrAb.js} +1 -1
- package/dist/assets/{session-panel-C4JUkPt7.js → session-panel-CidCOM4_.js} +1 -1
- package/dist/assets/{skeleton-DOZFvsSE.js → skeleton-CL2xKYhl.js} +1 -1
- package/dist/assets/{snippets-panel-QNY_Dl2J.js → snippets-panel-V4x4wLMQ.js} +1 -1
- package/dist/assets/state-C7arWhwL.js +3 -0
- package/dist/assets/{state-ByxLiTvP.js → state-m2zUPztG.js} +1 -1
- package/dist/assets/{switch-CDT2KH2g.js → switch-ulnbZFaI.js} +1 -1
- package/dist/assets/{terminal-UyHT9ie2.js → terminal-Bo6pnmSU.js} +1 -1
- package/dist/assets/{tracing-BiBPyXVg.js → tracing-Cmwuiwj9.js} +1 -1
- package/dist/assets/{tracing-panel-D8LtcU_g.js → tracing-panel-CCXeYfOu.js} +2 -2
- package/dist/assets/{tree-actions-DUAdNn1i.js → tree-actions-QMLf8Qhz.js} +1 -1
- package/dist/assets/{useBoolean-CgN_4RAl.js → useBoolean-C_UV6tQ7.js} +1 -1
- package/dist/assets/{useCellActionButton-Bp2eEIzO.js → useCellActionButton-D8qyXNKv.js} +1 -1
- package/dist/assets/{useDeleteCell-DO-9USfB.js → useDeleteCell-Ctnxl8AT.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-Bi8pUBnn.js → useDependencyPanelTab-CYSEZi6j.js} +1 -1
- package/dist/assets/useNotebookActions-CblNR75b.js +12 -0
- package/dist/assets/{useRunCells-BpZ_0Xuz.js → useRunCells-DjQN3XYP.js} +1 -1
- package/dist/assets/{useSplitCell-C2fjcfID.js → useSplitCell-BG8Zd4lw.js} +1 -1
- package/dist/assets/{vega-component-3G_aA1Wa.js → vega-component-1VoQOWvU.js} +1 -1
- package/dist/index.html +27 -27
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +4 -0
- package/src/components/app-config/optional-features.test.ts +78 -0
- package/src/components/app-config/optional-features.tsx +33 -6
- package/src/components/editor/actions/export-dialog/__tests__/export-dialog.test.tsx +206 -34
- package/src/components/editor/actions/export-dialog/export-dialog.tsx +9 -3
- package/src/components/editor/actions/export-dialog/format-notice.tsx +69 -24
- package/src/components/editor/actions/export-dialog/use-export-dialog.ts +27 -2
- package/src/components/ui/toaster.tsx +14 -1
- package/src/core/codemirror/code-lens/__tests__/popover.test.ts +13 -0
- package/src/core/codemirror/code-lens/popover.tsx +11 -5
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/mode.ts +6 -1
- package/src/core/network/__tests__/requests-lazy.test.ts +40 -0
- package/src/core/network/__tests__/requests-network.test.ts +13 -0
- package/src/core/network/requests-lazy.ts +11 -4
- package/src/core/network/requests-network.ts +8 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +5 -0
- package/src/core/wasm/bridge.ts +1 -0
- package/src/plugins/impl/MatrixPlugin.tsx +256 -35
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +540 -3
- package/dist/assets/app-config-button-C2zJXSrK.js +0 -1
- package/dist/assets/config-EoJoeZuK.js +0 -1
- package/dist/assets/index-C5WESBbZ.js +0 -38
- package/dist/assets/state-Ci7n55A9.js +0 -3
- package/dist/assets/useNotebookActions-Bm9VzJ_M.js +0 -12
package/dist/index.html
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
|
|
67
67
|
<!-- /TODO -->
|
|
68
68
|
<title>{{ title }}</title>
|
|
69
|
-
<script type="module" crossorigin src="./assets/index-
|
|
69
|
+
<script type="module" crossorigin src="./assets/index-Dqr3-dR1.js"></script>
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-BPPi7vOr.js">
|
|
71
71
|
<link rel="modulepreload" crossorigin href="./assets/objects-CrbstYTV.js">
|
|
72
72
|
<link rel="modulepreload" crossorigin href="./assets/chunk-C4rtOYze.js">
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<link rel="modulepreload" crossorigin href="./assets/constants-DifUxsbZ.js">
|
|
105
105
|
<link rel="modulepreload" crossorigin href="./assets/session-D-SddyN0.js">
|
|
106
106
|
<link rel="modulepreload" crossorigin href="./assets/Deferred-CP7vq682.js">
|
|
107
|
-
<link rel="modulepreload" crossorigin href="./assets/config-
|
|
107
|
+
<link rel="modulepreload" crossorigin href="./assets/config-DFK5eCC3.js">
|
|
108
108
|
<link rel="modulepreload" crossorigin href="./assets/uuid-e9lSomwA.js">
|
|
109
109
|
<link rel="modulepreload" crossorigin href="./assets/DeferredRequestRegistry-6TRSC3VZ.js">
|
|
110
110
|
<link rel="modulepreload" crossorigin href="./assets/requests-B9zEd_sW.js">
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
<link rel="modulepreload" crossorigin href="./assets/now-CsYTPAhW.js">
|
|
135
135
|
<link rel="modulepreload" crossorigin href="./assets/debounce-DhnxH9Rh.js">
|
|
136
136
|
<link rel="modulepreload" crossorigin href="./assets/database-zap-n8PGHE18.js">
|
|
137
|
-
<link rel="modulepreload" crossorigin href="./assets/cells-
|
|
137
|
+
<link rel="modulepreload" crossorigin href="./assets/cells-BvgwUKB9.js">
|
|
138
138
|
<link rel="modulepreload" crossorigin href="./assets/kbd-PEowR7op.js">
|
|
139
139
|
<link rel="modulepreload" crossorigin href="./assets/useInstallPackage-D58nBaNf.js">
|
|
140
140
|
<link rel="modulepreload" crossorigin href="./assets/alert-dialog-D_kB5FIu.js">
|
|
@@ -147,40 +147,40 @@
|
|
|
147
147
|
<link rel="modulepreload" crossorigin href="./assets/usePress-Bl6X9B5M.js">
|
|
148
148
|
<link rel="modulepreload" crossorigin href="./assets/input-BN98e517.js">
|
|
149
149
|
<link rel="modulepreload" crossorigin href="./assets/ImperativeModal-Dxj31V4A.js">
|
|
150
|
-
<link rel="modulepreload" crossorigin href="./assets/cell-link-
|
|
150
|
+
<link rel="modulepreload" crossorigin href="./assets/cell-link-WDIIwzUn.js">
|
|
151
151
|
<link rel="modulepreload" crossorigin href="./assets/config-DjP9S1hr.js">
|
|
152
152
|
<link rel="modulepreload" crossorigin href="./assets/alert-CHWQT4zh.js">
|
|
153
153
|
<link rel="modulepreload" crossorigin href="./assets/chevron-right-C9ZBG6Lx.js">
|
|
154
154
|
<link rel="modulepreload" crossorigin href="./assets/dropdown-menu-DWGvf_Bw.js">
|
|
155
155
|
<link rel="modulepreload" crossorigin href="./assets/links-BeU4kHTI.js">
|
|
156
|
-
<link rel="modulepreload" crossorigin href="./assets/useRunCells-
|
|
156
|
+
<link rel="modulepreload" crossorigin href="./assets/useRunCells-DjQN3XYP.js">
|
|
157
157
|
<link rel="modulepreload" crossorigin href="./assets/copy-HCSOwOwk.js">
|
|
158
158
|
<link rel="modulepreload" crossorigin href="./assets/copy-DlR5UiIE.js">
|
|
159
159
|
<link rel="modulepreload" crossorigin href="./assets/copy-icon-Cn8LzPNx.js">
|
|
160
|
-
<link rel="modulepreload" crossorigin href="./assets/RenderHTML-
|
|
161
|
-
<link rel="modulepreload" crossorigin href="./assets/datasource-
|
|
162
|
-
<link rel="modulepreload" crossorigin href="./assets/state-
|
|
160
|
+
<link rel="modulepreload" crossorigin href="./assets/RenderHTML-BoN8Qu7U.js">
|
|
161
|
+
<link rel="modulepreload" crossorigin href="./assets/datasource-Le540Ng6.js">
|
|
162
|
+
<link rel="modulepreload" crossorigin href="./assets/state-m2zUPztG.js">
|
|
163
163
|
<link rel="modulepreload" crossorigin href="./assets/hat-glasses-xLTnAC_n.js">
|
|
164
164
|
<link rel="modulepreload" crossorigin href="./assets/package-ROei-DG7.js">
|
|
165
165
|
<link rel="modulepreload" crossorigin href="./assets/sparkles-DwqcWrJl.js">
|
|
166
|
-
<link rel="modulepreload" crossorigin href="./assets/MarimoErrorOutput-
|
|
166
|
+
<link rel="modulepreload" crossorigin href="./assets/MarimoErrorOutput-Cb0evuEp.js">
|
|
167
167
|
<link rel="modulepreload" crossorigin href="./assets/ErrorBoundary-B392qglD.js">
|
|
168
168
|
<link rel="modulepreload" crossorigin href="./assets/eye-off-DfXRjba3.js">
|
|
169
169
|
<link rel="modulepreload" crossorigin href="./assets/refresh-cw-DPUCy0Ep.js">
|
|
170
|
-
<link rel="modulepreload" crossorigin href="./assets/tree-actions-
|
|
170
|
+
<link rel="modulepreload" crossorigin href="./assets/tree-actions-QMLf8Qhz.js">
|
|
171
171
|
<link rel="modulepreload" crossorigin href="./assets/spinner-Cj3eM5bt.js">
|
|
172
|
-
<link rel="modulepreload" crossorigin href="./assets/html-to-image-
|
|
173
|
-
<link rel="modulepreload" crossorigin href="./assets/focus-
|
|
172
|
+
<link rel="modulepreload" crossorigin href="./assets/html-to-image-DKEUbBwc.js">
|
|
173
|
+
<link rel="modulepreload" crossorigin href="./assets/focus-BArgHYf8.js">
|
|
174
174
|
<link rel="modulepreload" crossorigin href="./assets/useAsyncData-BcvSvTUt.js">
|
|
175
175
|
<link rel="modulepreload" crossorigin href="./assets/LazyAnyLanguageCodeMirror-DUvRReKp.js">
|
|
176
176
|
<link rel="modulepreload" crossorigin href="./assets/micromark-factory-space-D4wN6pqE.js">
|
|
177
177
|
<link rel="modulepreload" crossorigin href="./assets/chunk-5FQGJX7Z-B4N_BMo6.js">
|
|
178
|
-
<link rel="modulepreload" crossorigin href="./assets/markdown-renderer-
|
|
178
|
+
<link rel="modulepreload" crossorigin href="./assets/markdown-renderer-D7RLn6TA.js">
|
|
179
179
|
<link rel="modulepreload" crossorigin href="./assets/command-D5LtSvbN.js">
|
|
180
180
|
<link rel="modulepreload" crossorigin href="./assets/field-BPfggvql.js">
|
|
181
181
|
<link rel="modulepreload" crossorigin href="./assets/popover-B96fOqfH.js">
|
|
182
182
|
<link rel="modulepreload" crossorigin href="./assets/errors-D93OkQw8.js">
|
|
183
|
-
<link rel="modulepreload" crossorigin href="./assets/download-
|
|
183
|
+
<link rel="modulepreload" crossorigin href="./assets/download-B8NwKEtr.js">
|
|
184
184
|
<link rel="modulepreload" crossorigin href="./assets/table-xPvP31p3.js">
|
|
185
185
|
<link rel="modulepreload" crossorigin href="./assets/useIframeCapabilities-DBacdN1t.js">
|
|
186
186
|
<link rel="modulepreload" crossorigin href="./assets/error-banner-d0-XOKtd.js">
|
|
@@ -201,35 +201,35 @@
|
|
|
201
201
|
<link rel="modulepreload" crossorigin href="./assets/plus-r1QITpsJ.js">
|
|
202
202
|
<link rel="modulepreload" crossorigin href="./assets/trash-2-BLxp8uxj.js">
|
|
203
203
|
<link rel="modulepreload" crossorigin href="./assets/react-resizable-panels.browser.esm-CLaR27oP.js">
|
|
204
|
-
<link rel="modulepreload" crossorigin href="./assets/JsonOutput-
|
|
204
|
+
<link rel="modulepreload" crossorigin href="./assets/JsonOutput-C5g_bqiZ.js">
|
|
205
205
|
<link rel="modulepreload" crossorigin href="./assets/chart-no-axes-column-eb23KpAk.js">
|
|
206
206
|
<link rel="modulepreload" crossorigin href="./assets/square-function-ypIvDL4C.js">
|
|
207
207
|
<link rel="modulepreload" crossorigin href="./assets/spec-NeCHOv2Z.js">
|
|
208
|
-
<link rel="modulepreload" crossorigin href="./assets/column-preview-
|
|
208
|
+
<link rel="modulepreload" crossorigin href="./assets/column-preview-DMqGohE5.js">
|
|
209
209
|
<link rel="modulepreload" crossorigin href="./assets/icons-BwSNDWAP.js">
|
|
210
|
-
<link rel="modulepreload" crossorigin href="./assets/radio-group-
|
|
211
|
-
<link rel="modulepreload" crossorigin href="./assets/floating-outline-
|
|
212
|
-
<link rel="modulepreload" crossorigin href="./assets/switch-
|
|
210
|
+
<link rel="modulepreload" crossorigin href="./assets/radio-group-CSwRGU0A.js">
|
|
211
|
+
<link rel="modulepreload" crossorigin href="./assets/floating-outline-UPrDtFZF.js">
|
|
212
|
+
<link rel="modulepreload" crossorigin href="./assets/switch-ulnbZFaI.js">
|
|
213
213
|
<link rel="modulepreload" crossorigin href="./assets/objectWithoutPropertiesLoose-DfWeGRFv.js">
|
|
214
214
|
<link rel="modulepreload" crossorigin href="./assets/esm-RBKN8Dn2.js">
|
|
215
|
-
<link rel="modulepreload" crossorigin href="./assets/readonly-python-code-
|
|
215
|
+
<link rel="modulepreload" crossorigin href="./assets/readonly-python-code-BCOkadQf.js">
|
|
216
216
|
<link rel="modulepreload" crossorigin href="./assets/file-headphone-BjKz3ZV1.js">
|
|
217
217
|
<link rel="modulepreload" crossorigin href="./assets/file-BjlLTeSV.js">
|
|
218
218
|
<link rel="modulepreload" crossorigin href="./assets/image-Dvcyi0uu.js">
|
|
219
|
-
<link rel="modulepreload" crossorigin href="./assets/file-icons-
|
|
219
|
+
<link rel="modulepreload" crossorigin href="./assets/file-icons-D39zbjsS.js">
|
|
220
220
|
<link rel="modulepreload" crossorigin href="./assets/events-CPoJAfgx.js">
|
|
221
221
|
<link rel="modulepreload" crossorigin href="./assets/share-c5Zh8BM8.js">
|
|
222
|
-
<link rel="modulepreload" crossorigin href="./assets/blob-
|
|
222
|
+
<link rel="modulepreload" crossorigin href="./assets/blob-XD7AvCQ1.js">
|
|
223
223
|
<link rel="modulepreload" crossorigin href="./assets/get-DuxuLRGI.js">
|
|
224
224
|
<link rel="modulepreload" crossorigin href="./assets/_baseSet-DehVzRp6.js">
|
|
225
|
-
<link rel="modulepreload" crossorigin href="./assets/state-
|
|
225
|
+
<link rel="modulepreload" crossorigin href="./assets/state-C7arWhwL.js">
|
|
226
226
|
<link rel="modulepreload" crossorigin href="./assets/label-BOFHwHn7.js">
|
|
227
|
-
<link rel="modulepreload" crossorigin href="./assets/form-
|
|
227
|
+
<link rel="modulepreload" crossorigin href="./assets/form-BvzcNsxB.js">
|
|
228
228
|
<link rel="modulepreload" crossorigin href="./assets/textarea-Bn1AMfsk.js">
|
|
229
229
|
<link rel="modulepreload" crossorigin href="./assets/refresh-ccw-neWzNbg7.js">
|
|
230
|
-
<link rel="modulepreload" crossorigin href="./assets/form-
|
|
230
|
+
<link rel="modulepreload" crossorigin href="./assets/form-BN1AKD58.js">
|
|
231
231
|
<link rel="modulepreload" crossorigin href="./assets/renderShortcut-C6HKXhBl.js">
|
|
232
|
-
<link rel="modulepreload" crossorigin href="./assets/useBoolean-
|
|
232
|
+
<link rel="modulepreload" crossorigin href="./assets/useBoolean-C_UV6tQ7.js">
|
|
233
233
|
<link rel="modulepreload" crossorigin href="./assets/markdown-export-D-ZHIs71.js">
|
|
234
234
|
<link rel="modulepreload" crossorigin href="./assets/useDeepCompareMemoize-CbFVGT0j.js">
|
|
235
235
|
<link rel="modulepreload" crossorigin href="./assets/types-D0D7HkQV.js">
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
<link rel="stylesheet" crossorigin href="./assets/cells-BE1kpmPF.css">
|
|
250
250
|
<link rel="stylesheet" crossorigin href="./assets/markdown-renderer-DdDKmWlR.css">
|
|
251
251
|
<link rel="stylesheet" crossorigin href="./assets/JsonOutput-BQtz7-np.css">
|
|
252
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
252
|
+
<link rel="stylesheet" crossorigin href="./assets/index-n_AVX7aW.css">
|
|
253
253
|
</head>
|
|
254
254
|
<body>
|
|
255
255
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -100,6 +100,10 @@ export const MockRequestClient = {
|
|
|
100
100
|
},
|
|
101
101
|
],
|
|
102
102
|
}),
|
|
103
|
+
installExportRequirements: vi.fn().mockResolvedValue({
|
|
104
|
+
source: "server",
|
|
105
|
+
formats: [],
|
|
106
|
+
}),
|
|
103
107
|
exportAsHTML: vi.fn().mockResolvedValue({
|
|
104
108
|
contents: "",
|
|
105
109
|
filename: "notebook.html",
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import { describe, expect, it } from "vitest";
|
|
4
|
+
import { isPackageRequirementInstalled } from "./optional-features";
|
|
5
|
+
|
|
6
|
+
describe("isPackageRequirementInstalled", () => {
|
|
7
|
+
const installedPackages = [
|
|
8
|
+
{ name: "mcp", version: "2.0.0" },
|
|
9
|
+
{ name: "polars", version: "1.8.2" },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
it("requires the package to be installed", () => {
|
|
13
|
+
expect(
|
|
14
|
+
isPackageRequirementInstalled({ name: "missing" }, installedPackages),
|
|
15
|
+
).toBe(false);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it("accepts an installed package without a minimum version", () => {
|
|
19
|
+
expect(
|
|
20
|
+
isPackageRequirementInstalled({ name: "polars" }, installedPackages),
|
|
21
|
+
).toBe(true);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it("rejects an installed package below the minimum version", () => {
|
|
25
|
+
expect(
|
|
26
|
+
isPackageRequirementInstalled(
|
|
27
|
+
{ name: "mcp", minVersion: "2.1.0" },
|
|
28
|
+
installedPackages,
|
|
29
|
+
),
|
|
30
|
+
).toBe(false);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it.each(["2.0.0rc1", "2.0.0.dev1", "2.0.0-beta1"])(
|
|
34
|
+
"rejects the prerelease version %s",
|
|
35
|
+
(version) => {
|
|
36
|
+
expect(
|
|
37
|
+
isPackageRequirementInstalled({ name: "mcp", minVersion: "2.0.0" }, [
|
|
38
|
+
{ name: "mcp", version },
|
|
39
|
+
]),
|
|
40
|
+
).toBe(false);
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
it.each(["2.1.0rc1", "3.0.0rc1"])(
|
|
45
|
+
"accepts the later prerelease version %s",
|
|
46
|
+
(version) => {
|
|
47
|
+
expect(
|
|
48
|
+
isPackageRequirementInstalled({ name: "mcp", minVersion: "2.0.0" }, [
|
|
49
|
+
{ name: "mcp", version },
|
|
50
|
+
]),
|
|
51
|
+
).toBe(true);
|
|
52
|
+
},
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
it("accepts an installed package at or above the minimum version", () => {
|
|
56
|
+
expect(
|
|
57
|
+
isPackageRequirementInstalled(
|
|
58
|
+
{ name: "mcp", minVersion: "2.0.0" },
|
|
59
|
+
installedPackages,
|
|
60
|
+
),
|
|
61
|
+
).toBe(true);
|
|
62
|
+
expect(
|
|
63
|
+
isPackageRequirementInstalled(
|
|
64
|
+
{ name: "mcp", minVersion: "1.9.0" },
|
|
65
|
+
installedPackages,
|
|
66
|
+
),
|
|
67
|
+
).toBe(true);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("normalizes extras in the requirement name", () => {
|
|
71
|
+
expect(
|
|
72
|
+
isPackageRequirementInstalled(
|
|
73
|
+
{ name: "polars[pyarrow]" },
|
|
74
|
+
installedPackages,
|
|
75
|
+
),
|
|
76
|
+
).toBe(true);
|
|
77
|
+
});
|
|
78
|
+
});
|
|
@@ -20,6 +20,7 @@ import { isWasm } from "@/core/wasm/utils";
|
|
|
20
20
|
import { useAsyncData } from "@/hooks/useAsyncData";
|
|
21
21
|
import { ErrorBanner } from "@/plugins/impl/common/error-banner";
|
|
22
22
|
import { cn } from "@/utils/cn";
|
|
23
|
+
import { semverSort } from "@/utils/versions";
|
|
23
24
|
import { SettingSubtitle } from "./common";
|
|
24
25
|
|
|
25
26
|
interface Package {
|
|
@@ -27,6 +28,35 @@ interface Package {
|
|
|
27
28
|
minVersion?: string;
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
interface InstalledPackage {
|
|
32
|
+
name: string;
|
|
33
|
+
version: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const PEP_440_PRERELEASE =
|
|
37
|
+
/^((?:\d+!)?\d+(?:\.\d+)*)(?:[-_.]?(?:a|b|c|rc|alpha|beta|pre|preview|dev)\d*)/i;
|
|
38
|
+
|
|
39
|
+
export function isPackageRequirementInstalled(
|
|
40
|
+
requirement: Package,
|
|
41
|
+
installedPackages: InstalledPackage[],
|
|
42
|
+
): boolean {
|
|
43
|
+
const packageName = requirement.name.split("[")[0];
|
|
44
|
+
const installedPackage = installedPackages.find(
|
|
45
|
+
(pkg) => pkg.name === packageName,
|
|
46
|
+
);
|
|
47
|
+
if (!installedPackage) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
if (!requirement.minVersion) {
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
const prerelease = installedPackage.version.match(PEP_440_PRERELEASE);
|
|
54
|
+
if (prerelease) {
|
|
55
|
+
return semverSort(prerelease[1], requirement.minVersion) > 0;
|
|
56
|
+
}
|
|
57
|
+
return semverSort(installedPackage.version, requirement.minVersion) >= 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
30
60
|
interface OptionalFeature {
|
|
31
61
|
id: string;
|
|
32
62
|
/**
|
|
@@ -77,8 +107,8 @@ const OPTIONAL_DEPENDENCIES: OptionalFeature[] = [
|
|
|
77
107
|
},
|
|
78
108
|
{
|
|
79
109
|
id: "mcp",
|
|
80
|
-
packagesRequired: [{ name: "mcp", minVersion: "
|
|
81
|
-
additionalPackageInstalls: [
|
|
110
|
+
packagesRequired: [{ name: "mcp", minVersion: "2.0.0" }],
|
|
111
|
+
additionalPackageInstalls: [],
|
|
82
112
|
description: "Connect to MCP servers",
|
|
83
113
|
},
|
|
84
114
|
{
|
|
@@ -123,9 +153,6 @@ export const OptionalFeatures: React.FC = () => {
|
|
|
123
153
|
}
|
|
124
154
|
|
|
125
155
|
const installedPackages = data?.packages || [];
|
|
126
|
-
const installedPackageNames = new Set(
|
|
127
|
-
installedPackages.map((pkg) => pkg.name),
|
|
128
|
-
);
|
|
129
156
|
|
|
130
157
|
return (
|
|
131
158
|
<div className="flex-1 flex flex-col overflow-hidden gap-2">
|
|
@@ -149,7 +176,7 @@ export const OptionalFeatures: React.FC = () => {
|
|
|
149
176
|
<TableBody>
|
|
150
177
|
{OPTIONAL_DEPENDENCIES.map((dep) => {
|
|
151
178
|
const isInstalled = dep.packagesRequired.every((pkg) =>
|
|
152
|
-
|
|
179
|
+
isPackageRequirementInstalled(pkg, installedPackages),
|
|
153
180
|
);
|
|
154
181
|
const packageSpec = dep.packagesRequired
|
|
155
182
|
.map((pkg) => pkg.name)
|
|
@@ -13,12 +13,16 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
|
13
13
|
import { MockRequestClient } from "@/__mocks__/requests";
|
|
14
14
|
import { Dialog } from "@/components/ui/dialog";
|
|
15
15
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
16
|
-
import { viewStateAtom } from "@/core/mode";
|
|
16
|
+
import { kioskModeAtom, viewStateAtom } from "@/core/mode";
|
|
17
17
|
import { requestClientAtom } from "@/core/network/requests";
|
|
18
|
+
import { createErrorToastingRequests } from "@/core/network/requests-toasting";
|
|
19
|
+
import type { ExportAvailabilityResponse } from "@/core/network/types";
|
|
18
20
|
import { filenameAtom } from "@/core/saving/file-state";
|
|
19
21
|
import { store } from "@/core/state/jotai";
|
|
20
22
|
import { isWasm } from "@/core/wasm/utils";
|
|
21
23
|
import * as copyModule from "@/utils/copy";
|
|
24
|
+
import { Deferred } from "@/utils/Deferred";
|
|
25
|
+
import { HTTPError } from "@/utils/errors";
|
|
22
26
|
import { ExportDialog } from "../export-dialog";
|
|
23
27
|
import {
|
|
24
28
|
DEFAULT_EXPORT_OPTIONS,
|
|
@@ -27,14 +31,22 @@ import {
|
|
|
27
31
|
lastExportFormatAtom,
|
|
28
32
|
} from "../state";
|
|
29
33
|
|
|
30
|
-
const { exportNotebookMock } = vi.hoisted(() => ({
|
|
34
|
+
const { exportNotebookMock, toastMock } = vi.hoisted(() => ({
|
|
31
35
|
exportNotebookMock: vi.fn().mockResolvedValue(undefined),
|
|
36
|
+
toastMock: vi.fn(() => ({
|
|
37
|
+
dismiss: vi.fn(),
|
|
38
|
+
update: vi.fn(),
|
|
39
|
+
})),
|
|
32
40
|
}));
|
|
33
41
|
|
|
34
42
|
vi.mock("@/utils/copy", () => ({
|
|
35
43
|
copyToClipboard: vi.fn().mockResolvedValue(undefined),
|
|
36
44
|
}));
|
|
37
45
|
|
|
46
|
+
vi.mock("@/components/ui/use-toast", () => ({
|
|
47
|
+
toast: toastMock,
|
|
48
|
+
}));
|
|
49
|
+
|
|
38
50
|
vi.mock("@/core/wasm/utils", async (importOriginal) => {
|
|
39
51
|
const actual = await importOriginal<typeof import("@/core/wasm/utils")>();
|
|
40
52
|
return { ...actual, isWasm: vi.fn(() => false) };
|
|
@@ -67,6 +79,32 @@ async function waitForExportEnabled() {
|
|
|
67
79
|
);
|
|
68
80
|
}
|
|
69
81
|
|
|
82
|
+
type FormatAvailability = ExportAvailabilityResponse["formats"][number];
|
|
83
|
+
|
|
84
|
+
function formatAvailability(
|
|
85
|
+
format: FormatAvailability["format"],
|
|
86
|
+
overrides: Partial<Omit<FormatAvailability, "format">> = {},
|
|
87
|
+
): FormatAvailability {
|
|
88
|
+
return {
|
|
89
|
+
format,
|
|
90
|
+
dependenciesAvailable: true,
|
|
91
|
+
missingPackages: [],
|
|
92
|
+
missingSetup: [],
|
|
93
|
+
...overrides,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function serverAvailability(
|
|
98
|
+
...formats: FormatAvailability[]
|
|
99
|
+
): ExportAvailabilityResponse {
|
|
100
|
+
return { source: "server", formats };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const PLAYWRIGHT_SETUP = {
|
|
104
|
+
name: "playwright-chromium",
|
|
105
|
+
command: "uv run playwright install chromium",
|
|
106
|
+
} as const;
|
|
107
|
+
|
|
70
108
|
describe("ExportDialog", () => {
|
|
71
109
|
beforeEach(() => {
|
|
72
110
|
vi.clearAllMocks();
|
|
@@ -74,8 +112,10 @@ describe("ExportDialog", () => {
|
|
|
74
112
|
store.set(requestClientAtom, MockRequestClient.create());
|
|
75
113
|
store.set(filenameAtom, "/project/notebook.py");
|
|
76
114
|
store.set(viewStateAtom, { mode: "edit", cellAnchor: null });
|
|
115
|
+
store.set(kioskModeAtom, false);
|
|
77
116
|
store.set(exportOptionsAtom, DEFAULT_EXPORT_OPTIONS);
|
|
78
117
|
store.set(lastExportFormatAtom, "html");
|
|
118
|
+
window.history.replaceState(null, "", "/");
|
|
79
119
|
vi.mocked(isWasm).mockReturnValue(false);
|
|
80
120
|
vi.stubGlobal("matchMedia", () => ({
|
|
81
121
|
matches: false,
|
|
@@ -248,54 +288,80 @@ describe("ExportDialog", () => {
|
|
|
248
288
|
expect(tablist).toHaveAttribute("aria-orientation", "vertical");
|
|
249
289
|
});
|
|
250
290
|
|
|
251
|
-
it("
|
|
291
|
+
it("installs missing packages and applies refreshed availability", async () => {
|
|
292
|
+
const install = new Deferred<ExportAvailabilityResponse>();
|
|
293
|
+
const installExportRequirements = vi.fn(() => install.promise);
|
|
294
|
+
const getExportAvailability = vi.fn().mockResolvedValue(
|
|
295
|
+
serverAvailability(
|
|
296
|
+
formatAvailability("ipynb", {
|
|
297
|
+
dependenciesAvailable: false,
|
|
298
|
+
missingPackages: ["nbformat"],
|
|
299
|
+
}),
|
|
300
|
+
formatAvailability("pdf", {
|
|
301
|
+
dependenciesAvailable: false,
|
|
302
|
+
missingPackages: ["nbconvert[webpdf]", "nbformat"],
|
|
303
|
+
}),
|
|
304
|
+
),
|
|
305
|
+
);
|
|
252
306
|
store.set(
|
|
253
307
|
requestClientAtom,
|
|
254
308
|
MockRequestClient.create({
|
|
255
|
-
getExportAvailability
|
|
256
|
-
|
|
257
|
-
formats: [
|
|
258
|
-
{
|
|
259
|
-
format: "pdf",
|
|
260
|
-
dependenciesAvailable: false,
|
|
261
|
-
missingPackages: ["nbconvert[webpdf]"],
|
|
262
|
-
missingSetup: [],
|
|
263
|
-
},
|
|
264
|
-
],
|
|
265
|
-
}),
|
|
309
|
+
getExportAvailability,
|
|
310
|
+
installExportRequirements,
|
|
266
311
|
}),
|
|
267
312
|
);
|
|
268
313
|
|
|
269
314
|
renderDialog("pdf");
|
|
270
315
|
|
|
271
|
-
|
|
272
|
-
expect(
|
|
273
|
-
|
|
274
|
-
)
|
|
316
|
+
const packages = await screen.findByText("nbconvert[webpdf], nbformat");
|
|
317
|
+
expect(packages.parentElement).toHaveTextContent(
|
|
318
|
+
"PDF export requires nbconvert[webpdf], nbformat.",
|
|
319
|
+
);
|
|
275
320
|
expect(screen.getByTestId("export-submit")).toBeDisabled();
|
|
276
321
|
expect(screen.getByTestId("export-format-pdf")).toBeVisible();
|
|
322
|
+
|
|
323
|
+
const installButton = screen.getByRole("button", { name: "Install" });
|
|
324
|
+
const pdfTab = screen.getByTestId("export-format-pdf");
|
|
325
|
+
const htmlTab = screen.getByTestId("export-format-html");
|
|
326
|
+
|
|
327
|
+
fireEvent.click(installButton);
|
|
328
|
+
|
|
329
|
+
await waitFor(() =>
|
|
330
|
+
expect(installExportRequirements).toHaveBeenCalledWith({ format: "pdf" }),
|
|
331
|
+
);
|
|
332
|
+
expect(installButton).toHaveAttribute("aria-busy", "true");
|
|
333
|
+
expect(htmlTab).toBeDisabled();
|
|
334
|
+
|
|
335
|
+
fireEvent.click(installButton);
|
|
336
|
+
fireEvent.click(htmlTab);
|
|
337
|
+
expect(installExportRequirements).toHaveBeenCalledOnce();
|
|
338
|
+
expect(pdfTab).toHaveAttribute("data-state", "active");
|
|
339
|
+
|
|
340
|
+
install.resolve(
|
|
341
|
+
serverAvailability(
|
|
342
|
+
formatAvailability("ipynb"),
|
|
343
|
+
formatAvailability("pdf"),
|
|
344
|
+
),
|
|
345
|
+
);
|
|
346
|
+
await waitForExportEnabled();
|
|
347
|
+
expect(getExportAvailability).toHaveBeenCalledOnce();
|
|
348
|
+
|
|
349
|
+
fireEvent.click(screen.getByTestId("export-format-ipynb"));
|
|
350
|
+
expect(screen.getByTestId("export-submit")).toBeEnabled();
|
|
277
351
|
});
|
|
278
352
|
|
|
279
353
|
it("explains missing Playwright Chromium setup", async () => {
|
|
280
354
|
store.set(
|
|
281
355
|
requestClientAtom,
|
|
282
356
|
MockRequestClient.create({
|
|
283
|
-
getExportAvailability: vi.fn().mockResolvedValue(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
{
|
|
287
|
-
format: "pdf",
|
|
357
|
+
getExportAvailability: vi.fn().mockResolvedValue(
|
|
358
|
+
serverAvailability(
|
|
359
|
+
formatAvailability("pdf", {
|
|
288
360
|
dependenciesAvailable: false,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
command: "uv run playwright install chromium",
|
|
294
|
-
},
|
|
295
|
-
],
|
|
296
|
-
},
|
|
297
|
-
],
|
|
298
|
-
}),
|
|
361
|
+
missingSetup: [PLAYWRIGHT_SETUP],
|
|
362
|
+
}),
|
|
363
|
+
),
|
|
364
|
+
),
|
|
299
365
|
}),
|
|
300
366
|
);
|
|
301
367
|
|
|
@@ -305,9 +371,115 @@ describe("ExportDialog", () => {
|
|
|
305
371
|
await screen.findByText("PDF export requires Playwright Chromium."),
|
|
306
372
|
).toBeVisible();
|
|
307
373
|
expect(
|
|
308
|
-
screen.
|
|
374
|
+
screen.queryByText("uv run playwright install chromium"),
|
|
375
|
+
).not.toBeInTheDocument();
|
|
376
|
+
expect(screen.getByTestId("export-submit")).toBeDisabled();
|
|
377
|
+
expect(screen.getByRole("button", { name: "Install" })).toBeVisible();
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
it.each([
|
|
381
|
+
["read mode", "read", false, false],
|
|
382
|
+
["connected kiosk mode", "edit", true, false],
|
|
383
|
+
["pre-connection kiosk mode", "edit", false, true],
|
|
384
|
+
] as const)(
|
|
385
|
+
"shows the setup command when installation is not allowed in %s",
|
|
386
|
+
async (_label, mode, kioskMode, kioskRequested) => {
|
|
387
|
+
store.set(viewStateAtom, { mode, cellAnchor: null });
|
|
388
|
+
store.set(kioskModeAtom, kioskMode);
|
|
389
|
+
if (kioskRequested) {
|
|
390
|
+
window.history.replaceState(null, "", "/?kiosk=true");
|
|
391
|
+
}
|
|
392
|
+
store.set(
|
|
393
|
+
requestClientAtom,
|
|
394
|
+
MockRequestClient.create({
|
|
395
|
+
getExportAvailability: vi.fn().mockResolvedValue(
|
|
396
|
+
serverAvailability(
|
|
397
|
+
formatAvailability("pdf", {
|
|
398
|
+
dependenciesAvailable: false,
|
|
399
|
+
missingSetup: [PLAYWRIGHT_SETUP],
|
|
400
|
+
}),
|
|
401
|
+
),
|
|
402
|
+
),
|
|
403
|
+
}),
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
renderDialog("pdf");
|
|
407
|
+
|
|
408
|
+
expect(
|
|
409
|
+
await screen.findByText("PDF export requires Playwright Chromium."),
|
|
410
|
+
).toBeVisible();
|
|
411
|
+
expect(
|
|
412
|
+
screen.getByText("uv run playwright install chromium"),
|
|
413
|
+
).toBeVisible();
|
|
414
|
+
expect(
|
|
415
|
+
screen.queryByRole("button", { name: "Install" }),
|
|
416
|
+
).not.toBeInTheDocument();
|
|
417
|
+
},
|
|
418
|
+
);
|
|
419
|
+
|
|
420
|
+
it("allows requirement installation when kiosk is false", async () => {
|
|
421
|
+
window.history.replaceState(null, "", "/?kiosk=false");
|
|
422
|
+
store.set(
|
|
423
|
+
requestClientAtom,
|
|
424
|
+
MockRequestClient.create({
|
|
425
|
+
getExportAvailability: vi.fn().mockResolvedValue(
|
|
426
|
+
serverAvailability(
|
|
427
|
+
formatAvailability("pdf", {
|
|
428
|
+
dependenciesAvailable: false,
|
|
429
|
+
missingSetup: [PLAYWRIGHT_SETUP],
|
|
430
|
+
}),
|
|
431
|
+
),
|
|
432
|
+
),
|
|
433
|
+
}),
|
|
434
|
+
);
|
|
435
|
+
|
|
436
|
+
renderDialog("pdf");
|
|
437
|
+
|
|
438
|
+
expect(
|
|
439
|
+
await screen.findByRole("button", { name: "Install" }),
|
|
309
440
|
).toBeVisible();
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
it("restores the install action when installation fails", async () => {
|
|
444
|
+
const error = new HTTPError(500, "Server Error", {
|
|
445
|
+
detail: "Playwright Chromium installation failed. Check the server logs.",
|
|
446
|
+
});
|
|
447
|
+
const installExportRequirements = vi.fn().mockRejectedValue(error);
|
|
448
|
+
const getExportAvailability = vi.fn().mockResolvedValue(
|
|
449
|
+
serverAvailability(
|
|
450
|
+
formatAvailability("pdf", {
|
|
451
|
+
dependenciesAvailable: false,
|
|
452
|
+
missingPackages: ["nbconvert[webpdf]"],
|
|
453
|
+
}),
|
|
454
|
+
),
|
|
455
|
+
);
|
|
456
|
+
store.set(
|
|
457
|
+
requestClientAtom,
|
|
458
|
+
createErrorToastingRequests(
|
|
459
|
+
MockRequestClient.create({
|
|
460
|
+
getExportAvailability,
|
|
461
|
+
installExportRequirements,
|
|
462
|
+
}),
|
|
463
|
+
),
|
|
464
|
+
);
|
|
465
|
+
|
|
466
|
+
renderDialog("pdf");
|
|
467
|
+
|
|
468
|
+
const install = await screen.findByRole("button", { name: "Install" });
|
|
469
|
+
fireEvent.click(install);
|
|
470
|
+
|
|
471
|
+
await waitFor(() =>
|
|
472
|
+
expect(toastMock).toHaveBeenCalledWith({
|
|
473
|
+
title: "Failed to install export requirements",
|
|
474
|
+
description:
|
|
475
|
+
"Playwright Chromium installation failed. Check the server logs.",
|
|
476
|
+
variant: "danger",
|
|
477
|
+
}),
|
|
478
|
+
);
|
|
479
|
+
expect(install).toBeEnabled();
|
|
480
|
+
expect(install).toHaveAttribute("aria-busy", "false");
|
|
310
481
|
expect(screen.getByTestId("export-submit")).toBeDisabled();
|
|
482
|
+
expect(getExportAvailability).toHaveBeenCalledOnce();
|
|
311
483
|
});
|
|
312
484
|
|
|
313
485
|
it("announces requirement checks as status updates", () => {
|