@prose-reader/streamer 1.276.0 → 1.277.0
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/archives/printTree.d.ts +1 -0
- package/dist/generators/manifest/hooks/toc.d.ts +10 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +749 -733
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +24 -20
- package/dist/index.umd.cjs.map +1 -1
- package/dist/report.d.ts +2 -7
- package/package.json +3 -3
- package/dist/generators/manifest/hooks/navigationFallback.d.ts +0 -12
- /package/dist/generators/manifest/hooks/{navigationFallback.test.d.ts → toc.test.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const printTree: (paths: string[]) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Manifest } from '@prose-reader/shared';
|
|
2
|
+
import { Archive } from '../../../archives/types';
|
|
3
|
+
/**
|
|
4
|
+
* Resolve the table of contents from a single entry point.
|
|
5
|
+
* Internally handles EPUB nav, NCX, and folder fallback.
|
|
6
|
+
*/
|
|
7
|
+
export declare const tocHook: ({ archive, baseUrl }: {
|
|
8
|
+
archive: Archive;
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
}) => (manifest: Manifest) => Promise<Manifest>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { getArchiveOpfInfo } from './epubs/getArchiveOpfInfo';
|
|
4
|
-
export { createArchiveFromUrls } from './archives/createArchiveFromUrls';
|
|
5
|
-
export { createArchiveFromText } from './archives/createArchiveFromText';
|
|
1
|
+
export type { Manifest } from '@prose-reader/shared';
|
|
2
|
+
export { createArchiveFromArrayBufferList } from './archives/createArchiveFromArrayBufferList';
|
|
6
3
|
export { createArchiveFromJszip } from './archives/createArchiveFromJszip';
|
|
7
4
|
export { createArchiveFromLibArchive } from './archives/createArchiveFromLibArchive';
|
|
8
|
-
export {
|
|
9
|
-
export
|
|
5
|
+
export { createArchiveFromText } from './archives/createArchiveFromText';
|
|
6
|
+
export { createArchiveFromUrls } from './archives/createArchiveFromUrls';
|
|
10
7
|
export type { Archive } from './archives/types';
|
|
11
8
|
export { configure } from './configure';
|
|
12
|
-
export {
|
|
9
|
+
export { getArchiveOpfInfo } from './epubs/getArchiveOpfInfo';
|
|
10
|
+
export { generateManifestFromArchive } from './generators/manifest';
|
|
11
|
+
export { generateResourceFromArchive } from './generators/resources';
|
|
13
12
|
export { ServiceWorkerStreamer } from './ServiceWorkerStreamer';
|
|
13
|
+
export { Streamer } from './Streamer';
|
|
14
14
|
export * from './utils/sortByTitleComparator';
|
|
15
15
|
export * from './utils/uri';
|