@pretextbook/pretext-html 0.10.0 → 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/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-BONFCRgl.js";
3
+ import "./printout.js";
4
+ import { m as i, l as s } from "./cli-CMAunrD_.js";
4
5
  export {
5
- p as main,
6
+ i as main,
6
7
  s as parseArgs
7
8
  };
@@ -11,7 +11,7 @@
11
11
  * rather than tracked as "latest".
12
12
  */
13
13
  /** html-static release, passed to the stylesheets as `cli.version`. */
14
- export declare const HTML_STATIC_VERSION = "2.48.1";
14
+ export declare const HTML_STATIC_VERSION = "2.49.1";
15
15
  /** Runestone Services release built into it, reported as `eBookConfig.runestone_version`. */
16
16
  export declare const RUNESTONE_VERSION = "8.2.4";
17
17
  /** Scripts that turn Runestone's inert exercise markup into working exercises. */
@@ -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';