efficient-storefront-blocks 0.120.2 → 0.120.3
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 +22 -0
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/FilterBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/filter-look-fields.d.ts +14 -0
- package/dist/editor/lib/document/blocks/commerce/filter-look-fields.js +1 -0
- package/dist/index.js +30 -30
- package/dist/render/components/catalog/FilterPill.d.ts +7 -1
- package/dist/render/components/catalog/FilterPill.js +1 -1
- package/dist/render/components/catalog/ShopperFilters.js +1 -1
- package/dist/render/components/catalog/SortSelect.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +3 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpFilterButton.d.ts +7 -0
- package/dist/render/components/wheels-plp/PlpFilterButton.js +1 -0
- package/dist/render/components/wheels-plp/PlpSidebar.d.ts +1 -0
- package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/sections/catalog-text-size.d.ts +2 -0
- package/dist/render/lib/sections/catalog-text-size.js +1 -1
- package/dist/render/lib/sections/shopper-filters.d.ts +39 -0
- package/dist/render/lib/sections/shopper-filters.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.120.3 — 2026-11-18 — The wheel listing takes the filters' look
|
|
4
|
+
|
|
5
|
+
**For hosts:** no peer change. The storefront re-vendors `src/` with
|
|
6
|
+
`node scripts/sync-storefront-blocks.mjs`, then runs `just check`.
|
|
7
|
+
|
|
8
|
+
- **The wheel listing takes the filters' look** (#614): a new "Look" row in
|
|
9
|
+
its Filters group, with its own phone value. Side rail (default) is today's
|
|
10
|
+
rail beside the grid. Filters button draws one Filters pill beside the sort
|
|
11
|
+
that opens the same rail in a side panel. Nothing stored draws what it drew
|
|
12
|
+
before.
|
|
13
|
+
- **The Filters block offers "Filters button" on a computer too.** Its default
|
|
14
|
+
does not change. On every view, its Filters button now opens the block's
|
|
15
|
+
rail in the same side panel as the listing (it opened the bar's columns
|
|
16
|
+
under the pill). No stored page used it.
|
|
17
|
+
- **The toolbar sort box is 40 px tall** (it was 36): set to one height,
|
|
18
|
+
not padded. The listing, the Filters block and the Filter chips draw it.
|
|
19
|
+
The Filters pill beside it reads the same height. Both take the site's
|
|
20
|
+
button corners (the Corners setting, as every button does); unset =
|
|
21
|
+
square, as today.
|
|
22
|
+
- **`PillButton` takes an optional `size`** ("bar", the default, or
|
|
23
|
+
"toolbar": the toolbar sort's height).
|
|
24
|
+
|
|
3
25
|
## 0.120.2 — 2026-11-18 — A refused coupon is announced and keeps focus
|
|
4
26
|
|
|
5
27
|
- **A refused coupon code is announced, and the shopper's focus survives
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l}from"react/jsx-runtime";import{fitmentCellLookFields as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{fitmentCellLookFields as O}from"../fitment-cell-look-field.js";import h from"efficient-web-builder/editor/components/MultiSelectField";import E from"../../../../../components/WheelsPerRowField.js";import{PLP_GATE_DEFAULTS as I}from"../../../../../../render/components/wheels-plp/AlloyWheelsListing.js";import{SortIcon as C,CarIcon as N,HashIcon as y}from"efficient-easel/icons";import{filterLookFields as k}from"../filter-look-fields.js";import{DEFAULT_LISTING_FILTER_LOOK as _,LISTING_FILTER_LOOK_OPTIONS as H,LISTING_FILTER_LOOK_PHONE_OPTIONS as R,LISTING_FILTER_LOOK_PROP as v}from"../../../../../../render/lib/sections/shopper-filters.js";import{useEasel as b}from"efficient-easel/easel";import{text as w,textarea as G,panelNote as x,toggle as A,copyText as L,plainTextarea as g,cardImageField as W}from"efficient-web-builder/editor/lib/document/controls";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{headFieldsForPlacement as K}from"efficient-web-builder/format/lib/sections/section-head-placement";import{LISTING_HEAD_ROWS as D}from"../../../../../../render/lib/document/section-to-box-rows-listing.js";import{select as j,slider as z}from"efficient-web-builder/editor/lib/document/box-fields";import{noControlField as Y,NoControlMark as B}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{PLP_SORT_LABELS as M}from"../../../../../../render/lib/wheels/plp-filters.js";import{resolvePlpKinds as U}from"../../../../../../render/lib/catalog/plp-item.js";import{productKindsField as V}from"../shared-fields.js";import{plpVehicleCopy as Z}from"../../../../../../render/lib/catalog/plp-vehicle-copy.js";import{ALLOYWHEELSLISTING_PH as u,AlloyWheelsListingSlots as a}from"../../../../../../render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js";import{say as q}from"efficient-web-builder/format/lib/editor-words";import{ALLOY_WHEELS_LISTING_TYPE as J}from"../../../../../../render/lib/document/document-nodes.js";const s=[{value:"showInStock",label:"In stock"},{value:"showCollection",label:"Collection"},{value:"showPrice",label:"Price"}],Q="Brand, Color, Size and PCD follow the product type. Set them in Product types.",T="root:default-zone";function X(){const{appState:o,dispatch:t}=b(e=>e),r=o.ui.itemSelector,P=o.data.content??[],p=r&&(r.zone===void 0||r.zone===T)?r.index:-1,n=p>=0?P[p]:void 0,c=n?.props??{},S=s.filter(e=>c[e.value]!==!1).map(e=>e.value);return l(h,{label:"Filters",options:s.map(e=>({...e,label:q(e.label)})),value:S,onChange:e=>{if(!n||n.type!==J)return;const m={};for(const d of s){const f=e.includes(d.value);c[d.value]!==!1!==f&&(m[d.value]=f)}Object.keys(m).length&&t({type:"replace",destinationZone:T,destinationIndex:p,data:{...n,props:{...n.props,...m}}})}})}const F=()=>Y({type:"custom",render:()=>l(B,{})},"always"),Pe={fields:{_gHeader:i("Header"),heading:w("Heading",u.heading),intro:G("Intro",u.intro),_gResults:i("Products"),kinds:V(),defaultSort:j("Opening sort",l(C,{}),Object.entries(M).map(([o,t])=>({value:o,label:t})),"recommended"),template:a.template,facetTemplate:a.facetTemplate,railTemplate:a.railTemplate,railHeadTemplate:a.railHeadTemplate,_gFilters:i("Filters"),...k(v,{options:H,fallback:_},{options:R,fallback:_}),showInStock:{type:"custom",label:"Filters",options:s,render:()=>l(X,{})},showCollection:F(),showPrice:F(),_nFieldFilters:x(Q),_gVehicle:i("Car prompt"),askForCar:A("Ask for the car first",!0,l(N,{})),gateHeading:L("Welcome heading",I.heading),gateIntro:g("Welcome intro",I.intro),...O,_gGrid:i("Grid"),columns:{type:"custom",render:({value:o,onChange:t})=>l(E,{value:o,onChange:t})},perPage:z("Products per page",l(y,{}),8,60,4,24),_gCards:i("Cards"),cardImage:W()},resolveFields:(o,{fields:t})=>{const r=Z(U(o.props.kinds));return K({...t,gateHeading:L("Welcome heading",r.gateHeading),gateIntro:g("Welcome intro",r.gateIntro)},o.props.headPlacement,D)}};export{Pe as AlloyWheelsListingFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{MoveDownIcon as s,SortIcon as r}from"efficient-easel/icons";import{group as t}from"efficient-easel/screen/lib/document/box-fields";import{multiSelect as m,toggle as e}from"efficient-web-builder/editor/lib/document/controls";import{select as n}from"efficient-web-builder/editor/lib/document/box-fields";import{truthy as O,withRowRules as _}from"efficient-web-builder/render/lib/document/show-when";import{facetNote as p}from"../controls.js";import{filterLookFields as f}from"../filter-look-fields.js";import{FilterBlockSlots as S}from"../../../../../../render/lib/document/blocks/commerce/FilterBlock/meta.js";import{DEFAULT_FILTER_LOOK as F,DEFAULT_FILTER_LOOK_PHONE as L,DEFAULT_OPENING_SORT as T,FILTER_LOOK_OPTIONS as c,FILTER_LOOK_PHONE_OPTIONS as E,SHOWN_FILTER_OPTIONS as I}from"../../../../../../render/lib/sections/shopper-filters.js";import{PLP_SORT_LABELS as h}from"../../../../../../render/lib/wheels/plp-filters.js";const a=Object.entries(h).map(([i,l])=>({value:i,label:l})),g="follow the product type. Set them in Product types.",b={fields:_({...S,_gFilters:t("Filters shown"),filtersShown:m("Filters shown",I,"None — Product types only"),_nFieldFilters:p(["size","finish"],g),_gBehavior:t("Behavior"),showSort:e("Sort",!0,o(r,{})),openingSort:n("Opening sort",o(r,{}),a,T),filtersBelow:e("Also filters the grids below",!1,o(s,{})),_gArrangement:t("Arrangement"),...f("look",{options:c,fallback:F},{options:E,fallback:L})},[[["openingSort"],O("showSort")]])};export{b as FilterBlockFields};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type LookOption = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function filterLookFields(key: string, look: {
|
|
6
|
+
options: readonly LookOption[];
|
|
7
|
+
fallback: string;
|
|
8
|
+
}, phone: {
|
|
9
|
+
options: readonly LookOption[];
|
|
10
|
+
fallback: string;
|
|
11
|
+
}): {
|
|
12
|
+
[x: string]: import("efficient-easel/screen/lib/document/box-fields").SelectField;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{phoneKey as f}from"efficient-easel/draw";import{FilterIcon as l,LayoutIcon as p}from"efficient-easel/icons";import{deviceField as e}from"efficient-easel/screen/lib/document/device-fields";import{select as m}from"efficient-web-builder/editor/lib/document/box-fields";function k(o,r,t){return{[o]:e("desktop",m("Look",i(p,{}),r.options,r.fallback)),[f(o)]:e("mobile",m("Look",i(l,{}),t.options,t.fallback))}}export{k as filterLookFields};
|