hyperframes 0.7.78 → 0.7.80
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/dist/cli.js +171 -96
- package/dist/commands/layout-audit.browser.js +5 -1
- package/dist/hyperframe-runtime.js +23 -23
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +23 -23
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +3 -2
- package/dist/studio/assets/{hyperframes-player-uiAAPKvw.js → hyperframes-player-Csai0_vh.js} +1 -1
- package/dist/studio/assets/{index-CDSTMtUs.js → index-B5aYTg-4.js} +1 -1
- package/dist/studio/assets/{index-BSZrK0bx.js → index-BhdJN49y.js} +202 -202
- package/dist/studio/assets/{index-r1tKKlU7.js → index-By-YiRxq.js} +1 -1
- package/dist/studio/assets/index-D379YOKT.css +1 -0
- package/dist/studio/index.d.ts +45 -3
- package/dist/studio/index.html +2 -2
- package/dist/studio/index.js +1891 -1522
- package/dist/studio/index.js.map +1 -1
- package/package.json +5 -6
- package/dist/studio/assets/index-DpkO2Hvw.css +0 -1
|
@@ -105,6 +105,10 @@
|
|
|
105
105
|
return !!element.closest("[data-layout-allow-overflow]");
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
function hasAllowCaptionZoneFlag(element) {
|
|
109
|
+
return !!element.closest("[data-layout-allow-caption-zone]");
|
|
110
|
+
}
|
|
111
|
+
|
|
108
112
|
function hasTextClipOptOut(element) {
|
|
109
113
|
return hasAllowOverflowFlag(element) || element.hasAttribute("data-layout-bleed");
|
|
110
114
|
}
|
|
@@ -1396,7 +1400,7 @@
|
|
|
1396
1400
|
}
|
|
1397
1401
|
if (!isVisibleElement(element, 0.05, false)) continue;
|
|
1398
1402
|
const elementRect = toRect(element.getBoundingClientRect());
|
|
1399
|
-
if (includeText && hasOwnTextCandidate(element, true)) {
|
|
1403
|
+
if (includeText && hasOwnTextCandidate(element, true) && !hasAllowCaptionZoneFlag(element)) {
|
|
1400
1404
|
const rect = textRectFor(element, true);
|
|
1401
1405
|
if (rect) {
|
|
1402
1406
|
candidates.push(
|