@uniweb/runtime 1.3.14 → 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 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
- const NS = "uw-";
405
- const toIdent = (name) => NS + String(name).replace(/[^a-zA-Z0-9_-]/g, "-");
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(areaNames, layoutMeta?.transitions) : null;
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) => {