@netless/window-manager 1.0.10-beta.2 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/window-manager",
3
- "version": "1.0.10-beta.2",
3
+ "version": "1.0.10",
4
4
  "description": "Multi-window mode for Netless Whiteboard",
5
5
  "author": "l1shen <lishen1635@gmail.com> (https://github.com/l1shen)",
6
6
  "license": "MIT",
@@ -139,7 +139,7 @@ export class AppProxy implements PageRemoveService {
139
139
  this.manager.safeUpdateAttributes(["apps", this.id, Fields.FullPath], path);
140
140
  }
141
141
 
142
- public async baseInsertApp(skipUpdate = false): Promise<{ appId: string; app: NetlessApp }> {
142
+ public async baseInsertApp(skipUpdate = false, boxStatus: TeleBoxState = TELE_BOX_STATE.Normal): Promise<{ appId: string; app: NetlessApp }> {
143
143
  const params = this.params;
144
144
  if (!params.kind) {
145
145
  throw new Error("[WindowManager]: kind require");
@@ -153,7 +153,7 @@ export class AppProxy implements PageRemoveService {
153
153
  appImpl,
154
154
  params.options,
155
155
  appParams?.appOptions,
156
- this.manager.useBoxesStatus ? TELE_BOX_STATE.Normal : undefined,
156
+ this.manager.useBoxesStatus ? boxStatus : undefined,
157
157
  params.forceTop,
158
158
  params.forceNormal,
159
159
  params.isDragContent
@@ -288,7 +288,7 @@ export class AppProxy implements PageRemoveService {
288
288
  const params = this.params;
289
289
  const AppProxyClass = getExtendClass(AppProxy, WindowManager.extendClass);
290
290
  const appProxy = new AppProxyClass(params, this.manager, this.id, this.isAddApp);
291
- await appProxy.baseInsertApp(true);
291
+ await appProxy.baseInsertApp(true, currentAppState?.boxStatus);
292
292
  this.boxManager?.updateBoxState(currentAppState);
293
293
  }
294
294