@netless/window-manager 1.0.0-canary.71 → 1.0.0-canary.73
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/{src/App → App}/AppContext.d.ts +1 -1
- package/dist/{src/App → App}/AppPageStateImpl.d.ts +0 -0
- package/dist/{src/App → App}/AppProxy.d.ts +0 -0
- package/dist/{src/App → App}/MagixEvent/index.d.ts +0 -0
- package/dist/{src/App → App}/WhiteboardView.d.ts +2 -2
- package/dist/{src/App → App}/index.d.ts +0 -0
- package/dist/{src/App → App}/type.d.ts +0 -0
- package/dist/{src/AppListener.d.ts → AppListener.d.ts} +0 -0
- package/dist/{src/AppManager.d.ts → AppManager.d.ts} +0 -0
- package/dist/{src/AttributesDelegate.d.ts → AttributesDelegate.d.ts} +0 -0
- package/dist/{src/BoxEmitter.d.ts → BoxEmitter.d.ts} +0 -0
- package/dist/{src/BoxManager.d.ts → BoxManager.d.ts} +2 -1
- package/dist/{src/BuiltinApps.d.ts → BuiltinApps.d.ts} +0 -0
- package/dist/{src/Cursor → Cursor}/Cursor.d.ts +0 -0
- package/dist/{src/Cursor → Cursor}/icons.d.ts +0 -0
- package/dist/{src/Cursor → Cursor}/index.d.ts +3 -1
- package/dist/{src/Helper.d.ts → Helper.d.ts} +0 -0
- package/dist/{src/InternalEmitter.d.ts → InternalEmitter.d.ts} +0 -0
- package/dist/{src/Page → Page}/PageController.d.ts +0 -0
- package/dist/{src/Page → Page}/index.d.ts +0 -0
- package/dist/{src/PageState.d.ts → PageState.d.ts} +0 -0
- package/dist/{src/ReconnectRefresher.d.ts → ReconnectRefresher.d.ts} +0 -0
- package/dist/{src/RedoUndo.d.ts → RedoUndo.d.ts} +0 -0
- package/dist/{src/Register → Register}/index.d.ts +0 -0
- package/dist/{src/Register → Register}/loader.d.ts +1 -1
- package/dist/{src/Register → Register}/storage.d.ts +0 -0
- package/dist/{src/Utils → Utils}/AppCreateQueue.d.ts +0 -0
- package/dist/{src/Utils → Utils}/Common.d.ts +2 -2
- package/dist/{src/Utils → Utils}/Reactive.d.ts +0 -0
- package/dist/{src/Utils → Utils}/RoomHacker.d.ts +0 -0
- package/dist/{src/Utils → Utils}/error.d.ts +0 -0
- package/dist/{src/Utils → Utils}/log.d.ts +0 -0
- package/dist/{src/View → View}/CameraSynchronizer.d.ts +0 -0
- package/dist/{src/View → View}/MainView.d.ts +0 -0
- package/dist/{src/View → View}/ScrollMode.d.ts +0 -0
- package/dist/{src/View → View}/ViewManager.d.ts +0 -0
- package/dist/{src/View → View}/ViewSync.d.ts +1 -1
- package/dist/{src/callback.d.ts → callback.d.ts} +0 -0
- package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- package/dist/{src/image.d.ts → image.d.ts} +0 -0
- package/dist/{src/index.d.ts → index.d.ts} +0 -0
- package/dist/index.js +2236 -2750
- package/dist/index.mjs +2209 -2738
- package/dist/index.umd.js +2197 -2729
- package/dist/{src/shim.d.ts → shim.d.ts} +0 -0
- package/dist/{src/storage.d.ts → storage.d.ts} +0 -0
- package/dist/{src/typings.d.ts → typings.d.ts} +0 -0
- package/package.json +40 -39
- package/src/BoxManager.ts +2 -1
- package/src/Cursor/index.ts +7 -2
- package/src/Utils/AppCreateQueue.ts +1 -1
- package/{vite.config.js → vite.config.mjs} +13 -16
@@ -43,7 +43,7 @@ export declare class AppContext<TAttributes extends Record<string, any> = any, T
|
|
43
43
|
getScenes: () => SceneDefinition[] | undefined;
|
44
44
|
get view(): View | undefined;
|
45
45
|
get now(): number;
|
46
|
-
createWhiteBoardView: (params?: CreateWhiteBoardViewParams
|
46
|
+
createWhiteBoardView: (params?: CreateWhiteBoardViewParams) => WhiteBoardView;
|
47
47
|
private ensurePageSize;
|
48
48
|
getInitScenePath: () => string | undefined;
|
49
49
|
/** Get App writable status. */
|
File without changes
|
File without changes
|
File without changes
|
@@ -21,7 +21,7 @@ export declare class WhiteBoardView implements PageController {
|
|
21
21
|
nextPage: () => Promise<boolean>;
|
22
22
|
prevPage: () => Promise<boolean>;
|
23
23
|
jumpPage: (index: number) => Promise<boolean>;
|
24
|
-
addPage: (params?: AddPageParams
|
25
|
-
removePage: (index?: number
|
24
|
+
addPage: (params?: AddPageParams) => Promise<void>;
|
25
|
+
removePage: (index?: number) => Promise<boolean>;
|
26
26
|
setBaseRect(rect: Omit<TeleBoxRect, "x" | "y">): void;
|
27
27
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,6 +11,7 @@ import type { View } from "white-web-sdk";
|
|
11
11
|
import type { CallbacksType } from "./callback";
|
12
12
|
import type { EmitterType } from "./InternalEmitter";
|
13
13
|
import type { AppState } from "./App/type";
|
14
|
+
import { ReadonlyVal } from "value-enhancer";
|
14
15
|
export { TELE_BOX_STATE };
|
15
16
|
export declare type CreateBoxParams = {
|
16
17
|
appId: string;
|
@@ -77,7 +78,7 @@ export declare class BoxManager {
|
|
77
78
|
get prefersColorScheme(): TeleBoxColorScheme;
|
78
79
|
get boxSize(): number;
|
79
80
|
get stageRect(): TeleBoxRect;
|
80
|
-
get stageRect$():
|
81
|
+
get stageRect$(): ReadonlyVal<TeleBoxRect, any>;
|
81
82
|
createBox(params: CreateBoxParams): ReadonlyTeleBox | undefined;
|
82
83
|
setupBoxManager(createTeleBoxManagerConfig?: CreateTeleBoxManagerConfig): TeleBoxManager;
|
83
84
|
getBox(appId: string): ReadonlyTeleBox | undefined;
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,6 +3,7 @@ import type { ApplianceIcons, TeleBoxRect } from "../index";
|
|
3
3
|
import type { PositionType } from "../AttributesDelegate";
|
4
4
|
import type { RoomMember, View } from "white-web-sdk";
|
5
5
|
import type { AppManager } from "../AppManager";
|
6
|
+
import { Val } from "value-enhancer";
|
6
7
|
export declare type EventType = {
|
7
8
|
type: PositionType;
|
8
9
|
id?: string;
|
@@ -23,7 +24,7 @@ export declare class CursorManager {
|
|
23
24
|
private sideEffectManager;
|
24
25
|
private store;
|
25
26
|
applianceIcons: ApplianceIcons;
|
26
|
-
get playground$():
|
27
|
+
get playground$(): Val<HTMLElement | undefined, any>;
|
27
28
|
constructor(manager: AppManager, enableCursor: boolean, applianceIcons?: ApplianceIcons);
|
28
29
|
private onCursorMove;
|
29
30
|
private initCursorInstance;
|
@@ -33,6 +34,7 @@ export declare class CursorManager {
|
|
33
34
|
get boxState(): any;
|
34
35
|
get focusView(): View | undefined;
|
35
36
|
private mouseMoveListener;
|
37
|
+
private shouldBroadcast;
|
36
38
|
private updateCursor;
|
37
39
|
private getPoint;
|
38
40
|
/**
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { NetlessApp } from "../typings";
|
2
2
|
export declare const getScript: (kind: string, url: string) => Promise<string>;
|
3
3
|
export declare const executeScript: (text: string, appName: string) => NetlessApp;
|
4
|
-
export declare const loadApp: (url: string, key: string, name?: string
|
4
|
+
export declare const loadApp: (url: string, key: string, name?: string) => Promise<NetlessApp | undefined>;
|
File without changes
|
File without changes
|
@@ -7,14 +7,14 @@ export declare const setViewSceneIndex: (view: View, index: number) => View | un
|
|
7
7
|
export declare const releaseView: (view: View) => void;
|
8
8
|
export declare const setScenePath: (room: Room | undefined, scenePath: string) => void;
|
9
9
|
export declare const getScenePath: (room: Room | undefined, dir: string | undefined, index: number) => string | undefined;
|
10
|
-
export declare const removeScenes: (room: Room | undefined, scenePath: string, index?: number
|
10
|
+
export declare const removeScenes: (room: Room | undefined, scenePath: string, index?: number) => void;
|
11
11
|
export declare const setViewMode: (view: View, mode: ViewVisionMode) => void;
|
12
12
|
export declare const emitError: (error: Error) => void;
|
13
13
|
export declare const addEmitterOnceListener: (event: any, listener: any) => void;
|
14
14
|
export declare const notifyMainViewModeChange: import("lodash").DebouncedFunc<(callbacks: Emittery<PublicEvent>, mode: ViewVisionMode) => void>;
|
15
15
|
export declare const makeValidScenePath: (displayer: Displayer, scenePath: string, index?: number) => string | undefined;
|
16
16
|
export declare const entireScenes: (displayer: Displayer) => import("white-web-sdk").SceneMap;
|
17
|
-
export declare const putScenes: (room: Room | undefined, path: string, scenes: SceneDefinition[], index?: number
|
17
|
+
export declare const putScenes: (room: Room | undefined, path: string, scenes: SceneDefinition[], index?: number) => void | undefined;
|
18
18
|
export declare const isValidScenePath: (scenePath: string) => boolean;
|
19
19
|
export declare const parseSceneDir: (scenePath: string) => string;
|
20
20
|
export declare const ensureValidScenePath: (scenePath: string) => string;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -26,7 +26,7 @@ export declare class ViewSync {
|
|
26
26
|
private subscribeCamera;
|
27
27
|
private subscribeSize;
|
28
28
|
private subscribeStageRect;
|
29
|
-
bindView: (view?: View
|
29
|
+
bindView: (view?: View) => void;
|
30
30
|
private onCameraUpdatedByDevice;
|
31
31
|
destroy(): void;
|
32
32
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|