@bigbinary/neeto-themes-frontend 3.1.24 → 3.1.26

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.
Files changed (55) hide show
  1. package/app/javascript/src/translations/ar.json +8 -1
  2. package/app/javascript/src/translations/bg.json +8 -1
  3. package/app/javascript/src/translations/ca.json +8 -1
  4. package/app/javascript/src/translations/cs.json +8 -1
  5. package/app/javascript/src/translations/da.json +8 -1
  6. package/app/javascript/src/translations/de.json +8 -1
  7. package/app/javascript/src/translations/en.json +3 -1
  8. package/app/javascript/src/translations/es-MX.json +8 -1
  9. package/app/javascript/src/translations/es.json +8 -1
  10. package/app/javascript/src/translations/et.json +8 -1
  11. package/app/javascript/src/translations/fi.json +8 -1
  12. package/app/javascript/src/translations/fil.json +8 -1
  13. package/app/javascript/src/translations/fr.json +8 -1
  14. package/app/javascript/src/translations/hi.json +8 -1
  15. package/app/javascript/src/translations/hr.json +8 -1
  16. package/app/javascript/src/translations/id.json +8 -1
  17. package/app/javascript/src/translations/it.json +8 -1
  18. package/app/javascript/src/translations/ja.json +8 -1
  19. package/app/javascript/src/translations/ko.json +8 -1
  20. package/app/javascript/src/translations/nl.json +8 -1
  21. package/app/javascript/src/translations/pl.json +8 -1
  22. package/app/javascript/src/translations/pt-BR.json +8 -1
  23. package/app/javascript/src/translations/pt.json +8 -1
  24. package/app/javascript/src/translations/ro.json +8 -1
  25. package/app/javascript/src/translations/ru.json +8 -1
  26. package/app/javascript/src/translations/sk.json +8 -1
  27. package/app/javascript/src/translations/sl.json +8 -1
  28. package/app/javascript/src/translations/sv.json +8 -1
  29. package/app/javascript/src/translations/th.json +8 -1
  30. package/app/javascript/src/translations/tr.json +8 -1
  31. package/app/javascript/src/translations/uk.json +8 -1
  32. package/app/javascript/src/translations/vi.json +8 -1
  33. package/app/javascript/src/translations/zh-CN.json +8 -1
  34. package/app/javascript/src/translations/zh-TW.json +8 -1
  35. package/dist/NeetoThemesBuilder.js +43 -10
  36. package/dist/NeetoThemesBuilder.js.map +1 -1
  37. package/dist/cjs/NeetoThemesBuilder.js +43 -10
  38. package/dist/cjs/NeetoThemesBuilder.js.map +1 -1
  39. package/dist/cjs/hooks.js +2 -2
  40. package/dist/cjs/index.js +2 -2
  41. package/dist/cjs/utils.js +1 -1
  42. package/dist/hooks.js +2 -2
  43. package/dist/{index-CFGmwZqT.js → index-BTTf3ejM.js} +2 -2
  44. package/dist/index-BTTf3ejM.js.map +1 -0
  45. package/dist/{index-Yv0AE3Ax.js → index-qMUciLPW.js} +2 -2
  46. package/dist/index-qMUciLPW.js.map +1 -0
  47. package/dist/index.js +2 -2
  48. package/dist/{useThemeUtils-BKRToQhH.js → useThemeUtils-B0Tbg01J.js} +2 -2
  49. package/dist/{useThemeUtils-BKRToQhH.js.map → useThemeUtils-B0Tbg01J.js.map} +1 -1
  50. package/dist/{useThemeUtils-CUKQqXSo.js → useThemeUtils-C9AHecqZ.js} +2 -2
  51. package/dist/{useThemeUtils-CUKQqXSo.js.map → useThemeUtils-C9AHecqZ.js.map} +1 -1
  52. package/dist/utils.js +1 -1
  53. package/package.json +14 -13
  54. package/dist/index-CFGmwZqT.js.map +0 -1
  55. package/dist/index-Yv0AE3Ax.js.map +0 -1
@@ -4,10 +4,10 @@ import { hyphenate, isPresent, findBy, findIndexBy, isNot, filterBy, snakeToCame
4
4
  import { useMutationWithInvalidation, useBreakpoints, PageTitle } from '@bigbinary/neeto-commons-frontend/react-utils';
5
5
  import Spinner from '@bigbinary/neetoui/Spinner';
6
6
  import { useTranslation, Trans } from 'react-i18next';
7
- import { B as BASE_URL, b as scrollElementIntoView, c as setCustomCSS, g as getDominantColorFromUrl, i as isEditThemeRoute, d as isFunction, e as isNewThemeRoute } from './index-CFGmwZqT.js';
7
+ import { B as BASE_URL, b as scrollElementIntoView, c as setCustomCSS, g as getDominantColorFromUrl, i as isEditThemeRoute, d as isFunction, e as isNewThemeRoute } from './index-BTTf3ejM.js';
8
8
  import { useQuery, useQueryClient } from '@tanstack/react-query';
9
9
  import axios from 'axios';
10
- import { Q as QUERY_KEYS, a as useConfigStore, b as useThemeStore, u as useThemeUtils, P as POSITION_OPTIONS, O as OVERLAY_OPACITY_SLIDER_MARKS, H as HUNDRED, F as FONT_OPTIONS, T as THEME_VALIDATION_SCHEMA } from './useThemeUtils-BKRToQhH.js';
10
+ import { Q as QUERY_KEYS, a as useConfigStore, b as useThemeStore, u as useThemeUtils, P as POSITION_OPTIONS, O as OVERLAY_OPACITY_SLIDER_MARKS, H as HUNDRED, F as FONT_OPTIONS, T as THEME_VALIDATION_SCHEMA } from './useThemeUtils-B0Tbg01J.js';
11
11
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
12
12
  import classnames from 'classnames';
13
13
  import { joinHyphenCase, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
@@ -428,14 +428,46 @@ var LogoPosition = function LogoPosition() {
428
428
  if (index === -1) return null;
429
429
  return /*#__PURE__*/jsxs(Radio, {
430
430
  stacked: true,
431
- label: t("neetoThemes.build.leftSideBar.themes.logoPosition.title"),
432
431
  name: "properties[".concat(index, "].value"),
432
+ label: /*#__PURE__*/jsx(Typography, {
433
+ className: "my-3",
434
+ component: "span",
435
+ style: "body2",
436
+ weight: "semibold",
437
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.title")
438
+ }),
433
439
  children: [/*#__PURE__*/jsx(Radio.Item, {
434
- label: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeft"),
435
- value: "below_left"
440
+ value: "over_left",
441
+ label: /*#__PURE__*/jsxs("span", {
442
+ className: "flex flex-col gap-1",
443
+ children: [/*#__PURE__*/jsx(Typography, {
444
+ component: "span",
445
+ style: "body2",
446
+ weight: "semibold",
447
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeft")
448
+ }), /*#__PURE__*/jsx(Typography, {
449
+ component: "span",
450
+ style: "body3",
451
+ weight: "normal",
452
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeftDescription")
453
+ })]
454
+ })
436
455
  }), /*#__PURE__*/jsx(Radio.Item, {
437
- label: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeft"),
438
- value: "over_left"
456
+ value: "below_left",
457
+ label: /*#__PURE__*/jsxs("span", {
458
+ className: "flex flex-col gap-1",
459
+ children: [/*#__PURE__*/jsx(Typography, {
460
+ component: "span",
461
+ style: "body2",
462
+ weight: "semibold",
463
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeft")
464
+ }), /*#__PURE__*/jsx(Typography, {
465
+ component: "span",
466
+ style: "body3",
467
+ weight: "normal",
468
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeftDescription")
469
+ })]
470
+ })
439
471
  })]
440
472
  });
441
473
  };
@@ -1121,6 +1153,7 @@ var ImageBlock = function ImageBlock(_ref) {
1121
1153
  };
1122
1154
 
1123
1155
  var Images = function Images(_ref) {
1156
+ var _values$coverImage;
1124
1157
  var attribute = _ref.attribute,
1125
1158
  className = _ref.className,
1126
1159
  onPropertiesChange = _ref.onPropertiesChange,
@@ -1153,7 +1186,7 @@ var Images = function Images(_ref) {
1153
1186
  }), /*#__PURE__*/jsx(Properties, {
1154
1187
  onPropertiesChange: onPropertiesChange,
1155
1188
  condition: attribute
1156
- }), key === "logo" && /*#__PURE__*/jsx(LogoPosition, {})]
1189
+ }), key === "logo" && ((_values$coverImage = values.coverImage) === null || _values$coverImage === void 0 ? void 0 : _values$coverImage.url) && /*#__PURE__*/jsx(LogoPosition, {})]
1157
1190
  });
1158
1191
  };
1159
1192
 
@@ -2296,10 +2329,10 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
2296
2329
  window.addEventListener("orientationchange", setViewportHeight);
2297
2330
  window.addEventListener("scroll", setViewportHeight);
2298
2331
  return function () {
2299
- window.addEventListener("load", setViewportHeight);
2332
+ window.removeEventListener("load", setViewportHeight);
2300
2333
  window.removeEventListener("resize", setViewportHeight);
2301
2334
  window.removeEventListener("orientationchange", setViewportHeight);
2302
- window.addEventListener("scroll", setViewportHeight);
2335
+ window.removeEventListener("scroll", setViewportHeight);
2303
2336
  };
2304
2337
  }, []);
2305
2338
  return /*#__PURE__*/jsxs("div", {