gutterpress 0.11.20 → 0.11.21-alpha.1
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 +1 -1
- package/dist/api/index.js +2 -2
- package/dist/{build-t49xka15.js → build-jd5ky1xh.js} +4 -4
- package/dist/checks/asset/extensions.d.ts +9 -5
- package/dist/checks/asset/index.d.ts +0 -3
- package/dist/checks/pdf/index.d.ts +0 -1
- package/dist/checks/types.d.ts +8 -1
- package/dist/{cli-8gm4p42f.js → cli-3zab895b.js} +2 -2
- package/dist/{cli-nh16svye.js → cli-a8azwpgj.js} +1 -1
- package/dist/{cli-cyej3p9v.js → cli-b57adna7.js} +5 -2
- package/dist/{cli-stt6691c.js → cli-xvtqsqy3.js} +268 -429
- package/dist/cli.js +12 -12
- package/dist/{doctor-53hq2v2n.js → doctor-0kgq1ns6.js} +2 -2
- package/dist/{engine-5fw55dfb.js → engine-0b8bt05n.js} +2 -2
- package/dist/{engine-4rkhv5ga.js → engine-x07q927h.js} +1 -1
- package/dist/{ext-bvgfwtk7.js → ext-f90yv3dv.js} +4 -4
- package/dist/{gutterpress-agent-yvd8w8my.js → gutterpress-agent-d29ry3ak.js} +5 -1
- package/dist/{index-379qafjq.js → index-5qam734s.js} +442 -605
- package/dist/{index-crys9951.js → index-mr72vt8n.js} +2 -2
- package/dist/{index-yw16cfm8.js → index-t7r8g75c.js} +4 -1
- package/dist/index.js +3 -3
- package/dist/lib/asset-inline.d.ts +2 -0
- package/dist/lib/image-inspect.d.ts +0 -1
- package/dist/lib/presets.d.ts +0 -3
- package/dist/lib/validation-exec.d.ts +1 -1
- package/dist/{manifest.schema-c4wfpg6g.json → manifest.schema-n292sb77.json} +7 -10
- package/dist/{new-jzpneexb.js → new-fc7nwxea.js} +4 -4
- package/dist/{preflight-c0f0s3y1.js → preflight-hwvj3k3d.js} +4 -4
- package/dist/{preview-x6wn3vdh.js → preview-ktqjnf3d.js} +4 -4
- package/dist/{publish-rskr6x6b.js → publish-nf3d5cbv.js} +4 -4
- package/dist/schema/manifest.types.d.ts +10 -2
- package/dist/{validate-88w89ye7.js → validate-7aywy6m4.js} +4 -4
- package/package.json +1 -1
- package/dist/checks/asset/image-color-space.d.ts +0 -3
- package/dist/checks/asset/image-resolution.d.ts +0 -3
- package/dist/checks/asset/image-tac.d.ts +0 -3
- package/dist/checks/pdf/rasterized-pages.d.ts +0 -3
|
@@ -148,7 +148,7 @@ import { fileURLToPath } from "node:url";
|
|
|
148
148
|
var favicon_default = "./favicon-272ga6y0.ico";
|
|
149
149
|
|
|
150
150
|
// src/assets/manifest.schema.json
|
|
151
|
-
var manifest_schema_default = "./manifest.schema-
|
|
151
|
+
var manifest_schema_default = "./manifest.schema-n292sb77.json";
|
|
152
152
|
|
|
153
153
|
// src/assets/preview/scripts/preview-interface.js
|
|
154
154
|
var preview_interface_default = "./preview-interface-nnmrxyqm.js";
|
|
@@ -166,7 +166,7 @@ var CGATS21_CRPC1_default = "./CGATS21_CRPC1-g0e3k7kr.icc";
|
|
|
166
166
|
var gutterpress_viewer_default = "./gutterpress-viewer-w7njnkj7.js";
|
|
167
167
|
|
|
168
168
|
// src/assets/engine/gutterpress-agent.js
|
|
169
|
-
var gutterpress_agent_default = "./gutterpress-agent-
|
|
169
|
+
var gutterpress_agent_default = "./gutterpress-agent-d29ry3ak.js";
|
|
170
170
|
|
|
171
171
|
// src/assets/templates/book/manifest.yaml
|
|
172
172
|
var manifest_default = "./manifest-n1gh3qw5.yaml";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
stringValueAt,
|
|
20
20
|
toFolioPage,
|
|
21
21
|
wantsRecto
|
|
22
|
-
} from "./index-
|
|
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-
|
|
157
|
+
} from "./index-5qam734s.js";
|
|
158
158
|
import"./index-ht1bcqdd.js";
|
|
159
159
|
import {
|
|
160
160
|
BUILD_DIAGNOSTIC_CODES
|
|
161
|
-
} from "./index-
|
|
161
|
+
} from "./index-t7r8g75c.js";
|
|
162
162
|
import {
|
|
163
163
|
BuildError
|
|
164
|
-
} from "./index-
|
|
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[]>;
|
package/dist/lib/presets.d.ts
CHANGED
|
@@ -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
|
|
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`
|
|
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.
|
|
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
|
-
"
|
|
396
|
-
"
|
|
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
|
-
"
|
|
402
|
-
"
|
|
403
|
-
"
|
|
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-
|
|
10
|
+
} from "./cli-xvtqsqy3.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveGhostscript
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-3zab895b.js";
|
|
14
14
|
import {
|
|
15
15
|
UsageError,
|
|
16
16
|
rejectExtraPositionals,
|
|
17
17
|
rejectUnknownFlags
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-a8azwpgj.js";
|
|
19
19
|
import"./cli-ht1bcqdd.js";
|
|
20
|
-
import"./cli-
|
|
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-
|
|
5
|
+
} from "./cli-xvtqsqy3.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-3zab895b.js";
|
|
9
9
|
import {
|
|
10
10
|
UsageError,
|
|
11
11
|
rejectExtraPositionals,
|
|
12
12
|
rejectUnknownFlags
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-a8azwpgj.js";
|
|
14
14
|
import"./cli-ht1bcqdd.js";
|
|
15
|
-
import"./cli-
|
|
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-
|
|
9
|
+
} from "./cli-xvtqsqy3.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-3zab895b.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-
|
|
20
|
+
} from "./cli-a8azwpgj.js";
|
|
21
21
|
import"./cli-ht1bcqdd.js";
|
|
22
|
-
import"./cli-
|
|
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-
|
|
14
|
+
} from "./cli-xvtqsqy3.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-3zab895b.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-a8azwpgj.js";
|
|
24
24
|
import"./cli-ht1bcqdd.js";
|
|
25
|
-
import"./cli-
|
|
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-
|
|
3
|
+
} from "./cli-xvtqsqy3.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-3zab895b.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-a8azwpgj.js";
|
|
12
12
|
import"./cli-ht1bcqdd.js";
|
|
13
|
-
import"./cli-
|
|
13
|
+
import"./cli-b57adna7.js";
|
|
14
14
|
import {
|
|
15
15
|
BuildError,
|
|
16
16
|
EXIT_CODES
|
package/package.json
CHANGED