@d-i-t-a/reader 2.1.7 → 2.1.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.
|
@@ -19,6 +19,10 @@ export interface CitationModuleProperties {
|
|
|
19
19
|
appLink?: string;
|
|
20
20
|
library?: string;
|
|
21
21
|
styles?: string[];
|
|
22
|
+
title?: string;
|
|
23
|
+
author?: string;
|
|
24
|
+
publisher?: string;
|
|
25
|
+
published?: string;
|
|
22
26
|
}
|
|
23
27
|
export interface CitationModuleAPI {
|
|
24
28
|
citationCreated: any;
|
|
@@ -37,12 +37,13 @@ interface ContentProtectionRect {
|
|
|
37
37
|
export declare class ContentProtectionModule implements ReaderModule {
|
|
38
38
|
private rects;
|
|
39
39
|
private delegate;
|
|
40
|
-
|
|
40
|
+
properties?: ContentProtectionModuleProperties;
|
|
41
41
|
private hasEventListener;
|
|
42
42
|
private isHacked;
|
|
43
43
|
private securityContainer;
|
|
44
44
|
private mutationObserver;
|
|
45
45
|
private wrapper;
|
|
46
|
+
citation: boolean;
|
|
46
47
|
static setupPreloadProtection(config: Partial<ContentProtectionModuleConfig>): Promise<void>;
|
|
47
48
|
static create(config: ContentProtectionModuleConfig): Promise<ContentProtectionModule>;
|
|
48
49
|
constructor(delegate: IFrameNavigator, properties?: ContentProtectionModuleProperties);
|
|
@@ -92,7 +93,7 @@ export declare class ContentProtectionModule implements ReaderModule {
|
|
|
92
93
|
};
|
|
93
94
|
preventDefault: () => void;
|
|
94
95
|
stopPropagation: () => void;
|
|
95
|
-
}):
|
|
96
|
+
}): false | undefined;
|
|
96
97
|
restrictCopyKey(event: any): boolean;
|
|
97
98
|
copyToClipboard(textToClipboard: any): void;
|
|
98
99
|
createElementForExecCommand(textToClipboard: any): HTMLDivElement;
|