@pronto-tools-and-more/components-renderer 10.1.0 → 10.2.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components-renderer",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "description": "",
5
5
  "main": "src/componentsRendererMain.js",
6
6
  "type": "module",
@@ -12,7 +12,15 @@ export const renderCustomElementAuthorList = (element, renderElement) => {
12
12
  language: `$functions.id($context, 'context', 'properties', 'lang')`,
13
13
  imageSrc: `$functions.id($context, 'context', 'properties', 'thumbnails', 'default')`,
14
14
  });
15
- const final = renderElement(node);
15
+ const condition = {
16
+ value: "$context.context.type",
17
+ operation: "EQUALS",
18
+ compareValue: "author",
19
+ };
20
+ const final = {
21
+ ...renderElement(node),
22
+ condition,
23
+ };
16
24
  return {
17
25
  ...rest,
18
26
  content: final,