jamespot-front-business 1.1.44 → 1.1.46

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
@@ -43,7 +43,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
43
43
  const toastAdapter = createEntityAdapter({
44
44
  selectId: (toast) => toast.id,
45
45
  });
46
- const slice$3 = createSlice({
46
+ const slice$4 = createSlice({
47
47
  name: 'toasts',
48
48
  initialState: toastAdapter.getInitialState(),
49
49
  reducers: {
@@ -57,9 +57,9 @@ const addMessage = (_a, type, timeout) => {
57
57
  if (type === void 0) { type = 'success'; }
58
58
  if (timeout === void 0) { timeout = 3000; }
59
59
  return (dispatch) => {
60
- dispatch(slice$3.actions.addOne(Object.assign(Object.assign({ id }, toast), { timeout, type })));
60
+ dispatch(slice$4.actions.addOne(Object.assign(Object.assign({ id }, toast), { timeout, type })));
61
61
  setTimeout(() => {
62
- dispatch(slice$3.actions.removeOne(id));
62
+ dispatch(slice$4.actions.removeOne(id));
63
63
  }, timeout);
64
64
  return id;
65
65
  };
@@ -72,8 +72,8 @@ const actions = {
72
72
  };
73
73
  const selectors$2 = toastAdapter.getSelectors((state) => state.toasts);
74
74
  const Toast = {
75
- slice: slice$3,
76
- actions: Object.assign(Object.assign({}, actions), slice$3.actions),
75
+ slice: slice$4,
76
+ actions: Object.assign(Object.assign({}, actions), slice$4.actions),
77
77
  selectors: selectors$2,
78
78
  };
79
79
 
@@ -117,7 +117,7 @@ const getAnimationsRTHandlers = function (dispatch) {
117
117
  ];
118
118
  };
119
119
 
120
- const initialState$k = {
120
+ const initialState$l = {
121
121
  animationConfiguration: null,
122
122
  isActiveForCurrentUser: false,
123
123
  isInitialized: false,
@@ -125,7 +125,7 @@ const initialState$k = {
125
125
  };
126
126
  const animationsSlice = createSlice({
127
127
  name: 'animations',
128
- initialState: initialState$k,
128
+ initialState: initialState$l,
129
129
  reducers: {},
130
130
  extraReducers: (builder) => {
131
131
  builder.addCase(fetchCurrentAnimation.fulfilled, (state, action) => {
@@ -221,7 +221,7 @@ const adapter$1 = createEntityAdapter({
221
221
  selectId: (app) => app.name,
222
222
  sortComparer: (a, b) => a.label.localeCompare(b.label),
223
223
  });
224
- const slice$2 = createSlice({
224
+ const slice$3 = createSlice({
225
225
  name: 'applications',
226
226
  initialState: adapter$1.getInitialState(),
227
227
  reducers: {
@@ -232,12 +232,12 @@ const slice$2 = createSlice({
232
232
  });
233
233
  const selectors$1 = adapter$1.getSelectors((state) => state.entities.applications);
234
234
  const Application = {
235
- slice: slice$2,
236
- actions: Object.assign({}, slice$2.actions),
235
+ slice: slice$3,
236
+ actions: Object.assign({}, slice$3.actions),
237
237
  selectors: selectors$1,
238
238
  };
239
239
 
240
- const initialState$j = {
240
+ const initialState$k = {
241
241
  entities: [],
242
242
  loading: 'idle',
243
243
  nbResults: 0,
@@ -248,7 +248,7 @@ const fetchBookableAsset = createAsyncThunk('BookableAsset/fetchBookableAsset',
248
248
  }));
249
249
  const BookableAssetSlice = createSlice({
250
250
  name: 'bookableAsset',
251
- initialState: initialState$j,
251
+ initialState: initialState$k,
252
252
  reducers: {},
253
253
  extraReducers: (builder) => {
254
254
  builder
@@ -269,7 +269,7 @@ const BookableAssetSlice = createSlice({
269
269
  const fetchConfiguration = createAsyncThunk('AssetReservation/configuration', (_, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
270
270
  return yield extra.jApi.assetReservation.configuration();
271
271
  }));
272
- const initialState$i = {
272
+ const initialState$j = {
273
273
  description: '',
274
274
  right: {
275
275
  manage: false,
@@ -283,7 +283,7 @@ const initialState$i = {
283
283
  };
284
284
  const AssetReservationConfigurationSlice = createSlice({
285
285
  name: 'configuration',
286
- initialState: initialState$i,
286
+ initialState: initialState$j,
287
287
  reducers: {},
288
288
  extraReducers: (builder) => {
289
289
  builder
@@ -304,7 +304,7 @@ const initForm = {
304
304
  hourStart: '',
305
305
  hourEnd: '',
306
306
  };
307
- const initialState$h = {
307
+ const initialState$i = {
308
308
  entities: [],
309
309
  loading: 'idle',
310
310
  nbResults: 0,
@@ -316,7 +316,7 @@ const fetchReservation = createAsyncThunk('Reservation/fetchReservation', (viewM
316
316
  }));
317
317
  const ReservationSlice = createSlice({
318
318
  name: 'reservation',
319
- initialState: initialState$h,
319
+ initialState: initialState$i,
320
320
  reducers: {
321
321
  setForm: (state, action) => {
322
322
  state.form = action.payload;
@@ -372,7 +372,7 @@ const AssetReservation = {
372
372
  },
373
373
  };
374
374
 
375
- const initialState$g = {
375
+ const initialState$h = {
376
376
  loading: 'idle',
377
377
  comments: [],
378
378
  };
@@ -389,7 +389,7 @@ const fetchComments = createAsyncThunk('commentList/fetchCommentList', (params,
389
389
  }));
390
390
  const CommentListSlice = createSlice({
391
391
  name: 'commentList',
392
- initialState: initialState$g,
392
+ initialState: initialState$h,
393
393
  reducers: {
394
394
  discardComments: (state, action) => {
395
395
  state.comments = state.comments.filter((c) => c.idArticle !== action.payload.idArticle);
@@ -480,7 +480,7 @@ const Comment = {
480
480
  getCommentsLikeRTHandlers,
481
481
  };
482
482
 
483
- const initialState$f = {
483
+ const initialState$g = {
484
484
  bookmarks: [],
485
485
  loading: 'idle',
486
486
  status: undefined,
@@ -543,7 +543,7 @@ const deleteBookmark = createAsyncThunk('bookmarkList/deleteBookmark', (bookmark
543
543
  }));
544
544
  const BookmarkListSlice = createSlice({
545
545
  name: 'bookmarkList',
546
- initialState: initialState$f,
546
+ initialState: initialState$g,
547
547
  reducers: {
548
548
  resetAddBookmarkStatus: (state, action) => {
549
549
  if (state.add[action.payload]) {
@@ -706,7 +706,7 @@ const getBookmarkRTHandlers = function (dispatch) {
706
706
  ];
707
707
  };
708
708
 
709
- const initialState$e = {
709
+ const initialState$f = {
710
710
  bookmark: undefined,
711
711
  status: undefined,
712
712
  loading: 'idle',
@@ -728,7 +728,7 @@ const editBookmark = createAsyncThunk('bookmarkEdit/editBookmark', (bookmark, {
728
728
  }));
729
729
  const BookmarkEditSlice = createSlice({
730
730
  name: 'bookmarkEdit',
731
- initialState: initialState$e,
731
+ initialState: initialState$f,
732
732
  reducers: {
733
733
  setEditBookmark: (state, action) => {
734
734
  state.bookmark = Object.assign({}, action.payload);
@@ -781,7 +781,7 @@ const Bookmark = {
781
781
  getRTHandlers: getBookmarkRTHandlers,
782
782
  };
783
783
 
784
- const initialState$d = {
784
+ const initialState$e = {
785
785
  loading: 'idle',
786
786
  access: { createCategory: false },
787
787
  };
@@ -810,7 +810,7 @@ const fetchFaqConfig = createAsyncThunk('faqConfig/fetch', () => __awaiter(void
810
810
  }));
811
811
  const FaqConfigSlice = createSlice({
812
812
  name: 'config',
813
- initialState: initialState$d,
813
+ initialState: initialState$e,
814
814
  reducers: {},
815
815
  extraReducers: (builder) => {
816
816
  builder
@@ -845,7 +845,7 @@ const FaqConfigSlice = createSlice({
845
845
  },
846
846
  });
847
847
 
848
- const initialState$c = {
848
+ const initialState$d = {
849
849
  loading: 'idle',
850
850
  categories: null,
851
851
  };
@@ -857,7 +857,7 @@ const fetchFaqCategories = createAsyncThunk('faqCategories/fetch', () => __await
857
857
  }));
858
858
  const FaqCategoriesSlice = createSlice({
859
859
  name: 'categories',
860
- initialState: initialState$c,
860
+ initialState: initialState$d,
861
861
  reducers: {},
862
862
  extraReducers: (builder) => {
863
863
  builder
@@ -904,6 +904,32 @@ const Faq = {
904
904
  },
905
905
  };
906
906
 
907
+ const buildDrivesArrayFromObject = (drives) => {
908
+ if (!drives)
909
+ return [];
910
+ return Object.keys(drives).filter((k) => drives[k]);
911
+ };
912
+
913
+ const slice$2 = createSlice({
914
+ name: 'hooks',
915
+ initialState: {},
916
+ reducers: {
917
+ initHooks: (_, { payload }) => {
918
+ return payload;
919
+ },
920
+ },
921
+ });
922
+ const selectHooks = (state) => state.hooks;
923
+ const selectHook = (state, hook) => {
924
+ return state.hooks[hook];
925
+ };
926
+ const Hook = {
927
+ slice: slice$2,
928
+ actions: slice$2.actions,
929
+ selectors: { selectHooks, selectHook },
930
+ utils: { buildDrivesArrayFromObject },
931
+ };
932
+
907
933
  const extractJlandUrlBaseFromMap = (map) => {
908
934
  const mapUrl = map.urlToJland;
909
935
  if (!mapUrl) {
@@ -1139,7 +1165,7 @@ const initialMap = {
1139
1165
  illustration: '',
1140
1166
  assignLicense: false,
1141
1167
  };
1142
- const initialState$b = {
1168
+ const initialState$c = {
1143
1169
  map: Object.assign({}, initialMap),
1144
1170
  loading: 'idle',
1145
1171
  status: undefined,
@@ -1183,13 +1209,13 @@ const createMap = createAsyncThunk('mapCreate/create', ({ map, jlandUrlBase }, {
1183
1209
  }));
1184
1210
  const MapCreateSlice = createSlice({
1185
1211
  name: 'mapCreate',
1186
- initialState: initialState$b,
1212
+ initialState: initialState$c,
1187
1213
  reducers: {
1188
1214
  setMap: (state, action) => {
1189
1215
  state.map = action.payload;
1190
1216
  },
1191
1217
  resetCreateMapState: () => {
1192
- return initialState$b;
1218
+ return initialState$c;
1193
1219
  },
1194
1220
  },
1195
1221
  extraReducers: (builder) => {
@@ -1243,6 +1269,119 @@ const jland = {
1243
1269
  utils: { buildUrlToJland },
1244
1270
  };
1245
1271
 
1272
+ const MediaLibraryAppConst = {
1273
+ route: 'media-library',
1274
+ moduleName: 'MediaLibraryHook',
1275
+ typeMediaLibraryFolder: 'mediaLibraryFolder',
1276
+ typeMediaLibraryFile: 'mediaLibraryFile',
1277
+ };
1278
+ const FILES_PER_PAGE = 18;
1279
+
1280
+ const initialState$b = {
1281
+ loading: 'idle',
1282
+ page: 1,
1283
+ nbResults: 0,
1284
+ folders: [],
1285
+ unclassifiedFiles: { list: [], page: 0, totalPages: 0 },
1286
+ mediaLibraryAccess: false,
1287
+ };
1288
+ const mediaLibrarySlice = createSlice({
1289
+ name: 'mediaLibrary',
1290
+ initialState: initialState$b,
1291
+ reducers: {
1292
+ setPage(state, action) {
1293
+ return Object.assign(Object.assign({}, state), { page: action.payload });
1294
+ },
1295
+ setFolderList(state, action) {
1296
+ return Object.assign(Object.assign({}, state), { entities: [...action.payload] });
1297
+ },
1298
+ setFileUnclassifiedList(state, action) {
1299
+ return Object.assign(Object.assign({}, state), { entitiesUnclassified: Object.assign({}, action.payload) });
1300
+ },
1301
+ },
1302
+ extraReducers: (builder) => {
1303
+ builder
1304
+ .addCase(fetchMediaLibraryFolders.pending, (state) => {
1305
+ state.loading = 'pending';
1306
+ })
1307
+ .addCase(fetchMediaLibraryFolders.fulfilled, (state, action) => {
1308
+ state.loading = 'idle';
1309
+ state.folders = [...action.payload.result.data];
1310
+ state.nbResults = 0;
1311
+ })
1312
+ .addCase(fetchMediaLibraryFolders.rejected, (state) => {
1313
+ state.loading = 'idle';
1314
+ })
1315
+ .addCase(fetchMediaLibraryUnclassifiedFiles.pending, (state) => {
1316
+ state.loading = 'pending';
1317
+ })
1318
+ .addCase(fetchMediaLibraryUnclassifiedFiles.fulfilled, (state, action) => {
1319
+ state.loading = 'idle';
1320
+ state.unclassifiedFiles = {
1321
+ list: [...action.payload.result.data],
1322
+ page: action.payload.result.page,
1323
+ totalPages: Math.ceil(action.payload.result.cnt / action.payload.result.limit),
1324
+ };
1325
+ state.nbResults = 0;
1326
+ })
1327
+ .addCase(fetchMediaLibraryUnclassifiedFiles.rejected, (state) => {
1328
+ state.loading = 'idle';
1329
+ })
1330
+ .addCase(fetchMediaLibraryConfig.fulfilled, (state, action) => {
1331
+ var _a, _b;
1332
+ state.loading = 'idle';
1333
+ state.mediaLibraryAccess = (_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.result) !== null && _b !== void 0 ? _b : false;
1334
+ })
1335
+ .addCase(fetchMediaLibraryConfig.rejected, (state) => {
1336
+ state.loading = 'idle';
1337
+ state.mediaLibraryAccess = false;
1338
+ })
1339
+ .addCase(fetchMediaLibraryConfig.pending, (state) => {
1340
+ state.loading = 'pending';
1341
+ state.mediaLibraryAccess = false;
1342
+ });
1343
+ },
1344
+ });
1345
+ const fetchMediaLibraryFolders = createAsyncThunk('MediaLibrary/fetchMediaLibraryFolders', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1346
+ const args = { type: MediaLibraryAppConst.typeMediaLibraryFolder, format: 'raw-little', limit: 10 };
1347
+ try {
1348
+ return yield extra.jApi.article.list(args);
1349
+ }
1350
+ catch (error) {
1351
+ dispatch(Toast.actions.error({ label: error.errorMsg }));
1352
+ return rejectWithValue({ error: 1, errorMsg: 'Cannot retrieve folders' });
1353
+ }
1354
+ }));
1355
+ const fetchMediaLibraryUnclassifiedFiles = createAsyncThunk('MediaLibrary/fetchMediaLibraryUnclassifiedFiles', (page, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1356
+ try {
1357
+ return yield extra.jApi.mediaLibrary.GetUnclassifiedFiles({
1358
+ format: 'raw-little',
1359
+ page,
1360
+ limit: FILES_PER_PAGE,
1361
+ });
1362
+ }
1363
+ catch (error) {
1364
+ dispatch(Toast.actions.error({ label: error.errorMsg }));
1365
+ return rejectWithValue({ error: 1, errorMsg: 'Cannot retrieve UnclassifiedFiles' });
1366
+ }
1367
+ }));
1368
+ const fetchMediaLibraryConfig = createAsyncThunk('MediaLibrary/fetchMediaLibraryConfig', (_, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
1369
+ try {
1370
+ return yield extra.jApi.mediaLibrary.getAccess();
1371
+ }
1372
+ catch (error) {
1373
+ dispatch(Toast.actions.error({ label: error.errorMsg }));
1374
+ return rejectWithValue({ error: 1, errorMsg: 'Cannot get MediaLibrary Config' });
1375
+ }
1376
+ }));
1377
+ const selectMediaLibrary = (state) => state.mediaLibrary;
1378
+ const mediaLibraryReducer = mediaLibrarySlice.reducer;
1379
+ const MediaLibrary = {
1380
+ slice: mediaLibrarySlice,
1381
+ actions: { fetchMediaLibraryFolders, fetchMediaLibraryUnclassifiedFiles, fetchMediaLibraryConfig },
1382
+ selectors: { selectMediaLibrary }
1383
+ };
1384
+
1246
1385
  const adapter = createEntityAdapter({
1247
1386
  selectId: (model) => model.type,
1248
1387
  sortComparer: (a, b) => a.label.localeCompare(b.label),
@@ -2146,7 +2285,7 @@ const STUDIO_VIEW = {
2146
2285
  SOLR: '1',
2147
2286
  NOT_SOLR: '0',
2148
2287
  };
2149
- const viewsList = ['create', 'popup', 'edit', 'list', 'filter', 'view'];
2288
+ const viewsList = ['create', 'popup', 'edit', 'filter', 'list', 'view'];
2150
2289
  var AppFormItemTypes;
2151
2290
  (function (AppFormItemTypes) {
2152
2291
  AppFormItemTypes["IMAGE"] = "IMAGE";
@@ -3266,7 +3405,6 @@ function createNewStudioApp$1({ author, appName }) {
3266
3405
  }
3267
3406
 
3268
3407
  const initialState = {
3269
- studioAppsList: [],
3270
3408
  loadingStudioAppsList: 'idle',
3271
3409
  deleteStudioAppStatus: 'idle',
3272
3410
  suspendStudioAppStatus: 'idle',
@@ -3342,12 +3480,12 @@ const restartStudioApp = createAsyncThunk('studio/restartStudioApp', ({ idApp },
3342
3480
  }
3343
3481
  }));
3344
3482
  const cloneStudioApp = createAsyncThunk('studio/cloneStudioApp', ({ idApp }, { extra, getState, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
3345
- var _b;
3483
+ var _b, _c;
3346
3484
  const jApi = extra.jApi;
3347
- const existingStudioApp = getState().studio.studioAppsList.studioAppsList.find((app) => app.idApp === idApp);
3485
+ const existingStudioApp = (_b = getState().studio.studioAppsList.studioAppsList) === null || _b === void 0 ? void 0 : _b.find((app) => app.idApp === idApp);
3348
3486
  if (!existingStudioApp)
3349
3487
  return rejectWithValue({ error: 1, errorMsg: 'Error cloning application' });
3350
- const currentUser = (_b = getState().userCurrent) === null || _b === void 0 ? void 0 : _b.uri;
3488
+ const currentUser = (_c = getState().userCurrent) === null || _c === void 0 ? void 0 : _c.uri;
3351
3489
  const [clonedStudioApp, newAppId] = cloneStudioAppFromExistingApp(existingStudioApp, currentUser);
3352
3490
  const clonedStudioAppReady = JSON.stringify(clonedStudioApp);
3353
3491
  try {
@@ -3389,10 +3527,11 @@ const StudioAppsListSlice = createSlice({
3389
3527
  state.deleteStudioAppStatus = 'pending';
3390
3528
  })
3391
3529
  .addCase(deleteStudioApp.fulfilled, (state, action) => {
3530
+ var _a, _b;
3392
3531
  if (state.deleteStudioAppStatus === 'pending') {
3393
3532
  state.deleteStudioAppStatus = 'idle';
3394
3533
  }
3395
- state.studioAppsList = state.studioAppsList.reduce((acc, app) => {
3534
+ state.studioAppsList = (_b = (_a = state.studioAppsList) === null || _a === void 0 ? void 0 : _a.reduce((acc, app) => {
3396
3535
  const { idApp } = action.meta.arg;
3397
3536
  let { status } = action.meta.arg;
3398
3537
  if (status === APP_STATUS_TYPE.INSTALLED)
@@ -3405,7 +3544,7 @@ const StudioAppsListSlice = createSlice({
3405
3544
  delete app.inWorkVersion;
3406
3545
  }
3407
3546
  return [...acc, app];
3408
- }, []);
3547
+ }, [])) !== null && _b !== void 0 ? _b : [];
3409
3548
  })
3410
3549
  .addCase(deleteStudioApp.rejected, (state) => {
3411
3550
  if (state.deleteStudioAppStatus === 'pending')
@@ -3416,17 +3555,18 @@ const StudioAppsListSlice = createSlice({
3416
3555
  state.suspendStudioAppStatus = 'pending';
3417
3556
  })
3418
3557
  .addCase(suspendStudioApp.fulfilled, (state, action) => {
3558
+ var _a, _b;
3419
3559
  if (state.suspendStudioAppStatus === 'pending') {
3420
3560
  state.suspendStudioAppStatus = 'idle';
3421
3561
  }
3422
- state.studioAppsList = state.studioAppsList.map((app) => {
3562
+ state.studioAppsList = (_b = (_a = state.studioAppsList) === null || _a === void 0 ? void 0 : _a.map((app) => {
3423
3563
  const { idApp } = action.meta.arg;
3424
3564
  if (app.idApp === idApp) {
3425
3565
  app.status = APP_STATUS_TYPE.SUSPENDED;
3426
3566
  return app;
3427
3567
  }
3428
3568
  return app;
3429
- });
3569
+ })) !== null && _b !== void 0 ? _b : [];
3430
3570
  })
3431
3571
  .addCase(suspendStudioApp.rejected, (state) => {
3432
3572
  if (state.suspendStudioAppStatus === 'pending')
@@ -3437,17 +3577,18 @@ const StudioAppsListSlice = createSlice({
3437
3577
  state.restartStudioAppStatus = 'pending';
3438
3578
  })
3439
3579
  .addCase(restartStudioApp.fulfilled, (state, action) => {
3580
+ var _a, _b;
3440
3581
  if (state.restartStudioAppStatus === 'pending') {
3441
3582
  state.restartStudioAppStatus = 'idle';
3442
3583
  }
3443
- state.studioAppsList = state.studioAppsList.map((app) => {
3584
+ state.studioAppsList = (_b = (_a = state.studioAppsList) === null || _a === void 0 ? void 0 : _a.map((app) => {
3444
3585
  const { idApp } = action.meta.arg;
3445
3586
  if (app.idApp === idApp) {
3446
3587
  app.status = APP_STATUS_TYPE.INSTALLED;
3447
3588
  return app;
3448
3589
  }
3449
3590
  return app;
3450
- });
3591
+ })) !== null && _b !== void 0 ? _b : [];
3451
3592
  })
3452
3593
  .addCase(restartStudioApp.rejected, (state) => {
3453
3594
  if (state.restartStudioAppStatus === 'pending')
@@ -3458,10 +3599,11 @@ const StudioAppsListSlice = createSlice({
3458
3599
  state.cloneStudioAppStatus = 'pending';
3459
3600
  })
3460
3601
  .addCase(cloneStudioApp.fulfilled, (state, action) => {
3602
+ var _a;
3461
3603
  if (state.cloneStudioAppStatus === 'pending') {
3462
3604
  state.cloneStudioAppStatus = 'idle';
3463
3605
  }
3464
- state.studioAppsList = [...state.studioAppsList, action.payload];
3606
+ state.studioAppsList = [...((_a = state.studioAppsList) !== null && _a !== void 0 ? _a : []), action.payload];
3465
3607
  })
3466
3608
  .addCase(cloneStudioApp.rejected, (state) => {
3467
3609
  if (state.cloneStudioAppStatus === 'pending')
@@ -3472,10 +3614,11 @@ const StudioAppsListSlice = createSlice({
3472
3614
  state.createNewStudioAppStatus = 'pending';
3473
3615
  })
3474
3616
  .addCase(createNewStudioApp.fulfilled, (state, action) => {
3617
+ var _a;
3475
3618
  if (state.createNewStudioAppStatus === 'pending') {
3476
3619
  state.createNewStudioAppStatus = 'idle';
3477
3620
  }
3478
- state.studioAppsList = [...state.studioAppsList, action.payload];
3621
+ state.studioAppsList = [...((_a = state.studioAppsList) !== null && _a !== void 0 ? _a : []), action.payload];
3479
3622
  })
3480
3623
  .addCase(createNewStudioApp.rejected, (state) => {
3481
3624
  if (state.createNewStudioAppStatus === 'pending')
@@ -3515,5 +3658,5 @@ const studio = {
3515
3658
  },
3516
3659
  };
3517
3660
 
3518
- export { APP_STATUS_TYPE, AUDIENCE, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews$1 as AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList$1 as AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormUniqueList, Application, AssetReservation, Bookmark, Comment, ExtraAppFieldsItemViews, Faq, MODE_EDIT, MODE_VIEW, MapExtraFieldsWithView, Model, Network, Platform, STUDIO_VIEW, Share, StatusType$1 as StatusType, TVDisplay, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, animationsReducer, animationsSlice, deleteCurrentAnimation, fetchCurrentAnimation, fetchCurrentAnimationApp, jland, saveCurrentAnimation, slice, studio, toggleAnimationIsActive, updateWidgetContent, viewsList };
3661
+ export { APP_STATUS_TYPE, AUDIENCE, Animations, AppColumnsDefaultTypes, AppFieldFormPropertyTypes, AppFormBannedFromViews$1 as AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList$1 as AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormUniqueList, Application, AssetReservation, Bookmark, Comment, ExtraAppFieldsItemViews, Faq, Hook, MODE_EDIT, MODE_VIEW, MapExtraFieldsWithView, MediaLibrary, Model, Network, Platform, STUDIO_VIEW, Share, StatusType$1 as StatusType, TVDisplay, TinyMCE, Toast, UserCurrent, WedocApp, Widget, WidgetEditor, actions, animationsReducer, animationsSlice, deleteCurrentAnimation, fetchCurrentAnimation, fetchCurrentAnimationApp, fetchMediaLibraryConfig, fetchMediaLibraryFolders, fetchMediaLibraryUnclassifiedFiles, jland, mediaLibraryReducer, mediaLibrarySlice, saveCurrentAnimation, slice, studio, toggleAnimationIsActive, updateWidgetContent, viewsList };
3519
3662
  //# sourceMappingURL=esm.js.map