@supportworks/multi-imagepicker 5.0.5 → 5.0.7

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,5 +1,5 @@
1
1
 
2
- # v5.0.5 2025-05-15
2
+ # v5.0.5 & v5.0.6 2025-05-15
3
3
  * added analytics
4
4
 
5
5
  # v5.0.4 2024-11-14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "5.0.5",
3
+ "version": "5.0.7",
4
4
  "description": "Android and iOS customized multiple image picker. For react-native >= 0.60.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -164,7 +164,7 @@ class AddImages extends React.Component
164
164
  }
165
165
 
166
166
  onPressCheckbox() {
167
- Analytics.logEvent('mip_addImages_saveToDevice_onPressCheckbox', { source_page: 'MultiImagePicker', saveToDeviceSetTo: !this.state.saveToDevice })
167
+ Analytics.logEvent('mip_addImages_saveToDevice', { source_page: 'MultiImagePicker', saveToDeviceSetTo: !this.state.saveToDevice })
168
168
  this.setState({saveToDevice: !this.state.saveToDevice});
169
169
  }
170
170
 
@@ -3,6 +3,7 @@ import {
3
3
  View
4
4
  } from 'react-native';
5
5
  import SingleImage from "./SingleImage";
6
+ import { Analytics } from '@supportworks/analytics'
6
7
 
7
8
  class SelectedImages extends React.Component {
8
9
 
@@ -19,6 +20,10 @@ class SelectedImages extends React.Component {
19
20
  this.onChangeImageInfo = this.onChangeImageInfo.bind(this);
20
21
  }
21
22
 
23
+ componentDidMount () {
24
+ Analytics.setCurrentScreen('MultiImagePicker/SelectedImages', this.constructor.name)
25
+ }
26
+
22
27
  onChangeImageInfo(payload) {
23
28
  //callback from ProjectAttachmentsSelectedImage, to update imgArr with any changes (called per keystroke)
24
29
  //payload expected (json): {name: 'fieldname', value: 'fieldvalue', isValid: boolean, imgIndex: number});
@@ -76,4 +81,4 @@ class SelectedImages extends React.Component {
76
81
  }
77
82
  }
78
83
 
79
- export default SelectedImages;
84
+ export default SelectedImages;
@@ -72,6 +72,7 @@ class SingleImage extends React.Component {
72
72
  //console.log("-----onChangeDesc end: description=" + cRef.txtDesc);
73
73
  }
74
74
  async onReadyCanvas(path){
75
+ Analytics.logEvent('mip_singleImage_annotate', { source_page: 'MultiImagePicker' })
75
76
  let data = await Api.getApi().getBase64FromLocal(path);
76
77
  let json = await Api.getApi().getUTF8FromLocal(path+".json");
77
78
  let origData = await Api.getApi().getBase64FromLocal(path+".orig");