@bigbinary/neeto-themes-frontend 4.1.3 → 4.1.4

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.
@@ -1179,10 +1179,6 @@ var ImageBlock = function ImageBlock(_ref) {
1179
1179
  name = _ref.name,
1180
1180
  _ref$imageData = _ref.imageData,
1181
1181
  imageData = _ref$imageData === void 0 ? {} : _ref$imageData,
1182
- _ref$uploadConfig = _ref.uploadConfig,
1183
- uploadConfig = _ref$uploadConfig === void 0 ? {
1184
- maxImageSize: ONE_MEGABYTE
1185
- } : _ref$uploadConfig,
1186
1182
  attribute = _ref.attribute,
1187
1183
  defaultImageSize = _ref.defaultImageSize,
1188
1184
  useDefaultImageSize = _ref.useDefaultImageSize,
@@ -1203,6 +1199,9 @@ var ImageBlock = function ImageBlock(_ref) {
1203
1199
  }, themePropertiesSchema);
1204
1200
  var enablePositionChanger = (propertySchema === null || propertySchema === void 0 ? void 0 : propertySchema.enablePositionChanger) || false;
1205
1201
  var options = propertySchema === null || propertySchema === void 0 ? void 0 : propertySchema.options;
1202
+ var uploadConfig = {
1203
+ maxImageSize: (propertySchema === null || propertySchema === void 0 ? void 0 : propertySchema.maxImageSizeInMb) || ONE_MEGABYTE
1204
+ };
1206
1205
  var positionKeyInSchema = findBy({
1207
1206
  key: "".concat(name, "_position")
1208
1207
  }, themePropertiesSchema);