@dreamcommerce/aurora 2.27.1-8 → 2.27.1-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.
|
@@ -178,8 +178,8 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
178
178
|
};
|
|
179
179
|
}();
|
|
180
180
|
|
|
181
|
-
if (!
|
|
182
|
-
setFileFromUrl(
|
|
181
|
+
if (!initialFile) return;
|
|
182
|
+
setFileFromUrl(initialFile);
|
|
183
183
|
return function () {
|
|
184
184
|
var _pendingRequestRef$cu;
|
|
185
185
|
|
|
@@ -213,7 +213,7 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
213
213
|
onError: onError,
|
|
214
214
|
errors: errors,
|
|
215
215
|
allowedExtensions: allowedExtensions,
|
|
216
|
-
initialFile:
|
|
216
|
+
initialFile: initialFile,
|
|
217
217
|
onImageSizeUpdated: onImageSizeUpdated,
|
|
218
218
|
topButtons: !!ImageEditor && imageExtenstion !== 'svg' && /*#__PURE__*/React__default['default'].createElement("button", {
|
|
219
219
|
className: main_module['default'][css_classes['default'].imagePickerEditButton],
|
|
@@ -170,8 +170,8 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
170
170
|
};
|
|
171
171
|
}();
|
|
172
172
|
|
|
173
|
-
if (!
|
|
174
|
-
setFileFromUrl(
|
|
173
|
+
if (!initialFile) return;
|
|
174
|
+
setFileFromUrl(initialFile);
|
|
175
175
|
return function () {
|
|
176
176
|
var _pendingRequestRef$cu;
|
|
177
177
|
|
|
@@ -205,7 +205,7 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
|
|
|
205
205
|
onError: onError,
|
|
206
206
|
errors: errors,
|
|
207
207
|
allowedExtensions: allowedExtensions,
|
|
208
|
-
initialFile:
|
|
208
|
+
initialFile: initialFile,
|
|
209
209
|
onImageSizeUpdated: onImageSizeUpdated,
|
|
210
210
|
topButtons: !!ImageEditor && imageExtenstion !== 'svg' && /*#__PURE__*/React.createElement("button", {
|
|
211
211
|
className: styles[CSS_CLASSES.imagePickerEditButton],
|