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.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +19 -15
package/dist/index.modern.js
CHANGED
@@ -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,
|