@hemingweb/wordnook-mcp 1.0.28 → 1.0.31

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.
@@ -225,6 +225,7 @@ var HISTORY_KEY = "wordnook_history";
225
225
  var ACTIVE_PACK_KEY = "wordnook_active_pack";
226
226
  var THEME_KEY = "wordnook_theme";
227
227
  var FONT_SIZE_KEY = "wordnook_font_size";
228
+ var READING_FONT_KEY = "wordnook_reading_font";
228
229
  var MAX_HISTORY_ITEMS = 50;
229
230
  var DEFAULT_CURATED_WOTD_WORDS = [
230
231
  "serendipity",
@@ -378,7 +379,9 @@ var LocalStorageService = class {
378
379
  getTheme() {
379
380
  try {
380
381
  const val = localStorage.getItem(THEME_KEY);
381
- if (val === "light" || val === "dark" || val === "system") return val;
382
+ if (val === "light" || val === "dark" || val === "system" || val === "sepia" || val === "dyslexia" || val === "oled") {
383
+ return val;
384
+ }
382
385
  return "system";
383
386
  } catch {
384
387
  return "system";
@@ -391,6 +394,24 @@ var LocalStorageService = class {
391
394
  }
392
395
  }
393
396
  }
397
+ getReadingFont() {
398
+ try {
399
+ const val = localStorage.getItem(READING_FONT_KEY);
400
+ if (val === "default" || val === "serif" || val === "sans" || val === "dyslexia" || val === "mono") {
401
+ return val;
402
+ }
403
+ return "default";
404
+ } catch {
405
+ return "default";
406
+ }
407
+ }
408
+ setReadingFont(font) {
409
+ if (this.safeSetItem(READING_FONT_KEY, font)) {
410
+ if (typeof window !== "undefined") {
411
+ window.dispatchEvent(new CustomEvent("wordnook_reading_font_changed", { detail: { font } }));
412
+ }
413
+ }
414
+ }
394
415
  getFontSize() {
395
416
  try {
396
417
  const val = localStorage.getItem(FONT_SIZE_KEY);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hemingweb/wordnook-mcp",
3
- "version": "1.0.28",
3
+ "version": "1.0.31",
4
4
  "description": "Offline-first linguistic Model Context Protocol (MCP) server providing dictionaries, thesauruses, and lemmatization for AI agents.",
5
5
  "type": "module",
6
6
  "license": "CC-BY-SA-4.0",
Binary file