@pronto-tools-and-more/components 14.27.0 → 14.29.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.
Files changed (2) hide show
  1. package/dist/main.js +10 -5
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1516,7 +1516,7 @@ var PrimaryCategory = ({
1516
1516
  }) => {
1517
1517
  const categoryId = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'id')`;
1518
1518
  const categoryName = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'name')`;
1519
- const categoryLanguage = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'language')`;
1519
+ const categoryLanguage = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'properties', 'lang')`;
1520
1520
  const categoryType = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'type')`;
1521
1521
  const json = {
1522
1522
  render,
@@ -1681,16 +1681,21 @@ var getImageSrc = (fallbackImage) => {
1681
1681
  }
1682
1682
  return `$functions.id($context, 'search-result', 'issue', 'thumbnails', 'default')`;
1683
1683
  };
1684
- var unrender14 = (element, renderElement) => {
1684
+ var getNodeInfo2 = (element) => {
1685
1685
  const { render, fallbackImage, ...rest } = element;
1686
- const node = render({
1686
+ return {
1687
1687
  title: "$functions.id($context, 'search-result', 'issue', 'name')",
1688
1688
  name: "$functions.id($context, 'search-result', 'issue', 'name')",
1689
1689
  description: "$functions.id($context, 'search-result', 'issue', 'description')",
1690
1690
  imageSrc: getImageSrc(fallbackImage),
1691
- language: "$functions.id($context, 'search-result', 'issue', 'properties', 'lang')",
1691
+ language: "$functions.getLanguage($functions.id($context, 'search-result', 'issue'))",
1692
1692
  slug: "$functions.id($context, 'search-result', 'issue', 'properties', 'slug')"
1693
- });
1693
+ };
1694
+ };
1695
+ var unrender14 = (element, renderElement) => {
1696
+ const { render, fallbackImage, ...rest } = element;
1697
+ const nodeInfo = getNodeInfo2(element);
1698
+ const node = render(nodeInfo);
1694
1699
  const final = renderElement(node);
1695
1700
  return {
1696
1701
  ...rest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "14.27.0",
3
+ "version": "14.29.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",