react-os-shell 1.0.0 → 1.1.1
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-M5Y3ENA7.js → Browser-NNPSNU35.js} +3 -3
- package/dist/{Browser-M5Y3ENA7.js.map → Browser-NNPSNU35.js.map} +1 -1
- package/dist/{Calculator-DJYKVGOK.js → Calculator-TGBQ6CZ5.js} +4 -4
- package/dist/{Calculator-DJYKVGOK.js.map → Calculator-TGBQ6CZ5.js.map} +1 -1
- package/dist/{CurrencyConverter-ZJWZCO5U.js → CurrencyConverter-VIED4YVG.js} +4 -4
- package/dist/{CurrencyConverter-ZJWZCO5U.js.map → CurrencyConverter-VIED4YVG.js.map} +1 -1
- package/dist/{Documents-2S4QPAI3.js → Documents-EKFJA35K.js} +3 -3
- package/dist/{Documents-2S4QPAI3.js.map → Documents-EKFJA35K.js.map} +1 -1
- package/dist/Files-DCBTCKHR.js +12 -0
- package/dist/{Files-V4SZKOGZ.js.map → Files-DCBTCKHR.js.map} +1 -1
- package/dist/{Minesweeper-YNXOWMIP.js → Minesweeper-JEQS36AX.js} +3 -3
- package/dist/{Minesweeper-YNXOWMIP.js.map → Minesweeper-JEQS36AX.js.map} +1 -1
- package/dist/{Notepad-6JJ4RT3U.js → Notepad-PTFPOQFG.js} +3 -3
- package/dist/{Notepad-6JJ4RT3U.js.map → Notepad-PTFPOQFG.js.map} +1 -1
- package/dist/{PomodoroTimer-HGPJ5R6V.js → PomodoroTimer-ALPSQRXI.js} +4 -4
- package/dist/{PomodoroTimer-HGPJ5R6V.js.map → PomodoroTimer-ALPSQRXI.js.map} +1 -1
- package/dist/Preview-SVY4T4PL.js +8 -0
- package/dist/{Preview-KUAQIPBY.js.map → Preview-SVY4T4PL.js.map} +1 -1
- package/dist/Spreadsheet-MITVBEDX.js +6 -0
- package/dist/{Spreadsheet-TVP3SXT6.js.map → Spreadsheet-MITVBEDX.js.map} +1 -1
- package/dist/{Stock-XLC3LZJV.js → Stock-HPG5RWLL.js} +4 -4
- package/dist/{Stock-XLC3LZJV.js.map → Stock-HPG5RWLL.js.map} +1 -1
- package/dist/{Weather-WH3URRSL.js → Weather-JC3RBPGD.js} +4 -4
- package/dist/{Weather-WH3URRSL.js.map → Weather-JC3RBPGD.js.map} +1 -1
- package/dist/{WorldClock-LJRWPGJW.js → WorldClock-XWFU7PQE.js} +4 -4
- package/dist/{WorldClock-LJRWPGJW.js.map → WorldClock-XWFU7PQE.js.map} +1 -1
- package/dist/apps/index.js +18 -18
- package/dist/{chunk-K354WXU5.js → chunk-3MB2IRBY.js} +3 -3
- package/dist/{chunk-K354WXU5.js.map → chunk-3MB2IRBY.js.map} +1 -1
- package/dist/{chunk-4R4SXMDV.js → chunk-4TNNWBYP.js} +4 -4
- package/dist/{chunk-4R4SXMDV.js.map → chunk-4TNNWBYP.js.map} +1 -1
- package/dist/{chunk-UXEG2NRI.js → chunk-BAVXM63E.js} +4 -4
- package/dist/{chunk-UXEG2NRI.js.map → chunk-BAVXM63E.js.map} +1 -1
- package/dist/{chunk-7TG7VNJS.js → chunk-HMTXSXYU.js} +3 -3
- package/dist/{chunk-7TG7VNJS.js.map → chunk-HMTXSXYU.js.map} +1 -1
- package/dist/{chunk-4RXDOSKZ.js → chunk-JHQDV7SP.js} +4 -4
- package/dist/chunk-JHQDV7SP.js.map +1 -0
- package/dist/{chunk-6DDVFASF.js → chunk-PR23BBD7.js} +3 -3
- package/dist/{chunk-6DDVFASF.js.map → chunk-PR23BBD7.js.map} +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/styles.css +31 -0
- package/package.json +1 -1
- package/dist/Files-V4SZKOGZ.js +0 -12
- package/dist/Preview-KUAQIPBY.js +0 -8
- package/dist/Spreadsheet-TVP3SXT6.js +0 -6
- package/dist/chunk-4RXDOSKZ.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -869,6 +869,11 @@ interface StickyEntityRef {
|
|
|
869
869
|
snapshot?: unknown;
|
|
870
870
|
}
|
|
871
871
|
type StickyResolver = (prefix: string, number: string) => Promise<StickyEntityRef | null>;
|
|
872
|
+
/** Optional items in the desktop right-click menu that a consumer can hide via
|
|
873
|
+
* {@link DesktopHostConfig.hiddenContextMenuItems} — e.g. when they're surfaced
|
|
874
|
+
* under Preferences instead. `'customization'` is the Preferences/Customization
|
|
875
|
+
* shortcut, `'favorites'` the Favorites shortcut, `'about'` the About item. */
|
|
876
|
+
type DesktopContextMenuItem = 'customization' | 'favorites' | 'about';
|
|
872
877
|
interface DesktopHostConfig {
|
|
873
878
|
/** Product name shown in the About dialog and desktop context menu. */
|
|
874
879
|
productName?: string;
|
|
@@ -900,6 +905,9 @@ interface DesktopHostConfig {
|
|
|
900
905
|
saveSnap?: (snap: boolean) => void | Promise<void>;
|
|
901
906
|
/** Persists the user's notepad / sticky-note content. */
|
|
902
907
|
saveNotes?: (notes: unknown[]) => void | Promise<void>;
|
|
908
|
+
/** Desktop right-click menu items to hide (all shown by default). Pass keys
|
|
909
|
+
* here when the consumer surfaces them elsewhere — e.g. under Preferences. */
|
|
910
|
+
hiddenContextMenuItems?: DesktopContextMenuItem[];
|
|
903
911
|
}
|
|
904
912
|
declare function DesktopHostProvider({ value, children }: {
|
|
905
913
|
value: DesktopHostConfig;
|
|
@@ -1504,4 +1512,4 @@ declare function useNewHotkey(callback: () => void): void;
|
|
|
1504
1512
|
*/
|
|
1505
1513
|
declare function useEditHotkey(callback: (() => void) | null): void;
|
|
1506
1514
|
|
|
1507
|
-
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, type BugReport, type BugReportConfig, BugReportConfigProvider, BugReportDetail, type BugReportExtraField, type BugReportExtraSelectField, BugReportProvider, type BugReportSubmission, type BugReportSubmitPayload, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CancelButton, type CellStyle, type ChangelogEntry, type ColumnDef, ConfirmProvider, CopyButton, Customization, type CustomizationOmitSection, type CustomizationProps, type CustomizationSection, DEV_BANNER_TEXT, Desktop, type DesktopHostConfig, DesktopHostProvider, DevIndicator, DocFavStar, ENTER, EditableGrid, type EditableGridProps, type EntityFetcher, EntityList, type EntityListColumn, type EntityListProps, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, type GridColumn, HelpCenter, type HelpCenterDoc, type HelpCenterProps, Kanban, type KanbanColumn, type KanbanProps, Layout, type LayoutProps, ListFooter, MOD, Markdown, type MarkdownProps, Modal, ModalActions, NotificationBell, type NotificationsConfig, type PaginatedResponse, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, type ReportType, ResizableTable, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, SidebarLayout, type SidebarLayoutProps, type SortState, SoundsPanel, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, SystemPreferences, type SystemPreferencesProps, type SystemPreferencesSection, type TodoProvider, type TodoTask, TopNav, type TopNavItem, type TopNavProps, VERSION, WidgetManager, WindowManagerProvider, WindowRegistry, WindowTitle, applyDevTitle, commitExposeHighlight, confirm, confirmDestructive, createWindowRegistry, exitExposeMode, formatDate, getActiveWindowRoute, getExposeHighlight, getWindowPosition, glassStyle, isDevEnv, isMac, openBugReportDialog, prompt, reportBug, setExposeHighlight, setShellApiClient, setShellAuthBridge, setShellNavIcons, setShellTodoProvider, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toast, toggleExposeMode, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useSort, useTableNav, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
1515
|
+
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, type BugReport, type BugReportConfig, BugReportConfigProvider, BugReportDetail, type BugReportExtraField, type BugReportExtraSelectField, BugReportProvider, type BugReportSubmission, type BugReportSubmitPayload, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CancelButton, type CellStyle, type ChangelogEntry, type ColumnDef, ConfirmProvider, CopyButton, Customization, type CustomizationOmitSection, type CustomizationProps, type CustomizationSection, DEV_BANNER_TEXT, Desktop, type DesktopContextMenuItem, type DesktopHostConfig, DesktopHostProvider, DevIndicator, DocFavStar, ENTER, EditableGrid, type EditableGridProps, type EntityFetcher, EntityList, type EntityListColumn, type EntityListProps, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, type GridColumn, HelpCenter, type HelpCenterDoc, type HelpCenterProps, Kanban, type KanbanColumn, type KanbanProps, Layout, type LayoutProps, ListFooter, MOD, Markdown, type MarkdownProps, Modal, ModalActions, NotificationBell, type NotificationsConfig, type PaginatedResponse, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, type ReportType, ResizableTable, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, SidebarLayout, type SidebarLayoutProps, type SortState, SoundsPanel, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, SystemPreferences, type SystemPreferencesProps, type SystemPreferencesSection, type TodoProvider, type TodoTask, TopNav, type TopNavItem, type TopNavProps, VERSION, WidgetManager, WindowManagerProvider, WindowRegistry, WindowTitle, applyDevTitle, commitExposeHighlight, confirm, confirmDestructive, createWindowRegistry, exitExposeMode, formatDate, getActiveWindowRoute, getExposeHighlight, getWindowPosition, glassStyle, isDevEnv, isMac, openBugReportDialog, prompt, reportBug, setExposeHighlight, setShellApiClient, setShellAuthBridge, setShellNavIcons, setShellTodoProvider, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toast, toggleExposeMode, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useSort, useTableNav, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
package/dist/index.js
CHANGED
|
@@ -4,18 +4,18 @@ import { subscribePomo, getPomoSnapshot } from './chunk-5X5LQNOX.js';
|
|
|
4
4
|
export { setShellTodoProvider } from './chunk-5X5LQNOX.js';
|
|
5
5
|
import { useShellPrefs } from './chunk-36VM54SC.js';
|
|
6
6
|
export { ShellPrefsProvider, useLocalStoragePrefs, useShellPrefs } from './chunk-36VM54SC.js';
|
|
7
|
-
import { PREVIEW_OPENED_EVENT, openPreviewFile } from './chunk-
|
|
8
|
-
export { Breadcrumbs } from './chunk-
|
|
7
|
+
import { PREVIEW_OPENED_EVENT, openPreviewFile } from './chunk-4TNNWBYP.js';
|
|
8
|
+
export { Breadcrumbs } from './chunk-4TNNWBYP.js';
|
|
9
9
|
import { SidebarLayout } from './chunk-VGTEM5RZ.js';
|
|
10
10
|
export { SidebarLayout } from './chunk-VGTEM5RZ.js';
|
|
11
11
|
import { playNotification, playStartup, soundsEnabled, getSoundConfig, SOUND_PACK_KEYS, SOUND_PACKS, SOUND_TYPES, SOUND_TYPE_LABELS, setSoundForType, previewSound, setAllSounds, playLogout } from './chunk-D7PYW2QS.js';
|
|
12
|
-
import { setPdfPreview } from './chunk-
|
|
12
|
+
import { setPdfPreview } from './chunk-3MB2IRBY.js';
|
|
13
13
|
import './chunk-KUIPWCTJ.js';
|
|
14
14
|
import { toast_default } from './chunk-WIJ45SYD.js';
|
|
15
15
|
export { toast_default as toast } from './chunk-WIJ45SYD.js';
|
|
16
|
-
export { EditableGrid } from './chunk-
|
|
17
|
-
import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, WINDOW_REGISTRY, isPageEntry, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, setWindowPosition, ThumbCard, activateModal } from './chunk-
|
|
18
|
-
export { CancelButton, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, WindowManagerProvider, WindowTitle, commitExposeHighlight, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useModalActive, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-
|
|
16
|
+
export { EditableGrid } from './chunk-PR23BBD7.js';
|
|
17
|
+
import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, WINDOW_REGISTRY, isPageEntry, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, setWindowPosition, ThumbCard, activateModal } from './chunk-JHQDV7SP.js';
|
|
18
|
+
export { CancelButton, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, WindowManagerProvider, WindowTitle, commitExposeHighlight, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useModalActive, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-JHQDV7SP.js';
|
|
19
19
|
import { confirm } from './chunk-UBN4IUDE.js';
|
|
20
20
|
export { ConfirmProvider, confirm, confirmDestructive, prompt } from './chunk-UBN4IUDE.js';
|
|
21
21
|
import { useAuth, useShellAuth } from './chunk-ADJ3CERD.js';
|
|
@@ -1435,7 +1435,7 @@ function WidgetManager({ open, onClose }) {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
|
|
1437
1437
|
// src/version.ts
|
|
1438
|
-
var VERSION = "1.
|
|
1438
|
+
var VERSION = "1.1.1" ;
|
|
1439
1439
|
var APP_VERSION = VERSION;
|
|
1440
1440
|
|
|
1441
1441
|
// src/changelog.ts
|
|
@@ -1831,6 +1831,7 @@ function Desktop({ profile }) {
|
|
|
1831
1831
|
const allNotes = prefs.notepad_notes || [];
|
|
1832
1832
|
const stickyNotes = allNotes.filter((n) => n.sticky);
|
|
1833
1833
|
const host = useDesktopHost();
|
|
1834
|
+
const hiddenMenuItems = host.hiddenContextMenuItems ?? [];
|
|
1834
1835
|
const openStickyRef = async (prefix, number) => {
|
|
1835
1836
|
const refNum = `${prefix}#${number}`;
|
|
1836
1837
|
if (!host.stickyResolver) {
|
|
@@ -2753,22 +2754,22 @@ function Desktop({ profile }) {
|
|
|
2753
2754
|
] }),
|
|
2754
2755
|
"Manage Widgets\u2026"
|
|
2755
2756
|
] }),
|
|
2756
|
-
/* @__PURE__ */ jsx(PopupMenuDivider, {}),
|
|
2757
|
-
/* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
|
|
2757
|
+
!(hiddenMenuItems.includes("customization") && hiddenMenuItems.includes("favorites") && hiddenMenuItems.includes("about")) && /* @__PURE__ */ jsx(PopupMenuDivider, {}),
|
|
2758
|
+
!hiddenMenuItems.includes("customization") && /* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
|
|
2758
2759
|
setContextMenu(null);
|
|
2759
2760
|
openPage("/settings/customization");
|
|
2760
2761
|
}, children: [
|
|
2761
2762
|
/* @__PURE__ */ jsx("svg", { className: "h-4 w-4 text-gray-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 1.5, children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42" }) }),
|
|
2762
2763
|
"Preferences"
|
|
2763
2764
|
] }),
|
|
2764
|
-
/* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
|
|
2765
|
+
!hiddenMenuItems.includes("favorites") && /* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
|
|
2765
2766
|
setContextMenu(null);
|
|
2766
2767
|
openPage("/settings/favorites");
|
|
2767
2768
|
}, children: [
|
|
2768
2769
|
/* @__PURE__ */ jsx("svg", { className: "h-4 w-4 text-gray-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 1.5, children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" }) }),
|
|
2769
2770
|
"Favorites"
|
|
2770
2771
|
] }),
|
|
2771
|
-
/* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
|
|
2772
|
+
!hiddenMenuItems.includes("about") && /* @__PURE__ */ jsxs(PopupMenuItem, { onClick: () => {
|
|
2772
2773
|
setContextMenu(null);
|
|
2773
2774
|
setAboutOpen(true);
|
|
2774
2775
|
}, children: [
|