@netless/window-manager 1.0.10-beta.0 → 1.0.10-beta.1

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.mjs CHANGED
@@ -7520,13 +7520,16 @@ const _AppProxy = class {
7520
7520
  await this.destroy(true, false, true);
7521
7521
  return;
7522
7522
  }
7523
+ console.log("onReconnected====>", this.id);
7523
7524
  this.appEmitter.emit("reconnected", void 0);
7524
7525
  const currentAppState = this.getAppInitState(this.id);
7526
+ console.log("onReconnected====>0000", currentAppState == null ? void 0 : currentAppState.boxStatus);
7525
7527
  await this.destroy(true, false, true);
7526
7528
  const params = this.params;
7527
7529
  const AppProxyClass = getExtendClass$1(_AppProxy, WindowManager.extendClass);
7528
7530
  const appProxy = new AppProxyClass(params, this.manager, this.id, this.isAddApp);
7529
7531
  await appProxy.baseInsertApp(true);
7532
+ console.log("onReconnected====>", currentAppState == null ? void 0 : currentAppState.boxStatus);
7530
7533
  (_a = this.boxManager) == null ? void 0 : _a.updateBoxState(currentAppState);
7531
7534
  }
7532
7535
  async onRemoveScene(scenePath) {
@@ -8243,6 +8246,9 @@ class AppManager {
8243
8246
  callbacks$1.emit("onBoxStateChange", payload);
8244
8247
  };
8245
8248
  this.notifyBoxesStatusChange = debounce(() => {
8249
+ var _a;
8250
+ console.log("setBoxesStatus====>", this.attributes.boxesStatus);
8251
+ (_a = this.boxManager) == null ? void 0 : _a.setBoxesStatus(this.attributes.boxesStatus);
8246
8252
  const entries = Object.entries(this.attributes.boxesStatus);
8247
8253
  if (entries.length > 0) {
8248
8254
  entries.forEach(([appId, status]) => {
@@ -8252,14 +8258,13 @@ class AppManager {
8252
8258
  }
8253
8259
  });
8254
8260
  }
8255
- }, 50);
8261
+ }, 100);
8256
8262
  this.addBoxesStatusChangeListener = () => {
8257
8263
  this.refresher.add("boxesStatus", () => {
8258
8264
  return safeListenPropsUpdated(
8259
8265
  () => this.attributes.boxesStatus,
8260
8266
  () => {
8261
- var _a;
8262
- (_a = this.boxManager) == null ? void 0 : _a.setBoxesStatus(this.attributes.boxesStatus);
8267
+ console.log("setBoxesStatus====>000", this.attributes.boxesStatus);
8263
8268
  this.notifyBoxesStatusChange();
8264
8269
  }
8265
8270
  );
@@ -8514,6 +8519,7 @@ class AppManager {
8514
8519
  this.focusByAttributes(this.attributes.apps);
8515
8520
  });
8516
8521
  }
8522
+ await this._attributesUpdateCallback(this.attributes.apps);
8517
8523
  internalEmitter.emit("updateManagerRect");
8518
8524
  boxEmitter.on("move", this.onBoxMove);
8519
8525
  boxEmitter.on("resize", this.onBoxResize);
@@ -8524,7 +8530,6 @@ class AppManager {
8524
8530
  this.addAppsChangeListener();
8525
8531
  this.addAppCloseListener();
8526
8532
  this.addBoxesStatusChangeListener();
8527
- await this._attributesUpdateCallback(this.attributes.apps);
8528
8533
  this.refresher.add("maximized", () => {
8529
8534
  return autorun(() => {
8530
8535
  var _a2;
@@ -19643,7 +19648,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
19643
19648
  const _WindowManager = class extends InvisiblePlugin {
19644
19649
  constructor(context) {
19645
19650
  super(context);
19646
- this.version = "1.0.10-beta.0";
19651
+ this.version = "1.0.10-beta.1";
19647
19652
  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
19653
  this.emitter = callbacks$1;
19649
19654
  this.viewMode = ViewMode.Broadcaster;