@lvce-editor/editor-worker 19.70.1 → 19.70.2

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.
@@ -16930,8 +16930,8 @@ const getEditorRowsVirtualDom$1 = (textInfos, differences, lineNumbers = true, h
16930
16930
  return dom;
16931
16931
  };
16932
16932
 
16933
- const getEditorRowsVirtualDom = (textInfos, differences, lineNumbers = true, highlightedLine = -1, visibleLineIndices = [], endOfLineDecorations = [], visibleViewLineIndices = [], problemsHighlightedRow = -1) => {
16934
- const rowsDom = getEditorRowsVirtualDom$1(textInfos, differences, lineNumbers, highlightedLine, visibleLineIndices, endOfLineDecorations, visibleViewLineIndices, problemsHighlightedRow);
16933
+ const getEditorRowsVirtualDom = (textInfos, differences, lineNumbers = true, highlightedLine = -1, visibleLineIndices = [], endOfLineDecorations = [], visibleViewLineIndices = [], problemsHighlightedRow = -1, unnecessaryDiagnostics = []) => {
16934
+ const rowsDom = getEditorRowsVirtualDom$1(textInfos, differences, lineNumbers, highlightedLine, visibleLineIndices, endOfLineDecorations, visibleViewLineIndices, problemsHighlightedRow, unnecessaryDiagnostics);
16935
16935
  return [{
16936
16936
  childCount: visibleViewLineIndices.length || textInfos.length,
16937
16937
  className: 'EditorRows',
@@ -17028,8 +17028,8 @@ const editorLayersNode = {
17028
17028
  className: 'EditorLayers',
17029
17029
  type: Div
17030
17030
  };
17031
- const getEditorLayersVirtualDom = (selectionInfos, textInfos, differences, lineNumbers = true, highlightedLine = -1, cursorInfos = [], diagnostics = [], visibleLineIndices = [], endOfLineDecorations = [], bracketMatchInfos = [], focused = true, visibleViewLineIndices = [], problemsHighlightedRow = -1, roundedSelection = false) => {
17032
- return [editorLayersNode, ...getEditorSelectionsVirtualDom(selectionInfos, focused, roundedSelection), ...getEditorRowsVirtualDom(textInfos, differences, lineNumbers, highlightedLine, visibleLineIndices, endOfLineDecorations, visibleViewLineIndices, problemsHighlightedRow), ...getEditorCursorsVirtualDom(cursorInfos, focused), ...getEditorDiagnosticsVirtualDom(diagnostics, bracketMatchInfos)];
17031
+ const getEditorLayersVirtualDom = (selectionInfos, textInfos, differences, lineNumbers = true, highlightedLine = -1, cursorInfos = [], diagnostics = [], visibleLineIndices = [], endOfLineDecorations = [], bracketMatchInfos = [], focused = true, visibleViewLineIndices = [], problemsHighlightedRow = -1, roundedSelection = false, unnecessaryDiagnostics = []) => {
17032
+ return [editorLayersNode, ...getEditorSelectionsVirtualDom(selectionInfos, focused, roundedSelection), ...getEditorRowsVirtualDom(textInfos, differences, lineNumbers, highlightedLine, visibleLineIndices, endOfLineDecorations, visibleViewLineIndices, problemsHighlightedRow, unnecessaryDiagnostics), ...getEditorCursorsVirtualDom(cursorInfos, focused), ...getEditorDiagnosticsVirtualDom(diagnostics, bracketMatchInfos)];
17033
17033
  };
17034
17034
 
17035
17035
  const getEditorScrollBarDiagnosticsVirtualDom = scrollBarDiagnostics => {
@@ -17110,13 +17110,14 @@ const getEditorContentVirtualDom = ({
17110
17110
  scrollBarWidth = 0,
17111
17111
  selectionInfos = [],
17112
17112
  textInfos,
17113
+ unnecessaryDiagnostics = [],
17113
17114
  visibleLineIndices = [],
17114
17115
  visibleViewLineIndices = []
17115
17116
  }) => {
17116
17117
  return [{
17117
17118
  ...editorContentNode,
17118
17119
  className: breadcrumbsEnabled ? 'EditorContent EditorBreadcrumbsOffset' : 'EditorContent'
17119
- }, ...getEditorInputVirtualDom(), ...getEditorLayersVirtualDom(selectionInfos, textInfos, differences, lineNumbers, highlightedLine, cursorInfos, diagnostics, visibleLineIndices, endOfLineDecorations, bracketMatchInfos, focused, visibleViewLineIndices, problemsHighlightedRow, roundedSelection), ...getEditorScrollBarDiagnosticsVirtualDom(scrollBarDiagnostics), ...getScrollBarVirtualDom(scrollBarHeight, scrollBarWidth)];
17120
+ }, ...getEditorInputVirtualDom(), ...getEditorLayersVirtualDom(selectionInfos, textInfos, differences, lineNumbers, highlightedLine, cursorInfos, diagnostics, visibleLineIndices, endOfLineDecorations, bracketMatchInfos, focused, visibleViewLineIndices, problemsHighlightedRow, roundedSelection, unnecessaryDiagnostics), ...getEditorScrollBarDiagnosticsVirtualDom(scrollBarDiagnostics), ...getScrollBarVirtualDom(scrollBarHeight, scrollBarWidth)];
17120
17121
  };
17121
17122
 
17122
17123
  const getGutterInfoVirtualDom = (gutterInfo, activeLineNumber) => {
@@ -17288,6 +17289,7 @@ const getEditorVirtualDom = ({
17288
17289
  selections = new Uint32Array(),
17289
17290
  textInfos,
17290
17291
  uid,
17292
+ unnecessaryDiagnostics = [],
17291
17293
  uri = '',
17292
17294
  visibleLineIndices,
17293
17295
  visibleViewLineIndices = [],
@@ -17345,6 +17347,7 @@ const getEditorVirtualDom = ({
17345
17347
  scrollBarWidth,
17346
17348
  selectionInfos,
17347
17349
  textInfos: combineWhitespaceTokens$1 ? textInfos.map(combineWhitespaceTokens) : textInfos,
17350
+ unnecessaryDiagnostics,
17348
17351
  visibleLineIndices: visibleLineIndices || [],
17349
17352
  visibleViewLineIndices
17350
17353
  }), ...minimapDom];
@@ -17520,7 +17523,8 @@ const getDom = state => {
17520
17523
  ...state,
17521
17524
  diagnostics: visualDecorations,
17522
17525
  scrollBarDiagnostics: getScrollBarDiagnostics(state, diagnostics),
17523
- scrollBarWidth: getScrollBarSize(width, longestLineWidth, minimumSliderSize)
17526
+ scrollBarWidth: getScrollBarSize(width, longestLineWidth, minimumSliderSize),
17527
+ unnecessaryDiagnostics: diagnostics
17524
17528
  });
17525
17529
  };
17526
17530
  const mergeConflictsEqual = (oldState, newState) => {
@@ -17699,7 +17703,7 @@ const renderLines = {
17699
17703
  const dom = getEditorRowsVirtualDom$1(textInfos, differences, true, highlightedLine, visibleLineIndices, endOfLineDecorations, visibleViewLineIndices, newState.problemsHighlightedRow, diagnostics || []);
17700
17704
  return [/* method */'setText', dom];
17701
17705
  },
17702
- isEqual: (oldState, newState) => oldState.lines === newState.lines && oldState.foldingRanges === newState.foldingRanges && oldState.visibleViewLineIndices === newState.visibleViewLineIndices && oldState.tokenizerId === newState.tokenizerId && oldState.minLineY === newState.minLineY && oldState.decorations === newState.decorations && oldState.embeds === newState.embeds && oldState.endOfLineDecorations === newState.endOfLineDecorations && oldState.deltaX === newState.deltaX && oldState.width === newState.width && oldState.highlightedLine === newState.highlightedLine && oldState.problemsHighlightedRow === newState.problemsHighlightedRow && oldState.debugEnabled === newState.debugEnabled
17706
+ isEqual: (oldState, newState) => oldState.lines === newState.lines && oldState.foldingRanges === newState.foldingRanges && oldState.visibleViewLineIndices === newState.visibleViewLineIndices && oldState.tokenizerId === newState.tokenizerId && oldState.minLineY === newState.minLineY && oldState.decorations === newState.decorations && oldState.embeds === newState.embeds && oldState.endOfLineDecorations === newState.endOfLineDecorations && oldState.diagnostics === newState.diagnostics && oldState.deltaX === newState.deltaX && oldState.width === newState.width && oldState.highlightedLine === newState.highlightedLine && oldState.problemsHighlightedRow === newState.problemsHighlightedRow && oldState.debugEnabled === newState.debugEnabled
17703
17707
  };
17704
17708
  const renderSelections = {
17705
17709
  apply: (oldState, newState) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.70.1",
3
+ "version": "19.70.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"