@pronto-tools-and-more/components 10.9.0 → 10.11.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
- offset: "0",
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
  }
@@ -6,4 +6,5 @@ export interface IArticleListItem {
6
6
  readonly slug: string;
7
7
  readonly metadataVideoPodcast?: string;
8
8
  readonly readTime?: string;
9
+ readonly publicationDate: string;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "10.9.0",
3
+ "version": "10.11.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",