Skip to content

Commit 103846b

Browse files
authored
Updated docs (#902)
1 parent 291bd38 commit 103846b

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

documentation/docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ The following table lists the available configuration options in the `PhotoCaptu
124124
| useAdaptiveImageQuality | `boolean` | Boolean indicating if the image quality should be downgraded automatically in case of low connection. | | `true` |
125125
| maxUploadDurationWarning | `number` | Max upload duration in milliseconds before showing a bad connection warning to the user. Use `-1` to never display the warning. | | `15000` |
126126
| 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` |
128128
| sightGuidelines | `sightGuideline[]` | A collection of sight guidelines in different language with a list of sightIds associate to it. | | |
129129
| enableSightGuideline | `boolean` | Boolean indicating whether the sight guideline feature is enabled. If disabled, the guideline text will be hidden. | | `true` |
130130
| defaultVehicleType | `VehicleType` | Default vehicle type to use if no vehicle type has been specified. | ✔️ | |

packages/inspection-capture-web/README.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function MonkPhotoCapturePage({ authToken }) {
8080
| 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. | | |
8181
| showCloseButton | `boolean` | Indicates if the close button should be displayed in the HUD on top of the Camera preview. | | `false` |
8282
| 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` |
8484
| sightGuidelines | `sightGuideline[]` | A collection of sight guidelines in different language with a list of sightIds associate to it. | | |
8585
| enableSightGuideline | `boolean` | Boolean indicating whether the sight guideline feature is enabled. If disabled, the guideline text will be hidden. | | `true` |
8686
| enableTutorial | `PhotoCaptureTutorialOption` | Options for displaying the photo capture tutorial. | | `PhotoCaptureTutorialOption.FIRST_TIME_ONLY` |
@@ -190,23 +190,24 @@ export function MonkDamageDisclosurePage({ authToken }) {
190190

191191
Props
192192

193-
| Prop | Type | Description | Required | Default Value |
194-
|----------------------------|----------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|----------------------------------------------|
195-
| 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 &#124; 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 |
194+
|--------------------------|----------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|----------------------------------------------|
195+
| 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 &#124; 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

Comments
 (0)