stream-monaco 0.0.36 → 0.0.37

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-kHKw8Ju_.cjs');
1
+ const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-C0_StL1Z.cjs');
2
2
 
3
3
  //#region src/ensureMonacoWorkers.ts
4
4
  function ensureMonacoWorkers() {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, editorWorkerPath, getOrCreateHighlighter, registerMonacoThemes, uniqueWorkerPaths, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-B0KjUDJf.js";
1
+ import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, editorWorkerPath, getOrCreateHighlighter, registerMonacoThemes, uniqueWorkerPaths, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-BRnjKKQj.js";
2
2
 
3
3
  //#region src/ensureMonacoWorkers.ts
4
4
  function ensureMonacoWorkers() {
@@ -1,4 +1,4 @@
1
- const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-kHKw8Ju_.cjs');
1
+ const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-C0_StL1Z.cjs');
2
2
  const monaco_editor_esm_vs_basic_languages_cpp_cpp = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/cpp/cpp"));
3
3
  const monaco_editor_esm_vs_basic_languages_javascript_javascript = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/javascript/javascript"));
4
4
  const monaco_editor_esm_vs_basic_languages_powershell_powershell = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/powershell/powershell"));
@@ -1,4 +1,4 @@
1
- import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, monaco_shim_exports, processedLanguage, registerMonacoThemes, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-B0KjUDJf.js";
1
+ import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, monaco_shim_exports, processedLanguage, registerMonacoThemes, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-BRnjKKQj.js";
2
2
  import { conf, language } from "monaco-editor/esm/vs/basic-languages/cpp/cpp";
3
3
  import { conf as conf$1, language as language$1 } from "monaco-editor/esm/vs/basic-languages/javascript/javascript";
4
4
  import { conf as conf$2, language as language$2 } from "monaco-editor/esm/vs/basic-languages/powershell/powershell";
@@ -5586,9 +5586,10 @@ var EditorManager = class {
5586
5586
  try {
5587
5587
  var _this$editorView8, _this$editorHeightMan, _this$editorHeightMan2;
5588
5588
  this.dlog("content-size-change frame");
5589
+ this.cachedLineCount = ((_this$editorView8 = this.editorView) === null || _this$editorView8 === void 0 || (_this$editorView8 = _this$editorView8.getModel()) === null || _this$editorView8 === void 0 ? void 0 : _this$editorView8.getLineCount()) ?? this.cachedLineCount;
5590
+ this.cachedComputedHeight = null;
5589
5591
  const m = this.measureViewport();
5590
5592
  this.dlog("content-size-change measure", m);
5591
- this.cachedLineCount = ((_this$editorView8 = this.editorView) === null || _this$editorView8 === void 0 || (_this$editorView8 = _this$editorView8.getModel()) === null || _this$editorView8 === void 0 ? void 0 : _this$editorView8.getLineCount()) ?? this.cachedLineCount;
5592
5593
  if ((_this$editorHeightMan = this.editorHeightManager) === null || _this$editorHeightMan === void 0 ? void 0 : _this$editorHeightMan.isSuppressed()) {
5593
5594
  this.dlog("content-size-change skipped height update (suppressed)");
5594
5595
  return;
@@ -5642,6 +5643,7 @@ var EditorManager = class {
5642
5643
  if (model) {
5643
5644
  this.lastKnownCode = model.getValue();
5644
5645
  this.cachedLineCount = model.getLineCount() ?? this.cachedLineCount;
5646
+ this.cachedComputedHeight = null;
5645
5647
  }
5646
5648
  this.lastKnownCodeDirty = false;
5647
5649
  }
@@ -5742,6 +5744,7 @@ var EditorManager = class {
5742
5744
  this.lastKnownCode = newCode;
5743
5745
  const newLineCount$1 = model.getLineCount();
5744
5746
  this.cachedLineCount = newLineCount$1;
5747
+ this.cachedComputedHeight = null;
5745
5748
  if (newLineCount$1 !== prevLineCount$1) {
5746
5749
  const shouldImmediate = this.shouldPerformImmediateReveal();
5747
5750
  if (shouldImmediate) this.suppressScrollWatcher(this.scrollWatcherSuppressionMs);
@@ -5777,6 +5780,7 @@ var EditorManager = class {
5777
5780
  this.lastKnownCode = newCode;
5778
5781
  const newLineCount = model.getLineCount();
5779
5782
  this.cachedLineCount = newLineCount;
5783
+ this.cachedComputedHeight = null;
5780
5784
  if (newLineCount !== prevLineCount) {
5781
5785
  const shouldImmediate = this.shouldPerformImmediateReveal();
5782
5786
  if (shouldImmediate) this.suppressScrollWatcher(this.scrollWatcherSuppressionMs);
@@ -5866,6 +5870,7 @@ var EditorManager = class {
5866
5870
  const newLineCount = model.getLineCount();
5867
5871
  if (lastLine !== newLineCount) {
5868
5872
  this.cachedLineCount = newLineCount;
5873
+ this.cachedComputedHeight = null;
5869
5874
  const shouldImmediate = this.shouldPerformImmediateReveal();
5870
5875
  if (shouldImmediate) this.suppressScrollWatcher(this.scrollWatcherSuppressionMs);
5871
5876
  const computed$2 = this.computedHeight(this.editorView);
@@ -5591,9 +5591,10 @@ var EditorManager = class {
5591
5591
  try {
5592
5592
  var _this$editorView8, _this$editorHeightMan, _this$editorHeightMan2;
5593
5593
  this.dlog("content-size-change frame");
5594
+ this.cachedLineCount = ((_this$editorView8 = this.editorView) === null || _this$editorView8 === void 0 || (_this$editorView8 = _this$editorView8.getModel()) === null || _this$editorView8 === void 0 ? void 0 : _this$editorView8.getLineCount()) ?? this.cachedLineCount;
5595
+ this.cachedComputedHeight = null;
5594
5596
  const m = this.measureViewport();
5595
5597
  this.dlog("content-size-change measure", m);
5596
- this.cachedLineCount = ((_this$editorView8 = this.editorView) === null || _this$editorView8 === void 0 || (_this$editorView8 = _this$editorView8.getModel()) === null || _this$editorView8 === void 0 ? void 0 : _this$editorView8.getLineCount()) ?? this.cachedLineCount;
5597
5598
  if ((_this$editorHeightMan = this.editorHeightManager) === null || _this$editorHeightMan === void 0 ? void 0 : _this$editorHeightMan.isSuppressed()) {
5598
5599
  this.dlog("content-size-change skipped height update (suppressed)");
5599
5600
  return;
@@ -5647,6 +5648,7 @@ var EditorManager = class {
5647
5648
  if (model) {
5648
5649
  this.lastKnownCode = model.getValue();
5649
5650
  this.cachedLineCount = model.getLineCount() ?? this.cachedLineCount;
5651
+ this.cachedComputedHeight = null;
5650
5652
  }
5651
5653
  this.lastKnownCodeDirty = false;
5652
5654
  }
@@ -5747,6 +5749,7 @@ var EditorManager = class {
5747
5749
  this.lastKnownCode = newCode;
5748
5750
  const newLineCount$1 = model.getLineCount();
5749
5751
  this.cachedLineCount = newLineCount$1;
5752
+ this.cachedComputedHeight = null;
5750
5753
  if (newLineCount$1 !== prevLineCount$1) {
5751
5754
  const shouldImmediate = this.shouldPerformImmediateReveal();
5752
5755
  if (shouldImmediate) this.suppressScrollWatcher(this.scrollWatcherSuppressionMs);
@@ -5782,6 +5785,7 @@ var EditorManager = class {
5782
5785
  this.lastKnownCode = newCode;
5783
5786
  const newLineCount = model.getLineCount();
5784
5787
  this.cachedLineCount = newLineCount;
5788
+ this.cachedComputedHeight = null;
5785
5789
  if (newLineCount !== prevLineCount) {
5786
5790
  const shouldImmediate = this.shouldPerformImmediateReveal();
5787
5791
  if (shouldImmediate) this.suppressScrollWatcher(this.scrollWatcherSuppressionMs);
@@ -5871,6 +5875,7 @@ var EditorManager = class {
5871
5875
  const newLineCount = model.getLineCount();
5872
5876
  if (lastLine !== newLineCount) {
5873
5877
  this.cachedLineCount = newLineCount;
5878
+ this.cachedComputedHeight = null;
5874
5879
  const shouldImmediate = this.shouldPerformImmediateReveal();
5875
5880
  if (shouldImmediate) this.suppressScrollWatcher(this.scrollWatcherSuppressionMs);
5876
5881
  const computed$1 = this.computedHeight(this.editorView);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-monaco",
3
3
  "type": "module",
4
- "version": "0.0.36",
4
+ "version": "0.0.37",
5
5
  "packageManager": "pnpm@10.33.2",
6
6
  "description": "A framework-agnostic Monaco Editor integration with Shiki syntax highlighting, built for real-time streaming updates and efficient diff editing.",
7
7
  "author": "Simon He",