@lvce-editor/editor-worker 19.76.2 → 19.76.3

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/diff-sdk.js CHANGED
@@ -16770,7 +16770,9 @@ const createCommandMap = commands => ({
16770
16770
  if (!current || editor.lifecycle?.disposed || current.lifecycle !== editor.lifecycle) return;
16771
16771
  // The wrapped command has released the document queue before requesting a
16772
16772
  // render; a diff can now run without waiting on its own command.
16773
- await RendererWorker.invoke('Viewlet.requestRender', uid, false);
16773
+ // Blur can finish after another editor has gained focus. Apply its state
16774
+ // without letting the delayed render replace the current focus context.
16775
+ await RendererWorker.invoke('Viewlet.requestRender', uid, command === 'handleBlur');
16774
16776
  }
16775
16777
  });
16776
16778
 
@@ -17174,7 +17174,9 @@ const createCommandMap = commands => ({
17174
17174
  if (!current || editor.lifecycle?.disposed || current.lifecycle !== editor.lifecycle) return;
17175
17175
  // The wrapped command has released the document queue before requesting a
17176
17176
  // render; a diff can now run without waiting on its own command.
17177
- await invoke$e('Viewlet.requestRender', uid, false);
17177
+ // Blur can finish after another editor has gained focus. Apply its state
17178
+ // without letting the delayed render replace the current focus context.
17179
+ await invoke$e('Viewlet.requestRender', uid, command === 'handleBlur');
17178
17180
  }
17179
17181
  });
17180
17182
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.76.2",
3
+ "version": "19.76.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"