@pagopa/selfcare-common-frontend 2.5.2 → 2.5.4
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 +14 -0
- package/lib/config/env.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,22 @@ 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.5.4](https://github.com/pagopa/selfcare-common-frontend/compare/v2.5.3...v2.5.4)
|
|
8
|
+
|
|
9
|
+
- chore: upgrade @pagopa/mui-italia from 2.5.0 to 2.7.0 [`#371`](https://github.com/pagopa/selfcare-common-frontend/pull/371)
|
|
10
|
+
- chore: release v2.5.3 [`#370`](https://github.com/pagopa/selfcare-common-frontend/pull/370)
|
|
11
|
+
|
|
12
|
+
#### [v2.5.3](https://github.com/pagopa/selfcare-common-frontend/compare/v2.5.2...v2.5.3)
|
|
13
|
+
|
|
14
|
+
> 8 October 2026
|
|
15
|
+
|
|
16
|
+
- chore: release v2.5.2 [`#368`](https://github.com/pagopa/selfcare-common-frontend/pull/368)
|
|
17
|
+
- add imprese check [`#369`](https://github.com/pagopa/selfcare-common-frontend/pull/369)
|
|
18
|
+
|
|
7
19
|
#### [v2.5.2](https://github.com/pagopa/selfcare-common-frontend/compare/v2.5.1...v2.5.2)
|
|
8
20
|
|
|
21
|
+
> 6 October 2026
|
|
22
|
+
|
|
9
23
|
- [SELC-9377] feat: add localization for legalInfoText [`#367`](https://github.com/pagopa/selfcare-common-frontend/pull/367)
|
|
10
24
|
- [SELC-9377] feat: add localization for legalInfoText (#367) [`#9377`](https://pagopa.atlassian.net/browse/9377)
|
|
11
25
|
|
package/lib/config/env.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isPagoPaUser } from "../utils/storage";
|
|
2
|
+
import { getAppArea } from "../utils/utils";
|
|
2
3
|
const isFromBackstage = isPagoPaUser() || window.location.pathname.endsWith('/google');
|
|
3
4
|
/** Appends an `origin=backstage` query param to the given url when the current user/context is coming from Backstage, so that destination pages (e.g. Privacy Policy, Terms and Conditions) can detect it and render the appropriate content/script. */
|
|
4
5
|
const appendBackstageParam = (url) => {
|
|
@@ -10,7 +11,7 @@ const appendBackstageParam = (url) => {
|
|
|
10
11
|
};
|
|
11
12
|
const currentEnv = import.meta.env.VITE_ENV || '';
|
|
12
13
|
const isProd = currentEnv === 'PROD';
|
|
13
|
-
export const showStaticPrivacyPolicy = () => !isFromBackstage && !isProd;
|
|
14
|
+
export const showStaticPrivacyPolicy = () => !isFromBackstage && !isProd && getAppArea() !== 'imprese';
|
|
14
15
|
export const CONFIG = {
|
|
15
16
|
URL_FE: {
|
|
16
17
|
LOGIN_GOOGLE: '/auth/google',
|
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.5.
|
|
4
|
+
"version": "2.5.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
@@ -20,7 +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
|
-
"@pagopa/mui-italia": "2.
|
|
23
|
+
"@pagopa/mui-italia": "^2.7.0",
|
|
24
24
|
"@pagopa/ts-commons": "^13.1.2",
|
|
25
25
|
"@reduxjs/toolkit": "^2.9.0",
|
|
26
26
|
"async": "3.2.4",
|