@replyke/core 7.0.0-beta.5 → 7.0.0-beta.7

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.
Files changed (35) hide show
  1. package/dist/cjs/hooks/entity-lists/index.d.ts +1 -1
  2. package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +2 -2
  3. package/dist/cjs/hooks/entity-lists/useEntityList.js +38 -16
  4. package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
  5. package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +5 -4
  6. package/dist/cjs/hooks/entity-lists/useEntityListActions.js +1 -0
  7. package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
  8. package/dist/cjs/hooks/space-lists/useSpaceList.js +1 -1
  9. package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
  10. package/dist/cjs/index.d.ts +1 -1
  11. package/dist/cjs/index.js.map +1 -1
  12. package/dist/cjs/store/api/entityListsApi.d.ts +3 -3
  13. package/dist/cjs/store/api/entityListsApi.js.map +1 -1
  14. package/dist/cjs/store/slices/entityListsSlice.d.ts +76 -63
  15. package/dist/cjs/store/slices/entityListsSlice.js +44 -21
  16. package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
  17. package/dist/cjs/store/slices/spaceListsSlice.d.ts +1 -1
  18. package/dist/esm/hooks/entity-lists/index.d.ts +1 -1
  19. package/dist/esm/hooks/entity-lists/useEntityList.d.ts +2 -2
  20. package/dist/esm/hooks/entity-lists/useEntityList.js +39 -17
  21. package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
  22. package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +5 -4
  23. package/dist/esm/hooks/entity-lists/useEntityListActions.js +1 -0
  24. package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
  25. package/dist/esm/hooks/space-lists/useSpaceList.js +1 -1
  26. package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
  27. package/dist/esm/index.d.ts +1 -1
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/store/api/entityListsApi.d.ts +3 -3
  30. package/dist/esm/store/api/entityListsApi.js.map +1 -1
  31. package/dist/esm/store/slices/entityListsSlice.d.ts +76 -63
  32. package/dist/esm/store/slices/entityListsSlice.js +43 -20
  33. package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
  34. package/dist/esm/store/slices/spaceListsSlice.d.ts +1 -1
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction } from "@reduxjs/toolkit";
2
- import { Entity } from "../../interfaces/models/Entity";
2
+ import { Entity, EntityIncludeParam } from "../../interfaces/models/Entity";
3
3
  import { EntityListSortByOptions, SortDirection, SortType } from "../../interfaces/EntityListSortByOptions";
4
4
  import { LocationFilters } from "../../interfaces/entity-filters/LocationFilters";
5
5
  import { TimeFrame } from "../../interfaces/TimeFrame";
@@ -18,6 +18,7 @@ export interface EntityListState {
18
18
  sourceId: string | null;
19
19
  spaceId: string | null;
20
20
  limit: number;
21
+ include: EntityIncludeParam | null;
21
22
  sortBy: EntityListSortByOptions;
22
23
  sortDir: SortDirection | null;
23
24
  sortType: SortType;
@@ -36,10 +37,12 @@ export interface EntityListsState {
36
37
  [listId: string]: EntityListState;
37
38
  };
38
39
  }
39
- export interface EntityListFilters {
40
- sortBy?: EntityListSortByOptions;
40
+ export interface EntityListSort {
41
+ sortBy: EntityListSortByOptions;
41
42
  sortDir?: SortDirection | null;
42
43
  sortType?: SortType;
44
+ }
45
+ export interface EntityListFilters {
43
46
  timeFrame?: TimeFrame | null;
44
47
  userId?: string | null;
45
48
  followedOnly?: boolean;
@@ -54,15 +57,18 @@ export interface EntityListConfig {
54
57
  sourceId?: string | null;
55
58
  spaceId?: string | null;
56
59
  limit?: number;
60
+ include?: EntityIncludeParam | null;
57
61
  }
58
62
  export interface EntityListFetchOptions {
59
- resetUnspecified?: boolean;
60
- immediate?: boolean;
63
+ resetFilters?: boolean;
64
+ resetSort?: boolean;
65
+ fetchImmediately?: boolean;
61
66
  clearImmediately?: boolean;
62
67
  }
63
68
  export interface FilterUpdatePayload {
64
69
  listId: string;
65
70
  filters: Partial<EntityListFilters>;
71
+ sort?: Partial<EntityListSort>;
66
72
  config?: EntityListConfig;
67
73
  options?: EntityListFetchOptions;
68
74
  }
@@ -207,6 +213,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
207
213
  sourceId: string | null;
208
214
  spaceId: string | null;
209
215
  limit: number;
216
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
210
217
  sortBy: EntityListSortByOptions;
211
218
  sortDir: SortDirection | null;
212
219
  sortType: SortType;
@@ -251,7 +258,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
251
258
  };
252
259
  };
253
260
  }, action: PayloadAction<InitializeListPayload>) => void;
254
- updateFiltersAndSort: (state: {
261
+ updateFiltersAndSortConfig: (state: {
255
262
  lists: {
256
263
  [x: string]: {
257
264
  entities: {
@@ -368,6 +375,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
368
375
  sourceId: string | null;
369
376
  spaceId: string | null;
370
377
  limit: number;
378
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
371
379
  sortBy: EntityListSortByOptions;
372
380
  sortDir: SortDirection | null;
373
381
  sortType: SortType;
@@ -529,6 +537,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
529
537
  sourceId: string | null;
530
538
  spaceId: string | null;
531
539
  limit: number;
540
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
532
541
  sortBy: EntityListSortByOptions;
533
542
  sortDir: SortDirection | null;
534
543
  sortType: SortType;
@@ -693,6 +702,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
693
702
  sourceId: string | null;
694
703
  spaceId: string | null;
695
704
  limit: number;
705
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
696
706
  sortBy: EntityListSortByOptions;
697
707
  sortDir: SortDirection | null;
698
708
  sortType: SortType;
@@ -854,6 +864,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
854
864
  sourceId: string | null;
855
865
  spaceId: string | null;
856
866
  limit: number;
867
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
857
868
  sortBy: EntityListSortByOptions;
858
869
  sortDir: SortDirection | null;
859
870
  sortType: SortType;
@@ -1015,6 +1026,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1015
1026
  sourceId: string | null;
1016
1027
  spaceId: string | null;
1017
1028
  limit: number;
1029
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
1018
1030
  sortBy: EntityListSortByOptions;
1019
1031
  sortDir: SortDirection | null;
1020
1032
  sortType: SortType;
@@ -1179,6 +1191,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1179
1191
  sourceId: string | null;
1180
1192
  spaceId: string | null;
1181
1193
  limit: number;
1194
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
1182
1195
  sortBy: EntityListSortByOptions;
1183
1196
  sortDir: SortDirection | null;
1184
1197
  sortType: SortType;
@@ -1343,6 +1356,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1343
1356
  sourceId: string | null;
1344
1357
  spaceId: string | null;
1345
1358
  limit: number;
1359
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
1346
1360
  sortBy: EntityListSortByOptions;
1347
1361
  sortDir: SortDirection | null;
1348
1362
  sortType: SortType;
@@ -1504,6 +1518,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1504
1518
  sourceId: string | null;
1505
1519
  spaceId: string | null;
1506
1520
  limit: number;
1521
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
1507
1522
  sortBy: EntityListSortByOptions;
1508
1523
  sortDir: SortDirection | null;
1509
1524
  sortType: SortType;
@@ -1665,6 +1680,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1665
1680
  sourceId: string | null;
1666
1681
  spaceId: string | null;
1667
1682
  limit: number;
1683
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
1668
1684
  sortBy: EntityListSortByOptions;
1669
1685
  sortDir: SortDirection | null;
1670
1686
  sortType: SortType;
@@ -1826,6 +1842,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1826
1842
  sourceId: string | null;
1827
1843
  spaceId: string | null;
1828
1844
  limit: number;
1845
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
1829
1846
  sortBy: EntityListSortByOptions;
1830
1847
  sortDir: SortDirection | null;
1831
1848
  sortType: SortType;
@@ -1987,6 +2004,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1987
2004
  sourceId: string | null;
1988
2005
  spaceId: string | null;
1989
2006
  limit: number;
2007
+ include: string | import("../../interfaces/models/Entity").EntityInclude[] | null;
1990
2008
  sortBy: EntityListSortByOptions;
1991
2009
  sortDir: SortDirection | null;
1992
2010
  sortType: SortType;
@@ -2032,7 +2050,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
2032
2050
  };
2033
2051
  }, action: PayloadAction<number>) => void;
2034
2052
  }, "entityLists", "entityLists", import("@reduxjs/toolkit").SliceSelectors<EntityListsState>>;
2035
- export declare const initializeList: import("@reduxjs/toolkit").ActionCreatorWithPayload<InitializeListPayload, "entityLists/initializeList">, updateFiltersAndSort: import("@reduxjs/toolkit").ActionCreatorWithPayload<FilterUpdatePayload, "entityLists/updateFiltersAndSort">, setEntityListLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
2053
+ export declare const initializeList: import("@reduxjs/toolkit").ActionCreatorWithPayload<InitializeListPayload, "entityLists/initializeList">, updateFiltersAndSortConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<FilterUpdatePayload, "entityLists/updateFiltersAndSortConfig">, setEntityListLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
2036
2054
  listId: string;
2037
2055
  loading: boolean;
2038
2056
  }, "entityLists/setEntityListLoading">, setEntityListEntities: import("@reduxjs/toolkit").ActionCreatorWithPayload<EntitiesSetPayload, "entityLists/setEntityListEntities">, incrementPage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "entityLists/incrementPage">, setEntityListHasMore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -2194,70 +2212,61 @@ export declare const selectEntityListHasMore: ((state: any, listId: string) => b
2194
2212
  memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
2195
2213
  argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
2196
2214
  };
2197
- export declare const selectEntityListFilters: ((state: any, listId: string) => {
2198
- sortBy: EntityListSortByOptions;
2199
- sortDir: SortDirection | null;
2200
- sortType: SortType;
2201
- timeFrame: TimeFrame | null;
2202
- userId: string | null;
2203
- followedOnly: boolean;
2204
- keywordsFilters: KeywordsFilters | null;
2205
- titleFilters: TitleFilters | null;
2206
- contentFilters: ContentFilters | null;
2207
- attachmentsFilters: AttachmentsFilters | null;
2208
- locationFilters: LocationFilters | null;
2209
- metadataFilters: MetadataFilters | null;
2210
- } | null) & {
2215
+ export declare const selectEntityListSort: ((state: any, listId: string) => EntityListSort | null) & {
2211
2216
  clearCache: () => void;
2212
2217
  resultsCount: () => number;
2213
2218
  resetResultsCount: () => void;
2214
2219
  } & {
2215
- resultFunc: (resultFuncArgs_0: EntityListState | undefined) => {
2216
- sortBy: EntityListSortByOptions;
2217
- sortDir: SortDirection | null;
2218
- sortType: SortType;
2219
- timeFrame: TimeFrame | null;
2220
- userId: string | null;
2221
- followedOnly: boolean;
2222
- keywordsFilters: KeywordsFilters | null;
2223
- titleFilters: TitleFilters | null;
2224
- contentFilters: ContentFilters | null;
2225
- attachmentsFilters: AttachmentsFilters | null;
2226
- locationFilters: LocationFilters | null;
2227
- metadataFilters: MetadataFilters | null;
2228
- } | null;
2229
- memoizedResultFunc: ((resultFuncArgs_0: EntityListState | undefined) => {
2230
- sortBy: EntityListSortByOptions;
2231
- sortDir: SortDirection | null;
2232
- sortType: SortType;
2233
- timeFrame: TimeFrame | null;
2234
- userId: string | null;
2235
- followedOnly: boolean;
2236
- keywordsFilters: KeywordsFilters | null;
2237
- titleFilters: TitleFilters | null;
2238
- contentFilters: ContentFilters | null;
2239
- attachmentsFilters: AttachmentsFilters | null;
2240
- locationFilters: LocationFilters | null;
2241
- metadataFilters: MetadataFilters | null;
2242
- } | null) & {
2220
+ resultFunc: (resultFuncArgs_0: EntityListState | undefined) => EntityListSort | null;
2221
+ memoizedResultFunc: ((resultFuncArgs_0: EntityListState | undefined) => EntityListSort | null) & {
2243
2222
  clearCache: () => void;
2244
2223
  resultsCount: () => number;
2245
2224
  resetResultsCount: () => void;
2246
2225
  };
2247
- lastResult: () => {
2248
- sortBy: EntityListSortByOptions;
2249
- sortDir: SortDirection | null;
2250
- sortType: SortType;
2251
- timeFrame: TimeFrame | null;
2252
- userId: string | null;
2253
- followedOnly: boolean;
2254
- keywordsFilters: KeywordsFilters | null;
2255
- titleFilters: TitleFilters | null;
2256
- contentFilters: ContentFilters | null;
2257
- attachmentsFilters: AttachmentsFilters | null;
2258
- locationFilters: LocationFilters | null;
2259
- metadataFilters: MetadataFilters | null;
2260
- } | null;
2226
+ lastResult: () => EntityListSort | null;
2227
+ dependencies: [((state: any, listId: string) => EntityListState | undefined) & {
2228
+ clearCache: () => void;
2229
+ resultsCount: () => number;
2230
+ resetResultsCount: () => void;
2231
+ } & {
2232
+ resultFunc: (resultFuncArgs_0: EntityListsState, resultFuncArgs_1: string) => EntityListState | undefined;
2233
+ memoizedResultFunc: ((resultFuncArgs_0: EntityListsState, resultFuncArgs_1: string) => EntityListState | undefined) & {
2234
+ clearCache: () => void;
2235
+ resultsCount: () => number;
2236
+ resetResultsCount: () => void;
2237
+ };
2238
+ lastResult: () => EntityListState | undefined;
2239
+ dependencies: [(state: {
2240
+ entityLists: EntityListsState;
2241
+ }) => EntityListsState, (_: any, listId: string) => string];
2242
+ recomputations: () => number;
2243
+ resetRecomputations: () => void;
2244
+ dependencyRecomputations: () => number;
2245
+ resetDependencyRecomputations: () => void;
2246
+ } & {
2247
+ memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
2248
+ argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
2249
+ }];
2250
+ recomputations: () => number;
2251
+ resetRecomputations: () => void;
2252
+ dependencyRecomputations: () => number;
2253
+ resetDependencyRecomputations: () => void;
2254
+ } & {
2255
+ memoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
2256
+ argsMemoize: typeof import("@reduxjs/toolkit").weakMapMemoize;
2257
+ };
2258
+ export declare const selectEntityListFilters: ((state: any, listId: string) => EntityListFilters | null) & {
2259
+ clearCache: () => void;
2260
+ resultsCount: () => number;
2261
+ resetResultsCount: () => void;
2262
+ } & {
2263
+ resultFunc: (resultFuncArgs_0: EntityListState | undefined) => EntityListFilters | null;
2264
+ memoizedResultFunc: ((resultFuncArgs_0: EntityListState | undefined) => EntityListFilters | null) & {
2265
+ clearCache: () => void;
2266
+ resultsCount: () => number;
2267
+ resetResultsCount: () => void;
2268
+ };
2269
+ lastResult: () => EntityListFilters | null;
2261
2270
  dependencies: [((state: any, listId: string) => EntityListState | undefined) & {
2262
2271
  clearCache: () => void;
2263
2272
  resultsCount: () => number;
@@ -2293,6 +2302,7 @@ export declare const selectEntityListConfig: ((state: any, listId: string) => {
2293
2302
  sourceId: string | null;
2294
2303
  spaceId: string | null;
2295
2304
  limit: number;
2305
+ include: EntityIncludeParam | null;
2296
2306
  } | null) & {
2297
2307
  clearCache: () => void;
2298
2308
  resultsCount: () => number;
@@ -2302,11 +2312,13 @@ export declare const selectEntityListConfig: ((state: any, listId: string) => {
2302
2312
  sourceId: string | null;
2303
2313
  spaceId: string | null;
2304
2314
  limit: number;
2315
+ include: EntityIncludeParam | null;
2305
2316
  } | null;
2306
2317
  memoizedResultFunc: ((resultFuncArgs_0: EntityListState | undefined) => {
2307
2318
  sourceId: string | null;
2308
2319
  spaceId: string | null;
2309
2320
  limit: number;
2321
+ include: EntityIncludeParam | null;
2310
2322
  } | null) & {
2311
2323
  clearCache: () => void;
2312
2324
  resultsCount: () => number;
@@ -2316,6 +2328,7 @@ export declare const selectEntityListConfig: ((state: any, listId: string) => {
2316
2328
  sourceId: string | null;
2317
2329
  spaceId: string | null;
2318
2330
  limit: number;
2331
+ include: EntityIncludeParam | null;
2319
2332
  } | null;
2320
2333
  dependencies: [((state: any, listId: string) => EntityListState | undefined) & {
2321
2334
  clearCache: () => void;
@@ -21,7 +21,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
21
21
  };
22
22
  var _a;
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.selectEntityListConfig = exports.selectEntityListFilters = exports.selectEntityListHasMore = exports.selectEntityListLoading = exports.selectEntityListEntities = exports.selectEntityList = exports.cleanupOldLists = exports.cleanupList = exports.updateKeywordsFilters = exports.removeEntity = exports.addEntity = exports.setEntityListError = exports.setEntityListHasMore = exports.incrementPage = exports.setEntityListEntities = exports.setEntityListLoading = exports.updateFiltersAndSort = exports.initializeList = exports.entityListsSlice = void 0;
24
+ exports.selectEntityListConfig = exports.selectEntityListFilters = exports.selectEntityListSort = exports.selectEntityListHasMore = exports.selectEntityListLoading = exports.selectEntityListEntities = exports.selectEntityList = exports.cleanupOldLists = exports.cleanupList = exports.updateKeywordsFilters = exports.removeEntity = exports.addEntity = exports.setEntityListError = exports.setEntityListHasMore = exports.incrementPage = exports.setEntityListEntities = exports.setEntityListLoading = exports.updateFiltersAndSortConfig = exports.initializeList = exports.entityListsSlice = void 0;
25
25
  var toolkit_1 = require("@reduxjs/toolkit");
26
26
  // Default state for a new entity list
27
27
  var createDefaultEntityListState = function () { return ({
@@ -35,6 +35,7 @@ var createDefaultEntityListState = function () { return ({
35
35
  sourceId: null,
36
36
  spaceId: null,
37
37
  limit: 10,
38
+ include: null,
38
39
  // Default filters (user-controlled only)
39
40
  sortBy: "hot",
40
41
  sortDir: null,
@@ -65,21 +66,17 @@ exports.entityListsSlice = (0, toolkit_1.createSlice)({
65
66
  state.lists[listId] = createDefaultEntityListState();
66
67
  }
67
68
  },
68
- // Update filters and sort (unified function)
69
- updateFiltersAndSort: function (state, action) {
70
- var _a = action.payload, listId = _a.listId, filters = _a.filters, options = _a.options;
69
+ // Update filters and sort configuration
70
+ updateFiltersAndSortConfig: function (state, action) {
71
+ var _a = action.payload, listId = _a.listId, filters = _a.filters, sort = _a.sort, config = _a.config, options = _a.options;
71
72
  // Ensure list exists
72
73
  if (!state.lists[listId]) {
73
74
  state.lists[listId] = createDefaultEntityListState();
74
75
  }
75
76
  var list = state.lists[listId];
76
- // If resetUnspecified is true, reset to defaults first
77
- if (options === null || options === void 0 ? void 0 : options.resetUnspecified) {
77
+ // Handle resetFilters flag - reset only filter properties
78
+ if (options === null || options === void 0 ? void 0 : options.resetFilters) {
78
79
  var defaultState = createDefaultEntityListState();
79
- // Reset all filter properties to defaults
80
- list.sortBy = defaultState.sortBy;
81
- list.sortDir = defaultState.sortDir;
82
- list.sortType = defaultState.sortType;
83
80
  list.timeFrame = defaultState.timeFrame;
84
81
  list.userId = defaultState.userId;
85
82
  list.followedOnly = defaultState.followedOnly;
@@ -90,25 +87,44 @@ exports.entityListsSlice = (0, toolkit_1.createSlice)({
90
87
  list.locationFilters = defaultState.locationFilters;
91
88
  list.metadataFilters = defaultState.metadataFilters;
92
89
  }
93
- // Update specified filters
90
+ // Handle resetSort flag - reset only sort properties
91
+ if (options === null || options === void 0 ? void 0 : options.resetSort) {
92
+ var defaultState = createDefaultEntityListState();
93
+ list.sortBy = defaultState.sortBy;
94
+ list.sortDir = defaultState.sortDir;
95
+ list.sortType = defaultState.sortType;
96
+ }
97
+ // Apply specified filters
94
98
  Object.keys(filters).forEach(function (key) {
95
99
  if (filters[key] !== undefined) {
96
100
  list[key] = filters[key];
97
101
  }
98
102
  });
103
+ // Apply specified sort configuration
104
+ if (sort) {
105
+ if (sort.sortBy !== undefined)
106
+ list.sortBy = sort.sortBy;
107
+ if (sort.sortDir !== undefined)
108
+ list.sortDir = sort.sortDir;
109
+ if (sort.sortType !== undefined)
110
+ list.sortType = sort.sortType;
111
+ }
99
112
  // Update config if provided
100
- if (action.payload.config) {
101
- if (action.payload.config.sourceId !== undefined) {
102
- list.sourceId = action.payload.config.sourceId;
113
+ if (config) {
114
+ if (config.sourceId !== undefined) {
115
+ list.sourceId = config.sourceId;
103
116
  }
104
- if (action.payload.config.spaceId !== undefined) {
105
- list.spaceId = action.payload.config.spaceId;
117
+ if (config.spaceId !== undefined) {
118
+ list.spaceId = config.spaceId;
106
119
  }
107
- if (action.payload.config.limit !== undefined) {
108
- list.limit = action.payload.config.limit;
120
+ if (config.limit !== undefined) {
121
+ list.limit = config.limit;
122
+ }
123
+ if (config.include !== undefined) {
124
+ list.include = config.include;
109
125
  }
110
126
  }
111
- // Reset pagination when filters change
127
+ // Reset pagination when filters or sort changes
112
128
  list.page = 1;
113
129
  list.hasMore = true;
114
130
  list.error = null;
@@ -254,7 +270,7 @@ exports.entityListsSlice = (0, toolkit_1.createSlice)({
254
270
  },
255
271
  });
256
272
  // Export actions
257
- exports.initializeList = (_a = exports.entityListsSlice.actions, _a.initializeList), exports.updateFiltersAndSort = _a.updateFiltersAndSort, exports.setEntityListLoading = _a.setEntityListLoading, exports.setEntityListEntities = _a.setEntityListEntities, exports.incrementPage = _a.incrementPage, exports.setEntityListHasMore = _a.setEntityListHasMore, exports.setEntityListError = _a.setEntityListError, exports.addEntity = _a.addEntity, exports.removeEntity = _a.removeEntity, exports.updateKeywordsFilters = _a.updateKeywordsFilters, exports.cleanupList = _a.cleanupList, exports.cleanupOldLists = _a.cleanupOldLists;
273
+ exports.initializeList = (_a = exports.entityListsSlice.actions, _a.initializeList), exports.updateFiltersAndSortConfig = _a.updateFiltersAndSortConfig, exports.setEntityListLoading = _a.setEntityListLoading, exports.setEntityListEntities = _a.setEntityListEntities, exports.incrementPage = _a.incrementPage, exports.setEntityListHasMore = _a.setEntityListHasMore, exports.setEntityListError = _a.setEntityListError, exports.addEntity = _a.addEntity, exports.removeEntity = _a.removeEntity, exports.updateKeywordsFilters = _a.updateKeywordsFilters, exports.cleanupList = _a.cleanupList, exports.cleanupOldLists = _a.cleanupOldLists;
258
274
  // Base selectors
259
275
  var selectEntityListsState = function (state) {
260
276
  return state.entityLists;
@@ -267,13 +283,19 @@ exports.selectEntityList = (0, toolkit_1.createSelector)([selectEntityListsState
267
283
  exports.selectEntityListEntities = (0, toolkit_1.createSelector)([exports.selectEntityList], function (entityList) { return (entityList === null || entityList === void 0 ? void 0 : entityList.entities) || []; });
268
284
  exports.selectEntityListLoading = (0, toolkit_1.createSelector)([exports.selectEntityList], function (entityList) { return (entityList === null || entityList === void 0 ? void 0 : entityList.loading) || false; });
269
285
  exports.selectEntityListHasMore = (0, toolkit_1.createSelector)([exports.selectEntityList], function (entityList) { return (entityList === null || entityList === void 0 ? void 0 : entityList.hasMore) || false; });
270
- exports.selectEntityListFilters = (0, toolkit_1.createSelector)([exports.selectEntityList], function (entityList) {
286
+ exports.selectEntityListSort = (0, toolkit_1.createSelector)([exports.selectEntityList], function (entityList) {
271
287
  if (!entityList)
272
288
  return null;
273
289
  return {
274
290
  sortBy: entityList.sortBy,
275
291
  sortDir: entityList.sortDir,
276
292
  sortType: entityList.sortType,
293
+ };
294
+ });
295
+ exports.selectEntityListFilters = (0, toolkit_1.createSelector)([exports.selectEntityList], function (entityList) {
296
+ if (!entityList)
297
+ return null;
298
+ return {
277
299
  timeFrame: entityList.timeFrame,
278
300
  userId: entityList.userId,
279
301
  followedOnly: entityList.followedOnly,
@@ -292,6 +314,7 @@ exports.selectEntityListConfig = (0, toolkit_1.createSelector)([exports.selectEn
292
314
  sourceId: entityList.sourceId,
293
315
  spaceId: entityList.spaceId,
294
316
  limit: entityList.limit,
317
+ include: entityList.include,
295
318
  };
296
319
  });
297
320
  exports.default = exports.entityListsSlice.reducer;
@@ -1 +1 @@
1
- {"version":3,"file":"entityListsSlice.js","sourceRoot":"","sources":["../../../../src/store/slices/entityListsSlice.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA8E;AA6C9E,sCAAsC;AACtC,IAAM,4BAA4B,GAAG,cAAuB,OAAA,CAAC;IAC3D,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,CAAC;IACP,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,IAAI;IAEjB,wBAAwB;IACxB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,EAAE;IAET,yCAAyC;IACzC,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,KAAK;IACnB,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,IAAI;IACrB,eAAe,EAAE,IAAI;CACtB,CAAC,EA1B0D,CA0B1D,CAAC;AAEH,gBAAgB;AAChB,IAAM,YAAY,GAAqB;IACrC,KAAK,EAAE,EAAE;CACV,CAAC;AAuEF,mBAAmB;AACN,QAAA,gBAAgB,GAAG,IAAA,qBAAW,EAAC;IAC1C,IAAI,EAAE,aAAa;IACnB,YAAY,cAAA;IACZ,QAAQ,EAAE;QACR,kCAAkC;QAClC,cAAc,EAAE,UAAC,KAAK,EAAE,MAA4C;YAC1D,IAAA,MAAM,GAAK,MAAM,CAAC,OAAO,OAAnB,CAAoB;YAClC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzB,KAAK,CAAC,K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,UAAU,CAAC,OAAO;QAC3B,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,OAAO,EAAE,UAAU,CAAC,OAAO;KAC5B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAe,wBAAgB,CAAC,OAAO,CAAC"}
@@ -32,7 +32,7 @@ export interface SpaceListConfig {
32
32
  }
33
33
  export interface SpaceListFetchOptions {
34
34
  resetUnspecified?: boolean;
35
- immediate?: boolean;
35
+ fetchImmediately?: boolean;
36
36
  clearImmediately?: boolean;
37
37
  }
38
38
  export interface FilterUpdatePayload {
@@ -1,4 +1,4 @@
1
1
  export { default as useEntityList } from "./useEntityList";
2
2
  export type { UseEntityListProps, UseEntityListValues, } from "./useEntityList";
3
3
  export { default as useEntityListActions } from "./useEntityListActions";
4
- export type { EntityListFilters, EntityListFetchOptions, } from "../../store/slices/entityListsSlice";
4
+ export type { EntityListFilters, EntityListSort, EntityListFetchOptions, } from "../../store/slices/entityListsSlice";
@@ -1,4 +1,4 @@
1
- import { type EntityListFilters, type EntityListConfig, type EntityListFetchOptions } from "../../store/slices/entityListsSlice";
1
+ import { type EntityListFilters, type EntityListSort, type EntityListConfig, type EntityListFetchOptions } from "../../store/slices/entityListsSlice";
2
2
  import { Entity } from "../../interfaces/models/Entity";
3
3
  import { EntityListSortByOptions, SortDirection, SortType } from "../../interfaces/EntityListSortByOptions";
4
4
  import { LocationFilters } from "../../interfaces/entity-filters/LocationFilters";
@@ -30,7 +30,7 @@ export interface UseEntityListValues {
30
30
  attachmentsFilters: AttachmentsFilters | null;
31
31
  locationFilters: LocationFilters | null;
32
32
  metadataFilters: MetadataFilters | null;
33
- fetchEntities: (filters: Partial<EntityListFilters>, config?: EntityListConfig, options?: EntityListFetchOptions) => void;
33
+ fetchEntities: (filters: Partial<EntityListFilters>, sort?: Partial<EntityListSort>, config?: EntityListConfig, options?: EntityListFetchOptions) => void;
34
34
  loadMore: () => void;
35
35
  createEntity: (props: {
36
36
  foreignId?: string;