gutterpress 0.11.20 → 0.11.21

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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.js +2 -2
  3. package/dist/{build-t49xka15.js → build-0neyk5h6.js} +4 -4
  4. package/dist/checks/asset/extensions.d.ts +9 -5
  5. package/dist/checks/asset/index.d.ts +0 -3
  6. package/dist/checks/pdf/index.d.ts +0 -1
  7. package/dist/checks/types.d.ts +8 -1
  8. package/dist/{cli-cyej3p9v.js → cli-b57adna7.js} +5 -2
  9. package/dist/{cli-stt6691c.js → cli-j0drzb6f.js} +268 -429
  10. package/dist/{cli-8gm4p42f.js → cli-j79451n6.js} +2 -2
  11. package/dist/{cli-nh16svye.js → cli-sqkccnm7.js} +1 -1
  12. package/dist/cli.js +12 -12
  13. package/dist/{doctor-53hq2v2n.js → doctor-fptq8tvn.js} +2 -2
  14. package/dist/{engine-5fw55dfb.js → engine-0b8bt05n.js} +2 -2
  15. package/dist/{engine-4rkhv5ga.js → engine-x07q927h.js} +1 -1
  16. package/dist/{ext-bvgfwtk7.js → ext-gp624t5c.js} +4 -4
  17. package/dist/{gutterpress-agent-yvd8w8my.js → gutterpress-agent-d29ry3ak.js} +5 -1
  18. package/dist/{index-crys9951.js → index-mr72vt8n.js} +2 -2
  19. package/dist/{index-379qafjq.js → index-mr7zs8mv.js} +442 -605
  20. package/dist/{index-yw16cfm8.js → index-t7r8g75c.js} +4 -1
  21. package/dist/index.js +3 -3
  22. package/dist/lib/asset-inline.d.ts +2 -0
  23. package/dist/lib/image-inspect.d.ts +0 -1
  24. package/dist/lib/presets.d.ts +0 -3
  25. package/dist/lib/validation-exec.d.ts +1 -1
  26. package/dist/{manifest.schema-c4wfpg6g.json → manifest.schema-n292sb77.json} +7 -10
  27. package/dist/{new-jzpneexb.js → new-dre6aw05.js} +4 -4
  28. package/dist/{preflight-c0f0s3y1.js → preflight-1k1zkg1p.js} +4 -4
  29. package/dist/{preview-x6wn3vdh.js → preview-dtrksvxf.js} +4 -4
  30. package/dist/{publish-rskr6x6b.js → publish-g1ytnrmr.js} +4 -4
  31. package/dist/schema/manifest.types.d.ts +10 -2
  32. package/dist/{validate-88w89ye7.js → validate-yrrq8639.js} +4 -4
  33. package/package.json +1 -1
  34. package/dist/checks/asset/image-color-space.d.ts +0 -3
  35. package/dist/checks/asset/image-resolution.d.ts +0 -3
  36. package/dist/checks/asset/image-tac.d.ts +0 -3
  37. package/dist/checks/pdf/rasterized-pages.d.ts +0 -3
@@ -19,7 +19,7 @@ import {
19
19
  stringValueAt,
20
20
  toFolioPage,
21
21
  wantsRecto
22
- } from "./index-crys9951.js";
22
+ } from "./index-mr72vt8n.js";
23
23
  import {
24
24
  launchChromium
25
25
  } from "./index-bt0qws5c.js";
@@ -1301,6 +1301,9 @@ ${mapCss}`;
1301
1301
  if (
1302
1302
  multicol.length < 20 &&
1303
1303
  !(cs.columnCount === "auto" && cs.columnWidth === "auto") &&
1304
+ // Column properties only make a BLOCK container multicol; a
1305
+ // grid or flex container that carries them lays out no columns.
1306
+ !/grid|flex/.test(cs.display) &&
1304
1307
  cs.columnFill === "balance" &&
1305
1308
  el.getBoundingClientRect().height > ${minContentHeightPx} + 1
1306
1309
  ) {
package/dist/index.js CHANGED
@@ -154,14 +154,14 @@ import {
154
154
  testRemoteAccess,
155
155
  updateExtensions,
156
156
  validateProjectExtensions
157
- } from "./index-379qafjq.js";
157
+ } from "./index-mr7zs8mv.js";
158
158
  import"./index-ht1bcqdd.js";
159
159
  import {
160
160
  BUILD_DIAGNOSTIC_CODES
161
- } from "./index-yw16cfm8.js";
161
+ } from "./index-t7r8g75c.js";
162
162
  import {
163
163
  BuildError
164
- } from "./index-crys9951.js";
164
+ } from "./index-mr72vt8n.js";
165
165
  import"./index-sth219v1.js";
166
166
  import {
167
167
  DEFAULT_PRINT_OPTS,
@@ -41,6 +41,8 @@ export interface InlineStylesResult {
41
41
  * book asset and are ignored.
42
42
  */
43
43
  export declare function isNonFilesystemRef(url: string): boolean;
44
+ /** `fonts/x.woff2?v=2#iefix` must resolve to `fonts/x.woff2`. */
45
+ export declare function stripUrlSuffix(url: string): string;
44
46
  /**
45
47
  * Decode percent-escapes so `my%20photo.png` resolves to `my photo.png`.
46
48
  * Falls back to the raw string for a literal `%` in a filename.
@@ -29,4 +29,3 @@ export interface ImageInfo {
29
29
  }
30
30
  /** Inspect a PNG/JPEG/TIFF file; returns null for unreadable/unknown formats. */
31
31
  export declare function inspectImage(path: string): Promise<ImageInfo | null>;
32
- export declare function collectImageFiles(dirs: string[], exts: readonly string[], ignore?: readonly string[]): Promise<string[]>;
@@ -53,9 +53,6 @@ export declare const DTRPG_PRESET: VendorPreset;
53
53
  * structure, which only applies to a PDF/X build (`--format pdfx`).
54
54
  * - `validate.pdf.forbidTransparency: false` and `assets.allowAlpha: true` —
55
55
  * PDF/X forbids both; a plain PDF/HTML book has no such restriction.
56
- * - `validate.assets.allowedColorSpaces` includes RGB (not just CMYK/Grayscale)
57
- * since a generic book isn't assumed to be prepping for CMYK print-only
58
- * distribution.
59
56
  */
60
57
  export declare const BOOK_PRESET: VendorPreset;
61
58
  /**
@@ -64,7 +64,7 @@ export interface ReportAndCheckResult {
64
64
  */
65
65
  export declare function executeAndReport(args: ValidationExecutionArgs, format?: OutputFormat): Promise<ReportAndCheckResult>;
66
66
  /**
67
- * Derive the extra PDF summary lines (Max TAC / Fonts / Rasterized pages) shown
67
+ * Derive the extra PDF summary lines (Max TAC / Fonts) shown
68
68
  * after the standard report in text mode.
69
69
  *
70
70
  * These read the structured `code` / `data` fields on each CheckResult — NOT the
@@ -248,7 +248,7 @@
248
248
  },
249
249
  "ink": {
250
250
  "type": "object",
251
- "description": "Ink coverage limits used by the `pdf.print.ink-coverage` and `asset.image.tac-raster` checks.",
251
+ "description": "Ink coverage limits used by the `pdf.print.ink-coverage` check.",
252
252
  "properties": {
253
253
  "maxTac": {
254
254
  "type": "number",
@@ -297,7 +297,7 @@
297
297
  },
298
298
  "checks": {
299
299
  "type": "object",
300
- "description": "Per-check overrides, keyed by check id. This is an OPEN dictionary — any registered check id may appear, including ids contributed by plugins. Built-in ids are namespaced source.*, asset.*, pdf.* and heuristic.* (e.g. pdf.structure.qpdf, pdf.print.embedded-fonts, pdf.print.pdfx-markers, pdf.print.page-size, asset.image.color-space, source.markdownlint, heuristic.whitespace.text-density). A boolean value is shorthand for enabled/disabled.",
300
+ "description": "Per-check overrides, keyed by check id. This is an OPEN dictionary — any registered check id may appear, including ids contributed by plugins. Built-in ids are namespaced source.*, asset.*, pdf.* and heuristic.* (e.g. pdf.structure.qpdf, pdf.print.embedded-fonts, pdf.print.pdfx-markers, pdf.print.page-size, asset.image.file-size, source.markdownlint, heuristic.whitespace.text-density). A boolean value is shorthand for enabled/disabled.",
301
301
  "propertyNames": {
302
302
  "description": "A registered check id, e.g. \"pdf.print.embedded-fonts\"."
303
303
  },
@@ -392,18 +392,15 @@
392
392
  },
393
393
  "minImageDpi": {
394
394
  "type": "integer",
395
- "description": "Minimum effective image resolution in DPI (asset.image.resolution).",
396
- "default": 300,
395
+ "deprecated": true,
396
+ "description": "DEPRECATED and IGNORED (no-op). The source-image check it configured read DPI metadata, which says nothing about the printed size. The build warns about each image placed below 300 DPI, and `validate.pdf.minImageResolution` checks the built PDF. Kept only so older manifests still parse.",
397
397
  "minimum": 0
398
398
  },
399
399
  "allowedColorSpaces": {
400
400
  "type": "array",
401
- "description": "Color spaces images may use (asset.image.color-space). Preset defaults: dtrpg [\"CMYK\", \"Grayscale\"], book [\"RGB\", \"CMYK\", \"Grayscale\"].",
402
- "items": { "type": "string" },
403
- "examples": [
404
- ["CMYK", "Grayscale"],
405
- ["RGB", "CMYK", "Grayscale"]
406
- ]
401
+ "deprecated": true,
402
+ "description": "DEPRECATED and IGNORED (no-op). The source-image colour-space check it configured was removed: a PDF/X build converts every image to the output intent, and `pdf.print.color-spaces` checks the result. Kept only so older manifests still parse.",
403
+ "items": { "type": "string" }
407
404
  },
408
405
  "allowAlpha": {
409
406
  "type": "boolean",
@@ -7,17 +7,17 @@ import {
7
7
  TARGET_IDS,
8
8
  scaffoldExtension,
9
9
  scaffoldProject
10
- } from "./cli-stt6691c.js";
10
+ } from "./cli-j0drzb6f.js";
11
11
  import {
12
12
  resolveGhostscript
13
- } from "./cli-8gm4p42f.js";
13
+ } from "./cli-j79451n6.js";
14
14
  import {
15
15
  UsageError,
16
16
  rejectExtraPositionals,
17
17
  rejectUnknownFlags
18
- } from "./cli-nh16svye.js";
18
+ } from "./cli-sqkccnm7.js";
19
19
  import"./cli-ht1bcqdd.js";
20
- import"./cli-cyej3p9v.js";
20
+ import"./cli-b57adna7.js";
21
21
  import {
22
22
  EXIT_CODES
23
23
  } from "./cli-46ycxe6r.js";
@@ -2,17 +2,17 @@ import {
2
2
  executeValidation,
3
3
  publishTargetFor,
4
4
  reportMissingTools
5
- } from "./cli-stt6691c.js";
5
+ } from "./cli-j0drzb6f.js";
6
6
  import {
7
7
  log
8
- } from "./cli-8gm4p42f.js";
8
+ } from "./cli-j79451n6.js";
9
9
  import {
10
10
  UsageError,
11
11
  rejectExtraPositionals,
12
12
  rejectUnknownFlags
13
- } from "./cli-nh16svye.js";
13
+ } from "./cli-sqkccnm7.js";
14
14
  import"./cli-ht1bcqdd.js";
15
- import"./cli-cyej3p9v.js";
15
+ import"./cli-b57adna7.js";
16
16
  import {
17
17
  BuildError,
18
18
  EXIT_CODES
@@ -6,10 +6,10 @@ import {
6
6
  runBuild,
7
7
  splitOutPath,
8
8
  startPreviewServer
9
- } from "./cli-stt6691c.js";
9
+ } from "./cli-j0drzb6f.js";
10
10
  import {
11
11
  log
12
- } from "./cli-8gm4p42f.js";
12
+ } from "./cli-j79451n6.js";
13
13
  import {
14
14
  UsageError,
15
15
  parseFormat,
@@ -17,9 +17,9 @@ import {
17
17
  rejectExtraPositionals,
18
18
  rejectUnknownFlags,
19
19
  resolvePort
20
- } from "./cli-nh16svye.js";
20
+ } from "./cli-sqkccnm7.js";
21
21
  import"./cli-ht1bcqdd.js";
22
- import"./cli-cyej3p9v.js";
22
+ import"./cli-b57adna7.js";
23
23
  import {
24
24
  BuildError
25
25
  } from "./cli-46ycxe6r.js";
@@ -11,18 +11,18 @@ import {
11
11
  publishProviderFor,
12
12
  resolvePublishFormat,
13
13
  runPublish
14
- } from "./cli-stt6691c.js";
14
+ } from "./cli-j0drzb6f.js";
15
15
  import {
16
16
  FileTokenStore,
17
17
  log
18
- } from "./cli-8gm4p42f.js";
18
+ } from "./cli-j79451n6.js";
19
19
  import {
20
20
  UsageError,
21
21
  rejectExtraPositionals,
22
22
  rejectUnknownFlags
23
- } from "./cli-nh16svye.js";
23
+ } from "./cli-sqkccnm7.js";
24
24
  import"./cli-ht1bcqdd.js";
25
- import"./cli-cyej3p9v.js";
25
+ import"./cli-b57adna7.js";
26
26
  import {
27
27
  EXIT_CODES
28
28
  } from "./cli-46ycxe6r.js";
@@ -250,7 +250,17 @@ export interface GutterpressManifest {
250
250
  };
251
251
  assets?: {
252
252
  maxImageSize?: number;
253
+ /**
254
+ * @deprecated No-op. The source-image resolution check it configured
255
+ * read DPI metadata, which says nothing about the printed size; the
256
+ * build measures each placed image's printed DPI instead.
257
+ */
253
258
  minImageDpi?: number;
259
+ /**
260
+ * @deprecated No-op. The source-image colour-space check it configured
261
+ * was removed: a PDF/X build converts every image to the output intent,
262
+ * and `pdf.print.color-spaces` checks the result.
263
+ */
254
264
  allowedColorSpaces?: string[];
255
265
  allowAlpha?: boolean;
256
266
  approvedFontFiles?: string[];
@@ -366,8 +376,6 @@ export interface ResolvedConfig {
366
376
  };
367
377
  assets: {
368
378
  maxImageSize: number;
369
- minImageDpi: number;
370
- allowedColorSpaces: string[];
371
379
  allowAlpha: boolean;
372
380
  approvedFontFiles: string[];
373
381
  requireFontLicense: boolean;
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  executeAndReport
3
- } from "./cli-stt6691c.js";
3
+ } from "./cli-j0drzb6f.js";
4
4
  import {
5
5
  log
6
- } from "./cli-8gm4p42f.js";
6
+ } from "./cli-j79451n6.js";
7
7
  import {
8
8
  UsageError,
9
9
  rejectExtraPositionals,
10
10
  rejectUnknownFlags
11
- } from "./cli-nh16svye.js";
11
+ } from "./cli-sqkccnm7.js";
12
12
  import"./cli-ht1bcqdd.js";
13
- import"./cli-cyej3p9v.js";
13
+ import"./cli-b57adna7.js";
14
14
  import {
15
15
  BuildError,
16
16
  EXIT_CODES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gutterpress",
3
- "version": "0.11.20",
3
+ "version": "0.11.21",
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",
@@ -1,3 +0,0 @@
1
- import type { Check } from "../types";
2
- declare const check: Check;
3
- export default check;
@@ -1,3 +0,0 @@
1
- import type { Check } from "../types";
2
- declare const check: Check;
3
- export default check;
@@ -1,3 +0,0 @@
1
- import type { Check } from "../types";
2
- declare const check: Check;
3
- export default check;
@@ -1,3 +0,0 @@
1
- import type { Check } from "../types";
2
- declare const check: Check;
3
- export default check;