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

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
@@ -7388,7 +7388,7 @@ const _AppProxy = class {
7388
7388
  setFullPath(path) {
7389
7389
  this.manager.safeUpdateAttributes(["apps", this.id, Fields.FullPath], path);
7390
7390
  }
7391
- async baseInsertApp(skipUpdate = false) {
7391
+ async baseInsertApp(skipUpdate = false, boxStatus = TELE_BOX_STATE.Normal) {
7392
7392
  var _a;
7393
7393
  const params = this.params;
7394
7394
  if (!params.kind) {
@@ -7403,7 +7403,7 @@ const _AppProxy = class {
7403
7403
  appImpl,
7404
7404
  params.options,
7405
7405
  appParams == null ? void 0 : appParams.appOptions,
7406
- this.manager.useBoxesStatus ? TELE_BOX_STATE.Normal : void 0,
7406
+ this.manager.useBoxesStatus ? boxStatus : void 0,
7407
7407
  params.forceTop,
7408
7408
  params.forceNormal,
7409
7409
  params.isDragContent
@@ -7520,16 +7520,13 @@ const _AppProxy = class {
7520
7520
  await this.destroy(true, false, true);
7521
7521
  return;
7522
7522
  }
7523
- console.log("onReconnected====>", this.id);
7524
7523
  this.appEmitter.emit("reconnected", void 0);
7525
7524
  const currentAppState = this.getAppInitState(this.id);
7526
- console.log("onReconnected====>0000", currentAppState == null ? void 0 : currentAppState.boxStatus);
7527
7525
  await this.destroy(true, false, true);
7528
7526
  const params = this.params;
7529
7527
  const AppProxyClass = getExtendClass$1(_AppProxy, WindowManager.extendClass);
7530
7528
  const appProxy = new AppProxyClass(params, this.manager, this.id, this.isAddApp);
7531
- await appProxy.baseInsertApp(true);
7532
- console.log("onReconnected====>", currentAppState == null ? void 0 : currentAppState.boxStatus);
7529
+ await appProxy.baseInsertApp(true, currentAppState == null ? void 0 : currentAppState.boxStatus);
7533
7530
  (_a = this.boxManager) == null ? void 0 : _a.updateBoxState(currentAppState);
7534
7531
  }
7535
7532
  async onRemoveScene(scenePath) {
@@ -8247,7 +8244,6 @@ class AppManager {
8247
8244
  };
8248
8245
  this.notifyBoxesStatusChange = debounce(() => {
8249
8246
  var _a;
8250
- console.log("setBoxesStatus====>", this.attributes.boxesStatus);
8251
8247
  (_a = this.boxManager) == null ? void 0 : _a.setBoxesStatus(this.attributes.boxesStatus);
8252
8248
  const entries = Object.entries(this.attributes.boxesStatus);
8253
8249
  if (entries.length > 0) {
@@ -8264,7 +8260,6 @@ class AppManager {
8264
8260
  return safeListenPropsUpdated(
8265
8261
  () => this.attributes.boxesStatus,
8266
8262
  () => {
8267
- console.log("setBoxesStatus====>000", this.attributes.boxesStatus);
8268
8263
  this.notifyBoxesStatusChange();
8269
8264
  }
8270
8265
  );
@@ -19648,7 +19643,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
19648
19643
  const _WindowManager = class extends InvisiblePlugin {
19649
19644
  constructor(context) {
19650
19645
  super(context);
19651
- this.version = "1.0.10-beta.1";
19646
+ this.version = "1.0.10-beta.3";
19652
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" } };
19653
19648
  this.emitter = callbacks$1;
19654
19649
  this.viewMode = ViewMode.Broadcaster;