@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.
@@ -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 createActions$1, isUninstantiated, MarimoIncomingMessageEvent, Trash2, PathBuilder, DotFilledIcon, Database, variablesAtom, contextToXml, Anchor2, getValidName, AccordionContent, Root2$2, customPythonLanguageSupport, Accordion, Item, Checkbox, BorderAllIcon, Layers, generateUUID, base64ToDataView, esm_default, require_client, PinRightIcon, CircleX, PluralWords, ChatBubbleIcon, Info, useChromeActions, extractBase64FromDataURL, getTableType, base64ToUint8Array, import_lib$1, allTablesAtom, CheckIcon, File, repl, MarimoValueReadyEvent, PaintRoller, moveToEndOfEditor, MarimoValueUpdateEvent, NotebookPen, goToCellLine, AccordionItem, Trigger2, MarkdownLanguageAdapter, createInputEvent, LoaderCircle, DeferredRequestRegistry, cellErrorsAtom, useRequestClient, ChevronDownIcon, FileText, adaptForLocalStorage, Sections, selectAtom, displayCellName, AIContextRegistry, Content2$1, normalizeName, deserializeBlob, CircleAlert, DATA_TYPE_ICON, PinLeftIcon, Columns2, PluralWord, base64ToDataURL, Braces, getDataTypeColor, safeExtractSetUIElementMessageBuffers, getRequestClient, isDataURLString, convertStatsName, renderHTML, requestClientAtom, useExpandedConsoleOutput, jsonParseWithSpecialChar, isErrorMime, toPng$1, ZodLocalStorage, reducer$1, getDatasourceContext, atomWithReducer, DATA_CELL_ID, useCellFocusActions, parseDataset, useCellNames, Spinner, HTMLCellId, getInitialAppMode, singleFacet, getCellEditorView, Popover, SCRATCH_CELL_ID, initialModeAtom, isOutputEmpty, RANDOM_ID_ATTR, outputIsStale, PopoverTrigger, OBJECT_ID_ATTR, outputIsLoading, PythonIcon, NotebookScopedLocalStorage, numColumnsAtom, MarimoValueInputEvent, Table2, Paths, AccordionTrigger, Wrench, createVariableInfoElement, useLastFocusedCellId, parseInitialValue, createCell, PopoverContent, findCellId, viewStateAtom, blobToString, extractAllTracebackInfo, notebookAtom, MarkdownRenderer, filenameAtom, useCellActions, PopoverClose, UIElementId, kioskModeAtom, dataViewToBase64, dataSourceConnectionsAtom, filesToBase64, getTracebackInfo, notebookOutline, LazyAnyLanguageCodeMirror, parseAttrValue, useCellIds, processOutput, elementContainsMarimoCellFile, getCellNames, maybeAddAltairImport, CellOutputId, AnsiUp, useExpandedOutput, jsonToMarkdown, headingToIdentifier, AIContextProvider, Close$1, isInternalCellName, Boosts, atomWithStorage, getCellDomProps, DatasourceContextProvider, jsonToTSV, sanitizeHtml, ChevronRightIcon, Eye, jotaiJsonStorage;
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
- const hasRunAnyCellAtom = atom(false);
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
- createActions$1 as $,
28414
- isUninstantiated as $t,
28427
+ cellErrorsAtom as $,
28428
+ useRequestClient as $t,
28415
28429
  MarimoIncomingMessageEvent as A,
28416
- Trash2 as An,
28417
- PathBuilder as At,
28430
+ Wrench as An,
28431
+ createVariableInfoElement as At,
28418
28432
  DotFilledIcon as B,
28419
- Database as Bn,
28420
- variablesAtom as Bt,
28433
+ Eye as Bn,
28434
+ jotaiJsonStorage as Bt,
28421
28435
  contextToXml as C,
28422
- Anchor2 as Cn,
28423
- getValidName as Ct,
28436
+ selectAtom as Cn,
28437
+ displayCellName as Ct,
28424
28438
  AccordionContent as D,
28425
- Root2$2 as Dn,
28426
- customPythonLanguageSupport as Dt,
28439
+ Item as Dn,
28440
+ Checkbox as Dt,
28427
28441
  Accordion as E,
28428
- Item as En,
28429
- Checkbox as Et,
28442
+ Content2$1 as En,
28443
+ normalizeName as Et,
28430
28444
  BorderAllIcon as F,
28431
- Layers as Fn,
28432
- generateUUID as Ft,
28445
+ LoaderCircle as Fn,
28446
+ DeferredRequestRegistry as Ft,
28433
28447
  base64ToDataView as G,
28434
- esm_default as Gn,
28435
- require_client as Gt,
28448
+ Braces as Gn,
28449
+ getDataTypeColor as Gt,
28436
28450
  PinRightIcon as H,
28437
- CircleX as Hn,
28438
- PluralWords as Ht,
28451
+ Columns2 as Hn,
28452
+ PluralWord as Ht,
28439
28453
  ChatBubbleIcon as I,
28440
- Info as In,
28441
- useChromeActions as It,
28454
+ Layers as In,
28455
+ generateUUID as It,
28442
28456
  extractBase64FromDataURL as J,
28443
- getTableType as Jt,
28457
+ dataSourceConnectionsAtom as Jt,
28444
28458
  base64ToUint8Array as K,
28445
- import_lib$1 as Kn,
28446
- allTablesAtom as Kt,
28459
+ esm_default as Kn,
28460
+ require_client as Kt,
28447
28461
  CheckIcon as L,
28448
- File as Ln,
28449
- repl as Lt,
28462
+ Info as Ln,
28463
+ useChromeActions as Lt,
28450
28464
  MarimoValueReadyEvent as M,
28451
- PaintRoller as Mn,
28452
- moveToEndOfEditor as Mt,
28465
+ Table2 as Mn,
28466
+ Paths as Mt,
28453
28467
  MarimoValueUpdateEvent as N,
28454
- NotebookPen as Nn,
28455
- goToCellLine as Nt,
28468
+ PaintRoller as Nn,
28469
+ moveToEndOfEditor as Nt,
28456
28470
  AccordionItem as O,
28457
- Trigger2 as On,
28458
- MarkdownLanguageAdapter as Ot,
28471
+ Root2$2 as On,
28472
+ customPythonLanguageSupport as Ot,
28459
28473
  createInputEvent as P,
28460
- LoaderCircle as Pn,
28461
- DeferredRequestRegistry as Pt,
28462
- cellErrorsAtom as Q,
28463
- useRequestClient as Qt,
28474
+ NotebookPen as Pn,
28475
+ goToCellLine as Pt,
28476
+ hasRunAnyCellAtom as Q,
28477
+ requestClientAtom as Qt,
28464
28478
  ChevronDownIcon as R,
28465
- FileText as Rn,
28466
- adaptForLocalStorage as Rt,
28479
+ File as Rn,
28480
+ repl as Rt,
28467
28481
  Sections as S,
28468
- selectAtom as Sn,
28469
- displayCellName as St,
28482
+ atomWithStorage as Sn,
28483
+ getCellDomProps as St,
28470
28484
  AIContextRegistry as T,
28471
- Content2$1 as Tn,
28472
- normalizeName as Tt,
28485
+ Close$1 as Tn,
28486
+ isInternalCellName as Tt,
28473
28487
  deserializeBlob as U,
28474
- CircleAlert as Un,
28475
- DATA_TYPE_ICON as Ut,
28488
+ CircleX as Un,
28489
+ PluralWords as Ut,
28476
28490
  PinLeftIcon as V,
28477
- Columns2 as Vn,
28478
- PluralWord as Vt,
28491
+ Database as Vn,
28492
+ variablesAtom as Vt,
28479
28493
  base64ToDataURL as W,
28480
- Braces as Wn,
28481
- getDataTypeColor as Wt,
28494
+ CircleAlert as Wn,
28495
+ DATA_TYPE_ICON as Wt,
28482
28496
  safeExtractSetUIElementMessageBuffers as X,
28483
- getRequestClient as Xt,
28497
+ convertStatsName as Xt,
28484
28498
  isDataURLString as Y,
28485
- convertStatsName as Yt,
28499
+ getTableType as Yt,
28486
28500
  renderHTML as Z,
28487
- requestClientAtom as Zt,
28501
+ getRequestClient as Zt,
28488
28502
  useExpandedConsoleOutput as _,
28489
28503
  __tla,
28490
- jsonParseWithSpecialChar as _n,
28491
- isErrorMime as _t,
28504
+ RANDOM_ID_ATTR as _n,
28505
+ outputIsStale as _t,
28492
28506
  toPng$1 as a,
28493
- ZodLocalStorage as an,
28494
- reducer$1 as at,
28507
+ NotebookScopedLocalStorage as an,
28508
+ numColumnsAtom as at,
28495
28509
  getDatasourceContext as b,
28496
- atomWithReducer as bn,
28497
- DATA_CELL_ID as bt,
28510
+ jsonToTSV as bn,
28511
+ sanitizeHtml as bt,
28498
28512
  useCellFocusActions as c,
28499
- parseDataset as cn,
28500
- useCellNames as ct,
28513
+ parseAttrValue as cn,
28514
+ useCellIds as ct,
28501
28515
  Spinner as d,
28502
- HTMLCellId as dn,
28503
- getInitialAppMode as dt,
28504
- singleFacet as en,
28505
- getCellEditorView as et,
28516
+ CellOutputId as dn,
28517
+ AnsiUp as dt,
28518
+ isUninstantiated as en,
28519
+ createActions$1 as et,
28506
28520
  Popover as f,
28507
- SCRATCH_CELL_ID as fn,
28508
- initialModeAtom as ft,
28521
+ HTMLCellId as fn,
28522
+ getInitialAppMode as ft,
28509
28523
  isOutputEmpty as g,
28510
- RANDOM_ID_ATTR as gn,
28511
- outputIsStale as gt,
28524
+ OBJECT_ID_ATTR as gn,
28525
+ outputIsLoading as gt,
28512
28526
  PopoverTrigger as h,
28513
- OBJECT_ID_ATTR as hn,
28514
- outputIsLoading as ht,
28527
+ findCellId as hn,
28528
+ viewStateAtom as ht,
28515
28529
  PythonIcon as i,
28516
- NotebookScopedLocalStorage as in,
28517
- numColumnsAtom as it,
28530
+ getTracebackInfo as in,
28531
+ notebookOutline as it,
28518
28532
  MarimoValueInputEvent as j,
28519
- Table2 as jn,
28520
- Paths as jt,
28533
+ Trash2 as jn,
28534
+ PathBuilder as jt,
28521
28535
  AccordionTrigger as k,
28522
- Wrench as kn,
28523
- createVariableInfoElement as kt,
28536
+ Trigger2 as kn,
28537
+ MarkdownLanguageAdapter as kt,
28524
28538
  useLastFocusedCellId as l,
28525
- parseInitialValue as ln,
28526
- createCell as lt,
28539
+ parseDataset as ln,
28540
+ useCellNames as lt,
28527
28541
  PopoverContent as m,
28528
- findCellId as mn,
28529
- viewStateAtom as mt,
28542
+ UIElementId as mn,
28543
+ kioskModeAtom as mt,
28530
28544
  blobToString as n,
28531
- extractAllTracebackInfo as nn,
28532
- notebookAtom as nt,
28545
+ elementContainsMarimoCellFile as nn,
28546
+ getCellNames as nt,
28533
28547
  MarkdownRenderer as o,
28534
- filenameAtom as on,
28535
- useCellActions as ot,
28548
+ ZodLocalStorage as on,
28549
+ reducer$1 as ot,
28536
28550
  PopoverClose as p,
28537
- UIElementId as pn,
28538
- kioskModeAtom as pt,
28551
+ SCRATCH_CELL_ID as pn,
28552
+ initialModeAtom as pt,
28539
28553
  dataViewToBase64 as q,
28540
- dataSourceConnectionsAtom as qt,
28554
+ import_lib$1 as qn,
28555
+ allTablesAtom as qt,
28541
28556
  filesToBase64 as r,
28542
- getTracebackInfo as rn,
28543
- notebookOutline as rt,
28557
+ extractAllTracebackInfo as rn,
28558
+ notebookAtom as rt,
28544
28559
  LazyAnyLanguageCodeMirror as s,
28545
- parseAttrValue as sn,
28546
- useCellIds as st,
28560
+ filenameAtom as sn,
28561
+ useCellActions as st,
28547
28562
  processOutput as t,
28548
- elementContainsMarimoCellFile as tn,
28549
- getCellNames as tt,
28563
+ singleFacet as tn,
28564
+ getCellEditorView as tt,
28550
28565
  maybeAddAltairImport as u,
28551
- CellOutputId as un,
28552
- AnsiUp as ut,
28566
+ parseInitialValue as un,
28567
+ createCell as ut,
28553
28568
  useExpandedOutput as v,
28554
- jsonToMarkdown as vn,
28555
- headingToIdentifier as vt,
28569
+ jsonParseWithSpecialChar as vn,
28570
+ isErrorMime as vt,
28556
28571
  AIContextProvider as w,
28557
- Close$1 as wn,
28558
- isInternalCellName as wt,
28572
+ Anchor2 as wn,
28573
+ getValidName as wt,
28559
28574
  Boosts as x,
28560
- atomWithStorage as xn,
28561
- getCellDomProps as xt,
28575
+ atomWithReducer as xn,
28576
+ DATA_CELL_ID as xt,
28562
28577
  DatasourceContextProvider as y,
28563
- jsonToTSV as yn,
28564
- sanitizeHtml as yt,
28578
+ jsonToMarkdown as yn,
28579
+ headingToIdentifier as yt,
28565
28580
  ChevronRightIcon as z,
28566
- Eye as zn,
28567
- jotaiJsonStorage as zt
28581
+ FileText as zn,
28582
+ adaptForLocalStorage as zt
28568
28583
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.23.2-dev38",
3
+ "version": "0.23.2-dev40",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",