pagiera 0.2.0-alpha.56 → 0.2.0-alpha.57
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/full-editor.js +7 -4
- package/dist/full-editor.js.map +2 -2
- package/dist/internal/app/p/editor/editor.d.ts.map +1 -1
- package/dist/internal/app/p/editor/editor.js +18 -4
- package/dist/internal/app/p/editor/editor.js.map +1 -1
- package/dist/internal/lib/editor/style.d.ts.map +1 -1
- package/dist/internal/lib/editor/style.js +6 -0
- package/dist/internal/lib/editor/style.js.map +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
package/dist/full-editor.js
CHANGED
|
@@ -4562,6 +4562,7 @@ function resolveStyle(element, breakpoint, cascade = DEFAULT_CASCADE) {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
if (element.childrenSlot) style = { ...style, widthMode: "fill", heightMode: "fill" };
|
|
4564
4564
|
if (element.interactive?.kind === "marquee") style = { ...style, layout: "stack", direction: "row", overflow: "hidden" };
|
|
4565
|
+
if (element.hover?.hidden === false && !style.hidden) style = { ...style, hidden: true };
|
|
4565
4566
|
return style;
|
|
4566
4567
|
}
|
|
4567
4568
|
function hasOverride(element, breakpoint, key2, cascade = DEFAULT_CASCADE) {
|
|
@@ -20729,10 +20730,11 @@ function Editor({
|
|
|
20729
20730
|
const resolvedStyle = styleFor(el, frame.bp);
|
|
20730
20731
|
const isActiveFrame = frame.bp === breakpoint;
|
|
20731
20732
|
const previewVisible = previewVisibility[el.id];
|
|
20732
|
-
const hovering = isActiveFrame && hoveredEffectIds.has(el.id) ? el.hover : void 0;
|
|
20733
|
+
const hovering = isActiveFrame && hoveredEffectIds.has(`${keyPrefix}${el.id}`) ? el.hover : void 0;
|
|
20734
|
+
const firstDrawing = keyPrefix === "" || /^[^:]*:(0:)*$/.test(keyPrefix);
|
|
20733
20735
|
const pressing = isActiveFrame && pressedEffectId === el.id ? el.press : void 0;
|
|
20734
20736
|
const style = previewVisible !== void 0 || hovering || pressing ? { ...resolvedStyle, ...previewVisible !== void 0 ? { hidden: !previewVisible } : void 0, ...hovering, ...pressing } : resolvedStyle;
|
|
20735
|
-
if (style.hidden && !(el.hover?.hidden === false && selectionPathIds.has(el.id))) return null;
|
|
20737
|
+
if (style.hidden && !(el.hover?.hidden === false && firstDrawing && selectionPathIds.has(el.id))) return null;
|
|
20736
20738
|
if (style.position === "fixed" && style.pinAfter > 0 && !componentMode && !selectionPathIds.has(el.id)) return null;
|
|
20737
20739
|
const children = childrenIn(el.id);
|
|
20738
20740
|
const componentInstance = componentInstanceFor(raw);
|
|
@@ -20805,9 +20807,10 @@ function Editor({
|
|
|
20805
20807
|
el.type === "Request" ? canvasData[el.sourceId ?? ""]?.[0] : row3,
|
|
20806
20808
|
keyPrefix
|
|
20807
20809
|
));
|
|
20810
|
+
const childPrefixes = el.type === "Repeat" ? rowsFor(el, canvasData, true).map((_row, index) => `${keyPrefix}${index}:`) : [keyPrefix];
|
|
20808
20811
|
const hoverEffectIds = [
|
|
20809
|
-
...el.hover && el.hoverTrigger !== "parent" ? [el.id] : [],
|
|
20810
|
-
...children.filter((child) => child.hover && child.hoverTrigger === "parent").
|
|
20812
|
+
...el.hover && el.hoverTrigger !== "parent" ? [`${keyPrefix}${el.id}`] : [],
|
|
20813
|
+
...children.filter((child) => child.hover && child.hoverTrigger === "parent").flatMap((child) => childPrefixes.map((prefix) => `${prefix}${child.id}`))
|
|
20811
20814
|
];
|
|
20812
20815
|
return (
|
|
20813
20816
|
// A canvas node is manipulated by pointer; the Layers panel is its keyboard equivalent.
|