@pagopa/selfcare-common-frontend 1.34.106 → 1.34.108
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 +18 -2
- package/build.info +2 -2
- package/lib/services/analyticsService.d.ts +1 -0
- package/lib/services/analyticsService.js +11 -0
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,10 @@ 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.108](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.108)
|
|
8
8
|
|
|
9
|
+
- update mui 2.4 [`#342`](https://github.com/pagopa/selfcare-common-frontend/pull/342)
|
|
10
|
+
- expose super property [`#341`](https://github.com/pagopa/selfcare-common-frontend/pull/341)
|
|
9
11
|
- add utility function getAppArea [`#339`](https://github.com/pagopa/selfcare-common-frontend/pull/339)
|
|
10
12
|
- created a new reducer for products [`#338`](https://github.com/pagopa/selfcare-common-frontend/pull/338)
|
|
11
13
|
- Add new util to check for pec email [`#336`](https://github.com/pagopa/selfcare-common-frontend/pull/336)
|
|
@@ -163,10 +165,24 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
163
165
|
- Bump rimraf from 3.0.2 to 6.0.1 [`e6941b9`](https://github.com/pagopa/selfcare-common-frontend/commit/e6941b9e6b05c973d991e2470a851b5ca03926ce)
|
|
164
166
|
- add GitHub Actions workflow for deploying to npm [`745bcbb`](https://github.com/pagopa/selfcare-common-frontend/commit/745bcbb8465bf88417dbc82df12b504bdb3b5757)
|
|
165
167
|
|
|
166
|
-
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.
|
|
168
|
+
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.107...v1.35.0)
|
|
167
169
|
|
|
168
170
|
> 20 July 2023
|
|
169
171
|
|
|
172
|
+
#### [v1.34.107](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.106...v1.34.107)
|
|
173
|
+
|
|
174
|
+
> 7 May 2026
|
|
175
|
+
|
|
176
|
+
- expose super property [`#341`](https://github.com/pagopa/selfcare-common-frontend/pull/341)
|
|
177
|
+
|
|
178
|
+
#### [v1.34.106](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.105...v1.34.106)
|
|
179
|
+
|
|
180
|
+
> 7 May 2026
|
|
181
|
+
|
|
182
|
+
- add GitHub Actions workflow for deploying to npm [`745bcbb`](https://github.com/pagopa/selfcare-common-frontend/commit/745bcbb8465bf88417dbc82df12b504bdb3b5757)
|
|
183
|
+
- add GitHub Actions workflow for code review, build, linting, and testing [`09a789d`](https://github.com/pagopa/selfcare-common-frontend/commit/09a789d416d0cbb92652413e0d0528b18350778e)
|
|
184
|
+
- add GitHub Actions workflow for code review, build, linting, and testing [`c64f62c`](https://github.com/pagopa/selfcare-common-frontend/commit/c64f62c975acaaeb8ef312602de98c5eea427fc4)
|
|
185
|
+
|
|
170
186
|
#### [v1.34.105](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.104...v1.34.105)
|
|
171
187
|
|
|
172
188
|
> 29 April 2026
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
20260507.
|
|
2
|
-
tags/v1.29.0~1^2
|
|
1
|
+
20260507.3 - selfcare-common-frontend.deploy(270924)
|
|
2
|
+
tags/v1.29.0~1^2 9d35ffc8dfb05aa1bda7e0f908fb517dbb14292a
|
|
@@ -10,3 +10,4 @@ export declare const trackAppError: (error: AppError) => void;
|
|
|
10
10
|
* @property callback: an action taken when the track has completed (If the action taken immediately after the track is an exit action from the application, it's better to use this callback to perform the exit, in order to give to mixPanel the time to send the event)
|
|
11
11
|
*/
|
|
12
12
|
export declare const trackEvent: (event_name: string, properties?: any, callback?: () => void) => void;
|
|
13
|
+
export declare const registerSuperProperty: (properties: Record<string, any>) => void;
|
|
@@ -84,3 +84,14 @@ const trackEventThroughAnalyticTool = (event_name, properties, callback) => {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
+
export const registerSuperProperty = (properties) => {
|
|
88
|
+
if (CONFIG.ANALYTCS.ENABLE && window.initMixPanel) {
|
|
89
|
+
if (CONFIG.ANALYTCS.MOCK) {
|
|
90
|
+
// eslint-disable-next-line no-console
|
|
91
|
+
console.log('registerSuperProperty', properties);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
mixpanel.register(properties);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
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.108",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
8
8
|
"private": false,
|
|
9
9
|
"main": "lib/index.js",
|
|
10
10
|
"types": "lib/index.d.ts",
|
|
11
|
-
"sideEffects":
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"lib/consentManagementConfigure.js",
|
|
13
|
+
"lib/common-polyfill.js",
|
|
14
|
+
"lib/**/*.css"
|
|
15
|
+
],
|
|
12
16
|
"dependencies": {
|
|
13
17
|
"@emotion/react": "^11.11.1",
|
|
14
18
|
"@emotion/styled": "^11.11.0",
|
|
@@ -18,7 +22,7 @@
|
|
|
18
22
|
"@mui/material": "^5.14.1",
|
|
19
23
|
"@mui/system": "^5.14.1",
|
|
20
24
|
"@mui/utils": "^7.3.9",
|
|
21
|
-
"@pagopa/mui-italia": "^2.
|
|
25
|
+
"@pagopa/mui-italia": "^2.4.1",
|
|
22
26
|
"@pagopa/ts-commons": "^13.1.2",
|
|
23
27
|
"@reduxjs/toolkit": "^2.9.0",
|
|
24
28
|
"async": "3.2.4",
|