accessify-widget 0.3.44 → 0.3.45

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-Moz7iASF.js";
1
+ import { d, i } from "./index-BYX1v8Zp.js";
2
2
  export {
3
3
  d as destroy,
4
4
  i as init
@@ -6620,14 +6620,14 @@ function FeatureGrid($$anchor, $$props) {
6620
6620
  const FEATURE_LOADERS = {
6621
6621
  contrast: () => import("./contrast-CgazHyn5.js"),
6622
6622
  "text-size": () => import("./text-size-m_mHNPWo.js"),
6623
- "keyboard-nav": () => import("./keyboard-nav-DAQ7XlGr.js"),
6623
+ "keyboard-nav": () => import("./keyboard-nav-IndwdVa7.js"),
6624
6624
  "link-highlight": () => import("./link-highlight-DBGm067Y.js"),
6625
6625
  "reading-guide": () => import("./reading-guide-VT8NciIL.js"),
6626
6626
  "reading-mask": () => import("./reading-mask-BABChuCz.js"),
6627
6627
  "animation-stop": () => import("./animation-stop-_chC8bg1.js"),
6628
6628
  "hide-images": () => import("./hide-images-B_LeCBcd.js"),
6629
6629
  "big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
6630
- "page-structure": () => import("./page-structure-Cw2GaogB.js"),
6630
+ "page-structure": () => import("./page-structure-DzIGNHNJ.js"),
6631
6631
  tts: () => import("./tts-CjszLRnb.js"),
6632
6632
  "text-simplify": () => import("./text-simplify-CK2GFhq2.js"),
6633
6633
  "alt-text": () => Promise.resolve().then(() => altText)
@@ -7721,11 +7721,11 @@ function createWidgetStyles(config2) {
7721
7721
  all: initial;
7722
7722
  display: block !important;
7723
7723
  position: fixed !important;
7724
- top: 0 !important; left: 0 !important;
7725
- width: 0 !important; height: 0 !important;
7726
- overflow: visible !important;
7727
- pointer-events: none !important;
7724
+ ${isBottom ? "bottom: 20px" : "top: 20px"} !important;
7725
+ ${isRight ? "right: 20px" : "left: 20px"} !important;
7728
7726
  z-index: ${z} !important;
7727
+ width: auto !important; height: auto !important;
7728
+ overflow: visible !important;
7729
7729
  contain: none !important;
7730
7730
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
7731
7731
  font-size: 16px;
@@ -7763,11 +7763,8 @@ function createWidgetStyles(config2) {
7763
7763
 
7764
7764
  /* ─── Trigger ─── */
7765
7765
  .accessify-trigger {
7766
- position: fixed;
7767
- ${isBottom ? "bottom: 20px" : "top: 20px"};
7768
- ${isRight ? "right: 20px" : "left: 20px"};
7766
+ position: static;
7769
7767
  z-index: ${z};
7770
- pointer-events: auto;
7771
7768
  width: 56px; height: 56px;
7772
7769
  border: none; border-radius: 16px;
7773
7770
  background: ${triggerBg || "linear-gradient(135deg, #545d8f, #3d4775)"};
@@ -7798,7 +7795,6 @@ function createWidgetStyles(config2) {
7798
7795
  position: fixed; top: 0; bottom: 0;
7799
7796
  ${isRight ? "right: 0" : "left: 0"};
7800
7797
  z-index: ${z - 1};
7801
- pointer-events: auto;
7802
7798
  width: min(${panelW}, 100vw); height: 100vh; height: 100dvh;
7803
7799
  display: flex; flex-direction: column;
7804
7800
  border-radius: ${panelRadius};
@@ -8881,7 +8877,21 @@ async function init(userConfig = {}) {
8881
8877
  containerEl.id = "accessify-root";
8882
8878
  containerEl.setAttribute("role", "complementary");
8883
8879
  containerEl.setAttribute("aria-label", t("widget.title", config.lang));
8884
- containerEl.style.cssText = "position:fixed!important;top:0!important;left:0!important;width:0!important;height:0!important;overflow:visible!important;pointer-events:none!important;z-index:" + (config.zIndex || 999999) + "!important;display:block!important;contain:none!important;";
8880
+ const pos = config.position || "bottom-right";
8881
+ const isRight = pos.includes("right");
8882
+ const isBottom = pos.includes("bottom");
8883
+ const z = config.zIndex || 999999;
8884
+ containerEl.style.cssText = [
8885
+ "position:fixed!important",
8886
+ isBottom ? "bottom:20px!important" : "top:20px!important",
8887
+ isRight ? "right:20px!important" : "left:20px!important",
8888
+ `z-index:${z}!important`,
8889
+ "width:auto!important",
8890
+ "height:auto!important",
8891
+ "overflow:visible!important",
8892
+ "contain:none!important",
8893
+ "display:block!important"
8894
+ ].join(";") + ";";
8885
8895
  const shadow = containerEl.attachShadow({ mode: "open", delegatesFocus: true });
8886
8896
  const sheet = new CSSStyleSheet();
8887
8897
  sheet.replaceSync(createWidgetStyles(config));
@@ -8981,4 +8991,4 @@ export {
8981
8991
  init as i,
8982
8992
  t
8983
8993
  };
8984
- //# sourceMappingURL=index-Moz7iASF.js.map
8994
+ //# sourceMappingURL=index-BYX1v8Zp.js.map