@pagopa/selfcare-common-frontend 1.34.62 → 1.34.63
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 +10 -2
- package/build.info +2 -2
- package/lib/hooks/useFocus.d.ts +1 -0
- package/lib/hooks/useFocus.js +13 -0
- package/lib/hooks/useFocus.js.map +1 -0
- package/package.json +1 -1
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.
|
|
7
|
+
#### [v1.34.63](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.63)
|
|
8
8
|
|
|
9
|
+
- [SELC-7243] feat: added hook useFocus to handle focus for accessibility [`#289`](https://github.com/pagopa/selfcare-common-frontend/pull/289)
|
|
9
10
|
- handle status code 403 [`#288`](https://github.com/pagopa/selfcare-common-frontend/pull/288)
|
|
10
11
|
- [SELC-7070] feat: handle list of success codes [`#287`](https://github.com/pagopa/selfcare-common-frontend/pull/287)
|
|
11
12
|
- [SELC-6995] feat: make the content of the diaolog avaible to the screen reader [`#286`](https://github.com/pagopa/selfcare-common-frontend/pull/286)
|
|
@@ -44,6 +45,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
44
45
|
- SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
|
|
45
46
|
- SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
|
|
46
47
|
- 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)
|
|
48
|
+
- [SELC-7243] feat: added hook useFocus to handle focus for accessibility (#289) [`#7243`](https://pagopa.atlassian.net/browse/7243)
|
|
47
49
|
- [SELC-7070] feat: handle list of success codes (#287) [`#7070`](https://pagopa.atlassian.net/browse/7070)
|
|
48
50
|
- [SELC-6995] feat: make the content of the diaolog avaible to the screen reader (#286) [`#6995`](https://pagopa.atlassian.net/browse/6995)
|
|
49
51
|
- [SELC-6986] feat: and new action and update mui italia (#285) [`#6986`](https://pagopa.atlassian.net/browse/6986)
|
|
@@ -109,10 +111,16 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
109
111
|
- Bump validator and @types/validator [`bca7ef1`](https://github.com/pagopa/selfcare-common-frontend/commit/bca7ef12f16fa24b75d5acbe5a96e1509c479b9e)
|
|
110
112
|
- Bump react and @types/react [`12e0229`](https://github.com/pagopa/selfcare-common-frontend/commit/12e02297e407502c4d1c4e97b1396e5e5de1cd9f)
|
|
111
113
|
|
|
112
|
-
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.
|
|
114
|
+
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.62...v1.35.0)
|
|
113
115
|
|
|
114
116
|
> 20 July 2023
|
|
115
117
|
|
|
118
|
+
#### [v1.34.62](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.61...v1.34.62)
|
|
119
|
+
|
|
120
|
+
> 24 June 2025
|
|
121
|
+
|
|
122
|
+
- handle status code 403 [`#288`](https://github.com/pagopa/selfcare-common-frontend/pull/288)
|
|
123
|
+
|
|
116
124
|
#### [v1.34.61](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.60...v1.34.61)
|
|
117
125
|
|
|
118
126
|
> 19 June 2025
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.29.0~1^2
|
|
1
|
+
20250710.1 - selfcare-common-frontend.deploy(222486)
|
|
2
|
+
tags/v1.29.0~1^2 81538df74f2029cffeaebffc9e4495eeb3ce1afc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useFocus: (elementRef: React.RefObject<any>, dependencies?: any) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFocus = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useFocus = (elementRef, dependencies = []) => {
|
|
6
|
+
(0, react_1.useEffect)(() => {
|
|
7
|
+
if (elementRef.current) {
|
|
8
|
+
elementRef.current.focus();
|
|
9
|
+
}
|
|
10
|
+
}, [dependencies]);
|
|
11
|
+
};
|
|
12
|
+
exports.useFocus = useFocus;
|
|
13
|
+
//# sourceMappingURL=useFocus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocus.js","sourceRoot":"","sources":["../../../src/lib/hooks/useFocus.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAE3B,MAAM,QAAQ,GAAG,CACtB,UAAgC,EAChC,eAAoB,EAAE,EAChB,EAAE;IACR,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAI,UAAU,CAAC,OAAO,EAAE;YACtB,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SAC5B;IACL,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;AACrB,CAAC,CAAC;AATW,QAAA,QAAQ,YASnB"}
|
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.63",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|