@vectoriox/iox-builder 1.7.14 → 1.8.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.
@@ -1449,6 +1449,16 @@ class InteractionEngineService {
1449
1449
  switch (ix.trigger) {
1450
1450
  case 'pageLoad':
1451
1451
  return this.attachPageLoad(node, ix, element);
1452
+ case 'pageEnter':
1453
+ // In the builder canvas there is no navigation, so preview a page-enter the same
1454
+ // way as page-load (pre-stated hidden → animate in). In production the SSR engine
1455
+ // fires it only after the page transition completes (ClientInteractionService).
1456
+ return this.attachPageLoad(node, ix, element);
1457
+ case 'pageLeave':
1458
+ // Exit choreography that plays on navigate-away. There is no navigation in the
1459
+ // builder, so it does not auto-fire (element stays visible) — the overlay play
1460
+ // button previews it via replay(). In production the orchestrator awaits it.
1461
+ return () => { };
1452
1462
  case 'viewportEnter':
1453
1463
  return this.attachViewportEnter(node, ix, element);
1454
1464
  case 'click':
@@ -1890,6 +1900,8 @@ const INVERSE_ACTION = {
1890
1900
  };
1891
1901
  const TRIGGER_OPTIONS = [
1892
1902
  { value: 'pageLoad', label: 'Page load', icon: 'ph-thin ph-play' },
1903
+ { value: 'pageEnter', label: 'Page enter', icon: 'ph-thin ph-sign-in' },
1904
+ { value: 'pageLeave', label: 'Page leave', icon: 'ph-thin ph-sign-out' },
1893
1905
  { value: 'viewportEnter', label: 'Enter viewport', icon: 'ph-thin ph-eye' },
1894
1906
  { value: 'click', label: 'Click', icon: 'ph-thin ph-cursor-click' },
1895
1907
  { value: 'hover', label: 'Hover', icon: 'ph-thin ph-hand-pointing' },