@d-i-t-a/reader 2.1.2 → 2.1.4

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.
@@ -43,6 +43,7 @@ export interface HTMLElementRect {
43
43
  left: number;
44
44
  textContent: string;
45
45
  }
46
+ export declare const _blacklistIdClassForCssSelectors: string[];
46
47
  export interface TextHighlighterProperties {
47
48
  selectionMenuItems?: Array<SelectionMenuItem>;
48
49
  }
@@ -23,7 +23,7 @@ export declare class PageBreakModule implements ReaderModule {
23
23
  private constructor();
24
24
  stop(): Promise<void>;
25
25
  protected start(): Promise<void>;
26
- private goToPageNumber;
26
+ goToPageNumber(event: any): Promise<any>;
27
27
  handleResize(): Promise<void>;
28
28
  drawPageBreaks(): Promise<void>;
29
29
  createPageBreakHighlight(selectionInfo: ISelectionInfo, title: string): IHighlight;
@@ -6,6 +6,8 @@ export interface ContentProtectionModuleProperties {
6
6
  enableObfuscation: boolean;
7
7
  disablePrint: boolean;
8
8
  disableCopy: boolean;
9
+ canCopy: boolean;
10
+ charactersToCopy: number;
9
11
  detectInspect: boolean;
10
12
  clearOnInspect: boolean;
11
13
  detectInspectInitDelay: number;
@@ -75,6 +77,26 @@ export declare class ContentProtectionModule implements ReaderModule {
75
77
  preventDefault: () => void;
76
78
  stopPropagation: () => void;
77
79
  }): boolean;
80
+ preventCopyKey(event: {
81
+ keyCode: any;
82
+ metaKey: any;
83
+ ctrlKey: any;
84
+ key: string;
85
+ preventDefault: () => void;
86
+ stopPropagation: () => void;
87
+ }): boolean;
88
+ restrictCopy(event: {
89
+ clipboardData: {
90
+ getData: (arg0: string) => any;
91
+ setData: (arg0: string, arg1: any) => void;
92
+ };
93
+ preventDefault: () => void;
94
+ stopPropagation: () => void;
95
+ }): boolean;
96
+ restrictCopyKey(event: any): boolean;
97
+ copyToClipboard(textToClipboard: any): void;
98
+ createElementForExecCommand(textToClipboard: any): HTMLDivElement;
99
+ selectContent(element: any): void;
78
100
  beforePrint(event: {
79
101
  preventDefault: () => void;
80
102
  stopPropagation: () => void;
@@ -250,6 +250,7 @@ export declare class IFrameNavigator extends EventEmitter implements Navigator {
250
250
  currentLocator(): Locator;
251
251
  positions(): any;
252
252
  goToPosition(position: number): void;
253
+ goToPage(page: number): Promise<void>;
253
254
  snapToSelector(selector: any): void;
254
255
  applyAttributes(attributes: IFrameAttributes): void;
255
256
  private handlePreviousPageClick;
@@ -175,6 +175,8 @@ export default class D2Reader {
175
175
  get positions(): any;
176
176
  goTo: (locator: Locator) => Promise<void>;
177
177
  goToPosition: (value: number) => Promise<void>;
178
+ goToPage: (page: number) => Promise<void>;
179
+ copyToClipboard: (text: any) => void;
178
180
  nextResource: () => void;
179
181
  previousResource: () => void;
180
182
  nextPage: () => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-i-t-a/reader",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
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",