accessify-widget 0.3.31 → 0.3.32
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/accessify.min.js +1 -1
- package/dist/accessify.min.js.map +1 -1
- package/dist/accessify.mjs +1 -1
- package/dist/{index-DpY2zzln.js → index-hf7U_NmB.js} +10 -4
- package/dist/{index-DpY2zzln.js.map → index-hf7U_NmB.js.map} +1 -1
- package/dist/{keyboard-nav-rr1x0Wze.js → keyboard-nav-B6r-k8He.js} +2 -2
- package/dist/{keyboard-nav-rr1x0Wze.js.map → keyboard-nav-B6r-k8He.js.map} +1 -1
- package/dist/loader.min.js +1 -1
- package/dist/{page-structure-DPkn_D8q.js → page-structure-B7Easdyx.js} +2 -2
- package/dist/{page-structure-DPkn_D8q.js.map → page-structure-B7Easdyx.js.map} +1 -1
- package/dist/widget.js +1 -1
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/dist/accessify.mjs
CHANGED
|
@@ -6641,14 +6641,14 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6641
6641
|
const FEATURE_LOADERS = {
|
|
6642
6642
|
contrast: () => import("./contrast-CqsICAkU.js"),
|
|
6643
6643
|
"text-size": () => import("./text-size-m_mHNPWo.js"),
|
|
6644
|
-
"keyboard-nav": () => import("./keyboard-nav-
|
|
6644
|
+
"keyboard-nav": () => import("./keyboard-nav-B6r-k8He.js"),
|
|
6645
6645
|
"link-highlight": () => import("./link-highlight-DBGm067Y.js"),
|
|
6646
6646
|
"reading-guide": () => import("./reading-guide-VT8NciIL.js"),
|
|
6647
6647
|
"reading-mask": () => import("./reading-mask-BABChuCz.js"),
|
|
6648
6648
|
"animation-stop": () => import("./animation-stop-_chC8bg1.js"),
|
|
6649
6649
|
"hide-images": () => import("./hide-images-B_LeCBcd.js"),
|
|
6650
6650
|
"big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
|
|
6651
|
-
"page-structure": () => import("./page-structure-
|
|
6651
|
+
"page-structure": () => import("./page-structure-B7Easdyx.js"),
|
|
6652
6652
|
tts: () => import("./tts-CjszLRnb.js"),
|
|
6653
6653
|
"text-simplify": () => import("./text-simplify-Cfykj7Ak.js"),
|
|
6654
6654
|
"alt-text": () => Promise.resolve().then(() => altText)
|
|
@@ -8405,7 +8405,8 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
|
|
|
8405
8405
|
if (!parent) return;
|
|
8406
8406
|
let overflowAncestor = null;
|
|
8407
8407
|
let el = parent;
|
|
8408
|
-
|
|
8408
|
+
const MAX_LEVELS = 2;
|
|
8409
|
+
for (let i = 0; i < MAX_LEVELS && el && el !== document.body; i++) {
|
|
8409
8410
|
const cs = getComputedStyle(el);
|
|
8410
8411
|
if (cs.overflow === "hidden" && cs.position !== "static") {
|
|
8411
8412
|
overflowAncestor = el;
|
|
@@ -8415,6 +8416,11 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
|
|
|
8415
8416
|
}
|
|
8416
8417
|
if (overflowAncestor) {
|
|
8417
8418
|
anchor = overflowAncestor;
|
|
8419
|
+
const imgEl = target;
|
|
8420
|
+
const containerRect = overflowAncestor.getBoundingClientRect();
|
|
8421
|
+
const imgRect = imgEl.getBoundingClientRect();
|
|
8422
|
+
badgeTop = `${Math.max(6, imgRect.top - containerRect.top + 6)}px`;
|
|
8423
|
+
badgeLeft = `${Math.max(6, imgRect.left - containerRect.left + 6)}px`;
|
|
8418
8424
|
} else {
|
|
8419
8425
|
const parentPos = getComputedStyle(parent).position;
|
|
8420
8426
|
if (parentPos === "static") parent.style.position = "relative";
|
|
@@ -8943,4 +8949,4 @@ export {
|
|
|
8943
8949
|
init as i,
|
|
8944
8950
|
t
|
|
8945
8951
|
};
|
|
8946
|
-
//# sourceMappingURL=index-
|
|
8952
|
+
//# sourceMappingURL=index-hf7U_NmB.js.map
|