@servlyadmin/runtime-core 0.1.13 → 0.1.14

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/dist/index.cjs CHANGED
@@ -19893,6 +19893,11 @@ function renderComponentViewElement(element, tree, context, eventHandlers, eleme
19893
19893
  wrapper.className = "contents";
19894
19894
  const viewTree = buildTree(viewLayout);
19895
19895
  const viewRoots = viewLayout.filter((el) => !el.parent || el.parent === null);
19896
+ console.log("[Servly] viewRoots found:", {
19897
+ count: viewRoots.length,
19898
+ rootIds: viewRoots.map((r) => r.i),
19899
+ allElementIds: viewLayout.map((el) => ({ id: el.i, parent: el.parent }))
19900
+ });
19896
19901
  const nestedState = {
19897
19902
  ...state,
19898
19903
  elements: viewLayout,
@@ -19903,6 +19908,7 @@ function renderComponentViewElement(element, tree, context, eventHandlers, eleme
19903
19908
  };
19904
19909
  nestedState.renderingStack.add(componentViewId);
19905
19910
  for (const root of viewRoots) {
19911
+ console.log("[Servly] Rendering root element:", root.i, "componentId:", root.componentId, "type:", root.type);
19906
19912
  const rootElement = renderElement(
19907
19913
  root,
19908
19914
  viewTree,
@@ -19912,6 +19918,7 @@ function renderComponentViewElement(element, tree, context, eventHandlers, eleme
19912
19918
  nestedState,
19913
19919
  true
19914
19920
  );
19921
+ console.log("[Servly] Root element rendered:", rootElement?.tagName, "innerHTML length:", rootElement?.innerHTML?.length);
19915
19922
  wrapper.appendChild(rootElement);
19916
19923
  }
19917
19924
  const elementState = {
package/dist/index.js CHANGED
@@ -3097,6 +3097,11 @@ function renderComponentViewElement(element, tree, context, eventHandlers, eleme
3097
3097
  wrapper.className = "contents";
3098
3098
  const viewTree = buildTree(viewLayout);
3099
3099
  const viewRoots = viewLayout.filter((el) => !el.parent || el.parent === null);
3100
+ console.log("[Servly] viewRoots found:", {
3101
+ count: viewRoots.length,
3102
+ rootIds: viewRoots.map((r) => r.i),
3103
+ allElementIds: viewLayout.map((el) => ({ id: el.i, parent: el.parent }))
3104
+ });
3100
3105
  const nestedState = {
3101
3106
  ...state,
3102
3107
  elements: viewLayout,
@@ -3107,6 +3112,7 @@ function renderComponentViewElement(element, tree, context, eventHandlers, eleme
3107
3112
  };
3108
3113
  nestedState.renderingStack.add(componentViewId);
3109
3114
  for (const root of viewRoots) {
3115
+ console.log("[Servly] Rendering root element:", root.i, "componentId:", root.componentId, "type:", root.type);
3110
3116
  const rootElement = renderElement(
3111
3117
  root,
3112
3118
  viewTree,
@@ -3116,6 +3122,7 @@ function renderComponentViewElement(element, tree, context, eventHandlers, eleme
3116
3122
  nestedState,
3117
3123
  true
3118
3124
  );
3125
+ console.log("[Servly] Root element rendered:", rootElement?.tagName, "innerHTML length:", rootElement?.innerHTML?.length);
3119
3126
  wrapper.appendChild(rootElement);
3120
3127
  }
3121
3128
  const elementState = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servlyadmin/runtime-core",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Framework-agnostic core renderer for Servly components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",