@influenzanet/case-web-app-core 2.7.3

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 (96) hide show
  1. package/CHANGELOG.md +276 -0
  2. package/LICENSE +202 -0
  3. package/build/AppCore.d.ts +31 -0
  4. package/build/api/authAPI.d.ts +7 -0
  5. package/build/api/instances/authenticatedApi.d.ts +5 -0
  6. package/build/api/instances/defaultApi.d.ts +2 -0
  7. package/build/api/studyAPI.d.ts +29 -0
  8. package/build/api/types/authAPI.d.ts +37 -0
  9. package/build/api/types/general.d.ts +5 -0
  10. package/build/api/types/studyAPI.d.ts +91 -0
  11. package/build/api/types/user.d.ts +46 -0
  12. package/build/api/userAPI.d.ts +20 -0
  13. package/build/api/utils.d.ts +1 -0
  14. package/build/components/dialogs/GlobalDialogs/AlertDialog.d.ts +5 -0
  15. package/build/components/dialogs/GlobalDialogs/ChangeEmail.d.ts +5 -0
  16. package/build/components/dialogs/GlobalDialogs/ChangeLanguage.d.ts +6 -0
  17. package/build/components/dialogs/GlobalDialogs/ChangeNotifications.d.ts +5 -0
  18. package/build/components/dialogs/GlobalDialogs/ChangePassword.d.ts +5 -0
  19. package/build/components/dialogs/GlobalDialogs/DeleteAccount.d.ts +5 -0
  20. package/build/components/dialogs/GlobalDialogs/EditProfile.d.ts +9 -0
  21. package/build/components/dialogs/GlobalDialogs/Login.d.ts +11 -0
  22. package/build/components/dialogs/GlobalDialogs/ManageProfiles.d.ts +5 -0
  23. package/build/components/dialogs/GlobalDialogs/PasswordForgotten.d.ts +3 -0
  24. package/build/components/dialogs/GlobalDialogs/Signup.d.ts +3 -0
  25. package/build/components/dialogs/GlobalDialogs/SignupSuccess.d.ts +3 -0
  26. package/build/components/dialogs/GlobalDialogs.d.ts +8 -0
  27. package/build/components/layout/FooterRenderer.d.ts +9 -0
  28. package/build/components/layout/HeaderRenderer.d.ts +9 -0
  29. package/build/components/misc/InternalNavigator.d.ts +9 -0
  30. package/build/components/misc/LocalStorage.d.ts +3 -0
  31. package/build/components/misc/PreventAccidentalNavigationPrompt.d.ts +7 -0
  32. package/build/components/misc/ScrollToTop.d.ts +1 -0
  33. package/build/components/navbar/Navbar.d.ts +9 -0
  34. package/build/components/navbar/NavbarComponents/Drawer.d.ts +13 -0
  35. package/build/components/navbar/NavbarComponents/DrawerDropdownItem.d.ts +10 -0
  36. package/build/components/navbar/NavbarComponents/NavbarDropdownItem.d.ts +10 -0
  37. package/build/components/navbar/NavbarComponents/NavbarItem.d.ts +10 -0
  38. package/build/components/navbar/NavbarComponents/NormalNavbar.d.ts +28 -0
  39. package/build/components/navbar/NavbarComponents/SurveyModeNavbar.d.ts +14 -0
  40. package/build/components/pages/Pages.d.ts +19 -0
  41. package/build/components/pages/components/ContentRenderer.d.ts +21 -0
  42. package/build/components/pages/components/LinkResolver/LinkResolver.d.ts +14 -0
  43. package/build/components/pages/components/LinkResolver/Resolvers/ContactVerification.d.ts +7 -0
  44. package/build/components/pages/components/LinkResolver/Resolvers/Invitation.d.ts +7 -0
  45. package/build/components/pages/components/LinkResolver/Resolvers/PasswordReset.d.ts +7 -0
  46. package/build/components/pages/components/LinkResolver/Resolvers/StudyLogin.d.ts +7 -0
  47. package/build/components/pages/components/RouteToLayout.d.ts +17 -0
  48. package/build/components/pages/components/SurveyPage/Dialogs/LoginRequiredDialog.d.ts +14 -0
  49. package/build/components/pages/components/SurveyPage/Dialogs/ProfileSelectionDialog.d.ts +17 -0
  50. package/build/components/pages/components/SurveyPage/Dialogs/SubmitSuccessWithLoginOptionsDialog.d.ts +16 -0
  51. package/build/components/pages/components/SurveyPage/Dialogs/SuccessDialog.d.ts +12 -0
  52. package/build/components/pages/components/SurveyPage/PageComponents/ErrorWithRetry.d.ts +10 -0
  53. package/build/components/pages/components/SurveyPage/SurveyPage.d.ts +16 -0
  54. package/build/components/settings/AccountSettings.d.ts +7 -0
  55. package/build/components/settings/CommunicationSettings.d.ts +7 -0
  56. package/build/components/settings/DeleteAccount.d.ts +6 -0
  57. package/build/components/settings/SystemInfo.d.ts +7 -0
  58. package/build/components/study/ReportList.d.ts +19 -0
  59. package/build/components/study/SurveyList.d.ts +10 -0
  60. package/build/constants/index.d.ts +1 -0
  61. package/build/hooks/useAuthTokenCheck.d.ts +1 -0
  62. package/build/hooks/useIsAuthenticated.d.ts +1 -0
  63. package/build/hooks/useLogout.d.ts +1 -0
  64. package/build/hooks/useSetAuthState.d.ts +3 -0
  65. package/build/hooks/useTranslatedMarkdown.d.ts +5 -0
  66. package/build/hooks/useUrlQuery.d.ts +1 -0
  67. package/build/i18n.d.ts +12 -0
  68. package/build/index.d.ts +79 -0
  69. package/build/index.es.js +30438 -0
  70. package/build/index.es.js.map +1 -0
  71. package/build/index.js +30475 -0
  72. package/build/index.js.map +1 -0
  73. package/build/localStyles.d.ts +8 -0
  74. package/build/store/ReducersManager.d.ts +66 -0
  75. package/build/store/appSlice.d.ts +35 -0
  76. package/build/store/configSlice.d.ts +11 -0
  77. package/build/store/dialogSlice.d.ts +43 -0
  78. package/build/store/localStorage.d.ts +4 -0
  79. package/build/store/rootReducer.d.ts +13 -0
  80. package/build/store/signupActions.d.ts +3 -0
  81. package/build/store/store.d.ts +9 -0
  82. package/build/store/userSlice.d.ts +17 -0
  83. package/build/types/appConfig.d.ts +13 -0
  84. package/build/types/extensionComponents.d.ts +14 -0
  85. package/build/types/footerConfig.d.ts +14 -0
  86. package/build/types/headerConfig.d.ts +23 -0
  87. package/build/types/navbarConfig.d.ts +17 -0
  88. package/build/types/pagesConfig.d.ts +226 -0
  89. package/build/types/routing.d.ts +8 -0
  90. package/build/utils/LocalStorageManager.d.ts +53 -0
  91. package/build/utils/blurEmail.d.ts +1 -0
  92. package/build/utils/parseBooleanFlag.d.ts +1 -0
  93. package/build/utils/parseGRPCTimestamp.d.ts +1 -0
  94. package/build/utils/passwordRules.d.ts +1 -0
  95. package/package.json +96 -0
  96. package/readme.md +22 -0
@@ -0,0 +1,91 @@
1
+ import { SurveyResponse, Survey, SurveyContext, LocalizedString } from "survey-engine/data_types";
2
+ export interface SurveyReferenceReq {
3
+ studyKey: string;
4
+ surveyKey: string;
5
+ profileId: string;
6
+ }
7
+ export interface SurveyResponseReq {
8
+ studyKey: string;
9
+ response: SurveyResponse;
10
+ profileId?: string;
11
+ instanceId?: string;
12
+ temporaryParticipantId?: string;
13
+ temporaryParticipantTimestamp?: number;
14
+ }
15
+ export interface SurveyAndContextMsg {
16
+ survey: Survey;
17
+ context?: SurveyContext;
18
+ prefill?: SurveyResponse;
19
+ }
20
+ export interface AssignedSurvey {
21
+ studyKey: string;
22
+ surveyKey: string;
23
+ validFrom?: number;
24
+ validUntil?: number;
25
+ category: string;
26
+ profileId: string;
27
+ }
28
+ export interface AssignedSurveys {
29
+ surveys: AssignedSurvey[];
30
+ surveyInfos: SurveyInfo[];
31
+ }
32
+ export interface Report {
33
+ studyKey: string;
34
+ profileId: string;
35
+ id: string;
36
+ key: string;
37
+ participantId: string;
38
+ responseId: string;
39
+ timestamp: number;
40
+ data: Array<{
41
+ key: string;
42
+ value: string;
43
+ dtype?: string;
44
+ }>;
45
+ }
46
+ export interface ReportHistory {
47
+ reports: Report[];
48
+ }
49
+ export interface StudyInfos {
50
+ key: string;
51
+ status: string;
52
+ props: {
53
+ name: LocalizedString[];
54
+ description: LocalizedString[];
55
+ tags?: Array<{
56
+ label: LocalizedString[];
57
+ }>;
58
+ startDate?: number;
59
+ endDate?: number;
60
+ systemDefaultStudy?: boolean;
61
+ };
62
+ stats: {
63
+ participantCount: number;
64
+ responseCount: number;
65
+ };
66
+ }
67
+ export interface StudyInfoForUser extends StudyInfos {
68
+ profileIds: string[];
69
+ }
70
+ export interface Studies {
71
+ studies: StudyInfos[];
72
+ }
73
+ export interface StudiesForUser {
74
+ studies: StudyInfoForUser[];
75
+ }
76
+ export interface SurveyInfo {
77
+ studyKey: string;
78
+ surveyKey: string;
79
+ name: LocalizedString[];
80
+ description: LocalizedString[];
81
+ typicalDuration: LocalizedString[];
82
+ }
83
+ export interface SurveyInfos {
84
+ infos: SurveyInfo[];
85
+ }
86
+ export interface ConvertTempParticipantReq {
87
+ studyKey: string;
88
+ temporaryParticipantId: string;
89
+ timestamp: number;
90
+ profileId: string;
91
+ }
@@ -0,0 +1,46 @@
1
+ export interface User {
2
+ id: string;
3
+ account: {
4
+ type: string;
5
+ accountId: string;
6
+ accountConfirmedAt: number;
7
+ preferredLanguage: string;
8
+ };
9
+ roles: string[];
10
+ timestamps: {
11
+ createdAt: number;
12
+ updatedAt: number;
13
+ lastLogin: number;
14
+ lastTokenRefresh: number;
15
+ };
16
+ profiles: Profile[];
17
+ contactPreferences: ContactPreferences;
18
+ contactInfos: ContactInfo[];
19
+ }
20
+ export interface Profile {
21
+ id: string;
22
+ alias: string;
23
+ consentConfirmedAt: number;
24
+ avatarId: string;
25
+ createdAt: number;
26
+ mainProfile: boolean;
27
+ }
28
+ export interface ContactPreferences {
29
+ subscribedToNewsletter: boolean;
30
+ sendNewsletterTo: string[];
31
+ subscribedToWeekly: boolean;
32
+ receiveWeeklyMessageDayOfWeek: number;
33
+ }
34
+ interface ContactInfoBase {
35
+ id: string;
36
+ type: string;
37
+ confirmedAt: number;
38
+ }
39
+ export interface EmailContactInfo extends ContactInfoBase {
40
+ email: string;
41
+ }
42
+ export interface PhoneContactInfo extends ContactInfoBase {
43
+ phone: string;
44
+ }
45
+ export declare type ContactInfo = EmailContactInfo | PhoneContactInfo;
46
+ export {};
@@ -0,0 +1,20 @@
1
+ import { PasswordResetInfos } from './types/authAPI';
2
+ import { ServiceStatus } from './types/general';
3
+ import { User, Profile, ContactPreferences, ContactInfo } from './types/user';
4
+ export declare const initiatePasswordResetReq: (instanceId: string, accountId: string) => Promise<import("axios").AxiosResponse<ServiceStatus, any>>;
5
+ export declare const getInfosForPasswordResetReq: (token: string) => Promise<import("axios").AxiosResponse<PasswordResetInfos, any>>;
6
+ export declare const resetPasswordReq: (token: string, newPassword: string) => Promise<import("axios").AxiosResponse<ServiceStatus, any>>;
7
+ export declare const getUserReq: () => Promise<import("axios").AxiosResponse<User, any>>;
8
+ export declare const changePasswordReq: (oldPassword: string, newPassword: string) => Promise<import("axios").AxiosResponse<ServiceStatus, any>>;
9
+ export declare const changeAccountEmailReq: (newEmail: string, keepOldEmail: boolean, password: string) => Promise<import("axios").AxiosResponse<User, any>>;
10
+ export declare const setPreferredLanguageReq: (languageCode: string) => Promise<import("axios").AxiosResponse<User, any>>;
11
+ export declare const saveProfileReq: (profile: Profile) => Promise<import("axios").AxiosResponse<User, any>>;
12
+ export declare const removeProfileReq: (profileId: string) => Promise<import("axios").AxiosResponse<User, any>>;
13
+ export declare const resendVerificationEmailReq: (address: string) => Promise<import("axios").AxiosResponse<ServiceStatus, any>>;
14
+ export declare const verifyContactReq: (token: string) => Promise<import("axios").AxiosResponse<User, any>>;
15
+ export declare const unsubscribeNewsletterReq: (token: string) => Promise<import("axios").AxiosResponse<ServiceStatus, any>>;
16
+ export declare const updateContactPreferencesReq: (contactPrefs: ContactPreferences) => Promise<import("axios").AxiosResponse<User, any>>;
17
+ export declare const addEmailReq: (contactInfo: ContactInfo) => Promise<import("axios").AxiosResponse<User, any>>;
18
+ export declare const removeEmailReq: (contactInfoID: string) => Promise<import("axios").AxiosResponse<User, any>>;
19
+ export declare const revokeAllRefreshTokensReq: () => Promise<import("axios").AxiosResponse<ServiceStatus, any>>;
20
+ export declare const deleteAccountReq: (userId: string) => Promise<import("axios").AxiosResponse<ServiceStatus, any>>;
@@ -0,0 +1 @@
1
+ export declare const getErrorMsg: (err: any) => string;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface AlertDialogProps {
3
+ }
4
+ declare const AlertDialog: React.FC<AlertDialogProps>;
5
+ export default AlertDialog;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface ChangeEmailProps {
3
+ }
4
+ declare const ChangeEmail: React.FC<ChangeEmailProps>;
5
+ export default ChangeEmail;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ChangeLanguageProps {
3
+ onChangeLanguage: (code: string) => void;
4
+ }
5
+ declare const ChangeLanguage: React.FC<ChangeLanguageProps>;
6
+ export default ChangeLanguage;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface ChangeNotificationsProps {
3
+ }
4
+ declare const ChangeNotifications: React.FC<ChangeNotificationsProps>;
5
+ export default ChangeNotifications;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface ChangePasswordProps {
3
+ }
4
+ declare const ChangePassword: React.FC<ChangePasswordProps>;
5
+ export default ChangePassword;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface DeleteAccountProps {
3
+ }
4
+ declare const DeleteAccount: React.FC<DeleteAccountProps>;
5
+ export default DeleteAccount;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Profile } from '../../../api/types/user';
3
+ interface EditProfileProps {
4
+ open: boolean;
5
+ selectedProfile: Profile;
6
+ onClose: () => void;
7
+ }
8
+ declare const EditProfile: React.FC<EditProfileProps>;
9
+ export default EditProfile;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { DefaultRoutes } from '../../../types/routing';
3
+ interface LoginProps {
4
+ defaultRoutes: DefaultRoutes;
5
+ }
6
+ /**
7
+ * Login Dialog with logic to handle callbacks from the forms
8
+ * @param props
9
+ */
10
+ declare const Login: React.FC<LoginProps>;
11
+ export default Login;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface ManageProfilesProps {
3
+ }
4
+ declare const ManageProfiles: React.FC<ManageProfilesProps>;
5
+ export default ManageProfiles;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PasswordForgotten: React.FC;
3
+ export default PasswordForgotten;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Signup: React.FC;
3
+ export default Signup;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SignupSuccess: React.FC;
3
+ export default SignupSuccess;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { DefaultRoutes } from '../../types/routing';
3
+ interface GlobalDialogsProps {
4
+ defaultRoutes: DefaultRoutes;
5
+ onChangeLanguage: (code: string) => void;
6
+ }
7
+ declare const GlobalDialogs: React.FC<GlobalDialogsProps>;
8
+ export default GlobalDialogs;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { FooterConfig } from '../../types/footerConfig';
3
+ interface FooterRendererProps {
4
+ footerConfig?: FooterConfig;
5
+ onChangeLanguage: (code: string) => void;
6
+ onOpenExternalPage: (url: string) => void;
7
+ }
8
+ declare const FooterRenderer: React.FC<FooterRendererProps>;
9
+ export default FooterRenderer;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { HeaderConfig } from '../../types/headerConfig';
3
+ interface HeaderRendererProps {
4
+ config?: HeaderConfig;
5
+ onChangeLanguage: (code: string) => void;
6
+ onOpenExternalPage?: (url: string) => void;
7
+ }
8
+ declare const HeaderRenderer: React.FC<HeaderRendererProps>;
9
+ export default HeaderRenderer;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface InternalNavigatorProps {
3
+ navigateTo?: {
4
+ url: string;
5
+ replace: boolean;
6
+ };
7
+ }
8
+ declare const InternalNavigator: React.FC<InternalNavigatorProps>;
9
+ export default InternalNavigator;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const LocalStorage: React.FC;
3
+ export default LocalStorage;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface PreventAccidentalNavigationPromptProps {
3
+ protectionActive: boolean;
4
+ onTriggered: (path: string) => void;
5
+ }
6
+ declare const PreventAccidentalNavigationPrompt: React.FC<PreventAccidentalNavigationPromptProps>;
7
+ export default PreventAccidentalNavigationPrompt;
@@ -0,0 +1 @@
1
+ export default function ScrollToTop(): null;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { NavbarConfig } from '../../types/navbarConfig';
3
+ interface NavbarProps {
4
+ loading?: boolean;
5
+ content?: NavbarConfig;
6
+ onOpenExternalPage: (url: string) => void;
7
+ }
8
+ declare const Navbar: React.FC<NavbarProps>;
9
+ export default Navbar;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { NavbarItemConfig } from '../../../types/navbarConfig';
3
+ interface DrawerProps {
4
+ isAuth?: boolean;
5
+ open: boolean;
6
+ items?: Array<NavbarItemConfig>;
7
+ onClose: () => void;
8
+ onOpenDialog: (dialog: string) => void;
9
+ onOpenUrl: (url: string) => void;
10
+ onNavigate: (url: string) => void;
11
+ }
12
+ declare const Drawer: React.FC<DrawerProps>;
13
+ export default Drawer;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { NavbarItemConfig } from '../../../types/navbarConfig';
3
+ interface DrawerDropdownItemProps {
4
+ item: NavbarItemConfig;
5
+ onOpenDialog: (dialog: string) => void;
6
+ onOpenUrl: (url: string) => void;
7
+ onNavigate: (url: string) => void;
8
+ }
9
+ declare const DrawerDropdownItem: React.FC<DrawerDropdownItemProps>;
10
+ export default DrawerDropdownItem;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { NavbarItemConfig } from '../../../types/navbarConfig';
3
+ interface NavbarDropdownItemProps {
4
+ item: NavbarItemConfig;
5
+ onOpenDialog: (dialog: string) => void;
6
+ onOpenUrl: (url: string) => void;
7
+ onNavigate: (url: string) => void;
8
+ }
9
+ declare const NavbarDropdownItem: React.FC<NavbarDropdownItemProps>;
10
+ export default NavbarDropdownItem;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { NavbarItemConfig } from '../../../types/navbarConfig';
3
+ interface NavbarItemProps {
4
+ item: NavbarItemConfig;
5
+ onOpenDialog: (dialog: string) => void;
6
+ onOpenUrl: (url: string) => void;
7
+ onNavigate: (url: string) => void;
8
+ }
9
+ declare const NavbarItem: React.FC<NavbarItemProps>;
10
+ export default NavbarItem;
@@ -0,0 +1,28 @@
1
+ import { AvatarConfig } from 'case-web-ui/build/types/avatars';
2
+ import { Profile } from 'case-web-ui/build/types/profile';
3
+ import React from 'react';
4
+ import { NavbarConfig } from '../../../types/navbarConfig';
5
+ export declare type NavbarBreakpoints = "md" | "sm" | "lg" | "xl" | "xxl";
6
+ interface NormalNavbarProps {
7
+ breakpoint?: NavbarBreakpoints;
8
+ labels: {
9
+ toggleBtn: string;
10
+ toggleBtnAriaLabel?: string;
11
+ loginBtn: string;
12
+ signupBtn: string;
13
+ logoutBtn: string;
14
+ openSingupSuccessDialogBtn: string;
15
+ };
16
+ content?: NavbarConfig;
17
+ isLoggedIn: boolean;
18
+ isNotVerifiedUser?: boolean;
19
+ disableSignup?: boolean;
20
+ avatars: AvatarConfig[];
21
+ currentProfile?: Profile;
22
+ onOpenDialog: (dialog: string) => void;
23
+ onOpenUrl: (url: string) => void;
24
+ onNavigate: (url: string) => void;
25
+ onLogout: () => void;
26
+ }
27
+ declare const NormalNavbar: React.FC<NormalNavbarProps>;
28
+ export default NormalNavbar;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Profile } from '../../../api/types/user';
3
+ import { AvatarConfig } from '../../../types/appConfig';
4
+ interface SurveyModeNavbarProps {
5
+ onExit: () => void;
6
+ labels: {
7
+ exitSurveyModeBtn: string;
8
+ selectedProfilePrefix: string;
9
+ };
10
+ avatars: AvatarConfig[];
11
+ currentProfile?: Profile;
12
+ }
13
+ declare const SurveyModeNavbar: React.FC<SurveyModeNavbarProps>;
14
+ export default SurveyModeNavbar;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { PagesConfig } from '../../types/pagesConfig';
3
+ import { DefaultRoutes } from '../../types/routing';
4
+ import { Extension } from '../../AppCore';
5
+ import { CustomSurveyResponseComponent } from 'case-web-ui/build/components/survey/SurveySingleItemView/ResponseComponent/ResponseComponent';
6
+ interface PagesProps {
7
+ config?: PagesConfig;
8
+ extensions?: Extension[];
9
+ customResponseComponents?: CustomSurveyResponseComponent[];
10
+ dateLocales?: Array<{
11
+ code: string;
12
+ locale: any;
13
+ format: string;
14
+ }>;
15
+ defaultRoutes: DefaultRoutes;
16
+ onOpenExternalPage: (url: string) => void;
17
+ }
18
+ declare const Pages: React.FC<PagesProps>;
19
+ export default Pages;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { PagesConfig, PageRow, HelmetPageConfig } from '../../../types/pagesConfig';
3
+ import { DefaultRoutes } from '../../../types/routing';
4
+ import { Extension } from '../../../AppCore';
5
+ interface ContentRendererProps {
6
+ hideTitleBar?: boolean;
7
+ isAuthenticated: boolean;
8
+ rows: Array<PageRow>;
9
+ subPages?: PagesConfig;
10
+ pageKey: string;
11
+ defaultRoutes: DefaultRoutes;
12
+ extensions?: Extension[];
13
+ dateLocales?: Array<{
14
+ code: string;
15
+ locale: any;
16
+ format: string;
17
+ }>;
18
+ helmet?: HelmetPageConfig;
19
+ }
20
+ declare const ContentRenderer: React.FC<ContentRendererProps>;
21
+ export default ContentRenderer;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { DefaultRoutes } from '../../../../types/routing';
3
+ export declare const linkResolverRootUrl = "/link";
4
+ export declare const LinkResolverPaths: {
5
+ ContactVerification: string;
6
+ PasswordReset: string;
7
+ StudyLogin: string;
8
+ Invitation: string;
9
+ };
10
+ interface LinkResolverProps {
11
+ defaultRoutes: DefaultRoutes;
12
+ }
13
+ declare const LinkResolver: React.FC<LinkResolverProps>;
14
+ export default LinkResolver;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DefaultRoutes } from '../../../../../types/routing';
3
+ interface ContactVerificationProps {
4
+ defaultRoutes: DefaultRoutes;
5
+ }
6
+ declare const ContactVerification: React.FC<ContactVerificationProps>;
7
+ export default ContactVerification;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DefaultRoutes } from '../../../../../types/routing';
3
+ interface InvitationProps {
4
+ defaultRoutes: DefaultRoutes;
5
+ }
6
+ declare const Invitation: React.FC<InvitationProps>;
7
+ export default Invitation;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DefaultRoutes } from '../../../../../types/routing';
3
+ interface PasswordResetProps {
4
+ defaultRoutes: DefaultRoutes;
5
+ }
6
+ declare const PasswordReset: React.FC<PasswordResetProps>;
7
+ export default PasswordReset;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DefaultRoutes } from '../../../../../types/routing';
3
+ interface StudyLoginProps {
4
+ defaultRoutes: DefaultRoutes;
5
+ }
6
+ declare const StudyLogin: React.FC<StudyLoginProps>;
7
+ export default StudyLogin;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Extension } from '../../../AppCore';
3
+ import { PageConfig } from '../../../types/pagesConfig';
4
+ import { DefaultRoutes } from '../../../types/routing';
5
+ interface RouteToLayoutProps {
6
+ path: string;
7
+ pageConfig: PageConfig;
8
+ defaultRoutes: DefaultRoutes;
9
+ extensions?: Extension[];
10
+ dateLocales?: Array<{
11
+ code: string;
12
+ locale: any;
13
+ format: string;
14
+ }>;
15
+ }
16
+ declare const RouteToLayout: React.FC<RouteToLayoutProps>;
17
+ export default RouteToLayout;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { LoginOptions } from './SubmitSuccessWithLoginOptionsDialog';
3
+ interface LoginRequiredDialogProps {
4
+ open: boolean;
5
+ texts: {
6
+ title: string;
7
+ info: string;
8
+ loginBtn: string;
9
+ registerBtn: string;
10
+ };
11
+ onSelect: (option: LoginOptions) => void;
12
+ }
13
+ declare const LoginRequiredDialog: React.FC<LoginRequiredDialogProps>;
14
+ export default LoginRequiredDialog;
@@ -0,0 +1,17 @@
1
+ import { AvatarConfig } from 'case-web-ui/build/types/avatars';
2
+ import { Profile } from 'case-web-ui/build/types/profile';
3
+ import React from 'react';
4
+ interface ProfileSelectionDialogProps {
5
+ open: boolean;
6
+ texts: {
7
+ title: string;
8
+ info: string;
9
+ manageProfiles: string;
10
+ };
11
+ profiles: Profile[];
12
+ avatars: AvatarConfig[];
13
+ onSelectProfile: (p: Profile) => void;
14
+ onOpenProfileManager: () => void;
15
+ }
16
+ declare const ProfileSelectionDialog: React.FC<ProfileSelectionDialogProps>;
17
+ export default ProfileSelectionDialog;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ interface SubmitSuccessWithLoginOptionsDialogProps {
3
+ open: boolean;
4
+ texts: {
5
+ title: string;
6
+ submitConfirm: string;
7
+ info: string;
8
+ loginBtn: string;
9
+ registerBtn: string;
10
+ withoutAccountBtn: string;
11
+ };
12
+ onSelect: (option: LoginOptions) => void;
13
+ }
14
+ export declare type LoginOptions = 'login' | 'register' | 'withoutAccount';
15
+ declare const SubmitSuccessWithLoginOptionsDialog: React.FC<SubmitSuccessWithLoginOptionsDialogProps>;
16
+ export default SubmitSuccessWithLoginOptionsDialog;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface SuccessDialogProps {
3
+ open: boolean;
4
+ texts: {
5
+ title: string;
6
+ info: string;
7
+ okBtn: string;
8
+ };
9
+ onClose: () => void;
10
+ }
11
+ declare const SuccessDialog: React.FC<SuccessDialogProps>;
12
+ export default SuccessDialog;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface ErrorWithRetryProps {
3
+ texts: {
4
+ content: string;
5
+ btn: string;
6
+ };
7
+ onRetry: () => void;
8
+ }
9
+ declare const ErrorWithRetry: React.FC<ErrorWithRetryProps>;
10
+ export default ErrorWithRetry;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { CustomSurveyResponseComponent } from 'case-web-ui/build/components/survey/SurveySingleItemView/ResponseComponent/ResponseComponent';
3
+ interface SurveyPageProps {
4
+ customResponseComponents?: CustomSurveyResponseComponent[];
5
+ dateLocales?: Array<{
6
+ code: string;
7
+ locale: any;
8
+ format: string;
9
+ }>;
10
+ urls: {
11
+ finishedFlowWithoutLogin: string;
12
+ finishedFlowWithLogin: string;
13
+ };
14
+ }
15
+ declare const SurveyPage: React.FC<SurveyPageProps>;
16
+ export default SurveyPage;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface AccountSettingsProps {
3
+ itemKey: string;
4
+ hideProfileSettings?: boolean;
5
+ }
6
+ declare const AccountSettings: React.FC<AccountSettingsProps>;
7
+ export default AccountSettings;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface CommunicationSettingsProps {
3
+ itemKey: string;
4
+ hideLanguageSelector?: boolean;
5
+ }
6
+ declare const CommunicationSettings: React.FC<CommunicationSettingsProps>;
7
+ export default CommunicationSettings;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface DeleteAccountProps {
3
+ itemKey: string;
4
+ }
5
+ declare const DeleteAccount: React.FC<DeleteAccountProps>;
6
+ export default DeleteAccount;