@vectoriox/iox-ui 5.164.1 → 5.165.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +35 -8
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +137 -10
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +22 -3
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +7 -1
- package/index.d.ts +3 -0
- package/package.json +1 -1
- package/scene-core/index.d.ts +42 -6
- package/src/generation-core/carry-fill.ts +1 -1
- package/src/generation-core/check-layout.ts +1 -1
- package/src/generation-core/compose-layout.ts +36 -5
- package/src/scene-core/scene.ts +2 -0
- package/src/scene-core/scroll-driver.ts +121 -5
- package/src/scene-core/split-text.ts +17 -4
|
@@ -13668,6 +13668,12 @@ interface ComposedLayout {
|
|
|
13668
13668
|
* data and structure as they were; Compare lists them. */
|
|
13669
13669
|
keptArrangement: string[];
|
|
13670
13670
|
}
|
|
13671
|
+
/** AW10 (award plan "drawers" row, measured): a drawer's heading arrives letter by letter, ~20 ms apart… */
|
|
13672
|
+
declare const DRAWER_LETTER_MS = 20;
|
|
13673
|
+
/** …its words line by line, ~150 ms apart… */
|
|
13674
|
+
declare const DRAWER_LINE_MS = 150;
|
|
13675
|
+
/** …and each of its layers a beat after the one before (the heading first). */
|
|
13676
|
+
declare const DRAWER_BEAT_MS = 150;
|
|
13671
13677
|
/**
|
|
13672
13678
|
* Words drawn on a shape or a photo at a laptop's width lose it on a phone: the shape is hidden and every layer stacks,
|
|
13673
13679
|
* so they read on the section's own ground there. When their colour would vanish into that ground (the live clinic's
|
|
@@ -19081,5 +19087,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
|
|
|
19081
19087
|
* its phone menu, the footer's copyright line. */
|
|
19082
19088
|
declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
|
|
19083
19089
|
|
|
19084
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiPictureMaker, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, 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, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_TOKENS_UNKNOWN_MAKER, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureFree, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTokensFor, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedLayoutSection, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
19090
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PICTURE_MAKERS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiPictureMaker, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, DRAWER_BEAT_MS, DRAWER_LETTER_MS, DRAWER_LINE_MS, 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, FREE_BUILDER_TYPE, FREE_CONTRAST, FREE_ELEMENT_STYLES, FREE_HOLDERS, FREE_HOVER_PROPS, FREE_LEAD_ROLE, FREE_MOVES, FREE_PHONE_LAYERS, FREE_PHONE_LIMITS, FREE_SECTIONS, FREE_STYLE_PROPS, FREE_TOKEN_PROPS, FREE_TO_LAYOUT_CODE, FREE_WIRE_NODE_KEYS, FREE_WORD_TYPES, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, FreeIssueCode, FreeLayer, FreeNodeType, FreePictures, FreePurpose, FreeTrigger, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_NEAR_MISS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_SETTLE_PASSES, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningGround, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_TOKENS_UNKNOWN_MAKER, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PromptLimit, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, boxSides, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkFree, checkFreeSection, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeFreePage, composeFreeSection, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandFreeWire, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallBackFree, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, followedAfter, followedIssues, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, freeContrastIssues, freeControlsOf, freeMoveOf, freeMoveWord, freeMoveWords, freeNodeId, freeSectionAsLayout, freeSectionOwner, freeSignaturePage, freeSlotIssues, freeStampedId, freeStyleIssues, freeStyleToSlots, freeStyleWithoutSlot, freeToWire, freeWireJsonSchema, freeWirePath, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerMetricsOf, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNearMiss, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureFree, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingTokenParts, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, pictureMakerOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTokensFor, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, promptLimitsOf, publishRefusal, publishVerdict, quietMoveEntrance, quotesIn, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBreaks, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceRepeats, sequenceShare, sequenceTokenOf, setStyleProps, settleLayoutPage, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedGroundFor, typeLedGrounds, typeLedLayoutSection, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkFree, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, withoutFreeOrphans, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
|
|
19085
19091
|
export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiPictureMakerRow, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeFreeOptions, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DistinctFallback, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, ExpandedFreeWire, FactKey, FilmPlacement, FilmTarget, FindingParams, FindingSentence, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, FreeFallback, FreeFallbackPrompt, FreeIssue, FreeJudgeContext, FreeMove, FreeNode, FreePage, FreeRead, FreeSlotOffer, FreeSlotOptions, FreeStamped, FreeStyle, FreeWalked, FreeWire, FreeWireFault, FreeWireNode, FreeWireOptions, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayerMetrics, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutIssueWords, LayoutLayer, LayoutListBare, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutMixOfferOptions, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutRoomColumn, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, LayoutWordRef, LayoutWordsValue, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, ListCheckOptions, ListFrame, ListFrameInput, ListHangStep, ListIngredient, ListOverhang, ListPanelContext, ListPanelRow, ListPanelWord, ListPartEdit, ListPartsKept, ListPick, ListSaid, ListSayParams, ListShapeReading, ListWait, ListWordNever, ListWordShape, LookBefore, MeasuredLayer, MeasuredLayout, MenuWords, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OpeningApplied, OpeningContext, OpeningGalleryEntry, OpeningGap, OpeningInput, OpeningMix, OpeningNotPlaced, OpeningReading, OpeningRecipe, OpeningRepair, OpeningSite, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageCarry, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureSupply, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PromptReading, PublishRefusal, QuoteRoute, RecipeListBinds, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RhythmContext, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionFallbackOptions, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteFindingGroup, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, TypeLed, TypeLedChange, TypeLedOpening, TypeLedRoundContext, TypeLedTarget, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
package/index.d.ts
CHANGED
|
@@ -5039,6 +5039,9 @@ declare class PopupRuntime {
|
|
|
5039
5039
|
private arrive;
|
|
5040
5040
|
private show;
|
|
5041
5041
|
private hide;
|
|
5042
|
+
/** Focus back where it was before a non-modal open (nothing happens when it did not move). */
|
|
5043
|
+
private keepFocus;
|
|
5044
|
+
private showing;
|
|
5042
5045
|
private openPopups;
|
|
5043
5046
|
private announce;
|
|
5044
5047
|
private store;
|
package/package.json
CHANGED
package/scene-core/index.d.ts
CHANGED
|
@@ -110,7 +110,9 @@ declare enum SceneAttribute {
|
|
|
110
110
|
Tracks = "data-iox-tracks",
|
|
111
111
|
PhoneTracks = "data-iox-tracks-phone",
|
|
112
112
|
/** A root's stage that is not a Scene's `scene.stage` part: the slider a scroll plays (premium M4). */
|
|
113
|
-
Stage = "data-iox-scene-stage"
|
|
113
|
+
Stage = "data-iox-scene-stage",
|
|
114
|
+
/** On a layer whose hold move has ended — it has LANDED (AW10, `sceneLand`). Written by the driver, read by `onSceneLand`. */
|
|
115
|
+
Landed = "data-iox-landed"
|
|
114
116
|
}
|
|
115
117
|
/**
|
|
116
118
|
* A SLIDER THE SCROLL PLAYS (premium components M4 — M1.3's held gallery). Its progress rests on each picture and changes
|
|
@@ -525,10 +527,18 @@ declare function scrollSubpixel(scroller: SmoothScroller | null): number;
|
|
|
525
527
|
*/
|
|
526
528
|
declare function followToward(current: number, previousTarget: number, target: number, seconds: number, rate?: number): number;
|
|
527
529
|
/**
|
|
528
|
-
* Where a
|
|
529
|
-
* no such move (the first drawer, a phone's stacked panels) is on the stage from the
|
|
530
|
+
* Where a layer that travels onto the stage has LANDED, as hold progress: the last key of its hold-range X / Y move (the
|
|
531
|
+
* later, when it has both). A layer with no such move (the first drawer, a phone's stacked panels) is on the stage from the
|
|
532
|
+
* start: 0.
|
|
530
533
|
*/
|
|
531
534
|
declare function stepLanding(tracks: ReadonlyArray<SceneTrack>): number;
|
|
535
|
+
/**
|
|
536
|
+
* AW10 (award plan "drawers" row): the trigger of an entrance played when its layer LANDS — the moment the Scene's progress
|
|
537
|
+
* reaches the last key of the layer's travel (`stepLanding`). Both interaction runtimes run it through `onSceneLand`.
|
|
538
|
+
*/
|
|
539
|
+
declare const SCENE_LAND_TRIGGER = "sceneLand";
|
|
540
|
+
/** Dispatched (not bubbling) on a layer as it lands. Never a DOM `scroll` (SC2). */
|
|
541
|
+
declare const SCENE_LAND_EVENT = "iox-scene-land";
|
|
532
542
|
/**
|
|
533
543
|
* Where a Scene of steps (each covering the one before once it lands) must stand for step `index` to be in FRONT, or null
|
|
534
544
|
* when it already is — or when no step moves (nothing covers anything; a phone stacks them). Step i is in front from its
|
|
@@ -743,6 +753,14 @@ declare class ScrollDriver {
|
|
|
743
753
|
private openingOf;
|
|
744
754
|
private read;
|
|
745
755
|
private write;
|
|
756
|
+
/**
|
|
757
|
+
* A layer that travels lands when what is on screen (the damped progress) reaches the end of its travel: it is marked,
|
|
758
|
+
* and told once (`SCENE_LAND_EVENT`) — its words arrive then (AW10). Back before its landing it is unmarked, so a later
|
|
759
|
+
* listener does not run for a layer the visitor scrolled back away from.
|
|
760
|
+
*/
|
|
761
|
+
private writeLanded;
|
|
762
|
+
/** True when this driver tells `layer` it has landed: it holds its Scene and the layer travels at this width. */
|
|
763
|
+
landsOnScroll(layer: HTMLElement): boolean;
|
|
746
764
|
/**
|
|
747
765
|
* The picture this moment asks for. The attribute sits on the Video's own root, which is the layer on the string path
|
|
748
766
|
* and inside it on the component path. A layer with no pictures, or no Play track, holds its poster.
|
|
@@ -763,6 +781,17 @@ declare function sceneRootsIn(elements: Iterable<Element>): HTMLElement[];
|
|
|
763
781
|
/** The live site's door for a runtime that owns some nodes: their Scenes on one driver (null when none, or under reduced
|
|
764
782
|
* motion — the page's own CSS then lets each Scene flow). A root another driver holds stays with it. */
|
|
765
783
|
declare function attachSceneRoots(roots: ReadonlyArray<HTMLElement>, options?: ScrollDriverOptions): ScrollDriver | null;
|
|
784
|
+
/** The layer `el` travels onto the stage with: the nearest one (itself or above it, inside its Scene) whose wide tracks
|
|
785
|
+
* land (`stepLanding` > 0). Null when nothing carries it in. */
|
|
786
|
+
declare function travellingLayerOf(el: HTMLElement): HTMLElement | null;
|
|
787
|
+
/**
|
|
788
|
+
* Run `run` ONCE when `el`'s words are to arrive (AW10, `SCENE_LAND_TRIGGER`): as the layer that carries it onto the stage
|
|
789
|
+
* LANDS (`SCENE_LAND_EVENT`; at once when it already has), wherever a driver plays that travel. Where none does — the layer
|
|
790
|
+
* does not travel at this width (a phone's stacked Scene), the visitor asked for less motion (no driver; the Scene flows),
|
|
791
|
+
* nothing carries it (the first drawer, a node outside a Scene) — it arrives as it comes into view, as a viewport entrance
|
|
792
|
+
* does. Focus reaching it first makes it arrive at once. Both interaction runtimes call this. Returns the way to let go.
|
|
793
|
+
*/
|
|
794
|
+
declare function onSceneLand(el: HTMLElement, run: () => void, host?: Window): () => void;
|
|
766
795
|
|
|
767
796
|
/**
|
|
768
797
|
* Text into pieces, in the browser only (premium sites SC3, Motion v2 §3c). A saved node keeps its plain text and the
|
|
@@ -839,7 +868,14 @@ interface SplitText {
|
|
|
839
868
|
declare function splitText(root: HTMLElement, options: SplitTextOptions): SplitText | null;
|
|
840
869
|
/** The line each piece stands on: 0, 0, 1, 1, 1, 2… Read once, as a reveal starts. */
|
|
841
870
|
declare function lineIndexes(tops: ReadonlyArray<number>, heights: ReadonlyArray<number>): number[];
|
|
842
|
-
|
|
871
|
+
/** The most a reveal may ask between two pieces (`params.stagger`): past it a heading is spelled out, not assembled. */
|
|
872
|
+
declare const REVEAL_STAGGER_MAX_MS = 300;
|
|
873
|
+
/**
|
|
874
|
+
* A reveal's own step between pieces, in ms (`params.stagger`; AW10 — a drawer's letters ~20 ms, its lines ~150 ms), or
|
|
875
|
+
* undefined for the step its kind of piece takes. Clamped to 0–`REVEAL_STAGGER_MAX_MS`; anything not a number is undefined.
|
|
876
|
+
*/
|
|
877
|
+
declare function textRevealStaggerOf(value: unknown): number | undefined;
|
|
878
|
+
declare function revealStagger(groups: number, by: TextRevealBy, stagger?: number): number;
|
|
843
879
|
/** A text split for a reveal: its pieces in reading order and the group (line, word, letter) each plays with. */
|
|
844
880
|
interface RevealSplit {
|
|
845
881
|
split: SplitText;
|
|
@@ -860,7 +896,7 @@ declare function splitForReveal(el: HTMLElement, by: TextRevealBy, look?: TextRe
|
|
|
860
896
|
* nothing to re-split on a resize. Null when there is nothing to split or it is being edited: the caller plays its plain
|
|
861
897
|
* fade.
|
|
862
898
|
*/
|
|
863
|
-
declare function playTextReveal(el: HTMLElement, by: TextRevealBy, timing: KeyframeAnimationOptions, look?: TextRevealLook): Animation | null;
|
|
899
|
+
declare function playTextReveal(el: HTMLElement, by: TextRevealBy, timing: KeyframeAnimationOptions, look?: TextRevealLook, stagger?: number): Animation | null;
|
|
864
900
|
/** AW10: how many pieces are on their way at once while the scroll plays a text — a wave, not one piece at a time. */
|
|
865
901
|
declare const SCRUB_PIECES_IN_FLIGHT = 3;
|
|
866
902
|
/**
|
|
@@ -883,5 +919,5 @@ interface TextScrub {
|
|
|
883
919
|
*/
|
|
884
920
|
declare function scrubTextReveal(el: HTMLElement, by: TextRevealBy, look?: TextRevealLook, easing?: string): TextScrub | null;
|
|
885
921
|
|
|
886
|
-
export { LENIS_SMOOTH_CLASS, LETTER_PIECE_CAP, LIGHT_UP_PIECE_CAP, LetterRefusal, PARALLAX_DEPTH_DEFAULT, PARALLAX_PHONE_FACTOR, PARALLAX_REST_DEFAULT, PARALLAX_SPEED, PROGRESS_BAR_FRAMES, ParallaxDepth, ParallaxPhone, REVEAL_PIECE_CAP, SCENE_BUDGET, SCENE_DAMPING, SCENE_FILM_SMOOTH, SCENE_FLOW_RULES, SCENE_LENGTH, SCENE_MAX_SCREENS, SCENE_MIN_SCREENS, SCENE_PHONE_LENGTH, SCENE_PHONE_MAX_WIDTH, SCENE_REDUCED_MOTION_CSS, SCENE_REVEAL_DEFAULT, SCENE_STAGE_HEIGHT, SCENE_TRACK_DEFS, SCENE_TRACK_EASE, SCENE_WAKE_EVENT, SCENE_WORDS, SCENE_WORD_DIM, SCROLL_RANGE_DEFAULT, SCRUB_PIECES_IN_FLIGHT, SLIDER_HOLD_SHARE, SLIDER_SCROLL_STEP_SCREENS, SceneAttribute, SceneEase, SceneProp, SceneRange, SceneRevealFrom, ScrollActionKind, ScrollDriver, ScrollPlay, ScrollRange, TextRevealBy, TextRevealLook, applySceneFirstFrame, attachSceneRoots, attachScenes, boxInside, buildSceneRecipe, colourAt, crossesStage, crossingOf, dampToward, followToward, gentleFrames, heldProgress, holdLookAt, isHoldTrack, layoutBoxOnScreen, letterCount, letterRefusalOf, lettersSplittable, lightMotionWanted, lineIndexes, movedSceneKey, normalizeParallaxDepth, normalizeParallaxPhone, normalizeScrollRange, normalizeTracks, outermostNodeOf, pageScroller, parallaxFrames, parallaxOffset, parallaxRest, parallaxShift, playTextReveal, progressShowingFocus, progressShowingStep, rangeDistance, rangeEnds, rangeProgress, revealClipPath, revealStagger, sceneBudget, sceneColourKeyAt, sceneDisplayValue, sceneFilmDensity, sceneFirstFrame, sceneFrame, sceneFrameDeclarations, sceneHasKeyAt, sceneHeightForScreens, sceneKeyPosition, sceneLayersOf, sceneNodeAttributes, scenePlayed, sceneRevealFromOf, sceneRootOnPath, sceneRootsIn, sceneScreensOf, sceneScrollAlong, sceneScrollState, sceneTrackDef, sceneTrackSpan, sceneWordOpacity, sceneWordsLit, scenesIn, scrollPlayFor, scrollSubpixel, scrubPieceProgress, scrubTextReveal, setPageScroller, splitForReveal, splitText, stepLanding, syncSceneAttributes, textPieces, textRevealByOf, textRevealLookOf, trackColourAt, trackEase, trackProgress, trackRange, trackValueAt, unmovedBox, valueAt, withSceneKey, withScenePlayback, withSceneRevealFrom, withoutSceneKey, withoutScenePlayback };
|
|
922
|
+
export { LENIS_SMOOTH_CLASS, LETTER_PIECE_CAP, LIGHT_UP_PIECE_CAP, LetterRefusal, PARALLAX_DEPTH_DEFAULT, PARALLAX_PHONE_FACTOR, PARALLAX_REST_DEFAULT, PARALLAX_SPEED, PROGRESS_BAR_FRAMES, ParallaxDepth, ParallaxPhone, REVEAL_PIECE_CAP, REVEAL_STAGGER_MAX_MS, SCENE_BUDGET, SCENE_DAMPING, SCENE_FILM_SMOOTH, SCENE_FLOW_RULES, SCENE_LAND_EVENT, SCENE_LAND_TRIGGER, SCENE_LENGTH, SCENE_MAX_SCREENS, SCENE_MIN_SCREENS, SCENE_PHONE_LENGTH, SCENE_PHONE_MAX_WIDTH, SCENE_REDUCED_MOTION_CSS, SCENE_REVEAL_DEFAULT, SCENE_STAGE_HEIGHT, SCENE_TRACK_DEFS, SCENE_TRACK_EASE, SCENE_WAKE_EVENT, SCENE_WORDS, SCENE_WORD_DIM, SCROLL_RANGE_DEFAULT, SCRUB_PIECES_IN_FLIGHT, SLIDER_HOLD_SHARE, SLIDER_SCROLL_STEP_SCREENS, SceneAttribute, SceneEase, SceneProp, SceneRange, SceneRevealFrom, ScrollActionKind, ScrollDriver, ScrollPlay, ScrollRange, TextRevealBy, TextRevealLook, applySceneFirstFrame, attachSceneRoots, attachScenes, boxInside, buildSceneRecipe, colourAt, crossesStage, crossingOf, dampToward, followToward, gentleFrames, heldProgress, holdLookAt, isHoldTrack, layoutBoxOnScreen, letterCount, letterRefusalOf, lettersSplittable, lightMotionWanted, lineIndexes, movedSceneKey, normalizeParallaxDepth, normalizeParallaxPhone, normalizeScrollRange, normalizeTracks, onSceneLand, outermostNodeOf, pageScroller, parallaxFrames, parallaxOffset, parallaxRest, parallaxShift, playTextReveal, progressShowingFocus, progressShowingStep, rangeDistance, rangeEnds, rangeProgress, revealClipPath, revealStagger, sceneBudget, sceneColourKeyAt, sceneDisplayValue, sceneFilmDensity, sceneFirstFrame, sceneFrame, sceneFrameDeclarations, sceneHasKeyAt, sceneHeightForScreens, sceneKeyPosition, sceneLayersOf, sceneNodeAttributes, scenePlayed, sceneRevealFromOf, sceneRootOnPath, sceneRootsIn, sceneScreensOf, sceneScrollAlong, sceneScrollState, sceneTrackDef, sceneTrackSpan, sceneWordOpacity, sceneWordsLit, scenesIn, scrollPlayFor, scrollSubpixel, scrubPieceProgress, scrubTextReveal, setPageScroller, splitForReveal, splitText, stepLanding, syncSceneAttributes, textPieces, textRevealByOf, textRevealLookOf, textRevealStaggerOf, trackColourAt, trackEase, trackProgress, trackRange, trackValueAt, travellingLayerOf, unmovedBox, valueAt, withSceneKey, withScenePlayback, withSceneRevealFrom, withoutSceneKey, withoutScenePlayback };
|
|
887
923
|
export type { RevealSplit, SceneBox, SceneBudget, SceneFilmDensity, SceneFrame, SceneFrameOptions, SceneFrameState, SceneKey, SceneLayerNode, SceneNodeSource, SceneProgress, SceneTrack, SceneTrackDef, SceneTreeNode, SceneWords, ScrollBox, ScrollDriverOptions, ScrollLink, ScrollLinkGeometry, ScrollMotionEnv, SmoothScroller, SplitText, SplitTextOptions, TextPiece, TextScrub };
|
|
@@ -16,7 +16,7 @@ import { SerializedNode } from './serialized-node';
|
|
|
16
16
|
export const LAYOUT_OWNED_PROPS: ReadonlySet<string> = new Set(['level']);
|
|
17
17
|
|
|
18
18
|
/** Triggers that are motion — the composer's, in the new look's pace. Every other trigger is what the element does. */
|
|
19
|
-
export const MOTION_TRIGGERS: ReadonlySet<string> = new Set(['viewportEnter', 'scrollProgress', 'pageEnter', 'pageLeave']);
|
|
19
|
+
export const MOTION_TRIGGERS: ReadonlySet<string> = new Set(['viewportEnter', 'scrollProgress', 'pageEnter', 'pageLeave', 'sceneLand']);
|
|
20
20
|
|
|
21
21
|
const triggerOf = (ix: unknown): string => String((ix as { trigger?: unknown } | null)?.trigger ?? '');
|
|
22
22
|
const idOf = (ix: unknown): string => String((ix as { id?: unknown } | null)?.id ?? '');
|
|
@@ -951,7 +951,7 @@ function uniqueIssues(issues: LayoutIssue[]): LayoutIssue[] {
|
|
|
951
951
|
export const LAYOUT_ENTRANCE_MAX_MS = 1200;
|
|
952
952
|
/** The scale an action starts from, where it is not 1 (iox-ui `buildInteractionKeyframes`; held equal by the spec). */
|
|
953
953
|
export const ACTION_START_SCALE: Readonly<Record<string, number>> = { scaleIn: 0.8 };
|
|
954
|
-
const ENTRANCE_TRIGGERS: ReadonlySet<string> = new Set(['viewportEnter', 'pageLoad']);
|
|
954
|
+
const ENTRANCE_TRIGGERS: ReadonlySet<string> = new Set(['viewportEnter', 'pageLoad', 'sceneLand']);
|
|
955
955
|
const EASE_IN = /(^|[\s,(])ease-in(?!-out)/;
|
|
956
956
|
const EASING_TOKEN = /^(cubic-bezier\(|linear(\(|$)|var\(--)/;
|
|
957
957
|
const TRANSITION_ALL = /(^|[\s,])all([\s,]|$)/;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from '@vectoriox/iox-ui/composite-core';
|
|
6
6
|
|
|
7
7
|
import { ColorScheme, DesignChoices, LIST_MIX_PROP, LinkType, scrubOfChoices, setColorScheme, SPEC_AXES } from '@vectoriox/iox-ui/design-core';
|
|
8
|
-
import { SCENE_TRACK_EASE, SceneEase, SceneProp, SceneRange, SceneRevealFrom, TextRevealBy } from '@vectoriox/iox-ui/scene-core';
|
|
8
|
+
import { SCENE_LAND_TRIGGER, SCENE_TRACK_EASE, SceneEase, SceneProp, SceneRange, SceneRevealFrom, TextRevealBy } from '@vectoriox/iox-ui/scene-core';
|
|
9
9
|
import { FORM_AFTER_SEND_TRAIT, FormAfterSend, FormPresetId } from '@vectoriox/iox-ui/forms-core';
|
|
10
10
|
import { composeNavHeader, composePresetForm } from './compose-site';
|
|
11
11
|
import { drawnHeaderMix, headerMixOfNavKind } from './header-mix';
|
|
@@ -507,6 +507,35 @@ function onceEnterInteraction(nodeId: string, l: LayoutLayer, ctx: Ctx, path: st
|
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
+
/** AW10 (award plan "drawers" row, measured): a drawer's heading arrives letter by letter, ~20 ms apart… */
|
|
511
|
+
export const DRAWER_LETTER_MS = 20;
|
|
512
|
+
/** …its words line by line, ~150 ms apart… */
|
|
513
|
+
export const DRAWER_LINE_MS = 150;
|
|
514
|
+
/** …and each of its layers a beat after the one before (the heading first). */
|
|
515
|
+
export const DRAWER_BEAT_MS = 150;
|
|
516
|
+
/** The words that arrive letter by letter: a step's heading (a joined script or a long line falls to words by itself). */
|
|
517
|
+
const DRAWER_LETTER_KINDS: ReadonlySet<string> = new Set([LayoutLayerKind.Heading, LayoutLayerKind.Word]);
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* AW10: a drawer's words arrive AS ITS STEP LANDS (`sceneLand`, scene-core `onSceneLand`) — the heading letter by letter,
|
|
521
|
+
* the rest of its words line by line, anything else (a button) rising — never as the section enters, when the step is
|
|
522
|
+
* still waiting off the stage. Transform and opacity only (RT-D3: no blur); under reduced motion the runtimes' ONE floor
|
|
523
|
+
* makes it a fade. The first step, on the stage from the start, arrives as it comes into view.
|
|
524
|
+
*/
|
|
525
|
+
function drawerArrival(nodeId: string, l: LayoutLayer, ctx: Ctx, textual: boolean, order: number): unknown {
|
|
526
|
+
const role = (l.role ?? LayoutRole.Support) as LayoutRole;
|
|
527
|
+
const duration = role === LayoutRole.Lead ? ctx.pace.lead : ctx.pace.support;
|
|
528
|
+
const letters = textual && DRAWER_LETTER_KINDS.has(l.kind);
|
|
529
|
+
const action = textual
|
|
530
|
+
? { type: 'revealText', params: { by: letters ? TextRevealBy.Letter : TextRevealBy.Line, stagger: letters ? DRAWER_LETTER_MS : DRAWER_LINE_MS } }
|
|
531
|
+
: { type: 'moveUp', params: { distance: LAYOUT_RISE[role] ?? LAYOUT_RISE[LayoutRole.Support] } };
|
|
532
|
+
return {
|
|
533
|
+
id: `${nodeId}-enter`,
|
|
534
|
+
trigger: SCENE_LAND_TRIGGER,
|
|
535
|
+
actions: [{ ...action, target: 'self', duration, delay: order * DRAWER_BEAT_MS, easing: ctx.ease, once: true }],
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
510
539
|
/** A picture settling inside its frame as the frame wipes open (`clipReveal` on a photo). */
|
|
511
540
|
function zoomInteraction(nodeId: string, l: LayoutLayer, ctx: Ctx): unknown {
|
|
512
541
|
const role = (l.role ?? LayoutRole.Support) as LayoutRole;
|
|
@@ -608,6 +637,8 @@ interface LayerCtx {
|
|
|
608
637
|
order: number;
|
|
609
638
|
phoneGap: number;
|
|
610
639
|
phoneAlign: string;
|
|
640
|
+
/** A drawer's word: it arrives as its step lands (`drawerArrival`), never by the layout's own entrance. */
|
|
641
|
+
arrivesOnLanding?: boolean;
|
|
611
642
|
}
|
|
612
643
|
|
|
613
644
|
/** The node that sits on the grid: its cell, its stacking, its bleed and its tilt — and on a phone, its place in the stack. */
|
|
@@ -1570,7 +1601,7 @@ function composeLayer(l: LayoutLayer, lc: LayerCtx, ctx: Ctx): SerializedNode {
|
|
|
1570
1601
|
// A list's items arrive on their own (its mix's `arrive`): the frame never enters on top of them.
|
|
1571
1602
|
const itemsArrive = l.kind === LayoutLayerKind.Gallery && !!listOfLayer(l, ctx);
|
|
1572
1603
|
if (!(lc.held && l.kinetic && textual) && !itemsArrive) {
|
|
1573
|
-
const enter = enterInteraction(entering.id, l, ctx, lc.path, textual, 1, lc.si === 0);
|
|
1604
|
+
const enter = lc.arrivesOnLanding ? drawerArrival(entering.id, l, ctx, textual, lc.order) : enterInteraction(entering.id, l, ctx, lc.path, textual, 1, lc.si === 0);
|
|
1574
1605
|
if (enter) entering.interactions = [...entering.interactions, enter];
|
|
1575
1606
|
if (image && !image.sceneTracks?.length && l.enter === LayoutEnter.ClipReveal && l.role !== LayoutRole.Decoration) image.interactions = [...image.interactions, zoomInteraction(image.id, l, ctx)];
|
|
1576
1607
|
}
|
|
@@ -1795,7 +1826,7 @@ const drawerPaint = (scheme: ColorScheme): string => scheme === ColorScheme.Defa
|
|
|
1795
1826
|
* spines — while their grounds deepen through the look's schemes to the brand (`drawerRamp`, AA-gated as schemes are).
|
|
1796
1827
|
* A step is a panel on the stage: its spine (number and heading, decorative — the step's heading is read) and its body
|
|
1797
1828
|
* (the step's layers on the section's grid, still). On a phone it stacks, each spine a label above its step. A step's
|
|
1798
|
-
* words
|
|
1829
|
+
* words arrive AS IT LANDS (AW10, `drawerArrival`): the layout's own entrances on them are replaced and said.
|
|
1799
1830
|
*/
|
|
1800
1831
|
function composeDrawers(s: LayoutSection, si: number, ctx: Ctx): SerializedNode {
|
|
1801
1832
|
const id = `${ctx.p}-s${si}`;
|
|
@@ -1860,12 +1891,12 @@ function composeDrawers(s: LayoutSection, si: number, ctx: Ctx): SerializedNode
|
|
|
1860
1891
|
const phoneAlign = indices.every(li => s.layers[li].align === 'center') ? 'center' : 'start';
|
|
1861
1892
|
body.children = indices.map((li, at) => {
|
|
1862
1893
|
const l = s.layers[li];
|
|
1863
|
-
if (l.enter && l.enter !== LayoutEnter.None) gap(ctx, LayoutGapCode.DrawerWords, `sections[${si}].layers[${li}]`,
|
|
1894
|
+
if (l.enter && l.enter !== LayoutEnter.None) gap(ctx, LayoutGapCode.DrawerWords, `sections[${si}].layers[${li}]`, `arrives as its step lands (the drawers' own entrance), not by ${l.enter}`);
|
|
1864
1895
|
const still: LayoutLayer = { ...l, enter: LayoutEnter.None, motion: undefined, kinetic: undefined, depth: undefined, scrub: undefined };
|
|
1865
1896
|
const prev = at > 0 ? s.layers[indices[at - 1]] : null;
|
|
1866
1897
|
const lc: LayerCtx = {
|
|
1867
1898
|
section: s, si, li, path: `sections[${si}].layers[${li}]`, held: true, track: 1,
|
|
1868
|
-
order: at, phoneGap: phoneGapBefore(prev, l), phoneAlign,
|
|
1899
|
+
order: at, phoneGap: phoneGapBefore(prev, l), phoneAlign, arrivesOnLanding: l.role !== LayoutRole.Decoration,
|
|
1869
1900
|
};
|
|
1870
1901
|
return composeLayer(still, lc, ctx);
|
|
1871
1902
|
});
|
package/src/scene-core/scene.ts
CHANGED
|
@@ -135,6 +135,8 @@ export enum SceneAttribute {
|
|
|
135
135
|
PhoneTracks = 'data-iox-tracks-phone',
|
|
136
136
|
/** A root's stage that is not a Scene's `scene.stage` part: the slider a scroll plays (premium M4). */
|
|
137
137
|
Stage = 'data-iox-scene-stage',
|
|
138
|
+
/** On a layer whose hold move has ended — it has LANDED (AW10, `sceneLand`). Written by the driver, read by `onSceneLand`. */
|
|
139
|
+
Landed = 'data-iox-landed',
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
/**
|
|
@@ -110,15 +110,32 @@ function sliderOf(stage: HTMLElement | null): PlayedSlider | null {
|
|
|
110
110
|
return swiper && typeof swiper.setProgress === 'function' && !swiper.destroyed ? swiper : null;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/** The hold moves a layer travels by: they say where it lands. */
|
|
114
|
+
const LANDING_PROPS: ReadonlySet<SceneProp> = new Set([SceneProp.X, SceneProp.Y]);
|
|
115
|
+
|
|
113
116
|
/**
|
|
114
|
-
* Where a
|
|
115
|
-
* no such move (the first drawer, a phone's stacked panels) is on the stage from the
|
|
117
|
+
* Where a layer that travels onto the stage has LANDED, as hold progress: the last key of its hold-range X / Y move (the
|
|
118
|
+
* later, when it has both). A layer with no such move (the first drawer, a phone's stacked panels) is on the stage from the
|
|
119
|
+
* start: 0.
|
|
116
120
|
*/
|
|
117
121
|
export function stepLanding(tracks: ReadonlyArray<SceneTrack>): number {
|
|
118
|
-
|
|
119
|
-
|
|
122
|
+
return tracks
|
|
123
|
+
.filter(track => LANDING_PROPS.has(track.prop) && isHoldTrack(track) && new Set(track.keys.map(([, value]) => value)).size > 1)
|
|
124
|
+
.reduce((at, move) => Math.max(at, move.keys[move.keys.length - 1][0]), 0);
|
|
120
125
|
}
|
|
121
126
|
|
|
127
|
+
/**
|
|
128
|
+
* AW10 (award plan "drawers" row): the trigger of an entrance played when its layer LANDS — the moment the Scene's progress
|
|
129
|
+
* reaches the last key of the layer's travel (`stepLanding`). Both interaction runtimes run it through `onSceneLand`.
|
|
130
|
+
*/
|
|
131
|
+
export const SCENE_LAND_TRIGGER = 'sceneLand';
|
|
132
|
+
/** Dispatched (not bubbling) on a layer as it lands. Never a DOM `scroll` (SC2). */
|
|
133
|
+
export const SCENE_LAND_EVENT = 'iox-scene-land';
|
|
134
|
+
/** Progress short of a landing that still counts as landed: the damping settles onto the scroll, never past it. */
|
|
135
|
+
const LANDED_SLACK = 1e-4;
|
|
136
|
+
/** How much of an element must show before a word with no landing to wait for arrives (the runtimes' viewport entry). */
|
|
137
|
+
const ARRIVE_THRESHOLD = 0.1;
|
|
138
|
+
|
|
122
139
|
/**
|
|
123
140
|
* Where a Scene of steps (each covering the one before once it lands) must stand for step `index` to be in FRONT, or null
|
|
124
141
|
* when it already is — or when no step moves (nothing covers anything; a phone stacks them). Step i is in front from its
|
|
@@ -344,6 +361,9 @@ interface Layer {
|
|
|
344
361
|
/** Where it stands in its crossing (0–1), inline and block, as last read. */
|
|
345
362
|
crossInline: number;
|
|
346
363
|
crossBlock: number;
|
|
364
|
+
/** Where it lands at the Scene's width (`stepLanding`), 0 when it never travels there; and whether it has. */
|
|
365
|
+
landing: number;
|
|
366
|
+
landed: boolean;
|
|
347
367
|
}
|
|
348
368
|
|
|
349
369
|
interface Scene {
|
|
@@ -442,6 +462,7 @@ export class ScrollDriver {
|
|
|
442
462
|
if (scene.stage) scene.stage.style.removeProperty('translate');
|
|
443
463
|
for (const layer of scene.layers) {
|
|
444
464
|
layer.el.style.removeProperty('will-change');
|
|
465
|
+
layer.el.removeAttribute(SceneAttribute.Landed);
|
|
445
466
|
this.restoreWords(layer);
|
|
446
467
|
this.stopPlayer(layer);
|
|
447
468
|
}
|
|
@@ -622,6 +643,7 @@ export class ScrollDriver {
|
|
|
622
643
|
|
|
623
644
|
private letGo(layer: Layer): void {
|
|
624
645
|
layer.el.style.removeProperty('will-change');
|
|
646
|
+
layer.el.removeAttribute(SceneAttribute.Landed);
|
|
625
647
|
for (const key of Object.keys(layer.last) as (keyof SceneFrame)[]) layer.el.style[key] = '';
|
|
626
648
|
this.restoreWords(layer);
|
|
627
649
|
this.stopPlayer(layer);
|
|
@@ -647,6 +669,7 @@ export class ScrollDriver {
|
|
|
647
669
|
el, tracks, phoneTracks, last: previous?.last ?? {}, stale: true, words: previous?.words ?? null, wordsRefused: false,
|
|
648
670
|
player: previous?.player ?? null, playerKey: previous?.playerKey ?? '',
|
|
649
671
|
crosses: crossesStage(tracks) || crossesStage(phoneTracks), crossInline: previous?.crossInline ?? 0, crossBlock: previous?.crossBlock ?? 0,
|
|
672
|
+
landing: 0, landed: previous?.landed ?? false,
|
|
650
673
|
};
|
|
651
674
|
}
|
|
652
675
|
|
|
@@ -664,7 +687,10 @@ export class ScrollDriver {
|
|
|
664
687
|
scene.stick = scene.stage ? (parseFloat(this.host.getComputedStyle(scene.stage).top) || 0) : 0;
|
|
665
688
|
scene.phone = (scene.stage?.offsetWidth ?? Infinity) <= SCENE_PHONE_MAX_WIDTH;
|
|
666
689
|
scene.inlineSign = scene.stage && this.host.getComputedStyle(scene.stage).direction === 'rtl' ? -1 : 1;
|
|
667
|
-
for (const layer of scene.layers)
|
|
690
|
+
for (const layer of scene.layers) {
|
|
691
|
+
layer.stale = true;
|
|
692
|
+
layer.landing = stepLanding(this.tracksOf(scene, layer));
|
|
693
|
+
}
|
|
668
694
|
}
|
|
669
695
|
|
|
670
696
|
private readonly tick = (now: number): void => {
|
|
@@ -812,9 +838,35 @@ export class ScrollDriver {
|
|
|
812
838
|
}
|
|
813
839
|
layer.last = frame;
|
|
814
840
|
layer.stale = false;
|
|
841
|
+
this.writeLanded(layer, scene.progress);
|
|
815
842
|
}
|
|
816
843
|
}
|
|
817
844
|
|
|
845
|
+
/**
|
|
846
|
+
* A layer that travels lands when what is on screen (the damped progress) reaches the end of its travel: it is marked,
|
|
847
|
+
* and told once (`SCENE_LAND_EVENT`) — its words arrive then (AW10). Back before its landing it is unmarked, so a later
|
|
848
|
+
* listener does not run for a layer the visitor scrolled back away from.
|
|
849
|
+
*/
|
|
850
|
+
private writeLanded(layer: Layer, progress: number): void {
|
|
851
|
+
const landed = layer.landing > 0 && progress >= layer.landing - LANDED_SLACK;
|
|
852
|
+
if (landed === layer.landed) return;
|
|
853
|
+
layer.landed = landed;
|
|
854
|
+
if (!landed) {
|
|
855
|
+
layer.el.removeAttribute(SceneAttribute.Landed);
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
layer.el.setAttribute(SceneAttribute.Landed, '');
|
|
859
|
+
const Event = (this.host as Window & { CustomEvent?: typeof CustomEvent }).CustomEvent ?? CustomEvent;
|
|
860
|
+
layer.el.dispatchEvent(new Event(SCENE_LAND_EVENT));
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/** True when this driver tells `layer` it has landed: it holds its Scene and the layer travels at this width. */
|
|
864
|
+
landsOnScroll(layer: HTMLElement): boolean {
|
|
865
|
+
const root = layer.closest<HTMLElement>(`[${SceneAttribute.Root}]`);
|
|
866
|
+
const scene = root ? this.scenes.get(root) : undefined;
|
|
867
|
+
return !!scene?.layers.find(l => l.el === layer && l.landing > 0);
|
|
868
|
+
}
|
|
869
|
+
|
|
818
870
|
/**
|
|
819
871
|
* The picture this moment asks for. The attribute sits on the Video's own root, which is the layer on the string path
|
|
820
872
|
* and inside it on the component path. A layer with no pictures, or no Play track, holds its poster.
|
|
@@ -901,3 +953,67 @@ export function attachSceneRoots(roots: ReadonlyArray<HTMLElement>, options: Scr
|
|
|
901
953
|
driver.destroy();
|
|
902
954
|
return null;
|
|
903
955
|
}
|
|
956
|
+
|
|
957
|
+
/** The layer `el` travels onto the stage with: the nearest one (itself or above it, inside its Scene) whose wide tracks
|
|
958
|
+
* land (`stepLanding` > 0). Null when nothing carries it in. */
|
|
959
|
+
export function travellingLayerOf(el: HTMLElement): HTMLElement | null {
|
|
960
|
+
for (let node: HTMLElement | null = el; node; node = node.parentElement) {
|
|
961
|
+
if (node.hasAttribute(SceneAttribute.Root)) return null;
|
|
962
|
+
if (node.hasAttribute(SceneAttribute.Tracks) && stepLanding(parseTracks(node.getAttribute(SceneAttribute.Tracks))) > 0) return node;
|
|
963
|
+
}
|
|
964
|
+
return null;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/** The driver that tells `layer` it has landed, at this width — null when none plays its travel (reduced motion, a phone). */
|
|
968
|
+
function landingDriverOf(layer: HTMLElement): ScrollDriver | null {
|
|
969
|
+
const root = layer.closest<HTMLElement>(`[${SceneAttribute.Root}]`);
|
|
970
|
+
const driver = root ? HELD.get(root) : undefined;
|
|
971
|
+
return driver?.landsOnScroll(layer) ? driver : null;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Run `run` ONCE when `el`'s words are to arrive (AW10, `SCENE_LAND_TRIGGER`): as the layer that carries it onto the stage
|
|
976
|
+
* LANDS (`SCENE_LAND_EVENT`; at once when it already has), wherever a driver plays that travel. Where none does — the layer
|
|
977
|
+
* does not travel at this width (a phone's stacked Scene), the visitor asked for less motion (no driver; the Scene flows),
|
|
978
|
+
* nothing carries it (the first drawer, a node outside a Scene) — it arrives as it comes into view, as a viewport entrance
|
|
979
|
+
* does. Focus reaching it first makes it arrive at once. Both interaction runtimes call this. Returns the way to let go.
|
|
980
|
+
*/
|
|
981
|
+
export function onSceneLand(el: HTMLElement, run: () => void, host: Window = window): () => void {
|
|
982
|
+
let done = false;
|
|
983
|
+
const offs: Array<() => void> = [];
|
|
984
|
+
const letGo = (): void => { offs.splice(0).forEach(off => off()); };
|
|
985
|
+
const go = (): void => {
|
|
986
|
+
if (done) return;
|
|
987
|
+
done = true;
|
|
988
|
+
letGo();
|
|
989
|
+
run();
|
|
990
|
+
};
|
|
991
|
+
const layer = travellingLayerOf(el);
|
|
992
|
+
// A keyboard that reaches it first never focuses something still waiting to arrive (WCAG 2.4.7): it arrives now.
|
|
993
|
+
const focused = (): void => go();
|
|
994
|
+
el.addEventListener('focusin', focused);
|
|
995
|
+
offs.push(() => el.removeEventListener('focusin', focused));
|
|
996
|
+
if (layer) {
|
|
997
|
+
const heard = (): void => go();
|
|
998
|
+
layer.addEventListener(SCENE_LAND_EVENT, heard);
|
|
999
|
+
offs.push(() => layer.removeEventListener(SCENE_LAND_EVENT, heard));
|
|
1000
|
+
}
|
|
1001
|
+
const Observer = (host as Window & { IntersectionObserver?: typeof IntersectionObserver }).IntersectionObserver;
|
|
1002
|
+
if (Observer) {
|
|
1003
|
+
const io = new Observer(entries => {
|
|
1004
|
+
// Where a driver plays the travel it decides; the viewport only stands in where none does.
|
|
1005
|
+
if (entries.some(entry => entry.isIntersecting) && !(layer && landingDriverOf(layer))) go();
|
|
1006
|
+
}, { threshold: ARRIVE_THRESHOLD });
|
|
1007
|
+
io.observe(el);
|
|
1008
|
+
offs.push(() => io.disconnect());
|
|
1009
|
+
} else {
|
|
1010
|
+
// No observer to ask (an old browser): it stands in place on the next frame unless a driver will land it.
|
|
1011
|
+
const frame = host.requestAnimationFrame?.(() => { if (!(layer && landingDriverOf(layer))) go(); });
|
|
1012
|
+
if (frame) offs.push(() => host.cancelAnimationFrame?.(frame));
|
|
1013
|
+
}
|
|
1014
|
+
if (layer?.hasAttribute(SceneAttribute.Landed)) go();
|
|
1015
|
+
return () => {
|
|
1016
|
+
done = true;
|
|
1017
|
+
letGo();
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
@@ -262,8 +262,20 @@ const STAGGER_MS: Readonly<Record<TextRevealBy, number>> = {
|
|
|
262
262
|
[TextRevealBy.Letter]: LETTER_STAGGER_MS,
|
|
263
263
|
};
|
|
264
264
|
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
/** The most a reveal may ask between two pieces (`params.stagger`): past it a heading is spelled out, not assembled. */
|
|
266
|
+
export const REVEAL_STAGGER_MAX_MS = 300;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* A reveal's own step between pieces, in ms (`params.stagger`; AW10 — a drawer's letters ~20 ms, its lines ~150 ms), or
|
|
270
|
+
* undefined for the step its kind of piece takes. Clamped to 0–`REVEAL_STAGGER_MAX_MS`; anything not a number is undefined.
|
|
271
|
+
*/
|
|
272
|
+
export function textRevealStaggerOf(value: unknown): number | undefined {
|
|
273
|
+
const ms = typeof value === 'number' ? value : typeof value === 'string' && value.trim() ? Number(value) : NaN;
|
|
274
|
+
return Number.isFinite(ms) ? Math.min(REVEAL_STAGGER_MAX_MS, Math.max(0, Math.round(ms))) : undefined;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function revealStagger(groups: number, by: TextRevealBy, stagger?: number): number {
|
|
278
|
+
return groups > 1 ? Math.min(stagger ?? STAGGER_MS[by], STAGGER_BUDGET_MS / (groups - 1)) : 0;
|
|
267
279
|
}
|
|
268
280
|
|
|
269
281
|
/** Past the mask's negative inset, so nothing shows before a piece's turn. */
|
|
@@ -308,12 +320,13 @@ const playing = new WeakMap<HTMLElement, Animation>();
|
|
|
308
320
|
* nothing to re-split on a resize. Null when there is nothing to split or it is being edited: the caller plays its plain
|
|
309
321
|
* fade.
|
|
310
322
|
*/
|
|
311
|
-
export function playTextReveal(el: HTMLElement, by: TextRevealBy, timing: KeyframeAnimationOptions, look: TextRevealLook = TextRevealLook.Rise): Animation | null {
|
|
323
|
+
export function playTextReveal(el: HTMLElement, by: TextRevealBy, timing: KeyframeAnimationOptions, look: TextRevealLook = TextRevealLook.Rise, stagger?: number): Animation | null {
|
|
312
324
|
playing.get(el)?.cancel();
|
|
313
325
|
const planned = splitForReveal(el, by, look);
|
|
314
326
|
if (!planned) return null;
|
|
315
327
|
const { split, order, groups } = planned;
|
|
316
|
-
|
|
328
|
+
// An asked step is for the pieces it asked for: a letter step on a text that fell to words takes the words' own.
|
|
329
|
+
const step = revealStagger(groups, planned.by, planned.by === by ? stagger : undefined);
|
|
317
330
|
const duration = Number(timing.duration) || DEFAULT_PIECE_MS;
|
|
318
331
|
const delay = timing.delay ?? 0;
|
|
319
332
|
const frames = look === TextRevealLook.Light ? LIGHT_FRAMES : PIECE_FRAMES;
|