@marimo-team/islands 0.25.3-dev129 → 0.25.3-dev134
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/{ConnectedDataExplorerComponent-q0C1F7Sn.js → ConnectedDataExplorerComponent-BAiSVaHj.js} +3 -1
- package/dist/{ErrorBoundary-BwvkPkyC.js → ErrorBoundary-CImYa86e.js} +1 -1
- package/dist/{chat-ui-C0nJ84Wf.js → chat-ui-DqcauBr6.js} +21 -20
- package/dist/{code-visibility-BI1HUhjs.js → code-visibility-BZoWT5f1.js} +2 -2
- package/dist/{common-CMm0Ot4s.js → common-CGmIoGK3.js} +4383 -4327
- package/dist/{data-grid-overlay-editor-DMLTMI_S.js → data-grid-overlay-editor-CtOna148.js} +1 -1
- package/dist/{error-entries-BL2ZBgVo.js → error-entries-CmFDQ9CA.js} +109 -105
- package/dist/{feedback-button-BrpQxIbi.js → feedback-button-7ZbDdjfz.js} +14 -14
- package/dist/{glide-data-editor-DBsCdnOC.js → glide-data-editor-D72zmCan.js} +3 -3
- package/dist/{globals-BWb8HdpC.js → globals-DE2S2io9.js} +1 -1
- package/dist/{html-to-image-D9gz793p.js → html-to-image-CfgsWObF.js} +19 -19
- package/dist/main.js +5504 -5477
- package/dist/{number-overlay-editor-CUARNHHp.js → number-overlay-editor-Br0lPnFE.js} +1 -1
- package/dist/{process-output-761ZoDH1.js → process-output-B64ZYWuI.js} +3 -3
- package/dist/{reveal-component-CJjh6lrq.js → reveal-component-DnbPU885.js} +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/__tests__/module-entry.test.ts +32 -0
- package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
- package/src/components/ai/ai-model-dropdown.tsx +11 -6
- package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
- package/src/components/chat/acp/blocks.tsx +1 -0
- package/src/components/chat/acp/session-tabs.tsx +8 -3
- package/src/components/data-table/TableTopBar.tsx +2 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
- package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
- package/src/components/data-table/data-table.tsx +6 -0
- package/src/components/data-table/range-focus/atoms.ts +4 -6
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
- package/src/components/data-table/renderers.tsx +16 -7
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +2 -2
- package/src/components/datasources/datasources.tsx +1 -0
- package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
- package/src/components/editor/cell/collapse.tsx +5 -3
- package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
- package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/snippets-panel.tsx +5 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +4 -4
- package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
- package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +4 -4
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
- package/src/components/editor/file-tree/file-explorer.tsx +35 -3
- package/src/components/editor/file-tree/file-name-input.tsx +1 -0
- package/src/components/editor/header/status.tsx +28 -5
- package/src/components/editor/links/__tests__/cell-link.test.tsx +146 -0
- package/src/components/editor/links/cell-link.tsx +14 -5
- package/src/components/editor/navigation/focus-utils.ts +4 -4
- package/src/components/editor/notebook-cell.tsx +11 -2
- package/src/components/editor/output/MarimoTracebackOutput.tsx +17 -15
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/package-alert.tsx +8 -3
- package/src/components/scratchpad/scratchpad.test.tsx +95 -0
- package/src/components/scratchpad/scratchpad.tsx +14 -1
- package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
- package/src/components/tracing/tracing.tsx +43 -39
- package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
- package/src/components/ui/draggable-popover.tsx +24 -2
- package/src/core/attachments/state.ts +2 -2
- package/src/core/document/__tests__/codemirror.test.ts +3 -1
- package/src/core/document/__tests__/hooks.test.tsx +7 -7
- package/src/core/document/__tests__/model.test.ts +44 -11
- package/src/core/document/__tests__/scenario-fixture.ts +2 -1
- package/src/core/document/__tests__/test-notebook.ts +19 -9
- package/src/core/document/draft.ts +1 -1
- package/src/core/document/index.ts +3 -10
- package/src/core/document/model.ts +14 -11
- package/src/core/document/state.ts +1 -1
- package/src/core/document/sync.ts +24 -18
- package/src/core/host/AGENTS.md +3 -7
- package/src/core/host/__tests__/fixtures.ts +30 -0
- package/src/core/host/__tests__/{notebook-client.test.ts → replica.test.ts} +42 -74
- package/src/core/host/__tests__/wasm.test.ts +8 -0
- package/src/core/host/backend.ts +4 -0
- package/src/core/host/index.ts +14 -0
- package/src/core/host/{notebook-client.ts → replica.ts} +75 -86
- package/src/core/host/static.ts +2 -0
- package/src/core/host/wasm.ts +10 -1
- package/src/core/wasm/bridge.ts +1 -1
- package/src/core/websocket/__tests__/backend.test.ts +111 -22
- package/src/core/websocket/__tests__/useNotebookReplica.hook.test.tsx +141 -0
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +4 -4
- package/src/core/websocket/backend.ts +43 -5
- package/src/core/websocket/connection-state.ts +1 -1
- package/src/core/websocket/state.ts +3 -3
- package/src/core/websocket/transports/__tests__/notebook.test.ts +11 -21
- package/src/core/websocket/types.ts +2 -2
- package/src/core/websocket/useNotebookReplica.ts +69 -0
- package/src/core/websocket/useNotebookSession.tsx +6 -6
- package/src/plugins/impl/chat/chat-ui.tsx +2 -1
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
- package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
- package/src/plugins/impl/data-frames/panel.tsx +43 -16
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -228
- package/src/core/websocket/useNotebookClient.ts +0 -89
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
2
|
import { t } from "./react-sHtZdjeP.js";
|
|
3
|
-
import { a as n } from "./glide-data-editor-
|
|
3
|
+
import { a as n } from "./glide-data-editor-D72zmCan.js";
|
|
4
4
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.0_27cffe7f1bc30287d59ac27db3240c5b/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/number-overlay-editor-style.js
|
|
5
5
|
var r = /* @__PURE__ */ e(t()), i = /*#__PURE__*/ n("div")({
|
|
6
6
|
name: "NumberOverlayEditorStyle",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as e } from "./html-to-image-
|
|
1
|
+
import { O as e } from "./html-to-image-CfgsWObF.js";
|
|
2
2
|
import { m as t } from "./tooltip-CJ4Rqasp.js";
|
|
3
|
-
import {
|
|
3
|
+
import { T as n, w as r } from "./error-entries-CmFDQ9CA.js";
|
|
4
4
|
import { b as i } from "./select-CkF_GBxO.js";
|
|
5
5
|
import { n as a } from "./semaphore-89jsoHtS.js";
|
|
6
6
|
var o = t("file", [["path", {
|
|
@@ -74,7 +74,7 @@ function v(e) {
|
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/components/editor/output/console/process-output.ts
|
|
76
76
|
function y(e) {
|
|
77
|
-
return e.mimetype.startsWith("application/vnd.marimo") || e.mimetype === "text/html" ?
|
|
77
|
+
return e.mimetype.startsWith("application/vnd.marimo") || e.mimetype === "text/html" ? n(i.asString(e.data)) : r(i.asString(e.data));
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
80
|
export { d as a, h as c, s as d, o as f, m as i, c as l, _ as n, p as o, v as r, f as s, y as t, l as u };
|
|
@@ -3,15 +3,15 @@ import { c as t, g as n, h as r, m as i, t as a } from "./button-BQRdqQi1.js";
|
|
|
3
3
|
import { t as o } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { m as c, t as l } from "./tooltip-CJ4Rqasp.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { k as u } from "./error-entries-CmFDQ9CA.js";
|
|
7
|
+
import { $ as d, Q as f, Z as p, an as m, i as h, l as g, ln as _, n as v, on as y, r as b, t as x, u as S } from "./common-CGmIoGK3.js";
|
|
8
8
|
import { M as C } from "./select-CkF_GBxO.js";
|
|
9
9
|
import { q as ee } from "./dropdown-menu-CgL3fm8P.js";
|
|
10
10
|
import { _ as w } from "./toDate-DGvRHwTk.js";
|
|
11
11
|
import { t as T } from "./jsx-runtime-3BD1kT0s.js";
|
|
12
12
|
import { q as E } from "./use-restore-focus-CmGwRNId.js";
|
|
13
13
|
import { A as D, C as O, b as k } from "./useTheme-Bq9pi_vz.js";
|
|
14
|
-
import { a as A, n as te, t as ne } from "./code-visibility-
|
|
14
|
+
import { a as A, n as te, t as ne } from "./code-visibility-BZoWT5f1.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
var j = c("sticky-note", [["path", {
|
|
17
17
|
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
|
|
@@ -6556,7 +6556,7 @@ var sa = (e) => {
|
|
|
6556
6556
|
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(ia, { cell: n }), t[3] = n, t[4] = o), o;
|
|
6557
6557
|
}, ca = (e) => {
|
|
6558
6558
|
let n = (0, N.c)(160), { slideCells: o, layout: s, setLayout: c, noOutputIds: u, activeIndex: x, onSlideChange: S, mode: C, configWidth: ee, isEditable: T } = e, j = T !== void 0 && T, re = (0, M.useRef)(null), P = (0, M.useRef)(null), { width: ie, height: ae } = Zi(re), oe = E() != null, F = O(w), I = O(te).kind, se = O(A), ce = I !== "wasm" || se, L;
|
|
6559
|
-
n[0] !== F || n[1] !== I ? (L = F || !
|
|
6559
|
+
n[0] !== F || n[1] !== I ? (L = F || !h(I) ? [] : [Ui], n[0] = F, n[1] = I, n[2] = L) : L = n[2];
|
|
6560
6560
|
let le = L, [ue, de] = (0, M.useState)(la), fe = ne(o), pe;
|
|
6561
6561
|
n[3] === fe ? pe = n[4] : (pe = !k() && fe, n[3] = fe, n[4] = pe);
|
|
6562
6562
|
let me = pe, he;
|
|
@@ -6601,7 +6601,7 @@ var sa = (e) => {
|
|
|
6601
6601
|
let { cellToTarget: Pe, targetToCellIndex: Fe } = Ne, Ie = s.deck?.transition ?? "slide", Le = s.deck?.verticalAlign, Re;
|
|
6602
6602
|
n[37] === Le ? Re = n[38] : (Re = ra(Le), n[37] = Le, n[38] = Re);
|
|
6603
6603
|
let ze = Re, Be;
|
|
6604
|
-
n[39] === Symbol.for("react.memo_cache_sentinel") ? (Be =
|
|
6604
|
+
n[39] === Symbol.for("react.memo_cache_sentinel") ? (Be = v(window.location.href), n[39] = Be) : Be = n[39];
|
|
6605
6605
|
let Ve = Be, H;
|
|
6606
6606
|
n[40] !== Ie || n[41] !== ae || n[42] !== ie ? (H = {
|
|
6607
6607
|
embedded: !0,
|
|
@@ -6751,7 +6751,7 @@ var sa = (e) => {
|
|
|
6751
6751
|
"aria-label": ot ?? void 0,
|
|
6752
6752
|
children: [ot && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6753
6753
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
6754
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
6754
|
+
children: [/* @__PURE__ */ (0, G.jsx)(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: ot })]
|
|
6755
6755
|
}), /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6756
6756
|
className: "flex-1 overflow-auto flex",
|
|
6757
6757
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
@@ -6778,7 +6778,7 @@ var sa = (e) => {
|
|
|
6778
6778
|
"aria-disabled": ke,
|
|
6779
6779
|
"aria-label": ke ? "Code always shown" : De ? "Hide code" : "Show code",
|
|
6780
6780
|
onClick: qe,
|
|
6781
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
6781
|
+
children: /* @__PURE__ */ (0, G.jsx)(_, { className: "h-4 w-4" })
|
|
6782
6782
|
})
|
|
6783
6783
|
}), n[124] = De, n[125] = ke, n[126] = R, n[127] = qe, n[128] = gt) : gt = n[128];
|
|
6784
6784
|
let _t;
|
|
@@ -6793,7 +6793,7 @@ var sa = (e) => {
|
|
|
6793
6793
|
onClick: () => {
|
|
6794
6794
|
P.current?.getViewportElement()?.requestFullscreen().catch(pa);
|
|
6795
6795
|
},
|
|
6796
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
6796
|
+
children: /* @__PURE__ */ (0, G.jsx)(y, { className: "h-4 w-4" })
|
|
6797
6797
|
})
|
|
6798
6798
|
}), n[129] = _t) : _t = n[129];
|
|
6799
6799
|
let K;
|
|
@@ -6824,7 +6824,7 @@ var sa = (e) => {
|
|
|
6824
6824
|
}), n[137] = q, n[138] = e), e;
|
|
6825
6825
|
}
|
|
6826
6826
|
let bt;
|
|
6827
|
-
n[139] === q ? bt = n[140] : (bt = /* @__PURE__ */ (0, G.jsx)(
|
|
6827
|
+
n[139] === q ? bt = n[140] : (bt = /* @__PURE__ */ (0, G.jsx)(p, {
|
|
6828
6828
|
defaultSize: 92,
|
|
6829
6829
|
minSize: 60,
|
|
6830
6830
|
children: q
|
|
@@ -6841,7 +6841,7 @@ var sa = (e) => {
|
|
|
6841
6841
|
disabled: oe
|
|
6842
6842
|
}), n[142] = oe, n[143] = J);
|
|
6843
6843
|
let St = ve?.id, Y;
|
|
6844
|
-
n[144] !== s || n[145] !== c || n[146] !== St ? (Y = /* @__PURE__ */ (0, G.jsx)(
|
|
6844
|
+
n[144] !== s || n[145] !== c || n[146] !== St ? (Y = /* @__PURE__ */ (0, G.jsx)(p, {
|
|
6845
6845
|
defaultSize: 10,
|
|
6846
6846
|
minSize: 4,
|
|
6847
6847
|
collapsible: !0,
|
|
@@ -6853,7 +6853,7 @@ var sa = (e) => {
|
|
|
6853
6853
|
})
|
|
6854
6854
|
}), n[144] = s, n[145] = c, n[146] = St, n[147] = Y) : Y = n[147];
|
|
6855
6855
|
let Ct;
|
|
6856
|
-
n[148] !== bt || n[149] !== J || n[150] !== Y ? (Ct = /* @__PURE__ */ (0, G.jsxs)(
|
|
6856
|
+
n[148] !== bt || n[149] !== J || n[150] !== Y ? (Ct = /* @__PURE__ */ (0, G.jsxs)(f, {
|
|
6857
6857
|
direction: "vertical",
|
|
6858
6858
|
autoSaveId: "marimo:slides:notes-panel",
|
|
6859
6859
|
className: "flex-1 min-w-0",
|
|
@@ -6864,7 +6864,7 @@ var sa = (e) => {
|
|
|
6864
6864
|
]
|
|
6865
6865
|
}), n[148] = bt, n[149] = J, n[150] = Y, n[151] = Ct) : Ct = n[151];
|
|
6866
6866
|
let wt;
|
|
6867
|
-
n[152] !== ve || n[153] !== ee || n[154] !== s || n[155] !== c ? (wt = /* @__PURE__ */ (0, G.jsx)(
|
|
6867
|
+
n[152] !== ve || n[153] !== ee || n[154] !== s || n[155] !== c ? (wt = /* @__PURE__ */ (0, G.jsx)(g, {
|
|
6868
6868
|
configWidth: ee,
|
|
6869
6869
|
layout: s,
|
|
6870
6870
|
setLayout: c,
|