@monkvision/inspection-capture-web 5.2.5 → 5.3.0
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/lib/DamageDisclosure/DamageDisclosure.d.ts +1 -2
- package/lib/DamageDisclosure/DamageDisclosure.js +2 -3
- package/lib/DamageDisclosure/DamageDisclosureHOC.d.ts +0 -1
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.d.ts +1 -2
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.js +2 -14
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/DamageDisclosureHUDElements.d.ts +1 -2
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/DamageDisclosureHUDElements.js +1 -2
- package/lib/DamageDisclosure/hooks/useDamageDisclosureState.js +1 -2
- package/lib/PhotoCapture/PhotoCapture.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCapture.js +2 -3
- package/lib/PhotoCapture/PhotoCaptureHOC.d.ts +0 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.js +2 -14
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.js +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.js +2 -14
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.js +3 -15
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.js +3 -15
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/hooks.d.ts +108 -59
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/hooks.js +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.js +4 -15
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSliderButton.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSliderButton.js +2 -14
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/hooks.js +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/hooks.d.ts +307 -258
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/hooks.js +2 -3
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDSightTutorial/PhotoCaptureHUDSightTutorial.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDSightTutorial/PhotoCaptureHUDSightTutorial.js +4 -16
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDSightTutorial/PhotoCaptureHUDSightTutorial.styles.d.ts +1175 -734
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDSightTutorial/PhotoCaptureHUDSightTutorial.styles.js +2 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/ArrowIcon.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/ArrowIcon.js +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/DisplayText.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/DisplayText.js +2 -14
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.d.ts +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.js +2 -3
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/hooks.d.ts +307 -258
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/hooks.js +1 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDStyle.d.ts +307 -258
- package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDStyle.js +1 -2
- package/lib/PhotoCapture/errors.js +1 -1
- package/lib/PhotoCapture/hooks/useComplianceAnalytics.d.ts +0 -1
- package/lib/PhotoCapture/hooks/useComplianceAnalytics.js +1 -2
- package/lib/PhotoCapture/hooks/useImagesCleanup.js +1 -2
- package/lib/PhotoCapture/hooks/useInspectionComplete.js +3 -4
- package/lib/PhotoCapture/hooks/usePhotoCaptureSightGuidelines.js +2 -2
- package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.js +1 -2
- package/lib/PhotoCapture/hooks/usePhotoCaptureSightTutorial.js +1 -2
- package/lib/PhotoCapture/hooks/usePhotoCaptureTutorial.js +3 -3
- package/lib/VideoCapture/VideoCapture.d.ts +1 -2
- package/lib/VideoCapture/VideoCapture.js +2 -14
- package/lib/VideoCapture/VideoCaptureHOC.d.ts +0 -1
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.d.ts +1 -1
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.js +5 -17
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.d.ts +1 -2
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.js +2 -14
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecordingStyles.d.ts +1447 -1152
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecordingStyles.js +2 -2
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/VideoCaptureTutorial.d.ts +1 -2
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/VideoCaptureTutorial.js +2 -14
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.d.ts +1 -2
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.js +2 -3
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.styles.js +2 -2
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.d.ts +1 -1
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.js +14 -3
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.styles.js +2 -2
- package/lib/VideoCapture/VideoCapturePermissions/VideoCapturePermissions.d.ts +1 -2
- package/lib/VideoCapture/VideoCapturePermissions/VideoCapturePermissions.js +4 -16
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.d.ts +1 -2
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.js +2 -14
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.styles.d.ts +324 -177
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.styles.js +2 -2
- package/lib/VideoCapture/hooks/useFastMovementsDetection/fastMovementsDetection.js +3 -3
- package/lib/VideoCapture/hooks/useFastMovementsDetection/useFastMovementsDetection.js +1 -2
- package/lib/VideoCapture/hooks/useFrameSelection/laplaceScores.js +1 -2
- package/lib/VideoCapture/hooks/useFrameSelection/useFrameSelection.js +1 -2
- package/lib/VideoCapture/hooks/useVehicleWalkaround.js +1 -2
- package/lib/VideoCapture/hooks/useVideoRecording.js +3 -3
- package/lib/VideoCapture/hooks/useVideoUploadQueue.js +1 -2
- package/lib/components/CancelButton/CancelButton.d.ts +1 -2
- package/lib/components/CancelButton/CancelButton.js +2 -14
- package/lib/components/CloseUpShot/CloseUpShot.d.ts +1 -2
- package/lib/components/CloseUpShot/CloseUpShot.js +2 -3
- package/lib/components/CloseUpShot/hooks.js +1 -2
- package/lib/components/Counter/Counter.d.ts +1 -2
- package/lib/components/Counter/Counter.js +2 -3
- package/lib/components/Counter/hooks.js +1 -2
- package/lib/components/HUDButtons/HUDButtons.d.ts +1 -2
- package/lib/components/HUDButtons/HUDButtons.js +2 -3
- package/lib/components/HUDButtons/hooks.js +1 -2
- package/lib/components/HUDOverlay/HUDOverlay.d.ts +1 -2
- package/lib/components/HUDOverlay/HUDOverlay.js +2 -3
- package/lib/components/HUDOverlay/hooks.js +2 -3
- package/lib/components/OrientationEnforcer/OrientationEnforcer.d.ts +1 -2
- package/lib/components/OrientationEnforcer/OrientationEnforcer.js +2 -14
- package/lib/components/OrientationEnforcer/OrientationEnforcer.styles.d.ts +108 -59
- package/lib/components/OrientationEnforcer/OrientationEnforcer.styles.js +2 -2
- package/lib/components/PartSelection/PartSelection.d.ts +1 -2
- package/lib/components/PartSelection/PartSelection.js +3 -4
- package/lib/components/SightTutorialButton/SightTutorialButton.d.ts +1 -1
- package/lib/components/SightTutorialButton/SightTutorialButton.js +1 -2
- package/lib/components/ZoomOutShot/ZoomOutShot.d.ts +1 -2
- package/lib/components/ZoomOutShot/ZoomOutShot.js +2 -14
- package/lib/components/ZoomOutShot/hooks.js +1 -2
- package/lib/errors.js +1 -1
- package/lib/hooks/useAdaptiveCameraConfig.js +1 -2
- package/lib/hooks/useAddDamageMode.js +1 -2
- package/lib/hooks/useBadConnectionWarning.js +1 -2
- package/lib/hooks/useCaptureDuration.js +19 -7
- package/lib/hooks/useColorBackground.js +2 -3
- package/lib/hooks/useEnforceOrientation.js +1 -2
- package/lib/hooks/usePhotoCaptureImages.js +1 -2
- package/lib/hooks/usePictureTaken.js +1 -2
- package/lib/hooks/useStartTasksOnComplete.js +3 -4
- package/lib/hooks/useTracking.js +1 -2
- package/lib/hooks/useUploadQueue.js +3 -4
- package/lib/types.js +2 -2
- package/package.json +24 -25
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.usePhotoCaptureHUDStyle =
|
|
14
|
+
exports.usePhotoCaptureHUDStyle = usePhotoCaptureHUDStyle;
|
|
15
15
|
var common_1 = require("@monkvision/common");
|
|
16
16
|
var PhotoCaptureHUD_styles_1 = require("../PhotoCaptureHUD.styles");
|
|
17
17
|
function usePhotoCaptureHUDStyle() {
|
|
@@ -21,4 +21,3 @@ function usePhotoCaptureHUDStyle() {
|
|
|
21
21
|
previewContainer: PhotoCaptureHUD_styles_1.styles['previewContainer'],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
exports.usePhotoCaptureHUDStyle = usePhotoCaptureHUDStyle;
|
|
@@ -4,4 +4,4 @@ exports.PhotoCaptureErrorName = void 0;
|
|
|
4
4
|
var PhotoCaptureErrorName;
|
|
5
5
|
(function (PhotoCaptureErrorName) {
|
|
6
6
|
PhotoCaptureErrorName["MISSING_TASK_IN_INSPECTION"] = "PhotoCaptureMissingTaskInInspection";
|
|
7
|
-
})(PhotoCaptureErrorName
|
|
7
|
+
})(PhotoCaptureErrorName || (exports.PhotoCaptureErrorName = PhotoCaptureErrorName = {}));
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.useComplianceAnalytics =
|
|
14
|
+
exports.useComplianceAnalytics = useComplianceAnalytics;
|
|
15
15
|
var analytics_1 = require("@monkvision/analytics");
|
|
16
16
|
var common_1 = require("@monkvision/common");
|
|
17
17
|
var types_1 = require("@monkvision/types");
|
|
@@ -50,4 +50,3 @@ function useComplianceAnalytics(_a) {
|
|
|
50
50
|
}, [state]);
|
|
51
51
|
return { setIsInitialInspectionFetched: setIsInitialInspectionFetched };
|
|
52
52
|
}
|
|
53
|
-
exports.useComplianceAnalytics = useComplianceAnalytics;
|
|
@@ -9,7 +9,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
9
9
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.useImagesCleanup =
|
|
12
|
+
exports.useImagesCleanup = useImagesCleanup;
|
|
13
13
|
var common_1 = require("@monkvision/common");
|
|
14
14
|
var network_1 = require("@monkvision/network");
|
|
15
15
|
var react_1 = require("react");
|
|
@@ -65,4 +65,3 @@ function useImagesCleanup(_a) {
|
|
|
65
65
|
},
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
exports.useImagesCleanup = useImagesCleanup;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.useInspectionComplete =
|
|
39
|
+
exports.useInspectionComplete = useInspectionComplete;
|
|
40
40
|
var common_1 = require("@monkvision/common");
|
|
41
41
|
var react_1 = require("react");
|
|
42
42
|
var analytics_1 = require("@monkvision/analytics");
|
|
@@ -84,4 +84,3 @@ function useInspectionComplete(_a) {
|
|
|
84
84
|
}, [sightState.isInspectionCompliant]);
|
|
85
85
|
return (0, common_1.useObjectMemo)({ handleInspectionCompleted: handleInspectionCompleted });
|
|
86
86
|
}
|
|
87
|
-
exports.useInspectionComplete = useInspectionComplete;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TTL_MS = exports.STORAGE_KEY_PHOTO_CAPTURE_GUIDELINES = void 0;
|
|
4
|
+
exports.usePhotoCaptureSightGuidelines = usePhotoCaptureSightGuidelines;
|
|
4
5
|
var react_1 = require("react");
|
|
5
6
|
var types_1 = require("@monkvision/types");
|
|
6
7
|
var common_1 = require("@monkvision/common");
|
|
@@ -39,4 +40,3 @@ function usePhotoCaptureSightGuidelines(_a) {
|
|
|
39
40
|
}, []);
|
|
40
41
|
return (0, common_1.useObjectMemo)({ showSightGuidelines: showSightGuidelines, handleDisableSightGuidelines: handleDisableSightGuidelines });
|
|
41
42
|
}
|
|
42
|
-
exports.usePhotoCaptureSightGuidelines = usePhotoCaptureSightGuidelines;
|
|
@@ -9,7 +9,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
9
9
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.usePhotoCaptureSightState =
|
|
12
|
+
exports.usePhotoCaptureSightState = usePhotoCaptureSightState;
|
|
13
13
|
var react_1 = require("react");
|
|
14
14
|
var network_1 = require("@monkvision/network");
|
|
15
15
|
var monitoring_1 = require("@monkvision/monitoring");
|
|
@@ -221,4 +221,3 @@ function usePhotoCaptureSightState(_a) {
|
|
|
221
221
|
isInspectionCompliant: isInspectionCompliant,
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
exports.usePhotoCaptureSightState = usePhotoCaptureSightState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePhotoCaptureSightTutorial =
|
|
3
|
+
exports.usePhotoCaptureSightTutorial = usePhotoCaptureSightTutorial;
|
|
4
4
|
var common_1 = require("@monkvision/common");
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
/**
|
|
@@ -13,4 +13,3 @@ function usePhotoCaptureSightTutorial() {
|
|
|
13
13
|
};
|
|
14
14
|
return (0, common_1.useObjectMemo)({ showSightTutorial: showSightTutorial, toggleSightTutorial: toggleSightTutorial });
|
|
15
15
|
}
|
|
16
|
-
exports.usePhotoCaptureSightTutorial = usePhotoCaptureSightTutorial;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TutorialSteps = exports.STORAGE_KEY_PHOTO_CAPTURE_TUTORIAL = void 0;
|
|
4
|
+
exports.usePhotoCaptureTutorial = usePhotoCaptureTutorial;
|
|
4
5
|
var react_1 = require("react");
|
|
5
6
|
var types_1 = require("@monkvision/types");
|
|
6
7
|
var common_1 = require("@monkvision/common");
|
|
@@ -26,7 +27,7 @@ var TutorialSteps;
|
|
|
26
27
|
* Sight step.
|
|
27
28
|
*/
|
|
28
29
|
TutorialSteps["SIGHT"] = "sight";
|
|
29
|
-
})(TutorialSteps
|
|
30
|
+
})(TutorialSteps || (exports.TutorialSteps = TutorialSteps = {}));
|
|
30
31
|
function getTutorialState(enableTutorial) {
|
|
31
32
|
var isFirstTime = !!localStorage.getItem(exports.STORAGE_KEY_PHOTO_CAPTURE_TUTORIAL);
|
|
32
33
|
return enableTutorial === types_1.PhotoCaptureTutorialOption.DISABLED ||
|
|
@@ -63,4 +64,3 @@ function usePhotoCaptureTutorial(_a) {
|
|
|
63
64
|
}, []);
|
|
64
65
|
return (0, common_1.useObjectMemo)({ currentTutorialStep: currentTutorialStep, goToNextTutorialStep: goToNextTutorialStep, closeTutorial: closeTutorial });
|
|
65
66
|
}
|
|
66
|
-
exports.usePhotoCaptureTutorial = usePhotoCaptureTutorial;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { MonkApiConfig } from '@monkvision/network';
|
|
3
2
|
import { CameraConfig, VideoCaptureAppConfig } from '@monkvision/types';
|
|
4
3
|
/**
|
|
@@ -25,4 +24,4 @@ export interface VideoCaptureProps extends Pick<VideoCaptureAppConfig, keyof Cam
|
|
|
25
24
|
*/
|
|
26
25
|
lang?: string | null;
|
|
27
26
|
}
|
|
28
|
-
export declare function VideoCapture({ inspectionId, apiConfig, additionalTasks, startTasksOnComplete, enforceOrientation, minRecordingDuration, maxRetryCount, enableFastWalkingWarning, enablePhoneShakingWarning, fastWalkingWarningCooldown, phoneShakingWarningCooldown, onComplete, lang, }: VideoCaptureProps): JSX.Element;
|
|
27
|
+
export declare function VideoCapture({ inspectionId, apiConfig, additionalTasks, startTasksOnComplete, enforceOrientation, minRecordingDuration, maxRetryCount, enableFastWalkingWarning, enablePhoneShakingWarning, fastWalkingWarningCooldown, phoneShakingWarningCooldown, onComplete, lang, }: VideoCaptureProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.VideoCapture =
|
|
3
|
+
exports.VideoCapture = VideoCapture;
|
|
15
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
5
|
var common_1 = require("@monkvision/common");
|
|
17
6
|
var react_1 = require("react");
|
|
@@ -76,6 +65,5 @@ function VideoCapture(_a) {
|
|
|
76
65
|
startTasksLoading: startTasksLoading,
|
|
77
66
|
onComplete: handleComplete,
|
|
78
67
|
};
|
|
79
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
68
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: VideoCapture_styles_1.styles['container'], children: [screen === VideoCaptureScreen.PERMISSIONS && ((0, jsx_runtime_1.jsx)(VideoCapturePermissions_1.VideoCapturePermissions, { requestCompassPermission: requestCompassPermission, onSuccess: function () { return setScreen(VideoCaptureScreen.CAPTURE); } })), screen === VideoCaptureScreen.CAPTURE && ((0, jsx_runtime_1.jsx)(camera_web_1.Camera, { HUDComponent: VideoCaptureHUD_1.VideoCaptureHUD, hudProps: hudProps }))] }));
|
|
80
69
|
}
|
|
81
|
-
exports.VideoCapture = VideoCapture;
|
|
@@ -41,4 +41,4 @@ export interface VideoCaptureHUDProps extends CameraHUDProps, Pick<UseVideoRecor
|
|
|
41
41
|
/**
|
|
42
42
|
* HUD component displayed on top of the camera preview for the VideoCapture process.
|
|
43
43
|
*/
|
|
44
|
-
export declare function VideoCaptureHUD({ handle, cameraPreview, inspectionId, apiConfig, isRecording, setIsRecording, enforceOrientation, alpha, fastMovementsWarning, onWarningDismiss, maxRetryCount, minRecordingDuration, startTasksLoading, onComplete, }: VideoCaptureHUDProps): JSX.Element;
|
|
44
|
+
export declare function VideoCaptureHUD({ handle, cameraPreview, inspectionId, apiConfig, isRecording, setIsRecording, enforceOrientation, alpha, fastMovementsWarning, onWarningDismiss, maxRetryCount, minRecordingDuration, startTasksLoading, onComplete, }: VideoCaptureHUDProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -20,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
9
|
});
|
|
21
10
|
};
|
|
22
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
15
|
function step(op) {
|
|
27
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -47,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
36
|
}
|
|
48
37
|
};
|
|
49
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.VideoCaptureHUD =
|
|
39
|
+
exports.VideoCaptureHUD = VideoCaptureHUD;
|
|
51
40
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
52
41
|
var react_1 = require("react");
|
|
53
42
|
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
@@ -85,7 +74,7 @@ function getTooltipLabel(tooltip) {
|
|
|
85
74
|
case hooks_1.VideoRecordingTooltip.END:
|
|
86
75
|
return 'video.recording.tooltip.end';
|
|
87
76
|
default:
|
|
88
|
-
return
|
|
77
|
+
return '';
|
|
89
78
|
}
|
|
90
79
|
}
|
|
91
80
|
/**
|
|
@@ -153,6 +142,5 @@ function VideoCaptureHUD(_a) {
|
|
|
153
142
|
resumeRecording();
|
|
154
143
|
}
|
|
155
144
|
}, [fastMovementsWarning, pauseRecording, resumeRecording]);
|
|
156
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
145
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: VideoCaptureHUD_styles_1.styles['container'], children: [cameraPreview, (0, jsx_runtime_1.jsxs)("div", { style: VideoCaptureHUD_styles_1.styles['hudContainer'], children: [screen === VideoCaptureHUDScreen.TUTORIAL && ((0, jsx_runtime_1.jsx)(VideoCaptureTutorial_1.VideoCaptureTutorial, { onClose: function () { return setScreen(VideoCaptureHUDScreen.RECORDING); } })), screen === VideoCaptureHUDScreen.RECORDING && ((0, jsx_runtime_1.jsx)(VideoCaptureRecording_1.VideoCaptureRecording, { walkaroundPosition: isRecording || isRecordingPaused ? walkaroundPosition : 0, isRecording: isRecording, isRecordingPaused: isRecordingPaused, recordingDurationMs: recordingDurationMs, onClickRecordVideo: onClickRecordVideo, onClickTakePicture: handleTakePictureClick, tooltip: tooltip ? t(getTooltipLabel(tooltip)) : undefined })), screen === VideoCaptureHUDScreen.PROCESSING && ((0, jsx_runtime_1.jsx)(VideoCaptureProcessing_1.VideoCaptureProcessing, { inspectionId: inspectionId, processedFrames: processedFrames, totalProcessingFrames: totalProcessingFrames, uploadedFrames: uploadedFrames, totalUploadingFrames: totalUploadingFrames, loading: startTasksLoading, onComplete: onComplete }))] }), (0, jsx_runtime_1.jsx)(common_ui_web_1.BackdropDialog, { show: isDiscardDialogDisplayed, message: t('video.recording.discardDialog.message'), confirmLabel: t('video.recording.discardDialog.keepRecording'), cancelLabel: t('video.recording.discardDialog.discardVideo'), onConfirm: onDiscardDialogKeepRecording, onCancel: onDiscardDialogDiscardVideo }), (0, jsx_runtime_1.jsx)(common_ui_web_1.BackdropDialog, { show: fastMovementsWarning !== null, message: t(getFastMovementsWarningMessage(fastMovementsWarning)), confirmLabel: t('video.recording.fastMovementsDialog.confirm'), onConfirm: onWarningDismiss, showCancelButton: false, dialogIcon: 'warning-outline', dialogIconPrimaryColor: 'caution' }), (0, jsx_runtime_1.jsx)(components_1.OrientationEnforcer, { orientation: enforceOrientation })] }));
|
|
157
146
|
}
|
|
158
|
-
exports.VideoCaptureHUD = VideoCaptureHUD;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { VideoCaptureRecordingProps } from './VideoCaptureRecording.types';
|
|
3
2
|
/**
|
|
4
3
|
* HUD used in recording mode displayed on top of the camera in the VideoCaputre process.
|
|
5
4
|
*/
|
|
6
|
-
export declare function VideoCaptureRecording({ walkaroundPosition, isRecording, isRecordingPaused, recordingDurationMs, onClickRecordVideo, onClickTakePicture, tooltip, }: VideoCaptureRecordingProps): JSX.Element;
|
|
5
|
+
export declare function VideoCaptureRecording({ walkaroundPosition, isRecording, isRecordingPaused, recordingDurationMs, onClickRecordVideo, onClickTakePicture, tooltip, }: VideoCaptureRecordingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.VideoCaptureRecording =
|
|
3
|
+
exports.VideoCaptureRecording = VideoCaptureRecording;
|
|
15
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
5
|
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
17
6
|
var VideoCaptureRecordingStyles_1 = require("./VideoCaptureRecordingStyles");
|
|
@@ -33,6 +22,5 @@ function VideoCaptureRecording(_a) {
|
|
|
33
22
|
showTakePictureFlash();
|
|
34
23
|
onClickTakePicture === null || onClickTakePicture === void 0 ? void 0 : onClickTakePicture();
|
|
35
24
|
};
|
|
36
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { style: indicators, children: (isRecording || isRecordingPaused) && ((0, jsx_runtime_1.jsx)("div", { style: recordingDuration, children: formatRecordingDuration(recordingDurationMs) })) }), (0, jsx_runtime_1.jsxs)("div", { style: controls, children: [(0, jsx_runtime_1.jsx)("div", { style: walkaroundIndicator, "data-testid": 'walkaround-indicator-container', children: (0, jsx_runtime_1.jsx)(common_ui_web_1.VehicleWalkaroundIndicator, { alpha: walkaroundPosition }) }), (0, jsx_runtime_1.jsx)(common_ui_web_1.RecordVideoButton, { isRecording: isRecording, onClick: onClickRecordVideo, tooltip: tooltip, tooltipPosition: tooltipPosition }), (0, jsx_runtime_1.jsx)(common_ui_web_1.TakePictureButton, { onClick: handleTakePictureClick, disabled: !isRecording })] }), (0, jsx_runtime_1.jsx)("div", { style: takePictureFlash })] }));
|
|
37
26
|
}
|
|
38
|
-
exports.VideoCaptureRecording = VideoCaptureRecording;
|