@pronto-tools-and-more/components-renderer 8.2.0 → 8.3.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.3.0",
4
4
  "description": "",
5
5
  "main": "src/componentsRendererMain.js",
6
6
  "type": "module",
@@ -40,6 +40,21 @@ 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
+ });
52
+ const final = renderElement(node);
53
+ return {
54
+ ...rest,
55
+ content: final,
56
+ };
57
+ }
43
58
  if (element.type) {
44
59
  return element;
45
60
  }