@vectoriox/iox-builder 11.25.0 → 11.26.0
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/index.d.ts
CHANGED
|
@@ -2005,7 +2005,19 @@ declare class ViewportService {
|
|
|
2005
2005
|
private state;
|
|
2006
2006
|
private stateSubject;
|
|
2007
2007
|
state$: rxjs.Observable<ViewportState>;
|
|
2008
|
+
/**
|
|
2009
|
+
* HI1b (board header-studio, HS-1): a side-card that covers the canvas slot from the inline-end, at this screen x (its
|
|
2010
|
+
* inline-start edge) — null when nothing does. The builder fits the canvas into the room beside it, and gives the
|
|
2011
|
+
* zoom and position back when it closes. The host says where the card is; the builder measures its own slot.
|
|
2012
|
+
*/
|
|
2013
|
+
private coverSubject;
|
|
2014
|
+
cover$: rxjs.Observable<number | null>;
|
|
2008
2015
|
getState(): ViewportState;
|
|
2016
|
+
/** A card now covers the canvas from `edge` (screen x of its inline-start side), or nothing does (`null`). */
|
|
2017
|
+
coverCanvasFrom(edge: number | null): void;
|
|
2018
|
+
get canvasCoveredFrom(): number | null;
|
|
2019
|
+
/** Puts back a zoom taken before a cover — with whether the author had chosen it (`scaleIsDefault`). */
|
|
2020
|
+
giveBackScale(scale: number, explicit: boolean): void;
|
|
2009
2021
|
getScale(): number;
|
|
2010
2022
|
/** True when the current scale is this code's guess, not a zoom the author picked. */
|
|
2011
2023
|
get scaleIsDefault(): boolean;
|
|
@@ -2613,6 +2625,22 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
2613
2625
|
* fit was clipping both edges of the page by 20px.
|
|
2614
2626
|
*/
|
|
2615
2627
|
private autoFitViewport;
|
|
2628
|
+
/**
|
|
2629
|
+
* HI1b (HS-1): the width a covering side-card takes from the canvas column, in screen px — the column's inline-end
|
|
2630
|
+
* margin, so the canvas, its two strips and the overlays re-centre in the room left beside the card. (A pan moved only
|
|
2631
|
+
* the page, under `.preview-scroll`'s centred clip: the page's start was cut off.)
|
|
2632
|
+
*/
|
|
2633
|
+
coverInset: number;
|
|
2634
|
+
/** How much of the canvas column a side-card covers at its inline-end, measured from the column's whole box. */
|
|
2635
|
+
private coveredWidth;
|
|
2636
|
+
/** The zoom and position the canvas had before a card covered it — given back when it closes. */
|
|
2637
|
+
private uncovered;
|
|
2638
|
+
/**
|
|
2639
|
+
* HI1b (HS-1): a side-card covers the canvas (the Header studio) — the column gives the card its width and the canvas
|
|
2640
|
+
* fits the room beside it, so the header's end (its pages, its button, its menu button) stays in view; the card
|
|
2641
|
+
* closes — the column's width, the author's zoom and position return.
|
|
2642
|
+
*/
|
|
2643
|
+
private onCanvasCover;
|
|
2616
2644
|
selectPanel(panel: string): void;
|
|
2617
2645
|
/** A new element was selected: keep the element panel that is open, else open Styles (`panelForSelection`). */
|
|
2618
2646
|
private selectPanelForElement;
|
|
@@ -4561,7 +4589,8 @@ interface CompositePresetDef {
|
|
|
4561
4589
|
name: string;
|
|
4562
4590
|
icon: string;
|
|
4563
4591
|
description: string;
|
|
4564
|
-
|
|
4592
|
+
/** `lang`: the site's language — the shop and account parts are stamped in it (vectoriox/iox-ui#100). */
|
|
4593
|
+
build: (create: CompositeNodeFactory, lang?: string | null) => CompositeNode;
|
|
4565
4594
|
}
|
|
4566
4595
|
declare const COMPOSITE_PRESETS: readonly CompositePresetDef[];
|
|
4567
4596
|
/**
|
|
@@ -4571,7 +4600,7 @@ declare const COMPOSITE_PRESETS: readonly CompositePresetDef[];
|
|
|
4571
4600
|
*/
|
|
4572
4601
|
declare function builderCompositeFactory(createConfig: (type: string) => ComponentNode | null, baselineStyles: (type: string) => Readonly<Record<string, unknown>>): CompositeNodeFactory;
|
|
4573
4602
|
/** A fresh content block for the palette (click or drag). */
|
|
4574
|
-
declare function buildCompositePreset(def: CompositePresetDef, createConfig: (type: string) => ComponentNode | null, baselineStyles: (type: string) => Readonly<Record<string, unknown
|
|
4603
|
+
declare function buildCompositePreset(def: CompositePresetDef, createConfig: (type: string) => ComponentNode | null, baselineStyles: (type: string) => Readonly<Record<string, unknown>>, lang?: string | null): ComponentNode;
|
|
4575
4604
|
|
|
4576
4605
|
/**
|
|
4577
4606
|
* THE CONSENT PRESET (consent plan C3; award-ingredients-plan AW1) — the palette's "Consent banner": three GLOBAL roots
|
|
@@ -4656,6 +4685,8 @@ interface BusinessSpecimenOptions {
|
|
|
4656
4685
|
view?: BusinessSpecimenView;
|
|
4657
4686
|
/** How animated (`DesignChoices.animate`): the entrances each block carries, as the composer stamps them. */
|
|
4658
4687
|
animate?: string | null;
|
|
4688
|
+
/** Headings arrive (`DesignChoices.headings`, AW3): the look's move for headings, as the composer stamps it. */
|
|
4689
|
+
headings?: string | null;
|
|
4659
4690
|
/** A right-to-left business: side-by-side pictures slide in from their own side. */
|
|
4660
4691
|
rtl?: boolean;
|
|
4661
4692
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectoriox/iox-builder",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.26.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=20.0.0",
|
|
6
6
|
"@angular/core": ">=20.0.0",
|
|
7
7
|
"@angular/animations": ">=20.0.0",
|
|
8
8
|
"@angular/cdk": ">=20.0.0",
|
|
9
|
-
"@vectoriox/iox-ui": "^5.
|
|
9
|
+
"@vectoriox/iox-ui": "^5.134.0",
|
|
10
10
|
"interactjs": "^1.10.27",
|
|
11
11
|
"primeng": ">=20.0.0",
|
|
12
12
|
"swiper": ">=12.0.0",
|