@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.
- package/dist/editorWorkerMain.js +6 -2
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -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(
|
|
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);
|