@pronto-tools-and-more/components 14.46.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
  };
@@ -1799,6 +1800,7 @@ var getNodeInfo3 = (element) => {
1799
1800
  slug: `$functions.id($context, ${contentKey}, 'issue', 'properties', 'slug')`,
1800
1801
  primaryCategoryId: `$functions.getPrimaryCategoryProperty($context[${contentKey}]['issue'], 'id')`,
1801
1802
  primaryCategoryName: `$functions.getPrimaryCategoryProperty($context[${contentKey}]['issue'], 'name')`,
1803
+ primaryCategoryLanguage: `$functions.getLanguage($functions.getPrimaryCategoryProperty($context[${contentKey}]['issue'], 'properties', 'lang'))`,
1802
1804
  metadataVideoPodcast: `$functions.id($context, ${contentKey}, 'issue', 'metadataVideoPodcast')`,
1803
1805
  readTime: `$functions.getReadTime($functions.id($context, ${contentKey}, 'issue'))`,
1804
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
  }
@@ -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.46.0",
3
+ "version": "14.47.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",