@lls/store 24.1.59-65ad9aaa → 24.1.59-7f7e47b5
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 +216 -41
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -736,20 +736,19 @@ 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 _ 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
|
-
|
|
745
|
-
var crud = (entityName, { search: search5 }) => {
|
|
744
|
+
var crud = (entityName, { search: search9 }) => {
|
|
746
745
|
const getElements = makeGetAllEntities(entityName);
|
|
747
746
|
const makeSearchElements = () => createSearchSelector(
|
|
748
747
|
getElements,
|
|
749
748
|
(_state, params) => params,
|
|
750
|
-
(elements, params) =>
|
|
749
|
+
(elements, params) => search9(params)(elements)
|
|
751
750
|
);
|
|
752
|
-
const methodName =
|
|
751
|
+
const methodName = `${entityName.charAt(0).toUpperCase()}${entityName.slice(1)}`;
|
|
753
752
|
const getElementById = makeGetEntityById(entityName);
|
|
754
753
|
const back = {
|
|
755
754
|
[`get${methodName}`]: getElements,
|
|
@@ -761,7 +760,7 @@ var crud = (entityName, { search: search5 }) => {
|
|
|
761
760
|
};
|
|
762
761
|
|
|
763
762
|
// src/selectors/school.ts
|
|
764
|
-
var search = ({ ids }) =>
|
|
763
|
+
var search = ({ ids }) => _.flow(filterEntitiesSimpleFieldByValues("id", ids));
|
|
765
764
|
var { getSchools, getSchool, searchSchools, makeSearchSchools } = crud("schools", {
|
|
766
765
|
search
|
|
767
766
|
});
|
|
@@ -775,7 +774,7 @@ import {
|
|
|
775
774
|
filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues2,
|
|
776
775
|
makeGetEntityById as makeGetEntityById2
|
|
777
776
|
} from "@lls/utils";
|
|
778
|
-
import
|
|
777
|
+
import _2 from "lodash/fp.js";
|
|
779
778
|
var search2 = ({
|
|
780
779
|
ids,
|
|
781
780
|
levelIds,
|
|
@@ -792,27 +791,27 @@ var search2 = ({
|
|
|
792
791
|
publishers,
|
|
793
792
|
isRenewed,
|
|
794
793
|
isPrimary
|
|
795
|
-
}) =>
|
|
794
|
+
}) => _2.flow(
|
|
796
795
|
filterEntitiesSimpleFieldByValues2("id", ids),
|
|
797
796
|
filterEntitiesSimpleFieldByValues2("year", years),
|
|
798
797
|
filterEntitiesArrayFieldByValues("levels", levelIds),
|
|
799
798
|
filterEntitiesArrayFieldByValues("subjects", subjectIds),
|
|
800
|
-
filterEntitiesSimpleFieldByValues2("valid",
|
|
799
|
+
filterEntitiesSimpleFieldByValues2("valid", _2.isNil(isValid) ? void 0 : [isValid]),
|
|
801
800
|
filterEntitiesSimpleFieldByValues2("publisher", publishers),
|
|
802
|
-
filterEntitiesSimpleFieldByValues2("hasNewDesign",
|
|
803
|
-
filterEntitiesSimpleFieldByValues2("isWorkbook",
|
|
804
|
-
filterEntitiesSimpleFieldByValues2("isWorkplan",
|
|
805
|
-
filterEntitiesSimpleFieldByValues2("hasNoTeacherBook",
|
|
801
|
+
filterEntitiesSimpleFieldByValues2("hasNewDesign", _2.isNil(hasNewDesign) ? void 0 : [hasNewDesign]),
|
|
802
|
+
filterEntitiesSimpleFieldByValues2("isWorkbook", _2.isNil(isWorkbook) ? void 0 : [isWorkbook]),
|
|
803
|
+
filterEntitiesSimpleFieldByValues2("isWorkplan", _2.isNil(isWorkplan) ? void 0 : [isWorkplan]),
|
|
804
|
+
filterEntitiesSimpleFieldByValues2("hasNoTeacherBook", _2.isNil(hasNoTeacherBook) ? void 0 : [hasNoTeacherBook]),
|
|
806
805
|
filterEntitiesSimpleFieldByValues2("slug", slugs),
|
|
807
806
|
filterEntitiesSimpleFieldByValues2("uri", uris),
|
|
808
|
-
filterEntitiesSimpleFieldByValues2("isRenewed",
|
|
807
|
+
filterEntitiesSimpleFieldByValues2("isRenewed", _2.isNil(isRenewed) ? void 0 : [isRenewed]),
|
|
809
808
|
filterEntitiesSimpleFieldByValue("isPrimary", isPrimary),
|
|
810
|
-
|
|
809
|
+
_2.isFunction(sortByQuery) ? sortByQuery : sortByQuery ? _2.sortBy(sortByQuery) : _2.identity
|
|
811
810
|
);
|
|
812
811
|
var { getBooks, getBook, searchBooks, makeSearchBooks } = crud("books", {
|
|
813
812
|
search: search2
|
|
814
813
|
});
|
|
815
|
-
var makeSearchValidBooks = () => createSearchSelector2(makeSearchBooks(), (books) =>
|
|
814
|
+
var makeSearchValidBooks = () => createSearchSelector2(makeSearchBooks(), (books) => _2.filter({ valid: true, hasNewDesign: true }, books));
|
|
816
815
|
var searchValidBooks = makeSearchValidBooks();
|
|
817
816
|
var makeGetBook = () => makeGetEntityById2("books");
|
|
818
817
|
|
|
@@ -820,17 +819,17 @@ var makeGetBook = () => makeGetEntityById2("books");
|
|
|
820
819
|
init_define_import_meta();
|
|
821
820
|
var import_reselect = __toESM(require_lib(), 1);
|
|
822
821
|
import { filterEntitiesArrayFieldByValues as filterEntitiesArrayFieldByValues2, filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues3 } from "@lls/utils";
|
|
823
|
-
import
|
|
822
|
+
import _4 from "lodash/fp.js";
|
|
824
823
|
|
|
825
824
|
// src/selectors/auth.ts
|
|
826
825
|
init_define_import_meta();
|
|
827
|
-
import
|
|
828
|
-
var getAuth =
|
|
829
|
-
var getIsLogged =
|
|
830
|
-
var getToken =
|
|
826
|
+
import _3 from "lodash/fp.js";
|
|
827
|
+
var getAuth = _3.get("auth");
|
|
828
|
+
var getIsLogged = _3.flow(_3.get("auth.id"), _3.negate(_3.isNil));
|
|
829
|
+
var getToken = _3.get("auth.token");
|
|
831
830
|
|
|
832
831
|
// src/selectors/user.ts
|
|
833
|
-
var search3 = ({ ids, schoolIds }) =>
|
|
832
|
+
var search3 = ({ ids, schoolIds }) => _4.flow(filterEntitiesArrayFieldByValues2("schools", schoolIds), filterEntitiesSimpleFieldByValues3("id", ids));
|
|
834
833
|
var { getUsers, getUser, searchUsers, makeSearchUsers } = crud("users", {
|
|
835
834
|
search: search3
|
|
836
835
|
});
|
|
@@ -843,8 +842,8 @@ var getCurrentUser = (0, import_reselect.createSelector)(
|
|
|
843
842
|
// src/selectors/chapter.ts
|
|
844
843
|
init_define_import_meta();
|
|
845
844
|
import { filterEntitiesFieldExists, filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues4 } from "@lls/utils";
|
|
846
|
-
import
|
|
847
|
-
var search4 = ({ bookIds, ids, hasTeacherBook }) =>
|
|
845
|
+
import _5 from "lodash/fp.js";
|
|
846
|
+
var search4 = ({ bookIds, ids, hasTeacherBook }) => _5.flow(
|
|
848
847
|
filterEntitiesSimpleFieldByValues4("book", bookIds),
|
|
849
848
|
filterEntitiesSimpleFieldByValues4("id", ids),
|
|
850
849
|
filterEntitiesFieldExists("teacherBook", hasTeacherBook)
|
|
@@ -853,10 +852,159 @@ var { getChapters, getChapter, searchChapters, makeSearchChapters } = crud("chap
|
|
|
853
852
|
search: search4
|
|
854
853
|
});
|
|
855
854
|
|
|
855
|
+
// src/selectors/page.ts
|
|
856
|
+
init_define_import_meta();
|
|
857
|
+
import {
|
|
858
|
+
createSearchSelector as createSearchSelector3,
|
|
859
|
+
filterEntitiesArrayFieldByValues as filterEntitiesArrayFieldByValues3,
|
|
860
|
+
filterEntitiesSimpleFieldByValues as filterEntitiesSimpleFieldByValues5,
|
|
861
|
+
makeGetAllEntities as makeGetAllEntities2,
|
|
862
|
+
makeGetEntityById as makeGetEntityById3
|
|
863
|
+
} from "@lls/utils";
|
|
864
|
+
import _6 from "lodash/fp.js";
|
|
865
|
+
var search5 = ({
|
|
866
|
+
ids,
|
|
867
|
+
chapterIds,
|
|
868
|
+
isValid,
|
|
869
|
+
oldLessonIds,
|
|
870
|
+
premium,
|
|
871
|
+
thematicNames,
|
|
872
|
+
bookIds,
|
|
873
|
+
isOriginal,
|
|
874
|
+
hasNewDesign,
|
|
875
|
+
slugs,
|
|
876
|
+
isLearningAssessment,
|
|
877
|
+
isCreatedFromScratch
|
|
878
|
+
}) => _6.flow(
|
|
879
|
+
filterEntitiesSimpleFieldByValues5("id", ids),
|
|
880
|
+
filterEntitiesSimpleFieldByValues5("chapter", chapterIds),
|
|
881
|
+
filterEntitiesSimpleFieldByValues5("valid", _6.isNil(isValid) ? void 0 : [isValid]),
|
|
882
|
+
filterEntitiesSimpleFieldByValues5("isOriginal", _6.isNil(isOriginal) ? void 0 : [isOriginal]),
|
|
883
|
+
filterEntitiesSimpleFieldByValues5("hasNewDesign", _6.isNil(hasNewDesign) ? void 0 : [hasNewDesign]),
|
|
884
|
+
filterEntitiesSimpleFieldByValues5("slug", slugs),
|
|
885
|
+
filterEntitiesSimpleFieldByValues5("oldLesson", oldLessonIds),
|
|
886
|
+
filterEntitiesSimpleFieldByValues5(
|
|
887
|
+
"isLearningAssessment",
|
|
888
|
+
_6.isNil(isLearningAssessment) ? void 0 : [isLearningAssessment]
|
|
889
|
+
),
|
|
890
|
+
filterEntitiesSimpleFieldByValues5(
|
|
891
|
+
"isCreatedFromScratch",
|
|
892
|
+
_6.isNil(isCreatedFromScratch) ? void 0 : [isCreatedFromScratch]
|
|
893
|
+
),
|
|
894
|
+
filterEntitiesSimpleFieldByValues5("premium", _6.isNil(premium) ? void 0 : [premium]),
|
|
895
|
+
filterEntitiesSimpleFieldByValues5("thematicName", thematicNames),
|
|
896
|
+
filterEntitiesSimpleFieldByValues5("book", bookIds)
|
|
897
|
+
);
|
|
898
|
+
var { getPages, getPage, searchPages, makeSearchPages } = crud("pages", {
|
|
899
|
+
search: search5
|
|
900
|
+
});
|
|
901
|
+
var getDraftPages = makeGetAllEntities2("drafts");
|
|
902
|
+
var makeGetDraftPage = () => makeGetEntityById3("drafts");
|
|
903
|
+
var getDraftPage = makeGetDraftPage();
|
|
904
|
+
var makeSearchDraftPages = () => createSearchSelector3(
|
|
905
|
+
getDraftPages,
|
|
906
|
+
(_state, params) => params,
|
|
907
|
+
(pages, params) => search5(params)(pages)
|
|
908
|
+
);
|
|
909
|
+
var searchDraftPages = makeSearchDraftPages();
|
|
910
|
+
var makeSearchModifiedPages = () => createSearchSelector3(
|
|
911
|
+
getPages,
|
|
912
|
+
(_state, params) => params,
|
|
913
|
+
(pages, {
|
|
914
|
+
chapterIds,
|
|
915
|
+
userIds,
|
|
916
|
+
originalPageIds,
|
|
917
|
+
parentIds,
|
|
918
|
+
bookIds,
|
|
919
|
+
sharedUserIds,
|
|
920
|
+
updatedAfter,
|
|
921
|
+
isLearningAssessment,
|
|
922
|
+
thematicNames,
|
|
923
|
+
isDraft,
|
|
924
|
+
isCreatedFromScratch,
|
|
925
|
+
isParentCreatedFromScratch,
|
|
926
|
+
sharedGroups
|
|
927
|
+
}) => _6.flow(
|
|
928
|
+
filterEntitiesSimpleFieldByValues5("parent", parentIds),
|
|
929
|
+
filterEntitiesSimpleFieldByValues5("chapter", chapterIds),
|
|
930
|
+
filterEntitiesSimpleFieldByValues5("book", bookIds),
|
|
931
|
+
filterEntitiesSimpleFieldByValues5("user", userIds),
|
|
932
|
+
filterEntitiesSimpleFieldByValues5("originalPage", originalPageIds),
|
|
933
|
+
filterEntitiesArrayFieldByValues3("sharedUsers", sharedUserIds),
|
|
934
|
+
filterEntitiesArrayFieldByValues3("sharedGroups", sharedGroups),
|
|
935
|
+
filterEntitiesSimpleFieldByValues5("isOriginal", [false]),
|
|
936
|
+
filterEntitiesSimpleFieldByValues5("thematicName", thematicNames),
|
|
937
|
+
!_6.isNil(isLearningAssessment) ? filterEntitiesSimpleFieldByValues5("isLearningAssessment", [isLearningAssessment]) : _6.identity,
|
|
938
|
+
!_6.isNil(isCreatedFromScratch) ? filterEntitiesSimpleFieldByValues5("isCreatedFromScratch", [isCreatedFromScratch]) : _6.identity,
|
|
939
|
+
!_6.isNil(isDraft) ? filterEntitiesSimpleFieldByValues5("isDraft", [isDraft]) : _6.identity,
|
|
940
|
+
isParentCreatedFromScratch ? _6.filter(
|
|
941
|
+
(entity) => _6.flow(_6.find({ id: entity?.originalPage }), _6.get("isCreatedFromScratch"))(pages)
|
|
942
|
+
) : _6.identity,
|
|
943
|
+
updatedAfter ? _6.filter(
|
|
944
|
+
_6.flow(_6.get("updatedAt"), (date) => new Date(date) - updatedAfter >= 0)
|
|
945
|
+
) : _6.identity
|
|
946
|
+
)(pages)
|
|
947
|
+
);
|
|
948
|
+
var searchModifiedPages = makeSearchModifiedPages();
|
|
949
|
+
|
|
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, (_14, 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
|
+
|
|
856
1004
|
// src/reducers/entities.ts
|
|
857
1005
|
init_define_import_meta();
|
|
858
1006
|
import { makeReducer } from "@lls/utils";
|
|
859
|
-
import
|
|
1007
|
+
import _11 from "lodash/fp.js";
|
|
860
1008
|
|
|
861
1009
|
// src/actions/index.ts
|
|
862
1010
|
init_define_import_meta();
|
|
@@ -879,23 +1027,23 @@ var resetAuth = makeActionCreator(actionTypes.RESET_AUTH);
|
|
|
879
1027
|
// src/reducers/entities.ts
|
|
880
1028
|
var deleteEntityReducer = (state, payload) => {
|
|
881
1029
|
const { path } = payload;
|
|
882
|
-
return
|
|
1030
|
+
return _11.omit(path, state);
|
|
883
1031
|
};
|
|
884
1032
|
var updateEntityReducer = (state, payload) => {
|
|
885
1033
|
const { path, entity } = payload;
|
|
886
|
-
const currentEntity =
|
|
887
|
-
return
|
|
1034
|
+
const currentEntity = _11.get(path, state);
|
|
1035
|
+
return _11.set(path, _11.merge(currentEntity, entity), state);
|
|
888
1036
|
};
|
|
889
1037
|
var setEntityReducer = (state, payload) => {
|
|
890
1038
|
const { path, entity } = payload;
|
|
891
|
-
return
|
|
1039
|
+
return _11.set(path, entity, state);
|
|
892
1040
|
};
|
|
893
1041
|
var shallowAssign = (old, next, transform) => {
|
|
894
1042
|
let updated = false;
|
|
895
|
-
const merged =
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
if (
|
|
1043
|
+
const merged = _11.flow(
|
|
1044
|
+
_11.toPairs,
|
|
1045
|
+
_11.reduce((memo, [key, val]) => {
|
|
1046
|
+
if (_11.isEmpty(val)) return memo;
|
|
899
1047
|
if (!old[key]) {
|
|
900
1048
|
updated = true;
|
|
901
1049
|
memo[key] = val;
|
|
@@ -908,7 +1056,7 @@ var shallowAssign = (old, next, transform) => {
|
|
|
908
1056
|
return memo;
|
|
909
1057
|
}
|
|
910
1058
|
return memo;
|
|
911
|
-
},
|
|
1059
|
+
}, _11.clone(old))
|
|
912
1060
|
)(next);
|
|
913
1061
|
return updated ? merged : old;
|
|
914
1062
|
};
|
|
@@ -917,7 +1065,7 @@ var setEntitiesReducer = (state, payload) => {
|
|
|
917
1065
|
return shallowAssign(
|
|
918
1066
|
entityKind,
|
|
919
1067
|
nextEntityKind,
|
|
920
|
-
(oldEntity, nextEntity) =>
|
|
1068
|
+
(oldEntity, nextEntity) => _11.isEqual(oldEntity, nextEntity) ? oldEntity : _11.assign(oldEntity, nextEntity)
|
|
921
1069
|
);
|
|
922
1070
|
});
|
|
923
1071
|
};
|
|
@@ -935,7 +1083,7 @@ var entities_default = entities;
|
|
|
935
1083
|
// src/reducers/auth.ts
|
|
936
1084
|
init_define_import_meta();
|
|
937
1085
|
import { makeReducer as makeReducer2 } from "@lls/utils";
|
|
938
|
-
import
|
|
1086
|
+
import _12 from "lodash/fp.js";
|
|
939
1087
|
var initialState = {
|
|
940
1088
|
id: void 0,
|
|
941
1089
|
role: null,
|
|
@@ -948,15 +1096,15 @@ var initialState = {
|
|
|
948
1096
|
llsUserId: null
|
|
949
1097
|
};
|
|
950
1098
|
var auth = makeReducer2(initialState, {
|
|
951
|
-
[actionTypes.SET_AUTH]:
|
|
952
|
-
[actionTypes.RESET_AUTH]:
|
|
1099
|
+
[actionTypes.SET_AUTH]: _12.assign,
|
|
1100
|
+
[actionTypes.RESET_AUTH]: _12.constant(initialState)
|
|
953
1101
|
});
|
|
954
1102
|
var auth_default = auth;
|
|
955
1103
|
|
|
956
1104
|
// src/schema/index.ts
|
|
957
1105
|
init_define_import_meta();
|
|
958
1106
|
var import_normalizr = __toESM(require_normalizr(), 1);
|
|
959
|
-
import
|
|
1107
|
+
import _13 from "lodash/fp.js";
|
|
960
1108
|
var document = new import_normalizr.schema.Entity("documents", {}, { idAttribute: "resourceId" });
|
|
961
1109
|
var subject = new import_normalizr.schema.Entity("subjects");
|
|
962
1110
|
var level = new import_normalizr.schema.Entity("levels");
|
|
@@ -971,6 +1119,7 @@ var teacher = new import_normalizr.schema.Entity("teachers");
|
|
|
971
1119
|
var faq = new import_normalizr.schema.Entity("faq");
|
|
972
1120
|
var product = new import_normalizr.schema.Entity("products");
|
|
973
1121
|
var communityProjects = new import_normalizr.schema.Entity("communityProjects");
|
|
1122
|
+
var builderIo = new import_normalizr.schema.Entity("builderIos");
|
|
974
1123
|
var grammarRule = new import_normalizr.schema.Entity("grammarRules", {}, { idAttribute: "objectID" });
|
|
975
1124
|
var mainNotification = new import_normalizr.schema.Entity("mainNotifications");
|
|
976
1125
|
var explorerResult = new import_normalizr.schema.Entity("explorerResults", {}, { idAttribute: "resourceId" });
|
|
@@ -1133,7 +1282,8 @@ var querySchema = {
|
|
|
1133
1282
|
addLikeFaq: faq,
|
|
1134
1283
|
communityProjects: [communityProjects],
|
|
1135
1284
|
createAnalytics: analytic,
|
|
1136
|
-
faq: [faq]
|
|
1285
|
+
faq: [faq],
|
|
1286
|
+
builderIos: [builderIo]
|
|
1137
1287
|
},
|
|
1138
1288
|
static: {
|
|
1139
1289
|
projetVoltaire: {
|
|
@@ -1141,7 +1291,7 @@ var querySchema = {
|
|
|
1141
1291
|
}
|
|
1142
1292
|
}
|
|
1143
1293
|
};
|
|
1144
|
-
var normalizeData =
|
|
1294
|
+
var normalizeData = _13.flow((data) => (0, import_normalizr.normalize)(data, querySchema));
|
|
1145
1295
|
export {
|
|
1146
1296
|
auth_default as authReducer,
|
|
1147
1297
|
entities_default as entitiesReducer,
|
|
@@ -1149,14 +1299,32 @@ export {
|
|
|
1149
1299
|
getBooks,
|
|
1150
1300
|
getChapter,
|
|
1151
1301
|
getChapters,
|
|
1302
|
+
getCollection,
|
|
1303
|
+
getCollections,
|
|
1304
|
+
getCommunityProject,
|
|
1305
|
+
getCommunityProjects,
|
|
1306
|
+
getContact,
|
|
1307
|
+
getContacts,
|
|
1152
1308
|
getCurrentUser,
|
|
1309
|
+
getDraftPage,
|
|
1310
|
+
getDraftPages,
|
|
1311
|
+
getPage,
|
|
1312
|
+
getPages,
|
|
1153
1313
|
getSchool,
|
|
1154
1314
|
getSchools,
|
|
1155
1315
|
getUser,
|
|
1156
1316
|
getUsers,
|
|
1157
1317
|
makeGetBook,
|
|
1318
|
+
makeGetDraftPage,
|
|
1158
1319
|
makeSearchBooks,
|
|
1159
1320
|
makeSearchChapters,
|
|
1321
|
+
makeSearchCollections,
|
|
1322
|
+
makeSearchCommunityProjects,
|
|
1323
|
+
makeSearchContacts,
|
|
1324
|
+
makeSearchCopyNotifications,
|
|
1325
|
+
makeSearchDraftPages,
|
|
1326
|
+
makeSearchModifiedPages,
|
|
1327
|
+
makeSearchPages,
|
|
1160
1328
|
makeSearchSchools,
|
|
1161
1329
|
makeSearchUsers,
|
|
1162
1330
|
makeSearchValidBooks,
|
|
@@ -1164,6 +1332,13 @@ export {
|
|
|
1164
1332
|
querySchema,
|
|
1165
1333
|
searchBooks,
|
|
1166
1334
|
searchChapters,
|
|
1335
|
+
searchCollections,
|
|
1336
|
+
searchCommunityProjects,
|
|
1337
|
+
searchContacts,
|
|
1338
|
+
searchCopyNotifications,
|
|
1339
|
+
searchDraftPages,
|
|
1340
|
+
searchModifiedPages,
|
|
1341
|
+
searchPages,
|
|
1167
1342
|
searchSchools,
|
|
1168
1343
|
searchUsers,
|
|
1169
1344
|
searchValidBooks,
|
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-7f7e47b5",
|
|
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-7f7e47b5",
|
|
45
|
+
"@lls/vitescripts": "24.1.59-7f7e47b5"
|
|
46
46
|
},
|
|
47
47
|
"license": "ISC",
|
|
48
48
|
"dependencies": {
|