@pagopa/selfcare-common-frontend 1.34.101 → 1.34.102

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.101](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.101)
7
+ #### [v1.34.102](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.102)
8
8
 
9
+ - Add new util to check for pec email [`#336`](https://github.com/pagopa/selfcare-common-frontend/pull/336)
9
10
  - reset type module [`#335`](https://github.com/pagopa/selfcare-common-frontend/pull/335)
10
11
  - update to esm [`#334`](https://github.com/pagopa/selfcare-common-frontend/pull/334)
11
12
  - improve build for lib [`#333`](https://github.com/pagopa/selfcare-common-frontend/pull/333)
@@ -159,10 +160,16 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
159
160
  - Bump rimraf from 3.0.2 to 6.0.1 [`e6941b9`](https://github.com/pagopa/selfcare-common-frontend/commit/e6941b9e6b05c973d991e2470a851b5ca03926ce)
160
161
  - Used a environment variable to manage correct links in the footer based to product and actual environment [`960e2fb`](https://github.com/pagopa/selfcare-common-frontend/commit/960e2fbaa8aa8f79061639b26dc1a27f28b8aae3)
161
162
 
162
- #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.100...v1.35.0)
163
+ #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.101...v1.35.0)
163
164
 
164
165
  > 20 July 2023
165
166
 
167
+ #### [v1.34.101](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.100...v1.34.101)
168
+
169
+ > 24 March 2026
170
+
171
+ - reset type module [`#335`](https://github.com/pagopa/selfcare-common-frontend/pull/335)
172
+
166
173
  #### [v1.34.100](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.99...v1.34.100)
167
174
 
168
175
  > 19 March 2026
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20260324.1 - selfcare-common-frontend.deploy(263841)
2
- tags/v1.29.0~1^2 3f5753cb8592d084906a197a396e13db9e3b37b5
1
+ 20260326.1 - selfcare-common-frontend.deploy(264210)
2
+ tags/v1.29.0~1^2 bd9419864f532f1ae0ee0f49b1c8ed4908a07f64
@@ -5,3 +5,4 @@ export declare const specialCharacters: {
5
5
  export declare const specialChar2NormalChar: (char: string) => string;
6
6
  export declare const acceptedVowels: RegExp;
7
7
  export declare const acceptedConsonants: RegExp;
8
+ export declare const isPecEmail: (email: string) => boolean;
@@ -128,3 +128,5 @@ export const specialCharacters = {
128
128
  export const specialChar2NormalChar = (char) => specialCharacters[char] || char;
129
129
  export const acceptedVowels = /[aeiouàèìòùáéíóúäëïöüâêîôûæœǝɐɑɒ]/gi;
130
130
  export const acceptedConsonants = /[bcdfghjklmnpqrstvwxyzñçčšžǩßḃḍḫķḻḳṅṯẓẟẝƁƇƔƝƤƧƬƲƳƵʍʜʎɹɾʃʒʔɲ]/gi;
131
+ const PEC_PATTERNS = [/@pec\./i, /@postecert\./i, /@legalmail\./i];
132
+ export const isPecEmail = (email) => PEC_PATTERNS.some((pattern) => pattern.test(email));
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.101",
4
+ "version": "1.34.102",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",