@camstack/ui-library 1.2.249 → 1.2.250
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/config-secret-field.d.ts +22 -0
- package/dist/composites/index.d.ts +4 -0
- package/dist/composites/training/send-frame-to-training.d.ts +6 -0
- package/dist/composites/training/training-collection-picker.d.ts +5 -0
- package/dist/composites/training/training-refusal-text.d.ts +10 -0
- package/dist/generated/system-hooks.d.ts +58 -0
- package/dist/index.cjs +772 -249
- package/dist/index.js +737 -250
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ConfigField } from '@camstack/types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/** How long a revealed value stays on screen. */
|
|
4
|
+
export declare const SECRET_REVEAL_MS = 10000;
|
|
5
|
+
/** Returns the stored value of a ref (audited by the host). */
|
|
6
|
+
export type SecretRevealFn = (ref: string) => Promise<string>;
|
|
7
|
+
export declare function SecretRevealProvider({ reveal, children, }: {
|
|
8
|
+
readonly reveal: SecretRevealFn;
|
|
9
|
+
readonly children: ReactNode;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
/** Does this value belong to the keychain rendering (a view, or "not set")? */
|
|
12
|
+
export declare function isKeychainFieldValue(value: unknown): boolean;
|
|
13
|
+
export interface SecretFieldProps {
|
|
14
|
+
readonly field: ConfigField;
|
|
15
|
+
/** The view (or null) the form was hydrated with, or what the operator has done since. */
|
|
16
|
+
readonly value: unknown;
|
|
17
|
+
readonly onChange: (value: unknown) => void;
|
|
18
|
+
readonly disabled?: boolean;
|
|
19
|
+
/** Multi-line entry (a PEM key). */
|
|
20
|
+
readonly multiline?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function SecretFieldControl({ field, value, onChange, disabled, multiline, }: SecretFieldProps): import("react").JSX.Element;
|
|
@@ -46,12 +46,16 @@ export type { MaskShapeCanvasProps, MaskShapeItem } from './cap-settings/MaskSha
|
|
|
46
46
|
export { NavigationPanel } from './cap-settings/NavigationPanel';
|
|
47
47
|
export { PtzPanel } from './cap-settings/PtzPanel';
|
|
48
48
|
export { RecordingPanel } from './cap-settings/RecordingPanel';
|
|
49
|
+
export { SendFrameToTrainingButton, type SendFrameToTrainingButtonProps, } from './training/send-frame-to-training';
|
|
50
|
+
export { TrainingCollectionPicker, type TrainingCollectionPickerProps, } from './training/training-collection-picker';
|
|
51
|
+
export { type TrainingFrameRefusal, trainingRefusalText } from './training/training-refusal-text';
|
|
49
52
|
export type { SceneCaptureVariant } from './cap-settings/scene-monitor-copy';
|
|
50
53
|
export { badgeFor, coverageLine, humanDuration, ROI_AREA_WARN_FRACTION, roiTooLarge, SCENE_CAPTURE_VARIANTS, statusLine, variantLabel, } from './cap-settings/scene-monitor-copy';
|
|
51
54
|
export * from './code-block';
|
|
52
55
|
export type { TranslationFn } from './config-form-builder';
|
|
53
56
|
export { ConfigFormBuilder } from './config-form-builder';
|
|
54
57
|
export type { ProbeState } from './config-form-field';
|
|
58
|
+
export { isKeychainFieldValue, SECRET_REVEAL_MS, SecretFieldControl, type SecretFieldProps, type SecretRevealFn, SecretRevealProvider, } from './config-secret-field';
|
|
55
59
|
export { ConfigFormField, isFieldVisible, NodeMultiSelectField, NodeSelectField, } from './config-form-field';
|
|
56
60
|
export type { ConfirmActionButtonProps } from './confirm-action-button';
|
|
57
61
|
export { ConfirmActionButton } from './confirm-action-button';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface SendFrameToTrainingButtonProps {
|
|
2
|
+
readonly deviceId: number;
|
|
3
|
+
/** The playhead instant, or `null` while nothing is being played back. */
|
|
4
|
+
readonly epochMs: number | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function SendFrameToTrainingButton({ deviceId, epochMs }: SendFrameToTrainingButtonProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the operator reads when a frame could not be sent to training.
|
|
3
|
+
*
|
|
4
|
+
* Pure, so every refusal the hub can name has a sentence here and a test
|
|
5
|
+
* that says so — a refusal rendered as its raw code reads like a crash.
|
|
6
|
+
*/
|
|
7
|
+
/** The refusal codes `addRetrainFrameFromRecording` answers with. */
|
|
8
|
+
export type TrainingFrameRefusal = 'unknown-collection' | 'still-unavailable' | 'still-busy' | 'unreadable-image' | 'write-failed';
|
|
9
|
+
/** One sentence for a refusal, with the hub's own detail appended. */
|
|
10
|
+
export declare function trainingRefusalText(reason: TrainingFrameRefusal, detail?: string): string;
|
|
@@ -783,6 +783,24 @@ export declare const useIntercomPushTalkAudio: typeof trpc.intercom.pushTalkAudi
|
|
|
783
783
|
export declare const useIntercomEndTalkSession: typeof trpc.intercom.endTalkSession.useMutation;
|
|
784
784
|
/** Generated alias around `trpc.intercom.getStatus.useQuery`. */
|
|
785
785
|
export declare const useIntercomGetStatus: typeof trpc.intercom.getStatus.useQuery;
|
|
786
|
+
/** Generated alias around `trpc.keychainAdmin.status.useQuery`. */
|
|
787
|
+
export declare const useKeychainAdminStatus: typeof trpc.keychainAdmin.status.useQuery;
|
|
788
|
+
/** Generated alias around `trpc.keychainAdmin.listSecrets.useQuery`. */
|
|
789
|
+
export declare const useKeychainAdminListSecrets: typeof trpc.keychainAdmin.listSecrets.useQuery;
|
|
790
|
+
/** Generated alias around `trpc.keychainAdmin.listAudit.useQuery`. */
|
|
791
|
+
export declare const useKeychainAdminListAudit: typeof trpc.keychainAdmin.listAudit.useQuery;
|
|
792
|
+
/** Generated alias around `trpc.keychainAdmin.reveal.useMutation`. */
|
|
793
|
+
export declare const useKeychainAdminReveal: typeof trpc.keychainAdmin.reveal.useMutation;
|
|
794
|
+
/** Generated alias around `trpc.keychainAdmin.deleteOrphans.useMutation`. */
|
|
795
|
+
export declare const useKeychainAdminDeleteOrphans: typeof trpc.keychainAdmin.deleteOrphans.useMutation;
|
|
796
|
+
/** Generated alias around `trpc.keychainAdmin.rotateMasterKey.useMutation`. */
|
|
797
|
+
export declare const useKeychainAdminRotateMasterKey: typeof trpc.keychainAdmin.rotateMasterKey.useMutation;
|
|
798
|
+
/** Generated alias around `trpc.keychainAdmin.purgeRetiredKeys.useMutation`. */
|
|
799
|
+
export declare const useKeychainAdminPurgeRetiredKeys: typeof trpc.keychainAdmin.purgeRetiredKeys.useMutation;
|
|
800
|
+
/** Generated alias around `trpc.keychainAdmin.downloadRecoveryKey.useMutation`. */
|
|
801
|
+
export declare const useKeychainAdminDownloadRecoveryKey: typeof trpc.keychainAdmin.downloadRecoveryKey.useMutation;
|
|
802
|
+
/** Generated alias around `trpc.keychainAdmin.resetKeychain.useMutation`. */
|
|
803
|
+
export declare const useKeychainAdminResetKeychain: typeof trpc.keychainAdmin.resetKeychain.useMutation;
|
|
786
804
|
/** Generated alias around `trpc.lawnMowerControl.startMowing.useMutation`. */
|
|
787
805
|
export declare const useLawnMowerControlStartMowing: typeof trpc.lawnMowerControl.startMowing.useMutation;
|
|
788
806
|
/** Generated alias around `trpc.lawnMowerControl.pause.useMutation`. */
|
|
@@ -1323,6 +1341,26 @@ export declare const usePipelineAnalyticsGetRetrainExportUrl: typeof trpc.pipeli
|
|
|
1323
1341
|
export declare const usePipelineAnalyticsSetRetrainFrameComplete: typeof trpc.pipelineAnalytics.setRetrainFrameComplete.useMutation;
|
|
1324
1342
|
/** Generated alias around `trpc.pipelineAnalytics.writeRetrainArchive.useMutation`. */
|
|
1325
1343
|
export declare const usePipelineAnalyticsWriteRetrainArchive: typeof trpc.pipelineAnalytics.writeRetrainArchive.useMutation;
|
|
1344
|
+
/** Generated alias around `trpc.pipelineAnalytics.listRetrainAssistProfiles.useQuery`. */
|
|
1345
|
+
export declare const usePipelineAnalyticsListRetrainAssistProfiles: typeof trpc.pipelineAnalytics.listRetrainAssistProfiles.useQuery;
|
|
1346
|
+
/** Generated alias around `trpc.pipelineAnalytics.proposeRetrainAnnotationsWithLlm.useMutation`. */
|
|
1347
|
+
export declare const usePipelineAnalyticsProposeRetrainAnnotationsWithLlm: typeof trpc.pipelineAnalytics.proposeRetrainAnnotationsWithLlm.useMutation;
|
|
1348
|
+
/** Generated alias around `trpc.pipelineAnalytics.createRetrainCollection.useMutation`. */
|
|
1349
|
+
export declare const usePipelineAnalyticsCreateRetrainCollection: typeof trpc.pipelineAnalytics.createRetrainCollection.useMutation;
|
|
1350
|
+
/** Generated alias around `trpc.pipelineAnalytics.listRetrainCollections.useQuery`. */
|
|
1351
|
+
export declare const usePipelineAnalyticsListRetrainCollections: typeof trpc.pipelineAnalytics.listRetrainCollections.useQuery;
|
|
1352
|
+
/** Generated alias around `trpc.pipelineAnalytics.renameRetrainCollection.useMutation`. */
|
|
1353
|
+
export declare const usePipelineAnalyticsRenameRetrainCollection: typeof trpc.pipelineAnalytics.renameRetrainCollection.useMutation;
|
|
1354
|
+
/** Generated alias around `trpc.pipelineAnalytics.deleteRetrainCollection.useMutation`. */
|
|
1355
|
+
export declare const usePipelineAnalyticsDeleteRetrainCollection: typeof trpc.pipelineAnalytics.deleteRetrainCollection.useMutation;
|
|
1356
|
+
/** Generated alias around `trpc.pipelineAnalytics.addRetrainFrameFromRecording.useMutation`. */
|
|
1357
|
+
export declare const usePipelineAnalyticsAddRetrainFrameFromRecording: typeof trpc.pipelineAnalytics.addRetrainFrameFromRecording.useMutation;
|
|
1358
|
+
/** Generated alias around `trpc.pipelineAnalytics.addRetrainFramesToCollection.useMutation`. */
|
|
1359
|
+
export declare const usePipelineAnalyticsAddRetrainFramesToCollection: typeof trpc.pipelineAnalytics.addRetrainFramesToCollection.useMutation;
|
|
1360
|
+
/** Generated alias around `trpc.pipelineAnalytics.removeRetrainFrameFromCollection.useMutation`. */
|
|
1361
|
+
export declare const usePipelineAnalyticsRemoveRetrainFrameFromCollection: typeof trpc.pipelineAnalytics.removeRetrainFrameFromCollection.useMutation;
|
|
1362
|
+
/** Generated alias around `trpc.pipelineAnalytics.listRetrainCollectionFrames.useQuery`. */
|
|
1363
|
+
export declare const usePipelineAnalyticsListRetrainCollectionFrames: typeof trpc.pipelineAnalytics.listRetrainCollectionFrames.useQuery;
|
|
1326
1364
|
/** Generated alias around `trpc.pipelineAnalytics.getEventMedia.useQuery`. */
|
|
1327
1365
|
export declare const usePipelineAnalyticsGetEventMedia: typeof trpc.pipelineAnalytics.getEventMedia.useQuery;
|
|
1328
1366
|
/** Generated alias around `trpc.pipelineAnalytics.getTrackMedia.useQuery`. */
|
|
@@ -1495,6 +1533,20 @@ export declare const usePipelineOrchestratorSuggestShares: typeof trpc.pipelineO
|
|
|
1495
1533
|
export declare const usePipelineOrchestratorGetEffectiveShares: typeof trpc.pipelineOrchestrator.getEffectiveShares.useQuery;
|
|
1496
1534
|
/** Generated alias around `trpc.pipelineOrchestrator.setShareSource.useMutation`. */
|
|
1497
1535
|
export declare const usePipelineOrchestratorSetShareSource: typeof trpc.pipelineOrchestrator.setShareSource.useMutation;
|
|
1536
|
+
/** Generated alias around `trpc.pipelineOrchestrator.getNodeBenchmarkPreflight.useQuery`. */
|
|
1537
|
+
export declare const usePipelineOrchestratorGetNodeBenchmarkPreflight: typeof trpc.pipelineOrchestrator.getNodeBenchmarkPreflight.useQuery;
|
|
1538
|
+
/** Generated alias around `trpc.pipelineOrchestrator.startNodeBenchmark.useMutation`. */
|
|
1539
|
+
export declare const usePipelineOrchestratorStartNodeBenchmark: typeof trpc.pipelineOrchestrator.startNodeBenchmark.useMutation;
|
|
1540
|
+
/** Generated alias around `trpc.pipelineOrchestrator.getNodeBenchmarkStatus.useQuery`. */
|
|
1541
|
+
export declare const usePipelineOrchestratorGetNodeBenchmarkStatus: typeof trpc.pipelineOrchestrator.getNodeBenchmarkStatus.useQuery;
|
|
1542
|
+
/** Generated alias around `trpc.pipelineOrchestrator.abortNodeBenchmark.useMutation`. */
|
|
1543
|
+
export declare const usePipelineOrchestratorAbortNodeBenchmark: typeof trpc.pipelineOrchestrator.abortNodeBenchmark.useMutation;
|
|
1544
|
+
/** Generated alias around `trpc.pipelineOrchestrator.getNodeBenchmarkCandidates.useQuery`. */
|
|
1545
|
+
export declare const usePipelineOrchestratorGetNodeBenchmarkCandidates: typeof trpc.pipelineOrchestrator.getNodeBenchmarkCandidates.useQuery;
|
|
1546
|
+
/** Generated alias around `trpc.pipelineOrchestrator.listNodeBenchmarkResults.useQuery`. */
|
|
1547
|
+
export declare const usePipelineOrchestratorListNodeBenchmarkResults: typeof trpc.pipelineOrchestrator.listNodeBenchmarkResults.useQuery;
|
|
1548
|
+
/** Generated alias around `trpc.pipelineOrchestrator.deleteNodeBenchmarkResult.useMutation`. */
|
|
1549
|
+
export declare const usePipelineOrchestratorDeleteNodeBenchmarkResult: typeof trpc.pipelineOrchestrator.deleteNodeBenchmarkResult.useMutation;
|
|
1498
1550
|
/** Generated alias around `trpc.pipelineOrchestrator.getCameraSettings.useQuery`. */
|
|
1499
1551
|
export declare const usePipelineOrchestratorGetCameraSettings: typeof trpc.pipelineOrchestrator.getCameraSettings.useQuery;
|
|
1500
1552
|
/** Generated alias around `trpc.pipelineOrchestrator.setCameraStepToggle.useMutation`. */
|
|
@@ -1559,6 +1611,12 @@ export declare const usePipelineRunnerParkTrackFrame: typeof trpc.pipelineRunner
|
|
|
1559
1611
|
export declare const usePipelineRunnerGetParkedTrackFrame: typeof trpc.pipelineRunner.getParkedTrackFrame.useQuery;
|
|
1560
1612
|
/** Generated alias around `trpc.pipelineRunner.releaseParkedTrackFrames.useMutation`. */
|
|
1561
1613
|
export declare const usePipelineRunnerReleaseParkedTrackFrames: typeof trpc.pipelineRunner.releaseParkedTrackFrames.useMutation;
|
|
1614
|
+
/** Generated alias around `trpc.pipelineRunner.startNodeBench.useMutation`. */
|
|
1615
|
+
export declare const usePipelineRunnerStartNodeBench: typeof trpc.pipelineRunner.startNodeBench.useMutation;
|
|
1616
|
+
/** Generated alias around `trpc.pipelineRunner.getNodeBenchStatus.useQuery`. */
|
|
1617
|
+
export declare const usePipelineRunnerGetNodeBenchStatus: typeof trpc.pipelineRunner.getNodeBenchStatus.useQuery;
|
|
1618
|
+
/** Generated alias around `trpc.pipelineRunner.abortNodeBench.useMutation`. */
|
|
1619
|
+
export declare const usePipelineRunnerAbortNodeBench: typeof trpc.pipelineRunner.abortNodeBench.useMutation;
|
|
1562
1620
|
/** Generated alias around `trpc.plateGallery.listPlates.useQuery`. */
|
|
1563
1621
|
export declare const usePlateGalleryListPlates: typeof trpc.plateGallery.listPlates.useQuery;
|
|
1564
1622
|
/** Generated alias around `trpc.plateGallery.getPlateByTrack.useQuery`. */
|