@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.
@@ -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;
@@ -1,4 +1,4 @@
1
- import type { Camera, Rectangle, Size } from "@netless/window-manager"
1
+ import type { Camera, Rectangle, Size } from "white-web-sdk"
2
2
 
3
3
  export function isValidSize(size: Size | null | undefined): size is Size {
4
4
  return Boolean(