ecomlab-components-next 0.1.173 → 0.1.175

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.
@@ -847,6 +847,7 @@ var ArticleViewV2 = function ArticleViewV2(_ref) {
847
847
  // }}
848
848
  // >
849
849
  return /*#__PURE__*/_react["default"].createElement(_ShortTileArticleBox["default"], _extends({}, el, {
850
+ key: el.id,
850
851
  id: el.id,
851
852
  name: el === null || el === void 0 || (_el$cpu = el.cpu) === null || _el$cpu === void 0 ? void 0 : _el$cpu[0],
852
853
  cpu: el === null || el === void 0 || (_el$cpu2 = el.cpu) === null || _el$cpu2 === void 0 ? void 0 : _el$cpu2[1],
@@ -229,8 +229,9 @@ var TextArticle = exports.TextArticle = function TextArticle(_ref) {
229
229
  className: "article-text",
230
230
  style: properties,
231
231
  tabIndex: 0,
232
- autoFocus: true,
233
- shouldComponentUpdate: true,
232
+ autoFocus: true
233
+ // shouldComponentUpdate
234
+ ,
234
235
  suppressContentEditableWarning: true,
235
236
  contentEditable: !readonly,
236
237
  dangerouslySetInnerHTML: {
@@ -102,7 +102,7 @@ var ShortTileArticleBox = function ShortTileArticleBox(_ref) {
102
102
  href: articlePath
103
103
  }, /*#__PURE__*/_react["default"].createElement("h3", {
104
104
  className: "tile-short-wiki__title"
105
- }, search ? (0, _highlightWord.hightlightWord)(search, articleName) : articleName), (Array.isArray(annotation) && (annotation === null || annotation === void 0 ? void 0 : annotation[0]) || annotation) && /*#__PURE__*/_react["default"].createElement("p", {
105
+ }, search ? (0, _highlightWord.hightlightWord)(search, articleName) : articleName), (Array.isArray(annotation) && (annotation === null || annotation === void 0 ? void 0 : annotation[0]) || annotation) && /*#__PURE__*/_react["default"].createElement("div", {
106
106
  className: "tile-short-wiki__description"
107
107
  }, Array.isArray(annotation) ? annotation !== null && annotation !== void 0 && annotation[0] ? (0, _htmlReactParser["default"])(annotation === null || annotation === void 0 ? void 0 : annotation[0]) : '' : annotation ? (0, _htmlReactParser["default"])(annotation) : ''))) : /*#__PURE__*/_react["default"].createElement("div", {
108
108
  className: "tile-short"
@@ -424,7 +424,7 @@ var ArticleView = function ArticleView(_ref) {
424
424
  className: "article-view__this-will-be-interesting__content"
425
425
  }, apiData === null || apiData === void 0 || (_apiData$preview = apiData.preview) === null || _apiData$preview === void 0 ? void 0 : _apiData$preview.map(function (el) {
426
426
  return /*#__PURE__*/React.createElement(_ShortTileArticleBox["default"], _extends({
427
- key: el
427
+ key: el.id
428
428
  }, el, {
429
429
  id: el.id,
430
430
  name: el === null || el === void 0 ? void 0 : el.cpu,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.173",
3
+ "version": "0.1.175",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [