@pretextbook/pretext-html 0.10.1 → 0.12.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/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
@@ -1,7 +1,8 @@
1
1
  import "node:fs/promises";
2
2
  import "node:process";
3
- import { m as p, l as s } from "./cli-C3B-AvUy.js";
3
+ import "./printout.js";
4
+ import { m as i, l as s } from "./cli-BkTQ4BJP.js";
4
5
  export {
5
- p as main,
6
+ i as main,
6
7
  s as parseArgs
7
8
  };
@@ -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';