@vectoriox/iox-ui 5.87.0 → 5.89.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.
Files changed (38) hide show
  1. package/actions-core/index.d.ts +17 -3
  2. package/composite-core/index.d.ts +208 -2
  3. package/design-core/index.d.ts +373 -1
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +30 -4
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +659 -118
  7. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +444 -3
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1082 -51
  11. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +244 -7
  13. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui.mjs +604 -20
  15. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  16. package/generation-core/index.d.ts +375 -2
  17. package/index.d.ts +196 -2
  18. package/package.json +1 -1
  19. package/scene-core/index.d.ts +167 -2
  20. package/src/actions-core/action.model.ts +3 -0
  21. package/src/actions-core/element-actions.ts +32 -3
  22. package/src/composite-core/marquee-runtime.ts +255 -0
  23. package/src/composite-core/marquee.ts +267 -0
  24. package/src/composite-core/public-api.ts +3 -0
  25. package/src/composite-core/scroll-recipes.ts +74 -0
  26. package/src/composite-core/slider.ts +3 -2
  27. package/src/composite-core/structure.ts +7 -0
  28. package/src/design-core/contrast-audit.ts +6 -1
  29. package/src/design-core/flavor-spec.generated.ts +435 -1
  30. package/src/generation-core/compose-layout.ts +821 -0
  31. package/src/generation-core/compose-site.ts +14 -2
  32. package/src/generation-core/layout-language.ts +354 -0
  33. package/src/generation-core/node-baselines.generated.ts +5 -1
  34. package/src/generation-core/public-api.ts +2 -0
  35. package/src/scene-core/public-api.ts +1 -0
  36. package/src/scene-core/scroll-driver.ts +98 -0
  37. package/src/scene-core/scroll-range.ts +208 -0
  38. package/styles/iox-design.css +66 -1
@@ -5958,6 +5958,8 @@ declare const SAMPLE_IMAGE_REF: RegExp;
5958
5958
  declare function sampleImageRef(index: number): string;
5959
5959
  /** The 1-based index a `{sampleImage:k}` value names, or null. */
5960
5960
  declare function parseSampleImageRef(value: unknown): number | null;
5961
+ /** A NEW Form stamped from a forms-core preset, exactly as a pattern's preset form is (premium M8: a layout's form layer). */
5962
+ declare function composePresetForm(id: string, presetId: string, owner: string): SerializedNode;
5961
5963
  /**
5962
5964
  * Compose a Site Plan. Throws `SitePlanError` (every issue) when the plan does not validate — the
5963
5965
  * composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
@@ -7794,5 +7796,376 @@ declare function applyPictureScrims(trees: ReadonlyArray<SerializedNode>, chosen
7794
7796
  /** The relative luminance of a CSS colour (for a review sheet or a log), or null. */
7795
7797
  declare function luminanceOf(colour: string): number | null;
7796
7798
 
7797
- export { ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, 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, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, chooseScrim, composeNavHeader, composeSection, composeSite, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedDataSources, describePlanData, describeShapeKey, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, frameWords, isActiveBuild, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, luminanceOf, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, pageToWire, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneMenuPages, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, recipeListBinds, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, sampleImageRef, scoreStockPhoto, sectionEntrances, sectionPatternIds, sectionToWire, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, siteNavPages, slotBudget, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPicture, writtenTexts };
7798
- export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposedDataSource, ComposedItem, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, JsonSchema, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PlacedFilm, PlainObject, PlanChange, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionInput, SectionOptions, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
7799
+ /**
7800
+ * The LAYOUT LANGUAGE (premium components M8 — the prototype's CL2 / CL2.1, premium-sites plan "Breaking limits"): a page
7801
+ * composed as layers of closed kinds placed on a 12-column grid, with closed sizes, the look's five colours, roles, time
7802
+ * entrances, a parallax depth, held sections whose layers move by tracks, sideways sections, galleries, forms and a phone
7803
+ * reading order. The model writes no CSS and no node tree; `composeLayout` stamps ordinary builder nodes from it.
7804
+ *
7805
+ * Gate 1 types the shape the three proof sites were saved in (iox-ai-guidance `prototypes/breaking-limits/round4|round3`).
7806
+ * The closed lists move into the contract in gate 2 (m8-proof-sites.md, M8-D1).
7807
+ */
7808
+ declare enum LayoutLayerKind {
7809
+ Word = "word",
7810
+ Heading = "heading",
7811
+ Text = "text",
7812
+ Photo = "photo",
7813
+ Gallery = "gallery",
7814
+ Button = "button",
7815
+ List = "list",
7816
+ Number = "number",
7817
+ Shape = "shape",
7818
+ Label = "label",
7819
+ Form = "form",
7820
+ Marquee = "marquee"
7821
+ }
7822
+ declare enum LayoutSize {
7823
+ Xs = "xs",
7824
+ S = "s",
7825
+ M = "m",
7826
+ L = "l",
7827
+ Xl = "xl",
7828
+ Xxl = "xxl",
7829
+ /** As wide as its columns allow — a word, never a sentence. */
7830
+ Screen = "screen"
7831
+ }
7832
+ /** The look's five colours, by role. */
7833
+ declare enum LayoutColour {
7834
+ Ground = "ground",
7835
+ Ink = "ink",
7836
+ Accent = "accent",
7837
+ Soft = "soft",
7838
+ Muted = "muted"
7839
+ }
7840
+ declare enum LayoutRole {
7841
+ Lead = "lead",
7842
+ Support = "support",
7843
+ Decoration = "decoration",
7844
+ Static = "static"
7845
+ }
7846
+ declare enum LayoutEnter {
7847
+ None = "none",
7848
+ Fade = "fade",
7849
+ FadeRise = "fadeRise",
7850
+ ScaleIn = "scaleIn",
7851
+ ClipReveal = "clipReveal",
7852
+ MaskRise = "maskRise",
7853
+ BlurIn = "blurIn",
7854
+ Pop = "pop"
7855
+ }
7856
+ declare enum LayoutDepth {
7857
+ Back = "back",
7858
+ Mid = "mid",
7859
+ Front = "front"
7860
+ }
7861
+ declare enum LayoutTransition {
7862
+ Cut = "cut",
7863
+ Flood = "flood",
7864
+ WipeUp = "wipe-up",
7865
+ WipeDown = "wipe-down",
7866
+ WipeStart = "wipe-start",
7867
+ WipeEnd = "wipe-end"
7868
+ }
7869
+ declare enum LayoutEase {
7870
+ Out = "out",
7871
+ InOut = "inOut",
7872
+ Drawer = "drawer",
7873
+ Linear = "linear"
7874
+ }
7875
+ declare enum LayoutPace {
7876
+ Slow = "slow",
7877
+ Normal = "normal",
7878
+ Quick = "quick"
7879
+ }
7880
+ declare enum LayoutSide {
7881
+ Bottom = "bottom",
7882
+ Top = "top",
7883
+ Start = "start",
7884
+ End = "end"
7885
+ }
7886
+ declare enum LayoutTrackProp {
7887
+ X = "x",
7888
+ Y = "y",
7889
+ Scale = "scale",
7890
+ Opacity = "opacity",
7891
+ Rotate = "rotate",
7892
+ Clip = "clip",
7893
+ Blur = "blur"
7894
+ }
7895
+ declare enum LayoutAlign {
7896
+ Start = "start",
7897
+ Center = "center",
7898
+ End = "end"
7899
+ }
7900
+ declare enum LayoutBleed {
7901
+ None = "none",
7902
+ Start = "start",
7903
+ End = "end",
7904
+ Both = "both"
7905
+ }
7906
+ /** A pool photo's shape (the inventory measures each one): what it keeps where nothing else gives it a height. */
7907
+ declare enum LayoutPhotoShape {
7908
+ Wide = "wide",
7909
+ Landscape = "landscape",
7910
+ Square = "square",
7911
+ Portrait = "portrait",
7912
+ Tall = "tall"
7913
+ }
7914
+ declare const LAYOUT_PHOTO_ASPECT: Readonly<Record<LayoutPhotoShape, string>>;
7915
+ declare enum LayoutSectionKind {
7916
+ Content = "content",
7917
+ Inhale = "inhale"
7918
+ }
7919
+ declare enum LayoutButtonVariant {
7920
+ Primary = "primary",
7921
+ Secondary = "secondary",
7922
+ Ghost = "ghost"
7923
+ }
7924
+ /** The product SliderContainer's own effects (iox-ui `slider-options.ts`). */
7925
+ declare enum LayoutGalleryEffect {
7926
+ Slide = "slide",
7927
+ Fade = "fade",
7928
+ Cube = "cube",
7929
+ Flip = "flip",
7930
+ Coverflow = "coverflow",
7931
+ Cards = "cards",
7932
+ Creative = "creative"
7933
+ }
7934
+ declare enum LayoutNavKind {
7935
+ Bar = "bar",
7936
+ Corner = "corner",
7937
+ Index = "index",
7938
+ Side = "side"
7939
+ }
7940
+ interface LayoutTrack {
7941
+ prop: `${LayoutTrackProp}`;
7942
+ from: number;
7943
+ to: number;
7944
+ /** The part of the section's scroll it plays over (0 = it arrives, 1 = it leaves; held: 0..1 is the hold). */
7945
+ at: [number, number];
7946
+ ease?: `${LayoutEase}`;
7947
+ }
7948
+ interface LayoutGallery {
7949
+ slides: Array<{
7950
+ photo: {
7951
+ id: string;
7952
+ };
7953
+ caption?: string;
7954
+ }>;
7955
+ effect?: `${LayoutGalleryEffect}`;
7956
+ perView?: number | 'auto';
7957
+ centered?: boolean;
7958
+ freeMode?: boolean;
7959
+ loop?: boolean;
7960
+ /** 0 or milliseconds. */
7961
+ autoplay?: number;
7962
+ /** Captions and pictures move at their own speed inside each slide (Swiper parallax). */
7963
+ drift?: boolean;
7964
+ /** Only in a held section: the page's scroll turns the slides. */
7965
+ scroll?: boolean;
7966
+ }
7967
+ interface LayoutForm {
7968
+ preset: 'lead' | 'contact' | 'booking' | 'newsletter';
7969
+ title?: string;
7970
+ intro?: string;
7971
+ /** The chips a preset has (lead: needs, budget; booking: guests), in the business's language. */
7972
+ options?: Partial<Record<'needs' | 'budget' | 'guests', string[]>>;
7973
+ submit?: string;
7974
+ successTitle?: string;
7975
+ successText?: string;
7976
+ channel?: {
7977
+ label: string;
7978
+ href?: string;
7979
+ };
7980
+ }
7981
+ interface LayoutLayer {
7982
+ kind: `${LayoutLayerKind}`;
7983
+ role?: `${LayoutRole}`;
7984
+ text?: string;
7985
+ items?: string[];
7986
+ photo?: {
7987
+ id: string;
7988
+ };
7989
+ gallery?: LayoutGallery;
7990
+ form?: LayoutForm;
7991
+ variant?: `${LayoutButtonVariant}`;
7992
+ /** Grid lines: 1..13, or 1..12×track+1 in a sideways section. */
7993
+ col: [number, number];
7994
+ row: [number, number];
7995
+ size?: `${LayoutSize}`;
7996
+ color?: `${LayoutColour}`;
7997
+ align?: `${LayoutAlign}`;
7998
+ z?: number;
7999
+ bleed?: `${LayoutBleed}`;
8000
+ rotate?: number;
8001
+ fit?: 'cover' | 'contain';
8002
+ /** A button's section id. */
8003
+ to?: string;
8004
+ scrim?: boolean;
8005
+ enter?: `${LayoutEnter}`;
8006
+ from?: `${LayoutSide}`;
8007
+ beat?: number;
8008
+ depth?: `${LayoutDepth}`;
8009
+ inner?: number;
8010
+ kinetic?: boolean;
8011
+ motion?: LayoutTrack[];
8012
+ }
8013
+ interface LayoutSection {
8014
+ id: string;
8015
+ kind?: `${LayoutSectionKind}`;
8016
+ signature?: boolean;
8017
+ screens: number;
8018
+ pin?: boolean;
8019
+ track?: number;
8020
+ /** A colour name, or `photo:<id>`. */
8021
+ ground?: string;
8022
+ rows: number;
8023
+ transition?: `${LayoutTransition}`;
8024
+ layers: LayoutLayer[];
8025
+ /** Every layer's index once, in a phone's reading order. */
8026
+ phone?: number[];
8027
+ }
8028
+ interface LayoutSite {
8029
+ name: string;
8030
+ idea?: string;
8031
+ locale?: string;
8032
+ dial?: 'distinct' | 'daring';
8033
+ /** CL2.1: `{ preset, seed? }`. A CL2 site carries a round-three `recipe` and colours (the runner maps it to a preset). */
8034
+ look?: {
8035
+ preset?: string;
8036
+ seed?: string;
8037
+ recipe?: string;
8038
+ accent?: string;
8039
+ };
8040
+ motion?: {
8041
+ ease?: `${LayoutEase}`;
8042
+ pace?: `${LayoutPace}`;
8043
+ };
8044
+ nav?: {
8045
+ kind?: `${LayoutNavKind}`;
8046
+ links?: Array<{
8047
+ label: string;
8048
+ to: string;
8049
+ }>;
8050
+ };
8051
+ sections: LayoutSection[];
8052
+ }
8053
+ /** A size as CSS — the prototype's `.s-*` rules. `screen` is computed per word (`screenFontSize`). */
8054
+ declare const LAYOUT_FONT_SIZE: Readonly<Record<Exclude<LayoutSize, LayoutSize.Screen>, string>>;
8055
+ /** A colour name as the look's token (what the prototype probed off the preset: `--iox-bg` … `--iox-text-muted`). */
8056
+ declare const LAYOUT_COLOUR_TOKEN: Readonly<Record<LayoutColour, string>>;
8057
+ /** Words in the accent colour read the accent's text shade (round four: `accent-text`). */
8058
+ declare const LAYOUT_ACCENT_TEXT = "var(--iox-accent-text)";
8059
+ /** Emil's easing tokens (never ease-in). */
8060
+ declare const LAYOUT_EASING: Readonly<Record<LayoutEase, string>>;
8061
+ /** How long an entrance takes, by the look's pace and the layer's role, and how far apart the beats are. */
8062
+ declare const LAYOUT_PACE: Readonly<Record<LayoutPace, {
8063
+ lead: number;
8064
+ support: number;
8065
+ decoration: number;
8066
+ gap: number;
8067
+ }>>;
8068
+ /** A stagger that shrinks as the beats go on, capped at the sixth — never a metronome. */
8069
+ declare const LAYOUT_BEAT_DELAY: ReadonlyArray<number>;
8070
+ /** How far a rise travels, by role (px). */
8071
+ declare const LAYOUT_RISE: Readonly<Record<LayoutRole, number>>;
8072
+ /** The kinds a visitor OPERATES: never moved for style (Emil gate 4). */
8073
+ declare const LAYOUT_OPERATED: ReadonlySet<string>;
8074
+ declare const LAYOUT_TEXT_KINDS: ReadonlySet<string>;
8075
+ /** The grid's gutter and column gap (the prototype's `--gutter` and `.grid`). */
8076
+ declare const LAYOUT_GUTTER = "max(4vw, 16px)";
8077
+ declare const LAYOUT_COLUMN_GAP = "1.2vw";
8078
+ /** A depth's `params.phone`: scene-core `ParallaxPhone.Rest` — stacked on a phone, a layer never glides into its neighbour.
8079
+ * Stamped verbatim and read where it plays (not imported, as `PatternTrack`); compose-layout.spec holds the two equal. */
8080
+ declare const LAYOUT_DEPTH_ON_PHONE = "rest";
8081
+ /** A control's tooltip words: the main entry's `A11yTrait.Tooltip` (premium M5), held equal by compose-layout.spec. */
8082
+ declare const LAYOUT_TOOLTIP_TRAIT = "tooltip";
8083
+ /** The phone: at or under this breakpoint a section stacks in its `phone` order (the `mobile` breakpoint, ≤ 767px). */
8084
+ declare const LAYOUT_PHONE_BREAKPOINT = "mobile";
8085
+ /** A phone section's padding above and below (M1.3: 56). */
8086
+ declare const LAYOUT_PHONE_PADDING = "56px";
8087
+ /** The kind of layer, for the phone's rhythm: the space between two stacked layers says how they belong (M1.3). */
8088
+ declare function phoneGapBefore(prev: LayoutLayer | null, next: LayoutLayer): number;
8089
+ /**
8090
+ * A `screen` word's size: its letters fill its columns' width (a display face runs about `advance` em a letter) and
8091
+ * never stand taller than its rows; never under 36px or over 560px (M8-G1: estimated, the product fits nothing in the
8092
+ * browser). `rows` 0 sizes by width alone (a phone's stacked word). Held sections are one screen tall.
8093
+ */
8094
+ declare function screenFontSize(text: string, cols: number, rows: number, sectionRows: number, screens: number, advance?: number): string;
8095
+
8096
+ /**
8097
+ * THE layout composer (premium components M8, gate 1): a page written in the layout language (`layout-language.ts`) in,
8098
+ * ordinary builder nodes out — the same `createSerializedNode` every composed page is made of, so the builder reloads it
8099
+ * and saves it unchanged and the engine renders it with nothing new to learn. No second renderer: a section is a Section
8100
+ * holding a 12-column grid, a held section is a Scene, a layer is a Heading / Text / Image / Slider / Form / Button
8101
+ * placed on the grid, its time entrance a `viewportEnter` interaction, its depth a `scrollProgress` parallax, its held
8102
+ * motion scene-core tracks. What the product cannot say yet is returned as a GAP (named in m8-proof-sites.md), never
8103
+ * worked around with CSS. Pure and deterministic.
8104
+ */
8105
+ declare enum LayoutGapCode {
8106
+ /** M8-G1: a `screen` word is sized from an estimate of its letters, not fitted to its cell in the browser. */
8107
+ ScreenFit = "screen-fit",
8108
+ /** M8-G2: no blur — a `blurIn` entrance rises without it, a `blur` track is dropped. */
8109
+ Blur = "blur",
8110
+ /** M8-G3: `scaleIn` / `pop` start at the product's 0.8, not 0.95 / 0.9, and `pop` has no overshoot. */
8111
+ ScaleIn = "scale-in",
8112
+ /** M8-G4: a held layer's keys ease one way (smoothstep), whatever the layout's ease. */
8113
+ TrackEase = "track-ease",
8114
+ /** M8-G5: a depth glides at the product's one speed (no per-look scale), and a picture's own drift inside its frame
8115
+ * is a fixed over-scale. */
8116
+ DepthSpeed = "depth-speed",
8117
+ /** M8-G6: the navigation is the product's bar — a corner, index or side menu is drawn as the bar. */
8118
+ NavKind = "nav-kind",
8119
+ /** M8-G7: a link to a section scrolls by an action; it is no address (`#id`) a visitor can share. */
8120
+ SectionLink = "section-link",
8121
+ /** M8-G9: a slider on a held section's stage is played by the scroll whether or not the layout asked. */
8122
+ StageSlider = "stage-slider",
8123
+ /** M8-G10: a flood opens from the centre as an inset, not as a circle from the top edge. */
8124
+ Flood = "flood",
8125
+ /** M8-G11: a held section stacks on a phone and its layers stand at rest (they cannot say "no motion here"). */
8126
+ PhoneRest = "phone-rest",
8127
+ /** Motion or a sideways track on a section that is not held: the product moves layers by tracks only in a Scene. */
8128
+ UnheldMotion = "unheld-motion",
8129
+ /** A form layer wears the product's preset: its fields are the preset's, the layout's options fill its choices. */
8130
+ FormPreset = "form-preset"
8131
+ }
8132
+ interface LayoutGap {
8133
+ code: LayoutGapCode;
8134
+ /** `sections[i].layers[j]`, `sections[i]` or `nav`. */
8135
+ path: string;
8136
+ detail: string;
8137
+ }
8138
+ declare enum LayoutColourMode {
8139
+ Light = "light",
8140
+ Dark = "dark"
8141
+ }
8142
+ interface ComposeLayoutOptions {
8143
+ /** Prefix of every node id (`<id>-s0-l1`). */
8144
+ id?: string;
8145
+ /** The look's colour mode: which colour names are light (a scrim under light words is dark, and the other way). */
8146
+ mode?: `${LayoutColourMode}`;
8147
+ /** Where the studio keeps each photo (its media URL). */
8148
+ photoSrc: (photoId: string) => string;
8149
+ /** A photo's description; '' (decorative) when not given. */
8150
+ photoAlt?: (photoId: string) => string;
8151
+ /** A photo's shape: the height its frame keeps where it stacks (a phone, a Scene with no scroll). Landscape when not given. */
8152
+ photoShape?: (photoId: string) => `${LayoutPhotoShape}` | undefined;
8153
+ }
8154
+ interface ComposedLayout {
8155
+ /** The page's layout: one root per section. */
8156
+ layout: SerializedNode[];
8157
+ /** The site header (a global BEFORE element) with the layout's section links, or null when the layout has no nav. */
8158
+ header: SerializedNode | null;
8159
+ /** The node id each section's id became (what its links scroll to). */
8160
+ sections: Record<string, string>;
8161
+ gaps: LayoutGap[];
8162
+ }
8163
+ /**
8164
+ * A layout-language page → its layout and header. Deterministic: the same layout composes to byte-identical nodes.
8165
+ * Refuses (ComposeError) a link to a section the layout does not have; everything the product cannot say comes back in
8166
+ * `gaps`.
8167
+ */
8168
+ declare function composeLayout(site: LayoutSite, options: ComposeLayoutOptions): ComposedLayout;
8169
+
8170
+ export { ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_EASING, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_RISE, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutEase, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutLayerKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutRole, LayoutSectionKind, LayoutSide, LayoutSize, LayoutTrackProp, LayoutTransition, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, 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, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, chooseScrim, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedDataSources, describePlanData, describeShapeKey, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, frameWords, isActiveBuild, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, luminanceOf, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, pageToWire, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, recipeListBinds, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, sampleImageRef, scoreStockPhoto, screenFontSize, sectionEntrances, sectionPatternIds, sectionToWire, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, siteNavPages, slotBudget, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPicture, writtenTexts };
8171
+ export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, JsonSchema, LayoutForm, LayoutGallery, LayoutGap, LayoutLayer, LayoutSection, LayoutSite, LayoutTrack, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PlacedFilm, PlainObject, PlanChange, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionInput, SectionOptions, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };