@pagopa/selfcare-common-frontend 1.34.16 → 1.34.18
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 +23 -2
- package/README.md +14 -6
- package/build.info +2 -2
- package/components/EndingPage.d.ts +14 -2
- package/components/EndingPage.js +1 -1
- package/components/EndingPage.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,11 @@ 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.18](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.18)
|
|
8
8
|
|
|
9
|
+
- [SELC-5006] feat: Added onClick action for second button + updated README [`#219`](https://github.com/pagopa/selfcare-common-frontend/pull/219)
|
|
10
|
+
- [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README [`#218`](https://github.com/pagopa/selfcare-common-frontend/pull/218)
|
|
11
|
+
- Bump webpack-dev-middleware from 5.3.3 to 5.3.4 [`#204`](https://github.com/pagopa/selfcare-common-frontend/pull/204)
|
|
9
12
|
- feat: changed test token [`#203`](https://github.com/pagopa/selfcare-common-frontend/pull/203)
|
|
10
13
|
- [SELC-4521] feat: Added two new exportable utilities methods for storage managment: parseJwt and isExpiredToken [`#202`](https://github.com/pagopa/selfcare-common-frontend/pull/202)
|
|
11
14
|
- [SELC-3936] feat: Created a method that return productTitle receiving productId [`#196`](https://github.com/pagopa/selfcare-common-frontend/pull/196)
|
|
@@ -21,6 +24,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
21
24
|
- SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
|
|
22
25
|
- SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
|
|
23
26
|
- 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)
|
|
27
|
+
- [SELC-5006] feat: Added onClick action for second button + updated README (#219) [`#5006`](https://pagopa.atlassian.net/browse/5006)
|
|
28
|
+
- [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README (#218) [`#5006`](https://pagopa.atlassian.net/browse/5006)
|
|
29
|
+
- [SELC-4696] Feat: update library mui italia for partList performance improvements [`#4696`](https://pagopa.atlassian.net/browse/4696)
|
|
24
30
|
- [SELC-4521] feat: Added two new exportable utilities methods for storage managment: parseJwt and isExpiredToken (#202) [`#4521`](https://pagopa.atlassian.net/browse/4521)
|
|
25
31
|
- Merge pull request #196 from pagopa/SELC-3936 [`#3936`](https://pagopa.atlassian.net/browse/3936) [`#3936`](https://pagopa.atlassian.net/browse/3936)
|
|
26
32
|
- [SELC-3936] feat: Added UnitTest [`#3936`](https://pagopa.atlassian.net/browse/3936)
|
|
@@ -51,10 +57,25 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
51
57
|
- Update README.md [`a360cdb`](https://github.com/pagopa/selfcare-common-frontend/commit/a360cdbf86d7f5b7aa9df4aec586f76362e13e3a)
|
|
52
58
|
- Fixed broken unitTest [`d9bb4de`](https://github.com/pagopa/selfcare-common-frontend/commit/d9bb4deafebc474c7dfe475ca68bce898c762cfd)
|
|
53
59
|
|
|
54
|
-
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.
|
|
60
|
+
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.17...v1.35.0)
|
|
55
61
|
|
|
56
62
|
> 20 July 2023
|
|
57
63
|
|
|
64
|
+
#### [v1.34.17](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.16...v1.34.17)
|
|
65
|
+
|
|
66
|
+
> 31 May 2024
|
|
67
|
+
|
|
68
|
+
- [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README [`#218`](https://github.com/pagopa/selfcare-common-frontend/pull/218)
|
|
69
|
+
- Bump webpack-dev-middleware from 5.3.3 to 5.3.4 [`#204`](https://github.com/pagopa/selfcare-common-frontend/pull/204)
|
|
70
|
+
- [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README (#218) [`#5006`](https://pagopa.atlassian.net/browse/5006)
|
|
71
|
+
- [SELC-4696] Feat: update library mui italia for partList performance improvements [`#4696`](https://pagopa.atlassian.net/browse/4696)
|
|
72
|
+
|
|
73
|
+
#### [v1.34.16](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.15...v1.34.16)
|
|
74
|
+
|
|
75
|
+
> 18 March 2024
|
|
76
|
+
|
|
77
|
+
- feat: changed test token [`#203`](https://github.com/pagopa/selfcare-common-frontend/pull/203)
|
|
78
|
+
|
|
58
79
|
#### [v1.34.15](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.14...v1.34.15)
|
|
59
80
|
|
|
60
81
|
> 18 March 2024
|
package/README.md
CHANGED
|
@@ -156,13 +156,21 @@ Selfcare's ending page
|
|
|
156
156
|
|
|
157
157
|
| Prop | Type | Mandatory | Description |
|
|
158
158
|
|------|------|-----------|-------------|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
159
|
+
| minHeight | '52vh' \| '100vh' | N | The minHeight of the component, can be 52vh for the pages and 100vh for the blocking page |
|
|
160
|
+
| icon | React.ReactElement<SvgIconProps> \| FunctionComponent<SVGProps<SVGSVGElement>> \| string | N | The ending page icon |
|
|
161
|
+
| title | React.ReactNode | Y | The ending page title |
|
|
161
162
|
| description | React.ReactNode | Y | The ending page description |
|
|
162
|
-
| buttonLabel |
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
163
|
+
| buttonLabel | React.ReactNode | N | The ending page button label if any |
|
|
164
|
+
| secondButtonLabel | React.ReactNode | N | The ending page second button label if any |
|
|
165
|
+
| onButtonClick | () => void | N | if defined performe this action on click of the first button |
|
|
166
|
+
| onSecondButtonClick | () => void | N | if defined performe this action on click of the second button |
|
|
167
|
+
| variantTitle | 'button' \| 'caption' \| 'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'inherit' \| 'subtitle1' \| 'subtitle2' \| 'body1' \| 'body2' \| 'overline' \| undefined | N | Set the variant of the title |
|
|
168
|
+
| variantDescription | 'button' \| 'caption' \| 'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'inherit' \| 'subtitle1' \| 'subtitle2' \| 'body1' \| 'body2' \| 'overline' \| undefined | N | Set the variant of the description |
|
|
169
|
+
| variantFirstButton | 'contained' \| 'outlined' \| 'text' | N | Set the variant of the first button |
|
|
170
|
+
| variantSecondButton | 'contained' \| 'outlined' \| 'text' | N | Set the variant of the second button |
|
|
171
|
+
| paragraph | React.ReactNode | N | Set the text of paragraph |
|
|
172
|
+
| isParagraphPresent | boolean | N | Show the paragraph |
|
|
173
|
+
| haveTwoButtons | boolean | N | Show the second button and the "secondButtonLabel" as text of this one |
|
|
166
174
|
|
|
167
175
|
## NavigationBar
|
|
168
176
|
Selfcare's navigation bar
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.29.0~1^2
|
|
1
|
+
20240531.4 - selfcare-common-frontend.deploy(157572)
|
|
2
|
+
tags/v1.29.0~1^2 2dbb152b2981f9ee3f47a6d56c32523726686195
|
|
@@ -11,15 +11,27 @@ type Props = {
|
|
|
11
11
|
description: React.ReactNode;
|
|
12
12
|
/** The ending page button label if any */
|
|
13
13
|
buttonLabel?: React.ReactNode;
|
|
14
|
-
/**
|
|
14
|
+
/** The ending page second button label if any */
|
|
15
|
+
secondButtonLabel?: React.ReactNode;
|
|
16
|
+
/** if defined performe this action on click of the first button */
|
|
15
17
|
onButtonClick?: () => void;
|
|
18
|
+
/** if defined performe this action on click of the second button */
|
|
19
|
+
onSecondButtonClick?: () => void;
|
|
16
20
|
/** Set the variant of the title */
|
|
17
21
|
variantTitle?: 'button' | 'caption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'inherit' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'overline' | undefined;
|
|
18
22
|
/** Set the variant of the description */
|
|
19
23
|
variantDescription?: 'button' | 'caption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'inherit' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'overline' | undefined;
|
|
24
|
+
/** Set the variant of the first button */
|
|
25
|
+
variantFirstButton?: 'contained' | 'outlined' | 'text';
|
|
26
|
+
/** Set the variant of the second button */
|
|
27
|
+
variantSecondButton?: 'contained' | 'outlined' | 'text';
|
|
28
|
+
/** Set the text of paragraph */
|
|
20
29
|
paragraph?: React.ReactNode;
|
|
30
|
+
/** Show the paragraph */
|
|
21
31
|
isParagraphPresent?: boolean;
|
|
32
|
+
/** Show the second button and the "secondButtonLabel" as text of this one */
|
|
33
|
+
haveTwoButtons?: boolean;
|
|
22
34
|
};
|
|
23
35
|
/** Selfcare's Ending Page */
|
|
24
|
-
declare const _default: ({ minHeight, description, onButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare const _default: ({ minHeight, description, onButtonClick, onSecondButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, haveTwoButtons, secondButtonLabel, variantFirstButton, variantSecondButton, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
25
37
|
export default _default;
|
package/components/EndingPage.js
CHANGED
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const material_1 = require("@mui/material");
|
|
5
5
|
/** Selfcare's Ending Page */
|
|
6
|
-
exports.default = ({ minHeight, description, onButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, }) => ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { minHeight, position: 'static' }, display: "flex", flexGrow: 1, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto', children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 3, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: icon }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, children: title }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 1, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: description }) }) }),
|
|
6
|
+
exports.default = ({ minHeight, description, onButtonClick, onSecondButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, haveTwoButtons = false, secondButtonLabel, variantFirstButton = 'contained', variantSecondButton = 'contained', }) => ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { minHeight, position: 'static' }, display: "flex", flexGrow: 1, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto', children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 3, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: icon }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, children: title }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 1, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: description }) }) }), buttonLabel && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: haveTwoButtons ? 12 : 4, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: variantFirstButton, sx: { alignSelf: 'center', marginRight: haveTwoButtons ? 3 : 0 }, onClick: onButtonClick, children: buttonLabel }), haveTwoButtons && ((0, jsx_runtime_1.jsx)(material_1.Button, { variant: variantSecondButton, sx: { alignSelf: 'center' }, onClick: onSecondButtonClick, children: secondButtonLabel }))] }) })), isParagraphPresent && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 6, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: paragraph }) }) }))] }, "0") }));
|
|
7
7
|
//# sourceMappingURL=EndingPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":";;;AAAA,4CAA4E;
|
|
1
|
+
{"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":";;;AAAA,4CAA4E;AAkE5E,6BAA6B;AAC7B,kBAAe,CAAC,EACd,SAAS,EACT,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,cAAc,GAAG,KAAK,EACtB,iBAAiB,EACjB,kBAAkB,GAAG,WAAW,EAChC,mBAAmB,GAAG,WAAW,GAC3B,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AAC,CAAC,EAAE,EAChE,OAAO,EAAE,aAAa,YAErB,WAAW,GACL,EACR,cAAc,IAAI,CACjB,uBAAC,iBAAM,IACL,OAAO,EAAE,mBAAmB,EAC5B,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAC3B,OAAO,EAAE,mBAAmB,YAE3B,iBAAiB,GACX,CACV,IACI,GACF,CACR,EAEA,kBAAkB,IAAI,CACrB,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACvD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,SAAS,GAAc,GAC5D,GACF,CACR,KA7CoC,GAAG,CA8CnC,GACH,CACP,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.18",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@mui/lab": "^5.0.0-alpha.137",
|
|
16
16
|
"@mui/material": "^5.14.1",
|
|
17
17
|
"@mui/system": "^5.14.1",
|
|
18
|
-
"@pagopa/mui-italia": "^1.
|
|
18
|
+
"@pagopa/mui-italia": "^1.4.0",
|
|
19
19
|
"@pagopa/ts-commons": "^10.2.1",
|
|
20
20
|
"@reduxjs/toolkit": "^1.6.2",
|
|
21
21
|
"@types/lodash": "^4.14.172",
|