@pagopa/selfcare-common-frontend 2.5.1 → 2.5.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.
- package/CHANGELOG.md +14 -0
- package/lib/config/env.js +2 -1
- package/lib/locale/de.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/fr.js +1 -1
- package/lib/locale/sl.js +1 -1
- package/package.json +1 -1
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.3](https://github.com/pagopa/selfcare-common-frontend/compare/v2.5.2...v2.5.3)
|
|
8
|
+
|
|
9
|
+
- chore: release v2.5.2 [`#368`](https://github.com/pagopa/selfcare-common-frontend/pull/368)
|
|
10
|
+
- add imprese check [`#369`](https://github.com/pagopa/selfcare-common-frontend/pull/369)
|
|
11
|
+
|
|
12
|
+
#### [v2.5.2](https://github.com/pagopa/selfcare-common-frontend/compare/v2.5.1...v2.5.2)
|
|
13
|
+
|
|
14
|
+
> 6 October 2026
|
|
15
|
+
|
|
16
|
+
- [SELC-9377] feat: add localization for legalInfoText [`#367`](https://github.com/pagopa/selfcare-common-frontend/pull/367)
|
|
17
|
+
- [SELC-9377] feat: add localization for legalInfoText (#367) [`#9377`](https://pagopa.atlassian.net/browse/9377)
|
|
18
|
+
|
|
7
19
|
#### [v2.5.1](https://github.com/pagopa/selfcare-common-frontend/compare/v2.5.0...v2.5.1)
|
|
8
20
|
|
|
21
|
+
> 30 September 2026
|
|
22
|
+
|
|
9
23
|
- chore: release v2.5.0 [`#364`](https://github.com/pagopa/selfcare-common-frontend/pull/364)
|
|
10
24
|
- [SELC-9321] feat: update legal information in footer text [`#365`](https://github.com/pagopa/selfcare-common-frontend/pull/365)
|
|
11
25
|
- [SELC-9321] feat: update legal information in footer text (#365) [`#9321`](https://pagopa.atlassian.net/browse/9321)
|
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/lib/locale/de.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
buttonLabel: 'Kontaktiere den Support',
|
|
13
13
|
},
|
|
14
14
|
footer: {
|
|
15
|
-
legalInfoText: '<0>PagoPA S.p.A.</0> - Aktiengesellschaft
|
|
15
|
+
legalInfoText: '<0>PagoPA S.p.A.</0> - Aktiengesellschaft - Gesellschaftskapital von 1.000.000 Euro voll eingezahlt - Sitz in Rom, Piazza Colonna 370, <2/> PLZ 00187 - Eintrag im Handelsregister von Rom Nr., Steuernummer und USt-IdNr. 15376371009',
|
|
16
16
|
privacyPolicyLink: 'Datenschutzerklärung ',
|
|
17
17
|
termsAndConditionLink: 'Allgemeine Geschäftsbedingungen zur Benutzung der Site ',
|
|
18
18
|
informationSecurityLink: 'Informationssicherheit ',
|
package/lib/locale/en.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
buttonLabel: 'Contact support',
|
|
13
13
|
},
|
|
14
14
|
footer: {
|
|
15
|
-
legalInfoText: '<0>PagoPA S.p.A.</0> - Joint-stock company
|
|
15
|
+
legalInfoText: '<0>PagoPA S.p.A.</0> - Joint-stock company - Share capital of €1,000,000 fully paid up - Registered office in Rome, Piazza Colonna 370, <2/> Postcode 00187 - Registration number in the Companies Register of Rome, Tax Code and VAT number 15376371009',
|
|
16
16
|
privacyPolicyLink: 'Privacy Policy ',
|
|
17
17
|
termsAndConditionLink: 'Website Terms and Conditions of Use ',
|
|
18
18
|
informationSecurityLink: 'Information security ',
|
package/lib/locale/fr.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
buttonLabel: 'Contacter le support',
|
|
13
13
|
},
|
|
14
14
|
footer: {
|
|
15
|
-
legalInfoText: '<0>PagoPA S.p.A.</0> - Société anonyme
|
|
15
|
+
legalInfoText: '<0>PagoPA S.p.A.</0> - Société anonyme - Capital social de 1,000,000 euros entièrement libéré - Siège social à Rome, Piazza Colonna 370, <2/> CP 00187 - N ° d’immatriculation au Registre du Commerce et des Sociétés de Rome, N ° de TVA 15376371009',
|
|
16
16
|
privacyPolicyLink: 'politique de confidentialité ',
|
|
17
17
|
termsAndConditionLink: 'Conditions générales d’utilisation ',
|
|
18
18
|
informationSecurityLink: 'Sécurité des informations ',
|
package/lib/locale/sl.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
buttonLabel: 'Stopite v stik s podporo',
|
|
13
13
|
},
|
|
14
14
|
footer: {
|
|
15
|
-
legalInfoText: '<0>PagoPA S.p.A.</0> - Delniška družba
|
|
15
|
+
legalInfoText: '<0>PagoPA S.p.A.</0> - Delniška družba - Osnovni kapital v višini 1.000.000 EUR v celoti vplačan - Sedež v Rimu, Piazza Colonna 370, <2/> Poštna številka 00187 - Št. vpisa v poslovni register v Rimu, davčna številka in identifikacijska številka za DDV 15376371009',
|
|
16
16
|
privacyPolicyLink: 'Politika zasebnosti ',
|
|
17
17
|
termsAndConditionLink: 'Pogoji uporabe spletnega mesta ',
|
|
18
18
|
informationSecurityLink: 'Varnost podatkov ',
|
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.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|