@netless/window-manager 0.4.28 → 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,8 @@
1
+ ## 0.4.28-0.4.29 (2022-06-08)
2
+
3
+ - 修复 `removePage` 可以删除最后一页的问题
4
+ - `removePage` `index` 参数变为可选,默认删除当前页
5
+
1
6
  ## 0.4.27 (2022-06-07)
2
7
 
3
8
  - 添加 `removePage` API
@@ -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;