react-os-shell 2.2.0 → 2.4.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 (52) hide show
  1. package/dist/Browser-PNQ5TVRZ.js +7 -0
  2. package/dist/{Browser-WBWTTZ3W.js.map → Browser-PNQ5TVRZ.js.map} +1 -1
  3. package/dist/{Calculator-BQBC6VT5.js → Calculator-XGXSRMF2.js} +4 -4
  4. package/dist/{Calculator-BQBC6VT5.js.map → Calculator-XGXSRMF2.js.map} +1 -1
  5. package/dist/{CurrencyConverter-DTPURMT4.js → CurrencyConverter-SVYA7ZGT.js} +4 -4
  6. package/dist/{CurrencyConverter-DTPURMT4.js.map → CurrencyConverter-SVYA7ZGT.js.map} +1 -1
  7. package/dist/{Documents-VLN4MNK5.js → Documents-L67KOICK.js} +4 -4
  8. package/dist/{Documents-VLN4MNK5.js.map → Documents-L67KOICK.js.map} +1 -1
  9. package/dist/Files-4D6XQRZB.js +13 -0
  10. package/dist/{Files-VOQ36BX5.js.map → Files-4D6XQRZB.js.map} +1 -1
  11. package/dist/{Notepad-4AHOPIU7.js → Notepad-L6QXDCAY.js} +4 -4
  12. package/dist/{Notepad-4AHOPIU7.js.map → Notepad-L6QXDCAY.js.map} +1 -1
  13. package/dist/{PomodoroTimer-LIWIBVWC.js → PomodoroTimer-L62PEYPP.js} +4 -4
  14. package/dist/{PomodoroTimer-LIWIBVWC.js.map → PomodoroTimer-L62PEYPP.js.map} +1 -1
  15. package/dist/Preview-XWX24RJD.js +9 -0
  16. package/dist/{Preview-ZYVXFIWX.js.map → Preview-XWX24RJD.js.map} +1 -1
  17. package/dist/Spreadsheet-2SWMHJQY.js +7 -0
  18. package/dist/{Spreadsheet-53RD3BXS.js.map → Spreadsheet-2SWMHJQY.js.map} +1 -1
  19. package/dist/{Stock-EHJCICH5.js → Stock-EDXEPZFF.js} +4 -4
  20. package/dist/{Stock-EHJCICH5.js.map → Stock-EDXEPZFF.js.map} +1 -1
  21. package/dist/{Weather-3ILCQFSO.js → Weather-T2EVJ5NE.js} +4 -4
  22. package/dist/{Weather-3ILCQFSO.js.map → Weather-T2EVJ5NE.js.map} +1 -1
  23. package/dist/{WorldClock-TEG2A2UV.js → WorldClock-JN7YJN3B.js} +4 -4
  24. package/dist/{WorldClock-TEG2A2UV.js.map → WorldClock-JN7YJN3B.js.map} +1 -1
  25. package/dist/apps/index.d.ts +1 -1
  26. package/dist/apps/index.js +19 -19
  27. package/dist/{chunk-YHRVUXLJ.js → chunk-5V6OCGI6.js} +3 -3
  28. package/dist/{chunk-YHRVUXLJ.js.map → chunk-5V6OCGI6.js.map} +1 -1
  29. package/dist/{chunk-EK4U6LPM.js → chunk-A7MAQOF3.js} +5 -5
  30. package/dist/{chunk-EK4U6LPM.js.map → chunk-A7MAQOF3.js.map} +1 -1
  31. package/dist/{chunk-34X5YPQT.js → chunk-BZLRZPLP.js} +4 -4
  32. package/dist/{chunk-34X5YPQT.js.map → chunk-BZLRZPLP.js.map} +1 -1
  33. package/dist/{chunk-IEHKOV3M.js → chunk-CGSN2MCD.js} +99 -5
  34. package/dist/chunk-CGSN2MCD.js.map +1 -0
  35. package/dist/{chunk-4F6XJIY3.js → chunk-EH6MIG5E.js} +4 -4
  36. package/dist/{chunk-4F6XJIY3.js.map → chunk-EH6MIG5E.js.map} +1 -1
  37. package/dist/{chunk-DGPKTNFZ.js → chunk-G4H4FQN3.js} +5 -5
  38. package/dist/{chunk-DGPKTNFZ.js.map → chunk-G4H4FQN3.js.map} +1 -1
  39. package/dist/{chunk-H72L23PH.js → chunk-PXCTWRVI.js} +4 -4
  40. package/dist/{chunk-H72L23PH.js.map → chunk-PXCTWRVI.js.map} +1 -1
  41. package/dist/{chunk-BN7GXKEZ.js → chunk-QAHF22KW.js} +7 -5
  42. package/dist/chunk-QAHF22KW.js.map +1 -0
  43. package/dist/index.d.ts +11 -4
  44. package/dist/index.js +8 -8
  45. package/dist/{types-BYiS2cc8.d.ts → types-08BmPknt.d.ts} +1 -1
  46. package/package.json +1 -1
  47. package/dist/Browser-WBWTTZ3W.js +0 -7
  48. package/dist/Files-VOQ36BX5.js +0 -13
  49. package/dist/Preview-ZYVXFIWX.js +0 -9
  50. package/dist/Spreadsheet-53RD3BXS.js +0 -7
  51. package/dist/chunk-BN7GXKEZ.js.map +0 -1
  52. package/dist/chunk-IEHKOV3M.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WindowRegistry } from './types-BYiS2cc8.js';
2
- export { M as ModalRegistryEntry, P as PageRegistryEntry, a as WindowRegistryEntry, i as isEntityEntry, b as isPageEntry, s as setShellWindowRegistry } from './types-BYiS2cc8.js';
1
+ import { W as WindowRegistry } from './types-08BmPknt.js';
2
+ export { M as ModalRegistryEntry, P as PageRegistryEntry, a as WindowRegistryEntry, i as isEntityEntry, b as isPageEntry, s as setShellWindowRegistry } from './types-08BmPknt.js';
3
3
  import * as react from 'react';
4
4
  import react__default, { ReactNode, Component, ErrorInfo, CSSProperties, Dispatch, SetStateAction, RefObject } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -160,7 +160,7 @@ interface ModalProps {
160
160
  icon?: React.ReactNode;
161
161
  /** Text to copy when the copy icon in the header is clicked (e.g. entity number) */
162
162
  copyText?: string;
163
- size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
163
+ size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
164
164
  dirty?: boolean | 'auto';
165
165
  onNext?: () => void;
166
166
  onPrev?: () => void;
@@ -284,9 +284,16 @@ interface PopupMenuProps {
284
284
  className?: string;
285
285
  onClose?: () => void;
286
286
  minWidth?: number;
287
+ /** Render into document.body instead of in place. Required when the menu
288
+ * is opened from INSIDE a window: the window panel is a transformed /
289
+ * backdrop-filtered `overflow-hidden` container, which both re-anchors
290
+ * `position: fixed` descendants to itself and clips them — a menu
291
+ * positioned at viewport coordinates ends up offset or invisible.
292
+ * Portaling restores true viewport positioning. */
293
+ portal?: boolean;
287
294
  }
288
295
  /** Container for a popup menu — auto-clamps to stay within viewport */
289
- declare function PopupMenu({ children, style, className, onClose, minWidth }: PopupMenuProps): react_jsx_runtime.JSX.Element;
296
+ declare function PopupMenu({ children, style, className, onClose, minWidth, portal }: PopupMenuProps): react_jsx_runtime.JSX.Element;
290
297
  /** A clickable menu item */
291
298
  declare function PopupMenuItem({ onClick, children, className, danger, disabled }: {
292
299
  onClick?: () => void;
package/dist/index.js CHANGED
@@ -2,20 +2,20 @@ import { subscribePomo, getPomoSnapshot } from './chunk-5X5LQNOX.js';
2
2
  export { setShellTodoProvider } from './chunk-5X5LQNOX.js';
3
3
  import { useShellPrefs } from './chunk-36VM54SC.js';
4
4
  export { ShellPrefsProvider, useLocalStoragePrefs, useShellPrefs } from './chunk-36VM54SC.js';
5
- import { PREVIEW_OPENED_EVENT, publishDesktopFolders, requestFilesTrashView, FolderGlyph, openPreviewFile, requestFilesDesktopFolderView, FileIconTile, hashGradient } from './chunk-H72L23PH.js';
6
- export { Breadcrumbs } from './chunk-H72L23PH.js';
5
+ import { PREVIEW_OPENED_EVENT, publishDesktopFolders, requestFilesTrashView, FolderGlyph, openPreviewFile, requestFilesDesktopFolderView, FileIconTile, hashGradient } from './chunk-PXCTWRVI.js';
6
+ export { Breadcrumbs } from './chunk-PXCTWRVI.js';
7
7
  import { SidebarLayout } from './chunk-VGTEM5RZ.js';
8
8
  export { SidebarLayout } from './chunk-VGTEM5RZ.js';
9
9
  import { playNotification, playStartup, soundsEnabled, getSoundConfig, SOUND_PACK_KEYS, SOUND_PACKS, SOUND_TYPES, SOUND_TYPE_LABELS, setSoundForType, previewSound, setAllSounds, playLogout } from './chunk-D7PYW2QS.js';
10
- import { setPdfPreview } from './chunk-IEHKOV3M.js';
10
+ import { setPdfPreview } from './chunk-CGSN2MCD.js';
11
11
  import './chunk-KUIPWCTJ.js';
12
12
  import { toast_default } from './chunk-WIJ45SYD.js';
13
13
  export { toast_default as toast } from './chunk-WIJ45SYD.js';
14
- export { EditableGrid } from './chunk-4F6XJIY3.js';
15
- import { APP_VERSION } from './chunk-EK4U6LPM.js';
16
- export { VERSION } from './chunk-EK4U6LPM.js';
17
- import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, WINDOW_REGISTRY, isPageEntry, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, setWindowPosition, ThumbCard, activateModal } from './chunk-BN7GXKEZ.js';
18
- export { CancelButton, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, commitExposeHighlight, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useModalActive, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-BN7GXKEZ.js';
14
+ export { EditableGrid } from './chunk-EH6MIG5E.js';
15
+ import { APP_VERSION } from './chunk-A7MAQOF3.js';
16
+ export { VERSION } from './chunk-A7MAQOF3.js';
17
+ import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, WINDOW_REGISTRY, isPageEntry, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, setWindowPosition, ThumbCard, activateModal } from './chunk-QAHF22KW.js';
18
+ export { CancelButton, CopyButton, DocFavStar, Modal, ModalActions, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowTitle, commitExposeHighlight, exitExposeMode, getActiveWindowRoute, getExposeHighlight, getWindowPosition, isEntityEntry, isPageEntry, setExposeHighlight, setShellApiClient, setShellWindowRegistry, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toggleExposeMode, useModalActive, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle } from './chunk-QAHF22KW.js';
19
19
  import { confirm } from './chunk-UBN4IUDE.js';
20
20
  export { ConfirmProvider, confirm, confirmDestructive, prompt } from './chunk-UBN4IUDE.js';
21
21
  import { useAuth, useShellAuth } from './chunk-ADJ3CERD.js';
@@ -18,7 +18,7 @@ import { ReactNode, LazyExoticComponent } from 'react';
18
18
  interface PageRegistryEntry {
19
19
  component: LazyExoticComponent<any>;
20
20
  label: string;
21
- size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
21
+ size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
22
22
  allowPinOnTop?: boolean;
23
23
  /** Utility apps don't show as taskbar window tabs. */
24
24
  utility?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-os-shell",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "MIT",
6
6
  "author": "Victor Y. Mau",
@@ -1,7 +0,0 @@
1
- export { Browser as default, setBrowserStartUrl } from './chunk-34X5YPQT.js';
2
- import './chunk-EK4U6LPM.js';
3
- import './chunk-BN7GXKEZ.js';
4
- import './chunk-UBN4IUDE.js';
5
- import './chunk-ZF6AYO4G.js';
6
- //# sourceMappingURL=Browser-WBWTTZ3W.js.map
7
- //# sourceMappingURL=Browser-WBWTTZ3W.js.map
@@ -1,13 +0,0 @@
1
- export { Files as default, openFilesInTrashMode, setFilesDemoTree } from './chunk-DGPKTNFZ.js';
2
- import './chunk-H72L23PH.js';
3
- import './chunk-VGTEM5RZ.js';
4
- import './chunk-IEHKOV3M.js';
5
- import './chunk-KUIPWCTJ.js';
6
- import './chunk-WIJ45SYD.js';
7
- import './chunk-4F6XJIY3.js';
8
- import './chunk-EK4U6LPM.js';
9
- import './chunk-BN7GXKEZ.js';
10
- import './chunk-UBN4IUDE.js';
11
- import './chunk-ZF6AYO4G.js';
12
- //# sourceMappingURL=Files-VOQ36BX5.js.map
13
- //# sourceMappingURL=Files-VOQ36BX5.js.map
@@ -1,9 +0,0 @@
1
- export { Preview as default, setPdfPreview } from './chunk-IEHKOV3M.js';
2
- import './chunk-KUIPWCTJ.js';
3
- import './chunk-WIJ45SYD.js';
4
- import './chunk-EK4U6LPM.js';
5
- import './chunk-BN7GXKEZ.js';
6
- import './chunk-UBN4IUDE.js';
7
- import './chunk-ZF6AYO4G.js';
8
- //# sourceMappingURL=Preview-ZYVXFIWX.js.map
9
- //# sourceMappingURL=Preview-ZYVXFIWX.js.map
@@ -1,7 +0,0 @@
1
- export { Spreadsheet as default, setSpreadsheetPreview } from './chunk-4F6XJIY3.js';
2
- import './chunk-EK4U6LPM.js';
3
- import './chunk-BN7GXKEZ.js';
4
- import './chunk-UBN4IUDE.js';
5
- import './chunk-ZF6AYO4G.js';
6
- //# sourceMappingURL=Spreadsheet-53RD3BXS.js.map
7
- //# sourceMappingURL=Spreadsheet-53RD3BXS.js.map