@pagopa/selfcare-common-frontend 1.34.88 → 1.34.89
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 +10 -2
- package/build.info +2 -2
- package/lib/components/Header/Header.js +6 -6
- package/lib/components/Header/Header.js.map +1 -1
- package/package.json +1 -1
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.
|
|
7
|
+
#### [v1.34.89](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.89)
|
|
8
8
|
|
|
9
|
+
- hide header chip in backstage [`#323`](https://github.com/pagopa/selfcare-common-frontend/pull/323)
|
|
9
10
|
- [SELC-8042] feat: update role label for backstage header [`#322`](https://github.com/pagopa/selfcare-common-frontend/pull/322)
|
|
10
11
|
- [SELC-8066] feat: add live region label to announce loading in LoadingOverlayComponent [`#321`](https://github.com/pagopa/selfcare-common-frontend/pull/321)
|
|
11
12
|
- fix: redirect to logout URL instead of login on token validation failure [`#319`](https://github.com/pagopa/selfcare-common-frontend/pull/319)
|
|
@@ -145,10 +146,17 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
145
146
|
- Bump rimraf from 3.0.2 to 6.0.1 [`e6941b9`](https://github.com/pagopa/selfcare-common-frontend/commit/e6941b9e6b05c973d991e2470a851b5ca03926ce)
|
|
146
147
|
- 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)
|
|
147
148
|
|
|
148
|
-
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.
|
|
149
|
+
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.88...v1.35.0)
|
|
149
150
|
|
|
150
151
|
> 20 July 2023
|
|
151
152
|
|
|
153
|
+
#### [v1.34.88](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.87...v1.34.88)
|
|
154
|
+
|
|
155
|
+
> 26 January 2026
|
|
156
|
+
|
|
157
|
+
- [SELC-8042] feat: update role label for backstage header [`#322`](https://github.com/pagopa/selfcare-common-frontend/pull/322)
|
|
158
|
+
- [SELC-8042] feat: update role label for backstage header (#322) [`#8042`](https://pagopa.atlassian.net/browse/8042)
|
|
159
|
+
|
|
152
160
|
#### [v1.34.87](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.86...v1.34.87)
|
|
153
161
|
|
|
154
162
|
> 20 January 2026
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.29.0~1^2
|
|
1
|
+
20260127.1 - selfcare-common-frontend.deploy(255129)
|
|
2
|
+
tags/v1.29.0~1^2 062c2d2d1ffbffc1ec081605f0d79ab97e3b547d
|
|
@@ -30,14 +30,14 @@ const rootLink = {
|
|
|
30
30
|
const Header = ({ withSecondHeader, productsList = [], selectedPartyId, selectedProductId, partyList = [], loggedUser, assistanceEmail, enableLogin = true, userActions = [], enableDropdown = false, addSelfcareProduct = true, onExit = (exitAction) => exitAction(), onSelectedProduct, onSelectedParty, maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem, enableAssistanceButton = true, onDocumentationClick, onLogoutClick, fixedParty, }) => {
|
|
31
31
|
const [productToRender, setProductToRender] = (0, react_1.useState)(selfcareProduct);
|
|
32
32
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
// For backstage the party is always static pagopa with user role support
|
|
34
|
+
const renderedPartyList = fixedParty ? [fixedParty] : partyList;
|
|
35
|
+
const renderedPartyId = fixedParty ? fixedParty.id : selectedPartyId;
|
|
36
|
+
const isPagoPaUserOnAdminPage = storage_1.isPagoPaUser && location.pathname.includes('/admin');
|
|
35
37
|
(0, react_1.useEffect)(() => {
|
|
36
|
-
setProductToRender(
|
|
37
|
-
? selfcareBackstageProduct
|
|
38
|
-
: selfcareProduct);
|
|
38
|
+
setProductToRender(isPagoPaUserOnAdminPage ? selfcareBackstageProduct : selfcareProduct);
|
|
39
39
|
}, [location.pathname]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("header", { children: (0, jsx_runtime_1.jsx)(HeaderAccount_1.HeaderAccount, { rootLink: rootLink, loggedUser: loggedUser, onAssistanceClick: () => onExit(() => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))), onLogin: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGIN)), onLogout: onLogoutClick !== null && onLogoutClick !== void 0 ? onLogoutClick : (() => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGOUT))), enableLogin: enableLogin, userActions: userActions, enableDropdown: enableDropdown, enableAssistanceButton: enableAssistanceButton, onDocumentationClick: onDocumentationClick }) }), withSecondHeader === true ? ((0, jsx_runtime_1.jsx)("nav", { children: (0, jsx_runtime_1.jsx)(HeaderProduct_1.HeaderProduct, { productId: selectedProductId || productToRender.id, productsList: addSelfcareProduct ? [productToRender].concat(productsList) : productsList, partyId:
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("header", { children: (0, jsx_runtime_1.jsx)(HeaderAccount_1.HeaderAccount, { rootLink: rootLink, loggedUser: loggedUser, onAssistanceClick: () => onExit(() => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))), onLogin: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGIN)), onLogout: onLogoutClick !== null && onLogoutClick !== void 0 ? onLogoutClick : (() => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGOUT))), enableLogin: enableLogin, userActions: userActions, enableDropdown: enableDropdown, enableAssistanceButton: enableAssistanceButton, onDocumentationClick: onDocumentationClick }) }), withSecondHeader === true ? ((0, jsx_runtime_1.jsx)("nav", { children: (0, jsx_runtime_1.jsx)(HeaderProduct_1.HeaderProduct, { productId: selectedProductId || productToRender.id, productsList: addSelfcareProduct ? [productToRender].concat(productsList) : productsList, partyId: renderedPartyId, partyList: renderedPartyList, onSelectedProduct: onSelectedProduct, onSelectedParty: onSelectedParty, maxCharactersNumberMultiLineButton: maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem: maxCharactersNumberMultiLineItem, ...(isPagoPaUserOnAdminPage && {
|
|
41
41
|
chipLabel: t('common.header.chipLabel'),
|
|
42
42
|
chipColor: 'primary',
|
|
43
43
|
chipSize: 'medium',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/lib/components/Header/Header.tsx"],"names":[],"mappings":";;;AAOA,kGAA+F;AAC/F,kGAA+F;AAE/F,iCAAsD;AACtD,iDAA+C;AAC/C,0CAA0C;AAC1C,wEAAsE;AACtE,iDAAmD;AA8CnD,MAAM,eAAe,GAAkB;IACrC,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACzC,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,EAAE,EAAE,yBAAyB;IAC7B,KAAK,EAAE,0BAA0B;IACjC,UAAU,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACzC,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,QAAQ,GAAiB;IAC7B,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;IACjC,SAAS,EAAE,oCAAoC;IAC/C,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AAEF,gCAAgC;AAChC,MAAM,MAAM,GAAG,CAAC,EACd,gBAAgB,EAChB,YAAY,GAAG,EAAE,EACjB,eAAe,EACf,iBAAiB,EACjB,SAAS,GAAG,EAAE,EACd,UAAU,EACV,eAAe,EACf,WAAW,GAAG,IAAI,EAClB,WAAW,GAAG,EAAE,EAChB,cAAc,GAAG,KAAK,EACtB,kBAAkB,GAAG,IAAI,EACzB,MAAM,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,EACrC,iBAAiB,EACjB,eAAe,EACf,kCAAkC,EAClC,gCAAgC,EAChC,sBAAsB,GAAG,IAAI,EAC7B,oBAAoB,EACpB,aAAa,EACb,UAAU,GACE,EAAE,EAAE;IAChB,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAgB,eAAe,CAAC,CAAC;IACvF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/lib/components/Header/Header.tsx"],"names":[],"mappings":";;;AAOA,kGAA+F;AAC/F,kGAA+F;AAE/F,iCAAsD;AACtD,iDAA+C;AAC/C,0CAA0C;AAC1C,wEAAsE;AACtE,iDAAmD;AA8CnD,MAAM,eAAe,GAAkB;IACrC,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACzC,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,EAAE,EAAE,yBAAyB;IAC7B,KAAK,EAAE,0BAA0B;IACjC,UAAU,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACzC,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,QAAQ,GAAiB;IAC7B,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI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AAC,GACF,GACE,CACP,CAAC,CAAC,CAAC,CACF,EAAE,CACH,IACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,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.
|
|
4
|
+
"version": "1.34.89",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|