@pronto-tools-and-more/components 10.9.0 → 10.10.0
Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js
CHANGED
@@ -102,7 +102,9 @@ var ArticleList = ({
|
|
102
102
|
render,
|
103
103
|
authorId,
|
104
104
|
categoryId,
|
105
|
-
bundleId
|
105
|
+
bundleId,
|
106
|
+
limit,
|
107
|
+
offset
|
106
108
|
}) => {
|
107
109
|
const additionalFilter = createFilterFromProperties({
|
108
110
|
properties,
|
@@ -129,7 +131,8 @@ var ArticleList = ({
|
|
129
131
|
...additionalFilter
|
130
132
|
]
|
131
133
|
},
|
132
|
-
|
134
|
+
limit: `${limit}`,
|
135
|
+
offset: `${offset}`,
|
133
136
|
sort: [
|
134
137
|
{
|
135
138
|
publicationDate: {
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { ArticleListItemRenderer } from "../ArticleListItemRenderer/ArticleListItemRenderer.ts";
|
2
|
-
export declare const ArticleList: ({ properties, render, authorId, categoryId, bundleId, }: {
|
2
|
+
export declare const ArticleList: ({ properties, render, authorId, categoryId, bundleId, limit, offset, }: {
|
3
3
|
properties?: any;
|
4
4
|
authorId?: string;
|
5
5
|
categoryId?: string;
|
6
6
|
bundleId?: string;
|
7
7
|
render: ArticleListItemRenderer;
|
8
|
+
limit?: number;
|
9
|
+
offset?: number;
|
8
10
|
}) => import("react").JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type React from "react";
|
2
2
|
import type { IArticleListItem } from "../IArticleListItem/IArticleListItem.ts";
|
3
3
|
export interface ArticleListItemRenderer {
|
4
|
-
({ name, description, imageSrc, properties, }: IArticleListItem): React.ReactNode;
|
4
|
+
({ name, description, imageSrc, properties, publicationDate }: IArticleListItem): React.ReactNode;
|
5
5
|
}
|