accessify-widget 0.3.20 → 0.3.22
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-C-1tZ4Z4.js → index-BmRIdckG.js} +25 -10
- package/dist/{index-C-1tZ4Z4.js.map → index-BmRIdckG.js.map} +1 -1
- package/dist/{keyboard-nav-BoVcT5J2.js → keyboard-nav-DAvSVcs1.js} +2 -2
- package/dist/{keyboard-nav-BoVcT5J2.js.map → keyboard-nav-DAvSVcs1.js.map} +1 -1
- package/dist/loader.min.js +1 -1
- package/dist/{page-structure-BpI_X1B-.js → page-structure-PgMFtIEj.js} +2 -2
- package/dist/{page-structure-BpI_X1B-.js.map → page-structure-PgMFtIEj.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
|
@@ -6637,14 +6637,14 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6637
6637
|
const FEATURE_LOADERS = {
|
|
6638
6638
|
contrast: () => import("./contrast-CqsICAkU.js"),
|
|
6639
6639
|
"text-size": () => import("./text-size-m_mHNPWo.js"),
|
|
6640
|
-
"keyboard-nav": () => import("./keyboard-nav-
|
|
6640
|
+
"keyboard-nav": () => import("./keyboard-nav-DAvSVcs1.js"),
|
|
6641
6641
|
"link-highlight": () => import("./link-highlight-DBGm067Y.js"),
|
|
6642
6642
|
"reading-guide": () => import("./reading-guide-VT8NciIL.js"),
|
|
6643
6643
|
"reading-mask": () => import("./reading-mask-BABChuCz.js"),
|
|
6644
6644
|
"animation-stop": () => import("./animation-stop-C0MwseK0.js"),
|
|
6645
6645
|
"hide-images": () => import("./hide-images-B_LeCBcd.js"),
|
|
6646
6646
|
"big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
|
|
6647
|
-
"page-structure": () => import("./page-structure-
|
|
6647
|
+
"page-structure": () => import("./page-structure-PgMFtIEj.js"),
|
|
6648
6648
|
tts: () => import("./tts-CjszLRnb.js"),
|
|
6649
6649
|
"text-simplify": () => import("./text-simplify-DPTSSdUB.js"),
|
|
6650
6650
|
"alt-text": () => Promise.resolve().then(() => altText)
|
|
@@ -7738,6 +7738,7 @@ function createWidgetStyles(config2) {
|
|
|
7738
7738
|
--accent: #e8837c;
|
|
7739
7739
|
--accent-soft: rgba(232,131,124,0.15);
|
|
7740
7740
|
--accent-on: #fff;
|
|
7741
|
+
--logo-color: #e8837c;
|
|
7741
7742
|
--shadow: 0 12px 48px rgba(0,0,0,0.35);
|
|
7742
7743
|
--fast: 140ms ease;
|
|
7743
7744
|
${brandOverrides}
|
|
@@ -7804,7 +7805,7 @@ function createWidgetStyles(config2) {
|
|
|
7804
7805
|
.accessify-header-left { display: flex; align-items: center; gap: 10px; }
|
|
7805
7806
|
.accessify-header-actions { display: flex; align-items: center; gap: 6px; }
|
|
7806
7807
|
|
|
7807
|
-
.accessify-logo { display: inline-flex; color: var(--
|
|
7808
|
+
.accessify-logo { display: inline-flex; color: var(--logo-color); }
|
|
7808
7809
|
.accessify-logo svg { height: 24px; width: auto; }
|
|
7809
7810
|
|
|
7810
7811
|
.accessify-header-btn {
|
|
@@ -8412,12 +8413,26 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
|
|
|
8412
8413
|
if (isImg) {
|
|
8413
8414
|
const parent = target.parentElement;
|
|
8414
8415
|
if (!parent) return;
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8416
|
+
let overflowAncestor = null;
|
|
8417
|
+
let el = parent;
|
|
8418
|
+
while (el && el !== document.body) {
|
|
8419
|
+
const cs = getComputedStyle(el);
|
|
8420
|
+
if (cs.overflow === "hidden" && cs.position !== "static") {
|
|
8421
|
+
overflowAncestor = el;
|
|
8422
|
+
break;
|
|
8423
|
+
}
|
|
8424
|
+
el = el.parentElement;
|
|
8425
|
+
}
|
|
8426
|
+
if (overflowAncestor) {
|
|
8427
|
+
anchor = overflowAncestor;
|
|
8428
|
+
} else {
|
|
8429
|
+
const parentPos = getComputedStyle(parent).position;
|
|
8430
|
+
if (parentPos === "static") parent.style.position = "relative";
|
|
8431
|
+
anchor = parent;
|
|
8432
|
+
const imgEl = target;
|
|
8433
|
+
badgeTop = `${imgEl.offsetTop + 6}px`;
|
|
8434
|
+
badgeLeft = `${imgEl.offsetLeft + 6}px`;
|
|
8435
|
+
}
|
|
8421
8436
|
} else {
|
|
8422
8437
|
const pos = getComputedStyle(target).position;
|
|
8423
8438
|
if (pos === "static") target.style.position = "relative";
|
|
@@ -8938,4 +8953,4 @@ export {
|
|
|
8938
8953
|
init as i,
|
|
8939
8954
|
t
|
|
8940
8955
|
};
|
|
8941
|
-
//# sourceMappingURL=index-
|
|
8956
|
+
//# sourceMappingURL=index-BmRIdckG.js.map
|