@pagopa/selfcare-common-frontend 1.34.51 → 1.34.52

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,7 +4,7 @@ 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.51](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.51)
7
+ #### [v1.34.52](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.52)
8
8
 
9
9
  - feat: Introduced support for region languages+save language into session storage [`#258`](https://github.com/pagopa/selfcare-common-frontend/pull/258)
10
10
  - [SELC-6042] fix: Ensuring detection language and fix unit tests [`#256`](https://github.com/pagopa/selfcare-common-frontend/pull/256)
@@ -32,6 +32,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
32
32
  - SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
33
33
  - SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
34
34
  - 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)
35
+ - [SELC-6375] feat: add new user role ADMIN_EA_IO [`#6375`](https://pagopa.atlassian.net/browse/6375)
35
36
  - [SELC-6042] fix: Ensuring detection language and fix unit tests (#256) [`#6042`](https://pagopa.atlassian.net/browse/6042)
36
37
  - [SELC-6042] feat: Added language detection [`#6042`](https://pagopa.atlassian.net/browse/6042)
37
38
  - [SELC-5943] Feat: resolved security vulnerability for validator dependency [`#5943`](https://pagopa.atlassian.net/browse/5943)
@@ -89,10 +90,16 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
89
90
  - Bump validator and @types/validator [`bca7ef1`](https://github.com/pagopa/selfcare-common-frontend/commit/bca7ef12f16fa24b75d5acbe5a96e1509c479b9e)
90
91
  - Bump react and @types/react [`12e0229`](https://github.com/pagopa/selfcare-common-frontend/commit/12e02297e407502c4d1c4e97b1396e5e5de1cd9f)
91
92
 
92
- #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.50...v1.35.0)
93
+ #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.51...v1.35.0)
93
94
 
94
95
  > 20 July 2023
95
96
 
97
+ #### [v1.34.51](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.50...v1.34.51)
98
+
99
+ > 2 December 2024
100
+
101
+ - feat: Introduced support for region languages+save language into session storage [`#258`](https://github.com/pagopa/selfcare-common-frontend/pull/258)
102
+
96
103
  #### [v1.34.50](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.49...v1.34.50)
97
104
 
98
105
  > 2 December 2024
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20241202.3 - selfcare-common-frontend.deploy(186886)
2
- tags/v1.29.0~1^2 02a1f4465c9d8c97e809de18164a636643e2f43e
1
+ 20250128.1 - selfcare-common-frontend.deploy(195183)
2
+ tags/v1.29.0~1^2 20b6dd09c75f2bcdabcf82146990a924558d04f8
@@ -1,6 +1,6 @@
1
1
  export declare const LOADING_TASK_LOGIN_CHECK = "LOGIN_CHECK";
2
2
  export declare const LOADING_TASK_RETRIEVE_CACHED_VALUES = "RETRIEVE_CACHED_VALUES";
3
- export type UserRole = 'ADMIN' | 'LIMITED' | 'ADMIN_EA';
3
+ export type UserRole = 'ADMIN' | 'LIMITED' | 'ADMIN_EA' | 'ADMIN_EA_IO';
4
4
  export declare const emailRegexp: RegExp;
5
5
  /** The short and long labels used for the roles of selfcare's projects */
6
6
  export declare const roleLabels: {
@@ -4,36 +4,32 @@ exports.Actions = exports.pnpgRoleLabels = exports.roleLabels = exports.emailReg
4
4
  exports.LOADING_TASK_LOGIN_CHECK = 'LOGIN_CHECK';
5
5
  exports.LOADING_TASK_RETRIEVE_CACHED_VALUES = 'RETRIEVE_CACHED_VALUES';
6
6
  exports.emailRegexp = new RegExp('^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,6}$');
7
+ const commonRolesAdminLabels = {
8
+ shortLabelKey: 'common.roles.admin.shortLabel',
9
+ longLabelKey: 'common.roles.admin.longLabel',
10
+ descriptionKey: 'common.roles.admin.description',
11
+ };
7
12
  /** The short and long labels used for the roles of selfcare's projects */
8
13
  exports.roleLabels = {
9
- ADMIN: {
10
- shortLabelKey: 'common.roles.admin.shortLabel',
11
- longLabelKey: 'common.roles.admin.longLabel',
12
- descriptionKey: 'common.roles.admin.description',
13
- },
14
- ADMIN_EA: {
15
- shortLabelKey: 'common.roles.admin.shortLabel',
16
- longLabelKey: 'common.roles.admin.longLabel',
17
- descriptionKey: 'common.roles.admin.description',
18
- },
14
+ ADMIN: commonRolesAdminLabels,
15
+ ADMIN_EA: commonRolesAdminLabels,
16
+ ADMIN_EA_IO: commonRolesAdminLabels,
19
17
  LIMITED: {
20
18
  shortLabelKey: 'common.roles.limited.shortLabel',
21
19
  longLabelKey: 'common.roles.limited.longLabel',
22
20
  descriptionKey: 'common.roles.limited.description',
23
21
  },
24
22
  };
23
+ const commonRolesPnpgAdminLabels = {
24
+ shortLabelKey: 'common.pnpgRoles.admin.shortLabel',
25
+ longLabelKey: 'common.pnpgRoles.admin.longLabel',
26
+ descriptionKey: 'common.pnpgRoles.admin.description',
27
+ };
25
28
  /** The short and long labels used for the roles of PNPG */
26
29
  exports.pnpgRoleLabels = {
27
- ADMIN: {
28
- shortLabelKey: 'common.pnpgRoles.admin.shortLabel',
29
- longLabelKey: 'common.pnpgRoles.admin.longLabel',
30
- descriptionKey: 'common.pnpgRoles.admin.description',
31
- },
32
- ADMIN_EA: {
33
- shortLabelKey: 'common.pnpgRoles.admin.shortLabel',
34
- longLabelKey: 'common.pnpgRoles.admin.longLabel',
35
- descriptionKey: 'common.pnpgRoles.admin.description',
36
- },
30
+ ADMIN: commonRolesPnpgAdminLabels,
31
+ ADMIN_EA: commonRolesPnpgAdminLabels,
32
+ ADMIN_EA_IO: commonRolesPnpgAdminLabels,
37
33
  LIMITED: {
38
34
  shortLabelKey: 'common.pnpgRoles.limited.shortLabel',
39
35
  longLabelKey: 'common.pnpgRoles.limited.longLabel',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/lib/utils/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,aAAa,CAAC;AACzC,QAAA,mCAAmC,GAAG,wBAAwB,CAAC;AAI/D,QAAA,WAAW,GAAG,IAAI,MAAM,CAAC,uCAAuC,CAAC,CAAC;AAE/E,0EAA0E;AAC7D,QAAA,UAAU,GAEnB;IACF,KAAK,EAAE;QACL,aAAa,EAAE,+BAA+B;QAC9C,YAAY,EAAE,8BAA8B;QAC5C,cAAc,EAAE,gCAAgC;KACjD;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,+BAA+B;QAC9C,YAAY,EAAE,8BAA8B;QAC5C,cAAc,EAAE,gCAAgC;KACjD;IACD,OAAO,EAAE;QACP,aAAa,EAAE,iCAAiC;QAChD,YAAY,EAAE,gCAAgC;QAC9C,cAAc,EAAE,kCAAkC;KACnD;CACF,CAAC;AAEF,2DAA2D;AAC9C,QAAA,cAAc,GAEvB;IACF,KAAK,EAAE;QACL,aAAa,EAAE,mCAAmC;QAClD,YAAY,EAAE,kCAAkC;QAChD,cAAc,EAAE,oCAAoC;KACrD;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,mCAAmC;QAClD,YAAY,EAAE,kCAAkC;QAChD,cAAc,EAAE,oCAAoC;KACrD;IACD,OAAO,EAAE;QACP,aAAa,EAAE,qCAAqC;QACpD,YAAY,EAAE,oCAAoC;QAClD,cAAc,EAAE,sCAAsC;KACvD;CACF,CAAC;AAEF,IAAY,OAaX;AAbD,WAAY,OAAO;IACjB,2DAAgD,CAAA;IAChD,yDAA8C,CAAA;IAC9C,qDAA0C,CAAA;IAC1C,mDAAwC,CAAA;IACxC,m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A0C,CAAA;IAC1C,mDAAwC,CAAA;IACxC,mEAAwD,CAAA;IACxD,mEAAwD,CAAA;IACxD,yDAA8C,CAAA;IAC9C,+DAAoD,CAAA;IACpD,6DAAkD,CAAA;IAClD,2CAAgC,CAAA;IAChC,yCAA8B,CAAA;IAC9B,2DAAgD,CAAA;AAClD,CAAC,EAbW,OAAO,GAAP,eAAO,KAAP,eAAO,QAalB"}
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.51",
4
+ "version": "1.34.52",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",