mywhy-ui 0.2.0 → 0.3.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/index.cjs +1023 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -1
- package/dist/index.d.ts +34 -1
- package/dist/index.js +1021 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -1
package/dist/index.d.cts
CHANGED
|
@@ -456,6 +456,39 @@ declare function ConnectionIcon({ connected, size, className }: {
|
|
|
456
456
|
className?: string;
|
|
457
457
|
}): react_jsx_runtime.JSX.Element;
|
|
458
458
|
|
|
459
|
+
interface DiagnosticsEntry {
|
|
460
|
+
name: string;
|
|
461
|
+
path: string;
|
|
462
|
+
rawName: string;
|
|
463
|
+
message: string;
|
|
464
|
+
severity_level: number;
|
|
465
|
+
hardware_id: string | null;
|
|
466
|
+
values: {
|
|
467
|
+
[key: string]: any;
|
|
468
|
+
} | null;
|
|
469
|
+
children: DiagnosticsEntry[];
|
|
470
|
+
icon: JSX.Element | null;
|
|
471
|
+
}
|
|
472
|
+
interface DiagnosticsStatus {
|
|
473
|
+
timestamp: number;
|
|
474
|
+
level: number;
|
|
475
|
+
diagnostics: DiagnosticsEntry[];
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* ROS2Diagnostics Component
|
|
480
|
+
*
|
|
481
|
+
* A production-grade ROS2 diagnostic aggregation and visualization component.
|
|
482
|
+
* Adapted from Cockpit ROS2 Diagnostics plugin for mywhy-ui.
|
|
483
|
+
*/
|
|
484
|
+
|
|
485
|
+
interface ROS2DiagnosticsProps {
|
|
486
|
+
foxgloveUrl?: string;
|
|
487
|
+
namespace?: string;
|
|
488
|
+
onDiagnosticUpdate?: (diagnostics: DiagnosticsStatus) => void;
|
|
489
|
+
}
|
|
490
|
+
declare const ROS2Diagnostics: React.FC<ROS2DiagnosticsProps>;
|
|
491
|
+
|
|
459
492
|
interface UseDisclosureReturn {
|
|
460
493
|
isOpen: boolean;
|
|
461
494
|
open: () => void;
|
|
@@ -473,4 +506,4 @@ declare function useToast(): {
|
|
|
473
506
|
removeToast: (id: string) => void;
|
|
474
507
|
};
|
|
475
508
|
|
|
476
|
-
export { Alert, type AlertProps, type AlertTheme, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarTheme, Badge, type BadgeProps, type BadgeTheme, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonTheme, type ButtonVariant, Card, type CardProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockLanguage, type CodeBlockProps, ConnectionIcon, ConnectionIndicator, type ConnectionIndicatorProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, Dropdown, type DropdownItem, type DropdownProps, EmptyState, type EmptyStateProps, FileUploader, type FileUploaderProps, FormControl, type FormControlProps, Input, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, type KbdTheme, Link, type LinkProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NumberInput, type NumberInputProps, type NumberInputSize, Pagination, type PaginationProps, Progress, type ProgressProps, Rating, type RatingProps, type RobotStatus, Select, type SelectOption, type SelectProps, type SelectSize, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, Textarea, type TextareaProps, type TextareaSize, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, Toast, ToastContainer, type ToastContainerProps, type ToastEntry, type ToastProps, type ToastType, Tooltip, type TooltipPlacement, type TooltipProps, type UseDisclosureReturn, useDisclosure, useToast };
|
|
509
|
+
export { Alert, type AlertProps, type AlertTheme, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarTheme, Badge, type BadgeProps, type BadgeTheme, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonTheme, type ButtonVariant, Card, type CardProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockLanguage, type CodeBlockProps, ConnectionIcon, ConnectionIndicator, type ConnectionIndicatorProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, Dropdown, type DropdownItem, type DropdownProps, EmptyState, type EmptyStateProps, FileUploader, type FileUploaderProps, FormControl, type FormControlProps, Input, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, type KbdTheme, Link, type LinkProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NumberInput, type NumberInputProps, type NumberInputSize, Pagination, type PaginationProps, Progress, type ProgressProps, ROS2Diagnostics, type ROS2DiagnosticsProps, Rating, type RatingProps, type RobotStatus, Select, type SelectOption, type SelectProps, type SelectSize, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, Textarea, type TextareaProps, type TextareaSize, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, Toast, ToastContainer, type ToastContainerProps, type ToastEntry, type ToastProps, type ToastType, Tooltip, type TooltipPlacement, type TooltipProps, type UseDisclosureReturn, useDisclosure, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -456,6 +456,39 @@ declare function ConnectionIcon({ connected, size, className }: {
|
|
|
456
456
|
className?: string;
|
|
457
457
|
}): react_jsx_runtime.JSX.Element;
|
|
458
458
|
|
|
459
|
+
interface DiagnosticsEntry {
|
|
460
|
+
name: string;
|
|
461
|
+
path: string;
|
|
462
|
+
rawName: string;
|
|
463
|
+
message: string;
|
|
464
|
+
severity_level: number;
|
|
465
|
+
hardware_id: string | null;
|
|
466
|
+
values: {
|
|
467
|
+
[key: string]: any;
|
|
468
|
+
} | null;
|
|
469
|
+
children: DiagnosticsEntry[];
|
|
470
|
+
icon: JSX.Element | null;
|
|
471
|
+
}
|
|
472
|
+
interface DiagnosticsStatus {
|
|
473
|
+
timestamp: number;
|
|
474
|
+
level: number;
|
|
475
|
+
diagnostics: DiagnosticsEntry[];
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* ROS2Diagnostics Component
|
|
480
|
+
*
|
|
481
|
+
* A production-grade ROS2 diagnostic aggregation and visualization component.
|
|
482
|
+
* Adapted from Cockpit ROS2 Diagnostics plugin for mywhy-ui.
|
|
483
|
+
*/
|
|
484
|
+
|
|
485
|
+
interface ROS2DiagnosticsProps {
|
|
486
|
+
foxgloveUrl?: string;
|
|
487
|
+
namespace?: string;
|
|
488
|
+
onDiagnosticUpdate?: (diagnostics: DiagnosticsStatus) => void;
|
|
489
|
+
}
|
|
490
|
+
declare const ROS2Diagnostics: React.FC<ROS2DiagnosticsProps>;
|
|
491
|
+
|
|
459
492
|
interface UseDisclosureReturn {
|
|
460
493
|
isOpen: boolean;
|
|
461
494
|
open: () => void;
|
|
@@ -473,4 +506,4 @@ declare function useToast(): {
|
|
|
473
506
|
removeToast: (id: string) => void;
|
|
474
507
|
};
|
|
475
508
|
|
|
476
|
-
export { Alert, type AlertProps, type AlertTheme, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarTheme, Badge, type BadgeProps, type BadgeTheme, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonTheme, type ButtonVariant, Card, type CardProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockLanguage, type CodeBlockProps, ConnectionIcon, ConnectionIndicator, type ConnectionIndicatorProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, Dropdown, type DropdownItem, type DropdownProps, EmptyState, type EmptyStateProps, FileUploader, type FileUploaderProps, FormControl, type FormControlProps, Input, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, type KbdTheme, Link, type LinkProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NumberInput, type NumberInputProps, type NumberInputSize, Pagination, type PaginationProps, Progress, type ProgressProps, Rating, type RatingProps, type RobotStatus, Select, type SelectOption, type SelectProps, type SelectSize, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, Textarea, type TextareaProps, type TextareaSize, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, Toast, ToastContainer, type ToastContainerProps, type ToastEntry, type ToastProps, type ToastType, Tooltip, type TooltipPlacement, type TooltipProps, type UseDisclosureReturn, useDisclosure, useToast };
|
|
509
|
+
export { Alert, type AlertProps, type AlertTheme, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarTheme, Badge, type BadgeProps, type BadgeTheme, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonTheme, type ButtonVariant, Card, type CardProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockLanguage, type CodeBlockProps, ConnectionIcon, ConnectionIndicator, type ConnectionIndicatorProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, Dropdown, type DropdownItem, type DropdownProps, EmptyState, type EmptyStateProps, FileUploader, type FileUploaderProps, FormControl, type FormControlProps, Input, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, type KbdTheme, Link, type LinkProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NumberInput, type NumberInputProps, type NumberInputSize, Pagination, type PaginationProps, Progress, type ProgressProps, ROS2Diagnostics, type ROS2DiagnosticsProps, Rating, type RatingProps, type RobotStatus, Select, type SelectOption, type SelectProps, type SelectSize, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, Slider, type SliderProps, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, Textarea, type TextareaProps, type TextareaSize, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, Toast, ToastContainer, type ToastContainerProps, type ToastEntry, type ToastProps, type ToastType, Tooltip, type TooltipPlacement, type TooltipProps, type UseDisclosureReturn, useDisclosure, useToast };
|