@vectoriox/iox-ui 5.162.0 → 5.163.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 (35) hide show
  1. package/actions-core/index.d.ts +171 -3
  2. package/assist-core/index.d.ts +3 -2
  3. package/composite-core/index.d.ts +185 -2
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +243 -2
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -5
  7. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +404 -163
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +56 -5
  11. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +140 -1
  13. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +80 -23
  15. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui.mjs +383 -10
  17. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  18. package/generation-core/index.d.ts +46 -5
  19. package/harness-core/index.d.ts +132 -2
  20. package/index.d.ts +105 -3
  21. package/package.json +1 -1
  22. package/scene-core/index.d.ts +44 -12
  23. package/src/actions-core/popup-arrival.ts +328 -0
  24. package/src/actions-core/public-api.ts +1 -0
  25. package/src/assist-core/media-generate.ts +6 -5
  26. package/src/composite-core/popup.ts +285 -0
  27. package/src/composite-core/public-api.ts +1 -0
  28. package/src/generation-core/ai-run.ts +65 -2
  29. package/src/generation-core/pictures.ts +4 -3
  30. package/src/harness-core/business-types.ts +2 -0
  31. package/src/harness-core/harness-spec.generated.ts +83 -0
  32. package/src/harness-core/popup-stance.ts +111 -0
  33. package/src/harness-core/public-api.ts +1 -0
  34. package/src/scene-core/scroll-driver.ts +97 -25
  35. package/styles/iox-design.css +121 -2
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import * as i2 from '@angular/common';
10
10
  import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
11
11
  import { VideoPlan } from '@vectoriox/iox-ui/media-core';
12
12
  import { SliderWords } from '@vectoriox/iox-ui/composite-core';
13
- import { OpenerNodeLike } from '@vectoriox/iox-ui/actions-core';
13
+ import { OpenerNodeLike, RouteInfo } from '@vectoriox/iox-ui/actions-core';
14
14
  export { SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
15
15
  import { ScrollDriver, ScrollMotionEnv, ScrollActionKind } from '@vectoriox/iox-ui/scene-core';
16
16
  export * from '@vectoriox/iox-ui/data-core';
@@ -4942,6 +4942,108 @@ declare function showToast(doc: Document | null | undefined, text: string | null
4942
4942
  */
4943
4943
  declare function showToastDesign(doc: Document | null | undefined, text: string, show: boolean, options?: ToastOptions): void;
4944
4944
 
4945
+ /**
4946
+ * THE POPUP on the live site (popups-plan.md PU1, §4–§8). ONE DOM runtime for both engine paths: it finds every
4947
+ * `dialog[data-iox-popup]` (the attributes `nodeA11yAttributes` wrote from the popup traits), asks the ONE planner
4948
+ * (actions-core `overlayTurn` / `planPopupArrival` / `popupDue`) whose turn it is and when the arrival fires, and obeys:
4949
+ *
4950
+ * - **Non-modal** (`corner`, `bar`, and `centred` on a phone): the SAME `<dialog>` opened with `showPopover()`
4951
+ * (`popover="manual"`, set while closed) — the top layer, no inert page, no focus trap, the page scroller keeps running;
4952
+ * focus is NEVER moved (WCAG 3.2.2); its title is announced once through a polite status region. A browser with no
4953
+ * Popover API opens it with `show()` (non-modal, in flow).
4954
+ * - **Modal** (`centred` on a laptop): `showModal()`, the sheet takes focus (`focusDialogSheet`), focus returns on close.
4955
+ * - Esc closes it when focus is inside it or on the page body (never while typing in a field); the ✕ is named in the
4956
+ * site's language. A close (✕, Esc, the scrim) writes the memory; following its link or sending its form writes `acted`.
4957
+ * - The clock starts when the popup's TURN starts: `time` counts visible seconds from then, `scroll` needs the visitor's
4958
+ * own scroll after it (a programmatic scroll before any input is never counted).
4959
+ * - Memory: `iox-popup:<scope>:<id>` → `{ v, closedAt, acted }` in localStorage (`visit`: sessionStorage), falling back to
4960
+ * the session, then to this page view. Necessary (consent-core): no identifier, never sent.
4961
+ *
4962
+ * The engine reports what only it knows (`overlayState`: the preloader, the consent debt, another overlay) and calls
4963
+ * `refresh()`; a tick re-asks the planner while any popup waits. The builder canvas never runs this (PU-D14).
4964
+ */
4965
+ declare const POPUP_SELECTOR = "dialog[data-iox-popup]";
4966
+ /** Still (How animated): the popup fades, nothing moves. */
4967
+ declare const POPUP_STILL_ATTRIBUTE = "data-iox-popup-still";
4968
+ /** The custom property the shared CSS scales `popup-dur-*` by (How animated). */
4969
+ declare const POPUP_SCALE_PROPERTY = "--popup-scale";
4970
+ declare const POPUP_ANNOUNCE_ATTRIBUTE = "data-iox-popup-announce";
4971
+ /** What the engine knows that the planner needs (consent-core's `needsPrompt`, its preloader, its other overlays). */
4972
+ interface PopupOverlayState {
4973
+ preloaderShowing: boolean;
4974
+ consentOwed: boolean;
4975
+ otherOverlayOpen: boolean;
4976
+ }
4977
+ interface PopupRuntimeOptions {
4978
+ /** The site's scope in the memory key (the org's id or label). */
4979
+ scope: string;
4980
+ /** The page being shown — a quiet route never gets a popup (PU-D9). */
4981
+ route: RouteInfo;
4982
+ /** The site's language — the ✕'s name. Default the document's `lang`. */
4983
+ lang?: string | null;
4984
+ /** The look's How animated (`settings.design.animate`) — scales the arrival; Still fades only. */
4985
+ animate?: string | null;
4986
+ /** The engine's state. Default: nothing showing, nothing owed, another open `<dialog>` counts as an overlay. */
4987
+ overlayState?: () => PopupOverlayState;
4988
+ /** The page's scroll position (the page scroller's, when it is not the window's). */
4989
+ scrollY?: () => number;
4990
+ now?: () => Date;
4991
+ /** A popup that is a GLOBAL (every page) — page popups come first (§4b step 6). Default: inside `[data-iox-global]`. */
4992
+ isGlobal?: (dialog: Element) => boolean;
4993
+ /** Storage, injectable for tests; null = refused (the next fallback is used). */
4994
+ storage?: {
4995
+ local?: Storage | null;
4996
+ session?: Storage | null;
4997
+ };
4998
+ }
4999
+ /** The popup id a `<dialog>` carries (its node id — the element id is `iox-dialog-<id>`). */
5000
+ declare function popupIdOf(dialog: Element): string;
5001
+ /** A trait getter over the attributes a popup rendered — the planner reads the same names on a node and an element. */
5002
+ declare function popupAttributeGetter(dialog: Element): (name: string) => unknown;
5003
+ declare class PopupRuntime {
5004
+ private readonly root;
5005
+ private readonly options;
5006
+ private readonly doc;
5007
+ private readonly win;
5008
+ private readonly cleanups;
5009
+ private readonly pageMemory;
5010
+ private readonly opened;
5011
+ private pending;
5012
+ private clock;
5013
+ private timer;
5014
+ private arrivedThisView;
5015
+ private returnFocus;
5016
+ private destroyed;
5017
+ constructor(root: Document | HTMLElement, options: PopupRuntimeOptions);
5018
+ /** Find the popups, prepare them closed, and start waiting for a turn. */
5019
+ start(): void;
5020
+ /** Ask the planner again now (the engine calls it when the consent banner is answered or an overlay closes). */
5021
+ refresh(): void;
5022
+ /** Stop everything; open popups are left as they are. */
5023
+ destroy(): void;
5024
+ /** Close a popup as the visitor would (the ✕), writing its memory. */
5025
+ close(dialog: HTMLDialogElement, acted?: boolean): Promise<void>;
5026
+ private prepare;
5027
+ private isGlobal;
5028
+ private phone;
5029
+ private now;
5030
+ private scrollY;
5031
+ private listen;
5032
+ private onScroll;
5033
+ private onKey;
5034
+ private tick;
5035
+ private defaultOverlayState;
5036
+ private arrive;
5037
+ private show;
5038
+ private hide;
5039
+ private openPopups;
5040
+ private announce;
5041
+ private store;
5042
+ private key;
5043
+ private readMemory;
5044
+ private remember;
5045
+ }
5046
+
4945
5047
  /**
4946
5048
  * A form that KEEPS its fields after sending says so in a toast (premium M5, N3 — the Form's After sending ▸ "Keep the
4947
5049
  * fields and show a toast"). Its words are the form's own Sent words — the ones its submit button shows once it has sent
@@ -4955,5 +5057,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
4955
5057
  /** Raise the form's Sent toast (from the form — its scope and its look). */
4956
5058
  declare function raiseFormToast(form: Element): ToastHandle | null;
4957
5059
 
4958
- export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, 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, 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, LIST_GROUND_PIPE, LIST_INK_PIPE, 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, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, 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, SliderCreativePreset, 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, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, 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, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, 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, markScrollbarsTakeWidth, 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, scrollbarsTakeWidthScript, 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 };
4959
- export type { A11yNodeSource, AnimateActionOptions, BoundStyleTarget, 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 };
5060
+ export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, 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, 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, LIST_GROUND_PIPE, LIST_INK_PIPE, 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, POPUP_ANNOUNCE_ATTRIBUTE, POPUP_SCALE_PROPERTY, POPUP_SELECTOR, POPUP_STILL_ATTRIBUTE, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, PopupRuntime, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, 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, SliderCreativePreset, 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, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, 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, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, 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, markScrollbarsTakeWidth, 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, popupAttributeGetter, popupIdOf, 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, scrollbarsTakeWidthScript, 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 };
5061
+ export type { A11yNodeSource, AnimateActionOptions, BoundStyleTarget, 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, PopupOverlayState, PopupRuntimeOptions, 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.162.0",
3
+ "version": "5.163.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -476,10 +476,11 @@ declare function lightMotionWanted(host?: LightHost | null | undefined): boolean
476
476
  * canvas's zoom the same rectangle divides by the same zoom, and the answer is the same at any scale.
477
477
  *
478
478
  * - The value is DAMPED: the scroll stops and the page settles a moment later. This is much of the prototype's weight,
479
- * and why this is not a CSS scroll timeline, which cannot do it. Smoothed ONCE (award plan "Reddottours", RT-D2): when
480
- * the page itself scrolls through Lenis its scroll is already smoothed, so the driver FOLLOWS it with no damping of
481
- * its own (`follow`) — a second damping on top made every picture trail the hand. The canvas (its Lenis scrolls a
482
- * wrapper the driver pins against) and a page the browser scrolls natively keep the driver's damping.
479
+ * and why this is not a CSS scroll timeline, which cannot do it. Smoothed ONCE (award plan "Reddottours", RT-D2): while
480
+ * Lenis is smoothing the page's scroll, the driver FOLLOWS it with no damping of its own (`follow`) — a second damping
481
+ * on top made every picture trail the hand — and reads it where Lenis has it, not on the whole pixel the browser keeps
482
+ * (a film turns that pixel into a visible step, vectoriox/iox-ui#140). A scroll Lenis does not smooth (a jump, the
483
+ * keyboard, the scroll bar) is damped as on a page the browser scrolls natively, and so is the canvas (it pins).
483
484
  * - The live site pins with `position: sticky`, on the compositor. The canvas cannot (its page never scrolls itself,
484
485
  * its Lenis scrolls a wrapper around a zoomed frame), so `pin` holds the stage there with `translate` instead.
485
486
  * `translate`, not `transform`: a Stage may carry tracks of its own.
@@ -487,13 +488,42 @@ declare function lightMotionWanted(host?: LightHost | null | undefined): boolean
487
488
  * - Reads come first in a frame and writes after, and a write only ever touches compositor properties.
488
489
  */
489
490
  declare const SCENE_DAMPING = 9;
490
- /** The class Lenis keeps on the element it scrolls (the document's root, on the live site) for as long as it runs. */
491
- declare const LENIS_ROOT_CLASS = "lenis";
491
+ /** The class Lenis keeps on the element it scrolls only while it is SMOOTHING a scroll (a jump, the keyboard and the scroll
492
+ * bar are not smoothed): what a driver with no named scroller reads. */
493
+ declare const LENIS_SMOOTH_CLASS = "lenis-smooth";
492
494
  /**
493
495
  * Dispatched (bubbling) by something the driver plays that arrived after the driver last looked — a Swiper booted on a
494
496
  * slider's stage. Never a DOM `scroll`: nothing that follows the driver may dispatch one (SC2).
495
497
  */
496
498
  declare const SCENE_WAKE_EVENT = "iox-scene-wake";
499
+ /**
500
+ * The page's smooth scroller as the driver reads it — a Lenis instance is one as it is: whether it is smoothing a scroll
501
+ * right now, where it has the page (`scroll`, unrounded) and where the browser drew it (`actualScroll`, on a whole pixel).
502
+ */
503
+ interface SmoothScroller {
504
+ readonly isSmooth: boolean;
505
+ readonly scroll: number;
506
+ readonly actualScroll: number;
507
+ }
508
+ /**
509
+ * Name (or, with null, forget) the scroller that smooths a window's DOCUMENT — the iox-ui page scroller does, when it
510
+ * starts Lenis on the document. Every driver on that window reads it; a scroller of a wrapper is never named here.
511
+ */
512
+ declare function setPageScroller(host: Window, scroller: SmoothScroller | null): void;
513
+ /** The scroller named for a window's document, if any. */
514
+ declare function pageScroller(host: Window): SmoothScroller | null;
515
+ /**
516
+ * Page px the scroller has the page past where the browser drew it (its whole pixel): what a driver adds back, so a film
517
+ * never steps by the page's pixels. Read while smoothing AND after: a smoothing ends on its own unrounded value, and the
518
+ * film rests there rather than stepping back onto the pixel. 0 with no scroller, or a gap larger than rounding makes.
519
+ */
520
+ declare function scrollSubpixel(scroller: SmoothScroller | null): number;
521
+ /**
522
+ * One frame of a driver that FOLLOWS an already smoothed scroll (RT-D2): the scroll's own move since the last frame is
523
+ * taken whole, and only a gap left from before (a damped jump the smoothing then continued) is damped away. With no gap
524
+ * it stands exactly on the scroll; it never snaps across one.
525
+ */
526
+ declare function followToward(current: number, previousTarget: number, target: number, seconds: number, rate?: number): number;
497
527
  /** One frame of the damping: frame-rate independent, so 60 Hz and 120 Hz settle in the same time. */
498
528
  declare function dampToward(current: number, target: number, seconds: number, rate?: number): number;
499
529
  /** Where a root stands: scrolled `local` page px into its `travel`. `zoom` undoes the canvas's scale. */
@@ -527,9 +557,10 @@ interface ScrollDriverOptions {
527
557
  observe?: boolean;
528
558
  damping?: number;
529
559
  /**
530
- * Follow the scroll exactly, with no damping of its own (RT-D2): true when something already smooths the scroll the
531
- * driver reads. A function is asked on every frame. Absent: true while Lenis runs on the host's document (its root
532
- * carries `LENIS_ROOT_CLASS`) and the driver does not `pin` (the canvas keeps its damping).
560
+ * Follow the scroll, with no damping of its own (RT-D2): true when something already smooths the scroll the driver
561
+ * reads. A function is asked on every frame. Absent: true while the page's scroller (`setPageScroller`; else a Lenis
562
+ * marking the document's root `LENIS_SMOOTH_CLASS`) is SMOOTHING a scroll and the driver does not `pin` — a jump, the
563
+ * keyboard and the scroll bar are not smoothed by Lenis, and the canvas keeps its damping.
533
564
  */
534
565
  follow?: boolean | (() => boolean);
535
566
  /** Called after every frame it writes, outside any framework's zone (the canvas's selection box follows on it). */
@@ -631,8 +662,9 @@ declare class ScrollDriver {
631
662
  private remeasureAll;
632
663
  private measure;
633
664
  private readonly tick;
634
- /** True when the scroll the driver reads is already smoothed: it follows it exactly (RT-D2). */
665
+ /** True when the scroll the driver reads is being smoothed right now: it follows it (RT-D2). */
635
666
  private following;
667
+ private scroller;
636
668
  /**
637
669
  * Where each crossing layer of a Scene stands in its crossing of the stage. Its box is read WITHOUT its own move (its
638
670
  * parent's box, which carries a walking row's move, plus its offset in it), so what it is moved by never feeds back into
@@ -786,5 +818,5 @@ interface TextScrub {
786
818
  */
787
819
  declare function scrubTextReveal(el: HTMLElement, by: TextRevealBy, look?: TextRevealLook, easing?: string): TextScrub | null;
788
820
 
789
- export { LENIS_ROOT_CLASS, LETTER_PIECE_CAP, LIGHT_UP_PIECE_CAP, LetterRefusal, PARALLAX_DEPTH_DEFAULT, PARALLAX_PHONE_FACTOR, PARALLAX_REST_DEFAULT, PARALLAX_SPEED, PROGRESS_BAR_FRAMES, ParallaxDepth, ParallaxPhone, REVEAL_PIECE_CAP, SCENE_BUDGET, SCENE_DAMPING, SCENE_FILM_SMOOTH, SCENE_FLOW_RULES, SCENE_LENGTH, SCENE_MAX_SCREENS, SCENE_MIN_SCREENS, SCENE_PHONE_LENGTH, SCENE_PHONE_MAX_WIDTH, SCENE_REDUCED_MOTION_CSS, SCENE_REVEAL_DEFAULT, SCENE_STAGE_HEIGHT, SCENE_TRACK_DEFS, SCENE_TRACK_EASE, SCENE_WAKE_EVENT, SCENE_WORDS, SCENE_WORD_DIM, SCROLL_RANGE_DEFAULT, SCRUB_PIECES_IN_FLIGHT, SLIDER_HOLD_SHARE, SLIDER_SCROLL_STEP_SCREENS, SceneAttribute, SceneEase, SceneProp, SceneRange, SceneRevealFrom, ScrollActionKind, ScrollDriver, ScrollPlay, ScrollRange, TextRevealBy, TextRevealLook, applySceneFirstFrame, attachSceneRoots, attachScenes, buildSceneRecipe, colourAt, crossesStage, crossingOf, dampToward, gentleFrames, heldProgress, isHoldTrack, layoutBoxOnScreen, letterCount, letterRefusalOf, 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, sceneScrollAlong, sceneScrollState, sceneTrackDef, sceneTrackSpan, sceneWordOpacity, sceneWordsLit, scenesIn, scrollPlayFor, scrubPieceProgress, scrubTextReveal, splitForReveal, splitText, syncSceneAttributes, textPieces, textRevealByOf, textRevealLookOf, trackColourAt, trackEase, trackProgress, trackRange, trackValueAt, unmovedBox, valueAt, withSceneKey, withScenePlayback, withSceneRevealFrom, withoutSceneKey, withoutScenePlayback };
790
- export type { RevealSplit, SceneBudget, SceneFilmDensity, SceneFrame, SceneFrameOptions, SceneFrameState, SceneKey, SceneLayerNode, SceneNodeSource, SceneProgress, SceneTrack, SceneTrackDef, SceneTreeNode, SceneWords, ScrollBox, ScrollDriverOptions, ScrollLink, ScrollLinkGeometry, ScrollMotionEnv, SplitText, SplitTextOptions, TextPiece, TextScrub };
821
+ export { LENIS_SMOOTH_CLASS, LETTER_PIECE_CAP, LIGHT_UP_PIECE_CAP, LetterRefusal, PARALLAX_DEPTH_DEFAULT, PARALLAX_PHONE_FACTOR, PARALLAX_REST_DEFAULT, PARALLAX_SPEED, PROGRESS_BAR_FRAMES, ParallaxDepth, ParallaxPhone, REVEAL_PIECE_CAP, SCENE_BUDGET, SCENE_DAMPING, SCENE_FILM_SMOOTH, SCENE_FLOW_RULES, SCENE_LENGTH, SCENE_MAX_SCREENS, SCENE_MIN_SCREENS, SCENE_PHONE_LENGTH, SCENE_PHONE_MAX_WIDTH, SCENE_REDUCED_MOTION_CSS, SCENE_REVEAL_DEFAULT, SCENE_STAGE_HEIGHT, SCENE_TRACK_DEFS, SCENE_TRACK_EASE, SCENE_WAKE_EVENT, SCENE_WORDS, SCENE_WORD_DIM, SCROLL_RANGE_DEFAULT, SCRUB_PIECES_IN_FLIGHT, SLIDER_HOLD_SHARE, SLIDER_SCROLL_STEP_SCREENS, SceneAttribute, SceneEase, SceneProp, SceneRange, SceneRevealFrom, ScrollActionKind, ScrollDriver, ScrollPlay, ScrollRange, TextRevealBy, TextRevealLook, applySceneFirstFrame, attachSceneRoots, attachScenes, buildSceneRecipe, colourAt, crossesStage, crossingOf, dampToward, followToward, gentleFrames, heldProgress, isHoldTrack, layoutBoxOnScreen, letterCount, letterRefusalOf, lettersSplittable, lightMotionWanted, lineIndexes, movedSceneKey, normalizeParallaxDepth, normalizeParallaxPhone, normalizeScrollRange, normalizeTracks, outermostNodeOf, pageScroller, 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, sceneScrollAlong, sceneScrollState, sceneTrackDef, sceneTrackSpan, sceneWordOpacity, sceneWordsLit, scenesIn, scrollPlayFor, scrollSubpixel, scrubPieceProgress, scrubTextReveal, setPageScroller, splitForReveal, splitText, syncSceneAttributes, textPieces, textRevealByOf, textRevealLookOf, trackColourAt, trackEase, trackProgress, trackRange, trackValueAt, unmovedBox, valueAt, withSceneKey, withScenePlayback, withSceneRevealFrom, withoutSceneKey, withoutScenePlayback };
822
+ export type { RevealSplit, SceneBudget, SceneFilmDensity, SceneFrame, SceneFrameOptions, SceneFrameState, SceneKey, SceneLayerNode, SceneNodeSource, SceneProgress, SceneTrack, SceneTrackDef, SceneTreeNode, SceneWords, ScrollBox, ScrollDriverOptions, ScrollLink, ScrollLinkGeometry, ScrollMotionEnv, SmoothScroller, SplitText, SplitTextOptions, TextPiece, TextScrub };
@@ -0,0 +1,328 @@
1
+ import { CHECKOUT_PATH } from '@vectoriox/iox-ui/commerce-core';
2
+ import {
3
+ POPUP_KIND_ARRIVAL, POPUP_KIND_MIX, PopupAgain, PopupArrive, PopupForm, popupFormOf, PopupKind, PopupTrait,
4
+ } from '@vectoriox/iox-ui/composite-core';
5
+ import { ACCOUNT_PATH } from '@vectoriox/iox-ui/identity-core';
6
+
7
+ /**
8
+ * WHEN A SELF-ARRIVING OVERLAY MAY SHOW (popups-plan.md §4–§5, PU-D4…PU-D9, PU-D17) — the ONE planner. The engine's runtime
9
+ * only reports state and obeys; the builder's canvas never asks it (a popup never arrives on the canvas, PU-D14).
10
+ *
11
+ * overlayTurn(state) → 'preloader' | 'consent' | 'popup:<id>' | 'none'
12
+ * 1. a first visit's preloader is showing → nothing else
13
+ * 2. the consent debt is unpaid → the banner only (a popup never opens over or before it)
14
+ * 3. any dialog, drawer, cart, sign-in or lightbox is open → wait
15
+ * 4. the route is quiet → no popup
16
+ * 5. a popup already arrived in this page view → no second one
17
+ * 6. otherwise the first DUE popup (page before global, then tree order) → its clock starts NOW
18
+ *
19
+ * A popup's clock starts when its TURN starts — `time` counts from then, `scroll` needs a scroll after it. The consent
20
+ * banner's own arrival (AW2 `arrive.delay`: the first scroll or 6 s) is planned here too (`planConsentArrival`), so every
21
+ * self-arriving overlay has one arrival rule. Memory (PU-D6/PU-D7): localStorage, no identifier, never sent — Necessary.
22
+ * Pure and framework-free: no DOM, no clock (`now` is passed in).
23
+ *
24
+ * The numbers are the contract's (layout.mjs POPUP `rules`; generation-core's popup spec holds them equal).
25
+ */
26
+
27
+ /** POPUP `rules` — mirrored, held equal to the contract by generation-core's spec. */
28
+ export const POPUP_RULES = Object.freeze({
29
+ minSeconds: 3,
30
+ scrollScreens: 0.5,
31
+ timeSeconds: 8,
32
+ leavingAfterSeconds: 10,
33
+ phoneLeavingSeconds: 25,
34
+ phoneMaxHeight: 0.3,
35
+ memoryDays: 30,
36
+ reducedFadeMs: 200,
37
+ exitRatio: 0.55,
38
+ durationByAnimated: Object.freeze({ still: 200, subtle: 350, standard: 450, lively: 550, expressive: 600 }),
39
+ quietRoutes: Object.freeze(['checkout', 'order', 'account', 'sign-in', 'legal', 'not-found', 'recover', 'unsubscribe']),
40
+ });
41
+
42
+ /** AW2 (CONSENT `rules.delayMs`): the banner's `arrive.delay` — the first scroll, or this many ms. */
43
+ export const CONSENT_DELAY_MS = 6000;
44
+
45
+ // ── the order ─────────────────────────────────────────────────────────────────────────────────────────────────────────
46
+
47
+ export enum OverlayTurnKind {
48
+ Preloader = 'preloader',
49
+ Consent = 'consent',
50
+ None = 'none',
51
+ }
52
+
53
+ /** `popup:<id>` — the popup whose clock runs now. */
54
+ export type OverlayTurn = OverlayTurnKind | `popup:${string}`;
55
+
56
+ export const POPUP_TURN_PREFIX = 'popup:';
57
+
58
+ export interface OverlayState {
59
+ /** A first visit's preloader is on screen (AW5). */
60
+ preloaderShowing: boolean;
61
+ /** The consent banner is owed (consent-core `needsPrompt`) — paid by the visitor's decision. */
62
+ consentOwed: boolean;
63
+ /** A dialog, drawer, cart, sign-in or lightbox is open (a popup never opens over it). */
64
+ otherOverlayOpen: boolean;
65
+ /** The page is a quiet route (`isQuietRoute`). */
66
+ quietRoute: boolean;
67
+ /** A popup already arrived in this page view. */
68
+ popupArrivedThisView: boolean;
69
+ /** The popups that are DUE (`popupDue`), page popups first, then globals, each in tree order. */
70
+ due: ReadonlyArray<string>;
71
+ }
72
+
73
+ /** Whose turn it is (§4b). */
74
+ export function overlayTurn(state: OverlayState): OverlayTurn {
75
+ if (state.preloaderShowing) return OverlayTurnKind.Preloader;
76
+ if (state.consentOwed) return OverlayTurnKind.Consent;
77
+ if (state.otherOverlayOpen || state.quietRoute || state.popupArrivedThisView) return OverlayTurnKind.None;
78
+ const first = state.due[0];
79
+ return first ? `${POPUP_TURN_PREFIX}${first}` : OverlayTurnKind.None;
80
+ }
81
+
82
+ /** The popup id of a turn, or null. */
83
+ export function popupOfTurn(turn: OverlayTurn): string | null {
84
+ return turn.startsWith(POPUP_TURN_PREFIX) ? turn.slice(POPUP_TURN_PREFIX.length) : null;
85
+ }
86
+
87
+ // ── quiet routes ──────────────────────────────────────────────────────────────────────────────────────────────────────
88
+
89
+ export interface RouteInfo {
90
+ /** The page's app path, without the org label (`/checkout/r/abc`, `/menu`). */
91
+ path: string;
92
+ /** The page is a stamped legal page (LEGAL kinds — found by its kind). */
93
+ legal?: boolean;
94
+ /** The 404 page. */
95
+ notFound?: boolean;
96
+ }
97
+
98
+ /** The first path segments that are quiet: commerce's fixed checkout (its order, recover and unsubscribe links live under
99
+ * it) and the buyer's account (where a buyer signs in). */
100
+ const QUIET_SEGMENTS: ReadonlyArray<string> = [CHECKOUT_PATH, ACCOUNT_PATH];
101
+
102
+ /** PU-D9: a popup never arrives here. */
103
+ export function isQuietRoute(route: RouteInfo): boolean {
104
+ if (route.legal || route.notFound) return true;
105
+ const first = (route.path ?? '').split('?')[0].split('#')[0].split('/').filter(Boolean)[0] ?? '';
106
+ return QUIET_SEGMENTS.includes(first.toLowerCase());
107
+ }
108
+
109
+ // ── arrival ───────────────────────────────────────────────────────────────────────────────────────────────────────────
110
+
111
+ /** The trigger a planned arrival waits on. `now` = at once (the consent banner's `arrive.load`); `never` = only a button. */
112
+ export enum ArrivalTrigger {
113
+ Now = 'now',
114
+ Scroll = 'scroll',
115
+ Time = 'time',
116
+ ScrollOrTime = 'scrollOrTime',
117
+ Never = 'never',
118
+ }
119
+
120
+ export interface ArrivalPlan {
121
+ trigger: ArrivalTrigger;
122
+ /** A share of the FIRST screen the visitor scrolls (0 = any real scroll). */
123
+ screens: number | null;
124
+ /** A share of the whole PAGE scrolled, instead of screens. */
125
+ pageShare: number | null;
126
+ /** Visible seconds on the page, counted from the turn's start. */
127
+ seconds: number | null;
128
+ }
129
+
130
+ /** What the runtime measures, from the moment the turn started. */
131
+ export interface ArrivalProgress {
132
+ /** The visitor's own scroll since the turn started, px (a programmatic scroll is never counted). */
133
+ scrolledPx: number;
134
+ /** The page's current scroll position, px — for a page share. */
135
+ scrollY: number;
136
+ viewportHeight: number;
137
+ pageHeight: number;
138
+ /** Seconds the tab was visible since the turn started. */
139
+ visibleSeconds: number;
140
+ }
141
+
142
+ export interface ArrivalEnv {
143
+ /** `(hover: hover) and (pointer: fine)` — a laptop's mouse. */
144
+ finePointer: boolean;
145
+ }
146
+
147
+ const num = (v: unknown): number | null => {
148
+ const n = typeof v === 'number' ? v : typeof v === 'string' && v.trim() ? Number(v) : NaN;
149
+ return Number.isFinite(n) && n >= 0 ? n : null;
150
+ };
151
+
152
+ /**
153
+ * A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`
154
+ * — until PU2b draws it — and on a phone always, arrives by time (`phoneLeavingSeconds`); `button` never arrives by itself.
155
+ */
156
+ export function planPopupArrival(get: (name: string) => unknown, _env: ArrivalEnv): ArrivalPlan {
157
+ const kind = (Object.values(PopupKind) as string[]).includes(String(get(PopupTrait.Kind))) ? get(PopupTrait.Kind) as PopupKind : PopupKind.Offer;
158
+ const defaults = POPUP_KIND_ARRIVAL[kind];
159
+ const asked = String(get(PopupTrait.Arrive) ?? '');
160
+ const arrive = (Object.values(PopupArrive) as string[]).includes(asked) ? asked as PopupArrive : POPUP_KIND_MIX[kind].arrive;
161
+ const pageShare = num(get(PopupTrait.PageShare)) ?? (num(get(PopupTrait.Screens)) === null ? defaults.pageShare ?? null : null);
162
+ const screens = pageShare !== null ? null : num(get(PopupTrait.Screens)) ?? defaults.screens ?? POPUP_RULES.scrollScreens;
163
+ const seconds = (fallback: number) => Math.max(POPUP_RULES.minSeconds, num(get(PopupTrait.Seconds)) ?? defaults.seconds ?? fallback);
164
+ switch (arrive) {
165
+ case PopupArrive.Button: return { trigger: ArrivalTrigger.Never, screens: null, pageShare: null, seconds: null };
166
+ case PopupArrive.Scroll: return { trigger: ArrivalTrigger.Scroll, screens, pageShare, seconds: null };
167
+ case PopupArrive.Time: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: seconds(POPUP_RULES.timeSeconds) };
168
+ // PU2b draws `leaving` for a fine pointer; until then — and on a phone, always — it arrives by time.
169
+ case PopupArrive.Leaving: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.phoneLeavingSeconds) };
170
+ default: return { trigger: ArrivalTrigger.ScrollOrTime, screens, pageShare, seconds: seconds(POPUP_RULES.timeSeconds) };
171
+ }
172
+ }
173
+
174
+ /** AW2 / PU-D17: the consent banner's arrival — `load` at once, `delay` on the first real scroll or after 6 s. */
175
+ export function planConsentArrival(arrive: 'load' | 'delay' | string | null | undefined): ArrivalPlan {
176
+ return arrive === 'delay'
177
+ ? { trigger: ArrivalTrigger.ScrollOrTime, screens: 0, pageShare: null, seconds: CONSENT_DELAY_MS / 1000 }
178
+ : { trigger: ArrivalTrigger.Now, screens: null, pageShare: null, seconds: null };
179
+ }
180
+
181
+ function scrolledEnough(plan: ArrivalPlan, p: ArrivalProgress): boolean {
182
+ if (!(p.scrolledPx > 0)) return false; // a real scroll, after the turn started
183
+ if (plan.pageShare !== null) {
184
+ const room = p.pageHeight - p.viewportHeight;
185
+ return room <= 0 || p.scrollY / room >= plan.pageShare;
186
+ }
187
+ return p.scrolledPx >= (plan.screens ?? 0) * p.viewportHeight;
188
+ }
189
+
190
+ /** True once the planned arrival has happened. */
191
+ export function arrivalFired(plan: ArrivalPlan, p: ArrivalProgress): boolean {
192
+ switch (plan.trigger) {
193
+ case ArrivalTrigger.Now: return true;
194
+ case ArrivalTrigger.Never: return false;
195
+ case ArrivalTrigger.Scroll: return scrolledEnough(plan, p);
196
+ case ArrivalTrigger.Time: return p.visibleSeconds >= (plan.seconds ?? Infinity);
197
+ default: return scrolledEnough(plan, p) || p.visibleSeconds >= (plan.seconds ?? Infinity);
198
+ }
199
+ }
200
+
201
+ // ── memory (PU-D6, PU-D7) ─────────────────────────────────────────────────────────────────────────────────────────────
202
+
203
+ /** What a browser remembers of one popup. `v` the popup's version when it was closed; `acted` = followed or sent. */
204
+ export interface PopupMemory {
205
+ v: number;
206
+ closedAt: number;
207
+ acted: boolean;
208
+ }
209
+
210
+ export const POPUP_MEMORY_PREFIX = 'iox-popup';
211
+
212
+ /** `iox-popup:<site scope>:<popup node id>` — no identifier of the visitor. */
213
+ export function popupMemoryKey(scope: string, popupId: string): string {
214
+ return `${POPUP_MEMORY_PREFIX}:${scope || '-'}:${popupId}`;
215
+ }
216
+
217
+ /** Where it is kept: `visit` → the tab's session; `days` / `once` → the browser. The runtime falls back to the session,
218
+ * then to this page view, when one is refused. */
219
+ export enum PopupMemoryStore {
220
+ Local = 'local',
221
+ Session = 'session',
222
+ }
223
+
224
+ export function popupMemoryStore(again: unknown): PopupMemoryStore {
225
+ return again === PopupAgain.Visit ? PopupMemoryStore.Session : PopupMemoryStore.Local;
226
+ }
227
+
228
+ export function encodePopupMemory(memory: PopupMemory): string {
229
+ return JSON.stringify({ v: memory.v, closedAt: memory.closedAt, acted: memory.acted });
230
+ }
231
+
232
+ /** Tolerant: anything that is not a well-formed memory reads as none (a browser holding garbage still gets the popup). */
233
+ export function decodePopupMemory(raw: string | null | undefined): PopupMemory | null {
234
+ if (!raw) return null;
235
+ try {
236
+ const o = JSON.parse(raw) as Partial<PopupMemory> | null;
237
+ if (!o || typeof o !== 'object') return null;
238
+ const v = Number(o.v), closedAt = Number(o.closedAt);
239
+ if (!Number.isFinite(v) || !Number.isFinite(closedAt) || closedAt < 0) return null;
240
+ return { v, closedAt, acted: o.acted === true };
241
+ } catch {
242
+ return null;
243
+ }
244
+ }
245
+
246
+ /** A popup's version (`popupVersion`, default 1). */
247
+ export function popupVersionOf(get: (name: string) => unknown): number {
248
+ const n = num(get(PopupTrait.Version));
249
+ return n !== null && n >= 1 ? Math.floor(n) : 1;
250
+ }
251
+
252
+ const DAY_MS = 86_400_000;
253
+
254
+ /** True while a remembered close keeps the popup away (any version older than the popup's is forgotten). */
255
+ export function memoryKeepsAway(memory: PopupMemory | null, get: (name: string) => unknown, now: number): boolean {
256
+ if (!memory || memory.v < popupVersionOf(get)) return false;
257
+ if (memory.acted) return true; // never again after the visitor acts — until the owner changes it
258
+ const again = String(get(PopupTrait.Again) ?? '') || POPUP_KIND_MIX[(get(PopupTrait.Kind) as PopupKind) ?? PopupKind.Offer]?.again;
259
+ if (again === PopupAgain.Once || again === PopupAgain.Visit) return true; // a visit's memory dies with the session
260
+ const days = num(get(PopupTrait.Days)) ?? POPUP_RULES.memoryDays;
261
+ return now - memory.closedAt < days * DAY_MS;
262
+ }
263
+
264
+ // ── dates (PU-D18) ────────────────────────────────────────────────────────────────────────────────────────────────────
265
+
266
+ /** The visitor's day, `YYYY-MM-DD`, on THEIR clock (never UTC — a popup "until 30 November" ends at their midnight). */
267
+ export function visitorDay(now: Date): string {
268
+ const p = (n: number) => String(n).padStart(2, '0');
269
+ return `${now.getFullYear()}-${p(now.getMonth() + 1)}-${p(now.getDate())}`;
270
+ }
271
+
272
+ const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
273
+
274
+ /** Inside its dates (whole days, both ends included); no dates = always. A malformed date is ignored. */
275
+ export function popupWithinDates(get: (name: string) => unknown, now: Date): boolean {
276
+ const day = visitorDay(now);
277
+ const from = String(get(PopupTrait.ShowFrom) ?? '').trim(), until = String(get(PopupTrait.ShowUntil) ?? '').trim();
278
+ if (DAY_RE.test(from) && day < from) return false;
279
+ if (DAY_RE.test(until) && day > until) return false;
280
+ return true;
281
+ }
282
+
283
+ /** Ended: its last day is past (the engine leaves it out of the raw SSR; Home warns). Days compare on the given clock. */
284
+ export function popupEnded(get: (name: string) => unknown, now: Date): boolean {
285
+ const until = String(get(PopupTrait.ShowUntil) ?? '').trim();
286
+ return DAY_RE.test(until) && visitorDay(now) > until;
287
+ }
288
+
289
+ // ── due ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
290
+
291
+ export enum PopupNotDue {
292
+ /** Only a button opens it. */
293
+ Button = 'button',
294
+ /** Outside its dates. */
295
+ Dates = 'dates',
296
+ /** A remembered close (or the visitor acted). */
297
+ Memory = 'memory',
298
+ }
299
+
300
+ /** May this popup arrive by itself now? null = due; else why not. */
301
+ export function popupDue(get: (name: string) => unknown, memory: PopupMemory | null, now: Date): PopupNotDue | null {
302
+ if (String(get(PopupTrait.Arrive) ?? '') === PopupArrive.Button) return PopupNotDue.Button;
303
+ if (!popupWithinDates(get, now)) return PopupNotDue.Dates;
304
+ if (memoryKeepsAway(memory, get, now.getTime())) return PopupNotDue.Memory;
305
+ return null;
306
+ }
307
+
308
+ // ── presentation ──────────────────────────────────────────────────────────────────────────────────────────────────────
309
+
310
+ /** How it opens on THIS device (PU-D2, PU-D10): `centred` is a modal on a laptop only — on a phone it is the corner card. */
311
+ export function popupFormOn(get: (name: string) => unknown, env: { phone: boolean }): PopupForm {
312
+ const form = popupFormOf(get(PopupTrait.Kind), get(PopupTrait.Form));
313
+ return env.phone && form === PopupForm.Centred ? PopupForm.Corner : form;
314
+ }
315
+
316
+ /** The How animated levels (the look's `animate`), stillest first. */
317
+ export type AnimateLevel = keyof typeof POPUP_RULES.durationByAnimated;
318
+
319
+ /** §6: the factor the `popup-dur-*` tokens are scaled by for the look's How animated (the token holds Standard). */
320
+ export function popupMotionScale(level: string | null | undefined): number {
321
+ const table = POPUP_RULES.durationByAnimated as Readonly<Record<string, number>>;
322
+ return Math.round(((table[level ?? ''] ?? table['standard']) / table['standard']) * 1000) / 1000;
323
+ }
324
+
325
+ /** Still moves nothing: the popup fades (§6). */
326
+ export function popupFadesOnly(level: string | null | undefined): boolean {
327
+ return level === 'still';
328
+ }
@@ -15,3 +15,4 @@ export * from './dialog-opener';
15
15
  export * from './popover-opener';
16
16
  export * from './dialog-motion';
17
17
  export * from './reveal-origin';
18
+ export * from './popup-arrival';