accessify-widget 0.3.103 → 0.3.105
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-z-PPlD77.js → index-De-vZj27.js} +47 -12
- package/dist/{index-z-PPlD77.js.map → index-De-vZj27.js.map} +1 -1
- package/dist/{keyboard-nav-Ca6B6NGi.js → keyboard-nav-CC3-Xa0Q.js} +2 -2
- package/dist/{keyboard-nav-Ca6B6NGi.js.map → keyboard-nav-CC3-Xa0Q.js.map} +1 -1
- package/dist/loader.min.js +1 -1
- package/dist/{page-structure-CMx_Jviw.js → page-structure-Buh7vuTK.js} +2 -2
- package/dist/{page-structure-CMx_Jviw.js.map → page-structure-Buh7vuTK.js.map} +1 -1
- package/dist/widget.js +1 -1
- package/dist/widget.js.map +1 -1
- package/package.json +8 -12
package/dist/accessify.mjs
CHANGED
|
@@ -6663,14 +6663,14 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6663
6663
|
const FEATURE_LOADERS = {
|
|
6664
6664
|
contrast: () => import("./contrast-CqsOs6Uo.js"),
|
|
6665
6665
|
"text-size": () => import("./text-size-m_mHNPWo.js"),
|
|
6666
|
-
"keyboard-nav": () => import("./keyboard-nav-
|
|
6666
|
+
"keyboard-nav": () => import("./keyboard-nav-CC3-Xa0Q.js"),
|
|
6667
6667
|
"link-highlight": () => import("./link-highlight-DBGm067Y.js"),
|
|
6668
6668
|
"reading-guide": () => import("./reading-guide-VT8NciIL.js"),
|
|
6669
6669
|
"reading-mask": () => import("./reading-mask-CImlx88t.js"),
|
|
6670
6670
|
"animation-stop": () => import("./animation-stop-C2Ced0LV.js"),
|
|
6671
6671
|
"hide-images": () => import("./hide-images-DdZdru63.js"),
|
|
6672
6672
|
"big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
|
|
6673
|
-
"page-structure": () => import("./page-structure-
|
|
6673
|
+
"page-structure": () => import("./page-structure-Buh7vuTK.js"),
|
|
6674
6674
|
tts: () => import("./tts-BytU4gzP.js"),
|
|
6675
6675
|
"text-simplify": () => import("./text-simplify-YuRRlyGQ.js"),
|
|
6676
6676
|
"alt-text": () => Promise.resolve().then(() => altText)
|
|
@@ -7438,6 +7438,33 @@ function WidgetApp($$anchor, $$props) {
|
|
|
7438
7438
|
}
|
|
7439
7439
|
const textTransformService = createTextTransformService();
|
|
7440
7440
|
const STORAGE_KEY = "accessify-prefs";
|
|
7441
|
+
const SCHEMA_VERSION = 1;
|
|
7442
|
+
const SCHEMA_KEY = "accessify-schema-version";
|
|
7443
|
+
const MIGRATIONS = [
|
|
7444
|
+
// Future entries: { from: 1, to: 2, run: () => localStorage.removeItem('…') }
|
|
7445
|
+
];
|
|
7446
|
+
function runSchemaMigrations() {
|
|
7447
|
+
try {
|
|
7448
|
+
let stored = parseInt(localStorage.getItem(SCHEMA_KEY) || "0", 10);
|
|
7449
|
+
if (!Number.isFinite(stored) || stored < 0) stored = 0;
|
|
7450
|
+
if (stored === 0 && localStorage.getItem(SCHEMA_KEY) === null) {
|
|
7451
|
+
localStorage.setItem(SCHEMA_KEY, String(SCHEMA_VERSION));
|
|
7452
|
+
return;
|
|
7453
|
+
}
|
|
7454
|
+
if (stored === SCHEMA_VERSION) return;
|
|
7455
|
+
while (stored < SCHEMA_VERSION) {
|
|
7456
|
+
const mig = MIGRATIONS.find((m) => m.from === stored);
|
|
7457
|
+
if (!mig) break;
|
|
7458
|
+
try {
|
|
7459
|
+
mig.run();
|
|
7460
|
+
} catch {
|
|
7461
|
+
}
|
|
7462
|
+
stored = mig.to;
|
|
7463
|
+
}
|
|
7464
|
+
localStorage.setItem(SCHEMA_KEY, String(SCHEMA_VERSION));
|
|
7465
|
+
} catch {
|
|
7466
|
+
}
|
|
7467
|
+
}
|
|
7441
7468
|
let activeCount = /* @__PURE__ */ user_derived(() => Array.from(get(activeFeatures).values()).filter(Boolean).length);
|
|
7442
7469
|
let currentLangOption = /* @__PURE__ */ user_derived(() => LANGUAGE_OPTIONS.find((o) => o.code === get(widgetLang)));
|
|
7443
7470
|
function announce(message) {
|
|
@@ -7615,8 +7642,17 @@ function WidgetApp($$anchor, $$props) {
|
|
|
7615
7642
|
}
|
|
7616
7643
|
let panelStyle = /* @__PURE__ */ user_derived(() => get(panelX) !== null ? `left: ${get(panelX)}px; right: auto;` : "");
|
|
7617
7644
|
const mobileQuery = typeof window !== "undefined" ? window.matchMedia("(max-width: 640px)") : null;
|
|
7645
|
+
let isMobileMatched = /* @__PURE__ */ state(proxy(mobileQuery?.matches ?? false));
|
|
7646
|
+
user_effect(() => {
|
|
7647
|
+
if (!mobileQuery) return;
|
|
7648
|
+
const onChange = (e) => {
|
|
7649
|
+
set(isMobileMatched, e.matches, true);
|
|
7650
|
+
};
|
|
7651
|
+
mobileQuery.addEventListener("change", onChange);
|
|
7652
|
+
return () => mobileQuery.removeEventListener("change", onChange);
|
|
7653
|
+
});
|
|
7618
7654
|
user_effect(() => {
|
|
7619
|
-
if (!get(isOpen) || !
|
|
7655
|
+
if (!get(isOpen) || !get(isMobileMatched)) return;
|
|
7620
7656
|
const prev = document.body.style.overflow;
|
|
7621
7657
|
document.body.style.overflow = "hidden";
|
|
7622
7658
|
return () => {
|
|
@@ -7635,6 +7671,7 @@ function WidgetApp($$anchor, $$props) {
|
|
|
7635
7671
|
});
|
|
7636
7672
|
onMount(() => {
|
|
7637
7673
|
set(widgetLang, getSupportedLang(config2().lang || "en"), true);
|
|
7674
|
+
runSchemaMigrations();
|
|
7638
7675
|
detectTheme();
|
|
7639
7676
|
applyTheme();
|
|
7640
7677
|
loadPrefs();
|
|
@@ -8527,12 +8564,12 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
|
|
|
8527
8564
|
overlay = document.createElement("div");
|
|
8528
8565
|
overlay.id = OVERLAY_ID;
|
|
8529
8566
|
Object.assign(overlay.style, {
|
|
8530
|
-
position: "
|
|
8567
|
+
position: "fixed",
|
|
8531
8568
|
top: "0",
|
|
8532
8569
|
left: "0",
|
|
8533
|
-
width: "
|
|
8534
|
-
height: "
|
|
8535
|
-
overflow: "
|
|
8570
|
+
width: "100%",
|
|
8571
|
+
height: "100%",
|
|
8572
|
+
overflow: "hidden",
|
|
8536
8573
|
pointerEvents: "none",
|
|
8537
8574
|
zIndex: "10000"
|
|
8538
8575
|
});
|
|
@@ -8547,10 +8584,8 @@ function createAltTextModule(aiService, initialLang = "de", serverConfig) {
|
|
|
8547
8584
|
tooltip.style.display = "none";
|
|
8548
8585
|
return;
|
|
8549
8586
|
}
|
|
8550
|
-
const
|
|
8551
|
-
const
|
|
8552
|
-
const top = rect.top + scrollY + 6;
|
|
8553
|
-
const left = rect.left + scrollX + 6;
|
|
8587
|
+
const top = rect.top + 6;
|
|
8588
|
+
const left = rect.left + 6;
|
|
8554
8589
|
badge.style.display = "";
|
|
8555
8590
|
badge.style.top = `${top}px`;
|
|
8556
8591
|
badge.style.left = `${left}px`;
|
|
@@ -9162,4 +9197,4 @@ export {
|
|
|
9162
9197
|
init as i,
|
|
9163
9198
|
t
|
|
9164
9199
|
};
|
|
9165
|
-
//# sourceMappingURL=index-
|
|
9200
|
+
//# sourceMappingURL=index-De-vZj27.js.map
|