@vectoriox/iox-builder 1.7.5 → 1.7.6

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.6",
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;