@netless/slide 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -301,3 +301,7 @@
301
301
  #### 0.11.2
302
302
 
303
303
  * 修复 ppt 显示区域底部白边问题
304
+
305
+ #### 1.0.1
306
+
307
+ * 支持访问私有存储
package/lib/Slide.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { SlideError, VolumeAdjuster } from "@netless/ppt-player";
2
2
  import { IPlugin } from "@netless/plugin-system";
3
- export { ErrorType } from "@netless/ppt-player";
3
+ export type { ErrorType } from "@netless/ppt-player";
4
4
  export * from "./global";
5
+ export declare type UrlInterrupter = (url: string) => Promise<string>;
5
6
  export interface ILoaderDelegate {
6
7
  /**
7
8
  * 加载 json 资源, 需返回 json 文本
@@ -234,6 +235,7 @@ export interface ISlideConfig {
234
235
  * 1. ppt 某一页有自动动画, 动画过程中进行的下一步动作, 在其他客户端可能表现为下一页(即翻页)
235
236
  */
236
237
  clientId?: string;
238
+ urlInterrupter?: UrlInterrupter;
237
239
  }
238
240
  interface MediaState {
239
241
  type: "pause" | "play";