react-os-shell 3.18.0 → 3.21.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/dist/{Browser-IOBONCZC.js → Browser-Y5LACCTM.js} +5 -5
- package/dist/{Browser-IOBONCZC.js.map → Browser-Y5LACCTM.js.map} +1 -1
- package/dist/{Calculator-B3KGTYLY.js → Calculator-IYQBRKNC.js} +4 -4
- package/dist/{Calculator-B3KGTYLY.js.map → Calculator-IYQBRKNC.js.map} +1 -1
- package/dist/{CurrencyConverter-WZIIGN4U.js → CurrencyConverter-JC2U6AD5.js} +4 -4
- package/dist/{CurrencyConverter-WZIIGN4U.js.map → CurrencyConverter-JC2U6AD5.js.map} +1 -1
- package/dist/{Documents-ANDEPGKO.js → Documents-P34FR6LN.js} +5 -5
- package/dist/{Documents-ANDEPGKO.js.map → Documents-P34FR6LN.js.map} +1 -1
- package/dist/{Files-XT4MLFCU.js → Files-M262ZGBI.js} +5 -5
- package/dist/{Files-XT4MLFCU.js.map → Files-M262ZGBI.js.map} +1 -1
- package/dist/{Notepad-NPOWW7MO.js → Notepad-CKTB2BCJ.js} +5 -5
- package/dist/{Notepad-NPOWW7MO.js.map → Notepad-CKTB2BCJ.js.map} +1 -1
- package/dist/{PomodoroTimer-2LV36KKW.js → PomodoroTimer-5HUENCFB.js} +5 -5
- package/dist/{PomodoroTimer-2LV36KKW.js.map → PomodoroTimer-5HUENCFB.js.map} +1 -1
- package/dist/{Preview-QSLIBJN2.js → Preview-ZKSPLNLJ.js} +5 -5
- package/dist/{Preview-QSLIBJN2.js.map → Preview-ZKSPLNLJ.js.map} +1 -1
- package/dist/{Spreadsheet-HMUD3DQT.js → Spreadsheet-MYYI2SK6.js} +5 -5
- package/dist/{Spreadsheet-HMUD3DQT.js.map → Spreadsheet-MYYI2SK6.js.map} +1 -1
- package/dist/{Stock-7XUOKZXY.js → Stock-OX7CDMRJ.js} +4 -4
- package/dist/{Stock-7XUOKZXY.js.map → Stock-OX7CDMRJ.js.map} +1 -1
- package/dist/{Weather-TEQ5QYND.js → Weather-5MCEUYIK.js} +4 -4
- package/dist/{Weather-TEQ5QYND.js.map → Weather-5MCEUYIK.js.map} +1 -1
- package/dist/{WorldClock-BKEAN2VD.js → WorldClock-I4E7BXFK.js} +4 -4
- package/dist/{WorldClock-BKEAN2VD.js.map → WorldClock-I4E7BXFK.js.map} +1 -1
- package/dist/apps/index.js +15 -15
- package/dist/{chunk-XTIQ4WTK.js → chunk-3ZRS7MY7.js} +3 -3
- package/dist/{chunk-XTIQ4WTK.js.map → chunk-3ZRS7MY7.js.map} +1 -1
- package/dist/{chunk-777B3U2Q.js → chunk-73IUVYII.js} +3 -3
- package/dist/{chunk-777B3U2Q.js.map → chunk-73IUVYII.js.map} +1 -1
- package/dist/{chunk-2ZA5WWBZ.js → chunk-NMNDUD3J.js} +4 -4
- package/dist/{chunk-2ZA5WWBZ.js.map → chunk-NMNDUD3J.js.map} +1 -1
- package/dist/{chunk-PAAX2MHL.js → chunk-RPSFO2H2.js} +85 -24
- package/dist/chunk-RPSFO2H2.js.map +1 -0
- package/dist/chunk-XN4ZLLNC.js +7 -0
- package/dist/{chunk-5GBXXTFJ.js.map → chunk-XN4ZLLNC.js.map} +1 -1
- package/dist/index.js +49 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5GBXXTFJ.js +0 -7
- package/dist/chunk-PAAX2MHL.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"names":[],"mappings":";AAIO,IAAM,OAAA,GAAwD,QAAA;AAG9D,IAAM,WAAA,GAAc","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"names":[],"mappings":";AAIO,IAAM,OAAA,GAAwD,QAAA;AAG9D,IAAM,WAAA,GAAc","file":"chunk-XN4ZLLNC.js","sourcesContent":["declare const __PKG_VERSION__: string | undefined;\n\n/** Package version, injected by tsup at build time. Stays as an empty\n * string when the source is consumed without a build (e.g. tests). */\nexport const VERSION: string = typeof __PKG_VERSION__ === 'string' ? __PKG_VERSION__ : '';\n\n/** Legacy alias kept so existing consumers do not break. */\nexport const APP_VERSION = VERSION;\n"]}
|
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-73IUVYII.js';
|
|
2
|
+
export { setShellTodoProvider } from './chunk-73IUVYII.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 { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, WINDOW_REGISTRY, isPageEntry, Modal, useShellPrefs, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, isShellApiClientConfigured, CancelButton, setWindowPosition, ThumbCard, activateModal } from './chunk-
|
|
21
|
-
export { CancelButton, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, ShellPrefsProvider, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, commitExposeHighlight, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, registerModalEscapeInterceptor, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useLocalStoragePrefs, useModalActive, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-
|
|
18
|
+
import { APP_VERSION, VERSION } from './chunk-XN4ZLLNC.js';
|
|
19
|
+
export { VERSION } from './chunk-XN4ZLLNC.js';
|
|
20
|
+
import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, WINDOW_REGISTRY, isPageEntry, Modal, useShellPrefs, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, isShellApiClientConfigured, CancelButton, setWindowPosition, ThumbCard, activateModal } from './chunk-RPSFO2H2.js';
|
|
21
|
+
export { CancelButton, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, ShellPrefsProvider, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, commitExposeHighlight, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, registerModalEscapeInterceptor, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useLocalStoragePrefs, useModalActive, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-RPSFO2H2.js';
|
|
22
22
|
export { ConfirmProvider, confirm, confirmDestructive, prompt } from './chunk-UBN4IUDE.js';
|
|
23
23
|
import { glassStyle, startMenuCategories, navSections, isSection, GLASS_INPUT_BG, navIcons, sectionIcons } from './chunk-GW3RA6IS.js';
|
|
24
24
|
export { GLASS_DIVIDER, GLASS_INPUT_BG, glassStyle, setShellNavIcons } from './chunk-GW3RA6IS.js';
|
|
@@ -866,6 +866,27 @@ function TopNav({ items, activeKey, onSelect, brand, actions, className }) {
|
|
|
866
866
|
}
|
|
867
867
|
|
|
868
868
|
// src/utils/date.ts
|
|
869
|
+
var MONTH_ABBR = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
870
|
+
var MONTH_FULL = [
|
|
871
|
+
"January",
|
|
872
|
+
"February",
|
|
873
|
+
"March",
|
|
874
|
+
"April",
|
|
875
|
+
"May",
|
|
876
|
+
"June",
|
|
877
|
+
"July",
|
|
878
|
+
"August",
|
|
879
|
+
"September",
|
|
880
|
+
"October",
|
|
881
|
+
"November",
|
|
882
|
+
"December"
|
|
883
|
+
];
|
|
884
|
+
function monthAbbr(mm) {
|
|
885
|
+
return MONTH_ABBR[parseInt(mm, 10) - 1] ?? mm;
|
|
886
|
+
}
|
|
887
|
+
function monthFull(mm) {
|
|
888
|
+
return MONTH_FULL[parseInt(mm, 10) - 1] ?? mm;
|
|
889
|
+
}
|
|
869
890
|
function getUserDateFormat() {
|
|
870
891
|
return localStorage.getItem("user_date_format") || "DD/MM/YYYY";
|
|
871
892
|
}
|
|
@@ -885,8 +906,30 @@ function formatDate(value) {
|
|
|
885
906
|
return `${yyyy}-${mm}-${dd}`;
|
|
886
907
|
case "DD-MM-YYYY":
|
|
887
908
|
return `${dd}-${mm}-${yyyy}`;
|
|
909
|
+
case "MM-DD-YYYY":
|
|
910
|
+
return `${mm}-${dd}-${yyyy}`;
|
|
888
911
|
case "DD.MM.YYYY":
|
|
889
912
|
return `${dd}.${mm}.${yyyy}`;
|
|
913
|
+
case "YYYY.MM.DD":
|
|
914
|
+
return `${yyyy}.${mm}.${dd}`;
|
|
915
|
+
case "YYYY/MM/DD":
|
|
916
|
+
return `${yyyy}/${mm}/${dd}`;
|
|
917
|
+
case "DD/MM/YY":
|
|
918
|
+
return `${dd}/${mm}/${yyyy.slice(-2)}`;
|
|
919
|
+
case "MM/DD/YY":
|
|
920
|
+
return `${mm}/${dd}/${yyyy.slice(-2)}`;
|
|
921
|
+
case "DD/MMM/YYYY":
|
|
922
|
+
return `${dd}/${monthAbbr(mm)}/${yyyy}`;
|
|
923
|
+
case "DD/MMM/YY":
|
|
924
|
+
return `${dd}/${monthAbbr(mm)}/${yyyy.slice(-2)}`;
|
|
925
|
+
case "DD MMM YYYY":
|
|
926
|
+
return `${dd} ${monthAbbr(mm)} ${yyyy}`;
|
|
927
|
+
case "MMM DD, YYYY":
|
|
928
|
+
return `${monthAbbr(mm)} ${dd}, ${yyyy}`;
|
|
929
|
+
case "DD MMMM YYYY":
|
|
930
|
+
return `${dd} ${monthFull(mm)} ${yyyy}`;
|
|
931
|
+
case "MMMM DD, YYYY":
|
|
932
|
+
return `${monthFull(mm)} ${dd}, ${yyyy}`;
|
|
890
933
|
case "DD/MM/YYYY":
|
|
891
934
|
default:
|
|
892
935
|
return `${dd}/${mm}/${yyyy}`;
|