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 CHANGED
@@ -5,6 +5,25 @@ var redux = require('redux');
5
5
  var jamespot = require('jamespot-user-api');
6
6
  var uuid = require('uuid');
7
7
 
8
+ const getArticleRTHandlers = function (listener) {
9
+ const addArticleHandler = function (message) {
10
+ if (message.namespace === 'JAMESPOT' && message.function === 'article-create') {
11
+ listener(message.object);
12
+ }
13
+ };
14
+ return [
15
+ {
16
+ namespace: 'JAMESPOT',
17
+ function: 'article-create',
18
+ handler: addArticleHandler,
19
+ },
20
+ ];
21
+ };
22
+
23
+ const Article = {
24
+ getArticleRTHandlers,
25
+ };
26
+
8
27
  const isAbortError = (error) => {
9
28
  return !!error && typeof error === 'object' && 'aborted' in error && !!error.aborted;
10
29
  };
@@ -1710,9 +1729,12 @@ const fetchJLandMaps = toolkit.createAsyncThunk('/fetchMaps', async ({ jlandUrlB
1710
1729
  const config = {
1711
1730
  type: 'jlandmap',
1712
1731
  format: 'raw-list',
1713
- formatExtend: ['licenses'],
1714
1732
  };
1715
- const mapsPromise = retrieveAllMaps ? jApi.jland.getAllMapsAsAdmin() : jApi.article.list(config);
1733
+ const mapsPromise = retrieveAllMaps
1734
+ ? jApi.jland.getAllMapsAsAdmin()
1735
+ : jApi.article.list(config, {
1736
+ formatExtension: ['licenses'],
1737
+ });
1716
1738
  mapsPromise
1717
1739
  .then((mapsResp) => {
1718
1740
  const maps = mapsResp.result.data;
@@ -6314,6 +6336,7 @@ exports.AppFormPrimaryListValues = AppFormPrimaryListValues;
6314
6336
  exports.AppFormUniqueList = AppFormUniqueList;
6315
6337
  exports.AppFormUniqueListCheck = AppFormUniqueListCheck;
6316
6338
  exports.Application = Application;
6339
+ exports.Article = Article;
6317
6340
  exports.AssetReservation = AssetReservation;
6318
6341
  exports.Bookmark = Bookmark;
6319
6342
  exports.Comment = Comment;