@netless/window-manager 0.4.57 → 0.4.59
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 +2 -2
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -3
- package/src/App/AppContext.ts +2 -2
- package/src/Utils/Common.ts +5 -0
- package/src/index.ts +2 -1
- package/.prettierignore +0 -7
- package/.prettierrc.json +0 -9
- package/CHANGELOG.md +0 -304
- package/__mocks__/white-web-sdk.ts +0 -41
- package/jest.config.js +0 -27
- package/vite.config.js +0 -54
package/dist/App/AppContext.d.ts
CHANGED
@@ -9,7 +9,7 @@ import type { AppManager } from "../AppManager";
|
|
9
9
|
import type { AppProxy } from "./AppProxy";
|
10
10
|
import type { MagixEventAddListener, MagixEventDispatcher, MagixEventRemoveListener } from "./MagixEvent";
|
11
11
|
import type { AddPageParams, PageController, PageState } from "../Page";
|
12
|
-
export declare class AppContext<TAttributes = any, TMagixEventPayloads = any, TAppOptions = any> implements PageController {
|
12
|
+
export declare class AppContext<TAttributes extends {} = any, TMagixEventPayloads = any, TAppOptions = any> implements PageController {
|
13
13
|
private manager;
|
14
14
|
private boxManager;
|
15
15
|
appId: string;
|
@@ -59,7 +59,7 @@ export declare class AppContext<TAttributes = any, TMagixEventPayloads = any, TA
|
|
59
59
|
* @param defaultState Default state for initial storage creation.
|
60
60
|
* @returns
|
61
61
|
*/
|
62
|
-
createStorage: <TState>(storeId: string, defaultState?: TState | undefined) => Storage<TState>;
|
62
|
+
createStorage: <TState extends {}>(storeId: string, defaultState?: TState | undefined) => Storage<TState>;
|
63
63
|
/** Dispatch events to other clients (and self). */
|
64
64
|
dispatchMagixEvent: MagixEventDispatcher<TMagixEventPayloads>;
|
65
65
|
/** Listen to events from others clients (and self messages). */
|