@vectoriox/iox-builder 1.4.8 → 1.4.9

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.4.8",
3
+ "version": "1.4.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -726,6 +726,8 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
726
726
  get globalElementsAfter(): ComponentNode[];
727
727
  /** Canvas width in CSS pixels (driven by ViewportService). */
728
728
  get viewportWidth(): number;
729
+ /** Canvas viewport height in CSS pixels (driven by ViewportService). */
730
+ get viewportHeight(): number;
729
731
  /** Visual (scaled) canvas width — used to size the scroll container so the
730
732
  * scrollbar aligns with the right edge of the canvas, not the CMS shell. */
731
733
  get viewportScaledWidth(): number;
@@ -739,10 +741,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
739
741
  * not unscaled CSS px — correct at any zoom level.
740
742
  */
741
743
  get scaledContentHeight(): number;
742
- /**
743
- * The canvas min-height simulates a real browser viewport.
744
- * We subtract the builder header (~49px) and some padding from window.innerHeight.
745
- */
744
+ /** The canvas starts at the simulated viewport height, just like a real empty browser page. */
746
745
  get canvasMinHeight(): number;
747
746
  private sub?;
748
747
  private registrySub?;
@@ -751,6 +750,13 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
751
750
  ngOnChanges(changes: SimpleChanges): void;
752
751
  ngAfterViewInit(): void;
753
752
  ngOnDestroy(): void;
753
+ /**
754
+ * Set --preview-vh on .preview-scroll so that vh values rewritten by
755
+ * StyleRegistryService resolve to the SIMULATED viewport height, not the
756
+ * real browser viewport. e.g. desktop (900px): --preview-vh = 9px → 100vh = 900px.
757
+ * Falls back to 1vh in production where --preview-vh is never defined.
758
+ */
759
+ private updatePreviewVh;
754
760
  private initLenis;
755
761
  private destroyLenis;
756
762
  addComponent(name: string): void;