@synerise/ds-filter 0.9.2 → 0.10.2

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,33 @@
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.10.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.10.1...@synerise/ds-filter@0.10.2) (2022-07-06)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-filter
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.10.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.10.0...@synerise/ds-filter@0.10.1) (2022-06-29)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-filter
17
+
18
+
19
+
20
+
21
+
22
+ # [0.10.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.9.2...@synerise/ds-filter@0.10.0) (2022-06-21)
23
+
24
+
25
+ ### Features
26
+
27
+ * **filter:** adds logicOptions prop ([74b41c7](https://github.com/Synerise/synerise-design/commit/74b41c7858b6920528aef4ba4c0826833aeaac58))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [0.9.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.9.1...@synerise/ds-filter@0.9.2) (2022-06-20)
7
34
 
8
35
 
package/dist/Filter.js CHANGED
@@ -41,7 +41,8 @@ var Filter = function Filter(_ref) {
41
41
  renderStepFooter = _ref.renderStepFooter,
42
42
  renderStepContent = _ref.renderStepContent,
43
43
  addFilterComponent = _ref.addFilterComponent,
44
- texts = _ref.texts;
44
+ texts = _ref.texts,
45
+ logicOptions = _ref.logicOptions;
45
46
  var previousExpressions = usePrevious(expressions);
46
47
 
47
48
  var _React$useState = React.useState(null),
@@ -145,7 +146,8 @@ var Filter = function Filter(_ref) {
145
146
  LOGIC: {
146
147
  onChange: function onChange(value) {
147
148
  return onChangeLogic(expression.id, value);
148
- }
149
+ },
150
+ options: logicOptions
149
151
  },
150
152
  STEP: {
151
153
  onChangeMatching: function onChangeMatching(value) {
@@ -166,7 +168,7 @@ var Filter = function Filter(_ref) {
166
168
  }
167
169
  };
168
170
  return props[expression.type];
169
- }, [activeExpressionId, getContextTypeTexts, isActive, onChangeLogic, onChangeStepMatching, onChangeStepName, onDeleteStep, onDuplicateStep, renderStepContent, renderStepFooter, text.step]);
171
+ }, [activeExpressionId, getContextTypeTexts, isActive, logicOptions, onChangeLogic, onChangeStepMatching, onChangeStepName, onDeleteStep, onDuplicateStep, renderStepContent, renderStepFooter, text.step]);
170
172
  var renderExpression = React.useCallback(function (expression, index) {
171
173
  var Component = component[expression.type];
172
174
  var LogicComponent = expression.logic && component[expression.logic.type];
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { LogicOperatorValue, LogicProps } from '@synerise/ds-logic/src/Logic.types';
2
+ import { LogicOperator, LogicOperatorValue, LogicProps } from '@synerise/ds-logic/src/Logic.types';
3
3
  import { StepCardProps } from '@synerise/ds-step-card/src/StepCard.types';
4
4
  import { MatchingProps, MatchingTexts } from '@synerise/ds-logic/src/Matching/Matching.types';
5
5
  declare type LogicType = {
@@ -27,6 +27,7 @@ export declare type FilterProps = {
27
27
  renderStepFooter?: (expression: Expression) => React.ReactNode;
28
28
  renderStepContent?: (expression: Expression, hoverDisabled?: boolean) => React.ReactNode;
29
29
  addFilterComponent?: React.ReactNode;
30
+ logicOptions?: LogicOperator[];
30
31
  texts?: {
31
32
  matching?: MatchingTexts;
32
33
  step?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-filter",
3
- "version": "0.9.2",
3
+ "version": "0.10.2",
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.3",
38
+ "@synerise/ds-step-card": "^0.6.5",
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": "ba00650b327ad60ca34761d45e404695d0666b7f"
46
+ "gitHead": "6e09a689031ae03275336274cc4302de669f380d"
47
47
  }