@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.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.0";
|
|
5
|
+
var BUILD_VERSION = "2.108.5";
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -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];
|