@pronto-tools-and-more/components 15.24.0 → 15.26.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
@@ -231,7 +231,8 @@ var getArticleListDataSource = ({
231
231
  bookmarks,
232
232
  contextId,
233
233
  asContext,
234
- taxonomy
234
+ taxonomy,
235
+ id
235
236
  }) => {
236
237
  if (contextId) {
237
238
  if (!contextId.startsWith("$context.") && !contextId.startsWith("$functions.")) {
@@ -284,20 +285,24 @@ var getArticleListDataSource = ({
284
285
  bundleId,
285
286
  taxonomy
286
287
  });
288
+ const and = [
289
+ {
290
+ postType: {
291
+ value: "post"
292
+ }
293
+ },
294
+ {
295
+ contentType: {
296
+ value: "POST"
297
+ }
298
+ },
299
+ ...additionalFilter
300
+ ];
301
+ if (id) {
302
+ and.push({ id: { value: id } });
303
+ }
287
304
  const filter = {
288
- AND: [
289
- {
290
- postType: {
291
- value: "post"
292
- }
293
- },
294
- {
295
- contentType: {
296
- value: "POST"
297
- }
298
- },
299
- ...additionalFilter
300
- ]
305
+ AND: and
301
306
  };
302
307
  const dataSource = {
303
308
  type: "content",
@@ -410,7 +415,8 @@ var ArticleList = ({
410
415
  bookmarks,
411
416
  contextId,
412
417
  asContext,
413
- taxonomy
418
+ taxonomy,
419
+ id
414
420
  }) => {
415
421
  const dataSource = getArticleListDataSource({
416
422
  properties,
@@ -424,7 +430,8 @@ var ArticleList = ({
424
430
  bookmarks,
425
431
  contextId,
426
432
  taxonomy,
427
- asContext
433
+ asContext,
434
+ id
428
435
  });
429
436
  const json = {
430
437
  render,
@@ -1,5 +1,5 @@
1
1
  import type { ArticleListItemRenderer } from "../ArticleListItemRenderer/ArticleListItemRenderer.ts";
2
- export declare const ArticleList: ({ properties, render, authorId, categoryId, parentCategoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, contextId, asContext, taxonomy, }: {
2
+ export declare const ArticleList: ({ properties, render, authorId, categoryId, parentCategoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, contextId, asContext, taxonomy, id }: {
3
3
  properties?: any;
4
4
  authorId?: string;
5
5
  categoryId?: string;
@@ -14,4 +14,5 @@ export declare const ArticleList: ({ properties, render, authorId, categoryId, p
14
14
  contextId?: string;
15
15
  asContext?: string;
16
16
  taxonomy?: any;
17
+ id?: string;
17
18
  }) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const getArticleListDataSource: ({ properties, authorId, categoryId, parentCategoryId, bundleId, collectionName, limit, offset, bookmarks, contextId, asContext, taxonomy, }: {
1
+ export declare const getArticleListDataSource: ({ properties, authorId, categoryId, parentCategoryId, bundleId, collectionName, limit, offset, bookmarks, contextId, asContext, taxonomy, id }: {
2
2
  properties: any;
3
3
  authorId: any;
4
4
  categoryId: any;
@@ -11,6 +11,7 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
11
11
  contextId: any;
12
12
  asContext: any;
13
13
  taxonomy: any;
14
+ id: any;
14
15
  }) => {
15
16
  type: string;
16
17
  data: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "15.24.0",
3
+ "version": "15.26.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -17,9 +17,9 @@
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
19
  "@types/node": "^22.10.1",
20
- "@types/react": "^19.1.3",
20
+ "@types/react": "^19.1.5",
21
21
  "esbuild": "^0.25.4",
22
22
  "react": "^19.1.0",
23
- "ts-jest": "^29.3.2"
23
+ "ts-jest": "^29.3.4"
24
24
  }
25
25
  }