@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.
- package/dist/Register/index.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/docs/advanced.md +18 -4
- package/docs/api.md +11 -1
- package/package.json +2 -4
- package/src/Register/index.ts +7 -1
- package/src/Register/loader.ts +26 -11
- package/src/index.ts +2 -0
package/dist/Register/index.d.ts
CHANGED
@@ -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;
|