accessify-widget 0.3.20 → 0.3.21
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-C-1tZ4Z4.js → index-bqpA9Puf.js} +23 -9
- package/dist/{index-C-1tZ4Z4.js.map → index-bqpA9Puf.js.map} +1 -1
- package/dist/{keyboard-nav-BoVcT5J2.js → keyboard-nav-CPnRSBAa.js} +2 -2
- package/dist/{keyboard-nav-BoVcT5J2.js.map → keyboard-nav-CPnRSBAa.js.map} +1 -1
- package/dist/loader.min.js +1 -1
- package/dist/{page-structure-BpI_X1B-.js → page-structure-Bp15mzNy.js} +2 -2
- package/dist/{page-structure-BpI_X1B-.js.map → page-structure-Bp15mzNy.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
|
@@ -6637,14 +6637,14 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6637
6637
|
const FEATURE_LOADERS = {
|
|
6638
6638
|
contrast: () => import("./contrast-CqsICAkU.js"),
|
|
6639
6639
|
"text-size": () => import("./text-size-m_mHNPWo.js"),
|
|
6640
|
-
"keyboard-nav": () => import("./keyboard-nav-
|
|
6640
|
+
"keyboard-nav": () => import("./keyboard-nav-CPnRSBAa.js"),
|
|
6641
6641
|
"link-highlight": () => import("./link-highlight-DBGm067Y.js"),
|
|
6642
6642
|
"reading-guide": () => import("./reading-guide-VT8NciIL.js"),
|
|
6643
6643
|
"reading-mask": () => import("./reading-mask-BABChuCz.js"),
|
|
6644
6644
|
"animation-stop": () => import("./animation-stop-C0MwseK0.js"),
|
|
6645
6645
|
"hide-images": () => import("./hide-images-B_LeCBcd.js"),
|
|
6646
6646
|
"big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
|
|
6647
|
-
"page-structure": () => import("./page-structure-
|
|
6647
|
+
"page-structure": () => import("./page-structure-Bp15mzNy.js"),
|
|
6648
6648
|
tts: () => import("./tts-CjszLRnb.js"),
|
|
6649
6649
|
"text-simplify": () => import("./text-simplify-DPTSSdUB.js"),
|
|
6650
6650
|
"alt-text": () => Promise.resolve().then(() => altText)
|
|
@@ -8412,12 +8412,26 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
|
|
|
8412
8412
|
if (isImg) {
|
|
8413
8413
|
const parent = target.parentElement;
|
|
8414
8414
|
if (!parent) return;
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8415
|
+
let overflowAncestor = null;
|
|
8416
|
+
let el = parent;
|
|
8417
|
+
while (el && el !== document.body) {
|
|
8418
|
+
const cs = getComputedStyle(el);
|
|
8419
|
+
if (cs.overflow === "hidden" && cs.position !== "static") {
|
|
8420
|
+
overflowAncestor = el;
|
|
8421
|
+
break;
|
|
8422
|
+
}
|
|
8423
|
+
el = el.parentElement;
|
|
8424
|
+
}
|
|
8425
|
+
if (overflowAncestor) {
|
|
8426
|
+
anchor = overflowAncestor;
|
|
8427
|
+
} else {
|
|
8428
|
+
const parentPos = getComputedStyle(parent).position;
|
|
8429
|
+
if (parentPos === "static") parent.style.position = "relative";
|
|
8430
|
+
anchor = parent;
|
|
8431
|
+
const imgEl = target;
|
|
8432
|
+
badgeTop = `${imgEl.offsetTop + 6}px`;
|
|
8433
|
+
badgeLeft = `${imgEl.offsetLeft + 6}px`;
|
|
8434
|
+
}
|
|
8421
8435
|
} else {
|
|
8422
8436
|
const pos = getComputedStyle(target).position;
|
|
8423
8437
|
if (pos === "static") target.style.position = "relative";
|
|
@@ -8938,4 +8952,4 @@ export {
|
|
|
8938
8952
|
init as i,
|
|
8939
8953
|
t
|
|
8940
8954
|
};
|
|
8941
|
-
//# sourceMappingURL=index-
|
|
8955
|
+
//# sourceMappingURL=index-bqpA9Puf.js.map
|