@zazz-ui/core 0.8.0 → 0.8.1

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,11 @@
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.8.1 (2026-10-19)
4
+
5
+ ### scroll-fade
6
+
7
+ - Fix: the fades never ran from the single-file bundle (`dist/zazz.css`, which the CDN snippets load). The minifier folded `animation-timeline` into the `animation` shorthand (parcel-bundler/lightningcss#1369), browsers drop a shorthand that names a `scroll()` timeline, and the registered fade depths stayed at 0, so a scroller showed a hard edge. The timeline longhands now sit in a block of their own, and a bundle test guards the output. Vendored and `index.css` consumers were never affected.
8
+
3
9
  ## 0.8.0 (2026-10-19)
4
10
 
5
11
  ### 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.8.0/dist/zazz.css" />
23
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.8.1/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.8.0/dist/zazz.js"></script>
39
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.8.1/dist/zazz.js"></script>
40
40
  ```
41
41
 
42
42
  Use an exact version in CDN URLs. Under a strict `script-src`, give the import map and the theme script the response's nonce (`buildHead({ nonce })` does); the docs' [security page](https://zazz.sh/docs/install/security/) has the full policy, including `style-src-attr` for the utilities. 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.
@@ -0,0 +1 @@
1
+ function e(e,t,n){for(;t<n&&/\s/.test(e[t]);)t++;for(;n>t&&/\s/.test(e[n-1]);)n--;return[t,n]}const t=/!\s*important$/i;function n(n){let r=[],i=(i,a)=>{let o=e(n,i,a);if(o[0]===o[1])return;let s=n.indexOf(`:`,o[0]),c=s!==-1&&s<o[1],l=c?e(n,o[0],s):o,u=c?e(n,s+1,o[1]):[o[1],o[1]],d=n.slice(...u);r.push({span:o,name:n.slice(...l),nameSpan:l,colon:c?s:-1,value:d,valueSpan:u,priority:t.test(d)?`important`:``})},a=0,o=null,s=0;for(let e=0;e<n.length;e++){let t=n[e];o?t===`\\`?e++:t===o&&(o=null):t===`"`||t===`'`?o=t:t===`(`?a++:t===`)`?a=Math.max(0,a-1):t===`;`&&a===0&&(i(s,e),s=e+1)}return i(s,n.length),r}function r({value:e}){return e.replace(t,``).trimEnd()}function i(e){if(!(`style`in e))return!1;let t=e.getAttribute(`style`);return!!t&&t.includes(`:`)&&e.style.length===0}function a(e=document){for(let t of e.querySelectorAll(`[style]`))if(i(t))return!0;return!1}function o(e){let t=/* @__PURE__ */ new Map;for(let i of n(e))i.colon!==-1&&t.set(i.name,[r(i),i.priority]);return t}function s(e,t){let{style:n}=e;if(n.length!==t.size)return!1;for(let[e,[r,i]]of t)if(n.getPropertyValue(e).trim()!==r.trim()||n.getPropertyPriority(e)!==i)return!1;return!0}function c(e){if(!(`style`in e)||e.getAttribute(`data-ui-guard`)===`off`)return;let t=e,n=o(e.getAttribute(`style`)??``);if(!s(t,n)){for(let e of[...t.style].reverse())t.style.removeProperty(e);for(let[e,[r,i]]of n)t.style.setProperty(e,r,i)}}function l(e){e instanceof Element&&c(e);for(let t of e.querySelectorAll(`[style]`))c(t)}let u=null;function d(e){for(let t of e){t.type===`attributes`&&c(t.target);for(let e of t.addedNodes)e instanceof Element&&l(e)}}const f={blockedInlineStyles:a,applyInlineStyles:c,start(e=document.body){f.stop(),l(e),u=new MutationObserver(d),u.observe(e,{attributes:!0,attributeFilter:[`style`],childList:!0,subtree:!0})},stop(){u?.disconnect(),u=null}};typeof window<`u`&&typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>f.start()):f.start());export{f as Csp};
package/dist/sri.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "dist/csp-D72qtdXZ.js": "sha384-ql65Y8rnRK2SaClp37crhsy4jvWfVc6BkojqC2qaxcbd5iJDAUBZ0JgDOg8n19As",
2
+ "dist/csp-DR-s45Kg.js": "sha384-SRUYG+OT4HN+P3+I9IKcQzpaASIhLzYatHDTdH0+TQ+hO0T5I9+vKp+676YcwyG8",
3
3
  "dist/scroll-state-C8mA5gq6.js": "sha384-m9uzgIAkSnk8Es+jgCbChIYFu4rPyr00IB7lrAR/8dcsPc3u75VA7Wq5LIEAvXpT",
4
- "dist/zazz.css": "sha384-iExSFLLKb4Ml7sC9QZO9iRH5mMMAgMwoiBdCiF/yY8LiFZbtpBT1O8wsqqM/YcCF",
5
- "dist/zazz.js": "sha384-T75ikUl3Hsv7Au4BH7PC06tGef+K8cJMwYaUwkjFQrgY8SXB+IjqxQhtq6tSCneN",
4
+ "dist/zazz.css": "sha384-kzk4A+yGLjZsPH0PLoP7WDSC8/oWj0UzGvDiG2JRiMkvRbFetMQWA0wtjgC3BI/R",
5
+ "dist/zazz.js": "sha384-d1Kibv6ytJiJ3td92TxjZQDIu8jtbVLrd+dVSygx3ZvJGOUvxLpbSOrbxr31TEKD",
6
6
  "src/base/_breakpoints.css": "sha384-vsvdoL+ZjTa5gyCiMp4DlNIbr9rxkLqfQjZ+W3YTp2Apuuu+1/Dd68ACtcBOip3v",
7
7
  "src/base/_defaults.css": "sha384-OKB2RkRTdHkgUGvpmkC9IiWbodoqUrzZSTeYafRrV7IiKd0uFPe4+HDsdzhYkn8n",
8
8
  "src/base/_layers.css": "sha384-oP5mW12kxkLOsf0YZCjBxZ+QxearUXLYbRHv4ynTgvAbVMur2O9gXAPv9DZH8QGH",
@@ -66,7 +66,7 @@
66
66
  "src/base/signals.js": "sha384-N4p17bKbP9wixbRP1y8qH7XQ+FGKNzyFLMd63FCDE8qz3UKRx8csEQTLGodDCRBi",
67
67
  "src/base/style-format.js": "sha384-6NPIOydUNtfLIa/gI5rnUf9Yo+SaTDoTjl+Hz14+ZfDc6UVANIR8NMyEkQt+TFdp",
68
68
  "src/base/typeahead.js": "sha384-jh0mIkDn2KiL9y+7vBq8hPXymo+yXd0d4PG4dUHq29B3NEvOmnxinqaxTyoPWUiV",
69
- "src/base/utilities.js": "sha384-mwsW9jx8VMn1ENjWRy3ZrHG0r3eC8NA95W1sJrW0ff5GbFU6+qLIB3M0j66XH5WW",
69
+ "src/base/utilities.js": "sha384-fBQBDHeTWiO96hHjDg8Vp0nwAyiQEYFzyPKVajq7RqFrD5VhN7QM134/xLQONtcR",
70
70
  "src/base/utils.js": "sha384-ViPJZ9b6onUuHHgvcn2w1CHs0WTzbRKn6HD9FfoIWFQpX+ogZ34Zzb+JWohhT4O0",
71
71
  "src/base/zazz-element.js": "sha384-UvckAl+GPm38SPS5B/V/ont0Pe9J5wb9K98ZB8+g2rd3ddlMHu3L27Mhv5ZfsQuw",
72
72
  "src/head.js": "sha384-k/Jupui92uWnK1OtEEyQyrvFWNhxY2Ovw6B33oQLt33vnICoPcEZc1ntp3lhcZwt",
@@ -77,7 +77,7 @@
77
77
  "src/primitives/alert-dialog/alert-dialog.css": "sha384-4E+JekkG+6cMsj89lI9TSOb5w52mG8dxCncKWd19GLiUydvhCiBzBzTn2LI9CxM9",
78
78
  "src/primitives/autocomplete/autocomplete.css": "sha384-6cOSg97IKnshQi1udOlwbwzcq7JnzqlS9QDTTiyPVwdqA60oqxeFuSqWKg3lEbri",
79
79
  "src/primitives/autocomplete/autocomplete.js": "sha384-WI2uVoam+LtX3ze2XI9XEQIlLULGg/I1hVlb54zGKcgEiYIjtNcmNO69Age4SmuV",
80
- "src/primitives/badge/badge.css": "sha384-Mnt8Hz17P56no4Qx7YtD8aYzaCHPYI6UytH2APUxNy5q5PaJadi2N7jK1AJ9yXya",
80
+ "src/primitives/badge/badge.css": "sha384-YdI7hTpAEc4n1hBORKox1cn1AhO9BpaFqfnFNZJNfZo2cMxBU15v/sIBaC397HXT",
81
81
  "src/primitives/button-group/button-group.css": "sha384-NZYiLlPlNOYc6r3kmO70iO0uLSDNZuKBYIIYOFWnp2uX1tTtT0dKaUYbWKBw8+zN",
82
82
  "src/primitives/button/button.css": "sha384-VB8oSjBThlSJqcTAxlOuIoewBCWFITJY4+XtNXxCOXyQzulN4yz6kXXLIfSeHeoo",
83
83
  "src/primitives/callout/callout.css": "sha384-YKX8QIN4Egd0HQyd+tdRda/f/WPNTwYwO4kcsMAznDnUmCFmwD8DvCdg63X1uBGV",
@@ -114,7 +114,7 @@
114
114
  "src/primitives/progress/progress.css": "sha384-xOX5awQaAMCNr91P8hEc9eanJ1QGd3j5jSEgDyP/c5skTz75S4rspRZlM+y/D7XA",
115
115
  "src/primitives/radio/radio.css": "sha384-71yKzzSFPPAQkk/eNgtM+NboI6KEAYk6WKBgqHiNXlsB0/btu9AphEZxNN/rZKiX",
116
116
  "src/primitives/reveal/reveal.css": "sha384-DzYYxsKPlMEDEbrCXmb33hGfb+FCeLtbdoZlGhJDIZyDWZQz2HO3VK12NT8iIp+H",
117
- "src/primitives/scroll-fade/scroll-fade.css": "sha384-c5y4wmTqdi+4ePbwxF7hVEgA7syA+NlzfZE/5WpfF+YMT1iimpohn1d/GA9GAYUT",
117
+ "src/primitives/scroll-fade/scroll-fade.css": "sha384-CxPPy7Oxwu2tfNxxYVhI6VbPwNXf0IsyHH5OtR1ZKgfxQsEvR1zCR+3GSbjmaCcq",
118
118
  "src/primitives/select/multiselect.js": "sha384-4uSHU1RxSQMjVc8fOJ9lGZwGoCSgsvkKEMCGjOYKD56WRd0hNR3dQGum+/87RaGH",
119
119
  "src/primitives/select/select.css": "sha384-Ry8fZJWyUSDi1LOLXhtDgymqWK9KomM3dxbAQjKpS0CnGVbqxSLBGobkRE3ID6M4",
120
120
  "src/primitives/separator/separator.css": "sha384-UziCDvCsa0uoO/GyFvzOXs3PZ3CdS5julG1/Vd30NH1yxFs5yeqXY9SujY1zp/sJ",