react-os-shell 0.2.18 → 0.2.20

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.
Files changed (42) hide show
  1. package/dist/{Browser-EBBYHPBS.js → Browser-RJZLTAJQ.js} +3 -3
  2. package/dist/{Browser-EBBYHPBS.js.map → Browser-RJZLTAJQ.js.map} +1 -1
  3. package/dist/{Calculator-CAKKD24W.js → Calculator-DMROKOY2.js} +4 -4
  4. package/dist/{Calculator-CAKKD24W.js.map → Calculator-DMROKOY2.js.map} +1 -1
  5. package/dist/{Calendar-DHAUIE7N.js → Calendar-24TAKCAJ.js} +3 -3
  6. package/dist/{Calendar-DHAUIE7N.js.map → Calendar-24TAKCAJ.js.map} +1 -1
  7. package/dist/{CurrencyConverter-5LWH5WLH.js → CurrencyConverter-KMBBKLHZ.js} +4 -4
  8. package/dist/{CurrencyConverter-5LWH5WLH.js.map → CurrencyConverter-KMBBKLHZ.js.map} +1 -1
  9. package/dist/{Documents-LECUPQZ4.js → Documents-QMP6QN3C.js} +3 -3
  10. package/dist/{Documents-LECUPQZ4.js.map → Documents-QMP6QN3C.js.map} +1 -1
  11. package/dist/{Email-AJYKU4M7.js → Email-XTFUEIE5.js} +3 -3
  12. package/dist/{Email-AJYKU4M7.js.map → Email-XTFUEIE5.js.map} +1 -1
  13. package/dist/Files-GMIYQPAA.js +7 -0
  14. package/dist/{Files-RPYWW7CV.js.map → Files-GMIYQPAA.js.map} +1 -1
  15. package/dist/{Minesweeper-JKDGSZMW.js → Minesweeper-YPAR6SPJ.js} +3 -3
  16. package/dist/{Minesweeper-JKDGSZMW.js.map → Minesweeper-YPAR6SPJ.js.map} +1 -1
  17. package/dist/{Notepad-VL2E3ZAM.js → Notepad-VEEUZROP.js} +3 -3
  18. package/dist/{Notepad-VL2E3ZAM.js.map → Notepad-VEEUZROP.js.map} +1 -1
  19. package/dist/{PomodoroTimer-5WFFVIXI.js → PomodoroTimer-HWHMQZO6.js} +4 -4
  20. package/dist/{PomodoroTimer-5WFFVIXI.js.map → PomodoroTimer-HWHMQZO6.js.map} +1 -1
  21. package/dist/Preview-Z447TOCE.js +6 -0
  22. package/dist/{Preview-WE6TMZ2L.js.map → Preview-Z447TOCE.js.map} +1 -1
  23. package/dist/{Spreadsheet-COXQUNF6.js → Spreadsheet-W76QOD42.js} +3 -3
  24. package/dist/{Spreadsheet-COXQUNF6.js.map → Spreadsheet-W76QOD42.js.map} +1 -1
  25. package/dist/{Weather-4ZPRC6CB.js → Weather-DIKN7BOT.js} +4 -4
  26. package/dist/{Weather-4ZPRC6CB.js.map → Weather-DIKN7BOT.js.map} +1 -1
  27. package/dist/apps/index.js +16 -16
  28. package/dist/{chunk-QF5IZXIA.js → chunk-4J466VCS.js} +3 -3
  29. package/dist/{chunk-QF5IZXIA.js.map → chunk-4J466VCS.js.map} +1 -1
  30. package/dist/{chunk-HTNCG36G.js → chunk-7ZUE7PEH.js} +4 -4
  31. package/dist/{chunk-HTNCG36G.js.map → chunk-7ZUE7PEH.js.map} +1 -1
  32. package/dist/{chunk-CXR7YLO7.js → chunk-HVZUPS3P.js} +3 -3
  33. package/dist/{chunk-CXR7YLO7.js.map → chunk-HVZUPS3P.js.map} +1 -1
  34. package/dist/{chunk-IDUZR4KY.js → chunk-QXY6ZHRX.js} +48 -25
  35. package/dist/chunk-QXY6ZHRX.js.map +1 -0
  36. package/dist/index.d.ts +10 -1
  37. package/dist/index.js +30 -5
  38. package/dist/index.js.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/Files-RPYWW7CV.js +0 -7
  41. package/dist/Preview-WE6TMZ2L.js +0 -6
  42. package/dist/chunk-IDUZR4KY.js.map +0 -1
package/dist/index.js CHANGED
@@ -5,11 +5,11 @@ import { useGoogleAuth } from './chunk-46LICZUM.js';
5
5
  import { useShellPrefs } from './chunk-36VM54SC.js';
6
6
  export { ShellPrefsProvider, useLocalStoragePrefs, useShellPrefs } from './chunk-36VM54SC.js';
7
7
  import { playNotification, playStartup, soundsEnabled, getSoundConfig, SOUND_PACK_KEYS, SOUND_PACKS, SOUND_TYPES, SOUND_TYPE_LABELS, playLogout, setSoundForType, previewSound, setAllSounds } from './chunk-D7PYW2QS.js';
8
- import { setPdfPreview } from './chunk-QF5IZXIA.js';
8
+ import { setPdfPreview } from './chunk-4J466VCS.js';
9
9
  import { toast_default } from './chunk-WIJ45SYD.js';
10
10
  export { toast_default as toast } from './chunk-WIJ45SYD.js';
11
- import { useWindowManager, glassStyle, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, startMenuCategories, useIsMobile, navSections, isSection, GLASS_INPUT_BG, navIcons, sectionIcons, ModalActions, useModalActive, subscribeMobileMode, getMobileMode, WINDOW_REGISTRY, isPageEntry, setMobileMode, LoadingSpinner, ThumbCard, activateModal } from './chunk-IDUZR4KY.js';
12
- export { CancelButton, CopyButton, DocFavStar, GLASS_DIVIDER, GLASS_INPUT_BG, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, WindowManagerProvider, WindowTitle, glassStyle, isEntityEntry, isPageEntry, setShellApiClient, setShellNavIcons, setShellWindowRegistry, useModalActive, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-IDUZR4KY.js';
11
+ import { useWindowManager, glassStyle, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, startMenuCategories, useIsMobile, navSections, isSection, GLASS_INPUT_BG, navIcons, sectionIcons, ModalActions, useModalActive, WINDOW_REGISTRY, isPageEntry, LoadingSpinner, ThumbCard, activateModal } from './chunk-QXY6ZHRX.js';
12
+ export { CancelButton, CopyButton, DocFavStar, GLASS_DIVIDER, GLASS_INPUT_BG, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, WindowManagerProvider, WindowTitle, glassStyle, isEntityEntry, isPageEntry, setShellApiClient, setShellNavIcons, setShellWindowRegistry, useModalActive, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-QXY6ZHRX.js';
13
13
  export { ConfirmProvider, confirm, confirmDestructive, prompt } from './chunk-PLGHQ7QW.js';
14
14
  import { createContext, useState, useRef, useEffect, useCallback, useLayoutEffect, useContext, isValidElement, cloneElement, useSyncExternalStore, useMemo, Suspense } from 'react';
15
15
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -706,7 +706,7 @@ function StatusBadge({ status }) {
706
706
  }
707
707
 
708
708
  // src/version.ts
709
- var VERSION = "0.2.17" ;
709
+ var VERSION = "0.2.19" ;
710
710
  var APP_VERSION = VERSION;
711
711
 
712
712
  // src/changelog.ts
@@ -2791,6 +2791,24 @@ function StartMenu({
2791
2791
  ` })
2792
2792
  ] });
2793
2793
  }
2794
+
2795
+ // src/shell/mobileShellStore.ts
2796
+ var _mode = "home";
2797
+ var listeners = /* @__PURE__ */ new Set();
2798
+ function getMobileMode() {
2799
+ return _mode;
2800
+ }
2801
+ function setMobileMode(mode) {
2802
+ if (_mode === mode) return;
2803
+ _mode = mode;
2804
+ listeners.forEach((fn) => fn());
2805
+ }
2806
+ function subscribeMobileMode(cb) {
2807
+ listeners.add(cb);
2808
+ return () => {
2809
+ listeners.delete(cb);
2810
+ };
2811
+ }
2794
2812
  var MOBILE_WIDGET_ORDER_KEY = "erp_mobile_widget_order";
2795
2813
  var MOBILE_HOME_ORDER_KEY = "erp_mobile_home_order";
2796
2814
  var LONG_PRESS_MS = 400;
@@ -3391,7 +3409,7 @@ function MobileShell({
3391
3409
  }, [openWindows]);
3392
3410
  const prevOpenCountRef = useRef(openWindows.length);
3393
3411
  useEffect(() => {
3394
- if (openWindows.length < prevOpenCountRef.current && mode === "app") {
3412
+ if (openWindows.length === 0 && mode === "app") {
3395
3413
  setMobileMode("home");
3396
3414
  }
3397
3415
  prevOpenCountRef.current = openWindows.length;
@@ -3411,6 +3429,13 @@ function MobileShell({
3411
3429
  };
3412
3430
  const closeSheet = () => setSheet(null);
3413
3431
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3432
+ /* @__PURE__ */ jsx(
3433
+ "div",
3434
+ {
3435
+ className: "fixed inset-0 z-0 pointer-events-none",
3436
+ style: wallpaperStyle
3437
+ }
3438
+ ),
3414
3439
  mode === "home" && /* @__PURE__ */ jsx(
3415
3440
  "div",
3416
3441
  {