@uniweb/runtime 1.2.13 → 1.3.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 +2 -1
- package/dist/ssr.js.map +1 -1
- package/package.json +4 -4
- package/src/area-wrappers.js +20 -10
- package/src/components/BlockRenderer.jsx +2 -2
- package/src/components/Layout.jsx +2 -2
- package/src/ssr-renderer.js +3 -3
package/dist/ssr.js
CHANGED
|
@@ -404,7 +404,7 @@ const NS = "uw-";
|
|
|
404
404
|
const toIdent = (name) => NS + String(name).replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
405
405
|
function resolveLayoutTransitions(areaNames, explicit) {
|
|
406
406
|
if (explicit === false) return null;
|
|
407
|
-
const transitions = {
|
|
407
|
+
const transitions = {};
|
|
408
408
|
for (const name of areaNames) transitions[name] = toIdent(name);
|
|
409
409
|
return explicit ? { ...transitions, ...explicit } : transitions;
|
|
410
410
|
}
|
|
@@ -425,6 +425,7 @@ function areaWrapperStyle(region, transitions, layers, sticky = null) {
|
|
|
425
425
|
const style = {};
|
|
426
426
|
const name = transitions?.[region];
|
|
427
427
|
if (name) style.viewTransitionName = name;
|
|
428
|
+
else if (transitions && region === "body") style.isolation = "isolate";
|
|
428
429
|
const layer = layers?.[region];
|
|
429
430
|
if (sticky) {
|
|
430
431
|
Object.assign(style, stickyStyle(sticky.top, layer));
|