@tideworthy/tidysites-platform 0.10.10 → 0.10.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.11
4
+
5
+ - Editor bar: Request a change comes first and carries the blue; Edit follows it plain.
6
+
3
7
  ## 0.10.10
4
8
 
5
9
  - Editor: the bar reads Edit, Request a change, Revisions, Publish live; Publish live is green.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tideworthy/tidysites-platform",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "description": "The Tidysites platform integration for EmDash sites: bootstrap, sessions, maintenance, health, and publish hooks under /_tidy/*.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -58,7 +58,7 @@ const htmlClass = !signedIn ? (signInUrl ? "tidy-has-bar tidy-idle" : "") : !act
58
58
  <span class="tidy-bar-label"><span class="tidy-bar-dot" aria-hidden="true"></span>{label} website<span class="tidy-bar-note">A private copy to see working changes on the website, not publicly accessible.</span></span>
59
59
  <div class="tidy-bar-actions" id="tidy-bar-actions">
60
60
  {!signedIn && <a class="tidy-btn tidy-btn-primary" href={signInUrl!}>Sign in to edit</a>}
61
- {signedIn && !active && <a class="tidy-btn tidy-btn-primary" href={toggle(true)}>Edit</a>}
61
+ {signedIn && !active && <a class="tidy-btn" href={toggle(true)}>Edit</a>}
62
62
  {signedIn && active && !editable && <a class="tidy-btn" href={toggle(false)}>Done</a>}
63
63
  </div>
64
64
  </div>
@@ -85,10 +85,10 @@ export function mountRequestChange(): void {
85
85
  body.focus();
86
86
  }
87
87
 
88
- const barBtn = el("button", { type: "button", class: "tidy-btn", text: "Request a change" });
88
+ const barBtn = el("button", { type: "button", class: "tidy-btn tidy-btn-primary", text: "Request a change" });
89
89
  barBtn.addEventListener("click", render);
90
- // Right after Edit (or Done), before Revisions and Publish live.
91
- actions.insertBefore(barBtn, actions.children[1] ?? null);
90
+ // First on the bar: most people are here to ask for a change, not to edit.
91
+ actions.prepend(barBtn);
92
92
 
93
93
  const fab = el("button", { type: "button", class: "tidy-fab", title: "Request a change", "aria-label": "Request a change" });
94
94
  fab.innerHTML = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z"/></svg>';
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Kept in step with package.json by the release checklist in MAINTAINING.md. */
2
- export const VERSION = "0.10.10";
2
+ export const VERSION = "0.10.11";
3
3
  export const PLUGIN_ID = "tidy-platform";