react-os-shell 0.2.56 → 0.2.58

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/index.d.ts CHANGED
@@ -315,6 +315,56 @@ declare const toast: {
315
315
  }) => void;
316
316
  };
317
317
 
318
+ interface GridColumn {
319
+ key: string;
320
+ title: string;
321
+ width?: number;
322
+ readOnly?: boolean;
323
+ align?: 'left' | 'right' | 'center';
324
+ }
325
+ type CellStyle = {
326
+ bold?: boolean;
327
+ italic?: boolean;
328
+ underline?: boolean;
329
+ fontSize?: 'sm' | 'base' | 'lg' | 'xl';
330
+ };
331
+ interface EditableGridProps {
332
+ columns: GridColumn[];
333
+ data: string[][];
334
+ onChange: (data: string[][]) => void;
335
+ onColumnsChange?: (columns: GridColumn[]) => void;
336
+ /** Fixed row count — disables add/delete rows */
337
+ fixedRows?: boolean;
338
+ minRows?: number;
339
+ maxHeight?: string;
340
+ /** Per-cell text styling, keyed by `${row}:${col}`. */
341
+ cellStyles?: Record<string, CellStyle>;
342
+ /** Notifies the parent when the focused/edited cell changes. */
343
+ onFocusChange?: (pos: {
344
+ row: number;
345
+ col: number;
346
+ } | null) => void;
347
+ /** Notifies the parent when the selection rectangle changes. */
348
+ onSelectionChange?: (sel: {
349
+ anchor: {
350
+ row: number;
351
+ col: number;
352
+ };
353
+ end: {
354
+ row: number;
355
+ col: number;
356
+ };
357
+ } | null) => void;
358
+ }
359
+ /**
360
+ * Lightweight editable grid with spreadsheet-like features:
361
+ * - Click + drag to select a range of cells
362
+ * - Ctrl+C / Cmd+C to copy selection as tab-delimited text
363
+ * - Multi-cell paste from spreadsheets (Ctrl+V)
364
+ * - Tab/Enter/Arrow keyboard navigation
365
+ */
366
+ declare function EditableGrid({ columns, data, onChange, onColumnsChange, fixedRows, minRows, maxHeight, cellStyles, onFocusChange, onSelectionChange }: EditableGridProps): react_jsx_runtime.JSX.Element;
367
+
318
368
  /** Generic notification shape consumed by the shell. Consumer-specific
319
369
  * fields live on `extra` (or just on additional properties — TS structural
320
370
  * typing is permissive). */
@@ -795,4 +845,4 @@ declare function useNewHotkey(callback: () => void): void;
795
845
  */
796
846
  declare function useEditHotkey(callback: (() => void) | null): void;
797
847
 
798
- export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, 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 ChangelogEntry, ConfirmProvider, CopyButton, Customization, Desktop, type DesktopHostConfig, DesktopHostProvider, DocFavStar, ENTER, type EntityFetcher, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, Layout, type LayoutProps, MOD, Modal, ModalActions, NotificationBell, type NotificationsConfig, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, type ReportType, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, VERSION, WindowManagerProvider, WindowRegistry, WindowTitle, commitExposeHighlight, confirm, confirmDestructive, createWindowRegistry, exitExposeMode, formatDate, getActiveWindowRoute, getExposeHighlight, glassStyle, isMac, openBugReportDialog, prompt, reportBug, setExposeHighlight, setShellApiClient, setShellAuthBridge, setShellNavIcons, setWindowDefaultPosition, subscribeExposeHighlight, toast, toggleExposeMode, useBugReport, useClickOutside, useDesktopHost, useEditHotkey, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
848
+ export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, 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, ConfirmProvider, CopyButton, Customization, Desktop, type DesktopHostConfig, DesktopHostProvider, DocFavStar, ENTER, EditableGrid, type EditableGridProps, type EntityFetcher, GLASS_DIVIDER, GLASS_INPUT_BG, GlobalSearch, type GridColumn, Layout, type LayoutProps, MOD, Modal, ModalActions, NotificationBell, type NotificationsConfig, PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuLabel, type ReportType, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SemanticGroup, type ShellAuth, ShellAuthProvider, ShellEntityFetcherProvider, type ShellNotification, type ShellPrefsAdapter, ShellPrefsProvider, ShortcutHelp, StartMenu, StatusBadge, StatusBadgeProvider, type StickyEntityRef, type StickyResolver, VERSION, WindowManagerProvider, WindowRegistry, WindowTitle, commitExposeHighlight, confirm, confirmDestructive, createWindowRegistry, exitExposeMode, formatDate, getActiveWindowRoute, getExposeHighlight, glassStyle, isMac, openBugReportDialog, prompt, reportBug, setExposeHighlight, setShellApiClient, setShellAuthBridge, setShellNavIcons, setWindowDefaultPosition, subscribeExposeHighlight, toast, toggleExposeMode, useBugReport, useClickOutside, useDesktopHost, useEditHotkey, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
package/dist/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { useEmailUnreadCount } from './chunk-PDFQNHW7.js';
2
2
  import { formatDate } from './chunk-NSU7OHPC.js';
3
3
  export { formatDate } from './chunk-NSU7OHPC.js';
4
+ export { EditableGrid } from './chunk-GP4Y3VCB.js';
4
5
  import { subscribePomo, getPomoSnapshot } from './chunk-MK3HLUO4.js';
5
6
  import { useGoogleAuth } from './chunk-MVWEL34Y.js';
6
7
  import { useShellPrefs } from './chunk-36VM54SC.js';
7
8
  export { ShellPrefsProvider, useLocalStoragePrefs, useShellPrefs } from './chunk-36VM54SC.js';
8
9
  import { playNotification, playStartup, soundsEnabled, getSoundConfig, SOUND_PACK_KEYS, SOUND_PACKS, SOUND_TYPES, SOUND_TYPE_LABELS, playLogout, setSoundForType, previewSound, setAllSounds } from './chunk-D7PYW2QS.js';
9
- import { setPdfPreview } from './chunk-C4ULDV3I.js';
10
+ import { setPdfPreview } from './chunk-XD34ZT3F.js';
10
11
  import './chunk-KUIPWCTJ.js';
11
12
  import { toast_default } from './chunk-WIJ45SYD.js';
12
13
  export { toast_default as toast } from './chunk-WIJ45SYD.js';
@@ -895,7 +896,7 @@ function StatusBadge({ status }) {
895
896
  }
896
897
 
897
898
  // src/version.ts
898
- var VERSION = "0.2.56" ;
899
+ var VERSION = "0.2.58" ;
899
900
  var APP_VERSION = VERSION;
900
901
 
901
902
  // src/changelog.ts