stitch2 0.19.1 → 0.19.2

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.
Files changed (2) hide show
  1. package/dist/audit.js +3 -0
  2. package/package.json +1 -1
package/dist/audit.js CHANGED
@@ -125,6 +125,9 @@ export async function audit(opts) {
125
125
  for (let n = walker.nextNode(); n; n = walker.nextNode()) {
126
126
  if (!n.textContent.trim())
127
127
  continue;
128
+ // A label allowed two lines on purpose (line-clamp-2: a navigation rail's, under its icon) may wrap.
129
+ if ((parseInt(getComputedStyle(n.parentElement).getPropertyValue('-webkit-line-clamp')) || 0) > 1)
130
+ continue;
128
131
  const range = document.createRange();
129
132
  range.selectNodeContents(n);
130
133
  const tops = [...range.getClientRects()].filter((r) => r.width > 1).map((r) => r.top + r.height / 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stitch2",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "description": "A design canvas, layout and type checks, component consistency and screen versioning for agent-built UI, on Google's DESIGN.md format.",
5
5
  "license": "MIT",
6
6
  "author": "ifokeev",