ezfw-core 1.0.64 → 1.0.66
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.
|
@@ -168,9 +168,9 @@ export class StaticHtmlRenderer {
|
|
|
168
168
|
const eztype = config.eztype || 'div';
|
|
169
169
|
// Check if it's a registered component
|
|
170
170
|
if (ctx.registry.has(eztype)) {
|
|
171
|
-
// Pass the entire config as props (
|
|
172
|
-
//
|
|
173
|
-
const { eztype: _,
|
|
171
|
+
// Pass the entire config as props (including items - components handle their own structure)
|
|
172
|
+
// In SPA mode, components receive full config via constructor, SSR should match
|
|
173
|
+
const { eztype: _, ...configProps } = config;
|
|
174
174
|
const mergedProps = { ...configProps, ...(config.props || {}) };
|
|
175
175
|
return this.renderComponent(eztype, ctx, mergedProps);
|
|
176
176
|
}
|
|
@@ -364,11 +364,11 @@ export class StaticHtmlRenderer {
|
|
|
364
364
|
if (islands.length === 0)
|
|
365
365
|
return '';
|
|
366
366
|
const islandsJson = JSON.stringify(islands);
|
|
367
|
-
return `
|
|
368
|
-
<script type="module">
|
|
369
|
-
import { hydrateIslands } from '/ez/islands/runtime.js';
|
|
370
|
-
window.__EZ_ISLANDS__ = ${islandsJson};
|
|
371
|
-
hydrateIslands(window.__EZ_ISLANDS__);
|
|
367
|
+
return `
|
|
368
|
+
<script type="module">
|
|
369
|
+
import { hydrateIslands } from '/ez/islands/runtime.js';
|
|
370
|
+
window.__EZ_ISLANDS__ = ${islandsJson};
|
|
371
|
+
hydrateIslands(window.__EZ_ISLANDS__);
|
|
372
372
|
</script>`;
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
@@ -271,9 +271,9 @@ export class StaticHtmlRenderer {
|
|
|
271
271
|
|
|
272
272
|
// Check if it's a registered component
|
|
273
273
|
if (ctx.registry.has(eztype)) {
|
|
274
|
-
// Pass the entire config as props (
|
|
275
|
-
//
|
|
276
|
-
const { eztype: _,
|
|
274
|
+
// Pass the entire config as props (including items - components handle their own structure)
|
|
275
|
+
// In SPA mode, components receive full config via constructor, SSR should match
|
|
276
|
+
const { eztype: _, ...configProps } = config;
|
|
277
277
|
const mergedProps = { ...configProps, ...(config.props || {}) };
|
|
278
278
|
return this.renderComponent(eztype, ctx, mergedProps);
|
|
279
279
|
}
|