@lvce-editor/editor-worker 19.22.0 → 19.22.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.
@@ -12972,12 +12972,16 @@ const set = (uid, dom) => {
12972
12972
  const getDom = state => {
12973
12973
  const {
12974
12974
  initial,
12975
- textInfos
12975
+ textInfos,
12976
+ visualDecorations = []
12976
12977
  } = state;
12977
12978
  if (initial && textInfos.length === 0) {
12978
12979
  return [];
12979
12980
  }
12980
- return getEditorVirtualDom(state);
12981
+ return getEditorVirtualDom({
12982
+ ...state,
12983
+ diagnostics: visualDecorations
12984
+ });
12981
12985
  };
12982
12986
  const renderIncremental = (oldState, newState) => {
12983
12987
  const oldDom = oldState.initial ? getDom(oldState) : get(newState.uid) || getDom(oldState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.22.0",
3
+ "version": "19.22.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"