@pronto-tools-and-more/components 14.26.0 → 14.28.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
@@ -297,7 +297,8 @@ var getNodeInfo = (element) => {
|
|
297
297
|
publicationDate: `$functions.id($context, ${contentKey}, 'publicationDate')`,
|
298
298
|
id: `$functions.id($context, ${contentKey}, 'id')`,
|
299
299
|
primaryCategoryName: `$functions.id($context, ${contentKey}, 'primaryCategoryName')`,
|
300
|
-
primaryCategoryId: `$functions.id($context, ${contentKey}, 'primaryCategoryId')
|
300
|
+
primaryCategoryId: `$functions.id($context, ${contentKey}, 'primaryCategoryId')`,
|
301
|
+
language: `$functions.getLanguage($functions.id($context, ${contentKey}))`
|
301
302
|
};
|
302
303
|
}
|
303
304
|
return {
|
@@ -311,7 +312,8 @@ var getNodeInfo = (element) => {
|
|
311
312
|
id: `$functions.id($context, ${contentKey}, 'id')`,
|
312
313
|
primaryCategoryId: `$functions.getPrimaryCategoryProperty($context[${contentKey}], 'id')`,
|
313
314
|
primaryCategoryName: `$functions.getPrimaryCategoryProperty($context[${contentKey}], 'name')`,
|
314
|
-
access: `$functions.id($context, ${contentKey}, 'access')
|
315
|
+
access: `$functions.id($context, ${contentKey}, 'access')`,
|
316
|
+
language: `$functions.getLanguage($functions.id($context, ${contentKey}))`
|
315
317
|
};
|
316
318
|
};
|
317
319
|
var unrender2 = (element, renderElement) => {
|
@@ -1679,16 +1681,21 @@ var getImageSrc = (fallbackImage) => {
|
|
1679
1681
|
}
|
1680
1682
|
return `$functions.id($context, 'search-result', 'issue', 'thumbnails', 'default')`;
|
1681
1683
|
};
|
1682
|
-
var
|
1684
|
+
var getNodeInfo2 = (element) => {
|
1683
1685
|
const { render, fallbackImage, ...rest } = element;
|
1684
|
-
|
1686
|
+
return {
|
1685
1687
|
title: "$functions.id($context, 'search-result', 'issue', 'name')",
|
1686
1688
|
name: "$functions.id($context, 'search-result', 'issue', 'name')",
|
1687
1689
|
description: "$functions.id($context, 'search-result', 'issue', 'description')",
|
1688
1690
|
imageSrc: getImageSrc(fallbackImage),
|
1689
|
-
language: "$functions.id($context, 'search-result', 'issue'
|
1691
|
+
language: "$functions.getLanguage($functions.id($context, 'search-result', 'issue'))",
|
1690
1692
|
slug: "$functions.id($context, 'search-result', 'issue', 'properties', 'slug')"
|
1691
|
-
}
|
1693
|
+
};
|
1694
|
+
};
|
1695
|
+
var unrender14 = (element, renderElement) => {
|
1696
|
+
const { render, fallbackImage, ...rest } = element;
|
1697
|
+
const nodeInfo = getNodeInfo2(element);
|
1698
|
+
const node = render(nodeInfo);
|
1692
1699
|
const final = renderElement(node);
|
1693
1700
|
return {
|
1694
1701
|
...rest,
|