@taprootio/site-authoring 0.55.0 → 0.59.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.
Files changed (65) hide show
  1. package/README.md +91 -22
  2. package/package.json +2 -2
  3. package/src/api.js +90 -17
  4. package/src/authors-contract.js +71 -3
  5. package/src/block-flow.js +4 -2
  6. package/src/changelog.json +104 -0
  7. package/src/chrome-additions.js +106 -0
  8. package/src/chrome-features.js +43 -10
  9. package/src/chrome-input.js +137 -30
  10. package/src/chrome-report.js +4 -2
  11. package/src/cli.js +144 -38
  12. package/src/constants.js +1 -0
  13. package/src/content/button-styles.js +27 -0
  14. package/src/content/components.js +76 -10
  15. package/src/content/free-form-section-registry.json +9 -0
  16. package/src/content/free-form-sections.js +55 -16
  17. package/src/content/markdown.js +133 -56
  18. package/src/content/media-presentation.js +37 -0
  19. package/src/content/tiptap-prosemirror.ts +26 -10
  20. package/src/credentials.js +2 -1
  21. package/src/delivery-check.js +10 -2
  22. package/src/font-catalog.js +9 -6
  23. package/src/footer-content.js +1 -1
  24. package/src/footer-contract.js +3 -0
  25. package/src/footer-draft-hash.js +1 -0
  26. package/src/heading-outline.js +94 -6
  27. package/src/image-description-contract.js +5 -3
  28. package/src/image-description-write.js +26 -0
  29. package/src/index.js +1 -0
  30. package/src/output.js +2 -1
  31. package/src/page-metadata.js +15 -13
  32. package/src/page-structure-checks.js +14 -25
  33. package/src/placed-image-ids.js +42 -17
  34. package/src/presentation-reference.js +63 -18
  35. package/src/problems.js +147 -4
  36. package/src/reference-help.js +122 -60
  37. package/src/site-check-findings.js +2 -3
  38. package/src/site-check-rules.json +0 -1
  39. package/src/site-health-findings.js +7 -9
  40. package/src/site-health-image-checks.js +4 -1
  41. package/src/site-health-precheck.js +23 -6
  42. package/src/site-navigation-groups.js +16 -0
  43. package/src/status-warning-paints.js +175 -0
  44. package/src/template-token-reach.json +13 -18
  45. package/src/theme-proposals.js +143 -55
  46. package/src/theme-resolve.js +14 -1
  47. package/src/theme-validation.js +70 -38
  48. package/src/token-reach.js +20 -0
  49. package/src/typed-page-reference.js +25 -3
  50. package/src/typed-pages.js +73 -14
  51. package/src/verbs/authors.js +198 -33
  52. package/src/verbs/changelog.js +23 -2
  53. package/src/verbs/delivery-check.js +43 -9
  54. package/src/verbs/index.js +4 -2
  55. package/src/verbs/media-images.js +4 -4
  56. package/src/verbs/pages-push.js +138 -67
  57. package/src/verbs/plan.js +28 -20
  58. package/src/verbs/pull.js +226 -26
  59. package/src/verbs/theme-push.js +59 -15
  60. package/src/verbs/theme-resolve.js +109 -11
  61. package/src/verbs/validate.js +97 -16
  62. package/src/workspace-check.js +4 -4
  63. package/src/workspace-context-usage.js +180 -0
  64. package/src/workspace.js +48 -1
  65. package/test/fixtures/default-site-theme.json +1 -1
package/README.md CHANGED
@@ -197,9 +197,9 @@ does not have), a severity, the file, and the value found (and a `detail` for
197
197
  some); a warning never refuses. For a free-form page the rules also read its headings,
198
198
  images and links the way the publisher does: `seo.h1_missing` when no `#` heading,
199
199
  banner title or hero title is the page's `<h1>`; `seo.h1_demoted` when a `#` heading
200
- publishes as an `<h2>` because the banner's overlay text, a hero title or an earlier
201
- `#` heading already is the `<h1>` (`detail` says which); `seo.h1_multiple` for a hero
202
- title after the `<h1>`; `seo.heading_renumbered` and `seo.heading_before_title` for
200
+ or a hero title publishes as an `<h2>` because the banner's overlay text, a hero title
201
+ or an earlier `#` heading already is the `<h1>` (`detail` says which);
202
+ `seo.heading_renumbered` and `seo.heading_before_title` for
203
203
  headings published at another level; and `a11y.link_text_empty`. Image-default
204
204
  completeness (`a11y.image_default_missing`) needs the site's own image records,
205
205
  so plain `validate` lists it in `siteChecks.skipped`, with `siteChecks.imageCheckReason`
@@ -479,7 +479,7 @@ Markdown subset with `title`, `path`, and `description` front matter, or
479
479
  `pages/<name>.pm.json` as a ProseMirror document — and pull never writes a
480
480
  generated `.pm.json` beside a tracked `.md`. For a page tracked as Markdown
481
481
  the site's own document is kept as internal state under
482
- `.taproot-site-state/`, which is never a page source and never pushed. A tracked
482
+ `.taproot-site-state/`, which is never a page source and never pushed; leave it out of version control. A tracked
483
483
  Markdown page conflicts, with a `pages.pull_conflict` refusal before anything under
484
484
  `pages/` changes and both recovery paths named, when the site moved: its stored-state
485
485
  revision moved, or its display date moved for a page type that has one. A `.pm.json`
@@ -493,18 +493,20 @@ a category override does not move it. The `Differs at:` paths of a refusal expla
493
493
  and never decide it (an empty list can mean a change to the title, path, description,
494
494
  cover image or display date).
495
495
  Pull before creating a new JSON source. Once a new page is declared with a
496
- file, title or path but has no server page ID, save it with `pages push` before
497
- pulling again, or back up both the source and its manifest entry and move them
498
- out of the workspace. Pull refuses these pending entries rather than dropping
499
- their metadata. It also refuses an untracked legal or unreadable JSON source
496
+ file, title or path but has no server page ID, pull keeps such a pending entry and its file as they are and
497
+ lists it as `keptPendingPages`; save it with `pages push` (a legal page needs
498
+ `taproot-site login --legal-drafts`, then `taproot-site --legal-drafts pages push`).
499
+ Pull refuses instead, changing nothing, when the file is missing or is not a
500
+ page source, a page on the site holds the same path, another page's tracked
501
+ source is the same file, or the page list was truncated. It also refuses an untracked legal or unreadable JSON source
500
502
  that would be replaced by a new remote page.
501
503
 
502
504
  Pages are not only free-form. A source chooses its template with `template:` in
503
505
  its front matter — `article`, `recipe`, `album` or `place-review`; free-form is
504
506
  the default — and `pull` writes the other four as a `.pm.json` wrapper
505
- (`{ "template", "displayDate", "coverImageId", "data" }`) that `pages push`
507
+ (`{ "template", "displayDate", "displayAuthor", "showOnProfile", "coverImageId", "data" }`) that `pages push`
506
508
  sends back unchanged. Typed pages also carry `displayDate` (so an import keeps
507
- its original publication date) and `coverImage`, which the site requires to be an
509
+ its original publication date), `displayAuthor` and `showOnProfile` (below) and `coverImage`, which the site requires to be an
508
510
  image the page itself uses (place it in the body too; `pages.cover_image_unused`). A page's template is fixed when
509
511
  it is created: a source for another template is refused with
510
512
  `pages.template_immutable`. `taproot-site help page <type>` gives each
@@ -597,18 +599,46 @@ kinds of person, named by one string:
597
599
  - a **site author without a Taproot account** — one of an imported blog's
598
600
  authors, say — named by handle (`jane-doe`: lowercase letters, digits and
599
601
  single hyphens, at most 64 characters, fixed when the author is created). A
600
- site author's name appears on the byline and in the page's structured data;
601
- there is no profile link or follow button, because there is no account;
602
+ site author's name appears on the byline and in the page's structured data.
603
+ The byline can link to a page on the site or to a web address and can show an
604
+ image from the media library; there is no follow button, because there is no
605
+ account;
602
606
  - a **site member who can create pages**, named by email address.
603
607
 
604
608
  `authors list` prints both and rewrites `authors.json` (`pull` writes it too).
605
609
  `authors add jane-doe --name "Jane Doe" [--email jane@example.com]` creates a
606
610
  site author; `--email` is kept private (never published, never listed) so the
607
- person can be linked to a Taproot account later. Adding a handle the site
608
- already has under the same name succeeds and reports `existing: true`, so a
609
- script can repeat itself; a different name for a taken handle is refused
610
- (`authors.handle_taken`), naming the one the site has. `authors.json` holds the
611
- members' email addresses, so keep it out of a public repository.
611
+ person can be linked to a Taproot account later. `--link-page <path>` links the
612
+ byline to a page on the site, named by the path `pull` recorded in
613
+ `.taproot-site-manifest.json` (`/` for the home page) or by its `resourceId`;
614
+ `--link-url <address>` links it to an absolute `http` or `https` address. A
615
+ byline links to one place, so passing both is refused (`authors.link_conflict`).
616
+ `--image <media path or image id>` shows an image from the site's media library
617
+ beside the byline; a path is resolved through `.taproot-site-media.json`, as a
618
+ `coverImage` is. A page or media path the workspace does not record is refused
619
+ before any request (`authors.link_page_unknown`, `authors.image_unknown`).
620
+
621
+ `authors set <handle>` changes an author's `--name`, `--email`, link or image
622
+ and sends only the options passed, so everything else keeps its stored value.
623
+ `--no-link`, `--no-image` and `--no-email` remove the link, the image and the
624
+ private address. With no option it is refused (`authors.set_empty`), as are
625
+ options that contradict each other (`authors.link_conflict`,
626
+ `authors.image_conflict`, `authors.email_conflict`), and a handle the site does
627
+ not have is `authors.handle_unknown`. Changing the name, link or image of an
628
+ author who appears on published pages queues one production deployment, so the
629
+ verb asks a signed-in credential for the deployments capability as well as
630
+ content, and a caller who may not deploy is refused
631
+ (`authors.deployment_refused`), as is a change while a deployment is running.
632
+
633
+ Adding a handle the site already has under the same name succeeds and reports
634
+ `existing: true`, so a script can repeat itself. The name is always compared; a
635
+ link or image is compared only when its option was passed, so repeating an
636
+ import script after someone added a link still succeeds. A name, link or image
637
+ that differs is refused (`authors.handle_taken`) and points at `authors set`.
638
+ `authors.json` holds the members' email addresses, so keep it out of a public
639
+ repository; it also records each site author's `linkPageResourceId`, `linkUrl`
640
+ and `imageId` when they have one, and is a read-only copy of the site that
641
+ `pull` and the `authors` verbs refresh.
612
642
 
613
643
  A page names its author with `author: jane-doe` in its front matter (any
614
644
  template), or, for a `.pm.json` page, `pages meta set <path> --author jane-doe`.
@@ -623,6 +653,45 @@ current list once (`pages push` rewrites `authors.json` with it) and refuse
623
653
  (`pages.author_unknown`) only a name the site really lacks. A member who cannot
624
654
  create pages is `pages.author_unknown` as well, with the same wording.
625
655
 
656
+ `displayAuthor` is a typed page's byline under a pen name: article,
657
+ album, recipe and place-review pages take `displayAuthor: jane-doe` in front
658
+ matter or `"displayAuthor": "jane-doe"` in the `.pm.json` document, naming a
659
+ site author by handle (`none` is a handle like any other; a member's email
660
+ address is refused with `pages.display_author_invalid`). The published byline
661
+ then shows that author, with their link and image, and carries no trace of the
662
+ member who wrote the page, who also loses the page from their Taproot profile.
663
+ Unlike `author` it can be set, replaced and cleared at any time: an empty value
664
+ (`displayAuthor: ""`) clears it and an absent key leaves the site's value alone.
665
+ A bare `displayAuthor:` line is refused (`pages.display_author_invalid`), so an
666
+ unfinished line cannot clear a pen name.
667
+ Set it before the page is first published when it must be kept apart from the
668
+ member, because a page already published under the member's name was public
669
+ with it. A handle missing from `authors.json` is only warned about offline
670
+ (`pages.display_author_unverified`); `pages push` and `plan` check the site's
671
+ list once and refuse an unknown handle (`pages.display_author_unknown`). Like
672
+ `displayDate` it is not covered by the body revision: `pull` refreshes an
673
+ unedited `.pm.json` document with the site's value and keeps a Markdown source,
674
+ and a push that would overwrite a display author that changed on the site since
675
+ the last pull is refused with `pages.push_conflict`. A place review with a
676
+ display author raises no missing-reviewer warning, and a page credited only
677
+ through `displayAuthor` is not listed in `pages.authorless`.
678
+
679
+ `showOnProfile` (article, album, recipe and place-review pages) says whether
680
+ the page may appear on its author's Taproot profile. It matters only for a
681
+ page a profile can list: one written by a member, with no display author. Such
682
+ a page is on the profile when new, unless the source says `showOnProfile: false`,
683
+ which keeps the page off the profile while it keeps its byline and its profile link; `showOnProfile: true` over a page the
684
+ site excludes puts it back. Only the words `true` and `false` are accepted in
685
+ front matter and a JSON boolean in a `.pm.json` document; anything else,
686
+ including a quoted JSON string, is refused by `validate` and `pages push`
687
+ (`pages.show_on_profile_invalid`). The profile changes after the page is
688
+ published and its release goes live, not when the page is saved. To keep a page
689
+ apart from the member entirely, give it a `displayAuthor`. Like `displayDate`
690
+ it is left alone when the key is absent, a pulled `.pm.json` document carries
691
+ it only when it is `false`, `pull` refreshes an unedited document and keeps a
692
+ Markdown source, and a push that would overwrite a value that changed on the
693
+ site since the last pull is refused with `pages.push_conflict`.
694
+
626
695
  The CLI only fills a page that has no author: a page that already has a
627
696
  different one is refused (`pages.author_conflict`), by the CLI from what the
628
697
  last pull recorded and by Taproot, and naming the author a page already has
@@ -1128,8 +1197,8 @@ once).
1128
1197
  1000, here and by Taproot.
1129
1198
  - Generated pages (the published archive, the map, folders) pull as update-only sources
1130
1199
  whose custom title, breadcrumb, description and introduction you can edit.
1131
- - Pages are authorless by default. `authors list`, `authors add` and
1132
- `authors.json` name a member who can create pages or a site author without a
1200
+ - Pages are authorless by default. `authors list`, `authors add`, `authors set`
1201
+ and `authors.json` name a member who can create pages or a site author without a
1133
1202
  Taproot account; `author:` front matter or `pages meta set --author` credits
1134
1203
  one on a page that has none, and an author is never replaced from the CLI.
1135
1204
  - `redirects check` and `deploy --staging` report `routeCheck`, `redirects` and
@@ -1270,9 +1339,9 @@ exits 0 whenever it reads the report, whatever the findings.
1270
1339
  a `fix` for the rule. `imageFindings` are one for each image with no default
1271
1340
  description: `imageId`, `name`, up to ten `affectedPages` (with
1272
1341
  `affectedPageCount` for the total), and a `fix`.
1273
- - An image `fix` is the exact command, with the description revision read from
1274
- the site and the alt text the workspace's own pages place:
1275
- `taproot-site media images describe <id> --description='<alt>' --expected-revision <n> --if-missing`.
1342
+ - An image `fix` is the exact command, carrying the alt text the workspace's own
1343
+ pages place; the CLI reads the description revision itself when it runs:
1344
+ `taproot-site media images describe <id> --description='<alt>' --if-missing`.
1276
1345
  The text is single-quoted for a POSIX shell. When no placement gives a usable
1277
1346
  description (none, over 1000 characters, or with control characters), the
1278
1347
  finding says `needsDescription: true` and its `fix` is a sentence; write the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taprootio/site-authoring",
3
- "version": "0.55.0",
3
+ "version": "0.59.0",
4
4
  "description": "Taproot site authoring CLI: sign in once in the browser, then pull, validate, push, preview, approve, and deploy a site from the terminal",
5
5
  "type": "module",
6
6
  "license": "ISC",
@@ -29,7 +29,7 @@
29
29
  "test/fixtures/default-site-theme.json"
30
30
  ],
31
31
  "dependencies": {
32
- "@taprootio/espalier": "7.5.0",
32
+ "@taprootio/espalier": "7.8.0",
33
33
  "mediabunny": "1.61.1"
34
34
  },
35
35
  "scripts": {
package/src/api.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  import { KEY_PREFIX } from "./credentials.js";
32
32
  import { CAPABILITY_LEGAL_DRAFTS, SITE_AUTHORING_CAPABILITIES } from "./capabilities.js";
33
33
  import { isCanonicalUuid, normalizePreviewDiagnostic, sanitizeDiagnostic, SiteAuthoringError } from "./errors.js";
34
- import { normalizeAuthorListing, parseAuthorReference } from "./authors-contract.js";
34
+ import { normalizeAuthorHandle, normalizeAuthorListing, parseAuthorReference } from "./authors-contract.js";
35
35
  import { docsPublicationModeFromWire, siteKindFromWire, surfaceFromWire } from "./surface.js";
36
36
  import {
37
37
  DEFAULT_REDIRECT_STATUS,
@@ -332,6 +332,12 @@ function enumValue(value, allowed, zero, code, field) {
332
332
  return value;
333
333
  }
334
334
 
335
+ // TR01420: an absent count is null, never 0, so a caller can tell "not reported" from "none".
336
+ function optionalCount(value) {
337
+ const numeric = typeof value === "string" && value !== "" ? Number(value) : value;
338
+ return Number.isSafeInteger(numeric) && numeric >= 0 ? numeric : null;
339
+ }
340
+
335
341
  function safeCount(value) {
336
342
  const numeric = typeof value === "string" ? Number(value) : value;
337
343
  return Number.isSafeInteger(numeric) && numeric >= 0 ? numeric : 0;
@@ -536,6 +542,19 @@ export function isGonePage(summary) {
536
542
  return summary.status === PAGE_STATUS_DELETED || summary.removalStaged === true;
537
543
  }
538
544
 
545
+ /**
546
+ * The one inbound conversion of the wire's `excludeFromProfile` (absent means
547
+ * false) to the workspace's positive `showOnProfile` (TR01403). Pull, the push
548
+ * baseline and the push guard all compare in this sense.
549
+ */
550
+ export function showOnProfileOf(wire) {
551
+ return wire?.excludeFromProfile !== true;
552
+ }
553
+
554
+ function displayAuthorOf(summary) {
555
+ return typeof summary.displayAuthor === "string" ? normalizeAuthorHandle(summary.displayAuthor) ?? "" : "";
556
+ }
557
+
539
558
  export function normalizePageSummary(value) {
540
559
  const summary = requireObject(value, "api.page_contract", "page summary");
541
560
  const hasAuthor = typeof summary.authorDisplayName === "string" && summary.authorDisplayName.trim() !== "";
@@ -563,6 +582,13 @@ export function normalizePageSummary(value) {
563
582
  // The page's calendar date, empty when it has none. It is not part of
564
583
  // `bodyRevision`, so a typed page's push guard compares it separately.
565
584
  displayDate: typeof summary.displayDate === "string" ? summary.displayDate : "",
585
+ // The site author the byline shows instead of the member who wrote the page
586
+ // (TR01402): a folded handle, empty for none. Like the date it is not part
587
+ // of `bodyRevision`. Only a site-authoring credential sees it, and an older
588
+ // Taproot sends none.
589
+ displayAuthor: displayAuthorOf(summary),
590
+ // Whether the page may appear on its author's Taproot profile (TR01403).
591
+ showOnProfile: showOnProfileOf(summary),
566
592
  // The name the page's author goes by in a write: a site author's handle or
567
593
  // a member's email address, folded. Empty for a page with no author, for a
568
594
  // former member's page, and against a Taproot that predates authors
@@ -572,7 +598,8 @@ export function normalizePageSummary(value) {
572
598
  // say: it is also empty for an author this credential may not name.
573
599
  hasAuthor,
574
600
  ...(summary.templateType === "TEMPLATE_TYPE_PLACE_REVIEW" ? {
575
- reviewAuthorMissing: !hasAuthor && summary.memberAccess !== "PAGE_MEMBER_ACCESS_MEMBER_ONLY",
601
+ reviewAuthorMissing: !hasAuthor && displayAuthorOf(summary) === ""
602
+ && summary.memberAccess !== "PAGE_MEMBER_ACCESS_MEMBER_ONLY",
576
603
  } : {}),
577
604
  };
578
605
  }
@@ -682,7 +709,17 @@ function requireAuthoredTagNames(tags) {
682
709
  return result.names;
683
710
  }
684
711
 
685
- function pageMutationBody(body, updating) {
712
+ /**
713
+ * The one outbound conversion: the workspace's `showOnProfile` leaves as the
714
+ * wire's `excludeFromProfile`, and only when the document stated it (TR01403).
715
+ */
716
+ function withWireProfileFlag(body) {
717
+ const { showOnProfile, ...rest } = body;
718
+ return showOnProfile === undefined ? rest : { ...rest, excludeFromProfile: !showOnProfile };
719
+ }
720
+
721
+ function pageMutationBody(source, updating) {
722
+ const body = withWireProfileFlag(source);
686
723
  if (body.authoredTags === undefined) return body;
687
724
  const wrapper = body.authoredTags;
688
725
  if (wrapper === null || typeof wrapper !== "object" || Array.isArray(wrapper)) {
@@ -727,11 +764,12 @@ function normalizePageMutation(value, tagged) {
727
764
  * says one exists, otherwise the version the summary reports.
728
765
  */
729
766
  export async function getPage(client, pageId, status) {
730
- return requireObject(
767
+ const page = requireObject(
731
768
  await client.request(`v1/pages/${encodeURIComponent(pageId)}${query([["status", status]])}`),
732
769
  "api.page_contract",
733
770
  "page",
734
771
  );
772
+ return { ...page, showOnProfile: showOnProfileOf(page) };
735
773
  }
736
774
 
737
775
  export async function createPage(client, body) {
@@ -761,8 +799,8 @@ export async function updatePage(client, pageId, body) {
761
799
  }
762
800
 
763
801
  /**
764
- * Gives the site's two author refusals the stable codes the CLI documents
765
- * (TR01196). The site answers an unknown name and one that cannot be named with
802
+ * Gives the site's author refusals, and the display author's (TR01402), the
803
+ * stable codes the CLI documents (TR01196). The site answers an unknown name and one that cannot be named with
766
804
  * the same field and wording on purpose; this keeps them one code too.
767
805
  */
768
806
  export function translateAuthorRefusal(error, file) {
@@ -770,6 +808,7 @@ export function translateAuthorRefusal(error, file) {
770
808
  for (const [field, code, fallback] of [
771
809
  ["AuthorUnknown", "pages.author_unknown", "No site author or member who can create pages has that name."],
772
810
  ["AuthorConflict", "pages.author_conflict", "The page already has a different author, which is never replaced."],
811
+ ["DisplayAuthorUnknown", "pages.display_author_unknown", "That handle is not a site author of this site."],
773
812
  ]) {
774
813
  if (error.hasField(field)) {
775
814
  const detail = sanitizeDiagnostic(error.descriptionFor(field) ?? fallback, fallback);
@@ -795,17 +834,12 @@ export async function listSiteAuthors(client, siteId) {
795
834
  );
796
835
  }
797
836
 
798
- /** Creates a site author. The site folds the handle and the address. */
799
- export async function createSiteAuthor(client, siteId, { handle, displayName, email }) {
800
- const created = requireObject(
801
- await client.request(sitePath(siteId, "authors"), {
802
- method: "POST",
803
- body: { handle, displayName, ...(email === undefined ? {} : { email }) },
804
- }),
805
- "api.authors_contract",
806
- "site author",
807
- );
808
- const listing = normalizeAuthorListing({ authors: [created], members: [] });
837
+ /** Reads one author the site returned, refusing a response this CLI cannot use. */
838
+ function readSiteAuthor(value) {
839
+ const listing = normalizeAuthorListing({
840
+ authors: [requireObject(value, "api.authors_contract", "site author")],
841
+ members: [],
842
+ });
809
843
  if (listing.authors.length !== 1) {
810
844
  throw new SiteAuthoringError(
811
845
  "api.authors_contract",
@@ -816,6 +850,44 @@ export async function createSiteAuthor(client, siteId, { handle, displayName, em
816
850
  return listing.authors[0];
817
851
  }
818
852
 
853
+ /**
854
+ * Creates a site author. The site folds the handle and the address. The byline
855
+ * link (one of linkPageResourceId or linkUrl) and the image are sent only when
856
+ * given (TR01401).
857
+ */
858
+ export async function createSiteAuthor(
859
+ client,
860
+ siteId,
861
+ { handle, displayName, email, linkPageResourceId, linkUrl, imageId },
862
+ ) {
863
+ return readSiteAuthor(
864
+ await client.request(sitePath(siteId, "authors"), {
865
+ method: "POST",
866
+ body: {
867
+ handle,
868
+ displayName,
869
+ ...(email === undefined ? {} : { email }),
870
+ ...(linkPageResourceId === undefined ? {} : { linkPageResourceId }),
871
+ ...(linkUrl === undefined ? {} : { linkUrl }),
872
+ ...(imageId === undefined ? {} : { imageId }),
873
+ },
874
+ }),
875
+ );
876
+ }
877
+
878
+ /**
879
+ * Changes a site author. `changes` holds only what the caller wants changed: a
880
+ * field left out keeps its stored value and an empty string clears it.
881
+ */
882
+ export async function updateSiteAuthor(client, siteId, handle, changes) {
883
+ return readSiteAuthor(
884
+ await client.request(sitePath(siteId, `authors/${encodeURIComponent(handle)}`), {
885
+ method: "PATCH",
886
+ body: changes,
887
+ }),
888
+ );
889
+ }
890
+
819
891
  export async function publishDrafts(client, pageIds) {
820
892
  const response = requireObject(
821
893
  await client.request("v1/pages/publish_drafts", { method: "POST", body: { pageIds } }),
@@ -1862,6 +1934,7 @@ export function normalizeDeployment(value) {
1862
1934
  completedAt: text(deployment.completedAt),
1863
1935
  errorMessage: text(deployment.errorMessage),
1864
1936
  pageCount: safeCount(deployment.pageCount),
1937
+ pagesGenerated: optionalCount(deployment.pagesGenerated),
1865
1938
  phaseTimings: normalizePhaseTimings(deployment.phaseHistory),
1866
1939
  // Identical requests coalesced into this deployment inside its settling
1867
1940
  // window (TR00839). Zero for a deployment that never anchored one.
@@ -1,4 +1,4 @@
1
- import { SiteAuthoringError } from "./errors.js";
1
+ import { isCanonicalUuid, SiteAuthoringError } from "./errors.js";
2
2
 
3
3
  /**
4
4
  * Who a page can be credited to (TR01196).
@@ -20,6 +20,7 @@ export const AUTHORS_FILE_NAME = "authors.json";
20
20
  export const AUTHOR_HANDLE_MAXIMUM_LENGTH = 64;
21
21
  export const AUTHOR_DISPLAY_NAME_MAXIMUM_LENGTH = 256;
22
22
  export const AUTHOR_EMAIL_MAXIMUM_LENGTH = 320;
23
+ export const AUTHOR_LINK_URL_MAXIMUM_LENGTH = 2048;
23
24
 
24
25
  const HANDLE = /^[a-z0-9]+(-[a-z0-9]+)*$/u;
25
26
  // Deliberately loose: the site canonicalizes and decides. This only tells an
@@ -92,6 +93,11 @@ export function normalizeAuthorListing(value) {
92
93
  handle,
93
94
  displayName: boundedText(raw.displayName, AUTHOR_DISPLAY_NAME_MAXIMUM_LENGTH) ?? "",
94
95
  hasEmail: raw.hasEmail === true || (typeof raw.email === "string" && raw.email !== ""),
96
+ ...(isCanonicalUuid(raw.linkPageResourceId) ? { linkPageResourceId: raw.linkPageResourceId } : {}),
97
+ ...(typeof raw.linkUrl === "string" && raw.linkUrl !== "" && raw.linkUrl.length <= AUTHOR_LINK_URL_MAXIMUM_LENGTH
98
+ ? { linkUrl: raw.linkUrl }
99
+ : {}),
100
+ ...(isCanonicalUuid(raw.imageId) ? { imageId: raw.imageId } : {}),
95
101
  });
96
102
  }
97
103
  const members = [];
@@ -109,12 +115,20 @@ export function normalizeAuthorListing(value) {
109
115
  /**
110
116
  * The workspace file `pull` and `authors list` write. Site authors carry no
111
117
  * address: it is private to the site and nothing local needs it. Members carry
112
- * theirs, because that is how a page names them.
118
+ * theirs, because that is how a page names them. A byline link and image are
119
+ * recorded only for an author who has one (TR01401); the file stays a
120
+ * read-only projection of the site.
113
121
  */
114
122
  export function projectAuthorsForWorkspace(siteId, listing) {
115
123
  return {
116
124
  siteId,
117
- authors: listing.authors.map(({ handle, displayName }) => ({ handle, displayName })),
125
+ authors: listing.authors.map(({ handle, displayName, linkPageResourceId, linkUrl, imageId }) => ({
126
+ handle,
127
+ displayName,
128
+ ...(linkPageResourceId === undefined ? {} : { linkPageResourceId }),
129
+ ...(linkUrl === undefined ? {} : { linkUrl }),
130
+ ...(imageId === undefined ? {} : { imageId }),
131
+ })),
118
132
  members: listing.members.map(({ email, displayName }) => ({ email, displayName })),
119
133
  };
120
134
  }
@@ -168,3 +182,57 @@ export function authorConflictMessage({ shown, file, held, wanted, markdown }) {
168
182
  : `${lead}: run 'taproot-site pages meta set ${shown} --author ${held}' to match the site. To credit someone `
169
183
  + "else, change it in the app.";
170
184
  }
185
+
186
+ /**
187
+ * Refuses options that contradict each other, or `authors set` with nothing to
188
+ * set, before any request (TR01401). They are usage errors, so exit code 2.
189
+ */
190
+ export function requireConsistentAuthorOptions(options, { set }) {
191
+ const usage = (code, message) => new SiteAuthoringError(code, message, { exitCode: 2 });
192
+ const hasLink = options.authorLinkPage !== undefined || options.authorLinkUrl !== undefined;
193
+ if (options.authorLinkPage !== undefined && options.authorLinkUrl !== undefined) {
194
+ throw usage("authors.link_conflict", "--link-page and --link-url cannot be used together: a byline links to one place.");
195
+ }
196
+ if (options.authorNoLink === true && hasLink) {
197
+ throw usage("authors.link_conflict", "--no-link cannot be used with --link-page or --link-url.");
198
+ }
199
+ if (options.authorNoImage === true && options.authorImage !== undefined) {
200
+ throw usage("authors.image_conflict", "--no-image cannot be used with --image.");
201
+ }
202
+ if (options.authorNoEmail === true && options.authorEmail !== undefined) {
203
+ throw usage("authors.email_conflict", "--no-email cannot be used with --email.");
204
+ }
205
+ if (set && ![
206
+ options.authorName,
207
+ options.authorEmail,
208
+ options.authorLinkPage,
209
+ options.authorLinkUrl,
210
+ options.authorImage,
211
+ options.authorNoLink,
212
+ options.authorNoImage,
213
+ options.authorNoEmail,
214
+ ].some((value) => value !== undefined && value !== false)) {
215
+ throw usage(
216
+ "authors.set_empty",
217
+ "authors set needs something to change: --name, --email, --no-email, --link-page, --link-url, --no-link, "
218
+ + "--image or --no-image.",
219
+ );
220
+ }
221
+ }
222
+
223
+ /**
224
+ * Whether a held author already has what an `authors add` repeat asked for. The
225
+ * name is always compared; a link or image only when its flag was passed, so a
226
+ * script that re-runs after someone added a link still succeeds. Returns the
227
+ * names of the values that differ.
228
+ */
229
+ export function differingAuthorValues(held, wanted) {
230
+ const differs = [];
231
+ if (held.displayName !== wanted.displayName) differs.push("name");
232
+ if (wanted.linkPageResourceId !== undefined && held.linkPageResourceId !== wanted.linkPageResourceId) {
233
+ differs.push("link");
234
+ }
235
+ if (wanted.linkUrl !== undefined && held.linkUrl !== wanted.linkUrl) differs.push("link");
236
+ if (wanted.imageId !== undefined && held.imageId !== wanted.imageId) differs.push("image");
237
+ return [...new Set(differs)];
238
+ }
package/src/block-flow.js CHANGED
@@ -164,9 +164,11 @@ export const HEADING_FLOW_NEIGHBORS = [
164
164
  { surface: "both", selector: "esp-columns[data-taproot-columns]", edge: "self-contained" },
165
165
  { surface: "both", selector: "esp-section[data-taproot-section], taproot-integration-placement[data-placement-id]", edge: "excluded" },
166
166
  { surface: "both", selector: "esp-image[data-tiptap-image]:not([banner])", edge: "self-contained" },
167
- { surface: "both", selector: ":is(taproot-hero, taproot-cta)[data-heading-flow-component]:not([data-heading-flow-ready]):not(:empty)", edge: "barrier" },
167
+ // Before the element upgrades its text and links are light DOM but hidden, and only its media shows; the
168
+ // element then reports whether it shows anything (TR01424).
168
169
  { surface: "both", selector: ":is(taproot-hero, taproot-cta)[data-heading-flow-ready]", edge: "self-contained" },
169
- { surface: "both", selector: ":is(taproot-hero, taproot-cta)[data-heading-flow-component]:not([data-heading-flow-ready]):empty", edge: "excluded" },
170
+ { surface: "both", selector: ":is(taproot-hero, taproot-cta)[data-heading-flow-component]:not(:defined)", edge: "barrier" },
171
+ { surface: "both", selector: ":is(taproot-hero, taproot-cta)[data-heading-flow-component]:defined:not([data-heading-flow-ready])", edge: "excluded" },
170
172
  { surface: "both", selector: "taproot-feature-grid:not(:empty), taproot-card-grid:not(:empty), taproot-product-grid:not(:empty), taproot-testimonial:not(:empty)", edge: "barrier" },
171
173
  { surface: "published", selector: "taproot-latest-posts:not(:empty)", edge: "barrier" },
172
174
  { surface: "preview", selector: '[data-heading-flow-neighbor="latest-posts"]:not(:empty)', edge: "barrier" },
@@ -1,5 +1,109 @@
1
1
  {
2
2
  "entries": [
3
+ {
4
+ "version": "0.59.0",
5
+ "note": "Follow-ups from the 0.58.0 trial: Espalier 7.8.0 outline buttons, button shadow and footer heading colors, file lines and every section problem in validate, pages and sections behind each context count, and delivery and help fixes.",
6
+ "behavior": [
7
+ "Espalier 7.8.0: an outline button casts the theme's button shadow only when the theme sets --esp-button-outline-background in componentProperties, so an unfilled outline button no longer prints its label and border twice and draws no shadow. A hero's secondary action is an outline button by default, so it casts the theme shadow only when the theme sets an outline fill and its style is outline; solid keeps its theme shadow. help component hero-section says so.",
8
+ "help theme lists Espalier 7.8.0's new settable properties: --esp-button-shadow-color (recolors the elevation levels used for button rest and hover), --esp-button-outline-background and --esp-button-outline-border-color (an outline button's fill and resting border color; its label is fitted to the fill), and --esp-footer-heading-color. theme push refused --esp-footer-heading-color as a public token on 0.58.0. help theme no longer says the shadow color stays the theme's or that the quote fill stays at layer 1 (--esp-blockquote-surface sets it), and help component explains that an outline button is transparent by default and can take a theme fill.",
9
+ "An ink fitted to a theme footer heading fill or outline button fill now also meets WCAG 4.5:1, so a footer heading whose fill is mid-tone can get a different heading ink on its next publish. --esp-footer-heading-color wins over the fitted ink, and theme resolve and validate measure it at WCAG 4.5:1 over the footer surface, or over the heading fill when --esp-footer-heading-background is set. It supplies the footer's resting configured brand text color only when no explicit brand color applies.",
10
+ "Since 0.58.0 (Espalier 7.7.0), --esp-blockquote-font-family reaches a quote's paragraphs and lists, not only its frame; 0.58.0 did not record this, and help theme now says it.",
11
+ "In a workspace, theme push, theme resolve and validate list the pages and sections behind each context warning's usedBy counts (theme resolve --site scans no workspace pages, so it emits neither usedIn nor contextUsageSkipped): usedIn holds up to 20 items (file, kind section or cta, 1-based position among the page's sections or call-to-action blocks) with the true total and truncated, once on the warning's first retained statusWarningPaints record in a successful JSON result; when validate refuses, its progress text carries the Used by lines instead. theme resolve's text view shows them as Used by lines.",
12
+ "Context counts come only from pages that read, convert and pass the shared document checks. When a status-color warning is scoped to a named context, theme push and theme resolve list the pages left out, with their first problem code, in contextUsageSkipped (up to 20 files, with total and truncated) and a Not counted line; validate reports them in its progress text before it refuses. When the page inventory itself cannot be read, one usage-unavailable line says so. The new fields never displace other results: usedIn can be left out of the JSON entirely when room runs out (the text view still shows it), and contextUsageSkipped can shrink to its total, which theme resolve's table still prints as Not counted, or be left out, and only then does the Not counted line move to the progress text. Retired generated sources are not pages.",
13
+ "Every Markdown page problem that has a source line reports the file line, as a line field and, when the message fits the diagnostic limit, in the message (front matter used to shift it), including an inline problem on the second line of a paragraph. Markdown problems name their file; an ordinary .pm.json document finding keeps its file-qualified field, and a recipe-step finding carries file and a document-relative field. A lone problem that has a source line gets its own stderr row.",
14
+ "In a free-form Markdown page, validate and pages push report every section decoration, background and section-owned image problem at once, each with its file line (a failed image field does not hide the others). Any other Markdown error still stops that file, a decoration or background problem in a typed page such as an article still stops at the first, and recipe steps keep reporting all of theirs. A refusal lists at most 5,000 problems and the bounded JSON can omit more, while problemCount counts every one found and problemsTruncated says rows were dropped.",
15
+ "delivery check prints the number of routes it checks (it counted / twice). Every delivery report carries verdictCovers and uncheckedRoutes, with items [] and a total of 0 when no saved manifest page was left out for its status; with no manifest the sample is only /, so 0 does not show the rest of the site was covered. A refusal such as delivery.no_completed_deployment has neither.",
16
+ "The deploy note says deployment.pageCount leaves out the home page, the 404 page and generated pages on Standard sites, and pagesGenerated counts the pages rendered for the deployment (null when the server sends none). The use note says use rewrites the file a leading --config names, which must exist, and that a missing one refuses with config.not_found; without it use rewrites the file found in this or a parent directory, or creates one here, and config.ambiguous points to --config.",
17
+ "validate cannot see an integration placement's h1, so a level-1 heading or hero title after a placement can publish as h2 without an seo.h1_demoted finding and a page whose only h1 is a placement can get seo.h1_missing; the validate note and help page free-form say to check the published page. Adopted fragments stay visible to validate. help component says a default hero or call-to-action button style writes no attribute in the delivered HTML.",
18
+ "Run help page free-form, help component hero-section and help component cta for the page and component topics; the help list names them as page and component, and bare help page and help component fail with help.usage.",
19
+ "Declined, with the alternative each time: a secondary button color role (set an outline fill and border color instead); saying whether a painting component appears inside a context (usedIn lists the places to look); counting pages that do not convert (contextUsageSkipped lists them); collecting every Markdown error (only decoration and background problems are self-contained); writing default style attributes (so a later default change reaches omitting heroes and calls to action; an explicit style is kept); use --config creating a missing file (a mistyped path would write a new configuration); validate seeing an integration placement's h1 (help and the validate note say it cannot).",
20
+ "Taproot refuses older authoring clients at sign-in and token exchange once this release deploys. Automation that signs in with TAPROOT_SITE_KEY skips that exchange, so upgrade it explicitly. Upgrade with npm install -g @taprootio/site-authoring@latest.",
21
+ "The help reference version is 83."
22
+ ],
23
+ "help": [
24
+ "theme",
25
+ "footer",
26
+ "delivery",
27
+ "page",
28
+ "component",
29
+ "import"
30
+ ]
31
+ },
32
+ {
33
+ "version": "0.58.0",
34
+ "note": "Follow-ups from a site build on 0.57.0: hero actions share the button look, buttons lift and take a focus outline, prose quotes, lists, code and footer headings gain Espalier 7.7.0 hooks, checks report where and why, and local keys say tr_test_.",
35
+ "behavior": [
36
+ "help sections is a new topic holding the section reference (fields, photo backgrounds, scrims, decorations, contexts, sizing) moved out of help page free-form, which keeps a pointer to it.",
37
+ "A section decoration's repeat is a keyword: repeat (both axes, natural size), repeat-x or repeat-y (one axis, and they take a size). The 0.57.0 boolean is refused, so re-set repeat: true as repeat.",
38
+ "hero-section actions render as buttons that share the theme's button border, shadow, hover lift, press and focus outline; the secondary action uses Espalier's outline look by default. hero-section takes titleSize compact and leadSize (normal, compact). An app-authored hero's subtitle now publishes as its lead. Publishing refuses an unknown hero titleSize or leadSize, or a decoration repeat or size the renderer cannot paint, in every page body.",
39
+ "A hero action or call-to-action button takes a look of the author's choosing: hero primaryActionStyle (default solid) and secondaryActionStyle (default outline), and cta buttonStyle (default solid), each solid (the theme's filled button), outline (a transparent button with a link-colored border) or text (a borderless button that reads as a link). Leaving an option out renders as before, a cta variant of danger colors only the solid button (an outline button follows the link colors and a text button the text color), and publishing refuses any other value. help component lists the values.",
40
+ "A hero's overline, title and lead and its action links, and a call-to-action's heading, description and button link, are now in the delivered HTML itself, so a crawler finds the page's h1, text and links in it (they were set from attributes after load); the text and links stay hidden until the elements upgrade. A hero-section title is the page's h1 only when nothing earlier claimed it: after a # heading, a banner title, an adopted fragment's h1 or another hero it publishes as an h2, and validate reports it as seo.h1_demoted. seo.h1_multiple is retired, and validate no longer reports it.",
41
+ "card-grid and image-row take mediaBorderWidth to frame their images; left out, the images stay unframed (unlike hero-section and cta, which follow the site's image border).",
42
+ "help theme lists Espalier 7.7.0's settable properties: button hover offset, hover shadow, focus color, focus width and focus offset; quote frame, glyph size and surface; code border width and shadow; the ordered-list marker frame (tag draws numbers as code tags); and the footer heading fill. Heading marks no longer reach footer headings.",
43
+ "Context status warnings no longer say to retune a status via intents when the collision is the context's action color, and each context-scoped warning reports usedBy: the header, footer, sections and CTAs that use that context across the workspace's page files, or null with usedByNote when none do. Pages are read only when such a warning needs it, and a failed read never blocks a theme push.",
44
+ "A refused theme reports every refusal in error.problems, a single one included (ordinary errors first, then each refused component property with its accepted form), and problemCount counts rows dropped by the cap; length properties are rem or em only, and the message says so with an example in range.",
45
+ "component_property_scheme_differs no longer warns for properties that only paint (heading mark height, shadows, offsets, underline offset and thickness); it compares only properties that can move layout.",
46
+ "theme resolve and validate measure the button focus outline instead of the glow when a theme sets --esp-button-focus-color, and footer headings on their fill when --esp-footer-heading-background is set.",
47
+ "delivery check routes the pages a published site links in the workspace manifest (a saved page id, published or approved) plus '/', so a kept pending page no longer fails it. Saved pages whose manifest status is not published or approved are omitted from that route sample and listed as uncheckedRoutes (path and reason, fitted to the output bound; a stale draft status says nothing about whether the deployed site links the page), the summary says they were left out of the sample because of their manifest status (the check may still fetch one as a link from another page), and verdictCovers says the verdict covers the sampled routes and the checks made from them; run pull after approving pages in the app so their statuses are current.",
48
+ "skippedNavigationLinks items add location (header or footer), resourceId and path; theme resolve bounds the list and keeps its count.",
49
+ "Terminal summaries strip control and bidirectional characters from page paths.",
50
+ "pull's summary counts every manifest entry and names the kept pending ones; deploy reports deployment.pagesGenerated (null when the server sends none), and the deploy note says what pageCount, pagesGenerated, stagedPageCount and plannedPageCount count.",
51
+ "An image placed only as a section decoration (including in an integration-managed page's introduction) no longer needs a default description (a11y.image_default_missing) in validate --site and Site Health; a decoration image is also never a page's feed thumbnail.",
52
+ "A publish also declares a bold companion for the body font when the family has a heavier upright face (700 for a 400 body when the family has 700, else the face CSS matches, such as 800 for Coda), with no preload of its own (a heading or another font field can still preload the same face), so bold body text no longer renders as synthesized bold for such families; a family with only a regular face, such as ABeeZee, still does. help fonts says so.",
53
+ "help theme says the theme's box image paints above each box's fill. help page free-form (the Markdown hard break, a trailing backslash or two spaces), the pull, authors add, pages push and use notes, and help page place-review regain facts trimmed in 0.57.0.",
54
+ "help pages now states the rule for every page type that two sources for one path are refused (pages.path_conflict); help page free-form no longer repeats it.",
55
+ "Keys and sign-ins minted by any Taproot other than production start tr_test_ (production stays tr_live_), and each Taproot accepts only its own prefix, so sign in again on a local stack after upgrading it; login and whoami help say so.",
56
+ "The help reference version is 82."
57
+ ],
58
+ "help": [
59
+ "sections",
60
+ "pages",
61
+ "page",
62
+ "components",
63
+ "component",
64
+ "theme",
65
+ "tokens",
66
+ "appearance",
67
+ "footer",
68
+ "fonts",
69
+ "delivery"
70
+ ]
71
+ },
72
+ {
73
+ "version": "0.57.0",
74
+ "note": "Chrome checks see staged nav links, status advice keeps each status's hue, and new options cover CTA fills, media frames, card press, footer brand hover, tiling decorations and Espalier 7.6.0's settable properties.",
75
+ "behavior": [
76
+ "validate, theme push and theme resolve treat approved pages as linked, as staging renders them, and report what they could not check in skippedNavigationLinks (draft_page, missing_page, unknown_path; at most 50 items). theme resolve --site reads the page list.",
77
+ "Status-color advice keeps each status within 16 degrees of its hue, ranks candidates as the check renders them, moves danger last, and names the context's action field for a context collision. statusWarningPaints lists the components each status color paints.",
78
+ "cta takes context (a theme context declared by both themes) so its panel paints that context's background and border; hero-section and cta take mediaBorderWidth.",
79
+ "card-grid interaction takes press; help component card-grid describes each interaction.",
80
+ "footer takes brandHoverGrow. The footer draft hash is footer-draft-v10, so pull before you footer push.",
81
+ "A section decoration takes repeat: true to tile its image at natural size, without a size percent.",
82
+ "pull keeps a never-saved page entry and its file (keptPendingPages) instead of refusing, unless another page claims its path or file.",
83
+ "media images describe --if-missing reads the current revision itself, so --expected-revision is optional with it.",
84
+ "help theme lists Espalier 7.6.0's settable properties: shadow geometry per level, button shadow, border width and press offset, list marker style and color, quote bar width, shadow and font, heading marks, inline code frame, nav indicator colors and footer hover backgrounds. help tokens names the layer each surface paints.",
85
+ "changelog --since lists the newest releases that fit one result and names the older ones it left out (complete: false).",
86
+ "The help reference version is 81."
87
+ ],
88
+ "help": ["theme", "tokens", "footer", "component", "page", "media", "settings"]
89
+ },
90
+ {
91
+ "version": "0.56.0",
92
+ "note": "Give a site author a byline link and an image, and change an author with authors set.",
93
+ "behavior": [
94
+ "authors add takes --link-page (a page path from the manifest, or a resourceId), --link-url and --image (a media path or an image id). A byline links to one place, so --link-page and --link-url together are refused (authors.link_conflict).",
95
+ "authors set <handle> changes the name, email, link or image and sends only what was passed. --no-link, --no-image and --no-email clear. It needs the deployments capability too, because changing the byline of an author on published pages queues a deployment.",
96
+ "Repeating authors add for an existing handle succeeds when the name matches and any link or image option passed matches; options not passed are not compared. A difference is authors.handle_taken and points at authors set.",
97
+ "New refusal codes: authors.link_url_invalid, authors.link_page_unknown, authors.image_unknown, authors.deployment_refused, authors.handle_unknown, authors.image_conflict, authors.email_conflict and authors.set_empty.",
98
+ "authors.json records linkPageResourceId, linkUrl and imageId for each author that has one.",
99
+ "Typed pages (article, album, recipe, place review) take displayAuthor, a site author's handle that replaces the member on the byline and keeps the page off the member's profile. A quoted empty value (displayAuthor: \"\") clears it, a bare displayAuthor: line is refused (pages.display_author_invalid), and an absent key leaves the site's alone.",
100
+ "Pull refreshes an unedited .pm.json document with the site's display author, and a push that would overwrite one that changed on the site is refused with pages.push_conflict until a pull has shown it.",
101
+ "New codes: pages.display_author_invalid, pages.display_author_unknown and the warning pages.display_author_unverified. A place review with a display author raises no missing-reviewer warning, and a page credited only through displayAuthor is not in pages.authorless.",
102
+ "Typed pages take showOnProfile: false to keep a page off its author's Taproot profile (it keeps its byline and profile link), and true to put it back. Only the words true and false are accepted in front matter and a JSON boolean in .pm.json; anything else is pages.show_on_profile_invalid. The profile changes after the page is published and its release goes live. An absent key leaves the site's setting alone, and pull and push treat it like displayDate.",
103
+ "The help reference version is 80."
104
+ ],
105
+ "help": ["page"]
106
+ },
3
107
  {
4
108
  "version": "0.55.0",
5
109
  "note": "Style linked tag badges by state and choose what the recipe card tag bar displays.",