@vectoriox/iox-ui 5.115.0 → 5.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +46 -13
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +31 -10
- package/package.json +1 -1
- package/src/generation-core/check-layout.ts +4 -2
- package/src/generation-core/check-list.ts +27 -2
- package/src/generation-core/compose-site.ts +1 -1
- package/src/generation-core/footer-mix.ts +21 -6
- package/src/generation-core/layout-wire.ts +14 -2
|
@@ -10202,6 +10202,26 @@ declare function layoutMotionOf(presetId: string): {
|
|
|
10202
10202
|
*/
|
|
10203
10203
|
declare function layoutDialOf(animate: string | null | undefined, ceiling: string | null | undefined): `${LayoutDial}`;
|
|
10204
10204
|
|
|
10205
|
+
/**
|
|
10206
|
+
* What a business type's lists never do (L-D12, the contract's harness `businessTypes[].lists` — harness-core
|
|
10207
|
+
* `BusinessType.lists`, passed in as data: harness-core reads generation-core, never the other way round).
|
|
10208
|
+
*/
|
|
10209
|
+
interface LayoutListNever {
|
|
10210
|
+
readonly arranges: ReadonlyArray<string>;
|
|
10211
|
+
readonly moves: ReadonlyArray<string>;
|
|
10212
|
+
/** Why, in the owner's words — said with the repair. */
|
|
10213
|
+
readonly say: ReadonlyArray<string>;
|
|
10214
|
+
}
|
|
10215
|
+
/** True when the type's art direction forbids nothing. */
|
|
10216
|
+
declare const listNeverIsEmpty: (never?: LayoutListNever | null) => boolean;
|
|
10217
|
+
/**
|
|
10218
|
+
* Judge one list section's mix against the list it shows (`shape`, from `layoutListShapes`; null when the source is no
|
|
10219
|
+
* list — the source check says that). `layer` is the layer's path (`sections[1].layers[0]`).
|
|
10220
|
+
*/
|
|
10221
|
+
declare function checkList(mix: LayoutListMix, shape: LayoutListShape | null, layer: string, never?: LayoutListNever | null): LayoutIssue[];
|
|
10222
|
+
/** Two list sections of one page never share an arrangement (list-ingredients §7): the later ones are the model's. */
|
|
10223
|
+
declare function pageListIssues(page: LayoutPage): LayoutIssue[];
|
|
10224
|
+
|
|
10205
10225
|
/** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
|
|
10206
10226
|
declare const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
|
|
10207
10227
|
/**
|
|
@@ -10234,7 +10254,11 @@ interface LayoutWireOptions {
|
|
|
10234
10254
|
/** The plan's lists: given, every layer carries `mix` and `parts` (LI1 — the list ingredients); absent, the wire is
|
|
10235
10255
|
* the gate-2 one (37 properties). */
|
|
10236
10256
|
lists?: ReadonlyArray<LayoutWireList>;
|
|
10257
|
+
/** L-D12: what this business type's lists never do — those words are not offered (the check repairs one anyway). */
|
|
10258
|
+
never?: LayoutListNever | null;
|
|
10237
10259
|
}
|
|
10260
|
+
/** The mix words offered to a business whose lists never do `never` (L-D12): the built words less the forbidden ones. */
|
|
10261
|
+
declare function layoutMixOffered(never?: LayoutListNever | null): string[];
|
|
10238
10262
|
/** `<list>.<role>` for every role of every list — what a list section's `parts` may name. */
|
|
10239
10263
|
declare function layoutWirePartWords(lists: ReadonlyArray<LayoutWireList>): string[];
|
|
10240
10264
|
interface LayoutWireSlot {
|
|
@@ -10669,6 +10693,8 @@ interface CheckLayoutContext {
|
|
|
10669
10693
|
lists?: ReadonlyArray<LayoutGalleryList>;
|
|
10670
10694
|
/** What each list holds (`layoutListShapes`): a list section's mix is judged against it (`checkList`, LI2). */
|
|
10671
10695
|
listShapes?: ReadonlyArray<LayoutListShape>;
|
|
10696
|
+
/** What this business type's lists never do (L-D12 — harness-core `BusinessType.lists`): repaired by `checkList`. */
|
|
10697
|
+
listNever?: LayoutListNever;
|
|
10672
10698
|
/** The site's page routes a button may lead to (`/contact`). */
|
|
10673
10699
|
routes?: string[];
|
|
10674
10700
|
/** Every word the owner gave and what was read from it: a number not in here was invented. */
|
|
@@ -10729,14 +10755,6 @@ declare function mendLayout(page: LayoutPage, issues: ReadonlyArray<LayoutIssue>
|
|
|
10729
10755
|
mended: LayoutIssue[];
|
|
10730
10756
|
};
|
|
10731
10757
|
|
|
10732
|
-
/**
|
|
10733
|
-
* Judge one list section's mix against the list it shows (`shape`, from `layoutListShapes`; null when the source is no
|
|
10734
|
-
* list — the source check says that). `layer` is the layer's path (`sections[1].layers[0]`).
|
|
10735
|
-
*/
|
|
10736
|
-
declare function checkList(mix: LayoutListMix, shape: LayoutListShape | null, layer: string): LayoutIssue[];
|
|
10737
|
-
/** Two list sections of one page never share an arrangement (list-ingredients §7): the later ones are the model's. */
|
|
10738
|
-
declare function pageListIssues(page: LayoutPage): LayoutIssue[];
|
|
10739
|
-
|
|
10740
10758
|
/**
|
|
10741
10759
|
* THE LIST TABLE (list-ingredients-plan.md; the contract's `layout.mjs` `LIST`, in the shape every mixed part shares —
|
|
10742
10760
|
* ingredients.md §2): the words of each ingredient, what each means, and which wait for a later phase and are drawn as
|
|
@@ -11030,6 +11048,9 @@ interface FooterRepair {
|
|
|
11030
11048
|
interface FooterContext {
|
|
11031
11049
|
name: string;
|
|
11032
11050
|
design: DesignChoices;
|
|
11051
|
+
/** The business's tagline: absent or blank, the brand block holds the name alone — never the Text's default words
|
|
11052
|
+
* (a copy placeholder never blocks publishing, so an empty one would go live as "Enter text here"). */
|
|
11053
|
+
tagline?: string;
|
|
11033
11054
|
}
|
|
11034
11055
|
/**
|
|
11035
11056
|
* The ONE judge of a footer mix: what the table's rules refuse is mended to the nearest mix that keeps them, and each mend
|
|
@@ -11249,5 +11270,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
|
|
|
11249
11270
|
/** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
|
|
11250
11271
|
declare function layoutRepairJsonSchema(): JsonSchema;
|
|
11251
11272
|
|
|
11252
|
-
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_FEATURE, 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_FOOTER_PATTERN, 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, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderIngredient, HeaderMixError, 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_OFFERED, 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_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, 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_FOOTER_PARTS, 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, checkFooter, 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, distinctFooter, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTokenOf, footerTokenWords, footerWireWords, footerWords, frameWords, headerMeaning, headerMix, headerMixOfNavKind, headerMixOfPlan, headerReferences, headerTokenOf, headerTokenWords, headerWords, 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, listBuiltWords, listIngredientWords, listMeaning, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, 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, withDistinctFooter, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
11253
|
-
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, FooterContext, FooterMix, FooterRepair, FrameRegion, HeaderGap, HeaderMix, 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, ListIngredient, ListWait, 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, PlanMixes, 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 };
|
|
11273
|
+
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_FEATURE, 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_FOOTER_PATTERN, 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, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderIngredient, HeaderMixError, 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_OFFERED, 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_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, 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_FOOTER_PARTS, 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, checkFooter, 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, distinctFooter, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTokenOf, footerTokenWords, footerWireWords, footerWords, frameWords, headerMeaning, headerMix, headerMixOfNavKind, headerMixOfPlan, headerReferences, headerTokenOf, headerTokenWords, headerWords, 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, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, 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, withDistinctFooter, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
11274
|
+
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, FooterContext, FooterMix, FooterRepair, FrameRegion, HeaderGap, HeaderMix, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, 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, PlanMixes, 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
|
@@ -14,7 +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
|
+
import { checkList, LayoutListNever, pageListIssues } from './check-list';
|
|
18
18
|
import {
|
|
19
19
|
LAYOUT_CHECK_VIEWPORT, LAYOUT_DRIFT, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, layoutBoxPx, layoutDriftPhoto, layoutHeldStill, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutShapeHasPurpose,
|
|
20
20
|
layoutStillLine, layoutTextFits, layoutVoidScreens, layoutVoids,
|
|
@@ -49,6 +49,8 @@ export interface CheckLayoutContext {
|
|
|
49
49
|
lists?: ReadonlyArray<LayoutGalleryList>;
|
|
50
50
|
/** What each list holds (`layoutListShapes`): a list section's mix is judged against it (`checkList`, LI2). */
|
|
51
51
|
listShapes?: ReadonlyArray<LayoutListShape>;
|
|
52
|
+
/** What this business type's lists never do (L-D12 — harness-core `BusinessType.lists`): repaired by `checkList`. */
|
|
53
|
+
listNever?: LayoutListNever;
|
|
52
54
|
/** The site's page routes a button may lead to (`/contact`). */
|
|
53
55
|
routes?: string[];
|
|
54
56
|
/** Every word the owner gave and what was read from it: a number not in here was invented. */
|
|
@@ -552,7 +554,7 @@ function examineLayout(page: LayoutPage, ctx: CheckLayoutContext, carried: Layou
|
|
|
552
554
|
if (g.scroll && !s.pin) add(LayoutIssueCode.Motion, `${lp}.gallery.scroll`, 'a scroll-turned gallery sits in a held section');
|
|
553
555
|
if (g.list) {
|
|
554
556
|
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));
|
|
557
|
+
issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp, ctx.listNever));
|
|
556
558
|
}
|
|
557
559
|
if (!g.scroll) swappable++;
|
|
558
560
|
slides.forEach((slide, k) => photoId(slide.photo?.id, `${lp}.gallery.slides[${k}]`));
|
|
@@ -21,11 +21,25 @@ const has = <T extends string>(list: ReadonlyArray<T>, v: string): boolean => (l
|
|
|
21
21
|
/** The words a repaired mix is said in (the brief and the owner read them). */
|
|
22
22
|
const say = (arrange: string) => listMeaning('arrange', arrange);
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* What a business type's lists never do (L-D12, the contract's harness `businessTypes[].lists` — harness-core
|
|
26
|
+
* `BusinessType.lists`, passed in as data: harness-core reads generation-core, never the other way round).
|
|
27
|
+
*/
|
|
28
|
+
export interface LayoutListNever {
|
|
29
|
+
readonly arranges: ReadonlyArray<string>;
|
|
30
|
+
readonly moves: ReadonlyArray<string>;
|
|
31
|
+
/** Why, in the owner's words — said with the repair. */
|
|
32
|
+
readonly say: ReadonlyArray<string>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** True when the type's art direction forbids nothing. */
|
|
36
|
+
export const listNeverIsEmpty = (never?: LayoutListNever | null): boolean => !never || (!never.arranges.length && !never.moves.length);
|
|
37
|
+
|
|
24
38
|
/**
|
|
25
39
|
* Judge one list section's mix against the list it shows (`shape`, from `layoutListShapes`; null when the source is no
|
|
26
40
|
* list — the source check says that). `layer` is the layer's path (`sections[1].layers[0]`).
|
|
27
41
|
*/
|
|
28
|
-
export function checkList(mix: LayoutListMix, shape: LayoutListShape | null, layer: string): LayoutIssue[] {
|
|
42
|
+
export function checkList(mix: LayoutListMix, shape: LayoutListShape | null, layer: string, never?: LayoutListNever | null): LayoutIssue[] {
|
|
29
43
|
const at = `${layer}.gallery.list`;
|
|
30
44
|
const refused: LayoutIssue[] = [];
|
|
31
45
|
const refuse = (code: LayoutIssueCode, path: string, message: string) => refused.push({ code, path, message });
|
|
@@ -81,6 +95,12 @@ export function checkList(mix: LayoutListMix, shape: LayoutListShape | null, lay
|
|
|
81
95
|
repair(`${R.strips[1]} strips fit at most — "${shape.alias}" has ${shape.items}: ${say(LayoutListArrange.Row)}`);
|
|
82
96
|
next.arrange = LayoutListArrange.Row;
|
|
83
97
|
}
|
|
98
|
+
// L-D12: the business's art direction — an arrangement its lists never take becomes a row.
|
|
99
|
+
const why = never?.say.join(' ') || 'this business never shows a list that way';
|
|
100
|
+
if (never && has(never.arranges, next.arrange)) {
|
|
101
|
+
repair(`${why} — ${say(LayoutListArrange.Row)}`);
|
|
102
|
+
next.arrange = LayoutListArrange.Row;
|
|
103
|
+
}
|
|
84
104
|
const longShown = shape.long.filter(role => next.parts.includes(role));
|
|
85
105
|
if (longShown.length && next.arrange === LayoutListArrange.Grid) {
|
|
86
106
|
repair(`its ${longShown.join(' and ')} run long — a grid would cut them: ${say(LayoutListArrange.Masonry)}`);
|
|
@@ -116,7 +136,12 @@ export function checkList(mix: LayoutListMix, shape: LayoutListShape | null, lay
|
|
|
116
136
|
}
|
|
117
137
|
}
|
|
118
138
|
|
|
119
|
-
// How the visitor moves through them.
|
|
139
|
+
// How the visitor moves through them — never a way the business's lists never move (L-D12).
|
|
140
|
+
const banned = never ? next.move.filter(m => has(never.moves, m)) : [];
|
|
141
|
+
if (banned.length) {
|
|
142
|
+
repair(`${why} — no ${banned.join(', ')}`);
|
|
143
|
+
next.move = next.move.filter(m => !banned.includes(m));
|
|
144
|
+
}
|
|
120
145
|
const moving = has(R.moving, arrange);
|
|
121
146
|
if (!moving && next.move.length) {
|
|
122
147
|
repair(`${say(arrange)} does not move — no ${next.move.join(', ')}`);
|
|
@@ -1541,7 +1541,7 @@ export function composeSite(plan: SitePlan, context: ComposeContext): ComposedSi
|
|
|
1541
1541
|
for (const r of footer.repairs) issues.push({ code: ComposeIssueCode.FooterMended, nodeId: GlobalSlot.Footer, owner: GlobalSlot.Footer, detail: r.said });
|
|
1542
1542
|
let globals = Object.values(GlobalSlot).map(slot => {
|
|
1543
1543
|
const pattern = slot === GlobalSlot.Footer
|
|
1544
|
-
? footerPattern(footer.mix, { name: plan.business.name, design })
|
|
1544
|
+
? footerPattern(footer.mix, { name: plan.business.name, design, tagline: plan.business.tagline })
|
|
1545
1545
|
: patternById(plan.globals[slot]) as SitePattern;
|
|
1546
1546
|
const node = composePattern(pattern, slot, { ...base, owner: slot, page: null, section: null, nextAlias: null });
|
|
1547
1547
|
node.isGlobal = true;
|
|
@@ -180,6 +180,9 @@ export interface FooterRepair {
|
|
|
180
180
|
export interface FooterContext {
|
|
181
181
|
name: string;
|
|
182
182
|
design: DesignChoices;
|
|
183
|
+
/** The business's tagline: absent or blank, the brand block holds the name alone — never the Text's default words
|
|
184
|
+
* (a copy placeholder never blocks publishing, so an empty one would go live as "Enter text here"). */
|
|
185
|
+
tagline?: string;
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
/** The phone the closing name must fit (the render check's). */
|
|
@@ -221,6 +224,18 @@ const part = (id: string): PatternNode => clone(PARTS[id]);
|
|
|
221
224
|
const laid = (node: PatternNode, lay: Readonly<Record<string, string>>): PatternNode => ({ ...node, lay: { ...(node.lay ?? {}), ...lay } });
|
|
222
225
|
const GAP = 'var(--iox-space-gap)';
|
|
223
226
|
const CENTRED = { alignItems: 'center', textAlign: 'center' };
|
|
227
|
+
const WORDS = new Set(['Text', 'Heading', 'Link']);
|
|
228
|
+
/** Centred through and through: every node of a composed site stamps its own `textAlign`, so centring a block's
|
|
229
|
+
* container never reaches its words — each word node is centred, each container centres its children. */
|
|
230
|
+
const centred = (node: PatternNode): PatternNode => ({
|
|
231
|
+
...laid(node, WORDS.has(node.t) ? { textAlign: 'center' } : CENTRED),
|
|
232
|
+
...(node.c ? { c: node.c.map(centred) } : {}),
|
|
233
|
+
});
|
|
234
|
+
/** The brand block: the name, and the tagline only when the business has one. */
|
|
235
|
+
const brandPart = (ctx: FooterContext): PatternNode => {
|
|
236
|
+
const node = part('brand');
|
|
237
|
+
return ctx.tagline?.trim() ? node : { ...node, c: (node.c ?? []).filter(n => n.fromBusiness !== 'tagline') };
|
|
238
|
+
};
|
|
224
239
|
|
|
225
240
|
/** The columns of a footer's grid: the name's block wider, one column per block it holds. */
|
|
226
241
|
function columnsOf(count: number): Pick<PatternNode, 'lay' | 'resp'> {
|
|
@@ -245,7 +260,7 @@ function holdPart(hold: string, mix: FooterMix): PatternNode {
|
|
|
245
260
|
}
|
|
246
261
|
|
|
247
262
|
/** The body: the blocks it holds, arranged. */
|
|
248
|
-
function bodyOf(mix: FooterMix): PatternNode[] {
|
|
263
|
+
function bodyOf(mix: FooterMix, ctx: FooterContext): PatternNode[] {
|
|
249
264
|
const holds = mix.holds.map(h => holdPart(h, mix));
|
|
250
265
|
switch (mix.arrange) {
|
|
251
266
|
case FooterArrange.Line: {
|
|
@@ -256,24 +271,24 @@ function bodyOf(mix: FooterMix): PatternNode[] {
|
|
|
256
271
|
return [row];
|
|
257
272
|
}
|
|
258
273
|
case FooterArrange.Centred: {
|
|
259
|
-
const blocks = mix.holds.map(h => (h === FooterHold.Pages ? laid(part('pageRow'), { justifyContent: 'center' }) :
|
|
274
|
+
const blocks = mix.holds.map(h => (h === FooterHold.Pages ? laid(part('pageRow'), { justifyContent: 'center' }) : centred(holdPart(h, mix))));
|
|
260
275
|
return [
|
|
261
|
-
{ t: 'Container', es: 'box', lay: { display: 'flex', flexDirection: 'column', gap: '28px', ...CENTRED }, c: [
|
|
276
|
+
{ t: 'Container', es: 'box', lay: { display: 'flex', flexDirection: 'column', gap: '28px', ...CENTRED }, c: [centred(brandPart(ctx)), ...blocks] },
|
|
262
277
|
part('rule'),
|
|
263
278
|
laid(part('copyright'), { textAlign: 'center' }),
|
|
264
279
|
];
|
|
265
280
|
}
|
|
266
281
|
default:
|
|
267
|
-
return [{ t: 'Container', es: 'box', ...columnsOf(holds.length), c: [
|
|
282
|
+
return [{ t: 'Container', es: 'box', ...columnsOf(holds.length), c: [brandPart(ctx), ...holds] }, part('rule'), part('copyright')];
|
|
268
283
|
}
|
|
269
284
|
}
|
|
270
285
|
|
|
271
286
|
/** A footer mix as a pattern: what the composer stamps as the site's footer (global, after the page). Check it first. */
|
|
272
287
|
export function footerPattern(mix: FooterMix, ctx: FooterContext): SitePattern {
|
|
273
288
|
const plain = mix.ground === FooterGround.Plain;
|
|
274
|
-
const call = mix.closing === FooterClosing.Call ? [mix.arrange === FooterArrange.Columns ? part('call') :
|
|
289
|
+
const call = mix.closing === FooterClosing.Call ? [mix.arrange === FooterArrange.Columns ? part('call') : centred(part('call'))] : [];
|
|
275
290
|
const name = mix.closing === FooterClosing.Name ? [closingName(ctx)] : [];
|
|
276
|
-
const c = [...(plain ? [part('rule')] : []), ...call, ...bodyOf(mix), ...name];
|
|
291
|
+
const c = [...(plain ? [part('rule')] : []), ...call, ...bodyOf(mix, ctx), ...name];
|
|
277
292
|
// The contract's shell; a Section with one child does not stack it (the patterns' rule, build-spec "more than one child").
|
|
278
293
|
const { lay, ...shell } = part('section');
|
|
279
294
|
const node: PatternNode = { ...shell, ...(c.length > 1 && lay ? { lay } : {}), ...(plain ? {} : { scheme: mix.ground }), c };
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
import { isPlainObject, PlainObject } from './shape-check';
|
|
7
7
|
import { LIST_INGREDIENTS, LIST_TABLE, listBuiltWords, listIngredientWords } from './list-table';
|
|
8
8
|
import { SPEC_SITE_LAYOUT } from './site-spec.generated';
|
|
9
|
+
import type { LayoutListNever } from './check-list';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* The LAYOUT WIRE (premium M8 gate 2, M8-G2-D2): the strict format a model writes ONE composed page in. Every key is
|
|
@@ -53,7 +54,6 @@ export const LAYOUT_MIX_WORDS: ReadonlyArray<string> = LIST_INGREDIENTS.flatMap(
|
|
|
53
54
|
/** The words the wire OFFERS — the built ones only (ingredients.md §3.3): a waiting word would put its stand-in on every
|
|
54
55
|
* site that asked for it. */
|
|
55
56
|
export const LAYOUT_MIX_OFFERED: ReadonlyArray<string> = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
|
|
56
|
-
const MIX_HINT = LIST_INGREDIENTS.map(k => `${k}:${listBuiltWords(k).join('|')}${(LIST_TABLE.many as ReadonlyArray<string>).includes(k) ? ' (any)' : ''}`).join(' · ');
|
|
57
57
|
|
|
58
58
|
/** A list a composed page may show, as the wire's parts enum needs it (`layoutListShapes` gives these). */
|
|
59
59
|
export interface LayoutWireList { alias: string; roles: ReadonlyArray<string> }
|
|
@@ -62,8 +62,20 @@ export interface LayoutWireOptions {
|
|
|
62
62
|
/** The plan's lists: given, every layer carries `mix` and `parts` (LI1 — the list ingredients); absent, the wire is
|
|
63
63
|
* the gate-2 one (37 properties). */
|
|
64
64
|
lists?: ReadonlyArray<LayoutWireList>;
|
|
65
|
+
/** L-D12: what this business type's lists never do — those words are not offered (the check repairs one anyway). */
|
|
66
|
+
never?: LayoutListNever | null;
|
|
65
67
|
}
|
|
66
68
|
|
|
69
|
+
/** The mix words offered to a business whose lists never do `never` (L-D12): the built words less the forbidden ones. */
|
|
70
|
+
export function layoutMixOffered(never?: LayoutListNever | null): string[] {
|
|
71
|
+
const banned = new Set([...(never?.arranges ?? []).map(w => `arrange${MIX_SEPARATOR}${w}`), ...(never?.moves ?? []).map(w => `move${MIX_SEPARATOR}${w}`)]);
|
|
72
|
+
return LAYOUT_MIX_OFFERED.filter(w => !banned.has(w));
|
|
73
|
+
}
|
|
74
|
+
const mixHint = (offered: ReadonlyArray<string>) => LIST_INGREDIENTS.map(k => {
|
|
75
|
+
const words = offered.filter(w => w.startsWith(`${k}${MIX_SEPARATOR}`)).map(w => w.slice(k.length + MIX_SEPARATOR.length));
|
|
76
|
+
return `${k}:${words.join('|')}${(LIST_TABLE.many as ReadonlyArray<string>).includes(k) ? ' (any)' : ''}`;
|
|
77
|
+
}).join(' · ');
|
|
78
|
+
|
|
67
79
|
/** `<list>.<role>` for every role of every list — what a list section's `parts` may name. */
|
|
68
80
|
export function layoutWirePartWords(lists: ReadonlyArray<LayoutWireList>): string[] {
|
|
69
81
|
return lists.flatMap(l => l.roles.map(r => `${l.alias}${PART_SEPARATOR}${r}`));
|
|
@@ -96,7 +108,7 @@ export function layoutWireJsonSchema(options: LayoutWireOptions = {}): JsonSchem
|
|
|
96
108
|
const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
|
|
97
109
|
const lists: Record<string, JsonSchema> = options.lists
|
|
98
110
|
? {
|
|
99
|
-
mix: listOf(jsonOneOf(
|
|
111
|
+
mix: listOf(jsonOneOf(layoutMixOffered(options.never)), `gallery showing a list (source): how its items are shown, one word per choice — ${mixHint(layoutMixOffered(options.never))}; [] for none`),
|
|
100
112
|
parts: listOf(jsonOneOf(partWords.length ? partWords : [NONE]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
|
|
101
113
|
}
|
|
102
114
|
: {};
|