@hpcc-js/codemirror 2.65.1 → 2.66.0
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 +12 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +12 -2
- 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 +2 -2
- 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.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.
|
|
9
|
-
var BUILD_VERSION = "2.108.
|
|
8
|
+
var PKG_VERSION = "2.66.0";
|
|
9
|
+
var BUILD_VERSION = "2.108.5";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -17780,6 +17780,16 @@
|
|
|
17780
17780
|
this.highlight(start, end, "cm-marked-error");
|
|
17781
17781
|
return this;
|
|
17782
17782
|
};
|
|
17783
|
+
Editor.prototype.addLineClass = function (options) {
|
|
17784
|
+
var _a;
|
|
17785
|
+
this._codemirror.addLineClass(this._codemirror.getLineHandle(options.lineNum), (_a = options.where) !== null && _a !== void 0 ? _a : "background", options.cssClass);
|
|
17786
|
+
return this;
|
|
17787
|
+
};
|
|
17788
|
+
Editor.prototype.removeLineClass = function (options) {
|
|
17789
|
+
var _a;
|
|
17790
|
+
this._codemirror.removeLineClass(this._codemirror.getLineHandle(options.lineNum), (_a = options.where) !== null && _a !== void 0 ? _a : "background", options.cssClass);
|
|
17791
|
+
return this;
|
|
17792
|
+
};
|
|
17783
17793
|
Editor.prototype.removeAllHighlight = function () {
|
|
17784
17794
|
for (var _i = 0, _a = this._markedText; _i < _a.length; _i++) {
|
|
17785
17795
|
var marked = _a[_i];
|