@vectoriox/iox-builder 1.7.5 → 1.7.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-builder",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -538,9 +538,12 @@ declare class OverlayService {
538
538
  setIntersectionRoot(el: HTMLElement | null): void;
539
539
  getIntersectionRoot(): HTMLElement | null;
540
540
  /**
541
- * Resolve the inner styled element.
542
- * Builder components apply [ngStyle] on their first child element,
543
- * so computed styles (padding, margin) live there — not on the host.
541
+ * Resolve the styled element (the one carrying `.iox-node-{id}` — where padding/margin/size live).
542
+ * Directive-host components (Image/Heading/Container/Section/…) put `iox-node-{id}` on the HOST
543
+ * itself, so the host IS the styled element. Legacy wrapper components (Card/Repeater/Slider) put
544
+ * it on the first child. Prefer the host when it's the styled element; fall back to the first
545
+ * child otherwise. (Before this, directive-host containers outlined their first child — e.g. a
546
+ * container's outline landed on the image inside it, desyncing from Moveable's resize handles.)
544
547
  */
545
548
  getStyledElement(host: HTMLElement): HTMLElement;
546
549
  registerNode(node: ComponentNode, element: HTMLElement, componentRef: ComponentRef<any>): void;
@@ -846,6 +849,9 @@ declare class MoveableCanvasService {
846
849
  select(element: HTMLElement | null, node: ComponentNode | null): void;
847
850
  /** Recompute the control-box position (call on scroll/zoom/layout changes). */
848
851
  refresh(): void;
852
+ /** Snap guideline elements for `target`: every node host except itself, its ancestors, and its
853
+ * own descendants — i.e. siblings/cousins to align edges/centers against. */
854
+ private guidelines;
849
855
  destroy(): void;
850
856
  private ensureMoveable;
851
857
  private destroyMoveable;