@zazz-ui/core 0.5.3 → 0.5.4

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/AUTHORING.md CHANGED
@@ -123,7 +123,7 @@ Order of preference for changing how a primitive looks: preset, then hook on a s
123
123
 
124
124
  ## Navigation
125
125
 
126
- Pages navigate normally by default; the kit animates full loads with CSS view transitions. To keep state across pages (a toast stack, a playing video, an open mini-cart), opt in with `<html data-ui-navigation="swap">` on every page that should swap. A navigation between two opted-in pages replaces the whole `<body>` in place, except elements marked `data-ui-persist="<id>"` that both pages contain: those keep their live DOM, state, and scroll offsets, and their links take `aria-current` from the new page. Nothing else persists, so headers and footers come from the new page unless marked. The window scrolls to the top (or the target) instantly; back and forward restore it.
126
+ Pages navigate normally by default, with no transition. To animate full loads, add `@view-transition { navigation: auto; }` to the site's own CSS; `_view-transitions.css` styles it. To keep state across pages (a toast stack, a playing video, an open mini-cart), opt in with `<html data-ui-navigation="swap">` on every page that should swap. A navigation between two opted-in pages replaces the whole `<body>` in place, except elements marked `data-ui-persist="<id>"` that both pages contain: those keep their live DOM, state, and scroll offsets, and their links take `aria-current` from the new page. Nothing else persists, so headers and footers come from the new page unless marked. The window scrolls to the top (or the target) instantly; back and forward restore it.
127
127
 
128
128
  A region whose content depends on the page, such as a section sidebar, should not persist: give it `data-ui-persist-scroll="<id>"` instead. It renders from the new page and keeps only its scroll offset. Style current-page links with the `current` state (`aria-current`), so a persisted header updates too: `aria-current="page"` with `--bg: transparent; --bg--current: var(--color-muted)` on the link.
129
129
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  Notable changes to `@zazz-ui/core`, grouped by primitive or base scope under each version. The grouping is load-bearing: the `zazz-ui` CLI's `update` and `diff` print only the slice that touches the files you've vendored. Breaking entries are flagged **BREAKING** with a one-line migration note. During 0.x, a minor bump means at least one breaking entry (ADR-0010 has the full definition of "breaking").
2
2
 
3
+ ## 0.5.4 (2026-10-08)
4
+
5
+ ### base
6
+
7
+ - Cross-document view transitions are opt-in. The kit no longer declares `@view-transition { navigation: auto }`, which animated every same-origin navigation on any page that loaded it and couldn't be turned off for some pages. It ships in a patch because nothing breaks without it: pages that relied on it load without the crossfade. To keep page-load transitions, add `@view-transition { navigation: auto; }` to your own CSS; the kit's `::view-transition-*` styling still applies. Swap navigation (`data-ui-navigation="swap"`) is unchanged.
8
+ - `h4`, `h5`, `h6` and the `text-h4`, `text-h5`, `text-h6` roles default to `text-wrap: pretty` instead of `balance`; display and `h1`–`h3` stay balanced. `--text-wrap-heading` still sets every heading at once.
9
+
3
10
  ## 0.5.3 (2026-10-08)
4
11
 
5
12
  ### base
package/README.md CHANGED
@@ -20,7 +20,7 @@ import "@zazz-ui/core"; // custom elements and shared behaviors
20
20
  From a CDN, the script needs an import map for its dependencies and the Interest Invokers polyfill:
21
21
 
22
22
  ```html
23
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.3/dist/zazz.css" />
23
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.4/dist/zazz.css" />
24
24
  <script type="importmap">
25
25
  {
26
26
  "imports": {
@@ -36,7 +36,7 @@ From a CDN, the script needs an import map for its dependencies and the Interest
36
36
  type="module"
37
37
  src="https://cdn.jsdelivr.net/npm/invokers@2.2.2/dist/esm/production/interest.js"
38
38
  ></script>
39
- <script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.3/dist/zazz.js"></script>
39
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.4/dist/zazz.js"></script>
40
40
  ```
41
41
 
42
42
  Use an exact version in CDN URLs. The [installation guide](https://zazz.sh/docs/install/installation/) has the complete `<head>`, with fonts, the theme script, a per-primitive variant, and integrity hashes on every URL; `buildHead({ cdn: { version } })` from `@zazz-ui/core/head` returns the same markup. Each release also includes `dist/sri.json` with the SHA-384 hash of every published file.
package/dist/sri.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dist/scroll-state-C8mA5gq6.js": "sha384-m9uzgIAkSnk8Es+jgCbChIYFu4rPyr00IB7lrAR/8dcsPc3u75VA7Wq5LIEAvXpT",
3
- "dist/zazz.css": "sha384-XgApfwCILfysr5sZq2NyaaPrCxYvqbcNBHruXaCLreCGAz+qpH6/xYJ4a6s8Z1xJ",
3
+ "dist/zazz.css": "sha384-lPqQXCZPRGyt07w/czZXFPkrUmWaiDdtVfzNl4APkDfmz/28mANp5YKxMl2A6Egk",
4
4
  "dist/zazz.js": "sha384-OpW5MvOX7FJBiG064atEDfRFSCnOY1SmrGAsaNo8430/SbGIJD2h8nGsmZwWDopL",
5
5
  "src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
6
6
  "src/base/_layers.css": "sha384-5DNbucvN9usFbR5WoM9jF0TkR+sHzIxz3IMOWIWIRSe46yec/ZNTk3OE/OKSdLJZ",
@@ -22,7 +22,7 @@
22
22
  "src/base/_properties.css": "sha384-dL0BooDwguPboeooBn48djkhQqcmZUqTyCJ/gpqfdGOnha/sc3Dd0kYIauCbC82H",
23
23
  "src/base/_reset.css": "sha384-DLNIT+B0U6Ef0gVExm2NlxIsopEnMiE6YBLTqUHYb3D4XdOiblzVXRLL+EtcacAp",
24
24
  "src/base/_switches.css": "sha384-AEvv3WNMKlSSZRYwstCBcxQ3UbRm0avgUtoHQZJYXIYnXXErsEyMkMRti+6Fk+c4",
25
- "src/base/_typography.css": "sha384-gvy8NaerXu+HPDI2MsPXyK0ANt7C7BOxgLeuJLx4cZhSA1B0ogkVLW0mmc7JUeZ2",
25
+ "src/base/_typography.css": "sha384-S9Rgf5LYQQI89fmhwz4lrMqV8BfvxnI1ucFchmbcxnyMoX3r6gZW13UG3tW0GnMf",
26
26
  "src/base/_utilities-box.css": "sha384-eodP3OPkvsLqO1k73C2cw8twdBTvQ9CeniCKaLHx8fsd7aichCo7q6MMjUEk31lV",
27
27
  "src/base/_utilities-color.css": "sha384-tnZ/BEb5Mu3Xo3HhuwqfYrb4bRTgVUUPRF+R1agdefJuGPdfbkNgwu7jp/8XmLYs",
28
28
  "src/base/_utilities-effects.css": "sha384-x9BgrQCQAr6ocy6tN0gefa7YgoqiEs2KxmEn7E/xzxWihXXHpRmHPHL/33iUG+CH",
@@ -49,12 +49,12 @@
49
49
  "src/base/_utilities-tier-xl.css": "sha384-SoNEkcENI+cPkcNjeqhyn++UP2QcHrL+GMse43V2xizprzOHGM9G9ofPeSEArkTc",
50
50
  "src/base/_utilities-typography.css": "sha384-3mlnfs8/nCHIX2FY92VchBznlSlgsSfev85m3AelHX8t0WKKTc5zYvIL9asj7A0H",
51
51
  "src/base/_variables.css": "sha384-39e7qP4aLpARSqNJIhKZRy4+9lz1mXB74s12ml/MVWkinn7NYyBRQjn6IJ0bQs/l",
52
- "src/base/_view-transitions.css": "sha384-v7vtyEBEBI9OrSg2dcMXRuXry3qdvGgl6KQpkMr4ZBAOyN7pJrjkw9cLlYvl4MTu",
52
+ "src/base/_view-transitions.css": "sha384-0aNEjsjVLNa3+6y7ektne0C4vgbjg4Sg1m1vY6PCB6ysRbwyqngfy/D5b+BAsYWY",
53
53
  "src/base/command-score.js": "sha384-o8BNVjYP6YWyVnMBzMJdBanMFwhsYbp3HsBK4FSYa32A2cWTwI79hm0dBo4z+ZW0",
54
54
  "src/base/dialog-lifecycle.js": "sha384-4x7CIGZ4ynkMyD/Z8AMjjVQ1Q8k9q+j+YdXfCg1jqr3iOdHUbGkjudNR7ESAzYa1",
55
55
  "src/base/embla.js": "sha384-pO7q7M5Z7rf9D9snHCn9C9gFQ4cFerhAgoKRTTVmcM+bHTyT7kH+GXtACA7VKBBX",
56
56
  "src/base/hotkeys.js": "sha384-THU0JbWwkM9QAVJ2BwF5rwGHOIhCPLKHxfhmixYyyCBU0eNRi9kz6VxfNGaj8D8O",
57
- "src/base/navigation.js": "sha384-oUfFgpULcPM12ZTa0uQctcTeCE4E5RtpFnSvHeZjHZg6xYciwl48CobYGeDKdXL1",
57
+ "src/base/navigation.js": "sha384-jmGCKBwybsxzFCKMvpnPV8C3HnnYbQFuLTr5xUhMyw9vKKM7YcxLwtXeMd9ZHlS1",
58
58
  "src/base/reveal.js": "sha384-RLpaipZUT7bLSK7Bfazoe2xxkwVqInKrWqCtczlpxoYxNu+l1Ei58zJnCka0vcRM",
59
59
  "src/base/scroll-state.js": "sha384-ql6E3qGCmO5nKrmORbRCrU9bVlbIpcYvQq+zr26VZhRNHdnqNuJGH9mK0hXy1vG1",
60
60
  "src/base/signals.js": "sha384-N4p17bKbP9wixbRP1y8qH7XQ+FGKNzyFLMd63FCDE8qz3UKRx8csEQTLGodDCRBi",