@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.js
CHANGED
|
@@ -23380,10 +23380,12 @@ var Properties = function Properties() {
|
|
|
23380
23380
|
t = _useTranslation.t;
|
|
23381
23381
|
var _useConfigStore = useConfigStore(function (store) {
|
|
23382
23382
|
return {
|
|
23383
|
-
themePropertiesSchema: store["themePropertiesSchema"]
|
|
23383
|
+
themePropertiesSchema: store["themePropertiesSchema"],
|
|
23384
|
+
onPropertiesChange: store["onPropertiesChange"]
|
|
23384
23385
|
};
|
|
23385
23386
|
}, shallow),
|
|
23386
|
-
themePropertiesSchema = _useConfigStore.themePropertiesSchema
|
|
23387
|
+
themePropertiesSchema = _useConfigStore.themePropertiesSchema,
|
|
23388
|
+
onPropertiesChange = _useConfigStore.onPropertiesChange;
|
|
23387
23389
|
var _useThemeStore = useThemeStore(function (store) {
|
|
23388
23390
|
return {
|
|
23389
23391
|
setThemeState: store["setThemeState"]
|
|
@@ -23424,6 +23426,7 @@ var Properties = function Properties() {
|
|
|
23424
23426
|
}
|
|
23425
23427
|
};
|
|
23426
23428
|
useEffect(function () {
|
|
23429
|
+
onPropertiesChange === null || onPropertiesChange === void 0 || onPropertiesChange(values, setFieldValue);
|
|
23427
23430
|
setTheme(values);
|
|
23428
23431
|
setThemeState({
|
|
23429
23432
|
previewingTheme: values
|
|
@@ -23747,19 +23750,21 @@ var Card = function Card(_ref) {
|
|
|
23747
23750
|
className: "group space-y-2 pt-0.5",
|
|
23748
23751
|
"data-cy": active ? "active-theme-card" : "theme-card",
|
|
23749
23752
|
id: theme.id,
|
|
23750
|
-
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
23757
|
-
|
|
23758
|
-
|
|
23759
|
-
|
|
23760
|
-
|
|
23761
|
-
|
|
23762
|
-
|
|
23753
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
23754
|
+
onClick: function onClick() {
|
|
23755
|
+
return onSetPreviewTheme(theme);
|
|
23756
|
+
},
|
|
23757
|
+
children: Thumbnail$1 ? /*#__PURE__*/jsx(Thumbnail$1, {
|
|
23758
|
+
active: active,
|
|
23759
|
+
isHighLightedTheme: isHighLightedTheme,
|
|
23760
|
+
isPreviewing: isPreviewing,
|
|
23761
|
+
theme: theme
|
|
23762
|
+
}) : /*#__PURE__*/jsx(Thumbnail, {
|
|
23763
|
+
active: active,
|
|
23764
|
+
isHighLightedTheme: isHighLightedTheme,
|
|
23765
|
+
isPreviewing: isPreviewing,
|
|
23766
|
+
theme: theme
|
|
23767
|
+
})
|
|
23763
23768
|
}), /*#__PURE__*/jsxs("div", {
|
|
23764
23769
|
className: "flex items-start justify-between gap-1",
|
|
23765
23770
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
@@ -24196,7 +24201,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
24196
24201
|
var children = _ref.children,
|
|
24197
24202
|
entityType = _ref.entityType,
|
|
24198
24203
|
entityId = _ref.entityId,
|
|
24199
|
-
thumbnail = _ref.thumbnail
|
|
24204
|
+
thumbnail = _ref.thumbnail,
|
|
24205
|
+
onPropertiesChange = _ref.onPropertiesChange;
|
|
24200
24206
|
var _useThemeStore = useThemeStore(function (store) {
|
|
24201
24207
|
return {
|
|
24202
24208
|
isCurrentThemeLoading: store["isCurrentThemeLoading"]
|
|
@@ -24212,7 +24218,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
24212
24218
|
useEffect(function () {
|
|
24213
24219
|
setConfigState({
|
|
24214
24220
|
entityType: entityType,
|
|
24215
|
-
entityId: entityId
|
|
24221
|
+
entityId: entityId,
|
|
24222
|
+
onPropertiesChange: onPropertiesChange
|
|
24216
24223
|
});
|
|
24217
24224
|
}, []);
|
|
24218
24225
|
return /*#__PURE__*/jsxs("div", {
|