@justai/cuts 0.6.0 → 0.7.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.6.0",
3
+ "version": "0.7.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": {
@@ -14,7 +14,8 @@
14
14
  ],
15
15
  "exports": {
16
16
  "./Base.astro": "./src/Base.astro",
17
- "./LangPicker.astro": "./src/LangPicker.astro"
17
+ "./LangPicker.astro": "./src/LangPicker.astro",
18
+ "./BackToZone.astro": "./src/BackToZone.astro"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "@justai/ui": ">=0.2.0",
@@ -0,0 +1,33 @@
1
+ ---
2
+ // Home affordance → app.zone (the platform / App Store home). Standard on every app:
3
+ // always visible at the top-left of the toolbar. Also tidies the ?ref / ?lang hints
4
+ // from the URL so shared links stay clean.
5
+ ---
6
+
7
+ <a class="home" href="https://app.zone" data-home aria-label="app.zone" title="app.zone">
8
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10.5L12 3l9 7.5"/><path d="M5 9.5V20h14V9.5"/></svg>
9
+ </a>
10
+
11
+ <style>
12
+ /* icon-only, flat — flush to the left edge of the (full-bleed) toolbar */
13
+ .home {
14
+ display: inline-grid; place-items: center; width: 36px; height: 36px;
15
+ color: var(--text-dim); text-decoration: none; margin-inline-start: -7px;
16
+ transition: color 0.2s, transform 0.2s var(--ease-spring);
17
+ }
18
+ .home:hover { color: var(--text); }
19
+ .home:active { transform: scale(0.9); }
20
+ .home svg { width: 20px; height: 20px; }
21
+ </style>
22
+
23
+ <script>
24
+ // Tidy the URL: the ?ref / ?lang hints have done their job (lang is consumed by the
25
+ // head detect script); keep shared links clean.
26
+ const params = new URLSearchParams(location.search);
27
+ if (params.has("ref") || params.has("lang")) {
28
+ params.delete("ref");
29
+ params.delete("lang");
30
+ const q = params.toString();
31
+ history.replaceState(null, "", location.pathname + (q ? "?" + q : "") + location.hash);
32
+ }
33
+ </script>