@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/dist/index.d.ts +0 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/BoxManager.ts +6 -6
- package/src/index.ts +2 -2
package/package.json
CHANGED
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
737
|
+
this.appManager?.store.setLastNotMinimizedBoxStatus(boxId, lastNotMinimizedBoxStatus);
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
public setFullscreen(fullscreen: boolean): void {
|