@influenzanet/case-web-app-core 2.7.4-staging.7 → 2.7.5-staging.2
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/CHANGELOG.md +6 -0
- package/build/AppCore.d.ts +1 -1
- package/build/api/types/user.d.ts +10 -0
- package/build/components/dialogs/GlobalDialogs/EditProfile.d.ts +2 -2
- package/build/components/dialogs/GlobalDialogs/ManageProfiles.d.ts +1 -1
- package/build/components/navbar/NavbarComponents/NormalNavbar.d.ts +2 -2
- package/build/components/pages/Pages.d.ts +1 -1
- package/build/components/pages/components/LinkResolver/Resolvers/ContactVerification.d.ts +2 -2
- package/build/components/pages/components/SurveyPage/Dialogs/ProfileSelectionDialog.d.ts +2 -2
- package/build/components/pages/components/SurveyPage/SurveyPage.d.ts +2 -2
- package/build/components/study/DefaultStudiesManager.d.ts +3 -0
- package/build/components/study/SurveyList.d.ts +2 -2
- package/build/index.d.ts +20 -10
- package/build/index.es.js +4870 -2499
- package/build/index.es.js.map +1 -1
- package/build/index.js +4942 -2577
- package/build/index.js.map +1 -1
- package/build/store/rootReducer.d.ts +2 -1
- package/build/store/studiesSlice.d.ts +12 -0
- package/build/store/userSlice.d.ts +8 -5
- package/build/thunks/studiesThunks.d.ts +18 -0
- package/build/thunks/userThunks.d.ts +5 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
package/build/AppCore.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AppConfig } from './types/appConfig';
|
|
|
4
4
|
import { HeaderConfig } from './types/headerConfig';
|
|
5
5
|
import { NavbarConfig } from './types/navbarConfig';
|
|
6
6
|
import { PagesConfig } from './types/pagesConfig';
|
|
7
|
-
import { CustomSurveyResponseComponent } from 'case-web-ui/build/components/survey/SurveySingleItemView/ResponseComponent/ResponseComponent';
|
|
7
|
+
import { CustomSurveyResponseComponent } from '@influenzanet/case-web-ui/build/components/survey/SurveySingleItemView/ResponseComponent/ResponseComponent';
|
|
8
8
|
export interface Extension {
|
|
9
9
|
name: string;
|
|
10
10
|
component: React.FunctionComponent<any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AssignedSurvey } from "./studyAPI";
|
|
1
2
|
export interface User {
|
|
2
3
|
id: string;
|
|
3
4
|
account: {
|
|
@@ -24,6 +25,15 @@ export interface Profile {
|
|
|
24
25
|
avatarId: string;
|
|
25
26
|
createdAt: number;
|
|
26
27
|
mainProfile: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The following fields were added here for convenience since
|
|
30
|
+
* the types defined in this file are also used as type for
|
|
31
|
+
* the redux store object.
|
|
32
|
+
*
|
|
33
|
+
* This is a huge mistake but we cannot refactor everything now.
|
|
34
|
+
*/
|
|
35
|
+
studies: string[];
|
|
36
|
+
assignedSurveys: AssignedSurvey[];
|
|
27
37
|
}
|
|
28
38
|
export interface ContactPreferences {
|
|
29
39
|
subscribedToNewsletter: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AvatarConfig } from 'case-web-ui/build/types/avatars';
|
|
2
|
-
import { Profile } from 'case-web-ui/build/types/profile';
|
|
1
|
+
import { AvatarConfig } from '@influenzanet/case-web-ui/build/types/avatars';
|
|
2
|
+
import { Profile } from '@influenzanet/case-web-ui/build/types/profile';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { NavbarConfig } from '../../../types/navbarConfig';
|
|
5
5
|
export declare type NavbarBreakpoints = "md" | "sm" | "lg" | "xl" | "xxl";
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { PagesConfig } from '../../types/pagesConfig';
|
|
3
3
|
import { DefaultRoutes } from '../../types/routing';
|
|
4
4
|
import { Extension } from '../../AppCore';
|
|
5
|
-
import { CustomSurveyResponseComponent } from 'case-web-ui/build/components/survey/SurveySingleItemView/ResponseComponent/ResponseComponent';
|
|
5
|
+
import { CustomSurveyResponseComponent } from '@influenzanet/case-web-ui/build/components/survey/SurveySingleItemView/ResponseComponent/ResponseComponent';
|
|
6
6
|
interface PagesProps {
|
|
7
7
|
config?: PagesConfig;
|
|
8
8
|
extensions?: Extension[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AvatarConfig } from 'case-web-ui/build/types/avatars';
|
|
2
|
-
import { Profile } from 'case-web-ui/build/types/profile';
|
|
1
|
+
import { AvatarConfig } from '@influenzanet/case-web-ui/build/types/avatars';
|
|
2
|
+
import { Profile } from '@influenzanet/case-web-ui/build/types/profile';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
interface ProfileSelectionDialogProps {
|
|
5
5
|
open: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { CustomSurveyResponseComponent } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CustomSurveyResponseComponent } from "@influenzanet/case-web-ui/build/components/survey/SurveySingleItemView/ResponseComponent/ResponseComponent";
|
|
3
3
|
interface SurveyPageProps {
|
|
4
4
|
customResponseComponents?: CustomSurveyResponseComponent[];
|
|
5
5
|
dateLocales?: Array<{
|
package/build/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import AppCore from
|
|
2
|
-
import { initI18n } from
|
|
3
|
-
import store, { localStorageManager, reducersManager } from
|
|
4
|
-
import * as studyAPI from
|
|
5
|
-
import * as userAPI from
|
|
1
|
+
import AppCore from "./AppCore";
|
|
2
|
+
import { initI18n } from "./i18n";
|
|
3
|
+
import store, { localStorageManager, reducersManager } from "./store/store";
|
|
4
|
+
import * as studyAPI from "./api/studyAPI";
|
|
5
|
+
import * as userAPI from "./api/userAPI";
|
|
6
6
|
import { useAuthTokenCheck } from "./hooks/useAuthTokenCheck";
|
|
7
|
-
import PreventAccidentalNavigationPrompt from
|
|
8
|
-
import InternalNavigator from
|
|
7
|
+
import PreventAccidentalNavigationPrompt from "./components/misc/PreventAccidentalNavigationPrompt";
|
|
8
|
+
import InternalNavigator from "./components/misc/InternalNavigator";
|
|
9
9
|
declare const coreReduxActions: {
|
|
10
10
|
appActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
11
11
|
reset: (state: import("immer/dist/internal").WritableDraft<import("./store/appSlice").AppState>) => import("immer/dist/internal").WritableDraft<import("./store/appSlice").AppState>;
|
|
@@ -50,11 +50,11 @@ declare const coreReduxActions: {
|
|
|
50
50
|
}): void;
|
|
51
51
|
}>;
|
|
52
52
|
userActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
53
|
-
reset: (
|
|
53
|
+
reset: () => import("./store/userSlice").UserState;
|
|
54
54
|
initializeLanguage: (state: import("immer/dist/internal").WritableDraft<import("./store/userSlice").UserState>, action: {
|
|
55
55
|
payload: string;
|
|
56
56
|
type: string;
|
|
57
|
-
}) =>
|
|
57
|
+
}) => void;
|
|
58
58
|
setFromTokenResponse: (state: import("immer/dist/internal").WritableDraft<import("./store/userSlice").UserState>, action: {
|
|
59
59
|
payload: import("./api/types/authAPI").TokenResponse;
|
|
60
60
|
type: string;
|
|
@@ -71,9 +71,19 @@ declare const coreReduxActions: {
|
|
|
71
71
|
payload: string;
|
|
72
72
|
type: string;
|
|
73
73
|
}) => void;
|
|
74
|
+
initializeActiveSurveys: (state: import("immer/dist/internal").WritableDraft<import("./store/userSlice").UserState>, action: {
|
|
75
|
+
payload: import("./thunks/studiesThunks").ProfilesSurveysMap;
|
|
76
|
+
type: string;
|
|
77
|
+
}) => void;
|
|
74
78
|
}>;
|
|
75
79
|
signupActions: {
|
|
76
80
|
contactVerified: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
77
81
|
};
|
|
82
|
+
fetchStudiesForUserPending: import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkPendingActionCreator<void, {}>;
|
|
83
|
+
fetchStudiesForUserFulfilled: import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkFulfilledActionCreator<import("./thunks/userThunks").ProfileStudiesMap, void, {}>;
|
|
84
|
+
fetchStudiesForUserRejected: import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkRejectedActionCreator<void, {}>;
|
|
85
|
+
};
|
|
86
|
+
declare const coreReduxThunks: {
|
|
87
|
+
enterStudy: import("@reduxjs/toolkit").AsyncThunk<import("./thunks/studiesThunks").EnterStudyPayload, import("./thunks/studiesThunks").EnterStudyRequest, {}>;
|
|
78
88
|
};
|
|
79
|
-
export { AppCore, initI18n, store, reducersManager, localStorageManager, studyAPI, userAPI, coreReduxActions, useAuthTokenCheck, PreventAccidentalNavigationPrompt, InternalNavigator };
|
|
89
|
+
export { AppCore, initI18n, store, reducersManager, localStorageManager, studyAPI, userAPI, coreReduxActions, coreReduxThunks, useAuthTokenCheck, PreventAccidentalNavigationPrompt, InternalNavigator, };
|