@bigbinary/neeto-themes-frontend 3.1.30 → 3.1.32

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.
@@ -1631,8 +1631,7 @@ var Card = function Card(_ref) {
1631
1631
  var _useTranslation = reactI18next.useTranslation(),
1632
1632
  t = _useTranslation.t;
1633
1633
  var id = theme.id,
1634
- name = theme.name,
1635
- appliedCount = theme.appliedCount;
1634
+ name = theme.name;
1636
1635
  var handleCloneTheme = function handleCloneTheme() {
1637
1636
  return onCloneTheme(theme);
1638
1637
  };
@@ -1640,7 +1639,7 @@ var Card = function Card(_ref) {
1640
1639
  return onEditTheme(theme);
1641
1640
  };
1642
1641
  var handleDeleteTheme = function handleDeleteTheme() {
1643
- return onDeleteTheme(id, name, appliedCount);
1642
+ return onDeleteTheme(id, name);
1644
1643
  };
1645
1644
  var handleApplyGlobalTheme = function handleApplyGlobalTheme() {
1646
1645
  return onApplyGlobalTheme(id);
@@ -1890,6 +1889,7 @@ var Themes = function Themes(_ref) {
1890
1889
  }), ramda.isEmpty(filteredThemes) && ramda.isEmpty(filteredDefaultThemes) && /*#__PURE__*/jsxRuntime.jsx(Typography, {
1891
1890
  className: "text-center",
1892
1891
  style: "body2",
1892
+ "data-cy": "no-data-title",
1893
1893
  children: t("neetoThemes.common.noResultsFound")
1894
1894
  }), neetoCist.isNotEmpty(filteredDefaultThemes) && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1895
1895
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
@@ -2045,7 +2045,7 @@ var TitleBar = function TitleBar(_ref) {
2045
2045
 
2046
2046
  var MemoizedAlert = /*#__PURE__*/react.memo(Alert);
2047
2047
  var Sidebar = function Sidebar(_ref) {
2048
- var _themeToDelete$curren2, _themeToDelete$curren3, _themeToDelete$curren4;
2048
+ var _themeToDelete$curren2;
2049
2049
  var thumbnail = _ref.thumbnail,
2050
2050
  onPropertiesChange = _ref.onPropertiesChange,
2051
2051
  defaultImageSize = _ref.defaultImageSize,
@@ -2188,12 +2188,11 @@ var Sidebar = function Sidebar(_ref) {
2188
2188
  themeToEdit.current = updatedTheme;
2189
2189
  onUpdateThemeSuccess === null || onUpdateThemeSuccess === void 0 || onUpdateThemeSuccess(updatedTheme);
2190
2190
  };
2191
- var handleDelete = function handleDelete(themeId, name, appliedCount) {
2191
+ var handleDelete = function handleDelete(themeId, name) {
2192
2192
  setIsDeleteAlertOpen(true);
2193
2193
  themeToDelete.current = {
2194
2194
  id: themeId,
2195
- name: name,
2196
- appliedCount: appliedCount
2195
+ name: name
2197
2196
  };
2198
2197
  };
2199
2198
  var handleCloseDeleteAlert = react.useCallback(function () {
@@ -2287,11 +2286,8 @@ var Sidebar = function Sidebar(_ref) {
2287
2286
  title: t("neetoThemes.alerts.title.deleteTheme"),
2288
2287
  message: t("neetoThemes.alerts.message.deleteTheme", {
2289
2288
  name: (_themeToDelete$curren2 = themeToDelete.current) === null || _themeToDelete$curren2 === void 0 ? void 0 : _themeToDelete$curren2.name,
2290
- count: (_themeToDelete$curren3 = themeToDelete.current) === null || _themeToDelete$curren3 === void 0 ? void 0 : _themeToDelete$curren3.appliedCount,
2291
2289
  defaultThemeName: defaultThemeName,
2292
- entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()), {
2293
- count: (_themeToDelete$curren4 = themeToDelete.current) === null || _themeToDelete$curren4 === void 0 ? void 0 : _themeToDelete$curren4.appliedCount
2294
- })
2290
+ entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()))
2295
2291
  }),
2296
2292
  onClose: handleCloseDeleteAlert,
2297
2293
  onSubmit: handleDeleteTheme