@monkvision/inspection-capture-web 5.2.5 → 5.3.1
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,8 @@ 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.
|
|
14
|
+
exports.styles = void 0;
|
|
15
|
+
exports.usePhotoCaptureHUDSightTutorialStyles = usePhotoCaptureHUDSightTutorialStyles;
|
|
15
16
|
var common_1 = require("@monkvision/common");
|
|
16
17
|
var react_1 = require("react");
|
|
17
18
|
var BORDER_WIDTH = 2;
|
|
@@ -165,4 +166,3 @@ function usePhotoCaptureHUDSightTutorialStyles(show, tutorialImage) {
|
|
|
165
166
|
},
|
|
166
167
|
};
|
|
167
168
|
}
|
|
168
|
-
exports.usePhotoCaptureHUDSightTutorialStyles = usePhotoCaptureHUDSightTutorialStyles;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TutorialSteps } from '../../hooks';
|
|
3
2
|
export interface ArrowIconProps {
|
|
4
3
|
tutorialStep: TutorialSteps | null;
|
|
5
4
|
}
|
|
6
|
-
export declare function ArrowIcon({ tutorialStep }: ArrowIconProps): JSX.Element | null;
|
|
5
|
+
export declare function ArrowIcon({ tutorialStep }: ArrowIconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrowIcon =
|
|
3
|
+
exports.ArrowIcon = ArrowIcon;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
6
6
|
var hooks_1 = require("../../hooks");
|
|
@@ -16,4 +16,3 @@ function ArrowIcon(_a) {
|
|
|
16
16
|
}
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
|
-
exports.ArrowIcon = ArrowIcon;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TutorialSteps } from '../../hooks';
|
|
3
2
|
export interface DisplayTextProps {
|
|
4
3
|
tutorialStep: TutorialSteps | null;
|
|
5
4
|
}
|
|
6
|
-
export declare function DisplayText({ tutorialStep }: DisplayTextProps): JSX.Element;
|
|
5
|
+
export declare function DisplayText({ tutorialStep }: DisplayTextProps): 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.DisplayText =
|
|
3
|
+
exports.DisplayText = DisplayText;
|
|
15
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
5
|
var react_i18next_1 = require("react-i18next");
|
|
17
6
|
var PhotoCaptureHUDTutorial_styles_1 = require("./PhotoCaptureHUDTutorial.styles");
|
|
@@ -19,6 +8,5 @@ function DisplayText(_a) {
|
|
|
19
8
|
var tutorialStep = _a.tutorialStep;
|
|
20
9
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
21
10
|
var textArray = t("photo.hud.tutorial.".concat(tutorialStep)).split(/<br\s*\/?>/);
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: PhotoCaptureHUDTutorial_styles_1.styles['text'], children: [(0, jsx_runtime_1.jsx)("div", { style: PhotoCaptureHUDTutorial_styles_1.styles['title'], "data-testid": 'title', children: t('photo.hud.tutorial.title') }), textArray.map(function (value, index) { return ((0, jsx_runtime_1.jsxs)("div", { "data-testid": "text".concat(index), children: [value, index < textArray.length - 1 && (0, jsx_runtime_1.jsx)("br", {})] }, index)); })] }));
|
|
23
12
|
}
|
|
24
|
-
exports.DisplayText = DisplayText;
|
package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PhotoCaptureAppConfig } from '@monkvision/types';
|
|
3
2
|
import { TutorialSteps } from '../../hooks';
|
|
4
3
|
/**
|
|
@@ -29,4 +28,4 @@ export interface PhotoCaptureHUDTutorialProps extends Pick<PhotoCaptureAppConfig
|
|
|
29
28
|
/**
|
|
30
29
|
* Component that displays an tutorial overlay on top of the PhotoCapture component.
|
|
31
30
|
*/
|
|
32
|
-
export declare function PhotoCaptureHUDTutorial({ currentTutorialStep, allowSkipTutorial, sightGuidelines, sightId, onNextTutorialStep, onCloseTutorial, addDamage, toggleSightTutorial, }: PhotoCaptureHUDTutorialProps): JSX.Element | null;
|
|
31
|
+
export declare function PhotoCaptureHUDTutorial({ currentTutorialStep, allowSkipTutorial, sightGuidelines, sightId, onNextTutorialStep, onCloseTutorial, addDamage, toggleSightTutorial, }: PhotoCaptureHUDTutorialProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -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.PhotoCaptureHUDTutorial =
|
|
14
|
+
exports.PhotoCaptureHUDTutorial = PhotoCaptureHUDTutorial;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var react_i18next_1 = require("react-i18next");
|
|
17
17
|
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
@@ -34,6 +34,5 @@ function PhotoCaptureHUDTutorial(_a) {
|
|
|
34
34
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
35
35
|
var primaryColor = (0, hooks_2.useColorBackground)();
|
|
36
36
|
var style = (0, hooks_3.usePhotoCaptureHUDTutorialStyle)();
|
|
37
|
-
return currentTutorialStep ? ((0, jsx_runtime_1.jsx)("div",
|
|
37
|
+
return currentTutorialStep ? ((0, jsx_runtime_1.jsx)("div", { style: PhotoCaptureHUDTutorial_styles_1.styles['backdropContainer'], "data-testid": 'backdrop', children: (0, jsx_runtime_1.jsxs)("div", { style: style.elementsContainer, children: [(0, jsx_runtime_1.jsxs)("div", { style: PhotoCaptureHUDTutorial_styles_1.styles['topContainer'], children: [(0, jsx_runtime_1.jsxs)("div", { style: PhotoCaptureHUDTutorial_styles_1.styles['buttonsContainer'], children: [(0, jsx_runtime_1.jsx)("div", { style: PhotoCaptureHUDTutorial_styles_1.styles['closeButtonTwin'] }), (0, jsx_runtime_1.jsx)(PhotoCaptureHUDElementsSight_1.SightGuideline, { sightId: sightId, sightGuidelines: sightGuidelines, disabled: currentTutorialStep !== hooks_1.TutorialSteps.GUIDELINE, addDamage: addDamage, enableDefaultMessage: true }), currentTutorialStep === hooks_1.TutorialSteps.SIGHT_TUTORIAL && ((0, jsx_runtime_1.jsx)(components_1.SightTutorialButton, { toggleSightTutorial: toggleSightTutorial, style: PhotoCaptureHUDTutorial_styles_1.styles['sightTutorialBtn'] })), (0, jsx_runtime_1.jsx)(common_ui_web_1.Button, { style: __assign(__assign({}, PhotoCaptureHUDTutorial_styles_1.styles['closeButton']), getButtonStyle(allowSkipTutorial)), disabled: !allowSkipTutorial, icon: 'close', primaryColor: primaryColor, onClick: onCloseTutorial })] }), (0, jsx_runtime_1.jsx)("div", { style: PhotoCaptureHUDTutorial_styles_1.styles['arrows'], children: (0, jsx_runtime_1.jsx)(ArrowIcon_1.ArrowIcon, { tutorialStep: currentTutorialStep }) })] }), (0, jsx_runtime_1.jsx)(DisplayText_1.DisplayText, { tutorialStep: currentTutorialStep }), (0, jsx_runtime_1.jsx)(common_ui_web_1.Button, { style: PhotoCaptureHUDTutorial_styles_1.styles['nextButton'], primaryColor: 'primary', onClick: onNextTutorialStep, children: t('photo.hud.tutorial.next') })] }) })) : null;
|
|
38
38
|
}
|
|
39
|
-
exports.PhotoCaptureHUDTutorial = PhotoCaptureHUDTutorial;
|