aksos-react-native-epub-reader 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +351 -2
- package/lib/EpubReader.d.ts +76 -0
- package/lib/EpubReader.js +284 -0
- package/lib/EpubReaderView.d.ts +31 -0
- package/lib/EpubReaderView.js +599 -0
- package/lib/assets/page-turn-1.wav +0 -0
- package/lib/assets/page-turn-2.wav +0 -0
- package/lib/assets/page-turn-3.wav +0 -0
- package/lib/assets/page-turn-4.wav +0 -0
- package/lib/engine/html.d.ts +1 -0
- package/lib/engine/html.js +5 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +34 -0
- package/lib/sound.d.ts +1 -0
- package/lib/sound.js +71 -0
- package/lib/strings.d.ts +94 -0
- package/lib/strings.js +96 -0
- package/lib/themes.d.ts +60 -0
- package/lib/themes.js +166 -0
- package/lib/types.d.ts +149 -0
- package/lib/types.js +2 -0
- package/lib/ui/AppearanceSheet.d.ts +15 -0
- package/lib/ui/AppearanceSheet.js +134 -0
- package/lib/ui/ContentsSheet.d.ts +27 -0
- package/lib/ui/ContentsSheet.js +89 -0
- package/lib/ui/CustomizeSheet.d.ts +16 -0
- package/lib/ui/CustomizeSheet.js +141 -0
- package/lib/ui/Glass.d.ts +15 -0
- package/lib/ui/Glass.js +27 -0
- package/lib/ui/HighlightMenu.d.ts +25 -0
- package/lib/ui/HighlightMenu.js +45 -0
- package/lib/ui/Icons.d.ts +17 -0
- package/lib/ui/Icons.js +193 -0
- package/lib/ui/LineGuide.d.ts +21 -0
- package/lib/ui/LineGuide.js +92 -0
- package/lib/ui/NoteEditor.d.ts +12 -0
- package/lib/ui/NoteEditor.js +63 -0
- package/lib/ui/Scrubber.d.ts +15 -0
- package/lib/ui/Scrubber.js +86 -0
- package/lib/ui/SearchSheet.d.ts +14 -0
- package/lib/ui/SearchSheet.js +79 -0
- package/lib/ui/Sheet.d.ts +19 -0
- package/lib/ui/Sheet.js +40 -0
- package/lib/ui/Slider.d.ts +14 -0
- package/lib/ui/Slider.js +53 -0
- package/package.json +76 -6
- package/src/EpubReader.tsx +356 -0
- package/src/EpubReaderView.tsx +865 -0
- package/src/assets/page-turn-1.wav +0 -0
- package/src/assets/page-turn-2.wav +0 -0
- package/src/assets/page-turn-3.wav +0 -0
- package/src/assets/page-turn-4.wav +0 -0
- package/src/engine/html.ts +2 -0
- package/src/engine/reader.js +2047 -0
- package/src/index.ts +9 -0
- package/src/sound.ts +66 -0
- package/src/strings.ts +187 -0
- package/src/themes.ts +188 -0
- package/src/types.ts +154 -0
- package/src/ui/AppearanceSheet.tsx +176 -0
- package/src/ui/ContentsSheet.tsx +146 -0
- package/src/ui/CustomizeSheet.tsx +191 -0
- package/src/ui/Glass.tsx +37 -0
- package/src/ui/HighlightMenu.tsx +66 -0
- package/src/ui/Icons.tsx +246 -0
- package/src/ui/LineGuide.tsx +87 -0
- package/src/ui/NoteEditor.tsx +57 -0
- package/src/ui/Scrubber.tsx +78 -0
- package/src/ui/SearchSheet.tsx +95 -0
- package/src/ui/Sheet.tsx +71 -0
- package/src/ui/Slider.tsx +30 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.EpubReader = void 0;
|
|
37
|
+
exports.sourceKeyOf = sourceKeyOf;
|
|
38
|
+
const react_1 = __importStar(require("react"));
|
|
39
|
+
const react_native_1 = require("react-native");
|
|
40
|
+
const react_native_webview_1 = require("react-native-webview");
|
|
41
|
+
const html_1 = require("./engine/html");
|
|
42
|
+
const themes_1 = require("./themes");
|
|
43
|
+
const DEFAULT_MAX_FILE = 150 * 1024 * 1024;
|
|
44
|
+
const ENGINE_START_TIMEOUT = 20000;
|
|
45
|
+
const CHUNK = 256 * 1024;
|
|
46
|
+
/** Identity of a source: the explicit `key`, the uri, or a fingerprint sampled across the base64 data. */
|
|
47
|
+
function sourceKeyOf(source) {
|
|
48
|
+
if (source.key)
|
|
49
|
+
return source.key;
|
|
50
|
+
if ('uri' in source)
|
|
51
|
+
return source.uri;
|
|
52
|
+
const b = source.base64;
|
|
53
|
+
let h = 5381;
|
|
54
|
+
const step = Math.max(1, Math.floor(b.length / 512));
|
|
55
|
+
for (let i = 0; i < b.length; i += step)
|
|
56
|
+
h = ((h << 5) + h + b.charCodeAt(i)) | 0;
|
|
57
|
+
return `b64:${b.length}:${h >>> 0}`;
|
|
58
|
+
}
|
|
59
|
+
async function uriToBase64(source, maxBytes) {
|
|
60
|
+
let res;
|
|
61
|
+
try {
|
|
62
|
+
res = await fetch(source.uri, source.headers ? { headers: source.headers } : undefined);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
throw new Error('The book file could not be opened (it may have been moved or deleted, or there is no connection).');
|
|
66
|
+
}
|
|
67
|
+
// file:// responses report status 0 on some platforms, so only real HTTP errors count
|
|
68
|
+
if (res.status >= 400)
|
|
69
|
+
throw new Error(`The book could not be downloaded (error ${res.status}).`);
|
|
70
|
+
const blob = await res.blob();
|
|
71
|
+
if (maxBytes > 0 && blob.size > maxBytes) {
|
|
72
|
+
throw new Error(`This book is too large to open (${Math.round(blob.size / 1048576)} MB).`);
|
|
73
|
+
}
|
|
74
|
+
if (blob.size === 0)
|
|
75
|
+
throw new Error('The book file is empty.');
|
|
76
|
+
return new Promise((resolve, reject) => {
|
|
77
|
+
const fr = new FileReader();
|
|
78
|
+
fr.onerror = () => reject(new Error('The book file could not be read.'));
|
|
79
|
+
fr.onloadend = () => {
|
|
80
|
+
const s = String(fr.result);
|
|
81
|
+
resolve(s.slice(s.indexOf(',') + 1));
|
|
82
|
+
};
|
|
83
|
+
fr.readAsDataURL(blob);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function cleanBase64(data) {
|
|
87
|
+
let s = data;
|
|
88
|
+
if (s.startsWith('data:'))
|
|
89
|
+
s = s.slice(s.indexOf(',') + 1);
|
|
90
|
+
if (/\s/.test(s.slice(0, 4096)) || s.indexOf('\n') >= 0)
|
|
91
|
+
s = s.replace(/\s+/g, '');
|
|
92
|
+
return s;
|
|
93
|
+
}
|
|
94
|
+
const LS = String.fromCharCode(0x2028);
|
|
95
|
+
const PS = String.fromCharCode(0x2029);
|
|
96
|
+
// U+2028/2029 are legal in JSON but terminate a JS string literal, so escape them.
|
|
97
|
+
function toScript(cmd) {
|
|
98
|
+
const json = JSON.stringify(JSON.stringify(cmd)).split(LS).join('\\u2028').split(PS).join('\\u2029');
|
|
99
|
+
return `window.__cmd(${json});true;`;
|
|
100
|
+
}
|
|
101
|
+
exports.EpubReader = (0, react_1.forwardRef)(function EpubReader(props, ref) {
|
|
102
|
+
const { source, settings, systemDark = false, safeInsets = { top: 0, bottom: 0 }, highlights, menuItems } = props;
|
|
103
|
+
const web = (0, react_1.useRef)(null);
|
|
104
|
+
const cb = (0, react_1.useRef)(props);
|
|
105
|
+
cb.current = props;
|
|
106
|
+
const [engineReady, setEngineReady] = (0, react_1.useState)(false);
|
|
107
|
+
// bumping this remounts the WebView (after the system killed its process)
|
|
108
|
+
const [webKey, setWebKey] = (0, react_1.useState)(0);
|
|
109
|
+
const opened = (0, react_1.useRef)(false);
|
|
110
|
+
const selection = (0, react_1.useRef)(null);
|
|
111
|
+
const metaRef = (0, react_1.useRef)({ title: '', author: '', language: '', publisher: '' });
|
|
112
|
+
const lastLoc = (0, react_1.useRef)(null);
|
|
113
|
+
const lastKey = (0, react_1.useRef)('');
|
|
114
|
+
const engineSettings = (0, react_1.useMemo)(() => (0, themes_1.toEngineSettings)(settings, systemDark, safeInsets),
|
|
115
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
116
|
+
[settings, systemDark, safeInsets.top, safeInsets.bottom, safeInsets.left, safeInsets.right]);
|
|
117
|
+
// only what the engine actually uses decides about re-layout (the brightness slider, the page sound ... must not)
|
|
118
|
+
const engineJson = JSON.stringify(engineSettings);
|
|
119
|
+
const latest = (0, react_1.useRef)({ engineSettings, highlights });
|
|
120
|
+
latest.current = { engineSettings, highlights };
|
|
121
|
+
const send = (0, react_1.useCallback)((cmd) => {
|
|
122
|
+
web.current?.injectJavaScript(toScript(cmd));
|
|
123
|
+
}, []);
|
|
124
|
+
// the engine never started (blocked WebView, out of memory ...)
|
|
125
|
+
(0, react_1.useEffect)(() => {
|
|
126
|
+
if (engineReady)
|
|
127
|
+
return;
|
|
128
|
+
const t = setTimeout(() => cb.current.onError?.('The reader could not be started.', { fatal: true }), ENGINE_START_TIMEOUT);
|
|
129
|
+
return () => clearTimeout(t);
|
|
130
|
+
}, [engineReady, webKey]);
|
|
131
|
+
// open (or re-open) the book once the engine is up
|
|
132
|
+
const sourceKey = sourceKeyOf(source);
|
|
133
|
+
(0, react_1.useEffect)(() => {
|
|
134
|
+
if (!engineReady)
|
|
135
|
+
return;
|
|
136
|
+
let cancelled = false;
|
|
137
|
+
opened.current = false;
|
|
138
|
+
if (lastKey.current !== sourceKey) {
|
|
139
|
+
lastKey.current = sourceKey;
|
|
140
|
+
lastLoc.current = null;
|
|
141
|
+
}
|
|
142
|
+
(async () => {
|
|
143
|
+
try {
|
|
144
|
+
const limit = cb.current.maxFileSize ?? DEFAULT_MAX_FILE;
|
|
145
|
+
let data = 'uri' in source ? await uriToBase64(source, limit) : cleanBase64(source.base64);
|
|
146
|
+
if (cancelled)
|
|
147
|
+
return;
|
|
148
|
+
if (!data)
|
|
149
|
+
throw new Error('The book file is empty.');
|
|
150
|
+
// the book travels in pieces: one huge string would exist several times over (JSON, bridge, page)
|
|
151
|
+
for (let i = 0; i < data.length; i += CHUNK) {
|
|
152
|
+
web.current?.injectJavaScript(`window.__chunk(${i === 0 ? 1 : 0},"${data.slice(i, i + CHUNK)}");true;`);
|
|
153
|
+
}
|
|
154
|
+
data = '';
|
|
155
|
+
// settings, highlights and position are read now, not when loading started
|
|
156
|
+
send({
|
|
157
|
+
cmd: 'open',
|
|
158
|
+
settings: latest.current.engineSettings,
|
|
159
|
+
highlights: latest.current.highlights || [],
|
|
160
|
+
location: lastLoc.current || cb.current.initialLocation
|
|
161
|
+
});
|
|
162
|
+
opened.current = true;
|
|
163
|
+
}
|
|
164
|
+
catch (e) {
|
|
165
|
+
cb.current.onError?.(String(e?.message || e), { fatal: true });
|
|
166
|
+
}
|
|
167
|
+
})();
|
|
168
|
+
return () => {
|
|
169
|
+
cancelled = true;
|
|
170
|
+
};
|
|
171
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
172
|
+
}, [engineReady, sourceKey]);
|
|
173
|
+
(0, react_1.useEffect)(() => {
|
|
174
|
+
if (opened.current)
|
|
175
|
+
send({ cmd: 'settings', settings: latest.current.engineSettings });
|
|
176
|
+
}, [engineJson, send]);
|
|
177
|
+
(0, react_1.useEffect)(() => {
|
|
178
|
+
if (opened.current)
|
|
179
|
+
send({ cmd: 'highlights', list: highlights || [] });
|
|
180
|
+
}, [highlights, send]);
|
|
181
|
+
// Android killed the renderer / iOS terminated the web content process: start over at the last position
|
|
182
|
+
const recover = (0, react_1.useCallback)(() => {
|
|
183
|
+
opened.current = false;
|
|
184
|
+
setEngineReady(false);
|
|
185
|
+
setWebKey((k) => k + 1);
|
|
186
|
+
}, []);
|
|
187
|
+
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
188
|
+
next: () => send({ cmd: 'next' }),
|
|
189
|
+
prev: () => send({ cmd: 'prev' }),
|
|
190
|
+
goTo: (location) => send({ cmd: 'goto', location }),
|
|
191
|
+
search: (query, searchId) => send({ cmd: 'search', query, id: searchId }),
|
|
192
|
+
cancelSearch: (searchId) => send({ cmd: 'cancelSearch', id: searchId }),
|
|
193
|
+
showSearchResult: (r) => {
|
|
194
|
+
send({ cmd: 'goto', location: { spine: r.spine, offset: r.offset } });
|
|
195
|
+
send({ cmd: 'showHit', offset: r.offset, length: r.length });
|
|
196
|
+
},
|
|
197
|
+
clearSelection: () => {
|
|
198
|
+
selection.current = null;
|
|
199
|
+
send({ cmd: 'clearSelection' });
|
|
200
|
+
},
|
|
201
|
+
setLabels: (header, footer) => send({ cmd: 'labels', header, footer })
|
|
202
|
+
}), [send]);
|
|
203
|
+
const onMessage = (0, react_1.useCallback)((e) => {
|
|
204
|
+
let msg;
|
|
205
|
+
try {
|
|
206
|
+
msg = JSON.parse(e.nativeEvent.data);
|
|
207
|
+
}
|
|
208
|
+
catch {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
if (!msg || typeof msg !== 'object' || typeof msg.type !== 'string')
|
|
212
|
+
return;
|
|
213
|
+
const p = cb.current;
|
|
214
|
+
const d = msg.data && typeof msg.data === 'object' ? msg.data : {};
|
|
215
|
+
switch (msg.type) {
|
|
216
|
+
case 'ready':
|
|
217
|
+
setEngineReady(true);
|
|
218
|
+
break;
|
|
219
|
+
case 'metadata':
|
|
220
|
+
metaRef.current = d;
|
|
221
|
+
break;
|
|
222
|
+
case 'toc':
|
|
223
|
+
p.onReady?.({ metadata: metaRef.current, rtl: !!d.rtl });
|
|
224
|
+
p.onToc?.(Array.isArray(d.items) ? d.items : []);
|
|
225
|
+
break;
|
|
226
|
+
case 'cover':
|
|
227
|
+
if (typeof d.uri === 'string')
|
|
228
|
+
p.onCover?.(d.uri);
|
|
229
|
+
break;
|
|
230
|
+
case 'relocate':
|
|
231
|
+
lastLoc.current = { spine: d.spine, offset: d.offset };
|
|
232
|
+
p.onRelocate?.(d);
|
|
233
|
+
break;
|
|
234
|
+
case 'indexed':
|
|
235
|
+
p.onIndexed?.(d);
|
|
236
|
+
break;
|
|
237
|
+
case 'selection':
|
|
238
|
+
selection.current = d;
|
|
239
|
+
p.onSelection?.(d);
|
|
240
|
+
break;
|
|
241
|
+
case 'selectionClear':
|
|
242
|
+
selection.current = null;
|
|
243
|
+
p.onSelection?.(null);
|
|
244
|
+
break;
|
|
245
|
+
case 'highlightTap':
|
|
246
|
+
p.onHighlightTap?.(d.id, d.rect);
|
|
247
|
+
break;
|
|
248
|
+
case 'tap':
|
|
249
|
+
p.onTap?.();
|
|
250
|
+
break;
|
|
251
|
+
case 'pageTurn':
|
|
252
|
+
p.onPageTurn?.();
|
|
253
|
+
break;
|
|
254
|
+
case 'link':
|
|
255
|
+
if (typeof d.href === 'string' && /^(https?|mailto):/i.test(d.href))
|
|
256
|
+
p.onLink?.(d.href);
|
|
257
|
+
break;
|
|
258
|
+
case 'linkJump':
|
|
259
|
+
p.onLinkJump?.({ spine: d.spine, offset: d.offset });
|
|
260
|
+
break;
|
|
261
|
+
case 'direction':
|
|
262
|
+
p.onDirectionChange?.(!!d.rtl);
|
|
263
|
+
break;
|
|
264
|
+
case 'searchResults':
|
|
265
|
+
p.onSearchResults?.(d.id, Array.isArray(d.results) ? d.results : [], !!d.done);
|
|
266
|
+
break;
|
|
267
|
+
case 'end':
|
|
268
|
+
p.onEndReached?.(d.edge);
|
|
269
|
+
break;
|
|
270
|
+
case 'error':
|
|
271
|
+
p.onError?.(String(d.message || 'Unknown error'), { fatal: !!d.fatal });
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
}, []);
|
|
275
|
+
const bg = (0, themes_1.themeColors)(settings, systemDark).bg;
|
|
276
|
+
return (react_1.default.createElement(react_native_1.View, { style: [styles.fill, { backgroundColor: bg }] },
|
|
277
|
+
react_1.default.createElement(react_native_webview_1.WebView, { key: webKey, ref: web, style: [styles.fill, { backgroundColor: bg }], originWhitelist: ['*'], source: { html: html_1.READER_HTML }, onMessage: onMessage, javaScriptEnabled: true, domStorageEnabled: false, scrollEnabled: false, bounces: false, overScrollMode: "never", showsHorizontalScrollIndicator: false, showsVerticalScrollIndicator: false, automaticallyAdjustContentInsets: false, contentInsetAdjustmentBehavior: "never", allowsInlineMediaPlayback: true, hideKeyboardAccessoryView: true, setSupportMultipleWindows: false,
|
|
278
|
+
// the page is generated here and never needs the file system, the network or the system font scale
|
|
279
|
+
allowFileAccess: false, allowFileAccessFromFileURLs: false, allowUniversalAccessFromFileURLs: false, mixedContentMode: "never", cacheEnabled: false, textZoom: 100, menuItems: menuItems, onCustomMenuSelection: (e) => {
|
|
280
|
+
const key = e.nativeEvent.key;
|
|
281
|
+
cb.current.onMenuAction?.(key, selection.current);
|
|
282
|
+
}, onShouldStartLoadWithRequest: (req) => req.url === 'about:blank' || req.url.startsWith('data:') || req.url.startsWith('about:'), onRenderProcessGone: recover, onContentProcessDidTerminate: recover, onError: (e) => cb.current.onError?.(e.nativeEvent.description || 'The reader failed to load.', { fatal: true }) })));
|
|
283
|
+
});
|
|
284
|
+
const styles = react_native_1.StyleSheet.create({ fill: { flex: 1 } });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Bookmark, BookLocation, BookMetadata, EpubSource, Highlight, ReaderSettings, RelocateEvent, SafeInsets } from './types';
|
|
3
|
+
import type { ReaderLabels } from './strings';
|
|
4
|
+
export interface EpubReaderViewProps {
|
|
5
|
+
source: EpubSource;
|
|
6
|
+
/** shown in the Contents sheet until the book's own title is read */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Space for the status bar / home indicator (and notch in landscape). Use useSafeAreaInsets() from react-native-safe-area-context. */
|
|
9
|
+
safeInsets?: SafeInsets;
|
|
10
|
+
initialLocation?: BookLocation;
|
|
11
|
+
initialSettings?: Partial<ReaderSettings>;
|
|
12
|
+
initialHighlights?: Highlight[];
|
|
13
|
+
initialBookmarks?: Bookmark[];
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
onLocationChange?: (e: RelocateEvent) => void;
|
|
16
|
+
onHighlightsChange?: (list: Highlight[]) => void;
|
|
17
|
+
onBookmarksChange?: (list: Bookmark[]) => void;
|
|
18
|
+
onSettingsChange?: (s: ReaderSettings) => void;
|
|
19
|
+
onMetadata?: (m: BookMetadata) => void;
|
|
20
|
+
onCover?: (dataUri: string) => void;
|
|
21
|
+
onError?: (message: string) => void;
|
|
22
|
+
/** Texts of the interface; leave out what you do not translate (see ReaderLabels). */
|
|
23
|
+
labels?: Partial<ReaderLabels>;
|
|
24
|
+
/** Largest EPUB in bytes that will be opened (default 150 MB, 0 = no limit). */
|
|
25
|
+
maxFileSize?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Full reader screen. A different `source` (or Try again after an error) starts a fresh screen, so highlights,
|
|
29
|
+
* bookmarks and position of one book can never leak into another.
|
|
30
|
+
*/
|
|
31
|
+
export declare function EpubReaderView(props: EpubReaderViewProps): React.JSX.Element;
|