@camstack/ui-library 1.1.26 → 1.1.28
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/grouped-model-selector.d.ts +8 -0
- package/dist/composites/index.d.ts +2 -0
- package/dist/composites/pipeline-builder.d.ts +8 -1
- package/dist/composites/pipeline-step.d.ts +15 -5
- package/dist/composites/pipeline-tree-matrix.d.ts +2 -0
- package/dist/generated/system-hooks.d.ts +6 -4
- package/dist/hooks/use-ptz.d.ts +6 -0
- package/dist/index.cjs +361 -121
- package/dist/index.js +359 -121
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ModelVariantSource } from '@camstack/types';
|
|
2
|
+
export interface GroupedModelSelectorProps {
|
|
3
|
+
readonly catalog: readonly ModelVariantSource[];
|
|
4
|
+
readonly value: string;
|
|
5
|
+
readonly onChange: (id: string) => void;
|
|
6
|
+
readonly disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function GroupedModelSelector({ catalog, value, onChange, disabled, }: GroupedModelSelectorProps): import("react").JSX.Element | null;
|
|
@@ -125,3 +125,5 @@ export { RecordingPanel } from './cap-settings/RecordingPanel';
|
|
|
125
125
|
export type { CapSettingsComponentProps } from './cap-settings/index';
|
|
126
126
|
export type { MaskShapeItem, MaskShapeCanvasProps } from './cap-settings/MaskShapeCanvas';
|
|
127
127
|
export * from './widget-panel.js';
|
|
128
|
+
export { GroupedModelSelector } from './grouped-model-selector';
|
|
129
|
+
export type { GroupedModelSelectorProps } from './grouped-model-selector';
|
|
@@ -39,5 +39,12 @@ export interface PipelineBuilderProps {
|
|
|
39
39
|
* on the camera page where these knobs are agent-level.
|
|
40
40
|
*/
|
|
41
41
|
readonly hideModelAndSettings?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Adds an "Auto (node default)" option to every step's Model dropdown
|
|
44
|
+
* and preserves an absent/sentinel selection instead of auto-correcting
|
|
45
|
+
* it to a concrete model. Passed through to `PipelineStep.allowAutoModel`
|
|
46
|
+
* — see that prop's doc for why this defaults to `false`.
|
|
47
|
+
*/
|
|
48
|
+
readonly allowAutoModel?: boolean;
|
|
42
49
|
}
|
|
43
|
-
export declare function PipelineBuilder({ schema, steps, onChange, templates, selectedTemplateId, onSelectTemplate, onSaveTemplate, onUpdateTemplate, onDeleteTemplate, readOnly, excludeAddons, hideTemplates, showOnlyEnabled, showSlotLabels, toggleMode, overrides, onOverrideChange, inheritedEnabledByAddon, hideModelAndSettings, }: PipelineBuilderProps): import("react").JSX.Element;
|
|
50
|
+
export declare function PipelineBuilder({ schema, steps, onChange, templates, selectedTemplateId, onSelectTemplate, onSaveTemplate, onUpdateTemplate, onDeleteTemplate, readOnly, excludeAddons, hideTemplates, showOnlyEnabled, showSlotLabels, toggleMode, overrides, onOverrideChange, inheritedEnabledByAddon, hideModelAndSettings, allowAutoModel, }: PipelineBuilderProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PipelineSlot, PipelineAddonSchema,
|
|
1
|
+
import { PipelineSlot, PipelineAddonSchema, ConfigField } from '@camstack/types';
|
|
2
2
|
export interface PipelineStepDisplayConfig {
|
|
3
3
|
readonly addonId: string;
|
|
4
4
|
readonly addonName: string;
|
|
@@ -8,8 +8,6 @@ export interface PipelineStepDisplayConfig {
|
|
|
8
8
|
readonly enabled: boolean;
|
|
9
9
|
readonly modelId: string;
|
|
10
10
|
readonly children: readonly PipelineStepDisplayConfig[];
|
|
11
|
-
/** Independent engine override — only used by audio-classifier steps */
|
|
12
|
-
readonly engine?: PipelineEngineChoice;
|
|
13
11
|
/** UI grouping — steps with the same group are displayed under one heading */
|
|
14
12
|
readonly group?: string;
|
|
15
13
|
/** Current values for the step's configSchema fields */
|
|
@@ -51,11 +49,23 @@ export interface PipelineStepProps {
|
|
|
51
49
|
* expanded config panel. Used on the camera page where the step's
|
|
52
50
|
* model + settings are agent-level — a camera can land on any agent,
|
|
53
51
|
* so exposing agent-level knobs here would be misleading. Agent I/O
|
|
54
|
-
* tags
|
|
52
|
+
* tags and the step name stay visible.
|
|
55
53
|
*/
|
|
56
54
|
readonly hideModelAndSettings?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Adds an "Auto (node default)" option (sentinel value `''`) to the
|
|
57
|
+
* Model dropdown, and skips the auto-correct-to-a-concrete-model effect
|
|
58
|
+
* for that sentinel. Off by default — only the wholesale per-agent
|
|
59
|
+
* override editor (`PipelineEditorField`) opts in, since that's the
|
|
60
|
+
* only place an absent `modelId` is a meaningful, persistable "Auto"
|
|
61
|
+
* selection (steps loaded from `CameraPipelineConfig['steps']`, whose
|
|
62
|
+
* wire schema allows an absent `modelId`). Other `PipelineBuilder`
|
|
63
|
+
* consumers (e.g. the benchmark tab) always work with concrete model
|
|
64
|
+
* ids and are unaffected by leaving this off.
|
|
65
|
+
*/
|
|
66
|
+
readonly allowAutoModel?: boolean;
|
|
57
67
|
}
|
|
58
|
-
export declare function PipelineStep({ step, schema, allSchemas: _allSchemas, depth: _depth, onChange, onDelete: _onDelete, readOnly, toggleMode, overrideState, onOverrideChange, inheritedEnabled, hideModelAndSettings, }: PipelineStepProps): import("react").JSX.Element;
|
|
68
|
+
export declare function PipelineStep({ step, schema, allSchemas: _allSchemas, depth: _depth, onChange, onDelete: _onDelete, readOnly, toggleMode, overrideState, onOverrideChange, inheritedEnabled, hideModelAndSettings, allowAutoModel, }: PipelineStepProps): import("react").JSX.Element;
|
|
59
69
|
export declare function ConfigSchemaField({ field, allFields, step, disabled, onChange, }: {
|
|
60
70
|
field: ConfigField;
|
|
61
71
|
allFields: readonly ConfigField[];
|
|
@@ -6,8 +6,10 @@ export interface AgentColumn {
|
|
|
6
6
|
export type CellState = {
|
|
7
7
|
readonly kind: 'enabled';
|
|
8
8
|
readonly modelId: string;
|
|
9
|
+
readonly overridden?: boolean;
|
|
9
10
|
} | {
|
|
10
11
|
readonly kind: 'disabled';
|
|
12
|
+
readonly overridden?: boolean;
|
|
11
13
|
} | {
|
|
12
14
|
readonly kind: 'na';
|
|
13
15
|
};
|
|
@@ -957,6 +957,8 @@ export declare const usePipelineExecutorGetGlobalSteps: typeof trpc.pipelineExec
|
|
|
957
957
|
export declare const usePipelineExecutorGetGlobalPipelineConfig: typeof trpc.pipelineExecutor.getGlobalPipelineConfig.useQuery;
|
|
958
958
|
/** Generated alias around `trpc.pipelineExecutor.getOrchestratorConfigSchema.useQuery`. */
|
|
959
959
|
export declare const usePipelineExecutorGetOrchestratorConfigSchema: typeof trpc.pipelineExecutor.getOrchestratorConfigSchema.useQuery;
|
|
960
|
+
/** Generated alias around `trpc.pipelineExecutor.validatePipeline.useQuery`. */
|
|
961
|
+
export declare const usePipelineExecutorValidatePipeline: typeof trpc.pipelineExecutor.validatePipeline.useQuery;
|
|
960
962
|
/** Generated alias around `trpc.pipelineExecutor.listTemplates.useQuery`. */
|
|
961
963
|
export declare const usePipelineExecutorListTemplates: typeof trpc.pipelineExecutor.listTemplates.useQuery;
|
|
962
964
|
/** Generated alias around `trpc.pipelineExecutor.saveTemplate.useMutation`. */
|
|
@@ -1027,6 +1029,8 @@ export declare const usePipelineOrchestratorGetCameraMetrics: typeof trpc.pipeli
|
|
|
1027
1029
|
export declare const usePipelineOrchestratorGetCapabilityBindings: typeof trpc.pipelineOrchestrator.getCapabilityBindings.useQuery;
|
|
1028
1030
|
/** Generated alias around `trpc.pipelineOrchestrator.setCapabilityBinding.useMutation`. */
|
|
1029
1031
|
export declare const usePipelineOrchestratorSetCapabilityBinding: typeof trpc.pipelineOrchestrator.setCapabilityBinding.useMutation;
|
|
1032
|
+
/** Generated alias around `trpc.pipelineOrchestrator.getIngestOwner.useQuery`. */
|
|
1033
|
+
export declare const usePipelineOrchestratorGetIngestOwner: typeof trpc.pipelineOrchestrator.getIngestOwner.useQuery;
|
|
1030
1034
|
/** Generated alias around `trpc.pipelineOrchestrator.assignDecoder.useMutation`. */
|
|
1031
1035
|
export declare const usePipelineOrchestratorAssignDecoder: typeof trpc.pipelineOrchestrator.assignDecoder.useMutation;
|
|
1032
1036
|
/** Generated alias around `trpc.pipelineOrchestrator.unassignDecoder.useMutation`. */
|
|
@@ -1059,6 +1063,8 @@ export declare const usePipelineOrchestratorSetAgentMaxCameras: typeof trpc.pipe
|
|
|
1059
1063
|
export declare const usePipelineOrchestratorSetAgentDetectWeight: typeof trpc.pipelineOrchestrator.setAgentDetectWeight.useMutation;
|
|
1060
1064
|
/** Generated alias around `trpc.pipelineOrchestrator.setAgentCapabilities.useMutation`. */
|
|
1061
1065
|
export declare const usePipelineOrchestratorSetAgentCapabilities: typeof trpc.pipelineOrchestrator.setAgentCapabilities.useMutation;
|
|
1066
|
+
/** Generated alias around `trpc.pipelineOrchestrator.setAgentReachableHost.useMutation`. */
|
|
1067
|
+
export declare const usePipelineOrchestratorSetAgentReachableHost: typeof trpc.pipelineOrchestrator.setAgentReachableHost.useMutation;
|
|
1062
1068
|
/** Generated alias around `trpc.pipelineOrchestrator.getCameraSettings.useQuery`. */
|
|
1063
1069
|
export declare const usePipelineOrchestratorGetCameraSettings: typeof trpc.pipelineOrchestrator.getCameraSettings.useQuery;
|
|
1064
1070
|
/** Generated alias around `trpc.pipelineOrchestrator.setCameraStepToggle.useMutation`. */
|
|
@@ -1233,10 +1239,6 @@ export declare const useSnapshotGetDeviceSettingsContribution: typeof trpc.snaps
|
|
|
1233
1239
|
export declare const useSnapshotGetDeviceLiveContribution: typeof trpc.snapshot.getDeviceLiveContribution.useQuery;
|
|
1234
1240
|
/** Generated alias around `trpc.snapshot.applyDeviceSettingsPatch.useMutation`. */
|
|
1235
1241
|
export declare const useSnapshotApplyDeviceSettingsPatch: typeof trpc.snapshot.applyDeviceSettingsPatch.useMutation;
|
|
1236
|
-
/** Generated alias around `trpc.snapshotProvider.supportsDevice.useQuery`. */
|
|
1237
|
-
export declare const useSnapshotProviderSupportsDevice: typeof trpc.snapshotProvider.supportsDevice.useQuery;
|
|
1238
|
-
/** Generated alias around `trpc.snapshotProvider.getSnapshot.useQuery`. */
|
|
1239
|
-
export declare const useSnapshotProviderGetSnapshot: typeof trpc.snapshotProvider.getSnapshot.useQuery;
|
|
1240
1242
|
/** Generated alias around `trpc.storage.resolve.useQuery`. */
|
|
1241
1243
|
export declare const useStorageResolve: typeof trpc.storage.resolve.useQuery;
|
|
1242
1244
|
/** Generated alias around `trpc.storage.write.useMutation`. */
|
package/dist/hooks/use-ptz.d.ts
CHANGED
|
@@ -62,6 +62,12 @@ export interface UsePTZResult {
|
|
|
62
62
|
* Resolves to the created preset id, or `undefined` on failure.
|
|
63
63
|
*/
|
|
64
64
|
readonly savePreset: (name: string) => Promise<string | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Overwrite an EXISTING preset with the camera's current position, keeping
|
|
67
|
+
* its id and name. Provider-agnostic: reuses the real id the camera reported
|
|
68
|
+
* (via `getPtzPresets`), so it works regardless of the vendor's slot scheme.
|
|
69
|
+
*/
|
|
70
|
+
readonly updatePreset: (presetId: string) => Promise<void>;
|
|
65
71
|
/** Delete a preset by id, then refresh the presets list. */
|
|
66
72
|
readonly deletePreset: (presetId: string) => Promise<void>;
|
|
67
73
|
/** List of presets reported by the camera. Empty until first refresh. */
|