@synerise/ds-context-selector 2.1.4 → 2.1.5
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
|
+
## [2.1.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@2.1.4...@synerise/ds-context-selector@2.1.5) (2026-10-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **utils:** let measured list rows shrink back to their content ([f04903d](https://github.com/Synerise/synerise-design/commit/f04903dc40ddbec33850946045c02f914569aeb7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.1.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@2.1.3...@synerise/ds-context-selector@2.1.4) (2026-10-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-context-selector
|
|
@@ -10,7 +10,7 @@ import { itemSizes, ListContextProvider } from "@synerise/ds-list-item";
|
|
|
10
10
|
import Result from "@synerise/ds-result";
|
|
11
11
|
import Scrollbar from "@synerise/ds-scrollbar";
|
|
12
12
|
import Tabs from "@synerise/ds-tabs";
|
|
13
|
-
import { getActiveTabGroup, getGroupName, useSearchResults, useMeasuredRowHeights, focusWithArrowKeys, useMeasuredRow } from "@synerise/ds-utils";
|
|
13
|
+
import { getActiveTabGroup, getGroupName, useSearchResults, useMeasuredRowHeights, focusWithArrowKeys, useMeasuredRow, getMeasuredRowStyle } from "@synerise/ds-utils";
|
|
14
14
|
import { ShowMoreItem, TabsWrapper, Skeleton, ItemsList, Title } from "../ContextSelector.styles.js";
|
|
15
15
|
import { isContextItemsInSubGroup } from "../ContextSelector.types.js";
|
|
16
16
|
import { NO_GROUP_NAME, DROPDOWN_HEIGHT } from "../constants.js";
|
|
@@ -34,11 +34,7 @@ const VirtualizedRow = ({
|
|
|
34
34
|
}) => {
|
|
35
35
|
const item = data.items[index];
|
|
36
36
|
const rowRef = useMeasuredRow(index, data.measureRow);
|
|
37
|
-
const rowStyle =
|
|
38
|
-
...style,
|
|
39
|
-
height: "auto",
|
|
40
|
-
minHeight: style.height
|
|
41
|
-
};
|
|
37
|
+
const rowStyle = getMeasuredRowStyle(style, data.getEstimatedItemSize(index));
|
|
42
38
|
if (item && isDivider(item)) {
|
|
43
39
|
return /* @__PURE__ */ jsx("div", { ref: rowRef, style: rowStyle, children: /* @__PURE__ */ jsx(Divider, { marginTop: 8, marginBottom: 8 }) });
|
|
44
40
|
}
|
|
@@ -269,8 +265,9 @@ const ContextSelectorDropdown = ({
|
|
|
269
265
|
});
|
|
270
266
|
const itemData = useMemo(() => ({
|
|
271
267
|
items: activeItems,
|
|
268
|
+
getEstimatedItemSize,
|
|
272
269
|
measureRow
|
|
273
|
-
}), [activeItems, measureRow]);
|
|
270
|
+
}), [activeItems, getEstimatedItemSize, measureRow]);
|
|
274
271
|
const handleSearch = useCallback((val) => {
|
|
275
272
|
setSearchQuery(val);
|
|
276
273
|
resetList();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-context-selector",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "ContextSelector UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
"check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
|
|
37
37
|
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "ac1a96b3cd66d2836b0639b3d9920fc0ebd7f8f3",
|
|
40
40
|
"sideEffects": [
|
|
41
41
|
"dist/style/*",
|
|
42
42
|
"*.less"
|
|
43
43
|
],
|
|
44
44
|
"types": "dist/index.d.ts",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@synerise/ds-button": "^2.1.
|
|
47
|
-
"@synerise/ds-divider": "^2.0.
|
|
48
|
-
"@synerise/ds-dropdown": "^2.1.
|
|
49
|
-
"@synerise/ds-icon": "^2.2.
|
|
50
|
-
"@synerise/ds-information-card": "^2.0.
|
|
51
|
-
"@synerise/ds-list-item": "^2.2.
|
|
46
|
+
"@synerise/ds-button": "^2.1.3",
|
|
47
|
+
"@synerise/ds-divider": "^2.0.8",
|
|
48
|
+
"@synerise/ds-dropdown": "^2.1.5",
|
|
49
|
+
"@synerise/ds-icon": "^2.2.2",
|
|
50
|
+
"@synerise/ds-information-card": "^2.0.11",
|
|
51
|
+
"@synerise/ds-list-item": "^2.2.1",
|
|
52
52
|
"@synerise/ds-popover": "^2.0.3",
|
|
53
|
-
"@synerise/ds-result": "^2.0.
|
|
54
|
-
"@synerise/ds-scrollbar": "^2.0.
|
|
55
|
-
"@synerise/ds-skeleton": "^2.0.
|
|
56
|
-
"@synerise/ds-tabs": "^2.0.
|
|
57
|
-
"@synerise/ds-utils": "^2.2.
|
|
53
|
+
"@synerise/ds-result": "^2.0.8",
|
|
54
|
+
"@synerise/ds-scrollbar": "^2.0.7",
|
|
55
|
+
"@synerise/ds-skeleton": "^2.0.8",
|
|
56
|
+
"@synerise/ds-tabs": "^2.0.9",
|
|
57
|
+
"@synerise/ds-utils": "^2.2.1",
|
|
58
58
|
"react-intl": "^6.8.7",
|
|
59
59
|
"react-window": "1.8.11",
|
|
60
60
|
"uuid": "^8.3.2"
|