gutterpress 0.10.7 → 0.10.8

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 (59) hide show
  1. package/README.md +10 -3
  2. package/dist/README-aaqapam1.md +186 -0
  3. package/dist/README-mdq34cmb.md +155 -0
  4. package/dist/api/index.d.ts +6 -2
  5. package/dist/api/index.js +30 -2
  6. package/dist/{audit-19e2431j.js → audit-m3ce9pvq.js} +4 -4
  7. package/dist/base-ypqh9n7f.css +123 -0
  8. package/dist/book-ted3tzrp.css +58 -0
  9. package/dist/{build-gqqew2vr.js → build-qnecb3a1.js} +4 -4
  10. package/dist/callout-hv56m16h.md +7 -0
  11. package/dist/{cli-kzf64c2g.js → cli-1hx14cgk.js} +946 -401
  12. package/dist/{cli-s8q42x3r.js → cli-4vtgt2ng.js} +78 -2
  13. package/dist/{cli-h8ejbtyr.js → cli-vcv5ewqj.js} +1 -1
  14. package/dist/{cli-pvk2s9d7.js → cli-vxf151ea.js} +1 -1
  15. package/dist/cli.js +16 -16
  16. package/dist/components-0mmswvvm.yaml +51 -0
  17. package/dist/components-aam0fe2z.css +94 -0
  18. package/dist/{doctor-3ccz35yz.js → doctor-qvqye1wd.js} +2 -2
  19. package/dist/{engine-pb6h089e.js → engine-daad33qn.js} +1 -1
  20. package/dist/{engine-88mynx9a.js → engine-db8632w6.js} +2 -2
  21. package/dist/expected-ycmacem8.html +9 -0
  22. package/dist/fixture-2qnyqgb5.md +10 -0
  23. package/dist/gutterpress-m98e2w2d.json +8 -0
  24. package/dist/gutterpress-x2ycdsb8.json +17 -0
  25. package/dist/{index-837htyjy.js → index-9pbaznww.js} +78 -2
  26. package/dist/{index-r4ny4fyr.js → index-dfw8hn8q.js} +1147 -523
  27. package/dist/{index-a0xpm188.js → index-rpt4vtby.js} +1 -1
  28. package/dist/index.js +31 -3
  29. package/dist/lib/build-runner.d.ts +52 -0
  30. package/dist/lib/extension-manifest.d.ts +164 -0
  31. package/dist/lib/extension-scaffold.d.ts +65 -0
  32. package/dist/lib/lint-runner.d.ts +12 -0
  33. package/dist/lib/markdown/assemble.d.ts +12 -0
  34. package/dist/lib/markdown/markers.d.ts +20 -0
  35. package/dist/lib/markdown/plugins.d.ts +1 -1
  36. package/dist/lib/markdown/renderer.d.ts +99 -0
  37. package/dist/lib/snippets.d.ts +121 -5
  38. package/dist/lib/theme-import.d.ts +8 -4
  39. package/dist/lib/theme-manager.d.ts +52 -39
  40. package/dist/lib/validation-exec.d.ts +12 -0
  41. package/dist/{lint-mpz7vfc8.js → lint-3p1s8agk.js} +4 -4
  42. package/dist/{manifest.schema-kwnrwv8b.json → manifest.schema-1q35yxs9.json} +2 -2
  43. package/dist/{new-nbrpsw7t.js → new-xffarp40.js} +111 -6
  44. package/dist/package-rm9d2tht.json +29 -0
  45. package/dist/page-rules-nsj3aw42.css +128 -0
  46. package/dist/page-templates-7md4ev7d.css +60 -0
  47. package/dist/{plugin-gg5mk26h.js → plugin-b05ck7zd.js} +4 -4
  48. package/dist/plugin-m2w7g47v.css +114 -0
  49. package/dist/plugin.js-aszz0zgh.tpl +172 -0
  50. package/dist/plugin.test.js-mv0ghv5n.tpl +232 -0
  51. package/dist/{preflight-jnmd4mg2.js → preflight-z6xpty9w.js} +4 -4
  52. package/dist/{preview-hsr9d12d.js → preview-xa1n7why.js} +4 -4
  53. package/dist/{publish-pcrrn6fd.js → publish-zgmr99kd.js} +4 -4
  54. package/dist/render.js +275 -8
  55. package/dist/term-box-4y0w7y32.md +7 -0
  56. package/dist/{theme-6fa0yjzq.js → theme-m9dtxkhj.js} +4 -4
  57. package/dist/tokens-e4xk3x4v.css +86 -0
  58. package/dist/{validate-7n25fx0g.js → validate-43hqgzz5.js} +4 -4
  59. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ @term-box note label="{{label}}"
2
+
3
+ {{body}}
4
+
5
+ Define a phrase inline with [[double brackets]] anywhere in the prose.
6
+
7
+ @end-term-box
@@ -11,16 +11,16 @@ import {
11
11
  listProjectThemes,
12
12
  removeProjectTheme,
13
13
  revertTheme
14
- } from "./cli-kzf64c2g.js";
15
- import"./cli-pvk2s9d7.js";
14
+ } from "./cli-1hx14cgk.js";
15
+ import"./cli-vxf151ea.js";
16
16
  import {
17
17
  UsageError,
18
18
  exitForUsage,
19
19
  rejectExtraPositionals,
20
20
  rejectUnknownFlags,
21
21
  resolveProjectDir
22
- } from "./cli-h8ejbtyr.js";
23
- import"./cli-s8q42x3r.js";
22
+ } from "./cli-vcv5ewqj.js";
23
+ import"./cli-4vtgt2ng.js";
24
24
  import"./cli-c41yr7he.js";
25
25
  import {
26
26
  EXIT_CODES
@@ -0,0 +1,86 @@
1
+ /* ===========================================================================
2
+ * {{NAME}} — 1. TOKENS
3
+ *
4
+ * OWNS
5
+ * `:root` custom properties, and nothing else. The palette, the type scale,
6
+ * the spacing scale, the measure. This is the file a non-technical author
7
+ * edits to rebrand the whole book, and the file the desktop app's Design
8
+ * panel reads (`gutterpress.json` points `tokensFile` here).
9
+ *
10
+ * MUST NOT CONTAIN
11
+ * - Any selector other than `:root`. The moment a rule here targets `h1`,
12
+ * "change the brand" and "change the look of a heading" stop being
13
+ * separable, and the Design panel starts showing settings that do not
14
+ * do what they say.
15
+ * - `var()` references to component tokens. Tokens flow one way: brand →
16
+ * component. A brand token that depends on a component token is a cycle
17
+ * waiting to happen.
18
+ * - Anything a specific book needs. Book-specific values go in book.css.
19
+ *
20
+ * LOADS FIRST, and therefore declares the layer order for the whole stack.
21
+ * ======================================================================== */
22
+
23
+ /* ---------------------------------------------------------------------------
24
+ * THE LAYER ORDER. Declared once, here, because this sheet loads first.
25
+ *
26
+ * Each file below puts everything it owns inside the matching layer, so the
27
+ * cascade is settled by THIS line rather than by which file `styles:` happens
28
+ * to list last. Split a file in two, reorder the manifest, add a sheet in the
29
+ * middle — who wins does not change.
30
+ *
31
+ * Two things worth knowing before you edit this:
32
+ *
33
+ * - These layers are unlayered RELATIVE TO Gutterpress core (which puts its
34
+ * own CSS in `gp.marker` and `gp.vocab`). So every rule here still beats
35
+ * core, exactly as it did before layers existed. Declaring an order only
36
+ * changes how YOUR OWN files settle ties with each other.
37
+ *
38
+ * - A rule left OUTSIDE all of these layers is fully unlayered and beats
39
+ * every layered rule here, at any specificity. That is the one real trap:
40
+ * adopt the convention per whole sheet, never for a few rules inside an
41
+ * otherwise plain file.
42
+ * ------------------------------------------------------------------------ */
43
+ @layer tokens, base, components, templates, pages, book;
44
+
45
+ @layer tokens {
46
+ :root {
47
+ /* -- Palette ------------------------------------------------------- */
48
+ --{{PREFIX}}ink: #1a1a1a;
49
+ --{{PREFIX}}ink-soft: #55575c;
50
+ --{{PREFIX}}paper: #ffffff;
51
+ --{{PREFIX}}rule: #d8d8d8;
52
+ --{{PREFIX}}accent: #2f5d8a;
53
+ --{{PREFIX}}accent-warm: #9a5b12;
54
+
55
+ /* -- Typefaces ----------------------------------------------------- */
56
+ /* Keep a real fallback stack: a print build that cannot find a face
57
+ silently substitutes, and the substitution is what gets printed. */
58
+ --{{PREFIX}}font-body: "Iowan Old Style", Georgia, "Times New Roman", serif;
59
+ --{{PREFIX}}font-display: var(--{{PREFIX}}font-body);
60
+ --{{PREFIX}}font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
61
+
62
+ /* -- Type scale ---------------------------------------------------- */
63
+ /* Absolute units, because this is print: 1pt is a physical size on the
64
+ page, whereas `rem` is whatever the viewport decided. */
65
+ --{{PREFIX}}fs-body: 10.5pt;
66
+ --{{PREFIX}}fs-small: 9pt;
67
+ --{{PREFIX}}fs-h1: 24pt;
68
+ --{{PREFIX}}fs-h2: 16pt;
69
+ --{{PREFIX}}fs-h3: 12.5pt;
70
+ --{{PREFIX}}leading: 1.45;
71
+
72
+ /* -- Spacing scale ------------------------------------------------- */
73
+ --{{PREFIX}}space-1: 0.25em;
74
+ --{{PREFIX}}space-2: 0.5em;
75
+ --{{PREFIX}}space-3: 1em;
76
+ --{{PREFIX}}space-4: 1.75em;
77
+
78
+ /* -- Page geometry ------------------------------------------------- */
79
+ /* Consumed by page-rules.css. Kept here so trim size and margins are
80
+ editable next to the rest of the brand, not buried in an @page block. */
81
+ --{{PREFIX}}page-margin-top: 0.75in;
82
+ --{{PREFIX}}page-margin-outer: 0.75in;
83
+ --{{PREFIX}}page-margin-bottom: 0.85in;
84
+ --{{PREFIX}}page-margin-inner: 0.9in;
85
+ }
86
+ }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  executeAndReport
3
- } from "./cli-kzf64c2g.js";
3
+ } from "./cli-1hx14cgk.js";
4
4
  import {
5
5
  log
6
- } from "./cli-pvk2s9d7.js";
6
+ } from "./cli-vxf151ea.js";
7
7
  import {
8
8
  UsageError,
9
9
  rejectExtraPositionals,
10
10
  rejectUnknownFlags
11
- } from "./cli-h8ejbtyr.js";
12
- import"./cli-s8q42x3r.js";
11
+ } from "./cli-vcv5ewqj.js";
12
+ import"./cli-4vtgt2ng.js";
13
13
  import"./cli-c41yr7he.js";
14
14
  import {
15
15
  EXIT_CODES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gutterpress",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
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",