@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
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@influenzanet/case-web-app-core",
3
+ "description": "Common logic and components for the participant web-app",
4
+ "version": "2.7.3",
5
+ "scripts": {
6
+ "build": "rollup -c",
7
+ "storybook": "start-storybook -p 6007",
8
+ "storybook:export": "build-storybook",
9
+ "test": "jest",
10
+ "test:watch": "jest --watch",
11
+ "prepublishOnly": "yarn build"
12
+ },
13
+ "main": "build/index.js",
14
+ "module": "build/index.es.js",
15
+ "files": [
16
+ "build"
17
+ ],
18
+ "devDependencies": {
19
+ "@babel/core": "^7.19.6",
20
+ "@fontsource/open-sans": "^4.5.14",
21
+ "@reduxjs/toolkit": "1.8.1",
22
+ "@rollup/plugin-commonjs": "^21.0.2",
23
+ "@rollup/plugin-node-resolve": "^13.1.3",
24
+ "@storybook/addon-actions": "^6.5.12",
25
+ "@storybook/builder-webpack5": "^6.5.12",
26
+ "@storybook/manager-webpack5": "^6.5.12",
27
+ "@storybook/react": "^6.4.22",
28
+ "@testing-library/jest-dom": "^5.16.5",
29
+ "@testing-library/react": "^13.2.0",
30
+ "@types/jest": "^29.2.0",
31
+ "@types/react": "^17.0.40",
32
+ "@types/react-dom": "^17.0.11",
33
+ "@types/react-google-recaptcha": "2.1.4",
34
+ "@types/react-redux": "^7.1.24",
35
+ "@types/react-router-dom": "^5.3.2",
36
+ "@typescript-eslint/eslint-plugin": "^5.48.0",
37
+ "@typescript-eslint/parser": "^5.48.0",
38
+ "axios": "^1.1.3",
39
+ "babel-loader": "^8.2.5",
40
+ "babel-preset-react-app": "^10.0.1",
41
+ "bootstrap": "^5.2.3",
42
+ "case-web-ui": "^1.14.4",
43
+ "clsx": "^1.2.1",
44
+ "date-fns": "^2.29.3",
45
+ "eslint": "^8.31.0",
46
+ "eslint-plugin-react": "^7.31.11",
47
+ "eslint-plugin-react-hooks": "^4.6.0",
48
+ "i18next": "^22.0.2",
49
+ "i18next-http-backend": "^2.2.0",
50
+ "identity-obj-proxy": "^3.0.0",
51
+ "iframe-resizer-react": "^1.1.0",
52
+ "jest": "^29.2.1",
53
+ "jest-environment-jsdom": "^29.2.1",
54
+ "lodash.clonedeep": "^4.5.0",
55
+ "lodash.merge": "^4.6.2",
56
+ "lodash.throttle": "^4.1.1",
57
+ "postcss": "^8.4.18",
58
+ "react": "^17.0.2",
59
+ "react-bootstrap": "^2.7.3",
60
+ "react-device-detect": "^2.2.3",
61
+ "react-dom": "^17.0.2",
62
+ "react-google-recaptcha": "^2.1.0",
63
+ "react-helmet-async": "^1.3.0",
64
+ "react-i18next": "^12.2.0",
65
+ "react-redux": "^7.2.6",
66
+ "react-router": "^5.3.3",
67
+ "react-router-dom": "^5.3.3",
68
+ "redux": "^4.1.2",
69
+ "rollup": "^2.62.0",
70
+ "rollup-plugin-copy": "^3.4.0",
71
+ "rollup-plugin-json": "^4.0.0",
72
+ "rollup-plugin-peer-deps-external": "^2.2.4",
73
+ "rollup-plugin-postcss": "^4.0.2",
74
+ "rollup-plugin-typescript2": "^0.31.1",
75
+ "sass": "^1.49.9",
76
+ "sass-loader": "^12.4.0",
77
+ "storybook-react-router": "^1.0.8",
78
+ "survey-engine": "^1.2.1",
79
+ "ts-jest": "^29.0.3",
80
+ "typescript": "^4.5.5",
81
+ "typescript-plugin-css-modules": "^3.4.0",
82
+ "@types/lodash-es": "^4.17.7",
83
+ "lodash-es": "4.17.21"
84
+ },
85
+ "peerDependencies": {
86
+ "bootstrap": "^5.1.3",
87
+ "case-web-ui": "^1.14.0",
88
+ "encoding": "^0.1.13",
89
+ "react": "^17.0.1",
90
+ "react-dom": "^17.0.1",
91
+ "react-i18next": "^11.8.8",
92
+ "react-redux": "^7.2.2",
93
+ "redux": "^4.0.5",
94
+ "survey-engine": "^1.2.1"
95
+ }
96
+ }
package/readme.md ADDED
@@ -0,0 +1,22 @@
1
+ ## Commands
2
+
3
+ Local test with storybook:
4
+ ```
5
+ yarn storybook
6
+ ```
7
+
8
+ Publish:
9
+ ```
10
+ yarn publish
11
+ ```
12
+
13
+ ## Configuration
14
+
15
+ Some environment variables can be used in the client website to configure some behaviors of this library the list is in [.env](.env) file of this repository
16
+ ## Documentation
17
+
18
+ - [Usage Guides](./docs/usage/index.md)
19
+
20
+ ## License
21
+
22
+ [Apache License 2.0](LICENSE)