@vectoriox/iox-ui 5.137.0 → 5.138.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 (63) hide show
  1. package/assist-core/index.d.ts +22 -4
  2. package/composite-core/index.d.ts +10 -2
  3. package/design-core/index.d.ts +225 -20
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +12 -2
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +29 -5
  7. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +18 -2
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-design-core.mjs +376 -61
  11. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +986 -230
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +5 -4
  15. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +197 -28
  17. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  18. package/fesm2022/vectoriox-iox-ui.mjs +185 -11
  19. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  20. package/generation-core/index.d.ts +1111 -732
  21. package/harness-core/index.d.ts +2 -2
  22. package/index.d.ts +46 -2
  23. package/package.json +1 -1
  24. package/scene-core/index.d.ts +69 -13
  25. package/src/actions-core/element-actions.ts +14 -4
  26. package/src/assist-core/assist-turn.ts +3 -1
  27. package/src/assist-core/route-schema.ts +20 -5
  28. package/src/assist-core/surfaces.ts +12 -0
  29. package/src/composite-core/header.ts +18 -1
  30. package/src/design-core/design-settings.ts +14 -3
  31. package/src/design-core/design-token.model.ts +3 -0
  32. package/src/design-core/flavor-spec.generated.ts +64 -25
  33. package/src/design-core/graphemes.ts +16 -0
  34. package/src/design-core/header-behaviour.ts +20 -2
  35. package/src/design-core/motion-language.ts +11 -7
  36. package/src/design-core/node-classes.ts +10 -4
  37. package/src/design-core/preloader.ts +3 -4
  38. package/src/design-core/public-api.ts +3 -0
  39. package/src/design-core/scrub.ts +37 -0
  40. package/src/design-core/section-edge.ts +223 -0
  41. package/src/design-core/style-presets.ts +2 -0
  42. package/src/generation-core/body-mix.ts +443 -0
  43. package/src/generation-core/check-layout.ts +42 -4
  44. package/src/generation-core/compose-layout.ts +28 -6
  45. package/src/generation-core/compose-site.ts +26 -8
  46. package/src/generation-core/header-mix.ts +4 -0
  47. package/src/generation-core/layout-fingerprint.ts +19 -1
  48. package/src/generation-core/layout-language.ts +21 -1
  49. package/src/generation-core/layout-wire.ts +27 -2
  50. package/src/generation-core/node-baselines.generated.ts +7 -2
  51. package/src/generation-core/opening-mix.ts +32 -0
  52. package/src/generation-core/plan-wire.ts +1 -0
  53. package/src/generation-core/public-api.ts +2 -0
  54. package/src/generation-core/redesign-run.ts +27 -0
  55. package/src/generation-core/site-build-run.ts +24 -6
  56. package/src/generation-core/site-plan.model.ts +2 -0
  57. package/src/generation-core/site-spec.generated.ts +120 -58
  58. package/src/generation-core/text-scroll.ts +179 -0
  59. package/src/generation-core/validate-site-plan.ts +4 -2
  60. package/src/harness-core/starting-design.ts +6 -5
  61. package/src/scene-core/scroll-range.ts +4 -0
  62. package/src/scene-core/split-text.ts +216 -28
  63. package/styles/iox-design.css +87 -0
@@ -3661,9 +3661,9 @@ declare const GENERATION_LIMITS: {
3661
3661
  * when that colour passes AA in every mode the preset offers (`referenceSeed` — judged as used), and what the owner
3662
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
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.
3664
+ * movement" never opens with one. Its By the scroll (AW10) likewise, only on a Lively or Expressive start (AW10-D7).
3665
3665
  */
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;
3666
+ declare function presetDesign(presetId: string, input: MotionInput | string | null, kept?: Partial<Pick<DesignChoices, 'scroll' | 'animate' | 'between' | 'motion' | 'feel' | 'headings' | 'preloader' | 'scrub'>>, read?: StyleRead | null): DesignChoices | null;
3667
3667
  interface StartingDesign {
3668
3668
  presetId: string;
3669
3669
  design: DesignChoices;
package/index.d.ts CHANGED
@@ -2467,6 +2467,44 @@ declare function hidingHeadersIn(root: ParentNode | Iterable<Element>): HTMLElem
2467
2467
  */
2468
2468
  declare function watchHeaders(source: ScrollSource, root: ParentNode | Iterable<Element>, options?: HeaderRuntimeOptions): () => void;
2469
2469
 
2470
+ /** The vertical part of a computed `translate` ("none" · "x" · "x y" · "x y z"), in px of the element's own box. */
2471
+ declare function translateYOf(translate: string | null | undefined, height: number): number;
2472
+ /** The headers whose ink follows the sections, in `root`. */
2473
+ declare function inkFollowingHeadersIn(root: ParentNode | null | undefined): HTMLElement[];
2474
+ declare class HeaderInkRuntime {
2475
+ private readonly host;
2476
+ private readonly header;
2477
+ private readonly sections;
2478
+ private readonly opening;
2479
+ private last;
2480
+ /**
2481
+ * @param host the element carrying `data-iox-opening` (body; the canvas's globals layer)
2482
+ * @param header the header that follows
2483
+ * @param sections the page's sections, in order (read on every update — a re-render may replace them)
2484
+ */
2485
+ constructor(host: Element, header: Element, sections: () => ReadonlyArray<Element>);
2486
+ /**
2487
+ * Read where the bar's bottom stands now and write the scheme under it (only when it changes). Two places the line
2488
+ * meets no section (found by e2e:bodyproof): ABOVE the first one — a header in the page's flow sits on top of the
2489
+ * first section at the top of the page — it wears the page's opening (the scheme the raw SSR started on, #71); and
2490
+ * a header stepped aside while the page scrolls down (HeaderRuntime's `translate`) is judged where it will come
2491
+ * back, its RESTING bottom, so it returns already wearing the ground it lands on.
2492
+ */
2493
+ update(): void;
2494
+ /** The scheme it wrote last (null = the page's own). */
2495
+ get current(): string | null;
2496
+ /** The opening back, as the page rendered it — unless the host has written another since (a new page's opening),
2497
+ * which stays. */
2498
+ destroy(): void;
2499
+ private write;
2500
+ }
2501
+ /**
2502
+ * The live site's door: a following header in `document` reads `sections` (the page's top-level nodes) under the
2503
+ * window's scroll, through ONE passive listener read once per frame (and on resize). Nothing when no header follows.
2504
+ * Returns the stop (the opening back).
2505
+ */
2506
+ declare function watchHeaderInk(source: ScrollSource, sections: ReadonlyArray<Element>, host: Element, root?: ParentNode): () => void;
2507
+
2470
2508
  /**
2471
2509
  * The content traits the accessibility attributes are read from (CC1). Import-free on purpose: the
2472
2510
  * builder's component configs declare these traits, and the node-baseline generator bundles those
@@ -2941,6 +2979,9 @@ declare function armInteractionCounts(interactions: ReadonlyArray<{
2941
2979
  * side — play without a second interpolator.
2942
2980
  * - `parallax` (a depth: back · front) and `progressBar` are the scroll's own: `translate` and `scale`, never the
2943
2981
  * element's `transform`, so a hover lift or an entrance on the same element is never overwritten.
2982
+ * - AW10: a text reveal under the scroll splits once (lines, words, letters) and the scroll plays its pieces
2983
+ * (`scrubTextReveal`); it is put back whole when it has played, and under reduced motion it never splits.
2984
+ * - `params.until` (0–1): an action has wholly played by that share of its range (copy-out is gone at 0.6 of its exit).
2944
2985
  * - A scrubbed entrance that has fully played is LET GO (the stylesheet applies again: its hover, its press — the M2
2945
2986
  * settle rule); an exit is let go before it starts.
2946
2987
  * - Transform, opacity, clip-path only: nothing changes a box, so CLS stays 0.
@@ -2957,8 +2998,11 @@ declare const SCROLL_ANIMATION_ID = "iox-scroll";
2957
2998
  declare const DEPTH_CLIP_ATTRIBUTE = "data-iox-depth-clip";
2958
2999
  /** What a scroll-driven action is, or null when the scroll cannot play it. */
2959
3000
  declare function scrollActionKind(type: string): ScrollActionKind | null;
2960
- /** True for an action a `scrollProgress` trigger can play (the picker offers these, and only these, under it). */
3001
+ /** True for an action a `scrollProgress` trigger can play (the picker offers these, and only these, under it). A text
3002
+ * reveal is offered since AW10 (AW10-D5: its pieces follow the scroll). */
2961
3003
  declare function playsOnScroll(type: string): boolean;
3004
+ /** `params.until`: the share of its range by which an action has wholly played — 1 (all of it) unless a share is set. */
3005
+ declare function scrubUntilOf(params: Readonly<Record<string, unknown>> | null | undefined): number;
2962
3006
  declare function isOperated(el: Element): boolean;
2963
3007
  interface ScrollProgressAction {
2964
3008
  type: string;
@@ -4778,5 +4822,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
4778
4822
  /** Raise the form's Sent toast (from the form — its scope and its look). */
4779
4823
  declare function raiseFormToast(form: Element): ToastHandle | null;
4780
4824
 
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 };
4825
+ 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, HeaderInkRuntime, 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, inkFollowingHeadersIn, 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, scrubUntilOf, 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, translateYOf, viewportTransitionContext, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
4782
4826
  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.137.0",
3
+ "version": "5.138.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -385,7 +385,9 @@ declare enum ScrollActionKind {
385
385
  /** How much has been read: information, tied to the visitor's own scroll. */
386
386
  Progress = "progress",
387
387
  /** Any entrance or exit, played by the scroll instead of the clock. */
388
- Scrub = "scrub"
388
+ Scrub = "scrub",
389
+ /** AW10: a text whose pieces (lines, words, letters) the scroll plays. */
390
+ Text = "text"
389
391
  }
390
392
  /** What a visitor gets of one scroll-driven action. */
391
393
  declare enum ScrollPlay {
@@ -585,27 +587,46 @@ declare function attachSceneRoots(roots: ReadonlyArray<HTMLElement>, options?: S
585
587
  */
586
588
  declare enum TextRevealBy {
587
589
  Line = "line",
588
- Word = "word"
590
+ Word = "word",
591
+ /** AW10: letter by letter. Display words only (`LETTER_PIECE_CAP`), never a script whose letters join. */
592
+ Letter = "letter"
593
+ }
594
+ /** How a reveal's pieces arrive (AW10): rising out of their masks, or lighting from dim (a Scene's words track's look). */
595
+ declare enum TextRevealLook {
596
+ Rise = "rise",
597
+ Light = "light"
589
598
  }
590
599
  /** Past these a text is plainly no heading: it fades whole, and lights up whole. */
591
600
  declare const REVEAL_PIECE_CAP = 120;
592
601
  declare const LIGHT_UP_PIECE_CAP = 300;
602
+ /** AW10: past this many letters a text is no display line — it splits by word instead (the waiting word's stand-in). */
603
+ declare const LETTER_PIECE_CAP = 80;
604
+ /** A saved `params.by`: a reveal's pieces, line by default (what `mask-rise` has always been). */
605
+ declare function textRevealByOf(value: unknown): TextRevealBy;
606
+ /** A saved `params.look`: rising by default. */
607
+ declare function textRevealLookOf(value: unknown): TextRevealLook;
608
+ /** True when `text` may come apart letter by letter without a letter changing its shape (Hebrew, Latin, Cyrillic…). */
609
+ declare function lettersSplittable(text: string): boolean;
593
610
  interface TextPiece {
594
611
  text: string;
595
612
  /** False for the space between two words, which stays bare text so lines wrap exactly as they did. */
596
613
  word: boolean;
597
614
  }
598
615
  /**
599
- * A string as words and the space between them. With `keepLtrRuns` a run of words holding no RTL letter stays ONE word:
600
- * an inline-block is neutral to the bidi algorithm, so "Studio Alma" inside a Hebrew heading, split, would read reversed.
616
+ * A string as words and the space between them. With `keepLtrRuns` (a right-to-left element) a run of words holding no
617
+ * RTL letter stays ONE word; with `keepRtlRuns` (a left-to-right element) a run of words holding an RTL letter does: an
618
+ * inline-block is neutral to the bidi algorithm, so "Studio Alma" inside a Hebrew heading, split, would read reversed —
619
+ * and so would a Hebrew name inside an English one.
601
620
  */
602
- declare function textPieces(text: string, keepLtrRuns?: boolean): TextPiece[];
621
+ declare function textPieces(text: string, keepLtrRuns?: boolean, keepRtlRuns?: boolean): TextPiece[];
603
622
  interface SplitTextOptions {
604
623
  cap: number;
605
624
  /** Each piece in a clipping mask, to rise out of (and so an inline-block). Without it a piece is a plain inline span. */
606
625
  mask?: boolean;
607
- /** The element reads right-to-left. Only a mask needs to know. */
626
+ /** The element reads right-to-left. Only an inline-block (a mask, a word of letters) needs to know. */
608
627
  rtl?: boolean;
628
+ /** AW10: letters, not words. Null is returned for a script whose letters join (`lettersSplittable`). */
629
+ letters?: boolean;
609
630
  }
610
631
  interface SplitText {
611
632
  /** In reading order. With a mask, the moving part inside it. */
@@ -618,13 +639,48 @@ declare function splitText(root: HTMLElement, options: SplitTextOptions): SplitT
618
639
  /** The line each piece stands on: 0, 0, 1, 1, 1, 2… Read once, as a reveal starts. */
619
640
  declare function lineIndexes(tops: ReadonlyArray<number>, heights: ReadonlyArray<number>): number[];
620
641
  declare function revealStagger(groups: number, by: TextRevealBy): number;
642
+ /** A text split for a reveal: its pieces in reading order and the group (line, word, letter) each plays with. */
643
+ interface RevealSplit {
644
+ split: SplitText;
645
+ /** What it really split by: a letter split a text refuses falls to words (`LETTER_PIECE_CAP`, a joined script). */
646
+ by: TextRevealBy;
647
+ order: number[];
648
+ groups: number;
649
+ }
650
+ /**
651
+ * Split `el` for a reveal by `by` in `look`, or null when there is nothing to split or it is being edited (the caller
652
+ * plays its plain fade). Letters a text cannot give (too many, a joined script) are words instead.
653
+ */
654
+ declare function splitForReveal(el: HTMLElement, by: TextRevealBy, look?: TextRevealLook): RevealSplit | null;
655
+ /**
656
+ * Play a text reveal: each piece rises out of its mask (or lights from dim), line by line, word by word or letter by
657
+ * letter. Returns ONE animation for the whole, so a runtime treats it as any other: it finishes when the last piece
658
+ * lands, and on finish or cancel the text is put back whole, which leaves nothing for a screen reader to stumble on and
659
+ * nothing to re-split on a resize. Null when there is nothing to split or it is being edited: the caller plays its plain
660
+ * fade.
661
+ */
662
+ declare function playTextReveal(el: HTMLElement, by: TextRevealBy, timing: KeyframeAnimationOptions, look?: TextRevealLook): Animation | null;
663
+ /** AW10: how many pieces are on their way at once while the scroll plays a text — a wave, not one piece at a time. */
664
+ declare const SCRUB_PIECES_IN_FLIGHT = 3;
665
+ /**
666
+ * Where piece group `group` of `groups` stands when the scroll has played `progress` (0–1) of its text: each group plays
667
+ * over its own window, `inFlight` groups overlapping, the first starting at 0 and the last ending at 1. Pure.
668
+ */
669
+ declare function scrubPieceProgress(progress: number, group: number, groups: number, inFlight?: number): number;
670
+ /** A text the scroll plays (AW10 `scrub`): moved to a progress, then let go — put back whole. */
671
+ interface TextScrub {
672
+ /** What it really split by. */
673
+ readonly by: TextRevealBy;
674
+ seek(progress: number): void;
675
+ release(): void;
676
+ }
621
677
  /**
622
- * Play a text reveal: each piece rises out of its mask, line by line or word by word. Returns ONE animation for the
623
- * whole, so a runtime treats it as any other: it finishes when the last piece lands, and on finish or cancel the text
624
- * is put back whole, which leaves nothing for a screen reader to stumble on and nothing to re-split on a resize. Null
625
- * when there is nothing to split or it is being edited: the caller plays its plain fade.
678
+ * Split `el` once and let the scroll play its pieces (AW10, mode `scrubbed`): `seek` moves every piece to where the
679
+ * progress puts it — rising out of its mask or lighting from dim, `SCRUB_PIECES_IN_FLIGHT` at a time — and `release`
680
+ * puts the text back whole. Null when there is nothing to split or it is being edited: the caller scrubs its plain fade.
681
+ * Transform and opacity only; nothing changes a box.
626
682
  */
627
- declare function playTextReveal(el: HTMLElement, by: TextRevealBy, timing: KeyframeAnimationOptions): Animation | null;
683
+ declare function scrubTextReveal(el: HTMLElement, by: TextRevealBy, look?: TextRevealLook, easing?: string): TextScrub | null;
628
684
 
629
- export { LIGHT_UP_PIECE_CAP, 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_WAKE_EVENT, SCENE_WORDS, SCENE_WORD_DIM, SCROLL_RANGE_DEFAULT, SLIDER_HOLD_SHARE, SLIDER_SCROLL_STEP_SCREENS, SceneAttribute, SceneProp, SceneRevealFrom, ScrollActionKind, ScrollDriver, ScrollPlay, ScrollRange, TextRevealBy, applySceneFirstFrame, attachSceneRoots, attachScenes, buildSceneRecipe, colourAt, dampToward, gentleFrames, heldProgress, layoutBoxOnScreen, lightMotionWanted, lineIndexes, movedSceneKey, normalizeParallaxDepth, normalizeParallaxPhone, normalizeScrollRange, normalizeTracks, outermostNodeOf, parallaxFrames, parallaxOffset, parallaxRest, parallaxShift, playTextReveal, rangeDistance, rangeEnds, rangeProgress, revealClipPath, revealStagger, sceneBudget, sceneColourKeyAt, sceneDisplayValue, sceneFilmDensity, sceneFirstFrame, sceneFrame, sceneFrameDeclarations, sceneHasKeyAt, sceneHeightForScreens, sceneKeyPosition, sceneLayersOf, sceneNodeAttributes, scenePlayed, sceneRevealFromOf, sceneRootOnPath, sceneRootsIn, sceneScreensOf, sceneScrollState, sceneTrackDef, sceneTrackSpan, sceneWordOpacity, sceneWordsLit, scenesIn, scrollPlayFor, splitText, syncSceneAttributes, textPieces, valueAt, withSceneKey, withScenePlayback, withSceneRevealFrom, withoutSceneKey, withoutScenePlayback };
630
- export type { SceneBudget, SceneFilmDensity, SceneFrame, SceneFrameOptions, SceneFrameState, SceneKey, SceneLayerNode, SceneNodeSource, SceneTrack, SceneTrackDef, SceneTreeNode, SceneWords, ScrollBox, ScrollDriverOptions, ScrollLink, ScrollLinkGeometry, ScrollMotionEnv, SplitText, SplitTextOptions, TextPiece };
685
+ export { LETTER_PIECE_CAP, LIGHT_UP_PIECE_CAP, 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_WAKE_EVENT, SCENE_WORDS, SCENE_WORD_DIM, SCROLL_RANGE_DEFAULT, SCRUB_PIECES_IN_FLIGHT, SLIDER_HOLD_SHARE, SLIDER_SCROLL_STEP_SCREENS, SceneAttribute, SceneProp, SceneRevealFrom, ScrollActionKind, ScrollDriver, ScrollPlay, ScrollRange, TextRevealBy, TextRevealLook, applySceneFirstFrame, attachSceneRoots, attachScenes, buildSceneRecipe, colourAt, dampToward, gentleFrames, heldProgress, layoutBoxOnScreen, lettersSplittable, lightMotionWanted, lineIndexes, movedSceneKey, normalizeParallaxDepth, normalizeParallaxPhone, normalizeScrollRange, normalizeTracks, outermostNodeOf, parallaxFrames, parallaxOffset, parallaxRest, parallaxShift, playTextReveal, rangeDistance, rangeEnds, rangeProgress, revealClipPath, revealStagger, sceneBudget, sceneColourKeyAt, sceneDisplayValue, sceneFilmDensity, sceneFirstFrame, sceneFrame, sceneFrameDeclarations, sceneHasKeyAt, sceneHeightForScreens, sceneKeyPosition, sceneLayersOf, sceneNodeAttributes, scenePlayed, sceneRevealFromOf, sceneRootOnPath, sceneRootsIn, sceneScreensOf, sceneScrollState, sceneTrackDef, sceneTrackSpan, sceneWordOpacity, sceneWordsLit, scenesIn, scrollPlayFor, scrubPieceProgress, scrubTextReveal, splitForReveal, splitText, syncSceneAttributes, textPieces, textRevealByOf, textRevealLookOf, valueAt, withSceneKey, withScenePlayback, withSceneRevealFrom, withoutSceneKey, withoutScenePlayback };
686
+ export type { RevealSplit, SceneBudget, SceneFilmDensity, SceneFrame, SceneFrameOptions, SceneFrameState, SceneKey, SceneLayerNode, SceneNodeSource, SceneTrack, SceneTrackDef, SceneTreeNode, SceneWords, ScrollBox, ScrollDriverOptions, ScrollLink, ScrollLinkGeometry, ScrollMotionEnv, SplitText, SplitTextOptions, TextPiece, TextScrub };
@@ -56,11 +56,21 @@ export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.fr
56
56
  { value: 'centre', labelKey: 'builder.scene.from.centre' },
57
57
  ] }] },
58
58
  { type: 'zoomOut', labelKey: 'builder.actions.zoomOut', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
59
+ // AW10 (AW10-D1…D4): letter by letter is a third way it comes in (a display line; joined scripts and long lines fall to
60
+ // words, said in the panel); the Look is how each piece arrives — Rise travels up out of its mask, Light comes up from
61
+ // dim and nothing travels (the Scene words track's dim).
59
62
  { type: 'revealText', labelKey: 'builder.actions.revealText', kind: 'animated', group: 'motion', builderBehaviour: 'run',
60
- params: [{ name: 'by', type: 'string', label: 'builder.actions.params.revealBy', options: [
61
- { value: 'line', labelKey: 'builder.actions.params.byLine' },
62
- { value: 'word', labelKey: 'builder.actions.params.byWord' },
63
- ] }] },
63
+ params: [
64
+ { name: 'by', type: 'string', label: 'builder.actions.params.revealBy', options: [
65
+ { value: 'line', labelKey: 'builder.actions.params.byLine' },
66
+ { value: 'word', labelKey: 'builder.actions.params.byWord' },
67
+ { value: 'letter', labelKey: 'builder.actions.params.byLetter' },
68
+ ] },
69
+ { name: 'look', type: 'string', label: 'builder.actions.params.revealLook', options: [
70
+ { value: 'rise', labelKey: 'builder.actions.params.lookRise' },
71
+ { value: 'light', labelKey: 'builder.actions.params.lookLight' },
72
+ ] },
73
+ ] },
64
74
  // AW3 (Motion board, E5): a heading comes from a small blur into focus — the look's `blur-in` move; reduced → the fade.
65
75
  { type: 'blurIn', labelKey: 'builder.actions.blurIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
66
76
  // Premium M6 (N5): a number that counts up ONCE, the first time it comes into view (D4); its final value is always the
@@ -10,7 +10,7 @@ import { PageChangeOp, SchemeEdit, SizeEdit, StyleChange, StyleEdit } from './pa
10
10
  import { WordChange, WordEdit } from './page-words';
11
11
  import { SiteLookChange, SiteLookEdit } from './site-look';
12
12
  import { ContentRecord, clipText } from './summarize-item';
13
- import { AssistScope, AssistSurface, CommitKind, EditFamily, SURFACES, SurfaceStatus } from './surfaces';
13
+ import { AssistHandOff, AssistScope, AssistSurface, CommitKind, EditFamily, SURFACES, SurfaceStatus } from './surfaces';
14
14
 
15
15
  /**
16
16
  * The turn wire (plan §3d) — what cms-client posts and polls and iox-cms stores and answers, ONE definition both sides
@@ -120,6 +120,8 @@ export interface AssistTurn {
120
120
  /** The model it ran on (Auto resolved) — the one the ledger row names (R-H11). */
121
121
  readonly model?: string;
122
122
  readonly families?: ReadonlyArray<EditFamily>;
123
+ /** The route handed the sentence to another flow of the screen (done, no edits) — the screen offers it (RD3-D6 b). */
124
+ readonly handOff?: AssistHandOff;
123
125
  readonly reply?: string;
124
126
  readonly edits?: ReadonlyArray<AssistEdit>;
125
127
  readonly changes?: ReadonlyArray<AssistChange>;
@@ -2,26 +2,34 @@ import { jsonAnyOf, jsonClosedObject, jsonListOf, jsonOneOf, JsonSchema, jsonTex
2
2
 
3
3
  import { assertAssistBudget, MAX_ROUTE_PROPERTIES } from './budget';
4
4
  import { AssistIssue, AssistIssueCode } from './brief';
5
- import { AssistSurface, EditFamily, SURFACES } from './surfaces';
5
+ import { AssistHandOff, AssistSurface, EditFamily, SURFACES } from './surfaces';
6
6
 
7
7
  /**
8
8
  * The route request (plan §3c rule 5): the first, small, fast question of every turn — which of THIS surface's
9
9
  * families the sentence needs, or `cannot` with one line for the owner. Its family enum is the surface's, so the model
10
- * cannot route a content-item sentence to the builder's Style.
10
+ * cannot route a content-item sentence to the builder's Style. A surface with hand-offs (`SurfaceSpec.handOffs`) adds ONE
11
+ * closed key, `handOff`: the sentence asks for another flow of the screen (a whole page's new layout), not for edits.
11
12
  */
12
13
 
13
14
  export enum RouteAnswerKey {
14
15
  Families = 'families',
15
16
  Cannot = 'cannot',
16
17
  Reply = 'reply',
18
+ /** Only on a surface with hand-offs: the flow the sentence is handed to, or null. */
19
+ HandOff = 'handOff',
17
20
  }
18
21
 
19
22
  export function routeJsonSchema(surface: AssistSurface): JsonSchema {
23
+ const handOffs = SURFACES[surface].handOffs ?? [];
24
+ const keys = Object.values(RouteAnswerKey).filter(k => k !== RouteAnswerKey.HandOff || handOffs.length > 0);
20
25
  const schema = jsonClosedObject({
21
26
  [RouteAnswerKey.Families]: { ...jsonListOf(jsonOneOf(SURFACES[surface].families)), description: 'The kinds of change the sentence asks for, in the order to make them. [] when it cannot be done here.' },
22
27
  [RouteAnswerKey.Cannot]: { ...jsonAnyOf([jsonText(), { type: 'null' }]), description: 'Why it cannot be done here, in one line in the sentence\'s language — or null.' },
23
28
  [RouteAnswerKey.Reply]: { ...jsonText(), description: 'One short line to the owner, in the sentence\'s language.' },
24
- }, Object.values(RouteAnswerKey));
29
+ ...(handOffs.length ? {
30
+ [RouteAnswerKey.HandOff]: { ...jsonAnyOf([jsonOneOf(handOffs), { type: 'null' }]), description: 'The flow the sentence asks for instead of changes (then families []), or null.' },
31
+ } : {}),
32
+ }, keys);
25
33
  assertAssistBudget(`route ${surface}`, [schema], MAX_ROUTE_PROPERTIES);
26
34
  return schema;
27
35
  }
@@ -31,12 +39,15 @@ export interface AssistRoute {
31
39
  readonly families: ReadonlyArray<EditFamily>;
32
40
  readonly cannot: string | null;
33
41
  readonly reply: string;
42
+ /** The flow the sentence is handed to (then `families` is []), or null. */
43
+ readonly handOff: AssistHandOff | null;
34
44
  readonly issues: ReadonlyArray<AssistIssue>;
35
45
  }
36
46
 
37
47
  const text = (v: unknown): string => (typeof v === 'string' ? v.trim() : '');
38
48
 
39
- /** A route answer, checked against its surface: a family the surface does not have is refused, repeats dropped. */
49
+ /** A route answer, checked against its surface: a family (or a hand-off) the surface does not have is refused, repeats
50
+ * dropped; a hand-off or a `cannot` means no families. */
40
51
  export function readRoute(surface: AssistSurface, answer: unknown): AssistRoute {
41
52
  const a = (answer && typeof answer === 'object' ? answer : {}) as Record<string, unknown>;
42
53
  const allowed = new Set<string>(SURFACES[surface].families);
@@ -45,5 +56,9 @@ export function readRoute(surface: AssistSurface, answer: unknown): AssistRoute
45
56
  .map(f => ({ code: AssistIssueCode.UnknownFamily, message: `"${f}" is not a family of ${surface}` }));
46
57
  const families = [...new Set(named.filter(f => allowed.has(f)))] as EditFamily[];
47
58
  const cannot = text(a[RouteAnswerKey.Cannot]) || null;
48
- return { ok: !issues.length, families: cannot ? [] : families, cannot, reply: text(a[RouteAnswerKey.Reply]), issues };
59
+ const asked = a[RouteAnswerKey.HandOff];
60
+ const handOffs = new Set<string>(SURFACES[surface].handOffs ?? []);
61
+ const handOff = typeof asked === 'string' && handOffs.has(asked) && !cannot ? asked as AssistHandOff : null;
62
+ if (typeof asked === 'string' && !handOffs.has(asked)) issues.push({ code: AssistIssueCode.UnknownFamily, message: `"${asked}" is not a hand-off of ${surface}` });
63
+ return { ok: !issues.length, families: cannot || handOff ? [] : families, cannot, reply: text(a[RouteAnswerKey.Reply]), handOff, issues };
49
64
  }
@@ -44,6 +44,15 @@ export enum EditFamily {
44
44
  Plan = 'plan',
45
45
  }
46
46
 
47
+ /**
48
+ * A sentence a surface does not answer with edits but hands to another flow of the same screen (site-redesign RD3-D6 b):
49
+ * the route names it, the turn ends with no edit and the screen offers the flow with the sentence carried over.
50
+ */
51
+ export enum AssistHandOff {
52
+ /** A new layout for the whole page — a one-page redesign run, never section edits (builder page). */
53
+ Redesign = 'redesign',
54
+ }
55
+
47
56
  /** The model steps of a turn — generation-core's `AiStep` rows (Settings ▸ AI ▸ Models), never a second spelling. */
48
57
  export const AssistStep = {
49
58
  AssistRoute: AiStep.AssistRoute,
@@ -97,6 +106,8 @@ export interface SurfaceSpec {
97
106
  readonly commit: CommitKind;
98
107
  /** A family committed differently from the surface (the list's items are a Run; its filters a View). */
99
108
  readonly familyCommits?: Readonly<Partial<Record<EditFamily, CommitKind>>>;
109
+ /** The flows a sentence may be handed to instead of edits (none: the route offers no hand-off). */
110
+ readonly handOffs?: ReadonlyArray<AssistHandOff>;
100
111
  /** Model steps a turn may use. Media (S7) uses the picture steps of generation-core, none of these. */
101
112
  readonly steps: ReadonlyArray<AssistStep>;
102
113
  /** Every one is required. `content_<action>` is specialised per content type when `perContentType`. */
@@ -133,6 +144,7 @@ export const SURFACES: Readonly<Record<AssistSurface, SurfaceSpec>> = {
133
144
  [AssistSurface.BuilderPage]: spec({
134
145
  surface: AssistSurface.BuilderPage,
135
146
  families: [EditFamily.Words, EditFamily.Style, EditFamily.Sections, EditFamily.Look],
147
+ handOffs: [AssistHandOff.Redesign],
136
148
  commit: CommitKind.BuilderStep,
137
149
  steps: [AssistStep.AssistRoute, AssistStep.AssistEdit],
138
150
  permissions: [AssistPermission.PageUpdate],
@@ -1,4 +1,4 @@
1
- import { HeaderBehaviour, HeaderEdge, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, HeaderTrait } from '@vectoriox/iox-ui/design-core';
1
+ import { HeaderBehaviour, HeaderEdge, headerBehaviourOf, headerEdgeOf, HeaderInk, headerInkOf, headerStaysAtTop, HeaderTrait } from '@vectoriox/iox-ui/design-core';
2
2
 
3
3
  import { CompositeNode, readProp, readStyle, writeProp, writeStyles } from './composite-node';
4
4
 
@@ -23,3 +23,20 @@ export function headerBehaviourOfNode(node: CompositeNode | null | undefined): {
23
23
  edge: headerEdgeOf(node ? readProp(node, HeaderTrait.Edge) : undefined),
24
24
  };
25
25
  }
26
+
27
+ /**
28
+ * Whose colours the header wears (AW6-D10) — ONE edit for the Header studio ▸ Ground and the composer. `follows` is
29
+ * stored; `opening` clears a stored `follows` and writes nothing on a header that never had one (a composition with the
30
+ * default ink stays byte-identical, R-H4). False when nothing changed.
31
+ */
32
+ export function setHeaderInk(node: CompositeNode, ink: HeaderInk | `${HeaderInk}`): boolean {
33
+ const want = headerInkOf(ink);
34
+ const stored = readProp(node, HeaderTrait.Ink);
35
+ if (headerInkOf(stored) === want) return false;
36
+ return writeProp(node, HeaderTrait.Ink, want === HeaderInk.Follows ? HeaderInk.Follows : '');
37
+ }
38
+
39
+ /** The header's ink as stored (Opening for a header that never chose). */
40
+ export function headerInkOfNode(node: CompositeNode | null | undefined): HeaderInk {
41
+ return headerInkOf(node ? readProp(node, HeaderTrait.Ink) : undefined);
42
+ }
@@ -7,6 +7,7 @@ import {
7
7
  import type { FlavorRevertSnapshot } from './flavor-seed';
8
8
  import { isArriveId, isMoveId } from './motion-language';
9
9
  import { isPreloaderKind, PreloaderKind } from './preloader';
10
+ import { isScrubId, ScrubId } from './scrub';
10
11
 
11
12
  /**
12
13
  * The `settings.design` row (design-system plan §3f), read and written by ONE pair of functions so
@@ -44,6 +45,8 @@ export enum DesignConfigKey {
44
45
  Headings = 'headings',
45
46
  /** AW5: the first-visit preloader (a `PreloaderKind`); absent = none. */
46
47
  Preloader = 'preloader',
48
+ /** AW10: the look's By the scroll (a `ScrubId`); absent = never. */
49
+ Scrub = 'scrub',
47
50
  Revert = 'revert',
48
51
  }
49
52
 
@@ -141,17 +144,22 @@ export function resolveDesignChoices(partial: Partial<DesignChoices> | null | un
141
144
  };
142
145
  }
143
146
 
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'> {
147
+ /** The look's motion language as stored: a known Feel / Headings word (AW3), first-visit preloader (AW5) or By the
148
+ * scroll word (AW10) is kept, anything else is absent. */
149
+ export function resolveMotionLanguageChoices(
150
+ partial: Readonly<Partial<Record<'feel' | 'headings' | 'preloader' | 'scrub', unknown>>> | null | undefined,
151
+ ): Pick<DesignChoices, 'feel' | 'headings' | 'preloader' | 'scrub'> {
147
152
  const feel = asString(partial?.feel);
148
153
  const headings = asString(partial?.headings);
149
154
  const preloader = asString(partial?.preloader);
155
+ const scrub = asString(partial?.scrub);
150
156
  return {
151
157
  ...(isArriveId(feel) ? { feel } : {}),
152
158
  ...(isMoveId(headings) ? { headings } : {}),
153
159
  // AW5: a known kind other than none is kept; none, unknown or absent reads absent (= nothing opens the visit).
154
160
  ...(isPreloaderKind(preloader) && preloader !== PreloaderKind.None ? { preloader } : {}),
161
+ // AW10: a known word other than never is kept; never, unknown or absent reads absent (= everything plays once).
162
+ ...(isScrubId(scrub) && scrub !== ScrubId.Never ? { scrub } : {}),
155
163
  };
156
164
  }
157
165
 
@@ -208,6 +216,7 @@ export function readDesignConfig(config: ReadonlyArray<DesignConfigEntry> | null
208
216
  feel: asString(map.get(DesignConfigKey.Feel)) ?? undefined,
209
217
  headings: asString(map.get(DesignConfigKey.Headings)) ?? undefined,
210
218
  preloader: asString(map.get(DesignConfigKey.Preloader)) ?? undefined,
219
+ scrub: asString(map.get(DesignConfigKey.Scrub)) ?? undefined,
211
220
  });
212
221
  return {
213
222
  choices,
@@ -253,6 +262,7 @@ export function designConfigEntries(
253
262
  ...(c.feel ? [{ key: DesignConfigKey.Feel, value: c.feel }] : []),
254
263
  ...(c.headings ? [{ key: DesignConfigKey.Headings, value: c.headings }] : []),
255
264
  ...(c.preloader ? [{ key: DesignConfigKey.Preloader, value: c.preloader }] : []),
265
+ ...(c.scrub ? [{ key: DesignConfigKey.Scrub, value: c.scrub }] : []),
256
266
  ...(c.fonts ? [{ key: DesignConfigKey.Fonts, value: JSON.stringify(c.fonts) }] : []),
257
267
  ...(revert ? [{ key: DesignConfigKey.Revert, value: JSON.stringify(revert) }] : []),
258
268
  ];
@@ -268,5 +278,6 @@ export function sameDesignChoices(a: DesignChoices, b: DesignChoices): boolean {
268
278
  && x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
269
279
  && (x.feel ?? '') === (y.feel ?? '') && (x.headings ?? '') === (y.headings ?? '')
270
280
  && (x.preloader ?? '') === (y.preloader ?? '')
281
+ && (x.scrub ?? '') === (y.scrub ?? '')
271
282
  && JSON.stringify(x.fonts ?? {}) === JSON.stringify(y.fonts ?? {});
272
283
  }
@@ -95,6 +95,9 @@ export interface DesignChoices {
95
95
  /** Design ▸ Motion ▸ First visit (AW5): the preloader a visitor's first page of a session opens with — a
96
96
  * `PreloaderKind`. Absent = none (a row stored before AW5). Its exit is the look's, never stored. */
97
97
  preloader?: string;
98
+ /** Design ▸ Motion ▸ By the scroll (AW10): what may follow the scroll — a `ScrubId` (never · words · entrances).
99
+ * Absent = never (a row stored before AW10). */
100
+ scrub?: string;
98
101
  }
99
102
 
100
103
  export interface FlavorSpecToken {