jamespot-front-business 1.2.43 → 1.2.44
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 +25 -2
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +25 -3
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +83 -56
- package/package.json +2 -2
package/dist/esm.js
CHANGED
|
@@ -3,6 +3,25 @@ import { combineReducers as combineReducers$1 } from 'redux';
|
|
|
3
3
|
import jamespot, { jEnsure, Format, formatImgUrl, UserLevel, WidgetsName, StudioApplicationStatus } from 'jamespot-user-api';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
|
|
6
|
+
const getArticleRTHandlers = function (listener) {
|
|
7
|
+
const addArticleHandler = function (message) {
|
|
8
|
+
if (message.namespace === 'JAMESPOT' && message.function === 'article-create') {
|
|
9
|
+
listener(message.object);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
return [
|
|
13
|
+
{
|
|
14
|
+
namespace: 'JAMESPOT',
|
|
15
|
+
function: 'article-create',
|
|
16
|
+
handler: addArticleHandler,
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const Article = {
|
|
22
|
+
getArticleRTHandlers,
|
|
23
|
+
};
|
|
24
|
+
|
|
6
25
|
const isAbortError = (error) => {
|
|
7
26
|
return !!error && typeof error === 'object' && 'aborted' in error && !!error.aborted;
|
|
8
27
|
};
|
|
@@ -1708,9 +1727,12 @@ const fetchJLandMaps = createAsyncThunk('/fetchMaps', async ({ jlandUrlBase, ret
|
|
|
1708
1727
|
const config = {
|
|
1709
1728
|
type: 'jlandmap',
|
|
1710
1729
|
format: 'raw-list',
|
|
1711
|
-
formatExtend: ['licenses'],
|
|
1712
1730
|
};
|
|
1713
|
-
const mapsPromise = retrieveAllMaps
|
|
1731
|
+
const mapsPromise = retrieveAllMaps
|
|
1732
|
+
? jApi.jland.getAllMapsAsAdmin()
|
|
1733
|
+
: jApi.article.list(config, {
|
|
1734
|
+
formatExtension: ['licenses'],
|
|
1735
|
+
});
|
|
1714
1736
|
mapsPromise
|
|
1715
1737
|
.then((mapsResp) => {
|
|
1716
1738
|
const maps = mapsResp.result.data;
|
|
@@ -6295,5 +6317,5 @@ const studio = {
|
|
|
6295
6317
|
},
|
|
6296
6318
|
};
|
|
6297
6319
|
|
|
6298
|
-
export { APP_STATUS_TYPE, AUDIENCE, AdminLogs, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews$1 as AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList$1 as AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormPrimaryListValues, AppFormUniqueList, AppFormUniqueListCheck, Application, AssetReservation, Bookmark, Comment, ContentReport, Description, Element, ExtraAppFieldsItemName, ExtraAppFieldsItemViews, ExtraBot, Faq, Hook, MagicPad, MapExtraFieldsWithView, MediaLibrary, Model, Network, Platform, STUDIO_VIEW, Share, SocialActions, StatusType$1 as StatusType, TVDisplay, TeamWork, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, adminLogsReducer, adminLogsSlice, animationsReducer, animationsSlice, contentReportSlice, extraBotSlice, fetchExtraBotListAll, fetchExtraBotListMines, fetchMediaLibraryConfig, fetchMediaLibraryFilesStats, fetchMediaLibraryFolders, fetchMediaLibraryFoldersStats, fetchMediaLibraryStats, fetchMediaLibraryUnclassifiedFiles, fetchPads, fetchReports, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, saveExtraBot, selectExtraBotListAll, selectExtraBotListMines, slice$1 as slice, studio, teamWorkSlice, teamworkReducer, toggleExtraBotActivation, updateListBotProperty, updateStatus, updateWidgetContent, viewsList };
|
|
6320
|
+
export { APP_STATUS_TYPE, AUDIENCE, AdminLogs, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews$1 as AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList$1 as AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormPrimaryListValues, AppFormUniqueList, AppFormUniqueListCheck, Application, Article, AssetReservation, Bookmark, Comment, ContentReport, Description, Element, ExtraAppFieldsItemName, ExtraAppFieldsItemViews, ExtraBot, Faq, Hook, MagicPad, MapExtraFieldsWithView, MediaLibrary, Model, Network, Platform, STUDIO_VIEW, Share, SocialActions, StatusType$1 as StatusType, TVDisplay, TeamWork, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, adminLogsReducer, adminLogsSlice, animationsReducer, animationsSlice, contentReportSlice, extraBotSlice, fetchExtraBotListAll, fetchExtraBotListMines, fetchMediaLibraryConfig, fetchMediaLibraryFilesStats, fetchMediaLibraryFolders, fetchMediaLibraryFoldersStats, fetchMediaLibraryStats, fetchMediaLibraryUnclassifiedFiles, fetchPads, fetchReports, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, saveExtraBot, selectExtraBotListAll, selectExtraBotListMines, slice$1 as slice, studio, teamWorkSlice, teamworkReducer, toggleExtraBotActivation, updateListBotProperty, updateStatus, updateWidgetContent, viewsList };
|
|
6299
6321
|
//# sourceMappingURL=esm.js.map
|