@pagopa/selfcare-common-frontend 1.5.19 → 1.5.20

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,14 @@ 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.5.20](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.19...v1.5.20)
8
+
9
+ - AppError accept a ReactNode as displayableDescription [`#50`](https://github.com/pagopa/selfcare-common-frontend/pull/50)
10
+
7
11
  #### [v1.5.19](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.18...v1.5.19)
8
12
 
13
+ > 10 March 2022
14
+
9
15
  - Fixed toast notify default timeout [`#49`](https://github.com/pagopa/selfcare-common-frontend/pull/49)
10
16
  - Bump urijs from 1.19.8 to 1.19.10 [`#48`](https://github.com/pagopa/selfcare-common-frontend/pull/48)
11
17
 
package/README.md CHANGED
@@ -133,7 +133,7 @@ Selfcare's ending page
133
133
  |------|------|-----------|-------------|
134
134
  | icon | React.ReactElement | N | The ending page icon |
135
135
  | title | string | Y | The ending page title |
136
- | description | string | Y | The ending page description |
136
+ | description | React.ReactNode | Y | The ending page description |
137
137
  | buttonLabel | string | N | The ending page button label if any |
138
138
  | onButtonClick | () => void | N | if defined it will show a button that will performe this action on click |
139
139
 
@@ -280,7 +280,7 @@ The error to be submitted has type AppError which has the following fields:
280
280
  | blocking | boolean | Y | If true, this error will show the error page, not allowing the user to do anything, otherwise it will show a closable popup |
281
281
  | techDescription | string | Y | A description of the error to send when notifying the error |
282
282
  | displayableTitle | string | N | A text to show as title of the popup when a not blocking error occurs |
283
- | displayableDescription | string | N | A text to show as body of the popup when a not blocking error occurs |
283
+ | displayableDescription | React.ReactNode | N | A text to show as body of the popup when a not blocking error occurs |
284
284
  | onRetry | () => void | N | If defined, in case of not blocking error, it will render a retry button which will execute this function |
285
285
  | onClose | () => void | N | If defined, in case of not blocking error, it will be executed when closing the popup |
286
286
  | toNotify | boolean | Y | If true, it will notify the error |
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20220310.1 - selfcare-common-frontend.deploy(23330)
2
- remotes/origin/SELC-222 58d81624542acd349d93c3f65e9b23967db04c7c
1
+ 20220311.1 - selfcare-common-frontend.deploy(23447)
2
+ remotes/origin/SELC-222 d04975e30ac0ca6d261cabbab9b91578e77ba44e
@@ -6,12 +6,12 @@ declare type Props = {
6
6
  /** The ending page title */
7
7
  title: string;
8
8
  /** The ending page description */
9
- description: string;
9
+ description: React.ReactNode;
10
10
  /** The ending page button label if any */
11
11
  buttonLabel?: string;
12
12
  /** if defined it will show a button that will performe this action on click */
13
13
  onButtonClick?: () => void;
14
14
  };
15
- declare const _default: ({ description, onButtonClick, icon, title, buttonLabel }: Props) => JSX.Element;
15
+ declare const _default: ({ description, onButtonClick, icon, title, buttonLabel, }: Props) => JSX.Element;
16
16
  /** Selfcare's Ending Page */
17
17
  export default _default;
@@ -5,5 +5,5 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const CheckIllustrationIcon_1 = (0, tslib_1.__importDefault)(require("./icons/CheckIllustrationIcon"));
7
7
  /** Selfcare's Ending Page */
8
- exports.default = ({ description, onButtonClick, icon = (0, jsx_runtime_1.jsx)(CheckIllustrationIcon_1.default, {}, void 0), title, buttonLabel }) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { minHeight: '100vh' }, display: "flex", flexGrow: 1 }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto' }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center", mb: 5 }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 6 }, { children: icon }), void 0) }), void 0), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center" }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 6 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h2" }, { children: title }), void 0) }), void 0) }), void 0), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center", mb: 7, mt: 1 }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 6 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: description }, void 0) }), void 0) }), void 0), onButtonClick && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center" }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 4 }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", sx: { width: '200px', alignSelf: 'center' }, onClick: onButtonClick }, { children: buttonLabel }), void 0) }), void 0) }), void 0))] }), "0") }), void 0));
8
+ exports.default = ({ description, onButtonClick, icon = (0, jsx_runtime_1.jsx)(CheckIllustrationIcon_1.default, {}, void 0), title, buttonLabel, }) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { minHeight: '100vh' }, display: "flex", flexGrow: 1 }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto' }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center", mb: 5 }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 6 }, { children: icon }), void 0) }), void 0), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center" }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 6 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h2" }, { children: title }), void 0) }), void 0) }), void 0), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center", mb: 7, mt: 1 }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 6 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div" }, { children: description }), void 0) }), void 0) }), void 0), onButtonClick && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, item: true, justifyContent: "center" }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 4 }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", sx: { width: '200px', alignSelf: 'center' }, onClick: onButtonClick }, { children: buttonLabel }), void 0) }), void 0) }), void 0))] }), "0") }), void 0));
9
9
  //# sourceMappingURL=EndingPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":";;;;AAAA,4CAA4E;AAC5E,uGAAkE;AAelE,6BAA6B;AAC7B,kBAAe,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,GAAG,uBAAC,+BAAqB,aAAG,EAAE,KAAK,EAAE,WAAW,EAAS,EAAE,EAAE,CAAC,CAC9G,uBAAC,cAAG,kBAAC,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAE,CAAC,gBACzD,wBAAC,eAAI,kBAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAS,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,iBACvF,uBAAC,eAAI,kBAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,gBAChD,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,gBACb,I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AAS,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,iBACvF,uBAAC,eAAI,kBAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,gBAChD,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,gBACb,IAAI,YACA,YACF,EACP,uBAAC,eAAI,kBAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,gBAC1C,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,gBACd,uBAAC,qBAAU,kBAAC,OAAO,EAAC,IAAI,gBAAE,KAAK,YAAc,YACxC,YACF,EACP,uBAAC,eAAI,kBAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,gBACvD,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,gBACd,uBAAC,qBAAU,kBAAC,SAAS,EAAC,KAAK,gBAAE,WAAW,YAAc,YACjD,YACF,EACN,aAAa,IAAI,CAChB,uBAAC,eAAI,kBAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,gBAC1C,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,gBACd,uBAAC,iBAAM,kBACL,OAAO,EAAC,WAAW,EACnB,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAC3C,OAAO,EAAE,aAAa,gBAErB,WAAW,YACL,YACJ,YACF,CACR,MA5BoC,GAAG,CA6BnC,YACH,CACP,CAAC"}
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
- description?: string;
3
+ description?: React.ReactNode;
3
4
  assistanceEmail?: string;
4
5
  };
5
6
  declare const _default: ({ description, assistanceEmail }: Props) => JSX.Element;
@@ -5,5 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const assistanceService_1 = require("../../../services/assistanceService");
6
6
  const EndingPage_1 = (0, tslib_1.__importDefault)(require("../../EndingPage"));
7
7
  const ErrorIcon_1 = (0, tslib_1.__importDefault)(require("../../icons/ErrorIcon"));
8
- exports.default = ({ description, assistanceEmail }) => ((0, jsx_runtime_1.jsx)(EndingPage_1.default, { icon: (0, jsx_runtime_1.jsx)(ErrorIcon_1.default, {}, void 0), title: 'Spiacenti, qualcosa \u00E8 andato storto.', description: description !== null && description !== void 0 ? description : 'A causa di un errore del sistema non è possibile completare la procedura.', onButtonClick: assistanceEmail ? () => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail)) : undefined, buttonLabel: "Contatta l'assistenza" }, void 0));
8
+ exports.default = ({ description, assistanceEmail }) => ((0, jsx_runtime_1.jsx)(EndingPage_1.default, { icon: (0, jsx_runtime_1.jsx)(ErrorIcon_1.default, {}, void 0), title: "Spiacenti, qualcosa \u00E8 andato storto.", description: description !== null && description !== void 0 ? description : 'A causa di un errore del sistema non è possibile completare la procedura.', onButtonClick: assistanceEmail
9
+ ? () => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))
10
+ : undefined, buttonLabel: "Contatta l'assistenza" }, void 0));
9
11
  //# sourceMappingURL=BlockingErrorPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockingErrorPage.js","sourceRoot":"","sources":["../../../../src/lib/components/ErrorBoundary/components/BlockingErrorPage.tsx"],"names":[],"mappings":";;;;AAAA,2EAAyE;AACzE,+EAA0C;AAC1C,mFAA8C;AAM9C,kBAAe,CAAC,EAAE,WAAW,EAAE,eAAe,EAAS,EAAE,EAAE,CAAC,CAC1D,uBAAC,oBAAU,IACT,IAAI,EAAE,uBAAC,mBAAS,aAAG,EACnB,KAAK,EAAC,2CAAsC,EAC5C,WAAW,EAAG,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,2EAA2E,EACxG,aAAa,EAAG,eAAe,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAA,sCAAkB,EAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAC/G,WAAW,EAAE,uBAAuB,WACpC,CAAE,CAAC"}
1
+ {"version":3,"file":"BlockingErrorPage.js","sourceRoot":"","sources":["../../../../src/lib/components/ErrorBoundary/components/BlockingErrorPage.tsx"],"names":[],"mappings":";;;;AAAA,2EAAyE;AACzE,+EAA0C;AAC1C,mFAA8C;AAM9C,kBAAe,CAAC,EAAE,WAAW,EAAE,eAAe,EAAS,EAAE,EAAE,CAAC,CAC1D,uBAAC,oBAAU,IACT,IAAI,EAAE,uBAAC,mBAAS,aAAG,EACnB,KAAK,EAAC,2CAAsC,EAC5C,WAAW,EACT,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,2EAA2E,EAE5F,aAAa,EACX,eAAe;QACb,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAA,sCAAkB,EAAC,eAAe,CAAC,CAAC;QACnE,CAAC,CAAC,SAAS,EAEf,WAAW,EAAE,uBAAuB,WACpC,CACH,CAAC"}
@@ -23,7 +23,7 @@ function Toast({ open, title, message, onCloseToast, logo = ConfirmIcon_1.defaul
23
23
  borderRadius: '5px',
24
24
  boxShadow: '0px 0px 45px rgba(0, 0, 0, 0.1) ',
25
25
  border: 'none',
26
- } }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ container: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 2 }, { children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { component: logo, viewBox: "0 0 80 24", sx: { width: '80px', height: '37px', marginLeft: '13px' } }, void 0) }), void 0), (0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ item: true, xs: 8 }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ pt: 1, pb: 1, sx: { fontSize: '15px', fontWeight: '600' } }, { children: title }), void 0), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: message }, void 0)] }), void 0), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 2 }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onCloseToast }, { children: (0, jsx_runtime_1.jsx)(Close_1.default, {}, void 0) }), void 0) }), void 0)] }), void 0) }), void 0)) }, void 0));
26
+ } }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ container: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 2 }, { children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { component: logo, viewBox: "0 0 80 24", sx: { width: '80px', height: '37px', marginLeft: '13px' } }, void 0) }), void 0), (0, jsx_runtime_1.jsxs)(material_1.Grid, Object.assign({ item: true, xs: 8 }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ pt: 1, pb: 1, sx: { fontSize: '15px', fontWeight: '600' } }, { children: title }), void 0), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div" }, { children: message }), void 0)] }), void 0), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 2 }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onCloseToast }, { children: (0, jsx_runtime_1.jsx)(Close_1.default, {}, void 0) }), void 0) }), void 0)] }), void 0) }), void 0)) }, void 0));
27
27
  }
28
28
  exports.default = Toast;
29
29
  //# sourceMappingURL=Toast.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../src/lib/components/Toast.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuD;AACvD,4CAA6E;AAC7E,wCAAqC;AACrC,mFAAkD;AAClD,mFAA8C;AAyB9C,MAAM,WAAW,GAAG,IAAA,eAAM,EAAC,gBAAK,C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B,eAAe,EAAE,OAAO;gBACxB,UAAU,EAAE,aAAa,eAAe,aAAa;gBACrD,YAAY,EAAE,KAAK;gBACnB,SAAS,EAAE,kCAAkC;gBAC7C,MAAM,EAAE,MAAM;aACf,gBAED,wBAAC,eAAI,kBAAC,SAAS,uBACb,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,gBACd,uBAAC,kBAAO,IACN,SAAS,EAAE,IAAI,EACf,OAAO,EAAC,WAAW,EACnB,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,WACzD,YACG,EACP,wBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,iBACd,uBAAC,qBAAU,kBAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,gBAClE,KAAK,YACK,EACb,uBAAC,qBAAU,kBAAC,SAAS,EAAC,KAAK,gBAAE,OAAO,YAAc,aAC7C,EACP,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,CAAC,gBACd,uBAAC,qBAAU,kBAAC,OAAO,EAAE,YAAY,gBAC/B,uBAAC,eAAS,aAAG,YACF,YACR,aACF,YACK,CACf,WACQ,CACZ,CAAC;AACJ,CAAC;AAxDD,wBAwDC"}
@@ -12,7 +12,7 @@ export declare type AppError = {
12
12
  /** A text to show as title of the popup when a not blocking error occurs */
13
13
  displayableTitle?: string;
14
14
  /** A text to show as body of the popup when a not blocking error occurs */
15
- displayableDescription?: string;
15
+ displayableDescription?: React.ReactNode;
16
16
  /** If defined, in case of not blocking error, it will render a retry button which will execute this function */
17
17
  onRetry?: () => void;
18
18
  /** If defined, in case of not blocking error, it will be executed when closing the popup */
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.5.19",
4
+ "version": "1.5.20",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",