@vectoriox/iox-ui 5.129.0 → 5.130.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.
@@ -10123,8 +10123,22 @@ interface SerializedNode {
10123
10123
  interactions: unknown[];
10124
10124
  isGlobal?: boolean;
10125
10125
  globalPosition?: `${PatternGlobalPosition}`;
10126
+ /** A section root the build composed (site-redesign RD1 / M2-1): where it came from and how it was left, so a
10127
+ * redesign knows what is the owner's (`section-stamp.ts`). Additive; no renderer reads it; a copy drops it. */
10128
+ composed?: SectionStamp;
10126
10129
  children?: SerializedNode[];
10127
10130
  }
10131
+ /**
10132
+ * A composed section's stamp (M2-1, site-redesign RD1): EXACTLY ONE of `pattern` (a library pattern — `composeSite`,
10133
+ * or a section a layout fell back to) and `layout` (the id of a section a model laid out, M8); the section's build key
10134
+ * (`section:<root id>`); and its fingerprint as the build left it (`sectionFingerprint`).
10135
+ */
10136
+ interface SectionStamp {
10137
+ pattern?: string;
10138
+ layout?: string;
10139
+ buildKey: string;
10140
+ fingerprint: string;
10141
+ }
10128
10142
  /** A pattern the composer cannot stamp as the builder would (an unregistered type, a trait the type has
10129
10143
  * no slot for, a style that does not apply). The plan is validated first, so this means the CONTRACT is
10130
10144
  * wrong — never something to work around. */
@@ -10150,6 +10164,70 @@ declare function setStyleProps(node: SerializedNode, values: Readonly<Record<str
10150
10164
  /** Every node of a tree, depth first. */
10151
10165
  declare function walkSerialized(nodes: ReadonlyArray<SerializedNode>, visit: (node: SerializedNode, ancestors: SerializedNode[]) => void, ancestors?: SerializedNode[]): void;
10152
10166
 
10167
+ /**
10168
+ * SECTION STAMPS (M2-1, site-redesign RD1): every section root a build composes says where it came from and how the
10169
+ * build left it, so a redesign (and Ask) can tell the owner's sections from the build's, section by section — before
10170
+ * this, "edited" was judged per page only.
10171
+ *
10172
+ * - `stampSection` writes `composed: { pattern | layout, buildKey, fingerprint }` on a root;
10173
+ * - `sectionFingerprint` is the root's content (its stamp aside) as a sync, framework-free 53-bit hash — the same in
10174
+ * the browser, the server and a spec, and unchanged by a builder save that changes nothing;
10175
+ * - `refreshSectionStamps` re-takes the fingerprints after a later step dresses the layout (the build's stock photos);
10176
+ * - `sectionOrigin` answers "composed or the owner's?" for any root, stamped or not (RD1 Q2: a stamp wins; else a
10177
+ * library pattern's label, or a section id of the layout the page was composed from, means composed).
10178
+ */
10179
+ /** Where a composed section came from: a library pattern, or a section a model laid out. */
10180
+ type SectionStampOrigin = {
10181
+ pattern: string;
10182
+ layout?: never;
10183
+ } | {
10184
+ layout: string;
10185
+ pattern?: never;
10186
+ };
10187
+ /** The key a section's stamp carries (beside `buildKeys` in `site-build-run.ts`): the root's own id. */
10188
+ declare const sectionBuildKey: (rootId: string) => string;
10189
+ /** A node's canonical JSON, its stamp aside. */
10190
+ declare function canonicalNodeJson(node: SerializedNode): string;
10191
+ /**
10192
+ * cyrb53: a sync 53-bit string hash, 14 base-36 characters. Not a security hash — it tells "as the build left it" from
10193
+ * "changed" for one section, where a collision costs one section judged unchanged.
10194
+ */
10195
+ declare function hash53(text: string): string;
10196
+ /** A section's fingerprint: its canonical content (stamp aside), hashed. */
10197
+ declare function sectionFingerprint(root: SerializedNode): string;
10198
+ /** Stamp a composed section root (in place) and return it. */
10199
+ declare function stampSection(root: SerializedNode, origin: SectionStampOrigin): SerializedNode;
10200
+ /** Re-take every stamped root's fingerprint (in place) — after a step that dresses a composed layout (stock photos). */
10201
+ declare function refreshSectionStamps(layout: ReadonlyArray<SerializedNode>): void;
10202
+ /** A stamp's shape is whole: exactly one origin, a build key and a fingerprint. */
10203
+ declare function isSectionStamp(value: unknown): value is SectionStamp;
10204
+ /** Whether a stamped section is still as the build left it. Null when the root carries no (whole) stamp. */
10205
+ declare function sectionUnchanged(root: SerializedNode): boolean | null;
10206
+ /** Who a page's section is: the build's (and whether the owner changed it since, when the stamp can tell) or the owner's. */
10207
+ declare enum SectionMaker {
10208
+ Composed = "composed",
10209
+ Owner = "owner"
10210
+ }
10211
+ interface SectionOrigin {
10212
+ maker: SectionMaker;
10213
+ /** The library pattern or the layout section it came from, when composed. */
10214
+ pattern?: string;
10215
+ layout?: string;
10216
+ /** A stamped section: false once the owner changed it. Absent when no stamp tells. */
10217
+ unchanged?: boolean;
10218
+ }
10219
+ interface SectionOriginContext {
10220
+ /** The library pattern ids a root's label may name (default: the whole library). */
10221
+ patternIds?: ReadonlyArray<string>;
10222
+ /** The section ids of the layout the page was composed from (its run plan's `page.layout`), when it was. */
10223
+ layoutSectionIds?: ReadonlyArray<string>;
10224
+ }
10225
+ /**
10226
+ * Who made a page's section (RD1 Q2): a stamp wins; else a root labelled with a library pattern's name, or with a section
10227
+ * id of the layout the page was composed from, is the build's; anything else is the owner's.
10228
+ */
10229
+ declare function sectionOrigin(root: SerializedNode, ctx?: SectionOriginContext): SectionOrigin;
10230
+
10153
10231
  /**
10154
10232
  * The ONE way a framework-free gate refuses a document "with a path, never repairs" (W1's site-plan gate, the
10155
10233
  * harness's analysis gate): a documented shape table (key → type text; `key?` optional, `[name]` the object's
@@ -14780,5 +14858,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
14780
14858
  * its phone menu, the footer's copyright line. */
14781
14859
  declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
14782
14860
 
14783
- 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_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, IMPRINT_COUNTRIES, ISRAEL, 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, LEGAL_KINDS, LEGAL_PAGE_SETTING, 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, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, 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, 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, countryLegalFacts, 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, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isLegalKind, 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, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, 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, siteBuiltWithLaw, 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 };
14784
- 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, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, 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 };
14861
+ 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_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, IMPRINT_COUNTRIES, ISRAEL, 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, LEGAL_KINDS, LEGAL_PAGE_SETTING, 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, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, 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, 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, SectionMaker, 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, canonicalNodeJson, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, countryLegalFacts, 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, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, hash53, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isSectionStamp, 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, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, 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, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampSection, 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 };
14862
+ 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, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, 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, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.129.0",
3
+ "version": "5.130.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -63,6 +63,37 @@ export function orderHref(orgLabel: string | null | undefined, token: string): s
63
63
  return label ? `/${encodeURIComponent(label)}/${tail}` : `/${tail}`;
64
64
  }
65
65
 
66
+ /**
67
+ * E2.1 — the card form sits in a frame on the order page; the provider sends THE FRAME back to the order page with
68
+ * `?in=frame`. That address only says "the buyer is back": it is never read as a result (T2) — the page asks iox-cms.
69
+ */
70
+ export const ORDER_FRAME_PARAM = 'in';
71
+ export const ORDER_FRAME_VALUE = 'frame';
72
+
73
+ export function orderFrameReturnHref(orgLabel: string | null | undefined, token: string): string {
74
+ return `${orderHref(orgLabel, token)}?${ORDER_FRAME_PARAM}=${ORDER_FRAME_VALUE}`;
75
+ }
76
+
77
+ /** Whether a query (a search string, `URLSearchParams` or a parsed map) is the frame's return. */
78
+ export function isOrderFrameReturn(query: string | URLSearchParams | Readonly<Record<string, unknown>> | null | undefined): boolean {
79
+ if (!query) return false;
80
+ const value = typeof query === 'string' ? new URLSearchParams(query).get(ORDER_FRAME_PARAM)
81
+ : query instanceof URLSearchParams ? query.get(ORDER_FRAME_PARAM)
82
+ : query[ORDER_FRAME_PARAM];
83
+ return (Array.isArray(value) ? value[0] : value) === ORDER_FRAME_VALUE;
84
+ }
85
+
86
+ /** What the frame's return page posts to its parent (same origin only). It carries NO status — only "the buyer is back". */
87
+ export const PAYMENT_RETURNED = 'payment-returned';
88
+
89
+ export function paymentReturnedMessage(): { iox: string } {
90
+ return { iox: PAYMENT_RETURNED };
91
+ }
92
+
93
+ export function isPaymentReturnedMessage(data: unknown): boolean {
94
+ return !!data && typeof data === 'object' && (data as { iox?: unknown }).iox === PAYMENT_RETURNED;
95
+ }
96
+
66
97
  // ── the answers ────────────────────────────────────────────────────────────────────────────────
67
98
 
68
99
  export enum CheckoutFieldMode {
@@ -169,6 +200,12 @@ export interface SiteOrderPayment {
169
200
  stage: BuyerPaymentStage;
170
201
  canPay: boolean;
171
202
  declined: string | null;
203
+ /**
204
+ * E2.1 — the studio's owner switch "Apple Pay is on for my Cardcom terminal" (Settings ▸ Payments, off by default).
205
+ * Only the on/off is public. The order page draws "Pay with Apple Pay" only when this is true AND the device says
206
+ * `ApplePaySession.canMakePayments()`. Absent = off.
207
+ */
208
+ applePay?: boolean;
172
209
  }
173
210
 
174
211
  /** Where to send the buyer to pay — a card order only (E2); `null` when the page could not be made (they try again from the order page). */
@@ -278,6 +315,12 @@ export enum CheckoutWord {
278
315
  TryAgain = 'tryAgain',
279
316
  PayNow = 'payNow',
280
317
  OrderClosed = 'orderClosed',
318
+ PayFrameTitle = 'payFrameTitle',
319
+ OpenPaymentHere = 'openPaymentHere',
320
+ PayFrameSlow = 'payFrameSlow',
321
+ PayWithApplePay = 'payWithApplePay',
322
+ OrderAwaitsPayment = 'orderAwaitsPayment',
323
+ OrderAwaitsNote = 'orderAwaitsNote',
281
324
  }
282
325
 
283
326
  /** `{name}`, `{n}`, `{of}`, `{amount}`, `{percent}`, `{number}`, `{email}`, `{total}`, `{place}` are filled by `checkoutWord`. */
@@ -338,6 +381,12 @@ export const CHECKOUT_WORDS: Readonly<Record<CheckoutWord, CommerceLabel>> = Obj
338
381
  [CheckoutWord.TryAgain]: { en: 'Try again', he: 'נסו שוב' },
339
382
  [CheckoutWord.PayNow]: { en: 'Pay now · {total}', he: 'לתשלום עכשיו · {total}' },
340
383
  [CheckoutWord.OrderClosed]: { en: 'This order was cancelled.', he: 'ההזמנה הזו בוטלה.' },
384
+ [CheckoutWord.PayFrameTitle]: { en: 'Secure card payment', he: 'תשלום מאובטח בכרטיס אשראי' },
385
+ [CheckoutWord.OpenPaymentHere]: { en: 'Open the secure page in this window', he: 'לפתוח את הדף המאובטח בחלון הזה' },
386
+ [CheckoutWord.PayFrameSlow]: { en: 'The secure page is slow to load.', he: 'הדף המאובטח נטען לאט.' },
387
+ [CheckoutWord.PayWithApplePay]: { en: 'Pay with Apple Pay', he: 'תשלום ב-Apple Pay' },
388
+ [CheckoutWord.OrderAwaitsPayment]: { en: 'Order #{number} is waiting for payment', he: 'הזמנה #{number} ממתינה לתשלום' },
389
+ [CheckoutWord.OrderAwaitsNote]: { en: 'Your bag is empty because the order was already placed.', he: 'הסל ריק כי ההזמנה כבר נוצרה.' },
341
390
  });
342
391
 
343
392
  export function checkoutWord(word: CheckoutWord, lang: string | null | undefined, fill: Readonly<Record<string, string | number>> = {}): string {
@@ -30,6 +30,7 @@ import {
30
30
  import { planSells, shopCategoriesOf, shopContentType, variantNamesOf } from './shop-plan';
31
31
  import { recipeListBinds } from './recipe-fields';
32
32
  import { assertStyleSlots, ComposeError, createSerializedNode, SerializedBinding, SerializedNode, setStyleProps, walkSerialized } from './serialized-node';
33
+ import { refreshSectionStamps, stampSection } from './section-stamp';
33
34
  import { SitePlanSourceKind, ContentFieldControl, ContentFieldPlan,
34
35
  ContentRole, ContentTypePlan, DataSourcePlan, DEFAULT_SITE_LOCALE, FactKey, FACT_KEYS, GlobalSlot, isRtlLocale, PagePlan, PageSectionPlan, PlanDataSourceMode,
35
36
  PlanDataSourceType, RelativeOp, roleField, SiteLocale, SitePlan, SitePlanSource, SITE_FACT_LABELS, SiteBusiness, GenerationTier,
@@ -1514,6 +1515,17 @@ function composeLayoutPage(
1514
1515
  return nodes;
1515
1516
  }
1516
1517
 
1518
+ /** M2-1: each section root of a model-laid page says where it came from — a ready-made place its plan section's library
1519
+ * pattern, any other its layout section id (`composeLayout` keeps one root per layout section, in order). */
1520
+ function stampLayoutSections(page: PagePlan, layout: LayoutPage, nodes: SerializedNode[]): SerializedNode[] {
1521
+ if (nodes.length !== layout.sections.length) throw new ComposeError(`${page.key}: ${nodes.length} roots for ${layout.sections.length} layout sections`);
1522
+ return nodes.map((root, i) => {
1523
+ const s = layout.sections[i];
1524
+ const readyMade = s.readyMade ? page.sections[s.readyMade.at]?.pattern : undefined;
1525
+ return stampSection(root, readyMade ? { pattern: readyMade } : { layout: s.id });
1526
+ });
1527
+ }
1528
+
1517
1529
  /**
1518
1530
  * Compose a Site Plan. Throws `SitePlanError` (every issue) when the plan does not validate — the
1519
1531
  * composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
@@ -1538,15 +1550,15 @@ export function composeSite(plan: SitePlan, context: ComposeContext): ComposedSi
1538
1550
  return {
1539
1551
  key: page.key, name: page.name, route: { path: page.route }, isHome: page.isHome === true, status: STATUS_DRAFT, locale,
1540
1552
  pageSettings: { designSystem: true, layoutSource: { pageKey: page.key }, ...(opening ? { opening } : {}) }, seo: composePageSeo(page, plan),
1541
- layout: composeLayoutPage(page, page.layout, plan, context, design, placeholders, (section, id) =>
1553
+ layout: stampLayoutSections(page, page.layout, composeLayoutPage(page, page.layout, plan, context, design, placeholders, (section, id) =>
1542
1554
  composePattern(patternById(section.pattern) as SitePattern, id, { ...base, owner: page.key, page, section, nextAlias },
1543
- { level: section.enter ?? design.animate ?? null, rtl })),
1555
+ { level: section.enter ?? design.animate ?? null, rtl }))),
1544
1556
  };
1545
1557
  }
1546
1558
  const layout = page.sections.map((section, i) => {
1547
1559
  const pattern = patternById(section.pattern) as SitePattern;
1548
1560
  const motion: SectionMotion = { level: section.enter ?? design.animate ?? null, rtl };
1549
- return composePattern(pattern, `${page.key}-${i}`, { ...base, owner: page.key, page, section, nextAlias }, motion);
1561
+ return stampSection(composePattern(pattern, `${page.key}-${i}`, { ...base, owner: page.key, page, section, nextAlias }, motion), { pattern: section.pattern });
1550
1562
  });
1551
1563
  const opening = colorSchemeClass(layout[0]?.props?.[COLOR_SCHEME_TRAIT]) ? (layout[0].props[COLOR_SCHEME_TRAIT] as ColorScheme) : null;
1552
1564
  return {
@@ -1597,6 +1609,9 @@ export function composeSite(plan: SitePlan, context: ComposeContext): ComposedSi
1597
1609
  // footer's legal row and the line beside every form that asks for personal details.
1598
1610
  const legal = composeLegal(plan, context.legal ?? {}, pages, globals, footer.mix.arrange, placeholders);
1599
1611
  globals = legal.globals;
1612
+ // RD1 (M2-1): the legal line dresses a section's form AFTER it was stamped — re-take the fingerprints, so a built
1613
+ // page reads "as the build left it" (the same rule iox-cms runs after the stock photos).
1614
+ for (const page of pages) refreshSectionStamps(page.layout);
1600
1615
 
1601
1616
  return {
1602
1617
  source: clone(plan.source),
@@ -17,6 +17,7 @@ export * from './site-plan.model';
17
17
  export * from './patterns';
18
18
  export * from './templates';
19
19
  export * from './serialized-node';
20
+ export * from './section-stamp';
20
21
  export * from './shape-check';
21
22
  export * from './json-schema';
22
23
  export * from './validate-site-plan';
@@ -0,0 +1,145 @@
1
+ import { patternById, SITE_PATTERNS } from './patterns';
2
+ import { SectionStamp, SerializedNode } from './serialized-node';
3
+
4
+ /**
5
+ * SECTION STAMPS (M2-1, site-redesign RD1): every section root a build composes says where it came from and how the
6
+ * build left it, so a redesign (and Ask) can tell the owner's sections from the build's, section by section — before
7
+ * this, "edited" was judged per page only.
8
+ *
9
+ * - `stampSection` writes `composed: { pattern | layout, buildKey, fingerprint }` on a root;
10
+ * - `sectionFingerprint` is the root's content (its stamp aside) as a sync, framework-free 53-bit hash — the same in
11
+ * the browser, the server and a spec, and unchanged by a builder save that changes nothing;
12
+ * - `refreshSectionStamps` re-takes the fingerprints after a later step dresses the layout (the build's stock photos);
13
+ * - `sectionOrigin` answers "composed or the owner's?" for any root, stamped or not (RD1 Q2: a stamp wins; else a
14
+ * library pattern's label, or a section id of the layout the page was composed from, means composed).
15
+ */
16
+
17
+ /** Where a composed section came from: a library pattern, or a section a model laid out. */
18
+ export type SectionStampOrigin = { pattern: string; layout?: never } | { layout: string; pattern?: never };
19
+
20
+ /** The key a section's stamp carries (beside `buildKeys` in `site-build-run.ts`): the root's own id. */
21
+ export const sectionBuildKey = (rootId: string): string => `section:${rootId}`;
22
+
23
+ /** The stamp field: never part of a fingerprint (a stamp cannot describe itself). */
24
+ const STAMP_FIELD = 'composed';
25
+
26
+ const isEmpty = (value: unknown): boolean =>
27
+ value === undefined || value === null || value === ''
28
+ || (Array.isArray(value) && value.length === 0)
29
+ || (typeof value === 'object' && !Array.isArray(value) && Object.keys(value as object).length === 0);
30
+
31
+ /**
32
+ * A value's canonical form: keys sorted, an EMPTY value is no value (`undefined`, `null`, `''`, `[]`, `{}` drop), the
33
+ * stamp field gone at every depth — so a saved node and a composed one compare equal however their empties were written
34
+ * (iox-cms's `canonical` rule, the server's fingerprints).
35
+ */
36
+ function canonical(value: unknown): unknown {
37
+ if (Array.isArray(value)) return value.map(canonical).filter(v => !isEmpty(v));
38
+ if (value && typeof value === 'object') {
39
+ const out: Record<string, unknown> = {};
40
+ for (const key of Object.keys(value as object).sort()) {
41
+ if (key === STAMP_FIELD) continue;
42
+ const v = canonical((value as Record<string, unknown>)[key]);
43
+ if (!isEmpty(v)) out[key] = v;
44
+ }
45
+ return out;
46
+ }
47
+ return value;
48
+ }
49
+
50
+ /** A node's canonical JSON, its stamp aside. */
51
+ export function canonicalNodeJson(node: SerializedNode): string {
52
+ return JSON.stringify(canonical(node)) ?? '';
53
+ }
54
+
55
+ /**
56
+ * cyrb53: a sync 53-bit string hash, 14 base-36 characters. Not a security hash — it tells "as the build left it" from
57
+ * "changed" for one section, where a collision costs one section judged unchanged.
58
+ */
59
+ export function hash53(text: string): string {
60
+ let h1 = 0xdeadbeef;
61
+ let h2 = 0x41c6ce57;
62
+ for (let i = 0; i < text.length; i++) {
63
+ const ch = text.charCodeAt(i);
64
+ h1 = Math.imul(h1 ^ ch, 2654435761);
65
+ h2 = Math.imul(h2 ^ ch, 1597334677);
66
+ }
67
+ h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507) ^ Math.imul(h2 ^ (h2 >>> 13), 3266489909);
68
+ h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507) ^ Math.imul(h1 ^ (h1 >>> 13), 3266489909);
69
+ const n = 4294967296 * (2097151 & h2) + (h1 >>> 0);
70
+ return n.toString(36).padStart(11, '0');
71
+ }
72
+
73
+ /** A section's fingerprint: its canonical content (stamp aside), hashed. */
74
+ export function sectionFingerprint(root: SerializedNode): string {
75
+ return hash53(canonicalNodeJson(root));
76
+ }
77
+
78
+ /** Stamp a composed section root (in place) and return it. */
79
+ export function stampSection(root: SerializedNode, origin: SectionStampOrigin): SerializedNode {
80
+ const from = 'pattern' in origin && origin.pattern ? { pattern: origin.pattern } : { layout: (origin as { layout: string }).layout };
81
+ root.composed = { ...from, buildKey: sectionBuildKey(root.id), fingerprint: sectionFingerprint(root) };
82
+ return root;
83
+ }
84
+
85
+ /** Re-take every stamped root's fingerprint (in place) — after a step that dresses a composed layout (stock photos). */
86
+ export function refreshSectionStamps(layout: ReadonlyArray<SerializedNode>): void {
87
+ for (const root of layout) if (root.composed) root.composed = { ...root.composed, fingerprint: sectionFingerprint(root) };
88
+ }
89
+
90
+ /** A stamp's shape is whole: exactly one origin, a build key and a fingerprint. */
91
+ export function isSectionStamp(value: unknown): value is SectionStamp {
92
+ if (!value || typeof value !== 'object') return false;
93
+ const s = value as Record<string, unknown>;
94
+ const origins = [s['pattern'], s['layout']].filter(v => typeof v === 'string' && v !== '').length;
95
+ return origins === 1 && typeof s['buildKey'] === 'string' && !!s['buildKey'] && typeof s['fingerprint'] === 'string' && !!s['fingerprint'];
96
+ }
97
+
98
+ /** Whether a stamped section is still as the build left it. Null when the root carries no (whole) stamp. */
99
+ export function sectionUnchanged(root: SerializedNode): boolean | null {
100
+ return isSectionStamp(root.composed) ? root.composed.fingerprint === sectionFingerprint(root) : null;
101
+ }
102
+
103
+ /** Who a page's section is: the build's (and whether the owner changed it since, when the stamp can tell) or the owner's. */
104
+ export enum SectionMaker {
105
+ Composed = 'composed',
106
+ Owner = 'owner',
107
+ }
108
+
109
+ export interface SectionOrigin {
110
+ maker: SectionMaker;
111
+ /** The library pattern or the layout section it came from, when composed. */
112
+ pattern?: string;
113
+ layout?: string;
114
+ /** A stamped section: false once the owner changed it. Absent when no stamp tells. */
115
+ unchanged?: boolean;
116
+ }
117
+
118
+ /** The library pattern whose label a root wears (`composePattern` names a root by its pattern's label). */
119
+ function patternOfLabel(label: string | undefined, patternIds: ReadonlyArray<string>): string | undefined {
120
+ const name = (label ?? '').split(' · ')[0].trim();
121
+ return name ? patternIds.find(id => patternById(id)?.label === name) : undefined;
122
+ }
123
+
124
+ export interface SectionOriginContext {
125
+ /** The library pattern ids a root's label may name (default: the whole library). */
126
+ patternIds?: ReadonlyArray<string>;
127
+ /** The section ids of the layout the page was composed from (its run plan's `page.layout`), when it was. */
128
+ layoutSectionIds?: ReadonlyArray<string>;
129
+ }
130
+
131
+ /**
132
+ * Who made a page's section (RD1 Q2): a stamp wins; else a root labelled with a library pattern's name, or with a section
133
+ * id of the layout the page was composed from, is the build's; anything else is the owner's.
134
+ */
135
+ export function sectionOrigin(root: SerializedNode, ctx: SectionOriginContext = {}): SectionOrigin {
136
+ if (isSectionStamp(root.composed)) {
137
+ const { pattern, layout } = root.composed;
138
+ return { maker: SectionMaker.Composed, ...(pattern ? { pattern } : { layout }), unchanged: root.composed.fingerprint === sectionFingerprint(root) };
139
+ }
140
+ const pattern = patternOfLabel(root.label, ctx.patternIds ?? Object.keys(SITE_PATTERNS));
141
+ if (pattern) return { maker: SectionMaker.Composed, pattern };
142
+ const layout = ctx.layoutSectionIds?.find(id => id === (root.label ?? '').trim());
143
+ if (layout) return { maker: SectionMaker.Composed, layout };
144
+ return { maker: SectionMaker.Owner };
145
+ }
@@ -43,9 +43,24 @@ export interface SerializedNode {
43
43
  interactions: unknown[];
44
44
  isGlobal?: boolean;
45
45
  globalPosition?: `${PatternGlobalPosition}`;
46
+ /** A section root the build composed (site-redesign RD1 / M2-1): where it came from and how it was left, so a
47
+ * redesign knows what is the owner's (`section-stamp.ts`). Additive; no renderer reads it; a copy drops it. */
48
+ composed?: SectionStamp;
46
49
  children?: SerializedNode[];
47
50
  }
48
51
 
52
+ /**
53
+ * A composed section's stamp (M2-1, site-redesign RD1): EXACTLY ONE of `pattern` (a library pattern — `composeSite`,
54
+ * or a section a layout fell back to) and `layout` (the id of a section a model laid out, M8); the section's build key
55
+ * (`section:<root id>`); and its fingerprint as the build left it (`sectionFingerprint`).
56
+ */
57
+ export interface SectionStamp {
58
+ pattern?: string;
59
+ layout?: string;
60
+ buildKey: string;
61
+ fingerprint: string;
62
+ }
63
+
49
64
  /** A pattern the composer cannot stamp as the builder would (an unregistered type, a trait the type has
50
65
  * no slot for, a style that does not apply). The plan is validated first, so this means the CONTRACT is
51
66
  * wrong — never something to work around. */