@likecoin/epub-ts 0.4.2 → 0.4.3
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 +1 -1
- package/dist/archive.d.ts +1 -1
- package/dist/container.d.ts +3 -3
- package/dist/contents.d.ts +1 -0
- package/dist/displayoptions.d.ts +4 -4
- package/dist/epub.cjs +3 -3
- package/dist/epub.cjs.map +1 -1
- package/dist/epub.js +415 -404
- package/dist/epub.js.map +1 -1
- package/dist/epub.umd.js +3 -3
- package/dist/epub.umd.js.map +1 -1
- package/dist/locations.d.ts +13 -13
- package/dist/managers/continuous/index.d.ts +1 -1
- package/dist/managers/default/index.d.ts +4 -3
- package/dist/managers/helpers/snap.d.ts +14 -13
- package/dist/managers/views/iframe.d.ts +7 -6
- package/dist/managers/views/inline.d.ts +5 -5
- package/dist/packaging.d.ts +7 -7
- package/dist/pagelist.d.ts +4 -4
- package/dist/resources.d.ts +9 -9
- package/dist/section.d.ts +10 -10
- package/dist/spine.d.ts +10 -10
- package/dist/themes.d.ts +5 -5
- package/dist/utils/hook.d.ts +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ Key classes:
|
|
|
97
97
|
| Type definitions | Generated from source | Hand-written `.d.ts` |
|
|
98
98
|
| Dependencies | 1 (`jszip`) | 7+ (`core-js`, `lodash`, `event-emitter`, etc.) |
|
|
99
99
|
| API compatibility | 100% (drop-in replacement) | — |
|
|
100
|
-
| Bundle format | ESM + CJS | UMD |
|
|
100
|
+
| Bundle format | ESM + CJS + UMD | UMD |
|
|
101
101
|
| Maintenance | Active | Inactive since 2022 |
|
|
102
102
|
|
|
103
103
|
## Supported Environments
|
package/dist/archive.d.ts
CHANGED
package/dist/container.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @param {document} [containerDocument] xml document
|
|
5
5
|
*/
|
|
6
6
|
declare class Container {
|
|
7
|
-
packagePath: string;
|
|
8
|
-
directory: string;
|
|
9
|
-
encoding: string;
|
|
7
|
+
packagePath: string | undefined;
|
|
8
|
+
directory: string | undefined;
|
|
9
|
+
encoding: string | undefined;
|
|
10
10
|
constructor(containerDocument?: Document);
|
|
11
11
|
/**
|
|
12
12
|
* Parse the Container XML
|
package/dist/contents.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ declare class Contents implements IEventEmitter {
|
|
|
14
14
|
on: (type: string, fn: (...args: any[]) => void) => this;
|
|
15
15
|
off: (type: string, fn?: (...args: any[]) => void) => this;
|
|
16
16
|
emit: (type: string, ...args: any[]) => void;
|
|
17
|
+
__listeners: IEventEmitter["__listeners"];
|
|
17
18
|
epubcfi: EpubCFI;
|
|
18
19
|
document: Document;
|
|
19
20
|
documentElement: HTMLElement;
|
package/dist/displayoptions.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* @param {document} displayOptionsDocument XML
|
|
5
5
|
*/
|
|
6
6
|
declare class DisplayOptions {
|
|
7
|
-
interactive: string;
|
|
8
|
-
fixedLayout: string;
|
|
9
|
-
openToSpread: string;
|
|
10
|
-
orientationLock: string;
|
|
7
|
+
interactive: string | undefined;
|
|
8
|
+
fixedLayout: string | undefined;
|
|
9
|
+
openToSpread: string | undefined;
|
|
10
|
+
orientationLock: string | undefined;
|
|
11
11
|
constructor(displayOptionsDocument?: Document);
|
|
12
12
|
/**
|
|
13
13
|
* Parse XML
|