@netless/window-manager 1.0.8 → 1.0.9

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
@@ -8562,14 +8562,16 @@ class AppManager {
8562
8562
  this.displayerWritableListener(!((_a = this.room) == null ? void 0 : _a.isWritable));
8563
8563
  this.displayer.callbacks.on("onEnableWriteNowChanged", this.displayerWritableListener);
8564
8564
  this._prevFocused = this.attributes.focus;
8565
- this.sideEffectManager.add(() => {
8566
- const redoUndo = new RedoUndo({
8567
- mainView: () => this.mainViewProxy.view,
8568
- focus: () => this.attributes.focus,
8569
- getAppProxy: (id2) => this.appProxies.get(id2)
8565
+ if (!WindowManager.supportAppliancePlugin) {
8566
+ this.sideEffectManager.add(() => {
8567
+ const redoUndo = new RedoUndo({
8568
+ mainView: () => this.mainViewProxy.view,
8569
+ focus: () => this.attributes.focus,
8570
+ getAppProxy: (id2) => this.appProxies.get(id2)
8571
+ });
8572
+ return () => redoUndo.destroy();
8570
8573
  });
8571
- return () => redoUndo.destroy();
8572
- });
8574
+ }
8573
8575
  }
8574
8576
  notifyAppsChange(appIds) {
8575
8577
  if (this._appIds.length !== appIds.length || !this._appIds.every((id2) => appIds.includes(id2))) {
@@ -19637,7 +19639,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
19637
19639
  const _WindowManager = class extends InvisiblePlugin {
19638
19640
  constructor(context) {
19639
19641
  super(context);
19640
- this.version = "1.0.8";
19642
+ this.version = "1.0.9";
19641
19643
  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" } };
19642
19644
  this.emitter = callbacks$1;
19643
19645
  this.viewMode = ViewMode.Broadcaster;