react-os-shell 0.1.7 → 0.1.9
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/apps/index.js +1 -1
- package/dist/apps/index.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +26 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/apps/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var Calendar = lazy(() => import('../Calendar-H6WA57K2.js'));
|
|
|
19
19
|
var utilityApps = {
|
|
20
20
|
"/calculator": { component: Calculator, label: "Calculator", size: "sm", allowPinOnTop: true, utility: true, widget: true, autoHeight: true, dimensions: [280, 420] },
|
|
21
21
|
"/spreadsheet": { component: Spreadsheet, label: "Spreadsheets", size: "2xl", compact: true, multiInstance: true },
|
|
22
|
-
"/notepad": { component: Notepad, label: "Notepad", size: "lg" },
|
|
22
|
+
"/notepad": { component: Notepad, label: "Notepad", size: "lg", allowPinOnTop: true },
|
|
23
23
|
"/weather": { component: Weather, label: "Weather", size: "sm", utility: true, widget: true, autoHeight: true, dimensions: [320, 400] },
|
|
24
24
|
"/currency": { component: CurrencyConverter, label: "Currency Converter", size: "sm", utility: true, widget: true, autoHeight: true, dimensions: [320, 480] },
|
|
25
25
|
"/pomodoro": { component: PomodoroTimer, label: "Pomodoro Timer", size: "sm", utility: true, widget: true, autoHeight: true, dimensions: [320, 420] }
|
package/dist/apps/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/apps/index.ts"],"names":[],"mappings":";;;AAuBA,IAAM,UAAA,GAAa,IAAA,CAAK,MAAM,OAAO,2BAAc,CAAC;AACpD,IAAM,WAAA,GAAc,IAAA,CAAK,MAAM,OAAO,4BAAe,CAAC;AACtD,IAAM,OAAA,GAAU,IAAA,CAAK,MAAM,OAAO,wBAAW,CAAC;AAC9C,IAAM,iBAAA,GAAoB,IAAA,CAAK,MAAM,OAAO,kCAAqB,CAAC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AAO,QAAA,EAAU,IAAA,EAAM,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,UAAA,EAAY,CAAC,GAAA,EAAK,GAAG,CAAA,EAAE;AAAA,EACnG,OAAA,EAAS,EAAE,SAAA,EAAW,QAAA,EAAU,OAAO,MAAA,EAAQ,IAAA,EAAM,IAAA,EAAM,OAAA,EAAS,IAAA,EAAK;AAAA,EACzE,cAAA,EAAgB,EAAE,SAAA,EAAW,WAAA,EAAa,OAAO,aAAA,EAAe,IAAA,EAAM,IAAA,EAAM,OAAA,EAAS,IAAA;AACvF;AAEO,IAAM,UAAA,GAA6B;AAAA,EACxC,UAAU,EAAE,SAAA,EAAW,OAAO,KAAA,EAAO,OAAA,EAAS,MAAM,KAAA,EAAM;AAAA,EAC1D,WAAW,EAAE,SAAA,EAAW,YAAY,KAAA,EAAO,WAAA,EAAa,MAAM,IAAA,EAAK;AAAA,EACnE,aAAa,EAAE,SAAA,EAAW,UAAU,KAAA,EAAO,UAAA,EAAY,MAAM,IAAA;AAC/D;AAEO,IAAM,WAAA,GAA8B;AAAA,EACzC,GAAG,WAAA;AAAA,EACH,GAAG,QAAA;AAAA,EACH,GAAG;AACL","file":"index.js","sourcesContent":["/**\n * Bundled apps — pre-built window registry entries for the 16 apps that ship\n * with `react-os-shell`. Consumers compose them into their own registry via\n * `createWindowRegistry`:\n *\n * import { createWindowRegistry } from 'react-os-shell';\n * import { bundledApps } from 'react-os-shell/apps';\n * import { erpEntities } from './shell-config';\n *\n * const windows = createWindowRegistry(bundledApps, erpEntities);\n *\n * Subsets are also exported (`utilityApps`, `gameApps`, `googleApps`) so a\n * consumer can pick-and-choose without importing every component.\n *\n * NOTE: 4 apps require consumer-supplied persistence (Calendar / Notepad /\n * WorldClock for stored preferences, Minesweeper for leaderboard). They're\n * exported individually but absent from `bundledApps` — wire the prefs\n * provider to opt them in.\n */\nimport { lazy } from 'react';\nimport type { WindowRegistry } from '../windowRegistry/types';\n\n// ── Utility apps ──\nconst Calculator = lazy(() => import('./Calculator'));\nconst Spreadsheet = lazy(() => import('./Spreadsheet'));\nconst Weather = lazy(() => import('./Weather'));\nconst CurrencyConverter = lazy(() => import('./CurrencyConverter'));\nconst PomodoroTimer = lazy(() => import('./PomodoroTimer'));\nconst Notepad = lazy(() => import('./Notepad'));\n\n// ── Games ──\nconst Chess = lazy(() => import('./Chess'));\nconst Checkers = lazy(() => import('./Checkers'));\nconst Sudoku = lazy(() => import('./Sudoku'));\nconst Tetris = lazy(() => import('./Tetris'));\nconst Game2048 = lazy(() => import('./Game2048'));\nconst Minesweeper = lazy(() => import('./Minesweeper'));\n\n// ── Google apps ──\nconst Email = lazy(() => import('./Email'));\nconst GeminiChat = lazy(() => import('./GeminiChat'));\nconst Calendar = lazy(() => import('./Calendar'));\n\nexport const utilityApps: WindowRegistry = {\n '/calculator': { component: Calculator, label: 'Calculator', size: 'sm', allowPinOnTop: true, utility: true, widget: true, autoHeight: true, dimensions: [280, 420] },\n '/spreadsheet': { component: Spreadsheet, label: 'Spreadsheets', size: '2xl', compact: true, multiInstance: true },\n '/notepad': { component: Notepad, label: 'Notepad', size: 'lg', allowPinOnTop: true },\n '/weather': { component: Weather, label: 'Weather', size: 'sm', utility: true, widget: true, autoHeight: true, dimensions: [320, 400] },\n '/currency': { component: CurrencyConverter, label: 'Currency Converter', size: 'sm', utility: true, widget: true, autoHeight: true, dimensions: [320, 480] },\n '/pomodoro': { component: PomodoroTimer, label: 'Pomodoro Timer', size: 'sm', utility: true, widget: true, autoHeight: true, dimensions: [320, 420] },\n};\n\nexport const gameApps: WindowRegistry = {\n '/chess': { component: Chess, label: 'Chess', size: 'lg', compact: true },\n '/checkers': { component: Checkers, label: 'Checkers', size: 'lg', compact: true },\n '/sudoku': { component: Sudoku, label: 'Sudoku', size: 'sm', compact: true, dimensions: [360, 535] },\n '/tetris': { component: Tetris, label: 'Tetris', size: 'md', compact: true, dimensions: [452, 618] },\n '/2048': { component: Game2048, label: '2048', size: 'sm', compact: true },\n '/minesweeper': { component: Minesweeper, label: 'Minesweeper', size: 'sm', compact: true },\n};\n\nexport const googleApps: WindowRegistry = {\n '/email': { component: Email, label: 'Email', size: '2xl' },\n '/gemini': { component: GeminiChat, label: 'Gemini AI', size: 'lg' },\n '/calendar': { component: Calendar, label: 'Calendar', size: 'xl' },\n};\n\nexport const bundledApps: WindowRegistry = {\n ...utilityApps,\n ...gameApps,\n ...googleApps,\n};\n\nexport {\n Calculator,\n Spreadsheet,\n Notepad,\n Weather,\n CurrencyConverter,\n PomodoroTimer,\n Chess,\n Checkers,\n Sudoku,\n Tetris,\n Game2048,\n Minesweeper,\n Email,\n GeminiChat,\n Calendar,\n};\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -539,6 +539,10 @@ declare function StartMenu({ open, onClose, openPage, profile, user, onLogout, t
|
|
|
539
539
|
|
|
540
540
|
declare function Customization(): react_jsx_runtime.JSX.Element;
|
|
541
541
|
|
|
542
|
+
/** Package version, injected by tsup at build time. Stays as an empty
|
|
543
|
+
* string when the source is consumed without a build (e.g. tests). */
|
|
544
|
+
declare const VERSION: string;
|
|
545
|
+
|
|
542
546
|
interface ShellAuth {
|
|
543
547
|
/** Returns true if the current user has any of the listed permission codes. */
|
|
544
548
|
hasAnyPerm: (perms: string[]) => boolean;
|
|
@@ -639,4 +643,4 @@ declare function useNewHotkey(callback: () => void): void;
|
|
|
639
643
|
*/
|
|
640
644
|
declare function useEditHotkey(callback: (() => void) | null): void;
|
|
641
645
|
|
|
642
|
-
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, type BugReport, type BugReportConfig, BugReportConfigProvider, BugReportDetail, BugReportProvider, type BugReportSubmission, type BugReportSubmitPayload, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CancelButton, ConfirmProvider, CopyButton, Customization, Desktop, type DesktopHostConfig, DesktopHostProvider, DocFavStar, ENTER, type EntityFetcher, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, Layout, type LayoutProps, MOD, Modal, ModalActions, NotificationBell, type NotificationsConfig, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, WindowManagerProvider, WindowRegistry, WindowTitle, confirm, confirmDestructive, createWindowRegistry, formatDate, glassStyle, isMac, openBugReportDialog, reportBug, setShellApiClient, setShellAuthBridge, setShellNavIcons, toast, useBugReport, useClickOutside, useDesktopHost, useEditHotkey, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
646
|
+
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, type BugReport, type BugReportConfig, BugReportConfigProvider, BugReportDetail, BugReportProvider, type BugReportSubmission, type BugReportSubmitPayload, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CancelButton, ConfirmProvider, CopyButton, Customization, Desktop, type DesktopHostConfig, DesktopHostProvider, DocFavStar, ENTER, type EntityFetcher, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, Layout, type LayoutProps, MOD, Modal, ModalActions, NotificationBell, type NotificationsConfig, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, VERSION, WindowManagerProvider, WindowRegistry, WindowTitle, confirm, confirmDestructive, createWindowRegistry, formatDate, glassStyle, isMac, openBugReportDialog, reportBug, setShellApiClient, setShellAuthBridge, setShellNavIcons, toast, useBugReport, useClickOutside, useDesktopHost, useEditHotkey, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
package/dist/index.js
CHANGED
|
@@ -643,7 +643,8 @@ function StatusBadge({ status }) {
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
// src/version.ts
|
|
646
|
-
var
|
|
646
|
+
var VERSION = "0.1.9" ;
|
|
647
|
+
var APP_VERSION = VERSION;
|
|
647
648
|
|
|
648
649
|
// src/changelog.ts
|
|
649
650
|
var changelog = [];
|
|
@@ -752,10 +753,12 @@ function Desktop({ profile }) {
|
|
|
752
753
|
const { openEntity, openPage } = useWindowManager();
|
|
753
754
|
const bugReport = useBugReport();
|
|
754
755
|
const containerRef = useRef(null);
|
|
755
|
-
const
|
|
756
|
-
const
|
|
757
|
-
const
|
|
758
|
-
const
|
|
756
|
+
const { prefs: shellPrefs, save: saveShellPrefs } = useShellPrefs();
|
|
757
|
+
const prefs = { ...profile?.preferences || {}, ...shellPrefs };
|
|
758
|
+
const favDocs = prefs.favorite_documents || [];
|
|
759
|
+
const folders = prefs.desktop_folders || [];
|
|
760
|
+
const snapEnabled = prefs.desktop_snap ?? false;
|
|
761
|
+
const allNotes = prefs.notepad_notes || [];
|
|
759
762
|
const stickyNotes = allNotes.filter((n) => n.sticky);
|
|
760
763
|
const host = useDesktopHost();
|
|
761
764
|
const openStickyRef = async (prefix, number) => {
|
|
@@ -951,12 +954,14 @@ function Desktop({ profile }) {
|
|
|
951
954
|
useEffect(() => {
|
|
952
955
|
setLocalPositions({});
|
|
953
956
|
}, [favDocsKey, foldersKey]);
|
|
957
|
+
const didRubberBandDragRef = useRef(false);
|
|
954
958
|
const startRubberBand = (e) => {
|
|
955
959
|
if (e.button !== 0 || e.target !== containerRef.current) return;
|
|
956
960
|
const rect = containerRef.current.getBoundingClientRect();
|
|
957
961
|
const x = e.clientX - rect.left;
|
|
958
962
|
const y = e.clientY - rect.top;
|
|
959
963
|
setRubberBand({ startX: x, startY: y, endX: x, endY: y });
|
|
964
|
+
didRubberBandDragRef.current = false;
|
|
960
965
|
setSelected(/* @__PURE__ */ new Set());
|
|
961
966
|
};
|
|
962
967
|
useEffect(() => {
|
|
@@ -964,7 +969,12 @@ function Desktop({ profile }) {
|
|
|
964
969
|
const move = (e) => {
|
|
965
970
|
const rect = containerRef.current?.getBoundingClientRect();
|
|
966
971
|
if (!rect) return;
|
|
967
|
-
|
|
972
|
+
const x = e.clientX - rect.left;
|
|
973
|
+
const y = e.clientY - rect.top;
|
|
974
|
+
const dx = x - rubberBand.startX;
|
|
975
|
+
const dy = y - rubberBand.startY;
|
|
976
|
+
if (dx * dx + dy * dy > 16) didRubberBandDragRef.current = true;
|
|
977
|
+
setRubberBand((prev) => prev ? { ...prev, endX: x, endY: y } : null);
|
|
968
978
|
};
|
|
969
979
|
const up = () => {
|
|
970
980
|
if (rubberBand) {
|
|
@@ -1070,8 +1080,9 @@ function Desktop({ profile }) {
|
|
|
1070
1080
|
setRenamingFolder(null);
|
|
1071
1081
|
};
|
|
1072
1082
|
const saveNotes = useCallback((updated) => {
|
|
1073
|
-
host.saveNotes
|
|
1074
|
-
|
|
1083
|
+
if (host.saveNotes) host.saveNotes(updated);
|
|
1084
|
+
else saveShellPrefs({ notepad_notes: updated });
|
|
1085
|
+
}, [host, saveShellPrefs]);
|
|
1075
1086
|
const createStickyNote = () => {
|
|
1076
1087
|
const rect = containerRef.current?.getBoundingClientRect();
|
|
1077
1088
|
const x = contextMenu ? contextMenu.x - (rect?.left || 0) : 100;
|
|
@@ -1204,6 +1215,10 @@ function Desktop({ profile }) {
|
|
|
1204
1215
|
onPointerDown: startRubberBand,
|
|
1205
1216
|
onContextMenu: handleDesktopContextMenu,
|
|
1206
1217
|
onClick: () => {
|
|
1218
|
+
if (didRubberBandDragRef.current) {
|
|
1219
|
+
didRubberBandDragRef.current = false;
|
|
1220
|
+
return;
|
|
1221
|
+
}
|
|
1207
1222
|
setSelected(/* @__PURE__ */ new Set());
|
|
1208
1223
|
setContextMenu(null);
|
|
1209
1224
|
},
|
|
@@ -1526,7 +1541,6 @@ function Desktop({ profile }) {
|
|
|
1526
1541
|
})(),
|
|
1527
1542
|
aboutOpen && (() => {
|
|
1528
1543
|
const version = APP_VERSION;
|
|
1529
|
-
(profile?.preferences || {}).show_desktop_version ?? true;
|
|
1530
1544
|
return /* @__PURE__ */ jsx(Modal, { open: true, onClose: () => setAboutOpen(false), title: `About ${host.productName ?? "this app"}`, size: "sm", bodyScroll: false, compact: true, dimensions: [340, 420], children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
1531
1545
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 pt-4 pb-3 w-full", children: [
|
|
1532
1546
|
/* @__PURE__ */ jsx("img", { src: host.productIcon ?? "/favicon.svg", alt: "", className: "h-16 w-16" }),
|
|
@@ -1575,14 +1589,14 @@ function Desktop({ profile }) {
|
|
|
1575
1589
|
] })
|
|
1576
1590
|
] }) });
|
|
1577
1591
|
})(),
|
|
1578
|
-
(
|
|
1592
|
+
(prefs.show_desktop_version ?? true) && /* @__PURE__ */ jsx(
|
|
1579
1593
|
"button",
|
|
1580
1594
|
{
|
|
1581
1595
|
onClick: (e) => {
|
|
1582
1596
|
e.stopPropagation();
|
|
1583
1597
|
setWhatsNewOpen(true);
|
|
1584
1598
|
},
|
|
1585
|
-
className: `absolute bottom-3 text-[10px] text-white/50 font-mono select-none drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)] hover:text-white/80 transition-colors cursor-pointer ${
|
|
1599
|
+
className: `absolute bottom-3 text-[10px] text-white/50 font-mono select-none drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)] hover:text-white/80 transition-colors cursor-pointer ${prefs.taskbar_position === "top" ? "right-3" : prefs.taskbar_position === "left" ? "right-3" : prefs.taskbar_position === "right" ? "left-3" : "right-3 !bottom-16"}`,
|
|
1586
1600
|
children: APP_VERSION
|
|
1587
1601
|
}
|
|
1588
1602
|
),
|
|
@@ -3429,6 +3443,6 @@ function useEditHotkey(callback) {
|
|
|
3429
3443
|
}, [callback, isActive]);
|
|
3430
3444
|
}
|
|
3431
3445
|
|
|
3432
|
-
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BugReportConfigProvider, BugReportDetail, BugReportProvider, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, Customization, Desktop, DesktopHostProvider, ENTER, GlobalSearch, Layout, MOD, NotificationBell, SHIFT, ShellAuthProvider, ShellEntityFetcherProvider, ShortcutHelp, StartMenu, StatusBadge, StatusBadgeProvider, createWindowRegistry, isMac, openBugReportDialog, reportBug, setShellAuthBridge, useBugReport, useClickOutside, useDesktopHost, useEditHotkey, useNewHotkey, useShellAuth, useShellEntityFetcher };
|
|
3446
|
+
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BugReportConfigProvider, BugReportDetail, BugReportProvider, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, Customization, Desktop, DesktopHostProvider, ENTER, GlobalSearch, Layout, MOD, NotificationBell, SHIFT, ShellAuthProvider, ShellEntityFetcherProvider, ShortcutHelp, StartMenu, StatusBadge, StatusBadgeProvider, VERSION, createWindowRegistry, isMac, openBugReportDialog, reportBug, setShellAuthBridge, useBugReport, useClickOutside, useDesktopHost, useEditHotkey, useNewHotkey, useShellAuth, useShellEntityFetcher };
|
|
3433
3447
|
//# sourceMappingURL=index.js.map
|
|
3434
3448
|
//# sourceMappingURL=index.js.map
|