@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
package/package.json
CHANGED
|
@@ -164,7 +164,7 @@ class AddImages extends React.Component
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
onPressCheckbox() {
|
|
167
|
-
Analytics.logEvent('
|
|
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");
|