@netless/window-manager 0.4.5 → 0.4.6

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,9 @@
1
+ ## 0.4.6
2
+
3
+ 1. 升级 `@netless/telebox-insider` 至 `0.2.24`
4
+ 2. 内置 `video.js` 的 css, 使用视频插件时不再需要手动引入
5
+ 3. 添加 `addPage` `nextPage` `prevPage`
6
+
1
7
  ## 0.4.5
2
8
  1. 修复 manager 的 `insertText` `insertImage` `completeImageUpload` `lockImage` `lockImages` 没有代理到 `room` 的问题
3
9
  2. 升级 `@netless/telebox-insider` 至 `0.2.23`
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { AppManager } from "./AppManager";
3
3
  import { CursorManager } from "./Cursor";
4
4
  import { InvisiblePlugin, ViewMode } from "white-web-sdk";
5
5
  import { ReconnectRefresher } from "./ReconnectRefresher";
6
+ import "video.js/dist/video-js.css";
6
7
  import "./style.css";
7
8
  import "@netless/telebox-insider/dist/style.css";
8
9
  import type { LoadAppEvent } from "./Register";
@@ -136,6 +137,10 @@ export declare type MountParams = {
136
137
  export declare type CallbacksType = Emittery<PublicEvent>;
137
138
  export declare const callbacks: CallbacksType;
138
139
  export declare const reconnectRefresher: ReconnectRefresher;
140
+ export declare type AddPageParams = {
141
+ index?: number;
142
+ scene?: SceneDefinition;
143
+ };
139
144
  export declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
140
145
  static kind: string;
141
146
  static displayer: Displayer;
@@ -180,6 +185,9 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
180
185
  * 设置 mainView 的 SceneIndex, 并且切换白板为可写状态
181
186
  */
182
187
  setMainViewSceneIndex(index: number): Promise<void>;
188
+ nextPage(): Promise<boolean>;
189
+ prevPage(): Promise<boolean>;
190
+ addPage(params?: AddPageParams): Promise<void>;
183
191
  /**
184
192
  * 返回 mainView 的 ScenePath
185
193
  */