@netless/window-manager 0.4.0-canary.3 → 0.4.0-canary.4
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/ReconnectRefresher.d.ts +0 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +1 -2
- package/src/ReconnectRefresher.ts +0 -4
- package/src/index.ts +4 -1
package/package.json
CHANGED
package/src/AppManager.ts
CHANGED
@@ -3,13 +3,12 @@ import { AppAttributes, AppStatus, Events, MagixEventName } from "./constants";
|
|
3
3
|
import { AppListeners } from "./AppListener";
|
4
4
|
import { AppProxy } from "./AppProxy";
|
5
5
|
import { autorun, isPlayer, isRoom, ScenePathType, ViewVisionMode } from "white-web-sdk";
|
6
|
-
import { callbacks, emitter, WindowManager } from "./index";
|
6
|
+
import { callbacks, emitter, WindowManager, reconnectRefresher } from "./index";
|
7
7
|
import { CameraStore } from "./Utils/CameraStore";
|
8
8
|
import { genAppId, makeValidScenePath, setScenePath } from "./Utils/Common";
|
9
9
|
import { log } from "./Utils/log";
|
10
10
|
import { MainViewProxy } from "./MainView";
|
11
11
|
import { onObjectRemoved, safeListenPropsUpdated } from "./Utils/Reactive";
|
12
|
-
import { reconnectRefresher } from "./ReconnectRefresher";
|
13
12
|
import { sortBy } from "lodash";
|
14
13
|
import { store } from "./AttributesDelegate";
|
15
14
|
import { ViewManager } from "./ViewManager";
|
package/src/index.ts
CHANGED
@@ -58,6 +58,7 @@ import type { AppListeners } from "./AppListener";
|
|
58
58
|
import type { NetlessApp, RegisterParams } from "./typings";
|
59
59
|
import type { TeleBoxColorScheme, TeleBoxState } from "@netless/telebox-insider";
|
60
60
|
import type { AppProxy } from "./AppProxy";
|
61
|
+
import { ReconnectRefresher } from "./ReconnectRefresher";
|
61
62
|
|
62
63
|
const ResizeObserver = window.ResizeObserver || ResizeObserverPolyfill;
|
63
64
|
|
@@ -172,6 +173,8 @@ export type MountParams = {
|
|
172
173
|
export type CallbacksType = Emittery<PublicEvent>;
|
173
174
|
export const callbacks: CallbacksType = new Emittery();
|
174
175
|
|
176
|
+
export const reconnectRefresher = new ReconnectRefresher({ emitter });
|
177
|
+
|
175
178
|
export class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
|
176
179
|
public static kind = "WindowManager";
|
177
180
|
public static displayer: Displayer;
|
@@ -182,7 +185,7 @@ export class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
|
|
182
185
|
public static containerSizeRatio = DEFAULT_CONTAINER_RATIO;
|
183
186
|
private static isCreated = false;
|
184
187
|
|
185
|
-
public version = "0.4.0-canary.
|
188
|
+
public version = "0.4.0-canary.4";
|
186
189
|
|
187
190
|
public appListeners?: AppListeners;
|
188
191
|
|