@netless/window-manager 0.4.0 → 0.4.1-canary.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.
@@ -1,5 +1,10 @@
1
1
  import Emittery from "emittery";
2
2
  import type { NetlessApp, RegisterEvents, RegisterParams } from "../typings";
3
+ export declare type LoadAppEvent = {
4
+ kind: string;
5
+ status: "start" | "success" | "failed";
6
+ reason?: string;
7
+ };
3
8
  declare class AppRegister {
4
9
  kindEmitters: Map<string, Emittery<RegisterEvents>>;
5
10
  registered: Map<string, RegisterParams>;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { InvisiblePlugin, ViewMode } from "white-web-sdk";
5
5
  import { ReconnectRefresher } from "./ReconnectRefresher";
6
6
  import "./style.css";
7
7
  import "@netless/telebox-insider/dist/style.css";
8
+ import type { LoadAppEvent } from "./Register";
8
9
  import type { TELE_BOX_STATE } from "./BoxManager";
9
10
  import type { Apps, Position } from "./AttributesDelegate";
10
11
  import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, ViewVisionMode, CameraState, Player } from "white-web-sdk";
@@ -115,6 +116,7 @@ export declare type PublicEvent = {
115
116
  mainViewScenesLengthChange: number;
116
117
  canRedoStepsChange: number;
117
118
  canUndoStepsChange: number;
119
+ loadApp: LoadAppEvent;
118
120
  };
119
121
  export declare type MountParams = {
120
122
  room: Room | Player;