@camera.ui/browser 0.0.153 → 0.0.155
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.d.ts +140 -17
- package/dist/index.js +11 -8
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,15 @@ import { BatteryProperty } from '@camera.ui/sdk';
|
|
|
7
7
|
import { Camera } from '@camera.ui/sdk';
|
|
8
8
|
import type { CameraInputSettings } from '@camera.ui/sdk/internal';
|
|
9
9
|
import { CameraSource } from '@camera.ui/sdk';
|
|
10
|
+
import { CarbonDioxideInfoProperties } from '@camera.ui/sdk';
|
|
11
|
+
import { CarbonDioxideProperty } from '@camera.ui/sdk';
|
|
12
|
+
import { CarbonMonoxideProperty } from '@camera.ui/sdk';
|
|
13
|
+
import { CarbonMonoxideSensorProperties } from '@camera.ui/sdk';
|
|
10
14
|
import { ChargingState } from '@camera.ui/sdk';
|
|
11
15
|
import { ClassifierProperty } from '@camera.ui/sdk';
|
|
12
16
|
import { ClassifierSensorProperties } from '@camera.ui/sdk';
|
|
17
|
+
import { ColdProperty } from '@camera.ui/sdk';
|
|
18
|
+
import { ColdSensorProperties } from '@camera.ui/sdk';
|
|
13
19
|
import { ComputedRef } from 'vue';
|
|
14
20
|
import { ConnectionTarget } from '@camera.ui/transport';
|
|
15
21
|
import { ContactProperty } from '@camera.ui/sdk';
|
|
@@ -25,9 +31,15 @@ import { FormSubmitResponse } from '@camera.ui/sdk';
|
|
|
25
31
|
import { GarageControlProperties } from '@camera.ui/sdk';
|
|
26
32
|
import { GarageProperty } from '@camera.ui/sdk';
|
|
27
33
|
import { GarageState } from '@camera.ui/sdk';
|
|
34
|
+
import { GasProperty } from '@camera.ui/sdk';
|
|
35
|
+
import { GasSensorProperties } from '@camera.ui/sdk';
|
|
36
|
+
import { HeatProperty } from '@camera.ui/sdk';
|
|
37
|
+
import { HeatSensorProperties } from '@camera.ui/sdk';
|
|
28
38
|
import { HTMLAttributes } from 'vue';
|
|
29
39
|
import { HumidityInfoProperties } from '@camera.ui/sdk';
|
|
30
40
|
import { HumidityProperty } from '@camera.ui/sdk';
|
|
41
|
+
import { IlluminanceInfoProperties } from '@camera.ui/sdk';
|
|
42
|
+
import { IlluminanceProperty } from '@camera.ui/sdk';
|
|
31
43
|
import { InjectionKey } from 'vue';
|
|
32
44
|
import { LeakProperty } from '@camera.ui/sdk';
|
|
33
45
|
import { LeakSensorProperties } from '@camera.ui/sdk';
|
|
@@ -55,8 +67,12 @@ import { PluginContract } from '@camera.ui/sdk';
|
|
|
55
67
|
import type { PluginInfo } from '@camera.ui/sdk';
|
|
56
68
|
import type { PluginInterface } from '@camera.ui/sdk';
|
|
57
69
|
import { PluginInterfaces } from '@camera.ui/sdk';
|
|
70
|
+
import { PowerProperty } from '@camera.ui/sdk';
|
|
71
|
+
import { PowerSensorProperties } from '@camera.ui/sdk';
|
|
58
72
|
import { ProbeConfig } from '@camera.ui/sdk';
|
|
59
73
|
import { ProbeStream } from '@camera.ui/sdk';
|
|
74
|
+
import { ProblemProperty } from '@camera.ui/sdk';
|
|
75
|
+
import { ProblemSensorProperties } from '@camera.ui/sdk';
|
|
60
76
|
import { Promisify } from '@camera.ui/rpc';
|
|
61
77
|
import { PropertyChangedEvent } from '@camera.ui/sdk/internal';
|
|
62
78
|
import { PTZControlProperties } from '@camera.ui/sdk';
|
|
@@ -69,7 +85,6 @@ import { SchemaConfig } from '@camera.ui/sdk';
|
|
|
69
85
|
import { SecuritySystemProperties } from '@camera.ui/sdk';
|
|
70
86
|
import { SecuritySystemProperty } from '@camera.ui/sdk';
|
|
71
87
|
import { SecuritySystemState } from '@camera.ui/sdk';
|
|
72
|
-
import type { SensorJSON } from '@camera.ui/sdk/internal';
|
|
73
88
|
import { SensorType } from '@camera.ui/sdk';
|
|
74
89
|
import { ShallowRef } from 'vue';
|
|
75
90
|
import { SirenControlProperties } from '@camera.ui/sdk';
|
|
@@ -81,8 +96,12 @@ import type { StreamingInterface } from '@camera.ui/sdk';
|
|
|
81
96
|
import { StreamingRole } from '@camera.ui/sdk';
|
|
82
97
|
import { SwitchControlProperties } from '@camera.ui/sdk';
|
|
83
98
|
import { SwitchProperty } from '@camera.ui/sdk';
|
|
99
|
+
import { TamperProperty } from '@camera.ui/sdk';
|
|
100
|
+
import { TamperSensorProperties } from '@camera.ui/sdk';
|
|
84
101
|
import { TemperatureInfoProperties } from '@camera.ui/sdk';
|
|
85
102
|
import { TemperatureProperty } from '@camera.ui/sdk';
|
|
103
|
+
import { VibrationProperty } from '@camera.ui/sdk';
|
|
104
|
+
import { VibrationSensorProperties } from '@camera.ui/sdk';
|
|
86
105
|
import { WatchSource } from 'vue';
|
|
87
106
|
import { WsTransport } from '@camera.ui/transport/transports/ws';
|
|
88
107
|
|
|
@@ -147,8 +166,6 @@ export declare interface CameraDeviceInterface extends CameraDeviceImplementatio
|
|
|
147
166
|
snapshotWithMeta(sourceId: string, forceNew?: boolean): Promise<SnapshotWithMeta | undefined>;
|
|
148
167
|
probeStream(sourceId: string, probeConfig?: ProbeConfig, refresh?: boolean): Promise<ProbeStream | undefined>;
|
|
149
168
|
getStreamStatus(sourceId: string): Promise<string>;
|
|
150
|
-
registerSensor(sensor: SensorJSON, pluginId: string): Promise<boolean>;
|
|
151
|
-
unregisterSensor(sensorId: string): void;
|
|
152
169
|
}
|
|
153
170
|
|
|
154
171
|
declare type CameraIdentifier = MaybeRefOrGetter<string | ReactiveCameraDevice | undefined>;
|
|
@@ -230,6 +247,14 @@ export declare interface CameraUiPluginInput {
|
|
|
230
247
|
wsTransport?: WsTransport;
|
|
231
248
|
}
|
|
232
249
|
|
|
250
|
+
/* Excluded from this release type: CarbonDioxideInfoProperties */
|
|
251
|
+
|
|
252
|
+
/* Excluded from this release type: CarbonDioxideProperty */
|
|
253
|
+
|
|
254
|
+
/* Excluded from this release type: CarbonMonoxideProperty */
|
|
255
|
+
|
|
256
|
+
/* Excluded from this release type: CarbonMonoxideSensorProperties */
|
|
257
|
+
|
|
233
258
|
/* Excluded from this release type: ClassifierProperty */
|
|
234
259
|
|
|
235
260
|
/* Excluded from this release type: ClassifierSensorProperties */
|
|
@@ -253,6 +278,10 @@ export declare interface CodecCompatibility {
|
|
|
253
278
|
incompatibleCodecs: string[];
|
|
254
279
|
}
|
|
255
280
|
|
|
281
|
+
/* Excluded from this release type: ColdProperty */
|
|
282
|
+
|
|
283
|
+
/* Excluded from this release type: ColdSensorProperties */
|
|
284
|
+
|
|
256
285
|
/* Excluded from this release type: ContactProperty */
|
|
257
286
|
|
|
258
287
|
/* Excluded from this release type: ContactSensorProperties */
|
|
@@ -340,20 +369,38 @@ declare type FullscreenMode = 'fit' | 'scroll';
|
|
|
340
369
|
|
|
341
370
|
/* Excluded from this release type: GarageProperty */
|
|
342
371
|
|
|
372
|
+
/* Excluded from this release type: GasProperty */
|
|
373
|
+
|
|
374
|
+
/* Excluded from this release type: GasSensorProperties */
|
|
375
|
+
|
|
343
376
|
export declare function getSnapshotUrl(cameraId: string): string | undefined;
|
|
344
377
|
|
|
378
|
+
/* Excluded from this release type: HeatProperty */
|
|
379
|
+
|
|
380
|
+
/* Excluded from this release type: HeatSensorProperties */
|
|
381
|
+
|
|
345
382
|
declare type HiddenCallback = () => void;
|
|
346
383
|
|
|
347
384
|
/* Excluded from this release type: HumidityInfoProperties */
|
|
348
385
|
|
|
349
386
|
/* Excluded from this release type: HumidityProperty */
|
|
350
387
|
|
|
388
|
+
/* Excluded from this release type: IlluminanceInfoProperties */
|
|
389
|
+
|
|
390
|
+
/* Excluded from this release type: IlluminanceProperty */
|
|
391
|
+
|
|
351
392
|
export declare const isReactiveAudioSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveAudioSensor;
|
|
352
393
|
|
|
353
394
|
export declare const isReactiveBatteryInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveBatteryInfo;
|
|
354
395
|
|
|
396
|
+
export declare const isReactiveCarbonDioxideInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveCarbonDioxideInfo;
|
|
397
|
+
|
|
398
|
+
export declare const isReactiveCarbonMonoxideSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveCarbonMonoxideSensor;
|
|
399
|
+
|
|
355
400
|
export declare const isReactiveClassifierSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveClassifierSensor;
|
|
356
401
|
|
|
402
|
+
export declare const isReactiveColdSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveColdSensor;
|
|
403
|
+
|
|
357
404
|
export declare const isReactiveContactSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveContactSensor;
|
|
358
405
|
|
|
359
406
|
export declare const isReactiveDoorbellTrigger: (sensor: ReactiveSensor<any>) => sensor is ReactiveDoorbellTrigger;
|
|
@@ -362,8 +409,14 @@ export declare const isReactiveFaceSensor: (sensor: ReactiveSensor<any>) => sens
|
|
|
362
409
|
|
|
363
410
|
export declare const isReactiveGarageControl: (sensor: ReactiveSensor<any>) => sensor is ReactiveGarageControl;
|
|
364
411
|
|
|
412
|
+
export declare const isReactiveGasSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveGasSensor;
|
|
413
|
+
|
|
414
|
+
export declare const isReactiveHeatSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveHeatSensor;
|
|
415
|
+
|
|
365
416
|
export declare const isReactiveHumidityInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveHumidityInfo;
|
|
366
417
|
|
|
418
|
+
export declare const isReactiveIlluminanceInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveIlluminanceInfo;
|
|
419
|
+
|
|
367
420
|
export declare const isReactiveLeakSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveLeakSensor;
|
|
368
421
|
|
|
369
422
|
export declare const isReactiveLicensePlateSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveLicensePlateSensor;
|
|
@@ -378,6 +431,10 @@ export declare const isReactiveObjectSensor: (sensor: ReactiveSensor<any>) => se
|
|
|
378
431
|
|
|
379
432
|
export declare const isReactiveOccupancySensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveOccupancySensor;
|
|
380
433
|
|
|
434
|
+
export declare const isReactivePowerSensor: (sensor: ReactiveSensor<any>) => sensor is ReactivePowerSensor;
|
|
435
|
+
|
|
436
|
+
export declare const isReactiveProblemSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveProblemSensor;
|
|
437
|
+
|
|
381
438
|
export declare const isReactivePTZControl: (sensor: ReactiveSensor<any>) => sensor is ReactivePTZControl;
|
|
382
439
|
|
|
383
440
|
export declare const isReactiveSecuritySystem: (sensor: ReactiveSensor<any>) => sensor is ReactiveSecuritySystem;
|
|
@@ -388,18 +445,16 @@ export declare const isReactiveSmokeSensor: (sensor: ReactiveSensor<any>) => sen
|
|
|
388
445
|
|
|
389
446
|
export declare const isReactiveSwitchControl: (sensor: ReactiveSensor<any>) => sensor is ReactiveSwitchControl;
|
|
390
447
|
|
|
448
|
+
export declare const isReactiveTamperSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveTamperSensor;
|
|
449
|
+
|
|
391
450
|
export declare const isReactiveTemperatureInfo: (sensor: ReactiveSensor<any>) => sensor is ReactiveTemperatureInfo;
|
|
392
451
|
|
|
452
|
+
export declare const isReactiveVibrationSensor: (sensor: ReactiveSensor<any>) => sensor is ReactiveVibrationSensor;
|
|
453
|
+
|
|
393
454
|
/* Excluded from this release type: LeakProperty */
|
|
394
455
|
|
|
395
456
|
/* Excluded from this release type: LeakSensorProperties */
|
|
396
457
|
|
|
397
|
-
/** @deprecated stub window for pre-standalone plugins, remove in the first minor after the standalone-sensors release */
|
|
398
|
-
declare interface LegacySensorNamespaces {
|
|
399
|
-
sensorSubject: string;
|
|
400
|
-
sensorRpc: string;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
458
|
/* Excluded from this release type: LicensePlateProperty */
|
|
404
459
|
|
|
405
460
|
/* Excluded from this release type: LicensePlateSensorProperties */
|
|
@@ -505,14 +560,6 @@ export declare class NamespaceManager {
|
|
|
505
560
|
};
|
|
506
561
|
}
|
|
507
562
|
|
|
508
|
-
/** @deprecated stub window for pre-standalone plugins, remove in the first minor after the standalone-sensors release */
|
|
509
|
-
static legacySensorNamespaces(cameraId: string): LegacySensorNamespaces {
|
|
510
|
-
return {
|
|
511
|
-
sensorSubject: `camera.${cameraId}.sensors.subject`,
|
|
512
|
-
sensorRpc: `camera.${cameraId}.sensors.rpc`,
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
|
|
516
563
|
static frameWorkerDetectionNamespaces(cameraId: string): FrameWorkerDetectionNamespaces {
|
|
517
564
|
return {
|
|
518
565
|
detectionRpc: `camera.${cameraId}.frameWorker.detection.rpc`,
|
|
@@ -605,6 +652,14 @@ export declare interface PluginSensorNamespaces {
|
|
|
605
652
|
sensorStorageRpc: string;
|
|
606
653
|
}
|
|
607
654
|
|
|
655
|
+
/* Excluded from this release type: PowerProperty */
|
|
656
|
+
|
|
657
|
+
/* Excluded from this release type: PowerSensorProperties */
|
|
658
|
+
|
|
659
|
+
/* Excluded from this release type: ProblemProperty */
|
|
660
|
+
|
|
661
|
+
/* Excluded from this release type: ProblemSensorProperties */
|
|
662
|
+
|
|
608
663
|
/* Excluded from this release type: PTZControlProperties */
|
|
609
664
|
|
|
610
665
|
/* Excluded from this release type: PTZProperty */
|
|
@@ -665,6 +720,18 @@ declare interface ReactiveCameraDeviceContext {
|
|
|
665
720
|
rpc: ShallowRef<RPCClient | undefined>;
|
|
666
721
|
}
|
|
667
722
|
|
|
723
|
+
export declare interface ReactiveCarbonDioxideInfo extends ReactiveSensor<CarbonDioxideInfoProperties> {
|
|
724
|
+
readonly type: typeof SensorType.CarbonDioxide;
|
|
725
|
+
getProperty(property: typeof CarbonDioxideProperty.Current): number | undefined;
|
|
726
|
+
getProperty(property: string): unknown;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export declare interface ReactiveCarbonMonoxideSensor extends ReactiveSensor<CarbonMonoxideSensorProperties> {
|
|
730
|
+
readonly type: typeof SensorType.CarbonMonoxide;
|
|
731
|
+
getProperty(property: typeof CarbonMonoxideProperty.Detected): boolean | undefined;
|
|
732
|
+
getProperty(property: string): unknown;
|
|
733
|
+
}
|
|
734
|
+
|
|
668
735
|
export declare interface ReactiveClassifierSensor extends ReactiveSensor<ClassifierSensorProperties> {
|
|
669
736
|
readonly type: typeof SensorType.Classifier;
|
|
670
737
|
getProperty(property: typeof ClassifierProperty.Detected): boolean | undefined;
|
|
@@ -673,6 +740,12 @@ export declare interface ReactiveClassifierSensor extends ReactiveSensor<Classif
|
|
|
673
740
|
getProperty(property: string): unknown;
|
|
674
741
|
}
|
|
675
742
|
|
|
743
|
+
export declare interface ReactiveColdSensor extends ReactiveSensor<ColdSensorProperties> {
|
|
744
|
+
readonly type: typeof SensorType.Cold;
|
|
745
|
+
getProperty(property: typeof ColdProperty.Detected): boolean | undefined;
|
|
746
|
+
getProperty(property: string): unknown;
|
|
747
|
+
}
|
|
748
|
+
|
|
676
749
|
export declare interface ReactiveContactSensor extends ReactiveSensor<ContactSensorProperties> {
|
|
677
750
|
readonly type: typeof SensorType.Contact;
|
|
678
751
|
getProperty(property: typeof ContactProperty.Detected): boolean | undefined;
|
|
@@ -709,12 +782,30 @@ export declare interface ReactiveGarageControl extends ReactiveSensor<GarageCont
|
|
|
709
782
|
setProperty(property: string, value: unknown): Promise<void>;
|
|
710
783
|
}
|
|
711
784
|
|
|
785
|
+
export declare interface ReactiveGasSensor extends ReactiveSensor<GasSensorProperties> {
|
|
786
|
+
readonly type: typeof SensorType.Gas;
|
|
787
|
+
getProperty(property: typeof GasProperty.Detected): boolean | undefined;
|
|
788
|
+
getProperty(property: string): unknown;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export declare interface ReactiveHeatSensor extends ReactiveSensor<HeatSensorProperties> {
|
|
792
|
+
readonly type: typeof SensorType.Heat;
|
|
793
|
+
getProperty(property: typeof HeatProperty.Detected): boolean | undefined;
|
|
794
|
+
getProperty(property: string): unknown;
|
|
795
|
+
}
|
|
796
|
+
|
|
712
797
|
export declare interface ReactiveHumidityInfo extends ReactiveSensor<HumidityInfoProperties> {
|
|
713
798
|
readonly type: typeof SensorType.Humidity;
|
|
714
799
|
getProperty(property: typeof HumidityProperty.Current): number | undefined;
|
|
715
800
|
getProperty(property: string): unknown;
|
|
716
801
|
}
|
|
717
802
|
|
|
803
|
+
export declare interface ReactiveIlluminanceInfo extends ReactiveSensor<IlluminanceInfoProperties> {
|
|
804
|
+
readonly type: typeof SensorType.Illuminance;
|
|
805
|
+
getProperty(property: typeof IlluminanceProperty.Current): number | undefined;
|
|
806
|
+
getProperty(property: string): unknown;
|
|
807
|
+
}
|
|
808
|
+
|
|
718
809
|
export declare interface ReactiveLeakSensor extends ReactiveSensor<LeakSensorProperties> {
|
|
719
810
|
readonly type: typeof SensorType.Leak;
|
|
720
811
|
getProperty(property: typeof LeakProperty.Detected): boolean | undefined;
|
|
@@ -769,6 +860,18 @@ export declare interface ReactiveOccupancySensor extends ReactiveSensor<Occupanc
|
|
|
769
860
|
getProperty(property: string): unknown;
|
|
770
861
|
}
|
|
771
862
|
|
|
863
|
+
export declare interface ReactivePowerSensor extends ReactiveSensor<PowerSensorProperties> {
|
|
864
|
+
readonly type: typeof SensorType.Power;
|
|
865
|
+
getProperty(property: typeof PowerProperty.Detected): boolean | undefined;
|
|
866
|
+
getProperty(property: string): unknown;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export declare interface ReactiveProblemSensor extends ReactiveSensor<ProblemSensorProperties> {
|
|
870
|
+
readonly type: typeof SensorType.Problem;
|
|
871
|
+
getProperty(property: typeof ProblemProperty.Detected): boolean | undefined;
|
|
872
|
+
getProperty(property: string): unknown;
|
|
873
|
+
}
|
|
874
|
+
|
|
772
875
|
export declare interface ReactivePTZControl extends ReactiveSensor<PTZControlProperties> {
|
|
773
876
|
readonly type: typeof SensorType.PTZ;
|
|
774
877
|
getProperty(property: typeof PTZProperty.Position): PTZPosition | undefined;
|
|
@@ -890,12 +993,24 @@ export declare interface ReactiveSwitchControl extends ReactiveSensor<SwitchCont
|
|
|
890
993
|
setProperty(property: string, value: unknown): Promise<void>;
|
|
891
994
|
}
|
|
892
995
|
|
|
996
|
+
export declare interface ReactiveTamperSensor extends ReactiveSensor<TamperSensorProperties> {
|
|
997
|
+
readonly type: typeof SensorType.Tamper;
|
|
998
|
+
getProperty(property: typeof TamperProperty.Detected): boolean | undefined;
|
|
999
|
+
getProperty(property: string): unknown;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
893
1002
|
export declare interface ReactiveTemperatureInfo extends ReactiveSensor<TemperatureInfoProperties> {
|
|
894
1003
|
readonly type: typeof SensorType.Temperature;
|
|
895
1004
|
getProperty(property: typeof TemperatureProperty.Current): number | undefined;
|
|
896
1005
|
getProperty(property: string): unknown;
|
|
897
1006
|
}
|
|
898
1007
|
|
|
1008
|
+
export declare interface ReactiveVibrationSensor extends ReactiveSensor<VibrationSensorProperties> {
|
|
1009
|
+
readonly type: typeof SensorType.Vibration;
|
|
1010
|
+
getProperty(property: typeof VibrationProperty.Detected): boolean | undefined;
|
|
1011
|
+
getProperty(property: string): unknown;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
899
1014
|
export declare function refreshClientSubscriptions(): void;
|
|
900
1015
|
|
|
901
1016
|
declare interface RefreshedStates {
|
|
@@ -1084,6 +1199,10 @@ export declare type StreamStatus = 'idle' | 'connecting' | 'connected' | 'reconn
|
|
|
1084
1199
|
|
|
1085
1200
|
/* Excluded from this release type: SwitchProperty */
|
|
1086
1201
|
|
|
1202
|
+
/* Excluded from this release type: TamperProperty */
|
|
1203
|
+
|
|
1204
|
+
/* Excluded from this release type: TamperSensorProperties */
|
|
1205
|
+
|
|
1087
1206
|
/* Excluded from this release type: TemperatureInfoProperties */
|
|
1088
1207
|
|
|
1089
1208
|
/* Excluded from this release type: TemperatureProperty */
|
|
@@ -1327,6 +1446,10 @@ export declare interface UseTerminalReturn {
|
|
|
1327
1446
|
|
|
1328
1447
|
export declare function useTopmostFullscreenElement(): ComputedRef<HTMLElement | null>;
|
|
1329
1448
|
|
|
1449
|
+
/* Excluded from this release type: VibrationProperty */
|
|
1450
|
+
|
|
1451
|
+
/* Excluded from this release type: VibrationSensorProperties */
|
|
1452
|
+
|
|
1330
1453
|
export declare type VideoStreamingMode = 'webrtc' | 'webrtc/tcp' | 'mse' | 'auto';
|
|
1331
1454
|
|
|
1332
1455
|
declare type VisibleCallback = (info: {
|
package/dist/index.js
CHANGED
|
@@ -167,13 +167,6 @@ var NamespaceManager = class {
|
|
|
167
167
|
static sensorProviderNamespaces(pluginId, sensorId) {
|
|
168
168
|
return { sensorRpc: `plugin.${pluginId}.sensor.${sensorId}.rpc` };
|
|
169
169
|
}
|
|
170
|
-
/** @deprecated stub window for pre-standalone plugins, remove in the first minor after the standalone-sensors release */
|
|
171
|
-
static legacySensorNamespaces(cameraId) {
|
|
172
|
-
return {
|
|
173
|
-
sensorSubject: `camera.${cameraId}.sensors.subject`,
|
|
174
|
-
sensorRpc: `camera.${cameraId}.sensors.rpc`
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
170
|
static frameWorkerDetectionNamespaces(cameraId) {
|
|
178
171
|
return { detectionRpc: `camera.${cameraId}.frameWorker.detection.rpc` };
|
|
179
172
|
}
|
|
@@ -1134,6 +1127,16 @@ var isReactiveHumidityInfo = createSensorTypeGuard(SensorType.Humidity);
|
|
|
1134
1127
|
var isReactiveOccupancySensor = createSensorTypeGuard(SensorType.Occupancy);
|
|
1135
1128
|
var isReactiveSmokeSensor = createSensorTypeGuard(SensorType.Smoke);
|
|
1136
1129
|
var isReactiveLeakSensor = createSensorTypeGuard(SensorType.Leak);
|
|
1130
|
+
var isReactiveGasSensor = createSensorTypeGuard(SensorType.Gas);
|
|
1131
|
+
var isReactiveCarbonMonoxideSensor = createSensorTypeGuard(SensorType.CarbonMonoxide);
|
|
1132
|
+
var isReactiveHeatSensor = createSensorTypeGuard(SensorType.Heat);
|
|
1133
|
+
var isReactiveColdSensor = createSensorTypeGuard(SensorType.Cold);
|
|
1134
|
+
var isReactiveVibrationSensor = createSensorTypeGuard(SensorType.Vibration);
|
|
1135
|
+
var isReactiveTamperSensor = createSensorTypeGuard(SensorType.Tamper);
|
|
1136
|
+
var isReactiveProblemSensor = createSensorTypeGuard(SensorType.Problem);
|
|
1137
|
+
var isReactivePowerSensor = createSensorTypeGuard(SensorType.Power);
|
|
1138
|
+
var isReactiveIlluminanceInfo = createSensorTypeGuard(SensorType.Illuminance);
|
|
1139
|
+
var isReactiveCarbonDioxideInfo = createSensorTypeGuard(SensorType.CarbonDioxide);
|
|
1137
1140
|
var isReactiveGarageControl = createSensorTypeGuard(SensorType.Garage);
|
|
1138
1141
|
function createReactiveSensor(data, state, rpcRef) {
|
|
1139
1142
|
const displayName = ref(state.displayName ?? data.displayName ?? data.name);
|
|
@@ -4684,4 +4687,4 @@ function useTerminal() {
|
|
|
4684
4687
|
};
|
|
4685
4688
|
}
|
|
4686
4689
|
//#endregion
|
|
4687
|
-
export { CAMERA_UI_INJECTION_KEY, NamespaceManager, STREAM_CONFIG, acquireSensorManager, clearCameraCache, clearOAuthCache, clearPluginCache, clearSensorCache, clearSnapshotCache, clearStorageCache, createActivityMode, createCameraUiPlugin, createReactiveCameraDevice, createSensorManager, getSnapshotUrl, isReactiveAudioSensor, isReactiveBatteryInfo, isReactiveClassifierSensor, isReactiveContactSensor, isReactiveDoorbellTrigger, isReactiveFaceSensor, isReactiveGarageControl, isReactiveHumidityInfo, isReactiveLeakSensor, isReactiveLicensePlateSensor, isReactiveLightControl, isReactiveLockControl, isReactiveMotionSensor, isReactiveObjectSensor, isReactiveOccupancySensor, isReactivePTZControl, isReactiveSecuritySystem, isReactiveSirenControl, isReactiveSmokeSensor, isReactiveSwitchControl, isReactiveTemperatureInfo, refreshClientSubscriptions, releaseSensorManager, resetClientState, rpcCall, useAllSensors, useAudioSensor, useCameraById, useCameraStorage, useCameraStream, useCameraUi, useClassifierSensors, useCoreManager, useCuiFullscreen, useDeviceManager, useFaceSensor, useLicensePlateSensor, useMotionSensor, useOAuth, useObjectSensor, usePTZControl, usePlugin, usePluginStorage, useRpcCall, useRpcSubscription, useSensorById, useSensorByType, useSensorStorage, useSensors, useSensorsByType, useSnapshot, useTabVisibility, useTerminal, useTopmostFullscreenElement };
|
|
4690
|
+
export { CAMERA_UI_INJECTION_KEY, NamespaceManager, STREAM_CONFIG, acquireSensorManager, clearCameraCache, clearOAuthCache, clearPluginCache, clearSensorCache, clearSnapshotCache, clearStorageCache, createActivityMode, createCameraUiPlugin, createReactiveCameraDevice, createSensorManager, getSnapshotUrl, isReactiveAudioSensor, isReactiveBatteryInfo, isReactiveCarbonDioxideInfo, isReactiveCarbonMonoxideSensor, isReactiveClassifierSensor, isReactiveColdSensor, isReactiveContactSensor, isReactiveDoorbellTrigger, isReactiveFaceSensor, isReactiveGarageControl, isReactiveGasSensor, isReactiveHeatSensor, isReactiveHumidityInfo, isReactiveIlluminanceInfo, isReactiveLeakSensor, isReactiveLicensePlateSensor, isReactiveLightControl, isReactiveLockControl, isReactiveMotionSensor, isReactiveObjectSensor, isReactiveOccupancySensor, isReactivePTZControl, isReactivePowerSensor, isReactiveProblemSensor, isReactiveSecuritySystem, isReactiveSirenControl, isReactiveSmokeSensor, isReactiveSwitchControl, isReactiveTamperSensor, isReactiveTemperatureInfo, isReactiveVibrationSensor, refreshClientSubscriptions, releaseSensorManager, resetClientState, rpcCall, useAllSensors, useAudioSensor, useCameraById, useCameraStorage, useCameraStream, useCameraUi, useClassifierSensors, useCoreManager, useCuiFullscreen, useDeviceManager, useFaceSensor, useLicensePlateSensor, useMotionSensor, useOAuth, useObjectSensor, usePTZControl, usePlugin, usePluginStorage, useRpcCall, useRpcSubscription, useSensorById, useSensorByType, useSensorStorage, useSensors, useSensorsByType, useSnapshot, useTabVisibility, useTerminal, useTopmostFullscreenElement };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.155",
|
|
4
4
|
"description": "camera.ui browser client",
|
|
5
5
|
"author": "seydx (https://github.com/cameraui/clients)",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@camera.ui/logger": ">=0.0.2",
|
|
33
33
|
"@camera.ui/rpc": ">=1.0.10",
|
|
34
|
-
"@camera.ui/sdk": ">=1.2.
|
|
34
|
+
"@camera.ui/sdk": ">=1.2.5",
|
|
35
35
|
"@camera.ui/transport": ">=0.0.1",
|
|
36
36
|
"@vueuse/core": ">=14.4.0",
|
|
37
37
|
"vue": ">=3.5.40"
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@camera.ui/logger": "file:../../packages/logger",
|
|
41
41
|
"@camera.ui/rpc": "^1.0.10",
|
|
42
|
-
"@camera.ui/sdk": "~1.2.
|
|
42
|
+
"@camera.ui/sdk": "~1.2.5",
|
|
43
43
|
"@camera.ui/transport": "file:../../packages/transport",
|
|
44
44
|
"@eneris/push-receiver": "^4.3.1",
|
|
45
45
|
"@microsoft/api-extractor": "^7.58.12",
|
|
46
46
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
47
47
|
"@types/webrtc": "^0.0.47",
|
|
48
|
-
"@typescript-eslint/parser": "^8.
|
|
48
|
+
"@typescript-eslint/parser": "^8.66.0",
|
|
49
49
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
50
50
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
51
51
|
"@vue/eslint-config-typescript": "^14.9.0",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@webgpu/types": "^0.1.71",
|
|
56
56
|
"eslint": "9.39.2",
|
|
57
57
|
"eslint-plugin-vue": "^10.10.0",
|
|
58
|
-
"globals": "^17.
|
|
58
|
+
"globals": "^17.9.0",
|
|
59
59
|
"prettier": "^3.9.6",
|
|
60
60
|
"rimraf": "^6.1.3",
|
|
61
61
|
"typescript": "5.9.3",
|
|
62
|
-
"typescript-eslint": "^8.
|
|
62
|
+
"typescript-eslint": "^8.66.0",
|
|
63
63
|
"unplugin-dts": "^1.0.3",
|
|
64
|
-
"updates": "^17.20.
|
|
64
|
+
"updates": "^17.20.3",
|
|
65
65
|
"vite": "^8.2.0",
|
|
66
66
|
"vitest": "^4.1.10",
|
|
67
67
|
"vue": "^3.5.40",
|