@monkvision/inspection-capture-web 4.5.6 → 4.6.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.
Files changed (244) hide show
  1. package/README.md +134 -19
  2. package/lib/DamageDisclosure/DamageDisclosure.d.ts +44 -0
  3. package/lib/DamageDisclosure/DamageDisclosure.js +114 -0
  4. package/lib/DamageDisclosure/DamageDisclosure.styles.js +33 -0
  5. package/lib/DamageDisclosure/DamageDisclosureHOC.d.ts +27 -0
  6. package/lib/DamageDisclosure/DamageDisclosureHOC.js +45 -0
  7. package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.d.ts +73 -0
  8. package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.js +49 -0
  9. package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.styles.js +24 -0
  10. package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/DamageDisclosureHUDElements.d.ts +52 -0
  11. package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/DamageDisclosureHUDElements.js +22 -0
  12. package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/index.d.ts +1 -0
  13. package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/index.js +5 -0
  14. package/lib/DamageDisclosure/DamageDisclosureHUD/index.d.ts +2 -0
  15. package/lib/DamageDisclosure/DamageDisclosureHUD/index.js +20 -0
  16. package/lib/DamageDisclosure/hooks/index.d.ts +1 -0
  17. package/lib/DamageDisclosure/hooks/index.js +17 -0
  18. package/lib/DamageDisclosure/hooks/useDamageDisclosureState.d.ts +30 -0
  19. package/lib/DamageDisclosure/hooks/useDamageDisclosureState.js +55 -0
  20. package/lib/DamageDisclosure/index.d.ts +3 -0
  21. package/lib/DamageDisclosure/index.js +20 -0
  22. package/lib/PhotoCapture/PhotoCapture.d.ts +7 -5
  23. package/lib/PhotoCapture/PhotoCapture.js +27 -21
  24. package/lib/PhotoCapture/PhotoCapture.styles.js +0 -24
  25. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.d.ts +24 -7
  26. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.js +4 -4
  27. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.d.ts +21 -4
  28. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.js +10 -8
  29. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.d.ts +3 -4
  30. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.js +5 -4
  31. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.d.ts +1 -1
  32. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.js +4 -3
  33. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.d.ts +3 -3
  34. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.js +5 -4
  35. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.styles.js +2 -2
  36. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.styles.js +2 -2
  37. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/hooks.d.ts +2 -2
  38. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.d.ts +3 -3
  39. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.js +4 -4
  40. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.styles.js +3 -3
  41. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/index.d.ts +0 -1
  42. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/index.js +0 -1
  43. package/lib/PhotoCapture/PhotoCaptureHUD/index.d.ts +0 -6
  44. package/lib/PhotoCapture/PhotoCaptureHUD/index.js +0 -6
  45. package/lib/PhotoCapture/hooks/index.d.ts +0 -8
  46. package/lib/PhotoCapture/hooks/index.js +0 -8
  47. package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.d.ts +3 -0
  48. package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.js +1 -1
  49. package/lib/PhotoCapture/hooks/usePhotoCaptureTutorial.d.ts +2 -2
  50. package/lib/VideoCapture/VideoCapture.d.ts +28 -0
  51. package/lib/VideoCapture/VideoCapture.js +81 -0
  52. package/lib/VideoCapture/VideoCapture.styles.js +9 -0
  53. package/lib/VideoCapture/VideoCaptureHOC.d.ts +27 -0
  54. package/lib/VideoCapture/VideoCaptureHOC.js +45 -0
  55. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.d.ts +44 -0
  56. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.js +158 -0
  57. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.styles.js +14 -0
  58. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.d.ts +6 -0
  59. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.js +38 -0
  60. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.types.d.ts +33 -0
  61. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.types.js +2 -0
  62. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecordingStyles.d.ts +4873 -0
  63. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecordingStyles.js +105 -0
  64. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/index.d.ts +2 -0
  65. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/index.js +5 -0
  66. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/VideoCaptureTutorial.d.ts +14 -0
  67. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/VideoCaptureTutorial.js +30 -0
  68. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/index.d.ts +1 -0
  69. package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/index.js +5 -0
  70. package/lib/VideoCapture/VideoCaptureHUD/index.d.ts +1 -0
  71. package/lib/VideoCapture/VideoCaptureHUD/index.js +5 -0
  72. package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.d.ts +23 -0
  73. package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.js +26 -0
  74. package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.styles.d.ts +12 -0
  75. package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.styles.js +72 -0
  76. package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/index.d.ts +1 -0
  77. package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/index.js +5 -0
  78. package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.d.ts +7 -0
  79. package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.js +32 -0
  80. package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.styles.d.ts +12 -0
  81. package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.styles.js +87 -0
  82. package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.types.d.ts +22 -0
  83. package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.types.js +2 -0
  84. package/lib/VideoCapture/VideoCapturePageLayout/index.d.ts +3 -0
  85. package/lib/VideoCapture/VideoCapturePageLayout/index.js +7 -0
  86. package/lib/VideoCapture/VideoCapturePermissions/VideoCapturePermissions.d.ts +19 -0
  87. package/lib/VideoCapture/VideoCapturePermissions/VideoCapturePermissions.js +107 -0
  88. package/lib/VideoCapture/VideoCapturePermissions/index.d.ts +1 -0
  89. package/lib/VideoCapture/VideoCapturePermissions/index.js +5 -0
  90. package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.d.ts +7 -0
  91. package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.js +44 -0
  92. package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.styles.d.ts +2437 -0
  93. package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.styles.js +60 -0
  94. package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.types.d.ts +34 -0
  95. package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.types.js +2 -0
  96. package/lib/VideoCapture/VideoCaptureProcessing/index.d.ts +2 -0
  97. package/lib/VideoCapture/VideoCaptureProcessing/index.js +5 -0
  98. package/lib/VideoCapture/hooks/index.d.ts +5 -0
  99. package/lib/VideoCapture/hooks/index.js +21 -0
  100. package/lib/VideoCapture/hooks/useFastMovementsDetection/fastMovementsDetection.d.ts +18 -0
  101. package/lib/VideoCapture/hooks/useFastMovementsDetection/fastMovementsDetection.js +45 -0
  102. package/lib/VideoCapture/hooks/useFastMovementsDetection/index.d.ts +2 -0
  103. package/lib/VideoCapture/hooks/useFastMovementsDetection/index.js +20 -0
  104. package/lib/VideoCapture/hooks/useFastMovementsDetection/useFastMovementsDetection.d.ts +34 -0
  105. package/lib/VideoCapture/hooks/useFastMovementsDetection/useFastMovementsDetection.js +64 -0
  106. package/lib/VideoCapture/hooks/useFrameSelection/index.d.ts +1 -0
  107. package/lib/VideoCapture/hooks/useFrameSelection/index.js +17 -0
  108. package/lib/VideoCapture/hooks/useFrameSelection/laplaceScores.d.ts +16 -0
  109. package/lib/VideoCapture/hooks/useFrameSelection/laplaceScores.js +62 -0
  110. package/lib/VideoCapture/hooks/useFrameSelection/useFrameSelection.d.ts +43 -0
  111. package/lib/VideoCapture/hooks/useFrameSelection/useFrameSelection.js +50 -0
  112. package/lib/VideoCapture/hooks/useVehicleWalkaround.d.ts +26 -0
  113. package/lib/VideoCapture/hooks/useVehicleWalkaround.js +39 -0
  114. package/lib/VideoCapture/hooks/useVideoRecording.d.ts +97 -0
  115. package/lib/VideoCapture/hooks/useVideoRecording.js +140 -0
  116. package/lib/VideoCapture/hooks/useVideoUploadQueue.d.ts +40 -0
  117. package/lib/VideoCapture/hooks/useVideoUploadQueue.js +51 -0
  118. package/lib/VideoCapture/index.d.ts +2 -0
  119. package/lib/VideoCapture/index.js +5 -0
  120. package/lib/assets/logos.asset.d.ts +1 -0
  121. package/lib/assets/logos.asset.js +4 -0
  122. package/lib/components/CancelButton/CancelButton.d.ts +14 -0
  123. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/PhotoCaptureHUDCancelButton.js → components/CancelButton/CancelButton.js} +6 -6
  124. package/lib/components/CancelButton/index.d.ts +1 -0
  125. package/lib/components/CancelButton/index.js +5 -0
  126. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.d.ts → components/CloseUpShot/CloseUpShot.d.ts} +10 -4
  127. package/lib/components/CloseUpShot/CloseUpShot.js +34 -0
  128. package/lib/components/CloseUpShot/CloseUpShot.styles.d.ts +2 -0
  129. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.js → components/CloseUpShot/CloseUpShot.styles.js} +4 -3
  130. package/lib/components/CloseUpShot/hooks.d.ts +7 -0
  131. package/lib/components/CloseUpShot/hooks.js +25 -0
  132. package/lib/components/CloseUpShot/index.d.ts +1 -0
  133. package/lib/components/CloseUpShot/index.js +5 -0
  134. package/lib/components/Counter/Counter.d.ts +6 -0
  135. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.js → components/Counter/Counter.js} +9 -9
  136. package/lib/components/Counter/Counter.styles.d.ts +2 -0
  137. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter → components/Counter}/hooks.d.ts +6 -6
  138. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter → components/Counter}/hooks.js +6 -6
  139. package/lib/components/Counter/index.d.ts +2 -0
  140. package/lib/components/Counter/index.js +5 -0
  141. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.d.ts → components/HUDButtons/HUDButtons.d.ts} +4 -4
  142. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.js → components/HUDButtons/HUDButtons.js} +5 -5
  143. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons → components/HUDButtons}/hooks.d.ts +3 -3
  144. package/lib/components/HUDButtons/hooks.js +44 -0
  145. package/lib/components/HUDButtons/index.d.ts +1 -0
  146. package/lib/components/HUDButtons/index.js +5 -0
  147. package/lib/components/HUDOverlay/HUDOverlay.d.ts +7 -0
  148. package/lib/components/HUDOverlay/HUDOverlay.js +36 -0
  149. package/lib/components/HUDOverlay/HUDOverlay.styles.d.ts +2 -0
  150. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay → components/HUDOverlay}/hooks.d.ts +4 -4
  151. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay → components/HUDOverlay}/hooks.js +3 -3
  152. package/lib/components/HUDOverlay/index.d.ts +2 -0
  153. package/lib/components/HUDOverlay/index.js +5 -0
  154. package/lib/components/OrientationEnforcer/OrientationEnforcer.d.ts +16 -0
  155. package/lib/components/OrientationEnforcer/OrientationEnforcer.js +34 -0
  156. package/lib/components/OrientationEnforcer/OrientationEnforcer.styles.d.ts +815 -0
  157. package/lib/components/OrientationEnforcer/OrientationEnforcer.styles.js +49 -0
  158. package/lib/components/OrientationEnforcer/index.d.ts +1 -0
  159. package/lib/components/OrientationEnforcer/index.js +5 -0
  160. package/lib/components/PartSelection/PartSelection.d.ts +40 -0
  161. package/lib/components/PartSelection/PartSelection.js +39 -0
  162. package/lib/components/PartSelection/PartSelection.styles.d.ts +2 -0
  163. package/lib/components/PartSelection/PartSelection.styles.js +54 -0
  164. package/lib/components/PartSelection/index.d.ts +2 -0
  165. package/lib/components/PartSelection/index.js +5 -0
  166. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.d.ts → components/ZoomOutShot/ZoomOutShot.d.ts} +3 -3
  167. package/lib/components/ZoomOutShot/ZoomOutShot.js +38 -0
  168. package/lib/components/ZoomOutShot/ZoomOutShot.styles.d.ts +2 -0
  169. package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.js → components/ZoomOutShot/ZoomOutShot.styles.js} +3 -3
  170. package/lib/components/ZoomOutShot/hooks.d.ts +6 -0
  171. package/lib/components/ZoomOutShot/hooks.js +24 -0
  172. package/lib/components/ZoomOutShot/index.d.ts +1 -0
  173. package/lib/components/ZoomOutShot/index.js +5 -0
  174. package/lib/components/index.d.ts +8 -0
  175. package/lib/components/index.js +24 -0
  176. package/lib/errors.d.ts +3 -0
  177. package/lib/errors.js +7 -0
  178. package/lib/hooks/index.d.ts +10 -0
  179. package/lib/hooks/index.js +26 -0
  180. package/lib/{PhotoCapture/hooks → hooks}/useAdaptiveCameraConfig.d.ts +2 -2
  181. package/lib/hooks/useAddDamageMode.d.ts +56 -0
  182. package/lib/hooks/useAddDamageMode.js +76 -0
  183. package/lib/{PhotoCapture/hooks → hooks}/useBadConnectionWarning.d.ts +2 -2
  184. package/lib/hooks/useColorBackground.d.ts +4 -0
  185. package/lib/hooks/useColorBackground.js +15 -0
  186. package/lib/hooks/useEnforceOrientation.d.ts +6 -0
  187. package/lib/hooks/useEnforceOrientation.js +14 -0
  188. package/lib/{PhotoCapture/hooks → hooks}/usePhotoCaptureImages.js +1 -1
  189. package/lib/{PhotoCapture/hooks → hooks}/usePictureTaken.d.ts +4 -4
  190. package/lib/hooks/usePictureTaken.js +58 -0
  191. package/lib/{PhotoCapture/hooks → hooks}/useStartTasksOnComplete.d.ts +6 -6
  192. package/lib/{PhotoCapture/hooks → hooks}/useStartTasksOnComplete.js +3 -1
  193. package/lib/{PhotoCapture/hooks → hooks}/useUploadQueue.d.ts +24 -7
  194. package/lib/{PhotoCapture/hooks → hooks}/useUploadQueue.js +14 -4
  195. package/lib/index.d.ts +2 -0
  196. package/lib/index.js +2 -0
  197. package/lib/translations/de.json +64 -5
  198. package/lib/translations/en.json +64 -5
  199. package/lib/translations/fr.json +64 -5
  200. package/lib/translations/nl.json +64 -5
  201. package/lib/types.d.ts +102 -0
  202. package/lib/types.js +43 -0
  203. package/package.json +15 -15
  204. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/hooks.js +0 -44
  205. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.d.ts +0 -1
  206. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.js +0 -5
  207. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/PhotoCaptureHUDCancelButton.d.ts +0 -14
  208. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/index.d.ts +0 -1
  209. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/index.js +0 -5
  210. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.d.ts +0 -6
  211. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/index.d.ts +0 -2
  212. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/index.js +0 -5
  213. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.js +0 -38
  214. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.d.ts +0 -6
  215. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.js +0 -24
  216. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.d.ts +0 -1
  217. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.js +0 -5
  218. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.js +0 -40
  219. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.d.ts +0 -7
  220. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.js +0 -25
  221. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.d.ts +0 -1
  222. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.js +0 -5
  223. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.d.ts +0 -7
  224. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.js +0 -36
  225. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/index.d.ts +0 -2
  226. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/index.js +0 -5
  227. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDButtonBackground.d.ts +0 -4
  228. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDButtonBackground.js +0 -13
  229. package/lib/PhotoCapture/hooks/useAddDamageMode.d.ts +0 -42
  230. package/lib/PhotoCapture/hooks/useAddDamageMode.js +0 -57
  231. package/lib/PhotoCapture/hooks/usePictureTaken.js +0 -46
  232. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.styles.d.ts → DamageDisclosure/DamageDisclosure.styles.d.ts} +0 -0
  233. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.d.ts → DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.styles.d.ts} +0 -0
  234. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.d.ts → VideoCapture/VideoCapture.styles.d.ts} +0 -0
  235. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.styles.d.ts → VideoCapture/VideoCaptureHUD/VideoCaptureHUD.styles.d.ts} +0 -0
  236. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.styles.js → components/Counter/Counter.styles.js} +0 -0
  237. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles.d.ts → components/HUDButtons/HUDButtons.styles.d.ts} +0 -0
  238. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles.js → components/HUDButtons/HUDButtons.styles.js} +0 -0
  239. /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.styles.js → components/HUDOverlay/HUDOverlay.styles.js} +0 -0
  240. /package/lib/{PhotoCapture/hooks → hooks}/useAdaptiveCameraConfig.js +0 -0
  241. /package/lib/{PhotoCapture/hooks → hooks}/useBadConnectionWarning.js +0 -0
  242. /package/lib/{PhotoCapture/hooks → hooks}/usePhotoCaptureImages.d.ts +0 -0
  243. /package/lib/{PhotoCapture/hooks → hooks}/useTracking.d.ts +0 -0
  244. /package/lib/{PhotoCapture/hooks → hooks}/useTracking.js +0 -0
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { VideoCaptureProcessingProps } from './VideoCaptureProcessing.types';
3
+ /**
4
+ * Component displayed at the end of the VideoCapture process, used to display progress indicators for the processing
5
+ * and uploading of video frames.
6
+ */
7
+ export declare function VideoCaptureProcessing({ inspectionId, processedFrames, totalProcessingFrames, uploadedFrames, totalUploadingFrames, loading, onComplete, }: VideoCaptureProcessingProps): JSX.Element;
@@ -0,0 +1,44 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.VideoCaptureProcessing = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var react_i18next_1 = require("react-i18next");
17
+ var VideoCapturePageLayout_1 = require("../VideoCapturePageLayout");
18
+ var VideoCaptureProcessing_styles_1 = require("./VideoCaptureProcessing.styles");
19
+ function getLabel(processingProgress, uploadingProgress) {
20
+ if (processingProgress < 1) {
21
+ return 'video.processing.processing';
22
+ }
23
+ return uploadingProgress < 1 ? 'video.processing.uploading' : 'video.processing.success';
24
+ }
25
+ /**
26
+ * Component displayed at the end of the VideoCapture process, used to display progress indicators for the processing
27
+ * and uploading of video frames.
28
+ */
29
+ function VideoCaptureProcessing(_a) {
30
+ var inspectionId = _a.inspectionId, processedFrames = _a.processedFrames, totalProcessingFrames = _a.totalProcessingFrames, uploadedFrames = _a.uploadedFrames, totalUploadingFrames = _a.totalUploadingFrames, loading = _a.loading, onComplete = _a.onComplete;
31
+ var processingProgress = processedFrames / totalProcessingFrames;
32
+ var uploadingProgress = uploadedFrames / totalUploadingFrames;
33
+ var progress = processingProgress < 1 ? processingProgress : uploadingProgress;
34
+ var t = (0, react_i18next_1.useTranslation)().t;
35
+ var _b = (0, VideoCaptureProcessing_styles_1.useVideoCaptureProcessingStyles)(progress), containerStyle = _b.containerStyle, progressBarContainerStyle = _b.progressBarContainerStyle, progressBarStyle = _b.progressBarStyle;
36
+ var confirmButtonProps = {
37
+ onClick: onComplete,
38
+ loading: loading.isLoading,
39
+ disabled: processingProgress < 1 || uploadingProgress < 1 || !!loading.error,
40
+ children: t('video.processing.done'),
41
+ };
42
+ return ((0, jsx_runtime_1.jsx)(VideoCapturePageLayout_1.VideoCapturePageLayout, __assign({ showBackdrop: true, showTitle: false, confirmButtonProps: confirmButtonProps }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ style: containerStyle }, { children: [!loading.error && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ 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", __assign({ style: progressBarContainerStyle }, { children: (0, jsx_runtime_1.jsx)("div", { style: progressBarStyle, "data-testid": 'progress-bar' }) }))] })), loading.error && ((0, jsx_runtime_1.jsxs)("div", __assign({ style: VideoCaptureProcessing_styles_1.styles['errorMessage'] }, { children: [t('video.processing.error'), " ", inspectionId] })))] })) })));
43
+ }
44
+ exports.VideoCaptureProcessing = VideoCaptureProcessing;