@pagopa/selfcare-common-frontend 2.1.0 → 2.2.0

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,23 @@ 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
+ #### [v2.2.0](https://github.com/pagopa/selfcare-common-frontend/compare/v2.1.1...v2.2.0)
8
+
9
+ - chore: update @pagopa/mui-italia to 2.5.0, bump lodash, and remove @mui/utils [`#356`](https://github.com/pagopa/selfcare-common-frontend/pull/356)
10
+ - chore: release v2.1.1 [`#355`](https://github.com/pagopa/selfcare-common-frontend/pull/355)
11
+
12
+ #### [v2.1.1](https://github.com/pagopa/selfcare-common-frontend/compare/v2.1.0...v2.1.1)
13
+
14
+ > 29 July 2026
15
+
16
+ - [SELC-9128] feat: configuration OneTrust cookie consent [`#354`](https://github.com/pagopa/selfcare-common-frontend/pull/354)
17
+ - chore: release v2.1.0 [`#353`](https://github.com/pagopa/selfcare-common-frontend/pull/353)
18
+ - [SELC-9128] feat: configuration OneTrust cookie consent (#354) [`#9128`](https://pagopa.atlassian.net/browse/9128)
19
+
7
20
  #### [v2.1.0](https://github.com/pagopa/selfcare-common-frontend/compare/v2.0.0...v2.1.0)
8
21
 
22
+ > 28 July 2026
23
+
9
24
  - refactor: remove polyfills, update dependencies, and redesign AppExample layout [`#351`](https://github.com/pagopa/selfcare-common-frontend/pull/351)
10
25
 
11
26
  ### [v2.0.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.38.0...v2.0.0)
@@ -27,6 +27,11 @@ export declare const CONFIG: {
27
27
  COOKIE_GROUP_ANALYTICS: string;
28
28
  };
29
29
  TEST: {
30
+ /**
31
+ * Local/dev-only test token.
32
+ * Do not commit real tokens in source code. Provide it via `.env.development.local`:
33
+ * VITE_TEST_JWT=...
34
+ */
30
35
  JWT: string;
31
36
  };
32
37
  FOOTER: {
package/lib/config/env.js CHANGED
@@ -27,7 +27,12 @@ export const CONFIG = {
27
27
  COOKIE_GROUP_ANALYTICS: 'C0002',
28
28
  },
29
29
  TEST: {
30
- JWT: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHlfbmFtZSI6Im1vY2tlZCIsImZpc2NhbF9udW1iZXIiOiIyMjMzNDQ1Njc4NiIsIm5hbWUiOiJ1c2VyIiwiZnJvbV9hYSI6ZmFsc2UsInVpZCI6IjUwNTRwZWM2LTIyMzMyLTQ1ZDUtOWJkZi0yYmg5NzRhN2MxYzgiLCJsZXZlbCI6IkwyIiwiaWF0IjoxNzEwNzU4Njk0LCJleHAiOjE3MDgyNTMxODl9.qGqULn7A29daBAvc34azOgL5PhLt6Srge0PxopPj_DA',
30
+ /**
31
+ * Local/dev-only test token.
32
+ * Do not commit real tokens in source code. Provide it via `.env.development.local`:
33
+ * VITE_TEST_JWT=...
34
+ */
35
+ JWT: import.meta.env.VITE_TEST_JWT || '',
31
36
  },
32
37
  FOOTER: {
33
38
  LINK: {
@@ -19,7 +19,9 @@ export const useLogin = () => {
19
19
  const attemptSilentLogin = async () => {
20
20
  if (CONFIG.MOCKS.MOCK_USER) {
21
21
  setUser(mockedUser);
22
- storageTokenOps.write(testToken);
22
+ if (testToken) {
23
+ storageTokenOps.write(testToken);
24
+ }
23
25
  storageUserOps.write(mockedUser);
24
26
  return;
25
27
  }
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": "2.1.0",
4
+ "version": "2.2.0",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",
@@ -20,8 +20,7 @@
20
20
  "@mui/lab": "^5.0.0-alpha.137",
21
21
  "@mui/material": "^5.14.1",
22
22
  "@mui/system": "^5.14.1",
23
- "@mui/utils": "^7.3.9",
24
- "@pagopa/mui-italia": "^2.4.1",
23
+ "@pagopa/mui-italia": "2.5.0",
25
24
  "@pagopa/ts-commons": "^13.1.2",
26
25
  "@reduxjs/toolkit": "^2.9.0",
27
26
  "async": "3.2.4",
@@ -29,7 +28,7 @@
29
28
  "i18next": "^25.4.2",
30
29
  "i18next-browser-languagedetector": "^8.0.0",
31
30
  "io-ts": "^2.2.16",
32
- "lodash": "^4.17.21",
31
+ "lodash": "^4.18.1",
33
32
  "mixpanel-browser": "^2.74.0",
34
33
  "react": "^18.2.0",
35
34
  "react-dom": "^18.2.0",
@@ -93,6 +92,7 @@
93
92
  "rimraf": "^6.0.1",
94
93
  "typescript": "^5.9.2",
95
94
  "vite": "^8.1.5",
95
+ "vite-plugin-html": "^3.2.2",
96
96
  "vitest": "4.1.10"
97
97
  },
98
98
  "resolutions": {