@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.
|
@@ -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__*/
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
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 () {
|