@synerise/ds-filter 0.7.1 → 0.8.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,17 @@
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.8.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.7.1...@synerise/ds-filter@0.8.0) (2022-04-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **factors:** adds onDeactivate prop, updates Readme.md ([ff85234](https://github.com/Synerise/synerise-design/commit/ff852349a5c77047d6d0642d4b5587dbcc6d24cd))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.7.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.7.0...@synerise/ds-filter@0.7.1) (2022-04-08)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-filter
package/dist/Filter.js CHANGED
@@ -73,6 +73,30 @@ var Filter = function Filter(_ref) {
73
73
  notMatching: formatMessage({
74
74
  id: 'DS.MATCHING.NOT-MATCHING'
75
75
  }),
76
+ have: formatMessage({
77
+ id: 'DS.MATCHING.HAVE',
78
+ defaultMessage: 'Have'
79
+ }),
80
+ performed: formatMessage({
81
+ id: 'DS.MATCHING.PERFORMED',
82
+ defaultMessage: 'Performed'
83
+ }),
84
+ notHave: formatMessage({
85
+ id: 'DS.MATCHING.NOT-HAVE',
86
+ defaultMessage: 'Does not have'
87
+ }),
88
+ notPerformed: formatMessage({
89
+ id: 'DS.MATCHING.NOT-PERFORMED',
90
+ defaultMessage: 'Have not performed'
91
+ }),
92
+ attribute: formatMessage({
93
+ id: 'DS.MATCHING.EXPRESSION-TYPE.ATTRIBUTE',
94
+ defaultMessage: 'attribute'
95
+ }),
96
+ event: formatMessage({
97
+ id: 'DS.MATCHING.EXPRESSION-TYPE.EVENT',
98
+ defaultMessage: 'event'
99
+ }),
76
100
  namePlaceholder: formatMessage({
77
101
  id: 'DS.STEP-CARD.NAME-PLACEHOLDER'
78
102
  }),
@@ -99,29 +123,11 @@ var Filter = function Filter(_ref) {
99
123
  var getContextTypeTexts = React.useCallback(function (expression) {
100
124
  var contextType = expression.expressionType;
101
125
  return {
102
- matching: contextType === 'attribute' ? formatMessage({
103
- id: 'DS.MATCHING.HAVE',
104
- defaultMessage: 'Have'
105
- }) : formatMessage({
106
- id: 'DS.MATCHING.PERFORMED',
107
- defaultMessage: 'Performed'
108
- }),
109
- notMatching: contextType === 'attribute' ? formatMessage({
110
- id: 'DS.MATCHING.NOT-HAVE',
111
- defaultMessage: 'Not have'
112
- }) : formatMessage({
113
- id: 'DS.MATCHING.NOT-PERFORMED',
114
- defaultMessage: 'Not performed'
115
- }),
116
- conditionType: contextType === 'attribute' ? formatMessage({
117
- id: 'DS.MATCHING.EXPRESSION-TYPE.ATTRIBUTE',
118
- defaultMessage: 'attribute'
119
- }) : formatMessage({
120
- id: 'DS.MATCHING.EXPRESSION-TYPE.EVENT',
121
- defaultMessage: 'event'
122
- })
126
+ matching: contextType === 'attribute' ? text.step.have : text.step.performed,
127
+ notMatching: contextType === 'attribute' ? text.step.notHave : text.step.notPerformed,
128
+ conditionType: contextType === 'attribute' ? text.step.attribute : text.step.event
123
129
  };
124
- }, [formatMessage]);
130
+ }, [text]);
125
131
  var componentProps = React.useCallback(function (expression) {
126
132
  var contextTypeTexts = getContextTypeTexts(expression);
127
133
  var props = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-filter",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Filter UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,7 +35,7 @@
35
35
  "@synerise/ds-button": "^0.17.2",
36
36
  "@synerise/ds-icon": "^0.49.0",
37
37
  "@synerise/ds-logic": "^0.7.0",
38
- "@synerise/ds-step-card": "^0.6.1",
38
+ "@synerise/ds-step-card": "^0.6.2",
39
39
  "react-sortablejs": "^6.0.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "@synerise/ds-step-card": "*",
44
44
  "react": ">=16.9.0 < 17.0.0"
45
45
  },
46
- "gitHead": "78a3de75d8ec9c917d96c1b54c70d24f50dc8c7a"
46
+ "gitHead": "4a658911645846d1e329609ba9db06a7bc64962b"
47
47
  }