@hpcc-js/codemirror 2.65.1 → 2.66.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.es6.js +15 -5
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +15 -5
- 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/Editor.ts +10 -0
- package/src/__package__.ts +2 -2
- package/types/Editor.d.ts +10 -0
- package/types/Editor.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/Editor.d.ts +10 -0
- 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.
|
|
5
|
-
var BUILD_VERSION = "2.108.
|
|
4
|
+
var PKG_VERSION = "2.66.1";
|
|
5
|
+
var BUILD_VERSION = "2.108.6";
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4492,7 +4492,7 @@ function requireCodemirror () {
|
|
|
4492
4492
|
// The element in which the editor lives.
|
|
4493
4493
|
d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
|
|
4494
4494
|
// See #6982. FIXME remove when this has been fixed for a while in Chrome
|
|
4495
|
-
if (chrome && chrome_version
|
|
4495
|
+
if (chrome && chrome_version === 105) { d.wrapper.style.clipPath = "inset(0px)"; }
|
|
4496
4496
|
|
|
4497
4497
|
// This attribute is respected by automatic translation systems such as Google Translate,
|
|
4498
4498
|
// and may also be respected by tools used by human translators.
|
|
@@ -9943,7 +9943,7 @@ function requireCodemirror () {
|
|
|
9943
9943
|
|
|
9944
9944
|
addLegacyProps(CodeMirror);
|
|
9945
9945
|
|
|
9946
|
-
CodeMirror.version = "5.65.
|
|
9946
|
+
CodeMirror.version = "5.65.20";
|
|
9947
9947
|
|
|
9948
9948
|
return CodeMirror;
|
|
9949
9949
|
|
|
@@ -17397,7 +17397,7 @@ function requireShowHint () {
|
|
|
17397
17397
|
var height = box.bottom - box.top, spaceAbove = box.top - (pos.bottom - pos.top) - 2;
|
|
17398
17398
|
if (winH - box.top < spaceAbove) { // More room at the top
|
|
17399
17399
|
if (height > spaceAbove) hints.style.height = (height = spaceAbove) + "px";
|
|
17400
|
-
hints.style.top = ((top = pos.top - height)
|
|
17400
|
+
hints.style.top = ((top = pos.top - height) - offsetTop) + "px";
|
|
17401
17401
|
below = false;
|
|
17402
17402
|
} else {
|
|
17403
17403
|
hints.style.height = (winH - box.top - 2) + "px";
|
|
@@ -17776,6 +17776,16 @@ var Editor = /** @class */ (function (_super) {
|
|
|
17776
17776
|
this.highlight(start, end, "cm-marked-error");
|
|
17777
17777
|
return this;
|
|
17778
17778
|
};
|
|
17779
|
+
Editor.prototype.addLineClass = function (options) {
|
|
17780
|
+
var _a;
|
|
17781
|
+
this._codemirror.addLineClass(this._codemirror.getLineHandle(options.lineNum), (_a = options.where) !== null && _a !== void 0 ? _a : "background", options.cssClass);
|
|
17782
|
+
return this;
|
|
17783
|
+
};
|
|
17784
|
+
Editor.prototype.removeLineClass = function (options) {
|
|
17785
|
+
var _a;
|
|
17786
|
+
this._codemirror.removeLineClass(this._codemirror.getLineHandle(options.lineNum), (_a = options.where) !== null && _a !== void 0 ? _a : "background", options.cssClass);
|
|
17787
|
+
return this;
|
|
17788
|
+
};
|
|
17779
17789
|
Editor.prototype.removeAllHighlight = function () {
|
|
17780
17790
|
for (var _i = 0, _a = this._markedText; _i < _a.length; _i++) {
|
|
17781
17791
|
var marked = _a[_i];
|