@pronto-tools-and-more/components 10.4.0 → 10.6.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -188,12 +188,13 @@ var Button = ({
188
188
 
189
189
  // src/parts/CategoryList/CategoryList.tsx
190
190
  var CategoryList = ({
191
- render
191
+ render,
192
+ contentKey
192
193
  }) => {
193
194
  const json = {
194
195
  render,
195
196
  dataSource: {
196
- data: "$context.content.taxonomies",
197
+ data: `$context.${contentKey ?? "content"}.taxonomies`,
197
198
  type: "context",
198
199
  batchSize: 1e6
199
200
  },
@@ -1,4 +1,5 @@
1
1
  import { CategoryListItemRenderer } from "../CategoryListItemRenderer/CategoryListItemRenderer.ts";
2
- export declare const CategoryList: ({ render, }: {
2
+ export declare const CategoryList: ({ render, contentKey, }: {
3
3
  render: CategoryListItemRenderer;
4
+ contentKey?: string;
4
5
  }) => import("react").JSX.Element;
@@ -4,6 +4,7 @@ export interface ICollectionItem {
4
4
  readonly description: string;
5
5
  readonly imageSrc: string;
6
6
  readonly slug: string;
7
+ readonly publicationDate: string;
7
8
  }
8
9
  export interface CollectionRenderer {
9
10
  (item: ICollectionItem): React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "10.4.0",
3
+ "version": "10.6.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",