@vectoriox/iox-builder 1.4.26 → 1.4.28

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.26",
3
+ "version": "1.4.28",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -802,10 +802,14 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
802
802
  ngAfterViewInit(): void;
803
803
  ngOnDestroy(): void;
804
804
  /**
805
- * Set --preview-vh on .preview-scroll so that 100vh fills the visible canvas
806
- * frame at the current scale. Value = canvas frame height ÷ scale ÷ 100, so
807
- * calc(100 * var(--preview-vh)) equals the frame height in canvas-space pixels.
808
- * Falls back to 1vh in the live page (no --preview-vh defined there).
805
+ * Set --preview-vh / --preview-vw on .preview-scroll so that viewport-relative
806
+ * units (vh, vw) inside the canvas resolve to the simulated canvas dimensions
807
+ * rather than the real browser viewport.
808
+ *
809
+ * --preview-vh = canvas frame height (unscaled) / 100
810
+ * --preview-vw = canvas width from viewport state / 100
811
+ *
812
+ * Both fall back to their native unit in production (no variables defined).
809
813
  */
810
814
  private updatePreviewVh;
811
815
  private initLenis;
@@ -916,10 +920,12 @@ declare class StyleRegistryService {
916
920
  destroy(): void;
917
921
  private compile;
918
922
  /**
919
- * Rewrite bare `vh` values to `calc(N * var(--preview-vh, 1vh))` so they
920
- * resolve to the simulated viewport height in the builder canvas.
921
- * In production (no --preview-vh defined) the fallback `1vh` preserves the
922
- * original behaviour: `calc(50 * 1vh)` == `50vh`.
923
+ * Rewrite viewport-relative units so they resolve to the simulated canvas
924
+ * dimensions rather than the real browser viewport.
925
+ *
926
+ * --preview-vh / --preview-vw are set by BuilderComponent via ResizeObserver
927
+ * and viewport-state subscription. In production (no variables defined) the
928
+ * fallbacks `1vh` / `1vw` restore the original browser behaviour.
923
929
  */
924
930
  private rewriteVh;
925
931
  private toKebabCase;
@@ -1162,6 +1168,7 @@ declare class BuilderContainerComponent implements OnInit, OnDestroy {
1162
1168
  };
1163
1169
  nodeId: string;
1164
1170
  dropListId: string;
1171
+ htmlTag: string;
1165
1172
  childClick: EventEmitter<any>;
1166
1173
  childMouseEnter: EventEmitter<any>;
1167
1174
  childMouseLeave: EventEmitter<void>;
@@ -1171,7 +1178,7 @@ declare class BuilderContainerComponent implements OnInit, OnDestroy {
1171
1178
  get listOrientation(): 'horizontal' | 'vertical';
1172
1179
  onDrop(event: IoxDropEvent): void;
1173
1180
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderContainerComponent, never>;
1174
- static ɵcmp: i0.ɵɵComponentDeclaration<BuilderContainerComponent, "app-builder-container", never, { "children": { "alias": "children"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
1181
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuilderContainerComponent, "app-builder-container", never, { "children": { "alias": "children"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; "htmlTag": { "alias": "htmlTag"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
1175
1182
  }
1176
1183
 
1177
1184
  declare class BuilderLinkedContainerComponent implements OnInit, OnDestroy {