accessify-widget 0.3.74 → 0.3.75

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.
@@ -6620,6 +6620,8 @@ function FeatureGrid($$anchor, $$props) {
6620
6620
  }
6621
6621
  };
6622
6622
  const INLINE_CONTROLS = /* @__PURE__ */ new Set(["contrast", "text-size"]);
6623
+ const MOUSE_ONLY_FEATURES = /* @__PURE__ */ new Set(["big-cursor", "reading-guide", "reading-mask"]);
6624
+ const isTouchOnly = typeof window !== "undefined" && navigator.maxTouchPoints > 0 && window.matchMedia("(pointer:coarse)").matches && !window.matchMedia("(pointer:fine)").matches;
6623
6625
  const CONTRAST_MODES = [
6624
6626
  {
6625
6627
  id: "light",
@@ -6642,17 +6644,17 @@ function FeatureGrid($$anchor, $$props) {
6642
6644
  const FEATURE_LOADERS = {
6643
6645
  contrast: () => import("./contrast-CqsOs6Uo.js"),
6644
6646
  "text-size": () => import("./text-size-m_mHNPWo.js"),
6645
- "keyboard-nav": () => import("./keyboard-nav-BMIfQKyz.js"),
6647
+ "keyboard-nav": () => import("./keyboard-nav-fmtN9gtf.js"),
6646
6648
  "link-highlight": () => import("./link-highlight-D9gxFmiG.js"),
6647
6649
  "reading-guide": () => import("./reading-guide-C_jxzorm.js"),
6648
6650
  "reading-mask": () => import("./reading-mask-B_NxbhTN.js"),
6649
- "animation-stop": () => import("./animation-stop-DrDe9Q9n.js"),
6651
+ "animation-stop": () => import("./animation-stop-BU0qc2Qp.js"),
6650
6652
  "hide-images": () => import("./hide-images-B_LeCBcd.js"),
6651
6653
  "big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
6652
- "page-structure": () => import("./page-structure-BimA9vQz.js"),
6654
+ "page-structure": () => import("./page-structure-C6PEQh5j.js"),
6653
6655
  tts: () => import("./tts-zrXtEd07.js"),
6654
6656
  "text-simplify": () => import("./text-simplify-BIFpqadq.js"),
6655
- "alt-text": () => import("./alt-text-CoS2ISqs.js")
6657
+ "alt-text": () => import("./alt-text-BzVlRLRb.js")
6656
6658
  };
6657
6659
  let contrastMode = /* @__PURE__ */ state(proxy(readStoredContrastMode()));
6658
6660
  let textSize = /* @__PURE__ */ state(proxy(readStoredTextSize()));
@@ -6786,7 +6788,7 @@ function FeatureGrid($$anchor, $$props) {
6786
6788
  $$props.ontoggle("text-size", true);
6787
6789
  $$props.ontextsize?.(value);
6788
6790
  }
6789
- let cardFeatures = /* @__PURE__ */ user_derived(() => $$props.config.features.filter((id) => !INLINE_CONTROLS.has(id) && FEATURE_REGISTRY[id]).map((id) => FEATURE_REGISTRY[id]));
6791
+ let cardFeatures = /* @__PURE__ */ user_derived(() => $$props.config.features.filter((id) => !INLINE_CONTROLS.has(id) && FEATURE_REGISTRY[id] && !(isTouchOnly && MOUSE_ONLY_FEATURES.has(id))).map((id) => FEATURE_REGISTRY[id]));
6790
6792
  user_effect(() => {
6791
6793
  `${$$props.config.features.join("|")}|${get(activeSignature)}`;
6792
6794
  void syncActiveModules();
@@ -8323,7 +8325,7 @@ async function init(userConfig = {}) {
8323
8325
  }
8324
8326
  });
8325
8327
  document.body.appendChild(containerEl);
8326
- import("./alt-text-CoS2ISqs.js").then((m) => m.autoApplyCachedAltTexts(config)).catch(() => {
8328
+ import("./alt-text-BzVlRLRb.js").then((m) => m.autoApplyCachedAltTexts(config)).catch(() => {
8327
8329
  });
8328
8330
  config.onReady?.();
8329
8331
  }
@@ -8366,4 +8368,4 @@ export {
8366
8368
  init as i,
8367
8369
  t
8368
8370
  };
8369
- //# sourceMappingURL=index-DCvvWewP.js.map
8371
+ //# sourceMappingURL=index-CJw0r5jG.js.map