@hpcc-js/codemirror 3.8.0 → 3.8.1
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/index.js +26 -43
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +4 -4
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -5
- package/src/codemirror-shim.ts +3 -0
- package/types/codemirror-shim.d.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -9,9 +9,9 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
9
9
|
}, __toESM = (e, t, i) => (i = e == null ? {} : n(o(e)), __copyProps(t || !e || !e.__esModule ? r(i, "default", {
|
|
10
10
|
value: e,
|
|
11
11
|
enumerable: !0
|
|
12
|
-
}) : i, e)), c = "@hpcc-js/codemirror", l = "3.8.
|
|
12
|
+
}) : i, e)), c = "@hpcc-js/codemirror", l = "3.8.1", u = "3.26.1", d = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
13
13
|
(function(n, r) {
|
|
14
|
-
typeof e == "object" && t !== void 0 ? t.exports = r() :
|
|
14
|
+
typeof e == "object" && t !== void 0 ? t.exports = r() : (n ||= self, n.CodeMirror = r());
|
|
15
15
|
})(e, (function() {
|
|
16
16
|
var e = navigator.userAgent, t = navigator.platform, n = /gecko\/\d/i.test(e), r = /MSIE \d/.test(e), i = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e), a = /Edge\/(\d+)/.exec(e), o = r || i || a, s = o && (r ? document.documentMode || 6 : +(a || i)[1]), c = !a && /WebKit\//.test(e), l = c && /Qt\/\d+\.\d+/.test(e), u = !a && /Chrome\/(\d+)/.exec(e), d = u && +u[1], f = /Opera\//.test(e), m = /Apple Computer/.test(navigator.vendor), h = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e), g = /PhantomJS/.test(e), _ = m && (/Mobile\/\w+/.test(e) || navigator.maxTouchPoints > 2), v = /Android/.test(e), y = _ || v || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e), b = _ || /Mac/.test(t), x = /\bCrOS\b/.test(e), S = /win/i.test(t), C = f && e.match(/Version\/(\d*\.\d*)/);
|
|
17
17
|
C &&= Number(C[1]), C && C >= 15 && (f = !1, c = !0);
|
|
@@ -5616,7 +5616,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
5616
5616
|
}));
|
|
5617
5617
|
})), f = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
5618
5618
|
(function(n) {
|
|
5619
|
-
typeof e == "object" && typeof t == "object" ?
|
|
5619
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
5620
5620
|
})(function(e) {
|
|
5621
5621
|
e.defineMode("css", function(t, n) {
|
|
5622
5622
|
var r = n.inline;
|
|
@@ -5929,7 +5929,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
5929
5929
|
});
|
|
5930
5930
|
})), m = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
5931
5931
|
(function(n) {
|
|
5932
|
-
typeof e == "object" && typeof t == "object" ?
|
|
5932
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
5933
5933
|
})(function(e) {
|
|
5934
5934
|
e.defineMode("ecl", function(e) {
|
|
5935
5935
|
function words(e) {
|
|
@@ -6038,7 +6038,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
6038
6038
|
});
|
|
6039
6039
|
})), h = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
6040
6040
|
(function(n) {
|
|
6041
|
-
typeof e == "object" && typeof t == "object" ?
|
|
6041
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
6042
6042
|
})(function(e) {
|
|
6043
6043
|
var t = {
|
|
6044
6044
|
autoSelfClosers: {
|
|
@@ -6332,7 +6332,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
6332
6332
|
});
|
|
6333
6333
|
})), g = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
6334
6334
|
(function(n) {
|
|
6335
|
-
typeof e == "object" && typeof t == "object" ?
|
|
6335
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
6336
6336
|
})(function(e) {
|
|
6337
6337
|
e.modeInfo = [
|
|
6338
6338
|
{
|
|
@@ -7513,11 +7513,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
7513
7513
|
});
|
|
7514
7514
|
})), _ = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
7515
7515
|
(function(n) {
|
|
7516
|
-
typeof e == "object" && typeof t == "object" ? n(d(), h(), g()) :
|
|
7517
|
-
"../../lib/codemirror",
|
|
7518
|
-
"../xml/xml",
|
|
7519
|
-
"../meta"
|
|
7520
|
-
], n) : n(CodeMirror);
|
|
7516
|
+
typeof e == "object" && typeof t == "object" ? n(d(), h(), g()) : n(CodeMirror);
|
|
7521
7517
|
})(function(e) {
|
|
7522
7518
|
e.defineMode("markdown", function(t, n) {
|
|
7523
7519
|
var r = e.getMode(t, "text/html"), i = r.name == "null";
|
|
@@ -7865,7 +7861,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
7865
7861
|
});
|
|
7866
7862
|
})), v = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
7867
7863
|
(function(n) {
|
|
7868
|
-
typeof e == "object" && typeof t == "object" ?
|
|
7864
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
7869
7865
|
})(function(e) {
|
|
7870
7866
|
e.overlayMode = function(t, n, r) {
|
|
7871
7867
|
return {
|
|
@@ -7912,11 +7908,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
7912
7908
|
});
|
|
7913
7909
|
})), y = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
7914
7910
|
(function(n) {
|
|
7915
|
-
typeof e == "object" && typeof t == "object" ? n(d(), _(), v()) :
|
|
7916
|
-
"../../lib/codemirror",
|
|
7917
|
-
"../markdown/markdown",
|
|
7918
|
-
"../../addon/mode/overlay"
|
|
7919
|
-
], n) : n(CodeMirror);
|
|
7911
|
+
typeof e == "object" && typeof t == "object" ? n(d(), _(), v()) : n(CodeMirror);
|
|
7920
7912
|
})(function(e) {
|
|
7921
7913
|
var t = /^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|
7922
7914
|
e.defineMode("gfm", function(n, r) {
|
|
@@ -7963,7 +7955,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
7963
7955
|
});
|
|
7964
7956
|
})), b = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
7965
7957
|
(function(n) {
|
|
7966
|
-
typeof e == "object" && typeof t == "object" ?
|
|
7958
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
7967
7959
|
})(function(e) {
|
|
7968
7960
|
e.defineMode("javascript", function(t, n) {
|
|
7969
7961
|
var r = t.indentUnit, i = n.statementIndent, a = n.jsonld, o = n.json || a, s = n.trackScope !== !1, c = n.typescript, l = n.wordCharacters || /[\w$\xa1-\uffff]/, u = function() {
|
|
@@ -8603,12 +8595,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
8603
8595
|
});
|
|
8604
8596
|
})), x = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
8605
8597
|
(function(n) {
|
|
8606
|
-
typeof e == "object" && typeof t == "object" ? n(d(), h(), b(), f()) :
|
|
8607
|
-
"../../lib/codemirror",
|
|
8608
|
-
"../xml/xml",
|
|
8609
|
-
"../javascript/javascript",
|
|
8610
|
-
"../css/css"
|
|
8611
|
-
], n) : n(CodeMirror);
|
|
8598
|
+
typeof e == "object" && typeof t == "object" ? n(d(), h(), b(), f()) : n(CodeMirror);
|
|
8612
8599
|
})(function(e) {
|
|
8613
8600
|
var t = {
|
|
8614
8601
|
script: [
|
|
@@ -8743,7 +8730,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
8743
8730
|
});
|
|
8744
8731
|
})), S = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
8745
8732
|
(function(n) {
|
|
8746
|
-
typeof e == "object" && typeof t == "object" ?
|
|
8733
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
8747
8734
|
})(function(e) {
|
|
8748
8735
|
e.defineMode("sql", function(r, i) {
|
|
8749
8736
|
var a = i.client || {}, o = i.atoms || {
|
|
@@ -9009,7 +8996,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
9009
8996
|
});
|
|
9010
8997
|
})), C = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9011
8998
|
(function(n) {
|
|
9012
|
-
typeof e == "object" && typeof t == "object" ?
|
|
8999
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
9013
9000
|
})(function(e) {
|
|
9014
9001
|
e.defineMode("yaml", function() {
|
|
9015
9002
|
var e = RegExp("\\b((" + [
|
|
@@ -9058,7 +9045,7 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
|
|
|
9058
9045
|
}), e.defineMIME("text/x-yaml", "yaml"), e.defineMIME("text/yaml", "yaml");
|
|
9059
9046
|
});
|
|
9060
9047
|
}));
|
|
9061
|
-
f(), m(), h(), y(), b(), x(), S(), C();
|
|
9048
|
+
f(), m(), h(), g(), _(), y(), b(), x(), S(), C();
|
|
9062
9049
|
var w = /* @__PURE__ */ __toESM(d(), 1);
|
|
9063
9050
|
w.default.defineMode("dot", function(e) {
|
|
9064
9051
|
let t = /--|->|=|;/, n = /[\[\]{}]/;
|
|
@@ -9433,7 +9420,7 @@ w.default.defineMode("dot", function(e) {
|
|
|
9433
9420
|
//#region ../../node_modules/codemirror/addon/fold/brace-fold.js
|
|
9434
9421
|
var T = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9435
9422
|
(function(n) {
|
|
9436
|
-
typeof e == "object" && typeof t == "object" ?
|
|
9423
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
9437
9424
|
})(function(e) {
|
|
9438
9425
|
function bracketFolding(t) {
|
|
9439
9426
|
return function(n, r) {
|
|
@@ -9533,7 +9520,7 @@ var T = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
9533
9520
|
});
|
|
9534
9521
|
})), E = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9535
9522
|
(function(n) {
|
|
9536
|
-
typeof e == "object" && typeof t == "object" ?
|
|
9523
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
9537
9524
|
})(function(e) {
|
|
9538
9525
|
e.registerGlobalHelper("fold", "comment", function(e) {
|
|
9539
9526
|
return e.blockCommentStart && e.blockCommentEnd;
|
|
@@ -9574,7 +9561,7 @@ var T = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
9574
9561
|
});
|
|
9575
9562
|
})), D = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9576
9563
|
(function(n) {
|
|
9577
|
-
typeof e == "object" && typeof t == "object" ?
|
|
9564
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
9578
9565
|
})(function(e) {
|
|
9579
9566
|
function doFold(t, n, r, i) {
|
|
9580
9567
|
if (r && r.call) {
|
|
@@ -9676,7 +9663,7 @@ var T = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
9676
9663
|
});
|
|
9677
9664
|
})), O = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9678
9665
|
(function(n) {
|
|
9679
|
-
typeof e == "object" && typeof t == "object" ? n(d(), D()) :
|
|
9666
|
+
typeof e == "object" && typeof t == "object" ? n(d(), D()) : n(CodeMirror);
|
|
9680
9667
|
})(function(e) {
|
|
9681
9668
|
e.defineOption("foldGutter", !1, function(t, n, r) {
|
|
9682
9669
|
r && r != e.Init && (t.clearGutter(t.state.foldGutter.options.gutter), t.state.foldGutter = null, t.off("gutterClick", onGutterClick), t.off("changes", onChange), t.off("viewportChange", onViewportChange), t.off("fold", onFold), t.off("unfold", onFold), t.off("swapDoc", onChange), t.off("optionChange", optionChange)), n && (t.state.foldGutter = new State(parseOptions(n)), updateInViewport(t), t.on("gutterClick", onGutterClick), t.on("changes", onChange), t.on("viewportChange", onViewportChange), t.on("fold", onFold), t.on("unfold", onFold), t.on("swapDoc", onChange), t.on("optionChange", optionChange));
|
|
@@ -9771,7 +9758,7 @@ var T = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
9771
9758
|
});
|
|
9772
9759
|
})), k = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9773
9760
|
(function(n) {
|
|
9774
|
-
typeof e == "object" && typeof t == "object" ?
|
|
9761
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
9775
9762
|
})(function(e) {
|
|
9776
9763
|
function lineIndent(t, n) {
|
|
9777
9764
|
var r = t.getLine(n), i = r.search(/\S/);
|
|
@@ -9794,7 +9781,7 @@ var T = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
9794
9781
|
});
|
|
9795
9782
|
})), A = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9796
9783
|
(function(n) {
|
|
9797
|
-
typeof e == "object" && typeof t == "object" ?
|
|
9784
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
9798
9785
|
})(function(e) {
|
|
9799
9786
|
var t = e.Pos;
|
|
9800
9787
|
function cmp(e, t) {
|
|
@@ -9973,12 +9960,12 @@ var T = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
9973
9960
|
};
|
|
9974
9961
|
});
|
|
9975
9962
|
}));
|
|
9976
|
-
T(), E(), D(), O(), k(), A();
|
|
9963
|
+
v(), T(), E(), D(), O(), k(), A();
|
|
9977
9964
|
//#endregion
|
|
9978
9965
|
//#region ../../node_modules/codemirror/addon/dialog/dialog.js
|
|
9979
9966
|
var j = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
9980
9967
|
(function(n) {
|
|
9981
|
-
typeof e == "object" && typeof t == "object" ?
|
|
9968
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
9982
9969
|
})(function(e) {
|
|
9983
9970
|
function dialogDiv(t, n, r) {
|
|
9984
9971
|
var i = t.getWrapperElement(), a = i.appendChild(document.createElement("div"));
|
|
@@ -10043,7 +10030,7 @@ var j = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
10043
10030
|
});
|
|
10044
10031
|
})), M = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
10045
10032
|
(function(n) {
|
|
10046
|
-
typeof e == "object" && typeof t == "object" ? n(d(), j()) :
|
|
10033
|
+
typeof e == "object" && typeof t == "object" ? n(d(), j()) : n(CodeMirror);
|
|
10047
10034
|
})(function(e) {
|
|
10048
10035
|
e.defineOption("search", { bottom: !1 });
|
|
10049
10036
|
function dialog(e, t, n, r, i) {
|
|
@@ -10076,7 +10063,7 @@ var j = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
10076
10063
|
});
|
|
10077
10064
|
})), N = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
10078
10065
|
(function(n) {
|
|
10079
|
-
typeof e == "object" && typeof t == "object" ?
|
|
10066
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
10080
10067
|
})(function(e) {
|
|
10081
10068
|
var t = e.Pos;
|
|
10082
10069
|
function regexpFlags(e) {
|
|
@@ -10293,11 +10280,7 @@ var j = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
10293
10280
|
});
|
|
10294
10281
|
})), P = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
10295
10282
|
(function(n) {
|
|
10296
|
-
typeof e == "object" && typeof t == "object" ? n(d(), N(), j()) :
|
|
10297
|
-
"../../lib/codemirror",
|
|
10298
|
-
"./searchcursor",
|
|
10299
|
-
"../dialog/dialog"
|
|
10300
|
-
], n) : n(CodeMirror);
|
|
10283
|
+
typeof e == "object" && typeof t == "object" ? n(d(), N(), j()) : n(CodeMirror);
|
|
10301
10284
|
})(function(e) {
|
|
10302
10285
|
e.defineOption("search", { bottom: !1 });
|
|
10303
10286
|
function searchOverlay(e, t) {
|
|
@@ -10497,7 +10480,7 @@ var j = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
|
10497
10480
|
});
|
|
10498
10481
|
})), F = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
10499
10482
|
(function(n) {
|
|
10500
|
-
typeof e == "object" && typeof t == "object" ?
|
|
10483
|
+
n(typeof e == "object" && typeof t == "object" ? d() : CodeMirror);
|
|
10501
10484
|
})(function(e) {
|
|
10502
10485
|
var t = "CodeMirror-hint", n = "CodeMirror-hint-active";
|
|
10503
10486
|
e.showHint = function(e, t, n) {
|