efficient-web-builder 74.13.0 → 75.1.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 +45 -0
- package/dist/editor/components/storefront-editor.css +4 -2
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Grid/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/box-fields.d.ts +17 -0
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/format/lib/content/grid-carousel.d.ts +12 -0
- package/dist/format/lib/content/grid-carousel.js +1 -0
- package/dist/format/lib/content/hover-media.d.ts +0 -6
- package/dist/format/lib/content/hover-media.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +8 -2
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/hero-slide-change.d.ts +18 -0
- package/dist/format/lib/hero-slide-change.js +1 -0
- package/dist/format/lib/hero-wipe.d.ts +2 -0
- package/dist/format/lib/hero-wipe.js +1 -0
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Grid.d.ts +4 -1
- package/dist/render/components/Grid.js +1 -1
- package/dist/render/components/GridCarousel.d.ts +9 -0
- package/dist/render/components/GridCarousel.js +1 -0
- package/dist/render/components/HeroArrows.d.ts +3 -6
- package/dist/render/components/HeroArrows.js +1 -1
- package/dist/render/components/HeroSection.d.ts +4 -1
- package/dist/render/components/HeroSection.js +1 -1
- package/dist/render/components/HoverMediaLayer.d.ts +2 -18
- package/dist/render/components/HoverMediaLayer.js +1 -1
- package/dist/render/components/ImageBlock.d.ts +0 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 75.1.0 - 2026-11-25
|
|
4
|
+
|
|
5
|
+
From main at `94b213f4`: #862, #861, and the efficient-shell 16 peer.
|
|
6
|
+
|
|
7
|
+
A minor: two new row choices and a widened peer. No export removed. The
|
|
8
|
+
efficient-shell peer widens to `^15.8.0 || ^16.0.0`; efficient-easel stays
|
|
9
|
+
`^38.0.0`.
|
|
10
|
+
|
|
11
|
+
**For hosts:**
|
|
12
|
+
- Shell 16 is in range. Shell 16.0.0 removed only `UndoControls`, which
|
|
13
|
+
nothing here imports. The repository still builds and tests against the
|
|
14
|
+
floor, 15.8.0.
|
|
15
|
+
- No look change for a stored hero: a hero that holds only `autoplay` reads
|
|
16
|
+
On a timer (on) or By hand (off), as before.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **Hero: Change slides By hand, On a timer or On scroll** (#862): the Auto-advance
|
|
21
|
+
switch becomes one icon choice (`lib/hero-slide-change`). On scroll pins the
|
|
22
|
+
slideshow while the page scrolls Scroll per slide (default 25% of the
|
|
23
|
+
screen) per slide and reveals each with the Wipe (`lib/hero-wipe`); less
|
|
24
|
+
motion is a cut.
|
|
25
|
+
|
|
26
|
+
- **Grid: Layout Grid or Carousel** (#861): one icon choice. Grid (the
|
|
27
|
+
default, and every stored Grid) draws byte for byte as before. Carousel shows
|
|
28
|
+
one centred tile (Tile width) with its neighbours at the sides, in a loop,
|
|
29
|
+
stepped by the Hero's arrows on a desktop, a swipe on a phone or the arrow
|
|
30
|
+
keys; less motion is no slide.
|
|
31
|
+
|
|
32
|
+
## 75.0.0 - 2026-11-25
|
|
33
|
+
|
|
34
|
+
From main at `fa22c1e1`: #860, #863 (CI only: the verify job may take 30 minutes).
|
|
35
|
+
|
|
36
|
+
A major: exports removed (below). Peers unchanged (efficient-easel `^38.0.0`, efficient-shell `^15.8.0`).
|
|
37
|
+
|
|
38
|
+
**For hosts:**
|
|
39
|
+
- ⚠️ **Breaking:** `HoverMediaLayer` takes no `name` prop. A host that passes one drops it.
|
|
40
|
+
- ⚠️ **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`.
|
|
41
|
+
- 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.
|
|
42
|
+
- New mark: the hover layer carries `data-hover-fit` (`cover` for photos, `contain` for renderings), so a host stylesheet can place the two apart.
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- **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".
|
|
47
|
+
|
|
3
48
|
## 74.13.0 - 2026-11-24
|
|
4
49
|
|
|
5
50
|
From main at `29474c50`: #857.
|
|
@@ -3927,8 +3927,10 @@ input.sf-list-marking {
|
|
|
3927
3927
|
shell's own `.es-flink`, and the shell carries the same two lines for it.
|
|
3928
3928
|
Every consumer control that is a flex or grid box written for a block row
|
|
3929
3929
|
belongs on this selector; the day one is fixed somewhere else instead, the
|
|
3930
|
-
list stops being the place to look.
|
|
3931
|
-
|
|
3930
|
+
list stops being the place to look. `.sf-tiles-row` is box-fields
|
|
3931
|
+
`pictureTilesRow` (Change slides, a Grid's Layout). */
|
|
3932
|
+
.es-field-ctl > .sf-gallery-layouts,
|
|
3933
|
+
.es-field-ctl > .sf-tiles-row {
|
|
3932
3934
|
flex: 1 1 auto;
|
|
3933
3935
|
min-width: 0;
|
|
3934
3936
|
}
|
|
@@ -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
|
|
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{GRID_COLUMNS_FALLBACK as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{GRID_COLUMNS_FALLBACK as I,GRID_MAX_COLUMNS as c,GRID_MOBILE_MAX_COLUMNS as d,GRID_MOBILE_MIN_COLUMNS as t}from"../../../../../../format/lib/content/grid-span.js";import{ColumnsIcon as s,GridIcon as A,LayoutIcon as E,SlidePickerCardsIcon as U,WidthIcon as L}from"efficient-easel/icons";import{deviceField as i}from"efficient-easel/screen/lib/document/device-fields";import{iconPickerRow as C,slider as r}from"../../../box-fields.js";import{withShowWhen as m}from"../../../../../../format/lib/document/show-when-attach.js";import{CAROUSEL_TILE_DEFAULT as O,CAROUSEL_TILE_MAX as _,CAROUSEL_TILE_MIN as l,CAROUSEL_TILE_PHONE_DEFAULT as S,GRID_LAYOUT_DEFAULT as T,GRID_LAYOUT_LABELS as p,GRID_LAYOUTS as R}from"../../../../../../format/lib/content/grid-carousel.js";import{containerGapRows as a}from"../../../controls.js";import{GridSlots as u}from"../../../../../../format/lib/document/blocks/general/Grid/meta.js";const G={grid:o(A,{}),carousel:o(U,{})},n={field:"layout",is:"carousel"},P={fields:{layout:C("Layout",o(E,{}),R.map(e=>({label:p[e],value:e,picture:G[e]})),T),carouselTile:m(i("desktop",r("Tile width",o(L,{}),l,_,1,O,{kind:"size",base:"%"})),n),carouselTilePhone:m(i("mobile",r("Tile width",o(L,{}),l,_,1,S,{kind:"size",base:"%"})),n),columns:i("desktop",r("Columns",o(s,{}),1,c,1,I)),mobileColumns:i("mobile",r("Columns",o(s,{}),t,d,1,t)),...a("Grid"),content:u.content}};export{P as GridFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as P,REEL_SHAPE_DEFAULT as h,HERO_REEL_SHAPES as u,REEL_SHAPE_LABELS as I,REEL_SHOWN_DEFAULT as T}from"../../../../../../format/lib/reel.js";import{HERO_TEXTURE_SHAPE_DEFAULT as w,HERO_TEXTURE_SHAPE_OPTIONS as D,HERO_TEXTURE_SHOWN_DEFAULT as C}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as g,HERO_ARROW_SHAPE_LABELS as f,HERO_ARROW_SHAPES as W,HERO_ARROWS_PLACEMENT_DEFAULT as U,HERO_ARROWS_SHOWN_DEFAULT as N}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as c,EyeIcon as E,HandIcon as k,ScrollMoveDownIcon as p,OpacityIcon as y,PhoneIcon as a,PlayIcon as F,SlideArrowsBareIcon as x,SlideArrowsRoundIcon as b,SlideArrowsSquareIcon as B,SlidePickerBarIcon as M,SlidePickerCardsIcon as q,SlidePickerDotsIcon as G,SlidePickerNumbersIcon as X,SlidePickerSquaresIcon as j,SquareIcon as R,StylesIcon as V}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as Y}from"efficient-shell/icons/efficient-looks";const K=Y,v={cards:e(q,{}),dots:e(G,{}),numbers:e(X,{}),bar:e(M,{}),squares:e(j,{})},z={outline:e(b,{}),solid:e(K,{}),square:e(B,{}),bare:e(x,{})};import{toggle as l}from"../../../controls.js";import{HERO_PHONE_WORDS_ROWS as s,HERO_WORDS_ROWS as J,HERO_TEXTURE_COLOR_ROW as Q,heroHeightFields as Z}from"../../hero-shared-fields.js";import{group as r}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as $,iconPickerRow as d,pictureTilesRow as ee,placementField as O,segmented as m,select as oe,slider as n}from"../../../box-fields.js";import{deviceField as _,deviceNote as re}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as ie,HERO_PHONE_SIDEWAYS_LABEL as te,HERO_PHONE_UPDOWN_DEFAULT as Ee,HERO_PHONE_UPDOWN_LABEL as le,phoneSidewaysPoints as se,phoneUpDownPoints as ne}from"../../../../../../format/lib/hero-phone-stack.js";import{withShowWhen as A}from"../../../../../../format/lib/document/show-when-attach.js";import{HERO_SCROLL_PER_SLIDE_DEFAULT as _e,HERO_SCROLL_PER_SLIDE_MAX as Se,HERO_SCROLL_PER_SLIDE_MIN as ce,HERO_SLIDE_CHANGE_LABELS as pe,HERO_SLIDE_CHANGES as ae,slideChangeOf as Re}from"../../../../../../format/lib/hero-slide-change.js";import{HeroSlots as L}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const de={manual:e(k,{}),timer:e(c,{}),scroll:e(p,{})},Oe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},me={field:"slideChange",is:"scroll"},Ne={fields:{_dDevice:re(),_gContent:r("Content"),slides:L.slides,strip:L.strip,_gStyle:r("Style"),alignment:$(),_gTexture:r("Texture"),showTexture:l("Show texture",C,e(E,{})),textureColor:Q,textureOpacity:n("Texture opacity",e(y,{}),0,100,1,40,"%"),textureShape:oe("Texture style",e(V,{}),D,w),_gLayout:r("Layout"),...Z(),...J,_gAutoplay:r("Auto-slide"),slideChange:ee("Change slides",e(F,{}),ae.map(o=>({label:pe[o],value:o,picture:de[o]})),"manual"),autoplayInterval:A(n("Still time per slide",e(c,{}),2,15,1,6,"s"),Oe),scrollPerSlide:A(n("Scroll per slide",e(p,{}),ce,Se,1,_e,{kind:"height",base:"%"}),me),_gPicker:r("Slide picker"),showPicker:l("Show slide picker",T,e(E,{})),pickerShape:d("Slide picker shape",e(R,{}),u.map(o=>({label:I[o],value:o,picture:v[o]})),h),pickerPlacement:O("Slide picker placement",{fallback:P}),_gArrows:r("Arrows"),showArrows:l("Show arrows",N,e(E,{})),arrowsShape:d("Arrows shape",e(R,{}),W.map(o=>({label:f[o],value:o,picture:z[o]})),g),arrowsPlacement:O("Arrows placement",{fallback:U}),_gPhone:_("mobile",r("On a phone")),phoneUpDown:_("mobile",m(le,e(a,{}),ne(),Ee)),phoneSideways:_("mobile",m(te,e(a,{}),se(),ie)),phoneWordsTop:s.phoneWordsTop,phoneWordsBottom:s.phoneWordsBottom,phoneBoxGap:s.phoneBoxGap},resolveFields:(o,{fields:i})=>{const H=o.props??{},S=Re(H),t=i.slideChange;return!t||t.currentValue===S?i:{...i,slideChange:{...t,currentValue:S}}}};export{Ne as HeroFields};
|
|
@@ -39,6 +39,23 @@ export declare function pickerCellsOf<V extends string>(options: readonly {
|
|
|
39
39
|
value: V;
|
|
40
40
|
}[];
|
|
41
41
|
export declare function pickerNoneIcon(glyph: ReactNode, word: ReactNode): ReactElement;
|
|
42
|
+
export declare function pictureTilesRow<V extends string>(label: string, icon: ReactElement, options: readonly {
|
|
43
|
+
label: string;
|
|
44
|
+
value: V;
|
|
45
|
+
picture: ReactNode;
|
|
46
|
+
}[], fallback: V): {
|
|
47
|
+
options: {
|
|
48
|
+
value: V;
|
|
49
|
+
label: string;
|
|
50
|
+
}[];
|
|
51
|
+
render: (props: {
|
|
52
|
+
value?: unknown;
|
|
53
|
+
onChange: (v: V) => void;
|
|
54
|
+
field?: object;
|
|
55
|
+
readOnly?: boolean;
|
|
56
|
+
}) => import("react").FunctionComponentElement<import("efficient-easel/panel").SettingsFieldProps>;
|
|
57
|
+
type: "custom";
|
|
58
|
+
};
|
|
42
59
|
export declare function iconPickerRow<V extends string>(label: string, icon: ReactElement, options: readonly {
|
|
43
60
|
label?: string;
|
|
44
61
|
hint?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createElement as i}from"react";import{SettingsDefaultReset as
|
|
1
|
+
import{createElement as i}from"react";import{SettingsDefaultReset as P,SettingsField as v}from"efficient-easel/panel";import{boxFieldBuilders as T,describedAs as k,iconOf as N,onDesktopWords as W}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as C}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as O,PictureTiles as _,Tooltip as G,useShellStrings as L}from"efficient-shell/ui";import{RotateIcon as U}from"efficient-easel/icons";import{ANGLE_RANGE as g}from"../../../format/lib/content/box-angle.js";import{editorEaselWords as V,say as r}from"../../../format/lib/editor-words.js";const y=n=>r(n),D=C,l=T(y,{lengthUnits:D}),H=l.slider,te=l.select,le=l.Segmented,oe=l.segmented,ie=l.alignmentField,se=l.alignmentFields,ce=l.blockAlignmentField,re=l.blockAlignmentFields,de=l.boxJustifyField,ae=l.boxAlignField,ue=l.boxWrapField,pe=l.directionField,fe=l.gapField,me=l.placementField,ge=l.PlacementGridView,we=l.positionFields,xe=l.sidesPaddingFields,be=l.lengthUnitFields;function Fe(n,s){return H("Angle",i(U),g.min,g.max,g.step,n,"°",s)}const B=Symbol("efficient-web-builder.picture-picker-row"),J={width:"3.5rem",height:"2.75rem",words:!0};function K({value:n}){return L().iconNames[n]??n}function Y(n,s,e){return i(G,{content:e,className:"sf-pick-tip",children:i("span",{className:"sf-pick"},i("span",{className:"sf-pick-pic"},n),i("span",{className:"sf-pick-cap"},s))})}function j(n){const s=e=>e.label===void 0?i(K,{value:e.value}):r(e.label);return n.map(e=>({value:e.value,...e.label===void 0?{}:{label:r(e.hint??e.label)},icon:Y(e.picture,s(e),e.hint===void 0?s(e):r(e.hint))}))}function he(n,s){return i("span",{className:"sf-pick"},i("span",{className:"sf-pick-pic"},n),i("span",{className:"sf-pick-cap sf-pick-cap-closed"},s))}function ve(n,s,e,u){const d=o=>e.some(a=>a.value===o),p=e.map(o=>({value:o.value,label:o.label}));return{type:"custom",...k({},{type:"radio",label:n,options:p}),options:p,render:o=>{const a=o.field?.currentValue,t=d(o.value)?o.value:d(a)?a:u;return i(v,{label:r(n),icon:N(s)},i(_,{label:r(n),captions:!0,columns:e.length,className:"sf-tiles-row",value:t,onChange:c=>{o.readOnly!==!0&&o.onChange(c)},options:e.map(c=>({value:c.value,label:r(c.label),picture:c.picture}))}))}}}function ke(n,s,e,u,d={}){const p=t=>e.some(c=>c.value===t),o=t=>d.resolve?d.resolve(t):p(t)?t:void 0,a=e.map(t=>({value:t.value,...t.label===void 0?{}:{label:t.label},...t.showWhen?{showWhen:t.showWhen}:{}}));return{type:"custom",[B]:!0,...k({},{type:"radio",label:n,options:a}),options:a,render:t=>{const{value:c,onChange:w,field:x}=t,b=x?.options,R=j(e.filter(m=>!b||b.some(I=>I.value===m.value))),F="follows"in t,f=F?o(d.phoneRest?d.phoneRest(t.follows):t.follows)??u:void 0,A=x?.currentValue,S=o(c)??f??o(A)??u,E=c!=null&&c!=="",h=f===void 0?void 0:e.find(m=>m.value===f);return i(v,{label:r(n),icon:N(s),action:F?i(P,{words:V()?.panel,label:r(n),changed:E,detail:h?.label!==void 0?W(y,r(h.label),t.followsView):void 0,disabled:t.readOnly===!0,onReset:()=>w(void 0)}):void 0},i(O,{label:r(n),value:S,options:R,onChange:w,columns:d.columns,cell:d.cell??J,tooltips:!1,disabled:t.readOnly===!0}))}}}export{D as LENGTH_UNITS_TABLE,B as PICTURE_PICKER_ROW,ge as PlacementGridView,le as Segmented,K as ShellIconWord,ie as alignmentField,se as alignmentFields,Fe as angleRow,ce as blockAlignmentField,re as blockAlignmentFields,ae as boxAlignField,de as boxJustifyField,ue as boxWrapField,pe as directionField,fe as gapField,ke as iconPickerRow,be as lengthUnitFields,Y as pickerCellIcon,j as pickerCellsOf,he as pickerNoneIcon,ve as pictureTilesRow,me as placementField,we as positionFields,y as rowSay,oe as segmented,te as select,xe as sidesPaddingFields,H as slider};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const GRID_LAYOUTS: readonly ["grid", "carousel"];
|
|
2
|
+
export type GridLayout = (typeof GRID_LAYOUTS)[number];
|
|
3
|
+
export declare const GRID_LAYOUT_DEFAULT: GridLayout;
|
|
4
|
+
export declare const GRID_LAYOUT_LABELS: Readonly<Record<GridLayout, string>>;
|
|
5
|
+
export declare function gridLayoutOf(value: unknown): GridLayout;
|
|
6
|
+
export declare const CAROUSEL_TILE_DEFAULT = 50;
|
|
7
|
+
export declare const CAROUSEL_TILE_PHONE_DEFAULT = 80;
|
|
8
|
+
export declare const CAROUSEL_TILE_MIN = 30;
|
|
9
|
+
export declare const CAROUSEL_TILE_MAX = 90;
|
|
10
|
+
export declare function carouselTileOf(value: unknown, fallback: number): number;
|
|
11
|
+
export declare function carouselOffset(index: number, at: number, count: number): -1 | 0 | 1 | null;
|
|
12
|
+
export declare function carouselStep(at: number, step: number, count: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{parseOption as n}from"efficient-shell/format";import{finiteNumber as i}from"../finite-number.js";const f=["grid","carousel"],u="grid",E={grid:"Grid",carousel:"Carousel"};function x(t){return n(f,u,t)}const A=50,O=80,s=30,L=90;function a(t,e){const r=i(t);return r===void 0?e:Math.min(L,Math.max(s,r))}function c(t,e,r){if(r<=0)return null;const o=((t-e)%r+r)%r;return o===0?0:o===1?1:o===r-1?-1:null}function l(t,e,r){return r<=0?0:((t+e)%r+r)%r}export{A as CAROUSEL_TILE_DEFAULT,L as CAROUSEL_TILE_MAX,s as CAROUSEL_TILE_MIN,O as CAROUSEL_TILE_PHONE_DEFAULT,f as GRID_LAYOUTS,u as GRID_LAYOUT_DEFAULT,E as GRID_LAYOUT_LABELS,c as carouselOffset,l as carouselStep,a as carouselTileOf,x as gridLayoutOf};
|
|
@@ -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
|
|
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};
|
|
@@ -274,6 +274,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
274
274
|
readonly Cards: "Cards";
|
|
275
275
|
readonly "Cards 1, 3, 5 draw the other way round": "Cards 1, 3, 5 draw the other way round";
|
|
276
276
|
readonly "Cards 2, 4, 6 draw the other way round": "Cards 2, 4, 6 draw the other way round";
|
|
277
|
+
readonly Carousel: "Carousel";
|
|
277
278
|
readonly Cart: "Cart";
|
|
278
279
|
readonly Cash: "Cash";
|
|
279
280
|
readonly "Catalog Filter Bar": "Catalog Filter Bar";
|
|
@@ -594,6 +595,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
594
595
|
readonly Hairline: "Hairline";
|
|
595
596
|
readonly "Hairline borders": "Hairline borders";
|
|
596
597
|
readonly Half: "Half";
|
|
598
|
+
readonly Hand: "Hand";
|
|
597
599
|
readonly "Hand-picked products in a tidy grid.": "Hand-picked products in a tidy grid.";
|
|
598
600
|
readonly "Hard to read": "Hard to read";
|
|
599
601
|
readonly Header: "Header";
|
|
@@ -1077,6 +1079,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1077
1079
|
readonly Screens: "Screens";
|
|
1078
1080
|
readonly "Scripts and event attributes are removed for safety.": "Scripts and event attributes are removed for safety.";
|
|
1079
1081
|
readonly Scroll: "Scroll";
|
|
1082
|
+
readonly "Scroll per slide": "Scroll per slide";
|
|
1080
1083
|
readonly "Scroll-Over Text": "Scroll-Over Text";
|
|
1081
1084
|
readonly "Scrolling Bar": "Scrolling Bar";
|
|
1082
1085
|
readonly "Scrolls away": "Scrolls away";
|
|
@@ -1358,7 +1361,9 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1358
1361
|
readonly "Three stagger": "Three stagger";
|
|
1359
1362
|
readonly "Ticker items": "Ticker items";
|
|
1360
1363
|
readonly TikTok: "TikTok";
|
|
1364
|
+
readonly "Tile width": "Tile width";
|
|
1361
1365
|
readonly "Timeline entries": "Timeline entries";
|
|
1366
|
+
readonly Timer: "Timer";
|
|
1362
1367
|
readonly "Timezone chip": "Timezone chip";
|
|
1363
1368
|
readonly Tint: "Tint";
|
|
1364
1369
|
readonly "Tint color": "Tint color";
|
|
@@ -1443,12 +1448,13 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1443
1448
|
readonly "Website link": "Website link";
|
|
1444
1449
|
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.";
|
|
1445
1450
|
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.";
|
|
1451
|
+
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.";
|
|
1446
1452
|
readonly "What people *say.*": "What people *say.*";
|
|
1447
1453
|
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.";
|
|
1448
1454
|
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.";
|
|
1449
1455
|
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.";
|
|
1450
|
-
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
|
|
1451
|
-
readonly "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos
|
|
1456
|
+
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.";
|
|
1457
|
+
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.";
|
|
1452
1458
|
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.";
|
|
1453
1459
|
readonly "What we count.": "What we count.";
|
|
1454
1460
|
readonly WhatsApp: "WhatsApp";
|