accessify-widget 0.3.60 → 0.3.62

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.
@@ -1,4 +1,4 @@
1
- import { d, i } from "./index-kzWIIKQd.js";
1
+ import { d, i } from "./index-MgQwAeV-.js";
2
2
  export {
3
3
  d as destroy,
4
4
  i as init
@@ -6292,7 +6292,7 @@ function createProxyService(siteKey, proxyUrl) {
6292
6292
  return {
6293
6293
  async simplifyText(text, level = "einfache", lang = "de") {
6294
6294
  const blockId = `b-${simpleHash(text)}`;
6295
- const variant = lang.startsWith("de") ? `de-${level}` : "en-plain";
6295
+ const variant = level;
6296
6296
  try {
6297
6297
  const cacheRes = await fetch(`${base}/v1/cache/query`, {
6298
6298
  method: "POST",
@@ -6495,6 +6495,13 @@ function getGermanSimplificationPrompt(level) {
6495
6495
  - Benutze positive Formulierungen
6496
6496
  - Zielgruppe: CEFR A1-A2
6497
6497
 
6498
+ STRENGE REGELN — Verstoß = fehlerhaft:
6499
+ 1. ALLE Personen-Namen MÜSSEN im vereinfachten Text vorkommen. Lösche NIEMALS einen Namen.
6500
+ 2. Zitate: IMMER den vollen Namen des Sprechers behalten.
6501
+ 3. Zahlen, Daten, Ergebnisse, Spielstände: Wort für Wort übernehmen.
6502
+ 4. Eigennamen (Vereine, Orte, Firmen): exakt übernehmen.
6503
+ 5. Erfinde NICHTS dazu.
6504
+
6498
6505
  Gib NUR den vereinfachten Text zurück.`;
6499
6506
  }
6500
6507
  return `Du bist ein Experte für Einfache Sprache (DIN ISO 24495-1). Vereinfache den folgenden Text:
@@ -6503,7 +6510,15 @@ Gib NUR den vereinfachten Text zurück.`;
6503
6510
  - Benutze aktive Formulierungen
6504
6511
  - Strukturiere den Text mit klaren Absätzen
6505
6512
  - Zielgruppe: CEFR B1-B2
6506
- - Bewahre den vollständigen Inhalt
6513
+
6514
+ STRENGE REGELN — Verstoß = fehlerhaft:
6515
+ 1. ALLE Personen-Namen MÜSSEN im vereinfachten Text vorkommen. Wenn im Original "Simon Dornieden" steht, MUSS "Simon Dornieden" auch in der Ausgabe stehen. Lösche NIEMALS einen Namen.
6516
+ 2. Zitate: IMMER den vollen Namen des Sprechers behalten (z.B. „Simon Dornieden sagt: …")
6517
+ 3. Zahlen, Daten, Ergebnisse, Spielstände: Wort für Wort übernehmen, NICHT umformulieren
6518
+ 4. Eigennamen (Vereine, Orte, Firmen): exakt übernehmen
6519
+ 5. Adressen, Postleitzahlen: exakt übernehmen
6520
+ 6. Bildunterschriften, Quellenangaben, Fotocredits: NICHT verändern
6521
+ 7. Erfinde NICHTS dazu. Nur vorhandenen Inhalt in einfacherer Sprache wiedergeben.
6507
6522
 
6508
6523
  Gib NUR den vereinfachten Text zurück.`;
6509
6524
  }
@@ -6514,6 +6529,13 @@ function getEnglishSimplificationPrompt() {
6514
6529
  - Use active voice
6515
6530
  - Target reading level: grade 6-8
6516
6531
 
6532
+ STRICT RULES — violating any = incorrect output:
6533
+ 1. ALL person names MUST appear in the simplified text. NEVER delete a name.
6534
+ 2. Quotes: ALWAYS keep the full speaker name.
6535
+ 3. Numbers, dates, scores, results: copy verbatim.
6536
+ 4. Proper nouns (teams, places, companies): copy exactly.
6537
+ 5. Do NOT invent details.
6538
+
6517
6539
  Return ONLY the simplified text.`;
6518
6540
  }
6519
6541
  var root_3$1 = /* @__PURE__ */ from_html(`<span class="accessify-chip-check" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"></path></svg></span>`);
@@ -6620,16 +6642,16 @@ function FeatureGrid($$anchor, $$props) {
6620
6642
  const FEATURE_LOADERS = {
6621
6643
  contrast: () => import("./contrast-CqsOs6Uo.js"),
6622
6644
  "text-size": () => import("./text-size-m_mHNPWo.js"),
6623
- "keyboard-nav": () => import("./keyboard-nav-DLIviKXx.js"),
6645
+ "keyboard-nav": () => import("./keyboard-nav-C5iWPSrb.js"),
6624
6646
  "link-highlight": () => import("./link-highlight-DBGm067Y.js"),
6625
6647
  "reading-guide": () => import("./reading-guide-VT8NciIL.js"),
6626
6648
  "reading-mask": () => import("./reading-mask-BABChuCz.js"),
6627
6649
  "animation-stop": () => import("./animation-stop-DrDe9Q9n.js"),
6628
6650
  "hide-images": () => import("./hide-images-B_LeCBcd.js"),
6629
6651
  "big-cursor": () => import("./big-cursor-B2UKu9dQ.js"),
6630
- "page-structure": () => import("./page-structure-Bo1-XXRs.js"),
6652
+ "page-structure": () => import("./page-structure-OWe6Kkoc.js"),
6631
6653
  tts: () => import("./tts-CjszLRnb.js"),
6632
- "text-simplify": () => import("./text-simplify-B0hIi6bW.js"),
6654
+ "text-simplify": () => import("./text-simplify-DJxDrQHW.js"),
6633
6655
  "alt-text": () => Promise.resolve().then(() => altText)
6634
6656
  };
6635
6657
  let contrastMode = /* @__PURE__ */ state(proxy(readStoredContrastMode()));
@@ -6695,7 +6717,8 @@ function FeatureGrid($$anchor, $$props) {
6695
6717
  const exported = mod.default ?? mod;
6696
6718
  const featureModule = typeof exported === "function" ? AI_FEATURES.has(id) ? exported(getAIService(), $$props.config.lang, {
6697
6719
  siteKey: $$props.config.siteKey,
6698
- proxyUrl: $$props.config.proxyUrl
6720
+ proxyUrl: $$props.config.proxyUrl,
6721
+ simplificationLevel: $$props.config.simplificationLevel
6699
6722
  }) : exported() : exported;
6700
6723
  loadedModules.set(id, featureModule);
6701
6724
  return featureModule;
@@ -8882,6 +8905,7 @@ async function fetchSiteConfig(siteKey, proxyUrl) {
8882
8905
  if (serverCfg[field]) mapped[field] = serverCfg[field];
8883
8906
  }
8884
8907
  if (serverCfg.panelWidth) mapped.panelWidth = serverCfg.panelWidth;
8908
+ if (serverCfg.simplificationLevel) mapped.simplificationLevel = serverCfg.simplificationLevel;
8885
8909
  return mapped;
8886
8910
  } catch {
8887
8911
  return {};
@@ -9037,4 +9061,4 @@ export {
9037
9061
  init as i,
9038
9062
  t
9039
9063
  };
9040
- //# sourceMappingURL=index-kzWIIKQd.js.map
9064
+ //# sourceMappingURL=index-MgQwAeV-.js.map