@netless/app-slide 0.3.0-canary.5 → 0.3.0-canary.8

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.
@@ -9,6 +9,19 @@ interface PreviewPage {
9
9
  height: number;
10
10
  thumbnail: string;
11
11
  }
12
+ interface PreviewInfo {
13
+ width: number;
14
+ height: number;
15
+ }
16
+ interface SlideInfo {
17
+ width: number;
18
+ height: number;
19
+ slideCount: number;
20
+ }
21
+ declare function fetch_slide_info({ taskId, url }: SlideAttributes): Promise<{
22
+ preview: PreviewInfo | null;
23
+ slide: SlideInfo;
24
+ }>;
12
25
  export declare type SlideViewerOptions = Omit<ISlideConfig, "anchor" | "mode" | "interactive"> & {
13
26
  mode?: ISlideConfig["mode"];
14
27
  interactive?: ISlideConfig["interactive"];
@@ -20,6 +33,7 @@ export interface SlideViewerInfoResponse {
20
33
  }
21
34
  export declare class SlideViewer {
22
35
  static styles: string;
36
+ static fetchSlideInfo: typeof fetch_slide_info;
23
37
  private readonly sideEffect;
24
38
  readonly $slide: HTMLDivElement;
25
39
  readonly sidebar: {
@@ -46,6 +60,7 @@ export declare class SlideViewer {
46
60
  };
47
61
  readonly $content: HTMLElement;
48
62
  readonly $footer: HTMLElement;
63
+ readonly $overlay: HTMLElement;
49
64
  readonly slide: Slide;
50
65
  private readonly _readyPromise;
51
66
  private readonly _infoPromise;
package/dist/index.d.ts CHANGED
@@ -2,9 +2,12 @@ import type { NetlessApp } from "@netless/window-manager";
2
2
  import type { AddHooks, AppOptions, Attributes, MagixEvents, SlideState } from "./typings";
3
3
  import type { SlideViewerOptions } from "./SlideViewer";
4
4
  export type { SlideState, AddHooks, AppOptions, Attributes, MagixEvents, SlideViewerOptions };
5
+ import { Slide } from "@netless/slide";
5
6
  import { SlideViewer } from "./SlideViewer";
6
7
  import { refrigerator, addHooks } from "./Refrigerator";
7
- export { SlideViewer, refrigerator, addHooks };
8
+ import { DefaultUrl } from "./constants";
9
+ export { Slide, SlideViewer, refrigerator, addHooks, DefaultUrl };
10
+ export declare const usePlugin: (plugin: any) => void;
8
11
  export declare const version: string;
9
12
  declare const SlideApp: NetlessApp<Attributes, MagixEvents, AppOptions, void>;
10
13
  export default SlideApp;