@netless/app-presentation 0.1.13 → 0.1.14
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/README-zh.md +11 -0
- package/README.md +13 -0
- package/build.ts +19 -9
- package/dist/index.d.ts +2 -1
- package/dist/index.global.js +3 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -5
- package/src/app-presentation.ts +4 -1
- package/src/camera-reference.ts +1 -1
package/src/app-presentation.ts
CHANGED
|
@@ -7,10 +7,10 @@ import type {
|
|
|
7
7
|
ReadonlyTeleBox,
|
|
8
8
|
Room,
|
|
9
9
|
SceneDefinition,
|
|
10
|
-
Size,
|
|
11
10
|
View,
|
|
12
11
|
WindowManager,
|
|
13
12
|
} from "@netless/window-manager";
|
|
13
|
+
import type { Size } from "white-web-sdk";
|
|
14
14
|
|
|
15
15
|
import { disposableStore } from "@wopjs/disposable";
|
|
16
16
|
import { listen } from "@wopjs/dom";
|
|
@@ -345,6 +345,9 @@ export const setupBlurThumbnailDegradation = (config: {
|
|
|
345
345
|
};
|
|
346
346
|
|
|
347
347
|
const restoreFocusedResources = (): void => {
|
|
348
|
+
// TeleBox can restore before the host delivers its activity/focus event.
|
|
349
|
+
// Keep the applied state aligned so the next blur starts a new episode.
|
|
350
|
+
appliedFocusState = true;
|
|
348
351
|
if (!blurEpisode) return;
|
|
349
352
|
blurEpisode = false;
|
|
350
353
|
failedThumbnailPageIndex = null;
|
package/src/camera-reference.ts
CHANGED