@vectoriox/iox-builder 4.8.0 → 4.9.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
|
@@ -1440,7 +1440,11 @@ declare enum AuditCode {
|
|
|
1440
1440
|
FixedWidth = "fixed-width",
|
|
1441
1441
|
TapTarget = "tap-target",
|
|
1442
1442
|
TinyText = "tiny-text",
|
|
1443
|
-
UnboundedImage = "unbounded-image"
|
|
1443
|
+
UnboundedImage = "unbounded-image",
|
|
1444
|
+
/** A slider showing more slides than the width can carry — each one unreadably narrow. */
|
|
1445
|
+
SlidesOverflow = "slides-overflow",
|
|
1446
|
+
/** An out-of-flow node whose box lands outside the frame, so it is unreachable at this width. */
|
|
1447
|
+
OffscreenAbsolute = "offscreen-absolute"
|
|
1444
1448
|
}
|
|
1445
1449
|
declare enum AuditSeverity {
|
|
1446
1450
|
Error = "error",
|
|
@@ -1454,9 +1458,15 @@ interface AuditNode {
|
|
|
1454
1458
|
label?: string;
|
|
1455
1459
|
/** Styles RESOLVED at this breakpoint (base + every wider layer + this one). */
|
|
1456
1460
|
styleProps: StyleMap;
|
|
1461
|
+
/** Component TRAITS resolved at this breakpoint — the per-width values a media query cannot
|
|
1462
|
+
* express (a slider's `slidesPerView`). Absent for nodes with no traits worth auditing. */
|
|
1463
|
+
inputs?: Record<string, any>;
|
|
1457
1464
|
/** Laid-out size in CSS px at this width. */
|
|
1458
1465
|
width: number;
|
|
1459
1466
|
height: number;
|
|
1467
|
+
/** Laid-out position in CSS px, relative to the canvas frame. Absent when not measured. */
|
|
1468
|
+
left?: number;
|
|
1469
|
+
top?: number;
|
|
1460
1470
|
}
|
|
1461
1471
|
interface AuditFinding {
|
|
1462
1472
|
nodeId: string;
|
|
@@ -1467,6 +1477,9 @@ interface AuditFinding {
|
|
|
1467
1477
|
message: string;
|
|
1468
1478
|
/** Props to write into this breakpoint's layer to repair it; absent when no safe auto-fix. */
|
|
1469
1479
|
fix?: StyleMap;
|
|
1480
|
+
/** TRAIT values to write into this breakpoint's layer — some failures are not fixable with CSS.
|
|
1481
|
+
* Applied through `setInputOverride`, the trait twin of `setOverride`. */
|
|
1482
|
+
inputFix?: Record<string, any>;
|
|
1470
1483
|
}
|
|
1471
1484
|
/**
|
|
1472
1485
|
* Audit nodes laid out at `viewportWidth`. Returns findings ordered by severity (errors first),
|
|
@@ -1648,6 +1661,8 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
1648
1661
|
* `utils/responsive-audit.util.ts`.
|
|
1649
1662
|
*/
|
|
1650
1663
|
runAudit(): void;
|
|
1664
|
+
/** The node's OWN trait values — the Base layer the responsive `inputs` cascade sits on top of. */
|
|
1665
|
+
private baseInputMapOf;
|
|
1651
1666
|
/** Apply one finding's fix into the current breakpoint's layer (or the base styles at Base). */
|
|
1652
1667
|
applyAuditFix(finding: AuditFinding): void;
|
|
1653
1668
|
/** Apply every fixable finding, then re-measure. */
|