@vectoriox/iox-ui 5.135.0 → 5.137.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.
Files changed (43) hide show
  1. package/composite-core/index.d.ts +15 -2
  2. package/design-core/index.d.ts +184 -9
  3. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -36
  4. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +28 -1
  6. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-design-core.mjs +296 -48
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1269 -154
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +7 -3
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +355 -2
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/generation-core/index.d.ts +481 -89
  16. package/harness-core/index.d.ts +4 -2
  17. package/index.d.ts +105 -3
  18. package/package.json +1 -1
  19. package/src/assist-core/page-sections.ts +4 -31
  20. package/src/composite-core/slider.ts +35 -0
  21. package/src/design-core/design-settings.ts +16 -3
  22. package/src/design-core/design-token.model.ts +3 -0
  23. package/src/design-core/flavor-spec.generated.ts +98 -25
  24. package/src/design-core/motion-language.ts +12 -9
  25. package/src/design-core/preloader-of.ts +26 -0
  26. package/src/design-core/preloader.ts +174 -0
  27. package/src/design-core/public-api.ts +2 -0
  28. package/src/design-core/style-presets.ts +3 -1
  29. package/src/generation-core/carry.ts +37 -0
  30. package/src/generation-core/compose-site.ts +222 -9
  31. package/src/generation-core/node-baselines.generated.ts +2 -1
  32. package/src/generation-core/opening-edit.ts +240 -0
  33. package/src/generation-core/opening-mix.ts +639 -0
  34. package/src/generation-core/patterns.ts +3 -0
  35. package/src/generation-core/plan-wire.ts +26 -4
  36. package/src/generation-core/public-api.ts +2 -0
  37. package/src/generation-core/redesign-run.ts +42 -2
  38. package/src/generation-core/site-build-run.ts +27 -1
  39. package/src/generation-core/site-plan.model.ts +3 -1
  40. package/src/generation-core/site-spec.generated.ts +137 -84
  41. package/src/generation-core/validate-site-plan.ts +5 -3
  42. package/src/harness-core/starting-design.ts +8 -4
  43. package/styles/iox-design.css +32 -0
@@ -3659,9 +3659,11 @@ declare const GENERATION_LIMITS: {
3659
3659
  /**
3660
3660
  * A preset for this business: its choices, Motion from the business (`motionFor`), the references' colour as its seed
3661
3661
  * when that colour passes AA in every mode the preset offers (`referenceSeed` — judged as used), and what the owner
3662
- * already set kept. The ONE rule for a Look pick and for Build with these.
3662
+ * already set kept. The ONE rule for a Look pick and for Build with these. The style's first-visit preloader (AW5) is kept
3663
+ * only while the start is Lively or Expressive (PL-D6) — a calm business (its ceiling below Standard) or "little
3664
+ * movement" never opens with one.
3663
3665
  */
3664
- declare function presetDesign(presetId: string, input: MotionInput | string | null, kept?: Partial<Pick<DesignChoices, 'scroll' | 'animate' | 'between' | 'motion' | 'feel' | 'headings'>>, read?: StyleRead | null): DesignChoices | null;
3666
+ declare function presetDesign(presetId: string, input: MotionInput | string | null, kept?: Partial<Pick<DesignChoices, 'scroll' | 'animate' | 'between' | 'motion' | 'feel' | 'headings' | 'preloader'>>, read?: StyleRead | null): DesignChoices | null;
3665
3667
  interface StartingDesign {
3666
3668
  presetId: string;
3667
3669
  design: DesignChoices;
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { AfterViewInit, EventEmitter, ElementRef, SimpleChanges, OnDestroy, OnIn
3
3
  import { AnimationPlayer, AnimationBuilder } from '@angular/animations';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i3 from '@angular/platform-browser/animations';
6
- import { ScrollId } from '@vectoriox/iox-ui/design-core';
6
+ import { ScrollId, PreloaderPlan } from '@vectoriox/iox-ui/design-core';
7
7
  export * from '@vectoriox/iox-ui/design-core';
8
8
  import Lenis, { LenisOptions } from 'lenis';
9
9
  import * as i2 from '@angular/common';
@@ -3021,6 +3021,108 @@ declare function interactionMarkerAttributes(node: MarkedNode | null | undefined
3021
3021
  /** Make an element carry its node's markers: the canvas's live sync and the component path's stamp. */
3022
3022
  declare function syncInteractionMarkers(el: Element | null | undefined, node: MarkedNode | null | undefined): void;
3023
3023
 
3024
+ /**
3025
+ * THE FIRST-VISIT PRELOADER, DRAWN (award plan §5.3, AW5; Preloader board PL-D1…PL-D9) — the ONE runtime both renderers
3026
+ * use. The decision is design-core's (`planPreloader`, `designPreloaderOf`); this module draws it:
3027
+ *
3028
+ * - `buildPreloaderLayer` — the layer, from what the page already has (`preloaderContentOf`: the header's brand, the
3029
+ * opening heading). The engine builds it at SSR time into the raw HTML (hidden); the builder builds it for Play.
3030
+ * - `preloaderHeadScript` + `PRELOADER_CSS` — the inline head pair (PL-D7): the script decides before first paint
3031
+ * (reduced motion, a first visit — PL-D5) and shows the layer by one attribute on `<html>`; with no script the layer is
3032
+ * never seen. If the app has not taken over by the cap — or a scroll / key / tap comes first — the script fades it
3033
+ * itself, so the cap holds even when the bundle is slow.
3034
+ * - `runPreloader` — the app takes over: its entrance, the counter's REAL loading (first-screen pictures + fonts), the
3035
+ * leave at readiness or the cap (never before its own entrance is seen), a scroll / key / tap ends it at once (PL-D4),
3036
+ * the look's exit (PL-D3) on the look's `ease-exit`; `onLeave` fires as it starts to leave (the page's entrances wait
3037
+ * under it — the AW4 hold — and the consent banner waits for `afterPreloader`, PL-D9).
3038
+ * - `playPreloaderPreview` — the builder's Play: the same layer and timeline over a stage, once (PL-D8).
3039
+ *
3040
+ * Emil: transform / opacity / clip-path only; exits ≤ 500 ms and faster than the entrance's whole stay; nothing under
3041
+ * reduced motion. The layer is `aria-hidden` decoration and never takes a pointer — the page under it is always there.
3042
+ */
3043
+ declare const PRELOADER_CLASS = "iox-preloader";
3044
+ /** On `<html>` while a first visit's preloader shows: `""` showing, `"leaving"` the head script's own fade. */
3045
+ declare const PRELOADING_ATTRIBUTE = "data-iox-preloading";
3046
+ /** On `<html>` once the app has taken the preloader over — the head script's fallback steps back. */
3047
+ declare const PRELOADER_RUN_ATTRIBUTE = "data-iox-preloader-run";
3048
+ /**
3049
+ * On `<html>`: when the head script opened the layer (ms on the page's clock). The 1.5 s cap counts from HERE — the
3050
+ * preloader "plays 1.5 s at most" (the board's hint); the wait for the server before it is not the preloader's, and
3051
+ * counting it would turn a slow first byte into a flash.
3052
+ */
3053
+ declare const PRELOADER_AT_ATTRIBUTE = "data-iox-preloader-at";
3054
+ /** Dispatched on the window when a preloader has gone (by the app or by the head script). */
3055
+ declare const PRELOADER_END_EVENT = "iox-preloader-end";
3056
+ /** What the layer shows — read off the page (PL-D2). */
3057
+ interface PreloaderContent {
3058
+ /** Mark: the header's logo (its source), else null. */
3059
+ readonly logo: string | null;
3060
+ /** Mark without a logo: the business name (the header's brand words). */
3061
+ readonly name: string;
3062
+ /** Letters: the opening heading while short enough, else the name (`preloaderWords`). */
3063
+ readonly letters: string;
3064
+ }
3065
+ /**
3066
+ * The page's own words and mark (PL-D2): the header's brand (`nav.brand` — its picture, else its words; a site with no
3067
+ * header brand says the document's title) and the opening heading (the first `h1`, else `h2`). One reader for the
3068
+ * engine's SSR DOM and the builder's canvas — both render the brand's role class.
3069
+ */
3070
+ declare function preloaderContentOf(root: ParentNode, title?: string | null): PreloaderContent;
3071
+ /** The layer (PL-D1): never a node of the page — decoration over it, built from the plan and the page's content. */
3072
+ declare function buildPreloaderLayer(doc: Document, plan: PreloaderPlan, content: PreloaderContent): HTMLElement;
3073
+ /**
3074
+ * The layer's styles — inline in the `<head>` beside the script (first paint must know them; the engine's stylesheet may
3075
+ * not have arrived). Colours and faces are the look's tokens only (R-H10); the layer shows only by the `<html>` attribute
3076
+ * (the site) or `data-playing` (a preview).
3077
+ */
3078
+ declare const PRELOADER_CSS: string;
3079
+ /**
3080
+ * The inline head script (PL-D7, PL-D5): remembers the visit for the tab, and — when this is the first page of the
3081
+ * session, not reached from another page of the site, and the visitor did not ask for reduced motion — shows the layer
3082
+ * before first paint. Its fallback ends it at the cap or at a scroll / key / tap while the app has not taken over.
3083
+ * `scope` keeps sites sharing a host apart (the org). `isFirstVisit` is the SAME function the tests exercise — inlined.
3084
+ */
3085
+ declare function preloaderHeadScript(scope: string, capMs?: number): string;
3086
+ /** A first visit's preloader is showing (or fading) on this document. */
3087
+ declare function isPreloading(doc: Document | null | undefined): boolean;
3088
+ /** Resolves once no preloader shows (at once when none does) — what waits behind it waits on this (PL-D9: the banner). */
3089
+ declare function afterPreloader(doc: Document | null | undefined): Promise<void>;
3090
+ /**
3091
+ * The counter's real loading (PL-D2): the first screen's pictures (every `<img>` whose box is in the first viewport)
3092
+ * and the fonts; a number that only goes up; resolves when all have loaded (or failed — a broken picture is done
3093
+ * loading). Nothing to load reads 100 at once.
3094
+ */
3095
+ declare function firstScreenReadiness(doc: Document, win: Window, progress: (percent: number) => void): Promise<void>;
3096
+ interface PreloaderRunOptions {
3097
+ /** Fired once as the preloader starts to leave — or at once when none shows: the page's entrances may play. */
3098
+ onLeave?: () => void;
3099
+ }
3100
+ /**
3101
+ * The app takes a first visit's preloader over (the engine, in the browser): when the head script showed it, play it
3102
+ * (entrance, real loading, the look's exit) and remove it; when it did not (a return visit, reduced motion, no script),
3103
+ * remove the hidden layer. Resolves when no preloader is left.
3104
+ */
3105
+ declare function runPreloader(doc: Document, opts?: PreloaderRunOptions): Promise<void>;
3106
+ interface PreloaderPreviewOptions {
3107
+ /** A class declaring the look's tokens on the layer (the builder's `.iox-token-scope`). */
3108
+ scopeClass?: string | null;
3109
+ /** Fired once as the layer starts to leave — a host replays its entrances here, as the site does. */
3110
+ onLeave?: () => void;
3111
+ }
3112
+ /**
3113
+ * The builder's Play (PL-D8): the same layer and timeline, once, over `stage` (absolute, inside it), then gone. A preview
3114
+ * has nothing loading, so a counter reads its real 100 % and the layer stays its entrance's minimum. Reduced motion
3115
+ * plays nothing.
3116
+ */
3117
+ declare function playPreloaderPreview(stage: HTMLElement, plan: PreloaderPlan, content: PreloaderContent, opts?: PreloaderPreviewOptions): Promise<void>;
3118
+ /** The layer's styles in a document that did not get the head pair (the builder's): once. */
3119
+ declare function ensurePreloaderStyles(doc: Document): void;
3120
+ /**
3121
+ * The SSR side (PL-D7): the hidden layer into `<body>` (outside the app's root, so hydration never touches it) and the
3122
+ * head pair (style + script). Idempotent. `scope` = the site's scope for the tab's memory (the org).
3123
+ */
3124
+ declare function mountPreloader(doc: Document, plan: PreloaderPlan, content: PreloaderContent, scope: string): void;
3125
+
3024
3126
  /**
3025
3127
  * page-style — the ONE compiler that turns a page's style settings into CSS.
3026
3128
  *
@@ -4676,5 +4778,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
4676
4778
  /** Raise the form's Sent toast (from the form — its scope and its look). */
4677
4779
  declare function raiseFormToast(form: Element): ToastHandle | null;
4678
4780
 
4679
- export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isBoundProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
4680
- export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
4781
+ export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isBoundProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
4782
+ export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PreloaderContent, PreloaderPreviewOptions, PreloaderRunOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.135.0",
3
+ "version": "5.137.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -1,6 +1,5 @@
1
1
  import {
2
- BUTTON_LINK_PROPS, CarryKind, composeSection, jsonClosedObject, jsonListOf, jsonOneOf, JsonSchema, jsonText, patternById, SectionInput, SerializedNode,
3
- SWAP_CARRY_KINDS, swapParts, walkSerialized,
2
+ carryInto, composeSection, jsonClosedObject, jsonListOf, jsonOneOf, JsonSchema, jsonText, patternById, SectionInput, SerializedNode, walkSerialized,
4
3
  } from '@vectoriox/iox-ui/generation-core';
5
4
 
6
5
  import { assertAssistBudget } from './budget';
@@ -174,37 +173,11 @@ function swapBlocker(root: SerializedNode): string | null {
174
173
  return blocker;
175
174
  }
176
175
 
177
- const labelOf = (button: SerializedNode) => (button.children ?? []).find(c => c.type === 'Text');
178
-
179
176
  /** The owner's words and pictures, placed into the new section part for part (kind by kind, in order); how many found no
180
- * place. WHAT is carried is generation-core's carry rule (`swapParts` — the harvest's classifier, today's kinds only). */
177
+ * place. WHAT is carried and HOW is generation-core's ONE carry rule (`carryInto` — the harvest's classifier, today's
178
+ * kinds only), shared with the Opening studio's "Make this an opening". */
181
179
  function carryOver(from: SerializedNode, to: SerializedNode): number {
182
- const old = swapParts(from);
183
- const fresh = swapParts(to);
184
- let notPlaced = 0;
185
- for (const kind of SWAP_CARRY_KINDS) {
186
- old[kind].forEach((source, i) => {
187
- const target = fresh[kind][i];
188
- if (!target) {
189
- const hasContent = kind === CarryKind.Image ? !!source.props['src'] : true;
190
- if (hasContent) notPlaced++;
191
- return;
192
- }
193
- if (kind === CarryKind.Image) {
194
- if (!source.props['src']) return;
195
- target.props = { ...target.props, src: source.props['src'], alt: source.props['alt'] ?? target.props['alt'] };
196
- } else if (kind === CarryKind.Button) {
197
- const words = labelOf(source);
198
- const into = labelOf(target);
199
- if (words && into) into.props = { ...into.props, content: words.props['content'] };
200
- const link = Object.fromEntries(BUTTON_LINK_PROPS.filter(k => k in source.props).map(k => [k, source.props[k]]));
201
- target.props = { ...target.props, ...link };
202
- } else {
203
- target.props = { ...target.props, content: source.props['content'] };
204
- }
205
- });
206
- }
207
- return notPlaced;
180
+ return carryInto(from, to).length;
208
181
  }
209
182
 
210
183
  /** A stable id no node of the page holds (nor any of its parts' derived ids, `<id>-0-1`). */
@@ -145,6 +145,7 @@ enum Type {
145
145
  Icon = 'Icon',
146
146
  Container = 'Container',
147
147
  Text = 'Text',
148
+ Image = 'Image',
148
149
  }
149
150
 
150
151
  enum Style {
@@ -539,6 +540,40 @@ export function buildCarouselRecipe(create: CompositeNodeFactory, options: Carou
539
540
  return slider;
540
541
  }
541
542
 
543
+ export interface SlideshowOptions {
544
+ /** The slideshow's accessible name (a `region` landmark). */
545
+ name?: string;
546
+ /** How many pictures (empty — the studio's own go in). */
547
+ count?: number;
548
+ }
549
+
550
+ /** A slide that is one picture, filling it. */
551
+ const PICTURE_SLIDE_BASE: Readonly<Record<string, string>> = { width: '100%', height: '100%', aspectRatio: 'auto', minHeight: '100%', padding: ZERO };
552
+ const SLIDE_PICTURE_BASE: Readonly<Record<string, string>> = { width: '100%', height: '100%', aspectRatio: 'auto', objectFit: 'cover', borderRadius: ZERO, margin: ZERO };
553
+
554
+ /**
555
+ * The slideshow (award-ingredients AW8, `media.slideshow`): pictures cross-fading on their own — a named Slider with a
556
+ * fade, autoplay and its control parts over the pictures: the pause control (WCAG 2.2.2 — always there while it
557
+ * rotates, `syncSliderParts`) and the dots; no arrows. One empty picture per slide. ONE recipe for the composer and the
558
+ * builder, beside the carousel's.
559
+ */
560
+ export function buildSlideshowRecipe(create: CompositeNodeFactory, options: SlideshowOptions = {}): CompositeNode {
561
+ const slider = makeCompositePart(create, { key: 'slideshow', type: SLIDER_TYPE, props: {}, elementStyle: NO_ELEMENT_STYLE }, null, 'Slideshow', { width: '100%', height: '100%' });
562
+ for (const [name, value] of Object.entries({
563
+ slidesPerView: 1, spaceBetween: 0, loop: 'rewind', effect: 'fade', speed: 1200, enableNavigation: false, enablePagination: true,
564
+ enableAutoplay: true, autoplayDelay: 5000, autoplayPauseOnMouseEnter: false, autoHeight: false, grabCursor: false,
565
+ [SLIDER_NAME_TRAIT]: options.name ?? 'Pictures', [SLIDER_PLACEMENT_TRAIT]: SliderPlacement.Over,
566
+ })) writeProp(slider, name, value);
567
+ const count = Math.max(2, options.count ?? 3);
568
+ slider.children = Array.from({ length: count }, (_, i) => {
569
+ const slide = makeCompositePart(create, { key: `slide-${i + 1}`, type: SLIDE_TYPE, props: {}, elementStyle: NO_ELEMENT_STYLE }, null, 'Slide', PICTURE_SLIDE_BASE);
570
+ slide.children = [makeCompositePart(create, { key: `picture-${i + 1}`, type: Type.Image, props: { src: '', alt: '' }, elementStyle: 'media' }, null, 'Picture', SLIDE_PICTURE_BASE)];
571
+ return slide;
572
+ });
573
+ syncSliderParts(slider, create);
574
+ return slider;
575
+ }
576
+
542
577
  /** The slide a lightbox opens at for the clicked row (clamped to the slides there are). */
543
578
  export function slideIndexForRow(rowIndex: number, slideCount: number): number {
544
579
  if (!Number.isFinite(rowIndex) || rowIndex < 0 || slideCount <= 0) return 0;
@@ -6,6 +6,7 @@ import {
6
6
  } from './design-token.model';
7
7
  import type { FlavorRevertSnapshot } from './flavor-seed';
8
8
  import { isArriveId, isMoveId } from './motion-language';
9
+ import { isPreloaderKind, PreloaderKind } from './preloader';
9
10
 
10
11
  /**
11
12
  * The `settings.design` row (design-system plan §3f), read and written by ONE pair of functions so
@@ -41,6 +42,8 @@ export enum DesignConfigKey {
41
42
  Between = 'between',
42
43
  Feel = 'feel',
43
44
  Headings = 'headings',
45
+ /** AW5: the first-visit preloader (a `PreloaderKind`); absent = none. */
46
+ Preloader = 'preloader',
44
47
  Revert = 'revert',
45
48
  }
46
49
 
@@ -138,11 +141,18 @@ export function resolveDesignChoices(partial: Partial<DesignChoices> | null | un
138
141
  };
139
142
  }
140
143
 
141
- /** The look's motion language as stored: a known Feel / Headings word is kept, anything else is absent (AW3). */
142
- export function resolveMotionLanguageChoices(partial: Readonly<Partial<Record<'feel' | 'headings', unknown>>> | null | undefined): Pick<DesignChoices, 'feel' | 'headings'> {
144
+ /** The look's motion language as stored: a known Feel / Headings word (AW3) or first-visit preloader (AW5) is kept,
145
+ * anything else is absent. */
146
+ export function resolveMotionLanguageChoices(partial: Readonly<Partial<Record<'feel' | 'headings' | 'preloader', unknown>>> | null | undefined): Pick<DesignChoices, 'feel' | 'headings' | 'preloader'> {
143
147
  const feel = asString(partial?.feel);
144
148
  const headings = asString(partial?.headings);
145
- return { ...(isArriveId(feel) ? { feel } : {}), ...(isMoveId(headings) ? { headings } : {}) };
149
+ const preloader = asString(partial?.preloader);
150
+ return {
151
+ ...(isArriveId(feel) ? { feel } : {}),
152
+ ...(isMoveId(headings) ? { headings } : {}),
153
+ // AW5: a known kind other than none is kept; none, unknown or absent reads absent (= nothing opens the visit).
154
+ ...(isPreloaderKind(preloader) && preloader !== PreloaderKind.None ? { preloader } : {}),
155
+ };
146
156
  }
147
157
 
148
158
  /** The look's motion, completed: an absent or unknown choice reads `PRE_MOTION` — what the site already does. */
@@ -197,6 +207,7 @@ export function readDesignConfig(config: ReadonlyArray<DesignConfigEntry> | null
197
207
  between: map.get(DesignConfigKey.Between) as BetweenId,
198
208
  feel: asString(map.get(DesignConfigKey.Feel)) ?? undefined,
199
209
  headings: asString(map.get(DesignConfigKey.Headings)) ?? undefined,
210
+ preloader: asString(map.get(DesignConfigKey.Preloader)) ?? undefined,
200
211
  });
201
212
  return {
202
213
  choices,
@@ -241,6 +252,7 @@ export function designConfigEntries(
241
252
  { key: DesignConfigKey.Between, value: c.between },
242
253
  ...(c.feel ? [{ key: DesignConfigKey.Feel, value: c.feel }] : []),
243
254
  ...(c.headings ? [{ key: DesignConfigKey.Headings, value: c.headings }] : []),
255
+ ...(c.preloader ? [{ key: DesignConfigKey.Preloader, value: c.preloader }] : []),
244
256
  ...(c.fonts ? [{ key: DesignConfigKey.Fonts, value: JSON.stringify(c.fonts) }] : []),
245
257
  ...(revert ? [{ key: DesignConfigKey.Revert, value: JSON.stringify(revert) }] : []),
246
258
  ];
@@ -255,5 +267,6 @@ export function sameDesignChoices(a: DesignChoices, b: DesignChoices): boolean {
255
267
  && x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint
256
268
  && x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
257
269
  && (x.feel ?? '') === (y.feel ?? '') && (x.headings ?? '') === (y.headings ?? '')
270
+ && (x.preloader ?? '') === (y.preloader ?? '')
258
271
  && JSON.stringify(x.fonts ?? {}) === JSON.stringify(y.fonts ?? {});
259
272
  }
@@ -92,6 +92,9 @@ export interface DesignChoices {
92
92
  /** Design ▸ Motion ▸ Headings arrive: the look's ONE heading move. Absent = each level's own heading entrance
93
93
  * (MB-D8 — what a page built before AW3 was stamped with). A `MoveId`. */
94
94
  headings?: string;
95
+ /** Design ▸ Motion ▸ First visit (AW5): the preloader a visitor's first page of a session opens with — a
96
+ * `PreloaderKind`. Absent = none (a row stored before AW5). Its exit is the look's, never stored. */
97
+ preloader?: string;
95
98
  }
96
99
 
97
100
  export interface FlavorSpecToken {
@@ -2222,6 +2222,19 @@ export const SPEC_MOTION_LANGUAGE = {
2222
2222
  "pop": "cubic-bezier(0.34, 1.56, 0.64, 1)",
2223
2223
  "exit": "cubic-bezier(0.25, 1, 0.5, 1)"
2224
2224
  },
2225
+ "preloader": [
2226
+ "none",
2227
+ "mark",
2228
+ "counter",
2229
+ "letters"
2230
+ ],
2231
+ "preloaderExit": [
2232
+ "none",
2233
+ "fade",
2234
+ "sweep",
2235
+ "window",
2236
+ "lift"
2237
+ ],
2225
2238
  "tiers": {
2226
2239
  "arrive": {
2227
2240
  "enter": "all",
@@ -2254,6 +2267,12 @@ export const SPEC_MOTION_LANGUAGE = {
2254
2267
  "veil": "pro",
2255
2268
  "interstitial": "pro",
2256
2269
  "controls": "pro"
2270
+ },
2271
+ "preloader": {
2272
+ "none": "all",
2273
+ "mark": "pro",
2274
+ "counter": "pro",
2275
+ "letters": "pro"
2257
2276
  }
2258
2277
  },
2259
2278
  "meanings": {
@@ -2278,122 +2297,170 @@ export const SPEC_MOTION_LANGUAGE = {
2278
2297
  "clear-care": {
2279
2298
  "arrive": "quart-out",
2280
2299
  "leave": "quart-out",
2281
- "move": "rise"
2300
+ "move": "rise",
2301
+ "preloader": "none",
2302
+ "preloaderExit": "none"
2282
2303
  },
2283
2304
  "swiss-grid": {
2284
2305
  "arrive": "quart-out",
2285
2306
  "leave": "quart-out",
2286
- "move": "clip"
2307
+ "move": "clip",
2308
+ "preloader": "none",
2309
+ "preloaderExit": "none"
2287
2310
  },
2288
2311
  "trusted-advisor": {
2289
2312
  "arrive": "quart-out",
2290
2313
  "leave": "quart-out",
2291
- "move": "rise"
2314
+ "move": "rise",
2315
+ "preloader": "none",
2316
+ "preloaderExit": "none"
2292
2317
  },
2293
2318
  "fresh-practice": {
2294
2319
  "arrive": "expo-out",
2295
2320
  "leave": "quart-out",
2296
- "move": "fade"
2321
+ "move": "fade",
2322
+ "preloader": "none",
2323
+ "preloaderExit": "none"
2297
2324
  },
2298
2325
  "gallery-minimal": {
2299
2326
  "arrive": "expo-out",
2300
2327
  "leave": "quart-out",
2301
- "move": "fade"
2328
+ "move": "fade",
2329
+ "preloader": "none",
2330
+ "preloaderExit": "none"
2302
2331
  },
2303
2332
  "warm-editorial": {
2304
2333
  "arrive": "quart-out",
2305
2334
  "leave": "quart-out",
2306
- "move": "mask-rise"
2335
+ "move": "mask-rise",
2336
+ "preloader": "none",
2337
+ "preloaderExit": "none"
2307
2338
  },
2308
2339
  "soft-spa": {
2309
2340
  "arrive": "expo-out",
2310
2341
  "leave": "quart-out",
2311
- "move": "blur-in"
2342
+ "move": "blur-in",
2343
+ "preloader": "none",
2344
+ "preloaderExit": "none"
2312
2345
  },
2313
2346
  "quiet-luxury": {
2314
2347
  "arrive": "expo-out",
2315
2348
  "leave": "expo-out",
2316
- "move": "fade"
2349
+ "move": "fade",
2350
+ "preloader": "none",
2351
+ "preloaderExit": "none"
2317
2352
  },
2318
2353
  "after-dark": {
2319
2354
  "arrive": "expo-out",
2320
2355
  "leave": "quart-out",
2321
- "move": "mask-rise"
2356
+ "move": "mask-rise",
2357
+ "preloader": "mark",
2358
+ "preloaderExit": "lift"
2322
2359
  },
2323
2360
  "ink-studio": {
2324
2361
  "arrive": "quart-out",
2325
2362
  "leave": "quart-out",
2326
- "move": "mask-rise"
2363
+ "move": "mask-rise",
2364
+ "preloader": "none",
2365
+ "preloaderExit": "none"
2327
2366
  },
2328
2367
  "night-gallery": {
2329
2368
  "arrive": "expo-out",
2330
2369
  "leave": "quart-out",
2331
- "move": "blur-in"
2370
+ "move": "blur-in",
2371
+ "preloader": "none",
2372
+ "preloaderExit": "none"
2332
2373
  },
2333
2374
  "tech-studio": {
2334
2375
  "arrive": "quart-out",
2335
2376
  "leave": "quart-out",
2336
- "move": "words-lit"
2377
+ "move": "words-lit",
2378
+ "preloader": "counter",
2379
+ "preloaderExit": "window"
2337
2380
  },
2338
2381
  "morning-glass": {
2339
2382
  "arrive": "expo-out",
2340
2383
  "leave": "quart-out",
2341
- "move": "blur-in"
2384
+ "move": "blur-in",
2385
+ "preloader": "none",
2386
+ "preloaderExit": "none"
2342
2387
  },
2343
2388
  "holiday-light": {
2344
2389
  "arrive": "spring",
2345
2390
  "leave": "quart-out",
2346
- "move": "rise"
2391
+ "move": "rise",
2392
+ "preloader": "none",
2393
+ "preloaderExit": "none"
2347
2394
  },
2348
2395
  "frosted-portfolio": {
2349
2396
  "arrive": "expo-out",
2350
2397
  "leave": "quart-out",
2351
- "move": "blur-in"
2398
+ "move": "blur-in",
2399
+ "preloader": "none",
2400
+ "preloaderExit": "none"
2352
2401
  },
2353
2402
  "coral-studio": {
2354
2403
  "arrive": "pop",
2355
2404
  "leave": "quart-out",
2356
- "move": "rise"
2405
+ "move": "rise",
2406
+ "preloader": "none",
2407
+ "preloaderExit": "none"
2357
2408
  },
2358
2409
  "corner-cafe": {
2359
2410
  "arrive": "spring",
2360
2411
  "leave": "quart-out",
2361
- "move": "rise"
2412
+ "move": "rise",
2413
+ "preloader": "mark",
2414
+ "preloaderExit": "fade"
2362
2415
  },
2363
2416
  "kind-community": {
2364
2417
  "arrive": "quart-out",
2365
2418
  "leave": "quart-out",
2366
- "move": "rise"
2419
+ "move": "rise",
2420
+ "preloader": "none",
2421
+ "preloaderExit": "none"
2367
2422
  },
2368
2423
  "little-ones": {
2369
2424
  "arrive": "pop",
2370
2425
  "leave": "quart-out",
2371
- "move": "rise"
2426
+ "move": "rise",
2427
+ "preloader": "none",
2428
+ "preloaderExit": "none"
2372
2429
  },
2373
2430
  "garden-party": {
2374
2431
  "arrive": "spring",
2375
2432
  "leave": "quart-out",
2376
- "move": "rise"
2433
+ "move": "rise",
2434
+ "preloader": "none",
2435
+ "preloaderExit": "none"
2377
2436
  },
2378
2437
  "bold-maker": {
2379
2438
  "arrive": "pop",
2380
2439
  "leave": "quart-out",
2381
- "move": "mask-rise"
2440
+ "move": "mask-rise",
2441
+ "preloader": "counter",
2442
+ "preloaderExit": "sweep"
2382
2443
  },
2383
2444
  "festival": {
2384
2445
  "arrive": "pop",
2385
2446
  "leave": "quart-out",
2386
- "move": "rise"
2447
+ "move": "rise",
2448
+ "preloader": "letters",
2449
+ "preloaderExit": "fade"
2387
2450
  },
2388
2451
  "zine": {
2389
2452
  "arrive": "quart-out",
2390
2453
  "leave": "quart-out",
2391
- "move": "clip"
2454
+ "move": "clip",
2455
+ "preloader": "letters",
2456
+ "preloaderExit": "sweep"
2392
2457
  },
2393
2458
  "fresh-market": {
2394
2459
  "arrive": "spring",
2395
2460
  "leave": "quart-out",
2396
- "move": "rise"
2461
+ "move": "rise",
2462
+ "preloader": "none",
2463
+ "preloaderExit": "none"
2397
2464
  }
2398
2465
  },
2399
2466
  "leaveFor": {
@@ -2419,13 +2486,19 @@ export const SPEC_MOTION_LANGUAGE = {
2419
2486
  "planFallback": {
2420
2487
  "arrive": "enter",
2421
2488
  "move": "fade",
2422
- "cover": "fade"
2489
+ "cover": "fade",
2490
+ "preloader": "none"
2423
2491
  },
2424
2492
  "coverMaxMs": {
2425
2493
  "cover": 400,
2426
2494
  "hold": 120,
2427
2495
  "uncover": 500
2428
2496
  },
2497
+ "preloaderCapMs": 1500,
2498
+ "preloaderLevels": [
2499
+ "lively",
2500
+ "expressive"
2501
+ ],
2429
2502
  "reduced": {
2430
2503
  "enter": "fade",
2431
2504
  "enterMaxMs": 200