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.
- package/dist/{Browser-XWYM2PEL.js → Browser-TPAIWPZX.js} +5 -5
- package/dist/{Browser-XWYM2PEL.js.map → Browser-TPAIWPZX.js.map} +1 -1
- package/dist/{Calculator-EIKUYW6O.js → Calculator-RCNLBRHK.js} +4 -4
- package/dist/{Calculator-EIKUYW6O.js.map → Calculator-RCNLBRHK.js.map} +1 -1
- package/dist/ConfirmDialog-QMBUHDXK.js +4 -0
- package/dist/{ConfirmDialog-C25OKJZP.js.map → ConfirmDialog-QMBUHDXK.js.map} +1 -1
- package/dist/{CurrencyConverter-PJUTWMCD.js → CurrencyConverter-CM5OTXWF.js} +4 -4
- package/dist/{CurrencyConverter-PJUTWMCD.js.map → CurrencyConverter-CM5OTXWF.js.map} +1 -1
- package/dist/{Documents-XA3VM4VJ.js → Documents-3BPIAGQT.js} +5 -5
- package/dist/{Documents-XA3VM4VJ.js.map → Documents-3BPIAGQT.js.map} +1 -1
- package/dist/{Files-42ON7ANG.js → Files-CR3L5C2L.js} +5 -5
- package/dist/{Files-42ON7ANG.js.map → Files-CR3L5C2L.js.map} +1 -1
- package/dist/{Notepad-QQINWDCQ.js → Notepad-C6JHCCF2.js} +5 -5
- package/dist/{Notepad-QQINWDCQ.js.map → Notepad-C6JHCCF2.js.map} +1 -1
- package/dist/{PomodoroTimer-K5NBAIVW.js → PomodoroTimer-EZMBYLQX.js} +5 -5
- package/dist/{PomodoroTimer-K5NBAIVW.js.map → PomodoroTimer-EZMBYLQX.js.map} +1 -1
- package/dist/{Preview-NKLLQUKW.js → Preview-TFDEMTSH.js} +5 -5
- package/dist/{Preview-NKLLQUKW.js.map → Preview-TFDEMTSH.js.map} +1 -1
- package/dist/{Spreadsheet-BDBABITI.js → Spreadsheet-FRUPALW4.js} +5 -5
- package/dist/{Spreadsheet-BDBABITI.js.map → Spreadsheet-FRUPALW4.js.map} +1 -1
- package/dist/{Stock-2XTWWH6K.js → Stock-HL42NPTM.js} +4 -4
- package/dist/{Stock-2XTWWH6K.js.map → Stock-HL42NPTM.js.map} +1 -1
- package/dist/{Weather-GCBITKTJ.js → Weather-N74AKS6V.js} +4 -4
- package/dist/{Weather-GCBITKTJ.js.map → Weather-N74AKS6V.js.map} +1 -1
- package/dist/{WorldClock-S52UINCL.js → WorldClock-A2EDB57H.js} +4 -4
- package/dist/{WorldClock-S52UINCL.js.map → WorldClock-A2EDB57H.js.map} +1 -1
- package/dist/apps/index.js +15 -15
- package/dist/{chunk-IGYB3NRR.js → chunk-5TU6DT3E.js} +3 -3
- package/dist/{chunk-IGYB3NRR.js.map → chunk-5TU6DT3E.js.map} +1 -1
- package/dist/chunk-D36OPVAT.js +7 -0
- package/dist/{chunk-ITOOPTGP.js.map → chunk-D36OPVAT.js.map} +1 -1
- package/dist/{chunk-QAVN7ZV5.js → chunk-QJXXSMPG.js} +3 -3
- package/dist/{chunk-QAVN7ZV5.js.map → chunk-QJXXSMPG.js.map} +1 -1
- package/dist/{chunk-3ORJ4J4J.js → chunk-RKNJSV2T.js} +4 -4
- package/dist/{chunk-3ORJ4J4J.js.map → chunk-RKNJSV2T.js.map} +1 -1
- package/dist/{chunk-URHWXWZE.js → chunk-SI4XHEMM.js} +35 -6
- package/dist/chunk-SI4XHEMM.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/ConfirmDialog-C25OKJZP.js +0 -4
- package/dist/chunk-ITOOPTGP.js +0 -7
- 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
|
-
|
|
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-
|
|
2
|
-
export { setShellTodoProvider } from './chunk-
|
|
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-
|
|
19
|
-
export { VERSION } from './chunk-
|
|
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-
|
|
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-
|
|
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);
|