@lvce-editor/main-area-worker 9.56.0 → 9.56.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.
@@ -1745,6 +1745,9 @@ const {
1745
1745
  const wrapAsyncCommand = fn => {
1746
1746
  return registry.wrapAsyncCommand(withActiveEditorChangeAsync(fn));
1747
1747
  };
1748
+ const wrapCommand = fn => {
1749
+ return registry.wrapCommand(withActiveEditorChange(fn));
1750
+ };
1748
1751
  const wrapSerialAsyncCommand = fn => {
1749
1752
  return registry.wrapSerialAsyncCommand(withActiveEditorChangeAsync(fn));
1750
1753
  };
@@ -6388,7 +6391,9 @@ const handleWorkspaceRefresh = async (state, refresh = {}) => {
6388
6391
  const handleWorkspaceRefreshWithContext = async (context, refresh = {}) => {
6389
6392
  const state = context.getState();
6390
6393
  const newState = await handleWorkspaceRefresh(state, refresh);
6391
- await context.updateState(() => newState);
6394
+ if (newState !== state) {
6395
+ await context.updateState(() => newState);
6396
+ }
6392
6397
  };
6393
6398
 
6394
6399
  const hasActiveTextEditor = state => {
@@ -8384,7 +8389,7 @@ const applyComponentState = (currentState, state) => {
8384
8389
  maxOpenEditors: maxOpenEditors ?? currentMaxOpenEditors
8385
8390
  };
8386
8391
  };
8387
- const setComponentState = wrapSerialCommand(applyComponentState);
8392
+ const setComponentState = wrapCommand(applyComponentState);
8388
8393
 
8389
8394
  const flipDirection = direction => {
8390
8395
  return direction === Horizontal ? Vertical : Horizontal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.56.0",
3
+ "version": "9.56.2",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",