@studiolxd/brand 49.8.0 → 49.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 +17 -0
- package/dist/app-shell.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ El paquete sigue [semver](https://semver.org/lang/es/): **patch** para bug fixes
|
|
|
7
7
|
regeneración de `dist`, **minor** para componentes/props/variantes/tokens nuevos, **major**
|
|
8
8
|
para breaking changes.
|
|
9
9
|
|
|
10
|
+
## [49.8.1] — 2026-09-18
|
|
11
|
+
|
|
12
|
+
> **Patch.** `AppShell` ya no revienta sin `ResizeObserver`.
|
|
13
|
+
|
|
14
|
+
### El armazón mide la barra de sistema solo si hay `ResizeObserver`
|
|
15
|
+
|
|
16
|
+
Desde 49.8.0, `AppShell` medía la ranura `banner` con `new ResizeObserver(...)` en el
|
|
17
|
+
callback ref de montaje. En Vitest + jsdom sin polyfill (o en cualquier entorno que no lo
|
|
18
|
+
implemente) eso caía con `ReferenceError: ResizeObserver is not defined` — lo sufrió
|
|
19
|
+
`@slxd/app-shell` de la suite, que lo tapó con un polyfill en su propio setup. Un componente
|
|
20
|
+
del sistema tiene que ser inofensivo sin DOM real.
|
|
21
|
+
|
|
22
|
+
`AppShell` guarda ahora la creación del observer tras `typeof ResizeObserver === 'undefined'`:
|
|
23
|
+
sin él, mide una vez con `getBoundingClientRect` y no observa (la barra queda con el
|
|
24
|
+
comportamiento previo, sin reobservar redimensionados). `useIsDesktop` aplica la misma guarda
|
|
25
|
+
sobre `window.matchMedia`, la otra API de navegador que el armazón usa al montar.
|
|
26
|
+
|
|
10
27
|
## [49.8.0] — 2026-09-18
|
|
11
28
|
|
|
12
29
|
> **Minor.** Lo que cae dentro de un `Banner` lee con la tinta del relleno en todas las
|
package/dist/app-shell.js
CHANGED
|
@@ -10,8 +10,9 @@ import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
|
10
10
|
//#region src/stories/sections/AppShell/AppShell.tsx
|
|
11
11
|
var f = "(min-width: 1024px)";
|
|
12
12
|
function p() {
|
|
13
|
-
let [e, t] = l(() => typeof window > "u" ? !0 : window.matchMedia(f).matches);
|
|
13
|
+
let [e, t] = l(() => typeof window > "u" || typeof window.matchMedia != "function" ? !0 : window.matchMedia(f).matches);
|
|
14
14
|
return s(() => {
|
|
15
|
+
if (typeof window.matchMedia != "function") return;
|
|
15
16
|
let e = window.matchMedia(f), n = () => t(e.matches);
|
|
16
17
|
return n(), e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
17
18
|
}, []), e;
|
|
@@ -52,7 +53,7 @@ function m({ banner: i, header: f, sidebar: m, children: h, defaultSidebar: g =
|
|
|
52
53
|
]), [I, L] = l(0), R = o((e) => {
|
|
53
54
|
if (!e) return;
|
|
54
55
|
let t = () => L(e.getBoundingClientRect().height);
|
|
55
|
-
t();
|
|
56
|
+
if (t(), typeof ResizeObserver > "u") return;
|
|
56
57
|
let n = new ResizeObserver(t);
|
|
57
58
|
return n.observe(e), () => {
|
|
58
59
|
n.disconnect(), L(0);
|