@monkvision/inspection-capture-web 5.2.4 → 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
package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecordingStyles.js
CHANGED
|
@@ -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.useVideoCaptureRecordingStyles = useVideoCaptureRecordingStyles;
|
|
15
16
|
var common_1 = require("@monkvision/common");
|
|
16
17
|
var react_1 = require("react");
|
|
17
18
|
exports.styles = {
|
|
@@ -102,4 +103,3 @@ function useVideoCaptureRecordingStyles(_a) {
|
|
|
102
103
|
tooltipPosition: (isPortrait ? 'up' : 'left'),
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
|
-
exports.useVideoCaptureRecordingStyles = useVideoCaptureRecordingStyles;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Props accepted by the VideoCaptureTutorial component.
|
|
4
3
|
*/
|
|
@@ -11,4 +10,4 @@ export interface VideoCaptureTutorialProps {
|
|
|
11
10
|
/**
|
|
12
11
|
* This component is a tutorial displayed on top of the camera when the user first starts the video capture.
|
|
13
12
|
*/
|
|
14
|
-
export declare function VideoCaptureTutorial({ onClose }: VideoCaptureTutorialProps): JSX.Element;
|
|
13
|
+
export declare function VideoCaptureTutorial({ onClose }: VideoCaptureTutorialProps): 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.VideoCaptureTutorial =
|
|
3
|
+
exports.VideoCaptureTutorial = VideoCaptureTutorial;
|
|
15
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
5
|
var react_i18next_1 = require("react-i18next");
|
|
17
6
|
var VideoCapturePageLayout_1 = require("../../VideoCapturePageLayout");
|
|
@@ -25,6 +14,5 @@ function VideoCaptureTutorial(_a) {
|
|
|
25
14
|
onClick: onClose,
|
|
26
15
|
children: t('video.tutorial.confirm'),
|
|
27
16
|
};
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(VideoCapturePageLayout_1.VideoCapturePageLayout,
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(VideoCapturePageLayout_1.VideoCapturePageLayout, { showBackdrop: true, confirmButtonProps: confirmButtonProps, children: [(0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.PageLayoutItem, { icon: 'car-arrow', title: t('video.tutorial.start.title'), description: t('video.tutorial.start.description') }), (0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.PageLayoutItem, { icon: '360', title: t('video.tutorial.finish.title'), description: t('video.tutorial.finish.description') }), (0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.PageLayoutItem, { icon: 'circle-dot', title: t('video.tutorial.photos.title'), description: t('video.tutorial.photos.description') })] }));
|
|
29
18
|
}
|
|
30
|
-
exports.VideoCaptureTutorial = VideoCaptureTutorial;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconName } from '@monkvision/common-ui-web';
|
|
3
2
|
/**
|
|
4
3
|
* Props accepted by the PageLayoutItem component.
|
|
@@ -20,4 +19,4 @@ export interface PageLayoutItemProps {
|
|
|
20
19
|
/**
|
|
21
20
|
* A custom list item that is displayed in VideoCapture Intro screens.
|
|
22
21
|
*/
|
|
23
|
-
export declare function PageLayoutItem({ icon, title, description }: PageLayoutItemProps): JSX.Element;
|
|
22
|
+
export declare function PageLayoutItem({ icon, title, description }: PageLayoutItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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.PageLayoutItem =
|
|
14
|
+
exports.PageLayoutItem = PageLayoutItem;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
17
17
|
var PageLayoutItem_styles_1 = require("./PageLayoutItem.styles");
|
|
@@ -21,6 +21,5 @@ var PageLayoutItem_styles_1 = require("./PageLayoutItem.styles");
|
|
|
21
21
|
function PageLayoutItem(_a) {
|
|
22
22
|
var icon = _a.icon, title = _a.title, description = _a.description;
|
|
23
23
|
var _b = (0, PageLayoutItem_styles_1.usePageLayoutItemStyles)(), iconProps = _b.iconProps, titleStyle = _b.titleStyle, descriptionStyle = _b.descriptionStyle;
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: PageLayoutItem_styles_1.styles['container'], children: [(0, jsx_runtime_1.jsx)(common_ui_web_1.Icon, __assign({ icon: icon }, iconProps)), (0, jsx_runtime_1.jsxs)("div", { style: PageLayoutItem_styles_1.styles['labels'], children: [(0, jsx_runtime_1.jsx)("div", { style: titleStyle, children: title }), (0, jsx_runtime_1.jsx)("div", { style: descriptionStyle, children: description })] })] }));
|
|
25
25
|
}
|
|
26
|
-
exports.PageLayoutItem = PageLayoutItem;
|
|
@@ -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 = exports.PAGE_LAYOUT_MAX_HEIGHT_BREAKPOINT = void 0;
|
|
15
|
+
exports.usePageLayoutItemStyles = usePageLayoutItemStyles;
|
|
15
16
|
var common_1 = require("@monkvision/common");
|
|
16
17
|
exports.PAGE_LAYOUT_MAX_HEIGHT_BREAKPOINT = 600;
|
|
17
18
|
exports.styles = {
|
|
@@ -69,4 +70,3 @@ function usePageLayoutItemStyles() {
|
|
|
69
70
|
descriptionStyle: __assign(__assign({}, exports.styles['description']), responsive(exports.styles['descriptionSmall'])),
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
exports.usePageLayoutItemStyles = usePageLayoutItemStyles;
|
|
@@ -4,4 +4,4 @@ import { VideoCapturePageLayoutProps } from './VideoCapturePageLayout.types';
|
|
|
4
4
|
* This component is used to display the same layout for every "default" screen for the VideoCapture process (the
|
|
5
5
|
* premissions screen, the tutorial etc.).
|
|
6
6
|
*/
|
|
7
|
-
export declare function VideoCapturePageLayout({ showBackdrop, showTitle, confirmButtonProps, children, }: PropsWithChildren<VideoCapturePageLayoutProps>): JSX.Element;
|
|
7
|
+
export declare function VideoCapturePageLayout({ showBackdrop, showTitle, confirmButtonProps, children, }: PropsWithChildren<VideoCapturePageLayoutProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,8 +10,19 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
13
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.VideoCapturePageLayout =
|
|
25
|
+
exports.VideoCapturePageLayout = VideoCapturePageLayout;
|
|
15
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
27
|
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
17
28
|
var react_i18next_1 = require("react-i18next");
|
|
@@ -27,6 +38,6 @@ function VideoCapturePageLayout(_a) {
|
|
|
27
38
|
var _d = (0, VideoCapturePageLayout_styles_1.useVideoCapturePageLayoutStyles)({
|
|
28
39
|
showBackdrop: showBackdrop,
|
|
29
40
|
}), logoProps = _d.logoProps, containerStyle = _d.containerStyle, titleStyle = _d.titleStyle;
|
|
30
|
-
|
|
41
|
+
var _e = confirmButtonProps !== null && confirmButtonProps !== void 0 ? confirmButtonProps : {}, _ = _e.children, restConfirmButtonProps = __rest(_e, ["children"]);
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: containerStyle, children: [(0, jsx_runtime_1.jsx)(common_ui_web_1.DynamicSVG, __assign({ svg: logos_asset_1.monkLogoSVG }, logoProps)), showTitle && (0, jsx_runtime_1.jsx)("div", { style: titleStyle, children: t('video.introduction.title') }), (0, jsx_runtime_1.jsx)("div", { style: VideoCapturePageLayout_styles_1.styles['childrenContainer'], children: children }), (0, jsx_runtime_1.jsx)("div", { style: VideoCapturePageLayout_styles_1.styles['confirmContainer'], children: (0, jsx_runtime_1.jsx)(common_ui_web_1.Button, __assign({}, restConfirmButtonProps)) })] }));
|
|
31
43
|
}
|
|
32
|
-
exports.VideoCapturePageLayout = VideoCapturePageLayout;
|
|
@@ -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.useVideoCapturePageLayoutStyles = useVideoCapturePageLayoutStyles;
|
|
15
16
|
var react_1 = require("react");
|
|
16
17
|
var common_1 = require("@monkvision/common");
|
|
17
18
|
var PageLayoutItem_styles_1 = require("./PageLayoutItem/PageLayoutItem.styles");
|
|
@@ -84,4 +85,3 @@ function useVideoCapturePageLayoutStyles(_a) {
|
|
|
84
85
|
titleStyle: __assign(__assign({}, exports.styles['title']), responsive(exports.styles['titleSmall'])),
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
|
-
exports.useVideoCapturePageLayoutStyles = useVideoCapturePageLayoutStyles;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Props accepted by the VideoCapturePermissions component.
|
|
4
3
|
*/
|
|
@@ -16,4 +15,4 @@ export interface VideoCapturePermissionsProps {
|
|
|
16
15
|
* Component displayed in the Permissions view of the video capture. Used to make sure the current app has the proper
|
|
17
16
|
* permissions before moving forward.
|
|
18
17
|
*/
|
|
19
|
-
export declare function VideoCapturePermissions({ requestCompassPermission, onSuccess, }: VideoCapturePermissionsProps): JSX.Element;
|
|
18
|
+
export declare function VideoCapturePermissions({ requestCompassPermission, onSuccess, }: VideoCapturePermissionsProps): 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.VideoCapturePermissions =
|
|
39
|
+
exports.VideoCapturePermissions = VideoCapturePermissions;
|
|
51
40
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
52
41
|
var react_i18next_1 = require("react-i18next");
|
|
53
42
|
var common_1 = require("@monkvision/common");
|
|
@@ -102,6 +91,5 @@ function VideoCapturePermissions(_a) {
|
|
|
102
91
|
loading: loading,
|
|
103
92
|
children: t('video.permissions.confirm'),
|
|
104
93
|
};
|
|
105
|
-
return ((0, jsx_runtime_1.jsxs)(VideoCapturePageLayout_1.VideoCapturePageLayout,
|
|
94
|
+
return ((0, jsx_runtime_1.jsxs)(VideoCapturePageLayout_1.VideoCapturePageLayout, { confirmButtonProps: confirmButtonProps, children: [(0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.PageLayoutItem, { icon: 'camera-outline', title: t('video.permissions.camera.title'), description: t('video.permissions.camera.description') }), (0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.PageLayoutItem, { icon: 'compass-outline', title: t('video.permissions.compass.title'), description: t('video.permissions.compass.description') })] }));
|
|
106
95
|
}
|
|
107
|
-
exports.VideoCapturePermissions = VideoCapturePermissions;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { VideoCaptureProcessingProps } from './VideoCaptureProcessing.types';
|
|
3
2
|
/**
|
|
4
3
|
* Component displayed at the end of the VideoCapture process, used to display progress indicators for the processing
|
|
5
4
|
* and uploading of video frames.
|
|
6
5
|
*/
|
|
7
|
-
export declare function VideoCaptureProcessing({ inspectionId, processedFrames, totalProcessingFrames, uploadedFrames, totalUploadingFrames, loading, onComplete, }: VideoCaptureProcessingProps): JSX.Element;
|
|
6
|
+
export declare function VideoCaptureProcessing({ inspectionId, processedFrames, totalProcessingFrames, uploadedFrames, totalUploadingFrames, loading, onComplete, }: VideoCaptureProcessingProps): 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.VideoCaptureProcessing =
|
|
3
|
+
exports.VideoCaptureProcessing = VideoCaptureProcessing;
|
|
15
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
5
|
var react_i18next_1 = require("react-i18next");
|
|
17
6
|
var VideoCapturePageLayout_1 = require("../VideoCapturePageLayout");
|
|
@@ -39,6 +28,5 @@ function VideoCaptureProcessing(_a) {
|
|
|
39
28
|
disabled: processingProgress < 1 || uploadingProgress < 1 || !!loading.error,
|
|
40
29
|
children: t('video.processing.done'),
|
|
41
30
|
};
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.VideoCapturePageLayout,
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.VideoCapturePageLayout, { showBackdrop: true, showTitle: false, confirmButtonProps: confirmButtonProps, children: (0, jsx_runtime_1.jsxs)("div", { style: containerStyle, children: [!loading.error && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { style: VideoCaptureProcessing_styles_1.styles['labelContainer'], children: [(0, jsx_runtime_1.jsx)("div", { children: t(getLabel(processingProgress, uploadingProgress)) }), (0, jsx_runtime_1.jsxs)("div", { children: [Math.floor(progress * 100), "%"] })] }), (0, jsx_runtime_1.jsx)("div", { style: progressBarContainerStyle, children: (0, jsx_runtime_1.jsx)("div", { style: progressBarStyle, "data-testid": 'progress-bar' }) })] })), typeof loading.error === 'string' && ((0, jsx_runtime_1.jsxs)("div", { style: VideoCaptureProcessing_styles_1.styles['errorMessage'], children: [t('video.processing.error'), " ", inspectionId] }))] }) }));
|
|
43
32
|
}
|
|
44
|
-
exports.VideoCaptureProcessing = VideoCaptureProcessing;
|