@camstack/ui-library 0.1.50 → 0.1.52

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.
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+ export interface CopyButtonProps {
3
+ /** String copied to the clipboard when the button is pressed. */
4
+ readonly value: string;
5
+ /** Optional visible label rendered next to the icon. Icon-only when omitted. */
6
+ readonly label?: string;
7
+ /** Extra classes merged onto the button. */
8
+ readonly className?: string;
9
+ /** Disable the button (e.g. nothing to copy). */
10
+ readonly disabled?: boolean;
11
+ }
12
+ export declare function CopyButton({ value, label, className, disabled }: CopyButtonProps): ReactElement;
@@ -0,0 +1,16 @@
1
+ import { ReactElement } from 'react';
2
+ export interface DeviceExportPanelProps {
3
+ /**
4
+ * Addon id of the export addon whose surface is rendered. Used for
5
+ * labelling and to scope cache invalidation; the underlying cap
6
+ * router resolves the (hub-resident) provider by `nodeId`.
7
+ */
8
+ readonly addonId: string;
9
+ /** Optional callback to open a device-details page. */
10
+ readonly onOpenDevice?: (deviceId: string) => void;
11
+ }
12
+ /**
13
+ * Generic device-export panel. Addon-agnostic — only the `device-export`
14
+ * cap drives it.
15
+ */
16
+ export declare function DeviceExportPanel({ addonId, onOpenDevice }: DeviceExportPanelProps): ReactElement;
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ export type ErrorBoxVariant = 'danger' | 'warning';
3
+ export interface ErrorBoxProps {
4
+ /** The error message. Accepts a string or richer content. */
5
+ message: ReactNode;
6
+ /** Optional bold headline shown above the message. */
7
+ title?: string;
8
+ /**
9
+ * Optional retry handler. When supplied (and no custom `action` is
10
+ * given) a compact "Retry" button is rendered.
11
+ */
12
+ onRetry?: () => void;
13
+ /** Custom action slot — overrides the default retry button. */
14
+ action?: ReactNode;
15
+ /** Visual flavor. Defaults to `danger`. */
16
+ variant?: ErrorBoxVariant;
17
+ className?: string;
18
+ }
19
+ export declare function ErrorBox({ message, title, onRetry, action, variant, className, }: ErrorBoxProps): import("react/jsx-runtime").JSX.Element;
@@ -17,6 +17,7 @@ export * from './version-badge';
17
17
  export * from './form-field';
18
18
  export * from './page-header';
19
19
  export * from './empty-state';
20
+ export * from './error-box';
20
21
  export * from './confirm-dialog';
21
22
  export * from './stat-card';
22
23
  export * from './key-value-list';
@@ -61,6 +62,12 @@ export { StreamPanel } from './stream-panel';
61
62
  export type { StreamPanelProps, StreamChoice, StreamStats } from './stream-panel';
62
63
  export { StreamBrokerSelector } from './stream-broker-selector';
63
64
  export type { StreamBrokerSelectorProps } from './stream-broker-selector';
65
+ export { DeviceExportPanel } from './device-export-panel';
66
+ export type { DeviceExportPanelProps } from './device-export-panel';
67
+ export { QrCode } from './qr-code';
68
+ export type { QrCodeProps } from './qr-code';
69
+ export { CopyButton } from './copy-button';
70
+ export type { CopyButtonProps } from './copy-button';
64
71
  export { LoginForm } from './login-form';
65
72
  export type { LoginFormProps } from './login-form';
66
73
  export { DevShell, useDevShell } from './dev-shell';
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+ export interface QrCodeProps {
3
+ /** The string encoded into the QR. Empty/whitespace renders nothing. */
4
+ readonly value: string;
5
+ /** Rendered width/height in CSS pixels. Defaults to 192. */
6
+ readonly size?: number;
7
+ /** Extra classes merged onto the wrapper. */
8
+ readonly className?: string;
9
+ /** Accessible label for the generated QR. */
10
+ readonly alt?: string;
11
+ }
12
+ export declare function QrCode({ value, size, className, alt }: QrCodeProps): ReactElement | null;
@@ -33,6 +33,16 @@ export declare const useAddonsRollbackPackage: typeof trpc.addons.rollbackPackag
33
33
  export declare const useAddonsForceRefresh: typeof trpc.addons.forceRefresh.useMutation;
34
34
  /** Generated alias around `trpc.addons.restartServer.useMutation`. */
35
35
  export declare const useAddonsRestartServer: typeof trpc.addons.restartServer.useMutation;
36
+ /** Generated alias around `trpc.addons.getLastRestart.useQuery`. */
37
+ export declare const useAddonsGetLastRestart: typeof trpc.addons.getLastRestart.useQuery;
38
+ /** Generated alias around `trpc.addons.listFrameworkPackages.useQuery`. */
39
+ export declare const useAddonsListFrameworkPackages: typeof trpc.addons.listFrameworkPackages.useQuery;
40
+ /** Generated alias around `trpc.addons.listCapabilityProviders.useQuery`. */
41
+ export declare const useAddonsListCapabilityProviders: typeof trpc.addons.listCapabilityProviders.useQuery;
42
+ /** Generated alias around `trpc.addons.setCapabilityProviderEnabled.useMutation`. */
43
+ export declare const useAddonsSetCapabilityProviderEnabled: typeof trpc.addons.setCapabilityProviderEnabled.useMutation;
44
+ /** Generated alias around `trpc.addons.updateFrameworkPackage.useMutation`. */
45
+ export declare const useAddonsUpdateFrameworkPackage: typeof trpc.addons.updateFrameworkPackage.useMutation;
36
46
  /** Generated alias around `trpc.addons.getVersions.useQuery`. */
37
47
  export declare const useAddonsGetVersions: typeof trpc.addons.getVersions.useQuery;
38
48
  /** Generated alias around `trpc.addons.restartAddon.useMutation`. */
@@ -121,10 +131,6 @@ export declare const useAudioCodecListActiveSessions: typeof trpc.audioCodec.lis
121
131
  export declare const useAudioMetricsGetCurrentSnapshot: typeof trpc.audioMetrics.getCurrentSnapshot.useQuery;
122
132
  /** Generated alias around `trpc.audioMetrics.getHistory.useQuery`. */
123
133
  export declare const useAudioMetricsGetHistory: typeof trpc.audioMetrics.getHistory.useQuery;
124
- /** Generated alias around `trpc.authentication.listProviders.useQuery`. */
125
- export declare const useAuthenticationListProviders: typeof trpc.authentication.listProviders.useQuery;
126
- /** Generated alias around `trpc.authentication.setProviderEnabled.useMutation`. */
127
- export declare const useAuthenticationSetProviderEnabled: typeof trpc.authentication.setProviderEnabled.useMutation;
128
134
  /** Generated alias around `trpc.backup.listDestinations.useQuery`. */
129
135
  export declare const useBackupListDestinations: typeof trpc.backup.listDestinations.useQuery;
130
136
  /** Generated alias around `trpc.backup.trigger.useMutation`. */
@@ -417,18 +423,6 @@ export declare const useMeshNetworkLogout: typeof trpc.meshNetwork.logout.useMut
417
423
  export declare const useMeshNetworkListPeers: typeof trpc.meshNetwork.listPeers.useQuery;
418
424
  /** Generated alias around `trpc.meshNetwork.testConnection.useMutation`. */
419
425
  export declare const useMeshNetworkTestConnection: typeof trpc.meshNetwork.testConnection.useMutation;
420
- /** Generated alias around `trpc.meshOrchestrator.listProviders.useQuery`. */
421
- export declare const useMeshOrchestratorListProviders: typeof trpc.meshOrchestrator.listProviders.useQuery;
422
- /** Generated alias around `trpc.meshOrchestrator.joinProvider.useMutation`. */
423
- export declare const useMeshOrchestratorJoinProvider: typeof trpc.meshOrchestrator.joinProvider.useMutation;
424
- /** Generated alias around `trpc.meshOrchestrator.leaveProvider.useMutation`. */
425
- export declare const useMeshOrchestratorLeaveProvider: typeof trpc.meshOrchestrator.leaveProvider.useMutation;
426
- /** Generated alias around `trpc.meshOrchestrator.startLoginProvider.useMutation`. */
427
- export declare const useMeshOrchestratorStartLoginProvider: typeof trpc.meshOrchestrator.startLoginProvider.useMutation;
428
- /** Generated alias around `trpc.meshOrchestrator.logoutProvider.useMutation`. */
429
- export declare const useMeshOrchestratorLogoutProvider: typeof trpc.meshOrchestrator.logoutProvider.useMutation;
430
- /** Generated alias around `trpc.meshOrchestrator.listProviderPeers.useQuery`. */
431
- export declare const useMeshOrchestratorListProviderPeers: typeof trpc.meshOrchestrator.listProviderPeers.useQuery;
432
426
  /** Generated alias around `trpc.metricsProvider.collectSnapshot.useQuery`. */
433
427
  export declare const useMetricsProviderCollectSnapshot: typeof trpc.metricsProvider.collectSnapshot.useQuery;
434
428
  /** Generated alias around `trpc.metricsProvider.getCached.useQuery`. */
@@ -489,6 +483,16 @@ export declare const useMqttBrokerStopEmbeddedBroker: typeof trpc.mqttBroker.sto
489
483
  export declare const useMqttBrokerGetStatus: typeof trpc.mqttBroker.getStatus.useQuery;
490
484
  /** Generated alias around `trpc.nativeObjectDetection.getStatus.useQuery`. */
491
485
  export declare const useNativeObjectDetectionGetStatus: typeof trpc.nativeObjectDetection.getStatus.useQuery;
486
+ /** Generated alias around `trpc.networkAccess.start.useMutation`. */
487
+ export declare const useNetworkAccessStart: typeof trpc.networkAccess.start.useMutation;
488
+ /** Generated alias around `trpc.networkAccess.stop.useMutation`. */
489
+ export declare const useNetworkAccessStop: typeof trpc.networkAccess.stop.useMutation;
490
+ /** Generated alias around `trpc.networkAccess.getEndpoint.useQuery`. */
491
+ export declare const useNetworkAccessGetEndpoint: typeof trpc.networkAccess.getEndpoint.useQuery;
492
+ /** Generated alias around `trpc.networkAccess.getStatus.useQuery`. */
493
+ export declare const useNetworkAccessGetStatus: typeof trpc.networkAccess.getStatus.useQuery;
494
+ /** Generated alias around `trpc.networkAccess.listEndpoints.useQuery`. */
495
+ export declare const useNetworkAccessListEndpoints: typeof trpc.networkAccess.listEndpoints.useQuery;
492
496
  /** Generated alias around `trpc.networkQuality.getDeviceStats.useQuery`. */
493
497
  export declare const useNetworkQualityGetDeviceStats: typeof trpc.networkQuality.getDeviceStats.useQuery;
494
498
  /** Generated alias around `trpc.networkQuality.getAllStats.useQuery`. */
@@ -789,12 +793,6 @@ export declare const useRecordingEngineGetRetentionConfig: typeof trpc.recording
789
793
  export declare const useRecordingEngineUpdateRetentionConfig: typeof trpc.recordingEngine.updateRetentionConfig.useMutation;
790
794
  /** Generated alias around `trpc.recordingEngine.getMotionStats.useQuery`. */
791
795
  export declare const useRecordingEngineGetMotionStats: typeof trpc.recordingEngine.getMotionStats.useQuery;
792
- /** Generated alias around `trpc.remoteAccess.listProviders.useQuery`. */
793
- export declare const useRemoteAccessListProviders: typeof trpc.remoteAccess.listProviders.useQuery;
794
- /** Generated alias around `trpc.remoteAccess.startProvider.useMutation`. */
795
- export declare const useRemoteAccessStartProvider: typeof trpc.remoteAccess.startProvider.useMutation;
796
- /** Generated alias around `trpc.remoteAccess.stopProvider.useMutation`. */
797
- export declare const useRemoteAccessStopProvider: typeof trpc.remoteAccess.stopProvider.useMutation;
798
796
  /** Generated alias around `trpc.settingsStore.get.useQuery`. */
799
797
  export declare const useSettingsStoreGet: typeof trpc.settingsStore.get.useQuery;
800
798
  /** Generated alias around `trpc.settingsStore.set.useMutation`. */
@@ -941,12 +939,6 @@ export declare const useSystemSetRetentionConfig: typeof trpc.system.setRetentio
941
939
  export declare const useSystemForceRetentionCleanup: typeof trpc.system.forceRetentionCleanup.useMutation;
942
940
  /** Generated alias around `trpc.toast.onToast.useSubscription`. */
943
941
  export declare const useToastOnToast: typeof trpc.toast.onToast.useSubscription;
944
- /** Generated alias around `trpc.turnOrchestrator.listProviders.useQuery`. */
945
- export declare const useTurnOrchestratorListProviders: typeof trpc.turnOrchestrator.listProviders.useQuery;
946
- /** Generated alias around `trpc.turnOrchestrator.getAllServers.useQuery`. */
947
- export declare const useTurnOrchestratorGetAllServers: typeof trpc.turnOrchestrator.getAllServers.useQuery;
948
- /** Generated alias around `trpc.turnOrchestrator.setProviderEnabled.useMutation`. */
949
- export declare const useTurnOrchestratorSetProviderEnabled: typeof trpc.turnOrchestrator.setProviderEnabled.useMutation;
950
942
  /** Generated alias around `trpc.turnProvider.getTurnServers.useQuery`. */
951
943
  export declare const useTurnProviderGetTurnServers: typeof trpc.turnProvider.getTurnServers.useQuery;
952
944
  /** Generated alias around `trpc.userManagement.listUsers.useQuery`. */