@netless/window-manager 1.0.7-beta.8 → 1.0.7-beta.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.d.ts +2 -0
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +21 -4
- package/src/Utils/extendClass.ts +1 -2
package/dist/index.mjs
CHANGED
|
@@ -6992,9 +6992,8 @@ function getExtendClass$1(baseClass, extendClass) {
|
|
|
6992
6992
|
default:
|
|
6993
6993
|
return baseClass;
|
|
6994
6994
|
}
|
|
6995
|
-
} else {
|
|
6996
|
-
return baseClass;
|
|
6997
6995
|
}
|
|
6996
|
+
return baseClass;
|
|
6998
6997
|
}
|
|
6999
6998
|
var Fields = /* @__PURE__ */ ((Fields2) => {
|
|
7000
6999
|
Fields2["Apps"] = "apps";
|
|
@@ -8517,9 +8516,16 @@ class AppManager {
|
|
|
8517
8516
|
async onCreated() {
|
|
8518
8517
|
var _a;
|
|
8519
8518
|
if (Object.keys(this.attributes.apps).length && this.store.focus) {
|
|
8519
|
+
this._focusAppId = this.store.focus;
|
|
8520
|
+
console.log("onCreated===>", this._focusAppId);
|
|
8520
8521
|
await new Promise((resolve) => {
|
|
8521
8522
|
this._focusAppCreatedResolve = resolve;
|
|
8523
|
+
this._resolveTimer = setTimeout(() => {
|
|
8524
|
+
console.log("onCreated===>3333", this._focusAppId);
|
|
8525
|
+
resolve(this.appProxies.get(this._focusAppId || ""));
|
|
8526
|
+
}, 500);
|
|
8522
8527
|
}).then(() => {
|
|
8528
|
+
console.log("onCreated===>2222", this._focusAppId);
|
|
8523
8529
|
this.focusByAttributes(this.attributes.apps);
|
|
8524
8530
|
});
|
|
8525
8531
|
}
|
|
@@ -8630,7 +8636,11 @@ class AppManager {
|
|
|
8630
8636
|
id2,
|
|
8631
8637
|
false
|
|
8632
8638
|
);
|
|
8633
|
-
if (appProxy && this.
|
|
8639
|
+
if (appProxy && this._focusAppId === id2 && this._focusAppCreatedResolve) {
|
|
8640
|
+
console.log("onCreated===>4444", this._focusAppId);
|
|
8641
|
+
if (this._resolveTimer) {
|
|
8642
|
+
clearTimeout(this._resolveTimer);
|
|
8643
|
+
}
|
|
8634
8644
|
this._focusAppCreatedResolve(appProxy);
|
|
8635
8645
|
}
|
|
8636
8646
|
return appProxy;
|
|
@@ -8855,7 +8865,11 @@ class AppManager {
|
|
|
8855
8865
|
this.sideEffectManager.flushAll();
|
|
8856
8866
|
this._prevFocused = void 0;
|
|
8857
8867
|
this._prevSceneIndex = void 0;
|
|
8868
|
+
if (this._resolveTimer) {
|
|
8869
|
+
clearTimeout(this._resolveTimer);
|
|
8870
|
+
}
|
|
8858
8871
|
this._focusAppCreatedResolve = void 0;
|
|
8872
|
+
this._resolveTimer = void 0;
|
|
8859
8873
|
}
|
|
8860
8874
|
}
|
|
8861
8875
|
AppManager.kind = "AppManager";
|
|
@@ -19636,15 +19650,14 @@ function getExtendClass(baseClass, extendClass) {
|
|
|
19636
19650
|
default:
|
|
19637
19651
|
return baseClass;
|
|
19638
19652
|
}
|
|
19639
|
-
} else {
|
|
19640
|
-
return baseClass;
|
|
19641
19653
|
}
|
|
19654
|
+
return baseClass;
|
|
19642
19655
|
}
|
|
19643
19656
|
const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
19644
19657
|
const _WindowManager = class extends InvisiblePlugin {
|
|
19645
19658
|
constructor(context) {
|
|
19646
19659
|
super(context);
|
|
19647
|
-
this.version = "1.0.7-beta.
|
|
19660
|
+
this.version = "1.0.7-beta.9";
|
|
19648
19661
|
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" } };
|
|
19649
19662
|
this.emitter = callbacks$1;
|
|
19650
19663
|
this.viewMode = ViewMode.Broadcaster;
|