efficient-storefront-blocks 0.111.0 → 0.112.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunks/{EditorPreviewCheckout-C42GCC3T.js → EditorPreviewCheckout-NBZP252D.js} +1 -1
  3. package/dist/chunks/{SiteEditorProvider-P4HVFXUX.js → SiteEditorProvider-6V6EJFTL.js} +1 -1
  4. package/dist/chunks/{chunk-FRCI3FAV.js → chunk-7UBABYIY.js} +1 -1
  5. package/dist/chunks/{chunk-RFFTWKCU.js → chunk-7ZIXVUD7.js} +20 -20
  6. package/dist/chunks/{chunk-MVJVIU2F.js → chunk-IY3JZXIQ.js} +1 -1
  7. package/dist/chunks/{chunk-CPAF23MT.js → chunk-X6YHQFHP.js} +1 -1
  8. package/dist/chunks/{fitment-data-EGBXHTFW.js → fitment-data-7BV7JBDK.js} +1 -1
  9. package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  11. package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
  12. package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
  13. package/dist/editor/lib/storefront-editor-words.js +1 -1
  14. package/dist/index.js +30 -30
  15. package/dist/links.js +1 -1
  16. package/dist/render/built-with.json +1 -1
  17. package/dist/render/components/DefaultProductHero.js +1 -1
  18. package/dist/render/components/Events.js +1 -1
  19. package/dist/render/components/ProductHeroPanel.d.ts +2 -1
  20. package/dist/render/components/ProductHeroPanel.js +1 -1
  21. package/dist/render/components/booking/BookingFormState.js +1 -1
  22. package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
  23. package/dist/render/components/card-pieces/CardSave.js +1 -1
  24. package/dist/render/components/catalog/ShopperChips.js +1 -1
  25. package/dist/render/components/pdp-dynamic/DynamicProductHero.js +1 -1
  26. package/dist/render/lib/content/article-page-seed.js +1 -1
  27. package/dist/render/lib/content/booking-card-seed.js +1 -1
  28. package/dist/render/lib/content/contact-card-seed.js +1 -1
  29. package/dist/render/lib/content/event-post.js +1 -1
  30. package/dist/render/lib/content/facet-row-seed.js +1 -1
  31. package/dist/render/lib/content/filter-card-seed.js +1 -1
  32. package/dist/render/lib/content/hero-buy-seed.d.ts +11 -0
  33. package/dist/render/lib/content/hero-buy-seed.js +1 -0
  34. package/dist/render/lib/content/hero-option-seed.js +1 -1
  35. package/dist/render/lib/content/hero-price-seed.js +1 -1
  36. package/dist/render/lib/content/host-part-seed.d.ts +2 -0
  37. package/dist/render/lib/content/host-part-seed.js +1 -0
  38. package/dist/render/lib/content/menu-card-seed.js +1 -1
  39. package/dist/render/lib/content/product-card-seed.js +1 -1
  40. package/dist/render/lib/content/rail-row-seed.js +1 -1
  41. package/dist/render/lib/content/seed-ids.d.ts +6 -0
  42. package/dist/render/lib/content/seed-ids.js +1 -0
  43. package/dist/render/lib/document/blocks/commerce/ProductBuyButton/meta.js +1 -1
  44. package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +4 -0
  45. package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
  46. package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
  47. package/dist/render/lib/document/blocks/service/subscribe.js +1 -1
  48. package/dist/render/lib/document/card-templates.js +1 -1
  49. package/dist/render/lib/document/document-nodes.d.ts +6 -10
  50. package/dist/render/lib/document/document-nodes.js +1 -1
  51. package/dist/render/lib/sections/product-grid-pages.d.ts +1 -0
  52. package/dist/render/lib/wheels/shopper-first-paint.d.ts +2 -2
  53. package/dist/words.d.ts +2 -0
  54. package/dist/words.js +1 -1
  55. package/package.json +2 -2
  56. package/dist/render/lib/content/article-body-seed.d.ts +0 -9
  57. package/dist/render/lib/content/article-body-seed.js +0 -1
  58. /package/dist/chunks/{chunk-GB6OHYUY.js → chunk-37WWMI27.js} +0 -0
  59. /package/dist/chunks/{chunk-RFFTWKCU.js.LEGAL.txt → chunk-7ZIXVUD7.js.LEGAL.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ import type { BlockSeed } from "efficient-web-builder/format/lib/document/seed-parts";
2
+ export declare const hostPartSeed: (name: string, label: string) => BlockSeed;
@@ -0,0 +1 @@
1
+ import{HOST_PART_TYPE as p}from"efficient-web-builder/format/lib/content/card-template";const e=(o,t)=>({type:p,props:{name:o,label:t}});export{e as hostPartSeed};
@@ -1 +1 @@
1
- import{INNER_BOX as g,TEXT as N,seedNodes as i}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as c,CONTAINER_BLOCKS_SLOT as _}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as O}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{declaredBlockSource as d}from"efficient-web-builder/format/lib/content/block-sources";import{MENU_ENTRY_SIZE_PX as C}from"./menu-entry-type.js";const r="MenuLinkBlock";function l(t){return i([{type:r}],()=>`${t}~link`)}const E="blog-categories",T="count",y={...g,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,sharePhone:"content",wrapPhone:!1,name:"Card"},S="main",h={size:C,lineHeight:1,color:S};function a(t){const e={0:`${t}~card`,"0.0":`${t}~link`,"0.1":`${t}~count`};return i([{type:c,props:y,slots:{[_]:[{type:r},O(T,{...N,tag:"p"},h)]}}],(o,n)=>e[n]??`${t}~${n}`)}const s=t=>typeof t.id=="string"&&t.id.trim()?t.id:"Menu",u=t=>d(t)===E,m=t=>(u(t)?a:l)(s(t)),w=(t,e)=>Array.isArray(t)&&t.length===e.length&&JSON.stringify(t)===JSON.stringify(e);function x(t){const e=t.template;if(!Array.isArray(e)||e.length!==1)return t;const o=e[0]?.type;if(o!==r&&o!==c)return t;const n=s(t),f=u(t)?l(n):a(n);return w(e,f)?{...t,template:m(t)}:t}function $(t){return t.template!==void 0?x(t):{...t,template:m(t)}}export{E as MENU_BLOG_CATEGORIES_SOURCE,T as MENU_COUNT_FIELD,r as MENU_LINK_BLOCK,l as menuCardSeed,a as menuCountCardSeed,x as menuTemplateFollowsContent,$ as withMenuTemplate};
1
+ import{INNER_BOX as N,TEXT as _,seedNodes as i}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as c,CONTAINER_BLOCKS_SLOT as g}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as O}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{declaredBlockSource as d}from"efficient-web-builder/format/lib/content/block-sources";import{MENU_ENTRY_SIZE_PX as C}from"./menu-entry-type.js";import{seedNodeId as E}from"./seed-ids.js";const r="MenuLinkBlock";function l(e){return i([{type:r}],()=>`${e}~link`)}const T="blog-categories",S="count",h={...N,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,sharePhone:"content",wrapPhone:!1,name:"Card"},y="main",p={size:C,lineHeight:1,color:y};function s(e){const t={0:`${e}~card`,"0.0":`${e}~link`,"0.1":`${e}~count`};return i([{type:c,props:h,slots:{[g]:[{type:r},O(S,{..._,tag:"p"},p)]}}],(o,n)=>t[n]??`${e}~${n}`)}const a=e=>E(e,"Menu"),u=e=>d(e)===T,m=e=>(u(e)?s:l)(a(e)),w=(e,t)=>Array.isArray(e)&&e.length===t.length&&JSON.stringify(e)===JSON.stringify(t);function x(e){const t=e.template;if(!Array.isArray(t)||t.length!==1)return e;const o=t[0]?.type;if(o!==r&&o!==c)return e;const n=a(e),f=u(e)?l(n):s(n);return w(t,f)?{...e,template:m(e)}:e}function $(e){return e.template!==void 0?x(e):{...e,template:m(e)}}export{T as MENU_BLOG_CATEGORIES_SOURCE,S as MENU_COUNT_FIELD,r as MENU_LINK_BLOCK,l as menuCardSeed,s as menuCountCardSeed,x as menuTemplateFollowsContent,$ as withMenuTemplate};
@@ -1 +1 @@
1
- import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as u}from"efficient-web-builder/format/lib/document/container-blocks";import{DIM as D,INNER_BOX as l,boxPadding as C,seedNodes as m,token as E}from"efficient-web-builder/format/lib/document/seed-parts";import{CARD_ROW_FIELD_PROP as S}from"efficient-web-builder/format/lib/content/card-template";import{CARDS_BODY_LOOK as x}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{THEME_CARD_IMAGE_BG as I,resolveBoundCardImageBackground as L}from"efficient-web-builder/format/lib/content/card-image-background";import{SHARED_ROWS_KEY as k}from"efficient-web-builder/render/lib/content/box-shared-columns";import{GRID_CARD_SHOW as w,LISTING_CARD_SHOW as b}from"../sections/card-show-defaults.js";import{ALLOY_WHEELS_LISTING_TYPE as K}from"../document/document-nodes.js";const _="ProductPicture",y="ProductSpecs",P="ProductBuy",g="ProductPrice",f="ProductColour",A="ProductSize",R="ProductEyebrow",p="ProductName",Q=[_,R,p,y,g,f,A,P],ee=[{key:"name",label:"Name"},{key:"eyebrow",label:"Eyebrow"},{key:"note",label:"Note"},{key:"href",label:"Product page",kind:"link"},{key:"colour",label:"Product colour",kind:"colour"},{key:"colourVaried",label:"Product colour, varied",kind:"colour"},{key:"colourRandom",label:"Random colour",kind:"colour"}],N={...l,gap:0,gapPhone:0,...C(32,32,32,32),[k]:"shared"},h=(e,t="ProductGrid")=>typeof e.id=="string"&&e.id.trim()?e.id:t,a=(e,t)=>typeof e=="boolean"?e:t,U={type:"Text",props:{...D,tag:"p",text:"",[S]:"note",_partStyles:{text:{...x,...E("body",14),lineHeight:1.375}}}};function H(e,t={}){const r=e.dynamic===!0,o={},i=r?t.legacyWellHonoured?e.imageBackground??I:L(e.imageBackground):e.imageBackground;i!==void 0&&(o.imageBackground=i);for(const d of["cardImage","coverIndex","indexBadge","showBadge"])e[d]!==void 0&&(o[d]=e[d]);const c=t.showRest??w,n={price:a(e.showCardPrice,!0),finishes:a(e.showCardFinishes,!0),sizes:a(e.showCardSizes,c.showCardSizes),buy:a(e.showCardBuy,c.showCardBuy),page:a(e.showCardPage,c.showCardPage)},O={...N,name:"Card"};e.outline==="hairline"&&(O.sectionBorder={width:1,style:"solid"});const T=[{type:_,props:o},{type:R},{type:p},{type:y,props:{sizes:n.sizes}},...n.price?[{type:g}]:[],...n.finishes?[{type:f}]:[],...n.buy||n.page?[{type:P,props:{buy:n.buy,page:n.page}}]:[]];return{type:s,props:O,slots:{[u]:T}}}const G={...l,gap:0,gapPhone:0,...C(0,0,0,0)},Y={...l,gap:8,gapPhone:8,...C(16,20,16,20)},z={role:"heading",size:18,weight:500,case:"none",letterSpacing:-.015,lineHeight:1.2},B=24;function W(e){const t={frame:"full"};for(const o of["cardImage","showBadge"])e[o]!==void 0&&(t[o]=e[o]);const r={type:s,props:{...Y,name:"Copy"},slots:{[u]:[{type:p,props:{fixedHeight:!1,_partStyles:{"@name":z}}},U,{type:g}]}};return{type:s,props:{...G,name:"Card"},slots:{[u]:[{type:_,props:t},r]}}}function te(e){if(e.template!==void 0)return e;const t=h(e);return{...e,gap:e.gap??B,gapPhone:e.gapPhone??B,template:m([W(e)],(r,o)=>`${t}~card-${o}-${r}`)}}function X(e,t={}){const r=h(e,t.section);return m([H(e,t)],(o,i)=>`${r}~card-${i}-${o}`)}function oe(e){return $(e,{showRest:b,section:K})}function $(e,t={}){return e.template!==void 0?e:{...e,template:X(e,t)}}export{P as PRODUCT_BUY_BLOCK,ee as PRODUCT_CARD_FIELDS,Q as PRODUCT_CARD_SLOT_BLOCKS,f as PRODUCT_COLOUR_BLOCK,R as PRODUCT_EYEBROW_BLOCK,p as PRODUCT_NAME_BLOCK,_ as PRODUCT_PICTURE_BLOCK,g as PRODUCT_PRICE_BLOCK,A as PRODUCT_SIZE_BLOCK,y as PRODUCT_SPECS_BLOCK,W as kitCardSeed,H as productCardSeed,X as productCardTemplate,te as withKitCardTemplate,oe as withListingCardTemplate,$ as withProductCardTemplate};
1
+ import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as u}from"efficient-web-builder/format/lib/document/container-blocks";import{DIM as D,INNER_BOX as _,boxPadding as l,seedNodes as m,token as E}from"efficient-web-builder/format/lib/document/seed-parts";import{CARD_ROW_FIELD_PROP as I}from"efficient-web-builder/format/lib/content/card-template";import{CARDS_BODY_LOOK as S}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{THEME_CARD_IMAGE_BG as x,resolveBoundCardImageBackground as L}from"efficient-web-builder/format/lib/content/card-image-background";import{SHARED_ROWS_KEY as k}from"efficient-web-builder/render/lib/content/box-shared-columns";import{GRID_CARD_SHOW as w,LISTING_CARD_SHOW as b}from"../sections/card-show-defaults.js";import{ALLOY_WHEELS_LISTING_TYPE as K,PRODUCT_GRID_TYPE as A}from"../document/document-nodes.js";import{seedNodeId as N}from"./seed-ids.js";const C="ProductPicture",P="ProductSpecs",y="ProductBuy",p="ProductPrice",f="ProductColour",U="ProductSize",R="ProductEyebrow",O="ProductName",oe=[C,R,O,P,p,f,U,y],re=[{key:"name",label:"Name"},{key:"eyebrow",label:"Eyebrow"},{key:"note",label:"Note"},{key:"href",label:"Product page",kind:"link"},{key:"colour",label:"Product colour",kind:"colour"},{key:"colourVaried",label:"Product colour, varied",kind:"colour"},{key:"colourRandom",label:"Random colour",kind:"colour"}],H={..._,gap:0,gapPhone:0,...l(32,32,32,32),[k]:"shared"},h=(e,t=A)=>N(e,t),a=(e,t)=>typeof e=="boolean"?e:t,Y={type:"Text",props:{...D,tag:"p",text:"",[I]:"note",_partStyles:{text:{...S,...E("body",14),lineHeight:1.375}}}};function G(e,t={}){const r=e.dynamic===!0,o={},c=r?t.legacyWellHonoured?e.imageBackground??x:L(e.imageBackground):e.imageBackground;c!==void 0&&(o.imageBackground=c);for(const i of["cardImage","coverIndex","indexBadge","showBadge"])e[i]!==void 0&&(o[i]=e[i]);const d=t.showRest??w,n={price:a(e.showCardPrice,!0),finishes:a(e.showCardFinishes,!0),sizes:a(e.showCardSizes,d.showCardSizes),buy:a(e.showCardBuy,d.showCardBuy),page:a(e.showCardPage,d.showCardPage)},g={...H,name:"Card"};e.outline==="hairline"&&(g.sectionBorder={width:1,style:"solid"});const B=[{type:C,props:o},{type:R},{type:O},{type:P,props:{sizes:n.sizes}},...n.price?[{type:p}]:[],...n.finishes?[{type:f}]:[],...n.buy||n.page?[{type:y,props:{buy:n.buy,page:n.page}}]:[]];return{type:s,props:g,slots:{[u]:B}}}const z={..._,gap:0,gapPhone:0,...l(0,0,0,0)},W={..._,gap:8,gapPhone:8,...l(16,20,16,20)},X={role:"heading",size:18,weight:500,case:"none",letterSpacing:-.015,lineHeight:1.2},T=24;function $(e){const t={frame:"full"};for(const o of["cardImage","showBadge"])e[o]!==void 0&&(t[o]=e[o]);const r={type:s,props:{...W,name:"Copy"},slots:{[u]:[{type:O,props:{fixedHeight:!1,_partStyles:{"@name":X}}},Y,{type:p}]}};return{type:s,props:{...z,name:"Card"},slots:{[u]:[{type:C,props:t},r]}}}function ne(e){if(e.template!==void 0)return e;const t=h(e);return{...e,gap:e.gap??T,gapPhone:e.gapPhone??T,template:m([$(e)],(r,o)=>`${t}~card-${o}-${r}`)}}function M(e,t={}){const r=h(e,t.section);return m([G(e,t)],(o,c)=>`${r}~card-${c}-${o}`)}function ae(e){return F(e,{showRest:b,section:K})}function F(e,t={}){return e.template!==void 0?e:{...e,template:M(e,t)}}export{y as PRODUCT_BUY_BLOCK,re as PRODUCT_CARD_FIELDS,oe as PRODUCT_CARD_SLOT_BLOCKS,f as PRODUCT_COLOUR_BLOCK,R as PRODUCT_EYEBROW_BLOCK,O as PRODUCT_NAME_BLOCK,C as PRODUCT_PICTURE_BLOCK,p as PRODUCT_PRICE_BLOCK,U as PRODUCT_SIZE_BLOCK,P as PRODUCT_SPECS_BLOCK,$ as kitCardSeed,G as productCardSeed,M as productCardTemplate,ne as withKitCardTemplate,ae as withListingCardTemplate,F as withProductCardTemplate};
@@ -1 +1 @@
1
- import{HOST_PART_TYPE as c}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as m}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{INNER_BOX as a,LABEL_FACE as O,TEXT as p,boxPadding as l,seedNodes as L}from"efficient-web-builder/format/lib/document/seed-parts";import{say as P}from"efficient-web-builder/format/lib/editor-words";import{FACET_TEMPLATE_ALLOW as R,ONE_ROW as u}from"./facet-row-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as f}from"../document/document-nodes.js";const _="railTemplate",W="Filter group template",d="railHeadTemplate",$="Filter head template",s="railGroup",Y=[{key:s,label:"Filter group"}],g="options",S="end",b=R,x={...O,size:11,letterSpacing:.2,lineHeight:1.5},I={fontRole:"heading",size:18,weight:500,case:"upper",letterSpacing:-.01,lineHeight:1.5},T=(t,e)=>({type:c,props:{name:t,label:e}}),h=()=>({type:r,props:{...a,name:"Group",gap:0,startsOpen:!0},slots:{rowTitle:[m(s,{...p,tag:"span"},x)],[i]:[{type:r,props:{...a,name:"Options",...l(0,0),sectionPaddingBottom:12,sectionPaddingBottomPhone:12},slots:{[i]:[T(g,"Filter options")]}}]}}),y=()=>({type:r,props:{...u,name:"Head",justify:"between",...l(0,0),sectionPaddingBottom:8,sectionPaddingBottomPhone:8},slots:{[i]:[{type:"Text",props:{...p,tag:"h2",text:P("Filter"),_partStyles:{text:I}}},T(S,"Clear all")]}}),E=(t,e)=>{let o=0;return(n,A)=>A==="0"?`${t}~${e}`:`${t}~${e}.${o++}`};function H(t){return L([h()],E(t,"rail"))}function B(t){return L([y()],E(t,"railhead"))}function K(t){const e=t[_]===void 0,o=t[d]===void 0;if(!e&&!o)return t;const n=typeof t.id=="string"&&t.id.trim()?t.id:f;return{...t,...e?{[_]:H(n)}:{},...o?{[d]:B(n)}:{}}}const X=t=>({[s]:t});export{S as RAIL_END_PART,s as RAIL_GROUP_FIELD,$ as RAIL_HEAD_TEMPLATE_LABEL,d as RAIL_HEAD_TEMPLATE_SLOT,g as RAIL_OPTIONS_PART,Y as RAIL_ROW_FIELDS,b as RAIL_TEMPLATE_ALLOW,W as RAIL_TEMPLATE_LABEL,_ as RAIL_TEMPLATE_SLOT,X as railRow,K as withRailTemplates};
1
+ import{BOX_TYPE as n,CONTAINER_BLOCKS_SLOT as i}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as c}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{INNER_BOX as a,LABEL_FACE as m,TEXT as p,boxPadding as l,seedNodes as L}from"efficient-web-builder/format/lib/document/seed-parts";import{say as O}from"efficient-web-builder/format/lib/editor-words";import{FACET_TEMPLATE_ALLOW as P,ONE_ROW as R}from"./facet-row-seed.js";import{hostPartSeed as d}from"./host-part-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as u}from"../document/document-nodes.js";import{seedNodeId as f}from"./seed-ids.js";const _="railTemplate",$="Filter group template",E="railHeadTemplate",b="Filter head template",s="railGroup",K=[{key:s,label:"Filter group"}],S="options",g="end",X=P,x={...m,size:11,letterSpacing:.2,lineHeight:1.5},I={fontRole:"heading",size:18,weight:500,case:"upper",letterSpacing:-.01,lineHeight:1.5},h=()=>({type:n,props:{...a,name:"Group",gap:0,startsOpen:!0},slots:{rowTitle:[c(s,{...p,tag:"span"},x)],[i]:[{type:n,props:{...a,name:"Options",...l(0,0),sectionPaddingBottom:12,sectionPaddingBottomPhone:12},slots:{[i]:[d(S,"Filter options")]}}]}}),B=()=>({type:n,props:{...R,name:"Head",justify:"between",...l(0,0),sectionPaddingBottom:8,sectionPaddingBottomPhone:8},slots:{[i]:[{type:"Text",props:{...p,tag:"h2",text:O("Filter"),_partStyles:{text:I}}},d(g,"Clear all")]}}),T=(e,t)=>{let o=0;return(r,A)=>A==="0"?`${e}~${t}`:`${e}~${t}.${o++}`};function F(e){return L([h()],T(e,"rail"))}function H(e){return L([B()],T(e,"railhead"))}function Y(e){const t=e[_]===void 0,o=e[E]===void 0;if(!t&&!o)return e;const r=f(e,u);return{...e,...t?{[_]:F(r)}:{},...o?{[E]:H(r)}:{}}}const z=e=>({[s]:e});export{g as RAIL_END_PART,s as RAIL_GROUP_FIELD,b as RAIL_HEAD_TEMPLATE_LABEL,E as RAIL_HEAD_TEMPLATE_SLOT,S as RAIL_OPTIONS_PART,K as RAIL_ROW_FIELDS,X as RAIL_TEMPLATE_ALLOW,$ as RAIL_TEMPLATE_LABEL,_ as RAIL_TEMPLATE_SLOT,z as railRow,Y as withRailTemplates};
@@ -0,0 +1,6 @@
1
+ import type { SeededNode } from "efficient-web-builder/format/lib/document/seed-parts";
2
+ type Props = Record<string, unknown>;
3
+ export declare const seedNodeId: (props: Props, fallback: string) => string;
4
+ export declare const slotSeedIds: (nodeId: string, tag: string) => (_type: string, at: string) => string;
5
+ export declare function withSeededSlot(props: Props, slot: string, fallback: string, seed: (nodeId: string) => SeededNode[]): Props;
6
+ export {};
@@ -0,0 +1 @@
1
+ const n=(e,t)=>typeof e.id=="string"&&e.id.trim()?e.id:t,$=(e,t)=>(i,d)=>d==="0"?`${e}~${t}`:`${e}~${t}.${d.slice(2)}`;function c(e,t,i,d){return e[t]!==void 0?e:{...e,[t]:d(n(e,i))}}export{n as seedNodeId,$ as slotSeedIds,c as withSeededSlot};
@@ -1 +1 @@
1
- const t={label:"Buy button",defaultProps:{}};export{t as ProductBuyButtonMeta};
1
+ const t={label:"Buy button",defaultProps:{},sitsInBox:!0};export{t as ProductBuyButtonMeta};
@@ -8,6 +8,10 @@ export declare const ProductHeroSlots: {
8
8
  type: "slot";
9
9
  allow: ("Flex" | "Text")[];
10
10
  };
11
+ buyTemplate: {
12
+ type: "slot";
13
+ allow: ("Flex" | "ProductBuyButton")[];
14
+ };
11
15
  trustBullets: {
12
16
  type: "slot";
13
17
  allow: string[];
@@ -1 +1 @@
1
- import{DEFAULT_HERO_PRICE_PLACEMENT as e}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as r,DEFAULT_HERO_RATIO as _,DEFAULT_HERO_TEXT_ALIGN as l}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as E,DEFAULT_HERO_IMAGE_FIT as L}from"../../../../sections/hero-gallery.js";import{cardTemplateSlot as T}from"efficient-web-builder/format/lib/content/card-template";import{HERO_PRICE_BLOCK as O}from"../../../../content/hero-price-seed.js";import{HERO_OPTION_ALLOW as m,HERO_OPTION_SLOT as a}from"../../../../content/hero-option-seed.js";import{TRUST_BULLETS_ALLOW as i,TRUST_BULLETS_SLOT as o}from"../../../../sections/hero-trust-bullets.js";const t=T(),R="ProductBuyButton",p={template:{...t,allow:[...t.allow,O,R]},[a]:{type:"slot",allow:[...m]},[o]:{type:"slot",allow:i}},S={label:"Product Hero",fields:p,defaultProps:{source:null,pricePlacement:e,showVehicleFitment:!0,heroLayout:r,imageRatio:_,textAlign:l,showSpecTable:!0,showPriceQuote:!0,galleryMode:E,imageFit:L,[o]:[]}};export{S as ProductHeroMeta,p as ProductHeroSlots};
1
+ import{DEFAULT_HERO_PRICE_PLACEMENT as e}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as r,DEFAULT_HERO_RATIO as l,DEFAULT_HERO_TEXT_ALIGN as _}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as E,DEFAULT_HERO_IMAGE_FIT as L}from"../../../../sections/hero-gallery.js";import{cardTemplateSlot as O}from"efficient-web-builder/format/lib/content/card-template";import{HERO_PRICE_BLOCK as T}from"../../../../content/hero-price-seed.js";import{HERO_OPTION_ALLOW as m,HERO_OPTION_SLOT as a}from"../../../../content/hero-option-seed.js";import{HERO_BUY_ALLOW as i,HERO_BUY_SLOT as p}from"../../../../content/hero-buy-seed.js";import{TRUST_BULLETS_ALLOW as R,TRUST_BULLETS_SLOT as o}from"../../../../sections/hero-trust-bullets.js";const t=O(),A={template:{...t,allow:[...t.allow,T]},[a]:{type:"slot",allow:[...m]},[p]:{type:"slot",allow:[...i]},[o]:{type:"slot",allow:R}},F={label:"Product Hero",fields:A,defaultProps:{source:null,pricePlacement:e,showVehicleFitment:!0,heroLayout:r,imageRatio:l,textAlign:_,showSpecTable:!0,showPriceQuote:!0,galleryMode:E,imageFit:L,[o]:[]}};export{F as ProductHeroMeta,A as ProductHeroSlots};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{SITE_WIDTH_CAP as L}from"efficient-web-builder/format/lib/content/page-width";import{resolveWidth as g}from"efficient-web-builder/format/lib/content/section-width";import A from"../../../../../components/LinkedProductHero.js";import l from"../../../../../components/pdp-dynamic/DynamicProductHero.js";import O from"../../../../../components/SectionNotice.js";import{trustBulletsRow as R,trustBulletsSlot as y}from"../../../../../components/product-hero/trust-bullets.js";import{TRUST_BULLETS_SLOT as F}from"../../../../sections/hero-trust-bullets.js";import{HERO_OPTION_SLOT as m}from"../../../../content/hero-option-seed.js";import{cardPressTitlesOf as w}from"efficient-web-builder/render/lib/document/card-press-titles";import{useCurrentProduct as D}from"../../../current-product.js";import{isEditorOnDynamicPage as I}from"efficient-web-builder/format/lib/document/editor-page-context";import{DEFAULT_HERO_PRICE_PLACEMENT as S,parseHeroPricePlacement as U}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as p,DEFAULT_HERO_RATIO as M,DEFAULT_HERO_TEXT_ALIGN as k,parseHeroLayout as x,parseHeroRatio as B,parseHeroTextAlign as C}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as G,DEFAULT_HERO_IMAGE_FIT as N,parseHeroGalleryMode as V,parseHeroImageFit as b}from"../../../../sections/hero-gallery.js";import{say as j}from"efficient-web-builder/format/lib/editor-words";import{ProductHeroMeta as v}from"./meta.js";import{HideTaker as Q}from"efficient-web-builder/render/components/ViewHideRoot";function W({source:e,editing:t=!1,pricePlacement:i=S,showVehicleFitment:o=!0,heroLayout:a=p,imageRatio:u=M,textAlign:c=k,showSpecTable:f=!0,showPriceQuote:d=!0,galleryMode:s=G,imageFit:T=N,trustBullets:E,nodeId:_,priceTemplate:P,optionTemplate:H,optionPressTitles:h}){const n={heroLayout:a,imageRatio:u,textAlign:c,showSpecTable:f,showPriceQuote:d,galleryMode:s,imageFit:T,trustBullets:R(E,t),nodeId:_,priceTemplate:P,optionTemplate:H,optionPressTitles:h};return D()||t&&I()?r(l,{editing:t,pricePlacement:i,showVehicleFitment:o,...n}):e?.slug?r(A,{slug:e.slug,kind:e.kind??"wheel",editing:t,pricePlacement:i,showVehicleFitment:o,...n}):t?r(O,{size:"tall",children:j("Pick a product in the panel to fill this hero.")}):r(l,{pricePlacement:i,showVehicleFitment:o,...n})}function Y(e,t){return g(e,"full").mode!=="page"?t:r(Q,{as:"div",style:{"--sf-content-cap":L},children:t})}const de={...v,render:e=>Y(e,r(W,{source:e.source,editing:e.editor?.isEditing,pricePlacement:U(e.pricePlacement),showVehicleFitment:e.showVehicleFitment??!0,heroLayout:x(e.heroLayout),imageRatio:B(e.imageRatio),textAlign:C(e.textAlign),showSpecTable:e.showSpecTable??!0,showPriceQuote:e.showPriceQuote??!0,galleryMode:V(e.galleryMode),imageFit:b(e.imageFit),trustBullets:y(e[F]),nodeId:typeof e.id=="string"?e.id:void 0,priceTemplate:typeof e.template=="function"?e.template:void 0,optionTemplate:typeof e[m]=="function"?e[m]:void 0,optionPressTitles:w(e,m)}))};export{de as ProductHeroRender};
1
+ import{jsx as r}from"react/jsx-runtime";import{SITE_WIDTH_CAP as g}from"efficient-web-builder/format/lib/content/page-width";import{resolveWidth as R}from"efficient-web-builder/format/lib/content/section-width";import A from"../../../../../components/LinkedProductHero.js";import l from"../../../../../components/pdp-dynamic/DynamicProductHero.js";import y from"../../../../../components/SectionNotice.js";import{trustBulletsRow as F,trustBulletsSlot as w}from"../../../../../components/product-hero/trust-bullets.js";import{TRUST_BULLETS_SLOT as D}from"../../../../sections/hero-trust-bullets.js";import{HERO_OPTION_SLOT as m}from"../../../../content/hero-option-seed.js";import{HERO_BUY_SLOT as u}from"../../../../content/hero-buy-seed.js";import{cardPressTitlesOf as I}from"efficient-web-builder/render/lib/document/card-press-titles";import{useCurrentProduct as S}from"../../../current-product.js";import{isEditorOnDynamicPage as U}from"efficient-web-builder/format/lib/document/editor-page-context";import{DEFAULT_HERO_PRICE_PLACEMENT as B,parseHeroPricePlacement as M}from"../../../../sections/hero-price-placement.js";import{DEFAULT_HERO_LAYOUT as k,DEFAULT_HERO_RATIO as p,DEFAULT_HERO_TEXT_ALIGN as x,parseHeroLayout as C,parseHeroRatio as G,parseHeroTextAlign as N}from"../../../../sections/hero-arrangement.js";import{DEFAULT_HERO_GALLERY_MODE as b,DEFAULT_HERO_IMAGE_FIT as V,parseHeroGalleryMode as Y,parseHeroImageFit as j}from"../../../../sections/hero-gallery.js";import{say as v}from"efficient-web-builder/format/lib/editor-words";import{ProductHeroMeta as Q}from"./meta.js";import{HideTaker as W}from"efficient-web-builder/render/components/ViewHideRoot";function z({source:e,editing:t=!1,pricePlacement:i=B,showVehicleFitment:o=!0,heroLayout:a=k,imageRatio:c=p,textAlign:f=x,showSpecTable:d=!0,showPriceQuote:T=!0,galleryMode:s=b,imageFit:E=V,trustBullets:_,nodeId:H,priceTemplate:P,optionTemplate:L,optionPressTitles:h,buyTemplate:O}){const n={heroLayout:a,imageRatio:c,textAlign:f,showSpecTable:d,showPriceQuote:T,galleryMode:s,imageFit:E,trustBullets:F(_,t),nodeId:H,priceTemplate:P,optionTemplate:L,optionPressTitles:h,buyTemplate:O};return S()||t&&U()?r(l,{editing:t,pricePlacement:i,showVehicleFitment:o,...n}):e?.slug?r(A,{slug:e.slug,kind:e.kind??"wheel",editing:t,pricePlacement:i,showVehicleFitment:o,...n}):t?r(y,{size:"tall",children:v("Pick a product in the panel to fill this hero.")}):r(l,{pricePlacement:i,showVehicleFitment:o,...n})}function X(e,t){return R(e,"full").mode!=="page"?t:r(W,{as:"div",style:{"--sf-content-cap":g},children:t})}const Ee={...Q,render:e=>X(e,r(z,{source:e.source,editing:e.editor?.isEditing,pricePlacement:M(e.pricePlacement),showVehicleFitment:e.showVehicleFitment??!0,heroLayout:C(e.heroLayout),imageRatio:G(e.imageRatio),textAlign:N(e.textAlign),showSpecTable:e.showSpecTable??!0,showPriceQuote:e.showPriceQuote??!0,galleryMode:Y(e.galleryMode),imageFit:j(e.imageFit),trustBullets:w(e[D]),nodeId:typeof e.id=="string"?e.id:void 0,priceTemplate:typeof e.template=="function"?e.template:void 0,optionTemplate:typeof e[m]=="function"?e[m]:void 0,optionPressTitles:I(e,m),buyTemplate:typeof e[u]=="function"?e[u]:void 0}))};export{Ee as ProductHeroRender};
@@ -1 +1 @@
1
- import{PH as s,CTA_PH as u}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{phRows as o}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{say as r}from"efficient-web-builder/format/lib/editor-words";const h={headNum:s.sectionNumber,headTitle:s.headingAccent,headDesc:"A short description of your newsletter or publication.",kicker:"→ Newsletter",leadTitle:"Get it in the *inbox.*",intro:"Tell readers what they get and how often. One email, straight to the inbox. We will never sell your address.",emailPlaceholder:"your@email.com",submitText:"Subscribe →",subscribedText:"Subscribed ✓",finePrint:"Approx. 1 email per week · Unsubscribe in one click",issuesHeading:"Recent issues",archiveText:"View the full archive →",archiveHref:u.href},n=()=>["N° 04","N° 03","N° 02","N° 01"].map(t=>({n:t,title:r("Issue title"),small:r("Short description"),date:r("Month YYYY")}));function c(t){return t.map((e,i)=>({n:`N° ${String(t.length-i).padStart(2,"0")}`,title:e.title,small:e.meta,date:e.dateLabel}))}function f(t,e){if(t==="issues")return o(e.issues,n(),e.editor);const i=e.posts,l=typeof e.limit=="number"&&e.limit>0?e.limit:4,a=Array.isArray(i)?c(i.slice(0,l)):[];return o(a,n(),e.editor)}export{h as SUBSCRIBE_PH,c as blogPostsToIssues,f as subscribeRailRows,n as subscribeScaffoldIssues};
1
+ import{PH as s,CTA_PH as a}from"efficient-web-builder/format/lib/document/blocks/placeholders";import{phRows as o}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{say as r}from"efficient-web-builder/format/lib/editor-words";const d={headNum:s.sectionNumber,headTitle:s.headingAccent,headDesc:"A short description of your newsletter or publication.",kicker:"→ Newsletter",leadTitle:"Get it in the *inbox.*",intro:"Tell readers what they get and how often. One email, straight to the inbox. We will never sell your address.",emailPlaceholder:"your@email.com",submitText:"Subscribe →",subscribedText:"Subscribed ✓",finePrint:"Approx. 1 email per week · Unsubscribe in one click",issuesHeading:"Recent issues",archiveText:"View the full archive →",archiveHref:a.href},n=()=>["N° 04","N° 03","N° 02","N° 01"].map(t=>({n:t,title:r("Issue title"),small:r("Short description"),date:r("Month YYYY")}));function c(t){return t.map((e,i)=>({n:`N° ${String(t.length-i).padStart(2,"0")}`,title:e.title,small:e.meta}))}function f(t,e){if(t==="issues")return o(e.issues,n(),e.editor);const i=e.posts,l=typeof e.limit=="number"&&e.limit>0?e.limit:4,u=Array.isArray(i)?c(i.slice(0,l)):[];return o(u,n(),e.editor)}export{d as SUBSCRIBE_PH,c as blogPostsToIssues,f as subscribeRailRows,n as subscribeScaffoldIssues};
@@ -1 +1 @@
1
- import{CARD_LIST_TYPE as L,CARD_ROW_FIELD_PROP as h,CARD_ROW_LINK_PROP as _,CARD_TEMPLATE_SLOT as C,registerCardTemplates as te}from"efficient-web-builder/format/lib/content/card-template";import{DIM as s,INNER_BOX as o,TEXT as n,boxPadding as r,fillSlot as N,labelLook as A,labelStyle as D,seedNodes as w,token as d}from"efficient-web-builder/format/lib/document/seed-parts";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 B}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 oe,EVENTS_FEATURED_DARKEN_STYLE as F,EVENTS_FEATURED_PLACEMENT as ae}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as ie,COLLECTION_HOVER_DARKEN as ne,COLLECTION_HOVER_ZOOM as H}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as p,COLLECTION_CARD_TEXT_SIZE as re}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as K}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as P}from"../sections/product-grid-columns.js";import{bundleColumns as se}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as de,withHeroPriceTemplate as Ee}from"../content/hero-price-seed.js";import{HERO_OPTION_FIELDS as M,HERO_OPTION_SLOT as ce,HERO_OPTION_SLOT_LABEL as Te,withHeroOptionTemplate as _e}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as pe,withFilterChipsTemplate as Oe,withFilterTemplate as me}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as O,FACET_TEMPLATE_LABEL as x,FACET_TEMPLATE_SLOT as U,withFacetTemplate as v}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as be,RAIL_HEAD_TEMPLATE_SLOT as Le,RAIL_ROW_FIELDS as g,RAIL_TEMPLATE_LABEL as he,RAIL_TEMPLATE_SLOT as Ce,withRailTemplates as V}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as Pe,withMenuTemplate as ge}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as G,CONTACT_CHANNEL_SLOT as ye,CONTACT_REASON_FIELDS as ke,CONTACT_REASON_SLOT as fe,CONTACT_TOPIC_FIELDS as W,CONTACT_TOPIC_SLOT as Se,withContactTemplates as Re}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as ue,withArticleBodyTemplate as Ie}from"../content/article-body-seed.js";import{APPOINTMENT_BOOKING_TYPE as Ne,BOOKING_BOX_TYPE as Ae,BOOKING_OPTION_FIELDS as De,BOOKING_TEMPLATE_SLOTS as we,withBookingTemplates as Be}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Fe,PRODUCT_CARD_FIELDS as y,PRODUCT_COLOUR_BLOCK as He,PRODUCT_EYEBROW_BLOCK as Ke,PRODUCT_NAME_BLOCK as Me,PRODUCT_PICTURE_BLOCK as xe,PRODUCT_PRICE_BLOCK as Ue,PRODUCT_SIZE_BLOCK as ve,PRODUCT_SPECS_BLOCK as Ve,productCardSeed as Ge,withKitCardTemplate as k,withListingCardTemplate as We,withProductCardTemplate as f}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as Ye,MENU_BLOCK_TYPE as $e}from"./document-nodes.js";const Y="tags",E=A(12),$={textStyle:"heading-3",...d("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},X={textStyle:"body-1",...d("body",14),lineHeight:1.55},Xe={...$,...d("headingSmall",30)},Ze={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},je=le.fallback,ze=480,qe=70,Qe=()=>({type:a,props:{...o,name:"Featured",[B]:"cover",darken:oe,darkenStyle:F,darkenPhone:qe,darkenStylePhone:F,placement:ae,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:je,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:ze,sectionHeightUnitPhone:"px",[_]:"href"},slots:{[i]:[l("meta",{...n,tag:"p"},E,!0),l("title",{...n,tag:"h3",widthFit:"fill"},Xe),l("excerpt",{...s,tag:"p",widthFit:"fill",maxWidth:384},X),l("dateLabel",{...s,tag:"p"},{...E,color:"muted"})]}}),Je=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...N("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[h]:"cover",aspect:"16/10",contained:!1}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...Ze},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]:[l("meta",{...n,tag:"p"},E,!0),l("dateLabel",{...s,tag:"p"},{...E,color:"muted"},!0)]}},l("title",{...n,tag:"h3",widthFit:"fill"},$),l("excerpt",{...s,tag:"p",widthFit:"fill"},X),{type:L,props:{[h]:Y},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[l("label",{...s,tag:"p"},E)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[_]:"href",...K,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(12)}}}]}}]}}),et=()=>[Qe(),Je()];function tt(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Events",S=["featured","post"];return{...e,template:w(et(),(b,ee)=>{const[R,...u]=ee.split("."),I=S[Number(R)]??`card${R}`;return u.length?`${t}~${I}.${u.join(".")}`:`${t}~${I}`})}}const lt={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:Y,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:L,label:"Card list"}],seedOnInsert:tt},c=e=>Number(/(\d+)px/.exec(e)?.[1]),T={tag:c(p.tag.builtIn),name:c(p.name.builtIn),namePhone:c(re.namePhone),body:c(p.body.builtIn),link:c(p.link.builtIn)},ot={...A(T.tag),letterSpacing:.25},at={textStyle:"heading-2",...d("headingMedium",T.name,T.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},it={textStyle:"body-1",...d("body",T.body),lineHeight:1.5,paragraphSpacing:12},Z=()=>[l("tag",{...n,tag:"p"},ot,!0),l("name",{...n,tag:"h3",widthFit:"fill"},at),l("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},it),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[_]:"href",...K,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(T.link)}}}],j={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},nt=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[_]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[B]:"image",boxShape:"portrait",darken:ie,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:H,hoverDarken:ne,_hiddenPhone:!0},slots:{[i]:Z()}},{type:"ImageBlock",props:{[h]:"image",aspect:"4/5",contained:!1,hoverZoom:H,...j}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...N("surface"),...j},slots:{[i]:Z()}}]}});function rt(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Collections";return{...e,template:w([nt()],(S,b)=>`${t}~card${b?`.${b}`:""}`)}}const st={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:rt},dt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Et=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!dt.includes(t))),z={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Pe,label:"Menu link"}],seed:ge},q=e=>e.dynamic===!0&&e.relationship==="bundles",Ft=(e={})=>Ge(e),m={fields:y,blocks:[{type:xe,label:"Picture"},{type:Ke,label:"Eyebrow"},{type:Me,label:"Name"},{type:Ve,label:"Specs"},{type:Ue,label:"Price"},{type:He,label:"Colour"},{type:ve,label:"Size"},{type:Fe,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return f(e);const t=P(e);return q(e)?k(t):f(t)}},Q=[{key:"label",label:"Filter name"},{key:pe,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],J=[{slot:Ce,label:he,fields:g},{slot:Le,label:be,fields:[]}],ct=[{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",...z},{block:$e,...z},{block:"ProductGrid",...m},{block:Ye,...m,slots:[{slot:C,fields:y},{slot:U,label:x,fields:O},...J],fields:[...y,...O,...g],seed:e=>V(v(We(e)))},{block:"RelatedProducts",...m,seed:e=>{const t=P({...Et(e),dynamic:!0});return q(t)?k(t):f(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...m,seed:e=>k(P({...e,columns:se(e),dynamic:!0}))},{block:"ProductHero",slots:[{slot:C,fields:[]},{slot:ce,label:Te,fields:M}],fields:M,blocks:[{type:de,label:"Price"}],seed:e=>_e(Ee(e))},{block:"FilterBlock",slots:[{slot:C,fields:Q},{slot:U,label:x,fields:O},...J],fields:[...Q,...O,...g],blocks:[{type:L,label:"Card list"}],seed:e=>V(v(me(e)))},{block:"FilterChipsBlock",fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Oe},{block:"ContactRouting",slots:[{slot:Se,label:"Topic card",fields:W},{slot:fe,label:"Reason chip",fields:ke},{slot:ye,label:"Channel row",fields:G}],fields:[...W,...G],seed:Re},{block:ue,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:Ie},...[Ae,Ne].map(e=>({block:e,slots:we,fields:De,seed:t=>Be(e,t)})),{block:"Events",...lt},{block:"Collections",...st}];te(ct);export{ct as STOREFRONT_CARD_TEMPLATES,nt as collectionCardSeed,q as drawsKits,et as eventsCardSeeds,Ft as productGridCardSeed,rt as withCollectionsTemplate,tt as withEventsTemplate};
1
+ import{CARD_LIST_TYPE as h,CARD_ROW_FIELD_PROP as P,CARD_ROW_LINK_PROP as c,CARD_TEMPLATE_SLOT as s,registerCardTemplates as le}from"efficient-web-builder/format/lib/content/card-template";import{DIM as d,INNER_BOX as o,TEXT as n,boxPadding as r,fillSlot as N,labelLook as A,labelStyle as D,seedNodes as w,token as E}from"efficient-web-builder/format/lib/document/seed-parts";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 B}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as oe}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as ae,EVENTS_FEATURED_DARKEN_STYLE as F,EVENTS_FEATURED_PLACEMENT as ie}from"../content/events-featured-look.js";import{COLLECTION_DARKEN as ne,COLLECTION_HOVER_DARKEN as re,COLLECTION_HOVER_ZOOM as H}from"../content/collection-card-look.js";import{COLLECTION_CARD_REGIONS as O,COLLECTION_CARD_TEXT_SIZE as se}from"efficient-web-builder/format/lib/sections/collection-card-text-regions";import{SH_LINK as K}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as g}from"../sections/product-grid-columns.js";import{bundleColumns as de}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as Ee,withHeroPriceTemplate as Te}from"../content/hero-price-seed.js";import{HERO_BUY_SLOT as _e,HERO_BUY_SLOT_LABEL as pe,withHeroBuyTemplate as ce}from"../content/hero-buy-seed.js";import{HERO_OPTION_FIELDS as M,HERO_OPTION_SLOT as Oe,HERO_OPTION_SLOT_LABEL as me,withHeroOptionTemplate as Le}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as be,withFilterChipsTemplate as Ce,withFilterTemplate as he}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as m,FACET_TEMPLATE_LABEL as U,FACET_TEMPLATE_SLOT as x,withFacetTemplate as v}from"../content/facet-row-seed.js";import{RAIL_HEAD_TEMPLATE_LABEL as Pe,RAIL_HEAD_TEMPLATE_SLOT as ge,RAIL_ROW_FIELDS as y,RAIL_TEMPLATE_LABEL as ye,RAIL_TEMPLATE_SLOT as Re,withRailTemplates as V}from"../content/rail-row-seed.js";import{MENU_LINK_BLOCK as Se,withMenuTemplate as ke}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as Y,CONTACT_CHANNEL_SLOT as fe,CONTACT_REASON_FIELDS as ue,CONTACT_REASON_SLOT as Ie,CONTACT_TOPIC_FIELDS as G,CONTACT_TOPIC_SLOT as Ne,withContactTemplates as Ae}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as De,withArticleBodyTemplate as we}from"efficient-web-builder/format/lib/document/article-body-seed";import{APPOINTMENT_BOOKING_TYPE as Be,BOOKING_BOX_TYPE as Fe,BOOKING_OPTION_FIELDS as He,BOOKING_TEMPLATE_SLOTS as Ke,withBookingTemplates as Me}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as Ue,PRODUCT_CARD_FIELDS as R,PRODUCT_COLOUR_BLOCK as xe,PRODUCT_EYEBROW_BLOCK as ve,PRODUCT_NAME_BLOCK as Ve,PRODUCT_PICTURE_BLOCK as Ye,PRODUCT_PRICE_BLOCK as Ge,PRODUCT_SIZE_BLOCK as We,PRODUCT_SPECS_BLOCK as $e,productCardSeed as Xe,withKitCardTemplate as S,withListingCardTemplate as Ze,withProductCardTemplate as k}from"../content/product-card-seed.js";import{ALLOY_WHEELS_LISTING_TYPE as je,FILTER_BLOCK_TYPE as ze,FILTER_CHIPS_TYPE as qe,MENU_BLOCK_TYPE as Qe,PRODUCT_GRID_TYPE as Je,PRODUCT_HERO_TYPE as et}from"./document-nodes.js";import{withSeededSlot as W}from"../content/seed-ids.js";const $="tags",T=A(12),X={textStyle:"heading-3",...E("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},Z={textStyle:"body-1",...E("body",14),lineHeight:1.55},tt={...X,...E("headingSmall",30)},lt={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},ot=oe.fallback,at=480,it=70,nt=()=>({type:a,props:{...o,name:"Featured",[B]:"cover",darken:ae,darkenStyle:F,darkenPhone:it,darkenStylePhone:F,placement:ie,direction:"column",gap:8,gapPhone:8,...r(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:ot,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:at,sectionHeightUnitPhone:"px",[c]:"href"},slots:{[i]:[l("meta",{...n,tag:"p"},T,!0),l("title",{...n,tag:"h3",widthFit:"fill"},tt),l("excerpt",{...d,tag:"p",widthFit:"fill",maxWidth:384},Z),l("dateLabel",{...d,tag:"p"},{...T,color:"muted"})]}}),rt=()=>({type:a,props:{...o,name:"Post",gap:0,gapPhone:0,...r(0,0,0,0),...N("surface"),shadow:!0},slots:{[i]:[{type:"ImageBlock",props:{[P]:"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]:[l("meta",{...n,tag:"p"},T,!0),l("dateLabel",{...d,tag:"p"},{...T,color:"muted"},!0)]}},l("title",{...n,tag:"h3",widthFit:"fill"},X),l("excerpt",{...d,tag:"p",widthFit:"fill"},Z),{type:h,props:{[P]:$},slots:{template:[{type:a,props:{...o,name:"Chip",...r(4,8,4,8),sectionBorder:{width:1}},slots:{[i]:[l("label",{...d,tag:"p"},T)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[c]:"href",...K,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(12)}}}]}}]}}),st=()=>[nt(),rt()];function dt(e){const t=["featured","post"];return W(e,s,"Events",b=>w(st(),(C,te)=>{const[f,...u]=te.split("."),I=t[Number(f)]??`card${f}`;return u.length?`${b}~${I}.${u.join(".")}`:`${b}~${I}`}))}const Et={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:$,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:h,label:"Card list"}],seedOnInsert:dt},_=e=>Number(/(\d+)px/.exec(e)?.[1]),p={tag:_(O.tag.builtIn),name:_(O.name.builtIn),namePhone:_(se.namePhone),body:_(O.body.builtIn),link:_(O.link.builtIn)},Tt={...A(p.tag),letterSpacing:.25},_t={textStyle:"heading-2",...E("headingMedium",p.name,p.namePhone),weight:500,lineHeight:1,letterSpacing:-.03},pt={textStyle:"body-1",...E("body",p.body),lineHeight:1.5,paragraphSpacing:12},j=()=>[l("tag",{...n,tag:"p"},Tt,!0),l("name",{...n,tag:"h3",widthFit:"fill"},_t),l("desc",{...n,tag:"p",widthFit:"fill",maxWidth:420},pt),{type:"ButtonBlock",props:{variant:"ghost",label:"Explore",href:"",[c]:"href",...K,icon:"arrow-right",iconPosition:"after",_partStyles:{label:D(p.link)}}}],z={_hidden:!0,_hiddenTablet:!0,_hiddenPhone:!1},ct=()=>({type:a,props:{...o,name:"Collection",gap:0,gapPhone:0,...r(0,0,0,0),[c]:"href"},slots:{[i]:[{type:a,props:{...o,name:"Picture",[B]:"image",boxShape:"portrait",darken:ne,placement:"bottom-left",direction:"column",gap:12,gapPhone:12,...r(32,32),hoverZoom:H,hoverDarken:re,_hiddenPhone:!0},slots:{[i]:j()}},{type:"ImageBlock",props:{[P]:"image",aspect:"4/5",contained:!1,hoverZoom:H,...z}},{type:a,props:{...o,name:"Words",gap:12,gapPhone:12,...r(24,24),...N("surface"),...z},slots:{[i]:j()}}]}});function Ot(e){return W(e,s,"Collections",t=>w([ct()],(b,C)=>`${t}~card${C?`.${C}`:""}`))}const mt={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:Ot},Lt=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],bt=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!Lt.includes(t))),q={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:Se,label:"Menu link"}],seed:ke},Q=e=>e.dynamic===!0&&e.relationship==="bundles",Wt=(e={})=>Xe(e),L={fields:R,blocks:[{type:Ye,label:"Picture"},{type:ve,label:"Eyebrow"},{type:Ve,label:"Name"},{type:$e,label:"Specs"},{type:Ge,label:"Price"},{type:xe,label:"Colour"},{type:We,label:"Size"},{type:Ue,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return k(e);const t=g(e);return Q(e)?S(t):k(t)}},J=[{key:"label",label:"Filter name"},{key:be,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],ee=[{slot:Re,label:ye,fields:y},{slot:ge,label:Pe,fields:[]}],Ct=[{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",...q},{block:Qe,...q},{block:Je,...L},{block:je,...L,slots:[{slot:s,fields:R},{slot:x,label:U,fields:m},...ee],fields:[...R,...m,...y],seed:e=>V(v(Ze(e)))},{block:"RelatedProducts",...L,seed:e=>{const t=g({...bt(e),dynamic:!0});return Q(t)?S(t):k(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...L,seed:e=>S(g({...e,columns:de(e),dynamic:!0}))},{block:et,slots:[{slot:s,fields:[]},{slot:Oe,label:me,fields:M},{slot:_e,label:pe,fields:[]}],fields:M,blocks:[{type:Ee,label:"Price"}],seed:e=>ce(Le(Te(e)))},{block:ze,slots:[{slot:s,fields:J},{slot:x,label:U,fields:m},...ee],fields:[...J,...m,...y],blocks:[{type:h,label:"Card list"}],seed:e=>V(v(he(e)))},{block:qe,fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Ce},{block:"ContactRouting",slots:[{slot:Ne,label:"Topic card",fields:G},{slot:Ie,label:"Reason chip",fields:ue},{slot:fe,label:"Channel row",fields:Y}],fields:[...G,...Y],seed:Ae},{block:De,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:we},...[Fe,Be].map(e=>({block:e,slots:Ke,fields:He,seed:t=>Me(e,t)})),{block:"Events",...Et},{block:"Collections",...mt}];le(Ct);export{Ct as STOREFRONT_CARD_TEMPLATES,ct as collectionCardSeed,Q as drawsKits,st as eventsCardSeeds,Wt as productGridCardSeed,Ot as withCollectionsTemplate,dt as withEventsTemplate};
@@ -1,19 +1,15 @@
1
1
  import type { Data } from "efficient-easel/blocks";
2
+ import { type Node } from "efficient-easel/data";
2
3
  export declare const FILTER_BLOCK_TYPE = "FilterBlock";
3
4
  export declare const FILTER_CHIPS_TYPE = "FilterChipsBlock";
4
5
  export declare const PRODUCT_GRID_TYPE = "ProductGrid";
6
+ export declare const PRODUCT_HERO_TYPE = "ProductHero";
5
7
  export declare const ALLOY_WHEELS_LISTING_TYPE = "AlloyWheelsListing";
6
8
  export declare const MENU_BLOCK_TYPE = "MenuBlock";
7
- export type DocNode = {
8
- type: string;
9
- props: Record<string, unknown>;
10
- };
11
- export declare function isDocNode(value: unknown): value is DocNode;
12
- export declare function slotListsOf(node: DocNode): [string, DocNode[]][];
13
9
  export interface PlacedNode {
14
- node: DocNode;
10
+ node: Node;
15
11
  order: number;
16
- lists: DocNode[][];
12
+ lists: Node[][];
17
13
  }
18
14
  export declare function placedDocumentNodes(data: Data | {
19
15
  content?: unknown;
@@ -22,5 +18,5 @@ export declare function placedDocumentNodes(data: Data | {
22
18
  export declare function documentNodes(data: Data | {
23
19
  content?: unknown;
24
20
  zones?: unknown;
25
- } | null | undefined): DocNode[];
26
- export declare function mapDocumentNodes(data: Data, transform: (node: DocNode, original: DocNode) => DocNode): Data;
21
+ } | null | undefined): Node[];
22
+ export declare function mapDocumentNodes(data: Data, transform: (node: Node, original: Node) => Node): Data;
@@ -1 +1 @@
1
- const E="FilterBlock",_="FilterChipsBlock",O="ProductGrid",T="AlloyWheelsListing",d="MenuBlock";function l(e){const t=e;return!!t&&typeof t=="object"&&typeof t.type=="string"&&!!t.props&&typeof t.props=="object"}function y(e){return Object.entries(e.props??{}).filter(t=>Array.isArray(t[1])&&t[1].length>0&&t[1].every(l))}function A(e){const t=e??{},c=[];Array.isArray(t.content)&&c.push(t.content);for(const s of Object.values(t.zones??{}))Array.isArray(s)&&c.push(s);return c}function L(e){const t=[],c=(s,p)=>{const f=[s,...p];for(const i of s)if(l(i)){t.push({node:i,order:t.length,lists:f});for(const[,o]of y(i))c(o,f)}};for(const s of A(e))c(s,[]);return t}function h(e){return L(e).map(t=>t.node)}function P(e,t){const c=o=>{let n=o;for(const[r,u]of y(o)){const a=u.map(c);a.some((m,x)=>m!==u[x])&&(n={...n,props:{...n.props,[r]:a}})}return t(n,o)},s=o=>{const n=o.map(r=>l(r)?c(r):r);return n.some((r,u)=>r!==o[u])?n:o},p=e;let f=null;const i=()=>f??={...e};if(Array.isArray(p.content)){const o=s(p.content);o!==p.content&&(i().content=o)}if(p.zones){const o=Object.fromEntries(Object.entries(p.zones).map(([n,r])=>[n,Array.isArray(r)?s(r):r]));Object.keys(o).some(n=>o[n]!==p.zones[n])&&(i().zones=o)}return f??e}export{T as ALLOY_WHEELS_LISTING_TYPE,E as FILTER_BLOCK_TYPE,_ as FILTER_CHIPS_TYPE,d as MENU_BLOCK_TYPE,O as PRODUCT_GRID_TYPE,h as documentNodes,l as isDocNode,P as mapDocumentNodes,L as placedDocumentNodes,y as slotListsOf};
1
+ import{isNode as a}from"efficient-easel/data";import{mapEachNode as l,mapNodeLists as m,mapPageContent as E}from"efficient-web-builder/format/lib/document/node-lists";const T="FilterBlock",x="FilterChipsBlock",y="ProductGrid",A="ProductHero",C="AlloyWheelsListing",N="MenuBlock";function L(r){const o=r??{},t=[];Array.isArray(o.content)&&t.push(o.content);for(const n of Object.values(o.zones??{}))Array.isArray(n)&&t.push(n);return t}function _(r){const o=[],t=(n,u)=>{const i=[n,...u];for(const c of n)a(c)&&(o.push({node:c,order:o.length,lists:i}),m(c,p=>(t(p,i),p)))};for(const n of L(r))t(n,[]);return o}function O(r){return _(r).map(o=>o.node)}function h(r,o){const t=s=>o(m(s,e=>l(e,n)),s),n=s=>t(s),u=s=>l(s,e=>a(e)?t(e):e),i=E(r,u),c=r.zones;if(!c)return i;let p=null;for(const[s,e]of Object.entries(c)){if(!Array.isArray(e))continue;const f=u(e);f!==e&&((p??={...c})[s]=f)}return p?{...i,zones:p}:i}export{C as ALLOY_WHEELS_LISTING_TYPE,T as FILTER_BLOCK_TYPE,x as FILTER_CHIPS_TYPE,N as MENU_BLOCK_TYPE,y as PRODUCT_GRID_TYPE,A as PRODUCT_HERO_TYPE,O as documentNodes,h as mapDocumentNodes,_ as placedDocumentNodes};
@@ -35,6 +35,7 @@ export declare function gridPagingOf(props: {
35
35
  perPage?: unknown;
36
36
  limit?: unknown;
37
37
  showAll?: unknown;
38
+ [key: string]: unknown;
38
39
  }): {
39
40
  paged: boolean;
40
41
  per: number;
@@ -1,9 +1,9 @@
1
+ import type { Node } from "efficient-easel/data";
1
2
  import type { Data } from "efficient-easel/blocks";
2
- import { type DocNode } from "../document/document-nodes.js";
3
3
  import type { ProductKind } from "../api/index.js";
4
4
  import type { SelectedRanges } from "efficient-web-builder/render/lib/content/box-show-for";
5
5
  import { type PlpSortKey } from "./plp-filters.js";
6
- type ContentNode = DocNode;
6
+ type ContentNode = Node;
7
7
  export declare const FIRST_ROWS_PROP = "firstRows";
8
8
  export declare const FIRST_SHOWN_PROP = "firstShown";
9
9
  export declare const FIRST_COUNT_IN_CHIPS_PROP = "firstCountInChips";
package/dist/words.d.ts CHANGED
@@ -1630,6 +1630,7 @@ export type StorefrontBlocksPhrase =
1630
1630
  | "Bundles"
1631
1631
  | "Bundles containing this product appear here on a product page."
1632
1632
  | "Buy"
1633
+ | "Buy template"
1633
1634
  | "CSV"
1634
1635
  | "Call"
1635
1636
  | "Call button"
@@ -2048,6 +2049,7 @@ export type StorefrontBlocksPhrase =
2048
2049
  | "Products per page"
2049
2050
  | "Profile"
2050
2051
  | "Promise row"
2052
+ | "Quantity"
2051
2053
  | "Questions? Talk to us"
2052
2054
  | "Rate table"
2053
2055
  | "Rates"