@webmate-studio/builder 0.2.183 → 0.2.184

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.183",
3
+ "version": "0.2.184",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -40,6 +40,10 @@ class TemplateEvaluator {
40
40
  case 'Fragment':
41
41
  return this.evalFragment(node, ctx);
42
42
  case 'Text':
43
+ // Strip closing tags of built-in micro-components (only if present)
44
+ if (node.value.includes('</wm-')) {
45
+ return node.value.replace(/<\/wm-button>/g, '');
46
+ }
43
47
  return node.value;
44
48
  case 'Expression':
45
49
  return this.evalExpression(node, ctx);
@@ -194,10 +198,10 @@ class TemplateEvaluator {
194
198
  return this.evalIslandTag(node, ctx);
195
199
  }
196
200
 
197
- // Built-in micro-components (disabled for testing)
198
- // if (node.tagName === 'wm-button') {
199
- // return this.evalWmButton(node, ctx);
200
- // }
201
+ // Built-in micro-components
202
+ if (node.tagName === 'wm-button') {
203
+ return this.evalWmButton(node, ctx);
204
+ }
201
205
 
202
206
  let result = `<${node.tagName}`;
203
207