jamespot-front-business 1.1.53 → 1.1.55
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 +38 -12
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +39 -13
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +94210 -91
- package/package.json +2 -2
package/dist/esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createEntityAdapter, createSlice, createAsyncThunk, combineReducers } from '@reduxjs/toolkit';
|
|
2
2
|
import { combineReducers as combineReducers$1 } from 'redux';
|
|
3
|
-
import jamespot, { jEnsure, formatImgUrl, UserLevel, StudioApplicationStatus } from 'jamespot-user-api';
|
|
3
|
+
import jamespot, { jEnsure, formatImgUrl, UserLevel, WidgetsName, StudioApplicationStatus } from 'jamespot-user-api';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
|
|
6
6
|
/******************************************************************************
|
|
@@ -1539,9 +1539,9 @@ const fetchMediaLibraryFilesStats = createAsyncThunk('MediaLibrary/fetchMediaLib
|
|
|
1539
1539
|
return rejectWithValue({ error: 1, errorMsg: 'Cannot get MediaLibrary files stats' });
|
|
1540
1540
|
}
|
|
1541
1541
|
}));
|
|
1542
|
-
const fetchMediaLibraryStats = createAsyncThunk('MediaLibrary/fetchMediaLibraryStats', (
|
|
1542
|
+
const fetchMediaLibraryStats = createAsyncThunk('MediaLibrary/fetchMediaLibraryStats', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1543
1543
|
try {
|
|
1544
|
-
return yield extra.jApi.mediaLibrary.getStats(
|
|
1544
|
+
return yield extra.jApi.mediaLibrary.getStats();
|
|
1545
1545
|
}
|
|
1546
1546
|
catch (error) {
|
|
1547
1547
|
dispatch(Toast.actions.error({ label: error.errorMsg }));
|
|
@@ -2045,7 +2045,7 @@ var WIDGETS = /*#__PURE__*/Object.freeze({
|
|
|
2045
2045
|
const widgetArticleTextDefinition = {
|
|
2046
2046
|
label: 'WIDGET_Text',
|
|
2047
2047
|
description: 'WIDGET_Text_Description',
|
|
2048
|
-
name:
|
|
2048
|
+
name: WidgetsName.ArticleText,
|
|
2049
2049
|
img: '/img/article-widget-thumbnail/widget_thumbnail_text.png',
|
|
2050
2050
|
available: true,
|
|
2051
2051
|
panel: {
|
|
@@ -2061,7 +2061,7 @@ const widgetArticleTextContent = {
|
|
|
2061
2061
|
const widgetArticleTitleDefinition = {
|
|
2062
2062
|
label: 'WIDGET_Title',
|
|
2063
2063
|
description: 'WIDGET_Title_Description',
|
|
2064
|
-
name:
|
|
2064
|
+
name: WidgetsName.ArticleTitle,
|
|
2065
2065
|
img: '/img/article-widget-thumbnail/widget_thumbnail_title.png',
|
|
2066
2066
|
available: true,
|
|
2067
2067
|
panel: {
|
|
@@ -2079,7 +2079,7 @@ const widgetArticleTitleContent = {
|
|
|
2079
2079
|
const widgetArticleAttachmentDefinition = {
|
|
2080
2080
|
label: 'WIDGET_Article_Attachment',
|
|
2081
2081
|
description: 'WIDGET_Article_Attachment_Description',
|
|
2082
|
-
name:
|
|
2082
|
+
name: WidgetsName.ArticleAttachment,
|
|
2083
2083
|
img: '/img/article-widget-thumbnail/widget_thumbnail_files.png',
|
|
2084
2084
|
available: true,
|
|
2085
2085
|
panel: {
|
|
@@ -2095,7 +2095,7 @@ const widgetArticleAttachmentContent = {
|
|
|
2095
2095
|
const widgetArticleGalleryDefinition = {
|
|
2096
2096
|
label: 'WIDGET_Article_Gallery',
|
|
2097
2097
|
description: 'WIDGET_Article_Gallery_Description',
|
|
2098
|
-
name:
|
|
2098
|
+
name: WidgetsName.ArticleGallery,
|
|
2099
2099
|
img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
|
|
2100
2100
|
available: true,
|
|
2101
2101
|
panel: {
|
|
@@ -2113,7 +2113,7 @@ const widgetArticleGalleryContent = {
|
|
|
2113
2113
|
const widgetArticleImageDefinition = {
|
|
2114
2114
|
label: 'WIDGET_Article_Image',
|
|
2115
2115
|
description: 'WIDGET_Article_Image_Description',
|
|
2116
|
-
name:
|
|
2116
|
+
name: WidgetsName.ArticleImage,
|
|
2117
2117
|
img: '/img/article-widget-thumbnail/widget_thumbnail_illustration.png',
|
|
2118
2118
|
available: true,
|
|
2119
2119
|
panel: {
|
|
@@ -2127,7 +2127,7 @@ const widgetArticleImageContent = {};
|
|
|
2127
2127
|
const widgetArticleButtonDefinition = {
|
|
2128
2128
|
label: 'WIDGET_Button',
|
|
2129
2129
|
description: 'WIDGET_Button_Description',
|
|
2130
|
-
name:
|
|
2130
|
+
name: WidgetsName.ArticleButton,
|
|
2131
2131
|
img: '/img/article-widget-thumbnail/widget_thumbnail_button.png',
|
|
2132
2132
|
available: true,
|
|
2133
2133
|
panel: {
|
|
@@ -2154,7 +2154,7 @@ const widgetArticleButtonContent = {
|
|
|
2154
2154
|
const widgetApiDefinition = {
|
|
2155
2155
|
label: 'WIDGET_Api',
|
|
2156
2156
|
description: 'WIDGET_Api_Description',
|
|
2157
|
-
name:
|
|
2157
|
+
name: WidgetsName.Api,
|
|
2158
2158
|
img: '/img/fast-intranet/widget-text.png',
|
|
2159
2159
|
available: true,
|
|
2160
2160
|
panel: {
|
|
@@ -2170,7 +2170,7 @@ const widgetApiContent = {
|
|
|
2170
2170
|
const widgetArticleSliderDefinition = {
|
|
2171
2171
|
label: 'WIDGET_Slider',
|
|
2172
2172
|
description: 'WIDGET_Slider_Description',
|
|
2173
|
-
name:
|
|
2173
|
+
name: WidgetsName.ArticleSlider,
|
|
2174
2174
|
img: '/img/article-widget-thumbnail/widget_thumbnail_slider.png',
|
|
2175
2175
|
available: true,
|
|
2176
2176
|
panel: {
|
|
@@ -2190,7 +2190,7 @@ const widgetArticleSliderContent = {
|
|
|
2190
2190
|
const widgetCheckListDefinition = {
|
|
2191
2191
|
label: WIDGET_CHECK_LIST_LABEL,
|
|
2192
2192
|
description: WIDGET_CHECK_LIST_DESCRIPTION,
|
|
2193
|
-
name:
|
|
2193
|
+
name: WidgetsName.CheckList,
|
|
2194
2194
|
img: '/img/fast-intranet/widget-check-list.png',
|
|
2195
2195
|
available: true,
|
|
2196
2196
|
panel: {
|
|
@@ -2203,6 +2203,27 @@ const widgetCheckListContent = {
|
|
|
2203
2203
|
arr: [],
|
|
2204
2204
|
};
|
|
2205
2205
|
|
|
2206
|
+
const widgetDatasourceTableDefinition = {
|
|
2207
|
+
label: 'WIDGET_Datasource_Table',
|
|
2208
|
+
description: 'WIDGET_Datasource_Table_Description',
|
|
2209
|
+
name: WidgetsName.DatasourceTable,
|
|
2210
|
+
img: '/img/fast-intranet/widget-text.png',
|
|
2211
|
+
available: true,
|
|
2212
|
+
panel: {
|
|
2213
|
+
useWrapper: false,
|
|
2214
|
+
useEditor: true,
|
|
2215
|
+
useWidgets: false,
|
|
2216
|
+
},
|
|
2217
|
+
};
|
|
2218
|
+
const widgetDatasourceTaleContent = {
|
|
2219
|
+
tableHeadColor: '#f1f1f1',
|
|
2220
|
+
tableHeadTextColor: '#000',
|
|
2221
|
+
tableHeadIconColor: '#000',
|
|
2222
|
+
tableRowColor: '#f5f5f5',
|
|
2223
|
+
tableRowTextColor: '#000',
|
|
2224
|
+
limit: 20,
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2206
2227
|
function widgetDefinition(name) {
|
|
2207
2228
|
switch (name) {
|
|
2208
2229
|
default:
|
|
@@ -2221,6 +2242,8 @@ function widgetDefinition(name) {
|
|
|
2221
2242
|
return widgetArticleImageDefinition;
|
|
2222
2243
|
case 'widget-api':
|
|
2223
2244
|
return widgetApiDefinition;
|
|
2245
|
+
case 'widget-datasource-table':
|
|
2246
|
+
return widgetDatasourceTableDefinition;
|
|
2224
2247
|
case 'widget-article-button':
|
|
2225
2248
|
return widgetArticleButtonDefinition;
|
|
2226
2249
|
case 'widget-check-list':
|
|
@@ -2248,6 +2271,8 @@ function content(name) {
|
|
|
2248
2271
|
return Object.assign({}, widgetArticleAttachmentContent);
|
|
2249
2272
|
case 'widget-api':
|
|
2250
2273
|
return Object.assign({}, widgetApiContent);
|
|
2274
|
+
case 'widget-datasource-table':
|
|
2275
|
+
return Object.assign({}, widgetDatasourceTaleContent);
|
|
2251
2276
|
case 'widget-article-slider':
|
|
2252
2277
|
return Object.assign({}, widgetArticleSliderContent);
|
|
2253
2278
|
case 'widget-article-gallery':
|
|
@@ -2464,7 +2489,8 @@ const editorsSlice = createSlice({
|
|
|
2464
2489
|
flushEditorPopup: (state, action) => {
|
|
2465
2490
|
const { uniqid } = action.payload;
|
|
2466
2491
|
state.editors = [
|
|
2467
|
-
...state.editors.map((editor) => editor.uniqid === uniqid
|
|
2492
|
+
...state.editors.map((editor) => editor.uniqid === uniqid
|
|
2493
|
+
? Object.assign(Object.assign({}, editor), { popup: false }) : editor),
|
|
2468
2494
|
];
|
|
2469
2495
|
},
|
|
2470
2496
|
setEditorPosition: (state, action) => {
|