@lvce-editor/title-bar-worker 4.15.8 → 4.15.10

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.
@@ -5148,13 +5148,22 @@ const selectIndexIgnore = async (state, item) => {
5148
5148
  };
5149
5149
 
5150
5150
  const selectIndexNone = async (state, item) => {
5151
+ const {
5152
+ uid
5153
+ } = state;
5151
5154
  await executeMenuItemCommand(item);
5152
- return {
5153
- ...state,
5155
+ const storedState = get(uid);
5156
+ const latestState = storedState?.newState ?? state;
5157
+ const newState = {
5158
+ ...latestState,
5154
5159
  focusedIndex: -1,
5155
5160
  isMenuOpen: false,
5156
5161
  menus: []
5157
5162
  };
5163
+ if (storedState) {
5164
+ set(uid, storedState.oldState, newState, newState);
5165
+ }
5166
+ return newState;
5158
5167
  };
5159
5168
 
5160
5169
  const selectIndexRestoreEditorFocus = async (state, item) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/title-bar-worker",
3
- "version": "4.15.8",
3
+ "version": "4.15.10",
4
4
  "description": "Title Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",