@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.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.65.1";
9
- var BUILD_VERSION = "2.108.2";
8
+ var PKG_VERSION = "2.66.1";
9
+ var BUILD_VERSION = "2.108.6";
10
10
 
11
11
  /******************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -4496,7 +4496,7 @@
4496
4496
  // The element in which the editor lives.
4497
4497
  d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
4498
4498
  // See #6982. FIXME remove when this has been fixed for a while in Chrome
4499
- if (chrome && chrome_version >= 105) { d.wrapper.style.clipPath = "inset(0px)"; }
4499
+ if (chrome && chrome_version === 105) { d.wrapper.style.clipPath = "inset(0px)"; }
4500
4500
 
4501
4501
  // This attribute is respected by automatic translation systems such as Google Translate,
4502
4502
  // and may also be respected by tools used by human translators.
@@ -9947,7 +9947,7 @@
9947
9947
 
9948
9948
  addLegacyProps(CodeMirror);
9949
9949
 
9950
- CodeMirror.version = "5.65.19";
9950
+ CodeMirror.version = "5.65.20";
9951
9951
 
9952
9952
  return CodeMirror;
9953
9953
 
@@ -17401,7 +17401,7 @@
17401
17401
  var height = box.bottom - box.top, spaceAbove = box.top - (pos.bottom - pos.top) - 2;
17402
17402
  if (winH - box.top < spaceAbove) { // More room at the top
17403
17403
  if (height > spaceAbove) hints.style.height = (height = spaceAbove) + "px";
17404
- hints.style.top = ((top = pos.top - height) + offsetTop) + "px";
17404
+ hints.style.top = ((top = pos.top - height) - offsetTop) + "px";
17405
17405
  below = false;
17406
17406
  } else {
17407
17407
  hints.style.height = (winH - box.top - 2) + "px";
@@ -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];