@vectoriox/iox-ui 5.151.1 → 5.153.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/assist-core/index.d.ts +200 -5
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +273 -15
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +149 -7
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +69 -6
- package/package.json +1 -1
- package/src/assist-core/media-generate.ts +325 -0
- package/src/assist-core/public-api.ts +1 -0
- package/src/assist-core/site-look.ts +12 -4
- package/src/assist-core/surfaces.ts +3 -0
- package/src/generation-core/adjustments.ts +25 -2
- package/src/generation-core/fallback-memory.ts +142 -0
- package/src/generation-core/public-api.ts +1 -0
|
@@ -17499,6 +17499,57 @@ declare function samenessIssues(me: LayoutFingerprint, others: ReadonlyArray<Fin
|
|
|
17499
17499
|
* its order of sections (`demo`). layout-fingerprint.spec holds them equal to `fingerprintOf` of the proof layouts. */
|
|
17500
17500
|
declare const PROOF_FINGERPRINTS: ReadonlyArray<FingerprintedPage>;
|
|
17501
17501
|
|
|
17502
|
+
/**
|
|
17503
|
+
* A PAGE BUILT FROM ITS SECTIONS IN THE STUDIO'S MEMORY (vectoriox/iox-ui#119, option C — Doron, 2026-11-23). A composed
|
|
17504
|
+
* page that falls back whole is stamped from the plan's ready-made sections, and four of six J10 Homes did — two hero
|
|
17505
|
+
* patterns between them, so six businesses wore two skeletons while the memory held none of them (only a model's layout
|
|
17506
|
+
* was fingerprinted). Here a fallen page is fingerprinted too, by the sections it is built from, and before it is built
|
|
17507
|
+
* its opening is moved away from the ready-made openings the studio's other sites already wear, when another hero of the
|
|
17508
|
+
* library can carry every word the plan wrote for it. The closed layout language only: free sections get no sameness
|
|
17509
|
+
* gate (Doron). Pure.
|
|
17510
|
+
*/
|
|
17511
|
+
/** A ready-made section's token in a fallen page's sequence: `ready-made:<pattern>`. A composed page's swapped section stays
|
|
17512
|
+
* `ready-made` (its place in the model's order); a whole page of them is told apart by which sections they are. */
|
|
17513
|
+
declare function readyMadeToken(pattern: string): string;
|
|
17514
|
+
/**
|
|
17515
|
+
* A page built from its sections, as the studio remembers it: it opens on its first section's pattern
|
|
17516
|
+
* (`ready-made:hero.split`), its sequence is its patterns in order, its signature holds the screen (a ready-made page has
|
|
17517
|
+
* no signature section). The rest — ground, preset, header, footer — as `fingerprintOf`.
|
|
17518
|
+
*/
|
|
17519
|
+
declare function fallbackFingerprintOf(sections: ReadonlyArray<Pick<PageSectionPlan, 'pattern'>>, preset: string, mode: 'light' | 'dark', plan?: Parameters<typeof wornHeaderOfPlan>[0] & Parameters<typeof footerMixOfPlan>[0]): LayoutFingerprint;
|
|
17520
|
+
/** A plan page built from its sections (it fell back whole, or was never asked) — the ONE call a reader of a plan makes. */
|
|
17521
|
+
declare function fallbackFingerprintOfPlanPage(page: Pick<PagePlan, 'sections'>, preset: string, mode: 'light' | 'dark', plan: Parameters<typeof wornHeaderOfPlan>[0] & Parameters<typeof footerMixOfPlan>[0]): LayoutFingerprint;
|
|
17522
|
+
/**
|
|
17523
|
+
* The plan section moved onto `to`, every word and link it holds carried to `to`'s slot of the same kind — or null when
|
|
17524
|
+
* one of them has nowhere to go, `to` would show a placeholder or a link to nowhere where the section said nothing, or the
|
|
17525
|
+
* section holds what only its own pattern knows (a list, a form, parts left out).
|
|
17526
|
+
*/
|
|
17527
|
+
declare function carrySection(section: PageSectionPlan, to: string): PageSectionPlan | null;
|
|
17528
|
+
/** Why a fallen page's opening stayed as the plan wrote it. */
|
|
17529
|
+
declare enum FallbackOpeningKept {
|
|
17530
|
+
/** No other site of the studio opens on it. */
|
|
17531
|
+
Free = "free",
|
|
17532
|
+
/** Every hero that could carry the plan's words is already worn as another site's opening (or none can carry them). */
|
|
17533
|
+
NoneFree = "none-free"
|
|
17534
|
+
}
|
|
17535
|
+
interface DistinctFallback {
|
|
17536
|
+
sections: PageSectionPlan[];
|
|
17537
|
+
/** Set when the opening moved: the pattern the plan wrote and the one it is built from now. */
|
|
17538
|
+
moved?: {
|
|
17539
|
+
from: string;
|
|
17540
|
+
to: string;
|
|
17541
|
+
};
|
|
17542
|
+
/** Set when it did not move. */
|
|
17543
|
+
kept?: `${FallbackOpeningKept}`;
|
|
17544
|
+
}
|
|
17545
|
+
/**
|
|
17546
|
+
* A page about to be built from its sections, opened away from what the studio's other sites open on (option C). Only the
|
|
17547
|
+
* opening moves — the first screen is what makes two sites read as one — and only to a library pattern of the same family
|
|
17548
|
+
* that carries every word and link the plan wrote (`carrySection`), in the library's order. This site's own pages
|
|
17549
|
+
* (`sameSite`) and the demos are never a reason: every page of a site may open alike, and a demo is not a site.
|
|
17550
|
+
*/
|
|
17551
|
+
declare function distinctFallbackSections(sections: ReadonlyArray<PageSectionPlan>, others: ReadonlyArray<FingerprintedPage>): DistinctFallback;
|
|
17552
|
+
|
|
17502
17553
|
/**
|
|
17503
17554
|
* EDITING A HEADER IN THE BUILDER (header-ingredients-plan HI1b, board header-studio — HS-4, HS-5): what Bindings ▸ Header
|
|
17504
17555
|
* and the Header studio read off a header, and what Apply writes. Pure, one recipe with the generator: every header is
|
|
@@ -17679,6 +17730,9 @@ declare function layoutRepairJsonSchema(): JsonSchema;
|
|
|
17679
17730
|
* the server's check and in the builder's trial.
|
|
17680
17731
|
*
|
|
17681
17732
|
* Every value is a desktop-first BASE value: a width the author (or the composer) set on its own keeps its own value.
|
|
17733
|
+
*
|
|
17734
|
+
* Award §0c CW4: the ONE page-level axis, Width, writes the PAGE's settings (`pageSettings.column`, design-core
|
|
17735
|
+
* `COLUMN_SETTING`) — never a node's max-width. A page with no word of its own follows the look's ({@link ADJUST_LOOK}).
|
|
17682
17736
|
*/
|
|
17683
17737
|
/** What a step changes. */
|
|
17684
17738
|
declare enum AdjustAxis {
|
|
@@ -17687,16 +17741,22 @@ declare enum AdjustAxis {
|
|
|
17687
17741
|
/** The space inside: a section's rhythm above and below, a card's or panel's padding all round. */
|
|
17688
17742
|
Spacing = "spacing",
|
|
17689
17743
|
/** Where words sit on their line: start · centre · end (logical — follows the page's direction). */
|
|
17690
|
-
Align = "align"
|
|
17744
|
+
Align = "align",
|
|
17745
|
+
/** How wide the page's content column is: wide · contained · narrow (award §0c, AW-D33) — the PAGE's word. */
|
|
17746
|
+
Width = "width"
|
|
17691
17747
|
}
|
|
17692
17748
|
/** Which kind of element an axis acts on — a section's spacing is its rhythm, a card's is its padding. */
|
|
17693
17749
|
declare enum AdjustKind {
|
|
17694
17750
|
Section = "section",
|
|
17695
17751
|
Box = "box",
|
|
17696
|
-
Words = "words"
|
|
17752
|
+
Words = "words",
|
|
17753
|
+
/** The page itself — its row writes `pageSettings`, never a node's `styleProps`. */
|
|
17754
|
+
Page = "page"
|
|
17697
17755
|
}
|
|
17698
17756
|
/** What a node holds when its value is none of the steps — the author's (or the composer's) own. */
|
|
17699
17757
|
declare const ADJUST_OWN = "own";
|
|
17758
|
+
/** What a page holds when it stores no width of its own — it wears the look's (the site's) word. */
|
|
17759
|
+
declare const ADJUST_LOOK = "look";
|
|
17700
17760
|
interface AdjustStep {
|
|
17701
17761
|
readonly id: string;
|
|
17702
17762
|
/** How the owner reads it on a change card. */
|
|
@@ -17717,9 +17777,12 @@ declare function splitCssValue(value: string): string[];
|
|
|
17717
17777
|
* on that kind or the step is not one of its rows. Section spacing keeps the node's own sides.
|
|
17718
17778
|
*/
|
|
17719
17779
|
declare function adjustStyleProps(axis: AdjustAxis, kind: AdjustKind, step: string, styleProps?: Readonly<Record<string, unknown>>): Record<string, string> | null;
|
|
17720
|
-
/**
|
|
17780
|
+
/**
|
|
17781
|
+
* The step a node's current values are, or {@link ADJUST_OWN} when they are none of the rows. For the page (`Width` ·
|
|
17782
|
+
* `Page`, read from its `pageSettings`): its own word, or {@link ADJUST_LOOK} when it stores none.
|
|
17783
|
+
*/
|
|
17721
17784
|
declare function adjustStepOf(axis: AdjustAxis, kind: AdjustKind, styleProps?: Readonly<Record<string, unknown>>): string;
|
|
17722
|
-
/** How the owner reads a step id ("own" → "As set"). */
|
|
17785
|
+
/** How the owner reads a step id ("own" → "As set", "look" → "From the look"). */
|
|
17723
17786
|
declare function adjustStepLabel(axis: AdjustAxis, step: string): string;
|
|
17724
17787
|
/** Every step id of every axis — the strict format's enum (which axis takes which step is the check's). */
|
|
17725
17788
|
declare const ADJUST_STEP_IDS: ReadonlyArray<string>;
|
|
@@ -17883,5 +17946,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
|
|
|
17883
17946
|
* its phone menu, the footer's copyright line. */
|
|
17884
17947
|
declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
|
|
17885
17948
|
|
|
17886
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_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_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
17887
|
-
export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FindingParams, FindingSentence, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, 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, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, QuoteRoute, RecipeListBinds, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RhythmContext, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteFindingGroup, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
|
17949
|
+
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_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_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_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, 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, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
17950
|
+
export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DistinctFallback, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FindingParams, FindingSentence, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, 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, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, QuoteRoute, RecipeListBinds, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RhythmContext, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteFindingGroup, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
package/package.json
CHANGED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AiEntitlementsView, AiFeature, AiModelEntry, AiRefusal, AiRefusalCode, AiStep, AiTokenPrice, ArtDirection, PICTURE_ASPECTS, PictureReview, WordsArea,
|
|
3
|
+
AI_STEP_FEATURE, aiRefusalNext, artDirectionPreamble, creditsOfUsd, emptyAreaPhrase, estimateStepCredits, frameWords, modelCanDo, pictureReviewPasses,
|
|
4
|
+
} from '@vectoriox/iox-ui/generation-core';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* FILES BOX ▸ GENERATE — the vocabulary of AI Assist's surface S7 (ai-assist-plan §2 "S7", A-D14 · A-D15 · A-D16), the
|
|
8
|
+
* pictures half. ONE spelling for the Files box (iox-cms-client), the route that makes the pictures (iox-cms) and the
|
|
9
|
+
* proof: what may be asked, how the asked words become the prompt, what it costs before the button, when it is refused
|
|
10
|
+
* before any call, and what a made picture is afterwards.
|
|
11
|
+
*
|
|
12
|
+
* It adds NO generator: a picture is made by the M7 pipeline (`AiStep.MakePictures`), looked at by the same review
|
|
13
|
+
* (`AiStep.CheckPictures`, `PictureReview`), under the same art-direction preamble (`artDirectionPreamble`). What differs
|
|
14
|
+
* from a site build's pictures is the owner's part: THEY write the words, THEY choose how many, and every candidate made
|
|
15
|
+
* is charged and KEPT — a review that says no marks the picture, it does not buy a second try (gateway rule 3, R-H12).
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export enum GenerateKind {
|
|
19
|
+
Photo = 'photo',
|
|
20
|
+
Video = 'video',
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Why a kind cannot be made yet — the Files box says it in words, never with a button that fails (R-H13). */
|
|
24
|
+
export enum GenerateUnavailable {
|
|
25
|
+
/** No provider makes a video from a start picture yet (`generateVideo`, premium-sites SC6c). */
|
|
26
|
+
NoProvider = 'noProvider',
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** What each kind can do today. Video turns on here, in one place, the day a provider exists. */
|
|
30
|
+
export const GENERATE_KINDS: Readonly<Record<GenerateKind, { readonly available: boolean; readonly why?: GenerateUnavailable }>> = {
|
|
31
|
+
[GenerateKind.Photo]: { available: true },
|
|
32
|
+
[GenerateKind.Video]: { available: false, why: GenerateUnavailable.NoProvider },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** How many candidates one press makes. */
|
|
36
|
+
export const GENERATE_COUNTS: ReadonlyArray<number> = [1, 2, 4];
|
|
37
|
+
export const GENERATE_COUNT_DEFAULT = 4;
|
|
38
|
+
/** The frames offered (each a frame the image model is asked for — `PICTURE_ASPECTS`), widest first. */
|
|
39
|
+
export const GENERATE_SHAPES: ReadonlyArray<string> = ['16:9', '4:3', '1:1', '3:4', '9:16'];
|
|
40
|
+
export const GENERATE_SHAPE_DEFAULT = '4:3';
|
|
41
|
+
export const GENERATE_PROMPT_MIN = 3;
|
|
42
|
+
export const GENERATE_PROMPT_MAX = 600;
|
|
43
|
+
|
|
44
|
+
/** The element that opened the box, as far as a picture cares: its shape, and the part of it words sit over. */
|
|
45
|
+
export interface GenerateSlot {
|
|
46
|
+
/** Width / height of the slot. */
|
|
47
|
+
readonly aspect?: number;
|
|
48
|
+
readonly wordsArea?: WordsArea;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** What the owner asks for — the body of the route, checked by `generateRequestIssues` on both sides. */
|
|
52
|
+
export interface GeneratePicturesRequest {
|
|
53
|
+
readonly kind: `${GenerateKind}`;
|
|
54
|
+
/** The owner's own words. */
|
|
55
|
+
readonly prompt: string;
|
|
56
|
+
readonly shape: string;
|
|
57
|
+
readonly count: number;
|
|
58
|
+
/** Wear the site's art direction ("Your look") — on unless the owner turned it off. */
|
|
59
|
+
readonly look: boolean;
|
|
60
|
+
/** A picture model of the vetted list; absent = the studio's model for the step (Settings ▸ AI ▸ Models, A-D14). */
|
|
61
|
+
readonly model?: string;
|
|
62
|
+
readonly slot?: GenerateSlot;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export enum GenerateIssueCode {
|
|
66
|
+
Shape = 'shape',
|
|
67
|
+
Kind = 'kind',
|
|
68
|
+
KindUnavailable = 'kindUnavailable',
|
|
69
|
+
Prompt = 'prompt',
|
|
70
|
+
PromptTooLong = 'promptTooLong',
|
|
71
|
+
Frame = 'frame',
|
|
72
|
+
Count = 'count',
|
|
73
|
+
Model = 'model',
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface GenerateIssue {
|
|
77
|
+
readonly code: GenerateIssueCode;
|
|
78
|
+
readonly path: string;
|
|
79
|
+
readonly message: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const isObject = (v: unknown): v is Record<string, unknown> => !!v && typeof v === 'object' && !Array.isArray(v);
|
|
83
|
+
|
|
84
|
+
/** A request as it arrives: every key may be anything. */
|
|
85
|
+
interface LooseRequest { kind?: unknown; prompt?: unknown; shape?: unknown; count?: unknown; look?: unknown; model?: unknown; slot?: unknown }
|
|
86
|
+
interface LooseSlot { aspect?: unknown; wordsArea?: unknown }
|
|
87
|
+
interface LooseArea { edge?: unknown; share?: unknown }
|
|
88
|
+
const REQUEST_KEYS: ReadonlyArray<string> = ['kind', 'prompt', 'shape', 'count', 'look', 'model', 'slot'];
|
|
89
|
+
|
|
90
|
+
/** What is wrong with a value as a request to generate pictures — nothing is repaired, each fault has its path. */
|
|
91
|
+
export function generateRequestIssues(value: unknown): GenerateIssue[] {
|
|
92
|
+
if (!isObject(value)) return [{ code: GenerateIssueCode.Shape, path: '', message: 'must be an object' }];
|
|
93
|
+
const v = value as LooseRequest;
|
|
94
|
+
const issues: GenerateIssue[] = [];
|
|
95
|
+
const say = (code: GenerateIssueCode, path: string, message: string) => issues.push({ code, path, message });
|
|
96
|
+
const kinds = Object.values(GenerateKind) as string[];
|
|
97
|
+
if (typeof v.kind !== 'string' || !kinds.includes(v.kind)) say(GenerateIssueCode.Kind, 'kind', `one of ${kinds.join(', ')}`);
|
|
98
|
+
else if (!GENERATE_KINDS[v.kind as GenerateKind].available) say(GenerateIssueCode.KindUnavailable, 'kind', `${v.kind} cannot be made yet`);
|
|
99
|
+
const prompt = typeof v.prompt === 'string' ? v.prompt.trim() : '';
|
|
100
|
+
if (prompt.length < GENERATE_PROMPT_MIN) say(GenerateIssueCode.Prompt, 'prompt', 'describe the picture');
|
|
101
|
+
else if (prompt.length > GENERATE_PROMPT_MAX) say(GenerateIssueCode.PromptTooLong, 'prompt', `at most ${GENERATE_PROMPT_MAX} characters`);
|
|
102
|
+
if (typeof v.shape !== 'string' || !GENERATE_SHAPES.includes(v.shape)) say(GenerateIssueCode.Frame, 'shape', `one of ${GENERATE_SHAPES.join(', ')}`);
|
|
103
|
+
if (typeof v.count !== 'number' || !GENERATE_COUNTS.includes(v.count)) say(GenerateIssueCode.Count, 'count', `one of ${GENERATE_COUNTS.join(', ')}`);
|
|
104
|
+
if (typeof v.look !== 'boolean') say(GenerateIssueCode.Shape, 'look', 'must be true or false');
|
|
105
|
+
if (v.model !== undefined && (typeof v.model !== 'string' || !v.model)) say(GenerateIssueCode.Model, 'model', 'a model id, or absent');
|
|
106
|
+
if (v.slot !== undefined) {
|
|
107
|
+
if (!isObject(v.slot)) say(GenerateIssueCode.Shape, 'slot', 'must be an object');
|
|
108
|
+
else {
|
|
109
|
+
const slot = v.slot as LooseSlot;
|
|
110
|
+
if (slot.aspect !== undefined && !(typeof slot.aspect === 'number' && slot.aspect > 0 && Number.isFinite(slot.aspect))) say(GenerateIssueCode.Shape, 'slot.aspect', 'a positive number');
|
|
111
|
+
const area = slot.wordsArea as LooseArea | undefined;
|
|
112
|
+
const good = !!area && typeof area === 'object' && (area.edge === 'top' || area.edge === 'bottom') && typeof area.share === 'number' && area.share > 0 && area.share <= 1;
|
|
113
|
+
if (slot.wordsArea !== undefined && !good) say(GenerateIssueCode.Shape, 'slot.wordsArea', '{ edge: top | bottom, share: 0–1 }');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
for (const key of Object.keys(value)) if (!REQUEST_KEYS.includes(key)) say(GenerateIssueCode.Shape, key, 'is not a key of the request');
|
|
117
|
+
return issues;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The offered frame nearest a slot ("fits the slot"): by the ratio of the two shapes, so 4:5 goes to 3:4 and never to
|
|
122
|
+
* 1:1 by a hair. No slot, or one with no shape yet = the default.
|
|
123
|
+
*/
|
|
124
|
+
export function shapeForSlot(aspect: number | undefined | null): string {
|
|
125
|
+
if (!(typeof aspect === 'number' && aspect > 0 && Number.isFinite(aspect))) return GENERATE_SHAPE_DEFAULT;
|
|
126
|
+
let best = GENERATE_SHAPE_DEFAULT, distance = Infinity;
|
|
127
|
+
for (const shape of GENERATE_SHAPES) {
|
|
128
|
+
const d = Math.abs(Math.log(PICTURE_ASPECTS[shape] / aspect));
|
|
129
|
+
if (d < distance) { best = shape; distance = d; }
|
|
130
|
+
}
|
|
131
|
+
return best;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The prompt a generated picture is asked with: the site's preamble VERBATIM when "Your look" is on (the same one a
|
|
136
|
+
* site build's pictures get — one preamble per prompt), then the OWNER'S WORDS as written, the frame, and the part left
|
|
137
|
+
* calm for words when the slot has words over it. Nothing else is added and nothing of the owner's is rewritten.
|
|
138
|
+
*/
|
|
139
|
+
export function generatePicturePrompt(request: Pick<GeneratePicturesRequest, 'prompt' | 'shape' | 'look' | 'slot'>, direction: ArtDirection | null | undefined): string {
|
|
140
|
+
return [
|
|
141
|
+
...(request.look && direction ? [artDirectionPreamble(direction)] : []),
|
|
142
|
+
request.prompt.trim(),
|
|
143
|
+
frameWords(request.shape),
|
|
144
|
+
...(request.slot?.wordsArea ? [emptyAreaPhrase(request.slot.wordsArea)] : []),
|
|
145
|
+
].join('\n');
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** Words an image model draws badly: asked for inside the picture, they come out wrong (the honesty line). */
|
|
149
|
+
const WORDS_ASKED = /\b(logo|text|words?|sign|signage|letters?|caption|title|headline|slogan|typography)\b|כיתוב|טקסט|לוגו|כותרת|אותיות|שלט|סלוגן/i;
|
|
150
|
+
|
|
151
|
+
/** True when the owner's words ask for writing INSIDE the picture — the box says "put the words on the page". */
|
|
152
|
+
export function promptAsksForWords(prompt: string): boolean {
|
|
153
|
+
return WORDS_ASKED.test(prompt ?? '');
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* "Describe from the page": the words the box fills in for the element that opened it — the section's own words and
|
|
158
|
+
* the kind of business, never the business's name (it would be drawn). No model is asked; empty when the page says
|
|
159
|
+
* nothing.
|
|
160
|
+
*/
|
|
161
|
+
export function describeFromPage(context: { readonly business?: string; readonly words?: string }): string {
|
|
162
|
+
const business = (context.business ?? '').trim();
|
|
163
|
+
const words = (context.words ?? '').replace(/\s+/g, ' ').trim().slice(0, 240);
|
|
164
|
+
if (!business && !words) return '';
|
|
165
|
+
const subject = business ? `A picture for ${business}` : 'A picture for this part of the page';
|
|
166
|
+
return (words ? `${subject}. It goes beside these words: “${words}”.` : `${subject}.`).slice(0, GENERATE_PROMPT_MAX);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// ── The cost, shown before the button ─────────────────────────────────────────────────────────
|
|
170
|
+
|
|
171
|
+
export interface GenerateEstimate {
|
|
172
|
+
readonly count: number;
|
|
173
|
+
/** One picture, in credits. */
|
|
174
|
+
readonly picture: number;
|
|
175
|
+
/** One review of a picture, in credits. */
|
|
176
|
+
readonly review: number;
|
|
177
|
+
/** One candidate: a picture and its review. */
|
|
178
|
+
readonly each: number;
|
|
179
|
+
/** What the owner is shown, and the most the press may spend. */
|
|
180
|
+
readonly total: number;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The cost shown under the box (A-D15: the owner chooses the cost): every candidate is made once and looked at once.
|
|
185
|
+
* Unlike a site build's pictures (`estimatePictures`) there is NO second try in it — a candidate the review says no to
|
|
186
|
+
* is kept and marked, and the owner decides whether to press again.
|
|
187
|
+
*/
|
|
188
|
+
export function estimateGenerate(count: number, prices: { readonly image: AiTokenPrice; readonly review: AiTokenPrice }): GenerateEstimate {
|
|
189
|
+
const picture = estimateStepCredits(AiStep.MakePictures, prices.image);
|
|
190
|
+
const review = estimateStepCredits(AiStep.CheckPictures, prices.review);
|
|
191
|
+
const n = Math.max(0, Math.floor(count));
|
|
192
|
+
return { count: n, picture, review, each: creditsOfUsd((picture + review) / 100), total: creditsOfUsd((n * (picture + review)) / 100) };
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** A picture model the owner may choose, with what one candidate costs on it (the model button, A-D14). */
|
|
196
|
+
export interface GenerateModelChoice {
|
|
197
|
+
readonly id: string;
|
|
198
|
+
readonly label: string;
|
|
199
|
+
/** The studio's default for the step — what "Auto" runs. */
|
|
200
|
+
readonly recommended: boolean;
|
|
201
|
+
/** Null when the list carries no price for it (the provider reports each call's cost). */
|
|
202
|
+
readonly each: number | null;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The picture models of the vetted list, each with its estimate for ONE candidate, the default first. A retired model
|
|
207
|
+
* or one that cannot make a picture is never offered.
|
|
208
|
+
*/
|
|
209
|
+
export function generateModelChoices(models: ReadonlyArray<AiModelEntry>, review: AiTokenPrice): GenerateModelChoice[] {
|
|
210
|
+
const step = AiStep.MakePictures;
|
|
211
|
+
return models
|
|
212
|
+
.filter(m => !m.retired && m.steps.includes(step) && modelCanDo(m, step))
|
|
213
|
+
.map(m => ({ id: m.id, label: m.label, recommended: !!m.recommendedFor?.includes(step), each: m.price ? estimateGenerate(1, { image: m.price, review }).each : null }))
|
|
214
|
+
.sort((a, b) => Number(b.recommended) - Number(a.recommended));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The plan features Generate needs: the surface's own (AI Assist, A-D6) AND the one each step it runs belongs to
|
|
219
|
+
* (`AI_STEP_FEATURE` — the picture steps are the site generator's). A plan missing any is refused `NotInPlan`.
|
|
220
|
+
*/
|
|
221
|
+
export const GENERATE_FEATURES: ReadonlyArray<AiFeature> = Array.from(new Set([AiFeature.Assist, AI_STEP_FEATURE[AiStep.MakePictures], AI_STEP_FEATURE[AiStep.CheckPictures]]));
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* May this press run? The answer BEFORE any provider call (R-H12): the plan is known, it includes what Generate needs,
|
|
225
|
+
* and the credits left cover the cost shown. The Files box asks it to disable the button and say why; iox-cms asks it
|
|
226
|
+
* again with its own numbers before the first call — the client's are never trusted. Null = go.
|
|
227
|
+
* A studio on its own key has no meter (`remaining: null`) and is never refused for credits.
|
|
228
|
+
*/
|
|
229
|
+
export function generateRefusal(estimate: Pick<GenerateEstimate, 'total'>, entitlements: AiEntitlementsView | null | undefined): AiRefusal | null {
|
|
230
|
+
if (!entitlements || !entitlements.known) return { code: AiRefusalCode.PlanUnknown, next: { kind: aiRefusalNext(AiRefusalCode.PlanUnknown) } };
|
|
231
|
+
const missing = GENERATE_FEATURES.find(f => entitlements.features?.[f] !== true);
|
|
232
|
+
if (missing) return { code: AiRefusalCode.NotInPlan, planName: entitlements.planName, next: { kind: aiRefusalNext(AiRefusalCode.NotInPlan) } };
|
|
233
|
+
const remaining = entitlements.meter?.remaining;
|
|
234
|
+
if (typeof remaining === 'number' && estimate.total > remaining) {
|
|
235
|
+
const buy = entitlements.meter?.buy ?? null;
|
|
236
|
+
return {
|
|
237
|
+
code: AiRefusalCode.OutOfCredits, planName: entitlements.planName, remaining, estimate: estimate.total,
|
|
238
|
+
next: { kind: aiRefusalNext(AiRefusalCode.OutOfCredits, buy), ...(buy ? { href: buy.url } : {}) },
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// ── A candidate, once made ────────────────────────────────────────────────────────────────────
|
|
245
|
+
|
|
246
|
+
/** Where one candidate stands — the tile's state in the grid. */
|
|
247
|
+
export enum CandidateState {
|
|
248
|
+
Making = 'making',
|
|
249
|
+
Checking = 'checking',
|
|
250
|
+
/** Made, looked at, kept. */
|
|
251
|
+
Kept = 'kept',
|
|
252
|
+
/** Made and kept, but the look found something the owner should see (words in it, a warped hand). */
|
|
253
|
+
Flagged = 'flagged',
|
|
254
|
+
/** Not made: the provider failed. Nothing was charged for it. */
|
|
255
|
+
Failed = 'failed',
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** What the look found, in the order the tile says it. */
|
|
259
|
+
export enum CandidateFlag {
|
|
260
|
+
/** Writing, a logo or a watermark inside the picture. */
|
|
261
|
+
Words = 'words',
|
|
262
|
+
/** Warped hands, faces or objects. */
|
|
263
|
+
Anatomy = 'anatomy',
|
|
264
|
+
/** Not what was asked for. */
|
|
265
|
+
Subject = 'subject',
|
|
266
|
+
/** The part left for words is too busy to read over. */
|
|
267
|
+
CalmArea = 'calmArea',
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface CandidateVerdict {
|
|
271
|
+
readonly state: CandidateState.Kept | CandidateState.Flagged;
|
|
272
|
+
readonly flags: ReadonlyArray<CandidateFlag>;
|
|
273
|
+
/** The alt text written from the picture — stored on the asset, set on the element when the picture is used. */
|
|
274
|
+
readonly alt: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* A made picture after its look: KEPT either way (it was paid for), flagged when the review says no — the same four
|
|
279
|
+
* answers a site build's review gives (`pictureReviewPasses`), read here as marks instead of a reason to try again.
|
|
280
|
+
*/
|
|
281
|
+
export function candidateVerdict(review: PictureReview, slot?: Pick<GenerateSlot, 'wordsArea'>): CandidateVerdict {
|
|
282
|
+
const flags: CandidateFlag[] = [];
|
|
283
|
+
if (!review.clean) flags.push(CandidateFlag.Words);
|
|
284
|
+
if (!review.anatomy) flags.push(CandidateFlag.Anatomy);
|
|
285
|
+
if (!review.subject) flags.push(CandidateFlag.Subject);
|
|
286
|
+
if (slot?.wordsArea && !review.calmArea) flags.push(CandidateFlag.CalmArea);
|
|
287
|
+
const passes = pictureReviewPasses(review, { wordsArea: slot?.wordsArea });
|
|
288
|
+
return { state: passes ? CandidateState.Kept : CandidateState.Flagged, flags: passes ? [] : flags, alt: review.alt.trim() };
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/** One candidate as the route answers it and the tile shows it. */
|
|
292
|
+
export interface GenerateCandidate {
|
|
293
|
+
readonly id: string;
|
|
294
|
+
readonly state: `${CandidateState}`;
|
|
295
|
+
/** The asset written (`assets.source: generated`) — absent while making and when it failed. */
|
|
296
|
+
readonly assetId?: string;
|
|
297
|
+
readonly url?: string;
|
|
298
|
+
readonly alt?: string;
|
|
299
|
+
readonly flags?: ReadonlyArray<`${CandidateFlag}`>;
|
|
300
|
+
/** What this candidate was charged, in credits (0 when it failed before a picture was made). */
|
|
301
|
+
readonly credits?: number;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/** How one press ended, for the line under the box: how many were made, kept and charged; how many could not be. */
|
|
305
|
+
export interface GenerateOutcome {
|
|
306
|
+
readonly made: number;
|
|
307
|
+
readonly flagged: number;
|
|
308
|
+
readonly failed: number;
|
|
309
|
+
readonly credits: number;
|
|
310
|
+
/** Every candidate has reached a final state. */
|
|
311
|
+
readonly done: boolean;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
const FINAL: ReadonlyArray<string> = [CandidateState.Kept, CandidateState.Flagged, CandidateState.Failed];
|
|
315
|
+
|
|
316
|
+
export function generateOutcome(candidates: ReadonlyArray<GenerateCandidate>): GenerateOutcome {
|
|
317
|
+
const made = candidates.filter(c => c.state === CandidateState.Kept || c.state === CandidateState.Flagged);
|
|
318
|
+
return {
|
|
319
|
+
made: made.length,
|
|
320
|
+
flagged: candidates.filter(c => c.state === CandidateState.Flagged).length,
|
|
321
|
+
failed: candidates.filter(c => c.state === CandidateState.Failed).length,
|
|
322
|
+
credits: creditsOfUsd(candidates.reduce((sum, c) => sum + (c.credits ?? 0), 0) / 100),
|
|
323
|
+
done: candidates.length > 0 && candidates.every(c => FINAL.includes(c.state)),
|
|
324
|
+
};
|
|
325
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ANIMATE_IDS, auditDesignContrast, BETWEEN_IDS, ContrastFinding, DesignChoices, DesignMode, designTokenRows, flavorPackById, parseHexColor,
|
|
2
|
+
ANIMATE_IDS, auditDesignContrast, BETWEEN_IDS, COLUMN_IDS, ContrastFinding, DesignChoices, DesignMode, designTokenRows, flavorPackById, parseHexColor,
|
|
3
3
|
presetChoices, resolveDesignChoices, ResolvedMode, SCROLL_IDS, SPEC_AXES, STYLE_PRESETS, stylePresetById, stylePresetOfChoices, TINT_IDS,
|
|
4
4
|
} from '@vectoriox/iox-ui/design-core';
|
|
5
5
|
import { jsonClosedObject, jsonOneOf, JsonSchema, jsonText } from '@vectoriox/iox-ui/generation-core';
|
|
@@ -11,8 +11,8 @@ import { PageChangeOp } from './page-style';
|
|
|
11
11
|
/**
|
|
12
12
|
* Surface S1 (the builder), family `look` (ai-assist-plan §4 AI2e; ai-session-panel-plan `setLook` / `setMotion`): the
|
|
13
13
|
* SITE's look and motion — every page follows — changed only along the contract's own axes: a style preset, the brand
|
|
14
|
-
* colour, the background tint, corners, pill buttons, spacing, the
|
|
15
|
-
* animated and the change between pages. Never a token value, never CSS. A preset brings its whole look and keeps the
|
|
14
|
+
* colour, the background tint, corners, pill buttons, spacing, the content width (award §0c CW4), the type pairing, the
|
|
15
|
+
* colour mode, speed, scrolling, how animated and the change between pages. Never a token value, never CSS. A preset brings its whole look and keeps the
|
|
16
16
|
* site's own Scrolling · How animated · Between pages (MO-D3, as Design ▸ Look does); a type pairing is one of the worn
|
|
17
17
|
* style's own. The colour is checked by the SAME audit the contract gates every preset with (`auditDesignContrast`, in
|
|
18
18
|
* every mode the look is worn) — a colour that fails is refused, never worn (R4: the AA gate decides the colour).
|
|
@@ -28,6 +28,8 @@ export enum LookAxis {
|
|
|
28
28
|
Corners = 'corners',
|
|
29
29
|
Buttons = 'buttons',
|
|
30
30
|
Spacing = 'spacing',
|
|
31
|
+
/** The site's content column (award §0c, AW-D33): wide · contained · narrow — every page without its own word follows. */
|
|
32
|
+
Column = 'column',
|
|
31
33
|
Type = 'type',
|
|
32
34
|
Mode = 'mode',
|
|
33
35
|
Speed = 'speed',
|
|
@@ -39,7 +41,7 @@ export enum LookAxis {
|
|
|
39
41
|
/** How the card names each axis (the builder translates it by the axis). */
|
|
40
42
|
export const LOOK_AXIS_LABELS: Readonly<Record<LookAxis, string>> = {
|
|
41
43
|
[LookAxis.Style]: 'Style', [LookAxis.Colour]: 'Brand colour', [LookAxis.Tint]: 'Background tint', [LookAxis.Corners]: 'Corners',
|
|
42
|
-
[LookAxis.Buttons]: 'Buttons', [LookAxis.Spacing]: 'Spacing', [LookAxis.Type]: 'Fonts', [LookAxis.Mode]: 'Mode', [LookAxis.Speed]: 'Speed',
|
|
44
|
+
[LookAxis.Buttons]: 'Buttons', [LookAxis.Spacing]: 'Spacing', [LookAxis.Column]: 'Content width', [LookAxis.Type]: 'Fonts', [LookAxis.Mode]: 'Mode', [LookAxis.Speed]: 'Speed',
|
|
43
45
|
[LookAxis.Scrolling]: 'Scrolling', [LookAxis.Entrances]: 'How animated', [LookAxis.Between]: 'Between pages',
|
|
44
46
|
};
|
|
45
47
|
|
|
@@ -100,6 +102,7 @@ export function lookAxisValue(choices: DesignChoices, axis: LookAxis): { readonl
|
|
|
100
102
|
return { id, label: BUTTON_LABELS[id] };
|
|
101
103
|
}
|
|
102
104
|
case LookAxis.Spacing: return { id: c.density, label: labelOf(SPEC_AXES.densities, c.density) };
|
|
105
|
+
case LookAxis.Column: return { id: c.column ?? '', label: labelOf(SPEC_AXES.columns, c.column ?? '') };
|
|
103
106
|
case LookAxis.Type: return { id: c.pairId, label: pairsOf(c.flavorId).find(p => p.id === c.pairId)?.label ?? c.pairId };
|
|
104
107
|
case LookAxis.Mode: return { id: c.mode, label: MODE_LABELS[c.mode] ?? c.mode };
|
|
105
108
|
case LookAxis.Speed: return { id: c.motion, label: labelOf(SPEC_AXES.motions, c.motion) };
|
|
@@ -125,6 +128,7 @@ function axisOptions(axis: LookAxis, current: DesignChoices | null | undefined):
|
|
|
125
128
|
case LookAxis.Corners: return Object.keys(SPEC_AXES.shapes);
|
|
126
129
|
case LookAxis.Buttons: return Object.values(LookButtons);
|
|
127
130
|
case LookAxis.Spacing: return Object.keys(SPEC_AXES.densities);
|
|
131
|
+
case LookAxis.Column: return COLUMN_IDS;
|
|
128
132
|
case LookAxis.Type: return pairsOf(resolveDesignChoices(current).flavorId).map(p => p.id);
|
|
129
133
|
case LookAxis.Mode: return SPEC_AXES.modes;
|
|
130
134
|
case LookAxis.Speed: return Object.keys(SPEC_AXES.motions);
|
|
@@ -153,6 +157,8 @@ function axisDescription(axis: LookAxis, current: DesignChoices | null | undefin
|
|
|
153
157
|
case LookAxis.Corners: return `Corner roundness everywhere. ${keep} ${options(Object.keys(SPEC_AXES.shapes), id => labelOf(SPEC_AXES.shapes, id))}`;
|
|
154
158
|
case LookAxis.Buttons: return `Button shape. ${keep} ${options(Object.values(LookButtons), id => BUTTON_LABELS[id as LookButtons])}`;
|
|
155
159
|
case LookAxis.Spacing: return `Space around and between every section of the site. ${keep} ${options(Object.keys(SPEC_AXES.densities), id => labelOf(SPEC_AXES.densities, id))}`;
|
|
160
|
+
case LookAxis.Column: return `How wide the column the site's words, cards and lists sit in is — backgrounds, pictures and `
|
|
161
|
+
+ `Scenes still reach the edges; a page that set its own keeps it. ${keep} ${options(COLUMN_IDS, id => `${labelOf(SPEC_AXES.columns, id)}: ${(SPEC_AXES.columns as Record<string, { desc: string }>)[id].desc}`)}`;
|
|
156
162
|
case LookAxis.Type: return `The site's fonts, as one of the pairings the current style offers. ${keep} ${options(axisOptions(axis, current), id => pairsOf(resolveDesignChoices(current).flavorId).find(p => p.id === id)?.label ?? id)}`;
|
|
157
163
|
case LookAxis.Mode: return `Light or dark site. ${keep} ${options(SPEC_AXES.modes, id => MODE_LABELS[id as DesignMode])}`;
|
|
158
164
|
case LookAxis.Speed: return `How fast buttons and cards respond and things move. ${keep} ${options(Object.keys(SPEC_AXES.motions), id => labelOf(SPEC_AXES.motions, id))}`;
|
|
@@ -274,6 +280,8 @@ export function applyLookEdits(current: DesignChoices | null | undefined, edits:
|
|
|
274
280
|
if (has(LookAxis.Corners)) { const v = valid(LookAxis.Corners, Object.keys(SPEC_AXES.shapes)); if (v) next = { ...next, shape: v as DesignChoices['shape'] }; }
|
|
275
281
|
if (has(LookAxis.Buttons)) { const v = valid(LookAxis.Buttons, Object.values(LookButtons)); if (v) next = { ...next, pillButtons: v === LookButtons.Pill }; }
|
|
276
282
|
if (has(LookAxis.Spacing)) { const v = valid(LookAxis.Spacing, Object.keys(SPEC_AXES.densities)); if (v) next = { ...next, density: v as DesignChoices['density'] }; }
|
|
283
|
+
// A width is layout, never paint: it moves no colour, so it never meets the contrast audit below.
|
|
284
|
+
if (has(LookAxis.Column)) { const v = valid(LookAxis.Column, COLUMN_IDS); if (v) next = { ...next, column: v as DesignChoices['column'] }; }
|
|
277
285
|
if (has(LookAxis.Type)) {
|
|
278
286
|
const pairs = pairsOf(next.flavorId);
|
|
279
287
|
const v = asked[LookAxis.Type]!;
|
|
@@ -208,6 +208,9 @@ export const SURFACES: Readonly<Record<AssistSurface, SurfaceSpec>> = {
|
|
|
208
208
|
scopes: [AssistScope.Field, AssistScope.Item],
|
|
209
209
|
status: SurfaceStatus.Planned,
|
|
210
210
|
}),
|
|
211
|
+
// S7 Files box ▸ Generate: no sentence is routed and no Assist step runs — the box IS the request (`media-generate.ts`:
|
|
212
|
+
// what may be asked, the prompt, the cost before the button, the refusal before any call). It writes assets, so a
|
|
213
|
+
// press is a Run; placing a made picture is the Files box's own pick, one builder step. Built when the box ships.
|
|
211
214
|
[AssistSurface.Media]: spec({
|
|
212
215
|
surface: AssistSurface.Media,
|
|
213
216
|
families: [EditFamily.Media],
|