ywana-core8 0.0.743 → 0.0.744

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/dist/index.umd.js CHANGED
@@ -5883,6 +5883,7 @@
5883
5883
  editor = props.editor,
5884
5884
  editorTitle = props.editorTitle,
5885
5885
  editorActions = props.editorActions,
5886
+ listItemRenderer = props.listItemRenderer,
5886
5887
  filters = props.filters,
5887
5888
  footer = props.footer,
5888
5889
  children = props.children;
@@ -5968,7 +5969,8 @@
5968
5969
  }) : /*#__PURE__*/React__default["default"].createElement(CollectionList$1, {
5969
5970
  groupBy: groupBy,
5970
5971
  onSelect: onSelect,
5971
- searchBy: searchBy
5972
+ searchBy: searchBy,
5973
+ itemRenderer: listItemRenderer
5972
5974
  })), /*#__PURE__*/React__default["default"].createElement("main", {
5973
5975
  key: id,
5974
5976
  className: "collection-page " + className
@@ -6117,7 +6119,8 @@
6117
6119
  var groupBy = props.groupBy,
6118
6120
  onSelect = props.onSelect,
6119
6121
  _props$searchBy = props.searchBy,
6120
- searchBy = _props$searchBy === void 0 ? [] : _props$searchBy;
6122
+ searchBy = _props$searchBy === void 0 ? [] : _props$searchBy,
6123
+ itemRenderer = props.itemRenderer;
6121
6124
 
6122
6125
  var _useContext3 = React.useContext(PageContext),
6123
6126
  pageContext = _useContext3[0],
@@ -6152,6 +6155,7 @@
6152
6155
 
6153
6156
  var items = search();
6154
6157
  var items2 = items.map(function (content) {
6158
+ if (itemRenderer) return itemRenderer(content);
6155
6159
  return {
6156
6160
  id: content.id,
6157
6161
  line1: content.name || content.centre || content.tag,