You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ The following table lists the available configuration options in the `PhotoCaptu
124
124
| useAdaptiveImageQuality |`boolean`| Boolean indicating if the image quality should be downgraded automatically in case of low connection. ||`true`|
125
125
| maxUploadDurationWarning |`number`| Max upload duration in milliseconds before showing a bad connection warning to the user. Use `-1` to never display the warning. ||`15000`|
126
126
| allowSkipRetake |`boolean`| If compliance is enabled, this prop indicate if the user is allowed to skip the retaking process if some pictures are not compliant. ||`false`|
127
-
|enableAddDamage|`boolean`| Boolean indicating if `Add Damage`feature should be enabled or not. ||`true`|
127
+
|addDamage|`AddDamage`| Options for Add Damage. If disabled, the `Add Damage`button will be hidden. ||`AddDamage.PART_SELECT`|
128
128
| sightGuidelines |`sightGuideline[]`| A collection of sight guidelines in different language with a list of sightIds associate to it. |||
129
129
| enableSightGuideline |`boolean`| Boolean indicating whether the sight guideline feature is enabled. If disabled, the guideline text will be hidden. ||`true`|
130
130
| defaultVehicleType |`VehicleType`| Default vehicle type to use if no vehicle type has been specified. | ✔️ ||
Copy file name to clipboardExpand all lines: packages/inspection-capture-web/README.md
+22-21Lines changed: 22 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ export function MonkPhotoCapturePage({ authToken }) {
80
80
| tasksBySight |`Record<string, TaskName[]>`| Record associating each sight with a list of tasks to execute for it. If not provided, the default tasks of the sight will be used. |||
81
81
| showCloseButton |`boolean`| Indicates if the close button should be displayed in the HUD on top of the Camera preview. ||`false`|
82
82
| allowSkipRetake |`boolean`| If compliance is enabled, this prop indicate if the user is allowed to skip the retaking process if some pictures are not compliant. ||`false`|
83
-
|enableAddDamage|`boolean`| Boolean indicating if the Add Damage feature should be enabled or not. ||`true`|
83
+
|addDamage|`AddDamage`| Options for Add Damage. If disabled, the `Add Damage` button will be hidden. ||`AddDamage.PART_SELECT`|
84
84
| sightGuidelines |`sightGuideline[]`| A collection of sight guidelines in different language with a list of sightIds associate to it. |||
85
85
| enableSightGuideline |`boolean`| Boolean indicating whether the sight guideline feature is enabled. If disabled, the guideline text will be hidden. ||`true`|
86
86
| enableTutorial |`PhotoCaptureTutorialOption`| Options for displaying the photo capture tutorial. ||`PhotoCaptureTutorialOption.FIRST_TIME_ONLY`|
@@ -190,23 +190,24 @@ export function MonkDamageDisclosurePage({ authToken }) {
190
190
191
191
Props
192
192
193
-
| Prop | Type | Description | Required | Default Value |
| inspectionId | string | The ID of the inspection to add images to. Make sure that the user that created the inspection if the same one as the one described in the auth token in the `apiConfig` prop. | ✔️ ||
196
-
| apiConfig | ApiConfig | The api config used to communicate with the API. Make sure that the user described in the auth token is the same one as the one that created the inspection provided in the `inspectionId` prop. | ✔️ ||
197
-
| onClose |`() => void`| Callback called when the user clicks on the Close button. If this callback is not provided, the button will not be displayed on the screen. |||
198
-
| onComplete |`() => void`| Callback called when inspection capture is complete. |||
199
-
| onPictureTaken |`(picture: MonkPicture) => void`| Callback called when the user has taken a picture in the Capture process. |||
200
-
| lang | <code>string | null</code> | The language to be used by this component. ||`'en'`|
201
-
| enforceOrientation |`DeviceOrientation`| Use this prop to enforce a specific device orientation for the Camera screen. |||
202
-
| maxUploadDurationWarning |`number`| Max upload duration in milliseconds before showing a bad connection warning to the user. Use `-1` to never display the warning. ||`15000`|
203
-
| useAdaptiveImageQuality |`boolean`| Boolean indicating if the image quality should be downgraded automatically in case of low connection. ||`true`|
204
-
| showCloseButton |`boolean`| Indicates if the close button should be displayed in the HUD on top of the Camera preview. ||`false`|
205
-
| format |`CompressionFormat`| The output format of the compression. ||`CompressionFormat.JPEG`|
206
-
| quality |`number`| Value indicating image quality for the compression output. ||`0.6`|
207
-
| resolution |`CameraResolution`| Indicates the resolution of the pictures taken by the Camera. ||`CameraResolution.UHD_4K`|
208
-
| allowImageUpscaling |`boolean`| Allow images to be scaled up if the device does not support the specified resolution in the `resolution` prop. ||`false`|
209
-
| useLiveCompliance |`boolean`| Indicates if live compliance should be enabled or not. ||`false`|
210
-
| validateButtonLabel |`string`| Custom label for validate button in gallery view. |||
211
-
| thumbnailDomain |`string`| The API domain used to communicate with the resize micro service. | ✔️ ||
212
-
| vehicleType |`VehicleType`| The vehicle type of the inspection. ||`VehicleType.SEDAN`|
193
+
| Prop | Type | Description | Required | Default Value |
| inspectionId | string | The ID of the inspection to add images to. Make sure that the user that created the inspection if the same one as the one described in the auth token in the `apiConfig` prop. | ✔️ ||
196
+
| apiConfig | ApiConfig | The api config used to communicate with the API. Make sure that the user described in the auth token is the same one as the one that created the inspection provided in the `inspectionId` prop. | ✔️ ||
197
+
| onClose |`() => void`| Callback called when the user clicks on the Close button. If this callback is not provided, the button will not be displayed on the screen. |||
198
+
| onComplete |`() => void`| Callback called when inspection capture is complete. |||
199
+
| onPictureTaken |`(picture: MonkPicture) => void`| Callback called when the user has taken a picture in the Capture process. |||
200
+
| lang | <code>string | null</code> | The language to be used by this component. ||`'en'`|
201
+
| enforceOrientation |`DeviceOrientation`| Use this prop to enforce a specific device orientation for the Camera screen. |||
202
+
| maxUploadDurationWarning |`number`| Max upload duration in milliseconds before showing a bad connection warning to the user. Use `-1` to never display the warning. ||`15000`|
203
+
| useAdaptiveImageQuality |`boolean`| Boolean indicating if the image quality should be downgraded automatically in case of low connection. ||`true`|
204
+
| showCloseButton |`boolean`| Indicates if the close button should be displayed in the HUD on top of the Camera preview. ||`false`|
205
+
| format |`CompressionFormat`| The output format of the compression. ||`CompressionFormat.JPEG`|
206
+
| quality |`number`| Value indicating image quality for the compression output. ||`0.6`|
207
+
| resolution |`CameraResolution`| Indicates the resolution of the pictures taken by the Camera. ||`CameraResolution.UHD_4K`|
208
+
| allowImageUpscaling |`boolean`| Allow images to be scaled up if the device does not support the specified resolution in the `resolution` prop. ||`false`|
209
+
| useLiveCompliance |`boolean`| Indicates if live compliance should be enabled or not. ||`false`|
210
+
| validateButtonLabel |`string`| Custom label for validate button in gallery view. |||
211
+
| thumbnailDomain |`string`| The API domain used to communicate with the resize micro service. | ✔️ ||
212
+
| vehicleType |`VehicleType`| The vehicle type of the inspection. ||`VehicleType.SEDAN`|
213
+
| addDamage |`AddDamage`| Options for Add Damage. If disabled, the `Add Damage` button will be hidden. ||`AddDamage.PART_SELECT`|
0 commit comments