@taprootio/site-authoring 0.22.0 → 0.22.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taprootio/site-authoring",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
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",
@@ -28,7 +28,7 @@
28
28
  "README.md"
29
29
  ],
30
30
  "dependencies": {
31
- "@taprootio/espalier": "6.3.0",
31
+ "@taprootio/espalier": "6.5.0",
32
32
  "mediabunny": "1.61.1"
33
33
  },
34
34
  "scripts": {
@@ -1,5 +1,22 @@
1
1
  {
2
2
  "entries": [
3
+ {
4
+ "version": "0.22.2",
5
+ "note": "Free-form sections pad evenly with the page padding wherever they render, including preview-page; Espalier 6.5.0 lets the page preview take the width a capped main column leaves it.",
6
+ "behavior": [
7
+ "The renderer writes a standard free-form section's padding on the section (--esp-size-padding on every side, in place of Espalier's side padding of --esp-size-medium and larger top and bottom), so preview-page and the editor's live preview show the same padding the published page does. A section with no theme context also shows the page background through it, as the published page does. Sections with contentPadding none are unchanged. Republish to apply it to a published page.",
8
+ "Espalier 6.5.0 changes the editor page layout only. The default site theme is rebuilt against it and its content is unchanged except for the recorded Espalier version, so pulled and validated themes behave as before."
9
+ ],
10
+ "help": []
11
+ },
12
+ {
13
+ "version": "0.22.1",
14
+ "note": "Espalier 6.4.0: dialogs can be bounded by inset properties; the default site theme output is unchanged.",
15
+ "behavior": [
16
+ "Espalier 6.4.0 adds four inset properties on dialogs and lets a full-screen box follow them. The default site theme is rebuilt against it and its content is unchanged except for the recorded Espalier version, so pulled and validated themes behave as before."
17
+ ],
18
+ "help": []
19
+ },
3
20
  {
4
21
  "version": "0.22.0",
5
22
  "note": "validate warns when a free-form page has no h1 or a banner or hero already claims it, and about alt text, link text, long titles and missing descriptions.",
@@ -745,7 +745,17 @@ function renderSection(
745
745
  "--esp-section-padding-inline: 0",
746
746
  "--esp-section-padding-block: 0",
747
747
  );
748
+ } else {
749
+ // Espalier pads a section's sides with `--esp-size-medium` and its top and bottom with the larger
750
+ // `--esp-size-section`. A free-form section pads evenly all round with the page padding, and says so
751
+ // here, in the one place that renders it, so the published page, the editor's live preview and the
752
+ // CLI all get the same padding (TR01258: the page shell used to add it, and the preview has no shell).
753
+ sectionStyleParts.push(
754
+ "--esp-section-padding-inline: var(--esp-size-padding)",
755
+ "--esp-section-padding-block: var(--esp-size-padding)",
756
+ );
748
757
  }
758
+
749
759
  // Espalier paints the decoration plane only on a section carrying the
750
760
  // `decoration` attribute, so the hooks and the attribute travel together.
751
761
  const decorationStyle = kind === "explicit" ? normalizedSectionDecorationStyle(attrs.decoration) : undefined;
@@ -758,6 +768,10 @@ function renderSection(
758
768
  sectionStyleParts.push(
759
769
  `--esp-section-background: color-mix(in oklab, var(--esp-color-background) ${background.scrimOpacityPercent}%, transparent)`,
760
770
  );
771
+ } else if (!context) {
772
+ // A section with no theme context lets the page background show through; Espalier would paint the
773
+ // plain page colour over a page background image. (A photo background's scrim above replaces it.)
774
+ sectionStyleParts.push("--esp-section-background: transparent");
761
775
  }
762
776
  const sectionStyle = sectionStyleParts.length > 0 ? sectionStyleParts.join("; ") : undefined;
763
777
  const content = renderElement(