@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.
@@ -55,6 +55,10 @@
55
55
  "headerTabs": {
56
56
  "themes": "Themes"
57
57
  },
58
+ "helpPopover": {
59
+ "title": "Themes",
60
+ "description": "Personalize your {{entityType}} to match your brand."
61
+ },
58
62
  "themes": {
59
63
  "systemThemes": "System themes",
60
64
  "customThemes": "Custom themes",
@@ -1807,18 +1807,37 @@ var TitleBar = function TitleBar(_ref) {
1807
1807
  themeToEdit = _ref.themeToEdit;
1808
1808
  var _useTranslation = useTranslation(),
1809
1809
  t = _useTranslation.t;
1810
+ var _useConfigStore = useConfigStore(function (store) {
1811
+ return {
1812
+ entityType: store["entityType"],
1813
+ helpDocUrl: store["helpDocUrl"]
1814
+ };
1815
+ }, shallow),
1816
+ entityType = _useConfigStore.entityType,
1817
+ helpDocUrl = _useConfigStore.helpDocUrl;
1810
1818
  var isCustomCssScreen = isScreenCustomCSS(currentScreen);
1811
1819
  if (currentScreen === DESIGN_SCREENS.THEMES) {
1812
1820
  return /*#__PURE__*/jsx("div", {
1813
1821
  className: "neeto-themes-sidebar__header px-6 lg:px-5 xl:px-6",
1814
1822
  children: /*#__PURE__*/jsxs("div", {
1815
1823
  className: "flex items-center justify-between space-x-2",
1816
- children: [/*#__PURE__*/jsx(Typography, {
1817
- "data-cy": "themes-header",
1818
- lineHeight: "normal",
1819
- style: "h3",
1820
- weight: "semibold",
1821
- children: t("neetoThemes.build.leftSideBar.headerTabs.themes")
1824
+ children: [/*#__PURE__*/jsxs("div", {
1825
+ className: "flex space-x-2",
1826
+ children: [/*#__PURE__*/jsx(Typography, {
1827
+ "data-cy": "themes-header",
1828
+ lineHeight: "normal",
1829
+ style: "h3",
1830
+ weight: "semibold",
1831
+ children: t("neetoThemes.build.leftSideBar.headerTabs.themes")
1832
+ }), /*#__PURE__*/jsx(HelpPopover, {
1833
+ helpLinkProps: helpDocUrl && {
1834
+ href: helpDocUrl
1835
+ },
1836
+ title: t("neetoThemes.build.leftSideBar.helpPopover.title"),
1837
+ description: t("neetoThemes.build.leftSideBar.helpPopover.description", {
1838
+ entityType: entityType
1839
+ })
1840
+ })]
1822
1841
  }), /*#__PURE__*/jsx("div", {
1823
1842
  className: "self-end",
1824
1843
  children: /*#__PURE__*/jsx(Button, {
@@ -2092,6 +2111,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
2092
2111
  entityId = _ref.entityId,
2093
2112
  thumbnail = _ref.thumbnail,
2094
2113
  onPropertiesChange = _ref.onPropertiesChange,
2114
+ _ref$helpDocUrl = _ref.helpDocUrl,
2115
+ helpDocUrl = _ref$helpDocUrl === void 0 ? null : _ref$helpDocUrl,
2095
2116
  _ref$isTemplateThemes = _ref.isTemplateThemesEnabled,
2096
2117
  isTemplateThemesEnabled = _ref$isTemplateThemes === void 0 ? false : _ref$isTemplateThemes,
2097
2118
  _ref$onApplyThemeSucc = _ref.onApplyThemeSuccess,
@@ -2126,7 +2147,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
2126
2147
  setConfigState({
2127
2148
  entityType: entityType,
2128
2149
  entityId: entityId,
2129
- isTemplateThemesEnabled: isTemplateThemesEnabled
2150
+ isTemplateThemesEnabled: isTemplateThemesEnabled,
2151
+ helpDocUrl: helpDocUrl
2130
2152
  });
2131
2153
  }, []);
2132
2154
  useEffect(function () {