@netless/window-manager 0.4.69 → 0.4.71-beta.0

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.
@@ -23,6 +23,7 @@ export declare class CursorManager {
23
23
  private sideEffectManager;
24
24
  private store;
25
25
  applianceIcons: ApplianceIcons;
26
+ private onceCount;
26
27
  constructor(manager: AppManager, enableCursor: boolean, applianceIcons?: ApplianceIcons);
27
28
  private onCursorMove;
28
29
  private initCursorInstance;
@@ -1,8 +1,10 @@
1
1
  import Emittery from "emittery";
2
2
  import type { TeleBoxColorScheme, TELE_BOX_STATE } from "@netless/telebox-insider";
3
- import type { CameraState, SceneState, ViewVisionMode } from "white-web-sdk";
3
+ import type { CameraState, SceneState, View, ViewVisionMode } from "white-web-sdk";
4
4
  import type { LoadAppEvent } from "./Register";
5
5
  import type { PageState } from "./Page";
6
+ import type { BoxClosePayload, BoxFocusPayload, BoxMovePayload, BoxResizePayload, BoxStateChangePayload } from "./BoxEmitter";
7
+ import type { AppPayload } from "./typings";
6
8
  export declare type PublicEvent = {
7
9
  mainViewModeChange: ViewVisionMode;
8
10
  boxStateChange: `${TELE_BOX_STATE}`;
@@ -21,6 +23,15 @@ export declare type PublicEvent = {
21
23
  pageStateChange: PageState;
22
24
  fullscreenChange: boolean;
23
25
  appsChange: string[];
26
+ onBoxMove: BoxMovePayload;
27
+ onBoxResize: BoxResizePayload;
28
+ onBoxFocus: BoxFocusPayload;
29
+ onBoxClose: BoxClosePayload;
30
+ onBoxStateChange: BoxStateChangePayload;
31
+ onMainViewMounted: View;
32
+ onAppViewMounted: AppPayload;
33
+ onAppSetup: string;
34
+ onAppScenePathChange: AppPayload;
24
35
  };
25
36
  export declare type CallbacksType = Emittery<PublicEvent>;
26
37
  export declare const callbacks: CallbacksType;
package/dist/index.d.ts CHANGED
@@ -92,6 +92,7 @@ export declare type MountParams = {
92
92
  applianceIcons?: ApplianceIcons;
93
93
  fullscreen?: boolean;
94
94
  polling?: boolean;
95
+ supportTeachingAidsPlugin?: boolean;
95
96
  };
96
97
  export declare const reconnectRefresher: ReconnectRefresher;
97
98
  export declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any> implements PageController {
@@ -103,6 +104,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
103
104
  static container?: HTMLElement;
104
105
  static debug: boolean;
105
106
  static containerSizeRatio: number;
107
+ static supportTeachingAidsPlugin?: boolean;
106
108
  private static isCreated;
107
109
  version: string;
108
110
  dependencies: Record<string, string>;