@jetbrains/ring-ui 5.0.165 → 5.0.166

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.
@@ -47,7 +47,7 @@ function isActivatable(item) {
47
47
  return item != null && !nonActivatableTypes.includes(item.rgItemType) && !item.disabled;
48
48
  }
49
49
  function getDataHash(data) {
50
- return data.map(it => it.key).join('-');
50
+ return data.map(it => `${it.key}-${it.disabled}`).join('-');
51
51
  }
52
52
  const shouldActivateFirstItem = (props) => props.activateFirstItem ||
53
53
  props.activateSingleItem && props.data.length === 1;
package/dist/list/list.js CHANGED
@@ -97,7 +97,7 @@ function isActivatable(item) {
97
97
  }
98
98
  function getDataHash(data) {
99
99
  return data.map(function (it) {
100
- return it.key;
100
+ return "".concat(it.key, "-").concat(it.disabled);
101
101
  }).join('-');
102
102
  }
103
103
  var shouldActivateFirstItem = function shouldActivateFirstItem(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.165",
3
+ "version": "5.0.166",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -155,7 +155,7 @@
155
155
  "mocha": "^10.2.0",
156
156
  "pinst": "^3.0.0",
157
157
  "prettier": "^3.0.2",
158
- "puppeteer": "^21.0.3",
158
+ "puppeteer": "^21.1.0",
159
159
  "raw-loader": "^4.0.2",
160
160
  "react": "^18.2.0",
161
161
  "react-dom": "^18.2.0",