efficient-web-builder 75.0.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 +29 -0
- package/dist/editor/components/storefront-editor.css +4 -2
- 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/editor-words-catalogue.d.ts +5 -0
- 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/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/HeroSection.d.ts +4 -1
- package/dist/render/components/HeroSection.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/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
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
|
+
|
|
3
32
|
## 75.0.0 - 2026-11-25
|
|
4
33
|
|
|
5
34
|
From main at `fa22c1e1`: #860, #863 (CI only: the verify job may take 30 minutes).
|
|
@@ -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 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};
|
|
@@ -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";
|