@d-i-t-a/reader 2.3.18 → 2.4.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.
@@ -131,6 +131,7 @@ export declare class UserSettings implements IUserSettings {
131
131
  * Parses a scroll setting from a variety of inputs to a simple boolean
132
132
  */
133
133
  private static parseScrollSetting;
134
+ private static parseAppearanceSetting;
134
135
  scroll(scroll: boolean): Promise<void>;
135
136
  increase(incremental: UserSettingsIncrementable): Promise<void>;
136
137
  decrease(incremental: any): Promise<void>;
@@ -52,6 +52,7 @@ export declare const _blacklistIdClassForCssSelectors: string[];
52
52
  export interface TextHighlighterProperties {
53
53
  selectionMenuItems?: Array<SelectionMenuItem>;
54
54
  menuPosition?: MenuPosition;
55
+ preventScrollOnSelection?: boolean;
55
56
  }
56
57
  export interface TextHighlighterConfig extends TextHighlighterProperties {
57
58
  api?: TextSelectorAPI;
@@ -58,7 +58,7 @@ export declare class ContentProtectionModule implements ReaderModule {
58
58
  initializeResource(): void;
59
59
  initialize(): Promise<void>;
60
60
  handleScroll(): void;
61
- handleResize(): void;
61
+ handleResize(): Promise<void>;
62
62
  disableContext(e: {
63
63
  preventDefault: () => void;
64
64
  stopPropagation: () => void;
@@ -95,7 +95,7 @@ export declare class ContentProtectionModule implements ReaderModule {
95
95
  stopPropagation: () => void;
96
96
  }): false | undefined;
97
97
  restrictCopyKey(event: any): boolean;
98
- copyToClipboard(textToClipboard: any): void;
98
+ copyToClipboard(textToClipboard: string | undefined): void;
99
99
  createElementForExecCommand(textToClipboard: any): HTMLDivElement;
100
100
  selectContent(element: any): void;
101
101
  beforePrint(event: {
@@ -245,6 +245,8 @@ export declare class IFrameNavigator extends EventEmitter implements Navigator {
245
245
  currentResource(): number | undefined;
246
246
  currentLink(): Array<Link | undefined>;
247
247
  tableOfContents(): any;
248
+ landmarks(): any;
249
+ pageList(): any;
248
250
  readingOrder(): any;
249
251
  atStart(): boolean;
250
252
  atEnd(): boolean;
@@ -18,6 +18,8 @@ interface Navigator {
18
18
  activateMarker?(id: string, position: string): any;
19
19
  deactivateMarker?(): any;
20
20
  tableOfContents(): any;
21
+ landmarks(): any;
22
+ pageList(): any;
21
23
  readingOrder(): any;
22
24
  currentResource(): any;
23
25
  mostRecentNavigatedTocItem?(): any;
@@ -45,6 +45,8 @@ export declare class PDFNavigator extends EventEmitter implements Navigator {
45
45
  queueRenderPage(num: any): void;
46
46
  readingOrder(): any;
47
47
  tableOfContents(): any;
48
+ landmarks(): any;
49
+ pageList(): any;
48
50
  currentResource(): any;
49
51
  totalResources(): any;
50
52
  currentLocator(): any;
@@ -97,12 +97,17 @@ export default class D2Reader {
97
97
  addDefinition: (definition: any) => Promise<void>;
98
98
  /** Table of Contents */
99
99
  get tableOfContents(): any;
100
+ /** Landmarks */
101
+ get landmarks(): any;
102
+ /** Page List */
103
+ get pageList(): any;
100
104
  /** Reading Order or Spine */
101
105
  get readingOrder(): any;
102
106
  /** Current Bookmarks */
103
107
  get bookmarks(): any;
104
108
  /** Current Annotations */
105
109
  get annotations(): any;
110
+ get publicationLayout(): any;
106
111
  /** History */
107
112
  get history(): Locator[] | undefined;
108
113
  /** Current index of history */
@@ -5,6 +5,10 @@ export default class KeyboardEventHandler {
5
5
  onBackwardSwipe: (event: UIEvent) => void;
6
6
  onForwardSwipe: (event: UIEvent) => void;
7
7
  setupEvents: (element: HTMLElement | Document | null) => void;
8
+ removeEvents: (element: HTMLElement | Document | null) => void;
8
9
  focusin: (element: HTMLElement | Document) => void;
9
10
  keydown: (element: HTMLElement | Document) => void;
11
+ private handlers;
12
+ private onFocusIn;
13
+ private onKeyDown;
10
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-i-t-a/reader",
3
- "version": "2.3.18",
3
+ "version": "2.4.1",
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",
@@ -36,7 +36,7 @@
36
36
  "lodash.clonedeep": "^4.5.0",
37
37
  "loglevel": "^1.8.0",
38
38
  "mark.js": "^8.11.1",
39
- "pdfjs-dist": "3.11.174",
39
+ "pdfjs-dist": "2.14.305",
40
40
  "promise-polyfill": "^8.2.0",
41
41
  "r2-shared-js": "^1.0.51",
42
42
  "recursive-readdir": "^2.2.2",