@vectoriox/iox-ui 5.166.0 → 5.168.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.
@@ -115,6 +115,12 @@ declare const SCROLL_PROGRESS_TRIGGER = "scrollProgress";
115
115
  /** The plan feature selling sits behind (C-D18: the control plane's `features.shop`). */
116
116
  declare const SHOP_ENTITLEMENT = "shop";
117
117
  declare const COUNT_UP_TRIGGERS: ReadonlyArray<string>;
118
+ /**
119
+ * AW9 (award plan "Reddottours", the dissolve): an element grows and fades as the scroll carries its range — `params.grow`
120
+ * (its last scale, > 1), `params.hold` (it stays where it stands on screen while its range passes: the opening's picture,
121
+ * walked through). Played by the scroll only; transform and opacity only (no blur — RT-D3).
122
+ */
123
+ declare const DISSOLVE_ACTION = "dissolve";
118
124
  declare const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[];
119
125
  /** The account actions' dispatch set (commerce E3a) — the engines branch on it beside SHOP and hand the action to
120
126
  * composite-core `runAccountAction`. */
@@ -483,6 +489,8 @@ declare enum ArrivalTrigger {
483
489
  Scroll = "scroll",
484
490
  Time = "time",
485
491
  ScrollOrTime = "scrollOrTime",
492
+ /** PU2b: a laptop's mouse leaves through the top of the window, after `seconds` on the page. */
493
+ Leaving = "leaving",
486
494
  Never = "never"
487
495
  }
488
496
  interface ArrivalPlan {
@@ -504,6 +512,9 @@ interface ArrivalProgress {
504
512
  pageHeight: number;
505
513
  /** Seconds the tab was visible since the turn started. */
506
514
  visibleSeconds: number;
515
+ /** PU2b: the visible seconds at the visitor's LATEST exit through the top of the window (a fine pointer's), or none.
516
+ * An exit before the planned seconds does not count; the next one after them does. */
517
+ leftTopAtSeconds?: number | null;
507
518
  }
508
519
  interface ArrivalEnv {
509
520
  /** `(hover: hover) and (pointer: fine)` — a laptop's mouse. */
@@ -511,9 +522,10 @@ interface ArrivalEnv {
511
522
  }
512
523
  /**
513
524
  * A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`
514
- * — until PU2b draws it — and on a phone always, arrives by time (`phoneLeavingSeconds`); `button` never arrives by itself.
525
+ * reads a laptop's mouse leaving through the top after `leavingAfterSeconds` (PU2b) — anything without a fine pointer has
526
+ * no honest leaving signal and gets the time instead (`phoneLeavingSeconds`); `button` never arrives by itself.
515
527
  */
516
- declare function planPopupArrival(get: (name: string) => unknown, _env: ArrivalEnv): ArrivalPlan;
528
+ declare function planPopupArrival(get: (name: string) => unknown, env: ArrivalEnv): ArrivalPlan;
517
529
  /** AW2 / PU-D17: the consent banner's arrival — `load` at once, `delay` on the first real scroll or after 6 s. */
518
530
  declare function planConsentArrival(arrive: 'load' | 'delay' | string | null | undefined): ArrivalPlan;
519
531
  /** True once the planned arrival has happened. */
@@ -568,5 +580,5 @@ declare function popupMotionScale(level: string | null | undefined): number;
568
580
  /** Still moves nothing: the popup fades (§6). */
569
581
  declare function popupFadesOnly(level: string | null | undefined): boolean;
570
582
 
571
- export { ACCOUNT_ACTION_TYPES, ArrivalTrigger, BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, CONSENT_DELAY_MS, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, OverlayTurnKind, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, POPUP_MEMORY_PREFIX, POPUP_RULES, POPUP_TURN_PREFIX, PopupMemoryStore, PopupNotDue, RevealOriginProperty, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, arrivalFired, cancelExit, closeDialogAnimated, decodePopupMemory, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, encodePopupMemory, focusDialogSheet, groupedElementActions, holdClosedWhile, isExiting, isQuietRoute, itemActionOf, memoryKeepsAway, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, overlayTurn, planConsentArrival, planPopupArrival, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, popupDue, popupEnded, popupFadesOnly, popupFormOn, popupMemoryKey, popupMemoryStore, popupMotionScale, popupOfTurn, popupVersionOf, popupWithinDates, resolveActionAvailability, revealFrom, revealOrigin, revealOriginStyle, runExitMotion, visitorDay };
583
+ export { ACCOUNT_ACTION_TYPES, ArrivalTrigger, BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, CONSENT_DELAY_MS, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, DISSOLVE_ACTION, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, OverlayTurnKind, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, POPUP_MEMORY_PREFIX, POPUP_RULES, POPUP_TURN_PREFIX, PopupMemoryStore, PopupNotDue, RevealOriginProperty, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, arrivalFired, cancelExit, closeDialogAnimated, decodePopupMemory, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, encodePopupMemory, focusDialogSheet, groupedElementActions, holdClosedWhile, isExiting, isQuietRoute, itemActionOf, memoryKeepsAway, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, overlayTurn, planConsentArrival, planPopupArrival, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, popupDue, popupEnded, popupFadesOnly, popupFormOn, popupMemoryKey, popupMemoryStore, popupMotionScale, popupOfTurn, popupVersionOf, popupWithinDates, resolveActionAvailability, revealFrom, revealOrigin, revealOriginStyle, runExitMotion, visitorDay };
572
584
  export type { ActionAvailability, ActionAvailabilityContext, ActionAvailabilityState, ActionDescriptor, ActionGroup, ActionKind, ActionParamSpec, ActionTargetSpec, AnimateLevel, ArrivalEnv, ArrivalPlan, ArrivalProgress, BuilderBehaviour, DialogElementLike, ExitAnimationLike, ExitMotionElement, ExitMotionOptions, FocusableSheet, OpenerActionLike, OpenerInteractionLike, OpenerNodeLike, OverlayState, OverlayTurn, PopupMemory, RevealClosingMarker, RevealDialogLike, RevealOpenerLike, RevealOriginOptions, RevealOriginPoint, RevealRect, RevealStyled, RouteInfo };
@@ -183,6 +183,12 @@ const SCROLL_ONLY = Object.freeze([SCROLL_PROGRESS_TRIGGER]);
183
183
  /** The plan feature selling sits behind (C-D18: the control plane's `features.shop`). */
184
184
  const SHOP_ENTITLEMENT = 'shop';
185
185
  const COUNT_UP_TRIGGERS = Object.freeze(['viewportEnter', 'pageLoad']);
186
+ /**
187
+ * AW9 (award plan "Reddottours", the dissolve): an element grows and fades as the scroll carries its range — `params.grow`
188
+ * (its last scale, > 1), `params.hold` (it stays where it stands on screen while its range passes: the opening's picture,
189
+ * walked through). Played by the scroll only; transform and opacity only (no blur — RT-D3).
190
+ */
191
+ const DISSOLVE_ACTION = 'dissolve';
186
192
  const ELEMENT_ACTION_DESCRIPTORS = Object.freeze([
187
193
  // ── Motion (shipped WAAPI actions — timing row applies) ──────────────────
188
194
  { type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
@@ -234,6 +240,8 @@ const ELEMENT_ACTION_DESCRIPTORS = Object.freeze([
234
240
  { value: 'front', labelKey: 'builder.actions.params.depthFront' },
235
241
  ] }] },
236
242
  { type: 'progressBar', labelKey: 'builder.actions.progressBar', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY },
243
+ // AW9: the opening's dissolve — what the scroll grows and fades as the first screen leaves (OPENING `motion.dissolve`).
244
+ { type: DISSOLVE_ACTION, labelKey: 'builder.actions.dissolve', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: SCROLL_ONLY },
237
245
  // ── Visibility (shipped) ─────────────────────────────────────────────────
238
246
  { type: 'show', labelKey: 'builder.actions.show', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },
239
247
  { type: 'hide', labelKey: 'builder.actions.hide', kind: 'instant', group: 'visibility', builderBehaviour: 'run' },
@@ -655,6 +663,8 @@ var ArrivalTrigger;
655
663
  ArrivalTrigger["Scroll"] = "scroll";
656
664
  ArrivalTrigger["Time"] = "time";
657
665
  ArrivalTrigger["ScrollOrTime"] = "scrollOrTime";
666
+ /** PU2b: a laptop's mouse leaves through the top of the window, after `seconds` on the page. */
667
+ ArrivalTrigger["Leaving"] = "leaving";
658
668
  ArrivalTrigger["Never"] = "never";
659
669
  })(ArrivalTrigger || (ArrivalTrigger = {}));
660
670
  const num = (v) => {
@@ -663,9 +673,10 @@ const num = (v) => {
663
673
  };
664
674
  /**
665
675
  * A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`
666
- * — until PU2b draws it — and on a phone always, arrives by time (`phoneLeavingSeconds`); `button` never arrives by itself.
676
+ * reads a laptop's mouse leaving through the top after `leavingAfterSeconds` (PU2b) — anything without a fine pointer has
677
+ * no honest leaving signal and gets the time instead (`phoneLeavingSeconds`); `button` never arrives by itself.
667
678
  */
668
- function planPopupArrival(get, _env) {
679
+ function planPopupArrival(get, env) {
669
680
  const kind = Object.values(PopupKind).includes(String(get(PopupTrait.Kind))) ? get(PopupTrait.Kind) : PopupKind.Offer;
670
681
  const defaults = POPUP_KIND_ARRIVAL[kind];
671
682
  const asked = String(get(PopupTrait.Arrive) ?? '');
@@ -677,8 +688,10 @@ function planPopupArrival(get, _env) {
677
688
  case PopupArrive.Button: return { trigger: ArrivalTrigger.Never, screens: null, pageShare: null, seconds: null };
678
689
  case PopupArrive.Scroll: return { trigger: ArrivalTrigger.Scroll, screens, pageShare, seconds: null };
679
690
  case PopupArrive.Time: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: seconds(POPUP_RULES.timeSeconds) };
680
- // PU2b draws `leaving` for a fine pointer; until then — and on a phone, always — it arrives by time.
681
- case PopupArrive.Leaving: return { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.phoneLeavingSeconds) };
691
+ // A phone (any coarse pointer) never reads leaving — no Back-button trap, no scroll-up guess: it arrives by time.
692
+ case PopupArrive.Leaving: return env.finePointer
693
+ ? { trigger: ArrivalTrigger.Leaving, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.leavingAfterSeconds) }
694
+ : { trigger: ArrivalTrigger.Time, screens: null, pageShare: null, seconds: Math.max(POPUP_RULES.minSeconds, POPUP_RULES.phoneLeavingSeconds) };
682
695
  default: return { trigger: ArrivalTrigger.ScrollOrTime, screens, pageShare, seconds: seconds(POPUP_RULES.timeSeconds) };
683
696
  }
684
697
  }
@@ -704,6 +717,7 @@ function arrivalFired(plan, p) {
704
717
  case ArrivalTrigger.Never: return false;
705
718
  case ArrivalTrigger.Scroll: return scrolledEnough(plan, p);
706
719
  case ArrivalTrigger.Time: return p.visibleSeconds >= (plan.seconds ?? Infinity);
720
+ case ArrivalTrigger.Leaving: return p.leftTopAtSeconds != null && p.leftTopAtSeconds >= (plan.seconds ?? Infinity);
707
721
  default: return scrolledEnough(plan, p) || p.visibleSeconds >= (plan.seconds ?? Infinity);
708
722
  }
709
723
  }
@@ -833,5 +847,5 @@ function popupFadesOnly(level) {
833
847
  * Generated bundle index. Do not edit.
834
848
  */
835
849
 
836
- export { ACCOUNT_ACTION_TYPES, ArrivalTrigger, BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, CONSENT_DELAY_MS, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, OverlayTurnKind, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, POPUP_MEMORY_PREFIX, POPUP_RULES, POPUP_TURN_PREFIX, PopupMemoryStore, PopupNotDue, RevealOriginProperty, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, arrivalFired, cancelExit, closeDialogAnimated, decodePopupMemory, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, encodePopupMemory, focusDialogSheet, groupedElementActions, holdClosedWhile, isExiting, isQuietRoute, itemActionOf, memoryKeepsAway, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, overlayTurn, planConsentArrival, planPopupArrival, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, popupDue, popupEnded, popupFadesOnly, popupFormOn, popupMemoryKey, popupMemoryStore, popupMotionScale, popupOfTurn, popupVersionOf, popupWithinDates, resolveActionAvailability, revealFrom, revealOrigin, revealOriginStyle, runExitMotion, visitorDay };
850
+ export { ACCOUNT_ACTION_TYPES, ArrivalTrigger, BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, CONSENT_DELAY_MS, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, DISSOLVE_ACTION, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, OverlayTurnKind, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, POPUP_MEMORY_PREFIX, POPUP_RULES, POPUP_TURN_PREFIX, PopupMemoryStore, PopupNotDue, RevealOriginProperty, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, arrivalFired, cancelExit, closeDialogAnimated, decodePopupMemory, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, encodePopupMemory, focusDialogSheet, groupedElementActions, holdClosedWhile, isExiting, isQuietRoute, itemActionOf, memoryKeepsAway, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, overlayTurn, planConsentArrival, planPopupArrival, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, popupDue, popupEnded, popupFadesOnly, popupFormOn, popupMemoryKey, popupMemoryStore, popupMotionScale, popupOfTurn, popupVersionOf, popupWithinDates, resolveActionAvailability, revealFrom, revealOrigin, revealOriginStyle, runExitMotion, visitorDay };
837
851
  //# sourceMappingURL=vectoriox-iox-ui-actions-core.mjs.map