@pronto-tools-and-more/components 8.2.0 → 8.4.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -8,23 +8,11 @@ var JsonComponent = ({ json }) => {
8
8
  var Collection = ({
9
9
  limit,
10
10
  offset,
11
- name
11
+ name,
12
+ render
12
13
  }) => {
13
14
  const json = {
14
- content: {
15
- type: "issue",
16
- issueContextKey: "collection-content",
17
- bookmark: true,
18
- customMessages: [],
19
- class: "",
20
- hideComponents: {
21
- publication: true,
22
- tags: true,
23
- categories: true,
24
- publicationDate: true,
25
- properties: true
26
- }
27
- },
15
+ render,
28
16
  dataSource: {
29
17
  type: "collection-content",
30
18
  limit: `${limit}`,
@@ -36,7 +24,7 @@ var Collection = ({
36
24
  }
37
25
  },
38
26
  type: "list",
39
- class: "schlauch-section-content",
27
+ class: "schlauch-section-content data-custom-list",
40
28
  tapEntry: {
41
29
  value: {
42
30
  type: "openUrl",
@@ -1,5 +1,8 @@
1
- export declare const Collection: ({ limit, offset, name, }: {
1
+ import type React from "react";
2
+ import type { CollectionRenderer } from "../CollectionRenderer/CollectionRenderer.ts";
3
+ export declare const Collection: ({ limit, offset, name, render, }: {
2
4
  limit: number;
3
5
  offset: number;
4
6
  name: string;
5
- }) => import("react").JSX.Element;
7
+ render: CollectionRenderer;
8
+ }) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type React from "react";
2
+ export interface CollectionRenderer {
3
+ ({ name, description, imageSrc, }: {
4
+ name: string;
5
+ description: string;
6
+ imageSrc: string;
7
+ }): React.ReactNode;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "8.2.0",
3
+ "version": "8.4.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",