@marimo-team/islands 0.23.15-dev53 → 0.23.15-dev57
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-DMcymmpc.js → ConnectedDataExplorerComponent-CJaUI-S-.js} +3 -3
- package/dist/{any-language-editor-BfTj3PPF.js → any-language-editor-P9tjkj4n.js} +18 -18
- package/dist/{architectureDiagram-VXUJARFQ-B3jN8fkV.js → architectureDiagram-VXUJARFQ-DXwkyAaM.js} +5 -5
- package/dist/{blockDiagram-VD42YOAC-Dq_8lAbz.js → blockDiagram-VD42YOAC-CIOjvxeD.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-BPzX9a9A.js → c4Diagram-YG6GDRKO-B6dZC_oU.js} +4 -4
- package/dist/{channel-D_qwSlm9.js → channel-BN070S0F.js} +1 -1
- package/dist/{chat-ui-CYGIiYqI.js → chat-ui-BdSDiVjk.js} +79 -74
- package/dist/{chunk-ABZYJK2D-CDSMdLBr.js → chunk-ABZYJK2D-BxBDji1u.js} +1 -1
- package/dist/{chunk-ATLVNIR6-BAW0e_d_.js → chunk-ATLVNIR6-qFiszptQ.js} +1 -1
- package/dist/{chunk-B4BG7PRW-CfEI05WL.js → chunk-B4BG7PRW-B_z2FEHm.js} +4 -4
- package/dist/{chunk-DI55MBZ5-CZS7hhjV.js → chunk-DI55MBZ5-D4Y8yV8B.js} +4 -4
- package/dist/{chunk-EXTU4WIE-DHwKB8ls.js → chunk-EXTU4WIE-BQPBhApE.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-Cy80gDpz.js → chunk-JA3XYJ7Z-CY4CRbV5.js} +2 -2
- package/dist/{chunk-JZLCHNYA-yfXq27Zq.js → chunk-JZLCHNYA-DWIR9m5O.js} +4 -4
- package/dist/{chunk-N4CR4FBY-C9D3Wsot.js → chunk-N4CR4FBY-Bw2HcMNc.js} +5 -5
- package/dist/{chunk-QN33PNHL-Bh2YDyg7.js → chunk-QN33PNHL-DPBNNzpR.js} +1 -1
- package/dist/{chunk-QXUST7PY-kDpsCDoY.js → chunk-QXUST7PY-DtC2t9Mk.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-DkY8Kz3y.js → chunk-S3R3BYOJ-BdgLc8AM.js} +1 -1
- package/dist/{chunk-TZMSLE5B-CMZoW3vd.js → chunk-TZMSLE5B-BzSHcq-K.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-b2d3ZqfR.js → classDiagram-2ON5EDUG-BiQPjMNY.js} +10 -10
- package/dist/{classDiagram-v2-WZHVMYZB-RvnJbJ5M.js → classDiagram-v2-WZHVMYZB-YHdR8fqM.js} +10 -10
- package/dist/{code-visibility-Ddr-Cesu.js → code-visibility-DDYb93Ql.js} +9 -9
- package/dist/{dagre-6UL2VRFP--ruFWg_S.js → dagre-6UL2VRFP-DpYjBqQs.js} +7 -7
- package/dist/{diagram-PSM6KHXK-CGakapLj.js → diagram-PSM6KHXK-D4ftnaua.js} +6 -6
- package/dist/{diagram-QEK2KX5R-CtqD8u_P.js → diagram-QEK2KX5R-DVlUOgs1.js} +4 -4
- package/dist/{diagram-S2PKOQOG-BS1wa35J.js → diagram-S2PKOQOG-CGh4OMEV.js} +4 -4
- package/dist/{dist-BGLXXYL4.js → dist-3NCqaWjt.js} +2 -2
- package/dist/{dist-95kpvRSY.js → dist-4lVIWUT3.js} +1 -1
- package/dist/dist-5o9uz19x.js +5 -0
- package/dist/{dist-B1k1NmGB.js → dist-B2jmQKKx.js} +2 -2
- package/dist/{dist-kcg3gjx6.js → dist-BCX980mU.js} +2 -2
- package/dist/{dist-c6wTyIhD.js → dist-BIEt-mlF.js} +1 -1
- package/dist/{dist-tJic1rC-.js → dist-BO5HRiTf.js} +2 -2
- package/dist/{dist-3MT9i_N5.js → dist-BOMbzyb3.js} +85 -85
- package/dist/{dist-Dx3eDsHX.js → dist-BP39XM8u.js} +1 -1
- package/dist/{dist-DijFs2Lk.js → dist-BPF0gTRZ.js} +6 -6
- package/dist/{dist-BvCrjp81.js → dist-BTdrwBWP.js} +22 -22
- package/dist/{dist-CLBjD8zw.js → dist-BdqCKQ1O.js} +2 -2
- package/dist/dist-BpDH0DEP.js +5 -0
- package/dist/dist-BpXhbQXO.js +8 -0
- package/dist/{dist-DgZczohI.js → dist-BpeiYpG2.js} +2 -2
- package/dist/{dist-Db1W16d-.js → dist-BwhXBwMd.js} +1 -1
- package/dist/dist-ByadAk_L.js +5 -0
- package/dist/{dist-B69xyr_D.js → dist-C18MUWTj.js} +2 -2
- package/dist/{dist-DPdzbDlL.js → dist-C2_4pjuS.js} +1 -1
- package/dist/{dist-B56Dml3A.js → dist-CFSb_Frm.js} +1 -1
- package/dist/dist-CK0g7JvP.js +8 -0
- package/dist/{dist-CNXNPADS.js → dist-CRmSjkLP.js} +2 -2
- package/dist/{dist-D3T8fCFo.js → dist-CSlJrrAw.js} +86 -81
- package/dist/dist-CfzCtiq2.js +5 -0
- package/dist/{dist-4-bJUNMb.js → dist-D3bdsa1d.js} +4 -4
- package/dist/dist-D8JtVFrW.js +8 -0
- package/dist/dist-DK2Oocpu.js +6 -0
- package/dist/{dist-DBN2w27P.js → dist-DZwp8lro.js} +3 -3
- package/dist/{dist-BFgLBSJb.js → dist-DaXJPX8F.js} +2 -2
- package/dist/{dist-U4F-tbMs.js → dist-De-GlSAs.js} +246 -184
- package/dist/{dist-DPH6RMhL.js → dist-DgjbnqTg.js} +125 -125
- package/dist/dist-DnSu977r.js +5 -0
- package/dist/{dist-e29IFSI0.js → dist-DviUBLUp.js} +4 -4
- package/dist/{dist-BIdzGb3O.js → dist-DwqBJ014.js} +2 -2
- package/dist/{dist-BGj6VvC-.js → dist-JGehap7K.js} +5 -5
- package/dist/{dist-BGtkYshf.js → dist-LpLXa9Lb.js} +2 -2
- package/dist/dist-UmxJm6sW.js +8 -0
- package/dist/dist-aYSBQSyM.js +5 -0
- package/dist/dist-kkZ1Ztlh.js +6 -0
- package/dist/dist-ngPczwNi.js +5 -0
- package/dist/{dist-C-RLuUaE.js → dist-pqIwD8VD.js} +2 -2
- package/dist/dist-wQRyxyTV.js +5 -0
- package/dist/{dist-DvOfvWFi.js → dist-w_gWE5Wf.js} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-DmtIJBsT.js → erDiagram-Q2GNP2WA-BcKAHFqF.js} +10 -10
- package/dist/{esm-D6_uCZ4z.js → esm-DKOv6P2M.js} +341 -341
- package/dist/esm-k8PIvuZW.js +1180 -0
- package/dist/{extends-B88Yrunj.js → extends-Cq2JYHKy.js} +32 -16
- package/dist/{flowDiagram-NV44I4VS-DZsgBUcQ.js → flowDiagram-NV44I4VS-BRhSg-ro.js} +10 -10
- package/dist/{formats-DSfNdJLH.js → formats-BFhkZJwd.js} +1 -1
- package/dist/{ganttDiagram-JELNMOA3-CgFhg_6K.js → ganttDiagram-JELNMOA3-CXXCN7LN.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-DPInyn1F.js → gitGraphDiagram-V2S2FVAM-BOlkMSqK.js} +3 -3
- package/dist/{html-to-image-BoXPmWps.js → html-to-image-DDENewl2.js} +34 -34
- package/dist/{infoDiagram-HS3SLOUP-ETAzKIiE.js → infoDiagram-HS3SLOUP-D3TyKnL_.js} +3 -3
- package/dist/{journeyDiagram-XKPGCS4Q-Bc94zDj1.js → journeyDiagram-XKPGCS4Q-DEal0aT1.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-DSk8Ebci.js → kanban-definition-3W4ZIXB7-Dl90wENN.js} +7 -7
- package/dist/{loader-BUGT0KbC.js → loader-CTHCI-qe.js} +7 -7
- package/dist/main.js +31 -31
- package/dist/{mermaid-CYkbfJHW.js → mermaid-CdSvixW2.js} +36 -36
- package/dist/{mindmap-definition-VGOIOE7T-BYoCqVAJ.js → mindmap-definition-VGOIOE7T-CCDupjWW.js} +9 -9
- package/dist/{pieDiagram-ADFJNKIX-BaAU79Vb.js → pieDiagram-ADFJNKIX-JvXG_6hk.js} +4 -4
- package/dist/{process-output-CbRRhwQo.js → process-output-2QPcgBQg.js} +1 -1
- package/dist/purify.es-EnR5yhgI.js +783 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BmTWJxzo.js → quadrantDiagram-AYHSOK5B-BqDB9tUC.js} +2 -2
- package/dist/{react-vega-DfJOSnj6.js → react-vega-BazDALhI.js} +633 -633
- package/dist/{requirementDiagram-UZGBJVZJ-Jrs04ua1.js → requirementDiagram-UZGBJVZJ-KbVt8SPH.js} +9 -9
- package/dist/{reveal-component-BY5sWajR.js → reveal-component-C5pW80ik.js} +11 -11
- package/dist/{sankeyDiagram-TZEHDZUN-YJnhmG4N.js → sankeyDiagram-TZEHDZUN-DgkF38jx.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-D30L51Bn.js → sequenceDiagram-WL72ISMW-BDmx9n95.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-C0nZuUP8.js → stateDiagram-FKZM4ZOC-ByOvQf2n.js} +10 -10
- package/dist/{stateDiagram-v2-4FDKWEC3-BmovmS-G.js → stateDiagram-v2-4FDKWEC3-C3xqeavR.js} +10 -10
- package/dist/{timeline-definition-IT6M3QCI-DEoIEWAl.js → timeline-definition-IT6M3QCI-CkD_trIn.js} +2 -2
- package/dist/{vega-component-uL9ZaXcH.js → vega-component-CrFoZT1S.js} +4 -4
- package/dist/{vega-embed-container-DgZMMVL3.js → vega-embed-container-DAQAMjiO.js} +2 -2
- package/dist/vega-loader.browser-DmpxCJqx.js +1353 -0
- package/dist/{xychartDiagram-PRI3JC2R-iwKXEnYZ.js → xychartDiagram-PRI3JC2R-BSkNxYNw.js} +5 -5
- package/package.json +3 -1
- package/dist/dist-9yiSURLw.js +0 -6
- package/dist/dist-9zfbSqew.js +0 -8
- package/dist/dist-BZ_VEpg8.js +0 -8
- package/dist/dist-BdYVjH1C.js +0 -5
- package/dist/dist-BiIoKp92.js +0 -6
- package/dist/dist-Bow9AUXt.js +0 -5
- package/dist/dist-C8odMDp5.js +0 -8
- package/dist/dist-CLgjZx38.js +0 -5
- package/dist/dist-CnMOJtGP.js +0 -5
- package/dist/dist-D-5m1nDT.js +0 -5
- package/dist/dist-D8AXqiCV.js +0 -5
- package/dist/dist-DMuf8sZd.js +0 -5
- package/dist/dist-DszXOVSb.js +0 -5
- package/dist/dist-GW0m0q65.js +0 -8
- package/dist/esm-BxhNWHqh.js +0 -1171
- package/dist/purify.es-C-fIGuQm.js +0 -557
- package/dist/vega-loader.browser-IU8eTDwM.js +0 -1333
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp,
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, P as sublanguageProp, S as foldInside, U as IterMode, V as styleTags, _ as defineLanguageFacet, h as continuedIndent, i as LocalTokenGroup, kt as EditorSelection, 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-De-GlSAs.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-CSlJrrAw.js";
|
|
3
3
|
var noSemi = 315, noSemiType = 316, incdec = 1, incdecPrefix = 2, questionDot = 3, JSXStartTag = 4, insertSemi = 317, spaces = 319, newline = 320, LineComment = 5, BlockComment = 6, Dialect_jsx = 0, space = [
|
|
4
4
|
9,
|
|
5
5
|
10,
|
|
@@ -28,52 +28,52 @@ var noSemi = 315, noSemiType = 316, incdec = 1, incdecPrefix = 2, questionDot =
|
|
|
28
28
|
12288
|
|
29
29
|
], braceR = 125, semicolon = 59, slash = 47, star = 42, plus = 43, minus = 45, lt = 60, comma = 44, question = 63, dot = 46, bracketL = 91, trackNewline = new ContextTracker({
|
|
30
30
|
start: false,
|
|
31
|
-
shift(
|
|
32
|
-
return
|
|
31
|
+
shift(_, K) {
|
|
32
|
+
return K == LineComment || K == BlockComment || K == spaces ? _ : K == newline;
|
|
33
33
|
},
|
|
34
34
|
strict: false
|
|
35
|
-
}), insertSemicolon = new ExternalTokenizer((
|
|
36
|
-
let { next:
|
|
37
|
-
(
|
|
35
|
+
}), insertSemicolon = new ExternalTokenizer((_, K) => {
|
|
36
|
+
let { next: q } = _;
|
|
37
|
+
(q == braceR || q == -1 || K.context) && _.acceptToken(insertSemi);
|
|
38
38
|
}, {
|
|
39
39
|
contextual: true,
|
|
40
40
|
fallback: true
|
|
41
|
-
}), noSemicolon = new ExternalTokenizer((
|
|
42
|
-
let { next:
|
|
43
|
-
space.indexOf(
|
|
44
|
-
}, { contextual: true }), noSemicolonType = new ExternalTokenizer((
|
|
45
|
-
|
|
46
|
-
}, { contextual: true }), operatorToken = new ExternalTokenizer((
|
|
47
|
-
let { next:
|
|
48
|
-
if (
|
|
49
|
-
if (
|
|
50
|
-
|
|
51
|
-
let
|
|
52
|
-
|
|
41
|
+
}), noSemicolon = new ExternalTokenizer((_, K) => {
|
|
42
|
+
let { next: q } = _, J;
|
|
43
|
+
space.indexOf(q) > -1 || q == slash && ((J = _.peek(1)) == slash || J == star) || q != braceR && q != semicolon && q != -1 && !K.context && _.acceptToken(noSemi);
|
|
44
|
+
}, { contextual: true }), noSemicolonType = new ExternalTokenizer((_, K) => {
|
|
45
|
+
_.next == bracketL && !K.context && _.acceptToken(noSemiType);
|
|
46
|
+
}, { contextual: true }), operatorToken = new ExternalTokenizer((_, K) => {
|
|
47
|
+
let { next: q } = _;
|
|
48
|
+
if (q == plus || q == minus) {
|
|
49
|
+
if (_.advance(), q == _.next) {
|
|
50
|
+
_.advance();
|
|
51
|
+
let q2 = !K.context && K.canShift(incdec);
|
|
52
|
+
_.acceptToken(q2 ? incdec : incdecPrefix);
|
|
53
53
|
}
|
|
54
|
-
} else
|
|
54
|
+
} else q == question && _.peek(1) == dot && (_.advance(), _.advance(), (_.next < 48 || _.next > 57) && _.acceptToken(questionDot));
|
|
55
55
|
}, { contextual: true });
|
|
56
|
-
function identifierChar(
|
|
57
|
-
return
|
|
56
|
+
function identifierChar(_, K) {
|
|
57
|
+
return _ >= 65 && _ <= 90 || _ >= 97 && _ <= 122 || _ == 95 || _ >= 192 || !K && _ >= 48 && _ <= 57;
|
|
58
58
|
}
|
|
59
|
-
var jsx = new ExternalTokenizer((
|
|
60
|
-
if (
|
|
61
|
-
let
|
|
62
|
-
for (; space.indexOf(
|
|
63
|
-
if (identifierChar(
|
|
64
|
-
for (
|
|
65
|
-
for (; space.indexOf(
|
|
66
|
-
if (
|
|
67
|
-
for (let
|
|
68
|
-
if (
|
|
69
|
-
if (!identifierChar(
|
|
59
|
+
var jsx = new ExternalTokenizer((_, K) => {
|
|
60
|
+
if (_.next != lt || !K.dialectEnabled(Dialect_jsx) || (_.advance(), _.next == slash)) return;
|
|
61
|
+
let q = 0;
|
|
62
|
+
for (; space.indexOf(_.next) > -1; ) _.advance(), q++;
|
|
63
|
+
if (identifierChar(_.next, true)) {
|
|
64
|
+
for (_.advance(), q++; identifierChar(_.next, false); ) _.advance(), q++;
|
|
65
|
+
for (; space.indexOf(_.next) > -1; ) _.advance(), q++;
|
|
66
|
+
if (_.next == comma) return;
|
|
67
|
+
for (let K2 = 0; ; K2++) {
|
|
68
|
+
if (K2 == 7) {
|
|
69
|
+
if (!identifierChar(_.next, true)) return;
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
|
-
if (
|
|
73
|
-
|
|
72
|
+
if (_.next != "extends".charCodeAt(K2)) break;
|
|
73
|
+
_.advance(), q++;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
_.acceptToken(JSXStartTag, -q);
|
|
77
77
|
}), jsHighlight = styleTags({
|
|
78
78
|
"get set async static": tags.modifier,
|
|
79
79
|
"for while do if else switch try catch finally return throw break continue default case": tags.controlKeyword,
|
|
@@ -416,15 +416,15 @@ var jsx = new ExternalTokenizer((g, G) => {
|
|
|
416
416
|
specialized: [
|
|
417
417
|
{
|
|
418
418
|
term: 326,
|
|
419
|
-
get: (
|
|
419
|
+
get: (_) => spec_identifier[_] || -1
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
term: 342,
|
|
423
|
-
get: (
|
|
423
|
+
get: (_) => spec_word[_] || -1
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
term: 95,
|
|
427
|
-
get: (
|
|
427
|
+
get: (_) => spec_LessThan[_] || -1
|
|
428
428
|
}
|
|
429
429
|
],
|
|
430
430
|
tokenPrec: 15124
|
|
@@ -509,10 +509,10 @@ var jsx = new ExternalTokenizer((g, G) => {
|
|
|
509
509
|
"MethodDeclaration",
|
|
510
510
|
"ForStatement"
|
|
511
511
|
]);
|
|
512
|
-
function defID(
|
|
513
|
-
return (
|
|
514
|
-
let
|
|
515
|
-
return
|
|
512
|
+
function defID(_) {
|
|
513
|
+
return (K, q) => {
|
|
514
|
+
let J = K.node.getChild("VariableDefinition");
|
|
515
|
+
return J && q(J, _), true;
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
var functionContext = ["FunctionDeclaration"], gatherCompletions = {
|
|
@@ -522,35 +522,35 @@ var functionContext = ["FunctionDeclaration"], gatherCompletions = {
|
|
|
522
522
|
EnumDeclaration: /* @__PURE__ */ defID("constant"),
|
|
523
523
|
TypeAliasDeclaration: /* @__PURE__ */ defID("type"),
|
|
524
524
|
NamespaceDeclaration: /* @__PURE__ */ defID("namespace"),
|
|
525
|
-
VariableDefinition(
|
|
526
|
-
|
|
525
|
+
VariableDefinition(_, K) {
|
|
526
|
+
_.matchContext(functionContext) || K(_, "variable");
|
|
527
527
|
},
|
|
528
|
-
TypeDefinition(
|
|
529
|
-
|
|
528
|
+
TypeDefinition(_, K) {
|
|
529
|
+
K(_, "type");
|
|
530
530
|
},
|
|
531
531
|
__proto__: null
|
|
532
532
|
};
|
|
533
|
-
function getScope(
|
|
534
|
-
let
|
|
535
|
-
if (
|
|
536
|
-
let
|
|
537
|
-
function
|
|
538
|
-
let
|
|
539
|
-
|
|
540
|
-
label:
|
|
541
|
-
type:
|
|
533
|
+
function getScope(_, K) {
|
|
534
|
+
let q = cache.get(K);
|
|
535
|
+
if (q) return q;
|
|
536
|
+
let J = [], Y = true;
|
|
537
|
+
function X(K2, q2) {
|
|
538
|
+
let Y2 = _.sliceString(K2.from, K2.to);
|
|
539
|
+
J.push({
|
|
540
|
+
label: Y2,
|
|
541
|
+
type: q2
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
|
-
return
|
|
545
|
-
if (
|
|
546
|
-
else if (
|
|
547
|
-
let
|
|
548
|
-
if (
|
|
549
|
-
} else if (
|
|
550
|
-
for (let
|
|
544
|
+
return K.cursor(IterMode.IncludeAnonymous).iterate((K2) => {
|
|
545
|
+
if (Y) Y = false;
|
|
546
|
+
else if (K2.name) {
|
|
547
|
+
let _2 = gatherCompletions[K2.name];
|
|
548
|
+
if (_2 && _2(K2, X) || ScopeNodes.has(K2.name)) return false;
|
|
549
|
+
} else if (K2.to - K2.from > 8192) {
|
|
550
|
+
for (let q2 of getScope(_, K2.node)) J.push(q2);
|
|
551
551
|
return false;
|
|
552
552
|
}
|
|
553
|
-
}), cache.set(
|
|
553
|
+
}), cache.set(K, J), J;
|
|
554
554
|
}
|
|
555
555
|
var Identifier = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, dontComplete = [
|
|
556
556
|
"TemplateString",
|
|
@@ -573,16 +573,16 @@ var Identifier = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, dontComplete = [
|
|
|
573
573
|
".",
|
|
574
574
|
"?."
|
|
575
575
|
];
|
|
576
|
-
function localCompletionSource(
|
|
577
|
-
let
|
|
578
|
-
if (dontComplete.indexOf(
|
|
579
|
-
let
|
|
580
|
-
if (!
|
|
581
|
-
let
|
|
582
|
-
for (let
|
|
576
|
+
function localCompletionSource(_) {
|
|
577
|
+
let K = syntaxTree(_.state).resolveInner(_.pos, -1);
|
|
578
|
+
if (dontComplete.indexOf(K.name) > -1) return null;
|
|
579
|
+
let J = K.name == "VariableName" || K.to - K.from < 20 && Identifier.test(_.state.sliceDoc(K.from, K.to));
|
|
580
|
+
if (!J && !_.explicit) return null;
|
|
581
|
+
let Y = [];
|
|
582
|
+
for (let q = K; q; q = q.parent) ScopeNodes.has(q.name) && (Y = Y.concat(getScope(_.state.doc, q)));
|
|
583
583
|
return {
|
|
584
|
-
options:
|
|
585
|
-
from:
|
|
584
|
+
options: Y,
|
|
585
|
+
from: J ? K.from : _.pos,
|
|
586
586
|
validFor: Identifier
|
|
587
587
|
};
|
|
588
588
|
}
|
|
@@ -592,31 +592,31 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
592
592
|
IfStatement: /* @__PURE__ */ continuedIndent({ except: /^\s*({|else\b)/ }),
|
|
593
593
|
TryStatement: /* @__PURE__ */ continuedIndent({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
594
594
|
LabeledStatement: flatIndent,
|
|
595
|
-
SwitchBody: (
|
|
596
|
-
let
|
|
597
|
-
return
|
|
595
|
+
SwitchBody: (_) => {
|
|
596
|
+
let K = _.textAfter, q = /^\s*\}/.test(K), J = /^\s*(case|default)\b/.test(K);
|
|
597
|
+
return _.baseIndent + (q ? 0 : J ? 1 : 2) * _.unit;
|
|
598
598
|
},
|
|
599
599
|
Block: /* @__PURE__ */ delimitedIndent({ closing: "}" }),
|
|
600
|
-
ArrowFunction: (
|
|
600
|
+
ArrowFunction: (_) => _.baseIndent + _.unit,
|
|
601
601
|
"TemplateString BlockComment": () => null,
|
|
602
602
|
"Statement Property": /* @__PURE__ */ continuedIndent({ except: /^\s*{/ }),
|
|
603
|
-
JSXElement(
|
|
604
|
-
let
|
|
605
|
-
return
|
|
603
|
+
JSXElement(_) {
|
|
604
|
+
let K = /^\s*<\//.test(_.textAfter);
|
|
605
|
+
return _.lineIndent(_.node.from) + (K ? 0 : _.unit);
|
|
606
606
|
},
|
|
607
|
-
JSXEscape(
|
|
608
|
-
let
|
|
609
|
-
return
|
|
607
|
+
JSXEscape(_) {
|
|
608
|
+
let K = /\s*\}/.test(_.textAfter);
|
|
609
|
+
return _.lineIndent(_.node.from) + (K ? 0 : _.unit);
|
|
610
610
|
},
|
|
611
|
-
"JSXOpenTag JSXSelfClosingTag"(
|
|
612
|
-
return
|
|
611
|
+
"JSXOpenTag JSXSelfClosingTag"(_) {
|
|
612
|
+
return _.column(_.node.from) + _.unit;
|
|
613
613
|
}
|
|
614
614
|
}), /* @__PURE__ */ foldNodeProp.add({
|
|
615
615
|
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": foldInside,
|
|
616
|
-
BlockComment(
|
|
616
|
+
BlockComment(_) {
|
|
617
617
|
return {
|
|
618
|
-
from:
|
|
619
|
-
to:
|
|
618
|
+
from: _.from + 2,
|
|
619
|
+
to: _.to - 2
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
})] }),
|
|
@@ -640,19 +640,19 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
640
640
|
wordChars: "$"
|
|
641
641
|
}
|
|
642
642
|
}), jsxSublanguage = {
|
|
643
|
-
test: (
|
|
643
|
+
test: (_) => /^JSX/.test(_.name),
|
|
644
644
|
facet: /* @__PURE__ */ defineLanguageFacet({ commentTokens: { block: {
|
|
645
645
|
open: "{/*",
|
|
646
646
|
close: "*/}"
|
|
647
647
|
} } })
|
|
648
648
|
}, typescriptLanguage = /* @__PURE__ */ javascriptLanguage.configure({ dialect: "ts" }, "typescript"), jsxLanguage = /* @__PURE__ */ javascriptLanguage.configure({
|
|
649
649
|
dialect: "jsx",
|
|
650
|
-
props: [/* @__PURE__ */ sublanguageProp.add((
|
|
650
|
+
props: [/* @__PURE__ */ sublanguageProp.add((_) => _.isTop ? [jsxSublanguage] : void 0)]
|
|
651
651
|
}), tsxLanguage = /* @__PURE__ */ javascriptLanguage.configure({
|
|
652
652
|
dialect: "jsx ts",
|
|
653
|
-
props: [/* @__PURE__ */ sublanguageProp.add((
|
|
654
|
-
}, "typescript"), kwCompletion = (
|
|
655
|
-
label:
|
|
653
|
+
props: [/* @__PURE__ */ sublanguageProp.add((_) => _.isTop ? [jsxSublanguage] : void 0)]
|
|
654
|
+
}, "typescript"), kwCompletion = (_) => ({
|
|
655
|
+
label: _,
|
|
656
656
|
type: "keyword"
|
|
657
657
|
}), keywords = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kwCompletion), typescriptKeywords = /* @__PURE__ */ keywords.concat(/* @__PURE__ */ [
|
|
658
658
|
"declare",
|
|
@@ -661,64 +661,64 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
661
661
|
"protected",
|
|
662
662
|
"public"
|
|
663
663
|
].map(kwCompletion));
|
|
664
|
-
function javascript(
|
|
665
|
-
let
|
|
666
|
-
return new LanguageSupport(
|
|
667
|
-
javascriptLanguage.data.of({ autocomplete: ifNotIn(dontComplete, completeFromList(
|
|
664
|
+
function javascript(_ = {}) {
|
|
665
|
+
let K = _.jsx ? _.typescript ? tsxLanguage : jsxLanguage : _.typescript ? typescriptLanguage : javascriptLanguage, q = _.typescript ? typescriptSnippets.concat(typescriptKeywords) : snippets.concat(keywords);
|
|
666
|
+
return new LanguageSupport(K, [
|
|
667
|
+
javascriptLanguage.data.of({ autocomplete: ifNotIn(dontComplete, completeFromList(q)) }),
|
|
668
668
|
javascriptLanguage.data.of({ autocomplete: localCompletionSource }),
|
|
669
|
-
|
|
669
|
+
_.jsx ? autoCloseTags : []
|
|
670
670
|
]);
|
|
671
671
|
}
|
|
672
|
-
function findOpenTag(
|
|
672
|
+
function findOpenTag(_) {
|
|
673
673
|
for (; ; ) {
|
|
674
|
-
if (
|
|
675
|
-
if (
|
|
676
|
-
|
|
674
|
+
if (_.name == "JSXOpenTag" || _.name == "JSXSelfClosingTag" || _.name == "JSXFragmentTag") return _;
|
|
675
|
+
if (_.name == "JSXEscape" || !_.parent) return null;
|
|
676
|
+
_ = _.parent;
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
|
-
function elementName(
|
|
680
|
-
for (let
|
|
679
|
+
function elementName(_, K, q = _.length) {
|
|
680
|
+
for (let J = K == null ? void 0 : K.firstChild; J; J = J.nextSibling) if (J.name == "JSXIdentifier" || J.name == "JSXBuiltin" || J.name == "JSXNamespacedName" || J.name == "JSXMemberExpression") return _.sliceString(J.from, Math.min(J.to, q));
|
|
681
681
|
return "";
|
|
682
682
|
}
|
|
683
|
-
var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((
|
|
684
|
-
if ((android ?
|
|
685
|
-
let Z = X(), { state: Q } = Z, $ = Q.changeByRange((
|
|
683
|
+
var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((_, K, J, Y, X) => {
|
|
684
|
+
if ((android ? _.composing : _.compositionStarted) || _.state.readOnly || K != J || Y != ">" && Y != "/" || !javascriptLanguage.isActiveAt(_.state, K, -1)) return false;
|
|
685
|
+
let Z = X(), { state: Q } = Z, $ = Q.changeByRange((_2) => {
|
|
686
686
|
var _a;
|
|
687
|
-
let { head:
|
|
688
|
-
if (
|
|
689
|
-
if (Y == ">" &&
|
|
690
|
-
range:
|
|
687
|
+
let { head: K2 } = _2, J2 = syntaxTree(Q).resolveInner(K2 - 1, -1), X2;
|
|
688
|
+
if (J2.name == "JSXStartTag" && (J2 = J2.parent), !(Q.doc.sliceString(K2 - 1, K2) != Y || J2.name == "JSXAttributeValue" && J2.to > K2)) {
|
|
689
|
+
if (Y == ">" && J2.name == "JSXFragmentTag") return {
|
|
690
|
+
range: _2,
|
|
691
691
|
changes: {
|
|
692
|
-
from:
|
|
692
|
+
from: K2,
|
|
693
693
|
insert: "</>"
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
|
-
if (Y == "/" &&
|
|
697
|
-
let
|
|
698
|
-
if (
|
|
699
|
-
let
|
|
696
|
+
if (Y == "/" && J2.name == "JSXStartCloseTag") {
|
|
697
|
+
let _3 = J2.parent, q = _3.parent;
|
|
698
|
+
if (q && _3.from == K2 - 2 && ((X2 = elementName(Q.doc, q.firstChild, K2)) || ((_a = q.firstChild) == null ? void 0 : _a.name) == "JSXFragmentTag")) {
|
|
699
|
+
let _4 = `${X2}>`;
|
|
700
700
|
return {
|
|
701
|
-
range: EditorSelection.cursor(
|
|
701
|
+
range: EditorSelection.cursor(K2 + _4.length, -1),
|
|
702
702
|
changes: {
|
|
703
|
-
from:
|
|
704
|
-
insert:
|
|
703
|
+
from: K2,
|
|
704
|
+
insert: _4
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
708
|
} else if (Y == ">") {
|
|
709
|
-
let
|
|
710
|
-
if (
|
|
711
|
-
range:
|
|
709
|
+
let q = findOpenTag(J2);
|
|
710
|
+
if (q && q.name == "JSXOpenTag" && !/^\/?>|^<\//.test(Q.doc.sliceString(K2, K2 + 2)) && (X2 = elementName(Q.doc, q, K2))) return {
|
|
711
|
+
range: _2,
|
|
712
712
|
changes: {
|
|
713
|
-
from:
|
|
713
|
+
from: K2,
|
|
714
714
|
insert: `</${X2}>`
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
return { range:
|
|
719
|
+
return { range: _2 };
|
|
720
720
|
});
|
|
721
|
-
return $.changes.empty ? false : (
|
|
721
|
+
return $.changes.empty ? false : (_.dispatch([Z, Q.update($, {
|
|
722
722
|
userEvent: "input.complete",
|
|
723
723
|
scrollIntoView: true
|
|
724
724
|
})]), true);
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-De-GlSAs.js";
|
|
2
|
+
import { n as html } from "./dist-BTdrwBWP.js";
|
|
3
|
+
import "./dist-4lVIWUT3.js";
|
|
4
|
+
import { r as javascriptLanguage } from "./dist-DgjbnqTg.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 (; ; ) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp,
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, X as parseMixed, kt as EditorSelection, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { n as html } from "./dist-BTdrwBWP.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;
|
|
@@ -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-De-GlSAs.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-BOMbzyb3.js";
|
|
3
|
+
import "./dist-BTdrwBWP.js";
|
|
4
|
+
import "./dist-4lVIWUT3.js";
|
|
5
|
+
import "./dist-DgjbnqTg.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-De-GlSAs.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-BpeiYpG2.js";
|
|
3
3
|
export {
|
|
4
4
|
Cassandra,
|
|
5
5
|
MSSQL,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./dist-De-GlSAs.js";
|
|
2
|
+
import "./dist-BTdrwBWP.js";
|
|
3
|
+
import "./dist-4lVIWUT3.js";
|
|
4
|
+
import "./dist-DgjbnqTg.js";
|
|
5
|
+
import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-DwqBJ014.js";
|
|
6
|
+
export {
|
|
7
|
+
liquid
|
|
8
|
+
};
|
|
@@ -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-De-GlSAs.js";
|
|
2
|
+
import { i as xmlLanguage, n as completeFromSchema, r as xml, t as autoCloseTags } from "./dist-BPF0gTRZ.js";
|
|
3
3
|
export {
|
|
4
4
|
xml
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-De-GlSAs.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,19 +1,19 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import "./purify.es-
|
|
3
|
-
import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-
|
|
2
|
+
import "./purify.es-EnR5yhgI.js";
|
|
3
|
+
import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-BdgLc8AM.js";
|
|
4
4
|
import { i as log, n as __export, r as __name, t as select_default } from "./src-DV3ha_nA.js";
|
|
5
|
-
import { $ as rgba_default, B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-
|
|
6
|
-
import { t as channel_default } from "./channel-
|
|
5
|
+
import { $ as rgba_default, B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-BxBDji1u.js";
|
|
6
|
+
import { t as channel_default } from "./channel-BN070S0F.js";
|
|
7
7
|
import "./chunk-HN2XXSSU-Bv0QkeMr.js";
|
|
8
8
|
import "./chunk-CVBHYZKI-CwazXVlJ.js";
|
|
9
|
-
import "./chunk-ATLVNIR6-
|
|
9
|
+
import "./chunk-ATLVNIR6-qFiszptQ.js";
|
|
10
10
|
import "./dist-DsoKosxi.js";
|
|
11
|
-
import "./chunk-JA3XYJ7Z-
|
|
12
|
-
import "./chunk-JZLCHNYA-
|
|
13
|
-
import "./chunk-QXUST7PY-
|
|
14
|
-
import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-
|
|
11
|
+
import "./chunk-JA3XYJ7Z-CY4CRbV5.js";
|
|
12
|
+
import "./chunk-JZLCHNYA-DWIR9m5O.js";
|
|
13
|
+
import "./chunk-QXUST7PY-DtC2t9Mk.js";
|
|
14
|
+
import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-Bw2HcMNc.js";
|
|
15
15
|
import { t as getDiagramElement } from "./chunk-55IACEB6-7h71GwyW.js";
|
|
16
|
-
import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-
|
|
16
|
+
import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-DPBNNzpR.js";
|
|
17
17
|
var parser = (function() {
|
|
18
18
|
var e = /* @__PURE__ */ __name(function(e2, t2, n2, r2) {
|
|
19
19
|
for (n2 || (n2 = {}), r2 = e2.length; r2--; n2[e2[r2]] = t2) ;
|