@vectoriox/iox-builder 1.4.8 → 1.4.10

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.10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -726,6 +726,14 @@ 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;
731
+ /** Visual (scaled) canvas height — used to cap .preview-scroll so the canvas
732
+ * frame shows exactly one device viewport, matching 100vh = device.height exactly. */
733
+ get viewportScaledHeight(): number;
734
+ /** CSS height for .preview-scroll: the lesser of the scaled viewport height
735
+ * and the available canvas area. Keeps the canvas frame viewport-sized. */
736
+ get previewScrollHeight(): string;
729
737
  /** Visual (scaled) canvas width — used to size the scroll container so the
730
738
  * scrollbar aligns with the right edge of the canvas, not the CMS shell. */
731
739
  get viewportScaledWidth(): number;
@@ -739,10 +747,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
739
747
  * not unscaled CSS px — correct at any zoom level.
740
748
  */
741
749
  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
- */
750
+ /** The canvas starts at the simulated viewport height, just like a real empty browser page. */
746
751
  get canvasMinHeight(): number;
747
752
  private sub?;
748
753
  private registrySub?;
@@ -751,6 +756,13 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
751
756
  ngOnChanges(changes: SimpleChanges): void;
752
757
  ngAfterViewInit(): void;
753
758
  ngOnDestroy(): void;
759
+ /**
760
+ * Set --preview-vh on .preview-scroll so that vh values rewritten by
761
+ * StyleRegistryService resolve to the SIMULATED viewport height, not the
762
+ * real browser viewport. e.g. desktop (900px): --preview-vh = 9px → 100vh = 900px.
763
+ * Falls back to 1vh in production where --preview-vh is never defined.
764
+ */
765
+ private updatePreviewVh;
754
766
  private initLenis;
755
767
  private destroyLenis;
756
768
  addComponent(name: string): void;