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