@legalplace/wizardx-core 4.45.4 → 4.45.6

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.
@@ -1,4 +1,4 @@
1
- import { PathReader } from "../libs";
1
+ import { PathReader, SectionValidity } from "../libs";
2
2
  import { componentConnector } from "./connector/componentConnector";
3
3
  const stateToProps = (selectors) => (state) => {
4
4
  const { selectIsFirstPage, selectCurrentPage, selectIsLastPage, selectIsLastWizardPage, selectAvailableSections, selectUserStatus, selectMandatorySection, selectCurrentSectionId, selectFirstUnfinishedSectionId, selectMandatoryIgnore, } = selectors;
@@ -10,6 +10,7 @@ const stateToProps = (selectors) => (state) => {
10
10
  const userStatus = selectUserStatus();
11
11
  const currentSection = selectCurrentSectionId();
12
12
  const mandatoryIgnore = selectMandatoryIgnore();
13
+ const { validity } = new SectionValidity(currentSection);
13
14
  const isCurrentSectionMandatoryValidated = selectMandatorySection(currentSection);
14
15
  const firstUnfinishedSectionId = selectFirstUnfinishedSectionId(currentSection);
15
16
  const pathReader = new PathReader(state);
@@ -19,7 +20,7 @@ const stateToProps = (selectors) => (state) => {
19
20
  isLastPage,
20
21
  totalPages,
21
22
  isLastWizardPage,
22
- isCurrentSectionMandatoryValidated,
23
+ isCurrentSectionMandatoryValidated: validity && isCurrentSectionMandatoryValidated,
23
24
  firstUnfinishedSectionId,
24
25
  currentSection,
25
26
  mandatoryIgnore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "4.45.4",
3
+ "version": "4.45.6",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@appnest/masonry-layout": "^2.0.8",
23
23
  "@cryptography/sha1": "^0.2.0",
24
- "@legalplace/data-gouv": "^1.6.121",
24
+ "@legalplace/data-gouv": "^1.6.122",
25
25
  "@legalplace/lp-events": "1.14.0",
26
26
  "@legalplace/lplogic": "2.3.1",
27
27
  "@legalplace/model-healthcheck": "^1.1.5",
28
28
  "@legalplace/pappers": "^1.3.1",
29
- "@legalplace/referencesparser": "^3.1.95",
29
+ "@legalplace/referencesparser": "^3.1.96",
30
30
  "@legalplace/storybook": "2.364.5",
31
- "@legalplace/typeorm-constants": "^3.81.1",
31
+ "@legalplace/typeorm-constants": "^3.82.0",
32
32
  "@loadable/component": "^5.15.0",
33
33
  "@redux-saga/core": "^1.1.3",
34
34
  "axios": "^0.24.0",
@@ -60,9 +60,9 @@
60
60
  "devDependencies": {
61
61
  "@legalplace/data-gouv": "^1.6.30",
62
62
  "@legalplace/eslint-config": "^2.3.0",
63
- "@legalplace/models-v3-types": "^5.15.11",
63
+ "@legalplace/models-v3-types": "^5.15.12",
64
64
  "@legalplace/prettier-config": "^2.1.3",
65
- "@legalplace/typeorm-entities": "^5.73.0",
65
+ "@legalplace/typeorm-entities": "^5.74.0",
66
66
  "@swc-node/jest": "^1.3.2",
67
67
  "@swc/core": "^1.2.93",
68
68
  "@swc/jest": "^0.2.4",
@@ -101,5 +101,5 @@
101
101
  "*.test.ts",
102
102
  "*.test.tsx"
103
103
  ],
104
- "gitHead": "bf23d44156f319798d642cdd74956c5f76e31991"
104
+ "gitHead": "0199cc0d6b35614a3dd151536e552a0612687bfa"
105
105
  }