@marimo-team/islands 0.25.3-dev388 → 0.25.3-dev391
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/{ErrorBoundary-_mFP3LkM.js → ErrorBoundary-DNRG0xHi.js} +1 -1
- package/dist/{chat-ui-BKSYhGMh.js → chat-ui-CWVNPm2l.js} +769 -769
- package/dist/{code-visibility-DkMNjdNe.js → code-visibility-Ca8sDptK.js} +10 -10
- package/dist/{common-Ces9ooG_.js → common-B3NYpak4.js} +4910 -4902
- package/dist/{data-grid-overlay-editor-uNMslVKY.js → data-grid-overlay-editor-Cz7uMmtm.js} +1 -1
- package/dist/{error-entries-rtPWQkJk.js → error-entries-CnXf4kpP.js} +821 -686
- package/dist/{feedback-button-i960qUnq.js → feedback-button-BQbnZsf5.js} +7 -7
- package/dist/{glide-data-editor-_EEhlGzS.js → glide-data-editor-Bxc30klU.js} +3 -3
- package/dist/{globals-DKkjIolp.js → globals-CDatnx0Y.js} +1 -1
- package/dist/{html-to-image-B5nTOeMI.js → html-to-image-Bu_-vH_Y.js} +4782 -4765
- package/dist/main.js +6233 -6172
- package/dist/{number-overlay-editor-D5U7jbrh.js → number-overlay-editor-ChGu5C-s.js} +1 -1
- package/dist/{process-output-DNxpsd4n.js → process-output-Rbqr1aYD.js} +2 -2
- package/dist/{reveal-component-BM9TozVQ.js → reveal-component-CSxWJFAP.js} +32 -32
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +48 -8
- package/src/__mocks__/notebook.ts +20 -42
- package/src/components/app-config/__tests__/add-model-discovery.test.tsx +255 -0
- package/src/components/app-config/__tests__/model-discovery.test.tsx +183 -0
- package/src/components/app-config/ai-config.tsx +20 -24
- package/src/components/app-config/model-discovery.tsx +118 -184
- package/src/components/app-config/model-provider-config.ts +25 -0
- package/src/components/editor/Output.tsx +5 -4
- package/src/components/editor/__tests__/data-attributes.test.tsx +1 -6
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +11 -16
- package/src/components/editor/__tests__/output-persistence.test.tsx +6 -24
- package/src/components/editor/actions/__tests__/useSetOutputsExpanded.test.ts +6 -8
- package/src/components/editor/actions/useSetOutputsExpanded.ts +12 -4
- package/src/components/editor/cell/cell-context-menu.tsx +3 -2
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +89 -72
- package/src/components/editor/notebook-cell.tsx +15 -10
- package/src/components/editor/output/console/process-output.ts +4 -2
- package/src/components/editor/renderers/cells-renderer.tsx +3 -1
- package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +5 -11
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +9 -8
- package/src/components/editor/renderers/types.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/utils.ts +4 -4
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +5 -8
- package/src/components/scratchpad/scratchpad.tsx +6 -2
- package/src/components/slides/__tests__/cell-output-block.test.tsx +7 -8
- package/src/components/slides/__tests__/minimap-actions.test.tsx +3 -3
- package/src/components/slides/__tests__/slide-cell-view.test.tsx +1 -0
- package/src/components/slides/slide-cell-view.tsx +1 -3
- package/src/components/slides/slide.tsx +3 -3
- package/src/core/ai/context/__tests__/registry.test.ts +7 -11
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +113 -35
- package/src/core/ai/context/providers/__tests__/error.test.ts +74 -191
- package/src/core/ai/context/providers/cell-output.ts +11 -6
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +8 -103
- package/src/core/cells/__tests__/cells.test.ts +40 -292
- package/src/core/cells/__tests__/clear-outputs.test.ts +151 -0
- package/src/core/cells/__tests__/harness.ts +14 -12
- package/src/core/cells/__tests__/layout.test.ts +20 -26
- package/src/core/cells/__tests__/notebook-outline.test.ts +49 -43
- package/src/core/cells/__tests__/session.test.ts +26 -146
- package/src/core/cells/actions.ts +49 -9
- package/src/core/cells/cell.ts +0 -13
- package/src/core/cells/cells.ts +53 -62
- package/src/core/cells/focus.ts +6 -1
- package/src/core/cells/layout.ts +2 -3
- package/src/core/cells/outputs.ts +2 -2
- package/src/core/cells/session.ts +3 -38
- package/src/core/cells/types.ts +6 -8
- package/src/core/cells/utils.ts +4 -3
- package/src/core/codemirror/ai/__tests__/resources.test.ts +7 -11
- package/src/core/errors/__tests__/error-entries.test.ts +52 -18
- package/src/core/errors/error-entries.ts +21 -11
- package/src/core/executions/__tests__/freshness.test.ts +7 -4
- package/src/core/executions/__tests__/hooks.test.tsx +5 -1
- package/src/core/executions/__tests__/interrupt.test.ts +2 -0
- package/src/core/executions/__tests__/output-lifecycle.test.ts +201 -0
- package/src/core/executions/__tests__/output.test.ts +87 -3
- package/src/core/executions/__tests__/select.test.ts +17 -10
- package/src/core/executions/atoms.ts +73 -15
- package/src/core/executions/freshness.ts +1 -1
- package/src/core/executions/hooks.ts +18 -8
- package/src/core/executions/index.ts +6 -0
- package/src/core/executions/output.ts +122 -38
- package/src/core/executions/select.ts +2 -2
- package/src/core/export/__tests__/hooks.test.ts +20 -29
- package/src/core/export/hooks.ts +7 -9
- package/src/core/islands/__tests__/iframe-resizer.test.ts +91 -0
- package/src/core/islands/__tests__/main.test.ts +17 -0
- package/src/core/islands/components/__tests__/web-components.test.tsx +13 -15
- package/src/core/islands/components/output-wrapper.tsx +15 -20
- package/src/core/islands/iframe-resizer.ts +38 -0
- package/src/core/islands/main.ts +3 -0
- package/src/core/lifecycle/render-policy.ts +7 -4
- package/src/core/network/__tests__/ai.test.ts +41 -0
- package/src/core/network/ai.ts +12 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +2 -0
- package/src/core/notebook/replica/__tests__/replica.test.ts +19 -0
- package/src/core/notebook/replica/__tests__/results.test.ts +45 -16
- package/src/core/notebook/replica/index.ts +1 -1
- package/src/core/notebook/replica/replica.ts +19 -4
- package/src/core/notebook/replica/resources/executions.ts +100 -9
- package/src/core/notebook/replica/resources/results.ts +46 -31
- package/src/core/transports/__tests__/static.test.ts +5 -3
- package/src/stories/cell.stories.tsx +40 -30
- package/src/stories/layout/vertical/one-column.stories.tsx +15 -7
|
@@ -13,7 +13,6 @@ exports[`cell reducer > can initialize stdin > initial state 1`] = `
|
|
|
13
13
|
"debuggerActive": false,
|
|
14
14
|
"id": "0",
|
|
15
15
|
"name": "_",
|
|
16
|
-
"outline": null,
|
|
17
16
|
"output": null,
|
|
18
17
|
}
|
|
19
18
|
`;
|
|
@@ -31,7 +30,6 @@ exports[`cell reducer > can initialize stdin > prepared for run 1`] = `
|
|
|
31
30
|
"debuggerActive": false,
|
|
32
31
|
"id": "0",
|
|
33
32
|
"name": "_",
|
|
34
|
-
"outline": null,
|
|
35
33
|
"output": null,
|
|
36
34
|
}
|
|
37
35
|
`;
|
|
@@ -49,7 +47,6 @@ exports[`cell reducer > can initialize stdin > queued message received 1`] = `
|
|
|
49
47
|
"debuggerActive": false,
|
|
50
48
|
"id": "0",
|
|
51
49
|
"name": "_",
|
|
52
|
-
"outline": null,
|
|
53
50
|
"output": null,
|
|
54
51
|
}
|
|
55
52
|
`;
|
|
@@ -67,7 +64,6 @@ exports[`cell reducer > can initialize stdin > running message received 1`] = `
|
|
|
67
64
|
"debuggerActive": false,
|
|
68
65
|
"id": "0",
|
|
69
66
|
"name": "_",
|
|
70
|
-
"outline": null,
|
|
71
67
|
"output": null,
|
|
72
68
|
}
|
|
73
69
|
`;
|
|
@@ -108,7 +104,6 @@ exports[`cell reducer > can initialize stdin > second stdin requested 1`] = `
|
|
|
108
104
|
"debuggerActive": false,
|
|
109
105
|
"id": "0",
|
|
110
106
|
"name": "_",
|
|
111
|
-
"outline": null,
|
|
112
107
|
"output": null,
|
|
113
108
|
}
|
|
114
109
|
`;
|
|
@@ -142,7 +137,6 @@ exports[`cell reducer > can initialize stdin > stdin answered 1`] = `
|
|
|
142
137
|
"debuggerActive": false,
|
|
143
138
|
"id": "0",
|
|
144
139
|
"name": "_",
|
|
145
|
-
"outline": null,
|
|
146
140
|
"output": null,
|
|
147
141
|
}
|
|
148
142
|
`;
|
|
@@ -174,7 +168,6 @@ exports[`cell reducer > can initialize stdin > stdin requested 1`] = `
|
|
|
174
168
|
"debuggerActive": false,
|
|
175
169
|
"id": "0",
|
|
176
170
|
"name": "_",
|
|
177
|
-
"outline": null,
|
|
178
171
|
"output": null,
|
|
179
172
|
}
|
|
180
173
|
`;
|
|
@@ -199,7 +192,6 @@ exports[`cell reducer > can initialize stdin > stdout received 1`] = `
|
|
|
199
192
|
"debuggerActive": false,
|
|
200
193
|
"id": "0",
|
|
201
194
|
"name": "_",
|
|
202
|
-
"outline": null,
|
|
203
195
|
"output": null,
|
|
204
196
|
}
|
|
205
197
|
`;
|
|
@@ -224,7 +216,6 @@ exports[`cell reducer > can initialize stdin > stdout verified 1`] = `
|
|
|
224
216
|
"debuggerActive": false,
|
|
225
217
|
"id": "0",
|
|
226
218
|
"name": "_",
|
|
227
|
-
"outline": null,
|
|
228
219
|
"output": null,
|
|
229
220
|
}
|
|
230
221
|
`;
|
|
@@ -242,7 +233,6 @@ exports[`cell reducer > can receive console when the cell is idle and will clear
|
|
|
242
233
|
"debuggerActive": false,
|
|
243
234
|
"id": "0",
|
|
244
235
|
"name": "_",
|
|
245
|
-
"outline": null,
|
|
246
236
|
"output": null,
|
|
247
237
|
}
|
|
248
238
|
`;
|
|
@@ -267,7 +257,6 @@ exports[`cell reducer > can receive console when the cell is idle and will clear
|
|
|
267
257
|
"debuggerActive": false,
|
|
268
258
|
"id": "0",
|
|
269
259
|
"name": "_",
|
|
270
|
-
"outline": null,
|
|
271
260
|
"output": null,
|
|
272
261
|
}
|
|
273
262
|
`;
|
|
@@ -285,7 +274,6 @@ exports[`cell reducer > can receive console when the cell is idle and will clear
|
|
|
285
274
|
"debuggerActive": false,
|
|
286
275
|
"id": "0",
|
|
287
276
|
"name": "_",
|
|
288
|
-
"outline": null,
|
|
289
277
|
"output": null,
|
|
290
278
|
}
|
|
291
279
|
`;
|
|
@@ -310,7 +298,6 @@ exports[`cell reducer > can receive console when the cell is idle and will clear
|
|
|
310
298
|
"debuggerActive": false,
|
|
311
299
|
"id": "0",
|
|
312
300
|
"name": "_",
|
|
313
|
-
"outline": null,
|
|
314
301
|
"output": null,
|
|
315
302
|
}
|
|
316
303
|
`;
|
|
@@ -335,7 +322,6 @@ exports[`cell reducer > can receive console when the cell is idle and will clear
|
|
|
335
322
|
"debuggerActive": false,
|
|
336
323
|
"id": "0",
|
|
337
324
|
"name": "_",
|
|
338
|
-
"outline": null,
|
|
339
325
|
"output": null,
|
|
340
326
|
}
|
|
341
327
|
`;
|
|
@@ -353,7 +339,6 @@ exports[`cell reducer > can run a stale cell > queued message received 1`] = `
|
|
|
353
339
|
"debuggerActive": false,
|
|
354
340
|
"id": "1",
|
|
355
341
|
"name": "_",
|
|
356
|
-
"outline": null,
|
|
357
342
|
"output": null,
|
|
358
343
|
}
|
|
359
344
|
`;
|
|
@@ -371,7 +356,6 @@ exports[`cell reducer > can run a stale cell > stale inputs received 1`] = `
|
|
|
371
356
|
"debuggerActive": false,
|
|
372
357
|
"id": "1",
|
|
373
358
|
"name": "_",
|
|
374
|
-
"outline": null,
|
|
375
359
|
"output": null,
|
|
376
360
|
}
|
|
377
361
|
`;
|
|
@@ -389,19 +373,7 @@ exports[`cell reducer > can run a stopped cell > ancestor stopped 1`] = `
|
|
|
389
373
|
"debuggerActive": false,
|
|
390
374
|
"id": "0",
|
|
391
375
|
"name": "_",
|
|
392
|
-
"
|
|
393
|
-
"output": {
|
|
394
|
-
"channel": "marimo-error",
|
|
395
|
-
"data": [
|
|
396
|
-
{
|
|
397
|
-
"msg": "This cell wasn't run because an ancestor was stopped with \`mo.stop\`: ",
|
|
398
|
-
"raising_cell": "2",
|
|
399
|
-
"type": "ancestor-stopped",
|
|
400
|
-
},
|
|
401
|
-
],
|
|
402
|
-
"mimetype": "application/vnd.marimo+error",
|
|
403
|
-
"timestamp": 20,
|
|
404
|
-
},
|
|
376
|
+
"output": null,
|
|
405
377
|
}
|
|
406
378
|
`;
|
|
407
379
|
|
|
@@ -418,7 +390,6 @@ exports[`cell reducer > can run a stopped cell > idle message received 1`] = `
|
|
|
418
390
|
"debuggerActive": false,
|
|
419
391
|
"id": "0",
|
|
420
392
|
"name": "_",
|
|
421
|
-
"outline": null,
|
|
422
393
|
"output": null,
|
|
423
394
|
}
|
|
424
395
|
`;
|
|
@@ -436,19 +407,7 @@ exports[`cell reducer > can run a stopped cell > queued after stop 1`] = `
|
|
|
436
407
|
"debuggerActive": false,
|
|
437
408
|
"id": "0",
|
|
438
409
|
"name": "_",
|
|
439
|
-
"
|
|
440
|
-
"output": {
|
|
441
|
-
"channel": "marimo-error",
|
|
442
|
-
"data": [
|
|
443
|
-
{
|
|
444
|
-
"msg": "This cell wasn't run because an ancestor was stopped with \`mo.stop\`: ",
|
|
445
|
-
"raising_cell": "2",
|
|
446
|
-
"type": "ancestor-stopped",
|
|
447
|
-
},
|
|
448
|
-
],
|
|
449
|
-
"mimetype": "application/vnd.marimo+error",
|
|
450
|
-
"timestamp": 20,
|
|
451
|
-
},
|
|
410
|
+
"output": null,
|
|
452
411
|
}
|
|
453
412
|
`;
|
|
454
413
|
|
|
@@ -465,7 +424,6 @@ exports[`cell reducer > can run a stopped cell > queued message received 1`] = `
|
|
|
465
424
|
"debuggerActive": false,
|
|
466
425
|
"id": "0",
|
|
467
426
|
"name": "_",
|
|
468
|
-
"outline": null,
|
|
469
427
|
"output": null,
|
|
470
428
|
}
|
|
471
429
|
`;
|
|
@@ -483,7 +441,6 @@ exports[`cell reducer > can run a stopped cell > running after stop 1`] = `
|
|
|
483
441
|
"debuggerActive": false,
|
|
484
442
|
"id": "0",
|
|
485
443
|
"name": "_",
|
|
486
|
-
"outline": null,
|
|
487
444
|
"output": null,
|
|
488
445
|
}
|
|
489
446
|
`;
|
|
@@ -509,13 +466,7 @@ import numpy",
|
|
|
509
466
|
"debuggerActive": false,
|
|
510
467
|
"id": "0",
|
|
511
468
|
"name": "_",
|
|
512
|
-
"
|
|
513
|
-
"output": {
|
|
514
|
-
"channel": "output",
|
|
515
|
-
"data": "ok",
|
|
516
|
-
"mimetype": "text/plain",
|
|
517
|
-
"timestamp": 0,
|
|
518
|
-
},
|
|
469
|
+
"output": null,
|
|
519
470
|
}
|
|
520
471
|
`;
|
|
521
472
|
|
|
@@ -532,7 +483,6 @@ exports[`cell reducer > can run cell and receive cell messages > code edited 1`]
|
|
|
532
483
|
"debuggerActive": false,
|
|
533
484
|
"id": "0",
|
|
534
485
|
"name": "_",
|
|
535
|
-
"outline": null,
|
|
536
486
|
"output": null,
|
|
537
487
|
}
|
|
538
488
|
`;
|
|
@@ -558,13 +508,7 @@ import numpy",
|
|
|
558
508
|
"debuggerActive": false,
|
|
559
509
|
"id": "0",
|
|
560
510
|
"name": "_",
|
|
561
|
-
"
|
|
562
|
-
"output": {
|
|
563
|
-
"channel": "output",
|
|
564
|
-
"data": "ok",
|
|
565
|
-
"mimetype": "text/plain",
|
|
566
|
-
"timestamp": 0,
|
|
567
|
-
},
|
|
511
|
+
"output": null,
|
|
568
512
|
}
|
|
569
513
|
`;
|
|
570
514
|
|
|
@@ -588,13 +532,7 @@ exports[`cell reducer > can run cell and receive cell messages > code reverted 1
|
|
|
588
532
|
"debuggerActive": false,
|
|
589
533
|
"id": "0",
|
|
590
534
|
"name": "_",
|
|
591
|
-
"
|
|
592
|
-
"output": {
|
|
593
|
-
"channel": "output",
|
|
594
|
-
"data": "ok",
|
|
595
|
-
"mimetype": "text/plain",
|
|
596
|
-
"timestamp": 0,
|
|
597
|
-
},
|
|
535
|
+
"output": null,
|
|
598
536
|
}
|
|
599
537
|
`;
|
|
600
538
|
|
|
@@ -618,7 +556,6 @@ exports[`cell reducer > can run cell and receive cell messages > console message
|
|
|
618
556
|
"debuggerActive": false,
|
|
619
557
|
"id": "0",
|
|
620
558
|
"name": "_",
|
|
621
|
-
"outline": null,
|
|
622
559
|
"output": null,
|
|
623
560
|
}
|
|
624
561
|
`;
|
|
@@ -644,19 +581,7 @@ import numpy",
|
|
|
644
581
|
"debuggerActive": false,
|
|
645
582
|
"id": "0",
|
|
646
583
|
"name": "_",
|
|
647
|
-
"
|
|
648
|
-
"output": {
|
|
649
|
-
"channel": "marimo-error",
|
|
650
|
-
"data": [
|
|
651
|
-
{
|
|
652
|
-
"exception_type": "ValueError",
|
|
653
|
-
"msg": "Oh no!",
|
|
654
|
-
"type": "exception",
|
|
655
|
-
},
|
|
656
|
-
],
|
|
657
|
-
"mimetype": "application/vnd.marimo+error",
|
|
658
|
-
"timestamp": 0,
|
|
659
|
-
},
|
|
584
|
+
"output": null,
|
|
660
585
|
}
|
|
661
586
|
`;
|
|
662
587
|
|
|
@@ -673,7 +598,6 @@ exports[`cell reducer > can run cell and receive cell messages > initial state 1
|
|
|
673
598
|
"debuggerActive": false,
|
|
674
599
|
"id": "0",
|
|
675
600
|
"name": "_",
|
|
676
|
-
"outline": null,
|
|
677
601
|
"output": null,
|
|
678
602
|
}
|
|
679
603
|
`;
|
|
@@ -699,17 +623,7 @@ import numpy",
|
|
|
699
623
|
"debuggerActive": false,
|
|
700
624
|
"id": "0",
|
|
701
625
|
"name": "_",
|
|
702
|
-
"
|
|
703
|
-
"output": {
|
|
704
|
-
"channel": "marimo-error",
|
|
705
|
-
"data": [
|
|
706
|
-
{
|
|
707
|
-
"type": "interruption",
|
|
708
|
-
},
|
|
709
|
-
],
|
|
710
|
-
"mimetype": "application/vnd.marimo+error",
|
|
711
|
-
"timestamp": 0,
|
|
712
|
-
},
|
|
626
|
+
"output": null,
|
|
713
627
|
}
|
|
714
628
|
`;
|
|
715
629
|
|
|
@@ -733,13 +647,7 @@ exports[`cell reducer > can run cell and receive cell messages > output received
|
|
|
733
647
|
"debuggerActive": false,
|
|
734
648
|
"id": "0",
|
|
735
649
|
"name": "_",
|
|
736
|
-
"
|
|
737
|
-
"output": {
|
|
738
|
-
"channel": "output",
|
|
739
|
-
"data": "ok",
|
|
740
|
-
"mimetype": "text/plain",
|
|
741
|
-
"timestamp": 0,
|
|
742
|
-
},
|
|
650
|
+
"output": null,
|
|
743
651
|
}
|
|
744
652
|
`;
|
|
745
653
|
|
|
@@ -756,7 +664,6 @@ exports[`cell reducer > can run cell and receive cell messages > prepared for ru
|
|
|
756
664
|
"debuggerActive": false,
|
|
757
665
|
"id": "0",
|
|
758
666
|
"name": "_",
|
|
759
|
-
"outline": null,
|
|
760
667
|
"output": null,
|
|
761
668
|
}
|
|
762
669
|
`;
|
|
@@ -774,7 +681,6 @@ exports[`cell reducer > can run cell and receive cell messages > queued message
|
|
|
774
681
|
"debuggerActive": false,
|
|
775
682
|
"id": "0",
|
|
776
683
|
"name": "_",
|
|
777
|
-
"outline": null,
|
|
778
684
|
"output": null,
|
|
779
685
|
}
|
|
780
686
|
`;
|
|
@@ -792,7 +698,6 @@ exports[`cell reducer > can run cell and receive cell messages > running message
|
|
|
792
698
|
"debuggerActive": false,
|
|
793
699
|
"id": "0",
|
|
794
700
|
"name": "_",
|
|
795
|
-
"outline": null,
|
|
796
701
|
"output": null,
|
|
797
702
|
}
|
|
798
703
|
`;
|