@hpcc-js/codemirror 2.60.8 → 2.60.9
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 +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.es6.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Palette, HTMLWidget } from '@hpcc-js/common';
|
|
2
2
|
|
|
3
3
|
var PKG_NAME = "@hpcc-js/codemirror";
|
|
4
|
-
var PKG_VERSION = "2.60.
|
|
5
|
-
var BUILD_VERSION = "2.104.
|
|
4
|
+
var PKG_VERSION = "2.60.9";
|
|
5
|
+
var BUILD_VERSION = "2.104.20";
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -8311,8 +8311,8 @@ var codemirror = {exports: {}};
|
|
|
8311
8311
|
}
|
|
8312
8312
|
|
|
8313
8313
|
function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {
|
|
8314
|
-
field.setAttribute("autocorrect", autocorrect ? "" : "off");
|
|
8315
|
-
field.setAttribute("autocapitalize", autocapitalize ? "" : "off");
|
|
8314
|
+
field.setAttribute("autocorrect", autocorrect ? "on" : "off");
|
|
8315
|
+
field.setAttribute("autocapitalize", autocapitalize ? "on" : "off");
|
|
8316
8316
|
field.setAttribute("spellcheck", !!spellcheck);
|
|
8317
8317
|
}
|
|
8318
8318
|
|
|
@@ -8327,7 +8327,6 @@ var codemirror = {exports: {}};
|
|
|
8327
8327
|
else { te.setAttribute("wrap", "off"); }
|
|
8328
8328
|
// If border: 0; -- iOS fails to open keyboard (issue #1287)
|
|
8329
8329
|
if (ios) { te.style.border = "1px solid black"; }
|
|
8330
|
-
disableBrowserMagic(te);
|
|
8331
8330
|
return div
|
|
8332
8331
|
}
|
|
8333
8332
|
|
|
@@ -8949,6 +8948,7 @@ var codemirror = {exports: {}};
|
|
|
8949
8948
|
}
|
|
8950
8949
|
// Old-fashioned briefly-focus-a-textarea hack
|
|
8951
8950
|
var kludge = hiddenTextarea(), te = kludge.firstChild;
|
|
8951
|
+
disableBrowserMagic(te);
|
|
8952
8952
|
cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);
|
|
8953
8953
|
te.value = lastCopied.text.join("\n");
|
|
8954
8954
|
var hadFocus = activeElt(div.ownerDocument);
|
|
@@ -9513,6 +9513,8 @@ var codemirror = {exports: {}};
|
|
|
9513
9513
|
// The semihidden textarea that is focused when the editor is
|
|
9514
9514
|
// focused, and receives input.
|
|
9515
9515
|
this.textarea = this.wrapper.firstChild;
|
|
9516
|
+
var opts = this.cm.options;
|
|
9517
|
+
disableBrowserMagic(this.textarea, opts.spellcheck, opts.autocorrect, opts.autocapitalize);
|
|
9516
9518
|
};
|
|
9517
9519
|
|
|
9518
9520
|
TextareaInput.prototype.screenReaderLabelChanged = function (label) {
|
|
@@ -9917,7 +9919,7 @@ var codemirror = {exports: {}};
|
|
|
9917
9919
|
|
|
9918
9920
|
addLegacyProps(CodeMirror);
|
|
9919
9921
|
|
|
9920
|
-
CodeMirror.version = "5.65.
|
|
9922
|
+
CodeMirror.version = "5.65.13";
|
|
9921
9923
|
|
|
9922
9924
|
return CodeMirror;
|
|
9923
9925
|
|
|
@@ -13501,7 +13503,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|
|
13501
13503
|
if (type == "async" ||
|
|
13502
13504
|
(type == "variable" &&
|
|
13503
13505
|
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
|
|
13504
|
-
cx.stream.match(/^\s
|
|
13506
|
+
cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
|
|
13505
13507
|
cx.marked = "keyword";
|
|
13506
13508
|
return cont(classBody);
|
|
13507
13509
|
}
|