@netless/window-manager 1.0.7-beta.2 → 1.0.7-beta.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/index.d.ts +18 -9
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -81
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/App/AppProxy.ts +2 -1
- package/src/AppManager.ts +0 -10
- package/src/BoxManager.ts +0 -3
- package/src/Utils/extendClass.ts +13 -3
- package/src/index.ts +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -657,12 +657,13 @@ declare class Cursor {
|
|
|
657
657
|
hide(): void;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
type ExtendClass = {
|
|
660
|
+
type ExtendClass$1 = {
|
|
661
661
|
AppManager?: typeof AppManager;
|
|
662
662
|
BoxManager?: typeof BoxManager;
|
|
663
663
|
AttributesDelegate?: typeof AttributesDelegate;
|
|
664
664
|
CursorManager?: typeof CursorManager;
|
|
665
665
|
AppProxy?: typeof AppProxy;
|
|
666
|
+
AppContext?: typeof AppContext;
|
|
666
667
|
};
|
|
667
668
|
|
|
668
669
|
type Apps = {
|
|
@@ -1029,9 +1030,6 @@ type InsertOptions = {
|
|
|
1029
1030
|
readonly useClicker?: boolean;
|
|
1030
1031
|
readonly useSelector?: boolean;
|
|
1031
1032
|
} & BaseOption;
|
|
1032
|
-
type OnCreateInsertOption = {
|
|
1033
|
-
readonly displayer: Displayer;
|
|
1034
|
-
} & BaseOption;
|
|
1035
1033
|
/**
|
|
1036
1034
|
* {@link https://github.com/netless-io/netless-iframe-bridge @netless/iframe-bridge}
|
|
1037
1035
|
*/
|
|
@@ -1129,6 +1127,17 @@ declare class ExtendPluginManager {
|
|
|
1129
1127
|
destroy(): void;
|
|
1130
1128
|
}
|
|
1131
1129
|
|
|
1130
|
+
type ExtendClassAble = typeof AppManager | typeof AppProxy | typeof AppContext | typeof BoxManager | typeof AttributesDelegate | typeof CursorManager;
|
|
1131
|
+
type ExtendClass = {
|
|
1132
|
+
AppManager?: typeof AppManager;
|
|
1133
|
+
BoxManager?: typeof BoxManager;
|
|
1134
|
+
AttributesDelegate?: typeof AttributesDelegate;
|
|
1135
|
+
CursorManager?: typeof CursorManager;
|
|
1136
|
+
AppProxy?: typeof AppProxy;
|
|
1137
|
+
AppContext?: typeof AppContext;
|
|
1138
|
+
};
|
|
1139
|
+
declare function getExtendClass<T extends ExtendClassAble>(baseClass: T, extendClass?: ExtendClass): T;
|
|
1140
|
+
|
|
1132
1141
|
declare const BuiltinApps: {
|
|
1133
1142
|
DocsViewer: string;
|
|
1134
1143
|
MediaPlayer: string;
|
|
@@ -1224,7 +1233,7 @@ type MountParams = {
|
|
|
1224
1233
|
fullscreen?: boolean;
|
|
1225
1234
|
polling?: boolean;
|
|
1226
1235
|
supportAppliancePlugin?: boolean;
|
|
1227
|
-
/** 是否使用 boxesStatus
|
|
1236
|
+
/** 是否使用 boxesStatus 状态管理窗口 */
|
|
1228
1237
|
useBoxesStatus?: boolean;
|
|
1229
1238
|
};
|
|
1230
1239
|
declare const reconnectRefresher: ReconnectRefresher;
|
|
@@ -1255,13 +1264,13 @@ declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
|
1255
1264
|
private _cursorUIDsStyleDOM?;
|
|
1256
1265
|
private boxManager?;
|
|
1257
1266
|
private static params?;
|
|
1258
|
-
static extendClass?: ExtendClass;
|
|
1267
|
+
static extendClass?: ExtendClass$1;
|
|
1259
1268
|
private containerResizeObserver?;
|
|
1260
1269
|
containerSizeRatio: number;
|
|
1261
1270
|
private extendPluginManager?;
|
|
1262
1271
|
constructor(context: InvisiblePluginContext);
|
|
1263
1272
|
static onCreate(manager: WindowManager): void;
|
|
1264
|
-
static mount(params: MountParams, extendClass?: ExtendClass): Promise<WindowManager>;
|
|
1273
|
+
static mount(params: MountParams, extendClass?: ExtendClass$1): Promise<WindowManager>;
|
|
1265
1274
|
private static initManager;
|
|
1266
1275
|
private static initContainer;
|
|
1267
1276
|
static get registered(): Map<string, RegisterParams>;
|
|
@@ -1422,5 +1431,5 @@ declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
|
1422
1431
|
useExtendPlugin(extend: ExtendPluginInstance<any>): void;
|
|
1423
1432
|
}
|
|
1424
1433
|
|
|
1425
|
-
export { AppContext, AppCreateError, AppManagerNotInitError, AppNotRegisterError, BindContainerRoomPhaseInvalidError, BoxManagerNotFoundError, BoxNotCreatedError, BuiltinApps,
|
|
1426
|
-
export type { AddAppOptions, AddAppParams, AddPageParams, AppEmitterEvent, AppInitState, AppListenerKeys, AppPayload, AppSyncAttributes, ApplianceIcons, BaseInsertParams, CursorMovePayload, CursorOptions,
|
|
1434
|
+
export { AppContext, AppCreateError, AppManager, AppManagerNotInitError, AppNotRegisterError, AppProxy, AttributesDelegate, BindContainerRoomPhaseInvalidError, BoxManager, BoxManagerNotFoundError, BoxNotCreatedError, BuiltinApps, CursorManager, ExtendPlugin, ExtendPluginManager, InvalidScenePath, ParamsInvalidError, Storage, WhiteWebSDKInvalidError, WindowManager, calculateNextIndex, getExtendClass, reconnectRefresher };
|
|
1435
|
+
export type { AddAppOptions, AddAppParams, AddPageParams, AppEmitterEvent, AppInitState, AppListenerKeys, AppPayload, AppSyncAttributes, ApplianceIcons, BaseInsertParams, CursorMovePayload, CursorOptions, ExtendClass, ExtendClassAble, ExtendContext, ExtendManagerOptions, ExtendPluginInstance, MountParams, NetlessApp, PageController, PageRemoveService, PageState, PublicEvent, RegisterEventData, RegisterEvents, RegisterParams, StorageStateChangedEvent, StorageStateChangedListener, WindowMangerAttributes, apps, setAppOptions };
|