@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var javaHighlighting = styleTags({
|
|
3
3
|
null: tags.null,
|
|
4
4
|
instanceof: tags.operatorKeyword,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
3
|
var interpolationStart = 1, commentTagStart = 2, tagStart = 3, text = 155, endrawTagStart = 4, rawText = 156;
|
|
4
4
|
function wordChar(h) {
|
|
5
5
|
return h >= 65 && h <= 90 || h >= 97 && h <= 122;
|
|
@@ -288,7 +288,7 @@ function jinjaCompletionSource(h = {}) {
|
|
|
288
288
|
} : null;
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, z, B
|
|
291
|
+
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, R, z, B) => B != "%" || R != z || h.state.doc.sliceString(R - 1, z + 1) != "{}" ? false : (h.dispatch(h.state.changeByRange((h2) => ({
|
|
292
292
|
changes: {
|
|
293
293
|
from: h2.from,
|
|
294
294
|
to: h2.to,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as cssLanguage, t as css } from "./dist-
|
|
3
|
-
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
|
|
3
|
+
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-M9Vag9Y0.js";
|
|
4
4
|
var scriptText = 54, StartCloseScriptTag = 1, styleText = 55, StartCloseStyleTag = 2, textareaText = 56, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 57, IncompleteCloseTag = 14, commentContent$1 = 58, Element = 20, TagName = 22, Attribute = 23, AttributeName = 24, AttributeValue = 26, UnquotedAttributeValue = 27, ScriptText = 28, StyleText = 31, TextareaText = 34, OpenTag = 36, CloseTag = 37, Dialect_noMatch = 0, Dialect_selfClosing = 1, selfClosers$1 = {
|
|
5
5
|
area: true,
|
|
6
6
|
base: true,
|
|
@@ -356,19 +356,19 @@ function maybeNest(g, G, K) {
|
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
358
358
|
function configureNesting(g = [], G = []) {
|
|
359
|
-
let K = [],
|
|
360
|
-
for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ?
|
|
359
|
+
let K = [], q = [], J = [], Y = [];
|
|
360
|
+
for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? q : G2.tag == "textarea" ? J : Y).push(G2);
|
|
361
361
|
let Z = G.length ? /* @__PURE__ */ Object.create(null) : null;
|
|
362
362
|
for (let g2 of G) (Z[g2.name] || (Z[g2.name] = [])).push(g2);
|
|
363
363
|
return parseMixed((g2, G2) => {
|
|
364
|
-
let
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
if (
|
|
368
|
-
if (
|
|
369
|
-
let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2),
|
|
364
|
+
let X = g2.type.id;
|
|
365
|
+
if (X == ScriptText) return maybeNest(g2, G2, K);
|
|
366
|
+
if (X == StyleText) return maybeNest(g2, G2, q);
|
|
367
|
+
if (X == TextareaText) return maybeNest(g2, G2, J);
|
|
368
|
+
if (X == Element && Y.length) {
|
|
369
|
+
let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), X2;
|
|
370
370
|
if (J2) {
|
|
371
|
-
for (let g3 of
|
|
371
|
+
for (let g3 of Y) if (g3.tag == J2 && (!g3.attrs || g3.attrs(X2 || (X2 = getAttrs(q2, G2))))) {
|
|
372
372
|
let G3 = K2.lastChild, J3 = G3.type.id == CloseTag ? G3.from : K2.to;
|
|
373
373
|
if (J3 > q2.to) return {
|
|
374
374
|
parser: g3.parser,
|
|
@@ -380,7 +380,7 @@ function configureNesting(g = [], G = []) {
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
if (Z &&
|
|
383
|
+
if (Z && X == Attribute) {
|
|
384
384
|
let K2 = g2.node, q2;
|
|
385
385
|
if (q2 = K2.firstChild) {
|
|
386
386
|
let g3 = Z[G2.read(q2.from, q2.to)];
|
|
@@ -1281,31 +1281,31 @@ function html(g = {}) {
|
|
|
1281
1281
|
css().support
|
|
1282
1282
|
]);
|
|
1283
1283
|
}
|
|
1284
|
-
var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g,
|
|
1285
|
-
if (g.composing || g.state.readOnly ||
|
|
1284
|
+
var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, G, q, Y, X) => {
|
|
1285
|
+
if (g.composing || g.state.readOnly || G != q || Y != ">" && Y != "/" || !htmlLanguage.isActiveAt(g.state, G, -1)) return false;
|
|
1286
1286
|
let Z = X(), { state: Q } = Z, $ = Q.changeByRange((g2) => {
|
|
1287
1287
|
var _a, _b, _c;
|
|
1288
|
-
let
|
|
1289
|
-
if (
|
|
1290
|
-
let
|
|
1291
|
-
if (((_b = (_a =
|
|
1288
|
+
let G2 = Q.doc.sliceString(g2.from - 1, g2.to) == Y, { head: q2 } = g2, X2 = syntaxTree(Q).resolveInner(q2, -1), Z2;
|
|
1289
|
+
if (G2 && Y == ">" && X2.name == "EndTag") {
|
|
1290
|
+
let G3 = X2.parent;
|
|
1291
|
+
if (((_b = (_a = G3.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G3.parent, q2)) && !selfClosers.has(Z2)) return {
|
|
1292
1292
|
range: g2,
|
|
1293
1293
|
changes: {
|
|
1294
|
-
from:
|
|
1295
|
-
to:
|
|
1294
|
+
from: q2,
|
|
1295
|
+
to: q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0),
|
|
1296
1296
|
insert: `</${Z2}>`
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
|
-
} else if (
|
|
1299
|
+
} else if (G2 && Y == "/" && X2.name == "IncompleteCloseTag") {
|
|
1300
1300
|
let g3 = X2.parent;
|
|
1301
|
-
if (X2.from ==
|
|
1302
|
-
let g4 =
|
|
1301
|
+
if (X2.from == q2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, q2)) && !selfClosers.has(Z2)) {
|
|
1302
|
+
let g4 = q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0), G3 = `${Z2}>`;
|
|
1303
1303
|
return {
|
|
1304
|
-
range: EditorSelection.cursor(
|
|
1304
|
+
range: EditorSelection.cursor(q2 + G3.length, -1),
|
|
1305
1305
|
changes: {
|
|
1306
|
-
from:
|
|
1306
|
+
from: q2,
|
|
1307
1307
|
to: g4,
|
|
1308
|
-
insert:
|
|
1308
|
+
insert: G3
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, X as parseMixed, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
3
|
var castOpen = 1, HeredocString = 2, interpolatedStringContent = 263, EscapeSequence = 3, afterInterpolation = 264, automaticSemicolon = 265, eof = 266, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _do = 17, echo = 18, _else = 19, elseif = 20, enddeclare = 21, endfor = 22, endforeach = 23, endif = 24, endswitch = 25, endwhile = 26, _enum = 27, _extends = 28, final = 29, _finally = 30, fn = 31, _for = 32, foreach = 33, from = 34, _function = 35, global = 36, goto = 37, _if = 38, _implements = 39, include = 40, include_once = 41, _instanceof = 42, insteadof = 43, _interface = 44, list = 45, match = 46, namespace = 47, _new = 48, _null = 49, or = 50, print = 51, _require = 52, require_once = 53, _return = 54, _switch = 55, _throw = 56, trait = 57, _try = 58, unset = 59, use = 60, _var = 61, Visibility = 62, keywordMap = {
|
|
4
4
|
abstract,
|
|
5
5
|
and,
|
|
@@ -407,19 +407,19 @@ var interpolated = new ExternalTokenizer((S, Z) => {
|
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
function php(S = {}) {
|
|
410
|
-
let
|
|
411
|
-
if (S.baseLanguage !== null) if (S.baseLanguage)
|
|
410
|
+
let Z = [], Q;
|
|
411
|
+
if (S.baseLanguage !== null) if (S.baseLanguage) Q = S.baseLanguage;
|
|
412
412
|
else {
|
|
413
413
|
let S2 = html({ matchClosingTags: false });
|
|
414
|
-
|
|
414
|
+
Z.push(S2.support), Q = S2.language;
|
|
415
415
|
}
|
|
416
416
|
return new LanguageSupport(phpLanguage.configure({
|
|
417
|
-
wrap:
|
|
418
|
-
parser:
|
|
417
|
+
wrap: Q && parseMixed((S2) => S2.type.isTop ? {
|
|
418
|
+
parser: Q.parser,
|
|
419
419
|
overlay: (S3) => S3.name == "Text"
|
|
420
420
|
} : null),
|
|
421
421
|
top: S.plain ? "Program" : "Template"
|
|
422
|
-
}),
|
|
422
|
+
}), Z);
|
|
423
423
|
}
|
|
424
424
|
export {
|
|
425
425
|
phpLanguage as n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-abid3KgM.js";
|
|
3
3
|
export {
|
|
4
4
|
go
|
|
5
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import "./dist-
|
|
5
|
-
import "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-Dv_Y15yk.js";
|
|
3
|
+
import "./dist-BSAt6RhH.js";
|
|
4
|
+
import "./dist-D-W5ny5a.js";
|
|
5
|
+
import "./dist-M9Vag9Y0.js";
|
|
6
6
|
export {
|
|
7
7
|
markdown
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CcWX6tmx.js";
|
|
3
3
|
export {
|
|
4
4
|
Cassandra,
|
|
5
5
|
MSSQL,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var blockEnd = 63, eof = 64, DirectiveEnd = 1, DocEnd = 2, sequenceStartMark = 3, sequenceContinueMark = 4, explicitMapStartMark = 5, explicitMapContinueMark = 6, flowMapMark = 7, mapStartMark = 65, mapContinueMark = 66, Literal = 8, QuotedLiteral = 9, Anchor = 10, Alias = 11, Tag = 12, BlockLiteralContent = 13, BracketL = 19, FlowSequence = 20, Colon = 29, BraceL = 33, FlowMapping = 34, BlockLiteralHeader = 47, type_Top = 0, type_Seq = 1, type_Map = 2, type_Flow = 3, type_Lit = 4, Context = class {
|
|
3
3
|
constructor(v, q, J) {
|
|
4
4
|
this.parent = v, this.depth = q, this.type = J, this.hash = (v ? v.hash + v.hash << 8 : 0) + q + (q << 4) + J;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var RawString = 1, templateArgsEndFallback = 2, MacroName = 3, R = 82, L = 76, u = 117, U = 85, a = 97, z = 122, A = 65, Z = 90, Underscore = 95, Zero = 48, Quote = 34, ParenL = 40, ParenR = 41, Space = 32, GreaterThan = 62, rawString = new ExternalTokenizer((y) => {
|
|
3
3
|
if (y.next == L || y.next == U ? y.advance() : y.next == u && (y.advance(), y.next == Zero + 8 && y.advance()), y.next != R || (y.advance(), y.next != Quote)) return;
|
|
4
4
|
y.advance();
|
|
@@ -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, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
|
|
3
3
|
var printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155, newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85, bracketed = /* @__PURE__ */ new Set([
|
|
4
4
|
ParenthesizedExpression,
|
|
5
5
|
TupleExpression,
|
|
@@ -388,19 +388,19 @@ var gatherCompletions = {
|
|
|
388
388
|
function getScope(v, q) {
|
|
389
389
|
let J = cache.get(q);
|
|
390
390
|
if (J) return J;
|
|
391
|
-
let Y = [],
|
|
391
|
+
let Y = [], Z = true;
|
|
392
392
|
function Q(q2, J2) {
|
|
393
|
-
let
|
|
393
|
+
let X = v.sliceString(q2.from, q2.to);
|
|
394
394
|
Y.push({
|
|
395
|
-
label:
|
|
395
|
+
label: X,
|
|
396
396
|
type: J2
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
return q.cursor(IterMode.IncludeAnonymous).iterate((q2) => {
|
|
400
400
|
if (q2.name) {
|
|
401
401
|
let v2 = gatherCompletions[q2.name];
|
|
402
|
-
if (v2 && v2(q2, Q,
|
|
403
|
-
|
|
402
|
+
if (v2 && v2(q2, Q, Z) || !Z && ScopeNodes.has(q2.name)) return false;
|
|
403
|
+
Z = false;
|
|
404
404
|
} else if (q2.to - q2.from > 8192) {
|
|
405
405
|
for (let J2 of getScope(v, q2.node)) Y.push(J2);
|
|
406
406
|
return false;
|
|
@@ -414,15 +414,15 @@ var Identifier = /^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/, dontComplete = [
|
|
|
414
414
|
"PropertyName"
|
|
415
415
|
];
|
|
416
416
|
function localCompletionSource(v) {
|
|
417
|
-
let
|
|
418
|
-
if (dontComplete.indexOf(
|
|
419
|
-
let Y =
|
|
417
|
+
let J = syntaxTree(v.state).resolveInner(v.pos, -1);
|
|
418
|
+
if (dontComplete.indexOf(J.name) > -1) return null;
|
|
419
|
+
let Y = J.name == "VariableName" || J.to - J.from < 20 && Identifier.test(v.state.sliceDoc(J.from, J.to));
|
|
420
420
|
if (!Y && !v.explicit) return null;
|
|
421
421
|
let X = [];
|
|
422
|
-
for (let
|
|
422
|
+
for (let q = J; q; q = q.parent) ScopeNodes.has(q.name) && (X = X.concat(getScope(v.state.doc, q)));
|
|
423
423
|
return {
|
|
424
424
|
options: X,
|
|
425
|
-
from: Y ?
|
|
425
|
+
from: Y ? J.from : v.pos,
|
|
426
426
|
validFor: Identifier
|
|
427
427
|
};
|
|
428
428
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
|
|
3
3
|
var whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
|
|
4
4
|
function isAlpha(h3) {
|
|
5
5
|
return h3 >= 65 && h3 <= 90 || h3 >= 97 && h3 <= 122 || h3 >= 48 && h3 <= 57;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-BSAt6RhH.js";
|
|
3
|
+
import "./dist-D-W5ny5a.js";
|
|
4
|
+
import "./dist-M9Vag9Y0.js";
|
|
5
5
|
export {
|
|
6
6
|
html
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
3
|
var interpolationStart = 1, tagStart = 2, endTagStart = 3, text = 180, endrawTagStart = 4, rawText = 181, endcommentTagStart = 5, commentText = 182, InlineComment = 6;
|
|
4
4
|
function wordChar(_) {
|
|
5
5
|
return _ >= 65 && _ <= 90 || _ >= 97 && _ <= 122;
|
|
@@ -284,7 +284,7 @@ function liquidCompletionSource(_ = {}) {
|
|
|
284
284
|
} : null;
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, H, U
|
|
287
|
+
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, V, H, U) => U != "%" || V != H || _.state.doc.sliceString(V - 1, H + 1) != "{}" ? false : (_.dispatch(_.state.changeByRange((_2) => ({
|
|
288
288
|
changes: {
|
|
289
289
|
from: _2.from,
|
|
290
290
|
to: _2.to,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import "./dist-BSAt6RhH.js";
|
|
3
|
+
import "./dist-D-W5ny5a.js";
|
|
4
|
+
import "./dist-M9Vag9Y0.js";
|
|
5
|
+
import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-CpxNdDkw.js";
|
|
6
|
+
export {
|
|
7
|
+
liquid
|
|
8
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import { r as javascriptLanguage } from "./dist-
|
|
1
|
+
import { H as tags, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
|
+
import "./dist-D-W5ny5a.js";
|
|
4
|
+
import { r as javascriptLanguage } from "./dist-M9Vag9Y0.js";
|
|
5
5
|
var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAttributeContentSingle = 35, scriptAttributeContentDouble = 36, text = /* @__PURE__ */ new ExternalTokenizer((p) => {
|
|
6
6
|
let A = p.pos;
|
|
7
7
|
for (; ; ) {
|
|
@@ -13,11 +13,11 @@ var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAt
|
|
|
13
13
|
}
|
|
14
14
|
p.pos > A && p.acceptToken(Text);
|
|
15
15
|
});
|
|
16
|
-
function attrContent(p, A,
|
|
17
|
-
return new ExternalTokenizer((
|
|
18
|
-
let N =
|
|
19
|
-
for (;
|
|
20
|
-
|
|
16
|
+
function attrContent(p, A, j) {
|
|
17
|
+
return new ExternalTokenizer((M) => {
|
|
18
|
+
let N = M.pos;
|
|
19
|
+
for (; M.next != p && M.next >= 0 && (j || M.next != 38 && (M.next != 123 || M.peek(1) != 123)); ) M.advance();
|
|
20
|
+
M.pos > N && M.acceptToken(A);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
var attrSingle = /* @__PURE__ */ attrContent(39, attributeContentSingle, false), attrDouble = /* @__PURE__ */ attrContent(34, attributeContentDouble, false), scriptAttrSingle = /* @__PURE__ */ attrContent(39, scriptAttributeContentSingle, true), scriptAttrDouble = /* @__PURE__ */ attrContent(34, scriptAttributeContentDouble, true), parser = /* @__PURE__ */ LRParser.deserialize({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags$1, 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, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var descendantOp = 122, Unit = 1, identifier$1 = 123, callee = 124, VariableName = 2, queryIdentifier = 125, queryVariableName = 3, QueryCallee = 4, space = [
|
|
3
3
|
9,
|
|
4
4
|
10,
|
|
@@ -283,11 +283,11 @@ function variableNames(_, K, q) {
|
|
|
283
283
|
if (K.to - K.from > 4096) {
|
|
284
284
|
let J = VariablesByNode.get(K);
|
|
285
285
|
if (J) return J;
|
|
286
|
-
let
|
|
286
|
+
let X = [], Z = /* @__PURE__ */ new Set(), Q = K.cursor(IterMode.IncludeAnonymous);
|
|
287
287
|
if (Q.firstChild()) do
|
|
288
|
-
for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label),
|
|
288
|
+
for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label), X.push(K2));
|
|
289
289
|
while (Q.nextSibling());
|
|
290
|
-
return VariablesByNode.set(K,
|
|
290
|
+
return VariablesByNode.set(K, X), X;
|
|
291
291
|
} else {
|
|
292
292
|
let J = [], Y = /* @__PURE__ */ new Set();
|
|
293
293
|
return K.cursor().iterate((K2) => {
|
|
@@ -302,8 +302,8 @@ function variableNames(_, K, q) {
|
|
|
302
302
|
}), J;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
var defineCSSCompletionSource = (_) => (
|
|
306
|
-
let { state: J, pos: Y } =
|
|
305
|
+
var defineCSSCompletionSource = (_) => (q) => {
|
|
306
|
+
let { state: J, pos: Y } = q, X = syntaxTree(J).resolveInner(Y, -1), Z = X.type.isError && X.from == X.to - 1 && J.doc.sliceString(X.from, X.to) == "-";
|
|
307
307
|
if (X.name == "PropertyName" || (Z || X.name == "TagName") && /^(Block|Styles)$/.test(X.resolve(X.to).name)) return {
|
|
308
308
|
from: X.from,
|
|
309
309
|
options: properties(),
|
|
@@ -319,7 +319,7 @@ var defineCSSCompletionSource = (_) => (K) => {
|
|
|
319
319
|
options: pseudoClasses,
|
|
320
320
|
validFor: identifier
|
|
321
321
|
};
|
|
322
|
-
if (_(X) || (
|
|
322
|
+
if (_(X) || (q.explicit || Z) && isVarArg(X, J.doc)) return {
|
|
323
323
|
from: _(X) || Z ? X.from : Y,
|
|
324
324
|
options: variableNames(J.doc, astTop(X), _),
|
|
325
325
|
validFor: variable
|
|
@@ -341,7 +341,7 @@ var defineCSSCompletionSource = (_) => (K) => {
|
|
|
341
341
|
options: atRules,
|
|
342
342
|
validFor: identifier
|
|
343
343
|
};
|
|
344
|
-
if (!
|
|
344
|
+
if (!q.explicit) return null;
|
|
345
345
|
let Q = X.resolve(Y), $ = Q.childBefore(Y);
|
|
346
346
|
return $ && $.name == ":" && Q.name == "PseudoClassSelector" ? {
|
|
347
347
|
from: Y,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var spec_Keyword = {
|
|
3
3
|
__proto__: null,
|
|
4
4
|
anyref: 34,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import "./dist-BSAt6RhH.js";
|
|
3
|
+
import "./dist-D-W5ny5a.js";
|
|
4
|
+
import "./dist-M9Vag9Y0.js";
|
|
5
|
+
import { i as jinjaLanguage, n as jinja, r as jinjaCompletionSource, t as closePercentBrace } from "./dist-BR_gyG9L.js";
|
|
6
|
+
export {
|
|
7
|
+
jinja
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var jsonHighlighting = styleTags({
|
|
3
3
|
String: tags.string,
|
|
4
4
|
Number: tags.number,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var StartTag = 1, StartCloseTag = 2, MissingCloseTag = 3, mismatchedStartCloseTag = 4, incompleteStartCloseTag = 5, commentContent$1 = 36, piContent$1 = 37, cdataContent$1 = 38, Element$1 = 11, OpenTag = 13;
|
|
3
3
|
function nameChar(m) {
|
|
4
4
|
return m == 45 || m == 46 || m == 58 || m >= 65 && m <= 90 || m == 95 || m >= 97 && m <= 122 || m >= 161;
|
|
@@ -334,29 +334,29 @@ function elementName(m, V, H = m.length) {
|
|
|
334
334
|
let U = V.firstChild, W = U && U.getChild("TagName");
|
|
335
335
|
return W ? m.sliceString(W.from, Math.min(W.to, H)) : "";
|
|
336
336
|
}
|
|
337
|
-
var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((m,
|
|
338
|
-
if (m.composing || m.state.readOnly ||
|
|
337
|
+
var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((m, V, U, G, K) => {
|
|
338
|
+
if (m.composing || m.state.readOnly || V != U || G != ">" && G != "/" || !xmlLanguage.isActiveAt(m.state, V, -1)) return false;
|
|
339
339
|
let q = K(), { state: J } = q, Y = J.changeByRange((m2) => {
|
|
340
340
|
var _a, _b, _c;
|
|
341
|
-
let { head:
|
|
342
|
-
if (
|
|
343
|
-
let
|
|
344
|
-
if (((_b = (_a =
|
|
341
|
+
let { head: V2 } = m2, U2 = J.doc.sliceString(V2 - 1, V2) == G, K2 = syntaxTree(J).resolveInner(V2, -1), q2;
|
|
342
|
+
if (U2 && G == ">" && K2.name == "EndTag") {
|
|
343
|
+
let H = K2.parent;
|
|
344
|
+
if (((_b = (_a = H.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (q2 = elementName(J.doc, H.parent, V2))) return {
|
|
345
345
|
range: m2,
|
|
346
346
|
changes: {
|
|
347
|
-
from:
|
|
348
|
-
to:
|
|
347
|
+
from: V2,
|
|
348
|
+
to: V2 + (J.doc.sliceString(V2, V2 + 1) === ">" ? 1 : 0),
|
|
349
349
|
insert: `</${q2}>`
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
} else if (
|
|
352
|
+
} else if (U2 && G == "/" && K2.name == "StartCloseTag") {
|
|
353
353
|
let m3 = K2.parent;
|
|
354
|
-
if (K2.from ==
|
|
355
|
-
let m4 =
|
|
354
|
+
if (K2.from == V2 - 2 && ((_c = m3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (q2 = elementName(J.doc, m3, V2))) {
|
|
355
|
+
let m4 = V2 + (J.doc.sliceString(V2, V2 + 1) === ">" ? 1 : 0), H = `${q2}>`;
|
|
356
356
|
return {
|
|
357
|
-
range: EditorSelection.cursor(
|
|
357
|
+
range: EditorSelection.cursor(V2 + H.length, -1),
|
|
358
358
|
changes: {
|
|
359
|
-
from:
|
|
359
|
+
from: V2,
|
|
360
360
|
to: m4,
|
|
361
361
|
insert: H
|
|
362
362
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var closureParamDelim = 1, tpOpen = 2, tpClose = 3, RawString = 4, Float = 5, _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48, Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;
|
|
3
3
|
function isNum(h) {
|
|
4
4
|
return h >= 48 && h <= 57;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { i as xmlLanguage, n as completeFromSchema, r as xml, t as autoCloseTags } from "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { i as xmlLanguage, n as completeFromSchema, r as xml, t as autoCloseTags } from "./dist-DZo4nSS0.js";
|
|
3
3
|
export {
|
|
4
4
|
xml
|
|
5
5
|
};
|