react-os-shell 1.5.0 → 2.0.0
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/README.md +8 -9
- package/dist/{Browser-MYVYM7YM.js → Browser-WXHEE7GC.js} +4 -4
- package/dist/{Browser-MYVYM7YM.js.map → Browser-WXHEE7GC.js.map} +1 -1
- package/dist/{Documents-SLODLCU4.js → Documents-DRKELHI6.js} +148 -11
- package/dist/Documents-DRKELHI6.js.map +1 -0
- package/dist/{Files-NE4YZTRX.js → Files-TJTUA2LV.js} +7 -7
- package/dist/{Files-NE4YZTRX.js.map → Files-TJTUA2LV.js.map} +1 -1
- package/dist/{Notepad-F3TLHMWJ.js → Notepad-H6LI3MUZ.js} +3 -3
- package/dist/{Notepad-F3TLHMWJ.js.map → Notepad-H6LI3MUZ.js.map} +1 -1
- package/dist/Preview-J63FQ336.js +9 -0
- package/dist/{Preview-HFGTMXE7.js.map → Preview-J63FQ336.js.map} +1 -1
- package/dist/{Spreadsheet-WF34DA44.js → Spreadsheet-Q5VPXFJK.js} +4 -4
- package/dist/{Spreadsheet-WF34DA44.js.map → Spreadsheet-Q5VPXFJK.js.map} +1 -1
- package/dist/apps/index.d.ts +1 -20
- package/dist/apps/index.js +13 -28
- package/dist/apps/index.js.map +1 -1
- package/dist/{chunk-W5ARJ7PU.js → chunk-2N4EEBHF.js} +5 -5
- package/dist/{chunk-W5ARJ7PU.js.map → chunk-2N4EEBHF.js.map} +1 -1
- package/dist/{chunk-PTRHYPXO.js → chunk-7FNPV6CE.js} +3 -3
- package/dist/{chunk-PTRHYPXO.js.map → chunk-7FNPV6CE.js.map} +1 -1
- package/dist/{chunk-RE2FEWBE.js → chunk-DOSYYJSP.js} +4 -4
- package/dist/{chunk-RE2FEWBE.js.map → chunk-DOSYYJSP.js.map} +1 -1
- package/dist/{chunk-XHBHCL5I.js → chunk-HMYEAOUF.js} +3 -3
- package/dist/{chunk-XHBHCL5I.js.map → chunk-HMYEAOUF.js.map} +1 -1
- package/dist/{chunk-F6NIGZTF.js → chunk-OMY5HWY2.js} +4 -4
- package/dist/{chunk-F6NIGZTF.js.map → chunk-OMY5HWY2.js.map} +1 -1
- package/dist/{chunk-IJ5Y4EGQ.js → chunk-ROSSX5DN.js} +3 -3
- package/dist/{chunk-IJ5Y4EGQ.js.map → chunk-ROSSX5DN.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +35 -9
- package/dist/index.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +1 -1
- package/dist/Checkers-MIAHIKJH.js +0 -214
- package/dist/Checkers-MIAHIKJH.js.map +0 -1
- package/dist/Chess-C5BY45NA.js +0 -190
- package/dist/Chess-C5BY45NA.js.map +0 -1
- package/dist/Documents-SLODLCU4.js.map +0 -1
- package/dist/Game2048-3RH3ELRD.js +0 -191
- package/dist/Game2048-3RH3ELRD.js.map +0 -1
- package/dist/Minesweeper-OXRRSCVF.js +0 -271
- package/dist/Minesweeper-OXRRSCVF.js.map +0 -1
- package/dist/Preview-HFGTMXE7.js +0 -9
- package/dist/Sudoku-XHLYCEVT.js +0 -197
- package/dist/Sudoku-XHLYCEVT.js.map +0 -1
- package/dist/Tetris-ZHCZYL24.js +0 -243
- package/dist/Tetris-ZHCZYL24.js.map +0 -1
- package/dist/chunk-Y4QYGQKS.js +0 -31
- package/dist/chunk-Y4QYGQKS.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { AxiosInstance } from 'axios';
|
|
|
12
12
|
* apps with the consumer's own entity windows.
|
|
13
13
|
*
|
|
14
14
|
* const windows = createWindowRegistry(
|
|
15
|
-
* bundledApps, // utility
|
|
15
|
+
* bundledApps, // utility + document + web apps from the package
|
|
16
16
|
* entityWindows, // consumer-defined entity windows (e.g. Sales Order, Invoice)
|
|
17
17
|
* );
|
|
18
18
|
*
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { formatDate } from './chunk-Y4QYGQKS.js';
|
|
2
|
-
export { formatDate } from './chunk-Y4QYGQKS.js';
|
|
3
1
|
import { subscribePomo, getPomoSnapshot } from './chunk-5X5LQNOX.js';
|
|
4
2
|
export { setShellTodoProvider } from './chunk-5X5LQNOX.js';
|
|
5
3
|
import { useShellPrefs } from './chunk-36VM54SC.js';
|
|
6
4
|
export { ShellPrefsProvider, useLocalStoragePrefs, useShellPrefs } from './chunk-36VM54SC.js';
|
|
7
|
-
import { PREVIEW_OPENED_EVENT, publishDesktopFolders, requestFilesTrashView, FolderGlyph, openPreviewFile, requestFilesDesktopFolderView, FileIconTile, hashGradient } from './chunk-
|
|
8
|
-
export { Breadcrumbs } from './chunk-
|
|
5
|
+
import { PREVIEW_OPENED_EVENT, publishDesktopFolders, requestFilesTrashView, FolderGlyph, openPreviewFile, requestFilesDesktopFolderView, FileIconTile, hashGradient } from './chunk-OMY5HWY2.js';
|
|
6
|
+
export { Breadcrumbs } from './chunk-OMY5HWY2.js';
|
|
9
7
|
import { SidebarLayout } from './chunk-VGTEM5RZ.js';
|
|
10
8
|
export { SidebarLayout } from './chunk-VGTEM5RZ.js';
|
|
11
9
|
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-
|
|
10
|
+
import { setPdfPreview } from './chunk-7FNPV6CE.js';
|
|
13
11
|
import './chunk-KUIPWCTJ.js';
|
|
14
12
|
import { toast_default } from './chunk-WIJ45SYD.js';
|
|
15
13
|
export { toast_default as toast } from './chunk-WIJ45SYD.js';
|
|
16
|
-
export { EditableGrid } from './chunk-
|
|
17
|
-
import { APP_VERSION } from './chunk-
|
|
18
|
-
export { VERSION } from './chunk-
|
|
14
|
+
export { EditableGrid } from './chunk-ROSSX5DN.js';
|
|
15
|
+
import { APP_VERSION } from './chunk-2N4EEBHF.js';
|
|
16
|
+
export { VERSION } from './chunk-2N4EEBHF.js';
|
|
19
17
|
import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, WINDOW_REGISTRY, isPageEntry, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, setWindowPosition, ThumbCard, activateModal } from './chunk-GWVVILYQ.js';
|
|
20
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-GWVVILYQ.js';
|
|
21
19
|
import { confirm } from './chunk-UBN4IUDE.js';
|
|
@@ -597,6 +595,34 @@ function TopNav({ items, activeKey, onSelect, brand, actions, className }) {
|
|
|
597
595
|
}
|
|
598
596
|
);
|
|
599
597
|
}
|
|
598
|
+
|
|
599
|
+
// src/utils/date.ts
|
|
600
|
+
function getUserDateFormat() {
|
|
601
|
+
return localStorage.getItem("user_date_format") || "DD/MM/YYYY";
|
|
602
|
+
}
|
|
603
|
+
function formatDate(value) {
|
|
604
|
+
if (!value) return "\u2014";
|
|
605
|
+
const dateStr = value.includes("T") ? value.split("T")[0] : value;
|
|
606
|
+
const [y, m, d] = dateStr.split("-").map(Number);
|
|
607
|
+
if (!y || !m || !d) return value;
|
|
608
|
+
const dd = String(d).padStart(2, "0");
|
|
609
|
+
const mm = String(m).padStart(2, "0");
|
|
610
|
+
const yyyy = String(y);
|
|
611
|
+
const fmt = getUserDateFormat();
|
|
612
|
+
switch (fmt) {
|
|
613
|
+
case "MM/DD/YYYY":
|
|
614
|
+
return `${mm}/${dd}/${yyyy}`;
|
|
615
|
+
case "YYYY-MM-DD":
|
|
616
|
+
return `${yyyy}-${mm}-${dd}`;
|
|
617
|
+
case "DD-MM-YYYY":
|
|
618
|
+
return `${dd}-${mm}-${yyyy}`;
|
|
619
|
+
case "DD.MM.YYYY":
|
|
620
|
+
return `${dd}.${mm}.${yyyy}`;
|
|
621
|
+
case "DD/MM/YYYY":
|
|
622
|
+
default:
|
|
623
|
+
return `${dd}/${mm}/${yyyy}`;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
600
626
|
function timeAgo(dateStr) {
|
|
601
627
|
const diff = Date.now() - new Date(dateStr).getTime();
|
|
602
628
|
const mins = Math.floor(diff / 6e4);
|
|
@@ -6281,6 +6307,6 @@ function useEditHotkey(callback) {
|
|
|
6281
6307
|
}, [callback, isActive]);
|
|
6282
6308
|
}
|
|
6283
6309
|
|
|
6284
|
-
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, BugReportConfigProvider, BugReportDetail, BugReportProvider, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, Customization, DEV_BANNER_TEXT, Desktop, DesktopHostProvider, DevIndicator, ENTER, EntityList, GlobalSearch, HelpCenter, Kanban, Layout, ListFooter, MOD, Markdown, NotificationBell, ResizableTable, SHIFT, ShellEntityFetcherProvider, ShortcutHelp, SoundsPanel, StartMenu, StatusBadge, StatusBadgeProvider, SystemPreferences, TopNav, WidgetManager, applyDevTitle, createWindowRegistry, isDevEnv, isMac, openBugReportDialog, reportBug, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useNewHotkey, useShellEntityFetcher, useSort, useTableNav };
|
|
6310
|
+
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, BugReportConfigProvider, BugReportDetail, BugReportProvider, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, Customization, DEV_BANNER_TEXT, Desktop, DesktopHostProvider, DevIndicator, ENTER, EntityList, GlobalSearch, HelpCenter, Kanban, Layout, ListFooter, MOD, Markdown, NotificationBell, ResizableTable, SHIFT, ShellEntityFetcherProvider, ShortcutHelp, SoundsPanel, StartMenu, StatusBadge, StatusBadgeProvider, SystemPreferences, TopNav, WidgetManager, applyDevTitle, createWindowRegistry, formatDate, isDevEnv, isMac, openBugReportDialog, reportBug, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useNewHotkey, useShellEntityFetcher, useSort, useTableNav };
|
|
6285
6311
|
//# sourceMappingURL=index.js.map
|
|
6286
6312
|
//# sourceMappingURL=index.js.map
|