@pagopa/selfcare-common-frontend 1.34.6 → 1.34.8

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,14 +4,18 @@ 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.6](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.6)
7
+ #### [v1.34.8](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.8)
8
8
 
9
+ - SELC-3127 add backLabel optional prop to NavigationBar [`#190`](https://github.com/pagopa/selfcare-common-frontend/pull/190)
9
10
  - SELC-3090 Added "accessibility" voice in the footer (for logged and not-logged) [`#189`](https://github.com/pagopa/selfcare-common-frontend/pull/189)
10
11
  - SELC-3056 change model 321 to Model 231 in footer link [`#188`](https://github.com/pagopa/selfcare-common-frontend/pull/188)
11
12
  - Fixed bad localized string [`#187`](https://github.com/pagopa/selfcare-common-frontend/pull/187)
12
13
  - SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
13
14
  - SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
14
15
  - Used a environment variable to manage correct links in the footer based to product and actual environment [`#184`](https://github.com/pagopa/selfcare-common-frontend/pull/184)
16
+ - Merge pull request #190 from pagopa/SELC-3127 [`#3127`](https://pagopa.atlassian.net/browse/3127) [`#3127`](https://pagopa.atlassian.net/browse/3127)
17
+ - SELC-3127 used coaleshing (??) instead of ternary [`#3127`](https://pagopa.atlassian.net/browse/3127)
18
+ - SELC-3127 add backLabel optional prop to NavigationBar [`#3127`](https://pagopa.atlassian.net/browse/3127)
15
19
  - Merge pull request #189 from pagopa/SELC-3090 [`#3090`](https://pagopa.atlassian.net/browse/3090) [`#3090`](https://pagopa.atlassian.net/browse/3090)
16
20
  - SELC-3090 Added "accessibility" voice in the footer (for logged and not-logged) [`#3090`](https://pagopa.atlassian.net/browse/3090)
17
21
  - Merge pull request #188 from pagopa/SELC-3056 [`#3056`](https://pagopa.atlassian.net/browse/3056) [`#3056`](https://pagopa.atlassian.net/browse/3056)
@@ -23,10 +27,23 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
23
27
  - 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)
24
28
  - Fixed broken unitTest [`d9bb4de`](https://github.com/pagopa/selfcare-common-frontend/commit/d9bb4deafebc474c7dfe475ca68bce898c762cfd)
25
29
 
26
- #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.5...v1.35.0)
30
+ #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.7...v1.35.0)
27
31
 
28
32
  > 20 July 2023
29
33
 
34
+ #### [v1.34.7](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.6...v1.34.7)
35
+
36
+ > 6 October 2023
37
+
38
+ - SELC-3127 add backLabel optional prop to NavigationBar [`#190`](https://github.com/pagopa/selfcare-common-frontend/pull/190)
39
+ - Merge pull request #190 from pagopa/SELC-3127 [`#3127`](https://pagopa.atlassian.net/browse/3127) [`#3127`](https://pagopa.atlassian.net/browse/3127)
40
+ - SELC-3127 used coaleshing (??) instead of ternary [`#3127`](https://pagopa.atlassian.net/browse/3127)
41
+ - SELC-3127 add backLabel optional prop to NavigationBar [`#3127`](https://pagopa.atlassian.net/browse/3127)
42
+
43
+ #### [v1.34.6](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.5...v1.34.6)
44
+
45
+ > 28 September 2023
46
+
30
47
  #### [v1.34.5](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.4...v1.34.5)
31
48
 
32
49
  > 27 September 2023
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20230928.1 - selfcare-common-frontend.deploy(119917)
2
- tags/v1.29.0~1^2 6ac5babfdacfad00b60fde2de0cc2fc6d9b5ec3e
1
+ 20231006.2 - selfcare-common-frontend.deploy(121689)
2
+ tags/v1.29.0~1^2 32b575b0ceb538adcd8293cc60b359372fafae59
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare type Props = {
3
3
  goBack?: () => void;
4
+ backLabel?: string;
4
5
  };
5
- export default function BackComponent({ goBack }: Props): JSX.Element;
6
+ export default function BackComponent({ goBack, backLabel }: Props): JSX.Element;
6
7
  export {};
@@ -4,9 +4,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const icons_material_1 = require("@mui/icons-material");
5
5
  const mui_italia_1 = require("@pagopa/mui-italia");
6
6
  const react_i18next_1 = require("react-i18next");
7
- function BackComponent({ goBack }) {
7
+ function BackComponent({ goBack, backLabel }) {
8
8
  const { t } = (0, react_i18next_1.useTranslation)();
9
- return ((0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { size: "small", component: "button", onClick: goBack, startIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ArrowBack, {}), sx: { color: 'primary.main' }, weight: "default", children: t('common.backComponent.label') }));
9
+ return ((0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { size: "small", component: "button", onClick: goBack, startIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ArrowBack, {}), sx: { color: 'primary.main' }, weight: "default", children: backLabel !== null && backLabel !== void 0 ? backLabel : t('common.backComponent.label') }));
10
10
  }
11
11
  exports.default = BackComponent;
12
12
  //# sourceMappingURL=BackComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BackComponent.js","sourceRoot":"","sources":["../../src/lib/components/BackComponent.tsx"],"names":[],"mappings":";;;AAAA,wDAAgD;AAChD,mDAAiD;AACjD,iDAA+C;AAK/C,SAAwB,aAAa,CAAC,EAAE,MAAM,EAAS;IACrD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,uBAAC,wBAAW,IACV,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,uBAAC,0BAAS,KAAG,EACxB,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAC7B,MAAM,EAAC,SAAS,YAEf,CAAC,CAAC,4BAA4B,CAAC,GACpB,CACf,CAAC;AACJ,CAAC;AAdD,gCAcC"}
1
+ {"version":3,"file":"BackComponent.js","sourceRoot":"","sources":["../../src/lib/components/BackComponent.tsx"],"names":[],"mappings":";;;AAAA,wDAAgD;AAChD,mDAAiD;AACjD,iDAA+C;AAM/C,SAAwB,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAS;IAChE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,uBAAC,wBAAW,IACV,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,uBAAC,0BAAS,KAAG,EACxB,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAC7B,MAAM,EAAC,SAAS,YAEf,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,CAAC,CAAC,4BAA4B,CAAC,GACjC,CACf,CAAC;AACJ,CAAC;AAdD,gCAcC"}
@@ -3,6 +3,7 @@ import { SvgIconComponent } from '@mui/icons-material';
3
3
  declare type Props = {
4
4
  paths: Array<NavigationPath>;
5
5
  goBack?: () => void;
6
+ backLabel?: string;
6
7
  backLinkTextDecoration?: string;
7
8
  backLinkFontWeight?: string;
8
9
  backLinkFontSize?: string;
@@ -13,5 +14,5 @@ export declare type NavigationPath = {
13
14
  onClick?: () => void;
14
15
  icon?: SvgIconComponent;
15
16
  };
16
- export default function NavigationBar({ paths, goBack, showBackComponent }: Props): JSX.Element;
17
+ export default function NavigationBar({ paths, goBack, showBackComponent, backLabel }: Props): JSX.Element;
17
18
  export {};
@@ -6,7 +6,7 @@ const material_1 = require("@mui/material");
6
6
  const mui_italia_1 = require("@pagopa/mui-italia");
7
7
  const useUnloadEventInterceptor_1 = require("../hooks/useUnloadEventInterceptor");
8
8
  const BackComponent_1 = tslib_1.__importDefault(require("./BackComponent"));
9
- function NavigationBar({ paths, goBack, showBackComponent }) {
9
+ function NavigationBar({ paths, goBack, showBackComponent, backLabel }) {
10
10
  const onExit = (0, useUnloadEventInterceptor_1.useUnloadEventOnExit)();
11
11
  const truncatedText = {
12
12
  display: 'inline-block',
@@ -15,7 +15,7 @@ function NavigationBar({ paths, goBack, showBackComponent }) {
15
15
  overflow: 'hidden',
16
16
  textOverflow: 'ellipsis',
17
17
  };
18
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [showBackComponent && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 2, display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(BackComponent_1.default, { goBack: goBack }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { "aria-label": "breadcrumb", children: paths.map((p) => p.onClick ? ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", justifyContent: "center", children: (0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { component: "button", onClick: () => onExit(p.onClick), startIcon: p.icon && (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }), sx: { color: 'colorTextPrimary' }, weight: "default", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: truncatedText, children: p.description }) }) }, p.description)) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [p.icon && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 1, display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: { ...truncatedText, color: 'text.secondary', fontSize: 'fontSize' }, children: p.description }, p.description) })] }, p.description))) }) })] }));
18
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [showBackComponent && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 2, display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(BackComponent_1.default, { goBack: goBack, backLabel: backLabel }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { "aria-label": "breadcrumb", children: paths.map((p) => p.onClick ? ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", justifyContent: "center", children: (0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { component: "button", onClick: () => onExit(p.onClick), startIcon: p.icon && (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }), sx: { color: 'colorTextPrimary' }, weight: "default", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: truncatedText, children: p.description }) }) }, p.description)) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [p.icon && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 1, display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: { ...truncatedText, color: 'text.secondary', fontSize: 'fontSize' }, children: p.description }, p.description) })] }, p.description))) }) })] }));
19
19
  }
20
20
  exports.default = NavigationBar;
21
21
  //# sourceMappingURL=NavigationBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../src/lib/components/NavigationBar.tsx"],"names":[],"mappings":";;;;AACA,4CAAmE;AACnE,mDAAiD;A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AAa,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,YAEtE,CAAC,CAAC,WAAW,IAJT,CAAC,CAAC,WAAW,CAKP,GACT,KAdiB,CAAC,CAAC,WAAW,CAehC,CACP,CACF,GACW,GACV,IACF,CACP,CAAC;AACJ,CAAC;AA1DD,gCA0DC"}
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.6",
4
+ "version": "1.34.8",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",