@netless/window-manager 1.0.0-canary.12 → 1.0.0-canary.15
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/App/AppProxy.d.ts +6 -4
- package/dist/App/WhiteboardView.d.ts +3 -1
- package/dist/AppManager.d.ts +2 -2
- package/dist/index.cjs.js +10 -10
- package/dist/index.es.js +73 -45
- package/dist/index.umd.js +10 -10
- package/package.json +3 -3
- package/pnpm-lock.yaml +6 -10
- package/src/App/AppContext.ts +6 -0
- package/src/App/AppProxy.ts +11 -5
- package/src/App/WhiteboardView.ts +23 -4
- package/src/AppManager.ts +10 -8
- package/src/BoxManager.ts +11 -7
- package/src/PageState.ts +1 -1
- package/src/View/CameraSynchronizer.ts +3 -2
- package/src/index.ts +1 -1
package/dist/index.es.js
CHANGED
@@ -19,7 +19,7 @@ var __spreadValues = (a2, b2) => {
|
|
19
19
|
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
20
20
|
import pRetry from "p-retry";
|
21
21
|
import Emittery from "emittery";
|
22
|
-
import { debounce, isEqual, omit, isObject, has, get, size as size$1, mapValues, noop as noop$1, isNumber, throttle, delay,
|
22
|
+
import { debounce, isEqual, omit, isObject, has, get, size as size$1, mapValues, noop as noop$1, pick, isNumber, throttle, delay, isInteger, orderBy, isEmpty, isFunction, isNull } from "lodash";
|
23
23
|
import { ScenePathType, UpdateEventKind, listenUpdated, unlistenUpdated, reaction, WhiteVersion, autorun, toJS, listenDisposed, unlistenDisposed, AnimationMode, isPlayer, isRoom, ApplianceNames, RoomPhase, InvisiblePlugin, ViewMode } from "white-web-sdk";
|
24
24
|
import { v4 } from "uuid";
|
25
25
|
import { genUID, SideEffectManager } from "side-effect-manager";
|
@@ -947,9 +947,17 @@ class WhiteBoardView {
|
|
947
947
|
};
|
948
948
|
const pageState$ = new Val(appProxy.pageState);
|
949
949
|
this.pageState$ = pageState$;
|
950
|
-
appProxy.appEmitter.on("pageStateChange", (pageState) => {
|
950
|
+
this.appProxy.sideEffectManager.add(() => appProxy.appEmitter.on("pageStateChange", (pageState) => {
|
951
951
|
pageState$.setValue(pageState);
|
952
|
-
});
|
952
|
+
}));
|
953
|
+
const camera$ = new Val(pick(this.view.camera, ["centerX", "centerY"]));
|
954
|
+
this.camera$ = camera$;
|
955
|
+
this.appProxy.sideEffectManager.add(() => appProxy.camera$.subscribe((camera) => {
|
956
|
+
if (camera) {
|
957
|
+
camera$.setValue(pick(camera, ["centerX", "centerY"]));
|
958
|
+
}
|
959
|
+
}));
|
960
|
+
view.disableCameraTransform = true;
|
953
961
|
}
|
954
962
|
get pageState() {
|
955
963
|
return this.pageState$.value;
|
@@ -962,6 +970,7 @@ class WhiteBoardView {
|
|
962
970
|
}
|
963
971
|
destroy() {
|
964
972
|
this.pageState$.destroy();
|
973
|
+
this.camera$.destroy();
|
965
974
|
this.removeViewWrapper();
|
966
975
|
}
|
967
976
|
}
|
@@ -1050,6 +1059,13 @@ class AppContext {
|
|
1050
1059
|
this.ensurePageSize(size2);
|
1051
1060
|
}
|
1052
1061
|
this.whiteBoardView = new WhiteBoardView(view, this, this.appProxy, removeViewWrapper, this.ensurePageSize);
|
1062
|
+
this.appProxy.sideEffectManager.add(() => {
|
1063
|
+
return () => {
|
1064
|
+
var _a2;
|
1065
|
+
(_a2 = this.whiteBoardView) == null ? void 0 : _a2.destroy();
|
1066
|
+
this.whiteBoardView = void 0;
|
1067
|
+
};
|
1068
|
+
});
|
1053
1069
|
return this.whiteBoardView;
|
1054
1070
|
};
|
1055
1071
|
this.ensurePageSize = (size2) => {
|
@@ -1212,7 +1228,7 @@ class CameraSynchronizer {
|
|
1212
1228
|
if (this.remoteCamera && this.remoteSize) {
|
1213
1229
|
this.onRemoteUpdate(this.remoteCamera, this.remoteSize);
|
1214
1230
|
}
|
1215
|
-
},
|
1231
|
+
}, 10);
|
1216
1232
|
this.onRemoteUpdate = throttle((camera, size2) => {
|
1217
1233
|
this.remoteCamera = camera;
|
1218
1234
|
this.remoteSize = size2;
|
@@ -1233,9 +1249,10 @@ class CameraSynchronizer {
|
|
1233
1249
|
animationMode: AnimationMode.Immediately
|
1234
1250
|
});
|
1235
1251
|
};
|
1252
|
+
moveCamera();
|
1236
1253
|
delay(moveCamera, 50);
|
1237
1254
|
}
|
1238
|
-
},
|
1255
|
+
}, 10);
|
1239
1256
|
}
|
1240
1257
|
setView(view) {
|
1241
1258
|
this.view = view;
|
@@ -1653,8 +1670,9 @@ class AppProxy {
|
|
1653
1670
|
if (!this.camera$.value) {
|
1654
1671
|
return;
|
1655
1672
|
}
|
1656
|
-
const nextCamera = __spreadValues(__spreadValues({}, this.camera$.value), camera);
|
1673
|
+
const nextCamera = __spreadProps(__spreadValues(__spreadValues({}, this.camera$.value), camera), { id: this.uid });
|
1657
1674
|
this.storeCamera(nextCamera);
|
1675
|
+
this.camera$.setValue(nextCamera);
|
1658
1676
|
};
|
1659
1677
|
this.addCameraReaction = () => {
|
1660
1678
|
this.sideEffectManager.add(() => this.manager.refresher.add(`${this.id}-camera`, () => reaction(() => {
|
@@ -1682,6 +1700,9 @@ class AppProxy {
|
|
1682
1700
|
}
|
1683
1701
|
})), "size");
|
1684
1702
|
};
|
1703
|
+
this.onFocus = () => {
|
1704
|
+
this.setScenePath();
|
1705
|
+
};
|
1685
1706
|
this.kind = params.kind;
|
1686
1707
|
this.id = appId;
|
1687
1708
|
this.appScenePath = `/${this.id}-app-dir`;
|
@@ -2020,6 +2041,7 @@ class AppProxy {
|
|
2020
2041
|
const fullPath = this._pageState.getFullPath(index2);
|
2021
2042
|
if (fullPath) {
|
2022
2043
|
this.setFullPath(fullPath);
|
2044
|
+
setScenePath(this.manager.room, fullPath);
|
2023
2045
|
}
|
2024
2046
|
}
|
2025
2047
|
}
|
@@ -2393,7 +2415,7 @@ class AppManager {
|
|
2393
2415
|
sceneName = (_b = this.callbacksNode) == null ? void 0 : _b.scenes[nextIndex];
|
2394
2416
|
}
|
2395
2417
|
if (sceneName) {
|
2396
|
-
this.setMainViewScenePath(`${ROOT_DIR}${sceneName}`);
|
2418
|
+
await this.setMainViewScenePath(`${ROOT_DIR}${sceneName}`);
|
2397
2419
|
}
|
2398
2420
|
await this.setMainViewSceneIndex(nextIndex);
|
2399
2421
|
} else {
|
@@ -2561,6 +2583,7 @@ class AppManager {
|
|
2561
2583
|
setTimeout(() => {
|
2562
2584
|
const appProxy = this.appProxies.get(focused);
|
2563
2585
|
if (appProxy) {
|
2586
|
+
appProxy.onFocus();
|
2564
2587
|
appRegister.notifyApp(appProxy.kind, "focus", { appId: focused });
|
2565
2588
|
}
|
2566
2589
|
}, 0);
|
@@ -2611,6 +2634,7 @@ class AppManager {
|
|
2611
2634
|
if (sceneState) {
|
2612
2635
|
const scenePath = sceneState.scenePath;
|
2613
2636
|
this.appProxies.forEach((appProxy) => {
|
2637
|
+
console.log("scenePath", scenePath, appProxy.scenePath);
|
2614
2638
|
if (appProxy.scenePath && scenePath.startsWith(appProxy.scenePath)) {
|
2615
2639
|
appProxy.emitAppSceneStateChange(sceneState);
|
2616
2640
|
appProxy.setFullPath(scenePath);
|
@@ -2631,7 +2655,7 @@ class AppManager {
|
|
2631
2655
|
this.displayerWritableListener = (isReadonly) => {
|
2632
2656
|
var _a, _b;
|
2633
2657
|
const isWritable = !isReadonly;
|
2634
|
-
const isManualWritable = this.windowManger.readonly === void 0 || this.windowManger.readonly
|
2658
|
+
const isManualWritable = this.windowManger.readonly === void 0 || !this.windowManger.readonly;
|
2635
2659
|
if (this.windowManger.readonly === void 0) {
|
2636
2660
|
(_a = this.boxManager) == null ? void 0 : _a.setReadonly(isReadonly);
|
2637
2661
|
} else {
|
@@ -2640,7 +2664,7 @@ class AppManager {
|
|
2640
2664
|
this.appProxies.forEach((appProxy) => {
|
2641
2665
|
appProxy.emitAppIsWritableChange();
|
2642
2666
|
});
|
2643
|
-
if (isWritable
|
2667
|
+
if (isWritable) {
|
2644
2668
|
if (this.room && this.room.disableSerialization === true) {
|
2645
2669
|
this.room.disableSerialization = false;
|
2646
2670
|
}
|
@@ -2701,7 +2725,7 @@ class AppManager {
|
|
2701
2725
|
});
|
2702
2726
|
}
|
2703
2727
|
async onRootDirRemoved(needClose = true) {
|
2704
|
-
this.setMainViewScenePath(INIT_DIR);
|
2728
|
+
await this.setMainViewScenePath(INIT_DIR);
|
2705
2729
|
this.createRootDirScenesCallback();
|
2706
2730
|
for (const [id2, appProxy] of this.appProxies.entries()) {
|
2707
2731
|
if (appProxy.view) {
|
@@ -2709,7 +2733,7 @@ class AppManager {
|
|
2709
2733
|
}
|
2710
2734
|
}
|
2711
2735
|
this.mainViewProxy.rebind();
|
2712
|
-
emitter.emit("rootDirRemoved");
|
2736
|
+
await emitter.emit("rootDirRemoved");
|
2713
2737
|
this.updateRootDirRemoving(false);
|
2714
2738
|
}
|
2715
2739
|
get eventName() {
|
@@ -4218,7 +4242,7 @@ class Y$3 {
|
|
4218
4242
|
if (!this.$stage) {
|
4219
4243
|
const e4 = document.createElement("div");
|
4220
4244
|
this.$stage = e4, e4.className = this.wrapClassName("content-stage"), this._sideEffect.addDisposer(this._contentStageRect$.subscribe((t4) => {
|
4221
|
-
|
4245
|
+
e4.style.top = t4.y + "px", e4.style.left = t4.x + "px", e4.style.width = t4.width + "px", e4.style.height = t4.height + "px";
|
4222
4246
|
}), "content-stage-rect"), r2.appendChild(e4);
|
4223
4247
|
}
|
4224
4248
|
this.$stage.parentElement || r2.appendChild(this.$stage), this.$stage.appendChild(t3);
|
@@ -4309,33 +4333,33 @@ class Y$3 {
|
|
4309
4333
|
}
|
4310
4334
|
var X$3, P$3;
|
4311
4335
|
class O$3 {
|
4312
|
-
constructor({ minimized$: e2, readonly$: t2, darkMode$: i2,
|
4313
|
-
this._sideEffect = new SideEffectManager(), this.namespace =
|
4314
|
-
const
|
4315
|
-
this._sideEffect.addDisposer(() =>
|
4316
|
-
const
|
4317
|
-
withValueEnhancer(this, { styles:
|
4318
|
-
withReadonlyValueEnhancer(this, { root:
|
4319
|
-
withReadonlyValueEnhancer(this, { rect:
|
4320
|
-
this._sideEffect.addEventListener(
|
4336
|
+
constructor({ minimized$: e2, readonly$: t2, darkMode$: i2, namespace: s2 = "telebox", styles: a2 = {}, root$: n2 }) {
|
4337
|
+
this._sideEffect = new SideEffectManager(), this.namespace = s2;
|
4338
|
+
const o2 = new ValManager();
|
4339
|
+
this._sideEffect.addDisposer(() => o2.destroy());
|
4340
|
+
const r2 = new Val(void 0), h = derive(e2), l2 = new Val(a2), d2 = new Val(document.createElement("button"));
|
4341
|
+
withValueEnhancer(this, { styles: l2, $collector: d2 }, o2);
|
4342
|
+
withReadonlyValueEnhancer(this, { root: n2 });
|
4343
|
+
withReadonlyValueEnhancer(this, { rect: r2, visible: h }, o2), d2.value.className = this.wrapClassName("collector"), d2.value.style.backgroundImage = "url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOCAxNiI+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIHN0cm9rZT0iIzdCODhBMCIgc3Ryb2tlLXdpZHRoPSIxLjQiIGQ9Ik0uNyAxLjJoMTYuNnYxMy42SC43eiIgLz4KICAgICAgICA8cGF0aCBmaWxsPSIjN0I4OEEwIiBkPSJNNCA1LjVoNnYxLjRINHpNNCA5LjVoMTB2MS40SDR6IiAvPgogICAgPC9nPgo8L3N2Zz4K')", this._sideEffect.addDisposer(d2.subscribe((s3) => {
|
4344
|
+
this._sideEffect.addEventListener(s3, "click", () => {
|
4321
4345
|
t2.value || e2.setValue(false);
|
4322
|
-
}, {}, "telebox-collector-click"), this._sideEffect.addDisposer([
|
4323
|
-
|
4346
|
+
}, {}, "telebox-collector-click"), this._sideEffect.addDisposer([h.subscribe((e3) => {
|
4347
|
+
s3.classList.toggle(this.wrapClassName("collector-visible"), e3);
|
4324
4348
|
}), t2.subscribe((e3) => {
|
4325
|
-
|
4349
|
+
s3.classList.toggle(this.wrapClassName("collector-readonly"), e3);
|
4326
4350
|
}), i2.subscribe((e3) => {
|
4327
|
-
|
4328
|
-
}),
|
4351
|
+
s3.classList.toggle(this.wrapClassName("color-scheme-dark"), e3), s3.classList.toggle(this.wrapClassName("color-scheme-light"), !e3);
|
4352
|
+
}), l2.subscribe((e3) => {
|
4329
4353
|
Object.keys(e3).forEach((t3) => {
|
4330
4354
|
const i3 = e3[t3];
|
4331
|
-
i3 != null && (
|
4355
|
+
i3 != null && (s3.style[t3] = i3);
|
4332
4356
|
});
|
4333
|
-
}),
|
4334
|
-
e3 && e3.appendChild(
|
4335
|
-
}), combine([e2,
|
4336
|
-
if (e3 &&
|
4337
|
-
const { x: e4, y:
|
4338
|
-
|
4357
|
+
}), n2.subscribe((e3) => {
|
4358
|
+
e3 && e3.appendChild(s3);
|
4359
|
+
}), combine([e2, n2]).subscribe(([e3, t3]) => {
|
4360
|
+
if (e3 && t3) {
|
4361
|
+
const { x: e4, y: i3, width: a3, height: n3 } = s3.getBoundingClientRect(), o3 = t3.getBoundingClientRect();
|
4362
|
+
r2.setValue({ x: e4 - o3.x, y: i3 - o3.y, width: a3, height: n3 });
|
4339
4363
|
}
|
4340
4364
|
})], "telebox-collector-el");
|
4341
4365
|
}));
|
@@ -4437,7 +4461,7 @@ class F$3 {
|
|
4437
4461
|
t3 || this.events.emit(X$3.PrefersColorScheme, e3);
|
4438
4462
|
}));
|
4439
4463
|
const L2 = combine([R2, D2], ([e3, t3]) => t3 === "auto" ? e3 : t3 === "dark"), T2 = combine([z2, B2], ([e3, t3]) => e3 ? C$3.Minimized : t3 ? C$3.Maximized : C$3.Normal);
|
4440
|
-
this.collector = n2 != null ? n2 : new O$3({ minimized$: z2, readonly$: y2, darkMode$: L2, namespace: o2, root$: w2
|
4464
|
+
this.collector = n2 != null ? n2 : new O$3({ minimized$: z2, readonly$: y2, darkMode$: L2, namespace: o2, root$: w2 });
|
4441
4465
|
const V2 = new A$2({ namespace: o2, rootRect$: I2, ratio$: S2, root$: w2, highlightStage$: combine([M2, B2, z2], ([e3, t3, i3]) => e3 && (i3 || !t3)) });
|
4442
4466
|
this._sideEffect.addDisposer(() => V2.destroy());
|
4443
4467
|
const H2 = { darkMode: L2, state: T2, root: w2, rootRect: I2, stageRect: V2.stageRect$ };
|
@@ -4658,17 +4682,17 @@ class BoxManager {
|
|
4658
4682
|
const { emitter: emitter2, callbacks: callbacks2, boxEmitter: boxEmitter2 } = context;
|
4659
4683
|
this.teleBoxManager = this.setupBoxManager(createTeleBoxManagerConfig);
|
4660
4684
|
this.sideEffectManager.add(() => [
|
4661
|
-
this.teleBoxManager.
|
4685
|
+
this.teleBoxManager.onValChanged("state", (state) => {
|
4662
4686
|
callbacks2.emit("boxStateChange", state);
|
4663
4687
|
emitter2.emit("boxStateChange", state);
|
4664
4688
|
}),
|
4665
|
-
this.teleBoxManager.
|
4689
|
+
this.teleBoxManager.onValChanged("darkMode", (darkMode) => {
|
4666
4690
|
callbacks2.emit("darkModeChange", darkMode);
|
4667
4691
|
}),
|
4668
|
-
this.teleBoxManager.
|
4692
|
+
this.teleBoxManager.onValChanged("prefersColorScheme", (colorScheme) => {
|
4669
4693
|
callbacks2.emit("prefersColorSchemeChange", colorScheme);
|
4670
4694
|
}),
|
4671
|
-
this.teleBoxManager.
|
4695
|
+
this.teleBoxManager.onValChanged("minimized", (minimized, skipUpdate) => {
|
4672
4696
|
if (skipUpdate) {
|
4673
4697
|
return;
|
4674
4698
|
}
|
@@ -4684,7 +4708,7 @@ class BoxManager {
|
|
4684
4708
|
}
|
4685
4709
|
}
|
4686
4710
|
}),
|
4687
|
-
this.teleBoxManager.
|
4711
|
+
this.teleBoxManager.onValChanged("maximized", (maximized, skipUpdate) => {
|
4688
4712
|
if (skipUpdate) {
|
4689
4713
|
return;
|
4690
4714
|
}
|
@@ -4696,7 +4720,11 @@ class BoxManager {
|
|
4696
4720
|
});
|
4697
4721
|
}),
|
4698
4722
|
this.teleBoxManager.events.on("intrinsic_move", debounce((box) => {
|
4699
|
-
boxEmitter2.emit("move", {
|
4723
|
+
boxEmitter2.emit("move", {
|
4724
|
+
appId: box.id,
|
4725
|
+
x: box.intrinsicX,
|
4726
|
+
y: box.intrinsicY
|
4727
|
+
});
|
4700
4728
|
}, 50)),
|
4701
4729
|
this.teleBoxManager.events.on("intrinsic_resize", debounce((box) => {
|
4702
4730
|
boxEmitter2.emit("resize", {
|
@@ -15527,14 +15555,14 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
|
|
15527
15555
|
const _WindowManager = class extends InvisiblePlugin {
|
15528
15556
|
constructor(context) {
|
15529
15557
|
super(context);
|
15530
|
-
this.version = "1.0.0-canary.
|
15531
|
-
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.
|
15558
|
+
this.version = "1.0.0-canary.15";
|
15559
|
+
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.17", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "side-effect-manager": "^1.1.0", "uuid": "^7.0.3", "value-enhancer": "^1.3.0", "video.js": ">=7" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.2.9", "@netless/app-media-player": "0.1.0-beta.5", "@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.22", "@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", "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", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.5.3", "vitest": "^0.14.1", "white-web-sdk": "2.16.10" } };
|
15532
15560
|
this.emitter = callbacks$1;
|
15533
15561
|
this.viewMode = ViewMode.Broadcaster;
|
15534
15562
|
this.isReplay = isPlayer(this.displayer);
|
15535
15563
|
this.containerSizeRatio = _WindowManager.containerSizeRatio;
|
15536
15564
|
_WindowManager.displayer = context.displayer;
|
15537
|
-
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.
|
15565
|
+
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.17", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "side-effect-manager": "^1.1.0", "uuid": "^7.0.3", "value-enhancer": "^1.3.0", "video.js": ">=7" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.2.9", "@netless/app-media-player": "0.1.0-beta.5", "@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.22", "@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", "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", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.5.3", "vitest": "^0.14.1", "white-web-sdk": "2.16.10" } };
|
15538
15566
|
}
|
15539
15567
|
static async mount(params) {
|
15540
15568
|
var _a;
|
@@ -16148,12 +16176,12 @@ const _WindowManager = class extends InvisiblePlugin {
|
|
16148
16176
|
(_a = this.appManager) == null ? void 0 : _a.dispatchInternalEvent(Events.Refresh);
|
16149
16177
|
}
|
16150
16178
|
_refresh() {
|
16151
|
-
var _a, _b
|
16179
|
+
var _a, _b;
|
16152
16180
|
(_a = this.appManager) == null ? void 0 : _a.mainViewProxy.rebind();
|
16153
16181
|
if (_WindowManager.container) {
|
16154
16182
|
this.bindContainer(_WindowManager.container);
|
16155
16183
|
}
|
16156
|
-
(
|
16184
|
+
(_b = this.appManager) == null ? void 0 : _b.refresher.refresh();
|
16157
16185
|
}
|
16158
16186
|
setContainerSizeRatio(ratio) {
|
16159
16187
|
if (!isNumber(ratio)) {
|