@marimo-team/islands 0.23.15-dev31 → 0.23.15-dev33
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/__vite-browser-external-CjNAy01L.js +1 -0
- package/dist/assets/worker-B3XPCb6y.js +98 -0
- package/dist/{chat-ui-CbyDW7Rb.js → chat-ui-C0wkSwxB.js} +33 -33
- package/dist/{code-visibility-M6TuquZp.js → code-visibility-BI94mK4u.js} +162 -162
- package/dist/{html-to-image-CtsZpKdg.js → html-to-image-D8Q5SLSJ.js} +119 -118
- package/dist/main.js +1178 -1075
- package/dist/{process-output-DApSJpc6.js → process-output-C_A12w9J.js} +1 -1
- package/dist/{reveal-component-CV1WyDIM.js → reveal-component-ELidGmPF.js} +2 -2
- package/package.json +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +341 -46
- package/src/core/islands/__tests__/main.test.ts +176 -0
- package/src/core/islands/__tests__/parse.test.ts +105 -0
- package/src/core/islands/bootstrap.ts +8 -3
- package/src/core/islands/bridge.ts +116 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +214 -0
- package/src/core/islands/components/web-components.tsx +76 -15
- package/src/core/islands/constants.ts +1 -0
- package/src/core/islands/main.ts +69 -3
- package/src/core/islands/parse.ts +70 -23
- package/src/core/islands/worker/__tests__/controller.test.ts +173 -0
- package/src/core/islands/worker/worker.tsx +145 -57
- package/src/core/wasm/worker/bootstrap.ts +113 -20
- package/dist/assets/__vite-browser-external-BQCLNwri.js +0 -1
- package/dist/assets/worker-DAWRHcPq.js +0 -73
|
@@ -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-BIsgBmK4.js";
|
|
34
34
|
import { t as purify } from "./purify.es-H92eMd9-.js";
|
|
35
35
|
import { t as useAsyncData } from "./useAsyncData-BSOyAbac.js";
|
|
36
|
-
let
|
|
36
|
+
let notebookOutline, import_lib$1, requestClientAtom, ChevronDownIcon, Close$1, toggleBreakpoint, isDataURLString, Minus, repl, Accordion, RANDOM_ID_ATTR, normalizeName, BorderAllIcon, atomWithStorage, createVariableInfoElement, AccordionTrigger, atomWithReducer, MarkdownLanguageAdapter, base64ToDataURL, Wrench, useChromeActions, hasRunAnyCellAtom, Eye, DATA_TYPE_ICON, renderHTML, Layers, MarkdownParser, base64ToDataView, Trash2, adaptForLocalStorage, getCellEditorView, Columns2, allTablesAtom, cellIdsAtom, ExternalLink, getDataTypeColor, base64ToUint8Array, Table2, jotaiJsonStorage, DotFilledIcon, Item, goToCellLine, PinLeftIcon, Root2$2, DeferredRequestRegistry, ChatBubbleIcon, selectAtom, PathBuilder, PinRightIcon, Trigger2, generateUUID, notebookAtom, esm_default, getRequestClient, dataViewToBase64, PaintRoller, variablesAtom, AIContextRegistry, OBJECT_ID_ATTR, isInternalCellName, AccordionItem, jsonToMarkdown, customPythonLanguageSupport, getMarimoExportContext, Info, PluralWord, safeExtractSetUIElementMessageBuffers, LoaderCircle, SQLParser, hasTrustedExportContext, FileText, PluralWords, hasOnlyOneCellAtom, CircleAlert, getTableType, getCellNames, CircleX, dataSourceConnectionsAtom, initialNotebookState, Braces, convertStatsName, getDatasourceContext, CellOutputId, sanitizeHtml, useCellFocusActions, isMarimoErrorsMime, createCell, contextToXml, UIElementId, displayCellName, Popover, elementContainsMarimoCellFile, AnsiUp, PopoverTrigger, NotebookScopedLocalStorage, kioskModeAtom, useRequestClient, numColumnsAtom, isOutputEmpty, ZodLocalStorage, useInstallAllowed, formatDatasourceContextForCell, parseInitialValue, headingToIdentifier, DatasourceContextProvider, parseDataset, outputIsStale, LazyAnyLanguageCodeMirror, isErrorMime, useCellNames, ChevronRightIcon, Content2$1, moveToEndOfEditor, CheckIcon, Anchor2, Paths, PopoverClose, extractAllTracebackInfo, getInitialAppMode, useExpandedOutput, parseAttrValue, outputIsLoading, Spinner, publishedCellClasses, useCellActions, useLastFocusedCellId, isTracebackMime, ansiToPlainText, useExpandedConsoleOutput, filenameAtom, viewStateAtom, createActions$1, Database, require_client, MarkdownRenderer, shouldHidePublishedCell, useCellIds, maybeAddAltairImport, singleFacet, parseHtmlContent, toPng$1, isUninstantiated, reducer$1, PopoverContent, getTracebackInfo, initialModeAtom, Boosts, HTMLCellId, DATA_CELL_ID, AccordionContent, jsonParseWithSpecialChar, Checkbox, AIContextProvider, findCellId, getValidName, Sections, SCRATCH_CELL_ID, getCellDomProps, extractBase64FromDataURL, NotebookPen, getFeatureFlag;
|
|
37
37
|
let __tla = Promise.all([
|
|
38
38
|
(() => {
|
|
39
39
|
try {
|
|
@@ -26254,7 +26254,7 @@ ${n.sqlString}
|
|
|
26254
26254
|
}
|
|
26255
26255
|
};
|
|
26256
26256
|
}
|
|
26257
|
-
function
|
|
26257
|
+
initialNotebookState = function() {
|
|
26258
26258
|
return withScratchCell({
|
|
26259
26259
|
cellIds: MultiColumn.from([]),
|
|
26260
26260
|
cellData: {},
|
|
@@ -26265,7 +26265,7 @@ ${n.sqlString}
|
|
|
26265
26265
|
cellLogs: [],
|
|
26266
26266
|
untouchedNewCells: /* @__PURE__ */ new Set()
|
|
26267
26267
|
});
|
|
26268
|
-
}
|
|
26268
|
+
};
|
|
26269
26269
|
let addMiddleware, useActions;
|
|
26270
26270
|
({ reducer: reducer$1, addMiddleware, createActions: createActions$1, useActions, valueAtom: notebookAtom } = createReducerAndAtoms(initialNotebookState, {
|
|
26271
26271
|
createNewCell: (e, t) => {
|
|
@@ -27156,7 +27156,6 @@ ${n.sqlString}
|
|
|
27156
27156
|
}
|
|
27157
27157
|
} : (Logger.warn(`Cell ${t} not found in state`), e);
|
|
27158
27158
|
}
|
|
27159
|
-
let cellIdsAtom;
|
|
27160
27159
|
cellIdsAtom = atom((e) => e(notebookAtom).cellIds);
|
|
27161
27160
|
hasOnlyOneCellAtom = atom((e) => e(cellIdsAtom).hasOnlyOneId());
|
|
27162
27161
|
atom((e) => disabledCellIds(e(notebookAtom)).length > 0), atom((e) => enabledCellIds(e(notebookAtom)).length > 0), atom((e) => canUndoDeletes(e(notebookAtom))), atom((e) => getUndoLabel(e(notebookAtom))), atom((e) => notebookNeedsRun(e(notebookAtom)));
|
|
@@ -28945,164 +28944,166 @@ ${t}
|
|
|
28945
28944
|
};
|
|
28946
28945
|
});
|
|
28947
28946
|
export {
|
|
28948
|
-
|
|
28949
|
-
|
|
28947
|
+
notebookOutline as $,
|
|
28948
|
+
import_lib$1 as $n,
|
|
28949
|
+
requestClientAtom as $t,
|
|
28950
28950
|
ChevronDownIcon as A,
|
|
28951
|
-
|
|
28952
|
-
|
|
28951
|
+
Close$1 as An,
|
|
28952
|
+
toggleBreakpoint as At,
|
|
28953
28953
|
isDataURLString as B,
|
|
28954
|
-
|
|
28955
|
-
|
|
28954
|
+
Minus as Bn,
|
|
28955
|
+
repl as Bt,
|
|
28956
28956
|
Accordion as C,
|
|
28957
|
-
|
|
28958
|
-
|
|
28957
|
+
RANDOM_ID_ATTR as Cn,
|
|
28958
|
+
normalizeName as Ct,
|
|
28959
28959
|
BorderAllIcon as D,
|
|
28960
|
-
|
|
28961
|
-
|
|
28960
|
+
atomWithStorage as Dn,
|
|
28961
|
+
createVariableInfoElement as Dt,
|
|
28962
28962
|
AccordionTrigger as E,
|
|
28963
|
-
|
|
28964
|
-
|
|
28963
|
+
atomWithReducer as En,
|
|
28964
|
+
MarkdownLanguageAdapter as Et,
|
|
28965
28965
|
base64ToDataURL as F,
|
|
28966
|
-
|
|
28967
|
-
|
|
28966
|
+
Wrench as Fn,
|
|
28967
|
+
useChromeActions as Ft,
|
|
28968
28968
|
hasRunAnyCellAtom as G,
|
|
28969
|
-
|
|
28970
|
-
|
|
28969
|
+
Eye as Gn,
|
|
28970
|
+
DATA_TYPE_ICON as Gt,
|
|
28971
28971
|
renderHTML as H,
|
|
28972
|
-
|
|
28973
|
-
|
|
28972
|
+
Layers as Hn,
|
|
28973
|
+
MarkdownParser as Ht,
|
|
28974
28974
|
base64ToDataView as I,
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
28981
|
-
|
|
28982
|
-
|
|
28975
|
+
Trash2 as In,
|
|
28976
|
+
adaptForLocalStorage as It,
|
|
28977
|
+
getCellEditorView as J,
|
|
28978
|
+
Columns2 as Jn,
|
|
28979
|
+
allTablesAtom as Jt,
|
|
28980
|
+
cellIdsAtom as K,
|
|
28981
|
+
ExternalLink as Kn,
|
|
28982
|
+
getDataTypeColor as Kt,
|
|
28983
28983
|
base64ToUint8Array as L,
|
|
28984
|
-
|
|
28985
|
-
|
|
28984
|
+
Table2 as Ln,
|
|
28985
|
+
jotaiJsonStorage as Lt,
|
|
28986
28986
|
DotFilledIcon as M,
|
|
28987
|
-
|
|
28988
|
-
|
|
28987
|
+
Item as Mn,
|
|
28988
|
+
goToCellLine as Mt,
|
|
28989
28989
|
PinLeftIcon as N,
|
|
28990
|
-
|
|
28991
|
-
|
|
28990
|
+
Root2$2 as Nn,
|
|
28991
|
+
DeferredRequestRegistry as Nt,
|
|
28992
28992
|
ChatBubbleIcon as O,
|
|
28993
|
-
|
|
28994
|
-
|
|
28993
|
+
selectAtom as On,
|
|
28994
|
+
PathBuilder as Ot,
|
|
28995
28995
|
PinRightIcon as P,
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
28996
|
+
Trigger2 as Pn,
|
|
28997
|
+
generateUUID as Pt,
|
|
28998
|
+
notebookAtom as Q,
|
|
28999
|
+
esm_default as Qn,
|
|
29000
|
+
getRequestClient as Qt,
|
|
29000
29001
|
dataViewToBase64 as R,
|
|
29001
|
-
|
|
29002
|
-
|
|
29002
|
+
PaintRoller as Rn,
|
|
29003
|
+
variablesAtom as Rt,
|
|
29003
29004
|
AIContextRegistry as S,
|
|
29004
|
-
|
|
29005
|
-
|
|
29005
|
+
OBJECT_ID_ATTR as Sn,
|
|
29006
|
+
isInternalCellName as St,
|
|
29006
29007
|
AccordionItem as T,
|
|
29007
|
-
|
|
29008
|
-
|
|
29008
|
+
jsonToMarkdown as Tn,
|
|
29009
|
+
customPythonLanguageSupport as Tt,
|
|
29009
29010
|
getMarimoExportContext as U,
|
|
29010
|
-
|
|
29011
|
-
|
|
29011
|
+
Info as Un,
|
|
29012
|
+
PluralWord as Ut,
|
|
29012
29013
|
safeExtractSetUIElementMessageBuffers as V,
|
|
29013
|
-
|
|
29014
|
-
|
|
29014
|
+
LoaderCircle as Vn,
|
|
29015
|
+
SQLParser as Vt,
|
|
29015
29016
|
hasTrustedExportContext as W,
|
|
29016
|
-
|
|
29017
|
-
|
|
29018
|
-
|
|
29019
|
-
|
|
29020
|
-
|
|
29021
|
-
|
|
29022
|
-
|
|
29023
|
-
|
|
29024
|
-
|
|
29025
|
-
|
|
29026
|
-
|
|
29017
|
+
FileText as Wn,
|
|
29018
|
+
PluralWords as Wt,
|
|
29019
|
+
hasOnlyOneCellAtom as X,
|
|
29020
|
+
CircleAlert as Xn,
|
|
29021
|
+
getTableType as Xt,
|
|
29022
|
+
getCellNames as Y,
|
|
29023
|
+
CircleX as Yn,
|
|
29024
|
+
dataSourceConnectionsAtom as Yt,
|
|
29025
|
+
initialNotebookState as Z,
|
|
29026
|
+
Braces as Zn,
|
|
29027
|
+
convertStatsName as Zt,
|
|
29027
29028
|
getDatasourceContext as _,
|
|
29028
29029
|
__tla,
|
|
29029
|
-
|
|
29030
|
-
|
|
29030
|
+
CellOutputId as _n,
|
|
29031
|
+
sanitizeHtml as _t,
|
|
29031
29032
|
useCellFocusActions as a,
|
|
29032
|
-
|
|
29033
|
-
|
|
29033
|
+
isMarimoErrorsMime as an,
|
|
29034
|
+
createCell as at,
|
|
29034
29035
|
contextToXml as b,
|
|
29035
|
-
|
|
29036
|
-
|
|
29036
|
+
UIElementId as bn,
|
|
29037
|
+
displayCellName as bt,
|
|
29037
29038
|
Popover as c,
|
|
29038
|
-
|
|
29039
|
-
|
|
29039
|
+
elementContainsMarimoCellFile as cn,
|
|
29040
|
+
AnsiUp as ct,
|
|
29040
29041
|
PopoverTrigger as d,
|
|
29041
|
-
|
|
29042
|
-
|
|
29043
|
-
|
|
29044
|
-
|
|
29042
|
+
NotebookScopedLocalStorage as dn,
|
|
29043
|
+
kioskModeAtom as dt,
|
|
29044
|
+
useRequestClient as en,
|
|
29045
|
+
numColumnsAtom as et,
|
|
29045
29046
|
isOutputEmpty as f,
|
|
29046
|
-
|
|
29047
|
-
|
|
29047
|
+
ZodLocalStorage as fn,
|
|
29048
|
+
useInstallAllowed as ft,
|
|
29048
29049
|
formatDatasourceContextForCell as g,
|
|
29049
|
-
|
|
29050
|
-
|
|
29050
|
+
parseInitialValue as gn,
|
|
29051
|
+
headingToIdentifier as gt,
|
|
29051
29052
|
DatasourceContextProvider as h,
|
|
29052
|
-
|
|
29053
|
-
|
|
29053
|
+
parseDataset as hn,
|
|
29054
|
+
outputIsStale as ht,
|
|
29054
29055
|
LazyAnyLanguageCodeMirror as i,
|
|
29055
|
-
|
|
29056
|
-
|
|
29056
|
+
isErrorMime as in,
|
|
29057
|
+
useCellNames as it,
|
|
29057
29058
|
ChevronRightIcon as j,
|
|
29058
|
-
|
|
29059
|
-
|
|
29059
|
+
Content2$1 as jn,
|
|
29060
|
+
moveToEndOfEditor as jt,
|
|
29060
29061
|
CheckIcon as k,
|
|
29061
|
-
|
|
29062
|
-
|
|
29062
|
+
Anchor2 as kn,
|
|
29063
|
+
Paths as kt,
|
|
29063
29064
|
PopoverClose as l,
|
|
29064
|
-
|
|
29065
|
-
|
|
29065
|
+
extractAllTracebackInfo as ln,
|
|
29066
|
+
getInitialAppMode as lt,
|
|
29066
29067
|
useExpandedOutput as m,
|
|
29067
|
-
|
|
29068
|
-
|
|
29068
|
+
parseAttrValue as mn,
|
|
29069
|
+
outputIsLoading as mt,
|
|
29069
29070
|
Spinner as n,
|
|
29070
|
-
|
|
29071
|
-
|
|
29071
|
+
publishedCellClasses as nn,
|
|
29072
|
+
useCellActions as nt,
|
|
29072
29073
|
useLastFocusedCellId as o,
|
|
29073
|
-
|
|
29074
|
-
|
|
29074
|
+
isTracebackMime as on,
|
|
29075
|
+
ansiToPlainText as ot,
|
|
29075
29076
|
useExpandedConsoleOutput as p,
|
|
29076
|
-
|
|
29077
|
-
|
|
29078
|
-
|
|
29079
|
-
|
|
29080
|
-
|
|
29077
|
+
filenameAtom as pn,
|
|
29078
|
+
viewStateAtom as pt,
|
|
29079
|
+
createActions$1 as q,
|
|
29080
|
+
Database as qn,
|
|
29081
|
+
require_client as qt,
|
|
29081
29082
|
MarkdownRenderer as r,
|
|
29082
|
-
|
|
29083
|
-
|
|
29083
|
+
shouldHidePublishedCell as rn,
|
|
29084
|
+
useCellIds as rt,
|
|
29084
29085
|
maybeAddAltairImport as s,
|
|
29085
|
-
|
|
29086
|
-
|
|
29086
|
+
singleFacet as sn,
|
|
29087
|
+
parseHtmlContent as st,
|
|
29087
29088
|
toPng$1 as t,
|
|
29088
|
-
|
|
29089
|
-
|
|
29089
|
+
isUninstantiated as tn,
|
|
29090
|
+
reducer$1 as tt,
|
|
29090
29091
|
PopoverContent as u,
|
|
29091
|
-
|
|
29092
|
-
|
|
29092
|
+
getTracebackInfo as un,
|
|
29093
|
+
initialModeAtom as ut,
|
|
29093
29094
|
Boosts as v,
|
|
29094
|
-
|
|
29095
|
-
|
|
29095
|
+
HTMLCellId as vn,
|
|
29096
|
+
DATA_CELL_ID as vt,
|
|
29096
29097
|
AccordionContent as w,
|
|
29097
|
-
|
|
29098
|
-
|
|
29098
|
+
jsonParseWithSpecialChar as wn,
|
|
29099
|
+
Checkbox as wt,
|
|
29099
29100
|
AIContextProvider as x,
|
|
29100
|
-
|
|
29101
|
-
|
|
29101
|
+
findCellId as xn,
|
|
29102
|
+
getValidName as xt,
|
|
29102
29103
|
Sections as y,
|
|
29103
|
-
|
|
29104
|
-
|
|
29104
|
+
SCRATCH_CELL_ID as yn,
|
|
29105
|
+
getCellDomProps as yt,
|
|
29105
29106
|
extractBase64FromDataURL as z,
|
|
29106
|
-
|
|
29107
|
-
|
|
29107
|
+
NotebookPen as zn,
|
|
29108
|
+
getFeatureFlag as zt
|
|
29108
29109
|
};
|