@pronto-tools-and-more/components 12.31.0 → 12.33.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -183,8 +183,16 @@ var getArticleListDataSource = ({
183
183
  collectionName,
184
184
  limit,
185
185
  offset,
186
- bookmarks
186
+ bookmarks,
187
+ contextId
187
188
  }) => {
189
+ if (contextId) {
190
+ const dataSource2 = {
191
+ type: "context",
192
+ data: contextId
193
+ };
194
+ return dataSource2;
195
+ }
188
196
  if (bookmarks) {
189
197
  const dataSource2 = {
190
198
  type: "content",
@@ -259,6 +267,9 @@ var getContentKey = (element) => {
259
267
  if (element.dataSource.data === "$context.bookmarks") {
260
268
  return "'context'";
261
269
  }
270
+ if (element.dataSource.type === "$context") {
271
+ return "'context'";
272
+ }
262
273
  return "'content'";
263
274
  };
264
275
  var getNodeInfo = (element) => {
@@ -313,7 +324,8 @@ var ArticleList = ({
313
324
  offset,
314
325
  collectionName,
315
326
  noContentFound,
316
- bookmarks
327
+ bookmarks,
328
+ contextId
317
329
  }) => {
318
330
  const dataSource = getArticleListDataSource({
319
331
  properties,
@@ -323,7 +335,8 @@ var ArticleList = ({
323
335
  limit,
324
336
  offset,
325
337
  collectionName,
326
- bookmarks
338
+ bookmarks,
339
+ contextId
327
340
  });
328
341
  const json = {
329
342
  render,
@@ -1,5 +1,5 @@
1
1
  import type { ArticleListItemRenderer } from "../ArticleListItemRenderer/ArticleListItemRenderer.ts";
2
- export declare const ArticleList: ({ properties, render, authorId, categoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, }: {
2
+ export declare const ArticleList: ({ properties, render, authorId, categoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, contextId, }: {
3
3
  properties?: any;
4
4
  authorId?: string;
5
5
  categoryId?: string;
@@ -10,4 +10,5 @@ export declare const ArticleList: ({ properties, render, authorId, categoryId, b
10
10
  collectionName?: string;
11
11
  noContentFound?: string;
12
12
  bookmarks?: boolean;
13
+ contextId?: string;
13
14
  }) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const getArticleListDataSource: ({ properties, authorId, categoryId, bundleId, collectionName, limit, offset, bookmarks, }: {
1
+ export declare const getArticleListDataSource: ({ properties, authorId, categoryId, bundleId, collectionName, limit, offset, bookmarks, contextId, }: {
2
2
  properties: any;
3
3
  authorId: any;
4
4
  categoryId: any;
@@ -7,7 +7,11 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
7
7
  limit: any;
8
8
  offset: any;
9
9
  bookmarks: any;
10
+ contextId: any;
10
11
  }) => {
12
+ type: string;
13
+ data: any;
14
+ } | {
11
15
  type: string;
12
16
  filter: {
13
17
  AND: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "12.31.0",
3
+ "version": "12.33.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",