@justai/cuts 0.88.0 → 0.90.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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/Toolbar.astro +16 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justai/cuts",
3
- "version": "0.88.0",
3
+ "version": "0.90.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": {
@@ -37,7 +37,7 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@justai/core": "^0.13.0",
40
+ "@justai/core": "^0.15.0",
41
41
  "@justai/ui": "^0",
42
42
  "@justai/atrium": "^0.1.9"
43
43
  }
package/src/Toolbar.astro CHANGED
@@ -175,7 +175,7 @@ import AuthMount from "./AuthMount.astro";
175
175
  and not on its biography, which is where a person who came from there was standing. */}
176
176
  {parent && (
177
177
  <a class="tb-nav tb-mark" id="navParent" href={parent.href ?? "/#kernel"} aria-label={parent.label ?? "Home"} title={parent.label ?? "Home"}>
178
- <img src={parent.icon ?? "/icon.svg"} alt="" width="19" height="19" loading="lazy" decoding="async" />
178
+ <img src={parent.icon ?? "/icon.svg"} alt="" width="20" height="20" loading="lazy" decoding="async" />
179
179
  </a>
180
180
  )}
181
181
  {/* THE PROFILE ICON IS THE PERSONA'S OWN FACE. Always — the founder's rule, and app.zone and
@@ -457,7 +457,21 @@ import AuthMount from "./AuthMount.astro";
457
457
  //
458
458
  // The defaults ARE this cut's contract — the three cut ids, `nav<Cut>`, `#tbTitle`/`#tbTitleText`,
459
459
  // `.toolbar`, `#below` — so a persona using the shell passes nothing at all.
460
- import { personaScroll } from "@justai/core";
460
+ import { personaScroll, adoptMark } from "@justai/core";
461
+
462
+ // queries: the parent icon in a child toolbar has a background · navParent tile · the child's row
463
+ // does not match the persona's · who removes the ground for a child persona
464
+ //
465
+ // THE ROW TAKES CARE OF ITS OWN MARK. Every other icon here is an ink; `parent` renders the host's
466
+ // avatar file, which is a TILE, so a child's row is the one place in the fleet where a background
467
+ // still shows. The persona's own mark is derived at build time from a file the repo imports — a
468
+ // child has only a URL, so `adoptMark` fetches it and runs the same derivation in the browser,
469
+ // measuring the box from the drawing instead of being told it.
470
+ //
471
+ // Here rather than in the three children because this cut is what rendered `#navParent`: three
472
+ // consumers each remembering a line is O(N), and the third one always forgets.
473
+ if (document.getElementById("navParent")) adoptMark({ id: "navParent" });
474
+
461
475
  // Both or neither — see the props above. When both are set the strip names the SECTIONS; core's
462
476
  // default, which names the persona and its handle, is left entirely alone otherwise. Nothing here
463
477
  // reproduces that default, which is the point: `.pname` and `.handle` stay core's business.