@prose-reader/streamer 1.2.0 → 1.4.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/createArchiveFromText.d.ts +3 -2
- package/dist/archives/getArchiveOpfInfo.d.ts +1 -1
- package/dist/archives/types.d.ts +1 -1
- package/dist/configure.d.ts +3 -0
- package/dist/epub/getSpineItemFilesFromArchive.d.ts +1 -1
- package/dist/generators/manifest/{comicInfo.d.ts → hooks/comicInfo.d.ts} +2 -2
- package/dist/{src/generators/manifest → generators/manifest/hooks}/default.d.ts +2 -2
- package/dist/generators/manifest/{epub.d.ts → hooks/epub.d.ts} +2 -2
- package/dist/{dist/generators/manifest/default.d.ts → generators/manifest/hooks/epubOptimizer.d.ts} +2 -2
- package/dist/generators/manifest/index.d.ts +3 -2
- package/dist/generators/resources.d.ts +8 -1
- package/dist/index.d.ts +5 -7
- package/dist/prose-streamer.js +207 -182
- package/dist/prose-streamer.js.map +1 -1
- package/dist/prose-streamer.umd.cjs +8 -8
- package/dist/prose-streamer.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/dist/dist/archives/createArchiveFromArrayBufferList.d.ts +0 -10
- package/dist/dist/archives/createArchiveFromJszip.d.ts +0 -34
- package/dist/dist/archives/createArchiveFromText.d.ts +0 -7
- package/dist/dist/archives/createArchiveFromUrls.d.ts +0 -9
- package/dist/dist/archives/getArchiveOpfInfo.d.ts +0 -15
- package/dist/dist/archives/types.d.ts +0 -20
- package/dist/dist/epub/getSpineItemFilesFromArchive.d.ts +0 -14
- package/dist/dist/generators/manifest/comicInfo.d.ts +0 -10
- package/dist/dist/generators/manifest/epub.d.ts +0 -12
- package/dist/dist/generators/manifest/index.d.ts +0 -4
- package/dist/dist/generators/resources.d.ts +0 -2
- package/dist/dist/index.d.ts +0 -12
- package/dist/dist/parsers/kobo.d.ts +0 -6
- package/dist/dist/parsers/nav.d.ts +0 -5
- package/dist/dist/report.d.ts +0 -13
- package/dist/dist/utils/blobToBAse64.d.ts +0 -1
- package/dist/dist/utils/sortByTitleComparator.d.ts +0 -1
- package/dist/dist/utils/uri.d.ts +0 -1
- package/dist/generators/manifest/default.d.ts +0 -6
- package/dist/src/archives/createArchiveFromArrayBufferList.d.ts +0 -10
- package/dist/src/archives/createArchiveFromJszip.d.ts +0 -34
- package/dist/src/archives/createArchiveFromText.d.ts +0 -7
- package/dist/src/archives/createArchiveFromUrls.d.ts +0 -9
- package/dist/src/archives/getArchiveOpfInfo.d.ts +0 -15
- package/dist/src/archives/types.d.ts +0 -20
- package/dist/src/epub/getSpineItemFilesFromArchive.d.ts +0 -14
- package/dist/src/generators/manifest/comicInfo.d.ts +0 -10
- package/dist/src/generators/manifest/epub.d.ts +0 -12
- package/dist/src/generators/manifest/index.d.ts +0 -4
- package/dist/src/generators/resources.d.ts +0 -2
- package/dist/src/index.d.ts +0 -12
- package/dist/src/parsers/kobo.d.ts +0 -6
- package/dist/src/parsers/nav.d.ts +0 -5
- package/dist/src/report.d.ts +0 -13
- package/dist/src/utils/blobToBAse64.d.ts +0 -1
- package/dist/src/utils/sortByTitleComparator.d.ts +0 -1
- package/dist/src/utils/uri.d.ts +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import xmldoc from "xmldoc";
|
|
2
|
-
import type { Manifest } from "@prose-reader/shared";
|
|
3
|
-
import { Archive } from "../../archives/types";
|
|
4
|
-
export declare const getItemsFromDoc: (doc: xmldoc.XmlDocument) => {
|
|
5
|
-
href: string;
|
|
6
|
-
id: string;
|
|
7
|
-
mediaType: string | undefined;
|
|
8
|
-
}[];
|
|
9
|
-
export declare const epubGenerator: ({ archive, baseUrl }: {
|
|
10
|
-
archive: Archive;
|
|
11
|
-
baseUrl: string;
|
|
12
|
-
}) => (manifest: Manifest) => Promise<Manifest>;
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import xmldoc from "xmldoc";
|
|
2
|
-
export { getResourceFromArchive } from "./generators/resources";
|
|
3
|
-
export { getManifestFromArchive } from "./generators/manifest";
|
|
4
|
-
export { Report } from "./report";
|
|
5
|
-
export type { Manifest } from "@prose-reader/shared";
|
|
6
|
-
export type { Archive } from "./archives/types";
|
|
7
|
-
export { getArchiveOpfInfo } from "./archives/getArchiveOpfInfo";
|
|
8
|
-
export { createArchiveFromUrls } from "./archives/createArchiveFromUrls";
|
|
9
|
-
export { createArchiveFromText } from "./archives/createArchiveFromText";
|
|
10
|
-
export { createArchiveFromJszip } from "./archives/createArchiveFromJszip";
|
|
11
|
-
export { createArchiveFromArrayBufferList } from "./archives/createArchiveFromArrayBufferList";
|
|
12
|
-
export { xmldoc };
|
package/dist/src/report.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const Report: {
|
|
2
|
-
enable: (enable: boolean) => void;
|
|
3
|
-
log: (...data: any[]) => void;
|
|
4
|
-
warn: (...data: any[]) => void;
|
|
5
|
-
error: (...data: any[]) => void;
|
|
6
|
-
time: (label?: string | undefined) => void;
|
|
7
|
-
timeEnd: (label?: string | undefined) => void;
|
|
8
|
-
metric: (performanceEntry: {
|
|
9
|
-
name: string;
|
|
10
|
-
duration: number;
|
|
11
|
-
}, targetDuration?: number) => void;
|
|
12
|
-
measurePerformance: <F extends (...args: any[]) => any>(name: string, targetDuration: number | undefined, functionToMeasure: F) => (...args: Parameters<F>) => ReturnType<F>;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const blobToBase64: (blob: Blob) => Promise<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sortByTitleComparator: (a: string, b: string) => number;
|
package/dist/src/utils/uri.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getUriBasename: (uri: string) => string;
|