@pagopa/selfcare-common-frontend 1.34.49 → 1.34.51

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 CHANGED
@@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [v1.34.49](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.49)
7
+ #### [v1.34.51](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.51)
8
8
 
9
+ - feat: Introduced support for region languages+save language into session storage [`#258`](https://github.com/pagopa/selfcare-common-frontend/pull/258)
9
10
  - [SELC-6042] fix: Ensuring detection language and fix unit tests [`#256`](https://github.com/pagopa/selfcare-common-frontend/pull/256)
10
11
  - [SELC-5944] feat: Resolved vulnerability from nth-check library [`#251`](https://github.com/pagopa/selfcare-common-frontend/pull/251)
11
12
  - [SELC-5578] Feat: Add CustomAlert Component for Reusable Alert Messages [`#240`](https://github.com/pagopa/selfcare-common-frontend/pull/240)
@@ -84,14 +85,29 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
84
85
  - SELC-2590 [`#2590`](https://pagopa.atlassian.net/browse/2590)
85
86
  - SELC-2590 - update common (#185) [`#2590`](https://pagopa.atlassian.net/browse/2590)
86
87
  - SELC-2590 - update common [`#2590`](https://pagopa.atlassian.net/browse/2590)
87
- - Used a environment variable to manage correct links in the footer based to product and actual environment [`960e2fb`](https://github.com/pagopa/selfcare-common-frontend/commit/960e2fbaa8aa8f79061639b26dc1a27f28b8aae3)
88
- - Bump braces from 3.0.2 to 3.0.3 [`108f2bc`](https://github.com/pagopa/selfcare-common-frontend/commit/108f2bc263bd7e377247ffc8ccd2f978199e3366)
89
- - build(deps): bump http-proxy-middleware from 2.0.6 to 2.0.7 [`0b8dba0`](https://github.com/pagopa/selfcare-common-frontend/commit/0b8dba035f7ccd2f0c30528c801f31ad90cb6f85)
88
+ - Bump rimraf from 3.0.2 to 6.0.1 [`e6941b9`](https://github.com/pagopa/selfcare-common-frontend/commit/e6941b9e6b05c973d991e2470a851b5ca03926ce)
89
+ - Bump validator and @types/validator [`bca7ef1`](https://github.com/pagopa/selfcare-common-frontend/commit/bca7ef12f16fa24b75d5acbe5a96e1509c479b9e)
90
+ - Bump react and @types/react [`12e0229`](https://github.com/pagopa/selfcare-common-frontend/commit/12e02297e407502c4d1c4e97b1396e5e5de1cd9f)
90
91
 
91
- #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.48...v1.35.0)
92
+ #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.50...v1.35.0)
92
93
 
93
94
  > 20 July 2023
94
95
 
96
+ #### [v1.34.50](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.49...v1.34.50)
97
+
98
+ > 2 December 2024
99
+
100
+ - Bump rimraf from 3.0.2 to 6.0.1 [`e6941b9`](https://github.com/pagopa/selfcare-common-frontend/commit/e6941b9e6b05c973d991e2470a851b5ca03926ce)
101
+ - Bump validator and @types/validator [`bca7ef1`](https://github.com/pagopa/selfcare-common-frontend/commit/bca7ef12f16fa24b75d5acbe5a96e1509c479b9e)
102
+ - Bump react and @types/react [`12e0229`](https://github.com/pagopa/selfcare-common-frontend/commit/12e02297e407502c4d1c4e97b1396e5e5de1cd9f)
103
+
104
+ #### [v1.34.49](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.48...v1.34.49)
105
+
106
+ > 26 November 2024
107
+
108
+ - [SELC-6042] fix: Ensuring detection language and fix unit tests [`#256`](https://github.com/pagopa/selfcare-common-frontend/pull/256)
109
+ - [SELC-6042] fix: Ensuring detection language and fix unit tests (#256) [`#6042`](https://pagopa.atlassian.net/browse/6042)
110
+
95
111
  #### [v1.34.48](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.47...v1.34.48)
96
112
 
97
113
  > 26 November 2024
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20241126.3 - selfcare-common-frontend.deploy(185844)
2
- tags/v1.29.0~1^2 394e54e1398bf0539d941014ec687b6d41d19fec
1
+ 20241202.3 - selfcare-common-frontend.deploy(186886)
2
+ tags/v1.29.0~1^2 02a1f4465c9d8c97e809de18164a636643e2f43e
@@ -20,8 +20,8 @@ const configureI18n = (resources, defaultLanguage = 'it') => {
20
20
  sl: { translation: { ...sl_1.default, ...resources.sl } },
21
21
  };
22
22
  i18next_1.default
23
- .use(i18next_browser_languagedetector_1.default)
24
23
  .use(react_i18next_1.initReactI18next)
24
+ .use(i18next_browser_languagedetector_1.default)
25
25
  .init({
26
26
  resources: completeResources,
27
27
  fallbackLng: defaultLanguage,
@@ -30,8 +30,17 @@ const configureI18n = (resources, defaultLanguage = 'it') => {
30
30
  },
31
31
  detection: {
32
32
  order: ['querystring', 'sessionStorage', 'navigator'],
33
- lookupSessionStorage: 'i18nextLng',
33
+ caches: ['sessionStorage'],
34
+ lookupSessionStorage: 'lang',
34
35
  },
36
+ })
37
+ .then(() => {
38
+ i18next_1.default.on('languageChanged', (lng) => {
39
+ if (lng.includes('-')) {
40
+ const normalizedLng = lng.split('-')[0];
41
+ void i18next_1.default.changeLanguage(normalizedLng);
42
+ }
43
+ });
35
44
  })
36
45
  .catch((err) => {
37
46
  throw new Error(err);
@@ -1 +1 @@
1
- {"version":3,"file":"locale-utils.js","sourceRoot":"","sources":["../../../src/lib/locale/locale-utils.ts"],"names":[],"mappings":";;;;AAAA,iDAAiD;AACjD,gHAAgE;AAChE,8DAA2B;AAC3B,sDAAsB;AACtB,sDAAsB;AACtB,sDAAsB;AACtB,sDAAsB;AACtB,sDAAsB;AAEf,MAAM,aAAa,GAAG,CAC3B,SAAkC,EAClC,kBAA0B,IAAI,EAC9B,EAAE;IACF,MAAM,iBAAiB,GAAG;QACxB,GAAG,SAAS;QACZ,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,GAAG,YAAE,EAAE,GAA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AAC,GAAG,EAAE,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAtCW,QAAA,aAAa,iBAsCxB;AACF,kBAAe,iBAAI,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pagopa/selfcare-common-frontend",
3
3
  "description": "Shared React components for the pagopa selfcare project",
4
- "version": "1.34.49",
4
+ "version": "1.34.51",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",
@@ -16,17 +16,8 @@
16
16
  "@mui/material": "^5.14.1",
17
17
  "@mui/system": "^5.14.1",
18
18
  "@pagopa/mui-italia": "^1.5.0",
19
- "@pagopa/ts-commons": "^10.2.1",
19
+ "@pagopa/ts-commons": "^13.1.2",
20
20
  "@reduxjs/toolkit": "^1.6.2",
21
- "@types/lodash": "^4.14.172",
22
- "@types/mixpanel-browser": "^2.38.0",
23
- "@types/node": "^12.20.19",
24
- "@types/react": "^18.2.0",
25
- "@types/react-dom": "^18.2.0",
26
- "@types/react-redux": "^7.1.33",
27
- "@types/react-router-dom": "^5.1.8",
28
- "@types/redux-logger": "^3.0.9",
29
- "@types/validator": "13.7.0",
30
21
  "async": "3.2.4",
31
22
  "core-js": "^3.20.2",
32
23
  "env-var": "^7.1.1",
@@ -47,7 +38,7 @@
47
38
  "react-scripts": "5.0.1",
48
39
  "redux-logger": "^3.0.6",
49
40
  "typescript": "^4.3.5",
50
- "validator": "13.7.0",
41
+ "validator": "13.11.0",
51
42
  "web-vitals": "^1.1.2"
52
43
  },
53
44
  "scripts": {
@@ -88,11 +79,20 @@
88
79
  },
89
80
  "devDependencies": {
90
81
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
91
- "@pagopa/openapi-codegen-ts": "^10.0.6",
82
+ "@pagopa/openapi-codegen-ts": "^14.0.0",
92
83
  "@testing-library/jest-dom": "^6.1.5",
93
84
  "@testing-library/react": "^14.1.2",
94
- "@testing-library/user-event": "^14.5.1",
85
+ "@testing-library/user-event": "^14.5.2",
95
86
  "@types/jest": "^26.0.24",
87
+ "@types/lodash": "^4.14.172",
88
+ "@types/mixpanel-browser": "^2.38.0",
89
+ "@types/node": "^12.20.19",
90
+ "@types/react": "^18.2.0",
91
+ "@types/react-dom": "^18.2.0",
92
+ "@types/react-redux": "^7.1.33",
93
+ "@types/react-router-dom": "^5.1.8",
94
+ "@types/redux-logger": "^3.0.9",
95
+ "@types/validator": "13.11.9",
96
96
  "@typescript-eslint/eslint-plugin": "^5.0.0",
97
97
  "@typescript-eslint/parser": "^5.0.0",
98
98
  "api-spec-converter": "^2.12.0",
@@ -110,14 +110,22 @@
110
110
  "prettier": "^2.4.1",
111
111
  "regex-replace": "^2.3.1",
112
112
  "renamer": "^4.0.0",
113
- "rimraf": "^3.0.2"
113
+ "rimraf": "^6.0.1"
114
114
  },
115
115
  "resolutions": {
116
116
  "body-parser": "^1.20.3",
117
- "nth-check": ">=2.0.1",
117
+ "nth-check": "^2.0.1",
118
118
  "node-fetch": "^2.7.0",
119
119
  "validator": "^13.7.0",
120
- "jsonpath-plus": "^9.0.0"
120
+ "jsonpath-plus": "^10.0.0",
121
+ "cross-spawn": "^6.0.6",
122
+ "tough-cookie": "^4.1.3",
123
+ "xml2js": "^0.5.0",
124
+ "underscore": "^1.12.1",
125
+ "postcss": "^8.4.31",
126
+ "got": "^11.8.5",
127
+ "static-eval": "^2.0.2",
128
+ "mem": "^4.0.0"
121
129
  },
122
130
  "jest": {
123
131
  "restoreMocks": true,