@netless/window-manager 1.0.10-beta.0 → 1.0.10-beta.2
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -8243,6 +8243,8 @@ class AppManager {
|
|
|
8243
8243
|
callbacks$1.emit("onBoxStateChange", payload);
|
|
8244
8244
|
};
|
|
8245
8245
|
this.notifyBoxesStatusChange = debounce(() => {
|
|
8246
|
+
var _a;
|
|
8247
|
+
(_a = this.boxManager) == null ? void 0 : _a.setBoxesStatus(this.attributes.boxesStatus);
|
|
8246
8248
|
const entries = Object.entries(this.attributes.boxesStatus);
|
|
8247
8249
|
if (entries.length > 0) {
|
|
8248
8250
|
entries.forEach(([appId, status]) => {
|
|
@@ -8252,14 +8254,12 @@ class AppManager {
|
|
|
8252
8254
|
}
|
|
8253
8255
|
});
|
|
8254
8256
|
}
|
|
8255
|
-
},
|
|
8257
|
+
}, 100);
|
|
8256
8258
|
this.addBoxesStatusChangeListener = () => {
|
|
8257
8259
|
this.refresher.add("boxesStatus", () => {
|
|
8258
8260
|
return safeListenPropsUpdated(
|
|
8259
8261
|
() => this.attributes.boxesStatus,
|
|
8260
8262
|
() => {
|
|
8261
|
-
var _a;
|
|
8262
|
-
(_a = this.boxManager) == null ? void 0 : _a.setBoxesStatus(this.attributes.boxesStatus);
|
|
8263
8263
|
this.notifyBoxesStatusChange();
|
|
8264
8264
|
}
|
|
8265
8265
|
);
|
|
@@ -8514,6 +8514,7 @@ class AppManager {
|
|
|
8514
8514
|
this.focusByAttributes(this.attributes.apps);
|
|
8515
8515
|
});
|
|
8516
8516
|
}
|
|
8517
|
+
await this._attributesUpdateCallback(this.attributes.apps);
|
|
8517
8518
|
internalEmitter.emit("updateManagerRect");
|
|
8518
8519
|
boxEmitter.on("move", this.onBoxMove);
|
|
8519
8520
|
boxEmitter.on("resize", this.onBoxResize);
|
|
@@ -8524,7 +8525,6 @@ class AppManager {
|
|
|
8524
8525
|
this.addAppsChangeListener();
|
|
8525
8526
|
this.addAppCloseListener();
|
|
8526
8527
|
this.addBoxesStatusChangeListener();
|
|
8527
|
-
await this._attributesUpdateCallback(this.attributes.apps);
|
|
8528
8528
|
this.refresher.add("maximized", () => {
|
|
8529
8529
|
return autorun(() => {
|
|
8530
8530
|
var _a2;
|
|
@@ -19643,7 +19643,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
|
19643
19643
|
const _WindowManager = class extends InvisiblePlugin {
|
|
19644
19644
|
constructor(context) {
|
|
19645
19645
|
super(context);
|
|
19646
|
-
this.version = "1.0.10-beta.
|
|
19646
|
+
this.version = "1.0.10-beta.2";
|
|
19647
19647
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.3.0-beta.14", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.52" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.19", "@netless/app-media-player": "0.1.4", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "1.0.0-next.30", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.1", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "jspdf": "^2.5.1", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "side-effect-manager": "0.1.5", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.9.9", "vitest": "^0.14.1", "white-web-sdk": "^2.16.52" } };
|
|
19648
19648
|
this.emitter = callbacks$1;
|
|
19649
19649
|
this.viewMode = ViewMode.Broadcaster;
|