@vectoriox/iox-ui 5.169.0 → 5.171.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/composite-core/index.d.ts +41 -2
- package/design-core/index.d.ts +37 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +49 -6
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +61 -8
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +98 -19
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +23 -5
- package/package.json +1 -1
- package/src/composite-core/slider.ts +78 -5
- package/src/design-core/flavor-spec.generated.ts +24 -0
- package/src/design-core/font-metrics.ts +28 -8
- package/src/generation-core/body-mix.ts +43 -0
- package/src/generation-core/compose-site.ts +39 -12
- package/src/generation-core/footer-mix.ts +9 -5
- package/src/generation-core/layout-language.ts +6 -2
- package/styles/iox-design.css +8 -0
|
@@ -2,8 +2,8 @@ import { FrameSequence } from '@vectoriox/iox-ui/media-core';
|
|
|
2
2
|
import { DesignChoices, AnimateId, MoveId, ScrubId, MenuLook, ColorScheme, DesignConfigEntry, DesignRevertSnapshot, DesignTokenLike, StylePreset, ResolvedMode } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
export { HeaderInk } from '@vectoriox/iox-ui/design-core';
|
|
4
4
|
import { SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
|
|
5
|
+
import { CardPart, CarouselFrom, ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
|
|
5
6
|
import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
|
|
6
|
-
import { CardPart, ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
|
|
7
7
|
import { CommerceLabel, CheckoutGateRefusal } from '@vectoriox/iox-ui/commerce-core';
|
|
8
8
|
import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
|
|
9
9
|
|
|
@@ -10551,7 +10551,7 @@ declare function layoutRoomPx(cols: number, width: number, phone: boolean, page?
|
|
|
10551
10551
|
* own face (design-core `textWidthEm`, from the face's measured letters) — and never stands taller than its rows; never
|
|
10552
10552
|
* under 36px or over 560px. `rows` 0 sizes by width alone (a phone's stacked word). Held sections are one screen tall.
|
|
10553
10553
|
*/
|
|
10554
|
-
declare function screenFontSize(widthEm: number, cols: number, rows: number, sectionRows: number, screens: number, columnPx?: number | null, capAlways?: boolean): string;
|
|
10554
|
+
declare function screenFontSize(widthEm: number, cols: number, rows: number, sectionRows: number, screens: number, columnPx?: number | null, capAlways?: boolean, typeCap?: boolean): string;
|
|
10555
10555
|
/** How many px a `screen` word `widthEm` wide runs past its room at its smallest size, on a screen `width` px wide — 0
|
|
10556
10556
|
* when it fits. The one thing sizing cannot mend: the static check refuses it (a browser would show it cut). */
|
|
10557
10557
|
declare function screenWordOverflowPx(widthEm: number, cols: number, width: number, phone: boolean, page?: LayoutRoomColumn): number;
|
|
@@ -13337,6 +13337,16 @@ declare function paddingKeepingClear(padding: unknown, px: number): string;
|
|
|
13337
13337
|
* (the same array — byte-identical, R-H4). Pure: touched nodes are copied.
|
|
13338
13338
|
*/
|
|
13339
13339
|
declare function wearBodyMix(layout: ReadonlyArray<SerializedNode>, mix: BodyMix | null | undefined): SerializedNode[];
|
|
13340
|
+
declare const JOINED_HEADER_PADDING: string;
|
|
13341
|
+
/**
|
|
13342
|
+
* iox-ui#130: a page header and the section under it read as ONE opening. Two sections on the same ground each padded
|
|
13343
|
+
* their rhythm — the header's below its words and the next one's above its own — so a list page's first cards sat
|
|
13344
|
+
* two section gaps under the header's words (≈290px on a laptop, a blank third of a phone's first screen). The header
|
|
13345
|
+
* gives its bottom space up; the next section's top space is the one gap between them. Only where nothing marks the
|
|
13346
|
+
* meeting: the same ground (a different ground is a band that pads itself), neither a card nor a Scene, no seam (two
|
|
13347
|
+
* equal grounds never wear one). Pure: the header is copied; a page with nothing to join is returned as it was.
|
|
13348
|
+
*/
|
|
13349
|
+
declare function joinPageHeader(layout: ReadonlyArray<SerializedNode>): SerializedNode[];
|
|
13340
13350
|
declare enum BodyRepairCode {
|
|
13341
13351
|
/** A word the award tier alone wears, on a site built below it. */
|
|
13342
13352
|
ProOnly = "pro-only",
|
|
@@ -14095,10 +14105,13 @@ declare enum PlaceholderKind {
|
|
|
14095
14105
|
Stat = "stat",
|
|
14096
14106
|
/** AW1: a stamped legal page's text — what belongs there ("Your privacy policy: …"), never a word of policy. Its page
|
|
14097
14107
|
* holds Publish while it shows the label (`auditSite`, `legal-page-placeholder`, by the page's kind). */
|
|
14098
|
-
Policy = "policy"
|
|
14108
|
+
Policy = "policy",
|
|
14109
|
+
/** iox-ui#132: a testimonial's words or its person with no list of real quotes behind them — what belongs there
|
|
14110
|
+
* ("A client's own words go here"), never somebody's invented words. A fact a customer could be held to: blocking. */
|
|
14111
|
+
Quote = "quote"
|
|
14099
14112
|
}
|
|
14100
14113
|
/** The placeholders a page cannot be published with unfilled (W4's gate): a fact, a price, a number, the studio's own
|
|
14101
|
-
* video. Copy and an empty image are the author's to rewrite, never blocking. */
|
|
14114
|
+
* video, a testimonial's words (iox-ui#132). Copy and an empty image are the author's to rewrite, never blocking. */
|
|
14102
14115
|
declare const PUBLISH_BLOCKING_PLACEHOLDERS: ReadonlySet<PlaceholderKind>;
|
|
14103
14116
|
/** True when a placeholder of `kind` blocks publishing until the studio fills it. */
|
|
14104
14117
|
declare function blocksPublish(kind: PlaceholderKind): boolean;
|
|
@@ -14347,6 +14360,11 @@ declare const SIGN_IN_DIALOG_ID = "sign-in";
|
|
|
14347
14360
|
* Null: nothing to change (already in this language, or not a store global). Pure — a copy.
|
|
14348
14361
|
*/
|
|
14349
14362
|
declare function rewordStoreGlobal(kept: SerializedNode, locale: string): SerializedNode | null;
|
|
14363
|
+
/**
|
|
14364
|
+
* iox-ui#132: the plan's list of real quotes — the first query of the plan's content whose type plays the `quote` role,
|
|
14365
|
+
* with the fields a carousel's slides show (`pickCarouselAutoBinds`: the roles first). Null when the plan holds none.
|
|
14366
|
+
*/
|
|
14367
|
+
declare function quoteListOf(plan: SitePlan): CarouselFrom | null;
|
|
14350
14368
|
/**
|
|
14351
14369
|
* Compose a Site Plan. Throws `SitePlanError` (every issue) when the plan does not validate — the
|
|
14352
14370
|
* composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
|
|
@@ -19388,5 +19406,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
|
|
|
19388
19406
|
* its phone menu, the footer's copyright line. */
|
|
19389
19407
|
declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
|
|
19390
19408
|
|
|
19391
|
-
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_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, 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_RUNS_AS, 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, AiPictureMaker, 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, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, 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_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, 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_NEAR_MISS, 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_SETTLE_PASSES, 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_SAY_WORDS, 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, ListPartChange, ListPartOutcome, ListSayCode, 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_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, 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_TOKENS_UNKNOWN_MAKER, 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, PromptLimit, 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, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contactFactsOf, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, fillContactFacts, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerCallWord, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, 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, isDrawers, 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, keepListParts, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, 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, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureFree, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, 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, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTokensFor, pictureTryFits, picturelessTypes, 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, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, 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, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, 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, stampFooterMix, 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, typeLedGroundFor, typeLedGrounds, typeLedLayoutSection, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
19409
|
+
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_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, 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_RUNS_AS, 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, AiPictureMaker, 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, DRAWER_BEAT_MS, DRAWER_KINDS, DRAWER_LETTER_MS, DRAWER_LINE_MS, DRAWER_SPINE, DRAWER_STEPS, 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_INSET_STYLES, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterNameStyle, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, 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, JOINED_HEADER_PADDING, 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_NEAR_MISS, 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_SETTLE_PASSES, 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_SAY_WORDS, 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, ListPartChange, ListPartOutcome, ListSayCode, 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_DISSOLVE, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, 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_TOKENS_UNKNOWN_MAKER, 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, PromptLimit, 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, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contactFactsOf, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, dissolveInteraction, distinctFallbackSections, distinctFooter, distinctHeader, drawerRamp, drawerRestX, drawerStepCount, drawerSteps, drawerWidth, drawersTiming, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, fillContactFacts, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerCallWord, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerNameFits, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, 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, isDrawers, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, joinPageHeader, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutCounterDepth, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutSectionKindsOffered, layoutShapeHasPurpose, layoutSignatureOffered, layoutSignaturesOffered, 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, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureFree, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, nameStyleOf, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, 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, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTokensFor, pictureTryFits, picturelessTypes, 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, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quoteListOf, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, 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, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, 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, stampFooterMix, 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, typeLedGroundFor, typeLedGrounds, typeLedLayoutSection, typeLedNotices, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
19392
19410
|
export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiPictureMakerRow, 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, ComposeFreeOptions, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContactBusiness, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DistinctFallback, DrawersTiming, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, ExpandedFreeWire, FactKey, FilmPlacement, FilmTarget, FindingParams, FindingSentence, FingerprintedPage, FooterContext, FooterMix, FooterNever, FooterRepair, FooterWait, FrameRegion, FreeFallback, FreeFallbackPrompt, FreeIssue, FreeJudgeContext, FreeMove, FreeNode, FreePage, FreeRead, FreeSlotOffer, FreeSlotOptions, FreeStamped, FreeStyle, FreeWalked, FreeWire, FreeWireFault, FreeWireNode, FreeWireOptions, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayerMetrics, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutIssueWords, 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, LayoutWordRef, LayoutWordsValue, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, ListCheckOptions, ListFrame, ListFrameInput, ListHangStep, ListIngredient, ListOverhang, ListPanelContext, ListPanelRow, ListPanelWord, ListPartEdit, ListPartsKept, ListPick, ListSaid, ListSayParams, 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, PictureSupply, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PromptReading, 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, SectionFallbackOptions, 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, TypeLed, TypeLedChange, TypeLedOpening, TypeLedRoundContext, TypeLedTarget, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CompositeNode, CompositeNodeFactory, makeCompositePart, NO_ELEMENT_STYLE, readProp, readStyle, writeProp, writeStyles } from './composite-node';
|
|
2
|
+
import { ContentFieldLike, pickAccordionAutoBinds } from './accordion';
|
|
2
3
|
import { recipeLang, RecipeLang } from './recipe-parts';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -538,12 +539,75 @@ export const CAROUSEL_QUOTES_HE: ReadonlyArray<CarouselQuote> = [
|
|
|
538
539
|
/** The carousel's name when the author gives none, per language. */
|
|
539
540
|
export const CAROUSEL_NAME: Readonly<Record<RecipeLang, string>> = { en: 'What clients say', he: 'מה הלקוחות אומרים' };
|
|
540
541
|
|
|
542
|
+
/**
|
|
543
|
+
* What a carousel shows when no list of real quotes is behind it (iox-ui#132): what belongs there, in the site's
|
|
544
|
+
* language — never a sentence that reads as somebody's words, never a bracketed field. A composer that stamps these
|
|
545
|
+
* marks them publish-blocking: a testimonial is a fact a customer could be held to.
|
|
546
|
+
*/
|
|
547
|
+
export const CAROUSEL_QUOTE_LABELS: Readonly<Record<RecipeLang, CarouselQuote>> = {
|
|
548
|
+
en: { quote: 'A client’s own words go here', who: 'The client’s name' },
|
|
549
|
+
he: { quote: 'כאן יופיעו המילים של לקוח', who: 'שם הלקוח' },
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
/** The label quote for a site's language (English when not given). */
|
|
553
|
+
export function carouselQuoteLabel(lang?: string | null): CarouselQuote {
|
|
554
|
+
return CAROUSEL_QUOTE_LABELS[recipeLang(lang)];
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/** A carousel that repeats a LIST of quotes (iox-ui#132): the list's alias and the fields its slides show. */
|
|
558
|
+
export interface CarouselFrom {
|
|
559
|
+
/** The list data source's alias. */
|
|
560
|
+
source: string;
|
|
561
|
+
/** The field a slide's quote is bound to. */
|
|
562
|
+
quote: string;
|
|
563
|
+
/** The field the person's line is bound to — null: the slide shows the quote alone. */
|
|
564
|
+
who?: string | null;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/** How many items a carousel from content shows at most. */
|
|
568
|
+
export const CAROUSEL_CONTENT_LIMIT = 12;
|
|
569
|
+
|
|
541
570
|
export interface CarouselOptions {
|
|
542
571
|
/** The carousel's accessible name (a `region` landmark). */
|
|
543
572
|
name?: string;
|
|
544
573
|
quotes?: ReadonlyArray<CarouselQuote>;
|
|
545
574
|
/** The language of the default quotes, name and control names (iox-ui#112; English when not given). */
|
|
546
575
|
lang?: string | null;
|
|
576
|
+
/** From content: the slider repeats this list — ONE template slide whose quote and person are bound to it. */
|
|
577
|
+
from?: CarouselFrom;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
export interface CarouselAutoBinds {
|
|
581
|
+
/** The quote: the type's `quote` role, else its first long-text field. */
|
|
582
|
+
quote: string | null;
|
|
583
|
+
/** The person: the type's `person` role, else its first short-text field. */
|
|
584
|
+
who: string | null;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/** The fields a content type names for a carousel's parts — its `quote` and `person` roles (generation-core `roleField`). */
|
|
588
|
+
export interface CarouselRoleFields {
|
|
589
|
+
quote?: string | null;
|
|
590
|
+
who?: string | null;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* The fields a carousel from content binds (iox-ui#132): the fields the type's roles name (`quote`, `person` — the
|
|
595
|
+
* list-ingredients roles; the caller reads them, composite-core does not know the role table) win when they are real
|
|
596
|
+
* fields; else the accordion's rule (first long text = the quote, first short text = the person).
|
|
597
|
+
* ONE rule for the composer (which binds them) and the plan's gate.
|
|
598
|
+
*/
|
|
599
|
+
export function pickCarouselAutoBinds(fields: ReadonlyArray<ContentFieldLike>, named: CarouselRoleFields = {}): CarouselAutoBinds {
|
|
600
|
+
const real = (field: string | null | undefined) => (field && fields.some(f => f.name === field) ? field : null);
|
|
601
|
+
const auto = pickAccordionAutoBinds(fields);
|
|
602
|
+
const quote = real(named.quote) ?? auto.answer;
|
|
603
|
+
const who = real(named.who) ?? (auto.question !== quote ? auto.question : null);
|
|
604
|
+
return { quote, who };
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/** A binding on a recipe node (a slide's words read the row; the slider's `source` the list). */
|
|
608
|
+
function bindTo(node: CompositeNode, prop: string, source: string, path: string): void {
|
|
609
|
+
const holder = node as { bindings?: Array<{ prop?: string; source?: string; path?: string }> };
|
|
610
|
+
holder.bindings = [...(holder.bindings ?? []).filter(b => b?.prop !== prop), { prop, source, path }];
|
|
547
611
|
}
|
|
548
612
|
|
|
549
613
|
/** A quote card. The carousel's controls sit in a ROW above the slides and the dots below them (board 6), so the
|
|
@@ -571,14 +635,23 @@ export function buildCarouselRecipe(create: CompositeNodeFactory, options: Carou
|
|
|
571
635
|
[SLIDER_PLACEMENT_TRAIT]: SliderPlacement.Over,
|
|
572
636
|
})) writeProp(slider, name, value);
|
|
573
637
|
const lang = recipeLang(options.lang);
|
|
574
|
-
|
|
638
|
+
const from = options.from;
|
|
639
|
+
const quotes = from ? [CAROUSEL_QUOTE_LABELS[lang]] : options.quotes ?? (lang === 'he' ? CAROUSEL_QUOTES_HE : CAROUSEL_QUOTES);
|
|
640
|
+
slider.children = quotes.map((q, i) => {
|
|
575
641
|
const slide = makeCompositePart(create, { key: `slide-${i + 1}`, type: SLIDE_TYPE, props: {}, elementStyle: 'card' }, null, 'Slide', QUOTE_SLIDE_BASE);
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
642
|
+
const quote = makeCompositePart(create, { key: `quote-${i + 1}`, type: 'Text', props: { content: q.quote, tag: 'p' }, elementStyle: 'lead' }, null, 'Quote', QUOTE_TEXT_BASE);
|
|
643
|
+
const who = makeCompositePart(create, { key: `who-${i + 1}`, type: 'Text', props: { content: q.who, tag: 'p' }, elementStyle: 'small' }, null, 'Client', QUOTE_TEXT_BASE);
|
|
644
|
+
if (from) {
|
|
645
|
+
bindTo(quote, 'content', from.source, from.quote);
|
|
646
|
+
if (from.who) bindTo(who, 'content', from.source, from.who);
|
|
647
|
+
}
|
|
648
|
+
slide.children = from && !from.who ? [quote] : [quote, who];
|
|
580
649
|
return slide;
|
|
581
650
|
});
|
|
651
|
+
if (from) {
|
|
652
|
+
bindTo(slider, 'source', from.source, '');
|
|
653
|
+
writeProp(slider, 'limit', CAROUSEL_CONTENT_LIMIT);
|
|
654
|
+
}
|
|
582
655
|
syncSliderParts(slider, create);
|
|
583
656
|
const words = SLIDER_WORDS[lang];
|
|
584
657
|
for (const part of slider.children ?? []) {
|
|
@@ -4001,6 +4001,30 @@ export const SPEC_FONT_METRICS = {
|
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
4003
4003
|
},
|
|
4004
|
+
"display": {
|
|
4005
|
+
"Bricolage Grotesque": {
|
|
4006
|
+
"opsz": 96,
|
|
4007
|
+
"weights": {
|
|
4008
|
+
"500": {
|
|
4009
|
+
"latin": "211,220,274,584,563,913,677,149,267,271,391,486,150,300,178,330,594,264,534,556,572,551,591,471,599,592,182,179,486,486,486,398,878,621,588,625,614,531,507,645,625,209,306,594,450,784,664,657,566,656,591,573,504,620,606,897,579,556,534,276,329,276,516,588,283,514,552,524,554,526,340,546,534,197,203,504,197,830,534,560,551,552,359,497,339,532,515,775,502,522,454,323,193,331,486,152,152,288,288,475,738,616,178,486,671,685,621,621,621,621,621,621,846,625,531,531,531,531,209,209,209,209,664,657,657,657,657,657,662,620,620,620,620,556,608,514,514,514,514,514,514,827,524,526,526,526,526,206,197,197,197,534,560,560,560,560,560,560,532,532,532,532,522,522,941,916,573,497,534,454"
|
|
4010
|
+
},
|
|
4011
|
+
"700": {
|
|
4012
|
+
"latin": "206,252,318,603,571,936,690,165,291,292,435,486,179,309,223,342,594,294,545,562,595,560,592,489,605,599,227,216,486,486,486,397,916,646,601,629,618,537,509,648,633,231,317,613,457,809,684,660,579,658,607,581,512,625,623,909,608,582,545,289,342,289,525,547,283,533,568,534,568,533,364,548,553,222,230,529,222,850,553,564,566,566,386,510,358,548,525,791,529,533,473,322,210,324,486,179,179,351,351,491,762,710,223,486,677,686,646,646,646,646,646,646,857,629,537,537,537,537,231,231,231,231,684,660,660,660,660,660,667,625,625,625,625,582,628,533,533,533,533,533,533,848,534,533,533,533,533,237,222,222,222,553,564,564,564,564,564,564,548,548,548,548,533,533,942,924,581,510,545,473"
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
},
|
|
4016
|
+
"Fraunces": {
|
|
4017
|
+
"opsz": 144,
|
|
4018
|
+
"weights": {
|
|
4019
|
+
"400": {
|
|
4020
|
+
"latin": "165,211,252,549,509,586,868,128,303,301,573,455,175,237,173,330,590,354,530,491,541,511,546,458,518,550,161,170,432,455,432,470,739,601,616,630,697,574,521,683,729,313,359,668,536,789,668,728,596,736,633,553,596,654,590,887,624,593,555,288,317,288,298,334,209,432,483,403,488,417,258,468,497,221,221,480,225,772,498,484,501,483,361,376,280,497,428,659,436,442,392,329,222,329,482,152,140,284,284,452,701,563,223,401,612,533,601,601,601,601,601,601,872,630,574,574,574,574,313,313,313,313,668,728,728,728,728,728,728,654,654,654,654,593,554,432,432,432,432,432,432,675,403,417,417,417,417,221,221,221,221,498,484,484,484,484,484,484,497,497,497,497,442,442,922,756,553,376,555,392"
|
|
4021
|
+
},
|
|
4022
|
+
"600": {
|
|
4023
|
+
"latin": "160,243,299,571,529,602,898,153,314,311,565,455,205,242,201,325,613,372,556,515,568,531,569,482,541,574,193,205,432,455,432,508,742,625,647,640,717,594,540,692,754,340,389,697,557,813,673,734,626,746,666,566,622,662,605,920,643,610,568,312,317,312,298,355,233,455,505,420,508,437,278,491,518,240,240,509,246,797,519,497,519,505,390,391,301,519,441,686,456,461,414,351,222,351,482,180,161,338,338,459,711,664,251,401,632,557,625,625,625,625,625,625,898,640,594,594,594,594,340,340,340,340,673,734,734,734,734,734,734,662,662,662,662,610,589,455,455,455,455,455,455,694,420,437,437,437,437,240,240,240,240,519,497,497,497,497,497,497,519,519,519,519,461,461,946,768,566,391,568,414"
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
},
|
|
4004
4028
|
"fallback": {
|
|
4005
4029
|
"latin": "612,612,612,1392,857,1297,1220,612,612,612,666,780,612,612,612,698,1066,667,1003,1055,1094,1015,1133,1153,1081,1158,612,612,679,840,679,864,1498,1160,1140,1316,1302,1140,1128,1340,1280,612,1004,1215,943,1580,1300,1330,1177,1330,1232,1056,1100,1289,1160,1882,1140,1070,1200,612,802,612,709,980,722,1063,1098,994,1098,994,674,969,1008,612,612,942,612,1654,998,1016,1063,1098,612,842,628,998,918,1462,980,930,896,623,612,623,716,612,612,612,612,708,1100,1042,612,711,1406,1087,1160,1160,1160,1160,1160,1160,1681,1316,1140,1140,1140,1140,612,612,612,612,1300,1330,1330,1330,1330,1330,1330,1289,1289,1289,1289,1070,1138,1063,1063,1063,1063,1063,1063,1915,994,994,994,994,994,612,612,612,612,998,1016,1016,1016,1016,1016,1016,998,998,998,998,930,930,1962,1696,1056,842,1200,896",
|
|
4006
4030
|
"hebrew": "681,641,498,587,660,333,424,683,696,352,565,572,550,690,698,330,455,664,653,648,671,588,622,680,593,881,730,450,306,568"
|
|
@@ -11,8 +11,20 @@ import { matchFontWeight, parseFontFamilies } from './fonts';
|
|
|
11
11
|
* weight CSS font matching picks. A family the catalog does not hold (an uploaded font, system-ui) reads each letter at
|
|
12
12
|
* the widest any catalog face draws it — never narrower than what the page could wear. No kerning: a display face's
|
|
13
13
|
* kerning closes letters up, so the sum is the wider answer. Pure and deterministic: the composer and the check agree.
|
|
14
|
+
*
|
|
15
|
+
* R-H-AW12-5: a family with an optical-size axis draws narrower at large sizes (the browser sets `opsz` from the font
|
|
16
|
+
* size), so the contract also measures it at its largest optical size (`fontMetrics.display`). A word sized from those
|
|
17
|
+
* widths ({@link OpticalSize.Display}) must wear that optical size — iox-design.css pins it on the footer's closing name.
|
|
14
18
|
*/
|
|
15
19
|
|
|
20
|
+
/** Which optical size a word is measured at. */
|
|
21
|
+
export enum OpticalSize {
|
|
22
|
+
/** The instance Google serves by default (its smallest text size — the wider answer). */
|
|
23
|
+
Text = 'text',
|
|
24
|
+
/** The axis's largest optical size: what a word pinned to `font-variation-settings: 'opsz' <max>` wears. */
|
|
25
|
+
Display = 'display',
|
|
26
|
+
}
|
|
27
|
+
|
|
16
28
|
/** A face as a style wears it: its font stack, weight and letter spacing (em). */
|
|
17
29
|
export interface TypeFace {
|
|
18
30
|
stack: string;
|
|
@@ -35,6 +47,8 @@ const ALPHABETS: Readonly<Record<Script, ReadonlyArray<string>>> = {
|
|
|
35
47
|
[Script.Hebrew]: Array.from(SPEC_FONT_METRICS.alphabets.hebrew),
|
|
36
48
|
};
|
|
37
49
|
const FAMILIES = SPEC_FONT_METRICS.families as Readonly<Record<string, Readonly<Record<string, Partial<Record<Script, string>>>>>>;
|
|
50
|
+
type DisplayFamily = { readonly opsz: number; readonly weights: Readonly<Record<string, Partial<Record<Script, string>>>> };
|
|
51
|
+
const DISPLAY = SPEC_FONT_METRICS.display as Readonly<Record<string, DisplayFamily>>;
|
|
38
52
|
const parsed = new Map<string, Row>();
|
|
39
53
|
|
|
40
54
|
function rowOf(key: string, csv: string): Row {
|
|
@@ -49,21 +63,27 @@ const FALLBACK: Readonly<Record<Script, Row>> = {
|
|
|
49
63
|
[Script.Hebrew]: rowOf('fallback:hebrew', SPEC_FONT_METRICS.fallback.hebrew),
|
|
50
64
|
};
|
|
51
65
|
|
|
52
|
-
/**
|
|
53
|
-
|
|
66
|
+
/**
|
|
67
|
+
* A measured family's row for a script at the weight CSS would pick, or null when that family does not draw it. At the
|
|
68
|
+
* display optical size a family with an optical-size axis reads its display widths; any other family has one size.
|
|
69
|
+
*/
|
|
70
|
+
function familyRow(family: string, weight: number, script: Script, optical: OpticalSize): Row | null {
|
|
54
71
|
const weights = FAMILIES[family];
|
|
55
72
|
const face = matchFontWeight(Object.keys(weights).map(w => ({ weight: Number(w) })), weight);
|
|
56
|
-
|
|
57
|
-
|
|
73
|
+
if (!face) return null;
|
|
74
|
+
const display = optical === OpticalSize.Display ? DISPLAY[family]?.weights[String(face.weight)]?.[script] : undefined;
|
|
75
|
+
if (display) return rowOf(`${family}:${face.weight}:${script}:display`, display);
|
|
76
|
+
const csv = weights[String(face.weight)]?.[script];
|
|
77
|
+
return csv ? rowOf(`${family}:${face.weight}:${script}`, csv) : null;
|
|
58
78
|
}
|
|
59
79
|
|
|
60
80
|
/** One letter's advance in thousandths of an em, as the stack draws it. */
|
|
61
|
-
function advanceOf(ch: string, families: ReadonlyArray<string>, weight: number): number {
|
|
81
|
+
function advanceOf(ch: string, families: ReadonlyArray<string>, weight: number, optical: OpticalSize): number {
|
|
62
82
|
const script = HEBREW.test(ch) ? Script.Hebrew : Script.Latin;
|
|
63
83
|
const at = ALPHABETS[script].indexOf(ch);
|
|
64
84
|
for (const family of families) {
|
|
65
85
|
if (!FAMILIES[family]) break;
|
|
66
|
-
const row = familyRow(family, weight, script);
|
|
86
|
+
const row = familyRow(family, weight, script, optical);
|
|
67
87
|
if (!row) continue;
|
|
68
88
|
if (at < 0) return widest(row);
|
|
69
89
|
if (row[at] >= 0) return row[at];
|
|
@@ -73,12 +93,12 @@ function advanceOf(ch: string, families: ReadonlyArray<string>, weight: number):
|
|
|
73
93
|
}
|
|
74
94
|
|
|
75
95
|
/** How wide `text` stands in `face`, in em, on one line: every letter's advance plus the letter spacing after each. */
|
|
76
|
-
export function textWidthEm(text: string, face: TypeFace): number {
|
|
96
|
+
export function textWidthEm(text: string, face: TypeFace, optical: OpticalSize = OpticalSize.Text): number {
|
|
77
97
|
const families = parseFontFamilies(face.stack);
|
|
78
98
|
let width = 0;
|
|
79
99
|
for (const ch of Array.from(String(text ?? ''))) {
|
|
80
100
|
if (MARK.test(ch)) continue;
|
|
81
|
-
width += advanceOf(ch, families, face.weight) / PER_EM + face.tracking;
|
|
101
|
+
width += advanceOf(ch, families, face.weight, optical) / PER_EM + face.tracking;
|
|
82
102
|
}
|
|
83
103
|
return Math.max(0, width);
|
|
84
104
|
}
|
|
@@ -2,6 +2,7 @@ import { GenerationTier } from './site-plan.model';
|
|
|
2
2
|
import { LayoutIssue, LayoutIssueCode, LayoutLayer, LayoutLayerKind, LayoutSection, LayoutSectionKind } from './layout-language';
|
|
3
3
|
import { SPEC_SITE_LAYOUT } from './site-spec.generated';
|
|
4
4
|
import { colorSchemeOf, planSectionShape, SECTION_EDGE_TYPES, sectionShapeOf, sectionEdgeClass, SectionShape, setSectionEdge, setSectionShape } from '@vectoriox/iox-ui/design-core';
|
|
5
|
+
import { patternById } from './patterns';
|
|
5
6
|
import { SerializedNode, walkSerialized } from './serialized-node';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -304,6 +305,48 @@ export function wearBodyMix(layout: ReadonlyArray<SerializedNode>, mix: BodyMix
|
|
|
304
305
|
return out;
|
|
305
306
|
}
|
|
306
307
|
|
|
308
|
+
/** The section style's own padding (`--iox-section-pad` = the section rhythm above and below, the column's inset either
|
|
309
|
+
* side) — what a composed section wears when it carries no padding of its own. */
|
|
310
|
+
const SECTION_PAD = 'var(--iox-section-pad)';
|
|
311
|
+
const SECTION_PAD_SIDES: Readonly<[string, string, string, string]> = ['var(--iox-space-section)', 'var(--iox-space-inline)', 'var(--iox-space-section)', 'var(--iox-space-inline)'];
|
|
312
|
+
const NO_SPACE = '0px';
|
|
313
|
+
/** A joined header's padding when it wore the section style's own (the usual case): the rhythm above, none below. */
|
|
314
|
+
/** The contract's pattern family of a page's opening header band (`header.*`). */
|
|
315
|
+
const PAGE_HEADER_FAMILY = 'header';
|
|
316
|
+
export const JOINED_HEADER_PADDING = `${SECTION_PAD_SIDES[0]} ${SECTION_PAD_SIDES[1]} ${NO_SPACE} ${SECTION_PAD_SIDES[3]}`;
|
|
317
|
+
|
|
318
|
+
/** True for a composed section root stamped from a pattern of the `header` family (`page-header.*`). */
|
|
319
|
+
function isPageHeader(node: SerializedNode): boolean {
|
|
320
|
+
const pattern = node.composed && 'pattern' in node.composed ? node.composed.pattern : undefined;
|
|
321
|
+
return !!pattern && patternById(pattern)?.family === PAGE_HEADER_FAMILY;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* iox-ui#130: a page header and the section under it read as ONE opening. Two sections on the same ground each padded
|
|
326
|
+
* their rhythm — the header's below its words and the next one's above its own — so a list page's first cards sat
|
|
327
|
+
* two section gaps under the header's words (≈290px on a laptop, a blank third of a phone's first screen). The header
|
|
328
|
+
* gives its bottom space up; the next section's top space is the one gap between them. Only where nothing marks the
|
|
329
|
+
* meeting: the same ground (a different ground is a band that pads itself), neither a card nor a Scene, no seam (two
|
|
330
|
+
* equal grounds never wear one). Pure: the header is copied; a page with nothing to join is returned as it was.
|
|
331
|
+
*/
|
|
332
|
+
export function joinPageHeader(layout: ReadonlyArray<SerializedNode>): SerializedNode[] {
|
|
333
|
+
let out: SerializedNode[] | null = null;
|
|
334
|
+
for (let i = 0; i + 1 < layout.length; i++) {
|
|
335
|
+
const header = layout[i];
|
|
336
|
+
const next = layout[i + 1];
|
|
337
|
+
if (!isPageHeader(header) || !SECTION_EDGE_TYPES.includes(next.type)) continue;
|
|
338
|
+
if ((colorSchemeOf(header) ?? 'default') !== (colorSchemeOf(next) ?? 'default')) continue;
|
|
339
|
+
if (sectionShapeOf(header) === SectionShape.Card || sectionShapeOf(next) === SectionShape.Card || holdsScene(header) || holdsScene(next)) continue;
|
|
340
|
+
if (sectionEdgeClass(next.props?.['seam'])) continue;
|
|
341
|
+
const own = header.styleProps?.['padding'];
|
|
342
|
+
const parts = typeof own === 'string' && own.trim() && own.trim() !== SECTION_PAD ? shorthandParts(own) : [...SECTION_PAD_SIDES];
|
|
343
|
+
const [top, right = top, , left = right] = parts;
|
|
344
|
+
out ??= layout.map(n => n);
|
|
345
|
+
out[i] = { ...header, styleProps: { ...(header.styleProps ?? {}), padding: `${top} ${right} ${NO_SPACE} ${left}` } };
|
|
346
|
+
}
|
|
347
|
+
return out ?? (layout as SerializedNode[]);
|
|
348
|
+
}
|
|
349
|
+
|
|
307
350
|
// ── The check: a mix judged against the site, mended where the site cannot carry it, each mend said ──────────────────
|
|
308
351
|
|
|
309
352
|
export enum BodyRepairCode {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
tabPanelImageOf, tabPanelTextOf, tabsListOf, tabsPanels, tabsPanelsOf, tabsTriggers, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP,
|
|
13
13
|
TABS_TEXT_BIND_PROP, tabsWords, TabsAutoBinds, BadgeTone, BADGE_TONES, buildSegmentedRecipe, CardWords, ITEM_OPEN_STATE, segmentedOptions,
|
|
14
14
|
setHeaderBehaviour, setHeaderInk, SHOP_RECIPES, ShopRecipe, ShopRole, bindShopPart, ShopBindTarget, ACCOUNT_RECIPES, AccountRecipe, AccountRole,
|
|
15
|
-
buildConsentRecipe, ConsentActionType,
|
|
15
|
+
buildConsentRecipe, ConsentActionType, CarouselFrom, carouselQuoteLabel, pickCarouselAutoBinds,
|
|
16
16
|
} from '@vectoriox/iox-ui/composite-core';
|
|
17
17
|
import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
|
|
18
18
|
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
stampOpeningMotion, TYPE_LED_OPTIONAL_PARTS, typeLedOpeningSection,
|
|
30
30
|
} from './opening-mix';
|
|
31
31
|
import { checkHeader, drawnHeaderMix, HeaderContext, headerContextOfPlan, HeaderIngredient, headerMix, HeaderMix, headerRecipe, HeaderRecipe, stampHeaderMix, wornHeaderOfPlan } from './header-mix';
|
|
32
|
-
import { bodyMixOfPlan, checkBody, drawnBodyMix, wearBodyMix } from './body-mix';
|
|
32
|
+
import { bodyMixOfPlan, checkBody, drawnBodyMix, joinPageHeader, wearBodyMix } from './body-mix';
|
|
33
33
|
import { NODE_BASELINES } from './node-baselines.generated';
|
|
34
34
|
import {
|
|
35
35
|
BindScope, CardBindTarget, parsePatternPath, PatternDirective, PatternGlobalPosition, PatternNode, PatternOpens, PatternPlaceholder, PatternRecipe, PatternTrack,
|
|
@@ -86,11 +86,14 @@ export enum PlaceholderKind {
|
|
|
86
86
|
/** AW1: a stamped legal page's text — what belongs there ("Your privacy policy: …"), never a word of policy. Its page
|
|
87
87
|
* holds Publish while it shows the label (`auditSite`, `legal-page-placeholder`, by the page's kind). */
|
|
88
88
|
Policy = 'policy',
|
|
89
|
+
/** iox-ui#132: a testimonial's words or its person with no list of real quotes behind them — what belongs there
|
|
90
|
+
* ("A client's own words go here"), never somebody's invented words. A fact a customer could be held to: blocking. */
|
|
91
|
+
Quote = 'quote',
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
/** The placeholders a page cannot be published with unfilled (W4's gate): a fact, a price, a number, the studio's own
|
|
92
|
-
* video. Copy and an empty image are the author's to rewrite, never blocking. */
|
|
93
|
-
export const PUBLISH_BLOCKING_PLACEHOLDERS: ReadonlySet<PlaceholderKind> = new Set([PlaceholderKind.Price, PlaceholderKind.Stat, PlaceholderKind.Video]);
|
|
95
|
+
* video, a testimonial's words (iox-ui#132). Copy and an empty image are the author's to rewrite, never blocking. */
|
|
96
|
+
export const PUBLISH_BLOCKING_PLACEHOLDERS: ReadonlySet<PlaceholderKind> = new Set([PlaceholderKind.Price, PlaceholderKind.Stat, PlaceholderKind.Video, PlaceholderKind.Quote]);
|
|
94
97
|
|
|
95
98
|
/** True when a placeholder of `kind` blocks publishing until the studio fills it. */
|
|
96
99
|
export function blocksPublish(kind: PlaceholderKind): boolean {
|
|
@@ -1448,19 +1451,43 @@ function recipeFactory(id: string, rootKey: string): (spec: CompositeNodeSpec) =
|
|
|
1448
1451
|
|
|
1449
1452
|
/**
|
|
1450
1453
|
* CC3: the testimonial carousel — composite-core's recipe (the Slider with its control parts), stamped with this
|
|
1451
|
-
* composer's factory.
|
|
1452
|
-
*
|
|
1454
|
+
* composer's factory. Testimonials are facts, never invented (iox-ui#132): when the plan holds a list of real quotes
|
|
1455
|
+
* (`quoteListOf` — a type playing the `quote` role) the carousel REPEATS it, one template slide bound to the quote and
|
|
1456
|
+
* the person, so the owner's reviews reach it; else every slide says what belongs there (`carouselQuoteLabel`) and
|
|
1457
|
+
* holds Publish (`PlaceholderKind.Quote`) — never a sample sentence or a bracketed name a visitor could read.
|
|
1453
1458
|
*/
|
|
1454
1459
|
function composeCarousel(pn: PatternNode, id: string, ctx: Ctx): SerializedNode {
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1460
|
+
const from = quoteListOf(ctx.plan);
|
|
1461
|
+
const label = carouselQuoteLabel(ctx.plan.locale);
|
|
1462
|
+
const slider = buildCarouselRecipe(recipeFactory(id, 'carousel'), {
|
|
1463
|
+
lang: ctx.plan.locale, ...(pn.name ? { name: ownName(pn, ctx.plan.locale) } : {}),
|
|
1464
|
+
...(from ? { from } : { quotes: [label, label, label] }),
|
|
1465
|
+
}) as SerializedNode;
|
|
1466
|
+
if (!from) {
|
|
1457
1467
|
for (const slide of (slider.children ?? []).filter(c => c.type === SLIDE_TYPE)) {
|
|
1458
|
-
for (const text of slide.children ?? []) ctx.placeholders.push({ nodeId: text.id, owner: ctx.owner, kind: PlaceholderKind.
|
|
1468
|
+
for (const text of slide.children ?? []) ctx.placeholders.push({ nodeId: text.id, owner: ctx.owner, kind: PlaceholderKind.Quote, text: String(text.props?.['content'] ?? '') });
|
|
1459
1469
|
}
|
|
1460
1470
|
}
|
|
1461
1471
|
return slider;
|
|
1462
1472
|
}
|
|
1463
1473
|
|
|
1474
|
+
/**
|
|
1475
|
+
* iox-ui#132: the plan's list of real quotes — the first query of the plan's content whose type plays the `quote` role,
|
|
1476
|
+
* with the fields a carousel's slides show (`pickCarouselAutoBinds`: the roles first). Null when the plan holds none.
|
|
1477
|
+
*/
|
|
1478
|
+
export function quoteListOf(plan: SitePlan): CarouselFrom | null {
|
|
1479
|
+
for (const d of plan.dataSources) {
|
|
1480
|
+
if (d.type !== PlanDataSourceType.Cms || d.mode !== PlanDataSourceMode.Query) continue;
|
|
1481
|
+
const type = plan.contentTypes.find(t => t.name === d.contentType);
|
|
1482
|
+
if (!type || !roleField(type, ContentRole.Quote)) continue;
|
|
1483
|
+
const { quote, who } = pickCarouselAutoBinds(fieldsOf(type), {
|
|
1484
|
+
quote: roleField(type, ContentRole.Quote), who: roleField(type, ContentRole.Person),
|
|
1485
|
+
});
|
|
1486
|
+
if (quote) return { source: d.alias, quote, who };
|
|
1487
|
+
}
|
|
1488
|
+
return null;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1464
1491
|
/**
|
|
1465
1492
|
* AW8 (`media.slideshow`): composite-core's slideshow (a fading Slider, its pause control and dots), stamped with this
|
|
1466
1493
|
* composer's factory; every picture is an empty-image placeholder (the studio's own go in). The pattern node's layout
|
|
@@ -1855,7 +1882,7 @@ function composeSiteOnce(plan: SitePlan, context: ComposeContext, pictureless: R
|
|
|
1855
1882
|
return {
|
|
1856
1883
|
key: page.key, name: page.name, route: { path: page.route }, isHome: page.isHome === true, status: STATUS_DRAFT, locale,
|
|
1857
1884
|
pageSettings: { designSystem: true, layoutSource: { pageKey: page.key }, ...(opening ? { opening } : {}) }, seo: composePageSeo(page, plan),
|
|
1858
|
-
layout: wearBodyMix(nodes, body),
|
|
1885
|
+
layout: joinPageHeader(wearBodyMix(nodes, body)),
|
|
1859
1886
|
};
|
|
1860
1887
|
}
|
|
1861
1888
|
if (page.layout) {
|
|
@@ -1874,7 +1901,7 @@ function composeSiteOnce(plan: SitePlan, context: ComposeContext, pictureless: R
|
|
|
1874
1901
|
return {
|
|
1875
1902
|
key: page.key, name: page.name, route: { path: page.route }, isHome: page.isHome === true, status: STATUS_DRAFT, locale,
|
|
1876
1903
|
pageSettings: { designSystem: true, layoutSource: { pageKey: page.key }, ...(opening ? { opening } : {}), ...(column ? { column } : {}) }, seo: composePageSeo(page, plan),
|
|
1877
|
-
layout: wearBodyMix(worn, body),
|
|
1904
|
+
layout: joinPageHeader(wearBodyMix(worn, body)),
|
|
1878
1905
|
};
|
|
1879
1906
|
}
|
|
1880
1907
|
const layout = wearPlanOpening(page, page.sections.map((section, i) => {
|
|
@@ -1898,7 +1925,7 @@ function composeSiteOnce(plan: SitePlan, context: ComposeContext, pictureless: R
|
|
|
1898
1925
|
locale,
|
|
1899
1926
|
pageSettings: { designSystem: true, ...(opening ? { opening } : {}) },
|
|
1900
1927
|
seo: composePageSeo(page, plan),
|
|
1901
|
-
layout: wearBodyMix(layout, body),
|
|
1928
|
+
layout: joinPageHeader(wearBodyMix(layout, body)),
|
|
1902
1929
|
};
|
|
1903
1930
|
});
|
|
1904
1931
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DesignChoices, designTokenRows, elementStyleFace, FOOTER_MIX_PROP, resolveDesignChoices, SECTION_SHAPE_TRAIT, SectionShape, textWidthEm } from '@vectoriox/iox-ui/design-core';
|
|
1
|
+
import { DesignChoices, designTokenRows, elementStyleFace, FOOTER_MIX_PROP, OpticalSize, resolveDesignChoices, SECTION_SHAPE_TRAIT, SectionShape, textWidthEm } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
|
|
3
3
|
import { layoutColumnPx, layoutGutterPx } from './layout-column';
|
|
4
4
|
import { layoutRoomPx, screenFontSize, screenWordOverflowPx } from './layout-language';
|
|
@@ -330,7 +330,8 @@ const rule = (k: string): number => Number(RULES[k]);
|
|
|
330
330
|
/** How wide `text` stands at 1em in an element style's face. */
|
|
331
331
|
const widthEm = (text: string, ctx: FooterContext, style = 'display'): number => textWidthEm(text, elementStyleFace(ctx.design, style));
|
|
332
332
|
/** How wide the name stands at 1em in the look's display face. */
|
|
333
|
-
|
|
333
|
+
/** R-H-AW12-5: the closing name wears its face's largest optical size (iox-design.css pins it), so it is measured there. */
|
|
334
|
+
const nameWidthEm = (ctx: FooterContext): number => textWidthEm(ctx.name, elementStyleFace(ctx.design, 'display'), OpticalSize.Display);
|
|
334
335
|
/** True when a word `em` wide runs past a phone's room at the smallest screen size. */
|
|
335
336
|
const overflowsPhone = (em: number, ctx: FooterContext): boolean =>
|
|
336
337
|
screenWordOverflowPx(em, 12, PHONE_WIDTH, true, { gutter: layoutGutterPx(ctx.design.density) }) > 0;
|
|
@@ -490,8 +491,8 @@ function columnsOf(count: number): Pick<PatternNode, 'lay' | 'resp'> {
|
|
|
490
491
|
/** A word fitted to the column as a layout's screen word is (`screenFontSize`, the 12-column room), never under the
|
|
491
492
|
* smallest or over the largest screen word. Award §0c CW2 / iox-ui#117: the column of the PAGE it is on (`content-cap`),
|
|
492
493
|
* the site's word only its fallback — a global footer fits a narrow page of a contained site. */
|
|
493
|
-
const columnSize = (em: number, ctx: FooterContext, cols = 12): string =>
|
|
494
|
-
screenFontSize(em, cols, 0, 0, 0, layoutColumnPx(ctx.design.column, ctx.design.density), true);
|
|
494
|
+
const columnSize = (em: number, ctx: FooterContext, cols = 12, typeCap = true): string =>
|
|
495
|
+
screenFontSize(em, cols, 0, 0, 0, layoutColumnPx(ctx.design.column, ctx.design.density), true, typeCap);
|
|
495
496
|
|
|
496
497
|
/** The closing name: the business name across the width, fitted to the name in the look's display face. A gradient or an
|
|
497
498
|
* embossed name is the decorative copy (AW12-D12). */
|
|
@@ -500,7 +501,10 @@ function closingName(ctx: FooterContext, mix: FooterMix): PatternNode {
|
|
|
500
501
|
const copy = style === FooterNameStyle.Gradient || style === FooterNameStyle.Emboss;
|
|
501
502
|
// An offset name starts at the second of twelve columns (iox-design.css), so it is fitted to eleven.
|
|
502
503
|
const cols = style === FooterNameStyle.Offset ? 11 : 12;
|
|
503
|
-
|
|
504
|
+
// R-H-AW12-5 (decided 2026-11-25): name-and-action's name stands on both column edges, so it takes no type-scale
|
|
505
|
+
// ceiling — a short name ("Nord", a four-letter Hebrew name) would otherwise stop at 560px, well short of the edge.
|
|
506
|
+
const edgeToEdge = mix.closing === FooterClosing.NameAndAction;
|
|
507
|
+
return { ...laid(part('name'), { fontSize: columnSize(nameWidthEm(ctx), ctx, cols, !edgeToEdge) }), ...(copy ? { role: FooterRole.NameCopy } : {}) };
|
|
504
508
|
}
|
|
505
509
|
|
|
506
510
|
/** The call word (AW12 `closing.word`): closed copy for the business, fitted to the column. */
|