ywana-core8 0.0.742 → 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.cjs CHANGED
@@ -5889,6 +5889,7 @@ var CollectionPage$1 = function CollectionPage(props) {
5889
5889
  editor = props.editor,
5890
5890
  editorTitle = props.editorTitle,
5891
5891
  editorActions = props.editorActions,
5892
+ listItemRenderer = props.listItemRenderer,
5892
5893
  filters = props.filters,
5893
5894
  footer = props.footer,
5894
5895
  children = props.children;
@@ -5974,7 +5975,8 @@ var CollectionPage$1 = function CollectionPage(props) {
5974
5975
  }) : /*#__PURE__*/React__default["default"].createElement(CollectionList$1, {
5975
5976
  groupBy: groupBy,
5976
5977
  onSelect: onSelect,
5977
- searchBy: searchBy
5978
+ searchBy: searchBy,
5979
+ itemRenderer: listItemRenderer
5978
5980
  })), /*#__PURE__*/React__default["default"].createElement("main", {
5979
5981
  key: id,
5980
5982
  className: "collection-page " + className
@@ -6123,7 +6125,8 @@ var CollectionList$1 = function CollectionList(props) {
6123
6125
  var groupBy = props.groupBy,
6124
6126
  onSelect = props.onSelect,
6125
6127
  _props$searchBy = props.searchBy,
6126
- searchBy = _props$searchBy === void 0 ? [] : _props$searchBy;
6128
+ searchBy = _props$searchBy === void 0 ? [] : _props$searchBy,
6129
+ itemRenderer = props.itemRenderer;
6127
6130
 
6128
6131
  var _useContext3 = React.useContext(PageContext),
6129
6132
  pageContext = _useContext3[0],
@@ -6158,6 +6161,7 @@ var CollectionList$1 = function CollectionList(props) {
6158
6161
 
6159
6162
  var items = search();
6160
6163
  var items2 = items.map(function (content) {
6164
+ if (itemRenderer) return itemRenderer(content);
6161
6165
  return {
6162
6166
  id: content.id,
6163
6167
  line1: content.name || content.centre || content.tag,