@synerise/ds-factors 2.1.0 → 2.1.1
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 +8 -0
- package/dist/FactorValue/Parameter/useGroups.js +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.1.0...@synerise/ds-factors@2.1.1) (2026-09-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-factors
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.0.5...@synerise/ds-factors@2.1.0) (2026-09-16)
|
|
7
15
|
|
|
8
16
|
### Features
|
|
@@ -11,7 +11,7 @@ const useGroups = (items, groups, renderEmptyGroups) => {
|
|
|
11
11
|
if (renderEmptyGroups) {
|
|
12
12
|
return groups;
|
|
13
13
|
}
|
|
14
|
-
const groupIds = groups?.
|
|
14
|
+
const groupIds = groups?.flatMap((group) => group.subGroups || group).filter((group, index) => !(group.allowEmpty || index === 0)).map((group) => group.id);
|
|
15
15
|
const groupsToSkip = groupIds?.filter((groupId) => !items?.find((item) => item.groupId === groupId));
|
|
16
16
|
const cleanGroups = groups?.map((group) => {
|
|
17
17
|
if (group.subGroups && group.subGroups.length) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default, FACTOR_TYPE_MAPPING as factorTypes } from './Factors';
|
|
2
|
-
export { ALL_FACTOR_TYPES, type
|
|
2
|
+
export { ALL_FACTOR_TYPES, type DefinedFactorTypes, type DynamicKeyValueType, type FactorsProps, type FactorsTexts, type FactorType, type FactorTypeSelectorProps, type FactorValueComponentProps,
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated, use FactorValueComponentProps type instead
|
|
5
5
|
*/
|
|
6
|
-
type FactorValueComponentProps as InputProps, type
|
|
6
|
+
type FactorValueComponentProps as InputProps, type FactorValueProps, type FactorValueType, type FormulaModalProps, type FormulaValueType, type ParameterDropdownProps, type ParameterGroup, type ParameterItem, type ParameterValueType, type SelectedFactorType, type TextModalProps, } from './Factors.types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-factors",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Factors UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,34 +42,34 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-autocomplete": "^2.0.
|
|
46
|
-
"@synerise/ds-badge": "^2.0.
|
|
47
|
-
"@synerise/ds-button": "^2.0.
|
|
48
|
-
"@synerise/ds-button-group": "^2.0.
|
|
49
|
-
"@synerise/ds-collector": "^2.0.
|
|
50
|
-
"@synerise/ds-date-picker": "^2.1.
|
|
51
|
-
"@synerise/ds-date-range-picker": "^2.1.
|
|
52
|
-
"@synerise/ds-divider": "^2.0.
|
|
53
|
-
"@synerise/ds-dropdown": "^2.1.
|
|
54
|
-
"@synerise/ds-empty-states": "^2.0.
|
|
55
|
-
"@synerise/ds-icon": "^2.1.
|
|
56
|
-
"@synerise/ds-information-card": "^2.0.
|
|
57
|
-
"@synerise/ds-inline-alert": "^2.0.
|
|
58
|
-
"@synerise/ds-inline-edit": "^2.0.
|
|
59
|
-
"@synerise/ds-input": "^2.0.
|
|
60
|
-
"@synerise/ds-input-number": "^2.0.
|
|
61
|
-
"@synerise/ds-list-item": "^2.1.
|
|
62
|
-
"@synerise/ds-modal": "^2.0.
|
|
63
|
-
"@synerise/ds-result": "^2.0.
|
|
64
|
-
"@synerise/ds-scrollbar": "^2.0.
|
|
65
|
-
"@synerise/ds-search": "^2.0.
|
|
66
|
-
"@synerise/ds-select": "^2.1.
|
|
67
|
-
"@synerise/ds-short-cuts": "^2.0.
|
|
68
|
-
"@synerise/ds-skeleton": "^2.0.
|
|
69
|
-
"@synerise/ds-tabs": "^2.0.
|
|
70
|
-
"@synerise/ds-tag": "^2.0.
|
|
71
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
72
|
-
"@synerise/ds-utils": "^2.1.
|
|
45
|
+
"@synerise/ds-autocomplete": "^2.0.5",
|
|
46
|
+
"@synerise/ds-badge": "^2.0.4",
|
|
47
|
+
"@synerise/ds-button": "^2.0.4",
|
|
48
|
+
"@synerise/ds-button-group": "^2.0.4",
|
|
49
|
+
"@synerise/ds-collector": "^2.0.5",
|
|
50
|
+
"@synerise/ds-date-picker": "^2.1.2",
|
|
51
|
+
"@synerise/ds-date-range-picker": "^2.1.2",
|
|
52
|
+
"@synerise/ds-divider": "^2.0.4",
|
|
53
|
+
"@synerise/ds-dropdown": "^2.1.1",
|
|
54
|
+
"@synerise/ds-empty-states": "^2.0.3",
|
|
55
|
+
"@synerise/ds-icon": "^2.1.2",
|
|
56
|
+
"@synerise/ds-information-card": "^2.0.7",
|
|
57
|
+
"@synerise/ds-inline-alert": "^2.0.3",
|
|
58
|
+
"@synerise/ds-inline-edit": "^2.0.5",
|
|
59
|
+
"@synerise/ds-input": "^2.0.5",
|
|
60
|
+
"@synerise/ds-input-number": "^2.0.5",
|
|
61
|
+
"@synerise/ds-list-item": "^2.1.1",
|
|
62
|
+
"@synerise/ds-modal": "^2.0.5",
|
|
63
|
+
"@synerise/ds-result": "^2.0.4",
|
|
64
|
+
"@synerise/ds-scrollbar": "^2.0.3",
|
|
65
|
+
"@synerise/ds-search": "^2.0.4",
|
|
66
|
+
"@synerise/ds-select": "^2.1.1",
|
|
67
|
+
"@synerise/ds-short-cuts": "^2.0.4",
|
|
68
|
+
"@synerise/ds-skeleton": "^2.0.4",
|
|
69
|
+
"@synerise/ds-tabs": "^2.0.5",
|
|
70
|
+
"@synerise/ds-tag": "^2.0.4",
|
|
71
|
+
"@synerise/ds-tooltip": "^2.0.4",
|
|
72
|
+
"@synerise/ds-utils": "^2.1.1",
|
|
73
73
|
"lodash.merge": "^4.6.2",
|
|
74
74
|
"react-window": "^1.8.11",
|
|
75
75
|
"uuid": "^8.3.2"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"styled-components": "^5.3.3",
|
|
86
86
|
"vitest": "4"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "b1d905617dfb186b5d80966d63ce55bf29df743d"
|
|
89
89
|
}
|