@d-i-t-a/reader 2.1.0-alpha.2 → 2.1.0-beta.10
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/README.md +52 -3
- package/dist/esm/index.js +48822 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/injectables/click/click.js +1774 -2
- package/dist/injectables/click/click.js.map +7 -1
- package/dist/injectables/mui/script.js +205 -0
- package/dist/injectables/mui/style.css +271 -0
- package/dist/injectables/style/linefocus.css +55 -0
- package/dist/injectables/style/popover.css +125 -0
- package/dist/injectables/style/popup.css +121 -0
- package/dist/injectables/style/style.css +261 -0
- package/dist/injectables/style/toast.css +76 -0
- package/dist/reader.css +1 -1125
- package/dist/reader.css.map +1 -21
- package/dist/reader.js +126 -3
- package/dist/reader.js.map +7 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/{model → types/model}/Link.d.ts +2 -1
- package/dist/{model → types/model}/Locator.d.ts +4 -22
- package/dist/types/model/Publication.d.ts +51 -0
- package/dist/{model → types/model}/user-settings/ReadiumCSS.d.ts +0 -0
- package/dist/{model → types/model}/user-settings/UserProperties.d.ts +10 -4
- package/dist/{model → types/model}/user-settings/UserSettings.d.ts +23 -24
- package/dist/types/modules/AnnotationModule.d.ts +78 -0
- package/dist/types/modules/BookmarkModule.d.ts +57 -0
- package/dist/types/modules/ReaderModule.d.ts +2 -0
- package/dist/types/modules/TTS/TTSModule2.d.ts +74 -0
- package/dist/{modules → types/modules}/TTS/TTSSettings.d.ts +44 -20
- package/dist/types/modules/citation/CitationModule.d.ts +46 -0
- package/dist/{modules → types/modules}/highlight/HtmlElementSelector.d.ts +0 -0
- package/dist/types/modules/highlight/LayerSettings.d.ts +19 -0
- package/dist/{modules → types/modules}/highlight/TextHighlighter.d.ts +69 -61
- package/dist/{modules → types/modules}/highlight/common/document.d.ts +0 -0
- package/dist/{modules → types/modules}/highlight/common/events.d.ts +0 -0
- package/dist/types/modules/highlight/common/highlight.d.ts +72 -0
- package/dist/{modules → types/modules}/highlight/common/rect-utils.d.ts +2 -2
- package/dist/{modules → types/modules}/highlight/common/selection.d.ts +8 -3
- package/dist/{modules → types/modules}/highlight/renderer/common/cssselector.d.ts +0 -0
- package/dist/{modules → types/modules}/highlight/renderer/common/cssselector2.d.ts +0 -0
- package/dist/{modules → types/modules}/highlight/renderer/iframe/selection.d.ts +2 -2
- package/dist/{modules → types/modules}/highlight/renderer/iframe/state.d.ts +0 -3
- package/dist/types/modules/history/HistoryModule.d.ts +34 -0
- package/dist/types/modules/linefocus/LineFocusModule.d.ts +51 -0
- package/dist/{modules → types/modules}/mediaoverlays/MediaOverlayModule.d.ts +19 -14
- package/dist/{modules → types/modules}/mediaoverlays/MediaOverlaySettings.d.ts +21 -16
- package/dist/types/modules/pagebreak/PageBreakModule.d.ts +30 -0
- package/dist/{modules → types/modules}/positions/TimelineModule.d.ts +3 -3
- package/dist/{modules → types/modules}/protection/ContentProtectionModule.d.ts +15 -11
- package/dist/types/modules/sampleread/SampleReadEventHandler.d.ts +8 -0
- package/dist/types/modules/search/DefinitionsModule.d.ts +52 -0
- package/dist/types/modules/search/Popup.d.ts +10 -0
- package/dist/{modules → types/modules}/search/SearchModule.d.ts +23 -18
- package/dist/{modules → types/modules}/search/searchWithDomSeek.d.ts +1 -1
- package/dist/{navigator → types/navigator}/IFrameNavigator.d.ts +116 -97
- package/dist/{navigator → types/navigator}/Navigator.d.ts +0 -0
- package/dist/types/reader.d.ts +202 -0
- package/dist/types/store/Annotator.d.ts +29 -0
- package/dist/types/store/LocalAnnotator.d.ts +36 -0
- package/dist/{store → types/store}/LocalStorageStore.d.ts +3 -3
- package/dist/{store → types/store}/MemoryStore.d.ts +3 -3
- package/dist/types/store/Store.d.ts +6 -0
- package/dist/{utils → types/utils}/BrowserUtilities.d.ts +0 -0
- package/dist/types/utils/EventHandler.d.ts +23 -0
- package/dist/types/utils/HTMLTemplates.d.ts +2 -0
- package/dist/{utils → types/utils}/HTMLUtilities.d.ts +3 -3
- package/dist/{utils → types/utils}/IconLib.d.ts +1 -0
- package/dist/{utils → types/utils}/JsonUtil.d.ts +0 -0
- package/dist/types/utils/KeyboardEventHandler.d.ts +10 -0
- package/dist/{utils → types/utils}/TouchEventHandler.d.ts +4 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/{views → types/views}/BookView.d.ts +10 -7
- package/dist/{views → types/views}/FixedBookView.d.ts +8 -4
- package/dist/{views → types/views}/ReflowableBookView.d.ts +7 -5
- package/package.json +59 -27
- package/NOTICE +0 -20
- package/dist/index.d.ts +0 -61
- package/dist/injectables/click/click.d.ts +0 -1
- package/dist/injectables/footnotes/footnotes.d.ts +0 -1
- package/dist/injectables/footnotes/footnotes.js +0 -2
- package/dist/injectables/footnotes/footnotes.js.map +0 -1
- package/dist/injectables/glossary/glossary.d.ts +0 -5
- package/dist/injectables/glossary/glossary.js +0 -3
- package/dist/injectables/glossary/glossary.js.LICENSE.txt +0 -6
- package/dist/injectables/glossary/glossary.js.map +0 -1
- package/dist/material.css +0 -4637
- package/dist/material.css.map +0 -30
- package/dist/model/MediaOverlayNode.d.ts +0 -3
- package/dist/model/Publication.d.ts +0 -26
- package/dist/modules/AnnotationModule.d.ts +0 -59
- package/dist/modules/BookmarkModule.d.ts +0 -46
- package/dist/modules/ReaderModule.d.ts +0 -3
- package/dist/modules/TTS/TTSModule.d.ts +0 -58
- package/dist/modules/highlight/common/highlight.d.ts +0 -19
- package/dist/modules/highlight/common/styles.d.ts +0 -35
- package/dist/modules/syncnarration/SyncSettings.d.ts +0 -67
- package/dist/modules/syncnarration/SynchronizedNarrationModule.d.ts +0 -81
- package/dist/modules/syncnarration/renderer/media-overlays.d.ts +0 -0
- package/dist/reader.js.LICENSE.txt +0 -66
- package/dist/store/Annotator.d.ts +0 -25
- package/dist/store/LocalAnnotator.d.ts +0 -31
- package/dist/store/Store.d.ts +0 -6
- package/dist/utils/EventHandler.d.ts +0 -9
- package/dist/utils/HTMLTemplates.d.ts +0 -4
- package/dist/utils/KeyboardEventHandler.d.ts +0 -7
- package/dist/utils/decodeURI.d.ts +0 -1
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Store from "../../store/Store";
|
|
2
|
-
import { UserProperty, UserProperties } from "../../model/user-settings/UserProperties";
|
|
3
|
-
import { SynchronizedNarrationModuleAPI, SynchronizedNarrationModuleProperties } from "./SynchronizedNarrationModule";
|
|
4
|
-
export declare const R2_MO_CLASS_ACTIVE = "r2-mo-active";
|
|
5
|
-
export declare class SYNCREFS {
|
|
6
|
-
static readonly COLOR_REF = "color";
|
|
7
|
-
static readonly AUTO_SCROLL_REF = "autoscroll";
|
|
8
|
-
static readonly AUTO_TURN_REF = "autoturn";
|
|
9
|
-
static readonly VOLUME_REF = "volume";
|
|
10
|
-
static readonly COLOR_KEY: string;
|
|
11
|
-
static readonly AUTO_SCROLL_KEY: string;
|
|
12
|
-
static readonly AUTO_TURN_KEY: string;
|
|
13
|
-
static readonly VOLUME_KEY: string;
|
|
14
|
-
}
|
|
15
|
-
export interface SyncConfig {
|
|
16
|
-
store: Store;
|
|
17
|
-
initialSyncSettings: SynchronizedNarrationModuleProperties;
|
|
18
|
-
headerMenu: HTMLElement;
|
|
19
|
-
api: SynchronizedNarrationModuleAPI;
|
|
20
|
-
}
|
|
21
|
-
export interface ISyncUserSettings {
|
|
22
|
-
color?: string;
|
|
23
|
-
autoScroll?: boolean;
|
|
24
|
-
autoTurn?: boolean;
|
|
25
|
-
volume?: number;
|
|
26
|
-
playing?: boolean;
|
|
27
|
-
wait?: number;
|
|
28
|
-
}
|
|
29
|
-
export declare class SyncSettings implements ISyncUserSettings {
|
|
30
|
-
private readonly store;
|
|
31
|
-
private readonly SYNCSETTINGS;
|
|
32
|
-
color: string;
|
|
33
|
-
autoScroll: boolean;
|
|
34
|
-
autoTurn: boolean;
|
|
35
|
-
volume: number;
|
|
36
|
-
playing: boolean;
|
|
37
|
-
wait: number;
|
|
38
|
-
userProperties: UserProperties;
|
|
39
|
-
private settingsChangeCallback;
|
|
40
|
-
private settingsView;
|
|
41
|
-
private readonly headerMenu;
|
|
42
|
-
private volumeButtons;
|
|
43
|
-
private speechAutoScroll;
|
|
44
|
-
private speechAutoTurn;
|
|
45
|
-
private speechVolume;
|
|
46
|
-
private readonly api;
|
|
47
|
-
static create(config: SyncConfig): Promise<any>;
|
|
48
|
-
protected constructor(store: Store, headerMenu: HTMLElement, api: SynchronizedNarrationModuleAPI);
|
|
49
|
-
stop(): Promise<void>;
|
|
50
|
-
private initialise;
|
|
51
|
-
private reset;
|
|
52
|
-
private initializeSelections;
|
|
53
|
-
setControls(): void;
|
|
54
|
-
private renderControls;
|
|
55
|
-
onSettingsChange(callback: () => void): void;
|
|
56
|
-
private setupEvents;
|
|
57
|
-
private storeProperty;
|
|
58
|
-
private updateUserSettings;
|
|
59
|
-
private getSyncSettings;
|
|
60
|
-
private saveProperty;
|
|
61
|
-
getProperty(name: string): Promise<UserProperty>;
|
|
62
|
-
resetSyncSettings(): Promise<void>;
|
|
63
|
-
applySyncSettings(syncSettings: ISyncUserSettings): Promise<void>;
|
|
64
|
-
applySyncSetting(key: any, value: any): Promise<void>;
|
|
65
|
-
increase(incremental: string): Promise<void>;
|
|
66
|
-
decrease(incremental: string): Promise<void>;
|
|
67
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { Publication } from "../../model/Publication";
|
|
2
|
-
import IFrameNavigator from "../../navigator/IFrameNavigator";
|
|
3
|
-
import ReaderModule from "../ReaderModule";
|
|
4
|
-
import { Link } from "../../model/Link";
|
|
5
|
-
import { MediaOverlayNode } from "../../model/MediaOverlayNode";
|
|
6
|
-
import { SyncSettings } from "./SyncSettings";
|
|
7
|
-
export interface SynchronizedNarrationModuleAPI {
|
|
8
|
-
started: any;
|
|
9
|
-
stopped: any;
|
|
10
|
-
paused: any;
|
|
11
|
-
resumed: any;
|
|
12
|
-
finished: any;
|
|
13
|
-
updateSettings: any;
|
|
14
|
-
}
|
|
15
|
-
export interface SynchronizedNarrationModuleProperties {
|
|
16
|
-
color?: string;
|
|
17
|
-
autoScroll?: boolean;
|
|
18
|
-
autoTurn?: boolean;
|
|
19
|
-
volume?: number;
|
|
20
|
-
wait?: number;
|
|
21
|
-
}
|
|
22
|
-
export interface SynchronizedNarrationModuleConfig extends SynchronizedNarrationModuleProperties {
|
|
23
|
-
publication: Publication;
|
|
24
|
-
delegate: IFrameNavigator;
|
|
25
|
-
api: SynchronizedNarrationModuleAPI;
|
|
26
|
-
settings: SyncSettings;
|
|
27
|
-
}
|
|
28
|
-
export declare enum MediaOverlaysStateEnum {
|
|
29
|
-
PAUSED = "PAUSED",
|
|
30
|
-
PLAYING = "PLAYING",
|
|
31
|
-
STOPPED = "STOPPED"
|
|
32
|
-
}
|
|
33
|
-
export default class SynchronizedNarrationModule implements ReaderModule {
|
|
34
|
-
private publication;
|
|
35
|
-
private delegate;
|
|
36
|
-
private audioElement;
|
|
37
|
-
private settings;
|
|
38
|
-
private play;
|
|
39
|
-
private pause;
|
|
40
|
-
static create(config: SynchronizedNarrationModuleConfig): Promise<SynchronizedNarrationModule>;
|
|
41
|
-
private constructor();
|
|
42
|
-
stop(): Promise<void>;
|
|
43
|
-
protected start(): Promise<void>;
|
|
44
|
-
_currentAudioBegin: number | undefined;
|
|
45
|
-
_currentAudioEnd: number | undefined;
|
|
46
|
-
currentLinks: Array<Link>;
|
|
47
|
-
currentLinkIndex: number;
|
|
48
|
-
initializeResource(links: Array<Link>): Promise<void>;
|
|
49
|
-
private playLink;
|
|
50
|
-
startReadAloud(): Promise<void>;
|
|
51
|
-
stopReadAloud(): void;
|
|
52
|
-
pauseReadAloud(): void;
|
|
53
|
-
resumeReadAloud(): Promise<void>;
|
|
54
|
-
findDepthFirstTextAudioPair(textHref: string, mo: MediaOverlayNode, textFragmentIDChain: Array<string | null> | undefined): MediaOverlayNode | undefined | null;
|
|
55
|
-
ontimeupdate: (ev: Event) => Promise<void>;
|
|
56
|
-
ensureOnTimeUpdate: (remove: boolean) => void;
|
|
57
|
-
_mediaOverlaysPlaybackRate: number;
|
|
58
|
-
_currentAudioUrl: string | undefined;
|
|
59
|
-
_previousAudioUrl: string | undefined;
|
|
60
|
-
_previousAudioEnd: number | undefined;
|
|
61
|
-
_mediaOverlayRoot: MediaOverlayNode | undefined;
|
|
62
|
-
_mediaOverlayTextAudioPair: MediaOverlayNode | undefined;
|
|
63
|
-
_mediaOverlayTextId: string | undefined;
|
|
64
|
-
_mediaOverlayTextHref: string | undefined;
|
|
65
|
-
_mediaOverlayActive: boolean;
|
|
66
|
-
_mediaOverlaysListener: ((mediaOverlaysState: MediaOverlaysStateEnum) => void) | undefined;
|
|
67
|
-
mediaOverlaysListen(mediaOverlaysListener: (mediaOverlaysState: MediaOverlaysStateEnum) => void): void;
|
|
68
|
-
mediaOverlaysNext(escape?: boolean): void;
|
|
69
|
-
mediaOverlaysStop(stayActive?: boolean): void;
|
|
70
|
-
pid: string;
|
|
71
|
-
findNextTextAudioPair(mo: MediaOverlayNode, moToMatch: MediaOverlayNode, previousMo: {
|
|
72
|
-
prev: MediaOverlayNode | undefined;
|
|
73
|
-
}, escape: boolean): MediaOverlayNode | undefined | null;
|
|
74
|
-
playMediaOverlaysAudio(moTextAudioPair: MediaOverlayNode, begin: number | undefined, end: number | undefined): Promise<void>;
|
|
75
|
-
mediaOverlaysPause(): void;
|
|
76
|
-
moHighlight(href: string | undefined, id: string | undefined): void;
|
|
77
|
-
_timeoutAutoNext: number | undefined;
|
|
78
|
-
ensureKillAutoNextTimeout(): void;
|
|
79
|
-
playMediaOverlays(textHref: string, rootMo: MediaOverlayNode, textFragmentIDChain: Array<string | null> | undefined): Promise<void>;
|
|
80
|
-
initialize(): Promise<void>;
|
|
81
|
-
}
|
|
File without changes
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Materialize v1.0.0 (http://materializecss.com)
|
|
3
|
-
* Copyright 2014-2017 Materialize
|
|
4
|
-
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
11
|
-
* Released under the MIT License.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/*! *****************************************************************************
|
|
15
|
-
Copyright (C) Microsoft. All rights reserved.
|
|
16
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
17
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
18
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
-
|
|
20
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
21
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
22
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
23
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
24
|
-
|
|
25
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
26
|
-
and limitations under the License.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
|
|
29
|
-
/*! *****************************************************************************
|
|
30
|
-
Copyright (c) Microsoft Corporation.
|
|
31
|
-
|
|
32
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
33
|
-
purpose with or without fee is hereby granted.
|
|
34
|
-
|
|
35
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
36
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
38
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
39
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
40
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
42
|
-
***************************************************************************** */
|
|
43
|
-
|
|
44
|
-
/*! cash-dom 1.3.5, https://github.com/kenwheeler/cash @license MIT */
|
|
45
|
-
|
|
46
|
-
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Get time in ms
|
|
50
|
-
* @license https://raw.github.com/jashkenas/underscore/master/LICENSE
|
|
51
|
-
* @type {function}
|
|
52
|
-
* @return {number}
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Returns a function, that, when invoked, will only be triggered at most once
|
|
57
|
-
* during a given window of time. Normally, the throttled function will run
|
|
58
|
-
* as much as it can, without ever going more than once per `wait` duration;
|
|
59
|
-
* but if you'd like to disable the execution on the leading edge, pass
|
|
60
|
-
* `{leading: false}`. To disable execution on the trailing edge, ditto.
|
|
61
|
-
* @license https://raw.github.com/jashkenas/underscore/master/LICENSE
|
|
62
|
-
* @param {function} func
|
|
63
|
-
* @param {number} wait
|
|
64
|
-
* @param {Object=} options
|
|
65
|
-
* @returns {Function}
|
|
66
|
-
*/
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ReadingPosition } from "../model/Locator";
|
|
2
|
-
import { IHighlight } from "../modules/highlight/common/highlight";
|
|
3
|
-
import { IReadiumIFrameWindow } from "../modules/highlight/renderer/iframe/state";
|
|
4
|
-
interface Annotator {
|
|
5
|
-
initLastReadingPosition(position: ReadingPosition): Promise<void>;
|
|
6
|
-
getLastReadingPosition(): Promise<any>;
|
|
7
|
-
saveLastReadingPosition(position: any): Promise<void>;
|
|
8
|
-
initBookmarks(list: any): Promise<any>;
|
|
9
|
-
saveBookmark(bookmark: any): Promise<any>;
|
|
10
|
-
deleteBookmark(bookmark: any): Promise<any>;
|
|
11
|
-
getBookmarks(href?: string): Promise<any>;
|
|
12
|
-
locatorExists(locator: any, type: AnnotationType): Promise<any>;
|
|
13
|
-
initAnnotations(list: any): Promise<any>;
|
|
14
|
-
saveAnnotation(annotation: any): Promise<any>;
|
|
15
|
-
deleteAnnotation(id: any): Promise<any>;
|
|
16
|
-
deleteSelectedAnnotation(annotation: any): Promise<any>;
|
|
17
|
-
getAnnotations(): Promise<any>;
|
|
18
|
-
getAnnotation(annotation: IHighlight): Promise<any>;
|
|
19
|
-
getAnnotationPosition(id: any, iframeWin: IReadiumIFrameWindow): Promise<any>;
|
|
20
|
-
}
|
|
21
|
-
export declare enum AnnotationType {
|
|
22
|
-
Bookmark = 0,
|
|
23
|
-
Annotation = 1
|
|
24
|
-
}
|
|
25
|
-
export default Annotator;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import Annotator, { AnnotationType } from "./Annotator";
|
|
2
|
-
import Store from "./Store";
|
|
3
|
-
import { ReadingPosition } from "../model/Locator";
|
|
4
|
-
import { IReadiumIFrameWindow } from "../modules/highlight/renderer/iframe/state";
|
|
5
|
-
import { IHighlight } from "../modules/highlight/common/highlight";
|
|
6
|
-
export interface LocalAnnotatorConfig {
|
|
7
|
-
store: Store;
|
|
8
|
-
}
|
|
9
|
-
/** Annotator that stores annotations locally, in the browser. */
|
|
10
|
-
export default class LocalAnnotator implements Annotator {
|
|
11
|
-
private readonly store;
|
|
12
|
-
private static readonly LAST_READING_POSITION;
|
|
13
|
-
private static readonly BOOKMARKS;
|
|
14
|
-
private static readonly ANNOTATIONS;
|
|
15
|
-
constructor(config: LocalAnnotatorConfig);
|
|
16
|
-
getLastReadingPosition(): Promise<any>;
|
|
17
|
-
initLastReadingPosition(position: ReadingPosition): Promise<void>;
|
|
18
|
-
saveLastReadingPosition(position: any): Promise<void>;
|
|
19
|
-
initBookmarks(list: any): Promise<any>;
|
|
20
|
-
saveBookmark(bookmark: any): Promise<any>;
|
|
21
|
-
locatorExists(locator: any, type: AnnotationType): Promise<any>;
|
|
22
|
-
deleteBookmark(bookmark: any): Promise<any>;
|
|
23
|
-
getBookmarks(href?: string): Promise<any>;
|
|
24
|
-
initAnnotations(list: any): Promise<any>;
|
|
25
|
-
saveAnnotation(annotation: any): Promise<any>;
|
|
26
|
-
deleteAnnotation(id: any): Promise<any>;
|
|
27
|
-
deleteSelectedAnnotation(annotation: any): Promise<any>;
|
|
28
|
-
getAnnotations(): Promise<any>;
|
|
29
|
-
getAnnotationPosition(id: any, iframeWin: IReadiumIFrameWindow): Promise<any>;
|
|
30
|
-
getAnnotation(highlight: IHighlight): Promise<any>;
|
|
31
|
-
}
|
package/dist/store/Store.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function addEventListenerOptional(element: any, eventType: string, eventListener: any): void;
|
|
2
|
-
export declare function removeEventListenerOptional(element: any, eventType: string, eventListener: any): void;
|
|
3
|
-
export default class EventHandler {
|
|
4
|
-
onInternalLink: (event: UIEvent) => void;
|
|
5
|
-
onClickThrough: (event: UIEvent) => void;
|
|
6
|
-
setupEvents(element: HTMLElement | Document | null): void;
|
|
7
|
-
private checkForLink;
|
|
8
|
-
private handleLinks;
|
|
9
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const simpleUpLinkTemplate: (href: string, _label: string, ariaLabel: string) => string;
|
|
2
|
-
export declare const defaultUpLinkTemplate: (href: string, label: string, ariaLabel: string) => string;
|
|
3
|
-
export declare const readerLoading: string;
|
|
4
|
-
export declare const readerError: string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import IFrameNavigator from "../navigator/IFrameNavigator";
|
|
2
|
-
export default class KeyboardEventHandler {
|
|
3
|
-
delegate: IFrameNavigator;
|
|
4
|
-
onBackwardSwipe: (event: UIEvent) => void;
|
|
5
|
-
onForwardSwipe: (event: UIEvent) => void;
|
|
6
|
-
setupEvents: (element: HTMLElement | Document) => void;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function tryDecodeURI(url: string | undefined): string | null;
|