@likecoin/epubcheck-ts 0.1.0 → 0.2.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/README.md +21 -10
- package/dist/index.cjs +1738 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1738 -42
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -110,6 +110,21 @@ interface PackageDocument {
|
|
|
110
110
|
pageProgressionDirection?: 'ltr' | 'rtl' | 'default';
|
|
111
111
|
/** Guide references (EPUB 2) */
|
|
112
112
|
guide: GuideReference[];
|
|
113
|
+
/** Collections (EPUB 3) */
|
|
114
|
+
collections: Collection[];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Represents a collection in the OPF (EPUB 3)
|
|
118
|
+
*/
|
|
119
|
+
interface Collection {
|
|
120
|
+
/** Collection role (dictionary, index, preview, etc.) */
|
|
121
|
+
role: string;
|
|
122
|
+
/** Collection identifier */
|
|
123
|
+
id?: string;
|
|
124
|
+
/** Collection name/label */
|
|
125
|
+
name?: string;
|
|
126
|
+
/** Resource hrefs in this collection (from link elements) */
|
|
127
|
+
links: string[];
|
|
113
128
|
}
|
|
114
129
|
|
|
115
130
|
/**
|
|
@@ -276,6 +291,10 @@ declare class EpubCheck {
|
|
|
276
291
|
* Add a validation message to the context
|
|
277
292
|
*/
|
|
278
293
|
protected addMessage(messages: ValidationMessage[], message: ValidationMessage): void;
|
|
294
|
+
/**
|
|
295
|
+
* Populate resource registry from package document manifest
|
|
296
|
+
*/
|
|
297
|
+
private populateRegistry;
|
|
279
298
|
}
|
|
280
299
|
|
|
281
300
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,21 @@ interface PackageDocument {
|
|
|
110
110
|
pageProgressionDirection?: 'ltr' | 'rtl' | 'default';
|
|
111
111
|
/** Guide references (EPUB 2) */
|
|
112
112
|
guide: GuideReference[];
|
|
113
|
+
/** Collections (EPUB 3) */
|
|
114
|
+
collections: Collection[];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Represents a collection in the OPF (EPUB 3)
|
|
118
|
+
*/
|
|
119
|
+
interface Collection {
|
|
120
|
+
/** Collection role (dictionary, index, preview, etc.) */
|
|
121
|
+
role: string;
|
|
122
|
+
/** Collection identifier */
|
|
123
|
+
id?: string;
|
|
124
|
+
/** Collection name/label */
|
|
125
|
+
name?: string;
|
|
126
|
+
/** Resource hrefs in this collection (from link elements) */
|
|
127
|
+
links: string[];
|
|
113
128
|
}
|
|
114
129
|
|
|
115
130
|
/**
|
|
@@ -276,6 +291,10 @@ declare class EpubCheck {
|
|
|
276
291
|
* Add a validation message to the context
|
|
277
292
|
*/
|
|
278
293
|
protected addMessage(messages: ValidationMessage[], message: ValidationMessage): void;
|
|
294
|
+
/**
|
|
295
|
+
* Populate resource registry from package document manifest
|
|
296
|
+
*/
|
|
297
|
+
private populateRegistry;
|
|
279
298
|
}
|
|
280
299
|
|
|
281
300
|
/**
|