@bigbinary/neeto-themes-frontend 1.1.24 → 1.1.25
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.
- package/dist/index.cjs.js +24 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -23423,10 +23423,12 @@ var Properties = function Properties() {
|
|
|
23423
23423
|
t = _useTranslation.t;
|
|
23424
23424
|
var _useConfigStore = useConfigStore(function (store) {
|
|
23425
23425
|
return {
|
|
23426
|
-
themePropertiesSchema: store["themePropertiesSchema"]
|
|
23426
|
+
themePropertiesSchema: store["themePropertiesSchema"],
|
|
23427
|
+
onPropertiesChange: store["onPropertiesChange"]
|
|
23427
23428
|
};
|
|
23428
23429
|
}, shallow.shallow),
|
|
23429
|
-
themePropertiesSchema = _useConfigStore.themePropertiesSchema
|
|
23430
|
+
themePropertiesSchema = _useConfigStore.themePropertiesSchema,
|
|
23431
|
+
onPropertiesChange = _useConfigStore.onPropertiesChange;
|
|
23430
23432
|
var _useThemeStore = useThemeStore(function (store) {
|
|
23431
23433
|
return {
|
|
23432
23434
|
setThemeState: store["setThemeState"]
|
|
@@ -23467,6 +23469,7 @@ var Properties = function Properties() {
|
|
|
23467
23469
|
}
|
|
23468
23470
|
};
|
|
23469
23471
|
React.useEffect(function () {
|
|
23472
|
+
onPropertiesChange === null || onPropertiesChange === void 0 || onPropertiesChange(values, setFieldValue);
|
|
23470
23473
|
setTheme(values);
|
|
23471
23474
|
setThemeState({
|
|
23472
23475
|
previewingTheme: values
|
|
@@ -23790,19 +23793,21 @@ var Card = function Card(_ref) {
|
|
|
23790
23793
|
className: "group space-y-2 pt-0.5",
|
|
23791
23794
|
"data-cy": active ? "active-theme-card" : "theme-card",
|
|
23792
23795
|
id: theme.id,
|
|
23793
|
-
|
|
23794
|
-
|
|
23795
|
-
|
|
23796
|
-
|
|
23797
|
-
|
|
23798
|
-
|
|
23799
|
-
|
|
23800
|
-
|
|
23801
|
-
|
|
23802
|
-
|
|
23803
|
-
|
|
23804
|
-
|
|
23805
|
-
|
|
23796
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
23797
|
+
onClick: function onClick() {
|
|
23798
|
+
return onSetPreviewTheme(theme);
|
|
23799
|
+
},
|
|
23800
|
+
children: Thumbnail$1 ? /*#__PURE__*/jsxRuntime.jsx(Thumbnail$1, {
|
|
23801
|
+
active: active,
|
|
23802
|
+
isHighLightedTheme: isHighLightedTheme,
|
|
23803
|
+
isPreviewing: isPreviewing,
|
|
23804
|
+
theme: theme
|
|
23805
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Thumbnail, {
|
|
23806
|
+
active: active,
|
|
23807
|
+
isHighLightedTheme: isHighLightedTheme,
|
|
23808
|
+
isPreviewing: isPreviewing,
|
|
23809
|
+
theme: theme
|
|
23810
|
+
})
|
|
23806
23811
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
23807
23812
|
className: "flex items-start justify-between gap-1",
|
|
23808
23813
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
@@ -24239,7 +24244,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
24239
24244
|
var children = _ref.children,
|
|
24240
24245
|
entityType = _ref.entityType,
|
|
24241
24246
|
entityId = _ref.entityId,
|
|
24242
|
-
thumbnail = _ref.thumbnail
|
|
24247
|
+
thumbnail = _ref.thumbnail,
|
|
24248
|
+
onPropertiesChange = _ref.onPropertiesChange;
|
|
24243
24249
|
var _useThemeStore = useThemeStore(function (store) {
|
|
24244
24250
|
return {
|
|
24245
24251
|
isCurrentThemeLoading: store["isCurrentThemeLoading"]
|
|
@@ -24255,7 +24261,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
24255
24261
|
React.useEffect(function () {
|
|
24256
24262
|
setConfigState({
|
|
24257
24263
|
entityType: entityType,
|
|
24258
|
-
entityId: entityId
|
|
24264
|
+
entityId: entityId,
|
|
24265
|
+
onPropertiesChange: onPropertiesChange
|
|
24259
24266
|
});
|
|
24260
24267
|
}, []);
|
|
24261
24268
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|