@hpcc-js/codemirror 2.60.5 → 2.60.6
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.es6.js +17 -6
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +4 -4
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports, common) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/codemirror";
|
|
8
|
-
var PKG_VERSION = "2.60.
|
|
9
|
-
var BUILD_VERSION = "2.104.
|
|
8
|
+
var PKG_VERSION = "2.60.6";
|
|
9
|
+
var BUILD_VERSION = "2.104.13";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4471,6 +4471,8 @@
|
|
|
4471
4471
|
d.scroller.setAttribute("tabIndex", "-1");
|
|
4472
4472
|
// The element in which the editor lives.
|
|
4473
4473
|
d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
|
|
4474
|
+
// See #6982. FIXME remove when this has been fixed for a while in Chrome
|
|
4475
|
+
if (chrome && chrome_version >= 105) { d.wrapper.style.clipPath = "inset(0px)"; }
|
|
4474
4476
|
|
|
4475
4477
|
// This attribute is respected by automatic translation systems such as Google Translate,
|
|
4476
4478
|
// and may also be respected by tools used by human translators.
|
|
@@ -7828,7 +7830,7 @@
|
|
|
7828
7830
|
for (var i = newBreaks.length - 1; i >= 0; i--)
|
|
7829
7831
|
{ replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length)); }
|
|
7830
7832
|
});
|
|
7831
|
-
option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
|
|
7833
|
+
option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
|
|
7832
7834
|
cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g");
|
|
7833
7835
|
if (old != Init) { cm.refresh(); }
|
|
7834
7836
|
});
|
|
@@ -9424,6 +9426,7 @@
|
|
|
9424
9426
|
// Used to work around IE issue with selection being forgotten when focus moves away from textarea
|
|
9425
9427
|
this.hasSelection = false;
|
|
9426
9428
|
this.composing = null;
|
|
9429
|
+
this.resetting = false;
|
|
9427
9430
|
};
|
|
9428
9431
|
|
|
9429
9432
|
TextareaInput.prototype.init = function (display) {
|
|
@@ -9556,8 +9559,9 @@
|
|
|
9556
9559
|
// Reset the input to correspond to the selection (or to be empty,
|
|
9557
9560
|
// when not typing and nothing is selected)
|
|
9558
9561
|
TextareaInput.prototype.reset = function (typing) {
|
|
9559
|
-
if (this.contextMenuPending || this.composing) { return }
|
|
9562
|
+
if (this.contextMenuPending || this.composing && typing) { return }
|
|
9560
9563
|
var cm = this.cm;
|
|
9564
|
+
this.resetting = true;
|
|
9561
9565
|
if (cm.somethingSelected()) {
|
|
9562
9566
|
this.prevInput = "";
|
|
9563
9567
|
var content = cm.getSelection();
|
|
@@ -9568,6 +9572,7 @@
|
|
|
9568
9572
|
this.prevInput = this.textarea.value = "";
|
|
9569
9573
|
if (ie && ie_version >= 9) { this.hasSelection = null; }
|
|
9570
9574
|
}
|
|
9575
|
+
this.resetting = false;
|
|
9571
9576
|
};
|
|
9572
9577
|
|
|
9573
9578
|
TextareaInput.prototype.getField = function () { return this.textarea };
|
|
@@ -9629,7 +9634,7 @@
|
|
|
9629
9634
|
// possible when it is clear that nothing happened. hasSelection
|
|
9630
9635
|
// will be the case when there is a lot of text in the textarea,
|
|
9631
9636
|
// in which case reading its value would be expensive.
|
|
9632
|
-
if (this.contextMenuPending || !cm.state.focused ||
|
|
9637
|
+
if (this.contextMenuPending || this.resetting || !cm.state.focused ||
|
|
9633
9638
|
(hasSelection(input) && !prevInput && !this.composing) ||
|
|
9634
9639
|
cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
|
|
9635
9640
|
{ return false }
|
|
@@ -9916,7 +9921,7 @@
|
|
|
9916
9921
|
|
|
9917
9922
|
addLegacyProps(CodeMirror);
|
|
9918
9923
|
|
|
9919
|
-
CodeMirror.version = "5.65.
|
|
9924
|
+
CodeMirror.version = "5.65.9";
|
|
9920
9925
|
|
|
9921
9926
|
return CodeMirror;
|
|
9922
9927
|
|
|
@@ -15159,6 +15164,7 @@
|
|
|
15159
15164
|
cm.off("fold", onFold);
|
|
15160
15165
|
cm.off("unfold", onFold);
|
|
15161
15166
|
cm.off("swapDoc", onChange);
|
|
15167
|
+
cm.off("optionChange", optionChange);
|
|
15162
15168
|
}
|
|
15163
15169
|
if (val) {
|
|
15164
15170
|
cm.state.foldGutter = new State(parseOptions(val));
|
|
@@ -15169,6 +15175,7 @@
|
|
|
15169
15175
|
cm.on("fold", onFold);
|
|
15170
15176
|
cm.on("unfold", onFold);
|
|
15171
15177
|
cm.on("swapDoc", onChange);
|
|
15178
|
+
cm.on("optionChange", optionChange);
|
|
15172
15179
|
}
|
|
15173
15180
|
});
|
|
15174
15181
|
|
|
@@ -15258,6 +15265,10 @@
|
|
|
15258
15265
|
else cm.foldCode(Pos(line, 0), opts);
|
|
15259
15266
|
}
|
|
15260
15267
|
|
|
15268
|
+
function optionChange(cm, option) {
|
|
15269
|
+
if (option == "mode") onChange(cm);
|
|
15270
|
+
}
|
|
15271
|
+
|
|
15261
15272
|
function onChange(cm) {
|
|
15262
15273
|
var state = cm.state.foldGutter;
|
|
15263
15274
|
if (!state) return;
|