@pronto-tools-and-more/components 6.22.1 → 6.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -4,6 +4,12 @@ var JsonComponent = ({ json }) => {
4
4
  return node;
5
5
  };
6
6
 
7
+ // src/parts/Link/Link.tsx
8
+ var Link = () => {
9
+ const json = {};
10
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
11
+ };
12
+
7
13
  // src/parts/Login/Login.tsx
8
14
  var Login = () => {
9
15
  const json = {
@@ -29,6 +35,27 @@ var MenuItems = ({ menuName }) => {
29
35
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
30
36
  };
31
37
 
38
+ // src/parts/PostContentBody/PostContentBody.tsx
39
+ var PostContentBody = () => {
40
+ const json = {
41
+ type: "content-body",
42
+ id: "post-content-body",
43
+ customBlocks: [],
44
+ class: ["post-content-service"],
45
+ dataSource: {
46
+ type: "content",
47
+ preventSSRCache: true,
48
+ filter: {
49
+ id: {
50
+ value: "$context.content.id"
51
+ }
52
+ }
53
+ },
54
+ isLazy: false
55
+ };
56
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
57
+ };
58
+
32
59
  // src/parts/SearchField/SearchField.tsx
33
60
  var SearchField = () => {
34
61
  const json = {
@@ -38,9 +65,137 @@ var SearchField = () => {
38
65
  };
39
66
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
40
67
  };
68
+
69
+ // src/parts/SearchLink/SearchLink.tsx
70
+ var SearchLink = () => {
71
+ const json = {
72
+ type: "button",
73
+ tap: {
74
+ type: "navigate",
75
+ path: "suche"
76
+ },
77
+ buttonClass: "search",
78
+ id: "button-search"
79
+ };
80
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
81
+ };
82
+
83
+ // src/parts/SearchResults/SearchResults.tsx
84
+ var SearchResults = () => {
85
+ const json = {
86
+ content: {
87
+ type: "search-result",
88
+ pageHitExcerptMessage: "test",
89
+ coverHeight: "FIXED",
90
+ tapPageHit: {
91
+ type: "openContent"
92
+ },
93
+ tapCover: {
94
+ type: "openContent"
95
+ },
96
+ class: "issue-card issue-card--overline-in-page-hit-excerpt-message",
97
+ template: "feed",
98
+ renderProperties: ["authors"]
99
+ },
100
+ dataSource: {
101
+ phrase: "$context.phrase",
102
+ type: "search-result",
103
+ filter: {
104
+ AND: [
105
+ {
106
+ OR: [
107
+ {
108
+ contentType: {
109
+ value: "POST"
110
+ }
111
+ },
112
+ {
113
+ contentType: {
114
+ value: "BUNDLE"
115
+ }
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ postType: {
121
+ value: "post"
122
+ }
123
+ },
124
+ {
125
+ condition: {
126
+ value: "$context.issue-age",
127
+ compareValue: "day"
128
+ },
129
+ age: {
130
+ count: 1,
131
+ unit: "DAY"
132
+ }
133
+ },
134
+ {
135
+ condition: {
136
+ value: "$context.issue-age",
137
+ compareValue: "week"
138
+ },
139
+ age: {
140
+ count: 1,
141
+ unit: "WEEK"
142
+ }
143
+ },
144
+ {
145
+ condition: {
146
+ value: "$context.issue-age",
147
+ compareValue: "month"
148
+ },
149
+ age: {
150
+ count: 1,
151
+ unit: "MONTH"
152
+ }
153
+ },
154
+ {
155
+ condition: {
156
+ value: "$context.issue-age",
157
+ compareValue: "year"
158
+ },
159
+ age: {
160
+ count: 1,
161
+ unit: "YEAR"
162
+ }
163
+ }
164
+ ]
165
+ },
166
+ contextKey: "searchResults",
167
+ searchOptions: {
168
+ sortBy: "PUB_DATE_DESC",
169
+ findAll: true
170
+ },
171
+ limitCharactersBeforeHit: 70,
172
+ legacyMode: {
173
+ mapPostToIssue: true,
174
+ unwrapBundles: true
175
+ }
176
+ },
177
+ type: "list",
178
+ class: "schlauch-section",
179
+ emptyMessage: {
180
+ message: "SEARCH_RESULT_NO_RESULT",
181
+ variables: ["$context.phrase"]
182
+ },
183
+ errorMessage: "SEARCH_ERROR",
184
+ errorButtonLabel: "SEARCH_ERROR_RETRY",
185
+ template: "grid",
186
+ tapEntry: {
187
+ type: "openContent"
188
+ }
189
+ };
190
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
191
+ };
41
192
  export {
42
193
  JsonComponent,
194
+ Link,
43
195
  Login,
44
196
  MenuItems,
45
- SearchField
197
+ PostContentBody,
198
+ SearchField,
199
+ SearchLink,
200
+ SearchResults
46
201
  };
@@ -1,4 +1,8 @@
1
1
  export * from "../JsonComponent/JsonComponent.tsx";
2
+ export * from "../Link/Link.tsx";
2
3
  export * from "../Login/Login.tsx";
3
4
  export * from "../MenuItems/MenuItems.tsx";
5
+ export * from "../PostContentBody/PostContentBody.tsx";
4
6
  export * from "../SearchField/SearchField.tsx";
7
+ export * from "../SearchLink/SearchLink.tsx";
8
+ export * from "../SearchResults/SearchResults.tsx";
@@ -0,0 +1 @@
1
+ export declare const Link: () => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PostContentBody: () => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SearchLink: () => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SearchResults: () => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.22.1",
3
+ "version": "6.23.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -1,4 +1,8 @@
1
1
  export * from "../JsonComponent/JsonComponent.tsx";
2
+ export * from "../Link/Link.tsx";
2
3
  export * from "../Login/Login.tsx";
3
4
  export * from "../MenuItems/MenuItems.tsx";
5
+ export * from "../PostContentBody/PostContentBody.tsx";
4
6
  export * from "../SearchField/SearchField.tsx";
7
+ export * from "../SearchLink/SearchLink.tsx";
8
+ export * from "../SearchResults/SearchResults.tsx";
@@ -0,0 +1,6 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const Link = () => {
4
+ const json = {};
5
+ return <JsonComponent json={json} />;
6
+ };
@@ -0,0 +1,21 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const PostContentBody = () => {
4
+ const json = {
5
+ type: "content-body",
6
+ id: "post-content-body",
7
+ customBlocks: [],
8
+ class: ["post-content-service"],
9
+ dataSource: {
10
+ type: "content",
11
+ preventSSRCache: true,
12
+ filter: {
13
+ id: {
14
+ value: "$context.content.id",
15
+ },
16
+ },
17
+ },
18
+ isLazy: false,
19
+ };
20
+ return <JsonComponent json={json} />;
21
+ };
@@ -0,0 +1,14 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const SearchLink = () => {
4
+ const json = {
5
+ type: "button",
6
+ tap: {
7
+ type: "navigate",
8
+ path: "suche",
9
+ },
10
+ buttonClass: "search",
11
+ id: "button-search",
12
+ };
13
+ return <JsonComponent json={json} />;
14
+ };
@@ -0,0 +1,110 @@
1
+ import { JsonComponent } from "../JsonComponent/JsonComponent.tsx";
2
+
3
+ export const SearchResults = () => {
4
+ const json = {
5
+ content: {
6
+ type: "search-result",
7
+ pageHitExcerptMessage: "test",
8
+ coverHeight: "FIXED",
9
+ tapPageHit: {
10
+ type: "openContent",
11
+ },
12
+ tapCover: {
13
+ type: "openContent",
14
+ },
15
+ class: "issue-card issue-card--overline-in-page-hit-excerpt-message",
16
+ template: "feed",
17
+ renderProperties: ["authors"],
18
+ },
19
+ dataSource: {
20
+ phrase: "$context.phrase",
21
+ type: "search-result",
22
+ filter: {
23
+ AND: [
24
+ {
25
+ OR: [
26
+ {
27
+ contentType: {
28
+ value: "POST",
29
+ },
30
+ },
31
+ {
32
+ contentType: {
33
+ value: "BUNDLE",
34
+ },
35
+ },
36
+ ],
37
+ },
38
+ {
39
+ postType: {
40
+ value: "post",
41
+ },
42
+ },
43
+ {
44
+ condition: {
45
+ value: "$context.issue-age",
46
+ compareValue: "day",
47
+ },
48
+ age: {
49
+ count: 1,
50
+ unit: "DAY",
51
+ },
52
+ },
53
+ {
54
+ condition: {
55
+ value: "$context.issue-age",
56
+ compareValue: "week",
57
+ },
58
+ age: {
59
+ count: 1,
60
+ unit: "WEEK",
61
+ },
62
+ },
63
+ {
64
+ condition: {
65
+ value: "$context.issue-age",
66
+ compareValue: "month",
67
+ },
68
+ age: {
69
+ count: 1,
70
+ unit: "MONTH",
71
+ },
72
+ },
73
+ {
74
+ condition: {
75
+ value: "$context.issue-age",
76
+ compareValue: "year",
77
+ },
78
+ age: {
79
+ count: 1,
80
+ unit: "YEAR",
81
+ },
82
+ },
83
+ ],
84
+ },
85
+ contextKey: "searchResults",
86
+ searchOptions: {
87
+ sortBy: "PUB_DATE_DESC",
88
+ findAll: true,
89
+ },
90
+ limitCharactersBeforeHit: 70,
91
+ legacyMode: {
92
+ mapPostToIssue: true,
93
+ unwrapBundles: true,
94
+ },
95
+ },
96
+ type: "list",
97
+ class: "schlauch-section",
98
+ emptyMessage: {
99
+ message: "SEARCH_RESULT_NO_RESULT",
100
+ variables: ["$context.phrase"],
101
+ },
102
+ errorMessage: "SEARCH_ERROR",
103
+ errorButtonLabel: "SEARCH_ERROR_RETRY",
104
+ template: "grid",
105
+ tapEntry: {
106
+ type: "openContent",
107
+ },
108
+ };
109
+ return <JsonComponent json={json} />;
110
+ };