@netless/window-manager 0.3.24 → 0.3.25
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.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/AppProxy.ts +3 -0
- package/src/BoxManager.ts +4 -9
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@netless/window-manager",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.25",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.es.js",
|
6
6
|
"module": "dist/index.es.js",
|
@@ -29,6 +29,9 @@
|
|
29
29
|
"video.js": ">=7"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
+
"@netless/app-docs-viewer": "0.2.5",
|
33
|
+
"@netless/app-media-player": "0.1.0-beta.5",
|
34
|
+
"@netless/telebox-insider": "0.2.21",
|
32
35
|
"@rollup/plugin-commonjs": "^20.0.0",
|
33
36
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
34
37
|
"@rollup/plugin-url": "^6.1.0",
|
@@ -53,9 +56,6 @@
|
|
53
56
|
"typescript": "^4.3.5",
|
54
57
|
"video.js": "^7.14.3",
|
55
58
|
"vite": "^2.5.3",
|
56
|
-
"white-web-sdk": "^2.15.16"
|
57
|
-
"@netless/telebox-insider": "0.2.21",
|
58
|
-
"@netless/app-docs-viewer": "0.2.5",
|
59
|
-
"@netless/app-media-player": "0.1.0-beta.5"
|
59
|
+
"white-web-sdk": "^2.15.16"
|
60
60
|
}
|
61
61
|
}
|
package/src/AppProxy.ts
CHANGED
@@ -175,6 +175,9 @@ export class AppProxy {
|
|
175
175
|
canOperate: this.manager.canOperate,
|
176
176
|
smartPosition: this.isAddApp,
|
177
177
|
});
|
178
|
+
if (this.isAddApp && this.box) {
|
179
|
+
this.store.updateAppState(appId, AppAttributes.ZIndex, this.box.zIndex);
|
180
|
+
}
|
178
181
|
} catch (error: any) {
|
179
182
|
console.error(error);
|
180
183
|
throw new Error(`[WindowManager]: app setup error: ${error.message}`);
|
package/src/BoxManager.ts
CHANGED
@@ -1,11 +1,7 @@
|
|
1
|
-
import { callbacks, emitter, WindowManager } from "./index";
|
2
|
-
import { debounce, maxBy } from "lodash";
|
3
1
|
import { AppAttributes, Events, MIN_HEIGHT, MIN_WIDTH } from "./constants";
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
TeleBoxManager,
|
8
|
-
} from "@netless/telebox-insider";
|
2
|
+
import { callbacks, emitter, WindowManager } from "./index";
|
3
|
+
import { debounce } from "lodash";
|
4
|
+
import { TELE_BOX_STATE, TeleBoxCollector, TeleBoxManager } from "@netless/telebox-insider";
|
9
5
|
import type { AddAppOptions, AppInitState } from "./index";
|
10
6
|
import type {
|
11
7
|
TeleBoxManagerUpdateConfig,
|
@@ -233,8 +229,7 @@ export class BoxManager {
|
|
233
229
|
}
|
234
230
|
|
235
231
|
public getTopBox(): ReadonlyTeleBox | undefined {
|
236
|
-
|
237
|
-
return maxBy(boxes, "zIndex");
|
232
|
+
return this.teleBoxManager.topBox;
|
238
233
|
}
|
239
234
|
|
240
235
|
public updateBoxState(state?: AppInitState): void {
|