react-os-shell 0.10.0 → 0.11.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 +2 -1
- package/dist/{Browser-WVSS64J6.js → Browser-W63A4RUT.js} +3 -3
- package/dist/{Browser-WVSS64J6.js.map → Browser-W63A4RUT.js.map} +1 -1
- package/dist/{Calculator-37EIFRDU.js → Calculator-Z2DAZD6K.js} +4 -4
- package/dist/{Calculator-37EIFRDU.js.map → Calculator-Z2DAZD6K.js.map} +1 -1
- package/dist/{CurrencyConverter-PWX3FKRK.js → CurrencyConverter-S6RQB3OJ.js} +4 -4
- package/dist/{CurrencyConverter-PWX3FKRK.js.map → CurrencyConverter-S6RQB3OJ.js.map} +1 -1
- package/dist/{Documents-W2DABIOW.js → Documents-VE5Z7DRX.js} +3 -3
- package/dist/{Documents-W2DABIOW.js.map → Documents-VE5Z7DRX.js.map} +1 -1
- package/dist/Files-5IXGRZKM.js +11 -0
- package/dist/{Files-XNAPEBFF.js.map → Files-5IXGRZKM.js.map} +1 -1
- package/dist/{Minesweeper-M6HIJYPL.js → Minesweeper-WVAFWKCZ.js} +3 -3
- package/dist/{Minesweeper-M6HIJYPL.js.map → Minesweeper-WVAFWKCZ.js.map} +1 -1
- package/dist/{Notepad-MXEQCIC7.js → Notepad-OLNPHKTT.js} +3 -3
- package/dist/{Notepad-MXEQCIC7.js.map → Notepad-OLNPHKTT.js.map} +1 -1
- package/dist/{PomodoroTimer-5K55K26A.js → PomodoroTimer-ZJYDPFCT.js} +4 -4
- package/dist/{PomodoroTimer-5K55K26A.js.map → PomodoroTimer-ZJYDPFCT.js.map} +1 -1
- package/dist/Preview-LTZOUTQ7.js +8 -0
- package/dist/{Preview-VMKMY6SY.js.map → Preview-LTZOUTQ7.js.map} +1 -1
- package/dist/Spreadsheet-VT3ZISIN.js +6 -0
- package/dist/{Spreadsheet-UZMNMLZH.js.map → Spreadsheet-VT3ZISIN.js.map} +1 -1
- package/dist/{Stock-ZXZOCSJD.js → Stock-DWESS6UC.js} +4 -4
- package/dist/{Stock-ZXZOCSJD.js.map → Stock-DWESS6UC.js.map} +1 -1
- package/dist/{Weather-R6ULA547.js → Weather-NJHYEKH3.js} +4 -4
- package/dist/{Weather-R6ULA547.js.map → Weather-NJHYEKH3.js.map} +1 -1
- package/dist/{WorldClock-HHIBQXUR.js → WorldClock-UJKD253K.js} +4 -4
- package/dist/{WorldClock-HHIBQXUR.js.map → WorldClock-UJKD253K.js.map} +1 -1
- package/dist/apps/index.d.ts +1 -1
- package/dist/apps/index.js +18 -18
- package/dist/{chunk-SUUADOG6.js → chunk-3SIZAHR6.js} +4 -4
- package/dist/{chunk-SUUADOG6.js.map → chunk-3SIZAHR6.js.map} +1 -1
- package/dist/{chunk-ZETQWO2W.js → chunk-66GIT3PM.js} +3 -3
- package/dist/{chunk-ZETQWO2W.js.map → chunk-66GIT3PM.js.map} +1 -1
- package/dist/{chunk-LWVRQWGV.js → chunk-BS7EHYBT.js} +3 -3
- package/dist/{chunk-LWVRQWGV.js.map → chunk-BS7EHYBT.js.map} +1 -1
- package/dist/{chunk-KJ5664G7.js → chunk-DMSHU2HJ.js} +3 -3
- package/dist/{chunk-KJ5664G7.js.map → chunk-DMSHU2HJ.js.map} +1 -1
- package/dist/{chunk-CDSFAXIS.js → chunk-EFNKEBDB.js} +4 -4
- package/dist/{chunk-CDSFAXIS.js.map → chunk-EFNKEBDB.js.map} +1 -1
- package/dist/{chunk-3T6SQ4UO.js → chunk-IMFUTSYY.js} +5 -5
- package/dist/chunk-IMFUTSYY.js.map +1 -0
- package/dist/index.d.ts +47 -4
- package/dist/index.js +79 -7
- package/dist/index.js.map +1 -1
- package/dist/{types-D_4ifuf-.d.ts → types-BYiS2cc8.d.ts} +5 -0
- package/package.json +1 -1
- package/dist/Files-XNAPEBFF.js +0 -11
- package/dist/Preview-VMKMY6SY.js +0 -8
- package/dist/Spreadsheet-UZMNMLZH.js +0 -6
- package/dist/chunk-3T6SQ4UO.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WindowRegistry } from './types-
|
|
2
|
-
export { M as ModalRegistryEntry, P as PageRegistryEntry, a as WindowRegistryEntry, i as isEntityEntry, b as isPageEntry, s as setShellWindowRegistry } from './types-
|
|
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';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import react__default, { ReactNode, CSSProperties, Dispatch, SetStateAction, RefObject } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -200,6 +200,10 @@ interface ModalProps {
|
|
|
200
200
|
* self-chromed apps like Preview, Files, Browser. Implies `bodyScroll: false`
|
|
201
201
|
* — apps manage their own scrolling internally. */
|
|
202
202
|
appStyle?: boolean;
|
|
203
|
+
/** Flush body: keeps the STANDARD full title bar and footer, but drops the
|
|
204
|
+
* body padding so the content sits flush to the window edges (e.g. a
|
|
205
|
+
* `<SidebarLayout>`). Implies `bodyScroll: false`. */
|
|
206
|
+
flushBody?: boolean;
|
|
203
207
|
/** Auto-size height based on content. Window's height adapts to whatever the
|
|
204
208
|
* body renders; combined with `autoMinHeight` to prevent collapse and capped
|
|
205
209
|
* to the available viewport so nothing overflows the screen. Only set this
|
|
@@ -232,7 +236,7 @@ declare function setExposeHighlight(id: string | null): void;
|
|
|
232
236
|
*/
|
|
233
237
|
declare function commitExposeHighlight(): void;
|
|
234
238
|
|
|
235
|
-
declare function Modal({ open, onClose, title, icon, copyText, size, dirty, onNext, onPrev, footer, bodyScroll, onMinimize, initialBox, actions, actionsLeft, allowPinOnTop, initialPosition, widget, compact, appStyle, autoHeight, autoMinHeight, widgetMenu, dimensions, windowKey, openedFromKey, children }: ModalProps): react.ReactPortal | null;
|
|
239
|
+
declare function Modal({ open, onClose, title, icon, copyText, size, dirty, onNext, onPrev, footer, bodyScroll, onMinimize, initialBox, actions, actionsLeft, allowPinOnTop, initialPosition, widget, compact, appStyle, flushBody, autoHeight, autoMinHeight, widgetMenu, dimensions, windowKey, openedFromKey, children }: ModalProps): react.ReactPortal | null;
|
|
236
240
|
|
|
237
241
|
/**
|
|
238
242
|
* Unified popup menu component — used for all context menus, dropdowns, and flyouts.
|
|
@@ -450,6 +454,45 @@ interface EditableGridProps {
|
|
|
450
454
|
*/
|
|
451
455
|
declare function EditableGrid({ columns, data, onChange, onColumnsChange, fixedRows, minRows, maxHeight, cellStyles, onFocusChange, onSelectionChange }: EditableGridProps): react_jsx_runtime.JSX.Element;
|
|
452
456
|
|
|
457
|
+
/**
|
|
458
|
+
* Two-pane layout with a drag-to-resize left sidebar.
|
|
459
|
+
*
|
|
460
|
+
* Renders flush (`h-full w-full`) — pair it with a `flushBody` window so the
|
|
461
|
+
* sidebar runs from just under the title bar to the very bottom with no
|
|
462
|
+
* surrounding padding. The user can drag the right edge of the sidebar to
|
|
463
|
+
* resize it; pass `storageKey` to persist that width across reopens, or
|
|
464
|
+
* double-click the handle to reset to `defaultWidth`.
|
|
465
|
+
*
|
|
466
|
+
* @example
|
|
467
|
+
* <SidebarLayout sidebar={<MyNav />} storageKey="todo.sidebarWidth">
|
|
468
|
+
* <MyContent />
|
|
469
|
+
* </SidebarLayout>
|
|
470
|
+
*/
|
|
471
|
+
interface SidebarLayoutProps {
|
|
472
|
+
/** Content of the left sidebar pane. */
|
|
473
|
+
sidebar: ReactNode;
|
|
474
|
+
/** Content of the main pane (right of the sidebar). */
|
|
475
|
+
children: ReactNode;
|
|
476
|
+
/** localStorage key to persist the sidebar width across reopens. When set,
|
|
477
|
+
* the last dragged width is restored on mount. Omit for session-only width. */
|
|
478
|
+
storageKey?: string;
|
|
479
|
+
/** Initial sidebar width in px (used when nothing is persisted). Default 256. */
|
|
480
|
+
defaultWidth?: number;
|
|
481
|
+
/** Minimum sidebar width in px. Default 180. */
|
|
482
|
+
minWidth?: number;
|
|
483
|
+
/** Maximum sidebar width in px. Default 480. */
|
|
484
|
+
maxWidth?: number;
|
|
485
|
+
/** Extra classes for the outer flex row. */
|
|
486
|
+
className?: string;
|
|
487
|
+
/** Classes for the sidebar pane (background, border, …). The pane is a flex
|
|
488
|
+
* column that scrolls its own overflow. Defaults to a light-grey,
|
|
489
|
+
* right-bordered sidebar. */
|
|
490
|
+
sidebarClassName?: string;
|
|
491
|
+
/** Classes for the main content pane. Defaults to a white background. */
|
|
492
|
+
contentClassName?: string;
|
|
493
|
+
}
|
|
494
|
+
declare function SidebarLayout({ sidebar, children, storageKey, defaultWidth, minWidth, maxWidth, className, sidebarClassName, contentClassName, }: SidebarLayoutProps): react_jsx_runtime.JSX.Element;
|
|
495
|
+
|
|
453
496
|
/** Generic notification shape consumed by the shell. Consumer-specific
|
|
454
497
|
* fields live on `extra` (or just on additional properties — TS structural
|
|
455
498
|
* typing is permissive). */
|
|
@@ -1390,4 +1433,4 @@ declare function useNewHotkey(callback: () => void): void;
|
|
|
1390
1433
|
*/
|
|
1391
1434
|
declare function useEditHotkey(callback: (() => void) | null): void;
|
|
1392
1435
|
|
|
1393
|
-
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, type BugReport, type BugReportConfig, BugReportConfigProvider, BugReportDetail, type BugReportExtraField, type BugReportExtraSelectField, BugReportProvider, type BugReportSubmission, type BugReportSubmitPayload, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CancelButton, type CellStyle, type ChangelogEntry, type ColumnDef, ConfirmProvider, CopyButton, Customization, type CustomizationOmitSection, type CustomizationProps, DEV_BANNER_TEXT, Desktop, type DesktopHostConfig, DesktopHostProvider, DevIndicator, DocFavStar, ENTER, EditableGrid, type EditableGridProps, type EntityFetcher, EntityList, type EntityListColumn, type EntityListProps, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, type GridColumn, HelpCenter, type HelpCenterDoc, type HelpCenterProps, Kanban, type KanbanColumn, type KanbanProps, Layout, type LayoutProps, ListFooter, MOD, Markdown, type MarkdownProps, Modal, ModalActions, NotificationBell, type NotificationsConfig, type PaginatedResponse, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, type ReportType, ResizableTable, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, type SortState, SoundsPanel, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, SystemPreferences, type SystemPreferencesProps, type SystemPreferencesSection, type TodoProvider, type TodoTask, VERSION, WidgetManager, WindowManagerProvider, WindowRegistry, WindowTitle, applyDevTitle, commitExposeHighlight, confirm, confirmDestructive, createWindowRegistry, exitExposeMode, formatDate, getActiveWindowRoute, getExposeHighlight, getWindowPosition, glassStyle, isDevEnv, isMac, openBugReportDialog, prompt, reportBug, setExposeHighlight, setShellApiClient, setShellAuthBridge, setShellNavIcons, setShellTodoProvider, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toast, toggleExposeMode, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useSort, useTableNav, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
|
1436
|
+
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, type BugReport, type BugReportConfig, BugReportConfigProvider, BugReportDetail, type BugReportExtraField, type BugReportExtraSelectField, BugReportProvider, type BugReportSubmission, type BugReportSubmitPayload, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CancelButton, type CellStyle, type ChangelogEntry, type ColumnDef, ConfirmProvider, CopyButton, Customization, type CustomizationOmitSection, type CustomizationProps, DEV_BANNER_TEXT, Desktop, type DesktopHostConfig, DesktopHostProvider, DevIndicator, DocFavStar, ENTER, EditableGrid, type EditableGridProps, type EntityFetcher, EntityList, type EntityListColumn, type EntityListProps, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, type GridColumn, HelpCenter, type HelpCenterDoc, type HelpCenterProps, Kanban, type KanbanColumn, type KanbanProps, Layout, type LayoutProps, ListFooter, MOD, Markdown, type MarkdownProps, Modal, ModalActions, NotificationBell, type NotificationsConfig, type PaginatedResponse, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, type ReportType, ResizableTable, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, SidebarLayout, type SidebarLayoutProps, type SortState, SoundsPanel, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, SystemPreferences, type SystemPreferencesProps, type SystemPreferencesSection, type TodoProvider, type TodoTask, VERSION, WidgetManager, WindowManagerProvider, WindowRegistry, WindowTitle, applyDevTitle, commitExposeHighlight, confirm, confirmDestructive, createWindowRegistry, exitExposeMode, formatDate, getActiveWindowRoute, getExposeHighlight, getWindowPosition, glassStyle, isDevEnv, isMac, openBugReportDialog, prompt, reportBug, setExposeHighlight, setShellApiClient, setShellAuthBridge, setShellNavIcons, setShellTodoProvider, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toast, toggleExposeMode, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useSort, useTableNav, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|
package/dist/index.js
CHANGED
|
@@ -4,15 +4,15 @@ import { subscribePomo, getPomoSnapshot } from './chunk-MK3HLUO4.js';
|
|
|
4
4
|
export { setShellTodoProvider } from './chunk-QTJ2CHJX.js';
|
|
5
5
|
import { useShellPrefs } from './chunk-36VM54SC.js';
|
|
6
6
|
export { ShellPrefsProvider, useLocalStoragePrefs, useShellPrefs } from './chunk-36VM54SC.js';
|
|
7
|
-
import { PREVIEW_OPENED_EVENT, openPreviewFile } from './chunk-
|
|
7
|
+
import { PREVIEW_OPENED_EVENT, openPreviewFile } from './chunk-3SIZAHR6.js';
|
|
8
8
|
import { playNotification, playStartup, soundsEnabled, getSoundConfig, SOUND_PACK_KEYS, SOUND_PACKS, SOUND_TYPES, SOUND_TYPE_LABELS, setSoundForType, previewSound, setAllSounds, playLogout } from './chunk-D7PYW2QS.js';
|
|
9
|
-
import { setPdfPreview } from './chunk-
|
|
9
|
+
import { setPdfPreview } from './chunk-DMSHU2HJ.js';
|
|
10
10
|
import './chunk-KUIPWCTJ.js';
|
|
11
11
|
import { toast_default } from './chunk-WIJ45SYD.js';
|
|
12
12
|
export { toast_default as toast } from './chunk-WIJ45SYD.js';
|
|
13
|
-
export { EditableGrid } from './chunk-
|
|
14
|
-
import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, WINDOW_REGISTRY, isPageEntry, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, setWindowPosition, ThumbCard, activateModal } from './chunk-
|
|
15
|
-
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-
|
|
13
|
+
export { EditableGrid } from './chunk-66GIT3PM.js';
|
|
14
|
+
import { useWindowManager, PopupMenu, PopupMenuLabel, PopupMenuDivider, PopupMenuItem, Modal, WINDOW_REGISTRY, isPageEntry, useIsMobile, ModalActions, useModalActive, client_default, LoadingSpinner, setWindowPosition, ThumbCard, activateModal } from './chunk-IMFUTSYY.js';
|
|
15
|
+
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-IMFUTSYY.js';
|
|
16
16
|
import { confirm } from './chunk-UBN4IUDE.js';
|
|
17
17
|
export { ConfirmProvider, confirm, confirmDestructive, prompt } from './chunk-UBN4IUDE.js';
|
|
18
18
|
import { useAuth, useShellAuth } from './chunk-ADJ3CERD.js';
|
|
@@ -560,6 +560,78 @@ function HelpCenter({
|
|
|
560
560
|
] }) : /* @__PURE__ */ jsx("div", { className: "flex-1 flex items-center justify-center px-6 text-center", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500", children: loading ? "Loading\u2026" : "Pick a help article from the left." }) }) })
|
|
561
561
|
] });
|
|
562
562
|
}
|
|
563
|
+
var clamp = (n, lo, hi) => Math.min(Math.max(n, lo), hi);
|
|
564
|
+
function SidebarLayout({
|
|
565
|
+
sidebar,
|
|
566
|
+
children,
|
|
567
|
+
storageKey,
|
|
568
|
+
defaultWidth = 256,
|
|
569
|
+
minWidth = 180,
|
|
570
|
+
maxWidth = 480,
|
|
571
|
+
className = "",
|
|
572
|
+
sidebarClassName = "border-r border-gray-200 bg-gray-50",
|
|
573
|
+
contentClassName = "bg-white"
|
|
574
|
+
}) {
|
|
575
|
+
const [width, setWidth] = useState(() => {
|
|
576
|
+
if (storageKey && typeof window !== "undefined") {
|
|
577
|
+
const saved = window.localStorage.getItem(storageKey);
|
|
578
|
+
const n = saved ? parseInt(saved, 10) : NaN;
|
|
579
|
+
if (!Number.isNaN(n)) return clamp(n, minWidth, maxWidth);
|
|
580
|
+
}
|
|
581
|
+
return clamp(defaultWidth, minWidth, maxWidth);
|
|
582
|
+
});
|
|
583
|
+
const dragRef = useRef(null);
|
|
584
|
+
const onMove = useCallback((e) => {
|
|
585
|
+
const d = dragRef.current;
|
|
586
|
+
if (!d) return;
|
|
587
|
+
setWidth(clamp(d.startWidth + (e.clientX - d.startX), minWidth, maxWidth));
|
|
588
|
+
}, [minWidth, maxWidth]);
|
|
589
|
+
const onUp = useCallback(() => {
|
|
590
|
+
dragRef.current = null;
|
|
591
|
+
window.removeEventListener("pointermove", onMove);
|
|
592
|
+
window.removeEventListener("pointerup", onUp);
|
|
593
|
+
document.body.style.removeProperty("cursor");
|
|
594
|
+
document.body.style.removeProperty("user-select");
|
|
595
|
+
}, [onMove]);
|
|
596
|
+
const startDrag = useCallback((e) => {
|
|
597
|
+
e.preventDefault();
|
|
598
|
+
dragRef.current = { startX: e.clientX, startWidth: width };
|
|
599
|
+
window.addEventListener("pointermove", onMove);
|
|
600
|
+
window.addEventListener("pointerup", onUp);
|
|
601
|
+
document.body.style.cursor = "col-resize";
|
|
602
|
+
document.body.style.userSelect = "none";
|
|
603
|
+
}, [width, onMove, onUp]);
|
|
604
|
+
useEffect(() => {
|
|
605
|
+
if (!storageKey) return;
|
|
606
|
+
const id = window.setTimeout(() => {
|
|
607
|
+
try {
|
|
608
|
+
window.localStorage.setItem(storageKey, String(Math.round(width)));
|
|
609
|
+
} catch {
|
|
610
|
+
}
|
|
611
|
+
}, 200);
|
|
612
|
+
return () => window.clearTimeout(id);
|
|
613
|
+
}, [width, storageKey]);
|
|
614
|
+
useEffect(() => () => {
|
|
615
|
+
window.removeEventListener("pointermove", onMove);
|
|
616
|
+
window.removeEventListener("pointerup", onUp);
|
|
617
|
+
}, [onMove, onUp]);
|
|
618
|
+
return /* @__PURE__ */ jsxs("div", { className: `flex h-full w-full overflow-hidden ${className}`, children: [
|
|
619
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex h-full shrink-0 flex-col", style: { width }, children: [
|
|
620
|
+
/* @__PURE__ */ jsx("div", { className: `flex h-full flex-col overflow-y-auto ${sidebarClassName}`, children: sidebar }),
|
|
621
|
+
/* @__PURE__ */ jsx(
|
|
622
|
+
"div",
|
|
623
|
+
{
|
|
624
|
+
onPointerDown: startDrag,
|
|
625
|
+
onDoubleClick: () => setWidth(clamp(defaultWidth, minWidth, maxWidth)),
|
|
626
|
+
title: "Drag to resize \xB7 double-click to reset",
|
|
627
|
+
className: "group absolute inset-y-0 right-0 z-10 w-2 cursor-col-resize",
|
|
628
|
+
children: /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 w-px bg-transparent transition-colors group-hover:bg-blue-400" })
|
|
629
|
+
}
|
|
630
|
+
)
|
|
631
|
+
] }),
|
|
632
|
+
/* @__PURE__ */ jsx("div", { className: `flex min-w-0 flex-1 flex-col ${contentClassName}`, children })
|
|
633
|
+
] });
|
|
634
|
+
}
|
|
563
635
|
function timeAgo(dateStr) {
|
|
564
636
|
const diff = Date.now() - new Date(dateStr).getTime();
|
|
565
637
|
const mins = Math.floor(diff / 6e4);
|
|
@@ -1400,7 +1472,7 @@ function WidgetManager({ open, onClose }) {
|
|
|
1400
1472
|
}
|
|
1401
1473
|
|
|
1402
1474
|
// src/version.ts
|
|
1403
|
-
var VERSION = "0.
|
|
1475
|
+
var VERSION = "0.11.0" ;
|
|
1404
1476
|
var APP_VERSION = VERSION;
|
|
1405
1477
|
|
|
1406
1478
|
// src/changelog.ts
|
|
@@ -6499,6 +6571,6 @@ function useEditHotkey(callback) {
|
|
|
6499
6571
|
}, [callback, isActive]);
|
|
6500
6572
|
}
|
|
6501
6573
|
|
|
6502
|
-
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, VERSION, WidgetManager, applyDevTitle, createWindowRegistry, isDevEnv, isMac, openBugReportDialog, reportBug, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useNewHotkey, useShellEntityFetcher, useSort, useTableNav };
|
|
6574
|
+
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, SidebarLayout, SoundsPanel, StartMenu, StatusBadge, StatusBadgeProvider, SystemPreferences, VERSION, WidgetManager, applyDevTitle, createWindowRegistry, isDevEnv, isMac, openBugReportDialog, reportBug, useBugReport, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useNewHotkey, useShellEntityFetcher, useSort, useTableNav };
|
|
6503
6575
|
//# sourceMappingURL=index.js.map
|
|
6504
6576
|
//# sourceMappingURL=index.js.map
|