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

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -1,3 +1,57 @@
1
+ // src/parts/JsonComponent/JsonComponent.tsx
2
+ var JsonComponent = ({ json }) => {
3
+ const node = json;
4
+ return node;
5
+ };
6
+
7
+ // src/parts/Collection/Collection.tsx
8
+ var Collection = ({
9
+ limit,
10
+ offset,
11
+ name
12
+ }) => {
13
+ 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
+ },
28
+ dataSource: {
29
+ type: "collection-content",
30
+ limit: `${limit}`,
31
+ offset: `${offset}`,
32
+ collectionFilter: {
33
+ name: {
34
+ value: name
35
+ }
36
+ }
37
+ },
38
+ type: "list",
39
+ class: "schlauch-section-content",
40
+ tapEntry: {
41
+ value: {
42
+ type: "openUrl",
43
+ url: "#",
44
+ target: ""
45
+ },
46
+ fallback: {
47
+ type: "openContent"
48
+ }
49
+ },
50
+ template: "grid"
51
+ };
52
+ return /* @__PURE__ */ React.createElement("div", { className: "Collection" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
53
+ };
54
+
1
55
  // src/parts/Container/Container.tsx
2
56
  var Container = ({
3
57
  children
@@ -6,12 +60,6 @@ var Container = ({
6
60
  return /* @__PURE__ */ React.createElement("div", { className: "Container" }, ...childrenArray);
7
61
  };
8
62
 
9
- // src/parts/JsonComponent/JsonComponent.tsx
10
- var JsonComponent = ({ json }) => {
11
- const node = json;
12
- return node;
13
- };
14
-
15
63
  // src/parts/ContentBody/ContentBody.tsx
16
64
  var ContentBody = () => {
17
65
  const json = {
@@ -518,6 +566,7 @@ var SubscriptionLink = ({ message } = {}) => {
518
566
  return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
519
567
  };
520
568
  export {
569
+ Collection,
521
570
  Container,
522
571
  ContentBody,
523
572
  ContentTitle,
@@ -0,0 +1,5 @@
1
+ export declare const Collection: ({ limit, offset, name, }: {
2
+ limit: number;
3
+ offset: number;
4
+ name: string;
5
+ }) => import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ export * from "../Collection/Collection.tsx";
1
2
  export * from "../Container/Container.tsx";
2
3
  export * from "../ContentBody/ContentBody.tsx";
3
4
  export * from "../ContentTitle/ContentTitle.tsx";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "8.0.2",
3
+ "version": "8.2.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",