@marimo-team/islands 0.23.2-dev38 → 0.23.2-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/{chat-ui-CqkLwgnX.js → chat-ui-D3oNzud1.js} +2753 -2753
- package/dist/main.js +158 -155
- package/dist/{process-output-Db_3pJA4.js → process-output-BWEipdFR.js} +120 -105
- package/package.json +1 -1
- package/src/core/cells/__tests__/apply-transaction.test.ts +441 -0
- package/src/core/cells/__tests__/cells.test.ts +110 -0
- package/src/core/cells/cells.ts +18 -0
- package/src/core/cells/document-changes.ts +34 -1
- package/src/plugins/core/__test__/trusted-url.test.ts +45 -1
- package/src/plugins/core/trusted-url.ts +27 -2
|
@@ -33,7 +33,7 @@ import { a as parser, i as pythonLanguage, n as localCompletionSource, r as pyth
|
|
|
33
33
|
import { n as stexMath } from "./stex-Ze8D4R_5.js";
|
|
34
34
|
import { t as purify } from "./purify.es-ukiMXY-F.js";
|
|
35
35
|
import { t as useAsyncData } from "./useAsyncData-B1v_9k4L.js";
|
|
36
|
-
let
|
|
36
|
+
let cellErrorsAtom, useRequestClient, MarimoIncomingMessageEvent, Wrench, createVariableInfoElement, DotFilledIcon, Eye, jotaiJsonStorage, contextToXml, selectAtom, displayCellName, AccordionContent, Item, Checkbox, Accordion, Content2$1, normalizeName, BorderAllIcon, LoaderCircle, DeferredRequestRegistry, base64ToDataView, Braces, getDataTypeColor, PinRightIcon, Columns2, PluralWord, ChatBubbleIcon, Layers, generateUUID, extractBase64FromDataURL, dataSourceConnectionsAtom, base64ToUint8Array, esm_default, require_client, CheckIcon, Info, useChromeActions, MarimoValueReadyEvent, Table2, Paths, MarimoValueUpdateEvent, PaintRoller, moveToEndOfEditor, AccordionItem, Root2$2, customPythonLanguageSupport, createInputEvent, NotebookPen, goToCellLine, hasRunAnyCellAtom, requestClientAtom, ChevronDownIcon, File, repl, Sections, atomWithStorage, getCellDomProps, AIContextRegistry, Close$1, isInternalCellName, deserializeBlob, CircleX, PluralWords, PinLeftIcon, Database, variablesAtom, base64ToDataURL, CircleAlert, DATA_TYPE_ICON, safeExtractSetUIElementMessageBuffers, convertStatsName, isDataURLString, getTableType, renderHTML, getRequestClient, useExpandedConsoleOutput, RANDOM_ID_ATTR, outputIsStale, toPng$1, NotebookScopedLocalStorage, numColumnsAtom, getDatasourceContext, jsonToTSV, sanitizeHtml, useCellFocusActions, parseAttrValue, useCellIds, Spinner, CellOutputId, AnsiUp, isUninstantiated, createActions$1, Popover, HTMLCellId, getInitialAppMode, isOutputEmpty, OBJECT_ID_ATTR, outputIsLoading, PopoverTrigger, findCellId, viewStateAtom, PythonIcon, getTracebackInfo, notebookOutline, MarimoValueInputEvent, Trash2, PathBuilder, AccordionTrigger, Trigger2, MarkdownLanguageAdapter, useLastFocusedCellId, parseDataset, useCellNames, PopoverContent, UIElementId, kioskModeAtom, blobToString, elementContainsMarimoCellFile, getCellNames, MarkdownRenderer, ZodLocalStorage, reducer$1, PopoverClose, SCRATCH_CELL_ID, initialModeAtom, dataViewToBase64, import_lib$1, allTablesAtom, filesToBase64, extractAllTracebackInfo, notebookAtom, LazyAnyLanguageCodeMirror, filenameAtom, useCellActions, processOutput, singleFacet, getCellEditorView, maybeAddAltairImport, parseInitialValue, createCell, useExpandedOutput, jsonParseWithSpecialChar, isErrorMime, AIContextProvider, Anchor2, getValidName, Boosts, atomWithReducer, DATA_CELL_ID, DatasourceContextProvider, jsonToMarkdown, headingToIdentifier, ChevronRightIcon, FileText, adaptForLocalStorage;
|
|
37
37
|
let __tla = Promise.all([
|
|
38
38
|
(() => {
|
|
39
39
|
try {
|
|
@@ -25019,6 +25019,7 @@ ${n.sqlString}
|
|
|
25019
25019
|
case "prepareForRun":
|
|
25020
25020
|
case "handleCellMessage":
|
|
25021
25021
|
case "setCellIds":
|
|
25022
|
+
case "rebuildCellColumns":
|
|
25022
25023
|
case "setCellCodes":
|
|
25023
25024
|
case "setCells":
|
|
25024
25025
|
case "setStdinResponse":
|
|
@@ -26199,6 +26200,19 @@ ${n.sqlString}
|
|
|
26199
26200
|
cellHandles: i
|
|
26200
26201
|
};
|
|
26201
26202
|
},
|
|
26203
|
+
rebuildCellColumns: (e, t) => {
|
|
26204
|
+
let n = MultiColumn.fromIdsAndColumns(t.cellIds.map((t2) => {
|
|
26205
|
+
var _a2;
|
|
26206
|
+
return [
|
|
26207
|
+
t2,
|
|
26208
|
+
((_a2 = e.cellData[t2]) == null ? void 0 : _a2.config.column) ?? null
|
|
26209
|
+
];
|
|
26210
|
+
}));
|
|
26211
|
+
return {
|
|
26212
|
+
...e,
|
|
26213
|
+
cellIds: n
|
|
26214
|
+
};
|
|
26215
|
+
},
|
|
26202
26216
|
setCellCodes: (e, t) => {
|
|
26203
26217
|
var _a2, _b2;
|
|
26204
26218
|
invariant(t.codes.length === t.ids.length, "Expected codes and ids to have the same length");
|
|
@@ -26733,7 +26747,7 @@ ${n.sqlString}
|
|
|
26733
26747
|
}), t[4] = r, t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
|
|
26734
26748
|
};
|
|
26735
26749
|
require_compiler_runtime();
|
|
26736
|
-
|
|
26750
|
+
hasRunAnyCellAtom = atom(false);
|
|
26737
26751
|
var sanitizeHtmlAtom = atom((e) => {
|
|
26738
26752
|
let t = e(hasRunAnyCellAtom), n = e(autoInstantiateAtom);
|
|
26739
26753
|
if (t || n) return false;
|
|
@@ -28410,159 +28424,160 @@ ${t}
|
|
|
28410
28424
|
};
|
|
28411
28425
|
});
|
|
28412
28426
|
export {
|
|
28413
|
-
|
|
28414
|
-
|
|
28427
|
+
cellErrorsAtom as $,
|
|
28428
|
+
useRequestClient as $t,
|
|
28415
28429
|
MarimoIncomingMessageEvent as A,
|
|
28416
|
-
|
|
28417
|
-
|
|
28430
|
+
Wrench as An,
|
|
28431
|
+
createVariableInfoElement as At,
|
|
28418
28432
|
DotFilledIcon as B,
|
|
28419
|
-
|
|
28420
|
-
|
|
28433
|
+
Eye as Bn,
|
|
28434
|
+
jotaiJsonStorage as Bt,
|
|
28421
28435
|
contextToXml as C,
|
|
28422
|
-
|
|
28423
|
-
|
|
28436
|
+
selectAtom as Cn,
|
|
28437
|
+
displayCellName as Ct,
|
|
28424
28438
|
AccordionContent as D,
|
|
28425
|
-
|
|
28426
|
-
|
|
28439
|
+
Item as Dn,
|
|
28440
|
+
Checkbox as Dt,
|
|
28427
28441
|
Accordion as E,
|
|
28428
|
-
|
|
28429
|
-
|
|
28442
|
+
Content2$1 as En,
|
|
28443
|
+
normalizeName as Et,
|
|
28430
28444
|
BorderAllIcon as F,
|
|
28431
|
-
|
|
28432
|
-
|
|
28445
|
+
LoaderCircle as Fn,
|
|
28446
|
+
DeferredRequestRegistry as Ft,
|
|
28433
28447
|
base64ToDataView as G,
|
|
28434
|
-
|
|
28435
|
-
|
|
28448
|
+
Braces as Gn,
|
|
28449
|
+
getDataTypeColor as Gt,
|
|
28436
28450
|
PinRightIcon as H,
|
|
28437
|
-
|
|
28438
|
-
|
|
28451
|
+
Columns2 as Hn,
|
|
28452
|
+
PluralWord as Ht,
|
|
28439
28453
|
ChatBubbleIcon as I,
|
|
28440
|
-
|
|
28441
|
-
|
|
28454
|
+
Layers as In,
|
|
28455
|
+
generateUUID as It,
|
|
28442
28456
|
extractBase64FromDataURL as J,
|
|
28443
|
-
|
|
28457
|
+
dataSourceConnectionsAtom as Jt,
|
|
28444
28458
|
base64ToUint8Array as K,
|
|
28445
|
-
|
|
28446
|
-
|
|
28459
|
+
esm_default as Kn,
|
|
28460
|
+
require_client as Kt,
|
|
28447
28461
|
CheckIcon as L,
|
|
28448
|
-
|
|
28449
|
-
|
|
28462
|
+
Info as Ln,
|
|
28463
|
+
useChromeActions as Lt,
|
|
28450
28464
|
MarimoValueReadyEvent as M,
|
|
28451
|
-
|
|
28452
|
-
|
|
28465
|
+
Table2 as Mn,
|
|
28466
|
+
Paths as Mt,
|
|
28453
28467
|
MarimoValueUpdateEvent as N,
|
|
28454
|
-
|
|
28455
|
-
|
|
28468
|
+
PaintRoller as Nn,
|
|
28469
|
+
moveToEndOfEditor as Nt,
|
|
28456
28470
|
AccordionItem as O,
|
|
28457
|
-
|
|
28458
|
-
|
|
28471
|
+
Root2$2 as On,
|
|
28472
|
+
customPythonLanguageSupport as Ot,
|
|
28459
28473
|
createInputEvent as P,
|
|
28460
|
-
|
|
28461
|
-
|
|
28462
|
-
|
|
28463
|
-
|
|
28474
|
+
NotebookPen as Pn,
|
|
28475
|
+
goToCellLine as Pt,
|
|
28476
|
+
hasRunAnyCellAtom as Q,
|
|
28477
|
+
requestClientAtom as Qt,
|
|
28464
28478
|
ChevronDownIcon as R,
|
|
28465
|
-
|
|
28466
|
-
|
|
28479
|
+
File as Rn,
|
|
28480
|
+
repl as Rt,
|
|
28467
28481
|
Sections as S,
|
|
28468
|
-
|
|
28469
|
-
|
|
28482
|
+
atomWithStorage as Sn,
|
|
28483
|
+
getCellDomProps as St,
|
|
28470
28484
|
AIContextRegistry as T,
|
|
28471
|
-
|
|
28472
|
-
|
|
28485
|
+
Close$1 as Tn,
|
|
28486
|
+
isInternalCellName as Tt,
|
|
28473
28487
|
deserializeBlob as U,
|
|
28474
|
-
|
|
28475
|
-
|
|
28488
|
+
CircleX as Un,
|
|
28489
|
+
PluralWords as Ut,
|
|
28476
28490
|
PinLeftIcon as V,
|
|
28477
|
-
|
|
28478
|
-
|
|
28491
|
+
Database as Vn,
|
|
28492
|
+
variablesAtom as Vt,
|
|
28479
28493
|
base64ToDataURL as W,
|
|
28480
|
-
|
|
28481
|
-
|
|
28494
|
+
CircleAlert as Wn,
|
|
28495
|
+
DATA_TYPE_ICON as Wt,
|
|
28482
28496
|
safeExtractSetUIElementMessageBuffers as X,
|
|
28483
|
-
|
|
28497
|
+
convertStatsName as Xt,
|
|
28484
28498
|
isDataURLString as Y,
|
|
28485
|
-
|
|
28499
|
+
getTableType as Yt,
|
|
28486
28500
|
renderHTML as Z,
|
|
28487
|
-
|
|
28501
|
+
getRequestClient as Zt,
|
|
28488
28502
|
useExpandedConsoleOutput as _,
|
|
28489
28503
|
__tla,
|
|
28490
|
-
|
|
28491
|
-
|
|
28504
|
+
RANDOM_ID_ATTR as _n,
|
|
28505
|
+
outputIsStale as _t,
|
|
28492
28506
|
toPng$1 as a,
|
|
28493
|
-
|
|
28494
|
-
|
|
28507
|
+
NotebookScopedLocalStorage as an,
|
|
28508
|
+
numColumnsAtom as at,
|
|
28495
28509
|
getDatasourceContext as b,
|
|
28496
|
-
|
|
28497
|
-
|
|
28510
|
+
jsonToTSV as bn,
|
|
28511
|
+
sanitizeHtml as bt,
|
|
28498
28512
|
useCellFocusActions as c,
|
|
28499
|
-
|
|
28500
|
-
|
|
28513
|
+
parseAttrValue as cn,
|
|
28514
|
+
useCellIds as ct,
|
|
28501
28515
|
Spinner as d,
|
|
28502
|
-
|
|
28503
|
-
|
|
28504
|
-
|
|
28505
|
-
|
|
28516
|
+
CellOutputId as dn,
|
|
28517
|
+
AnsiUp as dt,
|
|
28518
|
+
isUninstantiated as en,
|
|
28519
|
+
createActions$1 as et,
|
|
28506
28520
|
Popover as f,
|
|
28507
|
-
|
|
28508
|
-
|
|
28521
|
+
HTMLCellId as fn,
|
|
28522
|
+
getInitialAppMode as ft,
|
|
28509
28523
|
isOutputEmpty as g,
|
|
28510
|
-
|
|
28511
|
-
|
|
28524
|
+
OBJECT_ID_ATTR as gn,
|
|
28525
|
+
outputIsLoading as gt,
|
|
28512
28526
|
PopoverTrigger as h,
|
|
28513
|
-
|
|
28514
|
-
|
|
28527
|
+
findCellId as hn,
|
|
28528
|
+
viewStateAtom as ht,
|
|
28515
28529
|
PythonIcon as i,
|
|
28516
|
-
|
|
28517
|
-
|
|
28530
|
+
getTracebackInfo as in,
|
|
28531
|
+
notebookOutline as it,
|
|
28518
28532
|
MarimoValueInputEvent as j,
|
|
28519
|
-
|
|
28520
|
-
|
|
28533
|
+
Trash2 as jn,
|
|
28534
|
+
PathBuilder as jt,
|
|
28521
28535
|
AccordionTrigger as k,
|
|
28522
|
-
|
|
28523
|
-
|
|
28536
|
+
Trigger2 as kn,
|
|
28537
|
+
MarkdownLanguageAdapter as kt,
|
|
28524
28538
|
useLastFocusedCellId as l,
|
|
28525
|
-
|
|
28526
|
-
|
|
28539
|
+
parseDataset as ln,
|
|
28540
|
+
useCellNames as lt,
|
|
28527
28541
|
PopoverContent as m,
|
|
28528
|
-
|
|
28529
|
-
|
|
28542
|
+
UIElementId as mn,
|
|
28543
|
+
kioskModeAtom as mt,
|
|
28530
28544
|
blobToString as n,
|
|
28531
|
-
|
|
28532
|
-
|
|
28545
|
+
elementContainsMarimoCellFile as nn,
|
|
28546
|
+
getCellNames as nt,
|
|
28533
28547
|
MarkdownRenderer as o,
|
|
28534
|
-
|
|
28535
|
-
|
|
28548
|
+
ZodLocalStorage as on,
|
|
28549
|
+
reducer$1 as ot,
|
|
28536
28550
|
PopoverClose as p,
|
|
28537
|
-
|
|
28538
|
-
|
|
28551
|
+
SCRATCH_CELL_ID as pn,
|
|
28552
|
+
initialModeAtom as pt,
|
|
28539
28553
|
dataViewToBase64 as q,
|
|
28540
|
-
|
|
28554
|
+
import_lib$1 as qn,
|
|
28555
|
+
allTablesAtom as qt,
|
|
28541
28556
|
filesToBase64 as r,
|
|
28542
|
-
|
|
28543
|
-
|
|
28557
|
+
extractAllTracebackInfo as rn,
|
|
28558
|
+
notebookAtom as rt,
|
|
28544
28559
|
LazyAnyLanguageCodeMirror as s,
|
|
28545
|
-
|
|
28546
|
-
|
|
28560
|
+
filenameAtom as sn,
|
|
28561
|
+
useCellActions as st,
|
|
28547
28562
|
processOutput as t,
|
|
28548
|
-
|
|
28549
|
-
|
|
28563
|
+
singleFacet as tn,
|
|
28564
|
+
getCellEditorView as tt,
|
|
28550
28565
|
maybeAddAltairImport as u,
|
|
28551
|
-
|
|
28552
|
-
|
|
28566
|
+
parseInitialValue as un,
|
|
28567
|
+
createCell as ut,
|
|
28553
28568
|
useExpandedOutput as v,
|
|
28554
|
-
|
|
28555
|
-
|
|
28569
|
+
jsonParseWithSpecialChar as vn,
|
|
28570
|
+
isErrorMime as vt,
|
|
28556
28571
|
AIContextProvider as w,
|
|
28557
|
-
|
|
28558
|
-
|
|
28572
|
+
Anchor2 as wn,
|
|
28573
|
+
getValidName as wt,
|
|
28559
28574
|
Boosts as x,
|
|
28560
|
-
|
|
28561
|
-
|
|
28575
|
+
atomWithReducer as xn,
|
|
28576
|
+
DATA_CELL_ID as xt,
|
|
28562
28577
|
DatasourceContextProvider as y,
|
|
28563
|
-
|
|
28564
|
-
|
|
28578
|
+
jsonToMarkdown as yn,
|
|
28579
|
+
headingToIdentifier as yt,
|
|
28565
28580
|
ChevronRightIcon as z,
|
|
28566
|
-
|
|
28567
|
-
|
|
28581
|
+
FileText as zn,
|
|
28582
|
+
adaptForLocalStorage as zt
|
|
28568
28583
|
};
|