@vectoriox/iox-ui 5.148.0 → 5.150.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.
@@ -4,7 +4,7 @@ export { HeaderInk } from '@vectoriox/iox-ui/design-core';
4
4
  import { SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
5
5
  import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
6
6
  import { CardPart, ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
7
- import { CheckoutGateRefusal } from '@vectoriox/iox-ui/commerce-core';
7
+ import { CommerceLabel, CheckoutGateRefusal } from '@vectoriox/iox-ui/commerce-core';
8
8
  import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
9
9
 
10
10
  declare const SPEC_SITE_PLAN_SHAPE: {
@@ -11637,7 +11637,7 @@ interface NavShapeOptions {
11637
11637
  * traits on the drawer, the menu button and the drawer's Close; a default writes nothing (R-H4). Absent: the parts
11638
11638
  * keep what they have. */
11639
11639
  look?: Partial<MenuLook>;
11640
- /** The site's language, for the words a menu button shows (`word`: Menu ⇄ Close). Default English. */
11640
+ /** The site's language, for the words the menu's parts show and are named by (`menuWords`). Default English. */
11641
11641
  locale?: string;
11642
11642
  }
11643
11643
  interface NavShapeResult {
@@ -11659,10 +11659,17 @@ declare const NAV_SHAPE_COPY: {
11659
11659
  readonly more: "More";
11660
11660
  readonly home: "Home";
11661
11661
  };
11662
- declare function menuWords(locale: string | undefined): {
11662
+ /** The words the menu's parts say, in the site's language — a `word` menu button's visible Menu ⇄ Close (HI2a) and the
11663
+ * names a screen reader hears (the menu button, the drawer, its Close, the bar's More, the drawer's Home link). A site
11664
+ * in a language the table does not hold speaks English, as it always did (vectoriox/iox-ui#100). */
11665
+ interface MenuWords {
11663
11666
  menu: string;
11664
11667
  close: string;
11665
- };
11668
+ closeMenu: string;
11669
+ more: string;
11670
+ home: string;
11671
+ }
11672
+ declare function menuWords(locale: string | undefined): MenuWords;
11666
11673
  /** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
11667
11674
  declare const NAV_PART_LABELS: Readonly<Record<string, string>>;
11668
11675
  declare function barIconForRoute(route: string): string;
@@ -11709,7 +11716,7 @@ interface AddBarItemResult {
11709
11716
  * The bar's Items list "Add item" (board 2): one more item, before More — the next navigation page the
11710
11717
  * bar does not link to yet (Home when every page is there). Refused at five (Q2). Input not mutated.
11711
11718
  */
11712
- declare function addBarItem(globals: ReadonlyArray<SerializedNode>, options?: Pick<NavShapeOptions, 'newId' | 'pages'>): AddBarItemResult;
11719
+ declare function addBarItem(globals: ReadonlyArray<SerializedNode>, options?: Pick<NavShapeOptions, 'newId' | 'pages' | 'locale'>): AddBarItemResult;
11713
11720
  interface BarItemsEditResult {
11714
11721
  globals: SerializedNode[];
11715
11722
  /** False when nothing changed: no bar, an unknown item, or the bar would drop below three items (Q2). */
@@ -12840,11 +12847,29 @@ declare function planHeader(plan: SitePlan): {
12840
12847
  };
12841
12848
  /** The header pattern the Studio template stamps — and the builder palette's "Navigation bar". */
12842
12849
  declare const SITE_HEADER_PATTERN = "nav.inline-cta";
12843
- /** A page of the studio as the builder lists it. */
12850
+ /** A stored page's status, as iox-cms keeps it. */
12851
+ declare enum SitePageStatus {
12852
+ Draft = "draft",
12853
+ Published = "published",
12854
+ Archived = "archived"
12855
+ }
12856
+ /** iox-cms `HandoverState.Moved` (`src/pages/page-handover.ts`): a page a build replaced, moved aside to its `-previous`
12857
+ * address once the new page went live — a copy kept for the owner, never a page of the site. */
12858
+ declare const SITE_PAGE_MOVED_ASIDE = "moved";
12859
+ /** A page of the studio as the builder lists it. The facts after `isHome` are the stored page's; a caller that does not
12860
+ * know them (a Site Plan, a spec) leaves them out and the page counts as live. */
12844
12861
  interface SitePageRef {
12845
12862
  readonly name: string;
12846
12863
  readonly route: string;
12847
12864
  readonly isHome?: boolean;
12865
+ /** `status` as stored — absent: live. */
12866
+ readonly status?: string;
12867
+ /** A legal page (`pageSettings.legal`): linked from the footer, never from the navigation. */
12868
+ readonly legal?: boolean;
12869
+ /** The build hand-over (`pages.handover`): a page moved aside is not a page of the site. */
12870
+ readonly handover?: {
12871
+ readonly state?: string;
12872
+ } | null;
12848
12873
  }
12849
12874
  /** What the header is composed from when there is no Site Plan: the studio's name and its pages. */
12850
12875
  interface NavHeaderInput {
@@ -12882,8 +12907,17 @@ interface ComposedNavHeader {
12882
12907
  * none). Empty for the drawer shape. */
12883
12908
  companions: SerializedNode[];
12884
12909
  }
12885
- /** The pages a navigation links to: every page but Home (the brand links there) and template pages
12886
- * (a `/work/:slug` route has no single address), in the studio's order. */
12910
+ /** The pages of the site: every page the studio holds but an archived one and a copy a build moved aside. What a section
12911
+ * may link to (a button to /contact), what a header is composed among. Pure. */
12912
+ declare function sitePages(pages: ReadonlyArray<SitePageRef>): SitePageRef[];
12913
+ /**
12914
+ * THE rule for which pages a navigation links to (iox-cms-client#82) — the header the builder composes, its phone menu,
12915
+ * "Pages in the bar", a section's `$navPages`: a page of the site (`sitePages`) that a visitor reaches on the live site —
12916
+ * published (a draft is a 404 there) — and is not Home (the brand links there), not a template page (a `/work/:slug`
12917
+ * route has no single address), not a legal page (the footer's), one per address, in the studio's order. While NOTHING
12918
+ * of the studio is published yet (a site just built, before Publish site) the drafts stand in: Publish site puts them
12919
+ * live together, so none of them is a dead link on the site it will be. Pure.
12920
+ */
12887
12921
  declare function siteNavPages(pages: ReadonlyArray<SitePageRef>): SitePageRef[];
12888
12922
  /** What a studio's header is judged against (`checkHeader`) — the same context `composeNavHeader` checks with. */
12889
12923
  declare function navHeaderContext(input: Omit<NavHeaderInput, 'mix' | 'asAsked'>): HeaderContext;
@@ -14865,6 +14899,61 @@ declare function factIssues(texts: ReadonlyArray<WrittenText>, ctx: PlanWordCont
14865
14899
  /** The words to avoid and the facts never given, in every written text of the plan. */
14866
14900
  declare function planWordIssues(plan: SitePlan, ctx: PlanWordContext): PlanWordIssue[];
14867
14901
 
14902
+ /**
14903
+ * What the site audit SAYS, in the admin's language (vectoriox/iox-ui#109). Every finding code has ONE entry here:
14904
+ * its sentence in English and Hebrew (the commerce-core `CommerceLabel` shape — the core carries both, a string-rendered
14905
+ * screen and iox-cms have no translation service), the variants a code has (which mode, why a statement is owed), and
14906
+ * how its repeats are grouped with the sentence a group is said in. `auditSite` writes a finding's English `message` from
14907
+ * this table and the values it names (`SiteFinding.params`), so the server's words and a screen's are one source.
14908
+ *
14909
+ * Only TYPES are imported from `audit-site` (the codes are written as their string values) — audit-site imports this
14910
+ * file at runtime, and a value import back would be a module cycle.
14911
+ */
14912
+ type FindingSentence = CommerceLabel;
14913
+ /** How a code's repeats become one row on a screen. */
14914
+ declare enum FindingGrouping {
14915
+ /** One row per page (or global): "12 boxes wait for a picture" on Home, another for About. */
14916
+ Page = "page",
14917
+ /** One row for the site: "15 sample items", "6 pages have no description for search results". */
14918
+ Site = "site",
14919
+ /** Never grouped: each finding names something different (a fact, a product with its own page, a connector). */
14920
+ Never = "never"
14921
+ }
14922
+ interface FindingWords {
14923
+ /** The sentence for one finding — or one per variant (`params.variant`). `{name}` is replaced by `params.name`. */
14924
+ readonly one: FindingSentence | Readonly<Record<string, FindingSentence>>;
14925
+ /** The sentence for a group of `{n}` (absent: never grouped). */
14926
+ readonly many?: FindingSentence;
14927
+ readonly group: FindingGrouping;
14928
+ }
14929
+ /** Every code's words. Typed by the codes' values, so a new code without words does not compile. */
14930
+ declare const SITE_FINDING_WORDS: Readonly<Record<`${SiteFindingCode}`, FindingWords>>;
14931
+ /** The values a finding's sentence names (a page's or an item's name, a count, a route…), and its variant. */
14932
+ type FindingParams = Readonly<Record<string, string | number>>;
14933
+ /** The English sentence `auditSite` stores as a finding's `message` (one source with the screens' words). */
14934
+ declare function findingMessageOf(code: `${SiteFindingCode}`, params?: FindingParams): string;
14935
+ /**
14936
+ * One finding in the admin's language: a store fact is the checkout gate's rule label (commerce-core), every other code
14937
+ * its sentence here with the finding's values. A finding that carries no values (written by an older server) keeps the
14938
+ * server's own words.
14939
+ */
14940
+ declare function findingSentence(f: Pick<SiteFinding, 'code' | 'message' | 'fact' | 'params'>, lang: string | null | undefined): string;
14941
+ /** Findings of one kind said as one row. */
14942
+ interface SiteFindingGroup {
14943
+ /** Stable for a screen's list: the code and where the group is. */
14944
+ key: string;
14945
+ code: SiteFindingCode;
14946
+ findings: SiteFinding[];
14947
+ /** The first finding — where "Show me" goes, and its page / global. */
14948
+ first: SiteFinding;
14949
+ count: number;
14950
+ }
14951
+ /** Repeated findings of one kind as one row each (per page, per site, or never — `SITE_FINDING_WORDS[code].group`),
14952
+ * in the order the first of each appears. */
14953
+ declare function groupSiteFindings(findings: ReadonlyArray<SiteFinding>): SiteFindingGroup[];
14954
+ /** A group in the admin's language: its one finding's sentence, or the code's sentence for `{n}` of them. */
14955
+ declare function groupSentence(g: Pick<SiteFindingGroup, 'first' | 'count'>, lang: string | null | undefined): string;
14956
+
14868
14957
  /**
14869
14958
  * THE Publishable gate (AI plan §3e, M1-7): ONE pure function over a snapshot of a site — its pages, globals, the
14870
14959
  * connectors' health, the look's token rows, what a build left to fill — run by the Publish dialog, the builder's
@@ -14957,8 +15046,12 @@ interface SiteFinding {
14957
15046
  check: SiteCheckId;
14958
15047
  severity: CheckSeverity;
14959
15048
  code: SiteFindingCode;
14960
- /** In plain words, for the screen. */
15049
+ /** In plain words, in English — what a screen without the admin's language shows. A screen says it in the admin's
15050
+ * language with `findingSentence` (audit-words), from `code` and `params`. */
14961
15051
  message: string;
15052
+ /** The values the finding's sentence names (a page's or an item's name, a count, a route) and its variant — what
15053
+ * `findingSentence` / `groupSentence` say it with (vectoriox/iox-ui#109). Absent on a finding an older server wrote. */
15054
+ params?: FindingParams;
14962
15055
  pageId?: string;
14963
15056
  nodeId?: string;
14964
15057
  /** The global slot (`header` / `footer`) when it is in a global. */
@@ -15065,6 +15158,11 @@ interface SiteAuditOptions {
15065
15158
  declare const STORE_CONTACT_CODES: ReadonlySet<string>;
15066
15159
  /** Commerce G2: the site sells — a page or a global holds a part that puts a product in the bag or opens the checkout. */
15067
15160
  declare function siteSells(snapshot: Pick<SiteAuditSnapshot, 'pages' | 'globals'>): boolean;
15161
+ /**
15162
+ * iox-cms#98: the page shows the shop's products for sale — what a store fact (`store-fact`) and an unpriced or
15163
+ * unstocked sample product (`sample-price`, `sample-stock`) hold. Every other page goes live whatever the shop lacks.
15164
+ */
15165
+ declare function pageShowsShop(page: Pick<AuditPage, 'layout'>): boolean;
15068
15166
  /** A route pattern (`/work/:slug`) matches a concrete path (`/work/blue-bowl`). */
15069
15167
  declare function routeMatches(pattern: string, path: string): boolean;
15070
15168
  /**
@@ -17496,5 +17594,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
17496
17594
  * its phone menu, the footer's copyright line. */
17497
17595
  declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
17498
17596
 
17499
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, 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, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_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_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, 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, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, 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, PREVIOUS_ROUTE_SUFFIX, 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, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, 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_HEADER_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, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, 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, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
17500
- export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, 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, FooterWait, FrameRegion, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBare, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutMixOfferOptions, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutRoomColumn, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, ListCheckOptions, ListFrame, ListFrameInput, ListHangStep, ListIngredient, ListOverhang, ListPanelContext, ListPanelRow, ListPanelWord, ListPick, ListShapeReading, ListWait, ListWordNever, ListWordShape, LookBefore, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OpeningApplied, OpeningContext, OpeningGalleryEntry, OpeningGap, OpeningInput, OpeningMix, OpeningNotPlaced, OpeningReading, OpeningRecipe, OpeningRepair, OpeningSite, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageCarry, 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, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, QuoteRoute, RecipeListBinds, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RhythmContext, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, 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, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
17597
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, 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, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_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_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, 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, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, 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, PREVIOUS_ROUTE_SUFFIX, 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, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, 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_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, 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_HEADER_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, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, 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, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
17598
+ export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, 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, FindingParams, FindingSentence, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBare, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutMixOfferOptions, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutRoomColumn, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, ListCheckOptions, ListFrame, ListFrameInput, ListHangStep, ListIngredient, ListOverhang, ListPanelContext, ListPanelRow, ListPanelWord, ListPick, ListShapeReading, ListWait, ListWordNever, ListWordShape, LookBefore, MeasuredLayer, MeasuredLayout, MenuWords, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OpeningApplied, OpeningContext, OpeningGalleryEntry, OpeningGap, OpeningInput, OpeningMix, OpeningNotPlaced, OpeningReading, OpeningRecipe, OpeningRepair, OpeningSite, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageCarry, 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, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, QuoteRoute, RecipeListBinds, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RhythmContext, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteFindingGroup, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, 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.148.0",
3
+ "version": "5.150.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -5,6 +5,7 @@ import { auditDesignContrast, DesignTokenLike } from '@vectoriox/iox-ui/design-c
5
5
  import { ConsentActionType } from '@vectoriox/iox-ui/composite-core';
6
6
  import { collectFormSpec, FORM_CHANNEL_ROLE, FORM_NODE_TYPE, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
7
7
 
8
+ import { findingMessageOf, FindingParams } from './audit-words';
8
9
  import { blocksPublish, ComposedPlaceholder, PlaceholderKind } from './compose-site';
9
10
  import { formAsksPersonalData, isLegalKind, ISRAEL, LegalKind, legalKindBlocks, legalTitle } from './legal';
10
11
  import { navShapeOf } from './nav-shape';
@@ -177,8 +178,12 @@ export interface SiteFinding {
177
178
  check: SiteCheckId;
178
179
  severity: CheckSeverity;
179
180
  code: SiteFindingCode;
180
- /** In plain words, for the screen. */
181
+ /** In plain words, in English — what a screen without the admin's language shows. A screen says it in the admin's
182
+ * language with `findingSentence` (audit-words), from `code` and `params`. */
181
183
  message: string;
184
+ /** The values the finding's sentence names (a page's or an item's name, a count, a route) and its variant — what
185
+ * `findingSentence` / `groupSentence` say it with (vectoriox/iox-ui#109). Absent on a finding an older server wrote. */
186
+ params?: FindingParams;
182
187
  pageId?: string;
183
188
  nodeId?: string;
184
189
  /** The global slot (`header` / `footer`) when it is in a global. */
@@ -293,6 +298,20 @@ export function siteSells(snapshot: Pick<SiteAuditSnapshot, 'pages' | 'globals'>
293
298
  return sells;
294
299
  }
295
300
 
301
+ /** The parts that make a PAGE the shop's — a product's price, or what puts it in the bag or opens the checkout. The
302
+ * header's bag and drawer are the site's chrome: they make a site sell (`siteSells`), never the café's Home a shop. */
303
+ const PAGE_SHOP_ROLES: ReadonlySet<string> = new Set([ShopRole.Price, ShopRole.Add, ShopRole.BuyNow, ShopRole.Checkout]);
304
+
305
+ /**
306
+ * iox-cms#98: the page shows the shop's products for sale — what a store fact (`store-fact`) and an unpriced or
307
+ * unstocked sample product (`sample-price`, `sample-stock`) hold. Every other page goes live whatever the shop lacks.
308
+ */
309
+ export function pageShowsShop(page: Pick<AuditPage, 'layout'>): boolean {
310
+ let shows = false;
311
+ walkSerialized(page.layout, n => { if (!shows && !!n.role && PAGE_SHOP_ROLES.has(n.role)) shows = true; });
312
+ return shows;
313
+ }
314
+
296
315
  /** A route pattern (`/work/:slug`) matches a concrete path (`/work/blue-bowl`). */
297
316
  export function routeMatches(pattern: string, path: string): boolean {
298
317
  const a = pattern.split('/').filter(Boolean);
@@ -328,8 +347,21 @@ interface Ctx {
328
347
  nodeIds: Map<string, string>;
329
348
  }
330
349
 
331
- function add(ctx: Ctx, code: SiteFindingCode, message: string, where: { pageId?: string; nodeId?: string; owner?: string; fact?: string; legal?: string } = {}): void {
332
- ctx.out.push({ check: CHECK_OF[code], severity: FINDING_SEVERITY[code], code, message, ...where });
350
+ type FindingWhere = { pageId?: string; nodeId?: string; owner?: string; fact?: string; legal?: string };
351
+
352
+ /** A finding: its English message from the ONE words table (audit-words), with the values it names. */
353
+ function add(ctx: Ctx, code: SiteFindingCode, params: FindingParams | null, where: FindingWhere = {}): void {
354
+ say(ctx, code, findingMessageOf(code, params ?? {}), params, where);
355
+ }
356
+
357
+ /** A page link to a page the site lacks names that route; a link set to no page says so. */
358
+ function deadLinkParams(label: string, route: string): FindingParams {
359
+ return route ? { variant: 'route', label, route } : { variant: 'unlinked', label };
360
+ }
361
+
362
+ /** A finding whose words are another table's (a store fact: the checkout gate's rule label). */
363
+ function say(ctx: Ctx, code: SiteFindingCode, message: string, params: FindingParams | null, where: FindingWhere): void {
364
+ ctx.out.push({ check: CHECK_OF[code], severity: FINDING_SEVERITY[code], code, message, ...(params && Object.keys(params).length ? { params } : {}), ...where });
333
365
  }
334
366
 
335
367
  /** Every node of a page or a global, with where it lives. */
@@ -343,8 +375,8 @@ function eachNode(snapshot: SiteAuditSnapshot, pages: ReadonlyArray<AuditPage>,
343
375
 
344
376
  function checkNavigation(ctx: Ctx, snapshot: SiteAuditSnapshot): void {
345
377
  const header = snapshot.globals.find(g => g.globalPosition === PatternGlobalPosition.Before);
346
- if (!header) return add(ctx, SiteFindingCode.NoHeader, 'The site has no header, so visitors have no menu to move around with.');
347
- if (!navShapeOf(snapshot.globals)) add(ctx, SiteFindingCode.NoPhoneMenu, 'The header has no phone menu — on a phone its links are hard to reach.', { owner: 'header', nodeId: header.id });
378
+ if (!header) return add(ctx, SiteFindingCode.NoHeader, null);
379
+ if (!navShapeOf(snapshot.globals)) add(ctx, SiteFindingCode.NoPhoneMenu, null, { owner: 'header', nodeId: header.id });
348
380
  }
349
381
 
350
382
  function checkForms(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<AuditPage>): boolean {
@@ -352,14 +384,14 @@ function checkForms(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<
352
384
  eachNode(snapshot, pages, (n, where) => {
353
385
  if (n.type !== FORM_NODE_TYPE) return;
354
386
  const spec = collectFormSpec(n as never);
355
- if (!spec || !nonEmpty(spec.formId)) add(ctx, SiteFindingCode.FormWithoutId, 'A form has no id, so what visitors send is never stored.', { ...where, nodeId: n.id });
387
+ if (!spec || !nonEmpty(spec.formId)) add(ctx, SiteFindingCode.FormWithoutId, null, { ...where, nodeId: n.id });
356
388
  if (spec?.actions.some(a => a.type === EMAIL_DELIVERY) && snapshot.connectors[MAILER] !== true) {
357
- add(ctx, SiteFindingCode.EmailNeedsMailer, 'A form emails what visitors send, but Email is not connected — it is stored and never sent.', { ...where, nodeId: n.id });
389
+ add(ctx, SiteFindingCode.EmailNeedsMailer, null, { ...where, nodeId: n.id });
358
390
  }
359
391
  if (formAsksPersonalData(n)) personal = true;
360
392
  walkSerialized(n.children ?? [], f => {
361
393
  if (f.role === FORM_CHANNEL_ROLE && !isChannelFilled(f.props['href'])) {
362
- add(ctx, SiteFindingCode.EmptyChannel, 'A form\'s second way to reach you has no number or address yet — visitors do not see it until you fill it in.', { ...where, nodeId: f.id });
394
+ add(ctx, SiteFindingCode.EmptyChannel, null, { ...where, nodeId: f.id });
363
395
  }
364
396
  });
365
397
  });
@@ -396,7 +428,7 @@ function checkConsent(ctx: Ctx, snapshot: SiteAuditSnapshot): void {
396
428
  const banners: SerializedNode[] = [];
397
429
  for (const g of snapshot.globals) walkSerialized([g], n => { if (n.type === DIALOG_TYPE && n.props['consentRole'] === true) banners.push(n); });
398
430
  if (snapshot.trackers?.length && !banners.length) {
399
- add(ctx, SiteFindingCode.TrackerWithoutBanner, `${snapshot.trackers.join(', ')} is connected, but the site has no cookie banner — it stays off for every visitor.`);
431
+ add(ctx, SiteFindingCode.TrackerWithoutBanner, { trackers: snapshot.trackers.join(', ') });
400
432
  }
401
433
  for (const banner of banners) {
402
434
  const accept: Pressed[] = [];
@@ -409,9 +441,7 @@ function checkConsent(ctx: Ctx, snapshot: SiteAuditSnapshot): void {
409
441
  const weaker = !reject.length || reject.every(r => LINK_LIKE.has(r.node.type)
410
442
  || !accept.some(a => a.node.type === r.node.type && a.row === r.row));
411
443
  if (weaker) {
412
- add(ctx, SiteFindingCode.ConsentRejectWeaker, !reject.length
413
- ? 'The cookie banner has no Reject beside Accept — refusing must be as easy as accepting.'
414
- : 'The cookie banner\'s Reject is weaker than its Accept — make it the same kind of button, on the same row.', { owner: 'footer', nodeId: banner.id });
444
+ add(ctx, SiteFindingCode.ConsentRejectWeaker, { variant: !reject.length ? 'missing' : 'weaker' }, { owner: 'footer', nodeId: banner.id });
415
445
  }
416
446
  }
417
447
  if (!banners.length) return;
@@ -425,14 +455,14 @@ function checkConsent(ctx: Ctx, snapshot: SiteAuditSnapshot): void {
425
455
  for (const g of snapshot.globals) if (prefs.has(g.id)) walkSerialized([g], n => inBanner.add(n.id));
426
456
  let reopens = false;
427
457
  eachNode(snapshot, snapshot.pages, n => { if (!inBanner.has(n.id) && runs(n, ConsentActionType.OpenPreferences)) reopens = true; });
428
- if (!reopens) add(ctx, SiteFindingCode.NoCookieSettings, 'Nothing on the site reopens the cookie choice — add Cookie settings to the footer so visitors can change their mind.');
458
+ if (!reopens) add(ctx, SiteFindingCode.NoCookieSettings, null);
429
459
  }
430
460
 
431
461
  function checkSeo(ctx: Ctx, pages: ReadonlyArray<AuditPage>): void {
432
462
  for (const page of pages) {
433
463
  const seo = (page.seo ?? {}) as Record<string, unknown>;
434
- if (!seoField(seo['title'], hasContent(page.layout, 'Heading'))) add(ctx, SiteFindingCode.NoTitle, `"${page.name}" has no title for search results.`, { pageId: page.id });
435
- if (!seoField(seo['description'], hasContent(page.layout, 'Text'))) add(ctx, SiteFindingCode.NoDescription, `"${page.name}" has no description for search results.`, { pageId: page.id });
464
+ if (!seoField(seo['title'], hasContent(page.layout, 'Heading'))) add(ctx, SiteFindingCode.NoTitle, { name: page.name }, { pageId: page.id });
465
+ if (!seoField(seo['description'], hasContent(page.layout, 'Text'))) add(ctx, SiteFindingCode.NoDescription, { name: page.name }, { pageId: page.id });
436
466
  }
437
467
  }
438
468
 
@@ -440,25 +470,27 @@ function checkFacts(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<
440
470
  const inScope = (p: { pageId?: string }) => !p.pageId || pages.some(page => page.id === p.pageId);
441
471
  for (const p of (snapshot.placeholders ?? []).filter(p => !p.filled && inScope(p))) {
442
472
  const where = { pageId: p.pageId, nodeId: p.nodeId, ...(p.pageId ? {} : { owner: p.owner }) };
443
- if (p.kind === PlaceholderKind.Fact) add(ctx, SiteFindingCode.ContactMissing, `"${p.text || p.fact}" is not on the site yet — visitors do not see that line until you fill it in.`, where);
444
- else if (blocksPublish(p.kind)) add(ctx, SiteFindingCode.UnfilledFact, `"${p.text || p.kind}" is still blank — fill it in before the site goes live.`, where);
445
- else if (p.kind === PlaceholderKind.Copy) add(ctx, SiteFindingCode.CopyPlaceholder, 'Some words are still the template\'s.', where);
473
+ if (p.kind === PlaceholderKind.Fact) add(ctx, SiteFindingCode.ContactMissing, { text: String(p.text || p.fact) }, where);
474
+ else if (blocksPublish(p.kind)) add(ctx, SiteFindingCode.UnfilledFact, { text: String(p.text || p.kind) }, where);
475
+ else if (p.kind === PlaceholderKind.Copy) add(ctx, SiteFindingCode.CopyPlaceholder, null, where);
446
476
  }
447
- for (const s of snapshot.samples ?? []) add(ctx, SiteFindingCode.SampleItems, `"${s.label ?? s.id}" is a sample — replace or remove it.`, { nodeId: s.id });
448
- for (const s of snapshot.unpricedSamples ?? []) add(ctx, SiteFindingCode.SamplePrice, `"${s.label ?? s.id}" has no price yet — set yours, or remove the sample.`, { nodeId: s.id });
449
- for (const s of snapshot.unstockedSamples ?? []) add(ctx, SiteFindingCode.SampleStock, `"${s.label ?? s.id}" has no stock yet — say how many you have, or remove the sample.`, { nodeId: s.id });
450
- if (snapshot.store?.refusals.length && siteSells(snapshot)) {
477
+ for (const s of snapshot.samples ?? []) add(ctx, SiteFindingCode.SampleItems, { name: s.label ?? s.id }, { nodeId: s.id });
478
+ // iox-cms#98: what the shop lacks holds only the pages that show the shop — never the Home of a site that also sells.
479
+ const shopShown = pages.some(pageShowsShop);
480
+ for (const s of shopShown ? snapshot.unpricedSamples ?? [] : []) add(ctx, SiteFindingCode.SamplePrice, { name: s.label ?? s.id }, { nodeId: s.id });
481
+ for (const s of shopShown ? snapshot.unstockedSamples ?? [] : []) add(ctx, SiteFindingCode.SampleStock, { name: s.label ?? s.id }, { nodeId: s.id });
482
+ if (snapshot.store?.refusals.length && shopShown && siteSells(snapshot)) {
451
483
  for (const r of snapshot.store.refusals) {
452
484
  const code = STORE_CONTACT_CODES.has(r.code) ? SiteFindingCode.StoreContact : SiteFindingCode.StoreFact;
453
- add(ctx, code, labelIn(r.label, snapshot.store.lang), { fact: r.code });
485
+ say(ctx, code, labelIn(r.label, snapshot.store.lang), null, { fact: r.code });
454
486
  }
455
487
  }
456
- for (const s of (snapshot.stock ?? []).filter(inScope)) add(ctx, SiteFindingCode.StockPhoto, 'A stock photo stands in for one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
457
- for (const s of (snapshot.made ?? []).filter(inScope)) add(ctx, SiteFindingCode.MadePicture, 'A picture made with AI stands in for one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
458
- for (const s of (snapshot.missing ?? []).filter(inScope)) add(ctx, SiteFindingCode.PictureMissing, 'A picture could not be made for this spot — add one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
488
+ for (const s of (snapshot.stock ?? []).filter(inScope)) add(ctx, SiteFindingCode.StockPhoto, null, { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
489
+ for (const s of (snapshot.made ?? []).filter(inScope)) add(ctx, SiteFindingCode.MadePicture, null, { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
490
+ for (const s of (snapshot.missing ?? []).filter(inScope)) add(ctx, SiteFindingCode.PictureMissing, { variant: 'made' }, { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
459
491
  checkLegalPages(ctx, snapshot, pages, personal);
460
492
  if (personal && !legalPageOf(snapshot.pages, LegalKind.Privacy)) {
461
- add(ctx, SiteFindingCode.NoPrivacyPage, 'A form asks for personal details, and the site has no privacy page saying what you do with them.');
493
+ add(ctx, SiteFindingCode.NoPrivacyPage, null);
462
494
  }
463
495
  }
464
496
 
@@ -508,7 +540,7 @@ function checkLegalPages(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyA
508
540
  if (!kind || !legalKindBlocks(kind) || !open.some(p => p.pageId === page.id)) continue;
509
541
  // Warn old: a site from before the law is never held by its accessibility statement.
510
542
  if (kind === LegalKind.Accessibility && !built) continue;
511
- add(ctx, SiteFindingCode.LegalPagePlaceholder, `"${page.name || legalTitle(kind, snapshot.locale)}" still says what belongs there — only you can write it.`, { pageId: page.id, legal: kind });
543
+ add(ctx, SiteFindingCode.LegalPagePlaceholder, { name: page.name || legalTitle(kind, snapshot.locale) }, { pageId: page.id, legal: kind });
512
544
  }
513
545
  }
514
546
 
@@ -516,13 +548,12 @@ function checkAccessibility(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: Readon
516
548
  // AW1 (AW-D14): Israel requires an accessibility statement; a Hebrew site elsewhere is expected to carry one. Block
517
549
  // new, warn old: only a site built with the law is held (`siteBuiltWithLaw`).
518
550
  if (wantsAccessibilityStatement(snapshot) && !legalPageOf(snapshot.pages, LegalKind.Accessibility)) {
519
- const why = isIsraeli(snapshot) ? 'Israel requires one' : 'a Hebrew site is expected to carry one';
520
- if (siteBuiltWithLaw(snapshot)) add(ctx, SiteFindingCode.NoAccessibilityStatement, `The site has no accessibility statement — ${why}. Add a page for it and write what is accessible and who to contact.`);
521
- else add(ctx, SiteFindingCode.AccessibilityStatementAdvised, `The site has no accessibility statement — ${why}. Add a page for it.`);
551
+ const why = { variant: isIsraeli(snapshot) ? 'israel' : 'hebrew' };
552
+ add(ctx, siteBuiltWithLaw(snapshot) ? SiteFindingCode.NoAccessibilityStatement : SiteFindingCode.AccessibilityStatementAdvised, why);
522
553
  }
523
554
  for (const mode of snapshot.design?.modes ?? []) {
524
555
  const failing = auditDesignContrast(snapshot.design!.rows, mode).filter(f => !f.pass);
525
- if (failing.length) add(ctx, SiteFindingCode.LowContrast, `${failing.length} text and background pair(s) are hard to read in ${mode} mode.`);
556
+ if (failing.length) add(ctx, SiteFindingCode.LowContrast, { variant: mode, count: failing.length });
526
557
  }
527
558
  for (const page of pages) {
528
559
  let last = 0;
@@ -532,21 +563,21 @@ function checkAccessibility(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: Readon
532
563
  if (!level) return;
533
564
  const l = Number(level);
534
565
  if (l === 1) h1++;
535
- if (last && l > last + 1) add(ctx, SiteFindingCode.HeadingOrder, `A heading on "${page.name}" skips a level (h${last} → h${l}).`, { pageId: page.id, nodeId: n.id });
566
+ if (last && l > last + 1) add(ctx, SiteFindingCode.HeadingOrder, { variant: 'skip', name: page.name, from: last, to: l }, { pageId: page.id, nodeId: n.id });
536
567
  last = l;
537
568
  });
538
- if (h1 > 1) add(ctx, SiteFindingCode.HeadingOrder, `"${page.name}" has ${h1} main headings (h1); one is clearer.`, { pageId: page.id });
569
+ if (h1 > 1) add(ctx, SiteFindingCode.HeadingOrder, { variant: 'h1', name: page.name, count: h1 }, { pageId: page.id });
539
570
  }
540
571
  const said = new Set((snapshot.missing ?? []).map(s => s.nodeId));
541
572
  eachNode(snapshot, pages, (n, where) => {
542
573
  if (n.type !== 'Image') return;
543
574
  if (!nonEmpty(n.props['src']) && !n.bindings.some(b => b.prop === 'src')) {
544
- if (!said.has(n.id)) add(ctx, SiteFindingCode.PictureMissing, 'A box on this page waits for a picture — add one of yours.', { ...where, nodeId: n.id });
575
+ if (!said.has(n.id)) add(ctx, SiteFindingCode.PictureMissing, { variant: 'box' }, { ...where, nodeId: n.id });
545
576
  return;
546
577
  }
547
578
  const decorative = n.props['alt'] === '' && n.props['decorative'] === true;
548
579
  const bound = n.bindings.some(b => b.prop === 'alt');
549
- if (!decorative && !bound && !nonEmpty(n.props['alt'])) add(ctx, SiteFindingCode.ImageWithoutAlt, 'A picture has no description for people who cannot see it.', { ...where, nodeId: n.id });
580
+ if (!decorative && !bound && !nonEmpty(n.props['alt'])) add(ctx, SiteFindingCode.ImageWithoutAlt, null, { ...where, nodeId: n.id });
550
581
  });
551
582
  }
552
583
 
@@ -556,7 +587,7 @@ function checkTokens(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray
556
587
  const maps: Array<Record<string, unknown> | undefined> = [n.styleProps, ...Object.values(n.stateStyles ?? {}), ...Object.values(n.responsive ?? {}).map(l => l?.styleProps)];
557
588
  const literal = maps.some(map => Object.entries(map ?? {}).some(([k, v]) =>
558
589
  COLOUR_TRAITS.test(k) && LITERAL_COLOUR.test(String(v)) && !(k === 'borderColor' && n.styleProps['borderWidth'] === '0px')));
559
- if (literal) add(ctx, SiteFindingCode.LiteralColour, 'An element paints a fixed colour, so a new look will not reach it.', { ...where, nodeId: n.id });
590
+ if (literal) add(ctx, SiteFindingCode.LiteralColour, null, { ...where, nodeId: n.id });
560
591
  });
561
592
  }
562
593
 
@@ -564,7 +595,7 @@ function checkActions(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArra
564
595
  const routeExists = (route: unknown) => typeof route === 'string' && ctx.routes.some(r => routeMatches(r, route));
565
596
  eachNode(snapshot, pages, (n, where) => {
566
597
  if (LINKING_TYPES.has(n.type) && n.props['linkType'] === PAGE_LINK && !routeExists(n.props['pageRoute'])) {
567
- add(ctx, SiteFindingCode.DeadLink, `"${String(n.props['label'] ?? n.props['content'] ?? n.label ?? n.type)}" links to ${String(n.props['pageRoute'] || 'no page')}, which is not a page of the site.`, { ...where, nodeId: n.id });
598
+ add(ctx, SiteFindingCode.DeadLink, deadLinkParams(String(n.props['label'] ?? n.props['content'] ?? n.label ?? n.type), String(n.props['pageRoute'] ?? '')), { ...where, nodeId: n.id });
568
599
  }
569
600
  for (const ix of (n.interactions ?? []) as Array<{ actions?: Array<{ type?: string; target?: string; params?: Record<string, unknown>; disabled?: boolean }> }>) {
570
601
  for (const action of ix?.actions ?? []) {
@@ -575,17 +606,17 @@ function checkActions(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArra
575
606
  if (descriptor.target?.required && action.target !== SELF) {
576
607
  const targetType = action.target ? ctx.nodeIds.get(action.target) : undefined;
577
608
  if (!targetType || (types && !types.includes(targetType))) {
578
- add(ctx, SiteFindingCode.DeadDialogTarget, `"${n.label ?? n.type}" opens something that is no longer on the site.`, { ...where, nodeId: n.id });
609
+ add(ctx, SiteFindingCode.DeadDialogTarget, { label: String(n.label ?? n.type) }, { ...where, nodeId: n.id });
579
610
  }
580
611
  }
581
612
  if (action.type === 'navigate' && action.params?.['navigateTo'] === PAGE_LINK && !routeExists(action.params?.['page'])) {
582
- add(ctx, SiteFindingCode.DeadLink, `"${n.label ?? n.type}" goes to a page the site does not have.`, { ...where, nodeId: n.id });
613
+ add(ctx, SiteFindingCode.DeadLink, { variant: 'action', label: String(n.label ?? n.type) }, { ...where, nodeId: n.id });
583
614
  }
584
615
  // A connector the snapshot does not say is usable is not: unknown is never "fine".
585
616
  const connectors = descriptor.connector ? { [descriptor.connector]: snapshot.connectors[descriptor.connector] === true } : {};
586
617
  const availability = resolveActionAvailability(descriptor, { connectors });
587
618
  if (availability.state === 'connector-missing') {
588
- add(ctx, SiteFindingCode.ActionNeedsConnector, `"${n.label ?? n.type}" needs ${availability.connector} connected.`, { ...where, nodeId: n.id });
619
+ add(ctx, SiteFindingCode.ActionNeedsConnector, { label: String(n.label ?? n.type), connector: String(availability.connector) }, { ...where, nodeId: n.id });
589
620
  }
590
621
  }
591
622
  }