synthesisui 0.16.508 → 0.16.509

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.
@@ -144,7 +144,20 @@ export const PAGE_LANGUAGE = `(() => {
144
144
  const contentWidth = content && Number(content[0]) >= 900 ? Number(content[0]) : inset ? innerWidth - 2 * Number(inset[0]) : content ? Number(content[0]) : null;
145
145
  const rhythm = { bands: bands.length, sectionGap: median(gaps.filter((g) => g >= 64)), innerGap: median(gaps.filter((g) => g > 0 && g < 64)), contentWidth };
146
146
 
147
- return { type, components, bars, sections, cards, rhythm, width: innerWidth };
147
+ /* O QUE O SITE TEM E A ENGINE AINDA NÃO LÊ (o placar de fidelidade, E07, 23/10) - contado para a barra do quanto foi
148
+ extraído: cada um só pesa quando o site o usa. */
149
+ const shown = [...document.querySelectorAll("body *")].filter(vis);
150
+ const svgs = shown.filter((e) => e.tagName.toLowerCase() === "svg");
151
+ const unread = {
152
+ animations: document.getAnimations().length,
153
+ transitions: shown.filter((e) => { const d = getComputedStyle(e).transitionDuration; return !!d && d.split(",").some((x) => parseFloat(x) > 0); }).length,
154
+ artwork: svgs.filter((e) => { const q = e.getBoundingClientRect(); return q.width >= 120 && q.height >= 120; }).length + shown.filter((e) => e.tagName === "CANVAS" || e.tagName === "VIDEO").length,
155
+ gradients: shown.filter((e) => /gradient\\(/.test(getComputedStyle(e).backgroundImage)).length,
156
+ photos: shown.filter((e) => e.tagName === "IMG" && e.getBoundingClientRect().width >= 200).length,
157
+ icons: svgs.filter((e) => { const q = e.getBoundingClientRect(); return q.width <= 32 && q.height <= 32; }).length,
158
+ };
159
+
160
+ return { type, components, bars, sections, cards, rhythm, unread, width: innerWidth };
148
161
  })()`;
149
162
  /**
150
163
  * O AVISO DE COOKIES E O MODAL, ESCONDIDOS - só nas fotos: a leitura já foi medida. Medido em 21/10 nos 21 sites: 7 dobras
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.508",
3
+ "version": "0.16.509",
4
4
  "description": "Bring SynthesisUI design systems into any project - tokens, typed components, whole pages and an agent-ready CLAUDE.md manifest.",
5
5
  "type": "module",
6
6
  "bin": {