@synerise/ds-condition 0.17.0 → 0.17.3
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 +30 -0
- package/dist/Condition.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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
|
+
## [0.17.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.17.2...@synerise/ds-condition@0.17.3) (2022-05-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **condition:** fixes testPrev value for empty conditions array ([35a266a](https://github.com/Synerise/synerise-design/commit/35a266a44ea97556fa0d57090dd16d7f0af1da2e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.17.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.17.1...@synerise/ds-condition@0.17.2) (2022-05-30)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-condition
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.17.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.17.0...@synerise/ds-condition@0.17.1) (2022-05-29)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **condition:** fix test & returnLast method ([ba67918](https://github.com/Synerise/synerise-design/commit/ba67918f739fb74c99ba19d2dff0f20de6c950cf))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [0.17.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.16.0...@synerise/ds-condition@0.17.0) (2022-05-28)
|
|
7
37
|
|
|
8
38
|
|
package/dist/Condition.js
CHANGED
|
@@ -221,9 +221,9 @@ var Condition = function Condition(props) {
|
|
|
221
221
|
}, []);
|
|
222
222
|
var testPrevValueElement = React.useCallback(function () {
|
|
223
223
|
return steps == null ? void 0 : steps.map(function (step) {
|
|
224
|
-
var _returnLast;
|
|
224
|
+
var _returnLast, _returnLast2;
|
|
225
225
|
|
|
226
|
-
return !((_returnLast = returnLast(step.conditions)) != null && _returnLast.factor.value) && setErrorId(returnLast(step.conditions).id);
|
|
226
|
+
return !((_returnLast = returnLast(step.conditions)) != null && _returnLast.factor.value) && setErrorId((_returnLast2 = returnLast(step.conditions)) == null ? void 0 : _returnLast2.id);
|
|
227
227
|
});
|
|
228
228
|
}, [steps, returnLast]);
|
|
229
229
|
var handleAddCondition = React.useMemo(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-condition",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"description": "Condition UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@synerise/ds-context-selector": "^0.12.1",
|
|
37
37
|
"@synerise/ds-core": "^0.34.0",
|
|
38
38
|
"@synerise/ds-cruds": "^0.3.9",
|
|
39
|
-
"@synerise/ds-factors": "^0.14.
|
|
39
|
+
"@synerise/ds-factors": "^0.14.2",
|
|
40
40
|
"@synerise/ds-icon": "^0.49.0",
|
|
41
41
|
"@synerise/ds-inline-edit": "^0.6.12",
|
|
42
42
|
"@synerise/ds-operators": "^0.9.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"@synerise/ds-core": "*",
|
|
50
50
|
"react": ">=16.9.0 < 17.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "99aebc2358ae0c570c4d5bcf4280ac37f811be22"
|
|
53
53
|
}
|