@lvce-editor/editor-worker 19.37.0 → 19.37.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.
@@ -5062,7 +5062,7 @@ const isEqual$3 = (oldState, newState) => {
5062
5062
  };
5063
5063
 
5064
5064
  const isEqual$2 = (oldState, newState) => {
5065
- return oldState.breakPoints === newState.breakPoints && oldState.cursorInfos === newState.cursorInfos && oldState.diagnostics === newState.diagnostics && oldState.highlightedLine === newState.highlightedLine && oldState.lineNumbers === newState.lineNumbers && oldState.loadError === newState.loadError && oldState.textInfos === newState.textInfos && oldState.differences === newState.differences && oldState.initial === newState.initial && oldState.selectionInfos === newState.selectionInfos;
5065
+ return oldState.breakPoints === newState.breakPoints && oldState.cursorInfos === newState.cursorInfos && oldState.diagnostics === newState.diagnostics && oldState.endOfLineDecorations === newState.endOfLineDecorations && oldState.highlightedLine === newState.highlightedLine && oldState.lineNumbers === newState.lineNumbers && oldState.loadError === newState.loadError && oldState.textInfos === newState.textInfos && oldState.differences === newState.differences && oldState.initial === newState.initial && oldState.selectionInfos === newState.selectionInfos;
5066
5066
  };
5067
5067
 
5068
5068
  const isEqual$1 = (oldState, newState) => {
@@ -13943,8 +13943,8 @@ const editorLayersNode = {
13943
13943
  className: 'EditorLayers',
13944
13944
  type: Div
13945
13945
  };
13946
- const getEditorLayersVirtualDom = (selectionInfos, textInfos, differences, lineNumbers = true, highlightedLine = -1, cursorInfos = [], diagnostics = []) => {
13947
- return [editorLayersNode, ...getEditorSelectionsVirtualDom(selectionInfos), ...getEditorRowsVirtualDom(textInfos, differences, lineNumbers, highlightedLine), ...getEditorCursorsVirtualDom(cursorInfos), ...getEditorDiagnosticsVirtualDom(diagnostics)];
13946
+ const getEditorLayersVirtualDom = (selectionInfos, textInfos, differences, lineNumbers = true, highlightedLine = -1, cursorInfos = [], diagnostics = [], visibleLineIndices = [], endOfLineDecorations = []) => {
13947
+ return [editorLayersNode, ...getEditorSelectionsVirtualDom(selectionInfos), ...getEditorRowsVirtualDom(textInfos, differences, lineNumbers, highlightedLine, visibleLineIndices, endOfLineDecorations), ...getEditorCursorsVirtualDom(cursorInfos), ...getEditorDiagnosticsVirtualDom(diagnostics)];
13948
13948
  };
13949
13949
 
13950
13950
  const getEditorScrollBarDiagnosticsVirtualDom = scrollBarDiagnostics => {
@@ -13994,13 +13994,15 @@ const getEditorContentVirtualDom = ({
13994
13994
  cursorInfos = [],
13995
13995
  diagnostics = [],
13996
13996
  differences,
13997
+ endOfLineDecorations = [],
13997
13998
  highlightedLine = -1,
13998
13999
  lineNumbers = true,
13999
14000
  scrollBarDiagnostics = [],
14000
14001
  selectionInfos = [],
14001
- textInfos
14002
+ textInfos,
14003
+ visibleLineIndices = []
14002
14004
  }) => {
14003
- return [editorContentNode, ...getEditorInputVirtualDom(), ...getEditorLayersVirtualDom(selectionInfos, textInfos, differences, lineNumbers, highlightedLine, cursorInfos, diagnostics), ...getEditorScrollBarDiagnosticsVirtualDom(scrollBarDiagnostics), ...getScrollBarVirtualDom()];
14005
+ return [editorContentNode, ...getEditorInputVirtualDom(), ...getEditorLayersVirtualDom(selectionInfos, textInfos, differences, lineNumbers, highlightedLine, cursorInfos, diagnostics, visibleLineIndices, endOfLineDecorations), ...getEditorScrollBarDiagnosticsVirtualDom(scrollBarDiagnostics), ...getScrollBarVirtualDom()];
14004
14006
  };
14005
14007
 
14006
14008
  const getGutterInfoVirtualDom = gutterInfo => {
@@ -14075,6 +14077,7 @@ const getEditorVirtualDom = ({
14075
14077
  cursorInfos = [],
14076
14078
  diagnostics = [],
14077
14079
  differences,
14080
+ endOfLineDecorations = [],
14078
14081
  gutterInfos = [],
14079
14082
  highlightedLine = -1,
14080
14083
  lineNumbers = true,
@@ -14113,11 +14116,13 @@ const getEditorVirtualDom = ({
14113
14116
  cursorInfos,
14114
14117
  diagnostics,
14115
14118
  differences,
14119
+ endOfLineDecorations,
14116
14120
  highlightedLine,
14117
14121
  lineNumbers,
14118
14122
  scrollBarDiagnostics,
14119
14123
  selectionInfos,
14120
- textInfos
14124
+ textInfos,
14125
+ visibleLineIndices: visibleLineIndices || []
14121
14126
  }), ...minimapDom];
14122
14127
  };
14123
14128
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.37.0",
3
+ "version": "19.37.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"