@rettangoli/fe 0.0.7-rc4 → 0.0.7-rc5

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": "@rettangoli/fe",
3
- "version": "0.0.7-rc4",
3
+ "version": "0.0.7-rc5",
4
4
  "description": "Frontend framework for building reactive web components",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "esbuild": "^0.25.5",
31
31
  "immer": "^10.1.1",
32
- "jempl": "^0.0.6",
32
+ "jempl": "0.1.0-rc1",
33
33
  "js-yaml": "^4.1.0",
34
34
  "rxjs": "^7.8.2",
35
35
  "snabbdom": "^3.6.2",
@@ -133,7 +133,7 @@ const examples = (options = {}) => {
133
133
  for (const [index, example] of examples.entries()) {
134
134
  const { name, viewData } = example;
135
135
  const ast = parse(template);
136
- const renderedView = flattenArrays(render({ ast, data: viewData }));
136
+ const renderedView = flattenArrays(render(ast, viewData, {}));
137
137
  const html = yamlToHtml(renderedView);
138
138
  output.push({
139
139
  category,
package/src/parser.js CHANGED
@@ -60,10 +60,7 @@ const lodashGet = (obj, path) => {
60
60
  };
61
61
 
62
62
  export const parseView = ({ h, template, viewData, refs, handlers }) => {
63
- const result = jemplRender({
64
- ast: template,
65
- data: viewData,
66
- });
63
+ const result = jemplRender(template, viewData, {});
67
64
 
68
65
  // Flatten the array carefully to maintain structure
69
66
  const flattenedResult = flattenArrays(result);