@synerise/ds-condition 0.20.56 → 0.20.58

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,26 @@
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.20.58](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.20.57...@synerise/ds-condition@0.20.58) (2023-10-18)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-condition
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.20.57](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.20.56...@synerise/ds-condition@0.20.57) (2023-10-17)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **condition:** change hasError logic to show error for operator ([13abae2](https://github.com/Synerise/synerise-design/commit/13abae2bd17ea292913e043cc471e3f3cc7079f4))
20
+ * **condition:** change hasError logic to show error for operator ([59f7e1f](https://github.com/Synerise/synerise-design/commit/59f7e1f4981d058eef1a84491bb835a4cc790976))
21
+
22
+
23
+
24
+
25
+
6
26
  ## [0.20.56](https://github.com/Synerise/synerise-design/compare/@synerise/ds-condition@0.20.55...@synerise/ds-condition@0.20.56) (2023-10-11)
7
27
 
8
28
  **Note:** Version bump only for package @synerise/ds-condition
@@ -40,21 +40,20 @@ export var ConditionRow = function ConditionRow(_ref) {
40
40
  var conditionFactorErrorText = conditionFactor == null ? void 0 : conditionFactor.errorText;
41
41
  var conditionParameterErrorText = conditionParameter == null ? void 0 : conditionParameter.errorText;
42
42
  var conditionOperatorErrorText = conditionOperator == null ? void 0 : conditionOperator.errorText;
43
- var conditionParameterValue = conditionParameter == null ? void 0 : conditionParameter.value;
44
- var rowHasError = !!(conditionParameterErrorText || conditionOperatorErrorText && conditionParameterValue || conditionFactorErrorText && conditionParameterValue);
43
+ var rowHasError = !!(conditionParameterErrorText || conditionOperatorErrorText || conditionFactorErrorText);
45
44
  var conditionErrorMessage = React.useMemo(function () {
46
45
  var errorText;
47
46
 
48
47
  if (conditionParameterErrorText) {
49
48
  errorText = conditionParameterErrorText;
50
- } else if (conditionOperatorErrorText && conditionParameterValue) {
49
+ } else if (conditionOperatorErrorText) {
51
50
  errorText = conditionOperatorErrorText;
52
- } else if (conditionFactorErrorText && conditionParameterValue) {
51
+ } else if (conditionFactorErrorText) {
53
52
  errorText = conditionFactorErrorText;
54
53
  }
55
54
 
56
55
  return errorText ? /*#__PURE__*/React.createElement(S.ErrorWrapper, null, errorText) : /*#__PURE__*/React.createElement(React.Fragment, null);
57
- }, [conditionOperatorErrorText, conditionFactorErrorText, conditionParameterErrorText, conditionParameterValue]);
56
+ }, [conditionOperatorErrorText, conditionFactorErrorText, conditionParameterErrorText]);
58
57
  return /*#__PURE__*/React.createElement(S.ConditionRow, {
59
58
  stepType: stepType,
60
59
  style: hasPriority ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-condition",
3
- "version": "0.20.56",
3
+ "version": "0.20.58",
4
4
  "description": "Condition UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,17 +33,17 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-button": "^0.18.4",
37
- "@synerise/ds-context-selector": "^0.19.13",
38
- "@synerise/ds-core": "^0.40.4",
39
- "@synerise/ds-cruds": "^0.3.36",
40
- "@synerise/ds-factors": "^0.20.6",
41
- "@synerise/ds-icon": "^0.58.4",
42
- "@synerise/ds-inline-edit": "^0.6.83",
43
- "@synerise/ds-operators": "^0.10.42",
44
- "@synerise/ds-subject": "^0.9.70",
45
- "@synerise/ds-tooltip": "^0.14.6",
46
- "@synerise/ds-utils": "^0.24.18",
36
+ "@synerise/ds-button": "^0.18.5",
37
+ "@synerise/ds-context-selector": "^0.19.15",
38
+ "@synerise/ds-core": "^0.40.5",
39
+ "@synerise/ds-cruds": "^0.3.37",
40
+ "@synerise/ds-factors": "^0.20.8",
41
+ "@synerise/ds-icon": "^0.58.5",
42
+ "@synerise/ds-inline-edit": "^0.6.84",
43
+ "@synerise/ds-operators": "^0.10.43",
44
+ "@synerise/ds-subject": "^0.9.71",
45
+ "@synerise/ds-tooltip": "^0.14.7",
46
+ "@synerise/ds-utils": "^0.24.19",
47
47
  "lodash": "^4.17.19",
48
48
  "react-intl": "3.12.0",
49
49
  "react-sortablejs": "^6.0.0"
@@ -58,5 +58,5 @@
58
58
  "@testing-library/react": "10.0.1",
59
59
  "uuid": "^8.3.2"
60
60
  },
61
- "gitHead": "8eb4a3e304406a8dbb9258803c48952461fc5a55"
61
+ "gitHead": "1b2696001dd88b4c11413977e38b541b0c78733d"
62
62
  }