@netless/window-manager 1.0.0-canary.0 → 1.0.0-canary.3
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/App/AppContext.d.ts +14 -15
- package/dist/App/AppPageStateImpl.d.ts +6 -2
- package/dist/App/AppProxy.d.ts +5 -1
- package/dist/App/WhiteBoardView.d.ts +18 -0
- package/dist/App/index.d.ts +1 -0
- package/dist/AppManager.d.ts +2 -0
- package/dist/BoxManager.d.ts +2 -0
- package/dist/Helper.d.ts +12 -2
- package/dist/InternalEmitter.d.ts +2 -0
- package/dist/constants.d.ts +1 -0
- package/dist/index.cjs.js +12 -12
- package/dist/index.es.js +239 -392
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +4 -0
- package/docs/app-context.md +94 -64
- package/docs/develop-app.md +2 -5
- package/package.json +3 -2
- package/pnpm-lock.yaml +11 -5
- package/src/App/AppContext.ts +65 -72
- package/src/App/AppPageStateImpl.ts +25 -6
- package/src/App/AppProxy.ts +39 -6
- package/src/App/Storage/index.ts +4 -4
- package/src/App/WhiteBoardView.ts +76 -0
- package/src/App/index.ts +1 -0
- package/src/AppManager.ts +9 -1
- package/src/BoxManager.ts +9 -1
- package/src/Helper.ts +10 -1
- package/src/InternalEmitter.ts +2 -0
- package/src/View/MainView.ts +2 -2
- package/src/constants.ts +2 -0
- package/src/index.ts +1 -1
- package/src/style.css +9 -0
- package/src/typings.ts +4 -0
package/src/typings.ts
CHANGED
@@ -13,6 +13,7 @@ import type {
|
|
13
13
|
import type { AppContext } from "./App";
|
14
14
|
import type { ReadonlyTeleBox, TeleBoxRect } from "@netless/telebox-insider";
|
15
15
|
import type { PageState } from "./Page";
|
16
|
+
import type { Member } from "./Helper";
|
16
17
|
|
17
18
|
export interface NetlessApp<Attributes = any, MagixEventPayloads = any, AppOptions = any, SetupResult = any> {
|
18
19
|
kind: string;
|
@@ -53,6 +54,7 @@ export type AppEmitterEvent<T = any> = {
|
|
53
54
|
reconnected: void;
|
54
55
|
seek: number;
|
55
56
|
pageStateChange: PageState,
|
57
|
+
roomMembersChange: Member[];
|
56
58
|
};
|
57
59
|
|
58
60
|
export type RegisterEventData = {
|
@@ -79,8 +81,10 @@ export type AppListenerKeys = keyof AppEmitterEvent;
|
|
79
81
|
export type ApplianceIcons = Partial<Record<ApplianceNames, string>>;
|
80
82
|
|
81
83
|
export type { AppContext } from "./App/AppContext";
|
84
|
+
export type { WhiteBoardView } from "./App";
|
82
85
|
export type { ReadonlyTeleBox, TeleBoxRect };
|
83
86
|
export type { SceneState, SceneDefinition, View, AnimationMode, Displayer, Room, Player };
|
84
87
|
export type { Storage, StorageStateChangedEvent, StorageStateChangedListener } from "./App/Storage";
|
85
88
|
export * from "./Page";
|
86
89
|
export * from "./Utils/error";
|
90
|
+
export type { Member } from "./Helper";
|