jamespot-front-business 1.1.53 → 1.1.54

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/cjs.js CHANGED
@@ -1547,9 +1547,9 @@ const fetchMediaLibraryFilesStats = toolkit.createAsyncThunk('MediaLibrary/fetch
1547
1547
  return rejectWithValue({ error: 1, errorMsg: 'Cannot get MediaLibrary files stats' });
1548
1548
  }
1549
1549
  }));
1550
- const fetchMediaLibraryStats = toolkit.createAsyncThunk('MediaLibrary/fetchMediaLibraryStats', ({ filters }, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1550
+ const fetchMediaLibraryStats = toolkit.createAsyncThunk('MediaLibrary/fetchMediaLibraryStats', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1551
1551
  try {
1552
- return yield extra.jApi.mediaLibrary.getStats(filters);
1552
+ return yield extra.jApi.mediaLibrary.getStats();
1553
1553
  }
1554
1554
  catch (error) {
1555
1555
  dispatch(Toast.actions.error({ label: error.errorMsg }));
@@ -2053,7 +2053,7 @@ var WIDGETS = /*#__PURE__*/Object.freeze({
2053
2053
  const widgetArticleTextDefinition = {
2054
2054
  label: 'WIDGET_Text',
2055
2055
  description: 'WIDGET_Text_Description',
2056
- name: 'widget-article-text',
2056
+ name: jamespot.WidgetsName.ArticleText,
2057
2057
  img: '/img/article-widget-thumbnail/widget_thumbnail_text.png',
2058
2058
  available: true,
2059
2059
  panel: {
@@ -2069,7 +2069,7 @@ const widgetArticleTextContent = {
2069
2069
  const widgetArticleTitleDefinition = {
2070
2070
  label: 'WIDGET_Title',
2071
2071
  description: 'WIDGET_Title_Description',
2072
- name: 'widget-article-title',
2072
+ name: jamespot.WidgetsName.ArticleTitle,
2073
2073
  img: '/img/article-widget-thumbnail/widget_thumbnail_title.png',
2074
2074
  available: true,
2075
2075
  panel: {
@@ -2087,7 +2087,7 @@ const widgetArticleTitleContent = {
2087
2087
  const widgetArticleAttachmentDefinition = {
2088
2088
  label: 'WIDGET_Article_Attachment',
2089
2089
  description: 'WIDGET_Article_Attachment_Description',
2090
- name: 'widget-article-attachment',
2090
+ name: jamespot.WidgetsName.ArticleAttachment,
2091
2091
  img: '/img/article-widget-thumbnail/widget_thumbnail_files.png',
2092
2092
  available: true,
2093
2093
  panel: {
@@ -2103,7 +2103,7 @@ const widgetArticleAttachmentContent = {
2103
2103
  const widgetArticleGalleryDefinition = {
2104
2104
  label: 'WIDGET_Article_Gallery',
2105
2105
  description: 'WIDGET_Article_Gallery_Description',
2106
- name: 'widget-article-gallery',
2106
+ name: jamespot.WidgetsName.ArticleGallery,
2107
2107
  img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
2108
2108
  available: true,
2109
2109
  panel: {
@@ -2121,7 +2121,7 @@ const widgetArticleGalleryContent = {
2121
2121
  const widgetArticleImageDefinition = {
2122
2122
  label: 'WIDGET_Article_Image',
2123
2123
  description: 'WIDGET_Article_Image_Description',
2124
- name: 'widget-article-image',
2124
+ name: jamespot.WidgetsName.ArticleImage,
2125
2125
  img: '/img/article-widget-thumbnail/widget_thumbnail_illustration.png',
2126
2126
  available: true,
2127
2127
  panel: {
@@ -2135,7 +2135,7 @@ const widgetArticleImageContent = {};
2135
2135
  const widgetArticleButtonDefinition = {
2136
2136
  label: 'WIDGET_Button',
2137
2137
  description: 'WIDGET_Button_Description',
2138
- name: 'widget-article-button',
2138
+ name: jamespot.WidgetsName.ArticleButton,
2139
2139
  img: '/img/article-widget-thumbnail/widget_thumbnail_button.png',
2140
2140
  available: true,
2141
2141
  panel: {
@@ -2162,7 +2162,7 @@ const widgetArticleButtonContent = {
2162
2162
  const widgetApiDefinition = {
2163
2163
  label: 'WIDGET_Api',
2164
2164
  description: 'WIDGET_Api_Description',
2165
- name: 'widget-api',
2165
+ name: jamespot.WidgetsName.Api,
2166
2166
  img: '/img/fast-intranet/widget-text.png',
2167
2167
  available: true,
2168
2168
  panel: {
@@ -2178,7 +2178,7 @@ const widgetApiContent = {
2178
2178
  const widgetArticleSliderDefinition = {
2179
2179
  label: 'WIDGET_Slider',
2180
2180
  description: 'WIDGET_Slider_Description',
2181
- name: 'widget-article-slider',
2181
+ name: jamespot.WidgetsName.ArticleSlider,
2182
2182
  img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
2183
2183
  available: true,
2184
2184
  panel: {
@@ -2198,7 +2198,7 @@ const widgetArticleSliderContent = {
2198
2198
  const widgetCheckListDefinition = {
2199
2199
  label: WIDGET_CHECK_LIST_LABEL,
2200
2200
  description: WIDGET_CHECK_LIST_DESCRIPTION,
2201
- name: WIDGET_CHECK_LIST,
2201
+ name: jamespot.WidgetsName.CheckList,
2202
2202
  img: '/img/fast-intranet/widget-check-list.png',
2203
2203
  available: true,
2204
2204
  panel: {
@@ -2472,7 +2472,8 @@ const editorsSlice = toolkit.createSlice({
2472
2472
  flushEditorPopup: (state, action) => {
2473
2473
  const { uniqid } = action.payload;
2474
2474
  state.editors = [
2475
- ...state.editors.map((editor) => editor.uniqid === uniqid ? Object.assign(Object.assign({}, editor), { popup: false }) : editor),
2475
+ ...state.editors.map((editor) => editor.uniqid === uniqid
2476
+ ? Object.assign(Object.assign({}, editor), { popup: false }) : editor),
2476
2477
  ];
2477
2478
  },
2478
2479
  setEditorPosition: (state, action) => {