accessify-widget 0.3.104 → 0.3.105

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-Bsfz4nea.js";
1
+ import { d, i } from "./index-De-vZj27.js";
2
2
  export {
3
3
  d as destroy,
4
4
  i as init
@@ -6663,14 +6663,14 @@ function FeatureGrid($$anchor, $$props) {
6663
6663
  const FEATURE_LOADERS = {
6664
6664
  contrast: () => import("./contrast-CqsOs6Uo.js"),
6665
6665
  "text-size": () => import("./text-size-m_mHNPWo.js"),
6666
- "keyboard-nav": () => import("./keyboard-nav-Ce7uj953.js"),
6666
+ "keyboard-nav": () => import("./keyboard-nav-CC3-Xa0Q.js"),
6667
6667
  "link-highlight": () => import("./link-highlight-DBGm067Y.js"),
6668
6668
  "reading-guide": () => import("./reading-guide-VT8NciIL.js"),
6669
6669
  "reading-mask": () => import("./reading-mask-CImlx88t.js"),
6670
6670
  "animation-stop": () => import("./animation-stop-C2Ced0LV.js"),
6671
6671
  "hide-images": () => import("./hide-images-DdZdru63.js"),
6672
6672
  "big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
6673
- "page-structure": () => import("./page-structure-Bj5tC7r4.js"),
6673
+ "page-structure": () => import("./page-structure-Buh7vuTK.js"),
6674
6674
  tts: () => import("./tts-BytU4gzP.js"),
6675
6675
  "text-simplify": () => import("./text-simplify-YuRRlyGQ.js"),
6676
6676
  "alt-text": () => Promise.resolve().then(() => altText)
@@ -7642,8 +7642,17 @@ function WidgetApp($$anchor, $$props) {
7642
7642
  }
7643
7643
  let panelStyle = /* @__PURE__ */ user_derived(() => get(panelX) !== null ? `left: ${get(panelX)}px; right: auto;` : "");
7644
7644
  const mobileQuery = typeof window !== "undefined" ? window.matchMedia("(max-width: 640px)") : null;
7645
+ let isMobileMatched = /* @__PURE__ */ state(proxy(mobileQuery?.matches ?? false));
7645
7646
  user_effect(() => {
7646
- if (!get(isOpen) || !mobileQuery?.matches) return;
7647
+ if (!mobileQuery) return;
7648
+ const onChange = (e) => {
7649
+ set(isMobileMatched, e.matches, true);
7650
+ };
7651
+ mobileQuery.addEventListener("change", onChange);
7652
+ return () => mobileQuery.removeEventListener("change", onChange);
7653
+ });
7654
+ user_effect(() => {
7655
+ if (!get(isOpen) || !get(isMobileMatched)) return;
7647
7656
  const prev = document.body.style.overflow;
7648
7657
  document.body.style.overflow = "hidden";
7649
7658
  return () => {
@@ -8555,12 +8564,12 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
8555
8564
  overlay = document.createElement("div");
8556
8565
  overlay.id = OVERLAY_ID;
8557
8566
  Object.assign(overlay.style, {
8558
- position: "absolute",
8567
+ position: "fixed",
8559
8568
  top: "0",
8560
8569
  left: "0",
8561
- width: "0",
8562
- height: "0",
8563
- overflow: "visible",
8570
+ width: "100%",
8571
+ height: "100%",
8572
+ overflow: "hidden",
8564
8573
  pointerEvents: "none",
8565
8574
  zIndex: "10000"
8566
8575
  });
@@ -8575,10 +8584,8 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
8575
8584
  tooltip.style.display = "none";
8576
8585
  return;
8577
8586
  }
8578
- const scrollX = window.scrollX;
8579
- const scrollY = window.scrollY;
8580
- const top = rect.top + scrollY + 6;
8581
- const left = rect.left + scrollX + 6;
8587
+ const top = rect.top + 6;
8588
+ const left = rect.left + 6;
8582
8589
  badge.style.display = "";
8583
8590
  badge.style.top = `${top}px`;
8584
8591
  badge.style.left = `${left}px`;
@@ -9190,4 +9197,4 @@ export {
9190
9197
  init as i,
9191
9198
  t
9192
9199
  };
9193
- //# sourceMappingURL=index-Bsfz4nea.js.map
9200
+ //# sourceMappingURL=index-De-vZj27.js.map