@bigbinary/neeto-themes-frontend 3.0.3 → 3.0.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.
@@ -1828,18 +1828,37 @@ var TitleBar = function TitleBar(_ref) {
1828
1828
  themeToEdit = _ref.themeToEdit;
1829
1829
  var _useTranslation = reactI18next.useTranslation(),
1830
1830
  t = _useTranslation.t;
1831
+ var _useConfigStore = useThemeUtils.useConfigStore(function (store) {
1832
+ return {
1833
+ entityType: store["entityType"],
1834
+ helpDocUrl: store["helpDocUrl"]
1835
+ };
1836
+ }, shallow.shallow),
1837
+ entityType = _useConfigStore.entityType,
1838
+ helpDocUrl = _useConfigStore.helpDocUrl;
1831
1839
  var isCustomCssScreen = isScreenCustomCSS(currentScreen);
1832
1840
  if (currentScreen === DESIGN_SCREENS.THEMES) {
1833
1841
  return /*#__PURE__*/jsxRuntime.jsx("div", {
1834
1842
  className: "neeto-themes-sidebar__header px-6 lg:px-5 xl:px-6",
1835
1843
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
1836
1844
  className: "flex items-center justify-between space-x-2",
1837
- children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
1838
- "data-cy": "themes-header",
1839
- lineHeight: "normal",
1840
- style: "h3",
1841
- weight: "semibold",
1842
- children: t("neetoThemes.build.leftSideBar.headerTabs.themes")
1845
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
1846
+ className: "flex space-x-2",
1847
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
1848
+ "data-cy": "themes-header",
1849
+ lineHeight: "normal",
1850
+ style: "h3",
1851
+ weight: "semibold",
1852
+ children: t("neetoThemes.build.leftSideBar.headerTabs.themes")
1853
+ }), /*#__PURE__*/jsxRuntime.jsx(HelpPopover, {
1854
+ helpLinkProps: helpDocUrl && {
1855
+ href: helpDocUrl
1856
+ },
1857
+ title: t("neetoThemes.build.leftSideBar.helpPopover.title"),
1858
+ description: t("neetoThemes.build.leftSideBar.helpPopover.description", {
1859
+ entityType: entityType
1860
+ })
1861
+ })]
1843
1862
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
1844
1863
  className: "self-end",
1845
1864
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
@@ -2113,6 +2132,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
2113
2132
  entityId = _ref.entityId,
2114
2133
  thumbnail = _ref.thumbnail,
2115
2134
  onPropertiesChange = _ref.onPropertiesChange,
2135
+ _ref$helpDocUrl = _ref.helpDocUrl,
2136
+ helpDocUrl = _ref$helpDocUrl === void 0 ? null : _ref$helpDocUrl,
2116
2137
  _ref$isTemplateThemes = _ref.isTemplateThemesEnabled,
2117
2138
  isTemplateThemesEnabled = _ref$isTemplateThemes === void 0 ? false : _ref$isTemplateThemes,
2118
2139
  _ref$onApplyThemeSucc = _ref.onApplyThemeSuccess,
@@ -2147,7 +2168,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
2147
2168
  setConfigState({
2148
2169
  entityType: entityType,
2149
2170
  entityId: entityId,
2150
- isTemplateThemesEnabled: isTemplateThemesEnabled
2171
+ isTemplateThemesEnabled: isTemplateThemesEnabled,
2172
+ helpDocUrl: helpDocUrl
2151
2173
  });
2152
2174
  }, []);
2153
2175
  react.useEffect(function () {