@justai/cuts 0.11.0 → 0.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justai/cuts",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "A persona's named parts — the page shell that holds them, and the cuts themselves.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/src/Toolbar.astro CHANGED
@@ -32,15 +32,19 @@ interface Props {
32
32
  profileLabel: string; // aria/title for the Profile nav icon
33
33
  kernelLabel: string; // aria/title for the Kernel (app) nav icon
34
34
  postsLabel: string; // aria/title for the Posts nav icon
35
+ // The home affordance points at app.zone, so the two apexes suppress it: app.zone IS that
36
+ // destination, and justai.pro is above it (sending the parent "home" to a child platform is
37
+ // the wrong direction). Every other persona keeps it.
38
+ home?: boolean;
35
39
  }
36
40
  import BackToZone from "./BackToZone.astro";
37
- const { sectionsLabel, profileLabel, kernelLabel, postsLabel } = Astro.props;
41
+ const { sectionsLabel, profileLabel, kernelLabel, postsLabel, home = true } = Astro.props;
38
42
  ---
39
43
 
40
44
  <header class="toolbar">
41
45
  <div class="tb-row">
42
46
  <div class="tb-left">
43
- <BackToZone />
47
+ {home && <BackToZone />}
44
48
  <nav class="tb-nav-group" aria-label={sectionsLabel}>
45
49
  <a class="tb-nav" id="navProfile" href="#profile" aria-label={profileLabel} title={profileLabel}>
46
50
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>