gutterpress 0.11.17-alpha.1 → 0.11.17-alpha.2

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/api/index.js CHANGED
@@ -131,10 +131,10 @@ import {
131
131
  testRemoteAccess,
132
132
  updateExtensions,
133
133
  validateProjectExtensions
134
- } from "../index-r9t4acx5.js";
134
+ } from "../index-c275p061.js";
135
135
  import {
136
136
  BuildError
137
- } from "../index-dmm31ys3.js";
137
+ } from "../index-eyaj6nkc.js";
138
138
  import {
139
139
  DEFAULT_PRINT_OPTS,
140
140
  assertMilestone,
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  runBuild,
3
3
  splitOutPath
4
- } from "./cli-ew3gc4nt.js";
4
+ } from "./cli-6z5zthzt.js";
5
5
  import {
6
6
  log
7
- } from "./cli-0754wskb.js";
7
+ } from "./cli-70xgehq2.js";
8
8
  import {
9
9
  UsageError,
10
10
  parseFormat,
11
11
  parsePdfxFlavor,
12
12
  rejectExtraPositionals,
13
13
  rejectUnknownFlags
14
- } from "./cli-zce1zcqc.js";
15
- import"./cli-xx5bryh6.js";
14
+ } from "./cli-ppc0vz4b.js";
15
+ import"./cli-gymfg04q.js";
16
16
  import {
17
17
  BuildError
18
18
  } from "./cli-46ycxe6r.js";
@@ -13,17 +13,17 @@ import {
13
13
  stampCreator,
14
14
  stripAnnotations,
15
15
  warn
16
- } from "./cli-0754wskb.js";
16
+ } from "./cli-70xgehq2.js";
17
17
  import {
18
18
  DEBOUNCE,
19
19
  UsageError,
20
20
  resolvePort
21
- } from "./cli-zce1zcqc.js";
21
+ } from "./cli-ppc0vz4b.js";
22
22
  import {
23
23
  MARGIN_BOX_IGNORED_PROPERTIES,
24
24
  getAssetPath,
25
25
  getAssetsDir
26
- } from "./cli-xx5bryh6.js";
26
+ } from "./cli-gymfg04q.js";
27
27
  import {
28
28
  BuildError,
29
29
  EXIT_CODES
@@ -9682,7 +9682,7 @@ class PdfOutput {
9682
9682
  const rawPdf = pdfxMode ? path13.join(stage, "raw.pdf") : path13.resolve(pdfFile);
9683
9683
  await fsp2.mkdir(path13.dirname(path13.resolve(pdfFile)), { recursive: true });
9684
9684
  log.info("Rendering HTML to PDF via the Gutterpress engine (native Chromium pagination)");
9685
- const { buildNativePdf } = await import("./engine-rhmwgk9k.js");
9685
+ const { buildNativePdf } = await import("./engine-078ggczp.js");
9686
9686
  const engineDiagnostics = await buildNativePdf(htmlFile, rawPdf, {
9687
9687
  title: config.title,
9688
9688
  author: config.authors.length > 0 ? config.authors.join(", ") : undefined,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./cli-zce1zcqc.js";
3
+ } from "./cli-ppc0vz4b.js";
4
4
  import {
5
5
  execCapture,
6
6
  findTool,
@@ -1114,7 +1114,7 @@ var favicon_default = "./favicon-wkbm9cjn.ico";
1114
1114
  var manifest_schema_default = "./manifest.schema-40sfq49z.json";
1115
1115
 
1116
1116
  // src/assets/preview/scripts/preview-interface.js
1117
- var preview_interface_default = "./preview-interface-5wnzrvhf.js";
1117
+ var preview_interface_default = "./preview-interface-c44qk17f.js";
1118
1118
 
1119
1119
  // src/assets/preview/scripts/preview-bridge.js
1120
1120
  var preview_bridge_default = "./preview-bridge-8jhd1wpb.js";
@@ -1126,7 +1126,7 @@ var preview_shell_default = "./preview-shell-xwn84kqr.js";
1126
1126
  var CGATS21_CRPC1_default = "./CGATS21_CRPC1-g0e3k7kr.icc";
1127
1127
 
1128
1128
  // src/assets/engine/gutterpress-viewer.js
1129
- var gutterpress_viewer_default = "./gutterpress-viewer-5a6h4evk.js";
1129
+ var gutterpress_viewer_default = "./gutterpress-viewer-zkv2stfy.js";
1130
1130
 
1131
1131
  // src/assets/engine/gutterpress-agent.js
1132
1132
  var gutterpress_agent_default = "./gutterpress-agent-cazqstr1.js";
@@ -4,7 +4,7 @@ import {
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "gutterpress",
7
- version: "0.11.17-alpha.1",
7
+ version: "0.11.17-alpha.2",
8
8
  description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
9
9
  author: "itlackey",
10
10
  license: "MPL-2.0",
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  UsageError,
7
7
  package_default,
8
8
  rejectUnknownFlags
9
- } from "./cli-zce1zcqc.js";
9
+ } from "./cli-ppc0vz4b.js";
10
10
  import {
11
11
  EXIT_CODES
12
12
  } from "./cli-46ycxe6r.js";
@@ -18,14 +18,14 @@ import {
18
18
  import { defineCommand, parseArgs, runMain } from "citty";
19
19
  import { statSync } from "node:fs";
20
20
  var SUBCOMMANDS = {
21
- new: () => import("./new-yzswp0ge.js").then((m) => m.default),
22
- preview: () => import("./preview-tam7azsr.js").then((m) => m.default),
23
- build: () => import("./build-jfjzam95.js").then((m) => m.default),
24
- publish: () => import("./publish-ra8kyf0z.js").then((m) => m.default),
25
- validate: () => import("./validate-n9vae7p8.js").then((m) => m.default),
26
- preflight: () => import("./preflight-0s1vw6y1.js").then((m) => m.default),
27
- doctor: () => import("./doctor-h01f71ws.js").then((m) => m.default),
28
- ext: () => import("./ext-ja4hy1c2.js").then((m) => m.default)
21
+ new: () => import("./new-m5y2wepr.js").then((m) => m.default),
22
+ preview: () => import("./preview-62y7qhkp.js").then((m) => m.default),
23
+ build: () => import("./build-1p999cmg.js").then((m) => m.default),
24
+ publish: () => import("./publish-k2zyt3x6.js").then((m) => m.default),
25
+ validate: () => import("./validate-fgwwxtbn.js").then((m) => m.default),
26
+ preflight: () => import("./preflight-bwpqwwny.js").then((m) => m.default),
27
+ doctor: () => import("./doctor-reqpnn3h.js").then((m) => m.default),
28
+ ext: () => import("./ext-dsbfejt3.js").then((m) => m.default)
29
29
  };
30
30
  var VERSION = package_default.version;
31
31
  var main = defineCommand({
@@ -50,7 +50,7 @@ async function preflightRequiredInvocations(rawArgs) {
50
50
  const [command, ...commandArgs] = rawArgs;
51
51
  try {
52
52
  if (command === "new") {
53
- const { newArgs } = await import("./new-yzswp0ge.js");
53
+ const { newArgs } = await import("./new-m5y2wepr.js");
54
54
  rejectUnknownFlags(commandArgs, newArgs, "new");
55
55
  const parsed = parseArgs(commandArgs, {
56
56
  ...newArgs,
@@ -62,7 +62,7 @@ async function preflightRequiredInvocations(rawArgs) {
62
62
  return;
63
63
  }
64
64
  if (command === "preflight") {
65
- const { preflightArgs } = await import("./preflight-0s1vw6y1.js");
65
+ const { preflightArgs } = await import("./preflight-bwpqwwny.js");
66
66
  rejectUnknownFlags(commandArgs, preflightArgs, "preflight");
67
67
  const parsed = parseArgs(commandArgs, {
68
68
  ...preflightArgs,
@@ -82,7 +82,7 @@ async function preflightRequiredInvocations(rawArgs) {
82
82
  }
83
83
  if (subcommand.startsWith("-"))
84
84
  return;
85
- const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-ja4hy1c2.js");
85
+ const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-dsbfejt3.js");
86
86
  if (!EXT_SUBCOMMANDS.includes(subcommand)) {
87
87
  throw new UsageError(`gutterpress ext: unknown command "${subcommand}"`);
88
88
  }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getSystemDiagnostics,
3
3
  log
4
- } from "./cli-0754wskb.js";
4
+ } from "./cli-70xgehq2.js";
5
5
  import {
6
6
  UsageError,
7
7
  rejectExtraPositionals,
8
8
  rejectUnknownFlags
9
- } from "./cli-zce1zcqc.js";
9
+ } from "./cli-ppc0vz4b.js";
10
10
  import"./cli-46ycxe6r.js";
11
11
  import"./cli-7fkhgtfn.js";
12
12
  import"./cli-37x76zdn.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  build
3
- } from "./cli-xx5bryh6.js";
3
+ } from "./cli-gymfg04q.js";
4
4
  import {
5
5
  BuildError
6
6
  } from "./cli-46ycxe6r.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  build
3
- } from "./index-3nk5mnn6.js";
3
+ } from "./index-5dcj1vts.js";
4
4
  import {
5
5
  BuildError
6
- } from "./index-dmm31ys3.js";
6
+ } from "./index-eyaj6nkc.js";
7
7
  import"./index-rzm1phg0.js";
8
8
  import"./index-37x76zdn.js";
9
9
 
@@ -12,16 +12,16 @@ import {
12
12
  searchNpmExtensions,
13
13
  setExtensionEnabled,
14
14
  updateExtensions
15
- } from "./cli-ew3gc4nt.js";
16
- import"./cli-0754wskb.js";
15
+ } from "./cli-6z5zthzt.js";
16
+ import"./cli-70xgehq2.js";
17
17
  import {
18
18
  UsageError,
19
19
  exitForUsage,
20
20
  rejectExtraPositionals,
21
21
  rejectUnknownFlags,
22
22
  resolveProjectDir
23
- } from "./cli-zce1zcqc.js";
24
- import"./cli-xx5bryh6.js";
23
+ } from "./cli-ppc0vz4b.js";
24
+ import"./cli-gymfg04q.js";
25
25
  import {
26
26
  EXIT_CODES
27
27
  } from "./cli-46ycxe6r.js";
@@ -63,7 +63,11 @@
63
63
  background: var(--gp-stage-bg);
64
64
  margin: 0;
65
65
  padding: 32px;
66
- overflow: auto;
66
+ /* No \`overflow\` of its own. The page scrolls through the viewport, which
67
+ scrolls on its own. An \`overflow: auto\` here only ever reached the
68
+ viewport by propagation; once a host clips \`<html>\` (fit-to-width), it
69
+ stopped propagating and made the body a sideways scroller whose
70
+ scrollbars sit off-screen (#353). */
67
71
  /* Standalone pages use \`--gutterpress-fit-zoom\`; embedded previews use the
68
72
  host-owned \`--gutterpress-zoom\`. fitZoom() guarantees only one is active. */
69
73
  --gp-zoom: calc(var(--gutterpress-zoom, 1) * var(--gutterpress-fit-zoom, 1));
@@ -3,7 +3,7 @@ import {
3
3
  isIgnoredMarginBoxProperty,
4
4
  marginBoxAlign,
5
5
  marginBoxRectPt
6
- } from "./index-dmm31ys3.js";
6
+ } from "./index-eyaj6nkc.js";
7
7
  import {
8
8
  launchChromium
9
9
  } from "./index-rzm1phg0.js";
@@ -4,7 +4,7 @@ import {
4
4
  MARGIN_BOX_IGNORED_PROPERTIES,
5
5
  getAssetPath,
6
6
  getAssetsDir
7
- } from "./index-dmm31ys3.js";
7
+ } from "./index-eyaj6nkc.js";
8
8
  import {
9
9
  INSTALL_HINTS,
10
10
  execCapture,
@@ -5641,7 +5641,7 @@ import git from "isomorphic-git";
5641
5641
  // package.json
5642
5642
  var package_default = {
5643
5643
  name: "gutterpress",
5644
- version: "0.11.17-alpha.1",
5644
+ version: "0.11.17-alpha.2",
5645
5645
  description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
5646
5646
  author: "itlackey",
5647
5647
  license: "MPL-2.0",
@@ -10261,7 +10261,7 @@ class PdfOutput {
10261
10261
  const rawPdf = pdfxMode ? path13.join(stage, "raw.pdf") : path13.resolve(pdfFile);
10262
10262
  await fsp2.mkdir(path13.dirname(path13.resolve(pdfFile)), { recursive: true });
10263
10263
  log.info("Rendering HTML to PDF via the Gutterpress engine (native Chromium pagination)");
10264
- const { buildNativePdf } = await import("./engine-aaam2nz3.js");
10264
+ const { buildNativePdf } = await import("./engine-5jzhjjvv.js");
10265
10265
  const engineDiagnostics = await buildNativePdf(htmlFile, rawPdf, {
10266
10266
  title: config.title,
10267
10267
  author: config.authors.length > 0 ? config.authors.join(", ") : undefined,
@@ -29,7 +29,7 @@ var favicon_default = "./favicon-wkbm9cjn.ico";
29
29
  var manifest_schema_default = "./manifest.schema-40sfq49z.json";
30
30
 
31
31
  // src/assets/preview/scripts/preview-interface.js
32
- var preview_interface_default = "./preview-interface-5wnzrvhf.js";
32
+ var preview_interface_default = "./preview-interface-c44qk17f.js";
33
33
 
34
34
  // src/assets/preview/scripts/preview-bridge.js
35
35
  var preview_bridge_default = "./preview-bridge-8jhd1wpb.js";
@@ -41,7 +41,7 @@ var preview_shell_default = "./preview-shell-xwn84kqr.js";
41
41
  var CGATS21_CRPC1_default = "./CGATS21_CRPC1-g0e3k7kr.icc";
42
42
 
43
43
  // src/assets/engine/gutterpress-viewer.js
44
- var gutterpress_viewer_default = "./gutterpress-viewer-5a6h4evk.js";
44
+ var gutterpress_viewer_default = "./gutterpress-viewer-zkv2stfy.js";
45
45
 
46
46
  // src/assets/engine/gutterpress-agent.js
47
47
  var gutterpress_agent_default = "./gutterpress-agent-cazqstr1.js";
package/dist/index.js CHANGED
@@ -148,13 +148,13 @@ import {
148
148
  testRemoteAccess,
149
149
  updateExtensions,
150
150
  validateProjectExtensions
151
- } from "./index-r9t4acx5.js";
151
+ } from "./index-c275p061.js";
152
152
  import {
153
153
  BUILD_DIAGNOSTIC_CODES
154
- } from "./index-3nk5mnn6.js";
154
+ } from "./index-5dcj1vts.js";
155
155
  import {
156
156
  BuildError
157
- } from "./index-dmm31ys3.js";
157
+ } from "./index-eyaj6nkc.js";
158
158
  import {
159
159
  DEFAULT_PRINT_OPTS,
160
160
  assertMilestone,
@@ -7,16 +7,16 @@ import {
7
7
  TARGET_IDS,
8
8
  scaffoldExtension,
9
9
  scaffoldProject
10
- } from "./cli-ew3gc4nt.js";
10
+ } from "./cli-6z5zthzt.js";
11
11
  import {
12
12
  resolveGhostscript
13
- } from "./cli-0754wskb.js";
13
+ } from "./cli-70xgehq2.js";
14
14
  import {
15
15
  UsageError,
16
16
  rejectExtraPositionals,
17
17
  rejectUnknownFlags
18
- } from "./cli-zce1zcqc.js";
19
- import"./cli-xx5bryh6.js";
18
+ } from "./cli-ppc0vz4b.js";
19
+ import"./cli-gymfg04q.js";
20
20
  import {
21
21
  EXIT_CODES
22
22
  } from "./cli-46ycxe6r.js";
@@ -2,16 +2,16 @@ import {
2
2
  executeValidation,
3
3
  publishTargetFor,
4
4
  reportMissingTools
5
- } from "./cli-ew3gc4nt.js";
5
+ } from "./cli-6z5zthzt.js";
6
6
  import {
7
7
  log
8
- } from "./cli-0754wskb.js";
8
+ } from "./cli-70xgehq2.js";
9
9
  import {
10
10
  UsageError,
11
11
  rejectExtraPositionals,
12
12
  rejectUnknownFlags
13
- } from "./cli-zce1zcqc.js";
14
- import"./cli-xx5bryh6.js";
13
+ } from "./cli-ppc0vz4b.js";
14
+ import"./cli-gymfg04q.js";
15
15
  import {
16
16
  BuildError,
17
17
  EXIT_CODES
@@ -7,10 +7,10 @@ import {
7
7
  runBuild,
8
8
  splitOutPath,
9
9
  startPreviewServer
10
- } from "./cli-ew3gc4nt.js";
10
+ } from "./cli-6z5zthzt.js";
11
11
  import {
12
12
  log
13
- } from "./cli-0754wskb.js";
13
+ } from "./cli-70xgehq2.js";
14
14
  import {
15
15
  UsageError,
16
16
  parseFormat,
@@ -18,8 +18,8 @@ import {
18
18
  rejectExtraPositionals,
19
19
  rejectUnknownFlags,
20
20
  resolvePort
21
- } from "./cli-zce1zcqc.js";
22
- import"./cli-xx5bryh6.js";
21
+ } from "./cli-ppc0vz4b.js";
22
+ import"./cli-gymfg04q.js";
23
23
  import {
24
24
  BuildError
25
25
  } from "./cli-46ycxe6r.js";
@@ -1034,9 +1034,14 @@
1034
1034
  document.body.style.removeProperty('--gutterpress-fit-zoom');
1035
1035
  document.documentElement.style.setProperty('--gutterpress-zoom', z);
1036
1036
  // A host "fit to width" scale means nothing should scroll sideways.
1037
- // Device-pixel rounding (fractional OS scaling) or art reaching past
1038
- // the sheet can still overflow by a hair; clip it in fit mode only.
1037
+ // Device-pixel rounding (fractional OS scaling), art reaching past
1038
+ // the sheet, or a run box wider than its sheets can still overflow;
1039
+ // clip it in fit mode only. The body clips (`clip`, unlike `hidden`,
1040
+ // leaves nothing to scroll, so scrollIntoView and a sideways swipe
1041
+ // cannot shift the book either). The root stays `hidden`, which stops
1042
+ // the body's `clip` propagating to the viewport (#353).
1039
1043
  document.documentElement.style.overflowX = fit ? 'hidden' : '';
1044
+ document.body.style.overflowX = fit ? 'clip' : '';
1040
1045
  });
1041
1046
  if (!silent) api.notifyPageChange();
1042
1047
  },
@@ -11,17 +11,17 @@ import {
11
11
  publishProviderFor,
12
12
  resolvePublishFormat,
13
13
  runPublish
14
- } from "./cli-ew3gc4nt.js";
14
+ } from "./cli-6z5zthzt.js";
15
15
  import {
16
16
  FileTokenStore,
17
17
  log
18
- } from "./cli-0754wskb.js";
18
+ } from "./cli-70xgehq2.js";
19
19
  import {
20
20
  UsageError,
21
21
  rejectExtraPositionals,
22
22
  rejectUnknownFlags
23
- } from "./cli-zce1zcqc.js";
24
- import"./cli-xx5bryh6.js";
23
+ } from "./cli-ppc0vz4b.js";
24
+ import"./cli-gymfg04q.js";
25
25
  import {
26
26
  EXIT_CODES
27
27
  } from "./cli-46ycxe6r.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  executeAndReport
3
- } from "./cli-ew3gc4nt.js";
3
+ } from "./cli-6z5zthzt.js";
4
4
  import {
5
5
  log
6
- } from "./cli-0754wskb.js";
6
+ } from "./cli-70xgehq2.js";
7
7
  import {
8
8
  UsageError,
9
9
  rejectExtraPositionals,
10
10
  rejectUnknownFlags
11
- } from "./cli-zce1zcqc.js";
12
- import"./cli-xx5bryh6.js";
11
+ } from "./cli-ppc0vz4b.js";
12
+ import"./cli-gymfg04q.js";
13
13
  import {
14
14
  BuildError,
15
15
  EXIT_CODES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gutterpress",
3
- "version": "0.11.17-alpha.1",
3
+ "version": "0.11.17-alpha.2",
4
4
  "description": "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
5
5
  "author": "itlackey",
6
6
  "license": "MPL-2.0",