@jetbrains/ring-ui-built 6.0.20 → 6.0.21

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.
@@ -593,7 +593,7 @@ function _nonIterableRest() {
593
593
  function _createForOfIteratorHelper(o, allowArrayLike) {
594
594
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
595
595
  if (!it) {
596
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
596
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
597
597
  if (it) o = it;
598
598
  var i = 0;
599
599
  var F = function () {};
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, g as _objectWithoutProperties, f as _createClass, h as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, g as _objectWithoutProperties, i as _extends, f as _createClass, h as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.includes.js';
3
3
  import 'core-js/modules/es.string.includes.js';
4
4
  import 'core-js/modules/es.array.map.js';
@@ -413,7 +413,9 @@ var List = /*#__PURE__*/function (_Component) {
413
413
  default:
414
414
  throw new Error("Unknown menu element type: ".concat(itemProps.rgItemType));
415
415
  }
416
- el = /*#__PURE__*/React.createElement(ItemComponent, itemProps);
416
+ el = /*#__PURE__*/React.createElement(ItemComponent, _extends({}, itemProps, {
417
+ key: itemProps.key
418
+ }));
417
419
  }
418
420
  return parent ? /*#__PURE__*/React.createElement(CellMeasurer, {
419
421
  cache: _this._cache,
@@ -264,6 +264,7 @@ var Table = /*#__PURE__*/function (_PureComponent) {
264
264
  }), tbody));
265
265
  };
266
266
  var renderItem = function renderItem(_ref4) {
267
+ var _restProps$key;
267
268
  var value = _ref4.value,
268
269
  _ref4$props = _ref4.props,
269
270
  props = _ref4$props === void 0 ? {} : _ref4$props,
@@ -275,7 +276,6 @@ var Table = /*#__PURE__*/function (_PureComponent) {
275
276
  restProps = _objectWithoutProperties(props, _excluded);
276
277
  var row = /*#__PURE__*/React.createElement(RowWithFocusSensorCallbacks, _extends({
277
278
  innerRef: ref,
278
- key: getItemKey(value),
279
279
  level: getItemLevel(value),
280
280
  item: value,
281
281
  showFocus: selection.isFocused(value),
@@ -303,7 +303,9 @@ var Table = /*#__PURE__*/function (_PureComponent) {
303
303
  dragHandleTitle: dragHandleTitle,
304
304
  columns: columns,
305
305
  "data-test": getItemDataTest(value)
306
- }, restProps));
306
+ }, restProps, {
307
+ key: (_restProps$key = restProps.key) !== null && _restProps$key !== void 0 ? _restProps$key : getItemKey(value)
308
+ }));
307
309
  return isDragged ? /*#__PURE__*/React.createElement("table", {
308
310
  style: _objectSpread2({}, props.style),
309
311
  className: modules_1db4bbca.draggingTable
@@ -44,6 +44,7 @@ var TagsList = /*#__PURE__*/function (_Component) {
44
44
  var readOnly = this.props.disabled || tag.readOnly || this.props.canNotBeEmpty && this.props.tags.length === 1;
45
45
  var tagClassName = this.props.tagClassName;
46
46
  return /*#__PURE__*/React.createElement(TagComponent, _extends({}, tag, {
47
+ key: tag.key,
47
48
  readOnly: readOnly,
48
49
  disabled: this.props.disabled || tag.disabled,
49
50
  focused: focusTag,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui-built",
3
- "version": "6.0.20",
3
+ "version": "6.0.21",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",