@uniweb/runtime 1.3.13 → 1.4.0
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/ssr.js +3 -8
- package/dist/ssr.js.map +1 -1
- package/package.json +2 -2
- package/src/area-wrappers.js +51 -56
- package/src/components/Layout.jsx +4 -6
- package/src/ssr-renderer.js +4 -4
package/dist/ssr.js
CHANGED
|
@@ -401,13 +401,8 @@ function sectionStickyProps(block, kind) {
|
|
|
401
401
|
const style = kind ? sectionStickyStyle(block) : null;
|
|
402
402
|
return style ? { style, "data-uw-sticky": kind === "child" ? "child" : "section" } : null;
|
|
403
403
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
function resolveLayoutTransitions(areaNames, explicit) {
|
|
407
|
-
if (explicit === false) return null;
|
|
408
|
-
const transitions = {};
|
|
409
|
-
for (const name of areaNames) transitions[name] = toIdent(name);
|
|
410
|
-
return explicit ? { ...transitions, ...explicit } : transitions;
|
|
404
|
+
function resolveLayoutTransitions(explicit) {
|
|
405
|
+
return explicit === false ? null : explicit || {};
|
|
411
406
|
}
|
|
412
407
|
function resolveLayoutLayers(areaNames, explicit, sticky = null) {
|
|
413
408
|
if (explicit === false) return {};
|
|
@@ -617,7 +612,7 @@ function renderLayout(page, website) {
|
|
|
617
612
|
for (const block of blocks || []) block.initComponent();
|
|
618
613
|
}
|
|
619
614
|
const areaNames = Object.keys(areas);
|
|
620
|
-
const transitions = website.viewTransitions ? resolveLayoutTransitions(
|
|
615
|
+
const transitions = website.viewTransitions ? resolveLayoutTransitions(layoutMeta?.transitions) : null;
|
|
621
616
|
const sticky = layoutStickiness(areas);
|
|
622
617
|
const layers = resolveLayoutLayers(areaNames, layoutMeta?.layers, sticky);
|
|
623
618
|
const wrapArea = (name, element) => {
|