react-os-shell 4.21.1 → 4.41.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-2GQLOOS7.js → Browser-TKBH4DZ3.js} +6 -6
- package/dist/{Browser-2GQLOOS7.js.map → Browser-TKBH4DZ3.js.map} +1 -1
- package/dist/{Calculator-QCAJ6ITI.js → Calculator-XERXEV35.js} +5 -5
- package/dist/{Calculator-QCAJ6ITI.js.map → Calculator-XERXEV35.js.map} +1 -1
- package/dist/ConfirmDialog-EEH4CWSW.js +3 -0
- package/dist/{ConfirmDialog-WAM5OKAV.js.map → ConfirmDialog-EEH4CWSW.js.map} +1 -1
- package/dist/{CurrencyConverter-PCYC6RL5.js → CurrencyConverter-OSZISLHT.js} +5 -5
- package/dist/{CurrencyConverter-PCYC6RL5.js.map → CurrencyConverter-OSZISLHT.js.map} +1 -1
- package/dist/{Documents-MOQNF6HE.js → Documents-YRTLDTLX.js} +6 -6
- package/dist/{Documents-MOQNF6HE.js.map → Documents-YRTLDTLX.js.map} +1 -1
- package/dist/{Files-YBH6XKXE.js → Files-WHYCDRYU.js} +7 -7
- package/dist/{Files-YBH6XKXE.js.map → Files-WHYCDRYU.js.map} +1 -1
- package/dist/{Notepad-E3L6AOGU.js → Notepad-6UAWRNZH.js} +6 -6
- package/dist/{Notepad-E3L6AOGU.js.map → Notepad-6UAWRNZH.js.map} +1 -1
- package/dist/{PomodoroTimer-YABFEPEV.js → PomodoroTimer-5ZSIG7SQ.js} +5 -5
- package/dist/{PomodoroTimer-YABFEPEV.js.map → PomodoroTimer-5ZSIG7SQ.js.map} +1 -1
- package/dist/{Preview-SNPHS4PS.js → Preview-VBIWWJLK.js} +6 -6
- package/dist/{Preview-SNPHS4PS.js.map → Preview-VBIWWJLK.js.map} +1 -1
- package/dist/{Spreadsheet-JXQCWZES.js → Spreadsheet-GRD4P3OI.js} +6 -6
- package/dist/{Spreadsheet-JXQCWZES.js.map → Spreadsheet-GRD4P3OI.js.map} +1 -1
- package/dist/{Stock-IPLLRUOC.js → Stock-4BORXILI.js} +5 -5
- package/dist/{Stock-IPLLRUOC.js.map → Stock-4BORXILI.js.map} +1 -1
- package/dist/{Weather-SI5QN7X2.js → Weather-ZPPSEUIY.js} +5 -5
- package/dist/{Weather-SI5QN7X2.js.map → Weather-ZPPSEUIY.js.map} +1 -1
- package/dist/{WorldClock-WYDSMUWX.js → WorldClock-LBKYWDWE.js} +5 -5
- package/dist/{WorldClock-WYDSMUWX.js.map → WorldClock-LBKYWDWE.js.map} +1 -1
- package/dist/apps/index.js +16 -16
- package/dist/{chunk-XRBJARD7.js → chunk-COTCIYLS.js} +4 -4
- package/dist/{chunk-XRBJARD7.js.map → chunk-COTCIYLS.js.map} +1 -1
- package/dist/{chunk-XBV7NUZK.js → chunk-D4WFGAUW.js} +556 -131
- package/dist/chunk-D4WFGAUW.js.map +1 -0
- package/dist/{chunk-IGPSRRL7.js → chunk-GUWAKATU.js} +10 -7
- package/dist/chunk-GUWAKATU.js.map +1 -0
- package/dist/{chunk-HYAW6KIL.js → chunk-HNH7FOYB.js} +16 -4
- package/dist/chunk-HNH7FOYB.js.map +1 -0
- package/dist/{chunk-L2O6B5KT.js → chunk-OXLLRKBC.js} +24 -4
- package/dist/chunk-OXLLRKBC.js.map +1 -0
- package/dist/chunk-TQFUNASX.js +7 -0
- package/dist/{chunk-CM2NWGYZ.js.map → chunk-TQFUNASX.js.map} +1 -1
- package/dist/{chunk-Q3AOIJ7B.js → chunk-X6DOWIY2.js} +3 -3
- package/dist/{chunk-Q3AOIJ7B.js.map → chunk-X6DOWIY2.js.map} +1 -1
- package/dist/{index-Czn1re5M.d.ts → index-B4RRJ5bp.d.ts} +300 -64
- package/dist/index.d.ts +53 -29
- package/dist/index.js +54 -146
- package/dist/index.js.map +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +4 -4
- package/package.json +1 -1
- package/dist/ConfirmDialog-WAM5OKAV.js +0 -3
- package/dist/chunk-CM2NWGYZ.js +0 -7
- package/dist/chunk-HYAW6KIL.js.map +0 -1
- package/dist/chunk-IGPSRRL7.js.map +0 -1
- package/dist/chunk-L2O6B5KT.js.map +0 -1
- package/dist/chunk-XBV7NUZK.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useIsMobile, useShellPrefs, PopupMenu, PopupMenuItem, PopupMenuDivider } from './chunk-C22EFSND.js';
|
|
2
|
-
import { confirm, runEscapeInterceptors } from './chunk-
|
|
2
|
+
import { confirm, runEscapeInterceptors } from './chunk-OXLLRKBC.js';
|
|
3
3
|
import { useShellAuth, navIcons } from './chunk-WNLPTLT6.js';
|
|
4
4
|
import { createContext, Component, useContext, useRef, useLayoutEffect, useState, useEffect, useCallback, useSyncExternalStore, useMemo, isValidElement, cloneElement, useReducer, useId, Suspense } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1072,6 +1072,9 @@ function CopyButton({ text }) {
|
|
|
1072
1072
|
);
|
|
1073
1073
|
}
|
|
1074
1074
|
var ModalActionsContext = createContext(null);
|
|
1075
|
+
function useEnclosingModalId() {
|
|
1076
|
+
return useContext(ModalIdContext);
|
|
1077
|
+
}
|
|
1075
1078
|
function useModalActive() {
|
|
1076
1079
|
const activeId = useSyncExternalStore(subscribeActive, getActiveModalId);
|
|
1077
1080
|
const ctx = useContext(ModalActionsContext);
|
|
@@ -1108,7 +1111,7 @@ function CancelButton({ onClick, children, className }) {
|
|
|
1108
1111
|
const ctx = useContext(ModalActionsContext);
|
|
1109
1112
|
const handleClick = async () => {
|
|
1110
1113
|
if (ctx?.isDirty) {
|
|
1111
|
-
const { confirm: confirm2 } = await import('./ConfirmDialog-
|
|
1114
|
+
const { confirm: confirm2 } = await import('./ConfirmDialog-EEH4CWSW.js');
|
|
1112
1115
|
const ok = await confirm2({
|
|
1113
1116
|
title: "Discard changes?",
|
|
1114
1117
|
message: "You have unsaved changes. Are you sure you want to cancel? All changes will be lost.",
|
|
@@ -2397,11 +2400,11 @@ function Modal({ open, onClose, title, icon, copyText, size = "lg", dirty = fals
|
|
|
2397
2400
|
if (activationOrder[activationOrder.length - 1] !== modalId) return;
|
|
2398
2401
|
if ((e.metaKey || e.ctrlKey) && e.key === "s") {
|
|
2399
2402
|
e.preventDefault();
|
|
2400
|
-
document.dispatchEvent(new CustomEvent("modal-save"));
|
|
2403
|
+
document.dispatchEvent(new CustomEvent("modal-save", { detail: { modalId } }));
|
|
2401
2404
|
setTouched(false);
|
|
2402
2405
|
} else if (e.altKey && e.shiftKey && (e.code === "KeyD" || e.key === "D" || e.key === "d")) {
|
|
2403
2406
|
e.preventDefault();
|
|
2404
|
-
document.dispatchEvent(new CustomEvent("modal-duplicate"));
|
|
2407
|
+
document.dispatchEvent(new CustomEvent("modal-duplicate", { detail: { modalId } }));
|
|
2405
2408
|
}
|
|
2406
2409
|
};
|
|
2407
2410
|
window.addEventListener("keydown", handler, true);
|
|
@@ -3122,6 +3125,6 @@ function useUndoableState(initial, opts) {
|
|
|
3122
3125
|
return [value, setValue];
|
|
3123
3126
|
}
|
|
3124
3127
|
|
|
3125
|
-
export { CancelButton, CopyButton, DocFavStar, LoadingSpinner, Modal, ModalActions, SIDEBAR_STRIP_W, UndoProvider, WINDOW_REGISTRY, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, beginWindowGesture, cancelWindowFront, client_default, commitExposeHighlight, drainPerfEvents, exitExposeMode, forgetMaximizedWindowBoxes, getActiveModalId, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, isShellApiClientConfigured, markMenuOpen, requestWindowFront, setExposeHighlight, setPerfCollecting, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useIsActiveWindow, useModalActive, useUndo, useUndoable, useUndoableState, useWidgetSettings, useWindowDirty, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
3126
|
-
//# sourceMappingURL=chunk-
|
|
3127
|
-
//# sourceMappingURL=chunk-
|
|
3128
|
+
export { CancelButton, CopyButton, DocFavStar, LoadingSpinner, Modal, ModalActions, SIDEBAR_STRIP_W, UndoProvider, WINDOW_REGISTRY, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, beginWindowGesture, cancelWindowFront, client_default, commitExposeHighlight, drainPerfEvents, exitExposeMode, forgetMaximizedWindowBoxes, getActiveModalId, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, isShellApiClientConfigured, markMenuOpen, requestWindowFront, setExposeHighlight, setPerfCollecting, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useEnclosingModalId, useIsActiveWindow, useModalActive, useUndo, useUndoable, useUndoableState, useWidgetSettings, useWindowDirty, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
3129
|
+
//# sourceMappingURL=chunk-GUWAKATU.js.map
|
|
3130
|
+
//# sourceMappingURL=chunk-GUWAKATU.js.map
|