@vectoriox/iox-ui 5.108.1 → 5.109.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.
@@ -6084,7 +6084,10 @@ declare enum LayoutMendKind {
6084
6084
  * their share, the words still fit) until the stretch is gone. */
6085
6085
  Screens = "screens",
6086
6086
  /** A daring or Expressive page whose opening has no display: the opening's lead line is set as one (a word). */
6087
- Display = "display"
6087
+ Display = "display",
6088
+ /** A list section's mix that breaks a list rule the composer can settle (list-ingredients §6, `checkList`): the layer
6089
+ * takes the repaired mix — every repair of one list carries the same one. */
6090
+ List = "list"
6088
6091
  }
6089
6092
  /** Which rule chose a mended gallery's list. */
6090
6093
  declare enum LayoutSourceChoice {
@@ -6102,6 +6105,18 @@ interface LayoutGalleryList {
6102
6105
  words: ReadonlyArray<string>;
6103
6106
  pictures: boolean;
6104
6107
  }
6108
+ /** What one list holds — the shape the layout's model reads before it mixes a list section (list-ingredients LI0): how
6109
+ * many items the build will write, the roles they play, and which of their words run long. Never the items themselves. */
6110
+ interface LayoutListShape {
6111
+ alias: string;
6112
+ label: string;
6113
+ /** The planned sample count (what the build writes), or null when the plan says none. */
6114
+ items: number | null;
6115
+ /** The roles its items play, in the contract's order. */
6116
+ roles: ReadonlyArray<string>;
6117
+ /** Text roles whose planned samples run long (median over LIST_LONG_WORDS words). */
6118
+ long: ReadonlyArray<string>;
6119
+ }
6105
6120
  /** An accent band the accent mend may move, and the ground it takes. */
6106
6121
  interface LayoutBandMove {
6107
6122
  section: number;
@@ -6138,6 +6153,10 @@ type LayoutMend = {
6138
6153
  section: number;
6139
6154
  screens: number;
6140
6155
  }>;
6156
+ } | {
6157
+ kind: LayoutMendKind.List;
6158
+ layer: string;
6159
+ mix: LayoutListMix;
6141
6160
  };
6142
6161
  interface LayoutIssue {
6143
6162
  code: `${LayoutIssueCode}`;
@@ -6988,8 +7007,11 @@ interface SerializedBinding {
6988
7007
  source: string;
6989
7008
  path: string;
6990
7009
  }
7010
+ /** Per breakpoint: the styles a width overrides, and the component inputs it overrides (a slider's slides per view —
7011
+ * `ResponsiveLayer.inputs`, read by the slider's `withPhoneDefaults`). */
6991
7012
  type SerializedResponsive = Partial<Record<string, {
6992
7013
  styleProps?: Record<string, unknown>;
7014
+ inputs?: Record<string, unknown>;
6993
7015
  }>>;
6994
7016
  interface SerializedNode {
6995
7017
  id: string;
@@ -7570,18 +7592,6 @@ declare function layoutGalleryLists(plan: SitePlan): LayoutGalleryList[];
7570
7592
  declare const LIST_ROLE_WORDS: Readonly<Record<`${ContentRole}`, string>>;
7571
7593
  /** A text role whose planned samples run past this many words (median) is called long: a small card would cut it. */
7572
7594
  declare const LIST_LONG_WORDS = 20;
7573
- /** What one list holds — the shape the layout's model reads before it mixes a list section (list-ingredients LI0): how
7574
- * many items the build will write, the roles they play, and which of their words run long. Never the items themselves. */
7575
- interface LayoutListShape {
7576
- alias: string;
7577
- label: string;
7578
- /** The planned sample count (what the build writes), or null when the plan says none. */
7579
- items: number | null;
7580
- /** The roles its items play, in the contract's order. */
7581
- roles: ReadonlyArray<`${ContentRole}`>;
7582
- /** Text roles whose planned samples run long (median over LIST_LONG_WORDS words). */
7583
- long: ReadonlyArray<`${ContentRole}`>;
7584
- }
7585
7595
  /** The shape of every list a list section could show (the plan's query sources, as `layoutGalleryLists`). */
7586
7596
  declare function layoutListShapes(plan: SitePlan): LayoutListShape[];
7587
7597
  /**
@@ -10123,6 +10133,8 @@ interface CheckLayoutContext {
10123
10133
  sources?: string[];
10124
10134
  /** Every list the plan has (`layoutGalleryLists`): a gallery naming one without pictures is mended to one with them. */
10125
10135
  lists?: ReadonlyArray<LayoutGalleryList>;
10136
+ /** What each list holds (`layoutListShapes`): a list section's mix is judged against it (`checkList`, LI2). */
10137
+ listShapes?: ReadonlyArray<LayoutListShape>;
10126
10138
  /** The site's page routes a button may lead to (`/contact`). */
10127
10139
  routes?: string[];
10128
10140
  /** Every word the owner gave and what was read from it: a number not in here was invented. */
@@ -10183,6 +10195,14 @@ declare function mendLayout(page: LayoutPage, issues: ReadonlyArray<LayoutIssue>
10183
10195
  mended: LayoutIssue[];
10184
10196
  };
10185
10197
 
10198
+ /**
10199
+ * Judge one list section's mix against the list it shows (`shape`, from `layoutListShapes`; null when the source is no
10200
+ * list — the source check says that). `layer` is the layer's path (`sections[1].layers[0]`).
10201
+ */
10202
+ declare function checkList(mix: LayoutListMix, shape: LayoutListShape | null, layer: string): LayoutIssue[];
10203
+ /** Two list sections of one page never share an arrangement (list-ingredients §7): the later ones are the model's. */
10204
+ declare function pageListIssues(page: LayoutPage): LayoutIssue[];
10205
+
10186
10206
  /**
10187
10207
  * The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
10188
10208
  * as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
@@ -10297,6 +10317,8 @@ interface LayoutFingerprint {
10297
10317
  signature: string;
10298
10318
  ground: `${PhotoTone}`;
10299
10319
  preset: string;
10320
+ /** Every list mix the page shows (`listTokenOf`); absent on a fingerprint stored before LI2. */
10321
+ lists?: string[];
10300
10322
  }
10301
10323
  interface FingerprintedPage {
10302
10324
  name: string;
@@ -10307,6 +10329,18 @@ interface FingerprintedPage {
10307
10329
  }
10308
10330
  /** A section's token in the page's sequence. */
10309
10331
  declare function sequenceTokenOf(s: LayoutSection): LayoutSequenceToken;
10332
+ /** A list section's prefix in the sequence (list-ingredients §7). */
10333
+ declare const LAYOUT_LIST_TOKEN = "list";
10334
+ /**
10335
+ * A list mix as the fingerprint sees it (list-ingredients §7, LI2): `list:<arrange>/<who-how>/<moves>` — how the items
10336
+ * sit, which stands out and how, how the visitor moves through them. What a mouse does and how they arrive are too fine
10337
+ * to count. Two pages with `list:row/middle-raised/arrows` show the same list.
10338
+ */
10339
+ declare function listTokenOf(mix: LayoutListMix): string;
10340
+ /** A section's token in the sequence: a list section's mix, else its kind (`sequenceTokenOf`). */
10341
+ declare function sectionTokenOf(s: LayoutSection): string;
10342
+ /** Every list mix a page shows, in order. */
10343
+ declare function listTokensOf(page: LayoutPage): string[];
10310
10344
  declare function signatureOf(s: LayoutSection | undefined): LayoutSignatureId;
10311
10345
  /** A place given to the plan's ready-made section (silent section fallback): its token in the sequence and the opening. */
10312
10346
  declare const LAYOUT_READY_MADE_TOKEN = "ready-made";
@@ -10314,6 +10348,8 @@ declare const LAYOUT_READY_MADE_TOKEN = "ready-made";
10314
10348
  declare function fingerprintOf(page: LayoutPage, preset: string, mode: 'light' | 'dark'): LayoutFingerprint;
10315
10349
  /** The share of the longer sequence two pages have in common. */
10316
10350
  declare function sequenceShare(a: ReadonlyArray<string>, b: ReadonlyArray<string>): number;
10351
+ /** A list token in words: `list:row/middle-raised/arrows` → "row · middle raised · arrows". */
10352
+ declare const listWords: (token: string) => string;
10317
10353
  /**
10318
10354
  * Refuses a page that repeats one already made (M8-G2-D7): most of the same sequence (`SPEC_SITE_LAYOUT.sameness.sequence`,
10319
10355
  * 6 of 7), or the same opening AND signature; against a page of the same business type, the same opening or the same
@@ -10354,5 +10390,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
10354
10390
  /** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
10355
10391
  declare function layoutRepairJsonSchema(): JsonSchema;
10356
10392
 
10357
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, 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_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_MIX_WORDS, 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, LIST_CARD_PART, LIST_LONG_WORDS, LIST_ROLE_WORDS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, 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, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, 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, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, 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, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, 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, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
10393
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, 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_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_WORDS, 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, LIST_CARD_PART, LIST_LONG_WORDS, LIST_ROLE_WORDS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, 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, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, 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, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, 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, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkLayout, checkList, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listTokenOf, listTokensOf, listWords, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
10358
10394
  export type { AddBarItemResult, AiBuyCredits, 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, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, 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, LayoutListBinding, LayoutListMix, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, 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, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, 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.108.1",
3
+ "version": "5.109.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -2,7 +2,7 @@ import { DesignChoices, designTokenRows, parseCssColour, presetChoices, relative
2
2
  import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
3
3
 
4
4
  import {
5
- LAYOUT_HIDDEN_OPACITY, LAYOUT_OPERATED, LAYOUT_TEXT_KINDS, LayoutBandMove, LayoutColour, LayoutDepth, LayoutDial, LayoutEnter, LayoutGalleryList, LayoutIssue, LayoutIssueCode, LayoutLayer, LayoutLayerKind, LayoutMend, LayoutMendKind,
5
+ LAYOUT_HIDDEN_OPACITY, LAYOUT_OPERATED, LAYOUT_TEXT_KINDS, LayoutBandMove, LayoutColour, LayoutDepth, LayoutDial, LayoutEnter, LayoutGalleryList, LayoutIssue, LayoutListShape, LayoutIssueCode, LayoutLayer, LayoutLayerKind, LayoutMend, LayoutMendKind,
6
6
  LayoutGivenAway, LayoutPage, LayoutPhotoSource,
7
7
  LayoutRole, LayoutSection, LayoutSectionKind, LayoutSourceChoice, LayoutTrackProp, parseLayoutPhotoId,
8
8
  } from './layout-language';
@@ -14,6 +14,7 @@ import { sectionEntrances } from './entrances';
14
14
  import { calmParts, calmUnder, FrameRegion, PhotoInventory, PHOTO_LIGHT_LUMINANCE } from './photo-inventory';
15
15
  import { SerializedNode, walkSerialized } from './serialized-node';
16
16
  import { SPEC_SITE_FACTS, SPEC_SITE_LAYOUT } from './site-spec.generated';
17
+ import { checkList, pageListIssues } from './check-list';
17
18
  import {
18
19
  LAYOUT_CHECK_VIEWPORT, LAYOUT_DRIFT, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, layoutBoxPx, layoutDriftPhoto, layoutHeldStill, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutShapeHasPurpose,
19
20
  layoutStillLine, layoutTextFits, layoutVoidScreens, layoutVoids,
@@ -46,6 +47,8 @@ export interface CheckLayoutContext {
46
47
  sources?: string[];
47
48
  /** Every list the plan has (`layoutGalleryLists`): a gallery naming one without pictures is mended to one with them. */
48
49
  lists?: ReadonlyArray<LayoutGalleryList>;
50
+ /** What each list holds (`layoutListShapes`): a list section's mix is judged against it (`checkList`, LI2). */
51
+ listShapes?: ReadonlyArray<LayoutListShape>;
49
52
  /** The site's page routes a button may lead to (`/contact`). */
50
53
  routes?: string[];
51
54
  /** Every word the owner gave and what was read from it: a number not in here was invented. */
@@ -547,6 +550,10 @@ function examineLayout(page: LayoutPage, ctx: CheckLayoutContext, carried: Layou
547
550
  if (g.source !== undefined && slides.length > maxSlides) add(LayoutIssueCode.Value, `${lp}.gallery.slides`, `at most ${maxSlides} slides`);
548
551
  if (g.effect !== undefined && !inList(V.galleryEffects, g.effect)) add(LayoutIssueCode.Value, `${lp}.gallery.effect`, V.galleryEffects.join(' | '));
549
552
  if (g.scroll && !s.pin) add(LayoutIssueCode.Motion, `${lp}.gallery.scroll`, 'a scroll-turned gallery sits in a held section');
553
+ if (g.list) {
554
+ if (g.source === undefined) add(LayoutIssueCode.Content, `${lp}.gallery.source`, 'a list section names the list it shows');
555
+ issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp));
556
+ }
550
557
  if (!g.scroll) swappable++;
551
558
  slides.forEach((slide, k) => photoId(slide.photo?.id, `${lp}.gallery.slides[${k}]`));
552
559
  }
@@ -734,6 +741,7 @@ function examineLayout(page: LayoutPage, ctx: CheckLayoutContext, carried: Layou
734
741
  }
735
742
  if (limits.lightGroundsMax !== undefined && lightGrounds > limits.lightGroundsMax) add(LayoutIssueCode.Look, 'sections', `${lightGrounds} sections on a light ground — the ${look.id} look allows ${limits.lightGroundsMax}`);
736
743
  }
744
+ issues.push(...pageListIssues(page));
737
745
  return { issues: uniqueIssues(issues), tally: { signatures: signatures.length, galleries, swappable, layered, bleeds, screenWords, wordsOnPhoto, holds } };
738
746
  }
739
747
 
@@ -1009,6 +1017,11 @@ export function mendLayout(page: LayoutPage, issues: ReadonlyArray<LayoutIssue>)
1009
1017
  if (!layer?.gallery) continue;
1010
1018
  layer.gallery.source = mend.source;
1011
1019
  mended.push(issue);
1020
+ } else if (mend?.kind === LayoutMendKind.List) {
1021
+ const layer = layerAt(mend.layer);
1022
+ if (!layer?.gallery) continue;
1023
+ layer.gallery.list = structuredClone(mend.mix);
1024
+ mended.push(issue);
1012
1025
  } else if (mend?.kind === LayoutMendKind.Words) {
1013
1026
  const layer = layerAt(mend.layer);
1014
1027
  if (!layer) continue;
@@ -0,0 +1,168 @@
1
+ import {
2
+ LayoutIssue, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHow, LayoutListHover, LayoutListItem, LayoutListMix,
3
+ LayoutListMove, LayoutListPhone, LayoutListShape, LayoutListWho, LayoutMendKind, LayoutPage,
4
+ } from './layout-language';
5
+ import { SPEC_SITE_LAYOUT } from './site-spec.generated';
6
+
7
+ /**
8
+ * THE LIST JUDGE (list-ingredients-plan.md §6, LI2; the demo's `checkMix`): one function for any mix of the seven
9
+ * ingredients. What it can settle with no word or place changed it repairs and says — every repair of one list carries
10
+ * the SAME repaired mix (`LayoutMendKind.List`), so `mendLayout` applies it once; what it cannot (a value outside the
11
+ * contract, a list too short to be a list) is left to the model, and then to the silent section fallback. Pure.
12
+ */
13
+
14
+ const R = SPEC_SITE_LAYOUT.list.rules;
15
+ const IMAGE = 'image';
16
+ const inList = (values: ReadonlyArray<string>, v: unknown): boolean => typeof v === 'string' && values.includes(v);
17
+ const enumValues = (e: object): string[] => Object.values(e);
18
+ const has = <T extends string>(list: ReadonlyArray<T>, v: string): boolean => (list as ReadonlyArray<string>).includes(v);
19
+
20
+ /** The words a repaired mix is said in (the brief and the owner read them). */
21
+ const say = (v: string) => SPEC_SITE_LAYOUT.list.meanings[v as keyof typeof SPEC_SITE_LAYOUT.list.meanings] ?? v;
22
+
23
+ /**
24
+ * Judge one list section's mix against the list it shows (`shape`, from `layoutListShapes`; null when the source is no
25
+ * list — the source check says that). `layer` is the layer's path (`sections[1].layers[0]`).
26
+ */
27
+ export function checkList(mix: LayoutListMix, shape: LayoutListShape | null, layer: string): LayoutIssue[] {
28
+ const at = `${layer}.gallery.list`;
29
+ const refused: LayoutIssue[] = [];
30
+ const refuse = (code: LayoutIssueCode, path: string, message: string) => refused.push({ code, path, message });
31
+
32
+ // Values outside the contract are the model's to answer: nothing is repaired over a mix that is not a mix.
33
+ if (!mix || typeof mix !== 'object') return [{ code: LayoutIssueCode.Shape, path: at, message: 'a list section names its mix' }];
34
+ if (!inList(enumValues(LayoutListItem), mix.item)) refuse(LayoutIssueCode.Value, `${at}.item`, enumValues(LayoutListItem).join(' | '));
35
+ if (!inList(enumValues(LayoutListArrange), mix.arrange)) refuse(LayoutIssueCode.Value, `${at}.arrange`, enumValues(LayoutListArrange).join(' | '));
36
+ if (!inList(enumValues(LayoutListArrive), mix.arrive)) refuse(LayoutIssueCode.Value, `${at}.arrive`, enumValues(LayoutListArrive).join(' | '));
37
+ if (!inList(enumValues(LayoutListPhone), mix.phone)) refuse(LayoutIssueCode.Value, `${at}.phone`, enumValues(LayoutListPhone).join(' | '));
38
+ if (!Array.isArray(mix.parts) || mix.parts.some(p => typeof p !== 'string')) refuse(LayoutIssueCode.Shape, `${at}.parts`, 'the roles each item shows');
39
+ if (!Array.isArray(mix.move) || mix.move.some(m => !inList(enumValues(LayoutListMove), m))) refuse(LayoutIssueCode.Value, `${at}.move`, enumValues(LayoutListMove).join(' | '));
40
+ if (!Array.isArray(mix.hover) || mix.hover.some(h => !inList(enumValues(LayoutListHover), h))) refuse(LayoutIssueCode.Value, `${at}.hover`, enumValues(LayoutListHover).join(' | '));
41
+ if (mix.standout !== undefined) {
42
+ if (!inList(enumValues(LayoutListWho), mix.standout?.who)) refuse(LayoutIssueCode.Value, `${at}.standout.who`, enumValues(LayoutListWho).join(' | '));
43
+ if (mix.standout?.how !== undefined && !inList(enumValues(LayoutListHow), mix.standout.how)) refuse(LayoutIssueCode.Value, `${at}.standout.how`, enumValues(LayoutListHow).join(' | '));
44
+ }
45
+ if (refused.length || !shape) return refused;
46
+
47
+ if (shape.items !== null && shape.items < R.minItems) {
48
+ return [{ code: LayoutIssueCode.Content, path: at, message: `a list section shows at least ${R.minItems} items — "${shape.alias}" has ${shape.items}; show it another way` }];
49
+ }
50
+
51
+ const next: LayoutListMix = structuredClone(mix);
52
+ const said: string[] = [];
53
+ const repair = (message: string) => said.push(message);
54
+ const roles = shape.roles as ReadonlyArray<string>;
55
+ const pictured = roles.includes(IMAGE);
56
+
57
+ // What the items show: only what the list holds, each once.
58
+ const unique = [...new Set(next.parts)];
59
+ const foreign = unique.filter(p => !roles.includes(p));
60
+ if (foreign.length || unique.length !== next.parts.length) {
61
+ if (foreign.length) repair(`"${shape.alias}" holds no ${foreign.join(', ')} — left out`);
62
+ next.parts = unique.filter(p => roles.includes(p));
63
+ }
64
+ if (next.item === LayoutListItem.Photo) {
65
+ if (!pictured) {
66
+ repair(`"${shape.alias}" has no pictures — its items are cards`);
67
+ next.item = LayoutListItem.Card;
68
+ } else if (next.parts.length !== 1 || next.parts[0] !== IMAGE) {
69
+ repair('a photo item shows its picture only');
70
+ next.parts = [IMAGE];
71
+ }
72
+ }
73
+
74
+ // The arrangement first: what follows is judged against the one the list ends with.
75
+ if (next.arrange === LayoutListArrange.Strips && !pictured) {
76
+ repair('strips need a picture in every item — a still grid instead');
77
+ next.arrange = LayoutListArrange.Grid;
78
+ }
79
+ if (next.arrange === LayoutListArrange.Strips && shape.items !== null && shape.items > R.strips[1]) {
80
+ repair(`${R.strips[1]} strips fit at most — "${shape.alias}" has ${shape.items}: ${say(LayoutListArrange.Row)}`);
81
+ next.arrange = LayoutListArrange.Row;
82
+ }
83
+ const longShown = shape.long.filter(role => next.parts.includes(role));
84
+ if (longShown.length && next.arrange === LayoutListArrange.Grid) {
85
+ repair(`its ${longShown.join(' and ')} run long — a grid would cut them: ${say(LayoutListArrange.Masonry)}`);
86
+ next.arrange = LayoutListArrange.Masonry;
87
+ }
88
+ const arrange = next.arrange;
89
+ const strips = arrange === LayoutListArrange.Strips;
90
+ const row = arrange === LayoutListArrange.Row;
91
+
92
+ // Who stands out, and how.
93
+ if (strips) {
94
+ const who = next.standout?.who;
95
+ if (who !== LayoutListWho.First && who !== LayoutListWho.Pointed) {
96
+ repair('one strip is always open — the first');
97
+ next.standout = { who: LayoutListWho.First, how: LayoutListHow.Wider };
98
+ } else if (next.standout!.how !== LayoutListHow.Wider) {
99
+ repair('the open strip is the wider one');
100
+ next.standout = { who, how: LayoutListHow.Wider };
101
+ }
102
+ } else if (next.standout) {
103
+ if (next.standout.who === LayoutListWho.None) {
104
+ if (next.standout.how) repair('nothing stands out — no way to stand out');
105
+ delete next.standout;
106
+ } else {
107
+ if (has(R.onlyRow.standoutWho, next.standout.who) && !row) {
108
+ repair(`"${next.standout.who}" is a row's — the first stands out`);
109
+ next.standout.who = LayoutListWho.First;
110
+ }
111
+ if (next.standout.how && has(R.onlyStrips.standoutHow, next.standout.how)) {
112
+ repair(`"${next.standout.how}" is a strip's — bigger instead`);
113
+ next.standout.how = LayoutListHow.Bigger;
114
+ }
115
+ }
116
+ }
117
+
118
+ // How the visitor moves through them.
119
+ const moving = has(R.moving, arrange);
120
+ if (!moving && next.move.length) {
121
+ repair(`${say(arrange)} does not move — no ${next.move.join(', ')}`);
122
+ next.move = [];
123
+ }
124
+ if (moving) {
125
+ const onlyRow = next.move.filter(m => has(R.onlyRow.moves, m));
126
+ if (onlyRow.length && !row) {
127
+ repair(`"${onlyRow.join(', ')}" carries a row only`);
128
+ next.move = next.move.filter(m => !has(R.onlyRow.moves, m));
129
+ }
130
+ if (next.move.includes(LayoutListMove.Page) && next.move.length > 1) {
131
+ repair('the page\'s scroll carries the row alone');
132
+ next.move = [LayoutListMove.Page];
133
+ }
134
+ if (!next.move.length) {
135
+ repair(`${say(arrange)} — the visitor drags it`);
136
+ next.move = [LayoutListMove.Drag];
137
+ }
138
+ }
139
+ const stripHovers = next.hover.filter(h => has(R.onlyStrips.hovers, h));
140
+ if (stripHovers.length && !strips) {
141
+ repair(`"${stripHovers.join(', ')}" is a strip's`);
142
+ next.hover = next.hover.filter(h => !has(R.onlyStrips.hovers, h));
143
+ }
144
+ if (new Set(next.hover).size !== next.hover.length) next.hover = [...new Set(next.hover)];
145
+
146
+ // A phone.
147
+ if (has(R.neverSwipe, arrange) && next.phone === LayoutListPhone.Swipe) {
148
+ repair(`${say(arrange)} does not swipe on a phone — it stacks`);
149
+ next.phone = LayoutListPhone.Stack;
150
+ }
151
+
152
+ return said.map(message => ({ code: LayoutIssueCode.Structure, path: at, message, mend: { kind: LayoutMendKind.List, layer, mix: next } }));
153
+ }
154
+
155
+ /** Two list sections of one page never share an arrangement (list-ingredients §7): the later ones are the model's. */
156
+ export function pageListIssues(page: LayoutPage): LayoutIssue[] {
157
+ const issues: LayoutIssue[] = [];
158
+ const seen = new Map<string, string>();
159
+ (page?.sections ?? []).forEach((s, si) => (s.layers ?? []).forEach((l, li) => {
160
+ const mix = l.kind === LayoutLayerKind.Gallery ? l.gallery?.list : undefined;
161
+ if (!mix || typeof mix.arrange !== 'string') return;
162
+ const path = `sections[${si}].layers[${li}].gallery.list.arrange`;
163
+ const first = seen.get(mix.arrange);
164
+ if (first) issues.push({ code: LayoutIssueCode.Sameness, path, message: `${first} is already ${say(mix.arrange)} — arrange this list another way` });
165
+ else seen.set(mix.arrange, `sections[${si}]`);
166
+ }));
167
+ return issues;
168
+ }
@@ -775,6 +775,9 @@ function composeList(id: string, l: LayoutLayer, mix: LayoutListMix, source: str
775
775
  display: 'flex', flexDirection: 'column',
776
776
  });
777
777
  phone(slider, scrollPlays ? { height: 'auto' } : { position: 'relative', height: 'auto' });
778
+ // A row keeps its own slide width on a phone (most of the screen, the next item peeking): the slider's phone
779
+ // default is one slide the full width, unless the phone layer names its slides per view.
780
+ slider.responsive![LAYOUT_PHONE_BREAKPOINT]!.inputs = { slidesPerView: 'auto' };
778
781
  if (mix.phone !== LayoutListPhone.Swipe) gap(ctx, LayoutGapCode.ListLater, `${lc.path}.gallery.list.phone`, `a row stays a row you swipe on a phone (${mix.phone} is a grid's)`);
779
782
  const slide = create(`${id}-slide`, T.Slide, { caption: '' }, NO_ELEMENT_STYLE);
780
783
  setStyleProps(slide, { width: LIST_ROW_SLIDE, height: FULL, display: 'flex', aspectRatio: 'auto' });
@@ -29,7 +29,7 @@ import { SitePlanSourceKind, ContentFieldControl, ContentFieldPlan,
29
29
  import { assertValidSitePlan, nextSourceOf, routeParams } from './validate-site-plan';
30
30
  import { NavRole, NavShape, planNavShape } from './nav-shape';
31
31
  import { composeLayout, LayoutColourMode, layoutBandScheme, LayoutListBinding } from './compose-layout';
32
- import { LayoutGalleryList, LayoutPage, LayoutPhotoShape, LayoutPhotoSource, LayoutSite, parseLayoutPhotoId } from './layout-language';
32
+ import { LayoutGalleryList, LayoutListShape, LayoutPage, LayoutPhotoShape, LayoutPhotoSource, LayoutSite, parseLayoutPhotoId } from './layout-language';
33
33
  import { layoutMotionOf, layoutPresetOf } from './layout-look';
34
34
 
35
35
  /**
@@ -486,18 +486,6 @@ export const LIST_ROLE_WORDS: Readonly<Record<`${ContentRole}`, string>> = {
486
486
  export const LIST_LONG_WORDS = 20;
487
487
  const LIST_TEXT_ROLES: ReadonlyArray<`${ContentRole}`> = [ContentRole.Summary, ContentRole.Quote];
488
488
 
489
- /** What one list holds — the shape the layout's model reads before it mixes a list section (list-ingredients LI0): how
490
- * many items the build will write, the roles they play, and which of their words run long. Never the items themselves. */
491
- export interface LayoutListShape {
492
- alias: string;
493
- label: string;
494
- /** The planned sample count (what the build writes), or null when the plan says none. */
495
- items: number | null;
496
- /** The roles its items play, in the contract's order. */
497
- roles: ReadonlyArray<`${ContentRole}`>;
498
- /** Text roles whose planned samples run long (median over LIST_LONG_WORDS words). */
499
- long: ReadonlyArray<`${ContentRole}`>;
500
- }
501
489
 
502
490
  const wordCount = (text: string) => text.trim().split(/\s+/).filter(Boolean).length;
503
491
  const median = (values: number[]) => { const v = [...values].sort((a, b) => a - b); return v.length ? v[Math.floor((v.length - 1) / 2)] : 0; };
@@ -543,7 +531,7 @@ export function layoutListBinding(alias: string, plan: SitePlan): LayoutListBind
543
531
 
544
532
  /** One line of the brief: `works (Works): 6 items · name, picture, detail, quote (long)`. */
545
533
  export function describeListShape(shape: LayoutListShape): string {
546
- const roles = shape.roles.map(r => `${LIST_ROLE_WORDS[r]}${shape.long.includes(r) ? ' (long)' : ''}`).join(', ');
534
+ const roles = shape.roles.map(r => `${(LIST_ROLE_WORDS[r as `${ContentRole}`] ?? r)}${shape.long.includes(r) ? ' (long)' : ''}`).join(', ');
547
535
  return `${shape.alias} (${shape.label}): ${shape.items === null ? 'items the owner adds' : `${shape.items} item${shape.items === 1 ? '' : 's'}`} · ${roles}`;
548
536
  }
549
537
 
@@ -1,7 +1,7 @@
1
1
  import { parseCssColour, relativeLuminance } from '@vectoriox/iox-ui/design-core';
2
2
 
3
3
  import { layoutPresetColours, splitSide } from './check-layout';
4
- import { LayoutColour, LayoutIssue, LayoutIssueCode, LayoutLayerKind, LayoutPage, LayoutRole, LayoutSection, LayoutSectionKind, LayoutSize, LayoutTrackProp } from './layout-language';
4
+ import { LayoutColour, LayoutIssue, LayoutIssueCode, LayoutLayerKind, LayoutListMix, LayoutListWho, LayoutPage, LayoutRole, LayoutSection, LayoutSectionKind, LayoutSize, LayoutTrackProp } from './layout-language';
5
5
  import { PHOTO_LIGHT_LUMINANCE, PhotoTone } from './photo-inventory';
6
6
  import { SPEC_SITE_LAYOUT } from './site-spec.generated';
7
7
 
@@ -46,6 +46,8 @@ export interface LayoutFingerprint {
46
46
  signature: string;
47
47
  ground: `${PhotoTone}`;
48
48
  preset: string;
49
+ /** Every list mix the page shows (`listTokenOf`); absent on a fingerprint stored before LI2. */
50
+ lists?: string[];
49
51
  }
50
52
 
51
53
  export interface FingerprintedPage {
@@ -72,6 +74,31 @@ export function sequenceTokenOf(s: LayoutSection): LayoutSequenceToken {
72
74
  return splitSide(s) ? LayoutSequenceToken.Split : LayoutSequenceToken.Composition;
73
75
  }
74
76
 
77
+ /** A list section's prefix in the sequence (list-ingredients §7). */
78
+ export const LAYOUT_LIST_TOKEN = 'list';
79
+
80
+ /**
81
+ * A list mix as the fingerprint sees it (list-ingredients §7, LI2): `list:<arrange>/<who-how>/<moves>` — how the items
82
+ * sit, which stands out and how, how the visitor moves through them. What a mouse does and how they arrive are too fine
83
+ * to count. Two pages with `list:row/middle-raised/arrows` show the same list.
84
+ */
85
+ export function listTokenOf(mix: LayoutListMix): string {
86
+ const who = mix.standout && mix.standout.who !== LayoutListWho.None ? `${mix.standout.who}${mix.standout.how ? `-${mix.standout.how}` : ''}` : 'none';
87
+ const moves = Array.isArray(mix.move) && mix.move.length ? [...new Set(mix.move)].sort().join('+') : 'still';
88
+ return `${LAYOUT_LIST_TOKEN}:${mix.arrange}/${who}/${moves}`;
89
+ }
90
+
91
+ /** A section's token in the sequence: a list section's mix, else its kind (`sequenceTokenOf`). */
92
+ export function sectionTokenOf(s: LayoutSection): string {
93
+ const list = s.pin || (s.track ?? 1) > 1 ? undefined : (s.layers ?? []).find(l => l.kind === LayoutLayerKind.Gallery && l.gallery?.list)?.gallery?.list;
94
+ return list && !String(s.ground ?? '').startsWith('photo:') ? listTokenOf(list) : sequenceTokenOf(s);
95
+ }
96
+
97
+ /** Every list mix a page shows, in order. */
98
+ export function listTokensOf(page: LayoutPage): string[] {
99
+ return (page.sections ?? []).flatMap(s => (s.layers ?? []).filter(l => l.kind === LayoutLayerKind.Gallery && l.gallery?.list).map(l => listTokenOf(l.gallery!.list!)));
100
+ }
101
+
75
102
  /** The mechanism of the signature section, by what moves in it (first match wins, as the prototype's). */
76
103
  const SIGNATURE_BY_TRACK: ReadonlyArray<[LayoutTrackProp, LayoutSignatureId]> = [
77
104
  [LayoutTrackProp.Clip, LayoutSignatureId.PhotoUnveiled],
@@ -108,6 +135,7 @@ function openingOf(s: LayoutSection | undefined): string {
108
135
  /** A page's fingerprint, worn in `preset` and `mode`. A photo ground opens on the page's own ground colour. */
109
136
  export function fingerprintOf(page: LayoutPage, preset: string, mode: 'light' | 'dark'): LayoutFingerprint {
110
137
  const sections = page.sections ?? [];
138
+ const lists = listTokensOf(page);
111
139
  const first = sections[0];
112
140
  const ground = String(first?.ground ?? LayoutColour.Ground);
113
141
  const name = (Object.values(LayoutColour) as string[]).includes(ground) ? (ground as LayoutColour) : LayoutColour.Ground;
@@ -115,10 +143,11 @@ export function fingerprintOf(page: LayoutPage, preset: string, mode: 'light' |
115
143
  const light = colour ? relativeLuminance(colour) > PHOTO_LIGHT_LUMINANCE : mode === 'light';
116
144
  return {
117
145
  opening: openingOf(first),
118
- sequence: sections.map(s => (s.readyMade ? LAYOUT_READY_MADE_TOKEN : sequenceTokenOf(s))),
146
+ sequence: sections.map(s => (s.readyMade ? LAYOUT_READY_MADE_TOKEN : sectionTokenOf(s))),
119
147
  signature: signatureOf(sections.find(s => s.signature)),
120
148
  ground: light ? PhotoTone.Light : PhotoTone.Dark,
121
149
  preset,
150
+ ...(lists.length ? { lists } : {}),
122
151
  };
123
152
  }
124
153
 
@@ -136,6 +165,8 @@ export function sequenceShare(a: ReadonlyArray<string>, b: ReadonlyArray<string>
136
165
 
137
166
  const openingWords = (opening: string) =>
138
167
  opening.startsWith(READY_MADE_OPENING) ? `the ready-made ${opening.slice(READY_MADE_OPENING.length)}` : opening === OPENING_SCREEN_WORD ? 'a screen-size word' : opening === 'photo' || opening === 'gallery' ? `a ${opening}` : `a ${opening.replace('-', ' ')}`;
168
+ /** A list token in words: `list:row/middle-raised/arrows` → "row · middle raised · arrows". */
169
+ export const listWords = (token: string) => token.replace(`${LAYOUT_LIST_TOKEN}:`, '').split('/').map(p => p.replace(/[-+]/g, ' ')).join(' · ');
139
170
  const signatureWords = (id: string) => SPEC_SITE_LAYOUT.signatures.find(s => s.id === id)?.label ?? id;
140
171
 
141
172
  /**
@@ -157,6 +188,10 @@ export function samenessIssues(me: LayoutFingerprint, others: ReadonlyArray<Fing
157
188
  const signature = me.signature === them.signature;
158
189
  if (opening && (signature || sameType)) add('sections[0]', `"${o.name}" already opens on ${openingWords(them.opening)}${sameType ? ', and it is the same kind of business' : ` with ${signatureWords(them.signature)}`} — open another way`);
159
190
  if (signature && (opening || sameType)) add('sections', `"${o.name}"'s signature is already ${signatureWords(them.signature)} — find another mechanism`);
191
+ // A list mix: refused against the same kind of business (list-ingredients §7); the brief names every other one.
192
+ if (sameType) for (const token of (me.lists ?? []).filter(t => (them.lists ?? []).includes(t))) {
193
+ add('sections', `"${o.name}" already shows a list as ${listWords(token)}, and it is the same kind of business — mix this list another way`);
194
+ }
160
195
  if (!o.demo && sequenceShare(me.sequence, them.sequence) >= SPEC_SITE_LAYOUT.sameness.sequence) {
161
196
  add('sections', `your sequence (${me.sequence.join(' → ')}) repeats "${o.name}"'s (${them.sequence.join(' → ')}) — change the order and the kinds of sections`);
162
197
  }
@@ -424,6 +424,9 @@ export enum LayoutMendKind {
424
424
  Screens = 'screens',
425
425
  /** A daring or Expressive page whose opening has no display: the opening's lead line is set as one (a word). */
426
426
  Display = 'display',
427
+ /** A list section's mix that breaks a list rule the composer can settle (list-ingredients §6, `checkList`): the layer
428
+ * takes the repaired mix — every repair of one list carries the same one. */
429
+ List = 'list',
427
430
  }
428
431
 
429
432
  /** Which rule chose a mended gallery's list. */
@@ -444,6 +447,19 @@ export interface LayoutGalleryList {
444
447
  pictures: boolean;
445
448
  }
446
449
 
450
+ /** What one list holds — the shape the layout's model reads before it mixes a list section (list-ingredients LI0): how
451
+ * many items the build will write, the roles they play, and which of their words run long. Never the items themselves. */
452
+ export interface LayoutListShape {
453
+ alias: string;
454
+ label: string;
455
+ /** The planned sample count (what the build writes), or null when the plan says none. */
456
+ items: number | null;
457
+ /** The roles its items play, in the contract's order. */
458
+ roles: ReadonlyArray<string>;
459
+ /** Text roles whose planned samples run long (median over LIST_LONG_WORDS words). */
460
+ long: ReadonlyArray<string>;
461
+ }
462
+
447
463
  /** An accent band the accent mend may move, and the ground it takes. */
448
464
  export interface LayoutBandMove {
449
465
  section: number;
@@ -458,7 +474,8 @@ export type LayoutMend =
458
474
  | { kind: LayoutMendKind.Words | LayoutMendKind.Drop | LayoutMendKind.Drift; layer: string }
459
475
  | { kind: LayoutMendKind.Display; layer: string; size?: `${LayoutSize}` }
460
476
  | { kind: LayoutMendKind.Unpin; section: number }
461
- | { kind: LayoutMendKind.Screens; sections: ReadonlyArray<{ section: number; screens: number }> };
477
+ | { kind: LayoutMendKind.Screens; sections: ReadonlyArray<{ section: number; screens: number }> }
478
+ | { kind: LayoutMendKind.List; layer: string; mix: LayoutListMix };
462
479
 
463
480
  export interface LayoutIssue {
464
481
  code: `${LayoutIssueCode}`;
@@ -51,6 +51,7 @@ export * from './layout-section-fallback';
51
51
  export * from './layout-photos';
52
52
  export * from './photo-inventory';
53
53
  export * from './check-layout';
54
+ export * from './check-list';
54
55
  export * from './layout-space';
55
56
  export * from './layout-fingerprint';
56
57
  export * from './layout-edits';
@@ -16,7 +16,9 @@ export interface SerializedBinding {
16
16
  path: string;
17
17
  }
18
18
 
19
- export type SerializedResponsive = Partial<Record<string, { styleProps?: Record<string, unknown> }>>;
19
+ /** Per breakpoint: the styles a width overrides, and the component inputs it overrides (a slider's slides per view —
20
+ * `ResponsiveLayer.inputs`, read by the slider's `withPhoneDefaults`). */
21
+ export type SerializedResponsive = Partial<Record<string, { styleProps?: Record<string, unknown>; inputs?: Record<string, unknown> }>>;
20
22
 
21
23
  export interface SerializedNode {
22
24
  id: string;