@lvce-editor/title-bar-worker 4.11.0 → 4.13.0

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.
@@ -4599,6 +4599,13 @@ const showMenuBar = async state => {
4599
4599
  };
4600
4600
  };
4601
4601
 
4602
+ const sleep = uid => {
4603
+ const {
4604
+ newState
4605
+ } = get(uid);
4606
+ return newState;
4607
+ };
4608
+
4602
4609
  const create = (id, uri, x, y, width, height) => {
4603
4610
  const state = {
4604
4611
  ...createDefaultState(),
@@ -5188,6 +5195,10 @@ const toggleMenu = async state => {
5188
5195
  return openMenu(state, /* focus */false);
5189
5196
  };
5190
5197
 
5198
+ const wakeUp = sleepState => {
5199
+ set(sleepState.uid, sleepState, sleepState);
5200
+ };
5201
+
5191
5202
  const commandMap = {
5192
5203
  'TitleBar.closeMenu': wrapCommand(closeMenu),
5193
5204
  'TitleBar.create': create,
@@ -5245,9 +5256,11 @@ const commandMap = {
5245
5256
  'TitleBar.setWidth': wrapCommand(setWidth),
5246
5257
  'TitleBar.showCommandCenter': wrapCommand(showCommandCenter),
5247
5258
  'TitleBar.showMenuBar': wrapCommand(showMenuBar),
5259
+ 'TitleBar.sleep': sleep,
5248
5260
  'TitleBar.terminate': terminate,
5249
5261
  'TitleBar.toggleIndex': wrapCommand(toggleIndex),
5250
- 'TitleBar.toggleMenu': wrapCommand(toggleMenu)
5262
+ 'TitleBar.toggleMenu': wrapCommand(toggleMenu),
5263
+ 'TitleBar.wakeUp': wakeUp
5251
5264
  };
5252
5265
 
5253
5266
  const listen = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/title-bar-worker",
3
- "version": "4.11.0",
3
+ "version": "4.13.0",
4
4
  "description": "Title Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",