accessify-widget 0.3.44 → 0.3.46
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-Moz7iASF.js → index-BYX1v8Zp.js} +23 -13
- package/dist/{index-Moz7iASF.js.map → index-BYX1v8Zp.js.map} +1 -1
- package/dist/{keyboard-nav-DAQ7XlGr.js → keyboard-nav-IndwdVa7.js} +2 -2
- package/dist/{keyboard-nav-DAQ7XlGr.js.map → keyboard-nav-IndwdVa7.js.map} +1 -1
- package/dist/loader.min.js +1 -1
- package/dist/{page-structure-Cw2GaogB.js → page-structure-DzIGNHNJ.js} +2 -2
- package/dist/{page-structure-Cw2GaogB.js.map → page-structure-DzIGNHNJ.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
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
7725
|
-
|
|
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:
|
|
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
|
-
|
|
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-
|
|
8994
|
+
//# sourceMappingURL=index-BYX1v8Zp.js.map
|