@marimo-team/islands 0.25.3-dev173 → 0.25.3-dev175
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/{ErrorBoundary-wT3f3iJ1.js → ErrorBoundary-DNvcAIsP.js} +1 -1
- package/dist/{any-language-editor-B92WMzoC.js → any-language-editor-BVFHDDQ3.js} +2 -2
- package/dist/{chat-ui-CuORr6fL.js → chat-ui-X-cWrL9u.js} +1222 -1222
- package/dist/{code-visibility-ZReaeMaF.js → code-visibility-CH1lmM1h.js} +2 -2
- package/dist/{common-DCevHg1m.js → common-DIrS1UR9.js} +1074 -1078
- package/dist/{data-grid-overlay-editor-CTC-bJus.js → data-grid-overlay-editor-DFLZvFK0.js} +1 -1
- package/dist/{dist-F8Ep36rk.js → dist-B1M0bGO3.js} +1 -1
- package/dist/{dist-D6d86eNJ.js → dist-BA13RJj5.js} +1 -1
- package/dist/{dist-Bvs24R_E.js → dist-BJtmSgcE.js} +48 -48
- package/dist/{dist-CN_BeG2I.js → dist-Ba2VIn1K.js} +53 -53
- package/dist/{dist-PXYI_yuP.js → dist-Bj4bmwUm.js} +12 -12
- package/dist/{dist-DoE4XJBC.js → dist-BmS-ZGjl.js} +8626 -8626
- package/dist/{dist-BorMD-uX.js → dist-Bzogh7CW.js} +87 -87
- package/dist/{dist-CN8zI-XC.js → dist-CThPVKaP.js} +1385 -1382
- package/dist/{dist-DiDibOYr.js → dist-CTi5FTiV.js} +87 -87
- package/dist/{dist-diIx5qJW.js → dist-Ck_C32ye.js} +2 -2
- package/dist/{dist-BLfKmR-l.js → dist-D1fnFp1J.js} +1 -1
- package/dist/{dist-OR1OnN-y.js → dist-D3x9__Fu.js} +46 -46
- package/dist/{dist-BMQf5zIS.js → dist-D7mrh5sO.js} +36 -36
- package/dist/{dist-CSJ0MDRw.js → dist-D9Q3xjiP.js} +1 -1
- package/dist/{dist-BuaRHxOc.js → dist-DP60Ubh8.js} +2 -2
- package/dist/{dist-CSbh1PNP.js → dist-DTv9KkpW.js} +12 -12
- package/dist/{dist-D-wwqlzJ.js → dist-DVVwOfrD.js} +109 -109
- package/dist/{dist-C8fAKSH1.js → dist-DYXM73-k.js} +36 -36
- package/dist/{dist-DBtSl3sf.js → dist-DjeybPOb.js} +1 -1
- package/dist/{dist-CrSP_H1M.js → dist-DtGn9N4h.js} +197 -197
- package/dist/{dist-CLdpGQVr.js → dist-KN80qWCP.js} +2 -2
- package/dist/{dist-Cg7gzw-a.js → dist-O0qFpEJh.js} +56 -56
- package/dist/{dist-CkTTIdBe.js → dist-OUle2RT7.js} +207 -207
- package/dist/{dist-BK4Oj99o.js → dist-T5rh6JvL.js} +1 -1
- package/dist/{error-entries-CmWMEsY_.js → error-entries-mpoD5t79.js} +4939 -4983
- package/dist/{esm-D2gTsXEV.js → esm-Bbw_Njjx.js} +575 -575
- package/dist/{esm-AMFssoNp.js → esm-mDQNEFe_.js} +354 -354
- package/dist/{feedback-button-DwXkmewo.js → feedback-button-DL0DJ-LB.js} +21 -21
- package/dist/{glide-data-editor-BlmcP-lw.js → glide-data-editor-n4wnx19S.js} +3 -3
- package/dist/{globals-BdRitZ4p.js → globals-NCsYyjpB.js} +1 -1
- package/dist/{html-to-image-bpiQh7ND.js → html-to-image-BoZthB4P.js} +454 -445
- package/dist/main.js +3587 -3587
- package/dist/{number-overlay-editor-DQG-hFHT.js → number-overlay-editor-rlvo4mo3.js} +1 -1
- package/dist/{process-output-BzloOI7F.js → process-output-DLS4Mqg_.js} +2 -2
- package/dist/{reveal-component-D3r3vSTK.js → reveal-component-BJfmRUzb.js} +3 -3
- package/package.json +1 -1
- package/src/__mocks__/document.tsx +54 -0
- package/src/__mocks__/notebook.ts +2 -1
- package/src/__mocks__/requests.ts +0 -2
- package/src/components/chat/chat-panel.tsx +3 -3
- package/src/components/datasources/__tests__/column-preview.test.tsx +6 -8
- package/src/components/datasources/column-preview.tsx +4 -8
- package/src/components/datasources/datasources.tsx +4 -3
- package/src/components/dependency-graph/minimap-content.tsx +2 -6
- package/src/components/dependency-graph/panels.tsx +2 -1
- package/src/components/editor/__tests__/Output.test.tsx +50 -32
- package/src/components/editor/__tests__/data-attributes.test.tsx +22 -11
- package/src/components/editor/__tests__/output-persistence.test.tsx +6 -1
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +69 -0
- package/src/components/editor/actions/name-cell-input.tsx +4 -3
- package/src/components/editor/actions/useCellActionButton.tsx +20 -26
- package/src/components/editor/actions/useNotebookActions.tsx +13 -18
- package/src/components/editor/actions/useSetCodeVisibility.ts +10 -11
- package/src/components/editor/actions/useSetOutputsExpanded.ts +13 -18
- package/src/components/editor/cell/CreateCellButton.tsx +5 -9
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +3 -1
- package/src/components/editor/cell/code/cell-editor.tsx +13 -20
- package/src/components/editor/cell/useAddCell.ts +4 -8
- package/src/components/editor/cell/useDeleteCell.tsx +10 -36
- package/src/components/editor/cell/useRunCells.ts +2 -5
- package/src/components/editor/cell/useSplitCell.tsx +2 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +5 -11
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +3 -1
- package/src/components/editor/columns/sortable-column.tsx +1 -1
- package/src/components/editor/connections/components.tsx +4 -9
- package/src/components/editor/controls/Controls.tsx +1 -1
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +9 -3
- package/src/components/editor/documentation.css +34 -11
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/file-tree/file-explorer.tsx +3 -7
- package/src/components/editor/links/__tests__/cell-link.test.tsx +3 -1
- package/src/components/editor/links/cell-link.tsx +2 -1
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
- package/src/components/editor/navigation/__tests__/navigation.test.ts +73 -64
- package/src/components/editor/navigation/clipboard.ts +12 -11
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +11 -20
- package/src/components/editor/navigation/navigation.ts +20 -28
- package/src/components/editor/notebook-cell.tsx +7 -10
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +125 -69
- package/src/components/editor/renderers/cell-array.tsx +10 -17
- package/src/components/markdown/markdown-renderer.tsx +4 -8
- package/src/components/pages/edit-page.tsx +32 -17
- package/src/components/scratchpad/scratchpad.test.tsx +3 -1
- package/src/components/scratchpad/scratchpad.tsx +4 -7
- package/src/components/slides/__tests__/minimap-actions.test.tsx +9 -25
- package/src/components/slides/minimap.tsx +7 -3
- package/src/components/slides/slide-cell-view.tsx +3 -3
- package/src/components/sort/SortableCellsProvider.tsx +2 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +18 -20
- package/src/core/ai/staged-cells.ts +8 -16
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +2 -2
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +2 -2
- package/src/core/ai/tools/base.ts +2 -2
- package/src/core/ai/tools/edit-notebook-tool.ts +13 -21
- package/src/core/cells/__tests__/actions.test.ts +474 -34
- package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
- package/src/core/cells/__tests__/cells.test.ts +171 -813
- package/src/core/cells/__tests__/document.test.ts +5 -35
- package/src/core/cells/__tests__/notebook-outline.test.ts +7 -1
- package/src/core/cells/__tests__/outputs.test.tsx +71 -53
- package/src/core/cells/actions.ts +391 -3
- package/src/core/cells/add-missing-import.ts +46 -42
- package/src/core/cells/cells.ts +38 -413
- package/src/core/cells/document.ts +7 -4
- package/src/core/cells/outputs.ts +12 -28
- package/src/core/codemirror/cells/extensions.ts +6 -6
- package/src/core/codemirror/cells/state.ts +1 -1
- package/src/core/codemirror/keymaps/vim.ts +2 -2
- package/src/core/edit-app.tsx +19 -27
- package/src/core/islands/bridge.ts +0 -2
- package/src/core/kernel/handlers.ts +3 -3
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -3
- package/src/core/network/requests-lazy.ts +0 -2
- package/src/core/network/requests-network.ts +0 -16
- package/src/core/network/requests-static.ts +0 -2
- package/src/core/network/requests-toasting.tsx +0 -2
- package/src/core/network/types.ts +0 -7
- package/src/core/notebook/document/__tests__/codemirror.test.ts +5 -0
- package/src/core/notebook/document/__tests__/draft.test.ts +41 -0
- package/src/core/notebook/document/__tests__/state.test.ts +21 -0
- package/src/core/notebook/document/draft.ts +35 -5
- package/src/core/notebook/document/index.ts +1 -0
- package/src/core/notebook/document/state.ts +6 -2
- package/src/core/session/useNotebookSession.tsx +6 -2
- package/src/core/wasm/bridge.ts +0 -16
- package/src/css/globals.css +56 -22
- package/src/stories/runtime-story.tsx +22 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import {
|
|
2
|
+
import { G as t, H as n, I as r, O as i, St as a, V as o, m as s, n as c, r as l, s as u, t as d, u as f, w as p } from "./dist-BmS-ZGjl.js";
|
|
3
3
|
//#region ../node_modules/.pnpm/@lezer+xml@1.0.6/node_modules/@lezer/xml/dist/index.js
|
|
4
4
|
var m = 1, h = 2, g = 3, _ = 4, v = 5, y = 36, b = 37, x = 38, S = 11, C = 13;
|
|
5
5
|
function w(e) {
|
|
@@ -60,18 +60,18 @@ function N(e, t) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
var P = N(y, "-->"), F = N(b, "?>"), I = N(x, "]]>"), L = o({
|
|
63
|
-
Text:
|
|
64
|
-
"StartTag StartCloseTag EndTag SelfCloseEndTag":
|
|
65
|
-
TagName:
|
|
66
|
-
"MismatchedCloseTag/TagName": [
|
|
67
|
-
AttributeName:
|
|
68
|
-
AttributeValue:
|
|
69
|
-
Is:
|
|
70
|
-
"EntityReference CharacterReference":
|
|
71
|
-
Comment:
|
|
72
|
-
ProcessingInst:
|
|
73
|
-
DoctypeDecl:
|
|
74
|
-
Cdata:
|
|
63
|
+
Text: n.content,
|
|
64
|
+
"StartTag StartCloseTag EndTag SelfCloseEndTag": n.angleBracket,
|
|
65
|
+
TagName: n.tagName,
|
|
66
|
+
"MismatchedCloseTag/TagName": [n.tagName, n.invalid],
|
|
67
|
+
AttributeName: n.attributeName,
|
|
68
|
+
AttributeValue: n.attributeValue,
|
|
69
|
+
Is: n.definitionOperator,
|
|
70
|
+
"EntityReference CharacterReference": n.character,
|
|
71
|
+
Comment: n.blockComment,
|
|
72
|
+
ProcessingInst: n.processingInstruction,
|
|
73
|
+
DoctypeDecl: n.documentMeta,
|
|
74
|
+
Cdata: n.special(n.string)
|
|
75
75
|
}), R = l.deserialize({
|
|
76
76
|
version: 14,
|
|
77
77
|
states: ",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",
|
|
@@ -149,11 +149,11 @@ function U(e) {
|
|
|
149
149
|
return null;
|
|
150
150
|
}
|
|
151
151
|
function W(e, t) {
|
|
152
|
-
let n =
|
|
153
|
-
for (let e = n; !
|
|
154
|
-
if (
|
|
155
|
-
let e =
|
|
156
|
-
if (n.name == "TagName") return
|
|
152
|
+
let n = r(e).resolveInner(t, -1), i = null;
|
|
153
|
+
for (let e = n; !i && e.parent; e = e.parent) (e.name == "OpenTag" || e.name == "CloseTag" || e.name == "SelfClosingTag" || e.name == "MismatchedCloseTag") && (i = e);
|
|
154
|
+
if (i && (i.to > t || i.lastChild.type.isError)) {
|
|
155
|
+
let e = i.parent;
|
|
156
|
+
if (n.name == "TagName") return i.name == "CloseTag" || i.name == "MismatchedCloseTag" ? {
|
|
157
157
|
type: "closeTag",
|
|
158
158
|
from: n.from,
|
|
159
159
|
context: e
|
|
@@ -165,30 +165,30 @@ function W(e, t) {
|
|
|
165
165
|
if (n.name == "AttributeName") return {
|
|
166
166
|
type: "attrName",
|
|
167
167
|
from: n.from,
|
|
168
|
-
context:
|
|
168
|
+
context: i
|
|
169
169
|
};
|
|
170
170
|
if (n.name == "AttributeValue") return {
|
|
171
171
|
type: "attrValue",
|
|
172
172
|
from: n.from,
|
|
173
|
-
context:
|
|
173
|
+
context: i
|
|
174
174
|
};
|
|
175
|
-
let
|
|
176
|
-
return
|
|
175
|
+
let r = n == i || n.name == "Attribute" ? n.childBefore(t) : n;
|
|
176
|
+
return r?.name == "StartTag" ? {
|
|
177
177
|
type: "openTag",
|
|
178
178
|
from: t,
|
|
179
179
|
context: U(e)
|
|
180
|
-
} :
|
|
180
|
+
} : r?.name == "StartCloseTag" && r.to <= t ? {
|
|
181
181
|
type: "closeTag",
|
|
182
182
|
from: t,
|
|
183
183
|
context: e
|
|
184
|
-
} :
|
|
184
|
+
} : r?.name == "Is" ? {
|
|
185
185
|
type: "attrValue",
|
|
186
186
|
from: t,
|
|
187
|
-
context:
|
|
188
|
-
} :
|
|
187
|
+
context: i
|
|
188
|
+
} : r ? {
|
|
189
189
|
type: "attrName",
|
|
190
190
|
from: t,
|
|
191
|
-
context:
|
|
191
|
+
context: i
|
|
192
192
|
} : null;
|
|
193
193
|
}
|
|
194
194
|
if (n.name == "StartCloseTag") return {
|
|
@@ -309,7 +309,7 @@ function Y(e, t) {
|
|
|
309
309
|
var X = /*@__PURE__*/ u.define({
|
|
310
310
|
name: "xml",
|
|
311
311
|
parser: /*@__PURE__*/ R.configure({ props: [
|
|
312
|
-
/*@__PURE__*/
|
|
312
|
+
/*@__PURE__*/ i.add({
|
|
313
313
|
Element(e) {
|
|
314
314
|
let t = /^\s*<\//.test(e.textAfter);
|
|
315
315
|
return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
|
|
@@ -344,11 +344,11 @@ function Q(e, t, n = e.length) {
|
|
|
344
344
|
let r = t.firstChild, i = r && r.getChild("TagName");
|
|
345
345
|
return i ? e.sliceString(i.from, Math.min(i.to, n)) : "";
|
|
346
346
|
}
|
|
347
|
-
var $ = /*@__PURE__*/ t.inputHandler.of((e, t,
|
|
348
|
-
if (e.composing || e.state.readOnly || t !=
|
|
347
|
+
var $ = /*@__PURE__*/ t.inputHandler.of((e, t, n, i, o) => {
|
|
348
|
+
if (e.composing || e.state.readOnly || t != n || i != ">" && i != "/" || !X.isActiveAt(e.state, t, -1)) return !1;
|
|
349
349
|
let s = o(), { state: c } = s, l = c.changeByRange((e) => {
|
|
350
|
-
let { head: t } = e,
|
|
351
|
-
if (
|
|
350
|
+
let { head: t } = e, n = c.doc.sliceString(t - 1, t) == i, o = r(c).resolveInner(t, -1), s;
|
|
351
|
+
if (n && i == ">" && o.name == "EndTag") {
|
|
352
352
|
let n = o.parent;
|
|
353
353
|
if (n.parent?.lastChild?.name != "CloseTag" && (s = Q(c.doc, n.parent, t))) return {
|
|
354
354
|
range: e,
|
|
@@ -358,16 +358,16 @@ var $ = /*@__PURE__*/ t.inputHandler.of((e, t, r, a, o) => {
|
|
|
358
358
|
insert: `</${s}>`
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
|
-
} else if (
|
|
361
|
+
} else if (n && i == "/" && o.name == "StartCloseTag") {
|
|
362
362
|
let e = o.parent;
|
|
363
363
|
if (o.from == t - 2 && e.lastChild?.name != "CloseTag" && (s = Q(c.doc, e, t))) {
|
|
364
|
-
let e = t + +(c.doc.sliceString(t, t + 1) === ">"),
|
|
364
|
+
let e = t + +(c.doc.sliceString(t, t + 1) === ">"), n = `${s}>`;
|
|
365
365
|
return {
|
|
366
|
-
range:
|
|
366
|
+
range: a.cursor(t + n.length, -1),
|
|
367
367
|
changes: {
|
|
368
368
|
from: t,
|
|
369
369
|
to: e,
|
|
370
|
-
insert:
|
|
370
|
+
insert: n
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
373
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { H as t, O as n, S as r, V as i, n as a, r as o, s, t as c, u as ee, v as l, w as u } from "./dist-
|
|
2
|
+
import { H as t, O as n, S as r, V as i, n as a, r as o, s, t as c, u as ee, v as l, w as u } from "./dist-BmS-ZGjl.js";
|
|
3
3
|
//#region ../node_modules/.pnpm/@lezer+yaml@1.0.3/node_modules/@lezer/yaml/dist/index.js
|
|
4
4
|
var d = 63, f = 64, p = 1, m = 2, h = 3, g = 4, _ = 5, v = 6, y = 7, b = 65, x = 66, S = 8, C = 9, w = 10, T = 11, E = 12, D = 13, O = 19, te = 20, ne = 29, re = 33, ie = 34, ae = 47, oe = 0, k = 1, A = 2, j = 3, M = 4, N = class {
|
|
5
5
|
constructor(e, t, n) {
|