efficient-storefront-blocks 0.130.3 → 0.130.4

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,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.130.4 — 2026-11-26 — A bound Product Grid draws its Card ground, Words and Button rows
4
+
5
+ **For hosts:** no breaking change, no peer change. The storefront re-vendors
6
+ `src/` with `node scripts/sync-storefront-blocks.mjs`.
7
+
8
+ - **Card ground and Words** reach a bound Product Grid's cards (the product
9
+ page's "You may also like"). The panel offered both rows there, but the
10
+ bound grid drew the flat card with its words under the picture.
11
+ - **The Button row** is offered on a bound grid, also with the words in a
12
+ Box of their own: its eye hides the "View more" link, and a typed text
13
+ names it. The address stays the listing's own. Its hint is the page's own
14
+ words ("View more wheels"), and it is typed in the panel, so the panel
15
+ shows it even when unset. A Button block in a head box beside the grid
16
+ keeps its own row; each link hides with its own eye.
17
+ - Each row shows only where the grid's answer draws it: no Button row on a
18
+ bundle answer (no View more link), no Card ground or Words on a tyre answer
19
+ (the tyre section takes neither).
20
+ - Unset, every bound grid draws as before: flat cards, words under, and the
21
+ "View more" link with the listing's words.
22
+
3
23
  ## 0.130.3 — 2026-11-25 — Check on builder 75.2.0
4
24
 
5
25
  - **Builder 75.2.0.** The dev builder moves to `^75.2.0`, whose Cards gain Last card fills its row (`fillLastRow`, eff-erp/efficient-web-builder#868), declared in the settings census. The package's peer range is unchanged.
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import N from"../../../../../components/CategorySource.js";import{headerKeysOfPlace as U,LAYOUT_FIELD_KEYS as w,SECTION_THEME_FIELD_KEYS as G,SECTION_SHAPE_FIELD_KEYS as k,SECTION_ANIM_FIELD_KEYS as H}from"efficient-web-builder/editor/lib/document/field-groups";import{FEW_CARDS as y,TITLE_SIZES as x}from"../../../../../../render/components/ProductGridSection.js";import{CARD_GROUNDS as M,CARD_WORDS as b}from"../../../../../../render/components/GridCardTemplate.js";import{DEFAULT_TITLE_SIZE as B}from"../../../../../../render/lib/sections/product-grid-title.js";import{TextSizeIcon as W,ColumnsIcon as m,ListIcon as K,HashIcon as _,PageIcon as Y,ColumnWidthsIcon as j,BackgroundIcon as z,CaptionIcon as Z}from"efficient-easel/icons";import{toggle as v,text as u,textarea as p,sourceField as V,linkField as q,containerGapRows as f}from"efficient-web-builder/editor/lib/document/controls";import{VIEW_KEY_ACCESS as J,group as i,phoneTwinFields as E}from"efficient-easel/screen/lib/document/box-fields";import{PRODUCT_GRID_COLUMNS as s,PRODUCT_GRID_PHONE_COLUMNS as n,PRODUCT_GRID_TABLET_COLUMNS as P,builtInTabletColumns as Q}from"../../../../../../render/lib/sections/product-grid-columns.js";import{select as r,slider as e}from"efficient-web-builder/editor/lib/document/box-fields";import{isEditorOnDynamicPage as X}from"efficient-web-builder/format/lib/document/editor-page-context";import{productKindsField as $}from"../shared-fields.js";import{ALL_PRODUCTS_SLUG as oo}from"../../../../../../render/lib/wheels/grid-source.js";import{headFieldsForPlacement as to,SPLITTABLE_SECTIONS as ro}from"efficient-web-builder/format/lib/sections/section-head-placement";import{PH as O}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{slotRowsField as eo}from"efficient-web-builder/editor/lib/document/blocks/shared-fields";import{PRODUCTGRID_PH as S}from"../../../../../../render/lib/document/blocks/commerce/placeholders.js";import{PRODUCT_GRID_TYPE as d}from"../../../../../../render/lib/document/document-nodes.js";import{DEFAULT_MORE_PRODUCTS as io,DEFAULT_PER_PAGE as so,MORE_PRODUCTS_OPTIONS as no,PER_PAGE_RANGE as c}from"../../../../../../render/lib/sections/product-grid-pages.js";import{truthy as a,withRowRules as T}from"efficient-web-builder/render/lib/document/show-when";import{BOUND_TO_THE_RECORD as lo,OFF_DYNAMIC_PAGE as C}from"../page-rules.js";import{ProductGridSlots as R}from"../../../../../../render/lib/document/blocks/commerce/ProductGrid/meta.js";import{BAND_TO_SECTION_PAD as mo}from"efficient-web-builder/render/lib/content/section-padding";const co=new Set([...U("Content"),"_gProducts","source","_gHeader","num","title","titleSize","description","_gLayout","columns","columnsTablet","columnsPhone","limit","fewCards","cardGround","cardWords",...Object.keys(f(d)),"template",...mo.map(([t])=>t),...w,...G,...k,...H]),ao={not:lo},D={field:"moreProducts",is:"pages"},I=e("Columns",o(m,{}),s.min,s.max,1,s.fallback),{columns:_o,columnsTablet:uo}=E("columns",I,J,{phoneRow:e("Columns",o(m,{}),P.min,P.max,1,s.fallback,"",{clear:{phoneFollows:!1,hint:t=>Q(t.follows)}})}),{columnsPhone:po}=E("columns",I,void 0,{phoneRow:e("Columns",o(m,{}),n.min,n.max,1,n.min,"",{clear:{phoneFollows:!1,hint:n.min}})}),fo={columns:_o,columnsTablet:uo,columnsPhone:po},Wo={fields:T({_gHeader:i("Header"),num:u("Number",S.num),title:p("Heading",O.sectionHeading),titleSize:r("Heading size",o(W,{}),x,B),description:p("Body",O.body),_gProducts:i("Products"),source:V(N),kinds:$(),productList:eo(d),products:R.products,template:R.template,_gLink:i("Link"),linkText:u("Button",S.link),linkHref:q("Link"),_gLayout:i("Grid"),...fo,moreProducts:r("More products",o(Y,{}),no,io),perPage:e("Products per page",o(_,{}),c.min,c.max,c.step,so),showAll:v("Show all items",!1,o(K,{})),limit:e("Items to display",o(_,{}),1,12,1,8),fewCards:r("Short row",o(j,{}),[...y],"fill"),cardGround:r("Card ground",o(z,{}),[...M],"flat"),cardWords:r("Words",o(Z,{}),[...b],"under"),...f(d)},[[["kinds"],{field:"source.slug",is:oo}],[["products","productList"],{not:a("source.slug")}],[["limit"],{any:[C,{not:a("showAll")}]}],[["perPage"],D],[["showAll","limit"],{not:D}],[["linkHref"],{any:[C,{not:a("linkText.hidden")}]}]]),resolveFields:(t,{fields:L,parent:Eo})=>{const h=L,g=t.props,l=to(h,g.headPlacement,ro.ProductGrid.headRows);if(!X())return l;const A=Object.keys(l).filter(F=>!co.has(F));return T(l,[[A,ao]])}};export{Wo as ProductGridFields};
1
+ import{jsx as t}from"react/jsx-runtime";import x from"../../../../../components/CategorySource.js";import{headerKeysOfPlace as M,LAYOUT_FIELD_KEYS as b,SECTION_THEME_FIELD_KEYS as B,SECTION_SHAPE_FIELD_KEYS as K,SECTION_ANIM_FIELD_KEYS as Y}from"efficient-web-builder/editor/lib/document/field-groups";import{FEW_CARDS as j,TITLE_SIZES as z}from"../../../../../../render/components/ProductGridSection.js";import{CARD_GROUNDS as V,CARD_WORDS as Z}from"../../../../../../render/components/GridCardTemplate.js";import{DEFAULT_TITLE_SIZE as v}from"../../../../../../render/lib/sections/product-grid-title.js";import{TextSizeIcon as q,ColumnsIcon as p,ListIcon as J,HashIcon as T,PageIcon as Q,ColumnWidthsIcon as X,BackgroundIcon as $,CaptionIcon as oo}from"efficient-easel/icons";import{withPanelOnly as to,toggle as eo,text as u,textarea as P,sourceField as ro,linkField as no,containerGapRows as I}from"efficient-web-builder/editor/lib/document/controls";import{VIEW_KEY_ACCESS as io,group as s,phoneTwinFields as C}from"efficient-easel/screen/lib/document/box-fields";import{PRODUCT_GRID_COLUMNS as l,PRODUCT_GRID_PHONE_COLUMNS as m,PRODUCT_GRID_TABLET_COLUMNS as D,builtInTabletColumns as so}from"../../../../../../render/lib/sections/product-grid-columns.js";import{select as r,slider as n}from"efficient-web-builder/editor/lib/document/box-fields";import{isEditorOnDynamicPage as lo}from"efficient-web-builder/format/lib/document/editor-page-context";import{productKindsField as mo}from"../shared-fields.js";import{ALL_PRODUCTS_SLUG as co}from"../../../../../../render/lib/wheels/grid-source.js";import{HEAD_ROWS_SHOW_WHEN as ao,headFieldsForPlacement as _o,SPLITTABLE_SECTIONS as po}from"efficient-web-builder/format/lib/sections/section-head-placement";import{PH as L}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{slotRowsField as uo}from"efficient-web-builder/editor/lib/document/blocks/shared-fields";import{PRODUCTGRID_PH as E}from"../../../../../../render/lib/document/blocks/commerce/placeholders.js";import{PRODUCT_GRID_TYPE as O}from"../../../../../../render/lib/document/document-nodes.js";import{DEFAULT_MORE_PRODUCTS as Eo,DEFAULT_PER_PAGE as Oo,MORE_PRODUCTS_OPTIONS as fo,PER_PAGE_RANGE as f}from"../../../../../../render/lib/sections/product-grid-pages.js";import{truthy as S,withRowRules as R}from"efficient-web-builder/render/lib/document/show-when";import{BOUND_TO_THE_RECORD as h,BOUND_TO_THE_RECORD_ROW as So,OFF_DYNAMIC_PAGE as A,PAGE_FACTS as Ro}from"../page-rules.js";import{relatedViewMore as To}from"../../../../../../render/lib/catalog/related-cards.js";import{answersWithProducts as N,DEFAULT_RELATIONSHIP as F,RELATIONSHIPS as g,relationshipByKey as Po}from"../../../../../../render/lib/catalog/relationships.js";import{ProductGridSlots as w}from"../../../../../../render/lib/document/blocks/commerce/ProductGrid/meta.js";import{BAND_TO_SECTION_PAD as Io}from"efficient-web-builder/render/lib/content/section-padding";const i="linkText";function Co(o){const e=Po(typeof o=="string"?o:F);return e&&N(e)?To(e).label:E.link}const H=o=>({field:"relationship",in:o,default:F}),Do={not:H(g.filter(o=>!N(o)).map(o=>o.key))},Lo=H(g.filter(o=>o.to==="tyre").map(o=>o.key)),ho={any:[ao,{all:[So,Do]}]},Ao={not:{all:[h,Lo]}},No=new Set([...M("Content"),"_gProducts","source","_gHeader","num","title","titleSize","description","_gLayout","columns","columnsTablet","columnsPhone","limit","fewCards","cardGround","cardWords",i,...Object.keys(I(O)),"template",...Io.map(([o])=>o),...b,...B,...K,...Y]),Fo={not:h},U={field:"moreProducts",is:"pages"},W=n("Columns",t(p,{}),l.min,l.max,1,l.fallback),{columns:go,columnsTablet:wo}=C("columns",W,io,{phoneRow:n("Columns",t(p,{}),D.min,D.max,1,l.fallback,"",{clear:{phoneFollows:!1,hint:o=>so(o.follows)}})}),{columnsPhone:Ho}=C("columns",W,void 0,{phoneRow:n("Columns",t(p,{}),m.min,m.max,1,m.min,"",{clear:{phoneFollows:!1,hint:m.min}})}),Uo={columns:go,columnsTablet:wo,columnsPhone:Ho},lt={fields:R({_gHeader:s("Header"),num:u("Number",E.num),title:P("Heading",L.sectionHeading),titleSize:r("Heading size",t(q,{}),z,v),description:P("Body",L.body),_gProducts:s("Products"),source:ro(x),kinds:mo(),productList:uo(O),products:w.products,template:w.template,_gLink:s("Link"),linkText:u("Button",E.link),linkHref:no("Link"),_gLayout:s("Grid"),...Uo,moreProducts:r("More products",t(Q,{}),fo,Eo),perPage:n("Products per page",t(T,{}),f.min,f.max,f.step,Oo),showAll:eo("Show all items",!1,t(J,{})),limit:n("Items to display",t(T,{}),1,12,1,8),fewCards:r("Short row",t(X,{}),[...j],"fill"),cardGround:r("Card ground",t($,{}),[...V],"flat"),cardWords:r("Words",t(oo,{}),[...Z],"under"),...I(O)},[[["kinds"],{field:"source.slug",is:co}],[["products","productList"],{not:S("source.slug")}],[["limit"],{any:[A,{not:S("showAll")}]}],[["perPage"],U],[["showAll","limit"],{not:U}],[["linkHref"],{any:[A,{not:S("linkText.hidden")}]}]]),showWhenFacts:Ro,resolveFields:(o,e)=>{const y=e.fields,c=o.props,d=_o(y,c.headPlacement,po.ProductGrid.headRows.filter(_=>_!==i)),k=c.dynamic===!0&&i in d?{...d,[i]:to(u("Button",Co(c.relationship)))}:d,a=R(k,[[[i],ho],[["cardGround","cardWords"],Ao]]);if(!lo())return a;const G=Object.keys(a).filter(_=>!No.has(_));return R(a,[[G,Fo]])}};export{lt as ProductGridFields};