@dreamcommerce/aurora 2.27.1-13 → 2.27.1-15
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.
|
@@ -141,6 +141,9 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
141
141
|
React.useEffect(function () {
|
|
142
142
|
initialFile && setImageExtenstion(utilities.FileUtils.getFileExtension(initialFile === null || initialFile === void 0 ? void 0 : initialFile.fileName));
|
|
143
143
|
}, []);
|
|
144
|
+
React.useEffect(function () {
|
|
145
|
+
console.log('initialFile', initialFile);
|
|
146
|
+
}, [initialFile]);
|
|
144
147
|
React.useEffect(function () {
|
|
145
148
|
initialImageFile.current = initialFile;
|
|
146
149
|
image && setImageExtenstion(utilities.FileUtils.getFileExtension(image === null || image === void 0 ? void 0 : image.name));
|
|
@@ -184,13 +187,10 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
184
187
|
|
|
185
188
|
return (_pendingRequestRef$cu = pendingRequestRef.current) === null || _pendingRequestRef$cu === void 0 ? void 0 : _pendingRequestRef$cu.call(pendingRequestRef);
|
|
186
189
|
};
|
|
187
|
-
}, [image
|
|
190
|
+
}, [image]);
|
|
188
191
|
React.useEffect(function () {
|
|
189
192
|
console.log('initialImageFile.current', initialImageFile.current);
|
|
190
193
|
}, [initialImageFile]);
|
|
191
|
-
React.useEffect(function () {
|
|
192
|
-
console.log('initialImage', initialImage);
|
|
193
|
-
}, [initialImage]);
|
|
194
194
|
React.useEffect(function () {
|
|
195
195
|
var src = image !== null && image !== void 0 ? image : initialImage;
|
|
196
196
|
setImageEditorSrc(src !== null && src !== void 0 ? src : '');
|
|
@@ -133,6 +133,9 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
133
133
|
useEffect(function () {
|
|
134
134
|
initialFile && setImageExtenstion(FileUtils.getFileExtension(initialFile === null || initialFile === void 0 ? void 0 : initialFile.fileName));
|
|
135
135
|
}, []);
|
|
136
|
+
useEffect(function () {
|
|
137
|
+
console.log('initialFile', initialFile);
|
|
138
|
+
}, [initialFile]);
|
|
136
139
|
useEffect(function () {
|
|
137
140
|
initialImageFile.current = initialFile;
|
|
138
141
|
image && setImageExtenstion(FileUtils.getFileExtension(image === null || image === void 0 ? void 0 : image.name));
|
|
@@ -176,13 +179,10 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
176
179
|
|
|
177
180
|
return (_pendingRequestRef$cu = pendingRequestRef.current) === null || _pendingRequestRef$cu === void 0 ? void 0 : _pendingRequestRef$cu.call(pendingRequestRef);
|
|
178
181
|
};
|
|
179
|
-
}, [image
|
|
182
|
+
}, [image]);
|
|
180
183
|
useEffect(function () {
|
|
181
184
|
console.log('initialImageFile.current', initialImageFile.current);
|
|
182
185
|
}, [initialImageFile]);
|
|
183
|
-
useEffect(function () {
|
|
184
|
-
console.log('initialImage', initialImage);
|
|
185
|
-
}, [initialImage]);
|
|
186
186
|
useEffect(function () {
|
|
187
187
|
var src = image !== null && image !== void 0 ? image : initialImage;
|
|
188
188
|
setImageEditorSrc(src !== null && src !== void 0 ? src : '');
|