react-os-shell 2.9.4 → 3.0.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-M5FCUZ3B.js → Browser-3SDJFEZW.js} +4 -4
- package/dist/{Browser-M5FCUZ3B.js.map → Browser-3SDJFEZW.js.map} +1 -1
- package/dist/{Documents-ZBSGZ6IS.js → Documents-HCHGAFPB.js} +3 -3
- package/dist/{Documents-ZBSGZ6IS.js.map → Documents-HCHGAFPB.js.map} +1 -1
- package/dist/Files-FYWUNLBY.js +12 -0
- package/dist/{Files-RCBB7L6F.js.map → Files-FYWUNLBY.js.map} +1 -1
- package/dist/{Notepad-MBYDR7WZ.js → Notepad-WRS7EMCK.js} +3 -3
- package/dist/{Notepad-MBYDR7WZ.js.map → Notepad-WRS7EMCK.js.map} +1 -1
- package/dist/Preview-HOLQVFSU.js +8 -0
- package/dist/{Preview-7AIWQDP7.js.map → Preview-HOLQVFSU.js.map} +1 -1
- package/dist/{Spreadsheet-USNVGYAH.js → Spreadsheet-MRUQ4LJR.js} +4 -4
- package/dist/{Spreadsheet-USNVGYAH.js.map → Spreadsheet-MRUQ4LJR.js.map} +1 -1
- package/dist/apps/index.js +12 -13
- package/dist/apps/index.js.map +1 -1
- package/dist/{chunk-JZKFHLA6.js → chunk-D7QQTFM3.js} +3 -3
- package/dist/{chunk-JZKFHLA6.js.map → chunk-D7QQTFM3.js.map} +1 -1
- package/dist/{chunk-XJFI35IK.js → chunk-QS2MEW6R.js} +4 -4
- package/dist/{chunk-XJFI35IK.js.map → chunk-QS2MEW6R.js.map} +1 -1
- package/dist/{chunk-3HIKRXNT.js → chunk-SKNOGIDC.js} +996 -6
- package/dist/chunk-SKNOGIDC.js.map +1 -0
- package/dist/{chunk-5ICRXHJ7.js → chunk-X4MB43G2.js} +4 -4
- package/dist/{chunk-5ICRXHJ7.js.map → chunk-X4MB43G2.js.map} +1 -1
- package/dist/{chunk-AJFUAG54.js → chunk-XRCABX52.js} +3 -3
- package/dist/{chunk-AJFUAG54.js.map → chunk-XRCABX52.js.map} +1 -1
- package/dist/{chunk-2XERB3XN.js → chunk-XVCEFF6M.js} +3 -3
- package/dist/{chunk-2XERB3XN.js.map → chunk-XVCEFF6M.js.map} +1 -1
- package/dist/index.d.ts +1 -125
- package/dist/index.js +15 -510
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/Files-RCBB7L6F.js +0 -13
- package/dist/ImageAnnotator-55NPWJ2R.js +0 -4
- package/dist/ImageAnnotator-55NPWJ2R.js.map +0 -1
- package/dist/Preview-7AIWQDP7.js +0 -9
- package/dist/chunk-3HIKRXNT.js.map +0 -1
- package/dist/chunk-NUPYEVU4.js +0 -999
- package/dist/chunk-NUPYEVU4.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -695,128 +695,6 @@ interface NotificationBellProps extends NotificationsConfig {
|
|
|
695
695
|
}
|
|
696
696
|
declare function NotificationBell({ useUnreadCount, list, markRead, markAllRead, onItemClick, onViewAll, popDirection, }: NotificationBellProps): react_jsx_runtime.JSX.Element;
|
|
697
697
|
|
|
698
|
-
/**
|
|
699
|
-
* Feedback dialog — shows the captured screenshot and lets the user pick
|
|
700
|
-
* Bug or Suggestion and add a quick description before sending.
|
|
701
|
-
*
|
|
702
|
-
* Triggered imperatively from utils/reportBug.ts via openBugReportDialog().
|
|
703
|
-
* The Provider is mounted once at the App root.
|
|
704
|
-
*/
|
|
705
|
-
type ReportType = 'bug' | 'suggestion';
|
|
706
|
-
/** Extra select-style field the consumer can inject into the bug-report
|
|
707
|
-
* dialog (e.g. a "module" picker that the consumer's submit callback
|
|
708
|
-
* forwards to its API). Rendered above the description textarea so
|
|
709
|
-
* reporters confirm or override before submitting. The shell stays
|
|
710
|
-
* generic — it knows nothing about what the field actually means. */
|
|
711
|
-
interface BugReportExtraSelectField {
|
|
712
|
-
/** Stable key — used as the form-field name and as the lookup key
|
|
713
|
-
* in the submission payload's `extras` map. */
|
|
714
|
-
key: string;
|
|
715
|
-
/** Visible label above the select. */
|
|
716
|
-
label: string;
|
|
717
|
-
type: 'select';
|
|
718
|
-
/** Choices rendered in the dropdown, in order. */
|
|
719
|
-
options: {
|
|
720
|
-
value: string;
|
|
721
|
-
label: string;
|
|
722
|
-
}[];
|
|
723
|
-
/** Initial value. Either a literal or a function called with the
|
|
724
|
-
* open-dialog context (current URL, the pending report type) so the
|
|
725
|
-
* consumer can auto-detect from where the user is when the dialog
|
|
726
|
-
* opens. */
|
|
727
|
-
defaultValue?: string | ((ctx: {
|
|
728
|
-
url: string;
|
|
729
|
-
reportType: ReportType;
|
|
730
|
-
}) => string);
|
|
731
|
-
/** Optional helper text shown beneath the select. */
|
|
732
|
-
hint?: string;
|
|
733
|
-
}
|
|
734
|
-
type BugReportExtraField = BugReportExtraSelectField;
|
|
735
|
-
interface BugReportSubmission {
|
|
736
|
-
description: string;
|
|
737
|
-
reportType: ReportType;
|
|
738
|
-
/** The screenshot the user actually wants to send. Reflects any in-dialog
|
|
739
|
-
* annotation: callers should upload THIS blob, not the original capture
|
|
740
|
-
* they passed into `openBugReportDialog`. May be null if the original
|
|
741
|
-
* capture failed and the user submitted without uploading a fallback. */
|
|
742
|
-
screenshot: Blob | null;
|
|
743
|
-
/** Map of consumer-supplied extra-field values keyed by field.key. Empty
|
|
744
|
-
* object when no extras were declared. */
|
|
745
|
-
extras: Record<string, string>;
|
|
746
|
-
}
|
|
747
|
-
/** Generic bug-report record shape consumed by the shell's list/detail UI. */
|
|
748
|
-
interface BugReport {
|
|
749
|
-
id: string;
|
|
750
|
-
report_code?: string;
|
|
751
|
-
reporter_name?: string | null;
|
|
752
|
-
screenshot_url?: string | null;
|
|
753
|
-
url?: string;
|
|
754
|
-
user_agent?: string;
|
|
755
|
-
viewport?: string;
|
|
756
|
-
description?: string;
|
|
757
|
-
report_type?: ReportType;
|
|
758
|
-
is_resolved: boolean;
|
|
759
|
-
resolution_note?: string;
|
|
760
|
-
created_at: string;
|
|
761
|
-
[k: string]: unknown;
|
|
762
|
-
}
|
|
763
|
-
/** Payload that <reportBug> sends to the consumer's `submit` callback. */
|
|
764
|
-
interface BugReportSubmitPayload {
|
|
765
|
-
description?: string;
|
|
766
|
-
screenshot?: Blob;
|
|
767
|
-
url: string;
|
|
768
|
-
userAgent: string;
|
|
769
|
-
viewport: string;
|
|
770
|
-
reportType: ReportType;
|
|
771
|
-
/** Values for any consumer-declared `extraFields` (keyed by field.key).
|
|
772
|
-
* Always present; empty object when no extras were declared. */
|
|
773
|
-
extras: Record<string, string>;
|
|
774
|
-
}
|
|
775
|
-
/** Config bundle for the bug-report subsystem. Consumer-supplied; the shell
|
|
776
|
-
* never calls a hardcoded URL. */
|
|
777
|
-
interface BugReportConfig {
|
|
778
|
-
submit: (p: BugReportSubmitPayload) => Promise<unknown>;
|
|
779
|
-
/** Extra fields to render inside the bug-report dialog above the
|
|
780
|
-
* description textarea. Keeps the consumer's domain-specific
|
|
781
|
-
* metadata (e.g. "which module is this report about?") in the same
|
|
782
|
-
* one-step submit flow without forking the shell dialog. */
|
|
783
|
-
extraFields?: BugReportExtraField[];
|
|
784
|
-
/** Fetcher for the admin Bug Reports list. Receives query-string-shaped
|
|
785
|
-
* params (e.g. `is_resolved=false`); paginated response. When omitted the
|
|
786
|
-
* Bug Reports list page is unavailable. */
|
|
787
|
-
list?: (params?: Record<string, string>) => Promise<{
|
|
788
|
-
results: BugReport[];
|
|
789
|
-
count?: number;
|
|
790
|
-
next?: string | null;
|
|
791
|
-
previous?: string | null;
|
|
792
|
-
}>;
|
|
793
|
-
/** Mark a report resolved or reopened, with an optional admin note. */
|
|
794
|
-
resolve?: (id: string, is_resolved: boolean, resolution_note?: string) => Promise<BugReport>;
|
|
795
|
-
/** Permanently delete a report. When omitted the Delete button in
|
|
796
|
-
* `<BugReportDetail>` is hidden — the consumer's permission system
|
|
797
|
-
* decides whether to expose the capability at all. */
|
|
798
|
-
delete?: (id: string) => Promise<void>;
|
|
799
|
-
}
|
|
800
|
-
declare function BugReportConfigProvider({ value, children }: {
|
|
801
|
-
value: BugReportConfig;
|
|
802
|
-
children: ReactNode;
|
|
803
|
-
}): react_jsx_runtime.JSX.Element;
|
|
804
|
-
/** Returns the consumer-supplied bug-report config, or null when no provider
|
|
805
|
-
* is mounted. Click handlers should hide their menu item if this is null. */
|
|
806
|
-
declare function useBugReport(): BugReportConfig | null;
|
|
807
|
-
type OpenFn = (screenshot: Blob | null) => Promise<BugReportSubmission | null>;
|
|
808
|
-
declare const openBugReportDialog: OpenFn;
|
|
809
|
-
declare function BugReportProvider({ children }: {
|
|
810
|
-
children: React.ReactNode;
|
|
811
|
-
}): react_jsx_runtime.JSX.Element;
|
|
812
|
-
|
|
813
|
-
interface Props {
|
|
814
|
-
report: BugReport;
|
|
815
|
-
/** Called after a successful delete so the parent window can close itself. */
|
|
816
|
-
onClose?: () => void;
|
|
817
|
-
}
|
|
818
|
-
declare function BugReportDetail({ report, onClose }: Props): react_jsx_runtime.JSX.Element;
|
|
819
|
-
|
|
820
698
|
type SemanticGroup = 'success' | 'active' | 'queued' | 'info' | 'pending' | 'warning' | 'danger' | 'draft' | 'neutral';
|
|
821
699
|
declare function StatusBadgeProvider({ groups, children, }: {
|
|
822
700
|
groups: Record<string, SemanticGroup>;
|
|
@@ -1614,8 +1492,6 @@ declare const GLASS_DIVIDER = "border-white/20";
|
|
|
1614
1492
|
* glass gradient). */
|
|
1615
1493
|
declare const GLASS_INPUT_BG = "glass-input-bg";
|
|
1616
1494
|
|
|
1617
|
-
declare function reportBug(submit: BugReportConfig['submit']): Promise<void>;
|
|
1618
|
-
|
|
1619
1495
|
/**
|
|
1620
1496
|
* Format a date string (YYYY-MM-DD or ISO timestamp) for display.
|
|
1621
1497
|
* Returns '—' for null/empty values.
|
|
@@ -1637,4 +1513,4 @@ declare function useNewHotkey(callback: () => void): void;
|
|
|
1637
1513
|
*/
|
|
1638
1514
|
declare function useEditHotkey(callback: (() => void) | null): void;
|
|
1639
1515
|
|
|
1640
|
-
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps,
|
|
1516
|
+
export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, BehaviorPanel, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CancelButton, type CellStyle, type ChangelogEntry, type ClockCalendarConfig, type ColumnDef, ConfirmProvider, CopyButton, Customization, type CustomizationOmitSection, type CustomizationProps, type CustomizationSection, DEV_BANNER_TEXT, Desktop, type DesktopContextMenuItem, 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, ResizableTable, SHIFT, type SearchConfig, type SearchProvider, type SearchResult, type SearchableOption, SearchableSelect, type SearchableSelectProps, 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, TopNav, type TopNavItem, type TopNavProps, VERSION, WidgetManager, WindowCrashedFallback, WindowErrorBoundary, WindowManagerProvider, WindowRegistry, WindowTitle, applyDevTitle, commitExposeHighlight, confirm, confirmDestructive, createWindowRegistry, exitExposeMode, formatDate, getActiveWindowRoute, getExposeHighlight, getWindowPosition, glassStyle, isDevEnv, isMac, prompt, registerModalEscapeInterceptor, setExposeHighlight, setShellApiClient, setShellAuthBridge, setShellNavIcons, setShellTodoProvider, setWindowDefaultPosition, setWindowPosition, subscribeExposeHighlight, toast, toggleExposeMode, useClickOutside, useColumnConfig, useDesktopHost, useEditHotkey, useInfiniteScroll, useLocalStoragePrefs, useModalActive, useNewHotkey, useShellAuth, useShellEntityFetcher, useShellPrefs, useSort, useTableNav, useWidgetSettings, useWindowManager, useWindowMenuItem, useWindowTitle };
|