@pretextbook/pretext-html 0.10.1 → 0.11.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 +61 -0
- package/assets/preview-html.xsl +13 -1
- package/dist/{cli-C3B-AvUy.js → cli-CMAunrD_.js} +415 -372
- package/dist/cli.d.ts +7 -0
- package/dist/cli.js +3 -2
- package/dist/index.browser.d.ts +2 -0
- package/dist/index.browser.js +501 -369
- package/dist/index.d.ts +2 -0
- package/dist/index.js +30 -24
- package/dist/printout.d.ts +140 -0
- package/dist/printout.js +122 -0
- package/dist/renderer.d.ts +30 -0
- package/package.json +9 -1
package/dist/cli.d.ts
CHANGED
|
@@ -4,6 +4,13 @@ interface CliArgs {
|
|
|
4
4
|
output?: string;
|
|
5
5
|
docinfoPath?: string;
|
|
6
6
|
sourceMapPath?: string;
|
|
7
|
+
/**
|
|
8
|
+
* `--print-preview`: a printout id, or `true` for "whichever printout this
|
|
9
|
+
* document is about". Which one that is cannot be known until the page has
|
|
10
|
+
* been rendered, so unlike the other options this one is applied afterwards
|
|
11
|
+
* (see main).
|
|
12
|
+
*/
|
|
13
|
+
printPreview?: string | true;
|
|
7
14
|
}
|
|
8
15
|
export declare function parseArgs(argv: string[]): CliArgs;
|
|
9
16
|
export declare function main(argv: string[]): Promise<void>;
|
package/dist/cli.js
CHANGED
package/dist/index.browser.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export { PREVIEW_THEME_MESSAGE, isPreviewTheme, previewThemeMessage, themeBridge
|
|
|
36
36
|
export type { PreviewTheme, PreviewThemeMessage } from './theme.js';
|
|
37
37
|
export { PREVIEW_BANNER_STORAGE_KEY, injectPreviewBanner, previewBannerScript, } from './banner.js';
|
|
38
38
|
export type { PreviewBannerOptions } from './banner.js';
|
|
39
|
+
export { PRINT_PREVIEW_GLOBAL, injectPrintPreview, listPrintouts, printPreviewBridgeScript, rootPrintoutId, } from './printout.js';
|
|
40
|
+
export type { PrintoutInfo } from './printout.js';
|
|
39
41
|
export { setAssetsBase } from './host.js';
|
|
40
42
|
export { setMountReader } from './mounts.js';
|
|
41
43
|
export type { MountReader } from './mounts.js';
|