@netless/window-manager 0.4.27-canary.0 → 0.4.29

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/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 0.4.28-0.4.29 (2022-06-08)
2
+
3
+ - 修复 `removePage` 可以删除最后一页的问题
4
+ - `removePage` `index` 参数变为可选,默认删除当前页
5
+
6
+ ## 0.4.27 (2022-06-07)
7
+
8
+ - 添加 `removePage` API
9
+ - `storage` 仅在第一次时设置默认状态
10
+ - `bindContainer` 在 `room` 非 `Connected` 状态下调用会直接抛出错误
11
+
1
12
  ## 0.4.26
2
13
 
3
14
  1. 修复 `app` 中 `pageStateChange` 事件被多次触发的问题
@@ -70,6 +70,6 @@ export declare class AppContext<TAttributes = any, TMagixEventPayloads = any, TA
70
70
  nextPage: () => Promise<boolean>;
71
71
  prevPage: () => Promise<boolean>;
72
72
  addPage: (params?: AddPageParams | undefined) => Promise<void>;
73
- removePage: (index: number) => Promise<boolean>;
73
+ removePage: (index?: number | undefined) => Promise<boolean>;
74
74
  get pageState(): PageState;
75
75
  }
@@ -5,7 +5,7 @@ import type { SceneState, View, SceneDefinition } from "white-web-sdk";
5
5
  import type { AppManager } from "../AppManager";
6
6
  import type { NetlessApp } from "../typings";
7
7
  import type { ReadonlyTeleBox } from "@netless/telebox-insider";
8
- import { PageRemoveService, PageState } from "../Page";
8
+ import type { PageRemoveService, PageState } from "../Page";
9
9
  export declare type AppEmitter = Emittery<AppEmitterEvent>;
10
10
  export declare class AppProxy implements PageRemoveService {
11
11
  private params;