@lls/store 24.1.59-2ace2ca0 → 24.1.59-36292a9f
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/lib/index.js +58 -163
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -736,19 +736,20 @@ init_define_import_meta();
|
|
|
736
736
|
// src/selectors/school.ts
|
|
737
737
|
init_define_import_meta();
|
|
738
738
|
import { filterEntitiesSimpleFieldByValues } from "@lls/utils";
|
|
739
|
-
import
|
|
739
|
+
import _2 from "lodash/fp.js";
|
|
740
740
|
|
|
741
741
|
// src/selectors/crud.ts
|
|
742
742
|
init_define_import_meta();
|
|
743
743
|
import { createSearchSelector, makeGetAllEntities, makeGetEntityById } from "@lls/utils";
|
|
744
|
-
|
|
744
|
+
import _ from "lodash/fp.js";
|
|
745
|
+
var crud = (entityName, { search: search6 }) => {
|
|
745
746
|
const getElements = makeGetAllEntities(entityName);
|
|
746
747
|
const makeSearchElements = () => createSearchSelector(
|
|
747
748
|
getElements,
|
|
748
749
|
(_state, params) => params,
|
|
749
|
-
(elements, params) =>
|
|
750
|
+
(elements, params) => search6(params)(elements)
|
|
750
751
|
);
|
|
751
|
-
const methodName =
|
|
752
|
+
const methodName = _.capitalize(entityName);
|
|
752
753
|
const getElementById = makeGetEntityById(entityName);
|
|
753
754
|
const back = {
|
|
754
755
|
[`get${methodName}`]: getElements,
|
|
@@ -760,7 +761,7 @@ var crud = (entityName, { search: search10 }) => {
|
|
|
760
761
|
};
|
|
761
762
|
|
|
762
763
|
// src/selectors/school.ts
|
|
763
|
-
var search = ({ ids }) =>
|
|
764
|
+
var search = ({ ids }) => _2.flow(filterEntitiesSimpleFieldByValues("id", ids));
|
|
764
765
|
var { getSchools, getSchool, searchSchools, makeSearchSchools } = crud("schools", {
|
|
765
766
|
search
|
|
766
767
|
});
|
|
@@ -774,7 +775,7 @@ import {
|
|
|
774
775
|
filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues2,
|
|
775
776
|
makeGetEntityById as makeGetEntityById2
|
|
776
777
|
} from "@lls/utils";
|
|
777
|
-
import
|
|
778
|
+
import _3 from "lodash/fp.js";
|
|
778
779
|
var search2 = ({
|
|
779
780
|
ids,
|
|
780
781
|
levelIds,
|
|
@@ -791,27 +792,27 @@ var search2 = ({
|
|
|
791
792
|
publishers,
|
|
792
793
|
isRenewed,
|
|
793
794
|
isPrimary
|
|
794
|
-
}) =>
|
|
795
|
+
}) => _3.flow(
|
|
795
796
|
filterEntitiesSimpleFieldByValues2("id", ids),
|
|
796
797
|
filterEntitiesSimpleFieldByValues2("year", years),
|
|
797
798
|
filterEntitiesArrayFieldByValues("levels", levelIds),
|
|
798
799
|
filterEntitiesArrayFieldByValues("subjects", subjectIds),
|
|
799
|
-
filterEntitiesSimpleFieldByValues2("valid",
|
|
800
|
+
filterEntitiesSimpleFieldByValues2("valid", _3.isNil(isValid) ? void 0 : [isValid]),
|
|
800
801
|
filterEntitiesSimpleFieldByValues2("publisher", publishers),
|
|
801
|
-
filterEntitiesSimpleFieldByValues2("hasNewDesign",
|
|
802
|
-
filterEntitiesSimpleFieldByValues2("isWorkbook",
|
|
803
|
-
filterEntitiesSimpleFieldByValues2("isWorkplan",
|
|
804
|
-
filterEntitiesSimpleFieldByValues2("hasNoTeacherBook",
|
|
802
|
+
filterEntitiesSimpleFieldByValues2("hasNewDesign", _3.isNil(hasNewDesign) ? void 0 : [hasNewDesign]),
|
|
803
|
+
filterEntitiesSimpleFieldByValues2("isWorkbook", _3.isNil(isWorkbook) ? void 0 : [isWorkbook]),
|
|
804
|
+
filterEntitiesSimpleFieldByValues2("isWorkplan", _3.isNil(isWorkplan) ? void 0 : [isWorkplan]),
|
|
805
|
+
filterEntitiesSimpleFieldByValues2("hasNoTeacherBook", _3.isNil(hasNoTeacherBook) ? void 0 : [hasNoTeacherBook]),
|
|
805
806
|
filterEntitiesSimpleFieldByValues2("slug", slugs),
|
|
806
807
|
filterEntitiesSimpleFieldByValues2("uri", uris),
|
|
807
|
-
filterEntitiesSimpleFieldByValues2("isRenewed",
|
|
808
|
+
filterEntitiesSimpleFieldByValues2("isRenewed", _3.isNil(isRenewed) ? void 0 : [isRenewed]),
|
|
808
809
|
filterEntitiesSimpleFieldByValue("isPrimary", isPrimary),
|
|
809
|
-
|
|
810
|
+
_3.isFunction(sortByQuery) ? sortByQuery : sortByQuery ? _3.sortBy(sortByQuery) : _3.identity
|
|
810
811
|
);
|
|
811
812
|
var { getBooks, getBook, searchBooks, makeSearchBooks } = crud("books", {
|
|
812
813
|
search: search2
|
|
813
814
|
});
|
|
814
|
-
var makeSearchValidBooks = () => createSearchSelector2(makeSearchBooks(), (books) =>
|
|
815
|
+
var makeSearchValidBooks = () => createSearchSelector2(makeSearchBooks(), (books) => _3.filter({ valid: true, hasNewDesign: true }, books));
|
|
815
816
|
var searchValidBooks = makeSearchValidBooks();
|
|
816
817
|
var makeGetBook = () => makeGetEntityById2("books");
|
|
817
818
|
|
|
@@ -819,17 +820,17 @@ var makeGetBook = () => makeGetEntityById2("books");
|
|
|
819
820
|
init_define_import_meta();
|
|
820
821
|
var import_reselect = __toESM(require_lib(), 1);
|
|
821
822
|
import { filterEntitiesArrayFieldByValues as filterEntitiesArrayFieldByValues2, filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues3 } from "@lls/utils";
|
|
822
|
-
import
|
|
823
|
+
import _5 from "lodash/fp.js";
|
|
823
824
|
|
|
824
825
|
// src/selectors/auth.ts
|
|
825
826
|
init_define_import_meta();
|
|
826
|
-
import
|
|
827
|
-
var getAuth =
|
|
828
|
-
var getIsLogged =
|
|
829
|
-
var getToken =
|
|
827
|
+
import _4 from "lodash/fp.js";
|
|
828
|
+
var getAuth = _4.get("auth");
|
|
829
|
+
var getIsLogged = _4.flow(_4.get("auth.id"), _4.negate(_4.isNil));
|
|
830
|
+
var getToken = _4.get("auth.token");
|
|
830
831
|
|
|
831
832
|
// src/selectors/user.ts
|
|
832
|
-
var search3 = ({ ids, schoolIds }) =>
|
|
833
|
+
var search3 = ({ ids, schoolIds }) => _5.flow(filterEntitiesArrayFieldByValues2("schools", schoolIds), filterEntitiesSimpleFieldByValues3("id", ids));
|
|
833
834
|
var { getUsers, getUser, searchUsers, makeSearchUsers } = crud("users", {
|
|
834
835
|
search: search3
|
|
835
836
|
});
|
|
@@ -842,8 +843,8 @@ var getCurrentUser = (0, import_reselect.createSelector)(
|
|
|
842
843
|
// src/selectors/chapter.ts
|
|
843
844
|
init_define_import_meta();
|
|
844
845
|
import { filterEntitiesFieldExists, filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues4 } from "@lls/utils";
|
|
845
|
-
import
|
|
846
|
-
var search4 = ({ bookIds, ids, hasTeacherBook }) =>
|
|
846
|
+
import _6 from "lodash/fp.js";
|
|
847
|
+
var search4 = ({ bookIds, ids, hasTeacherBook }) => _6.flow(
|
|
847
848
|
filterEntitiesSimpleFieldByValues4("book", bookIds),
|
|
848
849
|
filterEntitiesSimpleFieldByValues4("id", ids),
|
|
849
850
|
filterEntitiesFieldExists("teacherBook", hasTeacherBook)
|
|
@@ -861,7 +862,7 @@ import {
|
|
|
861
862
|
makeGetAllEntities as makeGetAllEntities2,
|
|
862
863
|
makeGetEntityById as makeGetEntityById3
|
|
863
864
|
} from "@lls/utils";
|
|
864
|
-
import
|
|
865
|
+
import _7 from "lodash/fp.js";
|
|
865
866
|
var search5 = ({
|
|
866
867
|
ids,
|
|
867
868
|
chapterIds,
|
|
@@ -875,23 +876,23 @@ var search5 = ({
|
|
|
875
876
|
slugs,
|
|
876
877
|
isLearningAssessment,
|
|
877
878
|
isCreatedFromScratch
|
|
878
|
-
}) =>
|
|
879
|
+
}) => _7.flow(
|
|
879
880
|
filterEntitiesSimpleFieldByValues5("id", ids),
|
|
880
881
|
filterEntitiesSimpleFieldByValues5("chapter", chapterIds),
|
|
881
|
-
filterEntitiesSimpleFieldByValues5("valid",
|
|
882
|
-
filterEntitiesSimpleFieldByValues5("isOriginal",
|
|
883
|
-
filterEntitiesSimpleFieldByValues5("hasNewDesign",
|
|
882
|
+
filterEntitiesSimpleFieldByValues5("valid", _7.isNil(isValid) ? void 0 : [isValid]),
|
|
883
|
+
filterEntitiesSimpleFieldByValues5("isOriginal", _7.isNil(isOriginal) ? void 0 : [isOriginal]),
|
|
884
|
+
filterEntitiesSimpleFieldByValues5("hasNewDesign", _7.isNil(hasNewDesign) ? void 0 : [hasNewDesign]),
|
|
884
885
|
filterEntitiesSimpleFieldByValues5("slug", slugs),
|
|
885
886
|
filterEntitiesSimpleFieldByValues5("oldLesson", oldLessonIds),
|
|
886
887
|
filterEntitiesSimpleFieldByValues5(
|
|
887
888
|
"isLearningAssessment",
|
|
888
|
-
|
|
889
|
+
_7.isNil(isLearningAssessment) ? void 0 : [isLearningAssessment]
|
|
889
890
|
),
|
|
890
891
|
filterEntitiesSimpleFieldByValues5(
|
|
891
892
|
"isCreatedFromScratch",
|
|
892
|
-
|
|
893
|
+
_7.isNil(isCreatedFromScratch) ? void 0 : [isCreatedFromScratch]
|
|
893
894
|
),
|
|
894
|
-
filterEntitiesSimpleFieldByValues5("premium",
|
|
895
|
+
filterEntitiesSimpleFieldByValues5("premium", _7.isNil(premium) ? void 0 : [premium]),
|
|
895
896
|
filterEntitiesSimpleFieldByValues5("thematicName", thematicNames),
|
|
896
897
|
filterEntitiesSimpleFieldByValues5("book", bookIds)
|
|
897
898
|
);
|
|
@@ -924,7 +925,7 @@ var makeSearchModifiedPages = () => createSearchSelector3(
|
|
|
924
925
|
isCreatedFromScratch,
|
|
925
926
|
isParentCreatedFromScratch,
|
|
926
927
|
sharedGroups
|
|
927
|
-
}) =>
|
|
928
|
+
}) => _7.flow(
|
|
928
929
|
filterEntitiesSimpleFieldByValues5("parent", parentIds),
|
|
929
930
|
filterEntitiesSimpleFieldByValues5("chapter", chapterIds),
|
|
930
931
|
filterEntitiesSimpleFieldByValues5("book", bookIds),
|
|
@@ -934,108 +935,23 @@ var makeSearchModifiedPages = () => createSearchSelector3(
|
|
|
934
935
|
filterEntitiesArrayFieldByValues3("sharedGroups", sharedGroups),
|
|
935
936
|
filterEntitiesSimpleFieldByValues5("isOriginal", [false]),
|
|
936
937
|
filterEntitiesSimpleFieldByValues5("thematicName", thematicNames),
|
|
937
|
-
!
|
|
938
|
-
!
|
|
939
|
-
!
|
|
940
|
-
isParentCreatedFromScratch ?
|
|
941
|
-
(entity) =>
|
|
942
|
-
) :
|
|
943
|
-
updatedAfter ?
|
|
944
|
-
|
|
945
|
-
) :
|
|
938
|
+
!_7.isNil(isLearningAssessment) ? filterEntitiesSimpleFieldByValues5("isLearningAssessment", [isLearningAssessment]) : _7.identity,
|
|
939
|
+
!_7.isNil(isCreatedFromScratch) ? filterEntitiesSimpleFieldByValues5("isCreatedFromScratch", [isCreatedFromScratch]) : _7.identity,
|
|
940
|
+
!_7.isNil(isDraft) ? filterEntitiesSimpleFieldByValues5("isDraft", [isDraft]) : _7.identity,
|
|
941
|
+
isParentCreatedFromScratch ? _7.filter(
|
|
942
|
+
(entity) => _7.flow(_7.find({ id: entity?.originalPage }), _7.get("isCreatedFromScratch"))(pages)
|
|
943
|
+
) : _7.identity,
|
|
944
|
+
updatedAfter ? _7.filter(
|
|
945
|
+
_7.flow(_7.get("updatedAt"), (date) => new Date(date) - updatedAfter >= 0)
|
|
946
|
+
) : _7.identity
|
|
946
947
|
)(pages)
|
|
947
948
|
);
|
|
948
949
|
var searchModifiedPages = makeSearchModifiedPages();
|
|
949
950
|
|
|
950
|
-
// src/selectors/collection.ts
|
|
951
|
-
init_define_import_meta();
|
|
952
|
-
import _7 from "lodash/fp.js";
|
|
953
|
-
var search6 = (_params) => _7.identity;
|
|
954
|
-
var { getCollections, getCollection, searchCollections, makeSearchCollections } = crud("collections", {
|
|
955
|
-
search: search6
|
|
956
|
-
});
|
|
957
|
-
|
|
958
|
-
// src/selectors/communityProject.ts
|
|
959
|
-
init_define_import_meta();
|
|
960
|
-
import { filterEntitiesArrayFieldByValues as filterEntitiesArrayFieldByValues4, filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues6 } from "@lls/utils";
|
|
961
|
-
import _8 from "lodash/fp.js";
|
|
962
|
-
var search7 = ({
|
|
963
|
-
slugs,
|
|
964
|
-
isFeatured,
|
|
965
|
-
projectTypes
|
|
966
|
-
}) => _8.flow(
|
|
967
|
-
filterEntitiesSimpleFieldByValues6("slug", slugs),
|
|
968
|
-
filterEntitiesSimpleFieldByValues6("isFeatured", _8.isNil(isFeatured) ? void 0 : [isFeatured]),
|
|
969
|
-
filterEntitiesArrayFieldByValues4("projectTypes", projectTypes)
|
|
970
|
-
);
|
|
971
|
-
var { getCommunityProjects, getCommunityProject, searchCommunityProjects, makeSearchCommunityProjects } = crud(
|
|
972
|
-
"communityProjects",
|
|
973
|
-
{
|
|
974
|
-
search: search7
|
|
975
|
-
}
|
|
976
|
-
);
|
|
977
|
-
|
|
978
|
-
// src/selectors/contact.ts
|
|
979
|
-
init_define_import_meta();
|
|
980
|
-
import _9 from "lodash/fp.js";
|
|
981
|
-
var search8 = (_params) => _9.identity;
|
|
982
|
-
var { getContacts, getContact, searchContacts, makeSearchContacts } = crud("contacts", {
|
|
983
|
-
search: search8
|
|
984
|
-
});
|
|
985
|
-
|
|
986
|
-
// src/selectors/copyNotification.ts
|
|
987
|
-
init_define_import_meta();
|
|
988
|
-
import { createSearchSelector as createSearchSelector4, filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues7, makeGetAllEntities as makeGetAllEntities3 } from "@lls/utils";
|
|
989
|
-
import _10 from "lodash/fp.js";
|
|
990
|
-
var getCopyNotifications = makeGetAllEntities3("copyNotifications");
|
|
991
|
-
var makeSearchCopyNotifications = () => createSearchSelector4(
|
|
992
|
-
[getCurrentUser, getCopyNotifications, (_16, params) => params],
|
|
993
|
-
(currentUser, copyNotifications, { pageIds, read }) => _10.flow(
|
|
994
|
-
_10.get("copyNotifications"),
|
|
995
|
-
(ids) => _10.flow(
|
|
996
|
-
filterEntitiesSimpleFieldByValues7("id", ids),
|
|
997
|
-
filterEntitiesSimpleFieldByValues7("page", pageIds),
|
|
998
|
-
filterEntitiesSimpleFieldByValues7("read", _10.isNil(read) ? void 0 : [read])
|
|
999
|
-
)(copyNotifications)
|
|
1000
|
-
)(currentUser)
|
|
1001
|
-
);
|
|
1002
|
-
var searchCopyNotifications = makeSearchCopyNotifications();
|
|
1003
|
-
|
|
1004
|
-
// src/selectors/drawerNotification.ts
|
|
1005
|
-
init_define_import_meta();
|
|
1006
|
-
import { createSearchSelector as createSearchSelector5, filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues8, makeGetAllEntities as makeGetAllEntities4 } from "@lls/utils";
|
|
1007
|
-
import _11 from "lodash/fp.js";
|
|
1008
|
-
var getDrawerNotifications = makeGetAllEntities4("drawerNotifications");
|
|
1009
|
-
var makeSearchDrawerNotifications = () => createSearchSelector5(
|
|
1010
|
-
[getCurrentUser, getDrawerNotifications, (_16, params) => params],
|
|
1011
|
-
(currentUser, drawerNotifications, { read, pageIds }) => _11.flow(
|
|
1012
|
-
_11.get("drawerNotifications"),
|
|
1013
|
-
(ids) => _11.flow(
|
|
1014
|
-
filterEntitiesSimpleFieldByValues8("id", ids),
|
|
1015
|
-
filterEntitiesSimpleFieldByValues8("read", _11.isNil(read) ? void 0 : [read]),
|
|
1016
|
-
filterEntitiesSimpleFieldByValues8("page", pageIds)
|
|
1017
|
-
)(drawerNotifications)
|
|
1018
|
-
)(currentUser)
|
|
1019
|
-
);
|
|
1020
|
-
var searchDrawerNotifications = makeSearchDrawerNotifications();
|
|
1021
|
-
|
|
1022
|
-
// src/selectors/faq.ts
|
|
1023
|
-
init_define_import_meta();
|
|
1024
|
-
import { makeGetAllEntities as makeGetAllEntities5 } from "@lls/utils";
|
|
1025
|
-
var getFaqs = makeGetAllEntities5("faq");
|
|
1026
|
-
|
|
1027
|
-
// src/selectors/garDivision.ts
|
|
1028
|
-
init_define_import_meta();
|
|
1029
|
-
import _12 from "lodash/fp.js";
|
|
1030
|
-
var search9 = (_params) => _12.identity;
|
|
1031
|
-
var { getGarDivisions, getGarDivision, searchGarDivisions, makeSearchGarDivisions } = crud("garDivisions", {
|
|
1032
|
-
search: search9
|
|
1033
|
-
});
|
|
1034
|
-
|
|
1035
951
|
// src/reducers/entities.ts
|
|
1036
952
|
init_define_import_meta();
|
|
1037
953
|
import { makeReducer } from "@lls/utils";
|
|
1038
|
-
import
|
|
954
|
+
import _8 from "lodash/fp.js";
|
|
1039
955
|
|
|
1040
956
|
// src/actions/index.ts
|
|
1041
957
|
init_define_import_meta();
|
|
@@ -1058,23 +974,23 @@ var resetAuth = makeActionCreator(actionTypes.RESET_AUTH);
|
|
|
1058
974
|
// src/reducers/entities.ts
|
|
1059
975
|
var deleteEntityReducer = (state, payload) => {
|
|
1060
976
|
const { path } = payload;
|
|
1061
|
-
return
|
|
977
|
+
return _8.omit(path, state);
|
|
1062
978
|
};
|
|
1063
979
|
var updateEntityReducer = (state, payload) => {
|
|
1064
980
|
const { path, entity } = payload;
|
|
1065
|
-
const currentEntity =
|
|
1066
|
-
return
|
|
981
|
+
const currentEntity = _8.get(path, state);
|
|
982
|
+
return _8.set(path, _8.merge(currentEntity, entity), state);
|
|
1067
983
|
};
|
|
1068
984
|
var setEntityReducer = (state, payload) => {
|
|
1069
985
|
const { path, entity } = payload;
|
|
1070
|
-
return
|
|
986
|
+
return _8.set(path, entity, state);
|
|
1071
987
|
};
|
|
1072
988
|
var shallowAssign = (old, next, transform) => {
|
|
1073
989
|
let updated = false;
|
|
1074
|
-
const merged =
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
if (
|
|
990
|
+
const merged = _8.flow(
|
|
991
|
+
_8.toPairs,
|
|
992
|
+
_8.reduce((memo, [key, val]) => {
|
|
993
|
+
if (_8.isEmpty(val)) return memo;
|
|
1078
994
|
if (!old[key]) {
|
|
1079
995
|
updated = true;
|
|
1080
996
|
memo[key] = val;
|
|
@@ -1087,7 +1003,7 @@ var shallowAssign = (old, next, transform) => {
|
|
|
1087
1003
|
return memo;
|
|
1088
1004
|
}
|
|
1089
1005
|
return memo;
|
|
1090
|
-
},
|
|
1006
|
+
}, _8.clone(old))
|
|
1091
1007
|
)(next);
|
|
1092
1008
|
return updated ? merged : old;
|
|
1093
1009
|
};
|
|
@@ -1096,7 +1012,7 @@ var setEntitiesReducer = (state, payload) => {
|
|
|
1096
1012
|
return shallowAssign(
|
|
1097
1013
|
entityKind,
|
|
1098
1014
|
nextEntityKind,
|
|
1099
|
-
(oldEntity, nextEntity) =>
|
|
1015
|
+
(oldEntity, nextEntity) => _8.isEqual(oldEntity, nextEntity) ? oldEntity : _8.assign(oldEntity, nextEntity)
|
|
1100
1016
|
);
|
|
1101
1017
|
});
|
|
1102
1018
|
};
|
|
@@ -1114,7 +1030,7 @@ var entities_default = entities;
|
|
|
1114
1030
|
// src/reducers/auth.ts
|
|
1115
1031
|
init_define_import_meta();
|
|
1116
1032
|
import { makeReducer as makeReducer2 } from "@lls/utils";
|
|
1117
|
-
import
|
|
1033
|
+
import _9 from "lodash/fp.js";
|
|
1118
1034
|
var initialState = {
|
|
1119
1035
|
id: void 0,
|
|
1120
1036
|
role: null,
|
|
@@ -1127,15 +1043,15 @@ var initialState = {
|
|
|
1127
1043
|
llsUserId: null
|
|
1128
1044
|
};
|
|
1129
1045
|
var auth = makeReducer2(initialState, {
|
|
1130
|
-
[actionTypes.SET_AUTH]:
|
|
1131
|
-
[actionTypes.RESET_AUTH]:
|
|
1046
|
+
[actionTypes.SET_AUTH]: _9.assign,
|
|
1047
|
+
[actionTypes.RESET_AUTH]: _9.constant(initialState)
|
|
1132
1048
|
});
|
|
1133
1049
|
var auth_default = auth;
|
|
1134
1050
|
|
|
1135
1051
|
// src/schema/index.ts
|
|
1136
1052
|
init_define_import_meta();
|
|
1137
1053
|
var import_normalizr = __toESM(require_normalizr(), 1);
|
|
1138
|
-
import
|
|
1054
|
+
import _10 from "lodash/fp.js";
|
|
1139
1055
|
var document = new import_normalizr.schema.Entity("documents", {}, { idAttribute: "resourceId" });
|
|
1140
1056
|
var subject = new import_normalizr.schema.Entity("subjects");
|
|
1141
1057
|
var level = new import_normalizr.schema.Entity("levels");
|
|
@@ -1322,7 +1238,7 @@ var querySchema = {
|
|
|
1322
1238
|
}
|
|
1323
1239
|
}
|
|
1324
1240
|
};
|
|
1325
|
-
var normalizeData =
|
|
1241
|
+
var normalizeData = _10.flow((data) => (0, import_normalizr.normalize)(data, querySchema));
|
|
1326
1242
|
export {
|
|
1327
1243
|
auth_default as authReducer,
|
|
1328
1244
|
entities_default as entitiesReducer,
|
|
@@ -1330,18 +1246,9 @@ export {
|
|
|
1330
1246
|
getBooks,
|
|
1331
1247
|
getChapter,
|
|
1332
1248
|
getChapters,
|
|
1333
|
-
getCollection,
|
|
1334
|
-
getCollections,
|
|
1335
|
-
getCommunityProject,
|
|
1336
|
-
getCommunityProjects,
|
|
1337
|
-
getContact,
|
|
1338
|
-
getContacts,
|
|
1339
1249
|
getCurrentUser,
|
|
1340
1250
|
getDraftPage,
|
|
1341
1251
|
getDraftPages,
|
|
1342
|
-
getFaqs,
|
|
1343
|
-
getGarDivision,
|
|
1344
|
-
getGarDivisions,
|
|
1345
1252
|
getPage,
|
|
1346
1253
|
getPages,
|
|
1347
1254
|
getSchool,
|
|
@@ -1352,13 +1259,7 @@ export {
|
|
|
1352
1259
|
makeGetDraftPage,
|
|
1353
1260
|
makeSearchBooks,
|
|
1354
1261
|
makeSearchChapters,
|
|
1355
|
-
makeSearchCollections,
|
|
1356
|
-
makeSearchCommunityProjects,
|
|
1357
|
-
makeSearchContacts,
|
|
1358
|
-
makeSearchCopyNotifications,
|
|
1359
1262
|
makeSearchDraftPages,
|
|
1360
|
-
makeSearchDrawerNotifications,
|
|
1361
|
-
makeSearchGarDivisions,
|
|
1362
1263
|
makeSearchModifiedPages,
|
|
1363
1264
|
makeSearchPages,
|
|
1364
1265
|
makeSearchSchools,
|
|
@@ -1368,13 +1269,7 @@ export {
|
|
|
1368
1269
|
querySchema,
|
|
1369
1270
|
searchBooks,
|
|
1370
1271
|
searchChapters,
|
|
1371
|
-
searchCollections,
|
|
1372
|
-
searchCommunityProjects,
|
|
1373
|
-
searchContacts,
|
|
1374
|
-
searchCopyNotifications,
|
|
1375
1272
|
searchDraftPages,
|
|
1376
|
-
searchDrawerNotifications,
|
|
1377
|
-
searchGarDivisions,
|
|
1378
1273
|
searchModifiedPages,
|
|
1379
1274
|
searchPages,
|
|
1380
1275
|
searchSchools,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@lls/store",
|
|
3
3
|
"description": "model de donnée et selecteurs",
|
|
4
4
|
"homepage": "https://github.com/lelivrescolaire/monorepo/tree/dev/libs/store",
|
|
5
|
-
"version": "24.1.59-
|
|
5
|
+
"version": "24.1.59-36292a9f",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./lib/builttypes/store/src/index.d.ts",
|
|
8
8
|
"exports": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"vite": "5.3.3",
|
|
42
42
|
"vite-tsconfig-paths": "4.3.2",
|
|
43
43
|
"vitest": "2.0.0",
|
|
44
|
-
"@lls/utils": "24.1.59-
|
|
45
|
-
"@lls/vitescripts": "24.1.59-
|
|
44
|
+
"@lls/utils": "24.1.59-36292a9f",
|
|
45
|
+
"@lls/vitescripts": "24.1.59-36292a9f"
|
|
46
46
|
},
|
|
47
47
|
"license": "ISC",
|
|
48
48
|
"dependencies": {
|