@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,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.useZoomOutShotStyles =
|
|
14
|
+
exports.useZoomOutShotStyles = useZoomOutShotStyles;
|
|
15
15
|
var common_1 = require("@monkvision/common");
|
|
16
16
|
var ZoomOutShot_styles_1 = require("./ZoomOutShot.styles");
|
|
17
17
|
function useZoomOutShotStyles() {
|
|
@@ -21,4 +21,3 @@ function useZoomOutShotStyles() {
|
|
|
21
21
|
infoBtn: __assign(__assign({}, ZoomOutShot_styles_1.styles['infoBtn']), responsive(ZoomOutShot_styles_1.styles['infoBtnPortrait'])),
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
exports.useZoomOutShotStyles = useZoomOutShotStyles;
|
package/lib/errors.js
CHANGED
|
@@ -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 = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useAdaptiveCameraConfig =
|
|
4
|
+
exports.useAdaptiveCameraConfig = useAdaptiveCameraConfig;
|
|
5
5
|
var types_1 = require("@monkvision/types");
|
|
6
6
|
var react_1 = require("react");
|
|
7
7
|
var common_1 = require("@monkvision/common");
|
|
@@ -77,4 +77,3 @@ function useAdaptiveCameraConfig(_a) {
|
|
|
77
77
|
},
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
exports.useAdaptiveCameraConfig = useAdaptiveCameraConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useAddDamageMode =
|
|
3
|
+
exports.useAddDamageMode = useAddDamageMode;
|
|
4
4
|
var react_1 = require("react");
|
|
5
5
|
var common_1 = require("@monkvision/common");
|
|
6
6
|
var analytics_1 = require("@monkvision/analytics");
|
|
@@ -73,4 +73,3 @@ function useAddDamageMode(_a) {
|
|
|
73
73
|
handleValidateVehicleParts: handleValidateVehicleParts,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
exports.useAddDamageMode = useAddDamageMode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useBadConnectionWarning =
|
|
3
|
+
exports.useBadConnectionWarning = useBadConnectionWarning;
|
|
4
4
|
var react_1 = require("react");
|
|
5
5
|
var common_1 = require("@monkvision/common");
|
|
6
6
|
/**
|
|
@@ -36,4 +36,3 @@ function useBadConnectionWarning(_a) {
|
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
exports.useBadConnectionWarning = useBadConnectionWarning;
|
|
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
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 =
|
|
23
|
+
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);
|
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -46,8 +46,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
50
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
51
|
+
if (ar || !(i in from)) {
|
|
52
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
53
|
+
ar[i] = from[i];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
57
|
+
};
|
|
49
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.useCaptureDuration =
|
|
59
|
+
exports.useCaptureDuration = useCaptureDuration;
|
|
51
60
|
var common_1 = require("@monkvision/common");
|
|
52
61
|
var network_1 = require("@monkvision/network");
|
|
53
62
|
var react_1 = require("react");
|
|
@@ -81,10 +90,14 @@ function useCaptureDuration(_a) {
|
|
|
81
90
|
isActive.current = true;
|
|
82
91
|
}
|
|
83
92
|
}, []);
|
|
84
|
-
var updateDuration = (0, react_1.useCallback)(function (
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
var updateDuration = (0, react_1.useCallback)(function () {
|
|
94
|
+
var args_1 = [];
|
|
95
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
96
|
+
args_1[_i] = arguments[_i];
|
|
97
|
+
}
|
|
98
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (forceUpdate) {
|
|
87
99
|
var existingDuration_1, err_1;
|
|
100
|
+
if (forceUpdate === void 0) { forceUpdate = false; }
|
|
88
101
|
return __generator(this, function (_a) {
|
|
89
102
|
switch (_a.label) {
|
|
90
103
|
case 0:
|
|
@@ -205,4 +218,3 @@ function useCaptureDuration(_a) {
|
|
|
205
218
|
]);
|
|
206
219
|
return (0, common_1.useObjectMemo)({ updateDuration: updateDuration });
|
|
207
220
|
}
|
|
208
|
-
exports.useCaptureDuration = useCaptureDuration;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useColorBackground =
|
|
3
|
+
exports.useColorBackground = useColorBackground;
|
|
4
4
|
var common_1 = require("@monkvision/common");
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
/**
|
|
@@ -10,6 +10,5 @@ function useColorBackground(opacity) {
|
|
|
10
10
|
if (opacity === void 0) { opacity = 0.64; }
|
|
11
11
|
var palette = (0, common_1.useMonkTheme)().palette;
|
|
12
12
|
var clampedOpacity = Math.max(0, Math.min(opacity, 1));
|
|
13
|
-
return (0, react_1.useMemo)(function () { return (0, common_1.changeAlpha)(palette.background.base,
|
|
13
|
+
return (0, react_1.useMemo)(function () { return (0, common_1.changeAlpha)(palette.background.base, clampedOpacity); }, [palette, clampedOpacity]);
|
|
14
14
|
}
|
|
15
|
-
exports.useColorBackground = useColorBackground;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useEnforceOrientation =
|
|
3
|
+
exports.useEnforceOrientation = useEnforceOrientation;
|
|
4
4
|
var common_1 = require("@monkvision/common");
|
|
5
5
|
var types_1 = require("@monkvision/types");
|
|
6
6
|
/**
|
|
@@ -11,4 +11,3 @@ function useEnforceOrientation(orientation) {
|
|
|
11
11
|
var dimensions = (0, common_1.useWindowDimensions)();
|
|
12
12
|
return !!orientation && (orientation === types_1.DeviceOrientation.PORTRAIT) !== dimensions.isPortrait;
|
|
13
13
|
}
|
|
14
|
-
exports.useEnforceOrientation = useEnforceOrientation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePhotoCaptureImages =
|
|
3
|
+
exports.usePhotoCaptureImages = usePhotoCaptureImages;
|
|
4
4
|
var common_1 = require("@monkvision/common");
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
/**
|
|
@@ -10,4 +10,3 @@ function usePhotoCaptureImages(inspectionId) {
|
|
|
10
10
|
var state = (0, common_1.useMonkState)().state;
|
|
11
11
|
return (0, react_1.useMemo)(function () { return (0, common_1.getInspectionImages)(inspectionId, state.images, undefined, true); }, [state.images, inspectionId]);
|
|
12
12
|
}
|
|
13
|
-
exports.usePhotoCaptureImages = usePhotoCaptureImages;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePictureTaken =
|
|
3
|
+
exports.usePictureTaken = usePictureTaken;
|
|
4
4
|
var react_1 = require("react");
|
|
5
5
|
var analytics_1 = require("@monkvision/analytics");
|
|
6
6
|
var types_1 = require("../types");
|
|
@@ -55,4 +55,3 @@ function usePictureTaken(_a) {
|
|
|
55
55
|
onPictureTaken,
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
|
-
exports.usePictureTaken = usePictureTaken;
|
|
@@ -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.useStartTasksOnComplete =
|
|
39
|
+
exports.useStartTasksOnComplete = useStartTasksOnComplete;
|
|
40
40
|
var types_1 = require("@monkvision/types");
|
|
41
41
|
var common_1 = require("@monkvision/common");
|
|
42
42
|
var network_1 = require("@monkvision/network");
|
|
@@ -101,4 +101,3 @@ function useStartTasksOnComplete(_a) {
|
|
|
101
101
|
});
|
|
102
102
|
}); }, [startTasksOnComplete, loading, sights, tasksBySight, inspectionId, handleError]);
|
|
103
103
|
}
|
|
104
|
-
exports.useStartTasksOnComplete = useStartTasksOnComplete;
|
package/lib/hooks/useTracking.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useTracking =
|
|
3
|
+
exports.useTracking = useTracking;
|
|
4
4
|
var analytics_1 = require("@monkvision/analytics");
|
|
5
5
|
var monitoring_1 = require("@monkvision/monitoring");
|
|
6
6
|
var network_1 = require("@monkvision/network");
|
|
@@ -30,4 +30,3 @@ function useTracking(_a) {
|
|
|
30
30
|
}
|
|
31
31
|
}, [inspectionId, authToken]);
|
|
32
32
|
}
|
|
33
|
-
exports.useTracking = useTracking;
|
|
@@ -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.");
|
|
@@ -45,7 +45,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
45
45
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.useUploadQueue =
|
|
48
|
+
exports.useUploadQueue = useUploadQueue;
|
|
49
49
|
var common_1 = require("@monkvision/common");
|
|
50
50
|
var network_1 = require("@monkvision/network");
|
|
51
51
|
var types_1 = require("@monkvision/types");
|
|
@@ -136,4 +136,3 @@ function useUploadQueue(_a) {
|
|
|
136
136
|
});
|
|
137
137
|
}); });
|
|
138
138
|
}
|
|
139
|
-
exports.useUploadQueue = useUploadQueue;
|
package/lib/types.js
CHANGED
|
@@ -26,7 +26,7 @@ var CaptureMode;
|
|
|
26
26
|
* ADD_DAMAGE_PART_SELECT_SHOT mode : user is asked to take a close-up picture of a damage on the car part.
|
|
27
27
|
*/
|
|
28
28
|
CaptureMode["ADD_DAMAGE_PART_SELECT_SHOT"] = "add_damage_part_select_shot";
|
|
29
|
-
})(CaptureMode
|
|
29
|
+
})(CaptureMode || (exports.CaptureMode = CaptureMode = {}));
|
|
30
30
|
/**
|
|
31
31
|
* Enum of the different capture screen available in the capture process.
|
|
32
32
|
*/
|
|
@@ -40,4 +40,4 @@ var CaptureScreen;
|
|
|
40
40
|
* Gallery screen.
|
|
41
41
|
*/
|
|
42
42
|
CaptureScreen["GALLERY"] = "gallery";
|
|
43
|
-
})(CaptureScreen
|
|
43
|
+
})(CaptureScreen || (exports.CaptureScreen = CaptureScreen = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/inspection-capture-web",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"license": "BSD-3-Clause-Clear",
|
|
5
5
|
"packageManager": "yarn@3.2.4",
|
|
6
6
|
"description": "MonkJs inspection capture package for React (web) used to implement the Monk inspection capture workflow",
|
|
@@ -28,35 +28,34 @@
|
|
|
28
28
|
"lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@monkvision/analytics": "5.
|
|
32
|
-
"@monkvision/camera-web": "5.
|
|
33
|
-
"@monkvision/common": "5.
|
|
34
|
-
"@monkvision/common-ui-web": "5.
|
|
35
|
-
"@monkvision/network": "5.
|
|
36
|
-
"@monkvision/sights": "5.
|
|
31
|
+
"@monkvision/analytics": "5.3.1",
|
|
32
|
+
"@monkvision/camera-web": "5.3.1",
|
|
33
|
+
"@monkvision/common": "5.3.1",
|
|
34
|
+
"@monkvision/common-ui-web": "5.3.1",
|
|
35
|
+
"@monkvision/network": "5.3.1",
|
|
36
|
+
"@monkvision/sights": "5.3.1",
|
|
37
37
|
"i18next": "^23.4.5",
|
|
38
38
|
"react-i18next": "^13.2.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@auth0/auth0-react": "^2.2.4",
|
|
42
|
-
"react": "^
|
|
43
|
-
"react-dom": "^
|
|
42
|
+
"react": "^19.2.3",
|
|
43
|
+
"react-dom": "^19.2.3",
|
|
44
44
|
"react-router-dom": "^6.22.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@monkvision/eslint-config-base": "5.
|
|
48
|
-
"@monkvision/eslint-config-typescript": "5.
|
|
49
|
-
"@monkvision/eslint-config-typescript-react": "5.
|
|
50
|
-
"@monkvision/jest-config": "5.
|
|
51
|
-
"@monkvision/prettier-config": "5.
|
|
52
|
-
"@monkvision/test-utils": "5.
|
|
53
|
-
"@monkvision/typescript-config": "5.
|
|
54
|
-
"@testing-library/react": "^
|
|
55
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
47
|
+
"@monkvision/eslint-config-base": "5.3.1",
|
|
48
|
+
"@monkvision/eslint-config-typescript": "5.3.1",
|
|
49
|
+
"@monkvision/eslint-config-typescript-react": "5.3.1",
|
|
50
|
+
"@monkvision/jest-config": "5.3.1",
|
|
51
|
+
"@monkvision/prettier-config": "5.3.1",
|
|
52
|
+
"@monkvision/test-utils": "5.3.1",
|
|
53
|
+
"@monkvision/typescript-config": "5.3.1",
|
|
54
|
+
"@testing-library/react": "^16.3.0",
|
|
56
55
|
"@types/copyfiles": "^2",
|
|
57
56
|
"@types/fscreen": "^1.0.1",
|
|
58
|
-
"@types/jest": "^
|
|
59
|
-
"@types/node": "^
|
|
57
|
+
"@types/jest": "^30",
|
|
58
|
+
"@types/node": "^24.5.2",
|
|
60
59
|
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
|
61
60
|
"@typescript-eslint/parser": "^5.43.0",
|
|
62
61
|
"eslint": "^8.29.0",
|
|
@@ -72,14 +71,14 @@
|
|
|
72
71
|
"eslint-plugin-react": "^7.27.1",
|
|
73
72
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
74
73
|
"eslint-utils": "^3.0.0",
|
|
75
|
-
"jest": "^
|
|
76
|
-
"jest-environment-jsdom": "^
|
|
74
|
+
"jest": "^30.2",
|
|
75
|
+
"jest-environment-jsdom": "^30.2",
|
|
77
76
|
"mkdirp": "^1.0.4",
|
|
78
77
|
"prettier": "^2.7.1",
|
|
79
78
|
"regexpp": "^3.2.0",
|
|
80
79
|
"rimraf": "^3.0.2",
|
|
81
|
-
"ts-jest": "^29.
|
|
82
|
-
"typescript": "^
|
|
80
|
+
"ts-jest": "^29.4.6",
|
|
81
|
+
"typescript": "^5.9.2"
|
|
83
82
|
},
|
|
84
83
|
"prettier": "@monkvision/prettier-config",
|
|
85
84
|
"publishConfig": {
|
|
@@ -93,5 +92,5 @@
|
|
|
93
92
|
"url": "https://github.com/monkvision/monkjs/issues"
|
|
94
93
|
},
|
|
95
94
|
"homepage": "https://github.com/monkvision/monkjs",
|
|
96
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "859c252dd8e45c5aa4755f28f90fd4163e6cb8f6"
|
|
97
96
|
}
|