accessify-widget 0.3.14 → 0.3.15
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-1tl4oBKN.js → index-5qbCfZ0S.js} +31 -38
- package/dist/{index-1tl4oBKN.js.map → index-5qbCfZ0S.js.map} +1 -1
- package/dist/{keyboard-nav-DriHR920.js → keyboard-nav-CVsH7KMx.js} +2 -2
- package/dist/{keyboard-nav-DriHR920.js.map → keyboard-nav-CVsH7KMx.js.map} +1 -1
- package/dist/loader.min.js +1 -1
- package/dist/{page-structure-CrtYM1Cb.js → page-structure-aKtVG7q2.js} +2 -2
- package/dist/{page-structure-CrtYM1Cb.js.map → page-structure-aKtVG7q2.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
|
@@ -5986,7 +5986,7 @@ const PROFILES = [
|
|
|
5986
5986
|
nameKey: "profile.cognitive",
|
|
5987
5987
|
descKey: "profile.cognitive.desc",
|
|
5988
5988
|
iconId: "brain",
|
|
5989
|
-
features: ["reading-guide", "text-size", "
|
|
5989
|
+
features: ["reading-guide", "text-size", "animation-stop", "tts"],
|
|
5990
5990
|
featureSettings: { "text-size": 130 }
|
|
5991
5991
|
},
|
|
5992
5992
|
{
|
|
@@ -5994,8 +5994,7 @@ const PROFILES = [
|
|
|
5994
5994
|
nameKey: "profile.seizureSafe",
|
|
5995
5995
|
descKey: "profile.seizureSafe.desc",
|
|
5996
5996
|
iconId: "shield",
|
|
5997
|
-
features: ["animation-stop", "
|
|
5998
|
-
featureSettings: { saturation: "low" }
|
|
5997
|
+
features: ["animation-stop", "hide-images"]
|
|
5999
5998
|
},
|
|
6000
5999
|
{
|
|
6001
6000
|
id: "adhd-friendly",
|
|
@@ -6448,14 +6447,14 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6448
6447
|
const FEATURE_LOADERS = {
|
|
6449
6448
|
contrast: () => import("./contrast-CqsICAkU.js"),
|
|
6450
6449
|
"text-size": () => import("./text-size-m_mHNPWo.js"),
|
|
6451
|
-
"keyboard-nav": () => import("./keyboard-nav-
|
|
6450
|
+
"keyboard-nav": () => import("./keyboard-nav-CVsH7KMx.js"),
|
|
6452
6451
|
"link-highlight": () => import("./link-highlight-DBGm067Y.js"),
|
|
6453
6452
|
"reading-guide": () => import("./reading-guide-VT8NciIL.js"),
|
|
6454
6453
|
"reading-mask": () => import("./reading-mask-BABChuCz.js"),
|
|
6455
6454
|
"animation-stop": () => import("./animation-stop-C0MwseK0.js"),
|
|
6456
6455
|
"hide-images": () => import("./hide-images-B_LeCBcd.js"),
|
|
6457
6456
|
"big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
|
|
6458
|
-
"page-structure": () => import("./page-structure-
|
|
6457
|
+
"page-structure": () => import("./page-structure-aKtVG7q2.js"),
|
|
6459
6458
|
tts: () => import("./tts-CjszLRnb.js"),
|
|
6460
6459
|
"text-simplify": () => import("./text-simplify-Cvhpio7g.js"),
|
|
6461
6460
|
"alt-text": () => Promise.resolve().then(() => altText)
|
|
@@ -6687,7 +6686,6 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6687
6686
|
delegated("click", button_1, () => setTextSize(Math.max(TEXT_SIZE_MIN, get(textSize) - TEXT_SIZE_STEP)));
|
|
6688
6687
|
delegated("input", input, (e) => {
|
|
6689
6688
|
set(textSize, Number(e.target.value), true);
|
|
6690
|
-
$$props.ontextsize?.(get(textSize));
|
|
6691
6689
|
});
|
|
6692
6690
|
delegated("change", input, (e) => setTextSize(Number(e.target.value)));
|
|
6693
6691
|
delegated("click", button_2, () => setTextSize(Math.min(TEXT_SIZE_MAX, get(textSize) + TEXT_SIZE_STEP)));
|
|
@@ -7177,7 +7175,6 @@ function WidgetApp($$anchor, $$props) {
|
|
|
7177
7175
|
let activeProfileId = /* @__PURE__ */ state(null);
|
|
7178
7176
|
let langDropdownOpen = /* @__PURE__ */ state(false);
|
|
7179
7177
|
let panelX = /* @__PURE__ */ state(null);
|
|
7180
|
-
let widgetZoom = /* @__PURE__ */ state(1);
|
|
7181
7178
|
const PANEL_X_KEY = "accessify-panel-x";
|
|
7182
7179
|
const textTransformService = createTextTransformService();
|
|
7183
7180
|
const STORAGE_KEY = "accessify-prefs";
|
|
@@ -7294,20 +7291,13 @@ function WidgetApp($$anchor, $$props) {
|
|
|
7294
7291
|
const action = enabled ? t("status.activated", get(widgetLang)) : t("status.deactivated", get(widgetLang));
|
|
7295
7292
|
announce(`${name} ${action}`);
|
|
7296
7293
|
}
|
|
7297
|
-
function handleTextSize(
|
|
7298
|
-
const factor = size / 100;
|
|
7299
|
-
set(widgetZoom, Math.min(1.35, Math.max(0.85, factor)), true);
|
|
7300
|
-
const mount2 = $$props.shadow.getElementById("accessify-mount");
|
|
7301
|
-
if (mount2) {
|
|
7302
|
-
mount2.style.zoom = get(widgetZoom) === 1 ? "" : String(get(widgetZoom));
|
|
7303
|
-
}
|
|
7294
|
+
function handleTextSize(_size) {
|
|
7304
7295
|
}
|
|
7305
7296
|
function resetAll() {
|
|
7306
7297
|
set(activeFeatures, /* @__PURE__ */ new Map(), true);
|
|
7307
7298
|
set(activeProfileId, null);
|
|
7308
7299
|
savePrefs();
|
|
7309
7300
|
textTransformService.restore();
|
|
7310
|
-
handleTextSize(100);
|
|
7311
7301
|
window.dispatchEvent(new CustomEvent("accessify:reset"));
|
|
7312
7302
|
announce(t("widget.resetConfirm", get(widgetLang)));
|
|
7313
7303
|
}
|
|
@@ -7509,9 +7499,6 @@ function WidgetApp($$anchor, $$props) {
|
|
|
7509
7499
|
return pop($$exports);
|
|
7510
7500
|
}
|
|
7511
7501
|
delegate(["click"]);
|
|
7512
|
-
const CHECKMARK_SVG = encodeURIComponent(
|
|
7513
|
-
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>'
|
|
7514
|
-
);
|
|
7515
7502
|
function createWidgetStyles(config2) {
|
|
7516
7503
|
const pos = config2.position || "bottom-right";
|
|
7517
7504
|
const isRight = pos.includes("right");
|
|
@@ -7537,7 +7524,7 @@ function createWidgetStyles(config2) {
|
|
|
7537
7524
|
:host {
|
|
7538
7525
|
all: initial;
|
|
7539
7526
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
7540
|
-
font-size:
|
|
7527
|
+
font-size: 16px;
|
|
7541
7528
|
line-height: 1.5;
|
|
7542
7529
|
color-scheme: dark;
|
|
7543
7530
|
}
|
|
@@ -7854,14 +7841,6 @@ function createWidgetStyles(config2) {
|
|
|
7854
7841
|
}
|
|
7855
7842
|
.accessify-card:hover { transform: translateY(-2px); border-color: var(--border-hl); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
|
|
7856
7843
|
.accessify-card[data-active="true"] { border-color: var(--accent); background: var(--accent-soft); }
|
|
7857
|
-
.accessify-card[data-active="true"]::after {
|
|
7858
|
-
content: ''; position: absolute; top: 8px; ${isRight ? "right: 8px" : "left: 8px"};
|
|
7859
|
-
width: 18px; height: 18px; border-radius: 999px; background: var(--accent);
|
|
7860
|
-
mask-image: url("data:image/svg+xml,${CHECKMARK_SVG}");
|
|
7861
|
-
mask-size: 10px; mask-repeat: no-repeat; mask-position: center;
|
|
7862
|
-
-webkit-mask-image: url("data:image/svg+xml,${CHECKMARK_SVG}");
|
|
7863
|
-
-webkit-mask-size: 10px; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
|
|
7864
|
-
}
|
|
7865
7844
|
.accessify-card-icon {
|
|
7866
7845
|
display: inline-flex; align-items: center; justify-content: center;
|
|
7867
7846
|
width: 48px; height: 48px; border-radius: 14px;
|
|
@@ -8239,16 +8218,30 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
|
|
|
8239
8218
|
const isImg = target.tagName === "IMG";
|
|
8240
8219
|
let anchor;
|
|
8241
8220
|
if (isImg) {
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
position
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8221
|
+
let container = target.parentElement;
|
|
8222
|
+
while (container && container !== document.body) {
|
|
8223
|
+
const cs = getComputedStyle(container);
|
|
8224
|
+
if (cs.overflow === "hidden" && cs.position !== "static") {
|
|
8225
|
+
break;
|
|
8226
|
+
}
|
|
8227
|
+
container = container.parentElement;
|
|
8228
|
+
}
|
|
8229
|
+
if (container && container !== document.body && container !== target.parentElement) {
|
|
8230
|
+
const pos = getComputedStyle(container).position;
|
|
8231
|
+
if (pos === "static") container.style.position = "relative";
|
|
8232
|
+
anchor = container;
|
|
8233
|
+
} else {
|
|
8234
|
+
const wrapper = document.createElement("span");
|
|
8235
|
+
wrapper.setAttribute(WRAPPER_ATTR, "1");
|
|
8236
|
+
Object.assign(wrapper.style, {
|
|
8237
|
+
position: "relative",
|
|
8238
|
+
display: "inline-block",
|
|
8239
|
+
lineHeight: "0"
|
|
8240
|
+
});
|
|
8241
|
+
target.parentElement.insertBefore(wrapper, target);
|
|
8242
|
+
wrapper.appendChild(target);
|
|
8243
|
+
anchor = wrapper;
|
|
8244
|
+
}
|
|
8252
8245
|
} else {
|
|
8253
8246
|
const pos = getComputedStyle(target).position;
|
|
8254
8247
|
if (pos === "static") target.style.position = "relative";
|
|
@@ -8765,4 +8758,4 @@ export {
|
|
|
8765
8758
|
init as i,
|
|
8766
8759
|
t
|
|
8767
8760
|
};
|
|
8768
|
-
//# sourceMappingURL=index-
|
|
8761
|
+
//# sourceMappingURL=index-5qbCfZ0S.js.map
|