@supportworks/multi-imagepicker 7.0.3 → 7.0.4
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
CHANGED
|
@@ -454,10 +454,12 @@ const AddImages = forwardRef((
|
|
|
454
454
|
</View>
|
|
455
455
|
</SafeAreaView>
|
|
456
456
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
457
|
+
{Api.getApi().sendPhotosToCRM() && (
|
|
458
|
+
<UploadWarningModal
|
|
459
|
+
visible={showInfoDialog}
|
|
460
|
+
onClose={onCloseInfoDialog}
|
|
461
|
+
/>
|
|
462
|
+
)}
|
|
461
463
|
</Modal>
|
|
462
464
|
)
|
|
463
465
|
}
|
|
@@ -11,12 +11,10 @@ import { BlurView } from '@react-native-community/blur'
|
|
|
11
11
|
const ImageIndicators = (
|
|
12
12
|
{
|
|
13
13
|
saveToDevice = false,
|
|
14
|
-
allowSaveToDevice = null,
|
|
15
|
-
allowShowToCustomer = null,
|
|
16
14
|
showToCust = false
|
|
17
15
|
}) => {
|
|
18
16
|
return (
|
|
19
|
-
(
|
|
17
|
+
(showToCust || saveToDevice) && (
|
|
20
18
|
Platform.OS === 'ios'
|
|
21
19
|
? (
|
|
22
20
|
<BlurView
|
|
@@ -24,12 +22,12 @@ const ImageIndicators = (
|
|
|
24
22
|
style={[styles.ImageOverlayPill, { width: showToCust && saveToDevice ? 50 : 24 }]}
|
|
25
23
|
pointerEvents='none'
|
|
26
24
|
>
|
|
27
|
-
{
|
|
25
|
+
{showToCust && (
|
|
28
26
|
<View style={[styles.OverlayIconCircle, styles.OverlayIconCircleEye]}>
|
|
29
27
|
<Icons.IconEye_WithPad size={16} fill={colors.white} fillOpacity={1} />
|
|
30
28
|
</View>
|
|
31
29
|
)}
|
|
32
|
-
{
|
|
30
|
+
{saveToDevice && (
|
|
33
31
|
<View style={[styles.OverlayIconCircle]}>
|
|
34
32
|
<Icons.IconDownloadDone2 size={16} fill={colors.white} fillOpacity={1} />
|
|
35
33
|
</View>
|
|
@@ -42,12 +40,12 @@ const ImageIndicators = (
|
|
|
42
40
|
backgroundColor: 'rgba(0,0,0,0.35)'
|
|
43
41
|
}]} pointerEvents='none'
|
|
44
42
|
>
|
|
45
|
-
{
|
|
43
|
+
{showToCust && (
|
|
46
44
|
<View style={[styles.OverlayIconCircle, styles.OverlayIconCircleEye]}>
|
|
47
45
|
<Icons.IconEye_WithPad size={16} fill={colors.white} fillOpacity={1} />
|
|
48
46
|
</View>
|
|
49
47
|
)}
|
|
50
|
-
{
|
|
48
|
+
{saveToDevice && (
|
|
51
49
|
<View style={[styles.OverlayIconCircle]}>
|
|
52
50
|
<Icons.IconDownloadDone2 size={16} fill={colors.white} fillOpacity={1} />
|
|
53
51
|
</View>
|
|
@@ -111,7 +111,7 @@ const SingleImage = (
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
if (newValue !== initValue) {
|
|
114
|
-
console.log("
|
|
114
|
+
//console.log("SingleImage onDoneEditingInput: field='" + field + "' changed from '" + initValue + "' to '" + newValue + "'")
|
|
115
115
|
Analytics.logEvent('mip_singleImage_' + aType, {
|
|
116
116
|
source_page: 'MultiImagePicker',
|
|
117
117
|
initValue,
|
|
@@ -9,7 +9,7 @@ const UploadWarningModal = (
|
|
|
9
9
|
visible = false,
|
|
10
10
|
onClose = null
|
|
11
11
|
}) => {
|
|
12
|
-
const [skipInfoDialog, setSkipInfoDialog] = useState(
|
|
12
|
+
const [skipInfoDialog, setSkipInfoDialog] = useState(true)
|
|
13
13
|
|
|
14
14
|
const handleClose = useCallback(() => {
|
|
15
15
|
if (onClose) onClose(skipInfoDialog)
|