@d-i-t-a/reader 1.11.0-beta.4 → 1.11.0-beta.5

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.
@@ -1,6 +1,5 @@
1
1
  import { ReadingPosition } from "../model/Locator";
2
2
  import { IHighlight } from "../modules/highlight/common/highlight";
3
- import { IReadiumIFrameWindow } from "../modules/highlight/renderer/iframe/state";
4
3
  interface Annotator {
5
4
  initLastReadingPosition(position: ReadingPosition): Promise<void>;
6
5
  getLastReadingPosition(): Promise<any>;
@@ -17,7 +16,7 @@ interface Annotator {
17
16
  getAnnotations(): Promise<any>;
18
17
  getAnnotation(annotation: IHighlight): Promise<any>;
19
18
  getAnnotationByID(id: string): Promise<any>;
20
- getAnnotationPosition(id: any, iframeWin: IReadiumIFrameWindow): Promise<any>;
19
+ getAnnotationPosition(id: any, iframeWin: any): Promise<any>;
21
20
  }
22
21
  export declare enum AnnotationType {
23
22
  Bookmark = 0,
@@ -1,7 +1,6 @@
1
1
  import Annotator, { AnnotationType } from "./Annotator";
2
2
  import Store from "./Store";
3
3
  import { ReadingPosition } from "../model/Locator";
4
- import { IReadiumIFrameWindow } from "../modules/highlight/renderer/iframe/state";
5
4
  import { IHighlight } from "../modules/highlight/common/highlight";
6
5
  export interface LocalAnnotatorConfig {
7
6
  store: Store;
@@ -26,7 +25,7 @@ export default class LocalAnnotator implements Annotator {
26
25
  deleteAnnotation(id: any): Promise<any>;
27
26
  deleteSelectedAnnotation(annotation: any): Promise<any>;
28
27
  getAnnotations(): Promise<any>;
29
- getAnnotationPosition(id: any, iframeWin: IReadiumIFrameWindow): Promise<any>;
28
+ getAnnotationPosition(id: any, iframeWin: any): Promise<any>;
30
29
  getAnnotation(highlight: IHighlight): Promise<any>;
31
30
  getAnnotationByID(id: string): Promise<any>;
32
31
  }
@@ -3,3 +3,4 @@
3
3
  * Timer function that you can 'await' on
4
4
  */
5
5
  export declare function delay(t: number, v?: any): Promise<any>;
6
+ export declare const IS_DEV: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-i-t-a/reader",
3
- "version": "1.11.0-beta.4",
3
+ "version": "1.11.0-beta.5",
4
4
  "description": "A viewer application for EPUB files.",
5
5
  "repository": "https://github.com/d-i-t-a/R2D2BC",
6
6
  "license": "Apache-2.0",
package/dist/.DS_Store DELETED
Binary file
@@ -1,8 +0,0 @@
1
- import IFrameNavigator from "../../navigator/IFrameNavigator";
2
- export default class Popup {
3
- navigator: IFrameNavigator;
4
- constructor(navigator: IFrameNavigator);
5
- handleFootnote(link: HTMLLIElement, event: MouseEvent | TouchEvent): Promise<void>;
6
- showPopup(element: any, event: MouseEvent | TouchEvent): void;
7
- private getScrollingElement;
8
- }
@@ -1,18 +0,0 @@
1
- import Store from "./Store";
2
- import Positions from "./Positions";
3
- export interface LocalAnnotatorConfig {
4
- store: Store;
5
- }
6
- /** Annotator that stores annotations locally, in the browser. */
7
- export default class LocalPositions implements Positions {
8
- private readonly store;
9
- private static readonly POSITIONS;
10
- private static readonly WEIGHT;
11
- constructor(config: LocalAnnotatorConfig);
12
- savePositions(positions: any): Promise<any>;
13
- deletePositions(): Promise<any>;
14
- getPositions(): Promise<any>;
15
- saveWeights(weights: any): Promise<any>;
16
- deleteWeights(): Promise<any>;
17
- getWeights(): Promise<any>;
18
- }
@@ -1,9 +0,0 @@
1
- interface Positions {
2
- savePositions(positions: any): Promise<any>;
3
- deletePositions(): Promise<any>;
4
- getPositions(): Promise<any>;
5
- saveWeights(weights: any): Promise<any>;
6
- deleteWeights(): Promise<any>;
7
- getWeights(): Promise<any>;
8
- }
9
- export default Positions;