@supportworks/multi-imagepicker 8.0.8 → 8.0.9

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/changes.md CHANGED
@@ -1,3 +1,8 @@
1
+
2
+ # v8.0.9 2025-12-01
3
+ * removed unnecessary props from ImageIndicators
4
+ * added check for Api.getApi().sendPhotosToCRM()
5
+
1
6
  # v8.0.8 2025-11-26
2
7
  * change a couple safeareaviews to use insets
3
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "8.0.8",
3
+ "version": "8.0.9",
4
4
  "description": "Android and iOS customized multiple image picker. For react-native >= 0.60.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -455,7 +455,7 @@ const AddImages = forwardRef((
455
455
  </View>
456
456
  </View>
457
457
 
458
- {false && (
458
+ {Api.getApi().sendPhotosToCRM() && (
459
459
  <UploadWarningModal
460
460
  visible={showInfoDialog}
461
461
  onClose={onCloseInfoDialog}
@@ -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
- ((allowShowToCustomer && showToCust) || (allowSaveToDevice && saveToDevice)) && (
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
- {allowShowToCustomer && showToCust && (
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
- {allowSaveToDevice && saveToDevice && (
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
- {allowShowToCustomer && showToCust && (
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
- {allowSaveToDevice && saveToDevice && (
48
+ {saveToDevice && (
51
49
  <View style={[styles.OverlayIconCircle]}>
52
50
  <Icons.IconDownloadDone2 size={16} fill={colors.white} fillOpacity={1} />
53
51
  </View>
@@ -9,7 +9,7 @@ const UploadWarningModal = (
9
9
  visible = false,
10
10
  onClose = null
11
11
  }) => {
12
- const [skipInfoDialog, setSkipInfoDialog] = useState(false)
12
+ const [skipInfoDialog, setSkipInfoDialog] = useState(true)
13
13
 
14
14
  const handleClose = useCallback(() => {
15
15
  if (onClose) onClose(skipInfoDialog)