ezfw-core 1.0.70 → 1.0.72

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.
@@ -66,7 +66,7 @@ const DEFAULT_TEMPLATE = `<!DOCTYPE html>
66
66
  {{head}}
67
67
  </head>
68
68
  <body>
69
- {{body}}
69
+ <div data-ez-outlet>{{body}}</div>
70
70
  {{scripts}}
71
71
  </body>
72
72
  </html>`;
@@ -788,6 +788,15 @@ for (const cssName of cssModules) {
788
788
  await ez.resolveStyles(cssName);
789
789
  }
790
790
  console.log('[Ez SSR] Loaded ${cssModules.length} CSS module(s):', cssModules);` : '';
791
+ // If no islands, just load the framework and let SPA take over
792
+ if (islands.length === 0) {
793
+ return `<script type="module">
794
+ // Ez SSR - No islands, SPA will take over
795
+ await import('${frameworkPath}');
796
+ ${cssLoadingCode}
797
+ </script>`;
798
+ }
799
+ // With islands: set SSR mode and hydrate specific components
791
800
  return `<script type="module">
792
801
  // Ez Islands v2 - Set SSR flag and islands data BEFORE loading runtime
793
802
  window.__EZ_SSR_MODE__ = true;
@@ -150,7 +150,7 @@ const DEFAULT_TEMPLATE = `<!DOCTYPE html>
150
150
  {{head}}
151
151
  </head>
152
152
  <body>
153
- {{body}}
153
+ <div data-ez-outlet>{{body}}</div>
154
154
  {{scripts}}
155
155
  </body>
156
156
  </html>`;
@@ -1010,6 +1010,16 @@ for (const cssName of cssModules) {
1010
1010
  }
1011
1011
  console.log('[Ez SSR] Loaded ${cssModules.length} CSS module(s):', cssModules);` : '';
1012
1012
 
1013
+ // If no islands, just load the framework and let SPA take over
1014
+ if (islands.length === 0) {
1015
+ return `<script type="module">
1016
+ // Ez SSR - No islands, SPA will take over
1017
+ await import('${frameworkPath}');
1018
+ ${cssLoadingCode}
1019
+ </script>`;
1020
+ }
1021
+
1022
+ // With islands: set SSR mode and hydrate specific components
1013
1023
  return `<script type="module">
1014
1024
  // Ez Islands v2 - Set SSR flag and islands data BEFORE loading runtime
1015
1025
  window.__EZ_SSR_MODE__ = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezfw-core",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "Ez Framework - A declarative component framework for building modern web applications",
5
5
  "type": "module",
6
6
  "main": "./core/ez.ts",