@superdangerous/app-framework 4.16.11 → 4.16.13
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/package.json +1 -1
- package/ui/dist/index.d.mts +59 -15
- package/ui/dist/index.d.ts +59 -15
- package/ui/dist/index.js +32 -32
- package/ui/dist/index.js.map +1 -1
- package/ui/dist/index.mjs +32 -32
- package/ui/dist/index.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdangerous/app-framework",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.13",
|
|
4
4
|
"description": "Opinionated TypeScript framework for structured vibecoding - building internal web and desktop apps with batteries included",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
package/ui/dist/index.d.mts
CHANGED
|
@@ -900,6 +900,10 @@ interface LogViewerProps {
|
|
|
900
900
|
categories?: LogCategory[];
|
|
901
901
|
levelBadgeColors?: Record<string, string>;
|
|
902
902
|
currentLogLevel?: string;
|
|
903
|
+
/** Display mode: 'full' shows sidebar, 'logs' shows only live logs, 'archives' shows only archives */
|
|
904
|
+
mode?: 'full' | 'logs' | 'archives';
|
|
905
|
+
/** Show the header with title. Set to false when embedded in settings. */
|
|
906
|
+
showHeader?: boolean;
|
|
903
907
|
showCategories?: boolean;
|
|
904
908
|
showArchives?: boolean;
|
|
905
909
|
height?: string;
|
|
@@ -910,7 +914,7 @@ interface LogViewerProps {
|
|
|
910
914
|
enableCopy?: boolean;
|
|
911
915
|
className?: string;
|
|
912
916
|
}
|
|
913
|
-
declare function LogViewer({ logs: externalLogs, logFiles: externalLogFiles, onFetchLogs, onFetchArchives, onClearLogs, onExportLogs, onDownloadArchive, onDeleteArchive, onLogReceived, autoRefreshMs, maxEntries, defaultCategory, enableLiveUpdates, enableAutoScroll, autoScrollDefault, newestFirst, enableSearch, enableFilter, enableExport, enableClear, enableCopy, categories, levelBadgeColors, currentLogLevel, showCategories, showArchives, height, className, }: LogViewerProps): react_jsx_runtime.JSX.Element;
|
|
917
|
+
declare function LogViewer({ logs: externalLogs, logFiles: externalLogFiles, onFetchLogs, onFetchArchives, onClearLogs, onExportLogs, onDownloadArchive, onDeleteArchive, onLogReceived, autoRefreshMs, maxEntries, defaultCategory, enableLiveUpdates, enableAutoScroll, autoScrollDefault, newestFirst, enableSearch, enableFilter, enableExport, enableClear, enableCopy, categories, levelBadgeColors, currentLogLevel, mode, showHeader, showCategories, showArchives, height, className, }: LogViewerProps): react_jsx_runtime.JSX.Element;
|
|
914
918
|
|
|
915
919
|
interface LogStatsProps {
|
|
916
920
|
stats: {
|
|
@@ -1000,38 +1004,42 @@ interface SettingsFrameworkProps {
|
|
|
1000
1004
|
}
|
|
1001
1005
|
declare function SettingsFramework({ categories, onSave, onLoad, onValidate, onRestartRequired, title, description, showResetButton, showUndoButton, customFields, renderCategory, renderSetting, autoSave, autoSaveDelay, confirmReset, persistState, className, containerClassName, categoryClassName, settingClassName, height, maxContentWidth }: SettingsFrameworkProps): react_jsx_runtime.JSX.Element;
|
|
1002
1006
|
|
|
1003
|
-
interface
|
|
1007
|
+
interface LiveLogsSettingsProps extends SettingsCategoryComponentProps {
|
|
1004
1008
|
/** Fetch current log entries */
|
|
1005
1009
|
onFetchLogs: () => Promise<LogEntry[]>;
|
|
1006
|
-
/** Fetch log archive files */
|
|
1007
|
-
onFetchArchives?: () => Promise<LogFile[]>;
|
|
1008
1010
|
/** Clear current logs */
|
|
1009
1011
|
onClearLogs?: () => Promise<void>;
|
|
1012
|
+
/** Auto-refresh interval in ms (default: 3000) */
|
|
1013
|
+
autoRefreshMs?: number;
|
|
1014
|
+
/** Height of the log viewer (default: 100%) */
|
|
1015
|
+
height?: string;
|
|
1016
|
+
}
|
|
1017
|
+
interface LogArchivesSettingsProps extends SettingsCategoryComponentProps {
|
|
1018
|
+
/** Fetch log archive files */
|
|
1019
|
+
onFetchArchives: () => Promise<LogFile[]>;
|
|
1010
1020
|
/** Download an archive file */
|
|
1011
1021
|
onDownloadArchive?: (filename: string) => void;
|
|
1012
1022
|
/** Delete an archive file */
|
|
1013
1023
|
onDeleteArchive?: (filename: string) => Promise<void>;
|
|
1014
|
-
/**
|
|
1015
|
-
autoRefreshMs?: number;
|
|
1016
|
-
/** Height of the log viewer (default: calc(100vh - 400px)) */
|
|
1024
|
+
/** Height of the archives viewer (default: 100%) */
|
|
1017
1025
|
height?: string;
|
|
1018
1026
|
}
|
|
1019
1027
|
/**
|
|
1020
|
-
*
|
|
1028
|
+
* Live logs settings component for use in SettingsFramework categories.
|
|
1029
|
+
* Shows only the live log viewer without archives or internal navigation.
|
|
1021
1030
|
*
|
|
1022
1031
|
* @example
|
|
1023
1032
|
* ```tsx
|
|
1024
1033
|
* const categories = [
|
|
1025
1034
|
* {
|
|
1026
|
-
* id: '
|
|
1027
|
-
* label: 'Logs',
|
|
1028
|
-
* icon:
|
|
1029
|
-
* description: 'View application logs
|
|
1035
|
+
* id: 'liveLogs',
|
|
1036
|
+
* label: 'Live Logs',
|
|
1037
|
+
* icon: Terminal,
|
|
1038
|
+
* description: 'View real-time application logs',
|
|
1030
1039
|
* component: (props) => (
|
|
1031
|
-
* <
|
|
1040
|
+
* <LiveLogsSettings
|
|
1032
1041
|
* {...props}
|
|
1033
1042
|
* onFetchLogs={fetchLogs}
|
|
1034
|
-
* onFetchArchives={fetchArchives}
|
|
1035
1043
|
* onClearLogs={clearLogs}
|
|
1036
1044
|
* />
|
|
1037
1045
|
* ),
|
|
@@ -1039,6 +1047,42 @@ interface LogsSettingsProps extends SettingsCategoryComponentProps {
|
|
|
1039
1047
|
* ];
|
|
1040
1048
|
* ```
|
|
1041
1049
|
*/
|
|
1050
|
+
declare function LiveLogsSettings({ onFetchLogs, onClearLogs, autoRefreshMs, height, }: LiveLogsSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1051
|
+
/**
|
|
1052
|
+
* Log archives settings component for use in SettingsFramework categories.
|
|
1053
|
+
* Shows only the archived log files without live logs or internal navigation.
|
|
1054
|
+
*
|
|
1055
|
+
* @example
|
|
1056
|
+
* ```tsx
|
|
1057
|
+
* const categories = [
|
|
1058
|
+
* {
|
|
1059
|
+
* id: 'logArchives',
|
|
1060
|
+
* label: 'Log Archives',
|
|
1061
|
+
* icon: Archive,
|
|
1062
|
+
* description: 'Download and manage archived log files',
|
|
1063
|
+
* component: (props) => (
|
|
1064
|
+
* <LogArchivesSettings
|
|
1065
|
+
* {...props}
|
|
1066
|
+
* onFetchArchives={fetchArchives}
|
|
1067
|
+
* onDownloadArchive={downloadArchive}
|
|
1068
|
+
* onDeleteArchive={deleteArchive}
|
|
1069
|
+
* />
|
|
1070
|
+
* ),
|
|
1071
|
+
* },
|
|
1072
|
+
* ];
|
|
1073
|
+
* ```
|
|
1074
|
+
*/
|
|
1075
|
+
declare function LogArchivesSettings({ onFetchArchives, onDownloadArchive, onDeleteArchive, height, }: LogArchivesSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1076
|
+
interface LogsSettingsProps extends SettingsCategoryComponentProps {
|
|
1077
|
+
onFetchLogs: () => Promise<LogEntry[]>;
|
|
1078
|
+
onFetchArchives?: () => Promise<LogFile[]>;
|
|
1079
|
+
onClearLogs?: () => Promise<void>;
|
|
1080
|
+
onDownloadArchive?: (filename: string) => void;
|
|
1081
|
+
onDeleteArchive?: (filename: string) => Promise<void>;
|
|
1082
|
+
autoRefreshMs?: number;
|
|
1083
|
+
height?: string;
|
|
1084
|
+
}
|
|
1085
|
+
/** @deprecated Use LiveLogsSettings and LogArchivesSettings instead */
|
|
1042
1086
|
declare function LogsSettings({ onFetchLogs, onFetchArchives, onClearLogs, onDownloadArchive, onDeleteArchive, autoRefreshMs, height, }: LogsSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1043
1087
|
|
|
1044
1088
|
/**
|
|
@@ -1914,4 +1958,4 @@ interface TableFiltersProps {
|
|
|
1914
1958
|
*/
|
|
1915
1959
|
declare function TableFilters({ search, onSearchChange, searchPlaceholder, filters, activeFilterCount, onClearFilters, className, children, }: TableFiltersProps): react_jsx_runtime.JSX.Element;
|
|
1916
1960
|
|
|
1917
|
-
export { ActivityLED, type ActivityLEDProps, Alert, AlertDescription, AlertTitle, type ApiReadinessOptions, type ApiReadinessResult, AppLayout, type AppLayoutProps, Badge, type BadgeProps, BatchActionsBar, type BatchActionsBarProps, Button, type ButtonProps, Card, CardContent, CardHeader, type CardProps, CardSkeleton, CardTitle, type CellProps, Checkbox, CodeSnippet, CodeViewer, type CodeViewerProps, ColorPalette, type ColumnConfig$1 as ColumnConfig, type ColumnConfigCompat, type ColumnDef, type ColumnOrderConfig, type ColumnSizeConfig, ColumnVisibility, type ColumnVisibility$1 as ColumnVisibilityConfig, type ColumnVisibilityState, type ColumnWidth, CompactStat, type CompactStatProps, CompactThemeToggle, ConfirmDialog, type ConfirmDialogVariant, ConnectionIndicator, ConnectionLostOverlay, ConnectionOverlay, ConnectionStatus$1 as ConnectionStatus, ConnectionStatusBanner, ContextMenu, ContextMenuItem, type ContextMenuItemProps, type ContextMenuPosition, type ContextMenuProps, ContextMenuSeparator, ContextMenuSubmenu, type ContextMenuSubmenuProps, type CustomFieldProps, DashboardStats, type DashboardStatsProps, type DataColumn, DataTable, DataTablePage, type DataTablePageProps, type DataTableProps, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DogEarBadge, type DragState, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStates, type ExternalPaginationState, type FilterOption$1 as FilterOption, type FormState, type HeaderCellProps, HelpTooltip, Input, type InputProps, Label, LoadingState, type LogEntry, type LogFile, LogStats, type LogStatsProps, LogViewer, type LogViewerProps, LoginPage, LogsPage, type LogsPageProps, LogsSettings, type LogsSettingsProps, MarkdownCard, MarkdownScrollArea, MarkdownViewer, type NavItem, NetworkInterfaceSelect, NoSearchResults, NoSimulatorsRunning, NoTemplatesFound, Pagination, PaginationControls, type PaginationControlsProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, RealtimeDataTable, type RealtimeDataTableProps, type ResizableColumnResult, ResizableDialog, RestartBanner, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SettingDefinition, type SettingsCategory, type SettingsCategoryComponentProps, SettingsFramework, type SettingsFrameworkProps, SettingsPage, type SettingsPageProps, SidebarLayout, type SidebarLayoutProps, Slider, type SocketIOActions, type SocketIOConfig, type SocketIOState, Sparkline, type SparklineProps, type StatCard, Switch, TAG_COLORS, Table, TableBody, TableCaption, TableCell, type FilterOption as TableFilterOption, TableFilters, type TableFiltersProps, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TestModeIndicator, Textarea, type TextareaProps, type Theme, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedText, UpdateNotification, type UseFormStateOptions, activityStyles, apiRequest, authHandler, badgeVariants, buttonStyles, buttonVariants, cardStyles, checkApiReadiness, cn, createSettingsCategory, defaultSettingsCategories, emptyStateStyles, formatBytes, formatDateTime, formatDuration, formatDurationMs, formatNumber, formatRelativeTime, formatShortRelativeTime, formatTimeAgo, getCSSVariables, getNextAvailableColor, getNextTagColor, getRandomTagColor, getTagClassName, getTagColor, socketManager, statusStyles, theme, timeAgo, useApiReadiness, useColumnDragDrop, useColumnOrder, useColumnVisibility, useConfirmDialog, useConnectionStatus, useDebounce, useFormState, usePagination, useResizableColumns, useSocketIO, useTheme, waitForApiReady };
|
|
1961
|
+
export { ActivityLED, type ActivityLEDProps, Alert, AlertDescription, AlertTitle, type ApiReadinessOptions, type ApiReadinessResult, AppLayout, type AppLayoutProps, Badge, type BadgeProps, BatchActionsBar, type BatchActionsBarProps, Button, type ButtonProps, Card, CardContent, CardHeader, type CardProps, CardSkeleton, CardTitle, type CellProps, Checkbox, CodeSnippet, CodeViewer, type CodeViewerProps, ColorPalette, type ColumnConfig$1 as ColumnConfig, type ColumnConfigCompat, type ColumnDef, type ColumnOrderConfig, type ColumnSizeConfig, ColumnVisibility, type ColumnVisibility$1 as ColumnVisibilityConfig, type ColumnVisibilityState, type ColumnWidth, CompactStat, type CompactStatProps, CompactThemeToggle, ConfirmDialog, type ConfirmDialogVariant, ConnectionIndicator, ConnectionLostOverlay, ConnectionOverlay, ConnectionStatus$1 as ConnectionStatus, ConnectionStatusBanner, ContextMenu, ContextMenuItem, type ContextMenuItemProps, type ContextMenuPosition, type ContextMenuProps, ContextMenuSeparator, ContextMenuSubmenu, type ContextMenuSubmenuProps, type CustomFieldProps, DashboardStats, type DashboardStatsProps, type DataColumn, DataTable, DataTablePage, type DataTablePageProps, type DataTableProps, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DogEarBadge, type DragState, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStates, type ExternalPaginationState, type FilterOption$1 as FilterOption, type FormState, type HeaderCellProps, HelpTooltip, Input, type InputProps, Label, LiveLogsSettings, type LiveLogsSettingsProps, LoadingState, LogArchivesSettings, type LogArchivesSettingsProps, type LogEntry, type LogFile, LogStats, type LogStatsProps, LogViewer, type LogViewerProps, LoginPage, LogsPage, type LogsPageProps, LogsSettings, type LogsSettingsProps, MarkdownCard, MarkdownScrollArea, MarkdownViewer, type NavItem, NetworkInterfaceSelect, NoSearchResults, NoSimulatorsRunning, NoTemplatesFound, Pagination, PaginationControls, type PaginationControlsProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, RealtimeDataTable, type RealtimeDataTableProps, type ResizableColumnResult, ResizableDialog, RestartBanner, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SettingDefinition, type SettingsCategory, type SettingsCategoryComponentProps, SettingsFramework, type SettingsFrameworkProps, SettingsPage, type SettingsPageProps, SidebarLayout, type SidebarLayoutProps, Slider, type SocketIOActions, type SocketIOConfig, type SocketIOState, Sparkline, type SparklineProps, type StatCard, Switch, TAG_COLORS, Table, TableBody, TableCaption, TableCell, type FilterOption as TableFilterOption, TableFilters, type TableFiltersProps, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TestModeIndicator, Textarea, type TextareaProps, type Theme, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedText, UpdateNotification, type UseFormStateOptions, activityStyles, apiRequest, authHandler, badgeVariants, buttonStyles, buttonVariants, cardStyles, checkApiReadiness, cn, createSettingsCategory, defaultSettingsCategories, emptyStateStyles, formatBytes, formatDateTime, formatDuration, formatDurationMs, formatNumber, formatRelativeTime, formatShortRelativeTime, formatTimeAgo, getCSSVariables, getNextAvailableColor, getNextTagColor, getRandomTagColor, getTagClassName, getTagColor, socketManager, statusStyles, theme, timeAgo, useApiReadiness, useColumnDragDrop, useColumnOrder, useColumnVisibility, useConfirmDialog, useConnectionStatus, useDebounce, useFormState, usePagination, useResizableColumns, useSocketIO, useTheme, waitForApiReady };
|
package/ui/dist/index.d.ts
CHANGED
|
@@ -900,6 +900,10 @@ interface LogViewerProps {
|
|
|
900
900
|
categories?: LogCategory[];
|
|
901
901
|
levelBadgeColors?: Record<string, string>;
|
|
902
902
|
currentLogLevel?: string;
|
|
903
|
+
/** Display mode: 'full' shows sidebar, 'logs' shows only live logs, 'archives' shows only archives */
|
|
904
|
+
mode?: 'full' | 'logs' | 'archives';
|
|
905
|
+
/** Show the header with title. Set to false when embedded in settings. */
|
|
906
|
+
showHeader?: boolean;
|
|
903
907
|
showCategories?: boolean;
|
|
904
908
|
showArchives?: boolean;
|
|
905
909
|
height?: string;
|
|
@@ -910,7 +914,7 @@ interface LogViewerProps {
|
|
|
910
914
|
enableCopy?: boolean;
|
|
911
915
|
className?: string;
|
|
912
916
|
}
|
|
913
|
-
declare function LogViewer({ logs: externalLogs, logFiles: externalLogFiles, onFetchLogs, onFetchArchives, onClearLogs, onExportLogs, onDownloadArchive, onDeleteArchive, onLogReceived, autoRefreshMs, maxEntries, defaultCategory, enableLiveUpdates, enableAutoScroll, autoScrollDefault, newestFirst, enableSearch, enableFilter, enableExport, enableClear, enableCopy, categories, levelBadgeColors, currentLogLevel, showCategories, showArchives, height, className, }: LogViewerProps): react_jsx_runtime.JSX.Element;
|
|
917
|
+
declare function LogViewer({ logs: externalLogs, logFiles: externalLogFiles, onFetchLogs, onFetchArchives, onClearLogs, onExportLogs, onDownloadArchive, onDeleteArchive, onLogReceived, autoRefreshMs, maxEntries, defaultCategory, enableLiveUpdates, enableAutoScroll, autoScrollDefault, newestFirst, enableSearch, enableFilter, enableExport, enableClear, enableCopy, categories, levelBadgeColors, currentLogLevel, mode, showHeader, showCategories, showArchives, height, className, }: LogViewerProps): react_jsx_runtime.JSX.Element;
|
|
914
918
|
|
|
915
919
|
interface LogStatsProps {
|
|
916
920
|
stats: {
|
|
@@ -1000,38 +1004,42 @@ interface SettingsFrameworkProps {
|
|
|
1000
1004
|
}
|
|
1001
1005
|
declare function SettingsFramework({ categories, onSave, onLoad, onValidate, onRestartRequired, title, description, showResetButton, showUndoButton, customFields, renderCategory, renderSetting, autoSave, autoSaveDelay, confirmReset, persistState, className, containerClassName, categoryClassName, settingClassName, height, maxContentWidth }: SettingsFrameworkProps): react_jsx_runtime.JSX.Element;
|
|
1002
1006
|
|
|
1003
|
-
interface
|
|
1007
|
+
interface LiveLogsSettingsProps extends SettingsCategoryComponentProps {
|
|
1004
1008
|
/** Fetch current log entries */
|
|
1005
1009
|
onFetchLogs: () => Promise<LogEntry[]>;
|
|
1006
|
-
/** Fetch log archive files */
|
|
1007
|
-
onFetchArchives?: () => Promise<LogFile[]>;
|
|
1008
1010
|
/** Clear current logs */
|
|
1009
1011
|
onClearLogs?: () => Promise<void>;
|
|
1012
|
+
/** Auto-refresh interval in ms (default: 3000) */
|
|
1013
|
+
autoRefreshMs?: number;
|
|
1014
|
+
/** Height of the log viewer (default: 100%) */
|
|
1015
|
+
height?: string;
|
|
1016
|
+
}
|
|
1017
|
+
interface LogArchivesSettingsProps extends SettingsCategoryComponentProps {
|
|
1018
|
+
/** Fetch log archive files */
|
|
1019
|
+
onFetchArchives: () => Promise<LogFile[]>;
|
|
1010
1020
|
/** Download an archive file */
|
|
1011
1021
|
onDownloadArchive?: (filename: string) => void;
|
|
1012
1022
|
/** Delete an archive file */
|
|
1013
1023
|
onDeleteArchive?: (filename: string) => Promise<void>;
|
|
1014
|
-
/**
|
|
1015
|
-
autoRefreshMs?: number;
|
|
1016
|
-
/** Height of the log viewer (default: calc(100vh - 400px)) */
|
|
1024
|
+
/** Height of the archives viewer (default: 100%) */
|
|
1017
1025
|
height?: string;
|
|
1018
1026
|
}
|
|
1019
1027
|
/**
|
|
1020
|
-
*
|
|
1028
|
+
* Live logs settings component for use in SettingsFramework categories.
|
|
1029
|
+
* Shows only the live log viewer without archives or internal navigation.
|
|
1021
1030
|
*
|
|
1022
1031
|
* @example
|
|
1023
1032
|
* ```tsx
|
|
1024
1033
|
* const categories = [
|
|
1025
1034
|
* {
|
|
1026
|
-
* id: '
|
|
1027
|
-
* label: 'Logs',
|
|
1028
|
-
* icon:
|
|
1029
|
-
* description: 'View application logs
|
|
1035
|
+
* id: 'liveLogs',
|
|
1036
|
+
* label: 'Live Logs',
|
|
1037
|
+
* icon: Terminal,
|
|
1038
|
+
* description: 'View real-time application logs',
|
|
1030
1039
|
* component: (props) => (
|
|
1031
|
-
* <
|
|
1040
|
+
* <LiveLogsSettings
|
|
1032
1041
|
* {...props}
|
|
1033
1042
|
* onFetchLogs={fetchLogs}
|
|
1034
|
-
* onFetchArchives={fetchArchives}
|
|
1035
1043
|
* onClearLogs={clearLogs}
|
|
1036
1044
|
* />
|
|
1037
1045
|
* ),
|
|
@@ -1039,6 +1047,42 @@ interface LogsSettingsProps extends SettingsCategoryComponentProps {
|
|
|
1039
1047
|
* ];
|
|
1040
1048
|
* ```
|
|
1041
1049
|
*/
|
|
1050
|
+
declare function LiveLogsSettings({ onFetchLogs, onClearLogs, autoRefreshMs, height, }: LiveLogsSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1051
|
+
/**
|
|
1052
|
+
* Log archives settings component for use in SettingsFramework categories.
|
|
1053
|
+
* Shows only the archived log files without live logs or internal navigation.
|
|
1054
|
+
*
|
|
1055
|
+
* @example
|
|
1056
|
+
* ```tsx
|
|
1057
|
+
* const categories = [
|
|
1058
|
+
* {
|
|
1059
|
+
* id: 'logArchives',
|
|
1060
|
+
* label: 'Log Archives',
|
|
1061
|
+
* icon: Archive,
|
|
1062
|
+
* description: 'Download and manage archived log files',
|
|
1063
|
+
* component: (props) => (
|
|
1064
|
+
* <LogArchivesSettings
|
|
1065
|
+
* {...props}
|
|
1066
|
+
* onFetchArchives={fetchArchives}
|
|
1067
|
+
* onDownloadArchive={downloadArchive}
|
|
1068
|
+
* onDeleteArchive={deleteArchive}
|
|
1069
|
+
* />
|
|
1070
|
+
* ),
|
|
1071
|
+
* },
|
|
1072
|
+
* ];
|
|
1073
|
+
* ```
|
|
1074
|
+
*/
|
|
1075
|
+
declare function LogArchivesSettings({ onFetchArchives, onDownloadArchive, onDeleteArchive, height, }: LogArchivesSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1076
|
+
interface LogsSettingsProps extends SettingsCategoryComponentProps {
|
|
1077
|
+
onFetchLogs: () => Promise<LogEntry[]>;
|
|
1078
|
+
onFetchArchives?: () => Promise<LogFile[]>;
|
|
1079
|
+
onClearLogs?: () => Promise<void>;
|
|
1080
|
+
onDownloadArchive?: (filename: string) => void;
|
|
1081
|
+
onDeleteArchive?: (filename: string) => Promise<void>;
|
|
1082
|
+
autoRefreshMs?: number;
|
|
1083
|
+
height?: string;
|
|
1084
|
+
}
|
|
1085
|
+
/** @deprecated Use LiveLogsSettings and LogArchivesSettings instead */
|
|
1042
1086
|
declare function LogsSettings({ onFetchLogs, onFetchArchives, onClearLogs, onDownloadArchive, onDeleteArchive, autoRefreshMs, height, }: LogsSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1043
1087
|
|
|
1044
1088
|
/**
|
|
@@ -1914,4 +1958,4 @@ interface TableFiltersProps {
|
|
|
1914
1958
|
*/
|
|
1915
1959
|
declare function TableFilters({ search, onSearchChange, searchPlaceholder, filters, activeFilterCount, onClearFilters, className, children, }: TableFiltersProps): react_jsx_runtime.JSX.Element;
|
|
1916
1960
|
|
|
1917
|
-
export { ActivityLED, type ActivityLEDProps, Alert, AlertDescription, AlertTitle, type ApiReadinessOptions, type ApiReadinessResult, AppLayout, type AppLayoutProps, Badge, type BadgeProps, BatchActionsBar, type BatchActionsBarProps, Button, type ButtonProps, Card, CardContent, CardHeader, type CardProps, CardSkeleton, CardTitle, type CellProps, Checkbox, CodeSnippet, CodeViewer, type CodeViewerProps, ColorPalette, type ColumnConfig$1 as ColumnConfig, type ColumnConfigCompat, type ColumnDef, type ColumnOrderConfig, type ColumnSizeConfig, ColumnVisibility, type ColumnVisibility$1 as ColumnVisibilityConfig, type ColumnVisibilityState, type ColumnWidth, CompactStat, type CompactStatProps, CompactThemeToggle, ConfirmDialog, type ConfirmDialogVariant, ConnectionIndicator, ConnectionLostOverlay, ConnectionOverlay, ConnectionStatus$1 as ConnectionStatus, ConnectionStatusBanner, ContextMenu, ContextMenuItem, type ContextMenuItemProps, type ContextMenuPosition, type ContextMenuProps, ContextMenuSeparator, ContextMenuSubmenu, type ContextMenuSubmenuProps, type CustomFieldProps, DashboardStats, type DashboardStatsProps, type DataColumn, DataTable, DataTablePage, type DataTablePageProps, type DataTableProps, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DogEarBadge, type DragState, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStates, type ExternalPaginationState, type FilterOption$1 as FilterOption, type FormState, type HeaderCellProps, HelpTooltip, Input, type InputProps, Label, LoadingState, type LogEntry, type LogFile, LogStats, type LogStatsProps, LogViewer, type LogViewerProps, LoginPage, LogsPage, type LogsPageProps, LogsSettings, type LogsSettingsProps, MarkdownCard, MarkdownScrollArea, MarkdownViewer, type NavItem, NetworkInterfaceSelect, NoSearchResults, NoSimulatorsRunning, NoTemplatesFound, Pagination, PaginationControls, type PaginationControlsProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, RealtimeDataTable, type RealtimeDataTableProps, type ResizableColumnResult, ResizableDialog, RestartBanner, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SettingDefinition, type SettingsCategory, type SettingsCategoryComponentProps, SettingsFramework, type SettingsFrameworkProps, SettingsPage, type SettingsPageProps, SidebarLayout, type SidebarLayoutProps, Slider, type SocketIOActions, type SocketIOConfig, type SocketIOState, Sparkline, type SparklineProps, type StatCard, Switch, TAG_COLORS, Table, TableBody, TableCaption, TableCell, type FilterOption as TableFilterOption, TableFilters, type TableFiltersProps, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TestModeIndicator, Textarea, type TextareaProps, type Theme, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedText, UpdateNotification, type UseFormStateOptions, activityStyles, apiRequest, authHandler, badgeVariants, buttonStyles, buttonVariants, cardStyles, checkApiReadiness, cn, createSettingsCategory, defaultSettingsCategories, emptyStateStyles, formatBytes, formatDateTime, formatDuration, formatDurationMs, formatNumber, formatRelativeTime, formatShortRelativeTime, formatTimeAgo, getCSSVariables, getNextAvailableColor, getNextTagColor, getRandomTagColor, getTagClassName, getTagColor, socketManager, statusStyles, theme, timeAgo, useApiReadiness, useColumnDragDrop, useColumnOrder, useColumnVisibility, useConfirmDialog, useConnectionStatus, useDebounce, useFormState, usePagination, useResizableColumns, useSocketIO, useTheme, waitForApiReady };
|
|
1961
|
+
export { ActivityLED, type ActivityLEDProps, Alert, AlertDescription, AlertTitle, type ApiReadinessOptions, type ApiReadinessResult, AppLayout, type AppLayoutProps, Badge, type BadgeProps, BatchActionsBar, type BatchActionsBarProps, Button, type ButtonProps, Card, CardContent, CardHeader, type CardProps, CardSkeleton, CardTitle, type CellProps, Checkbox, CodeSnippet, CodeViewer, type CodeViewerProps, ColorPalette, type ColumnConfig$1 as ColumnConfig, type ColumnConfigCompat, type ColumnDef, type ColumnOrderConfig, type ColumnSizeConfig, ColumnVisibility, type ColumnVisibility$1 as ColumnVisibilityConfig, type ColumnVisibilityState, type ColumnWidth, CompactStat, type CompactStatProps, CompactThemeToggle, ConfirmDialog, type ConfirmDialogVariant, ConnectionIndicator, ConnectionLostOverlay, ConnectionOverlay, ConnectionStatus$1 as ConnectionStatus, ConnectionStatusBanner, ContextMenu, ContextMenuItem, type ContextMenuItemProps, type ContextMenuPosition, type ContextMenuProps, ContextMenuSeparator, ContextMenuSubmenu, type ContextMenuSubmenuProps, type CustomFieldProps, DashboardStats, type DashboardStatsProps, type DataColumn, DataTable, DataTablePage, type DataTablePageProps, type DataTableProps, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DogEarBadge, type DragState, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStates, type ExternalPaginationState, type FilterOption$1 as FilterOption, type FormState, type HeaderCellProps, HelpTooltip, Input, type InputProps, Label, LiveLogsSettings, type LiveLogsSettingsProps, LoadingState, LogArchivesSettings, type LogArchivesSettingsProps, type LogEntry, type LogFile, LogStats, type LogStatsProps, LogViewer, type LogViewerProps, LoginPage, LogsPage, type LogsPageProps, LogsSettings, type LogsSettingsProps, MarkdownCard, MarkdownScrollArea, MarkdownViewer, type NavItem, NetworkInterfaceSelect, NoSearchResults, NoSimulatorsRunning, NoTemplatesFound, Pagination, PaginationControls, type PaginationControlsProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, RealtimeDataTable, type RealtimeDataTableProps, type ResizableColumnResult, ResizableDialog, RestartBanner, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SettingDefinition, type SettingsCategory, type SettingsCategoryComponentProps, SettingsFramework, type SettingsFrameworkProps, SettingsPage, type SettingsPageProps, SidebarLayout, type SidebarLayoutProps, Slider, type SocketIOActions, type SocketIOConfig, type SocketIOState, Sparkline, type SparklineProps, type StatCard, Switch, TAG_COLORS, Table, TableBody, TableCaption, TableCell, type FilterOption as TableFilterOption, TableFilters, type TableFiltersProps, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TestModeIndicator, Textarea, type TextareaProps, type Theme, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedText, UpdateNotification, type UseFormStateOptions, activityStyles, apiRequest, authHandler, badgeVariants, buttonStyles, buttonVariants, cardStyles, checkApiReadiness, cn, createSettingsCategory, defaultSettingsCategories, emptyStateStyles, formatBytes, formatDateTime, formatDuration, formatDurationMs, formatNumber, formatRelativeTime, formatShortRelativeTime, formatTimeAgo, getCSSVariables, getNextAvailableColor, getNextTagColor, getRandomTagColor, getTagClassName, getTagColor, socketManager, statusStyles, theme, timeAgo, useApiReadiness, useColumnDragDrop, useColumnOrder, useColumnVisibility, useConfirmDialog, useConnectionStatus, useDebounce, useFormState, usePagination, useResizableColumns, useSocketIO, useTheme, waitForApiReady };
|