@d-i-t-a/reader 2.1.0-beta.6 → 2.1.0-beta.9
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.
- package/dist/esm/index.js +126 -47
- package/dist/esm/index.js.map +2 -2
- package/dist/injectables/style/popup.css +2 -2
- package/dist/reader.js +28 -28
- package/dist/reader.js.map +2 -2
- package/dist/types/model/Locator.d.ts +0 -4
- package/dist/types/modules/TTS/TTSModule2.d.ts +1 -1
- package/dist/types/modules/search/SearchModule.d.ts +1 -3
- package/dist/types/store/Annotator.d.ts +3 -0
- package/dist/types/store/LocalAnnotator.d.ts +4 -0
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ export declare class TTSModule2 implements ReaderModule {
|
|
|
48
48
|
ttsPlayQueueIndexDebounced: ((ttsQueueIndex: number, ttsQueue: any) => void) & {
|
|
49
49
|
clear(): void;
|
|
50
50
|
};
|
|
51
|
-
updateTTSInfo(ttsQueueItem: any, charIndex: number, charLength: number, utteranceText: string | undefined): string | undefined;
|
|
51
|
+
updateTTSInfo(ttsQueueItem: any, charIndex: number, charLength: number, startIndex: number, utteranceText: string | undefined): string | undefined;
|
|
52
52
|
_ttsQueueItemHighlightsWord: IHighlight | undefined;
|
|
53
53
|
wrapHighlightWord(ttsQueueItemRef: ITtsQueueItemReference, utteranceText: string, charIndex: number, charLength: number, word: string, start: number, end: number): void;
|
|
54
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Publication } from "../../model/Publication";
|
|
2
|
-
import { IFrameNavigator
|
|
2
|
+
import { IFrameNavigator } from "../../navigator/IFrameNavigator";
|
|
3
3
|
import { ReaderModule } from "../ReaderModule";
|
|
4
4
|
import { IHighlight } from "../highlight/common/highlight";
|
|
5
5
|
import { ISelectionInfo } from "../highlight/common/selection";
|
|
@@ -16,7 +16,6 @@ export interface SearchModuleConfig extends SearchModuleProperties {
|
|
|
16
16
|
publication: Publication;
|
|
17
17
|
headerMenu?: HTMLElement | null;
|
|
18
18
|
delegate: IFrameNavigator;
|
|
19
|
-
requestConfig?: RequestConfig;
|
|
20
19
|
highlighter: TextHighlighter;
|
|
21
20
|
}
|
|
22
21
|
export declare class SearchModule implements ReaderModule {
|
|
@@ -31,7 +30,6 @@ export declare class SearchModule implements ReaderModule {
|
|
|
31
30
|
private bookSearchResult;
|
|
32
31
|
private currentSearchHighlights;
|
|
33
32
|
private highlighter?;
|
|
34
|
-
private requestConfig?;
|
|
35
33
|
static create(config: SearchModuleConfig): Promise<SearchModule>;
|
|
36
34
|
private constructor();
|
|
37
35
|
stop(): Promise<void>;
|
|
@@ -17,6 +17,9 @@ interface Annotator {
|
|
|
17
17
|
getAnnotation(annotation: IHighlight): any;
|
|
18
18
|
getAnnotationByID(id: string): any;
|
|
19
19
|
getAnnotationPosition(id: any, iframeWin: any): any;
|
|
20
|
+
saveTemporarySelectionInfo(selectionInfo: any): any;
|
|
21
|
+
getTemporarySelectionInfo(doc: any): any;
|
|
22
|
+
deleteTemporarySelectionInfo(): any;
|
|
20
23
|
}
|
|
21
24
|
export declare enum AnnotationType {
|
|
22
25
|
Bookmark = 0,
|
|
@@ -11,6 +11,7 @@ export default class LocalAnnotator implements Annotator {
|
|
|
11
11
|
private static readonly LAST_READING_POSITION;
|
|
12
12
|
private static readonly BOOKMARKS;
|
|
13
13
|
private static readonly ANNOTATIONS;
|
|
14
|
+
private static readonly SELECTIONINFO;
|
|
14
15
|
constructor(config: LocalAnnotatorConfig);
|
|
15
16
|
getLastReadingPosition(): any;
|
|
16
17
|
initLastReadingPosition(position: ReadingPosition): void;
|
|
@@ -21,6 +22,9 @@ export default class LocalAnnotator implements Annotator {
|
|
|
21
22
|
deleteBookmark(bookmark: any): any;
|
|
22
23
|
getBookmarks(href?: string): any;
|
|
23
24
|
initAnnotations(list: any): any;
|
|
25
|
+
saveTemporarySelectionInfo(selectionInfo: any): void;
|
|
26
|
+
getTemporarySelectionInfo(doc: any): any;
|
|
27
|
+
deleteTemporarySelectionInfo(): void;
|
|
24
28
|
saveAnnotation(annotation: any): any;
|
|
25
29
|
deleteAnnotation(id: any): any;
|
|
26
30
|
deleteSelectedAnnotation(annotation: any): any;
|