react-os-shell 4.2.0 → 4.2.2

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 (44) hide show
  1. package/dist/{Browser-XWYM2PEL.js → Browser-TPAIWPZX.js} +5 -5
  2. package/dist/{Browser-XWYM2PEL.js.map → Browser-TPAIWPZX.js.map} +1 -1
  3. package/dist/{Calculator-EIKUYW6O.js → Calculator-RCNLBRHK.js} +4 -4
  4. package/dist/{Calculator-EIKUYW6O.js.map → Calculator-RCNLBRHK.js.map} +1 -1
  5. package/dist/ConfirmDialog-QMBUHDXK.js +4 -0
  6. package/dist/{ConfirmDialog-C25OKJZP.js.map → ConfirmDialog-QMBUHDXK.js.map} +1 -1
  7. package/dist/{CurrencyConverter-PJUTWMCD.js → CurrencyConverter-CM5OTXWF.js} +4 -4
  8. package/dist/{CurrencyConverter-PJUTWMCD.js.map → CurrencyConverter-CM5OTXWF.js.map} +1 -1
  9. package/dist/{Documents-XA3VM4VJ.js → Documents-3BPIAGQT.js} +5 -5
  10. package/dist/{Documents-XA3VM4VJ.js.map → Documents-3BPIAGQT.js.map} +1 -1
  11. package/dist/{Files-42ON7ANG.js → Files-CR3L5C2L.js} +5 -5
  12. package/dist/{Files-42ON7ANG.js.map → Files-CR3L5C2L.js.map} +1 -1
  13. package/dist/{Notepad-QQINWDCQ.js → Notepad-C6JHCCF2.js} +5 -5
  14. package/dist/{Notepad-QQINWDCQ.js.map → Notepad-C6JHCCF2.js.map} +1 -1
  15. package/dist/{PomodoroTimer-K5NBAIVW.js → PomodoroTimer-EZMBYLQX.js} +5 -5
  16. package/dist/{PomodoroTimer-K5NBAIVW.js.map → PomodoroTimer-EZMBYLQX.js.map} +1 -1
  17. package/dist/{Preview-NKLLQUKW.js → Preview-TFDEMTSH.js} +5 -5
  18. package/dist/{Preview-NKLLQUKW.js.map → Preview-TFDEMTSH.js.map} +1 -1
  19. package/dist/{Spreadsheet-BDBABITI.js → Spreadsheet-FRUPALW4.js} +5 -5
  20. package/dist/{Spreadsheet-BDBABITI.js.map → Spreadsheet-FRUPALW4.js.map} +1 -1
  21. package/dist/{Stock-2XTWWH6K.js → Stock-HL42NPTM.js} +4 -4
  22. package/dist/{Stock-2XTWWH6K.js.map → Stock-HL42NPTM.js.map} +1 -1
  23. package/dist/{Weather-GCBITKTJ.js → Weather-N74AKS6V.js} +4 -4
  24. package/dist/{Weather-GCBITKTJ.js.map → Weather-N74AKS6V.js.map} +1 -1
  25. package/dist/{WorldClock-S52UINCL.js → WorldClock-A2EDB57H.js} +4 -4
  26. package/dist/{WorldClock-S52UINCL.js.map → WorldClock-A2EDB57H.js.map} +1 -1
  27. package/dist/apps/index.js +15 -15
  28. package/dist/{chunk-IGYB3NRR.js → chunk-5TU6DT3E.js} +3 -3
  29. package/dist/{chunk-IGYB3NRR.js.map → chunk-5TU6DT3E.js.map} +1 -1
  30. package/dist/chunk-D36OPVAT.js +7 -0
  31. package/dist/{chunk-ITOOPTGP.js.map → chunk-D36OPVAT.js.map} +1 -1
  32. package/dist/{chunk-QAVN7ZV5.js → chunk-QJXXSMPG.js} +3 -3
  33. package/dist/{chunk-QAVN7ZV5.js.map → chunk-QJXXSMPG.js.map} +1 -1
  34. package/dist/{chunk-3ORJ4J4J.js → chunk-RKNJSV2T.js} +4 -4
  35. package/dist/{chunk-3ORJ4J4J.js.map → chunk-RKNJSV2T.js.map} +1 -1
  36. package/dist/{chunk-URHWXWZE.js → chunk-SI4XHEMM.js} +35 -6
  37. package/dist/chunk-SI4XHEMM.js.map +1 -0
  38. package/dist/index.d.ts +3 -2
  39. package/dist/index.js +13 -6
  40. package/dist/index.js.map +1 -1
  41. package/package.json +1 -1
  42. package/dist/ConfirmDialog-C25OKJZP.js +0 -4
  43. package/dist/chunk-ITOOPTGP.js +0 -7
  44. package/dist/chunk-URHWXWZE.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -903,8 +903,9 @@ type StickyResolver = (prefix: string, number: string) => Promise<StickyEntityRe
903
903
  /** Optional items in the desktop right-click menu that a consumer can hide via
904
904
  * {@link DesktopHostConfig.hiddenContextMenuItems} — e.g. when they're surfaced
905
905
  * under Preferences instead. `'customization'` is the Preferences/Customization
906
- * shortcut, `'favorites'` the Favorites shortcut, `'about'` the About item. */
907
- type DesktopContextMenuItem = 'customization' | 'favorites' | 'about';
906
+ * shortcut, `'favorites'` the Favorites shortcut, `'about'` the About item,
907
+ * `'perf-stats'` the performance-overlay toggle. */
908
+ type DesktopContextMenuItem = 'customization' | 'favorites' | 'about' | 'perf-stats';
908
909
  interface DesktopHostConfig {
909
910
  /** Product name shown in the About dialog and desktop context menu. */
910
911
  productName?: string;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { subscribePomo, getPomoSnapshot } from './chunk-IGYB3NRR.js';
2
- export { setShellTodoProvider } from './chunk-IGYB3NRR.js';
1
+ import { subscribePomo, getPomoSnapshot } from './chunk-5TU6DT3E.js';
2
+ export { setShellTodoProvider } from './chunk-5TU6DT3E.js';
3
3
  export { ImageAnnotator_default as ImageAnnotator } from './chunk-QU5L5ZYM.js';
4
4
  import { PREVIEW_OPENED_EVENT, openPreviewFile } from './chunk-DINNWYVB.js';
5
5
  export { Breadcrumbs } from './chunk-DINNWYVB.js';
@@ -15,10 +15,10 @@ export { ShellAuthProvider, setShellAuthBridge, useShellAuth } from './chunk-ADJ
15
15
  import { EditableGrid } from './chunk-GP4Y3VCB.js';
16
16
  export { EditableGrid } from './chunk-GP4Y3VCB.js';
17
17
  import './chunk-4SQU5YV6.js';
18
- import { APP_VERSION, VERSION } from './chunk-ITOOPTGP.js';
19
- export { VERSION } from './chunk-ITOOPTGP.js';
20
- import { registerModalEscapeInterceptor, useIsMobile, useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, WINDOW_REGISTRY, isPageEntry, Modal, useShellPrefs, SIDEBAR_STRIP_W, forgetMaximizedWindowBoxes, ModalActions, useModalActive, client_default, LoadingSpinner, isShellApiClientConfigured, CancelButton, setWindowPosition } from './chunk-URHWXWZE.js';
21
- export { CancelButton, ConfirmProvider, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, ShellPrefsProvider, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, commitExposeHighlight, confirm, confirmDestructive, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, prompt, registerModalEscapeInterceptor, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useLocalStoragePrefs, useModalActive, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-URHWXWZE.js';
18
+ import { APP_VERSION, VERSION } from './chunk-D36OPVAT.js';
19
+ export { VERSION } from './chunk-D36OPVAT.js';
20
+ import { registerModalEscapeInterceptor, useIsMobile, useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, WINDOW_REGISTRY, isPageEntry, Modal, useShellPrefs, SIDEBAR_STRIP_W, forgetMaximizedWindowBoxes, ModalActions, useModalActive, client_default, LoadingSpinner, isShellApiClientConfigured, CancelButton, setWindowPosition } from './chunk-SI4XHEMM.js';
21
+ export { CancelButton, ConfirmProvider, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, ShellPrefsProvider, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, commitExposeHighlight, confirm, confirmDestructive, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, prompt, registerModalEscapeInterceptor, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useLocalStoragePrefs, useModalActive, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-SI4XHEMM.js';
22
22
  import { glassStyle, startMenuCategories, navSections, isSection, GLASS_INPUT_BG, navIcons, isReachable, sectionIcons, visibleChildren } from './chunk-6Q4KYGMH.js';
23
23
  export { GLASS_DIVIDER, GLASS_INPUT_BG, glassStyle, setShellNavIcons } from './chunk-6Q4KYGMH.js';
24
24
  import { createContext, lazy, forwardRef, useCallback, useState, useRef, useId, useEffect, useLayoutEffect, useMemo, useContext, isValidElement, cloneElement, Suspense, Fragment as Fragment$1, Children, useSyncExternalStore } from 'react';
@@ -2862,6 +2862,13 @@ function Desktop({ profile }) {
2862
2862
  ] }),
2863
2863
  "Manage Widgets\u2026"
2864
2864
  ] }),
2865
+ !hiddenMenuItems.includes("perf-stats") && /* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
2866
+ setContextMenu(null);
2867
+ saveShellPrefs({ show_desktop_stats: prefs.show_desktop_stats !== true });
2868
+ }, children: [
2869
+ /* @__PURE__ */ jsx("svg", { className: "h-4 w-4 text-emerald-500", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 1.5, children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3.75 20.25V15m5.25 5.25V9.75m5.25 10.5V4.5m5.25 15.75v-7.5" }) }),
2870
+ prefs.show_desktop_stats === true ? "Hide Performance Stats" : "Show Performance Stats"
2871
+ ] }),
2865
2872
  !(hiddenMenuItems.includes("customization") && hiddenMenuItems.includes("favorites") && hiddenMenuItems.includes("about")) && /* @__PURE__ */ jsx(PopupMenuDivider, {}),
2866
2873
  !hiddenMenuItems.includes("customization") && /* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
2867
2874
  setContextMenu(null);