jamespot-front-business 1.1.92 → 1.1.94
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 +37 -6
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +37 -6
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +1144 -352
- package/package.json +2 -2
package/dist/esm.js
CHANGED
|
@@ -1148,7 +1148,7 @@ const fetchComments = createAsyncThunk('commentList/fetchCommentList', (params,
|
|
|
1148
1148
|
try {
|
|
1149
1149
|
const res = yield extra.jApi.article.getComments(params, {
|
|
1150
1150
|
format: 'raw-list',
|
|
1151
|
-
formatExtension: ['actions'],
|
|
1151
|
+
formatExtension: ['actions', 'extraBotRedacted'],
|
|
1152
1152
|
});
|
|
1153
1153
|
return { idArticle: params.idArticle, list: res.result };
|
|
1154
1154
|
}
|
|
@@ -1387,9 +1387,17 @@ const toggleExtraBotActivation = createAsyncThunk('extraBot/toggleActivation', (
|
|
|
1387
1387
|
try {
|
|
1388
1388
|
const enabled = !extraBot.enabled;
|
|
1389
1389
|
const res = (yield extra.jApi.article.update(Object.assign(Object.assign({}, extraBot), { enabled }), { format: Format.VIEW })).result;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1390
|
+
if (res.enabled !== extraBot.enabled) {
|
|
1391
|
+
dispatch(Toast.actions.success({
|
|
1392
|
+
label: enabled ? 'APP_ExtraBot_Toast_ActivationSuccess' : 'APP_ExtraBot_Toast_DeactivationSuccess',
|
|
1393
|
+
}));
|
|
1394
|
+
dispatch(fetchExtraBotListAll());
|
|
1395
|
+
}
|
|
1396
|
+
else {
|
|
1397
|
+
dispatch(Toast.actions.error({
|
|
1398
|
+
label: 'APP_ExtraBot_Toast_FailedToChangeActivation',
|
|
1399
|
+
}));
|
|
1400
|
+
}
|
|
1393
1401
|
return res;
|
|
1394
1402
|
}
|
|
1395
1403
|
catch (err) {
|
|
@@ -1406,8 +1414,9 @@ const saveExtraBot = createAsyncThunk('extraBot/save', ({ extraBot }, { extra, r
|
|
|
1406
1414
|
let user;
|
|
1407
1415
|
delete data.avatar;
|
|
1408
1416
|
if (extraBot.uri) {
|
|
1409
|
-
res = (yield extra.jApi.article.update(data, {
|
|
1410
|
-
.
|
|
1417
|
+
res = (yield extra.jApi.article.update(data, {
|
|
1418
|
+
format: Format.VIEW,
|
|
1419
|
+
})).result;
|
|
1411
1420
|
user = (yield extra.jApi.extraBot.updateBot(res.uri)).result;
|
|
1412
1421
|
}
|
|
1413
1422
|
else {
|
|
@@ -3107,6 +3116,24 @@ const widgetEmailsImapContent = {
|
|
|
3107
3116
|
emailsPromptStatus: 'shared',
|
|
3108
3117
|
};
|
|
3109
3118
|
|
|
3119
|
+
const widgetLuccaAbsenceDefinition = {
|
|
3120
|
+
label: 'WIDGET_Lucca_Absence',
|
|
3121
|
+
description: 'WIDGET_Lucca_Absence_Text',
|
|
3122
|
+
name: WidgetsName.LuccaAbsence,
|
|
3123
|
+
img: '/img/fast-intranet/widget-lucca-absence.png',
|
|
3124
|
+
available: true,
|
|
3125
|
+
displayLevel: [1, 2, 3],
|
|
3126
|
+
panel: {
|
|
3127
|
+
useWrapper: true,
|
|
3128
|
+
useEditor: true,
|
|
3129
|
+
useSelection: true,
|
|
3130
|
+
useWidgets: false,
|
|
3131
|
+
},
|
|
3132
|
+
};
|
|
3133
|
+
const widgetLuccaAbsenceContent = {
|
|
3134
|
+
url: '',
|
|
3135
|
+
};
|
|
3136
|
+
|
|
3110
3137
|
function widgetDefinition(name) {
|
|
3111
3138
|
switch (name) {
|
|
3112
3139
|
default:
|
|
@@ -3139,6 +3166,8 @@ function widgetDefinition(name) {
|
|
|
3139
3166
|
return widgetCalendarCalDavDefinition;
|
|
3140
3167
|
case 'widget-contact-cardDav':
|
|
3141
3168
|
return widgetContactCardDavDefinition;
|
|
3169
|
+
case 'widget-lucca-absence':
|
|
3170
|
+
return widgetLuccaAbsenceDefinition;
|
|
3142
3171
|
case 'widget-emails-imap':
|
|
3143
3172
|
return widgetEmailsImapDefinition;
|
|
3144
3173
|
}
|
|
@@ -3161,6 +3190,8 @@ function widget(name) {
|
|
|
3161
3190
|
function content(name) {
|
|
3162
3191
|
switch (name) {
|
|
3163
3192
|
default:
|
|
3193
|
+
case 'widget-lucca-absence':
|
|
3194
|
+
return Object.assign({}, widgetLuccaAbsenceContent);
|
|
3164
3195
|
case 'widget-article-attachment':
|
|
3165
3196
|
return Object.assign({}, widgetArticleAttachmentContent);
|
|
3166
3197
|
case 'widget-presence':
|