@mfgames-writing/format 3.3.0 → 3.3.1
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/lib/build.d.ts +6 -2
- package/lib/cli.d.ts +1 -1
- package/lib/content.d.ts +1 -1
- package/lib/image.d.ts +4 -2
- package/lib/includes.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/markdown.d.ts +4 -2
- package/lib/plugins.d.ts +6 -2
- package/lib/tests/OverrideTheme.d.ts +11 -3
- package/lib/tests/overrides-theme.d.ts +1 -1
- package/lib/tests/theme-overrides.test.d.ts +1 -1
- package/package.json +2 -2
package/lib/build.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export declare function runBuild(
|
|
2
|
-
|
|
1
|
+
export declare function runBuild(
|
|
2
|
+
argv: any,
|
|
3
|
+
packageJson: any,
|
|
4
|
+
logger: any
|
|
5
|
+
): Promise<any>;
|
|
6
|
+
//# sourceMappingURL=build.d.ts.map
|
package/lib/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=cli.d.ts.map
|
|
2
|
+
//# sourceMappingURL=cli.d.ts.map
|
package/lib/content.d.ts
CHANGED
|
@@ -13,4 +13,4 @@ export declare function loadContents(args: EditionArgs): Promise<EditionArgs>;
|
|
|
13
13
|
* Renders the various content for inclusion with the format.
|
|
14
14
|
*/
|
|
15
15
|
export declare function renderContents(args: EditionArgs): Promise<EditionArgs>;
|
|
16
|
-
//# sourceMappingURL=content.d.ts.map
|
|
16
|
+
//# sourceMappingURL=content.d.ts.map
|
package/lib/image.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ContentArgs } from "@mfgames-writing/contracts";
|
|
2
|
-
export declare function processImages(
|
|
3
|
-
|
|
2
|
+
export declare function processImages(
|
|
3
|
+
content: ContentArgs
|
|
4
|
+
): Promise<ContentArgs>;
|
|
5
|
+
//# sourceMappingURL=image.d.ts.map
|
package/lib/includes.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/markdown.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ import { ContentArgs } from "@mfgames-writing/contracts";
|
|
|
2
2
|
/**
|
|
3
3
|
* Renders a Markdown file as HTML.
|
|
4
4
|
*/
|
|
5
|
-
export declare function renderContentMarkdown(
|
|
6
|
-
|
|
5
|
+
export declare function renderContentMarkdown(
|
|
6
|
+
content: ContentArgs
|
|
7
|
+
): Promise<ContentArgs>;
|
|
8
|
+
//# sourceMappingURL=markdown.d.ts.map
|
package/lib/plugins.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { EditionArgs } from "@mfgames-writing/contracts";
|
|
2
|
-
export declare function loadModule(
|
|
3
|
-
|
|
2
|
+
export declare function loadModule(
|
|
3
|
+
args: EditionArgs,
|
|
4
|
+
name: string,
|
|
5
|
+
requireDefault?: boolean
|
|
6
|
+
): any;
|
|
7
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Theme,
|
|
4
|
+
EditionArgs,
|
|
5
|
+
ContentArgs,
|
|
6
|
+
ContentTheme,
|
|
7
|
+
} from "@mfgames-writing/contracts";
|
|
3
8
|
import Token = require("markdown-it/lib/token");
|
|
4
9
|
export declare class OverrideTheme implements Theme {
|
|
5
10
|
stylesheetFileName: string;
|
|
@@ -16,8 +21,11 @@ export declare class OverrideTheme implements Theme {
|
|
|
16
21
|
renderHtml(args: ContentArgs): Promise<ContentArgs>;
|
|
17
22
|
renderLayout(args: ContentArgs): Promise<ContentArgs>;
|
|
18
23
|
renderNavigationTitle(args: ContentArgs): string;
|
|
19
|
-
renderStylesheet(
|
|
24
|
+
renderStylesheet(
|
|
25
|
+
args: EditionArgs,
|
|
26
|
+
mode?: string | string[] | undefined
|
|
27
|
+
): Buffer;
|
|
20
28
|
renderTableOfContents(args: ContentArgs): Promise<ContentArgs>;
|
|
21
29
|
getContentTheme(content: ContentArgs): ContentTheme;
|
|
22
30
|
}
|
|
23
|
-
//# sourceMappingURL=OverrideTheme.d.ts.map
|
|
31
|
+
//# sourceMappingURL=OverrideTheme.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=theme-overrides.test.d.ts.map
|
|
2
|
+
//# sourceMappingURL=theme-overrides.test.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mfgames-writing/format",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "A command-line framework for formatting books into a variety of formats and themes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ebook",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mfgames-writing/contracts": "^4.
|
|
43
|
+
"@mfgames-writing/contracts": "^4.4.0",
|
|
44
44
|
"fs-finder": "^1.8.1",
|
|
45
45
|
"incremental": "^1.0.1",
|
|
46
46
|
"jimp": "^0.3.5",
|