@hpcc-js/codemirror 2.63.0 → 2.65.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.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.63.0";
9
- var BUILD_VERSION = "2.106.0";
8
+ var PKG_VERSION = "2.65.0";
9
+ var BUILD_VERSION = "2.107.2";
10
10
 
11
11
  /******************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -22,7 +22,7 @@
22
22
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
23
  PERFORMANCE OF THIS SOFTWARE.
24
24
  ***************************************************************************** */
25
- /* global Reflect, Promise, SuppressedError, Symbol */
25
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
26
26
 
27
27
  var extendStatics = function(d, b) {
28
28
  extendStatics = Object.setPrototypeOf ||
@@ -3490,7 +3490,7 @@
3490
3490
  }
3491
3491
 
3492
3492
  // Compute the lines that are visible in a given viewport (defaults
3493
- // the the current scroll position). viewport may contain top,
3493
+ // the current scroll position). viewport may contain top,
3494
3494
  // height, and ensure (see op.scrollToPos) properties.
3495
3495
  function visibleLines(display, doc, viewport) {
3496
3496
  var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;
@@ -9942,7 +9942,7 @@
9942
9942
 
9943
9943
  addLegacyProps(CodeMirror);
9944
9944
 
9945
- CodeMirror.version = "5.65.16";
9945
+ CodeMirror.version = "5.65.18";
9946
9946
 
9947
9947
  return CodeMirror;
9948
9948
 
@@ -17860,6 +17860,24 @@
17860
17860
  }(Editor));
17861
17861
  SQLEditor.prototype._class += " codemirror_SQLEditor";
17862
17862
 
17863
+ var YAMLEditor = /** @class */ (function (_super) {
17864
+ __extends(YAMLEditor, _super);
17865
+ function YAMLEditor() {
17866
+ return _super !== null && _super.apply(this, arguments) || this;
17867
+ }
17868
+ YAMLEditor.prototype.options = function () {
17869
+ return __assign(__assign({}, _super.prototype.options.call(this)), { mode: "text/x-yaml", foldGutter: true, gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"] });
17870
+ };
17871
+ YAMLEditor.prototype.yaml = function (_) {
17872
+ if (!arguments.length)
17873
+ return this.text();
17874
+ this.text(_);
17875
+ return this;
17876
+ };
17877
+ return YAMLEditor;
17878
+ }(Editor));
17879
+ YAMLEditor.prototype._class += " codemirror_YAMLEditor";
17880
+
17863
17881
  exports.BUILD_VERSION = BUILD_VERSION;
17864
17882
  exports.CSSEditor = CSSEditor;
17865
17883
  exports.DOTEditor = DOTEditor;
@@ -17874,6 +17892,7 @@
17874
17892
  exports.PKG_VERSION = PKG_VERSION;
17875
17893
  exports.SQLEditor = SQLEditor;
17876
17894
  exports.XMLEditor = XMLEditor;
17895
+ exports.YAMLEditor = YAMLEditor;
17877
17896
 
17878
17897
  }));
17879
17898
  //# sourceMappingURL=index.js.map