@legalplace/wizardx-core 2.10.1 → 2.11.0
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 +17 -0
- package/dist/redux/sagas/setUserEmail.js +7 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.11.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.10.1...@legalplace/wizardx-core@2.11.0) (2022-04-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* use getUserInfo from lp-events ([02b2012](https://git.legalplace.eu/legalplace/monorepo/commits/02b201209e5b6b6e2c2aa9aa4ee1bb7562949db3)), closes [api#5171](https://git.legalplace.eu/legalplace/monorepo/issues/5171)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* adding userInfos to all funnelGA datalayer events ([973ff37](https://git.legalplace.eu/legalplace/monorepo/commits/973ff37ffe15d7b3d262c3250be36c8d09915fcb)), closes [api#5171](https://git.legalplace.eu/legalplace/monorepo/issues/5171)
|
|
17
|
+
* update version lp-events ([1214891](https://git.legalplace.eu/legalplace/monorepo/commits/1214891d08f2033ac24850ee80760c059b5cce13)), closes [api#5171](https://git.legalplace.eu/legalplace/monorepo/issues/5171)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [2.10.1](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.10.0...@legalplace/wizardx-core@2.10.1) (2022-04-14)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @legalplace/wizardx-core
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { call, put, takeLatest } from "redux-saga/effects";
|
|
2
|
-
import { getContractFunnelGAEvent } from "@legalplace/lp-events";
|
|
2
|
+
import { getContractFunnelGAEvent, getUserInfos } from "@legalplace/lp-events";
|
|
3
3
|
import { getConfig } from "../../config";
|
|
4
4
|
import { selectPermalink, selectInstanceUniqid, selectDocumentTitle, selectAvailableAppStates, selectDocumentModelVersion, } from "../selectors/app";
|
|
5
5
|
import { selectInputs } from "../selectors/inputs";
|
|
@@ -9,6 +9,7 @@ import { updateAvailableAppStatesAction, initInstanceAction, goNextPageAction, }
|
|
|
9
9
|
import { OvcConverter } from "../../libs/OvcConverter";
|
|
10
10
|
import { setUserEmailSucceeded } from "../actions/sagas/user";
|
|
11
11
|
import { EMAIL_REGEX } from "../../constants/emailValidation";
|
|
12
|
+
import { selectUserStatus, selectUserEmail } from "../selectors/user";
|
|
12
13
|
const canalHeaders = {
|
|
13
14
|
"lp-referrer": window.document.referrer,
|
|
14
15
|
"lp-origin": window.location.href,
|
|
@@ -74,13 +75,17 @@ function* setUserEmailDecorator(action) {
|
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
try {
|
|
77
|
-
if (redirectTo
|
|
78
|
+
if (redirectTo === null || redirectTo === void 0 ? void 0 : redirectTo.includes("generation")) {
|
|
79
|
+
const userStatus = selectUserStatus();
|
|
80
|
+
const userEmail = selectUserEmail();
|
|
78
81
|
window.dataLayer.push(getContractFunnelGAEvent({
|
|
79
82
|
currentStep: 1,
|
|
80
83
|
contractName: selectDocumentTitle(),
|
|
81
84
|
sectionTitle: "Choississez votre pack",
|
|
82
85
|
pageAction: "Confirmation avant paiement 1 | 2",
|
|
86
|
+
user: getUserInfos({ userStatus, userEmail }),
|
|
83
87
|
}));
|
|
88
|
+
}
|
|
84
89
|
}
|
|
85
90
|
catch (error) {
|
|
86
91
|
console.error(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/wizardx-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"author": "Moncef Hammou (moncef@legalplace.fr)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@appnest/masonry-layout": "^2.0.8",
|
|
23
23
|
"@cryptography/sha1": "^0.2.0",
|
|
24
|
-
"@legalplace/lp-events": "1.
|
|
24
|
+
"@legalplace/lp-events": "1.13.0",
|
|
25
25
|
"@legalplace/lplogic": "^2.1.6",
|
|
26
26
|
"@legalplace/model-healthcheck": "^1.1.5",
|
|
27
27
|
"@legalplace/referencesparser": "1.7.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"*.test.ts",
|
|
93
93
|
"*.test.tsx"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "91c2fbffa238edebf2874a844920628bebebd006"
|
|
96
96
|
}
|