@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.
- package/README.md +134 -19
- package/lib/DamageDisclosure/DamageDisclosure.d.ts +44 -0
- package/lib/DamageDisclosure/DamageDisclosure.js +114 -0
- package/lib/DamageDisclosure/DamageDisclosure.styles.js +33 -0
- package/lib/DamageDisclosure/DamageDisclosureHOC.d.ts +27 -0
- package/lib/DamageDisclosure/DamageDisclosureHOC.js +45 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.d.ts +73 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.js +49 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.styles.js +24 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/DamageDisclosureHUDElements.d.ts +52 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/DamageDisclosureHUDElements.js +22 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/index.d.ts +1 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUDElements/index.js +5 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/index.d.ts +2 -0
- package/lib/DamageDisclosure/DamageDisclosureHUD/index.js +20 -0
- package/lib/DamageDisclosure/hooks/index.d.ts +1 -0
- package/lib/DamageDisclosure/hooks/index.js +17 -0
- package/lib/DamageDisclosure/hooks/useDamageDisclosureState.d.ts +30 -0
- package/lib/DamageDisclosure/hooks/useDamageDisclosureState.js +55 -0
- package/lib/DamageDisclosure/index.d.ts +3 -0
- package/lib/DamageDisclosure/index.js +20 -0
- package/lib/PhotoCapture/PhotoCapture.d.ts +7 -5
- package/lib/PhotoCapture/PhotoCapture.js +27 -21
- package/lib/PhotoCapture/PhotoCapture.styles.js +0 -24
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.d.ts +24 -7
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.js +4 -4
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.d.ts +21 -4
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.js +10 -8
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.d.ts +3 -4
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.js +5 -4
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.d.ts +1 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.js +4 -3
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.d.ts +3 -3
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.js +5 -4
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.styles.js +2 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.styles.js +2 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/hooks.d.ts +2 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.d.ts +3 -3
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.js +4 -4
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.styles.js +3 -3
- package/lib/PhotoCapture/PhotoCaptureHUD/hooks/index.d.ts +0 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/hooks/index.js +0 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/index.d.ts +0 -6
- package/lib/PhotoCapture/PhotoCaptureHUD/index.js +0 -6
- package/lib/PhotoCapture/hooks/index.d.ts +0 -8
- package/lib/PhotoCapture/hooks/index.js +0 -8
- package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.d.ts +3 -0
- package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.js +1 -1
- package/lib/PhotoCapture/hooks/usePhotoCaptureTutorial.d.ts +2 -2
- package/lib/VideoCapture/VideoCapture.d.ts +28 -0
- package/lib/VideoCapture/VideoCapture.js +81 -0
- package/lib/VideoCapture/VideoCapture.styles.js +9 -0
- package/lib/VideoCapture/VideoCaptureHOC.d.ts +27 -0
- package/lib/VideoCapture/VideoCaptureHOC.js +45 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.d.ts +44 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.js +158 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureHUD.styles.js +14 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.d.ts +6 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.js +38 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.types.d.ts +33 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecording.types.js +2 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecordingStyles.d.ts +4873 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/VideoCaptureRecordingStyles.js +105 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/index.d.ts +2 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureRecording/index.js +5 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/VideoCaptureTutorial.d.ts +14 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/VideoCaptureTutorial.js +30 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/index.d.ts +1 -0
- package/lib/VideoCapture/VideoCaptureHUD/VideoCaptureTutorial/index.js +5 -0
- package/lib/VideoCapture/VideoCaptureHUD/index.d.ts +1 -0
- package/lib/VideoCapture/VideoCaptureHUD/index.js +5 -0
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.d.ts +23 -0
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.js +26 -0
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.styles.d.ts +12 -0
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/PageLayoutItem.styles.js +72 -0
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/index.d.ts +1 -0
- package/lib/VideoCapture/VideoCapturePageLayout/PageLayoutItem/index.js +5 -0
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.d.ts +7 -0
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.js +32 -0
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.styles.d.ts +12 -0
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.styles.js +87 -0
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.types.d.ts +22 -0
- package/lib/VideoCapture/VideoCapturePageLayout/VideoCapturePageLayout.types.js +2 -0
- package/lib/VideoCapture/VideoCapturePageLayout/index.d.ts +3 -0
- package/lib/VideoCapture/VideoCapturePageLayout/index.js +7 -0
- package/lib/VideoCapture/VideoCapturePermissions/VideoCapturePermissions.d.ts +19 -0
- package/lib/VideoCapture/VideoCapturePermissions/VideoCapturePermissions.js +107 -0
- package/lib/VideoCapture/VideoCapturePermissions/index.d.ts +1 -0
- package/lib/VideoCapture/VideoCapturePermissions/index.js +5 -0
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.d.ts +7 -0
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.js +44 -0
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.styles.d.ts +2437 -0
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.styles.js +60 -0
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.types.d.ts +34 -0
- package/lib/VideoCapture/VideoCaptureProcessing/VideoCaptureProcessing.types.js +2 -0
- package/lib/VideoCapture/VideoCaptureProcessing/index.d.ts +2 -0
- package/lib/VideoCapture/VideoCaptureProcessing/index.js +5 -0
- package/lib/VideoCapture/hooks/index.d.ts +5 -0
- package/lib/VideoCapture/hooks/index.js +21 -0
- package/lib/VideoCapture/hooks/useFastMovementsDetection/fastMovementsDetection.d.ts +18 -0
- package/lib/VideoCapture/hooks/useFastMovementsDetection/fastMovementsDetection.js +45 -0
- package/lib/VideoCapture/hooks/useFastMovementsDetection/index.d.ts +2 -0
- package/lib/VideoCapture/hooks/useFastMovementsDetection/index.js +20 -0
- package/lib/VideoCapture/hooks/useFastMovementsDetection/useFastMovementsDetection.d.ts +34 -0
- package/lib/VideoCapture/hooks/useFastMovementsDetection/useFastMovementsDetection.js +64 -0
- package/lib/VideoCapture/hooks/useFrameSelection/index.d.ts +1 -0
- package/lib/VideoCapture/hooks/useFrameSelection/index.js +17 -0
- package/lib/VideoCapture/hooks/useFrameSelection/laplaceScores.d.ts +16 -0
- package/lib/VideoCapture/hooks/useFrameSelection/laplaceScores.js +62 -0
- package/lib/VideoCapture/hooks/useFrameSelection/useFrameSelection.d.ts +43 -0
- package/lib/VideoCapture/hooks/useFrameSelection/useFrameSelection.js +50 -0
- package/lib/VideoCapture/hooks/useVehicleWalkaround.d.ts +26 -0
- package/lib/VideoCapture/hooks/useVehicleWalkaround.js +39 -0
- package/lib/VideoCapture/hooks/useVideoRecording.d.ts +97 -0
- package/lib/VideoCapture/hooks/useVideoRecording.js +140 -0
- package/lib/VideoCapture/hooks/useVideoUploadQueue.d.ts +40 -0
- package/lib/VideoCapture/hooks/useVideoUploadQueue.js +51 -0
- package/lib/VideoCapture/index.d.ts +2 -0
- package/lib/VideoCapture/index.js +5 -0
- package/lib/assets/logos.asset.d.ts +1 -0
- package/lib/assets/logos.asset.js +4 -0
- package/lib/components/CancelButton/CancelButton.d.ts +14 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/PhotoCaptureHUDCancelButton.js → components/CancelButton/CancelButton.js} +6 -6
- package/lib/components/CancelButton/index.d.ts +1 -0
- package/lib/components/CancelButton/index.js +5 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.d.ts → components/CloseUpShot/CloseUpShot.d.ts} +10 -4
- package/lib/components/CloseUpShot/CloseUpShot.js +34 -0
- package/lib/components/CloseUpShot/CloseUpShot.styles.d.ts +2 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.js → components/CloseUpShot/CloseUpShot.styles.js} +4 -3
- package/lib/components/CloseUpShot/hooks.d.ts +7 -0
- package/lib/components/CloseUpShot/hooks.js +25 -0
- package/lib/components/CloseUpShot/index.d.ts +1 -0
- package/lib/components/CloseUpShot/index.js +5 -0
- package/lib/components/Counter/Counter.d.ts +6 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.js → components/Counter/Counter.js} +9 -9
- package/lib/components/Counter/Counter.styles.d.ts +2 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter → components/Counter}/hooks.d.ts +6 -6
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter → components/Counter}/hooks.js +6 -6
- package/lib/components/Counter/index.d.ts +2 -0
- package/lib/components/Counter/index.js +5 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.d.ts → components/HUDButtons/HUDButtons.d.ts} +4 -4
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.js → components/HUDButtons/HUDButtons.js} +5 -5
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons → components/HUDButtons}/hooks.d.ts +3 -3
- package/lib/components/HUDButtons/hooks.js +44 -0
- package/lib/components/HUDButtons/index.d.ts +1 -0
- package/lib/components/HUDButtons/index.js +5 -0
- package/lib/components/HUDOverlay/HUDOverlay.d.ts +7 -0
- package/lib/components/HUDOverlay/HUDOverlay.js +36 -0
- package/lib/components/HUDOverlay/HUDOverlay.styles.d.ts +2 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay → components/HUDOverlay}/hooks.d.ts +4 -4
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay → components/HUDOverlay}/hooks.js +3 -3
- package/lib/components/HUDOverlay/index.d.ts +2 -0
- package/lib/components/HUDOverlay/index.js +5 -0
- package/lib/components/OrientationEnforcer/OrientationEnforcer.d.ts +16 -0
- package/lib/components/OrientationEnforcer/OrientationEnforcer.js +34 -0
- package/lib/components/OrientationEnforcer/OrientationEnforcer.styles.d.ts +815 -0
- package/lib/components/OrientationEnforcer/OrientationEnforcer.styles.js +49 -0
- package/lib/components/OrientationEnforcer/index.d.ts +1 -0
- package/lib/components/OrientationEnforcer/index.js +5 -0
- package/lib/components/PartSelection/PartSelection.d.ts +40 -0
- package/lib/components/PartSelection/PartSelection.js +39 -0
- package/lib/components/PartSelection/PartSelection.styles.d.ts +2 -0
- package/lib/components/PartSelection/PartSelection.styles.js +54 -0
- package/lib/components/PartSelection/index.d.ts +2 -0
- package/lib/components/PartSelection/index.js +5 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.d.ts → components/ZoomOutShot/ZoomOutShot.d.ts} +3 -3
- package/lib/components/ZoomOutShot/ZoomOutShot.js +38 -0
- package/lib/components/ZoomOutShot/ZoomOutShot.styles.d.ts +2 -0
- package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.js → components/ZoomOutShot/ZoomOutShot.styles.js} +3 -3
- package/lib/components/ZoomOutShot/hooks.d.ts +6 -0
- package/lib/components/ZoomOutShot/hooks.js +24 -0
- package/lib/components/ZoomOutShot/index.d.ts +1 -0
- package/lib/components/ZoomOutShot/index.js +5 -0
- package/lib/components/index.d.ts +8 -0
- package/lib/components/index.js +24 -0
- package/lib/errors.d.ts +3 -0
- package/lib/errors.js +7 -0
- package/lib/hooks/index.d.ts +10 -0
- package/lib/hooks/index.js +26 -0
- package/lib/{PhotoCapture/hooks → hooks}/useAdaptiveCameraConfig.d.ts +2 -2
- package/lib/hooks/useAddDamageMode.d.ts +56 -0
- package/lib/hooks/useAddDamageMode.js +76 -0
- package/lib/{PhotoCapture/hooks → hooks}/useBadConnectionWarning.d.ts +2 -2
- package/lib/hooks/useColorBackground.d.ts +4 -0
- package/lib/hooks/useColorBackground.js +15 -0
- package/lib/hooks/useEnforceOrientation.d.ts +6 -0
- package/lib/hooks/useEnforceOrientation.js +14 -0
- package/lib/{PhotoCapture/hooks → hooks}/usePhotoCaptureImages.js +1 -1
- package/lib/{PhotoCapture/hooks → hooks}/usePictureTaken.d.ts +4 -4
- package/lib/hooks/usePictureTaken.js +58 -0
- package/lib/{PhotoCapture/hooks → hooks}/useStartTasksOnComplete.d.ts +6 -6
- package/lib/{PhotoCapture/hooks → hooks}/useStartTasksOnComplete.js +3 -1
- package/lib/{PhotoCapture/hooks → hooks}/useUploadQueue.d.ts +24 -7
- package/lib/{PhotoCapture/hooks → hooks}/useUploadQueue.js +14 -4
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/translations/de.json +64 -5
- package/lib/translations/en.json +64 -5
- package/lib/translations/fr.json +64 -5
- package/lib/translations/nl.json +64 -5
- package/lib/types.d.ts +102 -0
- package/lib/types.js +43 -0
- package/package.json +15 -15
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/hooks.js +0 -44
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.d.ts +0 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.js +0 -5
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/PhotoCaptureHUDCancelButton.d.ts +0 -14
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/index.d.ts +0 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/index.js +0 -5
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.d.ts +0 -6
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/index.d.ts +0 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/index.js +0 -5
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.js +0 -38
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.d.ts +0 -6
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.js +0 -24
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.d.ts +0 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.js +0 -5
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.js +0 -40
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.d.ts +0 -7
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.js +0 -25
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.d.ts +0 -1
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.js +0 -5
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.d.ts +0 -7
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.js +0 -36
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/index.d.ts +0 -2
- package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/index.js +0 -5
- package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDButtonBackground.d.ts +0 -4
- package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDButtonBackground.js +0 -13
- package/lib/PhotoCapture/hooks/useAddDamageMode.d.ts +0 -42
- package/lib/PhotoCapture/hooks/useAddDamageMode.js +0 -57
- package/lib/PhotoCapture/hooks/usePictureTaken.js +0 -46
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.styles.d.ts → DamageDisclosure/DamageDisclosure.styles.d.ts} +0 -0
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.d.ts → DamageDisclosure/DamageDisclosureHUD/DamageDisclosureHUD.styles.d.ts} +0 -0
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.d.ts → VideoCapture/VideoCapture.styles.d.ts} +0 -0
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.styles.d.ts → VideoCapture/VideoCaptureHUD/VideoCaptureHUD.styles.d.ts} +0 -0
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.styles.js → components/Counter/Counter.styles.js} +0 -0
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles.d.ts → components/HUDButtons/HUDButtons.styles.d.ts} +0 -0
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles.js → components/HUDButtons/HUDButtons.styles.js} +0 -0
- /package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.styles.js → components/HUDOverlay/HUDOverlay.styles.js} +0 -0
- /package/lib/{PhotoCapture/hooks → hooks}/useAdaptiveCameraConfig.js +0 -0
- /package/lib/{PhotoCapture/hooks → hooks}/useBadConnectionWarning.js +0 -0
- /package/lib/{PhotoCapture/hooks → hooks}/usePhotoCaptureImages.d.ts +0 -0
- /package/lib/{PhotoCapture/hooks → hooks}/useTracking.d.ts +0 -0
- /package/lib/{PhotoCapture/hooks → hooks}/useTracking.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/**
|
|
3
|
-
* Props of the
|
|
3
|
+
* Props of the HUDButtons component.
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface HUDButtonsProps {
|
|
6
6
|
/**
|
|
7
7
|
* URI of the picture displayed in the gallery button icon. Usually, this is the last picture taken by the user. If no
|
|
8
8
|
* picture is provided, a gallery icon will be displayed instead.
|
|
@@ -59,9 +59,9 @@ export interface PhotoCaptureHUDButtonsProps {
|
|
|
59
59
|
retakeCount?: number;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* Components implementing the main buttons of the
|
|
62
|
+
* Components implementing the main buttons of the capture Camera HUD. This component implements 3 buttons :
|
|
63
63
|
* - A take picture button
|
|
64
64
|
* - A gallery button
|
|
65
65
|
* - A close button (only displayed if the `onClose` callback is defined)
|
|
66
66
|
*/
|
|
67
|
-
export declare function
|
|
67
|
+
export declare function HUDButtons({ galleryPreview, onTakePicture, onOpenGallery, onClose, galleryDisabled, takePictureDisabled, closeDisabled, showCloseButton, showGalleryBadge, retakeCount, }: HUDButtonsProps): JSX.Element;
|
|
@@ -11,18 +11,18 @@ 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.HUDButtons = void 0;
|
|
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 common_1 = require("@monkvision/common");
|
|
18
18
|
var hooks_1 = require("./hooks");
|
|
19
19
|
/**
|
|
20
|
-
* Components implementing the main buttons of the
|
|
20
|
+
* Components implementing the main buttons of the capture Camera HUD. This component implements 3 buttons :
|
|
21
21
|
* - A take picture button
|
|
22
22
|
* - A gallery button
|
|
23
23
|
* - A close button (only displayed if the `onClose` callback is defined)
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function HUDButtons(_a) {
|
|
26
26
|
var galleryPreview = _a.galleryPreview, onTakePicture = _a.onTakePicture, onOpenGallery = _a.onOpenGallery, onClose = _a.onClose, _b = _a.galleryDisabled, galleryDisabled = _b === void 0 ? false : _b, _c = _a.takePictureDisabled, takePictureDisabled = _c === void 0 ? false : _c, _d = _a.closeDisabled, closeDisabled = _d === void 0 ? false : _d, _e = _a.showCloseButton, showCloseButton = _e === void 0 ? false : _e, _f = _a.showGalleryBadge, showGalleryBadge = _f === void 0 ? false : _f, _g = _a.retakeCount, retakeCount = _g === void 0 ? 0 : _g;
|
|
27
27
|
var _h = (0, common_1.useInteractiveStatus)({
|
|
28
28
|
disabled: galleryDisabled,
|
|
@@ -30,7 +30,7 @@ function PhotoCaptureHUDButtons(_a) {
|
|
|
30
30
|
var _j = (0, common_1.useInteractiveStatus)({
|
|
31
31
|
disabled: closeDisabled,
|
|
32
32
|
}), closeStatus = _j.status, closeEventHandlers = _j.eventHandlers;
|
|
33
|
-
var _k = (0, hooks_1.
|
|
33
|
+
var _k = (0, hooks_1.useHUDButtonsStyles)({
|
|
34
34
|
galleryStatus: galleryStatus,
|
|
35
35
|
closeStatus: closeStatus,
|
|
36
36
|
closeBtnAvailable: !!onClose,
|
|
@@ -40,4 +40,4 @@ function PhotoCaptureHUDButtons(_a) {
|
|
|
40
40
|
}), containerStyle = _k.containerStyle, gallery = _k.gallery, galleryBadgeStyle = _k.galleryBadgeStyle, close = _k.close, backgroundCoverStyle = _k.backgroundCoverStyle;
|
|
41
41
|
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: containerStyle }, { children: [(0, jsx_runtime_1.jsx)("button", __assign({ style: close.style, disabled: closeDisabled, onClick: onClose }, closeEventHandlers, { "data-testid": 'monk-close-btn' }, { children: (0, jsx_runtime_1.jsx)(common_ui_web_1.Icon, { icon: 'close', size: 30, primaryColor: close.iconColor }) })), (0, jsx_runtime_1.jsx)(common_ui_web_1.TakePictureButton, { onClick: onTakePicture, size: 85, disabled: takePictureDisabled }), (0, jsx_runtime_1.jsx)("button", __assign({ style: gallery.style, disabled: galleryDisabled, onClick: onOpenGallery }, galleryEventHandlers, { "data-testid": 'monk-gallery-btn' }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [galleryPreview ? ((0, jsx_runtime_1.jsx)("div", { style: backgroundCoverStyle })) : ((0, jsx_runtime_1.jsx)(common_ui_web_1.Icon, { icon: 'gallery', size: 30, primaryColor: gallery.iconColor })), (0, jsx_runtime_1.jsx)("div", __assign({ "data-testid": 'monk-gallery-badge', style: galleryBadgeStyle }, { children: retakeCount > 0 && retakeCount }))] }) }))] })));
|
|
42
42
|
}
|
|
43
|
-
exports.
|
|
43
|
+
exports.HUDButtons = HUDButtons;
|
package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons → components/HUDButtons}/hooks.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InteractiveStatus } from '@monkvision/types';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
|
-
interface
|
|
3
|
+
interface HUDButtonsStylesParams {
|
|
4
4
|
galleryStatus: InteractiveStatus;
|
|
5
5
|
closeStatus: InteractiveStatus;
|
|
6
6
|
closeBtnAvailable: boolean;
|
|
@@ -8,7 +8,7 @@ interface PhotoCaptureHUDButtonsStylesParams {
|
|
|
8
8
|
showCloseButton?: boolean;
|
|
9
9
|
showGalleryBadge?: boolean;
|
|
10
10
|
}
|
|
11
|
-
interface
|
|
11
|
+
interface HUDButtonsStyles {
|
|
12
12
|
containerStyle: CSSProperties;
|
|
13
13
|
gallery: {
|
|
14
14
|
style: CSSProperties;
|
|
@@ -21,5 +21,5 @@ interface PhotoCaptureHUDButtonsStyles {
|
|
|
21
21
|
};
|
|
22
22
|
backgroundCoverStyle: CSSProperties;
|
|
23
23
|
}
|
|
24
|
-
export declare function
|
|
24
|
+
export declare function useHUDButtonsStyles(params: HUDButtonsStylesParams): HUDButtonsStyles;
|
|
25
25
|
export {};
|
|
@@ -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.useHUDButtonsStyles = void 0;
|
|
15
|
+
var types_1 = require("@monkvision/types");
|
|
16
|
+
var react_1 = require("react");
|
|
17
|
+
var common_1 = require("@monkvision/common");
|
|
18
|
+
var HUDButtons_styles_1 = require("./HUDButtons.styles");
|
|
19
|
+
var ANIMATION_DELAY_MS = 50;
|
|
20
|
+
function useHUDButtonsStyles(params) {
|
|
21
|
+
var _a = (0, react_1.useState)(false), backgroundAnimationStart = _a[0], setBackgroundAnimationStart = _a[1];
|
|
22
|
+
var responsive = (0, common_1.useResponsiveStyle)().responsive;
|
|
23
|
+
var palette = (0, common_1.useMonkTheme)().palette;
|
|
24
|
+
(0, common_1.useAsyncEffect)(function () {
|
|
25
|
+
setBackgroundAnimationStart(true);
|
|
26
|
+
return (0, common_1.timeoutPromise)(ANIMATION_DELAY_MS);
|
|
27
|
+
}, [params.galleryPreview], {
|
|
28
|
+
onResolve: function () { return setBackgroundAnimationStart(false); },
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
containerStyle: __assign(__assign(__assign({}, HUDButtons_styles_1.styles['container']), responsive(HUDButtons_styles_1.styles['containersPortrait'])), responsive(HUDButtons_styles_1.styles['containersLandscape'])),
|
|
32
|
+
gallery: {
|
|
33
|
+
style: __assign(__assign(__assign({}, HUDButtons_styles_1.styles['button']), { backgroundColor: HUDButtons_styles_1.captureButtonBackgroundColors[params.galleryStatus], borderColor: HUDButtons_styles_1.captureButtonForegroundColors[params.galleryStatus] }), (params.galleryStatus === types_1.InteractiveStatus.DISABLED ? HUDButtons_styles_1.styles['buttonDisabled'] : {})),
|
|
34
|
+
iconColor: HUDButtons_styles_1.captureButtonForegroundColors[params.galleryStatus],
|
|
35
|
+
},
|
|
36
|
+
galleryBadgeStyle: __assign(__assign({}, HUDButtons_styles_1.styles['buttonBadge']), { backgroundColor: palette.alert.base, color: palette.text.primary, visibility: params.showGalleryBadge ? 'visible' : 'hidden' }),
|
|
37
|
+
close: {
|
|
38
|
+
style: __assign(__assign(__assign(__assign({}, HUDButtons_styles_1.styles['button']), { backgroundColor: HUDButtons_styles_1.captureButtonBackgroundColors[params.closeStatus], borderColor: HUDButtons_styles_1.captureButtonForegroundColors[params.closeStatus] }), (params.closeStatus === types_1.InteractiveStatus.DISABLED ? HUDButtons_styles_1.styles['buttonDisabled'] : {})), { visibility: params.showCloseButton ? 'visible' : 'hidden' }),
|
|
39
|
+
iconColor: HUDButtons_styles_1.captureButtonForegroundColors[params.closeStatus],
|
|
40
|
+
},
|
|
41
|
+
backgroundCoverStyle: __assign(__assign({}, HUDButtons_styles_1.styles['backgroundCover']), { backgroundImage: params.galleryPreview ? "url(".concat(params.galleryPreview, ")") : 'none', transition: backgroundAnimationStart ? 'none' : 'transform 0.2s ease-out', transform: "scale(".concat(backgroundAnimationStart ? 0.3 : 1, ")") }),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.useHUDButtonsStyles = useHUDButtonsStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HUDButtons, type HUDButtonsProps } from './HUDButtons';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HUDButtons = void 0;
|
|
4
|
+
var HUDButtons_1 = require("./HUDButtons");
|
|
5
|
+
Object.defineProperty(exports, "HUDButtons", { enumerable: true, get: function () { return HUDButtons_1.HUDButtons; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HUDOverlayProps } from './hooks';
|
|
3
|
+
/**
|
|
4
|
+
* Component that displays an overlay on top of the PhotoCapture/DamageDisclosure component that is used
|
|
5
|
+
* to display elements such as error messages, spinning loaders etc.
|
|
6
|
+
*/
|
|
7
|
+
export declare function HUDOverlay({ isCaptureLoading, captureError, handle, onRetry, inspectionId, }: HUDOverlayProps): JSX.Element | null;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.HUDOverlay = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var react_i18next_1 = require("react-i18next");
|
|
17
|
+
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
18
|
+
var common_1 = require("@monkvision/common");
|
|
19
|
+
var HUDOverlay_styles_1 = require("./HUDOverlay.styles");
|
|
20
|
+
var hooks_1 = require("./hooks");
|
|
21
|
+
/**
|
|
22
|
+
* Component that displays an overlay on top of the PhotoCapture/DamageDisclosure component that is used
|
|
23
|
+
* to display elements such as error messages, spinning loaders etc.
|
|
24
|
+
*/
|
|
25
|
+
function HUDOverlay(_a) {
|
|
26
|
+
var isCaptureLoading = _a.isCaptureLoading, captureError = _a.captureError, handle = _a.handle, onRetry = _a.onRetry, inspectionId = _a.inspectionId;
|
|
27
|
+
var t = (0, react_i18next_1.useTranslation)().t;
|
|
28
|
+
var responsive = (0, common_1.useResponsiveStyle)().responsive;
|
|
29
|
+
var error = (0, hooks_1.useErrorLabel)(captureError, handle, inspectionId);
|
|
30
|
+
var handleRetry = (0, hooks_1.useRetry)({ captureError: captureError, handle: handle, onRetry: onRetry });
|
|
31
|
+
if (!isCaptureLoading && !error) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: HUDOverlay_styles_1.styles['overlay'], "data-testid": 'overlay' }, { children: [!error && isCaptureLoading && (0, jsx_runtime_1.jsx)(common_ui_web_1.Spinner, { size: 80, primaryColor: 'primary' }), error && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ style: __assign(__assign(__assign({}, HUDOverlay_styles_1.styles['errorMessage']), responsive(HUDOverlay_styles_1.styles['errorMessageMobile'])), responsive(HUDOverlay_styles_1.styles['errorMessageTablet'])) }, { children: error })), handleRetry && ((0, jsx_runtime_1.jsx)(common_ui_web_1.Button, __assign({ style: HUDOverlay_styles_1.styles['retryButton'], variant: 'outline', icon: 'refresh', onClick: handleRetry }, { children: t('photo.hud.error.retry') })))] }))] })));
|
|
35
|
+
}
|
|
36
|
+
exports.HUDOverlay = HUDOverlay;
|
package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay → components/HUDOverlay}/hooks.d.ts
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CameraHandle } from '@monkvision/camera-web';
|
|
2
2
|
/**
|
|
3
|
-
* Props of the
|
|
3
|
+
* Props of the HUDOverlay component.
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface HUDOverlayProps {
|
|
6
6
|
/**
|
|
7
7
|
* Boolean indicating if the global loading state of the PhotoCapture component is loading or not.
|
|
8
8
|
*/
|
|
@@ -24,5 +24,5 @@ export interface PhotoCaptureHUDOverlayProps {
|
|
|
24
24
|
*/
|
|
25
25
|
inspectionId: string;
|
|
26
26
|
}
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function useRetry({ captureError, handle, onRetry, }: Pick<
|
|
27
|
+
export declare function useErrorLabel(captureError: unknown | null, handle: CameraHandle, inspectionId: string): string | null;
|
|
28
|
+
export declare function useRetry({ captureError, handle, onRetry, }: Pick<HUDOverlayProps, 'captureError' | 'handle' | 'onRetry'>): (() => void) | null;
|
package/lib/{PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay → components/HUDOverlay}/hooks.js
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useRetry = exports.
|
|
3
|
+
exports.useRetry = exports.useErrorLabel = void 0;
|
|
4
4
|
var camera_web_1 = require("@monkvision/camera-web");
|
|
5
5
|
var react_i18next_1 = require("react-i18next");
|
|
6
6
|
var common_1 = require("@monkvision/common");
|
|
7
7
|
var network_1 = require("@monkvision/network");
|
|
8
8
|
var errors_1 = require("../../errors");
|
|
9
|
-
function
|
|
9
|
+
function useErrorLabel(captureError, handle, inspectionId) {
|
|
10
10
|
var _a;
|
|
11
11
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
12
12
|
var tObj = (0, common_1.useObjectTranslation)().tObj;
|
|
@@ -33,7 +33,7 @@ function usePhotoCaptureErrorLabel(captureError, handle, inspectionId) {
|
|
|
33
33
|
}
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
|
-
exports.
|
|
36
|
+
exports.useErrorLabel = useErrorLabel;
|
|
37
37
|
function useRetry(_a) {
|
|
38
38
|
var captureError = _a.captureError, handle = _a.handle, onRetry = _a.onRetry;
|
|
39
39
|
if (handle.error) {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HUDOverlay = void 0;
|
|
4
|
+
var HUDOverlay_1 = require("./HUDOverlay");
|
|
5
|
+
Object.defineProperty(exports, "HUDOverlay", { enumerable: true, get: function () { return HUDOverlay_1.HUDOverlay; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DeviceOrientation } from '@monkvision/types';
|
|
3
|
+
/**
|
|
4
|
+
* Props accepted by the OrientationEnforcer component.
|
|
5
|
+
*/
|
|
6
|
+
export interface OrientationEnforcerProps {
|
|
7
|
+
/**
|
|
8
|
+
* The device orientation to enforce.
|
|
9
|
+
*/
|
|
10
|
+
orientation?: DeviceOrientation;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Component that enforces a certain device orientation. If the current device orientation is not equal to the one
|
|
14
|
+
* passed as a prop, it will display an error on the screen asking the user to rotate their device.
|
|
15
|
+
*/
|
|
16
|
+
export declare function OrientationEnforcer({ orientation }: OrientationEnforcerProps): JSX.Element | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
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.OrientationEnforcer = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var common_ui_web_1 = require("@monkvision/common-ui-web");
|
|
17
|
+
var react_i18next_1 = require("react-i18next");
|
|
18
|
+
var OrientationEnforcer_styles_1 = require("./OrientationEnforcer.styles");
|
|
19
|
+
var hooks_1 = require("../../hooks");
|
|
20
|
+
/**
|
|
21
|
+
* Component that enforces a certain device orientation. If the current device orientation is not equal to the one
|
|
22
|
+
* passed as a prop, it will display an error on the screen asking the user to rotate their device.
|
|
23
|
+
*/
|
|
24
|
+
function OrientationEnforcer(_a) {
|
|
25
|
+
var orientation = _a.orientation;
|
|
26
|
+
var t = (0, react_i18next_1.useTranslation)().t;
|
|
27
|
+
var containerStyle = (0, OrientationEnforcer_styles_1.useOrientationEnforcerStyles)().containerStyle;
|
|
28
|
+
var isViolatingEnforcedOrientation = (0, hooks_1.useEnforceOrientation)(orientation);
|
|
29
|
+
if (!isViolatingEnforcedOrientation) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: containerStyle }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ style: OrientationEnforcer_styles_1.styles['titleContainer'] }, { children: [(0, jsx_runtime_1.jsx)(common_ui_web_1.Icon, { icon: 'rotate', primaryColor: 'text-primary', size: 30 }), (0, jsx_runtime_1.jsx)("div", __assign({ style: OrientationEnforcer_styles_1.styles['title'] }, { children: t('orientationEnforcer.title') }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ style: OrientationEnforcer_styles_1.styles['description'] }, { children: t('orientationEnforcer.description') }))] })));
|
|
33
|
+
}
|
|
34
|
+
exports.OrientationEnforcer = OrientationEnforcer;
|