react-os-shell 1.6.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.
Files changed (47) hide show
  1. package/README.md +8 -9
  2. package/dist/{Browser-ELO6K7YY.js → Browser-WXHEE7GC.js} +4 -4
  3. package/dist/{Browser-ELO6K7YY.js.map → Browser-WXHEE7GC.js.map} +1 -1
  4. package/dist/{Documents-7KYHOORU.js → Documents-DRKELHI6.js} +3 -3
  5. package/dist/{Documents-7KYHOORU.js.map → Documents-DRKELHI6.js.map} +1 -1
  6. package/dist/{Files-3455T525.js → Files-TJTUA2LV.js} +7 -7
  7. package/dist/{Files-3455T525.js.map → Files-TJTUA2LV.js.map} +1 -1
  8. package/dist/{Notepad-RLQ4NXJI.js → Notepad-H6LI3MUZ.js} +3 -3
  9. package/dist/{Notepad-RLQ4NXJI.js.map → Notepad-H6LI3MUZ.js.map} +1 -1
  10. package/dist/Preview-J63FQ336.js +9 -0
  11. package/dist/{Preview-H5IOBX66.js.map → Preview-J63FQ336.js.map} +1 -1
  12. package/dist/{Spreadsheet-6C6O6BGG.js → Spreadsheet-Q5VPXFJK.js} +4 -4
  13. package/dist/{Spreadsheet-6C6O6BGG.js.map → Spreadsheet-Q5VPXFJK.js.map} +1 -1
  14. package/dist/apps/index.d.ts +1 -20
  15. package/dist/apps/index.js +13 -28
  16. package/dist/apps/index.js.map +1 -1
  17. package/dist/{chunk-32CXFFKW.js → chunk-2N4EEBHF.js} +3 -3
  18. package/dist/{chunk-32CXFFKW.js.map → chunk-2N4EEBHF.js.map} +1 -1
  19. package/dist/{chunk-Q3USVEUR.js → chunk-7FNPV6CE.js} +3 -3
  20. package/dist/{chunk-Q3USVEUR.js.map → chunk-7FNPV6CE.js.map} +1 -1
  21. package/dist/{chunk-4PSDLG2P.js → chunk-DOSYYJSP.js} +4 -4
  22. package/dist/{chunk-4PSDLG2P.js.map → chunk-DOSYYJSP.js.map} +1 -1
  23. package/dist/{chunk-ZIV7JFJ5.js → chunk-HMYEAOUF.js} +3 -3
  24. package/dist/{chunk-ZIV7JFJ5.js.map → chunk-HMYEAOUF.js.map} +1 -1
  25. package/dist/{chunk-VAMMHJR3.js → chunk-OMY5HWY2.js} +4 -4
  26. package/dist/{chunk-VAMMHJR3.js.map → chunk-OMY5HWY2.js.map} +1 -1
  27. package/dist/{chunk-KKEWB6RG.js → chunk-ROSSX5DN.js} +3 -3
  28. package/dist/{chunk-KKEWB6RG.js.map → chunk-ROSSX5DN.js.map} +1 -1
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +35 -9
  31. package/dist/index.js.map +1 -1
  32. package/package.json +1 -1
  33. package/dist/Checkers-MIAHIKJH.js +0 -214
  34. package/dist/Checkers-MIAHIKJH.js.map +0 -1
  35. package/dist/Chess-C5BY45NA.js +0 -190
  36. package/dist/Chess-C5BY45NA.js.map +0 -1
  37. package/dist/Game2048-3RH3ELRD.js +0 -191
  38. package/dist/Game2048-3RH3ELRD.js.map +0 -1
  39. package/dist/Minesweeper-OXRRSCVF.js +0 -271
  40. package/dist/Minesweeper-OXRRSCVF.js.map +0 -1
  41. package/dist/Preview-H5IOBX66.js +0 -9
  42. package/dist/Sudoku-XHLYCEVT.js +0 -197
  43. package/dist/Sudoku-XHLYCEVT.js.map +0 -1
  44. package/dist/Tetris-ZHCZYL24.js +0 -243
  45. package/dist/Tetris-ZHCZYL24.js.map +0 -1
  46. package/dist/chunk-Y4QYGQKS.js +0 -31
  47. 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 apps + games + Google apps from the package
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-VAMMHJR3.js';
8
- export { Breadcrumbs } from './chunk-VAMMHJR3.js';
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-Q3USVEUR.js';
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-KKEWB6RG.js';
17
- import { APP_VERSION } from './chunk-32CXFFKW.js';
18
- export { VERSION } from './chunk-32CXFFKW.js';
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