@bigbinary/neeto-themes-frontend 3.0.1 → 3.0.2
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.
|
@@ -1167,7 +1167,8 @@ var Customize = function Customize(_ref) {
|
|
|
1167
1167
|
themePropertiesSchema = _useConfigStore.themePropertiesSchema,
|
|
1168
1168
|
entityType = _useConfigStore.entityType;
|
|
1169
1169
|
var _useThemeUtils = useThemeUtils.useThemeUtils(),
|
|
1170
|
-
currentTheme = _useThemeUtils.currentTheme
|
|
1170
|
+
currentTheme = _useThemeUtils.currentTheme,
|
|
1171
|
+
setThemeState = _useThemeUtils.setThemeState;
|
|
1171
1172
|
var _useShowGlobalTheme = useShowGlobalTheme(entityType),
|
|
1172
1173
|
_useShowGlobalTheme$d = _useShowGlobalTheme.data,
|
|
1173
1174
|
_useShowGlobalTheme$d2 = _useShowGlobalTheme$d === void 0 ? {} : _useShowGlobalTheme$d,
|
|
@@ -1208,11 +1209,15 @@ var Customize = function Customize(_ref) {
|
|
|
1208
1209
|
});
|
|
1209
1210
|
}
|
|
1210
1211
|
return updateTheme(themeToSave, {
|
|
1211
|
-
onSuccess: function onSuccess() {
|
|
1212
|
+
onSuccess: function onSuccess(_ref4) {
|
|
1213
|
+
var theme = _ref4.theme;
|
|
1214
|
+
onUpdateThemeSuccess === null || onUpdateThemeSuccess === void 0 ? void 0 : onUpdateThemeSuccess(theme);
|
|
1215
|
+
setThemeState({
|
|
1216
|
+
previewingTheme: theme
|
|
1217
|
+
});
|
|
1212
1218
|
resetForm({
|
|
1213
|
-
values:
|
|
1219
|
+
values: theme
|
|
1214
1220
|
});
|
|
1215
|
-
onUpdateThemeSuccess === null || onUpdateThemeSuccess === void 0 ? void 0 : onUpdateThemeSuccess(values);
|
|
1216
1221
|
}
|
|
1217
1222
|
});
|
|
1218
1223
|
};
|
|
@@ -1226,10 +1231,10 @@ var Customize = function Customize(_ref) {
|
|
|
1226
1231
|
enableReinitialize: true,
|
|
1227
1232
|
onSubmit: onSubmit
|
|
1228
1233
|
},
|
|
1229
|
-
children: function children(
|
|
1230
|
-
var dirty =
|
|
1231
|
-
values =
|
|
1232
|
-
setFieldValue =
|
|
1234
|
+
children: function children(_ref5) {
|
|
1235
|
+
var dirty = _ref5.dirty,
|
|
1236
|
+
values = _ref5.values,
|
|
1237
|
+
setFieldValue = _ref5.setFieldValue;
|
|
1233
1238
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1234
1239
|
className: "neeto-themes-sidebar__scroll",
|
|
1235
1240
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -1249,8 +1254,8 @@ var Customize = function Customize(_ref) {
|
|
|
1249
1254
|
})
|
|
1250
1255
|
}), neetoCist.filterBy({
|
|
1251
1256
|
kind: "image"
|
|
1252
|
-
}, themePropertiesSchema).map(function (
|
|
1253
|
-
var key =
|
|
1257
|
+
}, themePropertiesSchema).map(function (_ref6) {
|
|
1258
|
+
var key = _ref6.key;
|
|
1254
1259
|
return /*#__PURE__*/react.createElement(Images, {
|
|
1255
1260
|
onPropertiesChange: onPropertiesChange,
|
|
1256
1261
|
attribute: key,
|