@netless/window-manager 1.0.7-beta.3 → 1.0.7-beta.4
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 +170 -166
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/App/AppProxy.ts +4 -4
- package/src/AppManager.ts +7 -4
- package/src/AttributesDelegate.ts +4 -2
- package/src/BoxManager.ts +10 -5
- package/src/Utils/extendClass.ts +10 -0
- package/src/index.ts +6 -5
package/dist/index.mjs
CHANGED
|
@@ -5428,7 +5428,10 @@ class BoxManager {
|
|
|
5428
5428
|
this.teleBoxManager.update(appId, { boxStatus: status }, true);
|
|
5429
5429
|
}
|
|
5430
5430
|
setLastNotMinimizedBoxesStatus(status) {
|
|
5431
|
-
this.teleBoxManager.setLastNotMinimizedBoxesStatus(
|
|
5431
|
+
this.teleBoxManager.setLastNotMinimizedBoxesStatus(
|
|
5432
|
+
new Map(Object.entries(status != null ? status : {})),
|
|
5433
|
+
true
|
|
5434
|
+
);
|
|
5432
5435
|
}
|
|
5433
5436
|
setLastNotMinimizedBoxStatus(appId, status) {
|
|
5434
5437
|
this.teleBoxManager.update(appId, { lastNotMinimizedBoxStatus: status }, true);
|
|
@@ -5448,7 +5451,8 @@ class BoxManager {
|
|
|
5448
5451
|
prefersColorScheme: createTeleBoxManagerConfig == null ? void 0 : createTeleBoxManagerConfig.prefersColorScheme,
|
|
5449
5452
|
useBoxesStatus: (createTeleBoxManagerConfig == null ? void 0 : createTeleBoxManagerConfig.useBoxesStatus) || false
|
|
5450
5453
|
};
|
|
5451
|
-
const
|
|
5454
|
+
const TeleBoxManagerClass = getExtendClass$1(TeleBoxManager, WindowManager.extendClass);
|
|
5455
|
+
const manager = new TeleBoxManagerClass(initManagerState);
|
|
5452
5456
|
if (this.teleBoxManager) {
|
|
5453
5457
|
this.teleBoxManager.destroy();
|
|
5454
5458
|
}
|
|
@@ -5461,7 +5465,8 @@ class BoxManager {
|
|
|
5461
5465
|
}
|
|
5462
5466
|
setCollectorContainer(container) {
|
|
5463
5467
|
var _a;
|
|
5464
|
-
const
|
|
5468
|
+
const TeleBoxCollectorClass = getExtendClass$1(TeleBoxCollector, WindowManager.extendClass);
|
|
5469
|
+
const collector = new TeleBoxCollectorClass({
|
|
5465
5470
|
styles: (_a = this.createTeleBoxManagerConfig) == null ? void 0 : _a.collectorStyles
|
|
5466
5471
|
}).mount(container);
|
|
5467
5472
|
this.teleBoxManager.setCollector(collector);
|
|
@@ -6864,6 +6869,10 @@ function getExtendClass$1(baseClass, extendClass) {
|
|
|
6864
6869
|
return (extendClass == null ? void 0 : extendClass.AppProxy) || AppProxy;
|
|
6865
6870
|
case "AppContext":
|
|
6866
6871
|
return (extendClass == null ? void 0 : extendClass.AppContext) || AppContext;
|
|
6872
|
+
case "TeleBoxManager":
|
|
6873
|
+
return (extendClass == null ? void 0 : extendClass.TeleBoxManager) || TeleBoxManager;
|
|
6874
|
+
case "TeleBoxCollector":
|
|
6875
|
+
return (extendClass == null ? void 0 : extendClass.TeleBoxCollector) || TeleBoxCollector;
|
|
6867
6876
|
default:
|
|
6868
6877
|
return baseClass;
|
|
6869
6878
|
}
|
|
@@ -8115,7 +8124,9 @@ class AppManager {
|
|
|
8115
8124
|
() => this.attributes.lastNotMinimizedBoxesStatus,
|
|
8116
8125
|
() => {
|
|
8117
8126
|
var _a;
|
|
8118
|
-
(_a = this.boxManager) == null ? void 0 : _a.setLastNotMinimizedBoxesStatus(
|
|
8127
|
+
(_a = this.boxManager) == null ? void 0 : _a.setLastNotMinimizedBoxesStatus(
|
|
8128
|
+
this.attributes.lastNotMinimizedBoxesStatus
|
|
8129
|
+
);
|
|
8119
8130
|
}
|
|
8120
8131
|
);
|
|
8121
8132
|
});
|
|
@@ -19453,6 +19464,10 @@ function getExtendClass(baseClass, extendClass) {
|
|
|
19453
19464
|
return (extendClass == null ? void 0 : extendClass.AppProxy) || AppProxy;
|
|
19454
19465
|
case "AppContext":
|
|
19455
19466
|
return (extendClass == null ? void 0 : extendClass.AppContext) || AppContext;
|
|
19467
|
+
case "TeleBoxManager":
|
|
19468
|
+
return (extendClass == null ? void 0 : extendClass.TeleBoxManager) || TeleBoxManager;
|
|
19469
|
+
case "TeleBoxCollector":
|
|
19470
|
+
return (extendClass == null ? void 0 : extendClass.TeleBoxCollector) || TeleBoxCollector;
|
|
19456
19471
|
default:
|
|
19457
19472
|
return baseClass;
|
|
19458
19473
|
}
|
|
@@ -19461,7 +19476,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
|
19461
19476
|
const _WindowManager = class extends InvisiblePlugin {
|
|
19462
19477
|
constructor(context) {
|
|
19463
19478
|
super(context);
|
|
19464
|
-
this.version = "1.0.7-beta.
|
|
19479
|
+
this.version = "1.0.7-beta.4";
|
|
19465
19480
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.3.0-beta.10", "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" } };
|
|
19466
19481
|
this.emitter = callbacks$1;
|
|
19467
19482
|
this.viewMode = ViewMode.Broadcaster;
|
|
@@ -20277,5 +20292,5 @@ WindowManager.containerSizeRatio = DEFAULT_CONTAINER_RATIO;
|
|
|
20277
20292
|
WindowManager.isCreated = false;
|
|
20278
20293
|
WindowManager._resolve = (_manager) => void 0;
|
|
20279
20294
|
setupBuiltin();
|
|
20280
|
-
export { AppContext, AppCreateError, AppManager, AppManagerNotInitError, AppNotRegisterError, AppProxy, AttributesDelegate, BindContainerRoomPhaseInvalidError, BoxManager, BoxManagerNotFoundError, BoxNotCreatedError, BuiltinApps, CursorManager, ExtendPlugin, ExtendPluginManager, InvalidScenePath, ParamsInvalidError, WhiteWebSDKInvalidError, WindowManager, calculateNextIndex, getExtendClass, reconnectRefresher };
|
|
20295
|
+
export { AppContext, AppCreateError, AppManager, AppManagerNotInitError, AppNotRegisterError, AppProxy, AttributesDelegate, BindContainerRoomPhaseInvalidError, BoxManager, BoxManagerNotFoundError, BoxNotCreatedError, BuiltinApps, CursorManager, ExtendPlugin, ExtendPluginManager, InvalidScenePath, ParamsInvalidError, TeleBoxCollector, TeleBoxManager, WhiteWebSDKInvalidError, WindowManager, calculateNextIndex, getExtendClass, reconnectRefresher };
|
|
20281
20296
|
//# sourceMappingURL=index.mjs.map
|