@pagopa/selfcare-common-frontend 1.34.58 → 1.34.60

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,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.58](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.58)
7
+ #### [v1.34.60](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.60)
8
8
 
9
+ - [SELC-6995] feat: make the content of the diaolog avaible to the screen reader [`#286`](https://github.com/pagopa/selfcare-common-frontend/pull/286)
9
10
  - [SELC-6986] feat: and new action and update mui italia [`#285`](https://github.com/pagopa/selfcare-common-frontend/pull/285)
10
11
  - [SELC-6825] Add codeowners [`#284`](https://github.com/pagopa/selfcare-common-frontend/pull/284)
11
12
  - update mui italia version to 1.5.3 [`#283`](https://github.com/pagopa/selfcare-common-frontend/pull/283)
@@ -41,6 +42,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
41
42
  - SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
42
43
  - SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
43
44
  - 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)
45
+ - [SELC-6995] feat: make the content of the diaolog avaible to the screen reader (#286) [`#6995`](https://pagopa.atlassian.net/browse/6995)
44
46
  - [SELC-6986] feat: and new action and update mui italia (#285) [`#6986`](https://pagopa.atlassian.net/browse/6986)
45
47
  - [SELC-6825] Add codeowners (#284) [`#6825`](https://pagopa.atlassian.net/browse/6825)
46
48
  - [SELC-6417] feat: return status code for 404 case (#276) [`#6417`](https://pagopa.atlassian.net/browse/6417)
@@ -104,10 +106,23 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
104
106
  - Bump validator and @types/validator [`bca7ef1`](https://github.com/pagopa/selfcare-common-frontend/commit/bca7ef12f16fa24b75d5acbe5a96e1509c479b9e)
105
107
  - Bump react and @types/react [`12e0229`](https://github.com/pagopa/selfcare-common-frontend/commit/12e02297e407502c4d1c4e97b1396e5e5de1cd9f)
106
108
 
107
- #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.57...v1.35.0)
109
+ #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.59...v1.35.0)
108
110
 
109
111
  > 20 July 2023
110
112
 
113
+ #### [v1.34.59](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.58...v1.34.59)
114
+
115
+ > 26 May 2025
116
+
117
+ #### [v1.34.58](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.57...v1.34.58)
118
+
119
+ > 8 May 2025
120
+
121
+ - [SELC-6986] feat: and new action and update mui italia [`#285`](https://github.com/pagopa/selfcare-common-frontend/pull/285)
122
+ - [SELC-6825] Add codeowners [`#284`](https://github.com/pagopa/selfcare-common-frontend/pull/284)
123
+ - [SELC-6986] feat: and new action and update mui italia (#285) [`#6986`](https://pagopa.atlassian.net/browse/6986)
124
+ - [SELC-6825] Add codeowners (#284) [`#6825`](https://pagopa.atlassian.net/browse/6825)
125
+
111
126
  #### [v1.34.57](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.56...v1.34.57)
112
127
 
113
128
  > 7 April 2025
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20250508.1 - selfcare-common-frontend.deploy(211472)
2
- tags/v1.29.0~1^2 1f2ad1e2e1bc1bc4e4017286b108a0b2e0ab3c3c
1
+ 20250606.1 - selfcare-common-frontend.deploy(216535)
2
+ tags/v1.29.0~1^2 4b9e92a3f73502bf013ce7333e97d52df5c32c07
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TFunction } from 'i18next';
2
+ import * as React from 'react';
3
3
  type Props = {
4
4
  /** If this component should be displayed or not */
5
5
  open: boolean;
@@ -2,20 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const ClearOutlined_1 = tslib_1.__importDefault(require("@mui/icons-material/ClearOutlined"));
5
6
  const material_1 = require("@mui/material");
6
7
  const Dialog_1 = tslib_1.__importDefault(require("@mui/material/Dialog"));
7
- const useMediaQuery_1 = tslib_1.__importDefault(require("@mui/material/useMediaQuery"));
8
8
  const styles_1 = require("@mui/material/styles");
9
- const ClearOutlined_1 = tslib_1.__importDefault(require("@mui/icons-material/ClearOutlined"));
9
+ const useMediaQuery_1 = tslib_1.__importDefault(require("@mui/material/useMediaQuery"));
10
10
  const react_i18next_1 = require("react-i18next");
11
11
  /** Selfcare's popup */
12
12
  function SessionModal({ t, open, title, message, onConfirm, onConfirmEnabled = true, onConfirmLabel = t('common.sessionModal.confirmButton'), productEnvironments, handleClose, handleExit = handleClose, onCloseLabel = t('common.sessionModal.closeButton'), height, minHeight, width = '100%', showCloseIcon = false, showCloseButton = true, }) {
13
13
  const theme = (0, styles_1.useTheme)();
14
14
  const fullScreen = (0, useMediaQuery_1.default)(theme.breakpoints.down('xs'));
15
- return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fullScreen: fullScreen, open: open, onClose: handleClose, "aria-labelledby": "responsive-dialog-title", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { height, minHeight, width, maxWidth: '100%' }, px: 4, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, mt: 4, children: [showCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: handleExit, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: (0, jsx_runtime_1.jsx)(ClearOutlined_1.default, {}) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: '24px', fontWeight: '700', wordBreak: 'break-word' }, children: title })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { width: "100%", children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, mt: 2, mb: 3, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: message }) }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, display: "flex", justifyContent: productEnvironments ? 'space-between' : 'flex-end', flexWrap: 'wrap-reverse', children: [showCloseButton && ((0, jsx_runtime_1.jsx)(material_1.Box, { mb: 3, mt: 0, children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClose, color: "primary", variant: "outlined", children: onCloseLabel }) })), onConfirm && ((0, jsx_runtime_1.jsxs)(material_1.Box, { mb: 3, display: "flex", flexDirection: "row-reverse", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { sx: { marginLeft: 2 }, color: "primary", variant: "contained", onClick: onConfirm, disabled: !onConfirmEnabled, children: onConfirmLabel }), productEnvironments &&
16
- productEnvironments.map((p) => ((0, jsx_runtime_1.jsx)(material_1.Box, { ml: 2, children: (0, jsx_runtime_1.jsx)(material_1.Button, { value: p.environment, color: "primary", variant: "contained", onClick: onConfirm, children: p.environment
17
- .toLowerCase()
18
- .replace(/\b[a-z]/g, p.environment.charAt(0).toUpperCase()) }) }, p.environment)))] }))] })] })] }) }));
15
+ return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fullScreen: fullScreen, open: open, onClose: handleClose, "aria-labelledby": "session-modal-title", "aria-describedby": "session-modal-description", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { height, minHeight, width, maxWidth: '100%' }, px: 4, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, mt: 4, children: [showCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: handleExit, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: (0, jsx_runtime_1.jsx)(ClearOutlined_1.default, {}) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { id: "session-modal-title", variant: "h6", sx: { fontSize: '24px', fontWeight: '700', wordBreak: 'break-word' }, children: title })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { width: "100%", children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, mt: 2, mb: 3, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { id: "session-modal-description", variant: "body1", children: message }) }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, display: "flex", justifyContent: productEnvironments ? 'space-between' : 'flex-end', flexWrap: 'wrap-reverse', children: [showCloseButton && ((0, jsx_runtime_1.jsx)(material_1.Box, { mb: 3, mt: 0, children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClose, color: "primary", variant: "outlined", children: onCloseLabel }) })), onConfirm && ((0, jsx_runtime_1.jsxs)(material_1.Box, { mb: 3, display: "flex", flexDirection: "row-reverse", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { sx: { marginLeft: 2 }, color: "primary", variant: "contained", onClick: onConfirm, disabled: !onConfirmEnabled, children: onConfirmLabel }), productEnvironments === null || productEnvironments === void 0 ? void 0 : productEnvironments.map((p) => ((0, jsx_runtime_1.jsx)(material_1.Box, { ml: 2, children: (0, jsx_runtime_1.jsx)(material_1.Button, { value: p.environment, color: "primary", variant: "contained", onClick: onConfirm, children: p.environment
16
+ .toLowerCase()
17
+ .replace(/\b[a-z]/g, p.environment.charAt(0).toUpperCase()) }) }, p.environment)))] }))] })] })] }) }));
19
18
  }
20
19
  exports.default = (0, react_i18next_1.withTranslation)()(SessionModal);
21
20
  //# sourceMappingURL=SessionModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../../src/lib/components/SessionModal.tsx"],"names":[],"mappings":";;;;AACA,4CAA0E;AAC1E,0EAA0C;AAC1C,wFAAwD;AACxD,iDAAgD;AAChD,8FAAkE;AAClE,iDAAgD;AAwChD,uBAAuB;AACvB,SA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AE,CAAC,GACtD,IAVM,CAAC,CAAC,WAAW,CAWxB,CACP,CAAC,IACA,CACP,IACI,IACH,IACD,GACA,CACV,CAAC;AACJ,CAAC;AACD,kBAAe,IAAA,+BAAe,GAAE,CAAC,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../../src/lib/components/SessionModal.tsx"],"names":[],"mappings":";;;;AAAA,8FAAkE;AAClE,4CAA0E;AAC1E,0EAA0C;AAC1C,iDAAgD;AAChD,wFAAwD;AAGxD,iDAAgD;AAuChD,uBAAuB;AACvB,SAAS,YAAY,CAAC,EACpB,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,CAAC,CAAC,mCAAmC,CAAC,EACvD,mBAAmB,EACnB,WAAW,EACX,UAAU,GAAG,WAAW,EACxB,YAAY,GAAG,CAAC,CAAC,iCAAiC,CAAC,EACnD,MAAM,EACN,SAAS,EACT,KAAK,GAAG,MAAM,EACd,aAAa,GAAG,KAAK,EACrB,eAAe,GAAG,IAAI,GAChB;IACN,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAC;IACzB,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE/D,OAAO,CACL,uBAAC,gBAAM,IACL,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,qBACJ,qBAAqB,sBACpB,2BAA2B,YAE5C,wBAAC,eAAI,IAAC,SAAS,QAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,aACvE,wBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,aACrB,aAAa,IAAI,CAChB,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B,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,CAAC,gBAAgB,YAE1B,cAAc,GACR,EACR,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,cAAG,IAAC,EAAE,EAAE,CAAC,YACR,uBAAC,iBAAM,IACL,KAAK,EAAE,CAAC,CAAC,WAAW,EACpB,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,SAAS,YAEjB,CAAC,CAAC,WAAW;qDACX,WAAW,EAAE;qDACb,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GACtD,IAVM,CAAC,CAAC,WAAW,CAWxB,CACP,CAAC,IACE,CACP,IACI,IACH,IACD,GACA,CACV,CAAC;AACJ,CAAC;AACD,kBAAe,IAAA,+BAAe,GAAE,CAAC,YAAY,CAAC,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.58",
4
+ "version": "1.34.60",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",