@prose-reader/streamer 1.13.0 → 1.15.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/createArchiveFromJszip.d.ts +1 -1
- package/dist/archives/types.d.ts +1 -1
- package/dist/generators/manifest/hooks/default.d.ts +1 -1
- package/dist/generators/manifest/hooks/navigationFallback.d.ts +12 -0
- package/dist/parsers/kobo.d.ts +1 -1
- package/dist/prose-streamer.js +209 -189
- package/dist/prose-streamer.js.map +1 -1
- package/dist/prose-streamer.umd.cjs +6 -6
- package/dist/prose-streamer.umd.cjs.map +1 -1
- package/package.json +5 -4
package/dist/archives/types.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Manifest } from "@prose-reader/shared";
|
|
2
|
+
import { Archive } from "../../../archives/types";
|
|
3
|
+
/**
|
|
4
|
+
* In case no navigation was generated prior to this hook, we will try
|
|
5
|
+
* to generate something based on the structure of the archive.
|
|
6
|
+
*
|
|
7
|
+
* We use folders as chapters.
|
|
8
|
+
*/
|
|
9
|
+
export declare const navigationFallbackHook: ({ archive, baseUrl }: {
|
|
10
|
+
archive: Archive;
|
|
11
|
+
baseUrl: string;
|
|
12
|
+
}) => (manifest: Manifest) => Promise<Manifest>;
|
package/dist/parsers/kobo.d.ts
CHANGED