@netless/window-manager 1.0.7-beta.5 → 1.0.7-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/window-manager",
3
- "version": "1.0.7-beta.5",
3
+ "version": "1.0.7-beta.6",
4
4
  "description": "Multi-window mode for Netless Whiteboard",
5
5
  "author": "l1shen <lishen1635@gmail.com> (https://github.com/l1shen)",
6
6
  "license": "MIT",
package/src/BoxManager.ts CHANGED
@@ -296,9 +296,9 @@ export class BoxManager {
296
296
  this.context.emitter.emit("boxesStatusChange", map);
297
297
  }
298
298
 
299
- public setBoxStatus(appId: string, status?: TeleBoxState): void {
300
- this.teleBoxManager.update(appId, { boxStatus: status }, true);
301
- }
299
+ // public setBoxStatus(appId: string, status?: TeleBoxState, skipUpdate = false): void {
300
+ // this.teleBoxManager.update(appId, { boxStatus: status }, true);
301
+ // }
302
302
 
303
303
  public setLastNotMinimizedBoxesStatus(status?: Record<string, NotMinimizedBoxState>): void {
304
304
  const map = new Map(Object.entries(status ?? {}));
@@ -307,9 +307,9 @@ export class BoxManager {
307
307
  this.context.emitter.emit("lastNotMinimizedBoxesStatusChange", map);
308
308
  }
309
309
 
310
- public setLastNotMinimizedBoxStatus(appId: string, status?: NotMinimizedBoxState): void {
311
- this.teleBoxManager.update(appId, { lastNotMinimizedBoxStatus: status }, true);
312
- }
310
+ // public setLastNotMinimizedBoxStatus(appId: string, status?: NotMinimizedBoxState): void {
311
+ // this.teleBoxManager.update(appId, { lastNotMinimizedBoxStatus: status }, true);
312
+ // }
313
313
 
314
314
  public setupBoxManager(
315
315
  createTeleBoxManagerConfig?: CreateTeleBoxManagerConfig
package/src/index.ts CHANGED
@@ -725,7 +725,7 @@ export class WindowManager
725
725
  /** 设置指定 box 的状态, 如果为 undefined, 则移除状态*/
726
726
  public setBoxStatus(boxId: string, boxStatus?: TELE_BOX_STATE): void {
727
727
  if (!this.canOperate) return;
728
- this.boxManager?.setBoxStatus(boxId, boxStatus);
728
+ this.appManager?.store.setBoxStatus(boxId, boxStatus);
729
729
  }
730
730
 
731
731
  /** 设置指定 box 的非最小化状态, 如果为 undefined, 则移除状态 */
@@ -734,7 +734,7 @@ export class WindowManager
734
734
  lastNotMinimizedBoxStatus?: NotMinimizedBoxState
735
735
  ): void {
736
736
  if (!this.canOperate) return;
737
- this.boxManager?.setLastNotMinimizedBoxStatus(boxId, lastNotMinimizedBoxStatus);
737
+ this.appManager?.store.setLastNotMinimizedBoxStatus(boxId, lastNotMinimizedBoxStatus);
738
738
  }
739
739
 
740
740
  public setFullscreen(fullscreen: boolean): void {