@hpcc-js/codemirror 2.60.8 → 2.60.10
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 +9 -7
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +9 -7
- 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 +5 -5
- package/src/__package__.ts +3 -3
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- 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.10";
|
|
9
|
+
var BUILD_VERSION = "2.104.27";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -8315,8 +8315,8 @@
|
|
|
8315
8315
|
}
|
|
8316
8316
|
|
|
8317
8317
|
function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {
|
|
8318
|
-
field.setAttribute("autocorrect", autocorrect ? "" : "off");
|
|
8319
|
-
field.setAttribute("autocapitalize", autocapitalize ? "" : "off");
|
|
8318
|
+
field.setAttribute("autocorrect", autocorrect ? "on" : "off");
|
|
8319
|
+
field.setAttribute("autocapitalize", autocapitalize ? "on" : "off");
|
|
8320
8320
|
field.setAttribute("spellcheck", !!spellcheck);
|
|
8321
8321
|
}
|
|
8322
8322
|
|
|
@@ -8331,7 +8331,6 @@
|
|
|
8331
8331
|
else { te.setAttribute("wrap", "off"); }
|
|
8332
8332
|
// If border: 0; -- iOS fails to open keyboard (issue #1287)
|
|
8333
8333
|
if (ios) { te.style.border = "1px solid black"; }
|
|
8334
|
-
disableBrowserMagic(te);
|
|
8335
8334
|
return div
|
|
8336
8335
|
}
|
|
8337
8336
|
|
|
@@ -8953,6 +8952,7 @@
|
|
|
8953
8952
|
}
|
|
8954
8953
|
// Old-fashioned briefly-focus-a-textarea hack
|
|
8955
8954
|
var kludge = hiddenTextarea(), te = kludge.firstChild;
|
|
8955
|
+
disableBrowserMagic(te);
|
|
8956
8956
|
cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);
|
|
8957
8957
|
te.value = lastCopied.text.join("\n");
|
|
8958
8958
|
var hadFocus = activeElt(div.ownerDocument);
|
|
@@ -9517,6 +9517,8 @@
|
|
|
9517
9517
|
// The semihidden textarea that is focused when the editor is
|
|
9518
9518
|
// focused, and receives input.
|
|
9519
9519
|
this.textarea = this.wrapper.firstChild;
|
|
9520
|
+
var opts = this.cm.options;
|
|
9521
|
+
disableBrowserMagic(this.textarea, opts.spellcheck, opts.autocorrect, opts.autocapitalize);
|
|
9520
9522
|
};
|
|
9521
9523
|
|
|
9522
9524
|
TextareaInput.prototype.screenReaderLabelChanged = function (label) {
|
|
@@ -9921,7 +9923,7 @@
|
|
|
9921
9923
|
|
|
9922
9924
|
addLegacyProps(CodeMirror);
|
|
9923
9925
|
|
|
9924
|
-
CodeMirror.version = "5.65.
|
|
9926
|
+
CodeMirror.version = "5.65.13";
|
|
9925
9927
|
|
|
9926
9928
|
return CodeMirror;
|
|
9927
9929
|
|
|
@@ -13505,7 +13507,7 @@
|
|
|
13505
13507
|
if (type == "async" ||
|
|
13506
13508
|
(type == "variable" &&
|
|
13507
13509
|
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
|
|
13508
|
-
cx.stream.match(/^\s
|
|
13510
|
+
cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
|
|
13509
13511
|
cx.marked = "keyword";
|
|
13510
13512
|
return cont(classBody);
|
|
13511
13513
|
}
|