@marimo-team/islands 0.23.10-dev24 → 0.23.10-dev26
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/{any-language-editor-QDDrgvfh.js → any-language-editor-DNmoSiWL.js} +18 -18
- package/dist/{chat-ui-BrKSZ7Yu.js → chat-ui-D6oraHT2.js} +11 -11
- package/dist/{code-visibility-CVmFerQM.js → code-visibility-Rcdlclvw.js} +1202 -1025
- package/dist/dist-7QfXoMdB.js +5 -0
- package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
- package/dist/dist-BEXXyZig.js +5 -0
- package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
- package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
- package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
- package/dist/dist-BYj57OV4.js +5 -0
- package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
- package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
- package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
- package/dist/dist-BlSvQzNr.js +5 -0
- package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
- package/dist/dist-CCBlxAgS.js +8 -0
- package/dist/dist-CIDTVIUf.js +5 -0
- package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
- package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
- package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
- package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
- package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
- package/dist/dist-CqQyhAM8.js +8 -0
- package/dist/dist-CwRu2Xzh.js +5 -0
- package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
- package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
- package/dist/dist-D8CDTVgf.js +6 -0
- package/dist/dist-D8DNB0nO.js +8 -0
- package/dist/dist-DL6N_q-A.js +5 -0
- package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
- package/dist/dist-DOFbNV_b.js +8 -0
- package/dist/dist-DPrYzMY0.js +6 -0
- package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
- package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
- package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
- package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
- package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
- package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
- package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
- package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
- package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
- package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
- package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
- package/dist/dist-cdmMjgsn.js +5 -0
- package/dist/dist-hT4QzYX-.js +1247 -0
- package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
- package/dist/esm-BaH2eg5-.js +1171 -0
- package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
- package/dist/{extends-C3j0Pbh9.js → extends-D_hDsj6R.js} +1 -1
- package/dist/{html-to-image-D5fIgQg_.js → html-to-image-UEH5lFDZ.js} +2162 -2139
- package/dist/main.js +1220 -1356
- package/dist/{process-output-B59yoBQx.js → process-output-CyMLTogj.js} +1 -1
- package/dist/{reveal-component-bghJ00sb.js → reveal-component-xsFYQVKT.js} +414 -337
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/editor/cell/code/language-toggle.tsx +7 -1
- package/src/components/editor/documentation.css +19 -0
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
- package/src/components/editor/renderers/slides-layout/types.ts +1 -0
- package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
- package/src/components/slides/reveal-component.tsx +283 -61
- package/src/components/slides/slide-cell-view.tsx +26 -2
- package/src/components/slides/slide-form.tsx +26 -4
- package/src/core/codemirror/language/languages/python.ts +2 -0
- package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
- package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
- package/dist/dist-0Fif7jnk.js +0 -5
- package/dist/dist-B5h_9sHB.js +0 -6
- package/dist/dist-B9M6R5ye.js +0 -5
- package/dist/dist-BCt3tnck.js +0 -8
- package/dist/dist-BUIJwMwn.js +0 -8
- package/dist/dist-BpquMd3k.js +0 -5
- package/dist/dist-BzJsqYfz.js +0 -5
- package/dist/dist-CA5ELXAf.js +0 -6
- package/dist/dist-CLBRs6Uv.js +0 -5
- package/dist/dist-CStVCMbq.js +0 -5
- package/dist/dist-CZRIEY3Y.js +0 -8
- package/dist/dist-CuUHbFD0.js +0 -5
- package/dist/dist-DV7Iabxb.js +0 -8
- package/dist/dist-DhHh0jLg.js +0 -1247
- package/dist/dist-DuEeHMvL.js +0 -5
- package/dist/esm-DzhtSSSq.js +0 -1171
|
@@ -9494,6 +9494,22 @@ function highlightTree(e64, w, T, E = 0, D = e64.length) {
|
|
|
9494
9494
|
let O = new HighlightBuilder(E, Array.isArray(w) ? w : [w], T);
|
|
9495
9495
|
O.highlightRange(e64.cursor(), E, D, "", O.highlighters), O.flush(D);
|
|
9496
9496
|
}
|
|
9497
|
+
function highlightCode(e64, w, T, E, D, O = 0, k = e64.length) {
|
|
9498
|
+
let A = O;
|
|
9499
|
+
function j(w2, T2) {
|
|
9500
|
+
if (!(w2 <= A)) {
|
|
9501
|
+
for (let O2 = e64.slice(A, w2), k2 = 0; ; ) {
|
|
9502
|
+
let e65 = O2.indexOf("\n", k2), w3 = e65 < 0 ? O2.length : e65;
|
|
9503
|
+
if (w3 > k2 && E(O2.slice(k2, w3), T2), e65 < 0) break;
|
|
9504
|
+
D(), k2 = e65 + 1;
|
|
9505
|
+
}
|
|
9506
|
+
A = w2;
|
|
9507
|
+
}
|
|
9508
|
+
}
|
|
9509
|
+
highlightTree(w, T, (e65, w2, T2) => {
|
|
9510
|
+
j(e65, ""), j(w2, T2);
|
|
9511
|
+
}, O, k), j(k, "");
|
|
9512
|
+
}
|
|
9497
9513
|
var HighlightBuilder = class {
|
|
9498
9514
|
constructor(e64, w, T) {
|
|
9499
9515
|
this.at = e64, this.highlighters = w, this.span = T, this.class = "";
|
|
@@ -9626,7 +9642,7 @@ for (let e64 in tags) {
|
|
|
9626
9642
|
let w = tags[e64];
|
|
9627
9643
|
w instanceof Tag && (w.name = e64);
|
|
9628
9644
|
}
|
|
9629
|
-
tagHighlighter([
|
|
9645
|
+
var classHighlighter = tagHighlighter([
|
|
9630
9646
|
{
|
|
9631
9647
|
tag: tags.link,
|
|
9632
9648
|
class: "tok-link"
|
|
@@ -9751,8 +9767,7 @@ tagHighlighter([
|
|
|
9751
9767
|
tag: tags.punctuation,
|
|
9752
9768
|
class: "tok-punctuation"
|
|
9753
9769
|
}
|
|
9754
|
-
]);
|
|
9755
|
-
var languageDataProp = /* @__PURE__ */ new NodeProp();
|
|
9770
|
+
]), languageDataProp = /* @__PURE__ */ new NodeProp();
|
|
9756
9771
|
function defineLanguageFacet(e64) {
|
|
9757
9772
|
return Facet.define({ combine: e64 ? (w) => w.concat(e64) : void 0 });
|
|
9758
9773
|
}
|
|
@@ -11987,101 +12002,103 @@ function getSpecializer(e64) {
|
|
|
11987
12002
|
return e64.get;
|
|
11988
12003
|
}
|
|
11989
12004
|
export {
|
|
11990
|
-
|
|
12005
|
+
EditorView as $,
|
|
11991
12006
|
indentString as A,
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
12007
|
+
Facet as At,
|
|
12008
|
+
highlightCode as B,
|
|
12009
|
+
codePointAt as Bt,
|
|
11995
12010
|
foldKeymap as C,
|
|
11996
|
-
|
|
12011
|
+
Annotation as Ct,
|
|
11997
12012
|
getIndentation as D,
|
|
11998
|
-
|
|
12013
|
+
Compartment as Dt,
|
|
11999
12014
|
getIndentUnit as E,
|
|
12000
|
-
|
|
12015
|
+
CharCategory as Et,
|
|
12001
12016
|
syntaxHighlighting as F,
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12017
|
+
RangeValue as Ft,
|
|
12018
|
+
NodeSet as G,
|
|
12019
|
+
fromCodePoint as Gt,
|
|
12020
|
+
tags as H,
|
|
12021
|
+
combineConfig as Ht,
|
|
12006
12022
|
syntaxTree as I,
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12023
|
+
StateEffect as It,
|
|
12024
|
+
Parser as J,
|
|
12025
|
+
NodeType as K,
|
|
12010
12026
|
unfoldAll as L,
|
|
12011
|
-
|
|
12027
|
+
StateField as Lt,
|
|
12012
12028
|
languageDataProp as M,
|
|
12013
|
-
|
|
12029
|
+
Prec as Mt,
|
|
12014
12030
|
matchBrackets as N,
|
|
12015
|
-
|
|
12031
|
+
RangeSet as Nt,
|
|
12016
12032
|
indentNodeProp as O,
|
|
12017
|
-
|
|
12033
|
+
EditorSelection as Ot,
|
|
12018
12034
|
sublanguageProp as P,
|
|
12019
|
-
|
|
12020
|
-
|
|
12035
|
+
RangeSetBuilder as Pt,
|
|
12036
|
+
Direction as Q,
|
|
12021
12037
|
Tag as R,
|
|
12022
|
-
|
|
12038
|
+
Text as Rt,
|
|
12023
12039
|
foldInside as S,
|
|
12024
|
-
|
|
12040
|
+
crelt as St,
|
|
12025
12041
|
foldService as T,
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
|
|
12034
|
-
|
|
12042
|
+
ChangeSet as Tt,
|
|
12043
|
+
IterMode as U,
|
|
12044
|
+
countColumn as Ut,
|
|
12045
|
+
styleTags as V,
|
|
12046
|
+
codePointSize as Vt,
|
|
12047
|
+
NodeProp as W,
|
|
12048
|
+
findClusterBreak as Wt,
|
|
12049
|
+
parseMixed as X,
|
|
12050
|
+
Tree as Y,
|
|
12051
|
+
Decoration as Z,
|
|
12035
12052
|
defineLanguageFacet as _,
|
|
12036
|
-
|
|
12053
|
+
rectangularSelection as _t,
|
|
12037
12054
|
HighlightStyle as a,
|
|
12038
|
-
|
|
12055
|
+
dropCursor as at,
|
|
12039
12056
|
foldAll as b,
|
|
12040
|
-
|
|
12057
|
+
showPanel as bt,
|
|
12041
12058
|
Language as c,
|
|
12042
|
-
|
|
12059
|
+
gutter as ct,
|
|
12043
12060
|
ParseContext as d,
|
|
12044
|
-
|
|
12045
|
-
|
|
12061
|
+
highlightSpecialChars as dt,
|
|
12062
|
+
GutterMarker as et,
|
|
12046
12063
|
StreamLanguage as f,
|
|
12047
|
-
|
|
12064
|
+
hoverTooltip as ft,
|
|
12048
12065
|
defaultHighlightStyle as g,
|
|
12049
|
-
|
|
12066
|
+
placeholder as gt,
|
|
12050
12067
|
continuedIndent as h,
|
|
12051
|
-
|
|
12068
|
+
logException as ht,
|
|
12052
12069
|
LocalTokenGroup as i,
|
|
12053
|
-
|
|
12070
|
+
drawSelection as it,
|
|
12054
12071
|
indentUnit as j,
|
|
12055
|
-
|
|
12072
|
+
MapMode as jt,
|
|
12056
12073
|
indentOnInput as k,
|
|
12057
|
-
|
|
12074
|
+
EditorState as kt,
|
|
12058
12075
|
LanguageDescription as l,
|
|
12059
|
-
|
|
12076
|
+
highlightActiveLine as lt,
|
|
12060
12077
|
bracketMatchingHandle as m,
|
|
12061
|
-
|
|
12078
|
+
lineNumbers as mt,
|
|
12062
12079
|
ExternalTokenizer as n,
|
|
12063
|
-
|
|
12080
|
+
WidgetType as nt,
|
|
12064
12081
|
IndentContext as o,
|
|
12065
|
-
|
|
12082
|
+
getPanel as ot,
|
|
12066
12083
|
bracketMatching as p,
|
|
12067
|
-
|
|
12068
|
-
|
|
12084
|
+
keymap as pt,
|
|
12085
|
+
NodeWeakMap as q,
|
|
12069
12086
|
LRParser as r,
|
|
12070
|
-
|
|
12087
|
+
crosshairCursor as rt,
|
|
12071
12088
|
LRLanguage as s,
|
|
12072
|
-
|
|
12089
|
+
getTooltip as st,
|
|
12073
12090
|
ContextTracker as t,
|
|
12074
|
-
|
|
12091
|
+
ViewPlugin as tt,
|
|
12075
12092
|
LanguageSupport as u,
|
|
12076
|
-
|
|
12093
|
+
highlightActiveLineGutter as ut,
|
|
12077
12094
|
delimitedIndent as v,
|
|
12078
|
-
|
|
12095
|
+
runScopeHandlers as vt,
|
|
12079
12096
|
foldNodeProp as w,
|
|
12080
|
-
|
|
12097
|
+
ChangeDesc as wt,
|
|
12081
12098
|
foldGutter as x,
|
|
12082
|
-
|
|
12099
|
+
showTooltip as xt,
|
|
12083
12100
|
flatIndent as y,
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12101
|
+
showDialog as yt,
|
|
12102
|
+
classHighlighter as z,
|
|
12103
|
+
Transaction as zt
|
|
12087
12104
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
|
|
3
3
|
var insertedSemi = 177, space$1 = 179, identifier = 184, String = 12, closeParen$1 = 13, Number = 17, Rune = 20, closeBrace$1 = 25, closeBracket = 53, IncDecOp = 95, _return = 142, _break = 144, _continue = 145, fallthrough = 148, newline = 10, carriageReturn = 13, space = 32, tab = 9, slash = 47, closeParen = 41, closeBrace = 125, semicolon = new ExternalTokenizer((y, J) => {
|
|
4
4
|
for (let Y = 0, X = y.next; (J.context && (X < 0 || X == newline || X == carriageReturn || X == slash && y.peek(Y + 1) == slash) || X == closeParen || X == closeBrace) && y.acceptToken(insertedSemi), !(X != space && X != tab); ) X = y.peek(++Y);
|
|
5
5
|
}, { contextual: true }), trackedTokens = /* @__PURE__ */ new Set([
|
|
@@ -317,16 +317,16 @@ var gatherCompletions = {
|
|
|
317
317
|
function getScope(y, J) {
|
|
318
318
|
let Y = cache.get(J);
|
|
319
319
|
if (Y) return Y;
|
|
320
|
-
let X = [],
|
|
320
|
+
let X = [], Q = true;
|
|
321
321
|
function $(J2, Y2) {
|
|
322
|
-
let
|
|
322
|
+
let Z = y.sliceString(J2.from, J2.to);
|
|
323
323
|
X.push({
|
|
324
|
-
label:
|
|
324
|
+
label: Z,
|
|
325
325
|
type: Y2
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
return J.cursor(IterMode.IncludeAnonymous).iterate((J2) => {
|
|
329
|
-
if (
|
|
329
|
+
if (Q) Q = false;
|
|
330
330
|
else if (J2.name) {
|
|
331
331
|
let y2 = gatherCompletions[J2.name];
|
|
332
332
|
if (y2 && y2(J2, $) || ScopeNodes.has(J2.name)) return false;
|
|
@@ -346,15 +346,15 @@ var Identifier = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, dontComplete = [
|
|
|
346
346
|
".",
|
|
347
347
|
"?."
|
|
348
348
|
], localCompletionSource = (y) => {
|
|
349
|
-
let
|
|
350
|
-
if (dontComplete.indexOf(
|
|
351
|
-
let X =
|
|
349
|
+
let Y = syntaxTree(y.state).resolveInner(y.pos, -1);
|
|
350
|
+
if (dontComplete.indexOf(Y.name) > -1) return null;
|
|
351
|
+
let X = Y.name == "VariableName" || Y.to - Y.from < 20 && Identifier.test(y.state.sliceDoc(Y.from, Y.to));
|
|
352
352
|
if (!X && !y.explicit) return null;
|
|
353
353
|
let Z = [];
|
|
354
|
-
for (let
|
|
354
|
+
for (let J = Y; J; J = J.parent) ScopeNodes.has(J.name) && (Z = Z.concat(getScope(y.state.doc, J)));
|
|
355
355
|
return {
|
|
356
356
|
options: Z,
|
|
357
|
-
from: X ?
|
|
357
|
+
from: X ? Y.from : y.pos,
|
|
358
358
|
validFor: Identifier
|
|
359
359
|
};
|
|
360
360
|
}, goLanguage = /* @__PURE__ */ LRLanguage.define({
|