@marimo-team/islands 0.23.15-dev30 → 0.23.15-dev32

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.
@@ -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 reducer$1, isUninstantiated, ChevronDownIcon, Item, goToCellLine, isDataURLString, Layers, MarkdownParser, Accordion, jsonToMarkdown, customPythonLanguageSupport, BorderAllIcon, Anchor2, Paths, AccordionTrigger, selectAtom, PathBuilder, base64ToDataURL, Table2, jotaiJsonStorage, hasRunAnyCellAtom, Database, require_client, renderHTML, FileText, PluralWords, base64ToDataView, PaintRoller, variablesAtom, getCellNames, CircleAlert, getTableType, createActions$1, Columns2, allTablesAtom, base64ToUint8Array, NotebookPen, getFeatureFlag, DotFilledIcon, Trigger2, generateUUID, PinLeftIcon, Wrench, useChromeActions, ChatBubbleIcon, Close$1, toggleBreakpoint, PinRightIcon, Trash2, adaptForLocalStorage, numColumnsAtom, useRequestClient, dataViewToBase64, Minus, repl, AIContextRegistry, jsonParseWithSpecialChar, Checkbox, AccordionItem, atomWithStorage, createVariableInfoElement, getMarimoExportContext, Eye, DATA_TYPE_ICON, safeExtractSetUIElementMessageBuffers, Info, PluralWord, hasTrustedExportContext, ExternalLink, getDataTypeColor, notebookAtom, esm_default, getRequestClient, hasOnlyOneCellAtom, Braces, convertStatsName, notebookOutline, import_lib$1, requestClientAtom, getDatasourceContext, SCRATCH_CELL_ID, getCellDomProps, useCellFocusActions, singleFacet, parseHtmlContent, contextToXml, OBJECT_ID_ATTR, isInternalCellName, Popover, getTracebackInfo, initialModeAtom, PopoverTrigger, filenameAtom, viewStateAtom, publishedCellClasses, useCellActions, isOutputEmpty, parseAttrValue, outputIsLoading, formatDatasourceContextForCell, HTMLCellId, DATA_CELL_ID, DatasourceContextProvider, CellOutputId, sanitizeHtml, LazyAnyLanguageCodeMirror, isTracebackMime, ansiToPlainText, ChevronRightIcon, Root2$2, DeferredRequestRegistry, CheckIcon, Content2$1, moveToEndOfEditor, PopoverClose, NotebookScopedLocalStorage, kioskModeAtom, useExpandedOutput, parseInitialValue, headingToIdentifier, Spinner, isErrorMime, useCellNames, useLastFocusedCellId, elementContainsMarimoCellFile, AnsiUp, useExpandedConsoleOutput, parseDataset, outputIsStale, getCellEditorView, CircleX, dataSourceConnectionsAtom, MarkdownRenderer, isMarimoErrorsMime, createCell, maybeAddAltairImport, extractAllTracebackInfo, getInitialAppMode, toPng$1, shouldHidePublishedCell, useCellIds, PopoverContent, ZodLocalStorage, useInstallAllowed, Boosts, UIElementId, displayCellName, AccordionContent, atomWithReducer, MarkdownLanguageAdapter, AIContextProvider, RANDOM_ID_ATTR, normalizeName, Sections, findCellId, getValidName, extractBase64FromDataURL, LoaderCircle, SQLParser;
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 initialNotebookState() {
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
- reducer$1 as $,
28949
- isUninstantiated as $t,
28947
+ notebookOutline as $,
28948
+ import_lib$1 as $n,
28949
+ requestClientAtom as $t,
28950
28950
  ChevronDownIcon as A,
28951
- Item as An,
28952
- goToCellLine as At,
28951
+ Close$1 as An,
28952
+ toggleBreakpoint as At,
28953
28953
  isDataURLString as B,
28954
- Layers as Bn,
28955
- MarkdownParser as Bt,
28954
+ Minus as Bn,
28955
+ repl as Bt,
28956
28956
  Accordion as C,
28957
- jsonToMarkdown as Cn,
28958
- customPythonLanguageSupport as Ct,
28957
+ RANDOM_ID_ATTR as Cn,
28958
+ normalizeName as Ct,
28959
28959
  BorderAllIcon as D,
28960
- Anchor2 as Dn,
28961
- Paths as Dt,
28960
+ atomWithStorage as Dn,
28961
+ createVariableInfoElement as Dt,
28962
28962
  AccordionTrigger as E,
28963
- selectAtom as En,
28964
- PathBuilder as Et,
28963
+ atomWithReducer as En,
28964
+ MarkdownLanguageAdapter as Et,
28965
28965
  base64ToDataURL as F,
28966
- Table2 as Fn,
28967
- jotaiJsonStorage as Ft,
28966
+ Wrench as Fn,
28967
+ useChromeActions as Ft,
28968
28968
  hasRunAnyCellAtom as G,
28969
- Database as Gn,
28970
- require_client as Gt,
28969
+ Eye as Gn,
28970
+ DATA_TYPE_ICON as Gt,
28971
28971
  renderHTML as H,
28972
- FileText as Hn,
28973
- PluralWords as Ht,
28972
+ Layers as Hn,
28973
+ MarkdownParser as Ht,
28974
28974
  base64ToDataView as I,
28975
- PaintRoller as In,
28976
- variablesAtom as It,
28977
- getCellNames as J,
28978
- CircleAlert as Jn,
28979
- getTableType as Jt,
28980
- createActions$1 as K,
28981
- Columns2 as Kn,
28982
- allTablesAtom as Kt,
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
- NotebookPen as Ln,
28985
- getFeatureFlag as Lt,
28984
+ Table2 as Ln,
28985
+ jotaiJsonStorage as Lt,
28986
28986
  DotFilledIcon as M,
28987
- Trigger2 as Mn,
28988
- generateUUID as Mt,
28987
+ Item as Mn,
28988
+ goToCellLine as Mt,
28989
28989
  PinLeftIcon as N,
28990
- Wrench as Nn,
28991
- useChromeActions as Nt,
28990
+ Root2$2 as Nn,
28991
+ DeferredRequestRegistry as Nt,
28992
28992
  ChatBubbleIcon as O,
28993
- Close$1 as On,
28994
- toggleBreakpoint as Ot,
28993
+ selectAtom as On,
28994
+ PathBuilder as Ot,
28995
28995
  PinRightIcon as P,
28996
- Trash2 as Pn,
28997
- adaptForLocalStorage as Pt,
28998
- numColumnsAtom as Q,
28999
- useRequestClient as Qt,
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
- Minus as Rn,
29002
- repl as Rt,
29002
+ PaintRoller as Rn,
29003
+ variablesAtom as Rt,
29003
29004
  AIContextRegistry as S,
29004
- jsonParseWithSpecialChar as Sn,
29005
- Checkbox as St,
29005
+ OBJECT_ID_ATTR as Sn,
29006
+ isInternalCellName as St,
29006
29007
  AccordionItem as T,
29007
- atomWithStorage as Tn,
29008
- createVariableInfoElement as Tt,
29008
+ jsonToMarkdown as Tn,
29009
+ customPythonLanguageSupport as Tt,
29009
29010
  getMarimoExportContext as U,
29010
- Eye as Un,
29011
- DATA_TYPE_ICON as Ut,
29011
+ Info as Un,
29012
+ PluralWord as Ut,
29012
29013
  safeExtractSetUIElementMessageBuffers as V,
29013
- Info as Vn,
29014
- PluralWord as Vt,
29014
+ LoaderCircle as Vn,
29015
+ SQLParser as Vt,
29015
29016
  hasTrustedExportContext as W,
29016
- ExternalLink as Wn,
29017
- getDataTypeColor as Wt,
29018
- notebookAtom as X,
29019
- esm_default as Xn,
29020
- getRequestClient as Xt,
29021
- hasOnlyOneCellAtom as Y,
29022
- Braces as Yn,
29023
- convertStatsName as Yt,
29024
- notebookOutline as Z,
29025
- import_lib$1 as Zn,
29026
- requestClientAtom as Zt,
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
- SCRATCH_CELL_ID as _n,
29030
- getCellDomProps as _t,
29030
+ CellOutputId as _n,
29031
+ sanitizeHtml as _t,
29031
29032
  useCellFocusActions as a,
29032
- singleFacet as an,
29033
- parseHtmlContent as at,
29033
+ isMarimoErrorsMime as an,
29034
+ createCell as at,
29034
29035
  contextToXml as b,
29035
- OBJECT_ID_ATTR as bn,
29036
- isInternalCellName as bt,
29036
+ UIElementId as bn,
29037
+ displayCellName as bt,
29037
29038
  Popover as c,
29038
- getTracebackInfo as cn,
29039
- initialModeAtom as ct,
29039
+ elementContainsMarimoCellFile as cn,
29040
+ AnsiUp as ct,
29040
29041
  PopoverTrigger as d,
29041
- filenameAtom as dn,
29042
- viewStateAtom as dt,
29043
- publishedCellClasses as en,
29044
- useCellActions as et,
29042
+ NotebookScopedLocalStorage as dn,
29043
+ kioskModeAtom as dt,
29044
+ useRequestClient as en,
29045
+ numColumnsAtom as et,
29045
29046
  isOutputEmpty as f,
29046
- parseAttrValue as fn,
29047
- outputIsLoading as ft,
29047
+ ZodLocalStorage as fn,
29048
+ useInstallAllowed as ft,
29048
29049
  formatDatasourceContextForCell as g,
29049
- HTMLCellId as gn,
29050
- DATA_CELL_ID as gt,
29050
+ parseInitialValue as gn,
29051
+ headingToIdentifier as gt,
29051
29052
  DatasourceContextProvider as h,
29052
- CellOutputId as hn,
29053
- sanitizeHtml as ht,
29053
+ parseDataset as hn,
29054
+ outputIsStale as ht,
29054
29055
  LazyAnyLanguageCodeMirror as i,
29055
- isTracebackMime as in,
29056
- ansiToPlainText as it,
29056
+ isErrorMime as in,
29057
+ useCellNames as it,
29057
29058
  ChevronRightIcon as j,
29058
- Root2$2 as jn,
29059
- DeferredRequestRegistry as jt,
29059
+ Content2$1 as jn,
29060
+ moveToEndOfEditor as jt,
29060
29061
  CheckIcon as k,
29061
- Content2$1 as kn,
29062
- moveToEndOfEditor as kt,
29062
+ Anchor2 as kn,
29063
+ Paths as kt,
29063
29064
  PopoverClose as l,
29064
- NotebookScopedLocalStorage as ln,
29065
- kioskModeAtom as lt,
29065
+ extractAllTracebackInfo as ln,
29066
+ getInitialAppMode as lt,
29066
29067
  useExpandedOutput as m,
29067
- parseInitialValue as mn,
29068
- headingToIdentifier as mt,
29068
+ parseAttrValue as mn,
29069
+ outputIsLoading as mt,
29069
29070
  Spinner as n,
29070
- isErrorMime as nn,
29071
- useCellNames as nt,
29071
+ publishedCellClasses as nn,
29072
+ useCellActions as nt,
29072
29073
  useLastFocusedCellId as o,
29073
- elementContainsMarimoCellFile as on,
29074
- AnsiUp as ot,
29074
+ isTracebackMime as on,
29075
+ ansiToPlainText as ot,
29075
29076
  useExpandedConsoleOutput as p,
29076
- parseDataset as pn,
29077
- outputIsStale as pt,
29078
- getCellEditorView as q,
29079
- CircleX as qn,
29080
- dataSourceConnectionsAtom as qt,
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
- isMarimoErrorsMime as rn,
29083
- createCell as rt,
29083
+ shouldHidePublishedCell as rn,
29084
+ useCellIds as rt,
29084
29085
  maybeAddAltairImport as s,
29085
- extractAllTracebackInfo as sn,
29086
- getInitialAppMode as st,
29086
+ singleFacet as sn,
29087
+ parseHtmlContent as st,
29087
29088
  toPng$1 as t,
29088
- shouldHidePublishedCell as tn,
29089
- useCellIds as tt,
29089
+ isUninstantiated as tn,
29090
+ reducer$1 as tt,
29090
29091
  PopoverContent as u,
29091
- ZodLocalStorage as un,
29092
- useInstallAllowed as ut,
29092
+ getTracebackInfo as un,
29093
+ initialModeAtom as ut,
29093
29094
  Boosts as v,
29094
- UIElementId as vn,
29095
- displayCellName as vt,
29095
+ HTMLCellId as vn,
29096
+ DATA_CELL_ID as vt,
29096
29097
  AccordionContent as w,
29097
- atomWithReducer as wn,
29098
- MarkdownLanguageAdapter as wt,
29098
+ jsonParseWithSpecialChar as wn,
29099
+ Checkbox as wt,
29099
29100
  AIContextProvider as x,
29100
- RANDOM_ID_ATTR as xn,
29101
- normalizeName as xt,
29101
+ findCellId as xn,
29102
+ getValidName as xt,
29102
29103
  Sections as y,
29103
- findCellId as yn,
29104
- getValidName as yt,
29104
+ SCRATCH_CELL_ID as yn,
29105
+ getCellDomProps as yt,
29105
29106
  extractBase64FromDataURL as z,
29106
- LoaderCircle as zn,
29107
- SQLParser as zt
29107
+ NotebookPen as zn,
29108
+ getFeatureFlag as zt
29108
29109
  };