jamespot-front-business 1.1.25 → 1.1.27

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/esm.js CHANGED
@@ -59,7 +59,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
59
59
  });
60
60
  }
61
61
 
62
- const initialState$e = {
62
+ const initialState$f = {
63
63
  entities: [],
64
64
  loading: 'idle',
65
65
  nbResults: 0,
@@ -70,7 +70,7 @@ const fetchBookableAsset = createAsyncThunk('BookableAsset/fetchBookableAsset',
70
70
  }));
71
71
  const BookableAssetSlice = createSlice({
72
72
  name: 'bookableAsset',
73
- initialState: initialState$e,
73
+ initialState: initialState$f,
74
74
  reducers: {},
75
75
  extraReducers: (builder) => {
76
76
  builder
@@ -91,7 +91,7 @@ const BookableAssetSlice = createSlice({
91
91
  const fetchConfiguration = createAsyncThunk('AssetReservation/configuration', (_, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
92
92
  return yield extra.jApi.assetReservation.configuration();
93
93
  }));
94
- const initialState$d = {
94
+ const initialState$e = {
95
95
  description: '',
96
96
  right: {
97
97
  manage: false,
@@ -105,7 +105,7 @@ const initialState$d = {
105
105
  };
106
106
  const AssetReservationConfigurationSlice = createSlice({
107
107
  name: 'configuration',
108
- initialState: initialState$d,
108
+ initialState: initialState$e,
109
109
  reducers: {},
110
110
  extraReducers: (builder) => {
111
111
  builder
@@ -126,7 +126,7 @@ const initForm = {
126
126
  hourStart: '',
127
127
  hourEnd: '',
128
128
  };
129
- const initialState$c = {
129
+ const initialState$d = {
130
130
  entities: [],
131
131
  loading: 'idle',
132
132
  nbResults: 0,
@@ -138,7 +138,7 @@ const fetchReservation = createAsyncThunk('Reservation/fetchReservation', (viewM
138
138
  }));
139
139
  const ReservationSlice = createSlice({
140
140
  name: 'reservation',
141
- initialState: initialState$c,
141
+ initialState: initialState$d,
142
142
  reducers: {
143
143
  setForm: (state, action) => {
144
144
  state.form = action.payload;
@@ -231,7 +231,7 @@ const Toast = {
231
231
  selectors: selectors$1,
232
232
  };
233
233
 
234
- const initialState$b = {
234
+ const initialState$c = {
235
235
  bookmarks: [],
236
236
  loading: 'idle',
237
237
  status: undefined,
@@ -294,7 +294,7 @@ const deleteBookmark = createAsyncThunk('bookmarkList/deleteBookmark', (bookmark
294
294
  }));
295
295
  const BookmarkListSlice = createSlice({
296
296
  name: 'bookmarkList',
297
- initialState: initialState$b,
297
+ initialState: initialState$c,
298
298
  reducers: {
299
299
  resetAddBookmarkStatus: (state, action) => {
300
300
  if (state.add[action.payload]) {
@@ -457,7 +457,7 @@ const getRTHandlers = function (dispatch) {
457
457
  ];
458
458
  };
459
459
 
460
- const initialState$a = {
460
+ const initialState$b = {
461
461
  bookmark: undefined,
462
462
  status: undefined,
463
463
  loading: 'idle',
@@ -479,7 +479,7 @@ const editBookmark = createAsyncThunk('bookmarkEdit/editBookmark', (bookmark, {
479
479
  }));
480
480
  const BookmarkEditSlice = createSlice({
481
481
  name: 'bookmarkEdit',
482
- initialState: initialState$a,
482
+ initialState: initialState$b,
483
483
  reducers: {
484
484
  setEditBookmark: (state, action) => {
485
485
  state.bookmark = Object.assign({}, action.payload);
@@ -532,7 +532,7 @@ const Bookmark = {
532
532
  getRTHandlers: getRTHandlers,
533
533
  };
534
534
 
535
- const initialState$9 = {
535
+ const initialState$a = {
536
536
  loading: 'idle',
537
537
  access: { createCategory: false },
538
538
  };
@@ -560,7 +560,7 @@ const fetchFaqConfig = createAsyncThunk('faqConfig/fetch', () => __awaiter(void
560
560
  }));
561
561
  const FaqConfigSlice = createSlice({
562
562
  name: 'config',
563
- initialState: initialState$9,
563
+ initialState: initialState$a,
564
564
  reducers: {},
565
565
  extraReducers: (builder) => {
566
566
  builder
@@ -592,7 +592,7 @@ const FaqConfigSlice = createSlice({
592
592
  },
593
593
  });
594
594
 
595
- const initialState$8 = {
595
+ const initialState$9 = {
596
596
  loading: 'idle',
597
597
  categories: null,
598
598
  };
@@ -604,7 +604,7 @@ const fetchFaqCategories = createAsyncThunk('faqCategories/fetch', () => __await
604
604
  }));
605
605
  const FaqCategoriesSlice = createSlice({
606
606
  name: 'categories',
607
- initialState: initialState$8,
607
+ initialState: initialState$9,
608
608
  reducers: {},
609
609
  extraReducers: (builder) => {
610
610
  builder
@@ -625,13 +625,13 @@ const FaqCategoriesSlice = createSlice({
625
625
  },
626
626
  });
627
627
 
628
- const joinedReducers$3 = combineReducers({
628
+ const joinedReducers$4 = combineReducers({
629
629
  [FaqConfigSlice.name]: FaqConfigSlice.reducer,
630
630
  [FaqCategoriesSlice.name]: FaqCategoriesSlice.reducer,
631
631
  });
632
632
  const FaqSlice = {
633
633
  name: 'faq',
634
- reducer: joinedReducers$3,
634
+ reducer: joinedReducers$4,
635
635
  };
636
636
  const selectFaqConfig = (state) => {
637
637
  return state.faq.config;
@@ -886,7 +886,7 @@ const initialMap = {
886
886
  illustration: '',
887
887
  assignLicense: false,
888
888
  };
889
- const initialState$7 = {
889
+ const initialState$8 = {
890
890
  map: Object.assign({}, initialMap),
891
891
  loading: 'idle',
892
892
  status: undefined,
@@ -930,13 +930,13 @@ const createMap = createAsyncThunk('mapCreate/create', ({ map, jlandUrlBase }, {
930
930
  }));
931
931
  const MapCreateSlice = createSlice({
932
932
  name: 'mapCreate',
933
- initialState: initialState$7,
933
+ initialState: initialState$8,
934
934
  reducers: {
935
935
  setMap: (state, action) => {
936
936
  state.map = action.payload;
937
937
  },
938
938
  resetCreateMapState: () => {
939
- return initialState$7;
939
+ return initialState$8;
940
940
  },
941
941
  },
942
942
  extraReducers: (builder) => {
@@ -966,13 +966,13 @@ const selectJLandAvailableLicenses = function selectJLandAvailableLicenses(state
966
966
  const selectMapCreate = function selectMapCreate(state) {
967
967
  return state.jland.mapCreate;
968
968
  };
969
- const joinedReducers$2 = combineReducers({
969
+ const joinedReducers$3 = combineReducers({
970
970
  [JLandMapListSlice.name]: JLandMapListSlice.reducer,
971
971
  [MapCreateSlice.name]: MapCreateSlice.reducer,
972
972
  });
973
973
  const jlandSlice = {
974
974
  name: 'jland',
975
- reducer: joinedReducers$2,
975
+ reducer: joinedReducers$3,
976
976
  };
977
977
  const jland = {
978
978
  slice: jlandSlice,
@@ -1023,10 +1023,10 @@ const Model = {
1023
1023
  selectors: Object.assign(Object.assign({}, selectors), { selectByIds }),
1024
1024
  };
1025
1025
 
1026
- const initialState$6 = {};
1026
+ const initialState$7 = {};
1027
1027
  const NetworkStaticsSlice = createSlice({
1028
1028
  name: 'statics',
1029
- initialState: initialState$6,
1029
+ initialState: initialState$7,
1030
1030
  reducers: {
1031
1031
  initNetworkStatics: (_, { payload }) => {
1032
1032
  return payload;
@@ -1034,12 +1034,12 @@ const NetworkStaticsSlice = createSlice({
1034
1034
  },
1035
1035
  });
1036
1036
 
1037
- const joinedReducers$1 = combineReducers({
1037
+ const joinedReducers$2 = combineReducers({
1038
1038
  [NetworkStaticsSlice.name]: NetworkStaticsSlice.reducer,
1039
1039
  });
1040
1040
  const NetworkSlice = {
1041
1041
  name: 'network',
1042
- reducer: joinedReducers$1,
1042
+ reducer: joinedReducers$2,
1043
1043
  };
1044
1044
  const selectNetworkStatics = (state) => {
1045
1045
  return state.network.statics;
@@ -1082,7 +1082,7 @@ const fetchRecentFiles = createAsyncThunk('/fetchRecentFiles', (_, { extra, getS
1082
1082
  return yield jApi.wedoc.getFiles(Object.assign(Object.assign({}, initialQuery), { filters, limit: 4 }));
1083
1083
  }));
1084
1084
 
1085
- const initialState$5 = {
1085
+ const initialState$6 = {
1086
1086
  entities: [],
1087
1087
  nbEntities: 0,
1088
1088
  entitiesRecent: [],
@@ -1094,7 +1094,7 @@ const initialState$5 = {
1094
1094
  };
1095
1095
  const WedocAppSlice = createSlice({
1096
1096
  name: 'wedoc',
1097
- initialState: initialState$5,
1097
+ initialState: initialState$6,
1098
1098
  reducers: {
1099
1099
  update: (state, action) => {
1100
1100
  state.entities = [
@@ -1164,17 +1164,17 @@ const WedocApp = {
1164
1164
 
1165
1165
  const fetchRequest = createAsyncThunk('/fetchRequest', ({ uri, idUser }, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
1166
1166
  const jApi = extra.jApi;
1167
- return yield jApi.share.getObjectAccessRequest(uri, idUser);
1167
+ return yield jApi.wedoc.getAccessRequest(uri, idUser);
1168
1168
  }));
1169
1169
 
1170
- const initialState$4 = {
1170
+ const initialState$5 = {
1171
1171
  entities: [],
1172
1172
  nbEntities: 0,
1173
1173
  loading: 'idle',
1174
1174
  };
1175
1175
  const ShareSlice = createSlice({
1176
1176
  name: 'share',
1177
- initialState: initialState$4,
1177
+ initialState: initialState$5,
1178
1178
  reducers: {
1179
1179
  remove: (state, action) => {
1180
1180
  state.entities = [
@@ -1212,7 +1212,7 @@ const Share = {
1212
1212
  },
1213
1213
  };
1214
1214
 
1215
- const initialState$3 = {
1215
+ const initialState$4 = {
1216
1216
  channels: undefined,
1217
1217
  loading: 'idle',
1218
1218
  loadingChannelDeletion: 'idle',
@@ -1255,7 +1255,7 @@ const deleteChannel = createAsyncThunk('/deleteChannel', ({ channel }, { extra,
1255
1255
  }));
1256
1256
  const ChannelsListSlice = createSlice({
1257
1257
  name: 'channelsList',
1258
- initialState: Object.assign({}, initialState$3),
1258
+ initialState: Object.assign({}, initialState$4),
1259
1259
  reducers: {},
1260
1260
  extraReducers: (builder) => {
1261
1261
  builder
@@ -1300,12 +1300,12 @@ function isChannelConfigured(channel) {
1300
1300
  }
1301
1301
  }
1302
1302
 
1303
- const joinedReducers = combineReducers({
1303
+ const joinedReducers$1 = combineReducers({
1304
1304
  [ChannelsListSlice.name]: ChannelsListSlice.reducer,
1305
1305
  });
1306
1306
  const TVDisplaySlice = {
1307
1307
  name: 'tvDisplay',
1308
- reducer: joinedReducers,
1308
+ reducer: joinedReducers$1,
1309
1309
  };
1310
1310
  const selectChannelsList = function selectChannelsList(state) {
1311
1311
  return state.tvDisplay.channelsList;
@@ -1324,6 +1324,35 @@ const TVDisplay = {
1324
1324
  },
1325
1325
  };
1326
1326
 
1327
+ const initialState$3 = {};
1328
+ const TinyMCEOptionsSlice = createSlice({
1329
+ name: 'options',
1330
+ initialState: initialState$3,
1331
+ reducers: {
1332
+ initOptions: (_, { payload }) => {
1333
+ return { common: payload };
1334
+ },
1335
+ },
1336
+ });
1337
+
1338
+ const joinedReducers = combineReducers({
1339
+ [TinyMCEOptionsSlice.name]: TinyMCEOptionsSlice.reducer,
1340
+ });
1341
+ const TinyMCESlice = {
1342
+ name: 'tinymce',
1343
+ reducer: joinedReducers,
1344
+ };
1345
+ const selectTinyMCECommonOptions = (state) => {
1346
+ return state.tinymce.options.common;
1347
+ };
1348
+ const TinyMCE = {
1349
+ slice: TinyMCESlice,
1350
+ actions: Object.assign({}, TinyMCEOptionsSlice.actions),
1351
+ selectors: {
1352
+ selectTinyMCECommonOptions,
1353
+ },
1354
+ };
1355
+
1327
1356
  const initialState$2 = {
1328
1357
  id: 0,
1329
1358
  mainType: 'user',
@@ -1765,5 +1794,5 @@ const WidgetEditor = {
1765
1794
  },
1766
1795
  };
1767
1796
 
1768
- export { Application, AssetReservation, Bookmark, Faq, MODE_EDIT, MODE_VIEW, Model, Network, Share, TVDisplay, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, jland, slice };
1797
+ export { Application, AssetReservation, Bookmark, Faq, MODE_EDIT, MODE_VIEW, Model, Network, Share, TVDisplay, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, jland, slice };
1769
1798
  //# sourceMappingURL=esm.js.map