@pagopa/selfcare-common-frontend 1.35.0 → 1.35.1
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 +875 -1
- package/README.md +34 -8
- package/examples/locale/en.d.ts +20 -0
- package/examples/locale/en.js +18 -0
- package/examples/locale/index.js +4 -0
- package/examples/locale/it.d.ts +20 -0
- package/examples/locale/it.js +19 -0
- package/{common-polyfill.d.ts → lib/common-polyfill.d.ts} +0 -1
- package/lib/common-polyfill.js +9 -0
- package/lib/components/BackComponent.d.ts +7 -0
- package/lib/components/BackComponent.js +8 -0
- package/lib/components/CustomAlert.d.ts +12 -0
- package/lib/components/CustomAlert.js +7 -0
- package/{components → lib/components}/CustomAvatar.d.ts +2 -3
- package/lib/components/CustomAvatar.js +13 -0
- package/{components → lib/components}/CustomPagination.d.ts +7 -3
- package/lib/components/CustomPagination.js +25 -0
- package/{components → lib/components}/EndingPage.d.ts +15 -3
- package/lib/components/EndingPage.js +4 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +11 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.js +93 -0
- package/{components → lib/components}/ErrorBoundary/components/BlockingErrorPage.d.ts +2 -3
- package/lib/components/ErrorBoundary/components/BlockingErrorPage.js +11 -0
- package/{components → lib/components}/FilterModal.d.ts +3 -3
- package/lib/components/FilterModal.js +29 -0
- package/{components → lib/components}/Footer/Footer.d.ts +2 -3
- package/lib/components/Footer/Footer.js +179 -0
- package/{components → lib/components}/Footer/FooterConfig.js +5 -9
- package/{components → lib/components}/Header/Header.d.ts +11 -6
- package/lib/components/Header/Header.js +45 -0
- package/{components → lib/components}/Loading/LoadingOverlay.d.ts +1 -2
- package/lib/components/Loading/LoadingOverlay.js +13 -0
- package/lib/components/LoadingOverlayComponent.d.ts +7 -0
- package/lib/components/LoadingOverlayComponent.js +25 -0
- package/{components → lib/components}/NavigationBar.d.ts +5 -4
- package/lib/components/NavigationBar.js +17 -0
- package/{components → lib/components}/SessionModal.d.ts +3 -3
- package/lib/components/SessionModal.js +17 -0
- package/{components → lib/components}/TitleBox.d.ts +7 -7
- package/lib/components/TitleBox.js +9 -0
- package/{components → lib/components}/Toast.d.ts +3 -3
- package/lib/components/Toast.js +25 -0
- package/{components → lib/components}/ToastWrapper.d.ts +2 -2
- package/lib/components/ToastWrapper.js +12 -0
- package/{components → lib/components}/UnloadEventHandler.d.ts +1 -2
- package/lib/components/UnloadEventHandler.js +29 -0
- package/{components → lib/components}/UserNotifyHandle.d.ts +1 -2
- package/lib/components/UserNotifyHandle.js +62 -0
- package/{components → lib/components}/icons/CheckIllustrationIcon.d.ts +1 -2
- package/lib/components/icons/CheckIllustrationIcon.js +3 -0
- package/lib/components/icons/ConfirmIcon.js +4 -0
- package/{components → lib/components}/icons/ErrorIcon.d.ts +1 -2
- package/lib/components/icons/ErrorIcon.js +3 -0
- package/lib/components/icons/ErrorIconExclamation.js +4 -0
- package/lib/components/icons/FaultIcon.js +4 -0
- package/{components → lib/components}/icons/PagoPaIcon.d.ts +1 -2
- package/lib/components/icons/PagoPaIcon.js +3 -0
- package/{components → lib/components}/icons/PagoPaIconColored.d.ts +1 -2
- package/lib/components/icons/PagoPaIconColored.js +3 -0
- package/{components → lib/components}/icons/PagoPaMiniIcon.d.ts +1 -2
- package/lib/components/icons/PagoPaMiniIcon.js +3 -0
- package/lib/components/tests/FilterModal.test.d.ts +1 -0
- package/lib/components/tests/FilterModal.test.js +37 -0
- package/{config → lib/config}/env.d.ts +4 -1
- package/{config → lib/config}/env.js +13 -17
- package/lib/consentManagementConfigure.d.ts +1 -0
- package/{consentManagementConfigure.js → lib/consentManagementConfigure.js} +5 -8
- package/{decorators → lib/decorators}/__mocks__/withLogin.d.ts +1 -2
- package/lib/decorators/__mocks__/withLogin.js +18 -0
- package/{decorators → lib/decorators}/withLogin.d.ts +1 -2
- package/{decorators → lib/decorators}/withLogin.js +13 -18
- package/{decorators → lib/decorators}/withRetrievedValue.d.ts +1 -1
- package/{decorators → lib/decorators}/withRetrievedValue.js +9 -14
- package/lib/hooks/useErrorDispatcher.js +7 -0
- package/{hooks → lib/hooks}/useFakePagination.d.ts +3 -3
- package/{hooks → lib/hooks}/useFakePagination.js +9 -15
- package/lib/hooks/useFocus.d.ts +1 -0
- package/lib/hooks/useFocus.js +8 -0
- package/lib/hooks/useLiveAnnouncerWithRegion.d.ts +4 -0
- package/lib/hooks/useLiveAnnouncerWithRegion.js +19 -0
- package/lib/hooks/useLoading.js +10 -0
- package/lib/hooks/useLogin.js +40 -0
- package/lib/hooks/usePermissions.d.ts +7 -0
- package/lib/hooks/usePermissions.js +25 -0
- package/lib/hooks/useReduxCachedValue.d.ts +22 -0
- package/{hooks → lib/hooks}/useReduxCachedValue.js +10 -17
- package/{hooks → lib/hooks}/useUnloadEventInterceptor.d.ts +3 -3
- package/{hooks → lib/hooks}/useUnloadEventInterceptor.js +24 -32
- package/lib/hooks/useUserNotify.js +7 -0
- package/{index.d.ts → lib/index.d.ts} +11 -8
- package/lib/index.js +36 -0
- package/{locale/it.d.ts → lib/locale/de.d.ts} +4 -1
- package/{locale → lib/locale}/de.js +31 -31
- package/{locale → lib/locale}/en.d.ts +4 -1
- package/{locale → lib/locale}/en.js +30 -30
- package/{locale → lib/locale}/fr.d.ts +5 -2
- package/{locale → lib/locale}/fr.js +26 -26
- package/{locale/de.d.ts → lib/locale/it.d.ts} +8 -2
- package/{locale → lib/locale}/it.js +11 -8
- package/lib/locale/locale-utils.js +45 -0
- package/{locale → lib/locale}/sl.d.ts +5 -2
- package/{locale → lib/locale}/sl.js +31 -31
- package/{model → lib/model}/AppError.d.ts +1 -1
- package/lib/model/AppError.js +1 -0
- package/lib/model/JwtUser.d.ts +9 -0
- package/lib/model/JwtUser.js +1 -0
- package/{model → lib/model}/Page.d.ts +1 -1
- package/lib/model/Page.js +1 -0
- package/{model → lib/model}/PageRequest.d.ts +1 -1
- package/lib/model/PageRequest.js +1 -0
- package/{model → lib/model}/PageResource.d.ts +1 -1
- package/lib/model/PageResource.js +1 -0
- package/lib/model/User.d.ts +8 -0
- package/lib/model/User.js +1 -0
- package/{model → lib/model}/UserNotify.d.ts +1 -2
- package/lib/model/UserNotify.js +1 -0
- package/lib/redux/slices/appStateSlice.d.ts +58 -0
- package/{redux → lib/redux}/slices/appStateSlice.js +15 -9
- package/lib/redux/slices/permissionsSlice.d.ts +12 -0
- package/lib/redux/slices/permissionsSlice.js +23 -0
- package/lib/redux/slices/productsSlice.d.ts +204 -0
- package/lib/redux/slices/productsSlice.js +26 -0
- package/lib/redux/slices/userSlice.d.ts +36 -0
- package/lib/redux/slices/userSlice.js +17 -0
- package/{services → lib/services}/analyticsService.d.ts +2 -1
- package/{services → lib/services}/analyticsService.js +31 -28
- package/{services → lib/services}/assistanceService.d.ts +1 -1
- package/lib/services/assistanceService.js +14 -0
- package/lib/services/errorService.js +8 -0
- package/{utils → lib/utils}/api-utils.d.ts +3 -3
- package/{utils → lib/utils}/api-utils.js +28 -23
- package/lib/utils/constants.d.ts +67 -0
- package/lib/utils/constants.js +82 -0
- package/lib/utils/productId2ProductTitle.d.ts +1 -0
- package/lib/utils/productId2ProductTitle.js +13 -0
- package/lib/utils/routes-utils.js +2 -0
- package/{utils → lib/utils}/storage-utils.d.ts +3 -3
- package/{utils → lib/utils}/storage-utils.js +4 -12
- package/{utils → lib/utils}/storage.d.ts +6 -0
- package/lib/utils/storage.js +31 -0
- package/lib/utils/utils.d.ts +11 -0
- package/lib/utils/utils.js +148 -0
- package/{utils → lib/utils}/verifyChecksumMatchWithTaxCode.js +1 -6
- package/{utils → lib/utils}/verifyNameMatchWithTaxCode.d.ts +1 -1
- package/lib/utils/verifyNameMatchWithTaxCode.js +27 -0
- package/{utils → lib/utils}/verifySurnameMatchWithTaxCode.d.ts +1 -1
- package/lib/utils/verifySurnameMatchWithTaxCode.js +17 -0
- package/package.json +54 -79
- package/build.info +0 -2
- package/common-polyfill.js +0 -13
- package/common-polyfill.js.map +0 -1
- package/components/BackComponent.d.ts +0 -6
- package/components/BackComponent.js +0 -12
- package/components/BackComponent.js.map +0 -1
- package/components/CustomAvatar.js +0 -18
- package/components/CustomAvatar.js.map +0 -1
- package/components/CustomPagination.js +0 -31
- package/components/CustomPagination.js.map +0 -1
- package/components/EndingPage.js +0 -7
- package/components/EndingPage.js.map +0 -1
- package/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
- package/components/ErrorBoundary/ErrorBoundary.js +0 -98
- package/components/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/components/ErrorBoundary/components/BlockingErrorPage.js +0 -15
- package/components/ErrorBoundary/components/BlockingErrorPage.js.map +0 -1
- package/components/FilterModal.js +0 -37
- package/components/FilterModal.js.map +0 -1
- package/components/Footer/Footer.js +0 -213
- package/components/Footer/Footer.js.map +0 -1
- package/components/Footer/FooterConfig.js.map +0 -1
- package/components/Header/Header.js +0 -24
- package/components/Header/Header.js.map +0 -1
- package/components/Loading/LoadingOverlay.js +0 -18
- package/components/Loading/LoadingOverlay.js.map +0 -1
- package/components/LoadingOverlayComponent.d.ts +0 -7
- package/components/LoadingOverlayComponent.js +0 -20
- package/components/LoadingOverlayComponent.js.map +0 -1
- package/components/NavigationBar.js +0 -21
- package/components/NavigationBar.js.map +0 -1
- package/components/SessionModal.js +0 -21
- package/components/SessionModal.js.map +0 -1
- package/components/TitleBox.js +0 -13
- package/components/TitleBox.js.map +0 -1
- package/components/Toast.js +0 -29
- package/components/Toast.js.map +0 -1
- package/components/ToastWrapper.js +0 -16
- package/components/ToastWrapper.js.map +0 -1
- package/components/UnloadEventHandler.js +0 -35
- package/components/UnloadEventHandler.js.map +0 -1
- package/components/UserNotifyHandle.js +0 -67
- package/components/UserNotifyHandle.js.map +0 -1
- package/components/icons/CheckIllustrationIcon.js +0 -7
- package/components/icons/CheckIllustrationIcon.js.map +0 -1
- package/components/icons/ConfirmIcon.js +0 -7
- package/components/icons/ConfirmIcon.js.map +0 -1
- package/components/icons/ErrorIcon.js +0 -7
- package/components/icons/ErrorIcon.js.map +0 -1
- package/components/icons/ErrorIconExclamation.js +0 -7
- package/components/icons/ErrorIconExclamation.js.map +0 -1
- package/components/icons/FaultIcon.js +0 -7
- package/components/icons/FaultIcon.js.map +0 -1
- package/components/icons/PagoPaIcon.js +0 -7
- package/components/icons/PagoPaIcon.js.map +0 -1
- package/components/icons/PagoPaIconColored.js +0 -7
- package/components/icons/PagoPaIconColored.js.map +0 -1
- package/components/icons/PagoPaMiniIcon.js +0 -7
- package/components/icons/PagoPaMiniIcon.js.map +0 -1
- package/config/env.js.map +0 -1
- package/consentManagementConfigure.js.map +0 -1
- package/decorators/__mocks__/withLogin.js +0 -27
- package/decorators/__mocks__/withLogin.js.map +0 -1
- package/decorators/withLogin.js.map +0 -1
- package/decorators/withRetrievedValue.js.map +0 -1
- package/hooks/useErrorDispatcher.js +0 -11
- package/hooks/useErrorDispatcher.js.map +0 -1
- package/hooks/useFakePagination.js.map +0 -1
- package/hooks/useLoading.js +0 -14
- package/hooks/useLoading.js.map +0 -1
- package/hooks/useLogin.js +0 -44
- package/hooks/useLogin.js.map +0 -1
- package/hooks/useReduxCachedValue.d.ts +0 -14
- package/hooks/useReduxCachedValue.js.map +0 -1
- package/hooks/useUnloadEventInterceptor.js.map +0 -1
- package/hooks/useUserNotify.js +0 -11
- package/hooks/useUserNotify.js.map +0 -1
- package/index.js +0 -76
- package/index.js.map +0 -1
- package/locale/de.js.map +0 -1
- package/locale/en.js.map +0 -1
- package/locale/fr.js.map +0 -1
- package/locale/it.js.map +0 -1
- package/locale/locale-utils.js +0 -36
- package/locale/locale-utils.js.map +0 -1
- package/locale/sl.js.map +0 -1
- package/model/AppError.js +0 -3
- package/model/AppError.js.map +0 -1
- package/model/Page.js +0 -3
- package/model/Page.js.map +0 -1
- package/model/PageRequest.js +0 -3
- package/model/PageRequest.js.map +0 -1
- package/model/PageResource.js +0 -3
- package/model/PageResource.js.map +0 -1
- package/model/User.d.ts +0 -7
- package/model/User.js +0 -3
- package/model/User.js.map +0 -1
- package/model/UserNotify.js +0 -3
- package/model/UserNotify.js.map +0 -1
- package/redux/slices/appStateSlice.d.ts +0 -76
- package/redux/slices/appStateSlice.js.map +0 -1
- package/redux/slices/userSlice.d.ts +0 -18
- package/redux/slices/userSlice.js +0 -21
- package/redux/slices/userSlice.js.map +0 -1
- package/services/analyticsService.js.map +0 -1
- package/services/assistanceService.js +0 -20
- package/services/assistanceService.js.map +0 -1
- package/services/errorService.js +0 -13
- package/services/errorService.js.map +0 -1
- package/utils/api-utils.js.map +0 -1
- package/utils/constants.d.ts +0 -19
- package/utils/constants.js +0 -32
- package/utils/constants.js.map +0 -1
- package/utils/routes-utils.js +0 -7
- package/utils/routes-utils.js.map +0 -1
- package/utils/storage-utils.js.map +0 -1
- package/utils/storage.js +0 -9
- package/utils/storage.js.map +0 -1
- package/utils/utils.d.ts +0 -3
- package/utils/utils.js +0 -13
- package/utils/utils.js.map +0 -1
- package/utils/verifyChecksumMatchWithTaxCode.js.map +0 -1
- package/utils/verifyNameMatchWithTaxCode.js +0 -26
- package/utils/verifyNameMatchWithTaxCode.js.map +0 -1
- package/utils/verifySurnameMatchWithTaxCode.js +0 -23
- package/utils/verifySurnameMatchWithTaxCode.js.map +0 -1
- /package/{consentManagementConfigure.d.ts → examples/locale/index.d.ts} +0 -0
- /package/{components → lib/components}/Footer/FooterConfig.d.ts +0 -0
- /package/{components → lib/components}/icons/ConfirmIcon.d.ts +0 -0
- /package/{components → lib/components}/icons/ErrorIconExclamation.d.ts +0 -0
- /package/{components → lib/components}/icons/FaultIcon.d.ts +0 -0
- /package/{hooks → lib/hooks}/useErrorDispatcher.d.ts +0 -0
- /package/{hooks → lib/hooks}/useLoading.d.ts +0 -0
- /package/{hooks → lib/hooks}/useLogin.d.ts +0 -0
- /package/{hooks → lib/hooks}/useUserNotify.d.ts +0 -0
- /package/{locale → lib/locale}/locale-utils.d.ts +0 -0
- /package/{services → lib/services}/errorService.d.ts +0 -0
- /package/{utils → lib/utils}/routes-utils.d.ts +0 -0
- /package/{utils → lib/utils}/verifyChecksumMatchWithTaxCode.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,98 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/selfcare-common-frontend",
|
|
3
3
|
"description": "Shared React components for the pagopa selfcare project",
|
|
4
|
-
"version": "1.35.
|
|
4
|
+
"version": "1.35.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
8
8
|
"private": false,
|
|
9
|
-
"main": "
|
|
10
|
-
"types": "
|
|
9
|
+
"main": "lib/index.js",
|
|
10
|
+
"types": "lib/index.d.ts",
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"lib/consentManagementConfigure.js",
|
|
13
|
+
"lib/common-polyfill.js",
|
|
14
|
+
"lib/**/*.css"
|
|
15
|
+
],
|
|
11
16
|
"dependencies": {
|
|
12
|
-
"@emotion/react": "^11.
|
|
13
|
-
"@emotion/styled": "^11.
|
|
14
|
-
"@mui/
|
|
15
|
-
"@mui/
|
|
16
|
-
"@mui/
|
|
17
|
-
"@mui/
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@types/node": "^12.20.19",
|
|
24
|
-
"@types/react": "^17.0.18",
|
|
25
|
-
"@types/react-dom": "^17.0.9",
|
|
26
|
-
"@types/react-router-dom": "^5.1.8",
|
|
27
|
-
"@types/redux-logger": "^3.0.9",
|
|
28
|
-
"@types/validator": "13.7.0",
|
|
17
|
+
"@emotion/react": "^11.11.1",
|
|
18
|
+
"@emotion/styled": "^11.11.0",
|
|
19
|
+
"@mui/base": "^5.0.0-beta.70",
|
|
20
|
+
"@mui/icons-material": "^5.14.1",
|
|
21
|
+
"@mui/lab": "^5.0.0-alpha.137",
|
|
22
|
+
"@mui/material": "^5.14.1",
|
|
23
|
+
"@mui/system": "^5.14.1",
|
|
24
|
+
"@mui/utils": "^7.3.9",
|
|
25
|
+
"@pagopa/mui-italia": "^2.4.1",
|
|
26
|
+
"@pagopa/ts-commons": "^13.1.2",
|
|
27
|
+
"@reduxjs/toolkit": "^2.9.0",
|
|
29
28
|
"async": "3.2.4",
|
|
30
29
|
"core-js": "^3.20.2",
|
|
31
|
-
"env-var": "^7.1.1",
|
|
32
30
|
"fp-ts": "^2.11.5",
|
|
33
|
-
"i18next": "^
|
|
31
|
+
"i18next": "^25.4.2",
|
|
32
|
+
"i18next-browser-languagedetector": "^8.0.0",
|
|
34
33
|
"io-ts": "^2.2.16",
|
|
35
34
|
"lodash": "^4.17.21",
|
|
36
|
-
"mixpanel-browser": "^2.
|
|
37
|
-
"
|
|
38
|
-
"react": "^
|
|
39
|
-
"react-
|
|
40
|
-
"react-dom": "^17.0.2",
|
|
41
|
-
"react-i18next": "^11.15.6",
|
|
35
|
+
"mixpanel-browser": "^2.74.0",
|
|
36
|
+
"react": "^18.2.0",
|
|
37
|
+
"react-dom": "^18.2.0",
|
|
38
|
+
"react-i18next": "^15.1.2",
|
|
42
39
|
"react-md-spinner": "^1.0.0",
|
|
43
40
|
"react-redux": "^7.2.6",
|
|
44
41
|
"react-router-dom": "^5.2.0",
|
|
45
|
-
"
|
|
46
|
-
"redux-logger": "^3.0.6",
|
|
47
|
-
"typescript": "^4.3.5",
|
|
48
|
-
"validator": "13.7.0",
|
|
49
|
-
"web-vitals": "^1.1.2"
|
|
42
|
+
"redux-logger": "^3.0.6"
|
|
50
43
|
},
|
|
51
44
|
"scripts": {
|
|
52
45
|
"clean": "npm-run-all clean:*",
|
|
53
46
|
"setTsConfigStart": "copyfiles tsconfigStart.json build && renamer --replace tsconfig.json build/tsconfigStart.json && copyfiles -u 1 build/tsconfig.json . && rimraf build/tsconfig.json",
|
|
54
|
-
"start": "
|
|
55
|
-
"build": "
|
|
47
|
+
"start": "vite",
|
|
48
|
+
"build": "vite build",
|
|
56
49
|
"clean:build": "rimraf build",
|
|
57
50
|
"setTsConfigDist": "copyfiles tsconfigDist.json build && renamer --replace tsconfig.json build/tsconfigDist.json && copyfiles -u 1 build/tsconfig.json . && rimraf build/tsconfig.json",
|
|
58
51
|
"cpDistStatic": "copyfiles -u 2 src/lib/index.css src/lib/utils/fixSwagger20ArraySchemaDef.js dist && copyfiles package.json README.md CHANGELOG.md dist",
|
|
59
52
|
"dist": "yarn setTsConfigDist && tsc && yarn cpDistStatic",
|
|
60
53
|
"clean:dist": "rimraf dist",
|
|
61
|
-
"test": "
|
|
62
|
-
"test:coverage": "
|
|
54
|
+
"test": "vitest run",
|
|
55
|
+
"test:coverage": "vitest run --coverage",
|
|
63
56
|
"clean:coverage": "rimraf coverage",
|
|
64
57
|
"lint-autofix": "yarn setTsConfigStart && eslint . -c .eslintrc.js --ext .ts,.tsx --fix",
|
|
65
58
|
"lint": "yarn setTsConfigStart && eslint . -c .eslintrc.js --ext .ts,.tsx ",
|
|
66
59
|
"prettify": "prettier --write \"./**/*.{ts,tsx}\"",
|
|
67
60
|
"version": "auto-changelog -p --config .auto-changelog.json && git add CHANGELOG.md"
|
|
68
61
|
},
|
|
69
|
-
"eslintConfig": {
|
|
70
|
-
"extends": [
|
|
71
|
-
"react-app",
|
|
72
|
-
"react-app/jest"
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
"browserslist": {
|
|
76
|
-
"production": [
|
|
77
|
-
">0.2%",
|
|
78
|
-
"not dead",
|
|
79
|
-
"not op_mini all"
|
|
80
|
-
],
|
|
81
|
-
"development": [
|
|
82
|
-
"last 1 chrome version",
|
|
83
|
-
"last 1 firefox version",
|
|
84
|
-
"last 1 safari version"
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
62
|
"devDependencies": {
|
|
88
|
-
"@pagopa/openapi-codegen-ts": "^
|
|
89
|
-
"@testing-library/jest-dom": "^
|
|
90
|
-
"@testing-library/react": "^
|
|
91
|
-
"@testing-library/user-event": "^
|
|
92
|
-
"@types/
|
|
63
|
+
"@pagopa/openapi-codegen-ts": "^14.2.0",
|
|
64
|
+
"@testing-library/jest-dom": "^6.1.5",
|
|
65
|
+
"@testing-library/react": "^14.1.2",
|
|
66
|
+
"@testing-library/user-event": "^14.5.2",
|
|
67
|
+
"@types/lodash": "^4.14.172",
|
|
68
|
+
"@types/mixpanel-browser": "^2.38.0",
|
|
69
|
+
"@types/node": "^22.10.1",
|
|
70
|
+
"@types/react": "^18.2.0",
|
|
71
|
+
"@types/react-dom": "^18.2.0",
|
|
72
|
+
"@types/react-redux": "^7.1.33",
|
|
73
|
+
"@types/react-router-dom": "^5.1.8",
|
|
74
|
+
"@types/redux-logger": "^3.0.9",
|
|
93
75
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
94
76
|
"@typescript-eslint/parser": "^5.0.0",
|
|
95
|
-
"
|
|
77
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
78
|
+
"@vitest/browser": "^4.0.18",
|
|
79
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
96
80
|
"auto-changelog": "^2.3.0",
|
|
97
81
|
"copyfiles": "^2.4.1",
|
|
98
82
|
"eslint": "7.11.0",
|
|
@@ -102,28 +86,19 @@
|
|
|
102
86
|
"eslint-plugin-react": "^7.26.1",
|
|
103
87
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
104
88
|
"eslint-plugin-sonarjs": "^0.10.0",
|
|
89
|
+
"jsdom": "^28.1.0",
|
|
105
90
|
"mkdirp": "^1.0.4",
|
|
106
91
|
"npm-run-all": "^4.1.5",
|
|
107
|
-
"prettier": "^
|
|
92
|
+
"prettier": "^3.6.2",
|
|
108
93
|
"regex-replace": "^2.3.1",
|
|
109
94
|
"renamer": "^4.0.0",
|
|
110
|
-
"rimraf": "^
|
|
95
|
+
"rimraf": "^6.0.1",
|
|
96
|
+
"typescript": "^5.9.2",
|
|
97
|
+
"vite": "^7.3.1",
|
|
98
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
99
|
+
"vitest": "^4.0.18"
|
|
111
100
|
},
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"clearMocks": true,
|
|
115
|
-
"resetMocks": true,
|
|
116
|
-
"coveragePathIgnorePatterns": [
|
|
117
|
-
"src/index.tsx",
|
|
118
|
-
"src/reportWebVitals.ts",
|
|
119
|
-
"src/api/generated",
|
|
120
|
-
"src/examples/*",
|
|
121
|
-
"src/AppExample.tsx",
|
|
122
|
-
"src/lib/utils/fixSwagger20ArraySchemaDef.js",
|
|
123
|
-
"src/lib/common-polyfill.ts",
|
|
124
|
-
"src/lib/index.ts",
|
|
125
|
-
"src/lib/components/icons/*",
|
|
126
|
-
"src/lib/model/*"
|
|
127
|
-
]
|
|
101
|
+
"resolutions": {
|
|
102
|
+
"@types/react": "18.3.16"
|
|
128
103
|
}
|
|
129
104
|
}
|
package/build.info
DELETED
package/common-polyfill.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
require("react-app-polyfill/ie11");
|
|
4
|
-
require("core-js/es/object/entries");
|
|
5
|
-
require("core-js/es/object/from-entries");
|
|
6
|
-
require("core-js/es/object/values");
|
|
7
|
-
require("core-js/es/map");
|
|
8
|
-
require("core-js/es/promise");
|
|
9
|
-
require("core-js/es/array");
|
|
10
|
-
require("core-js/stable/string");
|
|
11
|
-
require("core-js/stable/number");
|
|
12
|
-
require("core-js/stable/url-search-params");
|
|
13
|
-
//# sourceMappingURL=common-polyfill.js.map
|
package/common-polyfill.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-polyfill.js","sourceRoot":"","sources":["../src/lib/common-polyfill.ts"],"names":[],"mappings":";;AAAA,mCAAiC;AACjC,qCAAmC;AACnC,0CAAwC;AACxC,oCAAkC;AAClC,0BAAwB;AACxB,8BAA4B;AAC5B,4BAA0B;AAC1B,iCAA+B;AAC/B,iCAA+B;AAC/B,4CAA0C"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const icons_material_1 = require("@mui/icons-material");
|
|
5
|
-
const mui_italia_1 = require("@pagopa/mui-italia");
|
|
6
|
-
const react_i18next_1 = require("react-i18next");
|
|
7
|
-
function BackComponent({ goBack }) {
|
|
8
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { size: "small", component: "button", onClick: goBack, startIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ArrowBack, {}), sx: { color: 'primary.main' }, weight: "default", children: t('common.backComponent.label') }));
|
|
10
|
-
}
|
|
11
|
-
exports.default = BackComponent;
|
|
12
|
-
//# sourceMappingURL=BackComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BackComponent.js","sourceRoot":"","sources":["../../src/lib/components/BackComponent.tsx"],"names":[],"mappings":";;;AAAA,wDAAgD;AAChD,mDAAiD;AACjD,iDAA+C;AAK/C,SAAwB,aAAa,CAAC,EAAE,MAAM,EAAS;IACrD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,uBAAC,wBAAW,IACV,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,uBAAC,0BAAS,KAAG,EACxB,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAC7B,MAAM,EAAC,SAAS,YAEf,CAAC,CAAC,4BAA4B,CAAC,GACpB,CACf,CAAC;AACJ,CAAC;AAdD,gCAcC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
/** Avatar to use to load Organization logo */
|
|
8
|
-
function CustomAvatar({ customAlt, customSrc, customWidth, customHeight, id, loading, }) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { id: id, alt: customAlt, src: customSrc, sx: {
|
|
10
|
-
width: customWidth,
|
|
11
|
-
height: customHeight,
|
|
12
|
-
display: !loading ? undefined : 'none',
|
|
13
|
-
color: 'palette.background.default',
|
|
14
|
-
backgroundColor: '#CCD4DC',
|
|
15
|
-
} }) }));
|
|
16
|
-
}
|
|
17
|
-
exports.default = CustomAvatar;
|
|
18
|
-
//# sourceMappingURL=CustomAvatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAvatar.js","sourceRoot":"","sources":["../../src/lib/components/CustomAvatar.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,4CAAuC;AAiBvC,8CAA8C;AAC9C,SAAwB,YAAY,CAAC,EACnC,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAY,EACZ,EAAE,EACF,OAAO,GACD;IACN,OAAO,CACL,uBAAC,eAAK,CAAC,QAAQ,cACb,uBAAC,iBAAM,IACL,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,EAAE,EAAE;gBACF,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,YAAY;gBACpB,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;gBACtC,KAAK,EAAE,4BAA4B;gBACnC,eAAe,EAAE,SAAS;aAC3B,GACD,GACa,CAClB,CAAC;AACJ,CAAC;AAxBD,+BAwBC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const PaginationItem_1 = tslib_1.__importDefault(require("@mui/material/PaginationItem"));
|
|
7
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
|
-
function defaultLabelDisplayedRows(from, to, count) {
|
|
9
|
-
// eslint-disable-next-line sonarjs/no-nested-template-literals
|
|
10
|
-
return `${from}-${to} di ${count !== -1 ? count : `più di ${to}`}`;
|
|
11
|
-
}
|
|
12
|
-
const getLabelDisplayedRowsTo = (count, page, size) => {
|
|
13
|
-
if (count === -1) {
|
|
14
|
-
return (page + 1) * size;
|
|
15
|
-
}
|
|
16
|
-
return size === -1 ? count : Math.min(count, (page + 1) * size);
|
|
17
|
-
};
|
|
18
|
-
/** Selfcare custom table available pages component */
|
|
19
|
-
function CustomPagination({ page, onPageRequest, sort }) {
|
|
20
|
-
const count = page.totalElements;
|
|
21
|
-
const from = count === 0 ? 0 : page.number * page.size + 1;
|
|
22
|
-
const to = getLabelDisplayedRowsTo(count, page.number, page.size);
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { padding: '0 10px' }, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, display: "flex", justifyContent: "start", alignItems: 'center', children: defaultLabelDisplayedRows(from, to, count) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end", alignItems: 'center', children: page.totalElements > page.size && ((0, jsx_runtime_1.jsx)(material_1.Pagination, { sx: { display: 'flex' }, color: "primary", shape: "rounded", page: page.number + 1, count: page.totalPages, renderItem: (props2) => ((0, jsx_runtime_1.jsx)(PaginationItem_1.default, { ...props2, sx: { border: 'none' }, variant: "outlined" })), onChange: (_event, value) => (onPageRequest({
|
|
24
|
-
page: value - 1,
|
|
25
|
-
size: page.size,
|
|
26
|
-
sort,
|
|
27
|
-
}),
|
|
28
|
-
window.scrollTo(0, 0)) })) })] }) }));
|
|
29
|
-
}
|
|
30
|
-
exports.default = CustomPagination;
|
|
31
|
-
//# sourceMappingURL=CustomPagination.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomPagination.js","sourceRoot":"","sources":["../../src/lib/components/CustomPagination.tsx"],"names":[],"mappings":";;;;AAAA,4CAAiD;AACjD,0FAA0D;AAC1D,0DAA0B;AAI1B,SAAS,yBAAyB,CAAC,IAAY,EAAE,EAAU,EAAE,KAAa;IACxE,+DAA+D;IAC/D,OAAO,GAAG,IAAI,IAAI,EAAE,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,EAAE,EAAE,EAAE,CAAC;AACrE,CAAC;AAED,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE;IAC5E,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;QAChB,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;KAC1B;IAED,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAClE,CAAC,CAAC;AAWF,sDAAsD;AACtD,SAAwB,gBAAgB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAS;IAC3E,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC;IACjC,MAAM,IAAI,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC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AC,CAAC,EAAE,CAAC,CAAC,CACtB,GACD,CACH,GACI,IACF,GACQ,CAClB,CAAC;AACJ,CAAC;AApCD,mCAoCC"}
|
package/components/EndingPage.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
/** Selfcare's Ending Page */
|
|
6
|
-
exports.default = ({ minHeight, description, onButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, }) => ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { minHeight, position: 'static' }, display: "flex", flexGrow: 1, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto', children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 3, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: icon }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, children: title }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 1, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: description }) }) }), onButtonClick && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, children: (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", sx: { alignSelf: 'center' }, onClick: onButtonClick, children: buttonLabel }) }) })), isParagraphPresent && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 6, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: paragraph }) }) }))] }, "0") }));
|
|
7
|
-
//# sourceMappingURL=EndingPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":";;;AAAA,4CAA4E;AAsD5E,6BAA6B;AAC7B,kBAAe,CAAC,EACd,SAAS,EACT,WAAW,EACX,aAAa,EACb,IAAI,EACJ,KAAK,EACL,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,kBAAkB,GACZ,EAAE,EAAE,CAAC,CACX,uBAAC,cAAG,IAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAE,CAAC,YACpE,wBAAC,eAAI,IAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAS,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,aACvF,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,YAChD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACb,IAAI,GACA,GACF,EACP,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,YAC1C,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,YAAY,YAAG,KAAK,GAAc,GAClD,GACF,EACP,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACvD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,WAAW,GAAc,GAC9D,GACF,EACN,aAAa,IAAI,CAChB,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,YAC1C,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,iBAAM,IAAC,OAAO,EAAC,WAAW,EAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,aAAa,YAC5E,WAAW,GACL,GACJ,GACF,CACR,EAEA,kBAAkB,IAAI,CACrB,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACvD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,SAAS,GAAc,GAC5D,GACF,CACR,KAhCoC,GAAG,CAiCnC,GACH,CACP,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TFunction } from 'react-i18next';
|
|
3
|
-
interface Props {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
assistanceEmail?: string;
|
|
6
|
-
minHeight?: '52vh' | '100vh';
|
|
7
|
-
t: TFunction<'translation', undefined>;
|
|
8
|
-
showCloseIcon?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: import("react").ComponentType<Omit<import("react-i18next").Subtract<Props, import("react-i18next").WithTranslationProps>, keyof import("react-i18next").WithTranslation<N>> & import("react-i18next").WithTranslationProps>;
|
|
11
|
-
export default _default;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const lodash_1 = require("lodash");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const reselect_1 = require("reselect");
|
|
9
|
-
const react_i18next_1 = require("react-i18next");
|
|
10
|
-
const ErrorOutlineOutlined_1 = tslib_1.__importDefault(require("@mui/icons-material/ErrorOutlineOutlined"));
|
|
11
|
-
const appStateSlice_1 = require("../../redux/slices/appStateSlice");
|
|
12
|
-
const errorService_1 = require("../../services/errorService");
|
|
13
|
-
const SessionModal_1 = tslib_1.__importDefault(require("../SessionModal"));
|
|
14
|
-
const Toast_1 = tslib_1.__importDefault(require("../Toast"));
|
|
15
|
-
const BlockingErrorPage_1 = tslib_1.__importDefault(require("./components/BlockingErrorPage"));
|
|
16
|
-
/** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
|
|
17
|
-
It allows to dispatch errors in order to display a warning or the error page to the user.
|
|
18
|
-
Errors dispatched will be notified using errorService
|
|
19
|
-
|
|
20
|
-
To use this feature you have to put ErrorBoundary in your App as a child of a redux Provider component.
|
|
21
|
-
In order to dispatch an error you have to use the custom hook useErrorDispatcher which will return a fuction to be used to dispatch the error. */
|
|
22
|
-
class ErrorBoundary extends react_1.Component {
|
|
23
|
-
constructor(props) {
|
|
24
|
-
super(props);
|
|
25
|
-
this.buildNotBlockingError.bind(this);
|
|
26
|
-
this.buildErrorModal.bind(this);
|
|
27
|
-
this.buildErrorToast.bind(this);
|
|
28
|
-
this.handleClose.bind(this);
|
|
29
|
-
this.popError.bind(this);
|
|
30
|
-
this.retryError.bind(this);
|
|
31
|
-
}
|
|
32
|
-
componentDidCatch(error, errorInfo) {
|
|
33
|
-
this.props.addError({
|
|
34
|
-
id: (0, lodash_1.uniqueId)('uncaught-'),
|
|
35
|
-
techDescription: 'Uncaught error',
|
|
36
|
-
error,
|
|
37
|
-
errorInfo,
|
|
38
|
-
blocking: true,
|
|
39
|
-
toNotify: true,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
const hasError = this.props.errors.length > 0;
|
|
44
|
-
const blockingErrors = this.props.errors.filter((e) => e.blocking);
|
|
45
|
-
const hasBlockingError = blockingErrors.length > 0;
|
|
46
|
-
if (hasError) {
|
|
47
|
-
(0, errorService_1.handleErrors)(this.props.errors);
|
|
48
|
-
}
|
|
49
|
-
if (!hasBlockingError) {
|
|
50
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [this.props.children, hasError && this.buildNotBlockingError(this.props.errors)] }));
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(BlockingErrorPage_1.default, { description: blockingErrors[0].displayableDescription, assistanceEmail: this.props.assistanceEmail, minHeight: this.props.minHeight }));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
buildNotBlockingError(errors) {
|
|
57
|
-
const errorModal = errors.find((e) => e.component === 'SessionModal');
|
|
58
|
-
const errorToast = errors.find((e) => e.component === 'Toast');
|
|
59
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [errorModal && this.buildErrorModal(errorModal), errorToast && this.buildErrorToast(errorToast)] }));
|
|
60
|
-
}
|
|
61
|
-
buildErrorToast(error) {
|
|
62
|
-
var _a, _b;
|
|
63
|
-
if (error.autoclosable === 'timer') {
|
|
64
|
-
setTimeout(() => this.handleClose(error), error.autocloseMilliseconds);
|
|
65
|
-
}
|
|
66
|
-
return ((0, jsx_runtime_1.jsx)(Toast_1.default, { open: true, title: (_a = error.displayableTitle) !== null && _a !== void 0 ? _a : this.props.t('common.errorBoundary.toastError'), message: (_b = error.displayableDescription) !== null && _b !== void 0 ? _b : this.props.t('common.errorBoundary.toastMessage'), logo: ErrorOutlineOutlined_1.default, toastColorIcon: "#FE6666", leftBorderColor: "#FE6666", onCloseToast: () => this.handleClose(error), width: error.width, showToastCloseIcon: error.showCloseIcon }));
|
|
67
|
-
}
|
|
68
|
-
buildErrorModal(error) {
|
|
69
|
-
var _a, _b;
|
|
70
|
-
return ((0, jsx_runtime_1.jsx)(SessionModal_1.default, { open: true, title: (_a = error.displayableTitle) !== null && _a !== void 0 ? _a : this.props.t('common.errorBoundary.sessionModalTitle'), message: (_b = error.displayableDescription) !== null && _b !== void 0 ? _b : this.props.t('common.errorBoundary.sessionModalMessage'), onConfirm: error.onRetry ? () => this.retryError(error) : undefined, handleClose: () => this.handleClose(error), width: error.width, showCloseIcon: error.showCloseIcon }));
|
|
71
|
-
}
|
|
72
|
-
retryError(error) {
|
|
73
|
-
this.popError(error);
|
|
74
|
-
if (error.onRetry) {
|
|
75
|
-
error.onRetry();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
popError(error) {
|
|
79
|
-
this.props.removeError(error);
|
|
80
|
-
}
|
|
81
|
-
handleClose(error) {
|
|
82
|
-
this.popError(error);
|
|
83
|
-
if (error.onClose) {
|
|
84
|
-
error.onClose();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
const errorsSelector = (0, reselect_1.createSelector)(appStateSlice_1.appStateSelectors.selectErrors, (errors) => errors);
|
|
89
|
-
function mapStateToProps(state) {
|
|
90
|
-
return { errors: errorsSelector(state) };
|
|
91
|
-
}
|
|
92
|
-
const mapDispatchToProps = (dispatch) => ({
|
|
93
|
-
addError: (error) => dispatch(appStateSlice_1.appStateActions.addError(error)),
|
|
94
|
-
removeError: (error) => dispatch(appStateSlice_1.appStateActions.removeError(error)),
|
|
95
|
-
});
|
|
96
|
-
const ErrorBoundaryConnected = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(ErrorBoundary);
|
|
97
|
-
exports.default = (0, react_i18next_1.withTranslation)()(ErrorBoundaryConnected);
|
|
98
|
-
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -1 +0,0 @@
|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,EAAE,CAAC;SACjB;IACH,CAAC;IAED,QAAQ,CAAC,KAAe;QACtB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,WAAW,CAAC,KAAe;QACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACrB,IAAI,KAAK,CAAC,OAAO,EAAE;YACjB,KAAK,CAAC,OAAO,EAAE,CAAC;SACjB;IACH,CAAC;CACF;AACD,MAAM,cAAc,GAAG,IAAA,yBAAc,EAAC,iCAAiB,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;AAE1F,SAAS,eAAe,CAAC,KAAU;IACjC,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;AAC3C,CAAC;AAED,MAAM,kBAAkB,GAAG,CAAC,QAA0B,EAAE,EAAE,CAAC,CAAC;IAC1D,QAAQ,EAAE,CAAC,KAAe,EAAE,EAAE,CAAC,QAAQ,CAAC,+BAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxE,WAAW,EAAE,CAAC,KAAe,EAAE,EAAE,CAAC,QAAQ,CAAC,+BAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;CAC/E,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAA0C,IAAA,qBAAO,EAC3E,eAAe,EACf,kBAAkB,CACnB,CAAC,aAAa,CAAC,CAAC;AACjB,kBAAe,IAAA,+BAAe,GAAE,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_i18next_1 = require("react-i18next");
|
|
6
|
-
const assistanceService_1 = require("../../../services/assistanceService");
|
|
7
|
-
const EndingPage_1 = tslib_1.__importDefault(require("../../EndingPage"));
|
|
8
|
-
const ErrorIcon_1 = tslib_1.__importDefault(require("../../icons/ErrorIcon"));
|
|
9
|
-
exports.default = ({ description, assistanceEmail, minHeight = '100vh' }) => {
|
|
10
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(EndingPage_1.default, { minHeight: minHeight, icon: (0, jsx_runtime_1.jsx)(ErrorIcon_1.default, {}), title: t('common.blockingErrorPage.title'), description: description !== null && description !== void 0 ? description : t('common.blockingErrorPage.description'), onButtonClick: assistanceEmail
|
|
12
|
-
? () => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))
|
|
13
|
-
: undefined, buttonLabel: t('common.blockingErrorPage.buttonLabel') }));
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=BlockingErrorPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockingErrorPage.js","sourceRoot":"","sources":["../../../../src/lib/components/ErrorBoundary/components/BlockingErrorPage.tsx"],"names":[],"mappings":";;;;AAAA,iDAA+C;AAC/C,2EAAyE;AACzE,0EAA0C;AAC1C,8EAA8C;AAO9C,kBAAe,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,GAAG,OAAO,EAAS,EAAE,EAAE;IAC9E,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,uBAAC,oBAAU,IACT,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,uBAAC,mBAAS,KAAG,EACnB,KAAK,EAAE,CAAC,CAAC,gCAAgC,CAAC,EAC1C,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,CAAC,CAAC,sCAAsC,CAAC,EACrE,aAAa,EACX,eAAe;YACb,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAA,sCAAkB,EAAC,eAAe,CAAC,CAAC;YACnE,CAAC,CAAC,SAAS,EAEf,WAAW,EAAE,CAAC,CAAC,sCAAsC,CAAC,GACtD,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const Dialog_1 = tslib_1.__importDefault(require("@mui/material/Dialog"));
|
|
8
|
-
const useMediaQuery_1 = tslib_1.__importDefault(require("@mui/material/useMediaQuery"));
|
|
9
|
-
const styles_1 = require("@mui/material/styles");
|
|
10
|
-
const ClearOutlined_1 = tslib_1.__importDefault(require("@mui/icons-material/ClearOutlined"));
|
|
11
|
-
const react_i18next_1 = require("react-i18next");
|
|
12
|
-
/** Modal used to show a list of values from which to choose a single value */
|
|
13
|
-
function FilterModal({ open, handleClose, title, filterModalConfig, height = '16em', minHeight = '16em', }) {
|
|
14
|
-
const theme = (0, styles_1.useTheme)();
|
|
15
|
-
const fullScreen = (0, useMediaQuery_1.default)(theme.breakpoints.down('xs'));
|
|
16
|
-
React.useEffect(() => setValueRadio(''), [open]);
|
|
17
|
-
const [valueRadio, setValueRadio] = React.useState('');
|
|
18
|
-
const { t } = (0, react_i18next_1.useTranslation)();
|
|
19
|
-
const handleChange = (_, value) => {
|
|
20
|
-
setValueRadio(value);
|
|
21
|
-
};
|
|
22
|
-
const submitFilter = (event) => {
|
|
23
|
-
const i = data.filter((value) => value.id === valueRadio).map((x) => x)[0];
|
|
24
|
-
filterModalConfig === null || filterModalConfig === void 0 ? void 0 : filterModalConfig.onFilterChange(i === undefined ? valueRadio : i);
|
|
25
|
-
handleClose(event);
|
|
26
|
-
};
|
|
27
|
-
const data = (filterModalConfig === null || filterModalConfig === void 0 ? void 0 : filterModalConfig.data) !== undefined ? filterModalConfig === null || filterModalConfig === void 0 ? void 0 : filterModalConfig.data : [];
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fullScreen: fullScreen, open: open, "aria-labelledby": "responsive-dialog-title", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, direction: "column", sx: { height, minHeight, width: '21.9em' }, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { mx: 3, sx: { height: '100%' }, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, mt: 4, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 10, children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: (e) => {
|
|
29
|
-
setValueRadio('');
|
|
30
|
-
handleClose(e);
|
|
31
|
-
}, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: (0, jsx_runtime_1.jsx)(ClearOutlined_1.default, {}) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", sx: { fontSize: '18px', fontWeight: '600' }, children: `${t('common.filterModal.title')} ${title}` })] }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, my: 3, children: (0, jsx_runtime_1.jsx)(material_1.RadioGroup, { "aria-label": "gender", name: "controlled-radio-buttons-group", value: valueRadio, onChange: handleChange, children: data.map((value, index) => {
|
|
32
|
-
var _a;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: filterModalConfig === null || filterModalConfig === void 0 ? void 0 : filterModalConfig.getValue(value), control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: (_a = filterModalConfig === null || filterModalConfig === void 0 ? void 0 : filterModalConfig.getLabel(value)) !== null && _a !== void 0 ? _a : '' }, index));
|
|
34
|
-
}) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, mb: 2, children: (0, jsx_runtime_1.jsx)(material_1.Button, { sx: { width: '100%', marginBottom: '20px' }, color: "primary", variant: "contained", onClick: submitFilter, children: t('common.filterModal.button') }) })] }) }) }));
|
|
35
|
-
}
|
|
36
|
-
exports.default = FilterModal;
|
|
37
|
-
//# sourceMappingURL=FilterModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterModal.js","sourceRoot":"","sources":["../../src/lib/components/FilterModal.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,4CASuB;AACvB,0EAA0C;AAC1C,wFAAwD;AACxD,iDAAgD;AAChD,8FAAkE;AAClE,iDAA+C;AA2B/C,8EAA8E;AAC9E,SAAwB,WAAW,CAAC,EAClC,IAAI,EACJ,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,MAAM,GAAG,MAAM,EACf,SAAS,GAAG,MAAM,GACZ;IACN,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAC;IACzB,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE/D,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEjD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAS,EAAE,CAAC,CAAC;IAE/D,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,MAAM,YAAY,GAAG,CAAC,CAAsC,EAAE,KAAU,EAAE,EAAE;QAC1E,aAAa,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,CAAC,KAAsD,EAAE,EAAE;QAC9E,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,UAAU,CAA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