@vectoriox/iox-ui 5.168.0 → 5.170.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/commerce-core/index.d.ts +32 -3
- package/design-core/index.d.ts +91 -5
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +52 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +147 -15
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +76 -11
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +30 -5
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +34 -4
- package/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/commerce-core/shop-display.ts +35 -1
- package/src/commerce-core/variants.ts +25 -0
- package/src/design-core/flavor-spec.generated.ts +24 -0
- package/src/design-core/font-metrics.ts +28 -8
- package/src/design-core/footer-classes.ts +14 -3
- package/src/design-core/header-behaviour.ts +87 -5
- package/src/generation-core/compose-site.ts +3 -0
- package/src/generation-core/contact-facts.ts +61 -0
- package/src/generation-core/footer-mix.ts +16 -8
- package/src/generation-core/layout-language.ts +6 -2
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-build-run.ts +12 -0
- package/styles/iox-design.css +53 -8
|
@@ -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;
|
|
@@ -14508,6 +14508,29 @@ declare function openingContextOf(input: Pick<OpeningInput, 'business' | 'design
|
|
|
14508
14508
|
*/
|
|
14509
14509
|
declare function composeOpening(input: OpeningInput, options: SectionOptions): ComposedOpening;
|
|
14510
14510
|
|
|
14511
|
+
/**
|
|
14512
|
+
* vectoriox/iox-ui#144 — ONE source for a site's contact details. A build leaves a contact line it was not given as the
|
|
14513
|
+
* fact's label ("Phone number") and a `fact` placeholder; the owner then fills the shop's business email, phone and
|
|
14514
|
+
* address in Shop ▸ Settings (the checkout needs them) and the same lines still asked for them, so the owner wrote every
|
|
14515
|
+
* fact twice. These are the two pure halves iox-cms applies: the facts a business row gives, and a layout whose unfilled
|
|
14516
|
+
* contact lines show them. A line the owner changed is theirs and is never touched; a fact nobody gave stays a label.
|
|
14517
|
+
*/
|
|
14518
|
+
/** A business's contact details as a store keeps them (iox-cms `BusinessIdentity`; the site's Info details too). */
|
|
14519
|
+
interface ContactBusiness {
|
|
14520
|
+
email?: string | null;
|
|
14521
|
+
phone?: string | null;
|
|
14522
|
+
/** One line — a store writes the street and the city together ("Dizengoff 10, Tel Aviv"). */
|
|
14523
|
+
address?: string | null;
|
|
14524
|
+
}
|
|
14525
|
+
/** The facts a business row gives (the mirror of iox-cms `shopBusinessFromFacts`). The city stays its own fact: a store's
|
|
14526
|
+
* address line is not split. */
|
|
14527
|
+
declare function contactFactsOf(business: ContactBusiness | null | undefined): Partial<Record<FactKey, string>>;
|
|
14528
|
+
/**
|
|
14529
|
+
* The layout with every contact line the owner has not touched showing the fact `facts` gives, in place of its label. Pure:
|
|
14530
|
+
* new nodes, the input never mutated. A line holding two facts ("Phone number · Email address") takes each it is given.
|
|
14531
|
+
*/
|
|
14532
|
+
declare function fillContactFacts(nodes: ReadonlyArray<SerializedNode>, placeholders: ReadonlyArray<Pick<ComposedPlaceholder, 'nodeId' | 'kind' | 'fact' | 'text'>>, facts: Readonly<Partial<Record<FactKey, string>>>, locale?: string | null): SerializedNode[];
|
|
14533
|
+
|
|
14511
14534
|
/**
|
|
14512
14535
|
* What each page of a plan shows and where its data comes from (AI plan rev 3 §3d, `describePlanData`) — the
|
|
14513
14536
|
* Plan step's data lines, in the vocabulary the builder already uses. Pure and STRUCTURED: the screen words
|
|
@@ -14812,7 +14835,11 @@ declare enum BuildNoticeCode {
|
|
|
14812
14835
|
FooterMended = "footer-mended",
|
|
14813
14836
|
/** AW6: the body the plan asked for was mended (a section edge that comes with the award plan, on a basic build) —
|
|
14814
14837
|
* said like the header's, the opening's and the footer's. */
|
|
14815
|
-
BodyMended = "body-mended"
|
|
14838
|
+
BodyMended = "body-mended",
|
|
14839
|
+
/** iox-ui#129: pictures nothing fills were not drawn as empty boxes — those sections were composed type-led (the home
|
|
14840
|
+
* page opening on its words, a list's cards without their picture). Said once, so the owner knows a photo of theirs
|
|
14841
|
+
* brings the picture-led section back (a Re-fit, or the next build). */
|
|
14842
|
+
TypeLed = "type-led"
|
|
14816
14843
|
}
|
|
14817
14844
|
/** RD3-D3 (a): what a build does with a page an earlier Undo kept at an address its plan builds — the header and footer's
|
|
14818
14845
|
* pair (`replaceGlobals`), for pages. */
|
|
@@ -14834,6 +14861,9 @@ declare const PREVIOUS_ROUTE_SUFFIX = "-previous";
|
|
|
14834
14861
|
* `/shop-previous/:slug`, and a route of parameters only (`/:slug`) → `/previous/:slug`. */
|
|
14835
14862
|
declare function previousRoute(route: string, taken: ReadonlyArray<string>): string;
|
|
14836
14863
|
declare function mendNotices(issues: ReadonlyArray<ComposeIssue>): BuildNotice[];
|
|
14864
|
+
/** iox-ui#129: what a composition made type-led, said once (`BuildNoticeCode.TypeLed`) — every change's words joined,
|
|
14865
|
+
* for the log and the API; the screen shows the code's own sentence. Nothing type-led: nothing said. */
|
|
14866
|
+
declare function typeLedNotices(typeLed: Pick<TypeLed, 'changes'> | undefined): BuildNotice[];
|
|
14837
14867
|
interface BuildNotice {
|
|
14838
14868
|
code: string;
|
|
14839
14869
|
detail: string;
|
|
@@ -19358,5 +19388,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
|
|
|
19358
19388
|
* its phone menu, the footer's copyright line. */
|
|
19359
19389
|
declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
|
|
19360
19390
|
|
|
19361
|
-
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, 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, 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, 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 };
|
|
19362
|
-
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, 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 };
|
|
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 };
|
|
19392
|
+
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/index.d.ts
CHANGED
|
@@ -3381,6 +3381,10 @@ interface PipeContext {
|
|
|
3381
3381
|
locale?: string;
|
|
3382
3382
|
/** The studio's currency (ISO 4217) — what the `money` pipe formats a bare number in when the binding names none. */
|
|
3383
3383
|
currency?: string;
|
|
3384
|
+
/** The data the binding's path was read from, and that path (`resolveBoundValue` adds both) — so the `money` pipe can
|
|
3385
|
+
* read a list row's product whose options carry its prices (vectoriox/iox-ui#142). */
|
|
3386
|
+
source?: unknown;
|
|
3387
|
+
path?: string;
|
|
3384
3388
|
}
|
|
3385
3389
|
type PipeFn = (value: any, args: any[], ctx: PipeContext) => any;
|
|
3386
3390
|
/** AW11-D10: the pipes a colour block's `style:` bindings carry (the ground drawn, the ink on it). */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CurrencyCode, isCurrencyCode } from './currency';
|
|
2
2
|
import { CommerceLabel } from './labels';
|
|
3
3
|
import { formatMoney, isMoney } from './money';
|
|
4
|
-
import { storefrontMoney, StorefrontProduct } from './variants';
|
|
4
|
+
import { productListPrice, storefrontMoney, StorefrontProduct } from './variants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* How a price READS on a page — the `money` binding pipe (shop-aware plan A-D2, amended by C-D7) on the builder canvas,
|
|
@@ -65,6 +65,8 @@ export enum ShopWord {
|
|
|
65
65
|
VatNote = 'vatNote',
|
|
66
66
|
CheckOut = 'checkOut',
|
|
67
67
|
KeepShopping = 'keepShopping',
|
|
68
|
+
/** A list card's price for a product whose options differ in price (vectoriox/iox-ui#142). */
|
|
69
|
+
PriceFrom = 'priceFrom',
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
/** `{name}` / `{n}` / `{amount}` are filled by `shopWord`. */
|
|
@@ -90,6 +92,7 @@ export const SHOP_WORDS: Readonly<Record<ShopWord, CommerceLabel>> = Object.free
|
|
|
90
92
|
[ShopWord.VatNote]: { en: 'Includes VAT. Delivery is chosen at checkout.', he: 'כולל מע״מ. המשלוח נבחר בקופה.' },
|
|
91
93
|
[ShopWord.CheckOut]: { en: 'Check out', he: 'לקופה' },
|
|
92
94
|
[ShopWord.KeepShopping]: { en: 'Keep shopping', he: 'המשך בקניות' },
|
|
95
|
+
[ShopWord.PriceFrom]: { en: 'From {amount}', he: 'החל מ־{amount}' },
|
|
93
96
|
});
|
|
94
97
|
|
|
95
98
|
export function shopWord(word: ShopWord, lang: string | null | undefined, fill: Readonly<Record<string, string | number>> = {}): string {
|
|
@@ -99,6 +102,37 @@ export function shopWord(word: ShopWord, lang: string | null | undefined, fill:
|
|
|
99
102
|
return raw.replace(/\{(\w+)\}/g, (all, key) => (key in fill ? String(fill[key]) : all));
|
|
100
103
|
}
|
|
101
104
|
|
|
105
|
+
/** The stored price paths of a product a list binds (generation-core `SHOP_ROLES` `price` / `compareAt`). */
|
|
106
|
+
export enum ProductPricePath {
|
|
107
|
+
Price = 'pricing.price',
|
|
108
|
+
CompareAt = 'pricing.compareat',
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* vectoriox/iox-ui#142 — a product's PRICE PATH read on a list card, for a product whose options carry the prices: the
|
|
113
|
+
* `money` pipe asks it with the row the binding read and the path it read, so every list a studio already holds (bound
|
|
114
|
+
* `pricing.price | money` to its row) shows "From ₪89.00" with no rebuild. `undefined` when it does not apply — not a
|
|
115
|
+
* product with options, not a price path, no priced variant — and the pipe formats the stored value as before.
|
|
116
|
+
* `currency` is used only when the product names none (the pipe's argument, else the studio's).
|
|
117
|
+
*/
|
|
118
|
+
export function listPriceField(row: unknown, path: string | null | undefined, locale?: string | null, currency?: string | null): string | undefined {
|
|
119
|
+
if (path !== ProductPricePath.Price && path !== ProductPricePath.CompareAt) return undefined;
|
|
120
|
+
if (!row || typeof row !== 'object' || Array.isArray(row)) return undefined;
|
|
121
|
+
const product = row as StorefrontProduct;
|
|
122
|
+
if (!product.productVariants) return undefined;
|
|
123
|
+
const fallback = String(currency ?? '').trim().toUpperCase();
|
|
124
|
+
const listed = productListPrice(product.currency || !isCurrencyCode(fallback) ? product : { ...product, currency: fallback });
|
|
125
|
+
if (!listed) return undefined;
|
|
126
|
+
const lang = locale || DEFAULT_MONEY_LOCALE;
|
|
127
|
+
try {
|
|
128
|
+
if (path === ProductPricePath.CompareAt) return listed.compareAt ? formatMoney(listed.compareAt, lang) : '';
|
|
129
|
+
const amount = formatMoney(listed.price, lang);
|
|
130
|
+
return listed.from ? shopWord(ShopWord.PriceFrom, lang, { amount }) : amount;
|
|
131
|
+
} catch {
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
102
136
|
// ── the sample a canvas shows when no product is bound (commerce board 10, "Studio Kadar") ────────────────────────
|
|
103
137
|
|
|
104
138
|
/** Board 10's tall speckled vase: Glaze (Sand · Ash · Charcoal — Charcoal sold out) × Size (24 · 32 · 40 cm — 40 sold
|
|
@@ -314,3 +314,28 @@ export function variantSlotOf(product: StorefrontProduct | null | undefined, cho
|
|
|
314
314
|
const variant = options.length ? findVariant(options, views, pick) : views[0] ?? null;
|
|
315
315
|
return variant ? { ...variant, productId: product._id, words: variantWords(variant.choice, options), quantity } : null;
|
|
316
316
|
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* What a LIST shows for a product (vectoriox/iox-ui#142): a product with options keeps its prices on its variants (its
|
|
320
|
+
* own `pricing.price` is empty, or stale), so a card reads the lowest price on sale — `from` when the variants' prices
|
|
321
|
+
* differ ("From ₪89.00"), and the earlier price only when there is one price. Null for a product with no options (its
|
|
322
|
+
* stored price is what it sells at) or one with no priced variant.
|
|
323
|
+
*/
|
|
324
|
+
export interface ProductListPrice {
|
|
325
|
+
price: Money;
|
|
326
|
+
/** Only when every variant on sale has the one price, and the cheapest's earlier price is above it. */
|
|
327
|
+
compareAt: Money | null;
|
|
328
|
+
/** The variants on sale have more than one price. */
|
|
329
|
+
from: boolean;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export function productListPrice(product: StorefrontProduct | null | undefined): ProductListPrice | null {
|
|
333
|
+
if (!product || !productOptions(product).length) return null;
|
|
334
|
+
const priced = productVariants(product).filter(v => v.enabled && v.price);
|
|
335
|
+
const sellable = priced.filter(v => v.sellable);
|
|
336
|
+
const pool = sellable.length ? sellable : priced;
|
|
337
|
+
if (!pool.length) return null;
|
|
338
|
+
const cheapest = pool.reduce((low, v) => (v.price!.amount < low.price!.amount ? v : low));
|
|
339
|
+
const from = pool.some(v => v.price!.amount !== cheapest.price!.amount);
|
|
340
|
+
return { price: cheapest.price!, compareAt: from ? null : cheapest.compareAt, from };
|
|
341
|
+
}
|
|
@@ -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
|
}
|
|
@@ -5,16 +5,24 @@
|
|
|
5
5
|
* `iox-footer-arrange-ruled`, `iox-footer-namestyle-gradient` — that the shared iox-design.css draws (the ruled cells'
|
|
6
6
|
* hairlines, the name's cut and style, the large links' arrow). The same decision in all three render paths
|
|
7
7
|
* (`nodeDesignClasses`), so the canvas, both engine paths and the raw SSR agree. Pure.
|
|
8
|
+
*
|
|
9
|
+
* A footer whose OWN Text Direction is right-to-left also renders `iox-footer-mirrored` (the gradient name runs from the
|
|
10
|
+
* reading start) — decided from the node as AW6's seams and AW11's lists are (`nodeIsRtl`), never by `:dir(rtl)`, which
|
|
11
|
+
* the builder canvas answers with the ADMIN's direction.
|
|
8
12
|
*/
|
|
9
13
|
|
|
14
|
+
import { DirectionSource, nodeIsRtl } from './locale-direction';
|
|
15
|
+
|
|
10
16
|
/** The prop (a Section's trait) the mix is stored under — generation-core `FOOTER_MIX_PROP`. */
|
|
11
17
|
export const FOOTER_MIX_PROP = 'footerMix';
|
|
12
18
|
/** Every class a mix writes starts with this — what a live re-sync removes. */
|
|
13
19
|
export const FOOTER_CLASS_PREFIX = 'iox-footer-';
|
|
20
|
+
/** Beside a mix's classes on a right-to-left footer: what runs along the reading direction turns the other way. */
|
|
21
|
+
export const FOOTER_MIRRORED_CLASS = 'iox-footer-mirrored';
|
|
14
22
|
|
|
15
23
|
const WORD = /^[a-zA-Z]+:[a-z0-9-]+$/;
|
|
16
24
|
|
|
17
|
-
interface FooterMixSource {
|
|
25
|
+
interface FooterMixSource extends DirectionSource {
|
|
18
26
|
props?: Readonly<Record<string, unknown>> | null;
|
|
19
27
|
traits?: ReadonlyArray<{ name?: string; default?: unknown }> | null;
|
|
20
28
|
}
|
|
@@ -27,9 +35,12 @@ export function footerMixWordsOf(node: FooterMixSource | null | undefined): stri
|
|
|
27
35
|
return words.filter((w): w is string => typeof w === 'string' && WORD.test(w));
|
|
28
36
|
}
|
|
29
37
|
|
|
30
|
-
/** The marker classes a footer root renders (`iox-footer-arrange-ruled iox-footer-namestyle-gradient
|
|
38
|
+
/** The marker classes a footer root renders (`iox-footer-arrange-ruled iox-footer-namestyle-gradient`, +
|
|
39
|
+
* `iox-footer-mirrored` on a right-to-left footer), or '' for a root with no mix. */
|
|
31
40
|
export function footerMixClasses(node: FooterMixSource | null | undefined): string {
|
|
32
|
-
|
|
41
|
+
const words = [...new Set(footerMixWordsOf(node))];
|
|
42
|
+
if (!words.length) return '';
|
|
43
|
+
return [...words.map(w => `${FOOTER_CLASS_PREFIX}${w.replace(':', '-').toLowerCase()}`), ...(nodeIsRtl(node) ? [FOOTER_MIRRORED_CLASS] : [])].join(' ');
|
|
33
44
|
}
|
|
34
45
|
|
|
35
46
|
/** True for a class this module writes. */
|
|
@@ -132,12 +132,94 @@ const BRAND_STEPS: ReadonlyArray<{ length: BrandNameLength; name: number; word:
|
|
|
132
132
|
{ length: BrandNameLength.Long, name: BRAND_NAME_LONG_AT, word: BRAND_WORD_LONG_AT },
|
|
133
133
|
];
|
|
134
134
|
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
|
|
135
|
+
/**
|
|
136
|
+
* vectoriox/iox-ui#143: the steps for a CROWDED bar — three controls or more beside the name on a phone (a store's
|
|
137
|
+
* account and bag beside the menu). Measured on a 390 store header (Fraunces, 4 × 16px gaps, 32px insets): the name kept
|
|
138
|
+
* 77px, and "Homeware" (8 letters, 110px at the lead size) broke inside the word. A crowded bar packs its controls
|
|
139
|
+
* (`BAR_ATTRIBUTE`, the shared CSS), which leaves the name ~105px at 360; at ~0.6em a letter that holds a 6-letter word at
|
|
140
|
+
* the name's own size, 7 at `size-lead`, 10 at `size-body` — and, at ~0.55em a character, two lines of 13 / 16 / 22.
|
|
141
|
+
*/
|
|
142
|
+
export const BRAND_CROWDED_NAME_LONG_AT = 13;
|
|
143
|
+
export const BRAND_CROWDED_NAME_LONGER_AT = 17;
|
|
144
|
+
export const BRAND_CROWDED_NAME_LONGEST_AT = 23;
|
|
145
|
+
export const BRAND_CROWDED_WORD_LONG_AT = 7;
|
|
146
|
+
export const BRAND_CROWDED_WORD_LONGER_AT = 8;
|
|
147
|
+
export const BRAND_CROWDED_WORD_LONGEST_AT = 11;
|
|
148
|
+
|
|
149
|
+
const BRAND_CROWDED_STEPS: ReadonlyArray<{ length: BrandNameLength; name: number; word: number }> = [
|
|
150
|
+
{ length: BrandNameLength.Longest, name: BRAND_CROWDED_NAME_LONGEST_AT, word: BRAND_CROWDED_WORD_LONGEST_AT },
|
|
151
|
+
{ length: BrandNameLength.Longer, name: BRAND_CROWDED_NAME_LONGER_AT, word: BRAND_CROWDED_WORD_LONGER_AT },
|
|
152
|
+
{ length: BrandNameLength.Long, name: BRAND_CROWDED_NAME_LONG_AT, word: BRAND_CROWDED_WORD_LONG_AT },
|
|
153
|
+
];
|
|
154
|
+
|
|
155
|
+
/** The step a name takes: by its length and by its longest word, whichever asks for the smaller type; null = its size. */
|
|
156
|
+
export function brandNameLength(words: string, crowded = false): BrandNameLength | null {
|
|
138
157
|
const text = words.replace(/<[^>]+>/g, '').replace(/\s+/g, ' ').trim();
|
|
139
158
|
const n = [...text].length;
|
|
140
159
|
const word = Math.max(0, ...text.split(' ').map(w => [...w].length));
|
|
141
|
-
|
|
142
|
-
|
|
160
|
+
return (crowded ? BRAND_CROWDED_STEPS : BRAND_STEPS).find(s => n >= s.name || word >= s.word)?.length ?? null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** The name's attributes: `{}` for a name that keeps its size. Never shortens the words — the type steps down, by the
|
|
164
|
+
* name's length and by its longest word, whichever asks for the smaller step. */
|
|
165
|
+
export function brandNameAttributes(words: string): Record<string, string> {
|
|
166
|
+
const step = brandNameLength(words);
|
|
167
|
+
return step ? { [BRAND_NAME_ATTRIBUTE]: step } : {};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// ── A crowded bar (vectoriox/iox-ui#143) ───────────────────────────────────────────────────────────────────────────
|
|
171
|
+
|
|
172
|
+
/** The navigation root's role (generation-core `NavRole.Root`). */
|
|
173
|
+
export const NAV_ROLE = 'nav';
|
|
174
|
+
/** Written on the navigation root when its phone bar is crowded: the shared CSS packs the controls. */
|
|
175
|
+
export const BAR_ATTRIBUTE = 'data-iox-bar';
|
|
176
|
+
/** Written beside it: the step the name takes in that bar (never smaller type than the name's own step asks). */
|
|
177
|
+
export const BAR_NAME_ATTRIBUTE = 'data-iox-bar-name';
|
|
178
|
+
|
|
179
|
+
export enum BarRoom {
|
|
180
|
+
Crowded = 'crowded',
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** From this many controls beside the name on a phone, the bar is crowded. */
|
|
184
|
+
export const BAR_CROWDED_AT = 3;
|
|
185
|
+
|
|
186
|
+
/** The parts that stay in the bar beside the name on a phone (generation-core `phoneHiddenParts` keeps the menu button, a
|
|
187
|
+
* store's bag and account; HI1 keeps a menu-at-every-width header's pinned pages and actions). Spelled here: design-core
|
|
188
|
+
* reads neither generation-core nor composite-core. */
|
|
189
|
+
export const PHONE_BAR_CONTROL_ROLES: ReadonlyArray<string> = ['nav.menu-button', 'shop.cart-button', 'account', 'nav.pinned', 'nav.actions'];
|
|
190
|
+
/** What never counts: the drawer (a Dialog) and everything in it. */
|
|
191
|
+
const BAR_SKIPPED_TYPES: ReadonlyArray<string> = ['Dialog'];
|
|
192
|
+
/** The phone layers that may hide a part (responsive-breakpoints plan: `mobile` ≤ 767, `small` ≤ 479). */
|
|
193
|
+
const PHONE_LAYERS: ReadonlyArray<string> = ['mobile', 'small'];
|
|
194
|
+
|
|
195
|
+
export interface BarNode {
|
|
196
|
+
role?: string | null;
|
|
197
|
+
type?: string;
|
|
198
|
+
styleProps?: Readonly<Record<string, unknown>> | null;
|
|
199
|
+
responsive?: Readonly<Record<string, { styleProps?: Readonly<Record<string, unknown>> | null } | null | undefined>> | null;
|
|
200
|
+
children?: ReadonlyArray<unknown> | null;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const hiddenOnPhone = (node: BarNode): boolean =>
|
|
204
|
+
node.styleProps?.['display'] === 'none' || PHONE_LAYERS.some(bp => node.responsive?.[bp]?.styleProps?.['display'] === 'none');
|
|
205
|
+
|
|
206
|
+
/** How many controls sit beside the name in the navigation's phone bar. */
|
|
207
|
+
export function phoneBarControls(nav: BarNode | null | undefined): number {
|
|
208
|
+
let n = 0;
|
|
209
|
+
const walk = (node: BarNode) => {
|
|
210
|
+
for (const child of (node.children ?? []) as ReadonlyArray<BarNode>) {
|
|
211
|
+
if (!child || (child.type && BAR_SKIPPED_TYPES.includes(child.type)) || hiddenOnPhone(child)) continue;
|
|
212
|
+
if (child.role && PHONE_BAR_CONTROL_ROLES.includes(child.role)) { n++; continue; }
|
|
213
|
+
walk(child);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
if (nav) walk(nav);
|
|
217
|
+
return n;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** The navigation root's attributes: `{}` for a bar that is not crowded; else `crowded` and the name's crowded step. */
|
|
221
|
+
export function navBarAttributes(nav: BarNode | null | undefined, brandWords: string): Record<string, string> {
|
|
222
|
+
if (phoneBarControls(nav) < BAR_CROWDED_AT) return {};
|
|
223
|
+
const step = brandNameLength(brandWords, true);
|
|
224
|
+
return { [BAR_ATTRIBUTE]: BarRoom.Crowded, ...(step ? { [BAR_NAME_ATTRIBUTE]: step } : {}) };
|
|
143
225
|
}
|
|
@@ -1946,6 +1946,9 @@ function composeSiteOnce(plan: SitePlan, context: ComposeContext, pictureless: R
|
|
|
1946
1946
|
// AW12: the footer root says the mix it was composed as (the classes iox-design.css draws from); an inset one is a card.
|
|
1947
1947
|
const footerRoot = globals.find(g => g.id === GlobalSlot.Footer);
|
|
1948
1948
|
if (footerRoot) stampFooterMix(footerRoot as unknown as { props: Record<string, unknown>; styleProps?: Record<string, unknown> }, footer.mix);
|
|
1949
|
+
// AW12: a right-to-left site's footer carries its own direction, so what runs along the reading direction (the
|
|
1950
|
+
// gradient name) mirrors from the node (design-core `iox-footer-mirrored`), never from the admin's `:dir()`.
|
|
1951
|
+
if (footerRoot && isRtlLocale(plan.locale)) footerRoot.styleProps = { ...(footerRoot.styleProps ?? {}), textDirection: 'rtl' };
|
|
1949
1952
|
if (planSells(plan)) globals = withStore(globals, plan.locale ?? DEFAULT_SITE_LOCALE);
|
|
1950
1953
|
// AW1: the law, derived from facts and never asked — the legal pages, the banner when a tracker is connected, the
|
|
1951
1954
|
// footer's legal row and the line beside every form that asks for personal details.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ComposedPlaceholder, PlaceholderKind } from './compose-site';
|
|
2
|
+
import { SerializedNode } from './serialized-node';
|
|
3
|
+
import { FactKey, siteFactLabel } from './site-plan.model';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* vectoriox/iox-ui#144 — ONE source for a site's contact details. A build leaves a contact line it was not given as the
|
|
7
|
+
* fact's label ("Phone number") and a `fact` placeholder; the owner then fills the shop's business email, phone and
|
|
8
|
+
* address in Shop ▸ Settings (the checkout needs them) and the same lines still asked for them, so the owner wrote every
|
|
9
|
+
* fact twice. These are the two pure halves iox-cms applies: the facts a business row gives, and a layout whose unfilled
|
|
10
|
+
* contact lines show them. A line the owner changed is theirs and is never touched; a fact nobody gave stays a label.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** A business's contact details as a store keeps them (iox-cms `BusinessIdentity`; the site's Info details too). */
|
|
14
|
+
export interface ContactBusiness {
|
|
15
|
+
email?: string | null;
|
|
16
|
+
phone?: string | null;
|
|
17
|
+
/** One line — a store writes the street and the city together ("Dizengoff 10, Tel Aviv"). */
|
|
18
|
+
address?: string | null;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const word = (v: unknown): string => (typeof v === 'string' ? v.trim() : '');
|
|
22
|
+
|
|
23
|
+
/** The facts a business row gives (the mirror of iox-cms `shopBusinessFromFacts`). The city stays its own fact: a store's
|
|
24
|
+
* address line is not split. */
|
|
25
|
+
export function contactFactsOf(business: ContactBusiness | null | undefined): Partial<Record<FactKey, string>> {
|
|
26
|
+
const out: Partial<Record<FactKey, string>> = {};
|
|
27
|
+
for (const key of ['email', 'phone', 'address'] as const) if (word(business?.[key])) out[key] = word(business![key]);
|
|
28
|
+
return out;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** The props a contact line's words live in (compose-site's text props). */
|
|
32
|
+
const CONTACT_TEXT_PROPS: ReadonlyArray<string> = ['content', 'label', 'text', 'caption'];
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The layout with every contact line the owner has not touched showing the fact `facts` gives, in place of its label. Pure:
|
|
36
|
+
* new nodes, the input never mutated. A line holding two facts ("Phone number · Email address") takes each it is given.
|
|
37
|
+
*/
|
|
38
|
+
export function fillContactFacts(
|
|
39
|
+
nodes: ReadonlyArray<SerializedNode>, placeholders: ReadonlyArray<Pick<ComposedPlaceholder, 'nodeId' | 'kind' | 'fact' | 'text'>>,
|
|
40
|
+
facts: Readonly<Partial<Record<FactKey, string>>>, locale?: string | null,
|
|
41
|
+
): SerializedNode[] {
|
|
42
|
+
const byNode = new Map<string, Array<Pick<ComposedPlaceholder, 'fact' | 'text'>>>();
|
|
43
|
+
for (const p of placeholders) {
|
|
44
|
+
if (p.kind !== PlaceholderKind.Fact || !p.fact || !word(facts[p.fact])) continue;
|
|
45
|
+
byNode.set(p.nodeId, [...(byNode.get(p.nodeId) ?? []), p]);
|
|
46
|
+
}
|
|
47
|
+
const fill = (node: SerializedNode): SerializedNode => {
|
|
48
|
+
const children = Array.isArray(node.children) ? node.children.map(fill) : node.children;
|
|
49
|
+
const wanted = node?.id ? byNode.get(node.id) : undefined;
|
|
50
|
+
if (!wanted) return children === node.children ? node : { ...node, children };
|
|
51
|
+
const props = { ...(node.props ?? {}) };
|
|
52
|
+
for (const prop of CONTACT_TEXT_PROPS) {
|
|
53
|
+
const value = props[prop];
|
|
54
|
+
// Only the words the build left there: a line the owner changed is theirs.
|
|
55
|
+
if (typeof value !== 'string' || !wanted.some(p => value.trim() === p.text.trim())) continue;
|
|
56
|
+
props[prop] = wanted.reduce((text, p) => text.replace(siteFactLabel(p.fact!, locale), word(facts[p.fact!])), value);
|
|
57
|
+
}
|
|
58
|
+
return { ...node, props, children };
|
|
59
|
+
};
|
|
60
|
+
return (Array.isArray(nodes) ? nodes : []).map(fill);
|
|
61
|
+
}
|