@pagopa/selfcare-common-frontend 1.2.2 → 1.2.3

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,20 +4,57 @@ 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
- #### 1.2.2
7
+ #### [v1.2.3](https://github.com/pagopa/selfcare-common-frontend/compare/v1.2.2...v1.2.3)
8
+
9
+ - SELC-450 filterModal will discard selected when closed [`#15`](https://github.com/pagopa/selfcare-common-frontend/pull/15)
10
+ - fixed withLogin mock [`#14`](https://github.com/pagopa/selfcare-common-frontend/pull/14)
11
+ - SELC-450 filterModal will discard selected when closed (#15) [`#450`](https://pagopa.atlassian.net/browse/450) [`#450`](https://pagopa.atlassian.net/browse/450)
12
+
13
+ #### [v1.2.2](https://github.com/pagopa/selfcare-common-frontend/compare/v1.2.1...v1.2.2)
14
+
15
+ > 2 February 2022
8
16
 
9
17
  - Selc 447 session modal defaults [`#13`](https://github.com/pagopa/selfcare-common-frontend/pull/13)
18
+ - Selc 447 session modal defaults (#13) [`#447`](https://pagopa.atlassian.net/browse/447)
19
+
20
+ #### [v1.2.1](https://github.com/pagopa/selfcare-common-frontend/compare/v1.2.0...v1.2.1)
21
+
22
+ > 2 February 2022
23
+
10
24
  - SELC-417 fixed useUnloadEventInterceptor useEffect [`#12`](https://github.com/pagopa/selfcare-common-frontend/pull/12)
25
+ - SELC-417 fixed useUnloadEventInterceptor useEffect (#12) [`#417`](https://pagopa.atlassian.net/browse/417) [`#417`](https://pagopa.atlassian.net/browse/417)
26
+
27
+ #### [v1.2.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.1.1...v1.2.0)
28
+
29
+ > 1 February 2022
30
+
11
31
  - added api-utils and utility to use together with @pagopa/openapi-codegen-ts [`#11`](https://github.com/pagopa/selfcare-common-frontend/pull/11)
12
32
  - Selc-408 fix concurrent notify [`#10`](https://github.com/pagopa/selfcare-common-frontend/pull/10)
13
33
  - bug fix [`#8`](https://github.com/pagopa/selfcare-common-frontend/pull/8)
14
34
  - Selc 408 Implementare gestione notifiche utente [`#7`](https://github.com/pagopa/selfcare-common-frontend/pull/7)
35
+ - Selc-408 fix concurrent notify (#10) [`#408`](https://pagopa.atlassian.net/browse/408)
36
+ - Selc 417 (#9) - UnloadEventInterceptor feature [`#417`](https://pagopa.atlassian.net/browse/417)
37
+
38
+ #### [v1.1.1](https://github.com/pagopa/selfcare-common-frontend/compare/v1.1.0...v1.1.1)
39
+
40
+ > 27 January 2022
41
+
15
42
  - fix EndingPage width [`#6`](https://github.com/pagopa/selfcare-common-frontend/pull/6)
43
+
44
+ #### [v1.1.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.0.0...v1.1.0)
45
+
46
+ > 27 January 2022
47
+
16
48
  - SELC 369 [`#5`](https://github.com/pagopa/selfcare-common-frontend/pull/5)
17
49
  - SELC-393 Gestione visualizzazione errore tramite Toast [`#4`](https://github.com/pagopa/selfcare-common-frontend/pull/4)
18
50
  - Bump node-fetch from 3.0.0 to 3.1.1 [`#3`](https://github.com/pagopa/selfcare-common-frontend/pull/3)
19
51
  - Bump nanoid from 3.1.30 to 3.2.0 [`#2`](https://github.com/pagopa/selfcare-common-frontend/pull/2)
20
- - Bump follow-redirects from 1.14.4 to 1.14.7 [`#1`](https://github.com/pagopa/selfcare-common-frontend/pull/1)
21
- - common logic extracted [`06d5b9c`](https://github.com/pagopa/selfcare-common-frontend/commit/06d5b9cc4d9a653e8ed08294efa011cd40cf80b7)
22
- - Selc 417 (#9) - UnloadEventInterceptor feature [`59e769d`](https://github.com/pagopa/selfcare-common-frontend/commit/59e769d382f422a7ab6c687a0e8655854df25193)
23
- - example code [`37e354d`](https://github.com/pagopa/selfcare-common-frontend/commit/37e354d15a0d7e74a6e568127267ce17cd6b78fa)
52
+ - SELC 369 (#5) [`#369`](https://pagopa.atlassian.net/browse/369)
53
+ - SELC-393 Gestione visualizzazione errore tramite Toast (#4) [`#393`](https://pagopa.atlassian.net/browse/393)
54
+ - fixed useLoading unitTest [`371e31b`](https://github.com/pagopa/selfcare-common-frontend/commit/371e31b89cf2d4f3d8d23a8977c619509844d904)
55
+
56
+ ### [v1.0.0](https://github.com/pagopa/selfcare-common-frontend/compare/v0.1.4...v1.0.0)
57
+
58
+ > 21 January 2022
59
+
60
+ - common library completed [`2bd0acc`](https://github.com/pagopa/selfcare-common-frontend/commit/2bd0acc6c09f042249861ad33446dd00a38ca41d)
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20220202.2 - selfcare-common-frontend.deploy(18875)
2
- tags/v1.2.2^0 504858b61e5a76d093014dae8c7ba484879d5a78
1
+ 20220203.1 - selfcare-common-frontend.deploy(18966)
2
+ tags/v1.2.3^0 2a138356926f5e85963974783f4199994c6e2b66
@@ -12,6 +12,7 @@ const ClearOutlined_1 = (0, tslib_1.__importDefault)(require("@mui/icons-materia
12
12
  function FilterModal({ open, handleClose, title, filterModalConfig, height = '16em', minHeight = '16em', }) {
13
13
  const theme = (0, styles_1.useTheme)();
14
14
  const fullScreen = (0, useMediaQuery_1.default)(theme.breakpoints.down('xs'));
15
+ React.useEffect(() => setValueRadio(''), [open]);
15
16
  const [valueRadio, setValueRadio] = React.useState('');
16
17
  const handleChange = (_, value) => {
17
18
  setValueRadio(value);
@@ -1 +1 @@
1
- {"version":3,"file":"FilterModal.js","sourceRoot":"","sources":["../../src/lib/components/FilterModal.tsx"],"names":[],"mappings":";;;;AAAA,0DAA+B;AAC/B,4CASuB;AACvB,+EAA0C;AAC1C,6FAAwD;AACxD,iDAAgD;AAChD,mGAAkE;AA2BlE,8EAA8E;AAC9E,SAAwB,WAAW,CAAC,EAClC,IAAI,EACJ,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,MAAM,GAAG,MAAM,EACf,SAAS,GAAG,MAAM,GACZ;IACN,MAAM,KAAK,GAAG,IAAA,iBAAQ,G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AE,GAAG,EAAE,gBAExE,uBAAC,uBAAiB,aAAG,YACV,EACb,uBAAC,qBAAU,kBAAC,OAAO,EAAC,IAAI,EAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,gBACjE,cAAc,KAAK,EAAE,YACX,aACR,YACF,EAEP,uBAAC,eAAI,kBAAC,SAAS,QAAC,IAAI,sBAClB,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,gBACtB,uBAAC,qBAAU,gCACE,QAAQ,EACnB,IAAI,EAAC,gCAAgC,EACrC,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,YAAY,gBAErB,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,uBAAC,2BAAgB,IACf,KAAK,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,QAAQ,CAAC,KAAK,CAAC,EACzC,OAAO,EAAE,uBAAC,gBAAK,aAAG,EAClB,KAAK,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,QAAQ,CAAC,KAAK,CAAC,IACpC,KAAK,CACV,CACH,CAAC,YACS,YACR,YACF,EAEP,uBAAC,eAAI,kBAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,gBACtB,uBAAC,iBAAM,kBACL,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,EAC3C,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,YAAY,oCAGd,YACJ,aACH,YACD,YACA,CACV,CAAC;AACJ,CAAC;AAjFD,8BAiFC"}
@@ -18,9 +18,10 @@ const verifyMockExecution = (state) => {
18
18
  exports.verifyMockExecution = verifyMockExecution;
19
19
  exports.default = (WrappedComponent) => () => {
20
20
  const dispatch = (0, react_redux_1.useDispatch)();
21
+ const loggedUser = (0, react_redux_1.useSelector)(userSlice_1.userSelectors.selectLoggedUser);
21
22
  (0, react_1.useEffect)(() => {
22
23
  dispatch(userSlice_1.userActions.setLoggedUser(exports.mockedUser));
23
24
  }, []);
24
- return (0, jsx_runtime_1.jsx)(WrappedComponent, {}, void 0);
25
+ return loggedUser ? (0, jsx_runtime_1.jsx)(WrappedComponent, {}, void 0) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0);
25
26
  };
26
27
  //# sourceMappingURL=withLogin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withLogin.js","sourceRoot":"","sources":["../../../src/lib/decorators/__mocks__/withLogin.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkC;AAClC,6CAA0C;AAE1C,4DAA2D;AAE9C,QAAA,UAAU,GAAS;IAC9B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,kBAAkB;IAC3B,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,KAAU,EAAE,EAAE;IAChD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,kBAAU,CAAC,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEF,kBAAe,CAAC,gBAA0C,EAAE,EAAE,CAAC,GAAG,EAAE;IAClE,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,uBAAW,CAAC,aAAa,CAAC,kBAAU,CAAC,CAAC,CAAC;IAClD,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,uBAAC,gBAAgB,aAAG,CAAC;AAC9B,CAAC,CAAC"}
1
+ {"version":3,"file":"withLogin.js","sourceRoot":"","sources":["../../../src/lib/decorators/__mocks__/withLogin.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkC;AAClC,6CAAuD;AAEvD,4DAA0E;AAE7D,QAAA,UAAU,GAAS;IAC9B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,kBAAkB;IAC3B,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,KAAU,EAAE,EAAE;IAChD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,kBAAU,CAAC,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEF,kBAAe,CAAC,gBAA0C,EAAE,EAAE,CAAC,GAAG,EAAE;IAClE,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,IAAA,yBAAW,EAAC,yBAAa,CAAC,gBAAgB,CAAC,CAAC;IAC/D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,uBAAW,CAAC,aAAa,CAAC,kBAAU,CAAC,CAAC,CAAC;IAClD,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,UAAU,CAAC,CAAC,CAAC,uBAAC,gBAAgB,aAAG,CAAC,CAAC,CAAC,0DAAK,CAAC;AACnD,CAAC,CAAC"}
package/index.d.ts CHANGED
@@ -1,21 +1,13 @@
1
1
  export { default as Header } from './components/Header/Header';
2
- export * from './components/Header/Header';
3
2
  export { default as Footer } from './components/Footer/Footer';
4
- export * from './components/Footer/Footer';
5
3
  export { default as CustomAvatar } from './components/CustomAvatar';
6
- export * from './components/CustomAvatar';
7
4
  export { default as CustomPagination } from './components/CustomPagination';
8
- export * from './components/CustomPagination';
9
5
  export { default as FilterModal } from './components/FilterModal';
10
- export * from './components/FilterModal';
11
6
  export { default as SessionModal } from './components/SessionModal';
12
- export * from './components/SessionModal';
13
7
  export { default as TitleBox } from './components/TitleBox';
14
- export * from './components/TitleBox';
15
8
  export { default as Toast } from './components/Toast';
16
- export * from './components/Toast';
9
+ export { default as EndingPage } from './components/EndingPage';
17
10
  export { default as ErrorBoundary } from './components/ErrorBoundary/ErrorBoundary';
18
- export * from './components/ErrorBoundary/ErrorBoundary';
19
11
  export { default as LoadingOverlay } from './components/Loading/LoadingOverlay';
20
- export * from './components/Loading/LoadingOverlay';
21
- export { default as EndingPage } from './components/EndingPage';
12
+ export { default as UserNotifyHandle } from './components/UserNotifyHandle';
13
+ export { default as UnloadEventHandler } from './components/UnloadEventHandler';
package/index.js CHANGED
@@ -1,37 +1,33 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EndingPage = exports.LoadingOverlay = exports.ErrorBoundary = exports.Toast = exports.TitleBox = exports.SessionModal = exports.FilterModal = exports.CustomPagination = exports.CustomAvatar = exports.Footer = exports.Header = void 0;
4
- const tslib_1 = require("tslib");
6
+ exports.UnloadEventHandler = exports.UserNotifyHandle = exports.LoadingOverlay = exports.ErrorBoundary = exports.EndingPage = exports.Toast = exports.TitleBox = exports.SessionModal = exports.FilterModal = exports.CustomPagination = exports.CustomAvatar = exports.Footer = exports.Header = void 0;
5
7
  var Header_1 = require("./components/Header/Header");
6
- Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(Header_1).default; } });
7
- (0, tslib_1.__exportStar)(require("./components/Header/Header"), exports);
8
+ Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return __importDefault(Header_1).default; } });
8
9
  var Footer_1 = require("./components/Footer/Footer");
9
- Object.defineProperty(exports, "Footer", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(Footer_1).default; } });
10
- (0, tslib_1.__exportStar)(require("./components/Footer/Footer"), exports);
10
+ Object.defineProperty(exports, "Footer", { enumerable: true, get: function () { return __importDefault(Footer_1).default; } });
11
11
  var CustomAvatar_1 = require("./components/CustomAvatar");
12
- Object.defineProperty(exports, "CustomAvatar", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(CustomAvatar_1).default; } });
13
- (0, tslib_1.__exportStar)(require("./components/CustomAvatar"), exports);
12
+ Object.defineProperty(exports, "CustomAvatar", { enumerable: true, get: function () { return __importDefault(CustomAvatar_1).default; } });
14
13
  var CustomPagination_1 = require("./components/CustomPagination");
15
- Object.defineProperty(exports, "CustomPagination", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(CustomPagination_1).default; } });
16
- (0, tslib_1.__exportStar)(require("./components/CustomPagination"), exports);
14
+ Object.defineProperty(exports, "CustomPagination", { enumerable: true, get: function () { return __importDefault(CustomPagination_1).default; } });
17
15
  var FilterModal_1 = require("./components/FilterModal");
18
- Object.defineProperty(exports, "FilterModal", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(FilterModal_1).default; } });
19
- (0, tslib_1.__exportStar)(require("./components/FilterModal"), exports);
16
+ Object.defineProperty(exports, "FilterModal", { enumerable: true, get: function () { return __importDefault(FilterModal_1).default; } });
20
17
  var SessionModal_1 = require("./components/SessionModal");
21
- Object.defineProperty(exports, "SessionModal", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(SessionModal_1).default; } });
22
- (0, tslib_1.__exportStar)(require("./components/SessionModal"), exports);
18
+ Object.defineProperty(exports, "SessionModal", { enumerable: true, get: function () { return __importDefault(SessionModal_1).default; } });
23
19
  var TitleBox_1 = require("./components/TitleBox");
24
- Object.defineProperty(exports, "TitleBox", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(TitleBox_1).default; } });
25
- (0, tslib_1.__exportStar)(require("./components/TitleBox"), exports);
20
+ Object.defineProperty(exports, "TitleBox", { enumerable: true, get: function () { return __importDefault(TitleBox_1).default; } });
26
21
  var Toast_1 = require("./components/Toast");
27
- Object.defineProperty(exports, "Toast", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(Toast_1).default; } });
28
- (0, tslib_1.__exportStar)(require("./components/Toast"), exports);
22
+ Object.defineProperty(exports, "Toast", { enumerable: true, get: function () { return __importDefault(Toast_1).default; } });
23
+ var EndingPage_1 = require("./components/EndingPage");
24
+ Object.defineProperty(exports, "EndingPage", { enumerable: true, get: function () { return __importDefault(EndingPage_1).default; } });
29
25
  var ErrorBoundary_1 = require("./components/ErrorBoundary/ErrorBoundary");
30
- Object.defineProperty(exports, "ErrorBoundary", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(ErrorBoundary_1).default; } });
31
- (0, tslib_1.__exportStar)(require("./components/ErrorBoundary/ErrorBoundary"), exports);
26
+ Object.defineProperty(exports, "ErrorBoundary", { enumerable: true, get: function () { return __importDefault(ErrorBoundary_1).default; } });
32
27
  var LoadingOverlay_1 = require("./components/Loading/LoadingOverlay");
33
- Object.defineProperty(exports, "LoadingOverlay", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(LoadingOverlay_1).default; } });
34
- (0, tslib_1.__exportStar)(require("./components/Loading/LoadingOverlay"), exports);
35
- var EndingPage_1 = require("./components/EndingPage");
36
- Object.defineProperty(exports, "EndingPage", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(EndingPage_1).default; } });
28
+ Object.defineProperty(exports, "LoadingOverlay", { enumerable: true, get: function () { return __importDefault(LoadingOverlay_1).default; } });
29
+ var UserNotifyHandle_1 = require("./components/UserNotifyHandle");
30
+ Object.defineProperty(exports, "UserNotifyHandle", { enumerable: true, get: function () { return __importDefault(UserNotifyHandle_1).default; } });
31
+ var UnloadEventHandler_1 = require("./components/UnloadEventHandler");
32
+ Object.defineProperty(exports, "UnloadEventHandler", { enumerable: true, get: function () { return __importDefault(UnloadEventHandler_1).default; } });
37
33
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/lib/index.ts"],"names":[],"mappings":";;;;AAAA,qDAA+D;AAAtD,8HA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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.2.2",
4
+ "version": "1.2.3",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",
@@ -64,7 +64,7 @@
64
64
  "lint-autofix": "yarn setTsConfigStart && eslint . -c .eslintrc.js --ext .ts,.tsx --fix",
65
65
  "lint": "yarn setTsConfigStart && eslint . -c .eslintrc.js --ext .ts,.tsx ",
66
66
  "prettify": "prettier --write \"./**/*.{ts,tsx}\"",
67
- "version": "auto-changelog -p --config .auto-changelog.json --tag-pattern \\d+\\.\\d+.\\d+$ --unreleased --ignore-commit-pattern \"Bump version to\" --starting-version v1.0.0 && git add CHANGELOG.md"
67
+ "version": "auto-changelog -p --config .auto-changelog.json && git add CHANGELOG.md"
68
68
  },
69
69
  "eslintConfig": {
70
70
  "extends": [