efficient-storefront-blocks 0.119.2 → 0.120.1
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 +75 -0
- package/dist/chunks/{EditorPreviewCheckout-URRXDD74.js → EditorPreviewCheckout-BJXYQD6G.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-IA4YGOTE.js → SiteEditorProvider-YXH7PBRW.js} +1 -1
- package/dist/chunks/{chunk-R4NVEFBL.js → chunk-3E2YAOJH.js} +1 -1
- package/dist/chunks/{chunk-P6T6KGL3.js → chunk-3K5ORZAD.js} +1 -1
- package/dist/chunks/{chunk-DJBGDTYI.js → chunk-JM7XA3F6.js} +26 -26
- package/dist/chunks/{fitment-data-PUHJNPTL.js → fitment-data-SMLFCY4A.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductEyebrow/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductGallery/fields.d.ts +0 -4
- package/dist/editor/lib/document/blocks/commerce/ProductGallery/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductName/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/document/blocks/commerce/title-look-row.d.ts +4 -0
- package/dist/editor/lib/document/blocks/commerce/title-look-row.js +1 -0
- package/dist/editor/lib/document/config.d.ts +1 -0
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +12 -5
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +30 -30
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/LinkedProductHero.d.ts +4 -13
- package/dist/render/components/LinkedProductHero.js +1 -1
- package/dist/render/components/ProductHeroPanel.d.ts +4 -12
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/PublishedFooter.d.ts +3 -1
- package/dist/render/components/PublishedFooter.js +1 -1
- package/dist/render/components/PublishedHeader.d.ts +3 -1
- package/dist/render/components/PublishedHeader.js +1 -1
- package/dist/render/components/SignUpFind.d.ts +2 -1
- package/dist/render/components/SignUpFind.js +1 -1
- package/dist/render/components/SignUpSection.d.ts +1 -0
- package/dist/render/components/SignUpSection.js +1 -1
- package/dist/render/components/card-pieces/CardName.d.ts +2 -0
- package/dist/render/components/card-pieces/CardName.js +1 -1
- package/dist/render/components/card-pieces/HeadlineEyebrow.d.ts +7 -0
- package/dist/render/components/card-pieces/HeadlineEyebrow.js +1 -0
- package/dist/render/components/card-pieces/HeadlineName.d.ts +6 -0
- package/dist/render/components/card-pieces/HeadlineName.js +1 -0
- package/dist/render/components/card-pieces/ProductCardState.d.ts +12 -0
- package/dist/render/components/card-pieces/ProductCardState.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicProductGallery.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicProductHero.d.ts +4 -13
- package/dist/render/components/pdp-dynamic/DynamicProductHero.js +1 -1
- package/dist/render/lib/content/hero-seed.d.ts +22 -0
- package/dist/render/lib/content/hero-seed.js +1 -0
- package/dist/render/lib/content/title-look.d.ts +8 -0
- package/dist/render/lib/content/title-look.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductEyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +0 -4
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductName/render.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/render-config.d.ts +1 -0
- package/dist/render/lib/document/render-config.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-producthero.d.ts +1 -0
- package/dist/render/lib/document/section-to-box-rows-producthero.js +1 -0
- package/dist/render/lib/sections/hero-price-placement.d.ts +2 -5
- package/dist/render/lib/sections/hero-price-placement.js +1 -1
- package/dist/render/lib/sections/hero-trust-bullets.d.ts +0 -1
- package/dist/render/lib/sections/hero-trust-bullets.js +1 -1
- package/dist/words.d.ts +12 -5
- package/dist/words.js +1 -1
- package/package.json +4 -3
- package/dist/render/components/product-hero/trust-bullets.d.ts +0 -5
- package/dist/render/components/product-hero/trust-bullets.js +0 -1
- package/dist/render/lib/content/hero-price-seed.d.ts +0 -4
- package/dist/render/lib/content/hero-price-seed.js +0 -1
- /package/dist/chunks/{chunk-YY4RMNWM.js → chunk-ITCY3GG4.js} +0 -0
- /package/dist/chunks/{chunk-DJBGDTYI.js.LEGAL.txt → chunk-JM7XA3F6.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-5VQNKBJK.js → chunk-MR37ISPW.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEFAULT_HERO_PRICE_PLACEMENT as
|
|
1
|
+
import{DEFAULT_HERO_PRICE_PLACEMENT as t}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as e,DEFAULT_HERO_RATIO as r,DEFAULT_HERO_TEXT_ALIGN as l}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as E,DEFAULT_HERO_IMAGE_FIT as _}from"../../../../sections/hero-gallery.js";import{cardTemplateSlot as O}from"efficient-web-builder/format/lib/content/card-template";import{HERO_TEMPLATE_BLOCKS as m}from"../../../../content/hero-seed.js";import{HERO_OPTION_ALLOW as L,HERO_OPTION_SLOT as T}from"../../../../content/hero-option-seed.js";import{HERO_BUY_ALLOW as a,HERO_BUY_SLOT as i}from"../../../../content/hero-buy-seed.js";const o=O(),p={template:{...o,allow:[...o.allow,...m]},[T]:{type:"slot",allow:[...L]},[i]:{type:"slot",allow:[...a]}},f={label:"Product Hero",fields:p,defaultProps:{source:null,pricePlacement:t,showVehicleFitment:!0,heroLayout:e,imageRatio:r,textAlign:l,showSpecTable:!0,showPriceQuote:!0,galleryMode:E,imageFit:_}};export{f as ProductHeroMeta,p as ProductHeroSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{SITE_WIDTH_CAP as O}from"efficient-web-builder/format/lib/content/page-width";import{resolveWidth as g}from"efficient-web-builder/format/lib/content/section-width";import E from"../../../../../components/LinkedProductHero.js";import d from"../../../../../components/pdp-dynamic/DynamicProductHero.js";import P from"../../../../../components/SectionNotice.js";import{HERO_OPTION_SLOT as n}from"../../../../content/hero-option-seed.js";import{HERO_BUY_SLOT as a}from"../../../../content/hero-buy-seed.js";import{cardPressTitlesOf as L}from"efficient-web-builder/render/lib/document/card-press-titles";import{useCurrentProduct as y}from"../../../current-product.js";import{LINKED_HERO_RECORD_PROP as A,matchingLinkedRecord as k}from"../../../linked-hero-hydrate.js";import{isEditorOnDynamicPage as D}from"efficient-web-builder/format/lib/document/editor-page-context";import{DEFAULT_HERO_LAYOUT as w,DEFAULT_HERO_RATIO as I,DEFAULT_HERO_TEXT_ALIGN as x,parseHeroLayout as F,parseHeroRatio as S,parseHeroTextAlign as C}from"../../../../sections/hero-arrangement.js";import{say as U}from"efficient-web-builder/format/lib/editor-words";import{ProductHeroMeta as p}from"./meta.js";import{HideTaker as N}from"efficient-web-builder/render/components/ViewHideRoot";function b({source:e,editing:t=!1,showVehicleFitment:r=!0,heroLayout:f=w,imageRatio:u=I,textAlign:c=x,showSpecTable:l=!0,nodeId:T,template:s,optionTemplate:h,optionPressTitles:R,buyTemplate:_,linkedRecord:H}){const o={heroLayout:f,imageRatio:u,textAlign:c,showSpecTable:l,nodeId:T,template:s,optionTemplate:h,optionPressTitles:R,buyTemplate:_};if(y()||t&&D())return i(d,{editing:t,showVehicleFitment:r,...o});if(e?.slug){const m=e.kind??"wheel";return i(E,{slug:e.slug,kind:m,initialRecord:k(H,m,e.slug),editing:t,showVehicleFitment:r,...o})}return t?i(P,{size:"tall",children:U("Pick a product in the panel to fill this hero.")}):i(d,{showVehicleFitment:r,...o})}function V(e,t){return g(e,"full").mode!=="page"?t:i(N,{as:"div",style:{"--sf-content-cap":O},children:t})}const ie={...p,render:e=>V(e,i(b,{source:e.source,editing:e.editor?.isEditing,showVehicleFitment:e.showVehicleFitment??!0,heroLayout:F(e.heroLayout),imageRatio:S(e.imageRatio),textAlign:C(e.textAlign),showSpecTable:e.showSpecTable??!0,nodeId:typeof e.id=="string"?e.id:void 0,template:typeof e.template=="function"?e.template:void 0,optionTemplate:typeof e[n]=="function"?e[n]:void 0,optionPressTitles:L(e,n),buyTemplate:typeof e[a]=="function"?e[a]:void 0,linkedRecord:e[A]}))};export{ie as ProductHeroRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as i}from"react/jsx-runtime";import d
|
|
1
|
+
"use client";import{jsx as i}from"react/jsx-runtime";import a,{cardNameWords as d}from"../../../../../components/card-pieces/CardName.js";import m from"../../../../../components/card-pieces/HeadlineName.js";import{readPartStyles as l}from"efficient-web-builder/render/lib/document/part-styles";import f from"../../../../../components/card-pieces/HostPart.js";import{useHeroStateOrNull as u,useProductCardStateOrNull as c}from"../../../../../components/card-pieces/ProductCardState.js";import{NAME_ACCENT_PROP as s,TITLE_LOOK_PROP as N,parseTitleLook as P}from"../../../../content/title-look.js";import{ProductNameMeta as o}from"./meta.js";function g({props:e,region:t}){const r=u(),n=c();return P(e[N])==="headline"?i(m,{name:r?r.title.name:d(n)??"",accentLastWord:e[s]===!0,region:t}):i(a,{region:t,fixedHeight:e.fixedHeight!==!1,children:r?r.title.name:void 0})}const S={...o,render:e=>{const t=!!e.editor?.isEditing;return i(f,{label:o.label??"",editing:t,onHero:!0,children:i(g,{props:e,region:{nodeId:typeof e.id=="string"?e.id:void 0,partStyles:l(e),editing:t}})})}};export{S as ProductNameRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CARD_LIST_TYPE as R,CARD_ROW_FIELD_PROP as y,CARD_ROW_LINK_PROP as m,CARD_TEMPLATE_SLOT as E,registerCardTemplates as de}from"efficient-web-builder/format/lib/content/card-template";import{DIM as d,INNER_BOX as o,LABEL_FACE as C,TEXT as n,boxPadding as r,fillSlot as H,labelLook as T,labelStyle as K,seedNodes as f,token as _}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_SHOW_KEY as M,BOX_SHOW_ON_CARD_HOVER as x,HOVER_KEY as Te,PICTURE_HOVER_KEYS as Y}from"efficient-web-builder/format/lib/animation/hover";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as k}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as pe}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as ce,EVENTS_FEATURED_DARKEN_STYLE as G,EVENTS_FEATURED_PLACEMENT as Oe}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as Le,COLLECTION_HOVER_DARKEN as me,COLLECTION_HOVER_ZOOM as U}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as b,COLLECTION_CARD_TEXT_SIZE as be}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as V}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as t}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as S}from"../sections/product-grid-columns.js";import{bundleColumns as he}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as ge,withHeroPriceTemplate as Pe}from"../content/hero-price-seed.js";import{HERO_BUY_SLOT as Re,HERO_BUY_SLOT_LABEL as ye,withHeroBuyTemplate as Ce}from"../content/hero-buy-seed.js";import{HERO_OPTION_FIELDS as W,HERO_OPTION_SLOT as fe,HERO_OPTION_SLOT_LABEL as ke,withHeroOptionTemplate as Se}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as Ae,withFilterChipsTemplate as Ie,withFilterTemplate as ue}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as h,FACET_TEMPLATE_LABEL as v,FACET_TEMPLATE_SLOT as $,withFacetTemplate as X}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as Ne,RAIL_HEAD_TEMPLATE_SLOT as De,RAIL_ROW_FIELDS as A,RAIL_TEMPLATE_LABEL as we,RAIL_TEMPLATE_SLOT as Be,withRailTemplates as Z}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as Fe,withMenuTemplate as He}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as j,CONTACT_CHANNEL_SLOT as Ke,CONTACT_REASON_FIELDS as Me,CONTACT_REASON_SLOT as xe,CONTACT_TOPIC_FIELDS as z,CONTACT_TOPIC_SLOT as Ye,withContactTemplates as Ge}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as Ue,withArticleBodyTemplate as Ve}from"efficient-web-builder/format/lib/document/article-body-seed";import{APPOINTMENT_BOOKING_TYPE as We,BOOKING_BOX_TYPE as ve,BOOKING_OPTION_FIELDS as $e,BOOKING_TEMPLATE_SLOTS as Xe,withBookingTemplates as Ze}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as je,PRODUCT_CARD_FIELDS as I,PRODUCT_COLOUR_BLOCK as ze,PRODUCT_EYEBROW_BLOCK as qe,PRODUCT_NAME_BLOCK as Qe,PRODUCT_PICTURE_BLOCK as Je,PRODUCT_PRICE_BLOCK as et,PRODUCT_SIZE_BLOCK as tt,PRODUCT_SPECS_BLOCK as lt,productCardSeed as ot,withKitCardTemplate as u,withListingCardTemplate as at,withProductCardTemplate as N}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as it,FILTER_BLOCK_TYPE as nt,FILTER_CHIPS_TYPE as rt,MENU_BLOCK_TYPE as st,PRODUCT_GRID_TYPE as Et,PRODUCT_HERO_TYPE as _t}from"./document-nodes.js";import{withSeededSlot as D}from"../content/seed-ids.js";import{FITMENT_HEAD_FIELDS as q,FITMENT_HEAD_TEMPLATE_LABEL as dt,FITMENT_HEAD_TEMPLATE_SLOT as Tt,FITMENT_ROW_FIELDS as Q,FITMENT_ROW_TEMPLATE_LABEL as pt,FITMENT_ROW_TEMPLATE_SLOT as ct}from"../content/fitment-row-seed.js";const J="tags",p=T(12),ee={textStyle:"heading-3",..._("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},te={textStyle:"body-1",..._("body",14),lineHeight:1.55},Ot={...ee,..._("headingSmall",30)},Lt={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},mt=pe.fallback,bt=480,ht=70,gt=()=>({type:a,props:{...o,name:"Featured",[k]:"cover",darken:ce,darkenStyle:G,darkenPhone:ht,darkenStylePhone:G,placement:Oe,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:mt,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:bt,sectionHeightUnitPhone:"px",[m]:"href"},slots:{[i]:[t("meta",{...n,tag:"p"},p,!0),t("title",{...n,tag:"h3",widthFit:"fill"},Ot),t("excerpt",{...d,tag:"p",widthFit:"fill",maxWidth:384},te),t("dateLabel",{...d,tag:"p"},{...p,color:"muted"})]}}),Pt=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...H("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[y]:"cover",aspect:"16/10",contained:!1}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...Lt},slots:{[i]:[{type:a,props:{...o,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...r(0,0,0,0)},slots:{[i]:[t("meta",{...n,tag:"p"},p,!0),t("dateLabel",{...d,tag:"p"},{...p,color:"muted"},!0)]}},t("title",{...n,tag:"h3",widthFit:"fill"},ee),t("excerpt",{...d,tag:"p",widthFit:"fill"},te),{type:R,props:{[y]:J},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[t("label",{...d,tag:"p"},p)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(12)}}}]}}]}}),Rt=()=>[gt(),Pt()];function yt(e){const l=["featured","post"];return D(e,E,"Events",L=>f(Rt(),(s,_e)=>{const[w,...B]=_e.split("."),F=l[Number(w)]??`card${w}`;return B.length?`${L}~${F}.${B.join(".")}`:`${L}~${F}`}))}const Ct={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:J,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:R,label:"Card list"}],seedOnInsert:yt},c=e=>Number(/(\d+)px/.exec(e)?.[1]),O={tag:c(b.tag.builtIn),name:c(b.name.builtIn),namePhone:c(be.namePhone),body:c(b.body.builtIn),link:c(b.link.builtIn)},ft={...T(O.tag),letterSpacing:.25},kt={textStyle:"heading-2",..._("headingMedium",O.name,O.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},St={textStyle:"body-1",..._("body",O.body),lineHeight:1.5,paragraphSpacing:12},le=()=>[t("tag",{...n,tag:"p"},ft,!0),t("name",{...n,tag:"h3",widthFit:"fill"},kt),t("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},St),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(O.link)}}}],oe={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},At=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[m]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[k]:"image",boxShape:"portrait",darken:Le,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:U,hoverDarken:me,_hiddenPhone:!0},slots:{[i]:le()}},{type:"ImageBlock",props:{[y]:"image",aspect:"4/5",contained:!1,hoverZoom:U,...oe}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...H("surface"),...oe},slots:{[i]:le()}}]}});function It(e){return D(e,E,"Collections",l=>f([At()],(L,s)=>`${l}~card${s?`.${s}`:""}`))}const ut={fields:[{key:"tag",label:"Eyebrow"},{key:"name",label:"Title"},{key:"desc",label:"Description",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"name"},{key:"href",label:"Link",kind:"link"}],seedOnInsert:It},Nt=35,Dt=50,wt=106,Bt=85,Ft="nextImage",Ht="#f5f1e8",ae="#c4c1ba",ie={...C,...T(11),letterSpacing:.24,color:"main"},Kt={...ie,color:ae},Mt={...C,...T(12,11),color:"main"},xt={textStyle:"heading-3",..._("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:Ht},Yt={...C,...T(12),letterSpacing:.12,color:ae},g=r(0,0,0,0),Gt=()=>({type:a,props:{...o,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...g,[k]:"image",boxShape:"square",darken:Nt,[Te]:Ft,[Y.zoom]:wt,[Y.darken]:Dt},slots:{[i]:[{type:a,props:{...o,name:"Top row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",widthFit:"fill",gap:8,gapPhone:8,...g,sectionPaddingTop:12,sectionPaddingLeft:12,sectionPaddingRight:12,sectionPaddingTopPhone:10,sectionPaddingLeftPhone:10,sectionPaddingRightPhone:10},slots:{[i]:[{type:a,props:{...o,name:"Tag",direction:"row",share:"content",minWidth:0,...g,[M]:x},slots:{[i]:[t("tag",{...n,tag:"p",textFit:"ellipsis"},ie)]}},t("number",{...n,tag:"p",textFit:"line"},Kt)]}},{type:a,props:{...o,name:"Words",justify:"end",align:"start",placement:"bottom-left",share:"content",widthFit:"fill",sectionHeightMode:"fill",gap:8,gapPhone:8,...r(24,24,12,14),sectionPaddingTopPhone:4,darken:Bt,darkenStyle:"bottom",[M]:x},slots:{[i]:[{type:a,props:{...o,name:"Heading",widthFit:"fill",gap:4,gapPhone:4,...g},slots:{[i]:[t("eyebrow",{...n,tag:"p",_hiddenPhone:!0},Mt),t("name",{...n,tag:"h3"},xt)]}},t("meta",{...n,tag:"p"},Yt)]}}]}});function Ut(e){return D(e,E,"GalleryB",l=>f([Gt()],(L,s)=>`${l}~tile${s?`.${s}`:""}`))}const Vt={fields:[{key:"image",label:"Image",kind:"image",alt:"name"},{key:"tag",label:"Tag"},{key:"number",label:"Card number"},{key:"eyebrow",label:"Eyebrow"},{key:"name",label:"Title"},{key:"meta",label:"Meta"},{key:"href",label:"Product link",kind:"link"}],seedOnInsert:Ut},Wt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],vt=e=>Object.fromEntries(Object.entries(e).filter(([l])=>!Wt.includes(l))),ne={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Fe,label:"Menu link"}],seed:He},re=e=>e.dynamic===!0&&e.relationship==="bundles",gl=(e={})=>ot(e),P={fields:I,blocks:[{type:Je,label:"Picture"},{type:qe,label:"Eyebrow"},{type:Qe,label:"Name"},{type:lt,label:"Specs"},{type:et,label:"Price"},{type:ze,label:"Colour"},{type:tt,label:"Size"},{type:je,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return N(e);const l=S(e);return re(e)?u(l):N(l)}},se=[{key:"label",label:"Filter name"},{key:Ae,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],Ee=[{slot:Be,label:we,fields:A},{slot:De,label:Ne,fields:[]}],$t=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...ne},{block:st,...ne},{block:Et,...P},{block:it,...P,slots:[{slot:E,fields:I},{slot:$,label:v,fields:h},...Ee],fields:[...I,...h,...A],seed:e=>Z(X(at(e)))},{block:"RelatedProducts",...P,seed:e=>{const l=S({...vt(e),dynamic:!0});return re(l)?u(l):N(l,{legacyWellHonoured:!0})}},{block:"BundleOffer",...P,seed:e=>u(S({...e,columns:he(e),dynamic:!0}))},{block:_t,slots:[{slot:E,fields:[]},{slot:fe,label:ke,fields:W},{slot:Re,label:ye,fields:[]}],fields:W,blocks:[{type:ge,label:"Price"}],seed:e=>Ce(Se(Pe(e)))},{block:nt,slots:[{slot:E,fields:se},{slot:$,label:v,fields:h},...Ee],fields:[...se,...h,...A],blocks:[{type:R,label:"Card list"}],seed:e=>Z(X(ue(e)))},{block:rt,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Ie},{block:"ContactRouting",slots:[{slot:Ye,label:"Topic card",fields:z},{slot:xe,label:"Reason chip",fields:Me},{slot:Ke,label:"Channel row",fields:j}],fields:[...z,...j],seed:Ge},{block:Ue,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:Ve},...[ve,We].map(e=>({block:e,slots:Xe,fields:$e,seed:l=>Ze(e,l)})),{block:"Events",...Ct},{block:"Collections",...ut},{block:"GalleryB",...Vt},{block:"FitmentTable",fields:[...q,...Q],slots:[{slot:Tt,label:dt,fields:q},{slot:ct,label:pt,fields:Q}]}];de($t);export{$t as STOREFRONT_CARD_TEMPLATES,At as collectionCardSeed,re as drawsKits,Rt as eventsCardSeeds,Gt as galleryTileSeed,gl as productGridCardSeed,It as withCollectionsTemplate,yt as withEventsTemplate,Ut as withGalleryTemplate};
|
|
1
|
+
import{CARD_LIST_TYPE as R,CARD_ROW_FIELD_PROP as y,CARD_ROW_LINK_PROP as m,CARD_TEMPLATE_SLOT as E,registerCardTemplates as ce}from"efficient-web-builder/format/lib/content/card-template";import{DIM as d,INNER_BOX as o,LABEL_FACE as C,TEXT as n,boxPadding as r,fillSlot as H,labelLook as p,labelStyle as K,seedNodes as f,token as _}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_SHOW_KEY as M,BOX_SHOW_ON_CARD_HOVER as Y,HOVER_KEY as Oe,PICTURE_HOVER_KEYS as x}from"efficient-web-builder/format/lib/animation/hover";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as k}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as Le}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as me,EVENTS_FEATURED_DARKEN_STYLE as G,EVENTS_FEATURED_PLACEMENT as be}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as he,COLLECTION_HOVER_DARKEN as ge,COLLECTION_HOVER_ZOOM as U}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as b,COLLECTION_CARD_TEXT_SIZE as Pe}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as V}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as t}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as S}from"../sections/product-grid-columns.js";import{bundleColumns as Re}from"../sections/bundle-to-grid.js";import{HERO_GALLERY_BLOCK as ye,withHeroTemplate as Ce}from"../content/hero-seed.js";import{HERO_BUY_SLOT as fe,HERO_BUY_SLOT_LABEL as ke,withHeroBuyTemplate as Se}from"../content/hero-buy-seed.js";import{HERO_OPTION_FIELDS as W,HERO_OPTION_SLOT as Ae,HERO_OPTION_SLOT_LABEL as Ie,withHeroOptionTemplate as ue}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as Ne,withFilterChipsTemplate as De,withFilterTemplate as we}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as h,FACET_TEMPLATE_LABEL as v,FACET_TEMPLATE_SLOT as $,withFacetTemplate as X}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as Be,RAIL_HEAD_TEMPLATE_SLOT as Fe,RAIL_ROW_FIELDS as A,RAIL_TEMPLATE_LABEL as He,RAIL_TEMPLATE_SLOT as Ke,withRailTemplates as Z}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as Me,withMenuTemplate as Ye}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as j,CONTACT_CHANNEL_SLOT as xe,CONTACT_REASON_FIELDS as Ge,CONTACT_REASON_SLOT as Ue,CONTACT_TOPIC_FIELDS as z,CONTACT_TOPIC_SLOT as Ve,withContactTemplates as We}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as ve,withArticleBodyTemplate as $e}from"efficient-web-builder/format/lib/document/article-body-seed";import{APPOINTMENT_BOOKING_TYPE as Xe,BOOKING_BOX_TYPE as Ze,BOOKING_OPTION_FIELDS as je,BOOKING_TEMPLATE_SLOTS as ze,withBookingTemplates as qe}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Qe,PRODUCT_CARD_FIELDS as I,PRODUCT_COLOUR_BLOCK as Je,PRODUCT_EYEBROW_BLOCK as q,PRODUCT_NAME_BLOCK as Q,PRODUCT_PICTURE_BLOCK as et,PRODUCT_PRICE_BLOCK as J,PRODUCT_SIZE_BLOCK as tt,PRODUCT_SPECS_BLOCK as lt,productCardSeed as ot,withKitCardTemplate as u,withListingCardTemplate as at,withProductCardTemplate as N}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as it,FILTER_BLOCK_TYPE as nt,FILTER_CHIPS_TYPE as rt,MENU_BLOCK_TYPE as st,PRODUCT_GRID_TYPE as Et,PRODUCT_HERO_TYPE as _t}from"./document-nodes.js";import{withSeededSlot as D}from"../content/seed-ids.js";import{FITMENT_HEAD_FIELDS as ee,FITMENT_HEAD_TEMPLATE_LABEL as dt,FITMENT_HEAD_TEMPLATE_SLOT as pt,FITMENT_ROW_FIELDS as te,FITMENT_ROW_TEMPLATE_LABEL as Tt,FITMENT_ROW_TEMPLATE_SLOT as ct}from"../content/fitment-row-seed.js";const le="tags",T=p(12),oe={textStyle:"heading-3",..._("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},ae={textStyle:"body-1",..._("body",14),lineHeight:1.55},Ot={...oe,..._("headingSmall",30)},Lt={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},mt=Le.fallback,bt=480,ht=70,gt=()=>({type:a,props:{...o,name:"Featured",[k]:"cover",darken:me,darkenStyle:G,darkenPhone:ht,darkenStylePhone:G,placement:be,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:mt,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:bt,sectionHeightUnitPhone:"px",[m]:"href"},slots:{[i]:[t("meta",{...n,tag:"p"},T,!0),t("title",{...n,tag:"h3",widthFit:"fill"},Ot),t("excerpt",{...d,tag:"p",widthFit:"fill",maxWidth:384},ae),t("dateLabel",{...d,tag:"p"},{...T,color:"muted"})]}}),Pt=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...H("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[y]:"cover",aspect:"16/10",contained:!1}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...Lt},slots:{[i]:[{type:a,props:{...o,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...r(0,0,0,0)},slots:{[i]:[t("meta",{...n,tag:"p"},T,!0),t("dateLabel",{...d,tag:"p"},{...T,color:"muted"},!0)]}},t("title",{...n,tag:"h3",widthFit:"fill"},oe),t("excerpt",{...d,tag:"p",widthFit:"fill"},ae),{type:R,props:{[y]:le},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[t("label",{...d,tag:"p"},T)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(12)}}}]}}]}}),Rt=()=>[gt(),Pt()];function yt(e){const l=["featured","post"];return D(e,E,"Events",L=>f(Rt(),(s,Te)=>{const[w,...B]=Te.split("."),F=l[Number(w)]??`card${w}`;return B.length?`${L}~${F}.${B.join(".")}`:`${L}~${F}`}))}const Ct={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:le,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:R,label:"Card list"}],seedOnInsert:yt},c=e=>Number(/(\d+)px/.exec(e)?.[1]),O={tag:c(b.tag.builtIn),name:c(b.name.builtIn),namePhone:c(Pe.namePhone),body:c(b.body.builtIn),link:c(b.link.builtIn)},ft={...p(O.tag),letterSpacing:.25},kt={textStyle:"heading-2",..._("headingMedium",O.name,O.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},St={textStyle:"body-1",..._("body",O.body),lineHeight:1.5,paragraphSpacing:12},ie=()=>[t("tag",{...n,tag:"p"},ft,!0),t("name",{...n,tag:"h3",widthFit:"fill"},kt),t("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},St),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[m]:"href",...V,icon:"arrow-right",iconPosition:"after",_partStyles:{label:K(O.link)}}}],ne={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},At=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[m]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[k]:"image",boxShape:"portrait",darken:he,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:U,hoverDarken:ge,_hiddenPhone:!0},slots:{[i]:ie()}},{type:"ImageBlock",props:{[y]:"image",aspect:"4/5",contained:!1,hoverZoom:U,...ne}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...H("surface"),...ne},slots:{[i]:ie()}}]}});function It(e){return D(e,E,"Collections",l=>f([At()],(L,s)=>`${l}~card${s?`.${s}`:""}`))}const ut={fields:[{key:"tag",label:"Eyebrow"},{key:"name",label:"Title"},{key:"desc",label:"Description",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"name"},{key:"href",label:"Link",kind:"link"}],seedOnInsert:It},Nt=35,Dt=50,wt=106,Bt=85,Ft="nextImage",Ht="#f5f1e8",re="#c4c1ba",se={...C,...p(11),letterSpacing:.24,color:"main"},Kt={...se,color:re},Mt={...C,...p(12,11),color:"main"},Yt={textStyle:"heading-3",..._("headingSmall",22,16),weight:500,lineHeight:1.05,letterSpacing:-.02,color:Ht},xt={...C,...p(12),letterSpacing:.12,color:re},g=r(0,0,0,0),Gt=()=>({type:a,props:{...o,name:"Tile",placement:"top-left",share:"content",gap:0,gapPhone:0,...g,[k]:"image",boxShape:"square",darken:Nt,[Oe]:Ft,[x.zoom]:wt,[x.darken]:Dt},slots:{[i]:[{type:a,props:{...o,name:"Top row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",widthFit:"fill",gap:8,gapPhone:8,...g,sectionPaddingTop:12,sectionPaddingLeft:12,sectionPaddingRight:12,sectionPaddingTopPhone:10,sectionPaddingLeftPhone:10,sectionPaddingRightPhone:10},slots:{[i]:[{type:a,props:{...o,name:"Tag",direction:"row",share:"content",minWidth:0,...g,[M]:Y},slots:{[i]:[t("tag",{...n,tag:"p",textFit:"ellipsis"},se)]}},t("number",{...n,tag:"p",textFit:"line"},Kt)]}},{type:a,props:{...o,name:"Words",justify:"end",align:"start",placement:"bottom-left",share:"content",widthFit:"fill",sectionHeightMode:"fill",gap:8,gapPhone:8,...r(24,24,12,14),sectionPaddingTopPhone:4,darken:Bt,darkenStyle:"bottom",[M]:Y},slots:{[i]:[{type:a,props:{...o,name:"Heading",widthFit:"fill",gap:4,gapPhone:4,...g},slots:{[i]:[t("eyebrow",{...n,tag:"p",_hiddenPhone:!0},Mt),t("name",{...n,tag:"h3"},Yt)]}},t("meta",{...n,tag:"p"},xt)]}}]}});function Ut(e){return D(e,E,"GalleryB",l=>f([Gt()],(L,s)=>`${l}~tile${s?`.${s}`:""}`))}const Vt={fields:[{key:"image",label:"Image",kind:"image",alt:"name"},{key:"tag",label:"Tag"},{key:"number",label:"Card number"},{key:"eyebrow",label:"Eyebrow"},{key:"name",label:"Title"},{key:"meta",label:"Meta"},{key:"href",label:"Product link",kind:"link"}],seedOnInsert:Ut},Wt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],vt=e=>Object.fromEntries(Object.entries(e).filter(([l])=>!Wt.includes(l))),Ee={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Me,label:"Menu link"}],seed:Ye},_e=e=>e.dynamic===!0&&e.relationship==="bundles",gl=(e={})=>ot(e),P={fields:I,blocks:[{type:et,label:"Picture"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:lt,label:"Specs"},{type:J,label:"Price"},{type:Je,label:"Colour"},{type:tt,label:"Size"},{type:Qe,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return N(e);const l=S(e);return _e(e)?u(l):N(l)}},de=[{key:"label",label:"Filter name"},{key:Ne,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],pe=[{slot:Ke,label:He,fields:A},{slot:Fe,label:Be,fields:[]}],$t=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...Ee},{block:st,...Ee},{block:Et,...P},{block:it,...P,slots:[{slot:E,fields:I},{slot:$,label:v,fields:h},...pe],fields:[...I,...h,...A],seed:e=>Z(X(at(e)))},{block:"RelatedProducts",...P,seed:e=>{const l=S({...vt(e),dynamic:!0});return _e(l)?u(l):N(l,{legacyWellHonoured:!0})}},{block:"BundleOffer",...P,seed:e=>u(S({...e,columns:Re(e),dynamic:!0}))},{block:_t,slots:[{slot:E,fields:[]},{slot:Ae,label:Ie,fields:W},{slot:fe,label:ke,fields:[]}],fields:W,blocks:[{type:ye,label:"Product Gallery"},{type:q,label:"Eyebrow"},{type:Q,label:"Name"},{type:J,label:"Price"}],seed:e=>Se(ue(Ce(e)))},{block:nt,slots:[{slot:E,fields:de},{slot:$,label:v,fields:h},...pe],fields:[...de,...h,...A],blocks:[{type:R,label:"Card list"}],seed:e=>Z(X(we(e)))},{block:rt,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:De},{block:"ContactRouting",slots:[{slot:Ve,label:"Topic card",fields:z},{slot:Ue,label:"Reason chip",fields:Ge},{slot:xe,label:"Channel row",fields:j}],fields:[...z,...j],seed:We},{block:ve,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:$e},...[Ze,Xe].map(e=>({block:e,slots:ze,fields:je,seed:l=>qe(e,l)})),{block:"Events",...Ct},{block:"Collections",...ut},{block:"GalleryB",...Vt},{block:"FitmentTable",fields:[...ee,...te],slots:[{slot:pt,label:dt,fields:ee},{slot:ct,label:Tt,fields:te}]}];ce($t);export{$t as STOREFRONT_CARD_TEMPLATES,At as collectionCardSeed,_e as drawsKits,Rt as eventsCardSeeds,Gt as galleryTileSeed,gl as productGridCardSeed,It as withCollectionsTemplate,yt as withEventsTemplate,Ut as withGalleryTemplate};
|
|
@@ -7,6 +7,7 @@ import "./section-to-box-rows-productgrid.js";
|
|
|
7
7
|
import "./section-to-box-rows-events.js";
|
|
8
8
|
import "./section-to-box-rows-collections.js";
|
|
9
9
|
import "./section-to-box-rows-gallery.js";
|
|
10
|
+
import "./section-to-box-rows-producthero.js";
|
|
10
11
|
import "./section-to-box-rows-fitment.js";
|
|
11
12
|
import "./section-to-box-rows-detail.js";
|
|
12
13
|
import "./section-to-box-rows-service.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as h,jsx as E}from"react/jsx-runtime";import{generalRenderMetas as g}from"efficient-web-builder/format/lib/document/blocks/general/metas";import{finishRenderRegistry as S}from"efficient-web-builder/render/lib/document/render-registry";import{buildBlockCategories as R}from"efficient-web-builder/format/lib/document/section-catalog";import{SITE_HEADER_TYPE as a}from"efficient-web-builder/format/lib/document/section-groups";import"./slot-seeds.js";import"./card-templates.js";import"./section-to-box-rows-reviews.js";import"./section-to-box-rows-spec.js";import"./section-to-box-rows-productgrid.js";import"./section-to-box-rows-events.js";import"./section-to-box-rows-collections.js";import"./section-to-box-rows-gallery.js";import"./section-to-box-rows-fitment.js";import"./section-to-box-rows-detail.js";import"./section-to-box-rows-service.js";import"./section-to-box-rows-listing.js";import{COMMERCE_METAS as _}from"./blocks/commerce/metas.js";import{SERVICE_METAS as O}from"./blocks/service/metas.js";import P from"./blocks/text-part-shapes.json";import{addPageBlocksFromFooter as b}from"./footer-page-blocks.js";import{LAZY_DRAWS as p}from"./lazy-draws.js";import{drawPublishedStorefrontRoot as k}from"./storefront-root.js";import{withShopperAddressMark as T}from"../../components/catalog/ShopperScope.js";import{SHOPPER_BLOCK_TYPES as j}from"../wheels/shopper-first-paint.js";const l=P,w=(t,e)=>{const r=Object.hasOwn(l,t)?l[t]:void 0;return{...e,...r?{textParts:r}:null}};let f=null;function d(){if(f)return f;const t={},e=g();for(const o of Object.keys(e))t[o]={...e[o],render:p[o]};const r={..._,...O};for(const o of Object.keys(r)){const m=j.has(o)?T(p[o]):p[o];t[o]=w(o,{...r[o],render:m})}b(t);const n={root:{render:k},categories:R(),components:t};return S(n),f=n,n}function x(t=d()){const e=t.components,r=Object.keys(e),n=new Set([a]),o=[a];for(;o.length;){const m=o.shift();for(const c of Object.values(e[m]?.fields??{})){if(c?.type!=="slot")continue;const u=c.allow??r.filter(
|
|
1
|
+
import{Fragment as h,jsx as E}from"react/jsx-runtime";import{generalRenderMetas as g}from"efficient-web-builder/format/lib/document/blocks/general/metas";import{finishRenderRegistry as S}from"efficient-web-builder/render/lib/document/render-registry";import{buildBlockCategories as R}from"efficient-web-builder/format/lib/document/section-catalog";import{SITE_HEADER_TYPE as a}from"efficient-web-builder/format/lib/document/section-groups";import"./slot-seeds.js";import"./card-templates.js";import"./section-to-box-rows-reviews.js";import"./section-to-box-rows-spec.js";import"./section-to-box-rows-productgrid.js";import"./section-to-box-rows-events.js";import"./section-to-box-rows-collections.js";import"./section-to-box-rows-gallery.js";import"./section-to-box-rows-producthero.js";import"./section-to-box-rows-fitment.js";import"./section-to-box-rows-detail.js";import"./section-to-box-rows-service.js";import"./section-to-box-rows-listing.js";import{COMMERCE_METAS as _}from"./blocks/commerce/metas.js";import{SERVICE_METAS as O}from"./blocks/service/metas.js";import P from"./blocks/text-part-shapes.json";import{addPageBlocksFromFooter as b}from"./footer-page-blocks.js";import{LAZY_DRAWS as p}from"./lazy-draws.js";import{drawPublishedStorefrontRoot as k}from"./storefront-root.js";import{withShopperAddressMark as T}from"../../components/catalog/ShopperScope.js";import{SHOPPER_BLOCK_TYPES as j}from"../wheels/shopper-first-paint.js";const l=P,w=(t,e)=>{const r=Object.hasOwn(l,t)?l[t]:void 0;return{...e,...r?{textParts:r}:null}};let f=null;function d(){if(f)return f;const t={},e=g();for(const o of Object.keys(e))t[o]={...e[o],render:p[o]};const r={..._,...O};for(const o of Object.keys(r)){const m=j.has(o)?T(p[o]):p[o];t[o]=w(o,{...r[o],render:m})}b(t);const n={root:{render:k},categories:R(),components:t};return S(n),f=n,n}function x(t=d()){const e=t.components,r=Object.keys(e),n=new Set([a]),o=[a];for(;o.length;){const m=o.shift();for(const c of Object.values(e[m]?.fields??{})){if(c?.type!=="slot")continue;const u=c.allow??r.filter(i=>!c.disallow?.includes(i));for(const i of u)n.has(i)||!(i in e)||(n.add(i),o.push(i))}}return[...n]}let s=null;function to(){if(s)return s;const t=d(),e=t.components;return s={...t,root:{render:({children:r})=>E(h,{children:r})},components:Object.fromEntries(x(t).map(r=>[r,e[r]]))},s}export{w as drawnBlock,to as headerRenderConfig,d as renderConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{registerSectionToBox as r}from"efficient-web-builder/render/lib/sections/section-to-box";import{boxPadding as e}from"efficient-web-builder/format/lib/document/seed-parts";import{CELL_SPAN_KEYS as m}from"efficient-web-builder/format/lib/content/grid-span";import{CARD_TEMPLATE_SLOT as t}from"efficient-web-builder/format/lib/content/card-template";import{HERO_TEMPLATE_SHAPE as E,HERO_TEMPLATE_SHAPE_PROP as P,heroSeeds as p}from"../content/hero-seed.js";import{PRODUCT_HERO_TYPE as i}from"./document-nodes.js";r({[i]:{name:"Product hero",box:[...m],boxProps:{direction:"column",gap:0,gapPhone:0,...e(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[P]:E},slots:o=>({[t]:p(o)})}]}});
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type HeroPricePlacement = "top" | "belowSpecs";
|
|
2
2
|
export declare const DEFAULT_HERO_PRICE_PLACEMENT: HeroPricePlacement;
|
|
3
|
-
export declare const HERO_PRICE_PLACEMENT_OPTIONS: readonly {
|
|
4
|
-
label: string;
|
|
5
|
-
value: HeroPricePlacement;
|
|
6
|
-
}[];
|
|
7
3
|
export declare function parseHeroPricePlacement(value: unknown): HeroPricePlacement;
|
|
4
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const E="top";function o(e){return e==="belowSpecs"?"belowSpecs":"top"}export{E as DEFAULT_HERO_PRICE_PLACEMENT,o as parseHeroPricePlacement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t="trustBullets"
|
|
1
|
+
const t="trustBullets";export{t as TRUST_BULLETS_SLOT};
|
package/dist/words.d.ts
CHANGED
|
@@ -1567,6 +1567,7 @@ export type StorefrontBlocksPhrase =
|
|
|
1567
1567
|
| "A short summary of the post appears here."
|
|
1568
1568
|
| "A subhead."
|
|
1569
1569
|
| "A third"
|
|
1570
|
+
| "Accent last word"
|
|
1570
1571
|
| "Account and cart"
|
|
1571
1572
|
| "Add a line of footer text."
|
|
1572
1573
|
| "Add a second, shorter line if you need one."
|
|
@@ -1620,7 +1621,6 @@ export type StorefrontBlocksPhrase =
|
|
|
1620
1621
|
| "Bar · pills"
|
|
1621
1622
|
| "Behavior"
|
|
1622
1623
|
| "Below the photo"
|
|
1623
|
-
| "Below the specs"
|
|
1624
1624
|
| "Beside logo"
|
|
1625
1625
|
| "Blocks"
|
|
1626
1626
|
| "Blog post title"
|
|
@@ -1639,6 +1639,7 @@ export type StorefrontBlocksPhrase =
|
|
|
1639
1639
|
| "Bundles"
|
|
1640
1640
|
| "Bundles containing this product appear here on a product page."
|
|
1641
1641
|
| "Buy"
|
|
1642
|
+
| "Buy row"
|
|
1642
1643
|
| "Buy template"
|
|
1643
1644
|
| "CSV"
|
|
1644
1645
|
| "Call"
|
|
@@ -1648,6 +1649,8 @@ export type StorefrontBlocksPhrase =
|
|
|
1648
1649
|
| "Cap Code"
|
|
1649
1650
|
| "Capitalised"
|
|
1650
1651
|
| "Car prompt"
|
|
1652
|
+
| "Card eyebrow"
|
|
1653
|
+
| "Card name"
|
|
1651
1654
|
| "Card text"
|
|
1652
1655
|
| "Cards from"
|
|
1653
1656
|
| "Cards to show"
|
|
@@ -1988,6 +1991,7 @@ export type StorefrontBlocksPhrase =
|
|
|
1988
1991
|
| "Not authorized yet — reopen once the editor has loaded."
|
|
1989
1992
|
| "Not your size"
|
|
1990
1993
|
| "Nothing to show yet: this menu's entries come from its Menu content."
|
|
1994
|
+
| "Notify me"
|
|
1991
1995
|
| "Number or ID"
|
|
1992
1996
|
| "OEM front"
|
|
1993
1997
|
| "OEM front tyres"
|
|
@@ -2020,6 +2024,8 @@ export type StorefrontBlocksPhrase =
|
|
|
2020
2024
|
| "PNG · JPG · MP4"
|
|
2021
2025
|
| "PNG · JPG · SVG · WEBP · MP4"
|
|
2022
2026
|
| "PNG · JPG · WEBP"
|
|
2027
|
+
| "Page title"
|
|
2028
|
+
| "Page title is the large title of a product page. The card look is the small one of a product card."
|
|
2023
2029
|
| "Pair"
|
|
2024
2030
|
| "Panel"
|
|
2025
2031
|
| "Photo cards"
|
|
@@ -2041,10 +2047,8 @@ export type StorefrontBlocksPhrase =
|
|
|
2041
2047
|
| "Popups"
|
|
2042
2048
|
| "Portrait (4:5)"
|
|
2043
2049
|
| "Posts to display"
|
|
2044
|
-
| "Price / quote"
|
|
2045
2050
|
| "Price and details come from the product record — edit them in the Products database and this block updates to match. The name follows the product’s design name unless it’s overridden per storefront in {place}."
|
|
2046
2051
|
| "Price on request"
|
|
2047
|
-
| "Price position"
|
|
2048
2052
|
| "Price · High"
|
|
2049
2053
|
| "Price · Low"
|
|
2050
2054
|
| "Price · high to low"
|
|
@@ -2079,6 +2083,8 @@ export type StorefrontBlocksPhrase =
|
|
|
2079
2083
|
| "Recommended"
|
|
2080
2084
|
| "Record title"
|
|
2081
2085
|
| "Related products appear here on a product page."
|
|
2086
|
+
| "Remembered car"
|
|
2087
|
+
| "Reminder"
|
|
2082
2088
|
| "Replace SVG logo"
|
|
2083
2089
|
| "Request a quote"
|
|
2084
2090
|
| "Response time"
|
|
@@ -2138,6 +2144,7 @@ export type StorefrontBlocksPhrase =
|
|
|
2138
2144
|
| "Sets the logo’s height; the width follows the logo’s own proportions."
|
|
2139
2145
|
| "Sets the {view} view — switch views in the top bar to set each one."
|
|
2140
2146
|
| "Settings"
|
|
2147
|
+
| "Settled facts"
|
|
2141
2148
|
| "Setup"
|
|
2142
2149
|
| "Shipping"
|
|
2143
2150
|
| "Shipping cannot be calculated right now. Please try again."
|
|
@@ -2154,7 +2161,6 @@ export type StorefrontBlocksPhrase =
|
|
|
2154
2161
|
| "Show as accordion"
|
|
2155
2162
|
| "Show by itself"
|
|
2156
2163
|
| "Show cover image on the smaller cards"
|
|
2157
|
-
| "Show in the buy box"
|
|
2158
2164
|
| "Show links"
|
|
2159
2165
|
| "Show links from"
|
|
2160
2166
|
| "Show links to"
|
|
@@ -2163,6 +2169,8 @@ export type StorefrontBlocksPhrase =
|
|
|
2163
2169
|
| "Show tab"
|
|
2164
2170
|
| "Show “Other” reason"
|
|
2165
2171
|
| "Shown only while the site serves no countries — otherwise the site's default country is stated"
|
|
2172
|
+
| "Shows the last word in italic, in the accent color."
|
|
2173
|
+
| "Shows the product's badge after the words."
|
|
2166
2174
|
| "Shows this source’s products as they are now, here and on the live page. Set how many appear with “Items to display”."
|
|
2167
2175
|
| "Side rail"
|
|
2168
2176
|
| "Sign-up"
|
|
@@ -2278,7 +2286,6 @@ export type StorefrontBlocksPhrase =
|
|
|
2278
2286
|
| "Tyre type"
|
|
2279
2287
|
| "Tyres"
|
|
2280
2288
|
| "Tyres shown are fitment-matched companions."
|
|
2281
|
-
| "Under the title"
|
|
2282
2289
|
| "Unknown"
|
|
2283
2290
|
| "Update links"
|
|
2284
2291
|
| "Updating…"
|