@vectoriox/iox-ui 5.161.0 → 5.162.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.
@@ -5,7 +5,7 @@ import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPrese
5
5
  import { normalizeFrameSequence, filmScreensFor, VideoMode, VideoSource, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
6
6
  import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
7
7
  import { VARIANT_NAME_SEPARATOR, commerceLanguage, CommerceLanguage, CHECKOUT_GATE_RULES, labelIn, CheckoutGateCode } from '@vectoriox/iox-ui/commerce-core';
8
- import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy } from '@vectoriox/iox-ui/scene-core';
8
+ import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy, SceneEase, SCENE_TRACK_EASE } from '@vectoriox/iox-ui/scene-core';
9
9
  import { SCROLL_PROGRESS_TRIGGER, ELEMENT_ACTION_DESCRIPTORS, actionOfferedUnder, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
10
10
  import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
11
11
 
@@ -10570,6 +10570,241 @@ const SPEC_SITE_LAYOUT = {
10570
10570
  }
10571
10571
  ]
10572
10572
  },
10573
+ "popup": {
10574
+ "ingredients": {
10575
+ "kind": [
10576
+ "announcement",
10577
+ "offer",
10578
+ "newsletter"
10579
+ ],
10580
+ "form": [
10581
+ "corner",
10582
+ "bar",
10583
+ "centred"
10584
+ ],
10585
+ "arrive": [
10586
+ "scroll",
10587
+ "time",
10588
+ "scrollOrTime",
10589
+ "leaving",
10590
+ "button"
10591
+ ],
10592
+ "again": [
10593
+ "days",
10594
+ "visit",
10595
+ "once"
10596
+ ],
10597
+ "art": [
10598
+ "none",
10599
+ "picture"
10600
+ ]
10601
+ },
10602
+ "meanings": {
10603
+ "kind.announcement": "news the owner states: an opening, a new branch, holiday hours — one line and, if any, a link to the page that says more",
10604
+ "kind.offer": "an offer the owner states, in the owner's words — a picture, a short line and a link to the offer's page",
10605
+ "kind.newsletter": "an invitation to the owner's newsletter — a short line and the newsletter form",
10606
+ "form.corner": "a card at the bottom end corner (the start corner on a right-to-left site), 360–560 px wide; on a phone a bottom card at most 30% of the screen high",
10607
+ "form.bar": "a strip along the bottom edge, one line: at most 64 px high on a laptop, 88 px on a phone",
10608
+ "form.centred": "a centred card over the look's scrim — a newsletter on a laptop only; on a phone it shows as the corner card",
10609
+ "arrive.scroll": "once the visitor has scrolled half of the first screen — the visitor's own scroll, never a programmatic one",
10610
+ "arrive.time": "after a number of seconds on the page (at least 3), counted only while the tab is visible",
10611
+ "arrive.scrollOrTime": "whichever comes first: the scroll or the time",
10612
+ "arrive.leaving": "on a laptop, when a mouse leaves through the top of the window after 10 seconds on the page; a phone gets the time instead",
10613
+ "arrive.button": "never by itself — only when a button opens it",
10614
+ "again.days": "after the visitor closes it, not again for a number of days (30 unless the owner says otherwise)",
10615
+ "again.visit": "once per visit",
10616
+ "again.once": "once, ever — until the owner changes it",
10617
+ "art.none": "no picture",
10618
+ "art.picture": "the owner's picture at the start of the card"
10619
+ },
10620
+ "meaningsHe": {
10621
+ "kind.announcement": "חדשות שהבעלים מספרים: פתיחה, סניף חדש, שעות חג — שורה אחת, ואם יש, קישור לעמוד שמספר עוד",
10622
+ "kind.offer": "הצעה שהבעלים מספרים, במילים שלהם — תמונה, שורה קצרה וקישור לעמוד ההצעה",
10623
+ "kind.newsletter": "הזמנה לניוזלטר של העסק — שורה קצרה וטופס ההרשמה",
10624
+ "form.corner": "כרטיס בפינה התחתונה בסוף השורה (בפינת ההתחלה באתר מימין לשמאל), ברוחב 360–560 פיקסלים; בטלפון כרטיס תחתון בגובה של עד 30% מהמסך",
10625
+ "form.bar": "פס לאורך תחתית המסך, שורה אחת: עד 64 פיקסלים במחשב, 88 בטלפון",
10626
+ "form.centred": "כרטיס במרכז המסך מעל רקע מעומעם — רק לניוזלטר ורק במחשב; בטלפון הוא מוצג ככרטיס בפינה",
10627
+ "arrive.scroll": "אחרי שהמבקר גלל חצי מהמסך הראשון — גלילה של המבקר עצמו, אף פעם לא גלילה של הקוד",
10628
+ "arrive.time": "אחרי מספר שניות בעמוד (לפחות 3), נספרות רק כשהלשונית גלויה",
10629
+ "arrive.scrollOrTime": "המוקדם מבין השניים: הגלילה או הזמן",
10630
+ "arrive.leaving": "במחשב, כשהעכבר יוצא מראש החלון אחרי 10 שניות בעמוד; בטלפון — לפי זמן",
10631
+ "arrive.button": "אף פעם לא מעצמו — רק כשכפתור פותח אותו",
10632
+ "again.days": "אחרי שהמבקר סוגר אותו, לא שוב במשך מספר ימים (30, אלא אם הבעלים קובעים אחרת)",
10633
+ "again.visit": "פעם אחת בכל ביקור",
10634
+ "again.once": "פעם אחת בלבד — עד שהבעלים משנים אותו",
10635
+ "art.none": "בלי תמונה",
10636
+ "art.picture": "התמונה של העסק בתחילת הכרטיס"
10637
+ },
10638
+ "waits": {
10639
+ "arrive.leaving": {
10640
+ "phase": "PU2b",
10641
+ "drawnAs": "time"
10642
+ }
10643
+ },
10644
+ "defaults": {
10645
+ "kind": "offer",
10646
+ "form": "corner",
10647
+ "arrive": "scrollOrTime",
10648
+ "again": "days",
10649
+ "art": "picture"
10650
+ },
10651
+ "named": {
10652
+ "announcement": {
10653
+ "kind": "announcement",
10654
+ "form": "bar",
10655
+ "arrive": "scroll",
10656
+ "again": "visit",
10657
+ "art": "none"
10658
+ },
10659
+ "offer": {
10660
+ "kind": "offer",
10661
+ "form": "corner",
10662
+ "arrive": "scrollOrTime",
10663
+ "again": "days",
10664
+ "art": "picture"
10665
+ },
10666
+ "newsletter": {
10667
+ "kind": "newsletter",
10668
+ "form": "corner",
10669
+ "arrive": "scrollOrTime",
10670
+ "again": "days",
10671
+ "art": "none"
10672
+ }
10673
+ },
10674
+ "arrival": {
10675
+ "announcement": {
10676
+ "screens": 0.5
10677
+ },
10678
+ "offer": {
10679
+ "screens": 0.5,
10680
+ "seconds": 8
10681
+ },
10682
+ "newsletter": {
10683
+ "pageShare": 0.4,
10684
+ "seconds": 25
10685
+ }
10686
+ },
10687
+ "generatedForms": [
10688
+ "corner",
10689
+ "bar"
10690
+ ],
10691
+ "fingerprint": [
10692
+ "form"
10693
+ ],
10694
+ "refused": {
10695
+ "again.every-view": "every page view is the nag: the visitor closed it",
10696
+ "arrive.load": "at load it is an interstitial: the landing view is always the page (minimum 3 s or a real scroll)",
10697
+ "form.fullscreen": "a popup that covers the page hides the content the visitor came for",
10698
+ "kind.countdown": "a countdown is pressure, never news the owner stated (AW-D16)"
10699
+ },
10700
+ "rules": {
10701
+ "oneOverlay": true,
10702
+ "onePerPageView": true,
10703
+ "minSeconds": 3,
10704
+ "scrollScreens": 0.5,
10705
+ "timeSeconds": 8,
10706
+ "leavingLaptopOnly": true,
10707
+ "leavingAfterSeconds": 10,
10708
+ "phoneLeavingSeconds": 25,
10709
+ "phoneMaxHeight": 0.3,
10710
+ "barMaxPx": {
10711
+ "laptop": 64,
10712
+ "phone": 88
10713
+ },
10714
+ "cornerWidthPx": [
10715
+ 360,
10716
+ 560
10717
+ ],
10718
+ "centredNewsletterOnly": true,
10719
+ "centredLaptopOnly": true,
10720
+ "quietRoutes": [
10721
+ "checkout",
10722
+ "order",
10723
+ "account",
10724
+ "sign-in",
10725
+ "legal",
10726
+ "not-found",
10727
+ "recover",
10728
+ "unsubscribe"
10729
+ ],
10730
+ "memoryDays": 30,
10731
+ "neverAfterActed": true,
10732
+ "memoryCategory": "necessary",
10733
+ "endedLeftOut": true,
10734
+ "durationByAnimated": {
10735
+ "still": 200,
10736
+ "subtle": 350,
10737
+ "standard": 450,
10738
+ "lively": 550,
10739
+ "expressive": 600
10740
+ },
10741
+ "exitRatio": 0.55,
10742
+ "reducedFadeMs": 200,
10743
+ "phoneRisePx": 24,
10744
+ "phoneInsetMaxPx": 12,
10745
+ "closeTargetPx": 44,
10746
+ "focusStays": true,
10747
+ "noSnippet": true
10748
+ },
10749
+ "tiers": {
10750
+ "kind.announcement": "all",
10751
+ "kind.offer": "all",
10752
+ "kind.newsletter": "all",
10753
+ "form.corner": "all",
10754
+ "form.bar": "all",
10755
+ "form.centred": "all",
10756
+ "arrive.scroll": "all",
10757
+ "arrive.time": "all",
10758
+ "arrive.scrollOrTime": "all",
10759
+ "arrive.leaving": "all",
10760
+ "arrive.button": "all",
10761
+ "again.days": "all",
10762
+ "again.visit": "all",
10763
+ "again.once": "all",
10764
+ "art.none": "all",
10765
+ "art.picture": "all",
10766
+ "rules.oneOverlay": "all",
10767
+ "rules.onePerPageView": "all",
10768
+ "rules.minSeconds": "all",
10769
+ "rules.scrollScreens": "all",
10770
+ "rules.timeSeconds": "all",
10771
+ "rules.leavingLaptopOnly": "all",
10772
+ "rules.leavingAfterSeconds": "all",
10773
+ "rules.phoneLeavingSeconds": "all",
10774
+ "rules.phoneMaxHeight": "all",
10775
+ "rules.barMaxPx": "all",
10776
+ "rules.cornerWidthPx": "all",
10777
+ "rules.centredNewsletterOnly": "all",
10778
+ "rules.centredLaptopOnly": "all",
10779
+ "rules.quietRoutes": "all",
10780
+ "rules.memoryDays": "all",
10781
+ "rules.neverAfterActed": "all",
10782
+ "rules.memoryCategory": "all",
10783
+ "rules.endedLeftOut": "all",
10784
+ "rules.durationByAnimated": "all",
10785
+ "rules.exitRatio": "all",
10786
+ "rules.reducedFadeMs": "all",
10787
+ "rules.phoneRisePx": "all",
10788
+ "rules.phoneInsetMaxPx": "all",
10789
+ "rules.closeTargetPx": "all",
10790
+ "rules.focusStays": "all",
10791
+ "rules.noSnippet": "all"
10792
+ },
10793
+ "references": [
10794
+ {
10795
+ "id": "corner-offer-first-scroll",
10796
+ "after": "Doron pick 2026-11-24: vesuvio (popups-plan §1)",
10797
+ "added": "2026-11-24",
10798
+ "mix": {
10799
+ "kind": "offer",
10800
+ "form": "corner",
10801
+ "arrive": "scroll",
10802
+ "again": "days",
10803
+ "art": "picture"
10804
+ }
10805
+ }
10806
+ ]
10807
+ },
10573
10808
  "motion": {
10574
10809
  "ingredients": {
10575
10810
  "arrive": [
@@ -29378,7 +29613,8 @@ var LayoutGapCode;
29378
29613
  LayoutGapCode["Blur"] = "blur";
29379
29614
  /** M8-G3: `scaleIn` / `pop` start at the product's 0.8, not 0.95 / 0.9, and `pop` has no overshoot. */
29380
29615
  LayoutGapCode["ScaleIn"] = "scale-in";
29381
- /** M8-G4: a held layer's keys ease one way (smoothstep), whatever the layout's ease. */
29616
+ /** M8-G4: a held layer's keys run straight (travel) or smooth (a fade) — an `out` or `drawer` ease is drawn as its
29617
+ * property's (award plan "Reddottours", RT-D1: travel linear, fades smooth; `linear` / `inOut` are drawn as asked). */
29382
29618
  LayoutGapCode["TrackEase"] = "track-ease";
29383
29619
  /** M8-G5: a depth glides at the product's one speed (no per-look scale), and a picture's own drift inside its frame
29384
29620
  * is a fixed over-scale. */
@@ -29756,6 +29992,8 @@ function depthInteraction(nodeId, depth) {
29756
29992
  return { id: `${nodeId}-depth`, trigger: 'scrollProgress', range: 'cover', actions: [{ type: 'parallax', target: 'self', duration: 1000, delay: 0, easing: 'linear', params: { depth, phone: LAYOUT_DEPTH_ON_PHONE } }] };
29757
29993
  }
29758
29994
  const TRACK_REST = { x: 0, y: 0, scale: 1, rotate: 0, opacity: 1, clip: 100, words: 100 };
29995
+ /** The layout's eases the product's tracks can run (RT-D1); anything else is drawn as the property's own. */
29996
+ const TRACK_EASE = { [LayoutEase.Linear]: SceneEase.Linear, [LayoutEase.InOut]: SceneEase.Smooth };
29759
29997
  /** A layout track as a scene-core track: lengths move from the layer's own box to the stage's (cqw / cqh). */
29760
29998
  function sceneTrackOf(t, l, rows, ctx, path) {
29761
29999
  const [a, b] = t.at ?? [0, 1];
@@ -29763,8 +30001,10 @@ function sceneTrackOf(t, l, rows, ctx, path) {
29763
30001
  gap(ctx, LayoutGapCode.Blur, path, 'a blur track is dropped');
29764
30002
  return null;
29765
30003
  }
29766
- if (t.ease && t.ease !== LayoutEase.InOut)
29767
- gap(ctx, LayoutGapCode.TrackEase, path, `${t.prop} eases (smoothstep), not ${t.ease}`);
30004
+ const own = SCENE_TRACK_EASE[t.prop];
30005
+ const ease = t.ease ? TRACK_EASE[t.ease] : undefined;
30006
+ if (t.ease && !ease)
30007
+ gap(ctx, LayoutGapCode.TrackEase, path, `${t.prop} runs ${own === SceneEase.Linear ? 'straight' : 'smooth (smoothstep)'}, not ${t.ease}`);
29768
30008
  let scale = 1;
29769
30009
  if (t.prop === LayoutTrackProp.X)
29770
30010
  scale = (l.col[1] - l.col[0]) / GRID_COLUMNS;
@@ -29774,6 +30014,8 @@ function sceneTrackOf(t, l, rows, ctx, path) {
29774
30014
  const track = { prop: t.prop, keys: [[a, round(Number(t.from))], [b, round(Number(t.to))]] };
29775
30015
  if (t.prop === LayoutTrackProp.Clip)
29776
30016
  track.from = LayoutSide.Bottom;
30017
+ if (ease && ease !== own)
30018
+ track.ease = ease;
29777
30019
  return track;
29778
30020
  }
29779
30021
  /** On a phone a held section stacks: each of its tracks stands at rest. */
@@ -30862,7 +31104,6 @@ function composeSection$1(s, si, prevGround, ctx) {
30862
31104
  phone(wide, { width: FULL, ...phoneStack(si === 0) });
30863
31105
  wide.sceneTracks = [{ prop: 'x', keys: [[0, 0], [1, -(track - 1) * 100]] }];
30864
31106
  wide.scenePhoneTracks = [{ prop: 'x', keys: [[0, 0]] }];
30865
- gap(ctx, LayoutGapCode.TrackEase, `sections[${si}]`, 'the sideways travel eases (smoothstep), not linear');
30866
31107
  wide.children = layers;
30867
31108
  stage.children = [wide];
30868
31109
  }