@pagopa/selfcare-common-frontend 1.34.51 → 1.34.53

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,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.51](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.51)
7
+ #### [v1.34.53](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.53)
8
8
 
9
+ - [SELC-6381] feat: new action to handle create delegation [`#274`](https://github.com/pagopa/selfcare-common-frontend/pull/274)
9
10
  - feat: Introduced support for region languages+save language into session storage [`#258`](https://github.com/pagopa/selfcare-common-frontend/pull/258)
10
11
  - [SELC-6042] fix: Ensuring detection language and fix unit tests [`#256`](https://github.com/pagopa/selfcare-common-frontend/pull/256)
11
12
  - [SELC-5944] feat: Resolved vulnerability from nth-check library [`#251`](https://github.com/pagopa/selfcare-common-frontend/pull/251)
@@ -32,6 +33,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
32
33
  - SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
33
34
  - SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
34
35
  - 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)
36
+ - [SELC-6381] feat: new action to handle create delegation (#274) [`#6381`](https://pagopa.atlassian.net/browse/6381)
37
+ - [SELC-6375] feat: add new user role ADMIN_EA_IO [`#6375`](https://pagopa.atlassian.net/browse/6375)
35
38
  - [SELC-6042] fix: Ensuring detection language and fix unit tests (#256) [`#6042`](https://pagopa.atlassian.net/browse/6042)
36
39
  - [SELC-6042] feat: Added language detection [`#6042`](https://pagopa.atlassian.net/browse/6042)
37
40
  - [SELC-5943] Feat: resolved security vulnerability for validator dependency [`#5943`](https://pagopa.atlassian.net/browse/5943)
@@ -89,10 +92,22 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
89
92
  - Bump validator and @types/validator [`bca7ef1`](https://github.com/pagopa/selfcare-common-frontend/commit/bca7ef12f16fa24b75d5acbe5a96e1509c479b9e)
90
93
  - Bump react and @types/react [`12e0229`](https://github.com/pagopa/selfcare-common-frontend/commit/12e02297e407502c4d1c4e97b1396e5e5de1cd9f)
91
94
 
92
- #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.50...v1.35.0)
95
+ #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.52...v1.35.0)
93
96
 
94
97
  > 20 July 2023
95
98
 
99
+ #### [v1.34.52](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.51...v1.34.52)
100
+
101
+ > 28 January 2025
102
+
103
+ - [SELC-6375] feat: add new user role ADMIN_EA_IO [`#6375`](https://pagopa.atlassian.net/browse/6375)
104
+
105
+ #### [v1.34.51](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.50...v1.34.51)
106
+
107
+ > 2 December 2024
108
+
109
+ - feat: Introduced support for region languages+save language into session storage [`#258`](https://github.com/pagopa/selfcare-common-frontend/pull/258)
110
+
96
111
  #### [v1.34.50](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.49...v1.34.50)
97
112
 
98
113
  > 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.2 - selfcare-common-frontend.deploy(195187)
2
+ tags/v1.29.0~1^2 63505b7fe618ee3ee131c369bc810d47051058df
@@ -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: {
@@ -23,6 +23,7 @@ export declare enum Actions {
23
23
  ManageProductUsers = "Selc:ManageProductUsers",
24
24
  ListProductUsers = "Selc:ListProductUsers",
25
25
  ViewDelegations = "Selc:ViewDelegations",
26
+ CreateDelegation = "Selc:CreateDelegation",
26
27
  ViewManagedInstitutions = "Selc:ViewManagedInstitutions",
27
28
  AccessProductBackoffice = "Selc:AccessProductBackoffice",
28
29
  ListActiveProducts = "Selc:ListActiveProducts",
@@ -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',
@@ -46,6 +42,7 @@ var Actions;
46
42
  Actions["ManageProductUsers"] = "Selc:ManageProductUsers";
47
43
  Actions["ListProductUsers"] = "Selc:ListProductUsers";
48
44
  Actions["ViewDelegations"] = "Selc:ViewDelegations";
45
+ Actions["CreateDelegation"] = "Selc:CreateDelegation";
49
46
  Actions["ViewManagedInstitutions"] = "Selc:ViewManagedInstitutions";
50
47
  Actions["AccessProductBackoffice"] = "Selc:AccessProductBackoffice";
51
48
  Actions["ListActiveProducts"] = "Selc:ListActiveProducts";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/lib/utils/constants.ts"],"names":[],"mappings":";;;AAAa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AP,eAAO,KAAP,eAAO,QAclB"}
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.53",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",