@camstack/ui-library 1.2.119 → 1.2.121
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/composites/cap-settings/NavigationPanel.d.ts +2 -0
- package/dist/composites/cap-settings/index.d.ts +1 -0
- package/dist/composites/index.d.ts +3 -0
- package/dist/composites/network-link-badge.d.ts +10 -0
- package/dist/generated/system-hooks.d.ts +24 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/use-device-network-link.d.ts +10 -0
- package/dist/hooks/use-navigation.d.ts +26 -0
- package/dist/index.cjs +660 -7
- package/dist/index.js +645 -9
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export type { MaskShapeCanvasProps, MaskShapeItem } from './MaskShapeCanvas';
|
|
|
4
4
|
export { MaskShapeCanvas } from './MaskShapeCanvas';
|
|
5
5
|
export { MotionZonesSettings } from './MotionZonesSettings';
|
|
6
6
|
export { PrivacyMaskSettings } from './PrivacyMaskSettings';
|
|
7
|
+
export { NavigationPanel } from './NavigationPanel';
|
|
7
8
|
export { PtzPanel } from './PtzPanel';
|
|
8
9
|
export { RecordingBandsEditor } from './RecordingBandsEditor';
|
|
9
10
|
export { RecordingPanel } from './RecordingPanel';
|
|
@@ -11,6 +11,8 @@ export type { AudioWaveformProps } from './audio-waveform';
|
|
|
11
11
|
export { AudioWaveform } from './audio-waveform';
|
|
12
12
|
export type { BatteryBadgeProps, BatteryStatusLike } from './battery-badge';
|
|
13
13
|
export { BatteryBadge } from './battery-badge';
|
|
14
|
+
export type { NetworkLinkBadgeProps, NetworkLinkStatusLike } from './network-link-badge';
|
|
15
|
+
export { NetworkLinkBadge } from './network-link-badge';
|
|
14
16
|
export * from './breadcrumb';
|
|
15
17
|
export type { AdaptiveHintsReport, AdaptiveOfferPhase, } from './adaptive-downlink';
|
|
16
18
|
export type { CameraStreamPlayerProps, ClientOfferResult, ClientStreamHints, PlayerConnectionState, PlayerWebrtcTarget, SessionSignalingState, SignalingResult, } from './camera-stream-player';
|
|
@@ -19,6 +21,7 @@ export { AutotrackSection } from './cap-settings/AutotrackSection';
|
|
|
19
21
|
export { ConsumablesPanel } from './cap-settings/ConsumablesPanel';
|
|
20
22
|
export type { CapSettingsComponentProps } from './cap-settings/index';
|
|
21
23
|
export type { MaskShapeCanvasProps, MaskShapeItem } from './cap-settings/MaskShapeCanvas';
|
|
24
|
+
export { NavigationPanel } from './cap-settings/NavigationPanel';
|
|
22
25
|
export { PtzPanel } from './cap-settings/PtzPanel';
|
|
23
26
|
export { RecordingPanel } from './cap-settings/RecordingPanel';
|
|
24
27
|
export type { SceneCaptureVariant } from './cap-settings/scene-monitor-copy';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface NetworkLinkStatusLike {
|
|
2
|
+
readonly type: 'wifi' | 'ethernet' | 'cellular' | 'unknown';
|
|
3
|
+
readonly signalPercent: number | null;
|
|
4
|
+
readonly ssid?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface NetworkLinkBadgeProps {
|
|
7
|
+
readonly status: NetworkLinkStatusLike | null | undefined;
|
|
8
|
+
readonly className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function NetworkLinkBadge({ status, className }: NetworkLinkBadgeProps): import("react").JSX.Element | null;
|
|
@@ -935,6 +935,28 @@ export declare const useMqttBrokerGetStatus: typeof trpc.mqttBroker.getStatus.us
|
|
|
935
935
|
export declare const useNativeObjectDetectionSetEnabled: typeof trpc.nativeObjectDetection.setEnabled.useMutation;
|
|
936
936
|
/** Generated alias around `trpc.nativeObjectDetection.getStatus.useQuery`. */
|
|
937
937
|
export declare const useNativeObjectDetectionGetStatus: typeof trpc.nativeObjectDetection.getStatus.useQuery;
|
|
938
|
+
/** Generated alias around `trpc.navigation.move.useMutation`. */
|
|
939
|
+
export declare const useNavigationMove: typeof trpc.navigation.move.useMutation;
|
|
940
|
+
/** Generated alias around `trpc.navigation.stop.useMutation`. */
|
|
941
|
+
export declare const useNavigationStop: typeof trpc.navigation.stop.useMutation;
|
|
942
|
+
/** Generated alias around `trpc.navigation.goToPoint.useMutation`. */
|
|
943
|
+
export declare const useNavigationGoToPoint: typeof trpc.navigation.goToPoint.useMutation;
|
|
944
|
+
/** Generated alias around `trpc.navigation.listActions.useQuery`. */
|
|
945
|
+
export declare const useNavigationListActions: typeof trpc.navigation.listActions.useQuery;
|
|
946
|
+
/** Generated alias around `trpc.navigation.runAction.useMutation`. */
|
|
947
|
+
export declare const useNavigationRunAction: typeof trpc.navigation.runAction.useMutation;
|
|
948
|
+
/** Generated alias around `trpc.navigation.playSound.useMutation`. */
|
|
949
|
+
export declare const useNavigationPlaySound: typeof trpc.navigation.playSound.useMutation;
|
|
950
|
+
/** Generated alias around `trpc.navigation.setLightOn.useMutation`. */
|
|
951
|
+
export declare const useNavigationSetLightOn: typeof trpc.navigation.setLightOn.useMutation;
|
|
952
|
+
/** Generated alias around `trpc.navigation.setLightMode.useMutation`. */
|
|
953
|
+
export declare const useNavigationSetLightMode: typeof trpc.navigation.setLightMode.useMutation;
|
|
954
|
+
/** Generated alias around `trpc.navigation.setLightLevel.useMutation`. */
|
|
955
|
+
export declare const useNavigationSetLightLevel: typeof trpc.navigation.setLightLevel.useMutation;
|
|
956
|
+
/** Generated alias around `trpc.navigation.getFeatures.useQuery`. */
|
|
957
|
+
export declare const useNavigationGetFeatures: typeof trpc.navigation.getFeatures.useQuery;
|
|
958
|
+
/** Generated alias around `trpc.navigation.getStatus.useQuery`. */
|
|
959
|
+
export declare const useNavigationGetStatus: typeof trpc.navigation.getStatus.useQuery;
|
|
938
960
|
/** Generated alias around `trpc.networkAccess.start.useMutation`. */
|
|
939
961
|
export declare const useNetworkAccessStart: typeof trpc.networkAccess.start.useMutation;
|
|
940
962
|
/** Generated alias around `trpc.networkAccess.stop.useMutation`. */
|
|
@@ -945,6 +967,8 @@ export declare const useNetworkAccessGetEndpoint: typeof trpc.networkAccess.getE
|
|
|
945
967
|
export declare const useNetworkAccessGetStatus: typeof trpc.networkAccess.getStatus.useQuery;
|
|
946
968
|
/** Generated alias around `trpc.networkAccess.listEndpoints.useQuery`. */
|
|
947
969
|
export declare const useNetworkAccessListEndpoints: typeof trpc.networkAccess.listEndpoints.useQuery;
|
|
970
|
+
/** Generated alias around `trpc.networkLink.getStatus.useQuery`. */
|
|
971
|
+
export declare const useNetworkLinkGetStatus: typeof trpc.networkLink.getStatus.useQuery;
|
|
948
972
|
/** Generated alias around `trpc.networkQuality.getDeviceStats.useQuery`. */
|
|
949
973
|
export declare const useNetworkQualityGetDeviceStats: typeof trpc.networkQuality.getDeviceStats.useQuery;
|
|
950
974
|
/** Generated alias around `trpc.networkQuality.getAllStats.useQuery`. */
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ export { useDebouncedString } from './use-debounced-string';
|
|
|
4
4
|
export type { UseDeviceAutotrack } from './use-device-autotrack';
|
|
5
5
|
export { useDeviceAutotrack } from './use-device-autotrack';
|
|
6
6
|
export type { UseDeviceBatteryTrpc } from './use-device-battery';
|
|
7
|
+
export type { NavigationDirection, UseNavigationResult } from './use-navigation';
|
|
8
|
+
export { NAVIGATION_DRIVE_INTERVAL_MS, useNavigation } from './use-navigation';
|
|
7
9
|
export { useDeviceBattery } from './use-device-battery';
|
|
10
|
+
export type { NetworkLinkStatus } from './use-device-network-link';
|
|
11
|
+
export { useDeviceNetworkLink } from './use-device-network-link';
|
|
8
12
|
export type { UseDeviceCapSliceTrpc } from './use-device-cap-slice';
|
|
9
13
|
export { useDeviceCapSlice } from './use-device-cap-slice';
|
|
10
14
|
export type { UseDeviceCapabilityOptions, UseDeviceCapabilityResult, } from './use-device-capability';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseDeviceProxyTrpc } from './use-device-proxy';
|
|
2
|
+
export interface NetworkLinkStatus {
|
|
3
|
+
readonly type: 'wifi' | 'ethernet' | 'cellular' | 'unknown';
|
|
4
|
+
/** `null` = not known or not applicable (a wired link has no signal). */
|
|
5
|
+
readonly signalPercent: number | null;
|
|
6
|
+
readonly rssiDbm?: number;
|
|
7
|
+
readonly ssid?: string;
|
|
8
|
+
readonly lastUpdated: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function useDeviceNetworkLink(trpc: UseDeviceProxyTrpc, deviceId: number | null): NetworkLinkStatus | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NavigationActionEntry, NavigationActionId, NavigationFeatures, NavigationLightMode, NavigationStatus } from '@camstack/types';
|
|
2
|
+
import { UseDeviceProxyTrpc } from './use-device-proxy';
|
|
3
|
+
export type NavigationDirection = 'forward' | 'left' | 'right' | 'spin';
|
|
4
|
+
/** The cadence the robot app drives at while a direction is held. */
|
|
5
|
+
export declare const NAVIGATION_DRIVE_INTERVAL_MS = 1000;
|
|
6
|
+
export interface UseNavigationOptions {
|
|
7
|
+
readonly enabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface UseNavigationResult {
|
|
10
|
+
readonly features: NavigationFeatures | null;
|
|
11
|
+
readonly actions: readonly NavigationActionEntry[];
|
|
12
|
+
readonly status: NavigationStatus | null;
|
|
13
|
+
/** Start nudging in a direction at 1 Hz until `stopDrive`. */
|
|
14
|
+
readonly startDrive: (direction: NavigationDirection) => void;
|
|
15
|
+
readonly stopDrive: () => Promise<void>;
|
|
16
|
+
readonly runAction: (actionId: NavigationActionId) => Promise<void>;
|
|
17
|
+
readonly playSound: (soundId: number) => Promise<void>;
|
|
18
|
+
readonly setLightOn: (on: boolean) => Promise<void>;
|
|
19
|
+
readonly setLightMode: (mode: NavigationLightMode, level?: number) => Promise<void>;
|
|
20
|
+
readonly setLightLevel: (level: number) => Promise<void>;
|
|
21
|
+
readonly busy: boolean;
|
|
22
|
+
readonly error: string | null;
|
|
23
|
+
/** True while a direction is held. */
|
|
24
|
+
readonly driving: NavigationDirection | null;
|
|
25
|
+
}
|
|
26
|
+
export declare function useNavigation(trpc: UseDeviceProxyTrpc, deviceId: number, hookOptions?: UseNavigationOptions): UseNavigationResult;
|