accessify-widget 0.3.31 → 0.3.33

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.
@@ -1,4 +1,4 @@
1
- import { d, i } from "./index-DpY2zzln.js";
1
+ import { d, i } from "./index-BEHW9bFe.js";
2
2
  export {
3
3
  d as destroy,
4
4
  i as init
@@ -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-rr1x0Wze.js"),
6644
+ "keyboard-nav": () => import("./keyboard-nav-CInuB3YJ.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-DPkn_D8q.js"),
6651
+ "page-structure": () => import("./page-structure-BjLqiNKh.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)
@@ -8403,26 +8403,12 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
8403
8403
  if (isImg) {
8404
8404
  const parent = target.parentElement;
8405
8405
  if (!parent) return;
8406
- let overflowAncestor = null;
8407
- let el = parent;
8408
- while (el && el !== document.body) {
8409
- const cs = getComputedStyle(el);
8410
- if (cs.overflow === "hidden" && cs.position !== "static") {
8411
- overflowAncestor = el;
8412
- break;
8413
- }
8414
- el = el.parentElement;
8415
- }
8416
- if (overflowAncestor) {
8417
- anchor = overflowAncestor;
8418
- } else {
8419
- const parentPos = getComputedStyle(parent).position;
8420
- if (parentPos === "static") parent.style.position = "relative";
8421
- anchor = parent;
8422
- const imgEl = target;
8423
- badgeTop = `${imgEl.offsetTop + 6}px`;
8424
- badgeLeft = `${imgEl.offsetLeft + 6}px`;
8425
- }
8406
+ const parentPos = getComputedStyle(parent).position;
8407
+ if (parentPos === "static") parent.style.position = "relative";
8408
+ anchor = parent;
8409
+ const imgEl = target;
8410
+ badgeTop = `${imgEl.offsetTop + 6}px`;
8411
+ badgeLeft = `${imgEl.offsetLeft + 6}px`;
8426
8412
  } else {
8427
8413
  const pos = getComputedStyle(target).position;
8428
8414
  if (pos === "static") target.style.position = "relative";
@@ -8943,4 +8929,4 @@ export {
8943
8929
  init as i,
8944
8930
  t
8945
8931
  };
8946
- //# sourceMappingURL=index-DpY2zzln.js.map
8932
+ //# sourceMappingURL=index-BEHW9bFe.js.map