accessify-widget 0.3.37 → 0.3.39
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-jJHI2SMZ.js → index-SYghhXzh.js} +39 -78
- package/dist/{index-jJHI2SMZ.js.map → index-SYghhXzh.js.map} +1 -1
- package/dist/{keyboard-nav-By_dGJQ-.js → keyboard-nav-BPNT4h61.js} +2 -2
- package/dist/{keyboard-nav-By_dGJQ-.js.map → keyboard-nav-BPNT4h61.js.map} +1 -1
- package/dist/loader.min.js +1 -1
- package/dist/{page-structure-DM8eu0-9.js → page-structure-Cg1a9HyG.js} +2 -2
- package/dist/{page-structure-DM8eu0-9.js.map → page-structure-Cg1a9HyG.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
|
@@ -254,8 +254,6 @@ https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
|
254
254
|
}
|
|
255
255
|
const EACH_ITEM_REACTIVE = 1;
|
|
256
256
|
const EACH_INDEX_REACTIVE = 1 << 1;
|
|
257
|
-
const EACH_IS_CONTROLLED = 1 << 2;
|
|
258
|
-
const EACH_IS_ANIMATED = 1 << 3;
|
|
259
257
|
const EACH_ITEM_IMMUTABLE = 1 << 4;
|
|
260
258
|
const PROPS_IS_IMMUTABLE = 1;
|
|
261
259
|
const PROPS_IS_UPDATED = 1 << 2;
|
|
@@ -3836,8 +3834,7 @@ var offscreen_anchor;
|
|
|
3836
3834
|
function each(node, flags2, get_collection, get_key, render_fn2, fallback_fn = null) {
|
|
3837
3835
|
var anchor = node;
|
|
3838
3836
|
var items = /* @__PURE__ */ new Map();
|
|
3839
|
-
|
|
3840
|
-
if (is_controlled) {
|
|
3837
|
+
{
|
|
3841
3838
|
var parent_node = (
|
|
3842
3839
|
/** @type {Element} */
|
|
3843
3840
|
node
|
|
@@ -3962,31 +3959,17 @@ function skip_to_branch(effect2) {
|
|
|
3962
3959
|
return effect2;
|
|
3963
3960
|
}
|
|
3964
3961
|
function reconcile(state2, array, anchor, flags2, get_key) {
|
|
3965
|
-
var is_animated = (flags2 & EACH_IS_ANIMATED) !== 0;
|
|
3966
3962
|
var length = array.length;
|
|
3967
3963
|
var items = state2.items;
|
|
3968
3964
|
var current = skip_to_branch(state2.effect.first);
|
|
3969
3965
|
var seen;
|
|
3970
3966
|
var prev = null;
|
|
3971
|
-
var to_animate;
|
|
3972
3967
|
var matched = [];
|
|
3973
3968
|
var stashed = [];
|
|
3974
3969
|
var value;
|
|
3975
3970
|
var key;
|
|
3976
3971
|
var effect2;
|
|
3977
3972
|
var i;
|
|
3978
|
-
if (is_animated) {
|
|
3979
|
-
for (i = 0; i < length; i += 1) {
|
|
3980
|
-
value = array[i];
|
|
3981
|
-
key = get_key(value, i);
|
|
3982
|
-
effect2 = /** @type {EachItem} */
|
|
3983
|
-
items.get(key).e;
|
|
3984
|
-
if ((effect2.f & EFFECT_OFFSCREEN) === 0) {
|
|
3985
|
-
effect2.nodes?.a?.measure();
|
|
3986
|
-
(to_animate ?? (to_animate = /* @__PURE__ */ new Set())).add(effect2);
|
|
3987
|
-
}
|
|
3988
|
-
}
|
|
3989
|
-
}
|
|
3990
3973
|
for (i = 0; i < length; i += 1) {
|
|
3991
3974
|
value = array[i];
|
|
3992
3975
|
key = get_key(value, i);
|
|
@@ -4021,10 +4004,6 @@ function reconcile(state2, array, anchor, flags2, get_key) {
|
|
|
4021
4004
|
}
|
|
4022
4005
|
if ((effect2.f & INERT) !== 0) {
|
|
4023
4006
|
resume_effect(effect2);
|
|
4024
|
-
if (is_animated) {
|
|
4025
|
-
effect2.nodes?.a?.unfix();
|
|
4026
|
-
(to_animate ?? (to_animate = /* @__PURE__ */ new Set())).delete(effect2);
|
|
4027
|
-
}
|
|
4028
4007
|
}
|
|
4029
4008
|
if (effect2 !== current) {
|
|
4030
4009
|
if (seen !== void 0 && seen.has(effect2)) {
|
|
@@ -4103,26 +4082,10 @@ function reconcile(state2, array, anchor, flags2, get_key) {
|
|
|
4103
4082
|
}
|
|
4104
4083
|
var destroy_length = to_destroy.length;
|
|
4105
4084
|
if (destroy_length > 0) {
|
|
4106
|
-
var controlled_anchor =
|
|
4107
|
-
if (is_animated) {
|
|
4108
|
-
for (i = 0; i < destroy_length; i += 1) {
|
|
4109
|
-
to_destroy[i].nodes?.a?.measure();
|
|
4110
|
-
}
|
|
4111
|
-
for (i = 0; i < destroy_length; i += 1) {
|
|
4112
|
-
to_destroy[i].nodes?.a?.fix();
|
|
4113
|
-
}
|
|
4114
|
-
}
|
|
4085
|
+
var controlled_anchor = length === 0 ? anchor : null;
|
|
4115
4086
|
pause_effects(state2, to_destroy, controlled_anchor);
|
|
4116
4087
|
}
|
|
4117
4088
|
}
|
|
4118
|
-
if (is_animated) {
|
|
4119
|
-
queue_micro_task(() => {
|
|
4120
|
-
if (to_animate === void 0) return;
|
|
4121
|
-
for (effect2 of to_animate) {
|
|
4122
|
-
effect2.nodes?.a?.apply();
|
|
4123
|
-
}
|
|
4124
|
-
});
|
|
4125
|
-
}
|
|
4126
4089
|
}
|
|
4127
4090
|
function create_item(items, anchor, value, key, index2, render_fn2, flags2, get_collection) {
|
|
4128
4091
|
var v = (flags2 & EACH_ITEM_REACTIVE) !== 0 ? (flags2 & EACH_ITEM_IMMUTABLE) === 0 ? /* @__PURE__ */ mutable_source(value, false, false) : source(value) : null;
|
|
@@ -6555,8 +6518,8 @@ Return ONLY the simplified text.`;
|
|
|
6555
6518
|
}
|
|
6556
6519
|
var root_2$1 = /* @__PURE__ */ from_html(`<button class="accessify-chip accessify-chip--icon"><span class="accessify-chip-icon" aria-hidden="true"></span> <span> </span></button>`);
|
|
6557
6520
|
var root_1$2 = /* @__PURE__ */ from_html(`<div class="accessify-control-row" role="group"><div class="accessify-control-label"><span class="accessify-control-label-icon" aria-hidden="true"></span> <span class="accessify-control-label-text"> </span></div> <div class="accessify-chip-row"></div></div>`);
|
|
6558
|
-
var root_4 = /* @__PURE__ */ from_html(`<button><span>A</span></button>`);
|
|
6559
|
-
var root_3$1 = /* @__PURE__ */ from_html(`<div class="accessify-control-row" role="group"><div class="accessify-control-label"><span class="accessify-control-label-icon" aria-hidden="true"></span> <span class="accessify-control-label-text"> </span></div> <div class="accessify-
|
|
6521
|
+
var root_4 = /* @__PURE__ */ from_html(`<button class="accessify-chip accessify-chip--icon"><span aria-hidden="true">A</span> <span> </span></button>`);
|
|
6522
|
+
var root_3$1 = /* @__PURE__ */ from_html(`<div class="accessify-control-row" role="group"><div class="accessify-control-label"><span class="accessify-control-label-icon" aria-hidden="true"></span> <span class="accessify-control-label-text"> </span></div> <div class="accessify-chip-row"></div></div>`);
|
|
6560
6523
|
var root_6 = /* @__PURE__ */ from_html(`<div class="accessify-card-wrap"><button class="accessify-card" role="switch"><span class="accessify-card-icon" aria-hidden="true"></span> <span class="accessify-card-label"> </span></button> <span class="accessify-card-info" role="note"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg></span></div>`);
|
|
6561
6524
|
var root_5 = /* @__PURE__ */ from_html(`<div class="accessify-features"></div>`);
|
|
6562
6525
|
var root$2 = /* @__PURE__ */ from_html(`<!> <!> <div class="accessify-section-divider"></div> <!>`, 1);
|
|
@@ -6661,14 +6624,14 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6661
6624
|
const FEATURE_LOADERS = {
|
|
6662
6625
|
contrast: () => import("./contrast-CqsICAkU.js"),
|
|
6663
6626
|
"text-size": () => import("./text-size-m_mHNPWo.js"),
|
|
6664
|
-
"keyboard-nav": () => import("./keyboard-nav-
|
|
6627
|
+
"keyboard-nav": () => import("./keyboard-nav-BPNT4h61.js"),
|
|
6665
6628
|
"link-highlight": () => import("./link-highlight-DBGm067Y.js"),
|
|
6666
6629
|
"reading-guide": () => import("./reading-guide-VT8NciIL.js"),
|
|
6667
6630
|
"reading-mask": () => import("./reading-mask-BABChuCz.js"),
|
|
6668
6631
|
"animation-stop": () => import("./animation-stop-_chC8bg1.js"),
|
|
6669
6632
|
"hide-images": () => import("./hide-images-B_LeCBcd.js"),
|
|
6670
6633
|
"big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
|
|
6671
|
-
"page-structure": () => import("./page-structure-
|
|
6634
|
+
"page-structure": () => import("./page-structure-Cg1a9HyG.js"),
|
|
6672
6635
|
tts: () => import("./tts-CjszLRnb.js"),
|
|
6673
6636
|
"text-simplify": () => import("./text-simplify-CK2GFhq2.js"),
|
|
6674
6637
|
"alt-text": () => Promise.resolve().then(() => altText)
|
|
@@ -6871,24 +6834,37 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6871
6834
|
var div_5 = sibling(div_4, 2);
|
|
6872
6835
|
each(
|
|
6873
6836
|
div_5,
|
|
6874
|
-
|
|
6837
|
+
21,
|
|
6875
6838
|
() => [
|
|
6876
|
-
{
|
|
6877
|
-
|
|
6878
|
-
|
|
6839
|
+
{
|
|
6840
|
+
pct: 85,
|
|
6841
|
+
size: "12px",
|
|
6842
|
+
label: $$props.config.lang?.startsWith("de") ? "Kleiner" : "Smaller"
|
|
6843
|
+
},
|
|
6844
|
+
{
|
|
6845
|
+
pct: 125,
|
|
6846
|
+
size: "16px",
|
|
6847
|
+
label: $$props.config.lang?.startsWith("de") ? "Größer" : "Bigger"
|
|
6848
|
+
},
|
|
6849
|
+
{
|
|
6850
|
+
pct: 150,
|
|
6851
|
+
size: "20px",
|
|
6852
|
+
label: $$props.config.lang?.startsWith("de") ? "Groß" : "Large"
|
|
6853
|
+
}
|
|
6879
6854
|
],
|
|
6880
6855
|
index,
|
|
6881
6856
|
($$anchor3, step) => {
|
|
6882
6857
|
var button_1 = root_4();
|
|
6883
|
-
let classes;
|
|
6884
6858
|
var span_6 = child(button_1);
|
|
6859
|
+
var span_7 = sibling(span_6, 2);
|
|
6860
|
+
var text_3 = child(span_7);
|
|
6885
6861
|
template_effect(() => {
|
|
6886
|
-
|
|
6887
|
-
set_attribute(button_1, "aria-
|
|
6888
|
-
|
|
6889
|
-
|
|
6862
|
+
set_attribute(button_1, "data-active", get(textSize) === get(step).pct);
|
|
6863
|
+
set_attribute(button_1, "aria-pressed", get(textSize) === get(step).pct);
|
|
6864
|
+
set_style(span_6, `font-size:${get(step).size ?? ""};font-weight:700;line-height:1`);
|
|
6865
|
+
set_text(text_3, get(step).label);
|
|
6890
6866
|
});
|
|
6891
|
-
delegated("click", button_1, () => setTextSize(get(textSize) === step.pct ? 100 : step.pct));
|
|
6867
|
+
delegated("click", button_1, () => setTextSize(get(textSize) === get(step).pct ? 100 : get(step).pct));
|
|
6892
6868
|
append($$anchor3, button_1);
|
|
6893
6869
|
}
|
|
6894
6870
|
);
|
|
@@ -6926,19 +6902,19 @@ function FeatureGrid($$anchor, $$props) {
|
|
|
6926
6902
|
const isActive = /* @__PURE__ */ user_derived(() => $$props.activeFeatures.get(get(feature).id) ?? false);
|
|
6927
6903
|
var div_7 = root_6();
|
|
6928
6904
|
var button_2 = child(div_7);
|
|
6929
|
-
var
|
|
6930
|
-
html(
|
|
6931
|
-
var
|
|
6932
|
-
var
|
|
6933
|
-
var
|
|
6905
|
+
var span_8 = child(button_2);
|
|
6906
|
+
html(span_8, () => getIcon(get(feature).iconId), true);
|
|
6907
|
+
var span_9 = sibling(span_8, 2);
|
|
6908
|
+
var text_4 = child(span_9);
|
|
6909
|
+
var span_10 = sibling(button_2, 2);
|
|
6934
6910
|
template_effect(
|
|
6935
6911
|
($0, $1, $2, $3) => {
|
|
6936
6912
|
set_attribute(button_2, "data-active", get(isActive));
|
|
6937
6913
|
set_attribute(button_2, "aria-checked", get(isActive));
|
|
6938
6914
|
set_attribute(button_2, "aria-label", $0);
|
|
6939
|
-
set_text(
|
|
6940
|
-
set_attribute(
|
|
6941
|
-
set_attribute(
|
|
6915
|
+
set_text(text_4, $1);
|
|
6916
|
+
set_attribute(span_10, "aria-label", $2);
|
|
6917
|
+
set_attribute(span_10, "title", $3);
|
|
6942
6918
|
},
|
|
6943
6919
|
[
|
|
6944
6920
|
() => t(get(feature).nameKey, $$props.config.lang),
|
|
@@ -8013,22 +7989,7 @@ function createWidgetStyles(config2) {
|
|
|
8013
7989
|
font-size: 13px; font-weight: 600; color: var(--text); user-select: none;
|
|
8014
7990
|
}
|
|
8015
7991
|
|
|
8016
|
-
/* Text Size
|
|
8017
|
-
.accessify-size-steps {
|
|
8018
|
-
display: flex; align-items: flex-end; gap: 6px;
|
|
8019
|
-
}
|
|
8020
|
-
.accessify-size-step-btn {
|
|
8021
|
-
display: inline-flex; align-items: center; justify-content: center;
|
|
8022
|
-
width: 36px; height: 36px; border-radius: 8px;
|
|
8023
|
-
border: 1.5px solid var(--border); background: var(--surface-dim);
|
|
8024
|
-
color: var(--text); cursor: pointer; font-weight: 700;
|
|
8025
|
-
font-family: inherit; transition: all var(--fast);
|
|
8026
|
-
line-height: 1;
|
|
8027
|
-
}
|
|
8028
|
-
.accessify-size-step-btn:hover { background: var(--surface-hover); }
|
|
8029
|
-
.accessify-size-step-btn.active {
|
|
8030
|
-
background: var(--accent); color: #fff; border-color: var(--accent);
|
|
8031
|
-
}
|
|
7992
|
+
/* Text Size: uses same .accessify-chip-row / .accessify-chip as contrast */
|
|
8032
7993
|
|
|
8033
7994
|
/* ─── Feature Cards (2-column grid) ─── */
|
|
8034
7995
|
.accessify-features {
|
|
@@ -8984,4 +8945,4 @@ export {
|
|
|
8984
8945
|
init as i,
|
|
8985
8946
|
t
|
|
8986
8947
|
};
|
|
8987
|
-
//# sourceMappingURL=index-
|
|
8948
|
+
//# sourceMappingURL=index-SYghhXzh.js.map
|