@marimo-team/islands 0.23.7-dev26 → 0.23.7-dev29

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.
@@ -4303,7 +4303,7 @@ function mergeObjects(e18, h) {
4303
4303
  if (e18 === void 0) return h;
4304
4304
  if (h === void 0) return e18;
4305
4305
  let g = { ...e18 };
4306
- for (let _ in h) if (!(_ === "__proto__" || _ === "constructor" || _ === "prototype") && Object.prototype.hasOwnProperty.call(h, _)) {
4306
+ for (let _ in h) if (Object.prototype.hasOwnProperty.call(h, _)) {
4307
4307
  let v = h[_];
4308
4308
  if (v === void 0) continue;
4309
4309
  let y = _ in e18 ? e18[_] : void 0, b = typeof v == "object" && !!v && !Array.isArray(v) && !(v instanceof Date) && !(v instanceof RegExp), x = typeof y == "object" && !!y && !Array.isArray(y) && !(y instanceof Date) && !(y instanceof RegExp);
@@ -5373,6 +5373,12 @@ async function consumeStream({ stream: e18, onError: h }) {
5373
5373
  createIdGenerator({
5374
5374
  prefix: "aitxt",
5375
5375
  size: 24
5376
+ }), createIdGenerator({
5377
+ prefix: "call",
5378
+ size: 24
5379
+ }), createIdGenerator({
5380
+ prefix: "call",
5381
+ size: 24
5376
5382
  }), createIdGenerator({
5377
5383
  prefix: "aiobj",
5378
5384
  size: 24
@@ -25668,7 +25668,7 @@ ${_}`,
25668
25668
  return Logger.warn("Failed to get version from mount config"), null;
25669
25669
  }
25670
25670
  }
25671
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-dev26");
25671
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-dev29");
25672
25672
  showCodeInRunModeAtom = atom(true);
25673
25673
  atom(null);
25674
25674
  var import_compiler_runtime = require_compiler_runtime();
package/dist/main.js CHANGED
@@ -26,7 +26,7 @@ import { $ as useCellActions, At as DeferredRequestRegistry, B as safeExtractSet
26
26
  import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BOg95xG5.js";
27
27
  import { o as useSize, s as Root$2, u as createLucideIcon } from "./dist-D3ZI9nhS.js";
28
28
  import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-hVaaZsY5.js";
29
- import { $ as filtersToFilterGroup, A as contextAwarePanelOwner, At as Funnel, B as TableCell, Bt as ChevronLeft, C as prettifyRowCount, Ct as useOverflowDetection, D as ContextAwarePanelItem, Dt as EmotionCacheProvider, E as ComboboxItem, Et as HtmlOutput, F as Toggle, Ft as Code, G as generateColumns, H as TableHeader, I as Fill, It as ChevronsUpDown, J as ColumnChartContext, K as inferFieldTypes, L as Provider$1, Lt as ChevronsRight, M as isCellAwareAtom, N as SlotNames, Nt as Ellipsis, O as PANEL_TYPES, Ot as TextWrap, P as slotsController, Pt as Download, Q as usePrevious$1, R as Table, Rt as ChevronsLeft, S as prettifyRowColumnCount, St as LazyVegaEmbed, T as Combobox, Tt as Kbd, U as TableRow, V as TableHead, Vt as ArrowDownWideNarrow, W as NAMELESS_COLUMN_PREFIX, X as DelayMount, Y as ColumnChartSpecModel, Z as useIntersectionObserver, _ as downloadBlob, _t as TabsList, at as TOO_MANY_ROWS, b as Progress, bt as ChartInfoState, c as Slide, ct as Command, d as JsonOutput, dt as CommandItem, et as getPageIndexForRow, f as OutputArea, ft as CommandList, g as ADD_PRINTING_CLASS, gt as TabsContent, h as InstallPackageButton, ht as Tabs, it as SELECT_COLUMN_ID, j as contextAwarePanelType, jt as EyeOff, k as contextAwarePanelOpen, kt as GripHorizontal, l as RadioGroup, lt as CommandEmpty, m as DataTable, mt as Maps, n as marimoVersionAtom, nt as loadTableData, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as toFieldTypes, p as OutputRenderer, pt as CommandSeparator, q as renderCellValue, r as showCodeInRunModeAtom, rt as INDEX_COLUMN_NAME, st as getMimeValues, t as useNotebookCodeAvailable, tt as loadTableAndRawData, u as RadioGroupItem, ut as CommandInput, v as downloadByURL, vt as TabsTrigger, w as useInternalStateWithSync, wt as RenderTextWithLinks, x as Filenames, xt as ChartLoadingState, y as downloadHTMLAsImage, yt as ChartErrorState, z as TableBody, zt as ChevronsDownUp, __tla as __tla_2 } from "./code-visibility-Dnethp72.js";
29
+ import { $ as filtersToFilterGroup, A as contextAwarePanelOwner, At as Funnel, B as TableCell, Bt as ChevronLeft, C as prettifyRowCount, Ct as useOverflowDetection, D as ContextAwarePanelItem, Dt as EmotionCacheProvider, E as ComboboxItem, Et as HtmlOutput, F as Toggle, Ft as Code, G as generateColumns, H as TableHeader, I as Fill, It as ChevronsUpDown, J as ColumnChartContext, K as inferFieldTypes, L as Provider$1, Lt as ChevronsRight, M as isCellAwareAtom, N as SlotNames, Nt as Ellipsis, O as PANEL_TYPES, Ot as TextWrap, P as slotsController, Pt as Download, Q as usePrevious$1, R as Table, Rt as ChevronsLeft, S as prettifyRowColumnCount, St as LazyVegaEmbed, T as Combobox, Tt as Kbd, U as TableRow, V as TableHead, Vt as ArrowDownWideNarrow, W as NAMELESS_COLUMN_PREFIX, X as DelayMount, Y as ColumnChartSpecModel, Z as useIntersectionObserver, _ as downloadBlob, _t as TabsList, at as TOO_MANY_ROWS, b as Progress, bt as ChartInfoState, c as Slide, ct as Command, d as JsonOutput, dt as CommandItem, et as getPageIndexForRow, f as OutputArea, ft as CommandList, g as ADD_PRINTING_CLASS, gt as TabsContent, h as InstallPackageButton, ht as Tabs, it as SELECT_COLUMN_ID, j as contextAwarePanelType, jt as EyeOff, k as contextAwarePanelOpen, kt as GripHorizontal, l as RadioGroup, lt as CommandEmpty, m as DataTable, mt as Maps, n as marimoVersionAtom, nt as loadTableData, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as toFieldTypes, p as OutputRenderer, pt as CommandSeparator, q as renderCellValue, r as showCodeInRunModeAtom, rt as INDEX_COLUMN_NAME, st as getMimeValues, t as useNotebookCodeAvailable, tt as loadTableAndRawData, u as RadioGroupItem, ut as CommandInput, v as downloadByURL, vt as TabsTrigger, w as useInternalStateWithSync, wt as RenderTextWithLinks, x as Filenames, xt as ChartLoadingState, y as downloadHTMLAsImage, yt as ChartErrorState, z as TableBody, zt as ChevronsDownUp, __tla as __tla_2 } from "./code-visibility-aWhw4oCc.js";
30
30
  import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-BF6-z62y.js";
31
31
  import { n as $fb18d541ea1ad717$export$ad991b66133851cf, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B_9k85Ex.js";
32
32
  import { t as Check } from "./check-BcUIXnUT.js";
@@ -13569,7 +13569,7 @@ let __tla = Promise.all([
13569
13569
  };
13570
13570
  }
13571
13571
  };
13572
- var LazyChatbot = import_react.lazy(() => import("./chat-ui-Den2QMz-.js").then((e) => ({
13572
+ var LazyChatbot = import_react.lazy(() => import("./chat-ui-CufH8sfF.js").then((e) => ({
13573
13573
  default: e.Chatbot
13574
13574
  }))), messageSchema = array(object({
13575
13575
  id: string(),
@@ -44600,7 +44600,7 @@ ${c}
44600
44600
  if (l && l !== "slide") return l;
44601
44601
  if (c == null ? void 0 : c.has(e)) return "skip";
44602
44602
  }
44603
- var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-C--xg3Kk.js"));
44603
+ var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-dGkeSSB-.js"));
44604
44604
  const SlidesLayoutPlugin = {
44605
44605
  type: "slides",
44606
44606
  name: "Slides",
@@ -8,7 +8,7 @@ import { t as require_react } from "./react-DA-nE2FX.js";
8
8
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
9
9
  import "./html-to-image-DxWM1HVj.js";
10
10
  import "./chunk-5FQGJX7Z-BOg95xG5.js";
11
- import { Ft as Code, Mt as Expand, a as DEFAULT_SLIDE_TYPE, c as Slide, i as DEFAULT_DECK_TRANSITION, jt as EyeOff, s as SlideSidebar, t as useNotebookCodeAvailable } from "./code-visibility-Dnethp72.js";
11
+ import { Ft as Code, Mt as Expand, a as DEFAULT_SLIDE_TYPE, c as Slide, i as DEFAULT_DECK_TRANSITION, jt as EyeOff, s as SlideSidebar, t as useNotebookCodeAvailable } from "./code-visibility-aWhw4oCc.js";
12
12
  import "./input-Cc1Vvw9A.js";
13
13
  import "./toDate-CJWlVNGD.js";
14
14
  import "./react-dom-BWRJ_g_k.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.23.7-dev26",
3
+ "version": "0.23.7-dev29",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "./unstable_internal/*": "./src/*"
22
22
  },
23
23
  "dependencies": {
24
- "@ai-sdk/react": "^3.0.176",
24
+ "@ai-sdk/react": "^3.0.134",
25
25
  "@anywidget/types": "^0.2.0",
26
26
  "@codemirror/autocomplete": "^6.20.1",
27
27
  "@codemirror/commands": "^6.10.2",
@@ -93,7 +93,7 @@
93
93
  "@xterm/addon-web-links": "^0.12.0",
94
94
  "@xterm/xterm": "^5.5.0",
95
95
  "@zed-industries/agent-client-protocol": "^0.4.5",
96
- "ai": "^6.0.174",
96
+ "ai": "^6.0.129",
97
97
  "ansi_up": "^6.0.6",
98
98
  "class-variance-authority": "^0.7.1",
99
99
  "clsx": "^2.1.1",
@@ -133,7 +133,12 @@ export const ContextAwarePanel: React.FC = () => {
133
133
  onDragging={handleDragging}
134
134
  className="resize-handle border-border z-20 print:hidden border-l"
135
135
  />
136
- <Panel defaultSize={25} minSize={25} maxSize={80}>
136
+ <Panel
137
+ data-testid="chrome-context-aware-panel"
138
+ defaultSize={25}
139
+ minSize={25}
140
+ maxSize={80}
141
+ >
137
142
  {renderBody()}
138
143
  </Panel>
139
144
  </>
@@ -167,7 +172,10 @@ const ResizableComponent = ({ children }: ResizableComponentProps) => {
167
172
  });
168
173
 
169
174
  return (
170
- <div className="absolute z-40 right-0 h-full bg-background flex flex-row">
175
+ <div
176
+ data-testid="chrome-context-aware-panel"
177
+ className="absolute z-40 right-0 h-full bg-background flex flex-row"
178
+ >
171
179
  <div
172
180
  ref={handleRefs.left}
173
181
  className="w-1 h-full cursor-col-resize border-l"
@@ -537,6 +537,7 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {
537
537
  {helperPanel}
538
538
  <Panel
539
539
  id="app-chrome-body"
540
+ data-testid="chrome-body"
540
541
  className={cn(isDeveloperPanelOpen && !isSidebarOpen && "border-l")}
541
542
  >
542
543
  <PanelGroup autoSaveId="marimo:chrome:v1:l1" direction="vertical">
@@ -58,7 +58,10 @@ export const Footer: React.FC = () => {
58
58
  });
59
59
 
60
60
  return (
61
- <footer className="h-10 py-1 gap-1 bg-background flex items-center text-muted-foreground text-md pl-2 pr-1 border-t border-border select-none print:hidden text-sm z-50 hide-on-fullscreen overflow-x-auto overflow-y-hidden scrollbar-thin">
61
+ <footer
62
+ data-testid="chrome-footer"
63
+ className="h-10 py-1 gap-1 bg-background flex items-center text-muted-foreground text-md pl-2 pr-1 border-t border-border select-none print:hidden text-sm z-50 hide-on-fullscreen overflow-x-auto overflow-y-hidden scrollbar-thin"
64
+ >
62
65
  <FooterItem
63
66
  className="h-full"
64
67
  tooltip={
@@ -3,7 +3,10 @@ import type { PropsWithChildren } from "react";
3
3
 
4
4
  export const PanelsWrapper: React.FC<PropsWithChildren> = ({ children }) => {
5
5
  return (
6
- <div className="flex flex-col flex-1 overflow-hidden absolute inset-0 print:relative">
6
+ <div
7
+ data-testid="chrome-wrapper"
8
+ className="flex flex-col flex-1 overflow-hidden absolute inset-0 print:relative"
9
+ >
7
10
  {children}
8
11
  </div>
9
12
  );
@@ -115,7 +115,10 @@ export const Sidebar: React.FC = () => {
115
115
  ]);
116
116
 
117
117
  return (
118
- <div className="h-full pt-4 pb-1 px-1 flex flex-col items-start text-muted-foreground text-md select-none text-sm z-50 dark:bg-background print:hidden hide-on-fullscreen">
118
+ <div
119
+ data-testid="chrome-sidebar"
120
+ className="h-full pt-4 pb-1 px-1 flex flex-col items-start text-muted-foreground text-md select-none text-sm z-50 dark:bg-background print:hidden hide-on-fullscreen"
121
+ >
119
122
  <ReorderableList<PanelDescriptor>
120
123
  value={sidebarItems}
121
124
  setValue={handleSetSidebarItems}
@@ -88,7 +88,10 @@ export const Controls = ({
88
88
  {!presenting && <FindReplace />}
89
89
 
90
90
  {!closed && (
91
- <div className={topRightControls}>
91
+ <div
92
+ data-testid="chrome-controls-top-right"
93
+ className={topRightControls}
94
+ >
92
95
  {presenting && <LayoutSelect />}
93
96
  <NotebookMenuDropdown
94
97
  disabled={disabled}
@@ -103,7 +106,10 @@ export const Controls = ({
103
106
  </div>
104
107
  )}
105
108
 
106
- <div className={cn(bottomRightControls)}>
109
+ <div
110
+ data-testid="chrome-controls-bottom-right"
111
+ className={cn(bottomRightControls)}
112
+ >
107
113
  <HideInKioskMode>
108
114
  <SaveComponent kioskMode={false} />
109
115
  </HideInKioskMode>