@bigbinary/neeto-themes-frontend 3.1.27 → 3.1.28
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.
|
@@ -871,7 +871,8 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
871
871
|
|
|
872
872
|
var Properties = function Properties(_ref) {
|
|
873
873
|
var onPropertiesChange = _ref.onPropertiesChange,
|
|
874
|
-
condition = _ref.condition
|
|
874
|
+
condition = _ref.condition,
|
|
875
|
+
themeId = _ref.themeId;
|
|
875
876
|
var _useConfigStore = useThemeUtils.useConfigStore(function (store) {
|
|
876
877
|
return {
|
|
877
878
|
themePropertiesSchema: store["themePropertiesSchema"]
|
|
@@ -930,6 +931,7 @@ var Properties = function Properties(_ref) {
|
|
|
930
931
|
}
|
|
931
932
|
};
|
|
932
933
|
react.useEffect(function () {
|
|
934
|
+
if (!((values === null || values === void 0 ? void 0 : values.id) === themeId)) return;
|
|
933
935
|
onPropertiesChange === null || onPropertiesChange === void 0 || onPropertiesChange(values, handleChange, handleColorChange);
|
|
934
936
|
setTheme(values);
|
|
935
937
|
setThemeState({
|
|
@@ -1370,7 +1372,8 @@ var Customize = function Customize(_ref) {
|
|
|
1370
1372
|
name: "style",
|
|
1371
1373
|
title: t("neetoThemes.common.style"),
|
|
1372
1374
|
children: /*#__PURE__*/jsxRuntime.jsx(Properties, {
|
|
1373
|
-
onPropertiesChange: onPropertiesChange
|
|
1375
|
+
onPropertiesChange: onPropertiesChange,
|
|
1376
|
+
themeId: themeId
|
|
1374
1377
|
})
|
|
1375
1378
|
}), neetoCist.filterBy({
|
|
1376
1379
|
kind: "image"
|