@legalplace/wizardx-core 2.11.4 → 2.12.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 CHANGED
@@ -3,6 +3,24 @@
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.12.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.4...@legalplace/wizardx-core@2.12.0) (2022-09-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix package.json api[#5795](https://git.legalplace.eu/legalplace/monorepo/issues/5795) ([1e397cc](https://git.legalplace.eu/legalplace/monorepo/commits/1e397cc55f12f67a90447b162fb42390eb566b71))
12
+ * fix review api[#5795](https://git.legalplace.eu/legalplace/monorepo/issues/5795) ([47d8f99](https://git.legalplace.eu/legalplace/monorepo/commits/47d8f99b68a66d194828569eb3d33f3b5cf420d0))
13
+ * fix tests api[#5795](https://git.legalplace.eu/legalplace/monorepo/issues/5795) ([2549d83](https://git.legalplace.eu/legalplace/monorepo/commits/2549d83e9e9240407e4d40ce4dc88b5507989348))
14
+
15
+
16
+ ### Features
17
+
18
+ * hidding next button from last page when metaTypology is tool api[#5795](https://git.legalplace.eu/legalplace/monorepo/issues/5795) ([444cead](https://git.legalplace.eu/legalplace/monorepo/commits/444ceade7b26740bd640de926a7b8c8f08beca1b))
19
+
20
+
21
+
22
+
23
+
6
24
  ## [2.11.4](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.3...@legalplace/wizardx-core@2.11.4) (2022-07-20)
7
25
 
8
26
 
@@ -1,9 +1,10 @@
1
1
  export const initMetaReducer = (state, action) => {
2
- const { id, permalink, title, modelVersion, productType, prefix } = action;
2
+ const { id, permalink, title, modelVersion, productType, prefix, metadata } = action;
3
3
  return Object.assign(Object.assign({}, state), { meta: Object.assign(Object.assign({}, state.meta), { id,
4
4
  prefix,
5
5
  permalink,
6
6
  title,
7
7
  modelVersion,
8
- productType }) });
8
+ productType,
9
+ metadata }) });
9
10
  };
@@ -42,6 +42,9 @@ describe('App Meta Reducer', () => {
42
42
  title: 'title',
43
43
  modelVersion: 1,
44
44
  productType: 'demarche',
45
+ metadata: {
46
+ metaTypology: "contract"
47
+ }
45
48
  });
46
49
  return expect(reducer).toStrictEqual(Object.assign(Object.assign({}, appStateMock), { meta: {
47
50
  fetchStatus: 'succeeded',
@@ -51,6 +54,9 @@ describe('App Meta Reducer', () => {
51
54
  title: 'title',
52
55
  modelVersion: 1,
53
56
  productType: 'demarche',
57
+ metadata: {
58
+ metaTypology: "contract"
59
+ }
54
60
  } }));
55
61
  });
56
62
  it('fetchModelSucceeded Reducer', () => {
@@ -8,6 +8,9 @@ const appStateMock = {
8
8
  title: 'title',
9
9
  modelVersion: 1,
10
10
  productType: 'demarche',
11
+ metadata: {
12
+ metaTypology: "contract"
13
+ }
11
14
  },
12
15
  wizard: {
13
16
  availableSections: [1, 2, 3],
@@ -42,6 +45,9 @@ describe('App Reducer test suit', () => {
42
45
  title: 'Some other title',
43
46
  modelVersion: 1,
44
47
  productType: 'demarche',
48
+ metadata: {
49
+ metaTypology: "contract"
50
+ }
45
51
  });
46
52
  return expect(reducer).toStrictEqual(Object.assign(Object.assign({}, appStateMock), { meta: {
47
53
  fetchStatus: 'waiting',
@@ -51,6 +57,9 @@ describe('App Reducer test suit', () => {
51
57
  title: 'Some other title',
52
58
  modelVersion: 1,
53
59
  productType: 'demarche',
60
+ metadata: {
61
+ metaTypology: "contract"
62
+ }
54
63
  } }));
55
64
  });
56
65
  it('Combines pagination reducer', () => {
@@ -1,6 +1,7 @@
1
1
  import type { OptionV3, VariableV3, SectionV3, ConditionV3, ModelV3 } from "@legalplace/models-v3-types";
2
2
  import type { Types } from "@legalplace/referencesparser";
3
3
  import type { HealthCheckReport } from "@legalplace/model-healthcheck/dist/libs/HealthCheck.type";
4
+ import type { ContractMeta } from "@legalplace/typeorm-entities";
4
5
  export declare type MAPPED_CONDITIONS = {
5
6
  dataMap: {
6
7
  o: number[];
@@ -179,6 +180,7 @@ export interface AppMetaType {
179
180
  title: string;
180
181
  modelVersion: number;
181
182
  productType: string;
183
+ metadata?: ContractMeta["metadata"];
182
184
  modelUuid?: string;
183
185
  smartScript?: string;
184
186
  report?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "2.11.4",
3
+ "version": "2.12.0",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -55,6 +55,7 @@
55
55
  "@legalplace/eslint-config": "^2.1.4",
56
56
  "@legalplace/models-v3-types": "^3.6.0",
57
57
  "@legalplace/prettier-config": "^2.1.3",
58
+ "@legalplace/typeorm-entities": "3.8.2",
58
59
  "@swc-node/jest": "^1.3.2",
59
60
  "@swc/core": "^1.2.93",
60
61
  "@swc/jest": "^0.2.4",
@@ -92,5 +93,5 @@
92
93
  "*.test.ts",
93
94
  "*.test.tsx"
94
95
  ],
95
- "gitHead": "8b126b0ca7f57d1697107db725a0a9aee6cd4af6"
96
+ "gitHead": "2b85b938130c3aa452aaf2e9e60df460ddf5a4e2"
96
97
  }