@vectoriox/iox-ui 5.90.0 → 5.90.2

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.
@@ -28,6 +28,7 @@ declare const SPEC_SITE_PLAN_SHAPE: {
28
28
  readonly layoutPage: {
29
29
  readonly dial: "'distinct' | 'daring' — how far the page breaks the usual layout (site.layout.vocab.dials; follows How animated, never the model's)";
30
30
  readonly sections: "layoutSection[] — the page in the layout language (site.layout): 4–8 sections of layers on a 12-column grid, checked by generation-core checkLayout, stamped by composeLayout";
31
+ readonly "givenAway?": "{ at, section }[] — the model's sections silent section fallback gave away (replaced by a ready-made section or dropped), at their places in the model's page; the page's minimums forgive what they carried (iox-ui#67). Set by the server, never by a model";
31
32
  };
32
33
  readonly film: {
33
34
  readonly sequence: "object — a media-core FrameSequence: where the numbered pictures live, how many, their size";
@@ -422,6 +423,7 @@ declare const SPEC_SITE_PATTERNS: {
422
423
  readonly prop: "opacity";
423
424
  readonly keys: readonly [readonly [0.5, 0], readonly [0.65, 1]];
424
425
  }];
426
+ readonly textHe: "צרו קשר";
425
427
  }];
426
428
  }];
427
429
  }];
@@ -520,6 +522,7 @@ declare const SPEC_SITE_PATTERNS: {
520
522
  readonly prop: "opacity";
521
523
  readonly keys: readonly [readonly [0.35, 0], readonly [0.5, 1]];
522
524
  }];
525
+ readonly textHe: "צרו קשר";
523
526
  }];
524
527
  }];
525
528
  }];
@@ -836,6 +839,7 @@ declare const SPEC_SITE_PATTERNS: {
836
839
  readonly max: 24;
837
840
  readonly text: "Get in touch";
838
841
  readonly role: "nav.cta";
842
+ readonly textHe: "צרו קשר";
839
843
  }];
840
844
  }];
841
845
  };
@@ -907,6 +911,7 @@ declare const SPEC_SITE_PATTERNS: {
907
911
  readonly max: 24;
908
912
  readonly text: "Get in touch";
909
913
  readonly role: "nav.cta";
914
+ readonly textHe: "צרו קשר";
910
915
  }];
911
916
  }];
912
917
  };
@@ -971,6 +976,7 @@ declare const SPEC_SITE_PATTERNS: {
971
976
  readonly slot: "pagesLabel";
972
977
  readonly max: 40;
973
978
  readonly text: "Pages";
979
+ readonly textHe: "עמודים";
974
980
  }, {
975
981
  readonly t: "Link";
976
982
  readonly es: "link";
@@ -993,6 +999,7 @@ declare const SPEC_SITE_PATTERNS: {
993
999
  readonly slot: "contactLabel";
994
1000
  readonly max: 40;
995
1001
  readonly text: "Contact";
1002
+ readonly textHe: "יצירת קשר";
996
1003
  }, {
997
1004
  readonly t: "Text";
998
1005
  readonly es: "small";
@@ -1087,6 +1094,7 @@ declare const SPEC_SITE_PATTERNS: {
1087
1094
  readonly slot: "pagesLabel";
1088
1095
  readonly max: 40;
1089
1096
  readonly text: "Pages";
1097
+ readonly textHe: "עמודים";
1090
1098
  }, {
1091
1099
  readonly t: "Link";
1092
1100
  readonly es: "link";
@@ -1109,6 +1117,7 @@ declare const SPEC_SITE_PATTERNS: {
1109
1117
  readonly slot: "visitLabel";
1110
1118
  readonly max: 40;
1111
1119
  readonly text: "Visit";
1120
+ readonly textHe: "ביקור";
1112
1121
  }, {
1113
1122
  readonly t: "Text";
1114
1123
  readonly es: "small";
@@ -1133,6 +1142,7 @@ declare const SPEC_SITE_PATTERNS: {
1133
1142
  readonly slot: "contactLabel";
1134
1143
  readonly max: 40;
1135
1144
  readonly text: "Contact";
1145
+ readonly textHe: "יצירת קשר";
1136
1146
  }, {
1137
1147
  readonly t: "Text";
1138
1148
  readonly es: "small";
@@ -1291,6 +1301,7 @@ declare const SPEC_SITE_PATTERNS: {
1291
1301
  readonly slot: "secondary";
1292
1302
  readonly max: 24;
1293
1303
  readonly text: "Get in touch";
1304
+ readonly textHe: "צרו קשר";
1294
1305
  }];
1295
1306
  }];
1296
1307
  }, {
@@ -1370,6 +1381,7 @@ declare const SPEC_SITE_PATTERNS: {
1370
1381
  readonly slot: "primary";
1371
1382
  readonly max: 24;
1372
1383
  readonly text: "Get in touch";
1384
+ readonly textHe: "צרו קשר";
1373
1385
  }, {
1374
1386
  readonly t: "ButtonBlock";
1375
1387
  readonly es: "button-secondary";
@@ -2186,6 +2198,7 @@ declare const SPEC_SITE_PATTERNS: {
2186
2198
  readonly slot: "action";
2187
2199
  readonly max: 24;
2188
2200
  readonly text: "Get in touch";
2201
+ readonly textHe: "צרו קשר";
2189
2202
  }];
2190
2203
  }];
2191
2204
  };
@@ -2836,6 +2849,7 @@ declare const SPEC_SITE_PATTERNS: {
2836
2849
  readonly max: 44;
2837
2850
  readonly text: "Get in touch";
2838
2851
  readonly enter: "heading";
2852
+ readonly textHe: "צרו קשר";
2839
2853
  }, {
2840
2854
  readonly t: "Text";
2841
2855
  readonly es: "lead";
@@ -3716,6 +3730,7 @@ declare const SPEC_SITE_PATTERNS: {
3716
3730
  readonly slot: "cta";
3717
3731
  readonly max: 24;
3718
3732
  readonly text: "Get in touch";
3733
+ readonly textHe: "צרו קשר";
3719
3734
  }];
3720
3735
  }];
3721
3736
  };
@@ -5578,6 +5593,15 @@ declare enum LayoutDial {
5578
5593
  interface LayoutPage {
5579
5594
  dial: `${LayoutDial}`;
5580
5595
  sections: LayoutSection[];
5596
+ /** Silent section fallback (iox-ui#67): the model's sections given away — replaced by a ready-made one or dropped — each
5597
+ * at its place in the model's page. The page's MINIMUMS forgive what these carried; set only by `fallBackBySection`. */
5598
+ givenAway?: LayoutGivenAway[];
5599
+ }
5600
+ /** One of the model's sections that silent section fallback gave away, kept with the page it left. */
5601
+ interface LayoutGivenAway {
5602
+ /** Its place in the model's page. */
5603
+ at: number;
5604
+ section: LayoutSection;
5581
5605
  }
5582
5606
  /** Where a layout's photo comes from (M8-G2-D10): `own:<assetId>` · `stock:<libraryKey>` · `box:<shape>`. */
5583
5607
  declare enum LayoutPhotoSource {
@@ -6169,6 +6193,8 @@ interface PatternNode {
6169
6193
  readonly slot?: string;
6170
6194
  readonly fromBusiness?: string;
6171
6195
  readonly text?: string;
6196
+ /** The pattern's own words on a Hebrew site (the contract's COPY_HE); `text` everywhere else. */
6197
+ readonly textHe?: string;
6172
6198
  readonly ph?: string;
6173
6199
  readonly bind?: string;
6174
6200
  readonly alt?: string;
@@ -6860,6 +6886,8 @@ interface NavHeaderInput {
6860
6886
  readonly business: SiteBusiness;
6861
6887
  /** Every page of the studio, in the order the navigation should list them. */
6862
6888
  readonly pages: ReadonlyArray<SitePageRef>;
6889
+ /** The site's language (`SiteLocale`): the header's own words (its call to action) in it. English when not given. */
6890
+ readonly locale?: string;
6863
6891
  }
6864
6892
  interface NavHeaderOptions {
6865
6893
  /** The header's id; its parts' ids derive from it (`<id>-0-1-…`), so a fresh id gives fresh parts. */
@@ -8782,8 +8810,11 @@ interface ComposedLayout {
8782
8810
  * colour the ground's words take; otherwise null (M8 gate 2, fix first part 3).
8783
8811
  */
8784
8812
  declare function phoneWordsColour(l: LayoutLayer, li: number, s: Pick<LayoutSection, 'layers' | 'ground'>): string | null;
8785
- /** The scheme a form on this section ground wears, or null on the page's own ground. */
8786
- declare function layoutFormScheme(ground: string | undefined): ColorScheme | null;
8813
+ /** The scheme a form, a gallery, a button or a ready-made section's content on this section ground wears, or null on the page's own ground. */
8814
+ declare function layoutBandScheme(ground: string | undefined): ColorScheme | null;
8815
+ /** The column a ready-made section's words start on: where its neighbour's words start (their first column), so the two
8816
+ * share an edge; at most READY_MADE_MAX_COLUMN; 1 (the gutter) when the neighbour has no words. */
8817
+ declare function readyMadeColumn(neighbour: LayoutSection | null): number;
8787
8818
  /**
8788
8819
  * A layout-language page → its layout and header. Deterministic: the same layout composes to byte-identical nodes.
8789
8820
  * Refuses (ComposeError) a link to a section the layout does not have; everything the product cannot say comes back in
@@ -9073,9 +9104,12 @@ declare function screenWordMisfit(l: LayoutLayer, design: DesignChoices): {
9073
9104
  * A composed page that still fails after the mends and its one repair — or after the browser's check — no longer falls
9074
9105
  * back whole: each section an issue names is given to the plan's READY-MADE section for the same place (the pattern the
9075
9106
  * whole-page fallback would have stamped there, worn in the same look), or dropped where none fits and the page keeps its
9076
- * opening and its close. Then the page is judged again, once, exactly like any composed page. Only a page that still
9077
- * fails — an issue that names no section, a place with nothing to give it, a swap that breaks a section kept or a count
9078
- * of the page — falls back whole: the last resort, counted. A swap never leads to another swap. The owner sees a composed page; the swaps are recorded for us, the model's sections kept.
9107
+ * opening and its close. Then the page is judged again, once, exactly like any composed page — its MINIMUMS on the model's
9108
+ * own remaining sections (the given-away ones ride on `page.givenAway`; iox-ui#67, Doron 2026-11-09), its maximums on the
9109
+ * whole page. A ready-made section that would say again what a section the model kept already says (its title, its text —
9110
+ * iox-ui#68) is never given a place: a page that repeats a paragraph is worse than the last resort. Only a page that still
9111
+ * fails — an issue that names no section, a place with nothing to give it, a swap that
9112
+ * breaks a section kept or a maximum of the page — falls back whole: the last resort, counted. A swap never leads to another swap. The owner sees a composed page; the swaps are recorded for us, the model's sections kept.
9079
9113
  * Pure: the service and `ai:replay` run this one function.
9080
9114
  */
9081
9115
  /** What became of one place of the model's page. */
@@ -9093,7 +9127,7 @@ declare enum SectionSwapRule {
9093
9127
  Close = "close",
9094
9128
  /** A middle section: the ready-made section that shows the same list, holds the form, or says most of its words. */
9095
9129
  Fit = "fit",
9096
- /** A middle section no ready-made section fits: dropped. */
9130
+ /** A middle section no ready-made section fits (or every one that does would repeat a kept section, iox-ui#68): dropped. */
9097
9131
  NoFit = "no-fit"
9098
9132
  }
9099
9133
  /** One place swapped, kept for us on the composed record — never shown to the owner. */
@@ -9118,7 +9152,8 @@ interface SectionSwap {
9118
9152
  declare enum SectionFallbackLastResort {
9119
9153
  /** Nothing left names a section (a count, a share, the order of sections), or after the swaps only such an issue is. */
9120
9154
  PageWide = "page-wide",
9121
- /** The place named is the opening or the close, and the plan has no ready-made section left for it. */
9155
+ /** The place named is the opening or the close, and the plan has no ready-made section left for it — or only one that
9156
+ * would repeat what a kept section says (iox-ui#68). */
9122
9157
  NoReadyMade = "no-ready-made",
9123
9158
  /** It names a section already given to a ready-made one. */
9124
9159
  ReadyMadeNamed = "ready-made-named",
@@ -9268,7 +9303,15 @@ declare const LAYOUT_CHECK_VIEWPORT: {
9268
9303
  declare function splitSide(s: LayoutSection): 'start' | 'end' | null;
9269
9304
  /** Every photo id a page names: photo layers, gallery slides, photo grounds. */
9270
9305
  declare function layoutPhotoIds(page: LayoutPage): string[];
9271
- /** Every rule a composed page keeps, each refused with a path. Empty means it passes. */
9306
+ /**
9307
+ * Every rule a composed page keeps, each refused with a path. Empty means it passes.
9308
+ *
9309
+ * A page silent section fallback gave sections away (`page.givenAway`, iox-ui#67 — Doron, 2026-11-09): its MINIMUMS — the
9310
+ * one signature and the inhale before it, the glide floor, galleries, the daring minimums, the number of sections — are
9311
+ * judged on the model's own remaining sections, so what a removed section carried no longer fails the page. Its
9312
+ * MAXIMUMS are judged on the whole page, ready-made places included (a ready-made section that enters counts toward the
9313
+ * entrances), and reading, contrast and sameness are untouched.
9314
+ */
9272
9315
  declare function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIssue[];
9273
9316
  /**
9274
9317
  * M8-G2-D12 — what a look switch costs a composed page: the issues the check finds in the new look (`ctx`) at a place
@@ -9395,5 +9438,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
9395
9438
  /** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
9396
9439
  declare function layoutRepairJsonSchema(): JsonSchema;
9397
9440
 
9398
- export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutElementStyle, layoutFormScheme, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutTextWidthEm, layoutToWire, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, shownTogether, signatureOf, siteNavPages, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
9399
- export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
9441
+ export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutTextWidthEm, layoutToWire, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, shownTogether, signatureOf, siteNavPages, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
9442
+ export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.90.0",
3
+ "version": "5.90.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -3397,6 +3397,33 @@ export const SPEC_SCHEMES = {
3397
3397
  "warning": "{{accent-ink}}",
3398
3398
  "warning-bg": "{{accent-hover}}"
3399
3399
  }
3400
+ },
3401
+ "muted": {
3402
+ "label": "Muted",
3403
+ "set": {
3404
+ "section-bg": "{{text-muted}}",
3405
+ "bg": "{{text-muted}}",
3406
+ "nav-bg": "{{text-muted}}",
3407
+ "surface": "{{text-muted}}",
3408
+ "surface-2": "{{text-muted}}",
3409
+ "surface-glass": "{{text-muted}}",
3410
+ "surface-glass-strong": "{{text-muted}}",
3411
+ "text": "{{bg}}",
3412
+ "text-muted": "{{bg}}",
3413
+ "line": "color-mix(in srgb, {{bg}} 28%, transparent)",
3414
+ "line-strong": "{{bg}}",
3415
+ "glass-border": "color-mix(in srgb, {{bg}} 28%, transparent)",
3416
+ "accent": "{{bg}}",
3417
+ "accent-ink": "{{text-muted}}",
3418
+ "accent-text": "{{bg}}",
3419
+ "accent-hover": "{{bg}}",
3420
+ "danger": "{{bg}}",
3421
+ "danger-bg": "{{text-muted}}",
3422
+ "success": "{{bg}}",
3423
+ "success-bg": "{{text-muted}}",
3424
+ "warning": "{{bg}}",
3425
+ "warning-bg": "{{text-muted}}"
3426
+ }
3400
3427
  }
3401
3428
  } as const;
3402
3429
 
@@ -3708,6 +3735,7 @@ export const SPEC_ELEMENT_STYLES = [
3708
3735
  "Link"
3709
3736
  ],
3710
3737
  "base": {
3738
+ "fontFamily": "var(--iox-font-body)",
3711
3739
  "color": "var(--iox-link-color)",
3712
3740
  "textDecoration": "var(--iox-link-decoration)",
3713
3741
  "transitionDuration": "var(--iox-dur-fast)",
@@ -23,6 +23,8 @@ export enum ColorScheme {
23
23
  Subtle = 'subtle',
24
24
  Inverse = 'inverse',
25
25
  Accent = 'accent',
26
+ /** A band painted the page's muted ink (iox-ui#70). */
27
+ Muted = 'muted',
26
28
  }
27
29
 
28
30
  /** The content trait (stored in `props`, not a style prop) that picks a node's scheme. */
@@ -31,7 +33,7 @@ export const COLOR_SCHEME_TRAIT = 'colorScheme';
31
33
  /** The node types that offer a scheme (spec §3c: Section/Container; LinkedContainer is a Container that links). */
32
34
  export const COLOR_SCHEME_TYPES: ReadonlyArray<string> = ['Section', 'Container', 'LinkedContainer'];
33
35
 
34
- /** Every scheme in contract order, with the contract's label (Default · Subtle · Inverse · Brand). */
36
+ /** Every scheme in contract order, with the contract's label (Default · Subtle · Inverse · Brand · Muted). */
35
37
  export const COLOR_SCHEMES: ReadonlyArray<{ readonly id: ColorScheme; readonly label: string }> =
36
38
  (Object.keys(SPEC_SCHEMES) as ColorScheme[]).map(id => ({ id, label: (SPEC_SCHEMES as Record<string, { label: string }>)[id].label }));
37
39
 
@@ -3,13 +3,14 @@ import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
3
3
 
4
4
  import {
5
5
  LAYOUT_HIDDEN_OPACITY, LAYOUT_OPERATED, LAYOUT_TEXT_KINDS, LayoutBandMove, LayoutColour, LayoutDepth, LayoutDial, LayoutEnter, LayoutGalleryList, LayoutIssue, LayoutIssueCode, LayoutLayer, LayoutLayerKind, LayoutMend, LayoutMendKind,
6
- LayoutPage, LayoutPhotoSource,
6
+ LayoutGivenAway, LayoutPage, LayoutPhotoSource,
7
7
  LayoutRole, LayoutSection, LayoutSectionKind, LayoutSourceChoice, LayoutTrackProp, parseLayoutPhotoId,
8
8
  } from './layout-language';
9
9
  import { DriftBox, driftOverlap, layoutGlideDepth } from './layout-drift';
10
10
  import { layoutLookOf } from './layout-look';
11
11
  import { patternById } from './patterns';
12
12
  import { layoutDesignOf, screenWordMisfit } from './layout-type';
13
+ import { sectionEntrances } from './entrances';
13
14
  import { calmParts, calmUnder, FrameRegion, PhotoInventory, PHOTO_LIGHT_LUMINANCE } from './photo-inventory';
14
15
  import { SerializedNode, walkSerialized } from './serialized-node';
15
16
  import { SPEC_SITE_FACTS, SPEC_SITE_LAYOUT } from './site-spec.generated';
@@ -143,6 +144,8 @@ const FACT_TOKEN = /\{fact:([^}]*)\}/g;
143
144
  const PHOTO_GROUND = 'photo:';
144
145
  /** An accent ground counts as this many accent uses (a band of colour weighs more than a word). */
145
146
  const ACCENT_GROUND_USES = 2;
147
+ /** The entrance type that only fades (`entrances` levels): it does not count as a section entering. */
148
+ const FADE_ENTRANCE = 'fadeIn';
146
149
 
147
150
  const inList = (list: ReadonlyArray<string>, v: unknown): boolean => typeof v === 'string' && list.includes(v);
148
151
  const wordsOf = (t: string | undefined) => String(t ?? '').trim().split(/\s+/).filter(Boolean).length;
@@ -241,15 +244,52 @@ function wordsOfLayer(l: LayoutLayer): string[] {
241
244
  ].filter(Boolean);
242
245
  }
243
246
 
244
- /** Every rule a composed page keeps, each refused with a path. Empty means it passes. */
247
+ /** What a page's own sections hold toward its minimums — counted by the check's one walk. */
248
+ interface LayoutTally {
249
+ signatures: number;
250
+ galleries: number;
251
+ swappable: number;
252
+ layered: number;
253
+ bleeds: number;
254
+ screenWords: number;
255
+ wordsOnPhoto: number;
256
+ holds: number;
257
+ }
258
+
259
+ const NOTHING_CARRIED: LayoutTally = { signatures: 0, galleries: 0, swappable: 0, layered: 0, bleeds: 0, screenWords: 0, wordsOnPhoto: 0, holds: 0 };
260
+
261
+ /** The model's page in its own order: the sections as they stand, the dropped ones back at their places. */
262
+ function originalOrder(sections: ReadonlyArray<LayoutSection>, given: ReadonlyArray<LayoutGivenAway>): LayoutSection[] {
263
+ const kept = new Set(sections.map(s => s.id));
264
+ const dropped = given.filter(g => !kept.has(g.section.id)).sort((a, b) => a.at - b.at);
265
+ const order = [...sections];
266
+ for (const g of dropped) order.splice(Math.min(g.at, order.length), 0, g.section);
267
+ return order;
268
+ }
269
+
270
+ /**
271
+ * Every rule a composed page keeps, each refused with a path. Empty means it passes.
272
+ *
273
+ * A page silent section fallback gave sections away (`page.givenAway`, iox-ui#67 — Doron, 2026-11-09): its MINIMUMS — the
274
+ * one signature and the inhale before it, the glide floor, galleries, the daring minimums, the number of sections — are
275
+ * judged on the model's own remaining sections, so what a removed section carried no longer fails the page. Its
276
+ * MAXIMUMS are judged on the whole page, ready-made places included (a ready-made section that enters counts toward the
277
+ * entrances), and reading, contrast and sameness are untouched.
278
+ */
245
279
  export function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIssue[] {
280
+ const given = Array.isArray(page?.givenAway) ? page.givenAway : [];
281
+ const carried = given.length ? examineLayout({ dial: page.dial, sections: given.map(g => g.section) }, ctx, NOTHING_CARRIED, []).tally : NOTHING_CARRIED;
282
+ return examineLayout(page, ctx, carried, given).issues;
283
+ }
284
+
285
+ function examineLayout(page: LayoutPage, ctx: CheckLayoutContext, carried: LayoutTally, given: ReadonlyArray<LayoutGivenAway>): { issues: LayoutIssue[]; tally: LayoutTally } {
246
286
  const issues: LayoutIssue[] = [];
247
287
  const add = (code: LayoutIssueCode, path: string, message: string, mend?: LayoutMend): void => {
248
288
  issues.push({ code, path, message, ...(mend ? { mend } : {}) });
249
289
  };
250
290
  if (!page || !Array.isArray(page.sections)) {
251
291
  add(LayoutIssueCode.Shape, 'sections', 'the page has no sections');
252
- return issues;
292
+ return { issues, tally: NOTHING_CARRIED };
253
293
  }
254
294
  const look: LookNotes | null = L.presetLook[ctx.presetId as keyof typeof L.presetLook] ? layoutLookOf(ctx.presetId) : null;
255
295
  const paint = presetPaint(ctx.presetId, ctx.mode);
@@ -276,13 +316,17 @@ export function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIs
276
316
  // ── the sections ──
277
317
  const sections = page.sections;
278
318
  const [minSections, maxSections] = LIM.sections;
279
- if (sections.length < minSections || sections.length > maxSections) add(LayoutIssueCode.Structure, 'sections', `${sections.length} sections — ${minSections} to ${maxSections}`);
319
+ const dropped = given.filter(g => !sections.some(s => s.id === g.section.id)).length;
320
+ if (sections.length + dropped < minSections || sections.length > maxSections) add(LayoutIssueCode.Structure, 'sections', `${sections.length} sections — ${minSections} to ${maxSections}`);
280
321
  const ids = new Set(sections.map(s => s.id));
281
322
  if (ids.size !== sections.length) add(LayoutIssueCode.Structure, 'sections', 'every section id is different');
282
323
  const signatures = sections.map((s, i) => (s.signature ? i : -1)).filter(i => i >= 0);
283
- if (signatures.length !== 1) add(LayoutIssueCode.Structure, 'sections', `${signatures.length} signature sections — exactly one`);
324
+ if (signatures.length > 1 || (!signatures.length && !carried.signatures)) add(LayoutIssueCode.Structure, 'sections', `${signatures.length} signature sections — exactly one`);
284
325
  if (daring && signatures.length === 1 && sections[signatures[0] - 1]?.kind !== LayoutSectionKind.Inhale) {
285
- add(LayoutIssueCode.Daring, `sections[${signatures[0]}]`, 'on daring the section right before the signature is an inhale');
326
+ const order = originalOrder(sections, given);
327
+ const before = order[order.indexOf(sections[signatures[0]]) - 1];
328
+ const givenInhale = !!before && given.some(g => g.section.id === before.id && g.section.kind === LayoutSectionKind.Inhale);
329
+ if (!givenInhale) add(LayoutIssueCode.Daring, `sections[${signatures[0]}]`, 'on daring the section right before the signature is an inhale');
286
330
  }
287
331
  const formSections = new Set(sections.filter(s => s.layers?.some(l => l.kind === LayoutLayerKind.Form)).map(s => s.id));
288
332
 
@@ -312,6 +356,7 @@ export function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIs
312
356
  // reach the business when its pattern is a call to act or a contact.
313
357
  const composedCount = sections.filter(s => !s.readyMade).length;
314
358
  if (sections.some(s => s.readyMade && READY_MADE_REACH.has(patternById(s.readyMade.pattern)?.family ?? ''))) reachable = true;
359
+ const readyMadeEntering = sections.filter(s => s.readyMade && readyMadeEnters(s.readyMade.pattern, ctx.design?.animate)).length;
315
360
  sections.forEach((s, i) => {
316
361
  if (s.readyMade) return;
317
362
  const at = `sections[${i}]`;
@@ -634,10 +679,10 @@ export function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIs
634
679
  }
635
680
  });
636
681
  if (ctx.first && !reachable) add(LayoutIssueCode.Content, 'sections', 'nothing lets people reach the business — a form, or a button to one');
637
- if (galleries < LIM.galleriesMin) add(LayoutIssueCode.Structure, 'sections', `${galleries} galleries — at least ${LIM.galleriesMin}`);
638
- if (LIM.galleriesMin > 0 && galleries && !swappable) add(LayoutIssueCode.Structure, 'sections', 'no gallery can be dragged or swiped — at least one without "scroll"');
682
+ if (galleries < LIM.galleriesMin - carried.galleries) add(LayoutIssueCode.Structure, 'sections', `${galleries} galleries — at least ${LIM.galleriesMin}`);
683
+ if (LIM.galleriesMin > 0 && galleries && !swappable && !carried.swappable) add(LayoutIssueCode.Structure, 'sections', 'no gallery can be dragged or swiped — at least one without "scroll"');
639
684
  if (marquees > LIM.marquees) add(LayoutIssueCode.Structure, 'sections', `${marquees} marquees — at most ${LIM.marquees}`);
640
- const minDepth = look && inList(LIM.calmLooks, look.id) ? LIM.depthLayersCalm : LIM.depthLayers;
685
+ const minDepth = Math.max(0, (look && inList(LIM.calmLooks, look.id) ? LIM.depthLayersCalm : LIM.depthLayers) - carried.layered);
641
686
  if (layered < minDepth) {
642
687
  const glide = glideChoice(sections, minDepth - layered);
643
688
  add(LayoutIssueCode.Motion, 'sections', `${layered} layers glide by depth or drift — at least ${minDepth}`,
@@ -645,16 +690,17 @@ export function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIs
645
690
  }
646
691
  if (daring) {
647
692
  const d = LIM.daring;
648
- if (bleeds < d.bleeds) add(LayoutIssueCode.Daring, 'sections', `${bleeds} layer(s) bleed off an edge — a daring page lets at least ${d.bleeds} run off the screen`);
649
- if (screenWords < d.screenWords) add(LayoutIssueCode.Daring, 'sections', 'no word at "screen" size — a daring page lets one thing be enormous');
650
- if (wordsOnPhoto < d.wordsOnPhoto && !limits.noTextOnPhoto) add(LayoutIssueCode.Daring, 'sections', 'words never sit over a photo — a daring page sets words over a calm part of a picture at least once');
651
- if (holds < d.holds) add(LayoutIssueCode.Daring, 'sections', `${holds} section(s) hold the page — a daring page holds at least ${d.holds} (held 2+ screens, or sideways)`);
693
+ if (bleeds < d.bleeds - carried.bleeds) add(LayoutIssueCode.Daring, 'sections', `${bleeds} layer(s) bleed off an edge — a daring page lets at least ${d.bleeds} run off the screen`);
694
+ if (screenWords < d.screenWords - carried.screenWords) add(LayoutIssueCode.Daring, 'sections', 'no word at "screen" size — a daring page lets one thing be enormous');
695
+ if (wordsOnPhoto < d.wordsOnPhoto - carried.wordsOnPhoto && !limits.noTextOnPhoto) add(LayoutIssueCode.Daring, 'sections', 'words never sit over a photo — a daring page sets words over a calm part of a picture at least once');
696
+ if (holds < d.holds - carried.holds) add(LayoutIssueCode.Daring, 'sections', `${holds} section(s) hold the page — a daring page holds at least ${d.holds} (held 2+ screens, or sideways)`);
652
697
  } else if (pinned > LIM.distinct.holdsMax) {
653
698
  add(LayoutIssueCode.Structure, 'sections', `${pinned} held sections — a distinct page holds at most ${LIM.distinct.holdsMax}`);
654
699
  }
655
700
  if (photos.size + boxes > LIM.maxPhotos) add(LayoutIssueCode.Content, 'sections', `${photos.size + boxes} photos — at most ${LIM.maxPhotos}`);
656
- const enteringMax = Math.floor(composedCount * LIM.enteringSections) + 1;
657
- if (sectionsWithEnters > enteringMax) add(LayoutIssueCode.Motion, 'sections', `${sectionsWithEnters} sections have entrances — at most ${enteringMax}; let the others glide`);
701
+ const enteringMax = Math.floor(sections.length * LIM.enteringSections) + 1;
702
+ const entering = sectionsWithEnters + readyMadeEntering;
703
+ if (entering > enteringMax) add(LayoutIssueCode.Motion, 'sections', `${entering} sections have entrances — at most ${enteringMax}; let the others glide`);
658
704
  if (eyebrows > composedCount * EYEBROW_SHARE) add(LayoutIssueCode.Look, 'sections', `${eyebrows} headings carry a small label right above them — the AI-site cliché; keep it to a few`);
659
705
  if (look) {
660
706
  if (accentUses > look.accentMax) {
@@ -668,7 +714,15 @@ export function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIs
668
714
  }
669
715
  if (limits.lightGroundsMax !== undefined && lightGrounds > limits.lightGroundsMax) add(LayoutIssueCode.Look, 'sections', `${lightGrounds} sections on a light ground — the ${look.id} look allows ${limits.lightGroundsMax}`);
670
716
  }
671
- return uniqueIssues(issues);
717
+ return { issues: uniqueIssues(issues), tally: { signatures: signatures.length, galleries, swappable, layered, bleeds, screenWords, wordsOnPhoto, holds } };
718
+ }
719
+
720
+ /** A ready-made section enters when the look's entrance level moves something of its family (a fade alone is not an entrance). */
721
+ function readyMadeEnters(pattern: string, level: string | null | undefined): boolean {
722
+ const family = patternById(pattern)?.family;
723
+ if (!family) return false;
724
+ const plan = sectionEntrances(level, family);
725
+ return [plan.content, ...Object.values(plan.parts)].some(spec => !!spec && spec.type !== FADE_ENTRANCE);
672
726
  }
673
727
 
674
728
  /**