@supportworks/multi-imagepicker 8.3.6 → 8.3.8
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/package.json +1 -1
- package/src/components/AddImages.js +2 -1
- package/src/components/CameraModal.tsx +713 -394
- package/src/components/MultiImagePicker.js +143 -50
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ const AddImages = forwardRef((
|
|
|
22
22
|
annotationAllowed = false, // whether to allow annotations on images
|
|
23
23
|
showToCustomerAllowed = false, // whether to allow "show to customer" option
|
|
24
24
|
maxCount, // = null, //max number of images that can be selected. Passed to MultiImagePicker. If null default not commented out, causes crash, so leave it this way.
|
|
25
|
+
existingCount = 0, // number of images already attached outside of this picker session
|
|
25
26
|
children
|
|
26
27
|
}, ref) => {
|
|
27
28
|
const updateAddImagesProvider = useAddImagesProvider()
|
|
@@ -441,7 +442,7 @@ const AddImages = forwardRef((
|
|
|
441
442
|
])
|
|
442
443
|
|
|
443
444
|
return (
|
|
444
|
-
!showAdd && !showAttaching && <MultiImagePicker ref={setPickerRef} hitSlop={hitSlop} maxCount={maxCount} parentStyle={parentStyle} callback={onImageSelect}>
|
|
445
|
+
!showAdd && !showAttaching && <MultiImagePicker ref={setPickerRef} hitSlop={hitSlop} maxCount={maxCount} existingCount={existingCount} parentStyle={parentStyle} callback={onImageSelect}>
|
|
445
446
|
{children}
|
|
446
447
|
</MultiImagePicker>
|
|
447
448
|
)
|