@pronto-tools-and-more/components 14.45.0 → 14.47.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
@@ -353,6 +353,7 @@ var getNodeInfo = (element) => {
353
353
  id: `$functions.id($context, ${contentKey}, 'id')`,
354
354
  primaryCategoryId: `$functions.getPrimaryCategoryProperty($context[${contentKey}], 'id')`,
355
355
  primaryCategoryName: `$functions.getPrimaryCategoryProperty($context[${contentKey}], 'name')`,
356
+ primaryCategoryLanguage: `$functions.getLanguage($functions.getPrimaryCategoryProperty($context[${contentKey}], 'properties', 'lang'))`,
356
357
  access: `$functions.id($context, ${contentKey}, 'access')`,
357
358
  language: `$functions.getLanguage($functions.id($context, ${contentKey}))`
358
359
  };
@@ -740,6 +741,7 @@ var unrender7 = (element, renderElement) => {
740
741
  slug: `$functions.id($context, ${contentKey}, 'properties', 'slug')`,
741
742
  totalCount: "n/a",
742
743
  // TODO use real total count once supported
744
+ contentsCount: `$functions.id($context, ${contentKey}, 'contentsCount')`,
743
745
  language
744
746
  });
745
747
  const final = renderElement(node);
@@ -1798,6 +1800,7 @@ var getNodeInfo3 = (element) => {
1798
1800
  slug: `$functions.id($context, ${contentKey}, 'issue', 'properties', 'slug')`,
1799
1801
  primaryCategoryId: `$functions.getPrimaryCategoryProperty($context[${contentKey}]['issue'], 'id')`,
1800
1802
  primaryCategoryName: `$functions.getPrimaryCategoryProperty($context[${contentKey}]['issue'], 'name')`,
1803
+ primaryCategoryLanguage: `$functions.getLanguage($functions.getPrimaryCategoryProperty($context[${contentKey}]['issue'], 'properties', 'lang'))`,
1801
1804
  metadataVideoPodcast: `$functions.id($context, ${contentKey}, 'issue', 'metadataVideoPodcast')`,
1802
1805
  readTime: `$functions.getReadTime($functions.id($context, ${contentKey}, 'issue'))`,
1803
1806
  access: `$functions.id($context, ${contentKey}, 'issue', 'access')`
@@ -10,6 +10,7 @@ export interface IArticleListItem {
10
10
  readonly id: string;
11
11
  readonly primaryCategoryName?: string;
12
12
  readonly primaryCategoryId?: string;
13
+ readonly primaryCategoryLanguage?: string;
13
14
  readonly access?: string;
14
15
  readonly language: string;
15
16
  }
@@ -4,5 +4,6 @@ export interface IDossierListItem {
4
4
  readonly imageSrc: string;
5
5
  readonly slug: string;
6
6
  readonly totalCount: number;
7
+ readonly contentsCount: string;
7
8
  readonly language: string;
8
9
  }
@@ -1,6 +1,7 @@
1
1
  export interface ISearchResult {
2
2
  readonly primaryCategoryName?: string;
3
3
  readonly primaryCategoryId?: string;
4
+ readonly primaryCategoryLanguage?: string;
4
5
  readonly label: string;
5
6
  readonly readtime: string;
6
7
  readonly title: string;
@@ -1,7 +1,5 @@
1
1
  import type React from "react";
2
2
  import type { ISearchResult } from "../ISearchResult/ISearchResult.tsx";
3
3
  export interface ISearchResultItemRenderer {
4
- ({ item }: {
5
- item: ISearchResult;
6
- }): React.ReactNode;
4
+ (item: ISearchResult): React.ReactNode;
7
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "14.45.0",
3
+ "version": "14.47.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",