efficient-web-builder 74.12.0 → 75.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 75.0.0 - 2026-11-25
4
+
5
+ From main at `fa22c1e1`: #860, #863 (CI only: the verify job may take 30 minutes).
6
+
7
+ A major: exports removed (below). Peers unchanged (efficient-easel `^38.0.0`, efficient-shell `^15.8.0`).
8
+
9
+ **For hosts:**
10
+ - ⚠️ **Breaking:** `HoverMediaLayer` takes no `name` prop. A host that passes one drops it.
11
+ - ⚠️ **Removed exports:** `HoverArrowsSlot`, `HoverMediaArrows`, `HoverArrowsState` (`components/HoverMediaLayer`); `hoverLayerName`, `hoverArrowLabel`, `hoverMediaCount`, `HOVER_ARROWS_HOST_ATTR`, `HOVER_ARROWS_HOST_CLASS` (`lib/content/hover-media`). `HeroArrows` takes no `labels`, `onPress` or `sides`.
12
+ - Look change only at Show next image: no arrows on the hover photo. No published inovit_us page uses Show next image (read 2026-11-25); the default Hover of every card section is not Show next image.
13
+ - New mark: the hover layer carries `data-hover-fit` (`cover` for photos, `contain` for renderings), so a host stylesheet can place the two apart.
14
+
15
+ ### Changed
16
+
17
+ - **Show next image draws no arrows** (owner, 2026-11-25): under the pointer a card shows the first photo of its pick, with nothing to press. The Box arrows layer, the arrow words and the screen-reader count are gone. The panel hints no longer say "with arrows".
18
+
19
+ ## 74.13.0 - 2026-11-24
20
+
21
+ From main at `29474c50`: #857.
22
+
23
+ A minor: one new row. No export removed. Peers unchanged (efficient-easel `^38.0.0`, efficient-shell `^15.8.0`).
24
+
25
+ **For hosts:**
26
+ - No look change: a Hero that stores no `textureShape` draws the same bytes.
27
+
28
+ ### Added
29
+
30
+ - **Hero Texture style row** (`lib/hero-texture`, `Hero/fields`, `Hero/render`, `HeroSlide`, #857): *Classic* (default, stores nothing, today's ramp) or *Edges* (a 160 px top band from alpha .38 to 0 and a foot band from 62 % to .38, in the Texture colour). `heroTextureGradient` takes an optional second argument; Texture opacity still scales the whole layer.
31
+
3
32
  ## 74.12.0 - 2026-11-24
4
33
 
5
34
  A minor: no export removed. The easel peer floor rises to `^38.0.0`.
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{AccentIcon as j,ContrastIcon as Z,EyeIcon as q,ExpandIcon as J,FinishIcon as Q,ImagesIcon as $,NoSymbolIcon as S,HoverLiftIcon as ee,HoverNextImageIcon as oe,HoverRotateIcon as te,HoverZoomIcon as T,OpacityIcon as ne}from"efficient-easel/icons";import{customize as re,describedAs as N,group as se}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as V}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as ie,noControlField as ce}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as p}from"../../../format/lib/content/box-background.js";import{cardTemplateOwner as ae}from"../../../format/lib/content/card-template.js";import{angleRow as pe,segmented as H,select as he,slider as A}from"../document/box-fields.js";import{say as E}from"../../../format/lib/editor-words.js";import{withShowWhen as a}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as D,animationDurationField as k,showsWhatRuns as O}from"./AnimationDurationRow.js";import{BOX_HIGHLIGHT as C,BOX_HOVER_KINDS as g,BOX_HOVER_LABELS as x,CARD_HOVER_KEYS as c,CARD_HOVER_KINDS as de,CARD_HOVER_SECTIONS as _e,CARD_HOVER_TURN as le,HOVER_KEY as h,HOVER_MEDIA_COVERS as ue,HOVER_MEDIA_COVER_LABELS as Ee,HOVER_MEDIA_DEFAULTS as m,HOVER_MEDIA_GROUPS as Re,HOVER_MEDIA_GROUP_LABELS as He,HOVER_MEDIA_KINDS as Oe,HOVER_MEDIA_KIND_LABELS as me,HOVER_KIND_LABELS as B,BOX_SHOW_KEY as P,BOX_SHOW_ALWAYS as W,BOX_SHOW_ON_CARD_HOVER as K,NEXT_PICTURE_BLOCKS as b,NEXT_PICTURE_HOVER_KINDS as y,OLD_SPIN_KEY as Ie,PART_HOVER_KINDS as X,PICTURE_HOVER_KEYS as U,PICTURE_HOVER_KINDS as fe,PICTURE_HOVER_ZOOM as d,cardHoverAngleOf as we,cardHoverKindOf as ve,cardRotatesRule as Se,cardShowsNextRule as I,HOVER_GROUP_KEY as _,pictureHoverKindOf as Te,pictureHoverMoveRule as Ne,pictureHoverRunsRule as L,pictureHoverTimedRule as Ve}from"../../../format/lib/animation/hover.js";const R=e=>r("desktop",se("Hover",{dot:e})),M=()=>r("desktop",re()),Ae="What this does when a shopper points at it, or taps it on a phone.",De="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",ke="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",Ce="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",ge="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",xe="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",Be="Which of the product's pictures the card shows.",Pe="Same finish shows the photos of the finish the card shows, else the first group.",We="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",Ke={none:()=>i(S,{}),nextImage:()=>i(oe,{}),rotate:()=>i(te,{}),zoom:()=>i(T,{}),lift:()=>i(ee,{}),mono:()=>i(Z,{})};function f(e,o){const s=V({label:E("Hover effect"),options:e.map(n=>({value:n,label:E(B[n]),picture:Ke[n]()})),fallback:o});return N(s,{type:"select",label:"Hover effect",options:e.map(n=>({value:n,label:B[n]}))})}function oo(){return{[_]:R({field:h,in:X.filter(e=>e!=="none")}),[h]:r("desktop",{...f(X,"none"),description:Ae})}}function to(e){const o=Se(e),s=I(),n=pe(le);return{[_]:R({any:[o,s]}),[c.kind]:r("desktop",{...O(f(de,e),(t,l)=>ve(l??{},e)),description:xe}),...w(s),[Ie]:ce({type:"custom",render:()=>i(ie,{})},"always"),_cHover:M(),[c.angle]:r("desktop",a(O(n,t=>we(t)),o)),[c.duration]:r("desktop",a(k("hover"),o)),[c.delay]:r("desktop",a(D("hover"),o))}}function w(e){const o=he("Type",i($,{}),Oe.map(t=>({value:t,label:me[t]})),m.kind),s=H("Group",i(Q,{}),Re.map(t=>({value:t,label:He[t]})),m.group),n=H("Covers",i(J,{}),ue.map(t=>({value:t,label:Ee[t]})),m.cover);return{[c.mediaKind]:r("desktop",a({...o,description:Be},e)),[c.mediaGroup]:r("desktop",a({...s,description:Pe},e)),[c.cover]:r("desktop",a({...n,description:We},e))}}function be(e,o="",s=b.includes(o)){const n=L(e),t=Ve(e);return{[_]:R(n),[c.kind]:v(fe,e,De),...b.includes(o)?w(I()):{},_cHover:M(),...s?F():{},[c.duration]:r("desktop",a(k("hover"),t)),[c.delay]:r("desktop",a(D("hover"),t))}}function F(e=!1){const o=t=>e?t:a(t,Ne()),s=A("Zoom",i(T,{}),d.min,d.max,d.step,d.min,d.unit),n=A("Darken on hover",i(ne,{}),p.min,p.max,p.step,p.fallback,p.unit);return{[U.zoom]:r("desktop",o(s)),[U.darken]:r("desktop",o(n))}}function v(e,o,s){const n=r("desktop",{...O(f(e,o),t=>Te({[h]:t},o,e)),description:s});return Object.assign(n,{[G]:o})}const G="sfPictureResting",Y=new WeakMap;function no(e,o,s){const n=e[c.kind],t=n?.[G];if(!n||!t)return e;const l=o.props?.[h]==="nextImage",z=l?null:ae(s.appState,o.props?.id);if(!l&&!_e.includes(String(z?.type??"")))return e;let u=Y.get(e);return u||(u={...e,[c.kind]:v(y,t,ke)},Y.set(e,u)),u}const ye="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",Xe={none:()=>i(S,{}),[C]:()=>i(j,{})},ro=r("desktop",{...N(V({label:E("Hover effect"),options:g.map(e=>({value:e,label:E(x[e]),picture:Xe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:g.map(e=>({value:e,label:x[e]}))}),description:ye}),Ue=r("desktop",{...H("Show",i(q,{}),[{value:W,label:"Always"},{value:K,label:"On card hover"}],W),description:ge});function so(){const e={any:[L("none"),{field:h,is:C},{field:P,is:K}]},{[_]:o,[c.kind]:s,...n}=be("none","",!0);return{[_]:R(e),[c.kind]:s,[P]:Ue,...w(I()),...n,...F(!0)}}const io=v(y,"none",Ce);export{ro as BOX_HIGHLIGHT_ROW,io as BOX_NEXT_PICTURE_ROW,so as boxHoverFields,to as cardHoverFields,oo as hoverFields,no as offerNextPicture,be as pictureHoverFields};
1
+ import{jsx as i}from"react/jsx-runtime";import{AccentIcon as j,ContrastIcon as Z,EyeIcon as q,ExpandIcon as J,FinishIcon as Q,ImagesIcon as $,NoSymbolIcon as S,HoverLiftIcon as ee,HoverNextImageIcon as oe,HoverRotateIcon as te,HoverZoomIcon as T,OpacityIcon as ne}from"efficient-easel/icons";import{customize as re,describedAs as N,group as se}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as V}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as ie,noControlField as ce}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as p}from"../../../format/lib/content/box-background.js";import{cardTemplateOwner as ae}from"../../../format/lib/content/card-template.js";import{angleRow as pe,segmented as H,select as he,slider as A}from"../document/box-fields.js";import{say as E}from"../../../format/lib/editor-words.js";import{withShowWhen as a}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as D,animationDurationField as k,showsWhatRuns as O}from"./AnimationDurationRow.js";import{BOX_HIGHLIGHT as C,BOX_HOVER_KINDS as g,BOX_HOVER_LABELS as x,CARD_HOVER_KEYS as c,CARD_HOVER_KINDS as de,CARD_HOVER_SECTIONS as _e,CARD_HOVER_TURN as le,HOVER_KEY as h,HOVER_MEDIA_COVERS as ue,HOVER_MEDIA_COVER_LABELS as Ee,HOVER_MEDIA_DEFAULTS as m,HOVER_MEDIA_GROUPS as Re,HOVER_MEDIA_GROUP_LABELS as He,HOVER_MEDIA_KINDS as Oe,HOVER_MEDIA_KIND_LABELS as me,HOVER_KIND_LABELS as B,BOX_SHOW_KEY as P,BOX_SHOW_ALWAYS as W,BOX_SHOW_ON_CARD_HOVER as K,NEXT_PICTURE_BLOCKS as b,NEXT_PICTURE_HOVER_KINDS as y,OLD_SPIN_KEY as Ie,PART_HOVER_KINDS as X,PICTURE_HOVER_KEYS as U,PICTURE_HOVER_KINDS as fe,PICTURE_HOVER_ZOOM as d,cardHoverAngleOf as we,cardHoverKindOf as ve,cardRotatesRule as Se,cardShowsNextRule as I,HOVER_GROUP_KEY as _,pictureHoverKindOf as Te,pictureHoverMoveRule as Ne,pictureHoverRunsRule as L,pictureHoverTimedRule as Ve}from"../../../format/lib/animation/hover.js";const R=e=>r("desktop",se("Hover",{dot:e})),M=()=>r("desktop",re()),Ae="What this does when a shopper points at it, or taps it on a phone.",De="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",ke="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos; a phone shows the picture as it is. Black and white shows it in grey until then.",Ce="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos; a phone shows the picture as it is. Black and white shows it in grey until then.",ge="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",xe="What each card does when a shopper points at it. Show next image covers the card with this product's photos; a phone shows the card as it is. Rotate turns the wheel picture.",Be="Which of the product's pictures the card shows.",Pe="Same finish shows the photos of the finish the card shows, else the first group.",We="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",Ke={none:()=>i(S,{}),nextImage:()=>i(oe,{}),rotate:()=>i(te,{}),zoom:()=>i(T,{}),lift:()=>i(ee,{}),mono:()=>i(Z,{})};function f(e,o){const s=V({label:E("Hover effect"),options:e.map(n=>({value:n,label:E(B[n]),picture:Ke[n]()})),fallback:o});return N(s,{type:"select",label:"Hover effect",options:e.map(n=>({value:n,label:B[n]}))})}function oo(){return{[_]:R({field:h,in:X.filter(e=>e!=="none")}),[h]:r("desktop",{...f(X,"none"),description:Ae})}}function to(e){const o=Se(e),s=I(),n=pe(le);return{[_]:R({any:[o,s]}),[c.kind]:r("desktop",{...O(f(de,e),(t,l)=>ve(l??{},e)),description:xe}),...w(s),[Ie]:ce({type:"custom",render:()=>i(ie,{})},"always"),_cHover:M(),[c.angle]:r("desktop",a(O(n,t=>we(t)),o)),[c.duration]:r("desktop",a(k("hover"),o)),[c.delay]:r("desktop",a(D("hover"),o))}}function w(e){const o=he("Type",i($,{}),Oe.map(t=>({value:t,label:me[t]})),m.kind),s=H("Group",i(Q,{}),Re.map(t=>({value:t,label:He[t]})),m.group),n=H("Covers",i(J,{}),ue.map(t=>({value:t,label:Ee[t]})),m.cover);return{[c.mediaKind]:r("desktop",a({...o,description:Be},e)),[c.mediaGroup]:r("desktop",a({...s,description:Pe},e)),[c.cover]:r("desktop",a({...n,description:We},e))}}function be(e,o="",s=b.includes(o)){const n=L(e),t=Ve(e);return{[_]:R(n),[c.kind]:v(fe,e,De),...b.includes(o)?w(I()):{},_cHover:M(),...s?F():{},[c.duration]:r("desktop",a(k("hover"),t)),[c.delay]:r("desktop",a(D("hover"),t))}}function F(e=!1){const o=t=>e?t:a(t,Ne()),s=A("Zoom",i(T,{}),d.min,d.max,d.step,d.min,d.unit),n=A("Darken on hover",i(ne,{}),p.min,p.max,p.step,p.fallback,p.unit);return{[U.zoom]:r("desktop",o(s)),[U.darken]:r("desktop",o(n))}}function v(e,o,s){const n=r("desktop",{...O(f(e,o),t=>Te({[h]:t},o,e)),description:s});return Object.assign(n,{[G]:o})}const G="sfPictureResting",Y=new WeakMap;function no(e,o,s){const n=e[c.kind],t=n?.[G];if(!n||!t)return e;const l=o.props?.[h]==="nextImage",z=l?null:ae(s.appState,o.props?.id);if(!l&&!_e.includes(String(z?.type??"")))return e;let u=Y.get(e);return u||(u={...e,[c.kind]:v(y,t,ke)},Y.set(e,u)),u}const ye="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",Xe={none:()=>i(S,{}),[C]:()=>i(j,{})},ro=r("desktop",{...N(V({label:E("Hover effect"),options:g.map(e=>({value:e,label:E(x[e]),picture:Xe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:g.map(e=>({value:e,label:x[e]}))}),description:ye}),Ue=r("desktop",{...H("Show",i(q,{}),[{value:W,label:"Always"},{value:K,label:"On card hover"}],W),description:ge});function so(){const e={any:[L("none"),{field:h,is:C},{field:P,is:K}]},{[_]:o,[c.kind]:s,...n}=be("none","",!0);return{[_]:R(e),[c.kind]:s,[P]:Ue,...w(I()),...n,...F(!0)}}const io=v(y,"none",Ce);export{ro as BOX_HIGHLIGHT_ROW,io as BOX_NEXT_PICTURE_ROW,so as boxHoverFields,to as cardHoverFields,oo as hoverFields,no as offerNextPicture,be as pictureHoverFields};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as R,REEL_SHAPE_DEFAULT as d,HERO_REEL_SHAPES as m,REEL_SHAPE_LABELS as A,REEL_SHOWN_DEFAULT as O}from"../../../../../../format/lib/reel.js";import{HERO_TEXTURE_SHOWN_DEFAULT as P}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as H,HERO_ARROW_SHAPE_LABELS as L,HERO_ARROW_SHAPES as h,HERO_ARROWS_PLACEMENT_DEFAULT as u,HERO_ARROWS_SHOWN_DEFAULT as w}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as T,EyeIcon as t,OpacityIcon as W,PhoneIcon as n,PlayIcon as I,SlideArrowsBareIcon as D,SlideArrowsRoundIcon as f,SlideArrowsSquareIcon as k,SlidePickerBarIcon as U,SlidePickerCardsIcon as g,SlidePickerDotsIcon as y,SlidePickerNumbersIcon as F,SlidePickerSquaresIcon as N,SquareIcon as _}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as x}from"efficient-shell/icons/efficient-looks";const b=x,C={cards:o(g,{}),dots:o(y,{}),numbers:o(F,{}),bar:o(U,{}),squares:o(N,{})},B={outline:o(f,{}),solid:o(b,{}),square:o(k,{}),bare:o(D,{})};import{toggle as i}from"../../../controls.js";import{HERO_PHONE_WORDS_ROWS as s,HERO_WORDS_ROWS as q,HERO_TEXTURE_COLOR_ROW as j,heroHeightFields as G}from"../../hero-shared-fields.js";import{group as e}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as M,iconPickerRow as p,placementField as l,segmented as S,slider as c}from"../../../box-fields.js";import{deviceField as E,deviceNote as X}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as Y,HERO_PHONE_SIDEWAYS_LABEL as v,HERO_PHONE_UPDOWN_DEFAULT as K,HERO_PHONE_UPDOWN_LABEL as z,phoneSidewaysPoints as J,phoneUpDownPoints as Q}from"../../../../../../format/lib/hero-phone-stack.js";import{HeroSlots as a}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const lo={fields:{_dDevice:X(),_gContent:e("Content"),slides:a.slides,strip:a.strip,_gStyle:e("Style"),alignment:M(),_gTexture:e("Texture"),showTexture:i("Show texture",P,o(t,{})),textureColor:j,textureOpacity:c("Texture opacity",o(W,{}),0,100,1,40,"%"),_gLayout:e("Layout"),...G(),...q,_gAutoplay:e("Auto-slide"),autoplay:i("Auto-advance slides",!1,o(I,{})),autoplayInterval:c("Still time per slide",o(T,{}),2,15,1,6,"s"),_gPicker:e("Slide picker"),showPicker:i("Show slide picker",O,o(t,{})),pickerShape:p("Slide picker shape",o(_,{}),m.map(r=>({label:A[r],value:r,picture:C[r]})),d),pickerPlacement:l("Slide picker placement",{fallback:R}),_gArrows:e("Arrows"),showArrows:i("Show arrows",w,o(t,{})),arrowsShape:p("Arrows shape",o(_,{}),h.map(r=>({label:L[r],value:r,picture:B[r]})),H),arrowsPlacement:l("Arrows placement",{fallback:u}),_gPhone:E("mobile",e("On a phone")),phoneUpDown:E("mobile",S(z,o(n,{}),Q(),K)),phoneSideways:E("mobile",S(v,o(n,{}),J(),Y)),phoneWordsTop:s.phoneWordsTop,phoneWordsBottom:s.phoneWordsBottom,phoneBoxGap:s.phoneBoxGap}};export{lo as HeroFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as R,REEL_SHAPE_DEFAULT as d,HERO_REEL_SHAPES as m,REEL_SHAPE_LABELS as A,REEL_SHOWN_DEFAULT as O}from"../../../../../../format/lib/reel.js";import{HERO_TEXTURE_SHAPE_DEFAULT as P,HERO_TEXTURE_SHAPE_OPTIONS as H,HERO_TEXTURE_SHOWN_DEFAULT as T}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as L,HERO_ARROW_SHAPE_LABELS as h,HERO_ARROW_SHAPES as u,HERO_ARROWS_PLACEMENT_DEFAULT as w,HERO_ARROWS_SHOWN_DEFAULT as I}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as W,EyeIcon as t,OpacityIcon as D,PhoneIcon as _,PlayIcon as U,SlideArrowsBareIcon as f,SlideArrowsRoundIcon as k,SlideArrowsSquareIcon as y,SlidePickerBarIcon as g,SlidePickerCardsIcon as F,SlidePickerDotsIcon as N,SlidePickerNumbersIcon as x,SlidePickerSquaresIcon as b,SquareIcon as l,StylesIcon as C}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as B}from"efficient-shell/icons/efficient-looks";const q=B,X={cards:e(F,{}),dots:e(N,{}),numbers:e(x,{}),bar:e(g,{}),squares:e(b,{})},j={outline:e(k,{}),solid:e(q,{}),square:e(y,{}),bare:e(f,{})};import{toggle as i}from"../../../controls.js";import{HERO_PHONE_WORDS_ROWS as E,HERO_WORDS_ROWS as G,HERO_TEXTURE_COLOR_ROW as M,heroHeightFields as Y}from"../../hero-shared-fields.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as v,iconPickerRow as n,placementField as p,segmented as S,select as K,slider as c}from"../../../box-fields.js";import{deviceField as s,deviceNote as z}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as J,HERO_PHONE_SIDEWAYS_LABEL as Q,HERO_PHONE_UPDOWN_DEFAULT as V,HERO_PHONE_UPDOWN_LABEL as Z,phoneSidewaysPoints as $,phoneUpDownPoints as ee}from"../../../../../../format/lib/hero-phone-stack.js";import{HeroSlots as a}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const Re={fields:{_dDevice:z(),_gContent:o("Content"),slides:a.slides,strip:a.strip,_gStyle:o("Style"),alignment:v(),_gTexture:o("Texture"),showTexture:i("Show texture",T,e(t,{})),textureColor:M,textureOpacity:c("Texture opacity",e(D,{}),0,100,1,40,"%"),textureShape:K("Texture style",e(C,{}),H,P),_gLayout:o("Layout"),...Y(),...G,_gAutoplay:o("Auto-slide"),autoplay:i("Auto-advance slides",!1,e(U,{})),autoplayInterval:c("Still time per slide",e(W,{}),2,15,1,6,"s"),_gPicker:o("Slide picker"),showPicker:i("Show slide picker",O,e(t,{})),pickerShape:n("Slide picker shape",e(l,{}),m.map(r=>({label:A[r],value:r,picture:X[r]})),d),pickerPlacement:p("Slide picker placement",{fallback:R}),_gArrows:o("Arrows"),showArrows:i("Show arrows",I,e(t,{})),arrowsShape:n("Arrows shape",e(l,{}),u.map(r=>({label:h[r],value:r,picture:j[r]})),L),arrowsPlacement:p("Arrows placement",{fallback:w}),_gPhone:s("mobile",o("On a phone")),phoneUpDown:s("mobile",S(Z,e(_,{}),ee(),V)),phoneSideways:s("mobile",S(Q,e(_,{}),$(),J)),phoneWordsTop:E.phoneWordsTop,phoneWordsBottom:E.phoneWordsBottom,phoneBoxGap:E.phoneBoxGap}};export{Re as HeroFields};
@@ -1,5 +1,4 @@
1
1
  import type { HoverMediaCover, HoverMediaGroup, HoverMediaKind } from "../animation/hover.js";
2
- import type { SourceRow } from "./block-sources.js";
3
2
  export declare const HOVER_MEDIA_LIMIT = 8;
4
3
  export type HoverMediaItem = {
5
4
  url?: string;
@@ -33,10 +32,5 @@ export declare function cardRowHoverMedia(at: {
33
32
  kind: HoverMediaKind;
34
33
  group: HoverMediaGroup;
35
34
  } | null | undefined): HoverMediaPick | null;
36
- export declare function hoverLayerName(row: SourceRow | null | undefined, own?: string): string;
37
- export declare function hoverArrowLabel(direction: "prev" | "next", name: string): string;
38
- export declare function hoverMediaCount(index: number, count: number): string;
39
35
  export declare const HOVER_LAYER_GROUND: Readonly<Record<HoverMediaCover, string>>;
40
- export declare const HOVER_ARROWS_HOST_ATTR = "data-hover-media-arrows";
41
- export declare const HOVER_ARROWS_HOST_CLASS = "pointer-events-none absolute inset-0 z-[2] rounded-[inherit] max-view-wide:hidden";
42
36
  export {};
@@ -1 +1 @@
1
- import{nonEmptyString as c}from"../non-empty-string.js";import{rowFieldText as f}from"./card-template.js";const l=8,a=(n,e)=>!!n&&!!e&&n.trim().toLowerCase()===e.trim().toLowerCase(),d=(n,e,t)=>{if(t){const r=e(t);if(r.length>0)return r}for(const r of n){const o=e(r);if(o.length>0)return o}return[]},p=n=>(n.items??[]).flatMap(e=>{const t=e.kind==="image"?c(e.url):void 0;return t?[t]:[]}),h=n=>(n.angles??[]).flatMap(e=>{const t=c(e);return t?[t]:[]});function g(n,e,t){if(!n)return null;const r=e.group==="finish";let o;if(e.kind==="renderings"){const i=n.finishes??[],s=r?i.find(u=>a(u.name,t)):void 0;o=d(i,h,s)}else{const i=n.hoverMedia?.[e.kind]??[],s=r?i.find(u=>a(u.finish,t)):void 0;o=d(i,p,s)}return o.length===0?null:{kind:e.kind,fit:e.kind==="renderings"?"contain":"cover",urls:o.slice(0,l)}}function x(n,e){return!n||!e||!n.item||typeof n.item!="object"?null:g(n.item,e,n.finish)}function R(n,e=""){return f(n,"name")||f(n,"title")||e}function _(n,e){return`${n==="prev"?"Previous":"Next"} photo of ${e}`}function w(n,e){return`Photo ${n+1} of ${e}`}const O={picture:"var(--surface)",card:"var(--card-bg)"},H="data-hover-media-arrows",M="pointer-events-none absolute inset-0 z-[2] rounded-[inherit] max-view-wide:hidden";export{H as HOVER_ARROWS_HOST_ATTR,M as HOVER_ARROWS_HOST_CLASS,O as HOVER_LAYER_GROUND,l as HOVER_MEDIA_LIMIT,x as cardRowHoverMedia,_ as hoverArrowLabel,R as hoverLayerName,w as hoverMediaCount,g as pickHoverMedia};
1
+ import{nonEmptyString as u}from"../non-empty-string.js";const d=8,f=(e,n)=>!!e&&!!n&&e.trim().toLowerCase()===n.trim().toLowerCase(),l=(e,n,t)=>{if(t){const r=n(t);if(r.length>0)return r}for(const r of e){const i=n(r);if(i.length>0)return i}return[]},g=e=>(e.items??[]).flatMap(n=>{const t=n.kind==="image"?u(n.url):void 0;return t?[t]:[]}),a=e=>(e.angles??[]).flatMap(n=>{const t=u(n);return t?[t]:[]});function p(e,n,t){if(!e)return null;const r=n.group==="finish";let i;if(n.kind==="renderings"){const o=e.finishes??[],s=r?o.find(c=>f(c.name,t)):void 0;i=l(o,a,s)}else{const o=e.hoverMedia?.[n.kind]??[],s=r?o.find(c=>f(c.finish,t)):void 0;i=l(o,g,s)}return i.length===0?null:{kind:n.kind,fit:n.kind==="renderings"?"contain":"cover",urls:i.slice(0,d)}}function m(e,n){return!e||!n||!e.item||typeof e.item!="object"?null:p(e.item,n,e.finish)}const k={picture:"var(--surface)",card:"var(--card-bg)"};export{k as HOVER_LAYER_GROUND,d as HOVER_MEDIA_LIMIT,m as cardRowHoverMedia,p as pickHoverMedia};
@@ -308,6 +308,7 @@ export declare const WEB_BUILDER_WORDS: {
308
308
  readonly "Claims bars": "Claims bars";
309
309
  readonly "Claims panel": "Claims panel";
310
310
  readonly "Claims panel (rows + defect bars)": "Claims panel (rows + defect bars)";
311
+ readonly Classic: "Classic";
311
312
  readonly "Clear colors": "Clear colors";
312
313
  readonly "Clear this site\u2019s colors?": "Clear this site’s colors?";
313
314
  readonly "Click a colour, text style or spacing to put a link to it in your code, at the cursor. If you change Styles later, this section changes with it.": "Click a colour, text style or spacing to put a link to it in your code, at the cursor. If you change Styles later, this section changes with it.";
@@ -453,6 +454,7 @@ export declare const WEB_BUILDER_WORDS: {
453
454
  readonly "Each website created from this template sets its own social link afterwards.": "Each website created from this template sets its own social link afterwards.";
454
455
  readonly "Each website created from this template sets its own {what} afterwards.": "Each website created from this template sets its own {what} afterwards.";
455
456
  readonly "Easy to read": "Easy to read";
457
+ readonly Edges: "Edges";
456
458
  readonly Edit: "Edit";
457
459
  readonly "Edit code": "Edit code";
458
460
  readonly "Edit colors": "Edit colors";
@@ -1289,6 +1291,7 @@ export declare const WEB_BUILDER_WORDS: {
1289
1291
  readonly Texture: "Texture";
1290
1292
  readonly "Texture color": "Texture color";
1291
1293
  readonly "Texture opacity": "Texture opacity";
1294
+ readonly "Texture style": "Texture style";
1292
1295
  readonly "Thanks \u2014 we'll email you to confirm.": "Thanks — we'll email you to confirm.";
1293
1296
  readonly "The chat bubble is hidden across the whole site.": "The chat bubble is hidden across the whole site.";
1294
1297
  readonly "The colour fades into the page colour at the bottom": "The colour fades into the page colour at the bottom";
@@ -1440,12 +1443,13 @@ export declare const WEB_BUILDER_WORDS: {
1440
1443
  readonly "Website link": "Website link";
1441
1444
  readonly "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.": "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.";
1442
1445
  readonly "What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.": "What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.";
1446
+ readonly "What each card does when a shopper points at it. Show next image covers the card with this product's photos; a phone shows the card as it is. Rotate turns the wheel picture.": "What each card does when a shopper points at it. Show next image covers the card with this product's photos; a phone shows the card as it is. Rotate turns the wheel picture.";
1443
1447
  readonly "What people *say.*": "What people *say.*";
1444
1448
  readonly "What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.": "What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.";
1445
1449
  readonly "What this does when a shopper points at it, or taps it on a phone.": "What this does when a shopper points at it, or taps it on a phone.";
1446
1450
  readonly "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.": "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.";
1447
- readonly "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.";
1448
- readonly "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.";
1451
+ readonly "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos; a phone shows the picture as it is. Black and white shows it in grey until then.";
1452
+ readonly "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos; a phone shows the picture as it is. Black and white shows it in grey until then.";
1449
1453
  readonly "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.": "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.";
1450
1454
  readonly "What we count.": "What we count.";
1451
1455
  readonly WhatsApp: "WhatsApp";