@vectoriox/iox-ui 5.127.0 → 5.128.1

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.
@@ -14471,5 +14471,154 @@ declare function adjustStepLabel(axis: AdjustAxis, step: string): string;
14471
14471
  /** Every step id of every axis — the strict format's enum (which axis takes which step is the check's). */
14472
14472
  declare const ADJUST_STEP_IDS: ReadonlyArray<string>;
14473
14473
 
14474
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, 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, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_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_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, 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, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, 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, 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, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, 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, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, 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, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
14475
- export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, 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, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
14474
+ /**
14475
+ * THE SITE TREE (site-redesign-plan.md §3a, RD0, RD-D1): the site as a map — Home on top, the other pages below, a page
14476
+ * per item under the page that lists them. DERIVED on read, never stored: from a plan (the wizard's Plan step) and from a
14477
+ * studio (Pages ▸ Site map) in ONE shape, so both screens draw ONE view model with ONE component (R-H6). Pages have no
14478
+ * parent field: a page's parent is the page whose route is the longest prefix of its own (`/work/:slug` → `/work`); a
14479
+ * page with none sits in the row under Home. Pure.
14480
+ */
14481
+ /** Who made a page, as the Site map says it (its edge tag and footer row). */
14482
+ declare enum SitePageMaker {
14483
+ /** A build made it and nobody changed it since (the build's fingerprints say so). */
14484
+ Built = "built",
14485
+ /** A build made it and the owner changed it since — "Edited by you". */
14486
+ Edited = "edited",
14487
+ /** No build made it — "Made by you". */
14488
+ Owner = "owner"
14489
+ }
14490
+ /** A section as the map draws it: a strip of its family's glyph. `pattern` is null on a hand-made page. */
14491
+ interface SiteTreeSection {
14492
+ readonly pattern: string | null;
14493
+ /** The section family (`hero`, `collection`, `contact`…) — what the strip is drawn as. */
14494
+ readonly family: string;
14495
+ readonly label: string;
14496
+ /** It holds the page and moves as the visitor scrolls (SC6). */
14497
+ readonly scene?: boolean;
14498
+ }
14499
+ interface SiteTreePage {
14500
+ /** The plan page key (a plan), or the page `_id` (a studio). */
14501
+ readonly key: string;
14502
+ /** The page document's `_id` — a studio's page only. */
14503
+ readonly id?: string;
14504
+ readonly name: string;
14505
+ readonly route: string;
14506
+ readonly isHome: boolean;
14507
+ /** A page per item (its route holds a parameter). */
14508
+ readonly template: boolean;
14509
+ readonly sections: ReadonlyArray<SiteTreeSection>;
14510
+ /** What it shows and where its data comes from (`describePlanData`'s lines; a hand-made page's read from its nodes). */
14511
+ readonly data: ReadonlyArray<PageDataLine>;
14512
+ /** A page the model composed: its layout, drawn as its own map instead of section strips. */
14513
+ readonly layout?: LayoutPage;
14514
+ /** A plan page answering an inferred need (the Plan step's "we added"). */
14515
+ readonly need?: boolean;
14516
+ /** A studio's page: who made it, its status and when it last changed. */
14517
+ readonly maker?: SitePageMaker;
14518
+ /** The build's fingerprints were read (else "Built" is all that is known — never "not changed since"). */
14519
+ readonly editsKnown?: boolean;
14520
+ readonly status?: string;
14521
+ readonly changedAt?: string | null;
14522
+ /** When the build that made it finished. */
14523
+ readonly builtAt?: string | null;
14524
+ /** A page per item: how many pages that is (its content type's item count), when known. */
14525
+ readonly items?: number | null;
14526
+ readonly children: ReadonlyArray<SiteTreePage>;
14527
+ }
14528
+ interface SiteTreeType {
14529
+ readonly name: string;
14530
+ readonly label: string;
14531
+ readonly fields: ReadonlyArray<string>;
14532
+ /** A studio: its items. A plan: the samples the build will make. */
14533
+ readonly count: number;
14534
+ }
14535
+ /** The header and footer every page wears, as the Content strip says them. */
14536
+ interface SiteTreeGlobals {
14537
+ /** Links the header carries. */
14538
+ readonly links: number;
14539
+ readonly phoneMenu: `${NavShape}` | null;
14540
+ /** The footer's copyright line, as written. */
14541
+ readonly copyright: string | null;
14542
+ }
14543
+ interface SiteTree {
14544
+ readonly home: SiteTreePage | null;
14545
+ /** The row under Home, each with the pages under it (depth-first, nested by route). */
14546
+ readonly pages: ReadonlyArray<SiteTreePage>;
14547
+ readonly types: ReadonlyArray<SiteTreeType>;
14548
+ readonly globals: SiteTreeGlobals | null;
14549
+ }
14550
+ /** A route holding a parameter (`/work/:slug`) — a page per item. */
14551
+ declare const isTemplateRoute: (route: string) => boolean;
14552
+ /**
14553
+ * The route of a page's parent among `routes`: the longest route that is a whole-segment prefix of it (`/work` for
14554
+ * `/work/:slug`, never `/wor`), or null — then the page sits in the row under Home. Home (`/`) is never a parent here:
14555
+ * every page is under it.
14556
+ */
14557
+ declare function siteParentRoute(route: string, routes: ReadonlyArray<string>): string | null;
14558
+ /** Pages into the tree: Home apart, every other page under its parent (`siteParentRoute`), in the given order. */
14559
+ declare function nestSitePages(pages: ReadonlyArray<Omit<SiteTreePage, 'children'>>): {
14560
+ home: SiteTreePage | null;
14561
+ pages: SiteTreePage[];
14562
+ };
14563
+ /** Every page of the tree, depth-first (Home first). */
14564
+ declare function sitePagesOf(tree: Pick<SiteTree, 'home' | 'pages'>): SiteTreePage[];
14565
+ /** A plan as the site tree: the map the Plan step draws (the samples each content type will have). */
14566
+ declare function siteTreeOfPlan(plan: SitePlan): SiteTree;
14567
+ /** A page document as the Pages list reads it. */
14568
+ interface SiteStudioPage {
14569
+ readonly _id: string;
14570
+ readonly name: string;
14571
+ readonly route: {
14572
+ readonly path: string;
14573
+ } | string;
14574
+ readonly isHome?: boolean;
14575
+ readonly status?: string;
14576
+ readonly updatedAt?: string | null;
14577
+ readonly layout?: ReadonlyArray<SerializedNode> | null;
14578
+ readonly pageSettings?: {
14579
+ readonly layoutSource?: {
14580
+ readonly runId?: string;
14581
+ readonly pageKey?: string;
14582
+ } | null;
14583
+ } | null;
14584
+ }
14585
+ /** A build run the studio's pages name (`layoutSource.runId`): its plan, when it finished, and the pages its fingerprints
14586
+ * say were changed since (`editedPageIds` of its undo preview; null when it could not be read). */
14587
+ interface SiteStudioRun {
14588
+ readonly id: string;
14589
+ readonly plan: SitePlan;
14590
+ readonly finishedAt?: string | null;
14591
+ readonly edited?: ReadonlyArray<string> | null;
14592
+ }
14593
+ interface SiteStudio {
14594
+ readonly pages: ReadonlyArray<SiteStudioPage>;
14595
+ readonly runs?: ReadonlyArray<SiteStudioRun>;
14596
+ /** The studio's content types with their item counts. */
14597
+ readonly contentTypes?: ReadonlyArray<{
14598
+ readonly name: string;
14599
+ readonly label?: string;
14600
+ readonly fields?: ReadonlyArray<string>;
14601
+ readonly count?: number | null;
14602
+ }>;
14603
+ /** The org's data sources (alias → content type), to say what a hand-made page lists. */
14604
+ readonly dataSources?: ReadonlyArray<{
14605
+ readonly alias: string;
14606
+ readonly contentType?: string | null;
14607
+ }>;
14608
+ /** The global elements (header, footer, dialogs). */
14609
+ readonly globals?: ReadonlyArray<SerializedNode> | null;
14610
+ }
14611
+ /** The page ids a build's undo preview keeps because the owner changed them — the W2 fingerprints, the one judge. */
14612
+ declare function editedPageIds(preview: Pick<UndoPreview, 'kept'> | null | undefined): string[] | null;
14613
+ /**
14614
+ * A studio as the site tree: each page drawn from the build that made it (its plan page — sections, data lines, the
14615
+ * composed layout) when it has one, else from its own top-level nodes; who made it (`SitePageMaker`), its status, when
14616
+ * it changed; a page per item counted from its content type; the header and footer in words. Pure.
14617
+ */
14618
+ declare function siteTreeOf(studio: SiteStudio): SiteTree;
14619
+ /** The header and footer in words: the header's links (its navigation's own when it has one — the drawer repeats them),
14620
+ * its phone menu, the footer's copyright line. */
14621
+ declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
14622
+
14623
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, 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, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_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_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, 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, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, 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, 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, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, 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, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, 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, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
14624
+ export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, 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, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
package/index.d.ts CHANGED
@@ -208,6 +208,33 @@ interface IBuilderEventEmitter {
208
208
  }
209
209
  declare const IOX_BUILDER_EVENTS: InjectionToken<IBuilderEventEmitter>;
210
210
 
211
+ /** What an inline-editable canvas component knows about its node. */
212
+ interface InlineEditableNode {
213
+ bindings?: Array<{
214
+ prop: string;
215
+ }>;
216
+ traits?: Array<{
217
+ name: string;
218
+ default: any;
219
+ }>;
220
+ }
221
+ /** The two builder events an inline edit raises — the values of iox-builder's `PanelEventTypes`. */
222
+ declare enum InlineEditEvent {
223
+ /** Refreshes the open panel's copy of the node's traits (the canvas keeps its live instance). */
224
+ ElementSelect = "elementselect",
225
+ /** The host's ONE undo step for a layout change (BuilderHistoryService snapshots on it). */
226
+ LayoutChanged = "layoutchanged"
227
+ }
228
+ /**
229
+ * Commits text typed on the canvas (Heading, Text, Button) into the node: the trait's value, the
230
+ * panel's copy, and — when the words really changed — ONE undo step. Before iox-ui#91 the commit
231
+ * raised no step at all, so the next Undo threw the typed words away together with the step
232
+ * before them and Redo never brought them back. Returns whether the value changed.
233
+ */
234
+ declare function commitInlineEdit(node: InlineEditableNode | null, events: IBuilderEventEmitter | null, prop: string, value: string): boolean;
235
+ /** A node's prop is bound to data — its text is not the author's to type. */
236
+ declare function isBoundProp(node: InlineEditableNode | null, prop: string): boolean;
237
+
211
238
  /**
212
239
  * Directive-host image: the selector is `img[iox-img]`, so when created dynamically the HOST is
213
240
  * the `<img>` itself — NO wrapper element. All styles land on the `<img>` via `.iox-node-{id}`;
@@ -315,15 +342,6 @@ declare class BuilderLinkComponent {
315
342
  static ɵcmp: i0.ɵɵComponentDeclaration<BuilderLinkComponent, "a[iox-link]", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "label": { "alias": "label"; "required": false; }; "linkType": { "alias": "linkType"; "required": false; }; "url": { "alias": "url"; "required": false; }; "pageRoute": { "alias": "pageRoute"; "required": false; }; "target": { "alias": "target"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, {}, never, never, false, never>;
316
343
  }
317
344
 
318
- interface EditableNode$2 {
319
- bindings?: Array<{
320
- prop: string;
321
- }>;
322
- traits?: Array<{
323
- name: string;
324
- default: any;
325
- }>;
326
- }
327
345
  /**
328
346
  * Directive-host button: the `<a>` IS the host — no wrapper. Content is the label; styling comes
329
347
  * from `:host` variants + `.iox-node`.
@@ -334,15 +352,13 @@ declare class BuilderButtonComponent implements OnInit {
334
352
  link: string;
335
353
  variant: 'primary' | 'outlined' | 'text';
336
354
  nodeId: string;
337
- node: EditableNode$2 | null;
355
+ node: InlineEditableNode | null;
338
356
  editing: boolean;
339
357
  constructor(events: IBuilderEventEmitter | null);
340
358
  ngOnInit(): void;
341
359
  startEdit(event: MouseEvent): void;
342
360
  commitEdit(event: FocusEvent): void;
343
361
  onKeyDown(event: KeyboardEvent): void;
344
- private isBound;
345
- private syncTraitToPanel;
346
362
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderButtonComponent, [{ optional: true; }]>;
347
363
  static ɵcmp: i0.ɵɵComponentDeclaration<BuilderButtonComponent, "a[iox-button]", never, { "label": { "alias": "label"; "required": false; }; "link": { "alias": "link"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
348
364
  }
@@ -360,15 +376,6 @@ declare enum LinkType {
360
376
  Page = "page"
361
377
  }
362
378
 
363
- interface EditableNode$1 {
364
- bindings?: Array<{
365
- prop: string;
366
- }>;
367
- traits?: Array<{
368
- name: string;
369
- default: any;
370
- }>;
371
- }
372
379
  /**
373
380
  * Directive-host Heading: the real `<h1>`…`<h6>` IS the host — no `app-builder-heading`
374
381
  * wrapper, no inner/outer split. The tag is chosen by whoever CREATES the component
@@ -388,7 +395,7 @@ declare class BuilderHeadingComponent implements OnInit {
388
395
  content: string;
389
396
  level: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
390
397
  nodeId: string;
391
- node: EditableNode$1 | null;
398
+ node: InlineEditableNode | null;
392
399
  linkType: LinkType;
393
400
  url: string;
394
401
  pageRoute: string;
@@ -409,21 +416,10 @@ declare class BuilderHeadingComponent implements OnInit {
409
416
  startEdit(event: Event): void;
410
417
  commitEdit(event: FocusEvent): void;
411
418
  onKeyDown(event: Event): void;
412
- private isBound;
413
- private syncTraitToPanel;
414
419
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderHeadingComponent, [{ optional: true; }, null, { optional: true; }]>;
415
420
  static ɵcmp: i0.ɵɵComponentDeclaration<BuilderHeadingComponent, "h1[iox-heading],h2[iox-heading],h3[iox-heading],h4[iox-heading],h5[iox-heading],h6[iox-heading],span[iox-heading]", never, { "content": { "alias": "content"; "required": false; }; "level": { "alias": "level"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; "linkType": { "alias": "linkType"; "required": false; }; "url": { "alias": "url"; "required": false; }; "pageRoute": { "alias": "pageRoute"; "required": false; }; "target": { "alias": "target"; "required": false; }; }, {}, never, never, false, never>;
416
421
  }
417
422
 
418
- interface EditableNode {
419
- bindings?: Array<{
420
- prop: string;
421
- }>;
422
- traits?: Array<{
423
- name: string;
424
- default: any;
425
- }>;
426
- }
427
423
  /**
428
424
  * Directive-host Text: the real `<p>`/`<span>` IS the host — no `app-text-block` wrapper,
429
425
  * no inner/outer split. The tag is chosen by whoever CREATES the component (engine/builder
@@ -439,7 +435,7 @@ declare class TextBlockComponent implements OnInit {
439
435
  [key: string]: any;
440
436
  };
441
437
  nodeId: string;
442
- node: EditableNode | null;
438
+ node: InlineEditableNode | null;
443
439
  editing: boolean;
444
440
  constructor(events: IBuilderEventEmitter | null, cdr: ChangeDetectorRef);
445
441
  ngOnInit(): void;
@@ -449,8 +445,6 @@ declare class TextBlockComponent implements OnInit {
449
445
  onPaste(event: Event): void;
450
446
  commitEdit(event: Event): void;
451
447
  onKeyDown(event: Event): void;
452
- private isBound;
453
- private syncTraitToPanel;
454
448
  static ɵfac: i0.ɵɵFactoryDeclaration<TextBlockComponent, [{ optional: true; }, null]>;
455
449
  static ɵcmp: i0.ɵɵComponentDeclaration<TextBlockComponent, "p[iox-text],span[iox-text]", never, { "content": { "alias": "content"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
456
450
  }
@@ -4553,5 +4547,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
4553
4547
  /** Raise the form's Sent toast (from the form — its scope and its look). */
4554
4548
  declare function raiseFormToast(form: Element): ToastHandle | null;
4555
4549
 
4556
- export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, raiseFloatingLayer, raiseFormToast, rectInLayer, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
4557
- export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PressAction, RegisteredField, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
4550
+ export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isBoundProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, raiseFloatingLayer, raiseFormToast, rectInLayer, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
4551
+ export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PressAction, RegisteredField, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.127.0",
3
+ "version": "5.128.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -1,4 +1,5 @@
1
1
  import { dialogOpenersSelector } from './dialog-opener';
2
+ import { DIALOG_CLOSING_ATTRIBUTE } from './dialog-motion';
2
3
 
3
4
  /**
4
5
  * Where a menu's REVEAL grows from (header-ingredients HI2a; header-builder board 2: "origin = the opener's centre"). A
@@ -58,15 +59,51 @@ export function revealOriginStyle(origin: RevealOriginPoint): Record<RevealOrigi
58
59
  return { [RevealOriginProperty.X]: `${origin.x}px`, [RevealOriginProperty.Y]: `${origin.y}px`, [RevealOriginProperty.R]: `${origin.r}px` };
59
60
  }
60
61
 
62
+ /** An element whose inline style a hold may switch (structural). */
63
+ export interface RevealStyled {
64
+ style: { getPropertyValue(name: string): string; setProperty(name: string, value: string): void; removeProperty(name: string): string };
65
+ }
66
+
67
+ /** The element whose `data-iox-closing` puts the menu in its closed shape (the live `<dialog>` itself; the canvas's stage). */
68
+ export interface RevealClosingMarker {
69
+ hasAttribute(name: string): boolean;
70
+ setAttribute(name: string, value: string): void;
71
+ removeAttribute(name: string): void;
72
+ }
73
+
74
+ /**
75
+ * Write a reveal's origin with the menu HELD in its closed shape — marked closing, its own transitions off — then let it go,
76
+ * so its opening transition starts from the closed shape AT the new origin. Without the hold, the first style the browser
77
+ * computes after the menu shows (showModal, a focus, the measure itself) starts the transition from the CSS default
78
+ * corner, and a circle opened from a start-side button sweeps across the bar from the far corner before it grows. `flush`
79
+ * reads a computed style (the closed shape at the new origin, at once); a transition already running is dropped by it.
80
+ * ONE rule for the live page (`revealFrom`) and the builder canvas.
81
+ */
82
+ export function holdClosedWhile(menu: RevealStyled, marker: RevealClosingMarker, write: () => void, flush: () => void): void {
83
+ const marked = marker.hasAttribute(DIALOG_CLOSING_ATTRIBUTE);
84
+ const inline = menu.style.getPropertyValue('transition');
85
+ menu.style.setProperty('transition', 'none');
86
+ if (!marked) marker.setAttribute(DIALOG_CLOSING_ATTRIBUTE, '');
87
+ try {
88
+ write();
89
+ flush();
90
+ } finally {
91
+ if (!marked) marker.removeAttribute(DIALOG_CLOSING_ATTRIBUTE);
92
+ if (inline) menu.style.setProperty('transition', inline);
93
+ else menu.style.removeProperty('transition');
94
+ }
95
+ }
96
+
61
97
  /** What `revealFrom` needs of a live `<dialog>` (structural, so the spec drives it without a DOM). */
62
- export interface RevealDialogLike {
98
+ export interface RevealDialogLike extends RevealStyled, RevealClosingMarker {
63
99
  id: string;
64
100
  offsetWidth: number;
65
101
  offsetHeight: number;
66
- style: { setProperty(name: string, value: string): void };
67
102
  getAttribute(name: string): string | null;
68
103
  ownerDocument: {
69
- defaultView: { getComputedStyle(el: unknown): { marginLeft: string; marginTop: string; direction: string } } | null;
104
+ defaultView: {
105
+ getComputedStyle(el: unknown): { marginLeft: string; marginTop: string; direction: string; getPropertyValue(name: string): string };
106
+ } | null;
70
107
  querySelectorAll(selector: string): ArrayLike<RevealOpenerLike>;
71
108
  } | null;
72
109
  }
@@ -85,18 +122,20 @@ const rendered = (el: RevealOpenerLike | null | undefined): el is RevealOpenerLi
85
122
 
86
123
  /**
87
124
  * Set a just-opened live `<dialog>`'s reveal origin from the element that opened it (`opener`), else from the first of its
88
- * openers that is on screen (`aria-controls` — the menu button at its width), else its top corner. Call it right after
89
- * `showModal()`. A top-layer dialog is fixed at `inset: 0`, so its untransformed box starts at its USED margins — a
125
+ * openers that is on screen (`aria-controls` — the menu button at its width), else its top corner — held in its closed
126
+ * shape while it is written (`holdClosedWhile`). Call it right after `showModal()`, before anything else reads a style. A top-layer dialog is fixed at `inset: 0`, so its untransformed box starts at its USED margins — a
90
127
  * reveal's starting scale or translate never moves a margin, whereas `getBoundingClientRect` would read it.
91
128
  */
92
129
  export function revealFrom(dialog: RevealDialogLike | null | undefined, opener?: RevealOpenerLike | null): void {
93
130
  const view = dialog?.ownerDocument?.defaultView;
94
131
  if (!dialog || !view) return;
95
- const cs = view.getComputedStyle(dialog);
96
- const box = { left: parseFloat(cs.marginLeft) || 0, top: parseFloat(cs.marginTop) || 0, width: dialog.offsetWidth, height: dialog.offsetHeight };
97
- const from = rendered(opener) ? opener
98
- : dialog.id ? Array.from(dialog.ownerDocument!.querySelectorAll(dialogOpenersSelector(dialog.id))).find(rendered) ?? null : null;
99
- const atLeft = (dialog.getAttribute('data-iox-dialog-placement') === 'start') !== (cs.direction === 'rtl');
100
- const origin = revealOrigin(from ? from.getBoundingClientRect() : null, box, { atLeft });
101
- for (const [name, value] of Object.entries(revealOriginStyle(origin))) dialog.style.setProperty(name, value);
132
+ holdClosedWhile(dialog, dialog, () => {
133
+ const cs = view.getComputedStyle(dialog);
134
+ const box = { left: parseFloat(cs.marginLeft) || 0, top: parseFloat(cs.marginTop) || 0, width: dialog.offsetWidth, height: dialog.offsetHeight };
135
+ const from = rendered(opener) ? opener
136
+ : dialog.id ? Array.from(dialog.ownerDocument!.querySelectorAll(dialogOpenersSelector(dialog.id))).find(rendered) ?? null : null;
137
+ const atLeft = (dialog.getAttribute('data-iox-dialog-placement') === 'start') !== (cs.direction === 'rtl');
138
+ const origin = revealOrigin(from ? from.getBoundingClientRect() : null, box, { atLeft });
139
+ for (const [name, value] of Object.entries(revealOriginStyle(origin))) dialog.style.setProperty(name, value);
140
+ }, () => { view.getComputedStyle(dialog).getPropertyValue('clip-path'); });
102
141
  }
@@ -306,7 +306,8 @@ export const NODE_BASELINES: Readonly<Record<string, NodeBaseline>> = {
306
306
  "__accessibilityLabel",
307
307
  "ariaLabel",
308
308
  "tooltip",
309
- "tooltipPlacement"
309
+ "tooltipPlacement",
310
+ "menuButton"
310
311
  ],
311
312
  "styleTraits": [
312
313
  "position",
@@ -4953,7 +4954,11 @@ export const NODE_BASELINES: Readonly<Record<string, NodeBaseline>> = {
4953
4954
  "closeAbove",
4954
4955
  "__accessibilityLabel",
4955
4956
  "ariaLabel",
4956
- "colorScheme"
4957
+ "colorScheme",
4958
+ "menuForm",
4959
+ "menuReveal",
4960
+ "menuHover",
4961
+ "menuPhone"
4957
4962
  ],
4958
4963
  "styleTraits": [
4959
4964
  "position",
@@ -60,3 +60,4 @@ export * from './header-mix';
60
60
  export * from './footer-mix';
61
61
  export * from './layout-edits';
62
62
  export * from './adjustments';
63
+ export * from './site-tree';