@monkvision/inspection-capture-web 5.0.2 → 5.0.4
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.
|
@@ -150,11 +150,7 @@ function usePhotoCaptureSightState(_a) {
|
|
|
150
150
|
}, []);
|
|
151
151
|
var isInspectionCompliant = (0, react_1.useMemo)(function () {
|
|
152
152
|
var notCapturedSights = captureSights.filter(function (s) { return !sightsTaken.includes(s); });
|
|
153
|
-
var notCompliantSights = getNotCompliantSights(inspectionId, captureSights, state,
|
|
154
|
-
types_1.ImageStatus.UPLOADING,
|
|
155
|
-
types_1.ImageStatus.NOT_COMPLIANT,
|
|
156
|
-
types_1.ImageStatus.UPLOAD_FAILED,
|
|
157
|
-
]);
|
|
153
|
+
var notCompliantSights = getNotCompliantSights(inspectionId, captureSights, state, Object.values(types_1.ImageStatus).filter(function (status) { return status !== types_1.ImageStatus.SUCCESS; }));
|
|
158
154
|
return !notCapturedSights.length && !notCompliantSights.length;
|
|
159
155
|
}, [state.images]);
|
|
160
156
|
var takeSelectedSight = (0, react_1.useCallback)(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/inspection-capture-web",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
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,12 +28,12 @@
|
|
|
28
28
|
"lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@monkvision/analytics": "5.0.
|
|
32
|
-
"@monkvision/camera-web": "5.0.
|
|
33
|
-
"@monkvision/common": "5.0.
|
|
34
|
-
"@monkvision/common-ui-web": "5.0.
|
|
35
|
-
"@monkvision/network": "5.0.
|
|
36
|
-
"@monkvision/sights": "5.0.
|
|
31
|
+
"@monkvision/analytics": "5.0.4",
|
|
32
|
+
"@monkvision/camera-web": "5.0.4",
|
|
33
|
+
"@monkvision/common": "5.0.4",
|
|
34
|
+
"@monkvision/common-ui-web": "5.0.4",
|
|
35
|
+
"@monkvision/network": "5.0.4",
|
|
36
|
+
"@monkvision/sights": "5.0.4",
|
|
37
37
|
"i18next": "^23.4.5",
|
|
38
38
|
"react-i18next": "^13.2.0"
|
|
39
39
|
},
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"react-router-dom": "^6.22.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@monkvision/eslint-config-base": "5.0.
|
|
48
|
-
"@monkvision/eslint-config-typescript": "5.0.
|
|
49
|
-
"@monkvision/eslint-config-typescript-react": "5.0.
|
|
50
|
-
"@monkvision/jest-config": "5.0.
|
|
51
|
-
"@monkvision/prettier-config": "5.0.
|
|
52
|
-
"@monkvision/test-utils": "5.0.
|
|
53
|
-
"@monkvision/typescript-config": "5.0.
|
|
47
|
+
"@monkvision/eslint-config-base": "5.0.4",
|
|
48
|
+
"@monkvision/eslint-config-typescript": "5.0.4",
|
|
49
|
+
"@monkvision/eslint-config-typescript-react": "5.0.4",
|
|
50
|
+
"@monkvision/jest-config": "5.0.4",
|
|
51
|
+
"@monkvision/prettier-config": "5.0.4",
|
|
52
|
+
"@monkvision/test-utils": "5.0.4",
|
|
53
|
+
"@monkvision/typescript-config": "5.0.4",
|
|
54
54
|
"@testing-library/react": "^12.1.5",
|
|
55
55
|
"@testing-library/react-hooks": "^8.0.1",
|
|
56
56
|
"@types/copyfiles": "^2",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"url": "https://github.com/monkvision/monkjs/issues"
|
|
94
94
|
},
|
|
95
95
|
"homepage": "https://github.com/monkvision/monkjs",
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "a84fbbc4f69b69ef96594b6b36b330cd0e881433"
|
|
97
97
|
}
|