@bigbinary/neeto-themes-frontend 4.1.2-beta1 → 4.1.2-beta2

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/README.md CHANGED
@@ -117,6 +117,9 @@ and `neeto-themes-engine` Rails engine.
117
117
  ImageUploader component. Should be an object with `width` and `height`
118
118
  properties.
119
119
 
120
+ - `max_image_size_in_mb`: Maximum size of the uploaded image in MB for an
121
+ `image` kind property. Accepts decimals, eg: `0.1`. Defaults to `1`.
122
+
120
123
  3. **Provide a css variable prefix**
121
124
 
122
125
  This value will be used to prefix all CSS variables. Eg:
@@ -89,7 +89,7 @@
89
89
  "delete": "Delete",
90
90
  "setAsGlobalTheme": {
91
91
  "label": "Set as default theme",
92
- "helpText": "This theme will be used for all new {{entityType}}. Existing {{entityType}} won’t be affected.",
92
+ "helpText": "Enabling this will set this theme as the default theme for all the future {{entityType}}.",
93
93
  "tooltipContent": "This theme is currently set as the default theme. Please select another theme and make that theme the default theme."
94
94
  }
95
95
  },
package/dist/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-10-30T13:45:00.171Z
1
+ Built at 2026-10-30T15:42:38.687Z
@@ -7,7 +7,7 @@ import { useTranslation, Trans } from 'react-i18next';
7
7
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
8
8
  import _regeneratorRuntime from '@babel/runtime/regenerator';
9
9
  import Toastr from '@bigbinary/neetoui/Toastr';
10
- import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useCreateTheme, c as useUpdateTheme, d as routes, e as useCloneTheme, f as useApplyTheme, g as useListThemes, h as useShowThemeEntity, i as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-SjAowyFk.js';
10
+ import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useCreateTheme, c as useUpdateTheme, d as routes, e as useCloneTheme, f as useApplyTheme, g as useListThemes, h as useShowThemeEntity, i as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-rjnbY2KV.js';
11
11
  import { a as useExpandedSection, b as useConfigStore, c as useThemeStore, u as useThemeUtils, P as POSITION_OPTIONS, H as HUNDRED, O as OVERLAY_OPACITY_SLIDER_MARKS, F as FONT_OPTIONS, d as useSyncExpandedSectionFromUrl, T as THEME_VALIDATION_SCHEMA, A as APPLY_SPINNER_DELAY } from './useExpandedSection-MjgB7rh6.js';
12
12
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
13
13
  import classnames from 'classnames';
@@ -1222,10 +1222,6 @@ var ImageBlock = function ImageBlock(_ref) {
1222
1222
  name = _ref.name,
1223
1223
  _ref$imageData = _ref.imageData,
1224
1224
  imageData = _ref$imageData === void 0 ? {} : _ref$imageData,
1225
- _ref$uploadConfig = _ref.uploadConfig,
1226
- uploadConfig = _ref$uploadConfig === void 0 ? {
1227
- maxImageSize: ONE_MEGABYTE
1228
- } : _ref$uploadConfig,
1229
1225
  attribute = _ref.attribute,
1230
1226
  defaultImageSize = _ref.defaultImageSize,
1231
1227
  useDefaultImageSize = _ref.useDefaultImageSize,
@@ -1246,6 +1242,9 @@ var ImageBlock = function ImageBlock(_ref) {
1246
1242
  }, themePropertiesSchema);
1247
1243
  var enablePositionChanger = (propertySchema === null || propertySchema === void 0 ? void 0 : propertySchema.enablePositionChanger) || false;
1248
1244
  var options = propertySchema === null || propertySchema === void 0 ? void 0 : propertySchema.options;
1245
+ var uploadConfig = {
1246
+ maxImageSize: (propertySchema === null || propertySchema === void 0 ? void 0 : propertySchema.maxImageSizeInMb) || ONE_MEGABYTE
1247
+ };
1249
1248
  var positionKeyInSchema = findBy({
1250
1249
  key: "".concat(name, "_position")
1251
1250
  }, themePropertiesSchema);