@pronto-tools-and-more/components-renderer 8.2.0 → 8.4.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": "8.2.0",
3
+ "version": "8.4.0",
4
4
  "description": "",
5
5
  "main": "src/componentsRendererMain.js",
6
6
  "type": "module",
@@ -40,6 +40,23 @@ export const renderElement = (element) => {
40
40
  ...renderedChildren,
41
41
  ]);
42
42
  }
43
+ if (
44
+ element.type === "list" &&
45
+ element.class &&
46
+ element.class.includes("data-custom-list")
47
+ ) {
48
+ const { render, ...rest } = element;
49
+ const node = render({
50
+ name: `$functions.id($context, 'collection-content', 'name')`,
51
+ description: `$functions.id($context, 'collection-content', 'description')`,
52
+ imageSrc: `$functions.id($context, 'collection-content', 'thumbnails', 'default')`,
53
+ });
54
+ const final = renderElement(node);
55
+ return {
56
+ ...rest,
57
+ content: final,
58
+ };
59
+ }
43
60
  if (element.type) {
44
61
  return element;
45
62
  }