efficient-web-builder 67.2.0 → 67.3.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 (64) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/editor/components/useSectionToBoxPass.d.ts +4 -0
  3. package/dist/editor/components/useSectionToBoxPass.js +1 -1
  4. package/dist/editor/lib/document/add-palette.js +1 -1
  5. package/dist/editor/lib/document/add-target.js +1 -1
  6. package/dist/editor/lib/document/block-offer.js +1 -1
  7. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  8. package/dist/editor/lib/document/controls.js +1 -1
  9. package/dist/editor/lib/document/field-groups.js +1 -1
  10. package/dist/editor/lib/document/heading-outline.js +1 -1
  11. package/dist/editor/lib/document/slot-new-children.js +1 -1
  12. package/dist/editor/lib/host-document-bridge.js +1 -1
  13. package/dist/editor/lib/sections/city-presets.js +1 -1
  14. package/dist/editor/lib/sections/new-section-node.js +1 -1
  15. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  16. package/dist/editor/lib/sections/text-layouts.js +1 -1
  17. package/dist/format/lib/content/box-layout.js +1 -1
  18. package/dist/format/lib/content/mirror-cards.js +1 -1
  19. package/dist/format/lib/content/section-width.js +1 -1
  20. package/dist/format/lib/document/box-footer.js +1 -1
  21. package/dist/format/lib/document/container-blocks.js +1 -1
  22. package/dist/format/lib/document/media-drop.js +1 -1
  23. package/dist/format/lib/document/part-inks.js +1 -1
  24. package/dist/format/lib/document/part-records.js +1 -1
  25. package/dist/format/lib/document/passes/catalogue-labels.js +1 -1
  26. package/dist/format/lib/document/passes/media-values.js +1 -1
  27. package/dist/format/lib/document/row-hand.js +1 -1
  28. package/dist/format/lib/document/section-catalog.js +3 -3
  29. package/dist/format/lib/document/source-bound-parts.js +1 -1
  30. package/dist/format/lib/document/templateFields.js +1 -1
  31. package/dist/format/lib/document/theme-slots.js +1 -1
  32. package/dist/format/lib/editor-words.js +1 -1
  33. package/dist/format/lib/logo/logo-size.d.ts +5 -0
  34. package/dist/format/lib/logo/logo-size.js +1 -1
  35. package/dist/format/lib/own-entry.d.ts +2 -0
  36. package/dist/format/lib/own-entry.js +1 -0
  37. package/dist/format/lib/preview-header-settings.d.ts +3 -0
  38. package/dist/format/lib/sections/active-press-context.js +1 -1
  39. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  40. package/dist/format/lib/sections/section-eyebrow-look.js +1 -1
  41. package/dist/format/lib/sections/section-head-placement.js +1 -1
  42. package/dist/format/lib/sections/section-presets.d.ts +2 -0
  43. package/dist/format/lib/sections/section-presets.js +1 -1
  44. package/dist/format/lib/sections/section-text-kinds.js +1 -1
  45. package/dist/format/lib/sections/section-text-regions.js +1 -1
  46. package/dist/format/lib/source-rules/editor-words.js +3 -3
  47. package/dist/format/lib/source-rules/import-time-work.js +4 -4
  48. package/dist/format/lib/source-rules/own-key-reads.d.ts +26 -0
  49. package/dist/format/lib/source-rules/own-key-reads.js +7 -0
  50. package/dist/render/components/Logo.d.ts +2 -1
  51. package/dist/render/components/Logo.js +1 -1
  52. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  53. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  54. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  55. package/dist/render/lib/document/head-core-boxes.js +1 -1
  56. package/dist/render/lib/document/migrate-legacy.js +1 -1
  57. package/dist/render/lib/document/part-styles.js +2 -2
  58. package/dist/render/lib/document/passes/section-animation.js +1 -1
  59. package/dist/render/lib/document/passes/section-padding.js +1 -1
  60. package/dist/render/lib/document/passes/section-width.js +1 -1
  61. package/dist/render/lib/document/slot-counts.js +1 -1
  62. package/dist/render/lib/document/slot-specs.js +1 -1
  63. package/dist/render/lib/sections/section-to-box.js +1 -1
  64. package/package.json +1 -1
@@ -1 +1 @@
1
- import{jsx as S}from"react/jsx-runtime";import{HideTaker as _}from"../../../components/ViewHideRoot.js";import{isBackgroundBox as m}from"../../../../format/lib/content/box-background.js";import{boxSideSpaceOf as u}from"../../../../format/lib/content/box-side-space.js";import{SECTION_PAD_KEYS as p,padValuesOf as T,resolveSectionPadding as g,sectionPadAttrs as I}from"../../content/section-padding.js";import{sectionFillPassClass as b}from"../../../../format/lib/content/section-min-height.js";import{COPIES_IN_THE_BOX as E,drawsCopiesInTheBox as O}from"../../../../format/lib/content/copies-in-box.js";const l={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},c=new Set(Object.keys(l)),P=new Set(["Flex","Text","Heading","ImageBlock"]),x=new Set(["Divider"]),N=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),f=new Set(["ProductGrid"]);function s(e,t,o=!1){const i=e.render;e.render=n=>{if(t?.(n))return i(n);const r=I({...T(n,p,o),sideSpace:u(n.sideSpace)}),a=i(n),d=b(n);return r?S(_,{className:d?`${r.className} ${d}`:r.className,style:r.style,children:a}):a}}const L={name:"sectionPadding",applies:(e,t,o)=>t.isSection(e)&&!N.has(e)&&!!o&&typeof o.render=="function",panel(e,t,o){c.has(t)||f.has(t)||(e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,t){if(c.has(t)){const o=e.render,i=l[t];e.render=n=>{const r=g(n,i);return o({...n,padTop:r.top,padBottom:r.bottom})};return}if(f.has(t)){s(e);return}P.has(t)||x.has(t)||s(e,t==="Flex"?o=>m(o.bgImage):E.has(t)?o=>O(t,o):void 0,!0)}},h=["Heading","Text","ImageBlock"],A=["LogoBlock"],W={name:"blockPadding",applies:(e,t,o)=>(h.includes(e)||A.includes(e))&&!!o&&typeof o.render=="function",panel(e,t,o){e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,t){P.has(t)||s(e,void 0,!0)}};export{x as PADS_ITS_OWN_SPACE,P as PAD_ON_ROOT,c as SECTION_PAD_INNER,l as SECTION_PAD_INNER_DEFAULTS,W as blockPadding,L as sectionPadding};
1
+ import{jsx as S}from"react/jsx-runtime";import{HideTaker as m}from"../../../components/ViewHideRoot.js";import{isBackgroundBox as _}from"../../../../format/lib/content/box-background.js";import{boxSideSpaceOf as u}from"../../../../format/lib/content/box-side-space.js";import{SECTION_PAD_KEYS as p,padValuesOf as T,resolveSectionPadding as g,sectionPadAttrs as I}from"../../content/section-padding.js";import{sectionFillPassClass as E}from"../../../../format/lib/content/section-min-height.js";import{COPIES_IN_THE_BOX as b,drawsCopiesInTheBox as O}from"../../../../format/lib/content/copies-in-box.js";import{ownEntry as x}from"../../../../format/lib/own-entry.js";const l={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},c=new Set(Object.keys(l)),f=new Set(["Flex","Text","Heading","ImageBlock"]),N=new Set(["Divider"]),h=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),P=new Set(["ProductGrid"]);function s(e,t,o=!1){const i=e.render;e.render=n=>{if(t?.(n))return i(n);const r=I({...T(n,p,o),sideSpace:u(n.sideSpace)}),a=i(n),d=E(n);return r?S(m,{className:d?`${r.className} ${d}`:r.className,style:r.style,children:a}):a}}const j={name:"sectionPadding",applies:(e,t,o)=>t.isSection(e)&&!h.has(e)&&!!o&&typeof o.render=="function",panel(e,t,o){c.has(t)||P.has(t)||(e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,t){if(c.has(t)){const o=e.render,i=x(l,t);e.render=n=>{const r=g(n,i);return o({...n,padTop:r.top,padBottom:r.bottom})};return}if(P.has(t)){s(e);return}f.has(t)||N.has(t)||s(e,t==="Flex"?o=>_(o.bgImage):b.has(t)?o=>O(t,o):void 0,!0)}},A=["Heading","Text","ImageBlock"],B=["LogoBlock"],K={name:"blockPadding",applies:(e,t,o)=>(A.includes(e)||B.includes(e))&&!!o&&typeof o.render=="function",panel(e,t,o){e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,t){f.has(t)||s(e,void 0,!0)}};export{N as PADS_ITS_OWN_SPACE,f as PAD_ON_ROOT,c as SECTION_PAD_INNER,l as SECTION_PAD_INNER_DEFAULTS,K as blockPadding,j as sectionPadding};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{HideTaker as u}from"../../../components/ViewHideRoot.js";import{INTRO_EDGE_CLASS as j}from"../../../../format/lib/sections/intro-bleed-layout.js";import{cssLengthOf as B}from"../../../../format/lib/content/css-length.js";import{resolveContainerDirection as X}from"../../../../format/lib/content/container-direction.js";import{HERO_BACKGROUND_VAR as q,HERO_CHROME_CAP_VAR as z,HERO_CHROME_INSET_VAR as J,FULL_SECTION_WIDTH as Q,SITE_WIDTH_CAP as _,centredCap as G,heroBackgroundTokens as Z}from"../../../../format/lib/content/page-width.js";import{SECTION_WIDTH_FAMILY as v,SECTION_WIDTH_KEYS as D,hasOwnSectionWidth as tt,hasWidthFamily as nt,resolveWidth as F,siteWidthsOf as et}from"../../../../format/lib/content/section-width.js";import{boxCardProps as ot}from"../../../../format/lib/content/box-background.js";import{cardCopyPlace as it}from"../../../../format/lib/content/card-template.js";import{BOX_GUTTER_KEY as ct,boxGutterOf as rt,boxPlaceOf as lt,boxRunsEdgeToEdge as dt,isFrameContainer as C,ownNodeWidth as ut,sectionGroundAnswer as st,siteDrawsGutter as at}from"../../../../format/lib/content/site-gutter.js";import{getEditorSiteContentWidth as ft}from"../../../../format/lib/document/editor-site-widths.js";import{GroundStopsAt as H,NestedBoxChoice as ht,SectionGroupChoice as _t,SectionGroupWidthsProvider as Nt,SectionRootChoice as wt,SplitBandAndColumn as M}from"../../../components/SiteGutterFrame.js";import{FRAME as L}from"../../../components/BlockFrame.js";import{sectionFillPassClass as P}from"../../../../format/lib/content/section-min-height.js";import{parentCapsWidth as Ct}from"../../../../format/lib/sections/section-head-placement.js";import{addShowWhenFacts as O,withRowsShownWhen as T}from"../../../../format/lib/document/show-when-attach.js";import{findParentNode as Ot,heldByANode as Tt,isNestedNode as Et,NOT_HELD_BY_A_NODE as k}from"../../../../format/lib/document/passes/document-position.js";const N="--sf-sw-site",St="--sf-sw-content",mt="--sf-bg-cap",pt="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",R=({own:t,content:n,siteContent:e})=>t===!0&&n==="full"&&e!=="full",y="contents view-wide:[--sf-site-width:100vw]",A=({held:t},n,e)=>t?e:l(u,{className:n,children:e}),xt=`contents view-wide:[--sf-site-width:100vw] ${j} view-wide:[--sf-site-gutter:var(--intro-edge)]`,W=(t,n,e)=>n==="content"?`min(${B(t,e)},var(${N}))`:B(t,e);function E({content:t,contentMax:n,contentMaxUnit:e},o){return t==="full"?o!=="content"?Q:null:n===null?null:W(n,o,e)}function S(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:_},children:l(u,{className:pt,style:{[St]:n},children:t})})}const Rt="--sf-content-cap",At="contents max-view-wide:[--sf-content-cap:none]";function Wt({content:t,contentMax:n,contentMaxUnit:e},o){return t==="full"?null:n!==null?W(n,o,e):o==="content"?null:`var(${N})`}function It(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:_},children:l(u,{className:At,style:{[Rt]:n},children:t})})}const U=`var(${N},${_})`,f=(t,n,e="")=>t==="content"?l(u,{className:e||void 0,style:G(_),children:l(H,{ground:U,children:n})}):n;function V(t,n,e,o,i){if(R(e))return f(o,A(e,y,l(M,{children:t({...n,contained:!0})})),i);if(e.content==="full")return f(o,t({...n,contained:!1}),i);const c=E(e,o);return o==="content"&&c===null&&!e.own?t({...n,contained:!0}):f(o,S(l(M,{children:t({...n,contained:!0})}),c),i)}function $(t,n,e,o){if(e==="hero"){const r=S(t(n),E(o,o.band));return o.band==="full"?l(u,{style:{[q]:"none",[J]:"initial",[z]:"initial"},children:r}):o.band==="content"?l(u,{style:Z(!0),children:r}):r}const i=o.band??"full",c=P(n);if(e==="rawMarkup"){if(o.content==="full")return f(i,t(n),c);const r=o.contentMax===null?_:W(o.contentMax,i,o.contentMaxUnit);return l(u,{className:"contents",style:{[N]:_},children:f(i,l(u,{className:c||void 0,style:G(r),children:t(n)}),c)})}if(e==="scrollOver"){const r=o.content==="full",d=R(o)?A(o,xt,t({...n,fullWidth:!1})):S(t({...n,fullWidth:r}),r?null:E(o,i));return i==="content"?l(u,{className:"contents",style:{[mt]:_},children:d}):d}switch(e){case"both":return f(i,It(t(n),Wt(o,i)),c);case"contained":return V(t,n,o,i,c);case"contentColumn":case"contentFull":case"productGrid":{const r=R(o),d=o.content==="full"&&!r?"full":"page",s=r?A(o,y,t({...n,widthMode:d})):S(t({...n,widthMode:d}),o.content==="full"?null:E(o,i));return e==="productGrid"&&!o.own?i==="content"?l(u,{className:c?`${L} ${c}`:L,children:s}):s:f(i,s,c)}default:return f(i,S(t(n),E(o,i)),c)}}function bt(t,n){const e=v[n],o=t.render;t.render=i=>{const c=et(i),r={band:c.background,content:c.content??"content",contentMax:null},d=()=>e==="rawMarkup"?o(i):l(_t,{draw:a=>a?.background==="content"?l(H,{ground:U,children:s(a)}):s(a)}),s=a=>{const w=a?{...r,band:a.background==="content"?r.band:a.background??r.band,content:a.content??r.content,own:a.background==="full"||a.content!==null,held:!0,siteContent:r.content}:r,x=$(o,i,e,w);if(!C(n))return x;const b=rt(i),g=b===void 0?w.content:b?"content":"full";return g===w.content?x:l(ht,{atTop:x,nested:V(o,i,{...w,content:g,own:!1},w.band??"full",P(i))})},h=ut(n,i);if(!tt(h))return d();const m=e==="rawMarkup",I=st(n,i),K=h.content??(m?"full":r.content),p={band:I,content:I==="content"?"content":K,contentMax:h.contentMax,contentMaxUnit:h.contentMaxUnit,own:!m,siteContent:r.content};return l(wt,{own:()=>l(Nt,{value:{background:p.band,content:p.content},children:$(o,i,e,p)}),followed:d})}}const gt={all:[k,{not:{context:"runsEdgeToEdge",is:!0}}]},nn={name:"sectionWidth",applies:(t,n,e)=>nt(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.sectionOwnWidthFields({drawsFullOnItsOwn:v[n]==="rawMarkup"}),i=C(n)?e.boxGutterFields():{},c={...t.fields,...i,...o},r=C(n)?Y(n,t,c,[ct]):c;O(t,{heldByANode:Tt}),C(n)&&O(t,{runsEdgeToEdge:(d,s)=>dt(ot(d.props??{},it(s.appState,d.props?.id)?.inCopy!==!1))}),t.fields=T(r,[D.background,D.content],C(n)?gt:k)},draw(t,n){bt(t,n)}};function Bt(t,n){if(!t||!("widthMode"in t))return t;const e={...t},o=e.widthMode;return o&&(e.widthMode={...o,currentValue:n.mode,inherited:n.inherited}),e}const Gt=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),en={name:"containedWidth",applies:(t,n,e)=>Gt.has(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.widthField;t.fields=Y(n,t,{...t.fields,...o("page")});const i=t.resolveFields;t.resolveFields=(c,r)=>{const d=i?i(c,r):r.fields,s=F(c?.props??{},"page"),h=m=>Bt(m,s);return d&&typeof d.then=="function"?d.then(h):h(d)}},draw(t){const n=t.render;t.render=e=>{const{mode:o}=F(e,"page");return n({...e,contained:o!=="full"})}}},vt={not:{context:"inHeroGroupRow",is:!0}},on={name:"buttonAlignInRow",applies:t=>t==="ButtonBlock",panel(t){const n=t;n.fields=T(n.fields??{},["align"],vt),O(n,{inHeroGroupRow:(e,o)=>{const i=Ot(o.appState,e.props?.id);return!!i&&i.type==="HeroGroup"&&X("HeroGroup",i.props?.direction)==="row"}})}};function Dt(t){return Object.values(t).some(n=>!!n&&typeof n=="object"&&n.type==="slot")}const Ft={any:[]},Ht={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},Mt={not:{context:"widthCappedByParent",is:!0}};function Y(t,n,e,o=["widthMode"]){if(t==="ButtonBlock")return T(e,["_gWidth",...o],Ft);if(Dt(e)){const i=(c,r)=>lt(r.appState?.data?.content,c.props?.id,at(ft()));return O(n,{outsideBox:(c,r)=>i(c,r)?.inBox!==!0,insideSiteGutter:(c,r)=>i(c,r)?.insideGutter}),T(e,o,Ht)}return O(n,{widthCappedByParent:(i,c)=>"parent"in c?Ct(c.parent):Et({props:i.props??{}},c)}),T(e,o,Mt)}export{mt as SECTION_BACKGROUND_VAR,At as SECTION_CONTENT_CAP_CLASS,Rt as SECTION_CONTENT_CAP_VAR,pt as SECTION_CONTENT_CLASS,St as SECTION_CONTENT_VAR,N as SITE_CONTENT_VAR,on as buttonAlignInRow,en as containedWidth,nn as sectionWidth,Bt as widthModeFields};
1
+ import{jsx as l}from"react/jsx-runtime";import{HideTaker as u}from"../../../components/ViewHideRoot.js";import{INTRO_EDGE_CLASS as X}from"../../../../format/lib/sections/intro-bleed-layout.js";import{cssLengthOf as B}from"../../../../format/lib/content/css-length.js";import{resolveContainerDirection as q}from"../../../../format/lib/content/container-direction.js";import{HERO_BACKGROUND_VAR as z,HERO_CHROME_CAP_VAR as J,HERO_CHROME_INSET_VAR as Q,FULL_SECTION_WIDTH as Z,SITE_WIDTH_CAP as _,centredCap as G,heroBackgroundTokens as tt}from"../../../../format/lib/content/page-width.js";import{SECTION_WIDTH_FAMILY as v,SECTION_WIDTH_KEYS as D,hasOwnSectionWidth as nt,hasWidthFamily as et,resolveWidth as F,siteWidthsOf as ot}from"../../../../format/lib/content/section-width.js";import{boxCardProps as it}from"../../../../format/lib/content/box-background.js";import{cardCopyPlace as ct}from"../../../../format/lib/content/card-template.js";import{BOX_GUTTER_KEY as rt,boxGutterOf as lt,boxPlaceOf as dt,boxRunsEdgeToEdge as ut,isFrameContainer as C,ownNodeWidth as st,sectionGroundAnswer as at,siteDrawsGutter as ft}from"../../../../format/lib/content/site-gutter.js";import{getEditorSiteContentWidth as ht}from"../../../../format/lib/document/editor-site-widths.js";import{GroundStopsAt as H,NestedBoxChoice as _t,SectionGroupChoice as Nt,SectionGroupWidthsProvider as wt,SectionRootChoice as Ct,SplitBandAndColumn as M}from"../../../components/SiteGutterFrame.js";import{FRAME as L}from"../../../components/BlockFrame.js";import{sectionFillPassClass as P}from"../../../../format/lib/content/section-min-height.js";import{parentCapsWidth as Et}from"../../../../format/lib/sections/section-head-placement.js";import{addShowWhenFacts as E,withRowsShownWhen as O}from"../../../../format/lib/document/show-when-attach.js";import{findParentNode as Ot,heldByANode as Tt,isNestedNode as St,NOT_HELD_BY_A_NODE as y}from"../../../../format/lib/document/passes/document-position.js";import{ownEntry as k}from"../../../../format/lib/own-entry.js";const N="--sf-sw-site",mt="--sf-sw-content",pt="--sf-bg-cap",xt="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",R=({own:t,content:n,siteContent:e})=>t===!0&&n==="full"&&e!=="full",U="contents view-wide:[--sf-site-width:100vw]",A=({held:t},n,e)=>t?e:l(u,{className:n,children:e}),Rt=`contents view-wide:[--sf-site-width:100vw] ${X} view-wide:[--sf-site-gutter:var(--intro-edge)]`,W=(t,n,e)=>n==="content"?`min(${B(t,e)},var(${N}))`:B(t,e);function T({content:t,contentMax:n,contentMaxUnit:e},o){return t==="full"?o!=="content"?Z:null:n===null?null:W(n,o,e)}function S(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:_},children:l(u,{className:xt,style:{[mt]:n},children:t})})}const At="--sf-content-cap",Wt="contents max-view-wide:[--sf-content-cap:none]";function It({content:t,contentMax:n,contentMaxUnit:e},o){return t==="full"?null:n!==null?W(n,o,e):o==="content"?null:`var(${N})`}function bt(t,n){return n===null?t:l(u,{className:"contents",style:{[N]:_},children:l(u,{className:Wt,style:{[At]:n},children:t})})}const V=`var(${N},${_})`,f=(t,n,e="")=>t==="content"?l(u,{className:e||void 0,style:G(_),children:l(H,{ground:V,children:n})}):n;function $(t,n,e,o,i){if(R(e))return f(o,A(e,U,l(M,{children:t({...n,contained:!0})})),i);if(e.content==="full")return f(o,t({...n,contained:!1}),i);const c=T(e,o);return o==="content"&&c===null&&!e.own?t({...n,contained:!0}):f(o,S(l(M,{children:t({...n,contained:!0})}),c),i)}function Y(t,n,e,o){if(e==="hero"){const r=S(t(n),T(o,o.band));return o.band==="full"?l(u,{style:{[z]:"none",[Q]:"initial",[J]:"initial"},children:r}):o.band==="content"?l(u,{style:tt(!0),children:r}):r}const i=o.band??"full",c=P(n);if(e==="rawMarkup"){if(o.content==="full")return f(i,t(n),c);const r=o.contentMax===null?_:W(o.contentMax,i,o.contentMaxUnit);return l(u,{className:"contents",style:{[N]:_},children:f(i,l(u,{className:c||void 0,style:G(r),children:t(n)}),c)})}if(e==="scrollOver"){const r=o.content==="full",d=R(o)?A(o,Rt,t({...n,fullWidth:!1})):S(t({...n,fullWidth:r}),r?null:T(o,i));return i==="content"?l(u,{className:"contents",style:{[pt]:_},children:d}):d}switch(e){case"both":return f(i,bt(t(n),It(o,i)),c);case"contained":return $(t,n,o,i,c);case"contentColumn":case"contentFull":case"productGrid":{const r=R(o),d=o.content==="full"&&!r?"full":"page",s=r?A(o,U,t({...n,widthMode:d})):S(t({...n,widthMode:d}),o.content==="full"?null:T(o,i));return e==="productGrid"&&!o.own?i==="content"?l(u,{className:c?`${L} ${c}`:L,children:s}):s:f(i,s,c)}default:return f(i,S(t(n),T(o,i)),c)}}function gt(t,n){const e=k(v,n);if(!e)return;const o=t.render;t.render=i=>{const c=ot(i),r={band:c.background,content:c.content??"content",contentMax:null},d=()=>e==="rawMarkup"?o(i):l(Nt,{draw:a=>a?.background==="content"?l(H,{ground:V,children:s(a)}):s(a)}),s=a=>{const w=a?{...r,band:a.background==="content"?r.band:a.background??r.band,content:a.content??r.content,own:a.background==="full"||a.content!==null,held:!0,siteContent:r.content}:r,x=Y(o,i,e,w);if(!C(n))return x;const b=lt(i),g=b===void 0?w.content:b?"content":"full";return g===w.content?x:l(_t,{atTop:x,nested:$(o,i,{...w,content:g,own:!1},w.band??"full",P(i))})},h=st(n,i);if(!nt(h))return d();const m=e==="rawMarkup",I=at(n,i),j=h.content??(m?"full":r.content),p={band:I,content:I==="content"?"content":j,contentMax:h.contentMax,contentMaxUnit:h.contentMaxUnit,own:!m,siteContent:r.content};return l(Ct,{own:()=>l(wt,{value:{background:p.band,content:p.content},children:Y(o,i,e,p)}),followed:d})}}const Bt={all:[y,{not:{context:"runsEdgeToEdge",is:!0}}]},on={name:"sectionWidth",applies:(t,n,e)=>et(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.sectionOwnWidthFields({drawsFullOnItsOwn:k(v,n)==="rawMarkup"}),i=C(n)?e.boxGutterFields():{},c={...t.fields,...i,...o},r=C(n)?K(n,t,c,[rt]):c;E(t,{heldByANode:Tt}),C(n)&&E(t,{runsEdgeToEdge:(d,s)=>ut(it(d.props??{},ct(s.appState,d.props?.id)?.inCopy!==!1))}),t.fields=O(r,[D.background,D.content],C(n)?Bt:y)},draw(t,n){gt(t,n)}};function Gt(t,n){if(!t||!("widthMode"in t))return t;const e={...t},o=e.widthMode;return o&&(e.widthMode={...o,currentValue:n.mode,inherited:n.inherited}),e}const vt=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),cn={name:"containedWidth",applies:(t,n,e)=>vt.has(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const o=e.widthField;t.fields=K(n,t,{...t.fields,...o("page")});const i=t.resolveFields;t.resolveFields=(c,r)=>{const d=i?i(c,r):r.fields,s=F(c?.props??{},"page"),h=m=>Gt(m,s);return d&&typeof d.then=="function"?d.then(h):h(d)}},draw(t){const n=t.render;t.render=e=>{const{mode:o}=F(e,"page");return n({...e,contained:o!=="full"})}}},Dt={not:{context:"inHeroGroupRow",is:!0}},rn={name:"buttonAlignInRow",applies:t=>t==="ButtonBlock",panel(t){const n=t;n.fields=O(n.fields??{},["align"],Dt),E(n,{inHeroGroupRow:(e,o)=>{const i=Ot(o.appState,e.props?.id);return!!i&&i.type==="HeroGroup"&&q("HeroGroup",i.props?.direction)==="row"}})}};function Ft(t){return Object.values(t).some(n=>!!n&&typeof n=="object"&&n.type==="slot")}const Ht={any:[]},Mt={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},Lt={not:{context:"widthCappedByParent",is:!0}};function K(t,n,e,o=["widthMode"]){if(t==="ButtonBlock")return O(e,["_gWidth",...o],Ht);if(Ft(e)){const i=(c,r)=>dt(r.appState?.data?.content,c.props?.id,ft(ht()));return E(n,{outsideBox:(c,r)=>i(c,r)?.inBox!==!0,insideSiteGutter:(c,r)=>i(c,r)?.insideGutter}),O(e,o,Mt)}return E(n,{widthCappedByParent:(i,c)=>"parent"in c?Et(c.parent):St({props:i.props??{}},c)}),O(e,o,Lt)}export{pt as SECTION_BACKGROUND_VAR,Wt as SECTION_CONTENT_CAP_CLASS,At as SECTION_CONTENT_CAP_VAR,xt as SECTION_CONTENT_CLASS,mt as SECTION_CONTENT_VAR,N as SITE_CONTENT_VAR,rn as buttonAlignInRow,cn as containedWidth,on as sectionWidth,Gt as widthModeFields};
@@ -1 +1 @@
1
- import{isNode as O,isNodeList as w}from"efficient-easel/data";import{hidableText as S,readHidable as y}from"efficient-easel/draw";import{blockSizeValuesOf as _}from"../content/block-size.js";import{nodeHiddenEverywhere as h,nodeViewHideClass as R}from"../../../format/lib/content/view-hide-class.js";import{CARD_ROW_FIELD_PROP as b,isCardTemplateSlot as x,namedRowField as g,ROW_BOUND_PROPS as C}from"../../../format/lib/content/card-template.js";import{SHOW_FOR_PROP as P}from"../../../format/lib/content/box-show-for-choices.js";const m="slotCounts",d=t=>!y(t).hidden&&S(t).trim()!=="",E=t=>typeof t=="string"&&t.trim()!=="",F={Flex:()=>!0,PostCard:()=>!0,ImageBlock:t=>E(t.src),Text:t=>d(t.text),Heading:t=>d(t.text),Eyebrow:t=>d(t.eyebrow)},N=["widthFit","width","minWidth"],u=t=>w(t);function W(t){if(Array.isArray(t.content))return u(t.content)?t.content:null;const e=Object.values(t).filter(u);return e.length===1?e[0]:null}function A(t,e){return[...new Set([b,...Object.values(C[t]??{})])].some(o=>g(e,o)!=="")}function I(t){const e=t.props??{},n=F[t.type];if(!n||!n(e)||A(t.type,e)||R(e))return!1;const o=e[P];if(o!=null&&o!=="")return!1;const r=_(e);return!N.some(s=>r[s]!==void 0)}function D(t){let e=0;for(const n of t)if(!h(n.props??{})){if(!I(n))return;e+=1}return e>0?e:void 0}function H(t){const e={},n=new Set,o=new Set,r=(s,a)=>{if(Array.isArray(s))for(const i of s){if(!O(i))continue;const f=i.props.id;typeof f=="string"&&(n.has(f)?o:n).add(f);const l=a?null:W(i.props);if(typeof f=="string"&&l){const c=D(l);c!==void 0&&(e[f]=c)}for(const[c,p]of Object.entries(i.props))u(p)&&r(p,a||x(i.type,c))}};r(t,!1);for(const s of o)delete e[s];return e}function z(t,e){return{...t??{},[m]:H(e)}}function B(t){const n=t.editor?.metadata?.[m],o=t.id,r=typeof o=="string"&&n&&typeof n=="object"?n[o]:void 0;return typeof r=="number"&&Number.isInteger(r)&&r>0?r:void 0}export{F as DRAWS_FOR_SURE,m as SLOT_COUNTS_KEY,B as slotCountOf,H as slotCountsOf,z as withSlotCounts};
1
+ import{isNode as w,isNodeList as y}from"efficient-easel/data";import{hidableText as S,readHidable as _}from"efficient-easel/draw";import{blockSizeValuesOf as h}from"../content/block-size.js";import{nodeHiddenEverywhere as R,nodeViewHideClass as b}from"../../../format/lib/content/view-hide-class.js";import{CARD_ROW_FIELD_PROP as x,isCardTemplateSlot as g,namedRowField as C,ROW_BOUND_PROPS as E}from"../../../format/lib/content/card-template.js";import{SHOW_FOR_PROP as P}from"../../../format/lib/content/box-show-for-choices.js";import{ownEntry as p}from"../../../format/lib/own-entry.js";const O="slotCounts",d=t=>!_(t).hidden&&S(t).trim()!=="",F=t=>typeof t=="string"&&t.trim()!=="",N={Flex:()=>!0,PostCard:()=>!0,ImageBlock:t=>F(t.src),Text:t=>d(t.text),Heading:t=>d(t.text),Eyebrow:t=>d(t.eyebrow)},W=["widthFit","width","minWidth"],u=t=>y(t);function A(t){if(Array.isArray(t.content))return u(t.content)?t.content:null;const e=Object.values(t).filter(u);return e.length===1?e[0]:null}function I(t,e){return[...new Set([x,...Object.values(p(E,t)??{})])].some(o=>C(e,o)!=="")}function D(t){const e=t.props??{},n=p(N,t.type);if(!n||!n(e)||I(t.type,e)||b(e))return!1;const o=e[P];if(o!=null&&o!=="")return!1;const r=h(e);return!W.some(s=>r[s]!==void 0)}function H(t){let e=0;for(const n of t)if(!R(n.props??{})){if(!D(n))return;e+=1}return e>0?e:void 0}function j(t){const e={},n=new Set,o=new Set,r=(s,a)=>{if(Array.isArray(s))for(const i of s){if(!w(i))continue;const f=i.props.id;typeof f=="string"&&(n.has(f)?o:n).add(f);const l=a?null:A(i.props);if(typeof f=="string"&&l){const c=H(l);c!==void 0&&(e[f]=c)}for(const[c,m]of Object.entries(i.props))u(m)&&r(m,a||g(i.type,c))}};r(t,!1);for(const s of o)delete e[s];return e}function K(t,e){return{...t??{},[O]:j(e)}}function V(t){const n=t.editor?.metadata?.[O],o=t.id,r=typeof o=="string"&&n&&typeof n=="object"?n[o]:void 0;return typeof r=="number"&&Number.isInteger(r)&&r>0?r:void 0}export{N as DRAWS_FOR_SURE,O as SLOT_COUNTS_KEY,V as slotCountOf,j as slotCountsOf,K as withSlotCounts};
@@ -1 +1 @@
1
- import{HERO_SLIDE_SEEDS as h}from"../../components/HeroSlide.js";import{heroGroupAddBlocked as p,heroGroupOverCapNotice as i}from"../../../format/lib/hero-group-placement.js";import{newNodeId as n}from"efficient-easel/draw";import{BOX_TYPE as c}from"../../../format/lib/document/container-blocks.js";import{BOX_LABEL as s}from"../../../format/lib/document/section-catalog.js";import{seedNodes as E}from"../../../format/lib/document/seed-parts.js";import{isNodeList as T}from"efficient-easel/data";import{PROCESS_COLUMNS_SLOT as _,PROCESS_STEPS_SEED_COUNT as O,processColumnSeed as u}from"../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{HERO_STRIP_SLOT as S}from"../../../format/lib/hero-ticker.js";const a=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([r,t])=>[r,T(t)?t.map(l=>a(l,o)):t]))}}),C=e=>{const[o]=E([u()],l=>n(l)),{id:r,...t}=a(o,e).props;return t},d={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>h.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:p,notice:i},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:p,notice:i},ProcessSteps:{slot:_,childType:c,addLabel:`Add ${s.toLowerCase()}`,seeds:e=>Array.from({length:O},()=>C(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},m=1,L={slot:S,childType:c,addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=m?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>m?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},w={Hero:{[S]:L}};function x(e){for(const[o,r]of Object.entries(e)){if(o in d&&d[o]!==r)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);d[o]=r}}function N(e,o){const r=d[e];return r?{slot:r.slot,children:r.seeds(o).map(t=>({type:r.childType,props:{id:n(r.childType),...t}}))}:null}export{m as HERO_STRIP_CAP,L as HERO_STRIP_SPEC,w as SLOT_SECTION_EXTRA_SPECS,d as SLOT_SECTION_SPECS,N as buildSlotSeedChildren,x as registerSlotSectionSpecs};
1
+ import{HERO_SLIDE_SEEDS as E}from"../../components/HeroSlide.js";import{heroGroupAddBlocked as p,heroGroupOverCapNotice as i}from"../../../format/lib/hero-group-placement.js";import{newNodeId as n}from"efficient-easel/draw";import{BOX_TYPE as c}from"../../../format/lib/document/container-blocks.js";import{BOX_LABEL as s}from"../../../format/lib/document/section-catalog.js";import{seedNodes as T}from"../../../format/lib/document/seed-parts.js";import{isNodeList as O}from"efficient-easel/data";import{PROCESS_COLUMNS_SLOT as _,PROCESS_STEPS_SEED_COUNT as u,processColumnSeed as y}from"../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{HERO_STRIP_SLOT as S}from"../../../format/lib/hero-ticker.js";import{ownEntry as a,hasOwnEntry as f}from"../../../format/lib/own-entry.js";const m=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([r,t])=>[r,O(t)?t.map(l=>m(l,o)):t]))}}),C=e=>{const[o]=T([y()],l=>n(l)),{id:r,...t}=m(o,e).props;return t},d={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>E.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:p,notice:i},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:p,notice:i},ProcessSteps:{slot:_,childType:c,addLabel:`Add ${s.toLowerCase()}`,seeds:e=>Array.from({length:u},()=>C(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},h=1,L={slot:S,childType:c,addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=h?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>h?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},I={Hero:{[S]:L}};function $(e){for(const[o,r]of Object.entries(e)){if(f(d,o)&&a(d,o)!==r)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);d[o]=r}}function k(e,o){const r=a(d,e);return r?{slot:r.slot,children:r.seeds(o).map(t=>({type:r.childType,props:{id:n(r.childType),...t}}))}:null}export{h as HERO_STRIP_CAP,L as HERO_STRIP_SPEC,I as SLOT_SECTION_EXTRA_SPECS,d as SLOT_SECTION_SPECS,k as buildSlotSeedChildren,$ as registerSlotSectionSpecs};
@@ -1 +1 @@
1
- import{readHidable as J}from"efficient-easel/draw";import{BOX_TYPE as U,CONTAINER_BLOCKS_SLOT as Z}from"../../../format/lib/document/container-blocks.js";import{headingTextSeed as ee,labelTextSeed as te}from"../../../format/lib/document/text-seeds.js";import{SPLITTABLE_SECTIONS as oe,parseSectionHeadPlacement as ne}from"../../../format/lib/sections/section-head-placement.js";import{accentItalicRuns as se}from"../../../format/lib/markup.js";import{seedNodes as re}from"../../../format/lib/document/seed-parts.js";import{bucketByGroup as ie}from"../../../format/lib/locations-grid.js";import{normalizeTheme as D}from"../../../format/lib/theme.js";const v=U,E=Z;function Ee(t){if(t.theme)return D(t.theme);const o=t.site?.themePresets;return o?D({selected:t.site?.selectedPreset??0,themes:[...o]}):void 0}function ae(t,o){return o===0?`${t}~box`:`${t}~box-${o+1}`}const A={Flex:"the Box itself",Hero:"its slides hold Boxes of real blocks (Hero › Slide › Box), and its Scrolling Bar is a Box in its strip slot (Hero › Box)",Divider:"one block with no text, picture or button",CustomHTML:"the HTML box is the whole section; it has no parts"};function _e(t){for(const[o,s]of Object.entries(t)){if(o in A&&A[o]!==s)throw new Error(`lib/sections/section-to-box: "${o}" is already Box-native`);A[o]=s}}function je(t){return A[t]}const G=new Set(["id"]),T={},L=[],ce=["ProductGrid","Events","Collections","GalleryB","ContactRouting","ReviewForm","AppointmentBooking","Reviews","CheckoutCTA","AlloyWheelsListing"],de=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...ce,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Countdown","FeaturedCover","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function Ie(t){for(const[o,s]of Object.entries(t)){if(o in T&&T[o]!==s)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);T[o]=s}}function Ne(t){return T[t]}function Ae(){return Object.keys(T)}function fe(t){return t in T&&L.includes(t)}function Re(t,o=de){return t in T&&(o.includes(t)||fe(t))}function Ce(t){const o=oe[t];if(!o)throw new Error(`lib/sections/section-to-box: "${t}" has no head row in SPLITTABLE_SECTIONS`);const s=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&s.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&s.push({kind:"button",key:"linkText",href:"linkHref"}),s}const F=t=>J(t),He=t=>F(t).text.trim()!=="";function le(t){if(t.includes("=="))return t;const o=t.indexOf("/"),s=o===-1?t:t.slice(0,o),r=s.trim();if(!r)return t;const c=s.indexOf(r);return`${s.slice(0,c)}==${r}==${s.slice(c+r.length)}${o===-1?"":t.slice(o)}`}const pe=t=>t==="heading"?ee():t==="eyebrow"?te():{};function ue(t,o,s,r){const a={...t._partStyles?.text??{},...o??{},...s??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function he(t,o){if(t===void 0)return{};if(typeof t=="string")return{variant:t};const s=o[t.key];return{variant:typeof s=="string"&&Object.hasOwn(t.map,s)?t.map[s]:t.fallback}}function z(t,o,s,r,c={}){const a={...o};for(const u of t){const[m,S,_]=typeof u=="string"?[u,u,void 0]:u;if(s[m]===void 0)continue;const j=_?_(s[m],s,c):s[m];j===void 0?delete a[S]:a[S]=j,r(m,S,j===void 0)}return a}function ye(t){const o=new Set([...G,"headPlacement","_partStyles",...Object.keys(t.drop??{}),...Object.keys(t.reads??{})]),s=c=>{for(const a of c??[])o.add(typeof a=="string"?a:a[0])},r=c=>{for(const a of c)switch(a.kind){case"text":case"image":o.add(a.key),a.kind==="image"&&a.alt&&o.add(a.alt);break;case"button":o.add(a.key),o.add(a.href),typeof a.variant=="object"&&o.add(a.variant.key);break;case"list":o.add(a.key);break;case"group":case"block":s(a.box),r(a.parts??[]);break;case"core":if(a.keep!=="rest"&&a.keep.forEach(u=>o.add(u)),Object.keys(a.rename??{}).forEach(u=>o.add(u)),a.derive?.reads.forEach(u=>o.add(u)),typeof a.slots!="function")for(const u of Object.values(a.slots??{}))for(const m of u)"kind"in m&&o.add(m.key);break}};for(const c of[t,...t.also??[]])s(c.box),r(c.parts);return o}const me=t=>ne(t.headPlacement)==="own-box";function ke(t){return me(t)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function be(t,o){const s=t[o];return Array.isArray(s)&&s.some(c=>!!c&&typeof c=="object"&&typeof c.type=="string")?"already on the Box path: its items draw from a filled card template":void 0}function ge(t){const o=new Set,s=r=>{for(const c of r)if(c.kind==="group"||c.kind==="block")s(c.parts??[]);else if(c.kind==="core"&&c.slots&&typeof c.slots!="function")for(const[a,u]of Object.entries(c.slots))u.length>0&&u.every(m=>!("kind"in m))&&o.add(a)};for(const r of[t,...t.also??[]])s(r.parts);return[...o]}function xe(t,o,s){if(!s.press)for(const r of ge(t)){const c=be(o,r);if(c!==void 0)return c}}function Y(t,o,s={}){const r=t.props,c=(o.ownBoxConverts?void 0:ke(r))??xe(o,r,s)??o.skip?.(r);if(c!==void 0)return{node:t,nodes:[t],carried:[],dropped:[],siteWrites:[],skipped:c};const a=String(r.id??t.type),u=[],m=[],S=new Set,_=(n,i)=>{u.push({key:n,home:i}),S.add(n)},j=r._partStyles??{},R=ye(o);let M=0;const w=(n,i)=>({type:n,props:{...i,id:`${a}~${n}-${++M}`}}),W=(n,i,b,y,g,l,$)=>{if(g){for(const d of n??[]){const h=typeof d=="string"?d:d[0];b[h]!==void 0&&$(h,`nothing — the ${y} has no parts, so it is not drawn`)}return}const e=typeof i=="function"?i(r,s):i??{};return z(n??[],e,b,(d,h,f)=>$(d,f?`nothing — the old value draws nothing (${y}: no ${h})`:`${l}${y}: ${h}`),s)},V=n=>re(n,i=>`${a}~${i}-${++M}`),X=(n,i,b)=>{const y=n.of?n.of(i):Array.isArray(i[n.key])?i[n.key]:[],g=typeof n.props=="function"?n.props(r,s):n.props??{},l=y.map((f,x)=>{const p=f??{},k=n.item?.(p,x,r)??{},B=I(k.reverse?[...n.parts].reverse():n.parts,p,!1,`item ${x+1}: `);return n.flat?k.props?B.map(P=>({...P,props:{...P.props,...k.props,id:P.props.id}})):B:[w(v,{name:`${n.name} ${x+1}`,...g,...k.props??{},[E]:B})]});if(n.groups){const f=n.groups;return b(n.key,y.length?`one Box per item (${y.length}), in a Box per group`:"nothing — the list is empty"),ie(y.map(x=>x??{}),f.of,f.of).map((x,p)=>{const k=x.items.map(O=>O.item),B=f.parts?I(f.parts,f.head?.(k,r)??{},!1,`group ${p+1}: `):[],P=x.items.map(O=>l[O.index]),C=f.perRow?.(k.length,r),N=Number.isInteger(C)&&C>=1?C:1,H=[];if(f.perRow&&N<P.length)for(let O=0;O*N<P.length;O++)H.push(P.slice(O*N,(O+1)*N).flat());return w(v,{name:`${f.name} ${p+1}`,...f.props??{},[E]:[...B,w(v,{name:`${f.itemsName} ${p+1}`,...f.itemsProps?.(k.length,r)??{},[E]:H.length?H.map((O,q)=>w(v,{name:`${f.rowName??`${f.itemsName} row`} ${q+1}`,...f.rowProps??{},[E]:O})):P.flat()})]})})}const $=n.perRow?.(r),e=n.perRow?Number.isInteger($)&&$>=1?$:1:0;if(b(n.key,(y.length?n.flat?`each item's parts (${y.length} items), in order`:`one Box per item (${y.length}), its parts inside`:"nothing — the list is empty")+(e&&y.length?`, in rows of ${e}`:"")),!e)return l.flat();const d=typeof n.rowProps=="function"?n.rowProps(r,s):n.rowProps??{},h=[];for(let f=0;f*e<l.length;f++){const x=l.slice(f*e,(f+1)*e).flat(),p=n.rowFiller?e-l.slice(f*e,(f+1)*e).length:0;h.push(w(v,{name:`${n.rowName??`${n.name} row`} ${f+1}`,...d,[E]:[...x,...Array.from({length:p},(k,B)=>w(v,{name:`Empty ${B+1}`,...n.rowFiller,[E]:[]}))]}))}return h},I=(n,i,b,y)=>{const g=[],l=(e,d)=>b?_(e,d):void 0,$=e=>b?j[e]:void 0;for(const e of n)if(!(e.when&&!e.when(r,b?void 0:i)))switch(e.kind){case"text":{const d=F(i[e.key]);if(!d.text.trim()&&!(b&&s.press&&o.pressKeepsEmpty?.includes(e.key))){l(e.key,"nothing — empty words draw nothing, so no block");break}const h=pe(e.role??"body"),{_partStyles:f,...x}=h,p=ue(h,e.styleFrom?{...e.style,...e.styleFrom(r,s)}:e.style,$(e.key),e.props?.align);g.push(w("Text",{text:e.mark==="accentLead"?le(d.text):e.mark==="accentItalic"?se(d.text):d.text,...x,...e.props??{},...p,...d.hidden?{_hidden:!0}:{}})),l(e.key,`${y}Text block: its words${d.hidden?", hidden":""}`);break}case"button":{const d=F(i[e.key]);if(!d.text.trim()){l(e.key,"nothing — no words, no button"),l(e.href,"nothing — no button to link"),typeof e.variant=="object"&&l(e.variant.key,"nothing — no button to style");break}const h=typeof i[e.href]=="string"&&i[e.href]?i[e.href]:"#",f={...e.style??{},...$(e.key)??{}};g.push(w("ButtonBlock",{label:d.text,href:h,...typeof e.props=="function"?e.props(i,s):e.props??{},...he(e.variant,i),...Object.keys(f).length?{_partStyles:{label:f}}:{},...d.hidden?{_hidden:!0}:{}})),l(e.key,`${y}Button block: its words`),l(e.href,`${y}Button block: its link`),typeof e.variant=="object"&&l(e.variant.key,`${y}Button block: its Style`);break}case"image":{const d=i[e.key];if(typeof d!="string"||!d){l(e.key,"nothing — no picture, no block"),e.alt&&l(e.alt,"nothing — no picture to describe");break}const h=e.alt&&typeof i[e.alt]=="string"?i[e.alt]:"";g.push(w("ImageBlock",{src:d,alt:h,...e.props??{}})),l(e.key,`${y}Image block: its picture`),e.alt&&l(e.alt,`${y}Image block: its alt text`);break}case"list":{g.push(...X(e,i,l));break}case"group":{const d=I(e.parts,i,b,y),h=W(e.box,e.props,i,`${e.name} Box`,!d.length&&!e.keepEmpty,y,l);h&&g.push(w(v,{name:e.name,...h,[E]:d}));break}case"block":{const d=e.parts?I(e.parts,i,b,y):[],h=W(e.box,e.props,i,`${e.type} block`,!!e.parts&&!d.length&&!e.keepEmpty,y,l);h&&g.push(w(e.type,{...h,...e.slot?{[e.slot]:d}:{}}));break}case"core":{const d=e.as??t.type,h={...e.headless?{}:{headPlacement:"own-box"},...e.props??{}},f=e.keep==="rest"?Object.keys(i).filter(p=>!R.has(p)&&!(p in h)):e.keep;for(const p of f)i[p]!==void 0&&(h[p]=i[p],l(p,`the ${d} block inside the Box`));if(e.keep==="rest"){for(const k of Object.keys(e.props??{}))i[k]!==void 0&&!R.has(k)&&l(k,`nothing — the ${d} block inside the Box has the row's own value`);i.headPlacement!==void 0&&l("headPlacement",`the ${d} block inside the Box: own-box`);const p=Object.fromEntries(Object.entries(j).filter(([k])=>!R.has(k)));Object.keys(p).length&&(h._partStyles=p)}for(const[p,k]of Object.entries(e.rename??{}))i[p]!==void 0&&(h[k]=i[p],l(p,`the ${d} block inside the Box: ${k}`));if(e.derive){Object.assign(h,e.derive.props(i,s));for(const p of e.derive.reads)i[p]!==void 0&&l(p,`the ${d} block inside the Box`)}const x=typeof e.slots=="function"?e.slots(i,s):e.slots??{};for(const[p,k]of Object.entries(x))h[p]=k.flatMap(B=>"kind"in B?X(B,i,l):V([B]));g.push(w(d,h));break}}return g},Q=(n,i)=>{const b=i===0?"Box":`${n.name} Box`,y=I(n.parts,r,!0,i===0?"":`${b}: `),g=typeof n.boxProps=="function"?n.boxProps(r,s):n.boxProps??{},l=z(n.box??[],g,r,($,e,d)=>_($,d?`nothing — the old value draws nothing (${b}: no ${e})`:`${b}: ${e}`),s);return{type:v,props:{name:n.name,...l,[E]:y,id:ae(a,i)}}},K=[o,...o.also??[]].map(Q);r._partStyles!==void 0&&_("_partStyles","each old part's style moved to its new part");for(const[n,i]of Object.entries(o.reads??{}))r[n]!==void 0&&_(n,i);for(const[n,i]of Object.entries(o.drop??{}))n in r&&(m.push({key:n,why:i}),S.add(n));for(const n of Object.keys(r))G.has(n)||S.has(n)||m.push({key:n,why:"not in the row — not carried"});return{node:K[0],nodes:K,carried:u,dropped:m,siteWrites:[...o.site?.(t,s)??[]]}}function Le(t,o=L,s={}){const r=t.content;if(!Array.isArray(r))return t;let c=!1;const a=r.flatMap(u=>{const m=u&&typeof u.type=="string"&&o.includes(u.type)?T[u.type]:void 0;if(!m)return[u];const S=Y(u,m,s);return S.skipped!==void 0?[u]:(c=!0,S.nodes)});return c?{...t,content:a}:t}function Fe(t,o=L,s={}){if(!Array.isArray(t))return[];const r=[];return t.forEach((c,a)=>{const u=c&&typeof c.type=="string"&&o.includes(c.type)?T[c.type]:void 0;if(!u)return;const m=Y(c,u,s);m.skipped===void 0&&r.push({index:a,node:m.node,nodes:m.nodes})}),r}export{ce as HOST_PRESS_TYPES,E as SECTION_BOX_SLOT,v as SECTION_BOX_TYPE,L as SECTION_TO_BOX_ON,de as SECTION_TO_BOX_PRESS,je as boxNativeReason,Y as convertSection,Le as convertSectionsInPage,Ee as convertTheme,fe as convertsToBox,be as filledTemplateHold,He as hasWords,me as headInOwnBox,Ce as headParts,ke as ownBoxHold,Re as pressesAsBox,_e as registerBoxNativeSections,Ie as registerSectionToBox,ae as sectionBoxIdOf,Fe as sectionToBoxEdits,Ne as sectionToBoxRow,Ae as sectionToBoxTypes};
1
+ import{readHidable as Z}from"efficient-easel/draw";import{BOX_TYPE as ee,CONTAINER_BLOCKS_SLOT as te}from"../../../format/lib/document/container-blocks.js";import{headingTextSeed as oe,labelTextSeed as ne}from"../../../format/lib/document/text-seeds.js";import{SPLITTABLE_SECTIONS as se,parseSectionHeadPlacement as re}from"../../../format/lib/sections/section-head-placement.js";import{accentItalicRuns as ie}from"../../../format/lib/markup.js";import{seedNodes as ae}from"../../../format/lib/document/seed-parts.js";import{bucketByGroup as ce}from"../../../format/lib/locations-grid.js";import{normalizeTheme as z}from"../../../format/lib/theme.js";import{hasOwnEntry as R,ownEntry as v}from"../../../format/lib/own-entry.js";const E=ee,_=te;function Ie(t){if(t.theme)return z(t.theme);const o=t.site?.themePresets;return o?z({selected:t.site?.selectedPreset??0,themes:[...o]}):void 0}function de(t,o){return o===0?`${t}~box`:`${t}~box-${o+1}`}const C={Flex:"the Box itself",Hero:"its slides hold Boxes of real blocks (Hero › Slide › Box), and its Scrolling Bar is a Box in its strip slot (Hero › Box)",Divider:"one block with no text, picture or button",CustomHTML:"the HTML box is the whole section; it has no parts"};function Ne(t){for(const[o,s]of Object.entries(t)){if(R(C,o)&&v(C,o)!==s)throw new Error(`lib/sections/section-to-box: "${o}" is already Box-native`);C[o]=s}}function Ae(t){return v(C,t)}const Y=new Set(["id"]),T={},M=[],fe=["ProductGrid","Events","Collections","GalleryB","ContactRouting","ReviewForm","AppointmentBooking","Reviews","CheckoutCTA","AlloyWheelsListing","SpecTable"],le=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...fe,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Countdown","FeaturedCover","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function Re(t){for(const[o,s]of Object.entries(t)){if(R(T,o)&&v(T,o)!==s)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);T[o]=s}}function Ce(t){return v(T,t)}function He(){return Object.keys(T)}function pe(t){return R(T,t)&&M.includes(t)}function Le(t,o=le){return R(T,t)&&(o.includes(t)||pe(t))}function Fe(t){const o=v(se,t);if(!o)throw new Error(`lib/sections/section-to-box: "${t}" has no head row in SPLITTABLE_SECTIONS`);const s=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&s.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&s.push({kind:"button",key:"linkText",href:"linkHref"}),s}const W=t=>Z(t),Me=t=>W(t).text.trim()!=="";function ue(t){if(t.includes("=="))return t;const o=t.indexOf("/"),s=o===-1?t:t.slice(0,o),r=s.trim();if(!r)return t;const c=s.indexOf(r);return`${s.slice(0,c)}==${r}==${s.slice(c+r.length)}${o===-1?"":t.slice(o)}`}const he=t=>t==="heading"?oe():t==="eyebrow"?ne():{};function ye(t,o,s,r){const a={...t._partStyles?.text??{},...o??{},...s??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function me(t,o){if(t===void 0)return{};if(typeof t=="string")return{variant:t};const s=o[t.key];return{variant:(typeof s=="string"?v(t.map,s):void 0)??t.fallback}}function V(t,o,s,r,c={}){const a={...o};for(const u of t){const[m,S,j]=typeof u=="string"?[u,u,void 0]:u;if(s[m]===void 0)continue;const I=j?j(s[m],s,c):s[m];I===void 0?delete a[S]:a[S]=I,r(m,S,I===void 0)}return a}function ke(t){const o=new Set([...Y,"headPlacement","_partStyles",...Object.keys(t.drop??{}),...Object.keys(t.reads??{})]),s=c=>{for(const a of c??[])o.add(typeof a=="string"?a:a[0])},r=c=>{for(const a of c)switch(a.kind){case"text":case"image":o.add(a.key),a.kind==="image"&&a.alt&&o.add(a.alt);break;case"button":o.add(a.key),o.add(a.href),typeof a.variant=="object"&&o.add(a.variant.key);break;case"list":o.add(a.key);break;case"group":case"block":s(a.box),r(a.parts??[]);break;case"core":if(a.keep!=="rest"&&a.keep.forEach(u=>o.add(u)),Object.keys(a.rename??{}).forEach(u=>o.add(u)),a.derive?.reads.forEach(u=>o.add(u)),typeof a.slots!="function")for(const u of Object.values(a.slots??{}))for(const m of u)"kind"in m&&o.add(m.key);break}};for(const c of[t,...t.also??[]])s(c.box),r(c.parts);return o}const be=t=>re(t.headPlacement)==="own-box";function ge(t){return be(t)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function xe(t,o){const s=t[o];return Array.isArray(s)&&s.some(c=>!!c&&typeof c=="object"&&typeof c.type=="string")?"already on the Box path: its items draw from a filled card template":void 0}function we(t){const o=new Set,s=r=>{for(const c of r)if(c.kind==="group"||c.kind==="block")s(c.parts??[]);else if(c.kind==="core"&&c.slots&&typeof c.slots!="function")for(const[a,u]of Object.entries(c.slots))u.length>0&&u.every(m=>!("kind"in m))&&o.add(a)};for(const r of[t,...t.also??[]])s(r.parts);return[...o]}function $e(t,o,s){if(!s.press)for(const r of we(t)){const c=xe(o,r);if(c!==void 0)return c}}function Q(t,o,s={}){const r=t.props,c=(o.ownBoxConverts?void 0:ge(r))??$e(o,r,s)??o.skip?.(r);if(c!==void 0)return{node:t,nodes:[t],carried:[],dropped:[],siteWrites:[],skipped:c};const a=String(r.id??t.type),u=[],m=[],S=new Set,j=(n,i)=>{u.push({key:n,home:i}),S.add(n)},I=r._partStyles??{},H=ke(o);let X=0;const w=(n,i)=>({type:n,props:{...i,id:`${a}~${n}-${++X}`}}),K=(n,i,b,y,g,l,$)=>{if(g){for(const d of n??[]){const h=typeof d=="string"?d:d[0];b[h]!==void 0&&$(h,`nothing — the ${y} has no parts, so it is not drawn`)}return}const e=typeof i=="function"?i(r,s):i??{};return V(n??[],e,b,(d,h,f)=>$(d,f?`nothing — the old value draws nothing (${y}: no ${h})`:`${l}${y}: ${h}`),s)},q=n=>ae(n,i=>`${a}~${i}-${++X}`),D=(n,i,b)=>{const y=n.of?n.of(i):Array.isArray(i[n.key])?i[n.key]:[],g=typeof n.props=="function"?n.props(r,s):n.props??{},l=y.map((f,x)=>{const p=f??{},k=n.item?.(p,x,r)??{},B=N(k.reverse?[...n.parts].reverse():n.parts,p,!1,`item ${x+1}: `);return n.flat?k.props?B.map(P=>({...P,props:{...P.props,...k.props,id:P.props.id}})):B:[w(E,{name:`${n.name} ${x+1}`,...g,...k.props??{},[_]:B})]});if(n.groups){const f=n.groups;return b(n.key,y.length?`one Box per item (${y.length}), in a Box per group`:"nothing — the list is empty"),ce(y.map(x=>x??{}),f.of,f.of).map((x,p)=>{const k=x.items.map(O=>O.item),B=f.parts?N(f.parts,f.head?.(k,r)??{},!1,`group ${p+1}: `):[],P=x.items.map(O=>l[O.index]),L=f.perRow?.(k.length,r),A=Number.isInteger(L)&&L>=1?L:1,F=[];if(f.perRow&&A<P.length)for(let O=0;O*A<P.length;O++)F.push(P.slice(O*A,(O+1)*A).flat());return w(E,{name:`${f.name} ${p+1}`,...f.props??{},[_]:[...B,w(E,{name:`${f.itemsName} ${p+1}`,...f.itemsProps?.(k.length,r)??{},[_]:F.length?F.map((O,U)=>w(E,{name:`${f.rowName??`${f.itemsName} row`} ${U+1}`,...f.rowProps??{},[_]:O})):P.flat()})]})})}const $=n.perRow?.(r),e=n.perRow?Number.isInteger($)&&$>=1?$:1:0;if(b(n.key,(y.length?n.flat?`each item's parts (${y.length} items), in order`:`one Box per item (${y.length}), its parts inside`:"nothing — the list is empty")+(e&&y.length?`, in rows of ${e}`:"")),!e)return l.flat();const d=typeof n.rowProps=="function"?n.rowProps(r,s):n.rowProps??{},h=[];for(let f=0;f*e<l.length;f++){const x=l.slice(f*e,(f+1)*e).flat(),p=n.rowFiller?e-l.slice(f*e,(f+1)*e).length:0;h.push(w(E,{name:`${n.rowName??`${n.name} row`} ${f+1}`,...d,[_]:[...x,...Array.from({length:p},(k,B)=>w(E,{name:`Empty ${B+1}`,...n.rowFiller,[_]:[]}))]}))}return h},N=(n,i,b,y)=>{const g=[],l=(e,d)=>b?j(e,d):void 0,$=e=>b?I[e]:void 0;for(const e of n)if(!(e.when&&!e.when(r,b?void 0:i)))switch(e.kind){case"text":{const d=W(i[e.key]);if(!d.text.trim()&&!(b&&s.press&&o.pressKeepsEmpty?.includes(e.key))){l(e.key,"nothing — empty words draw nothing, so no block");break}const h=he(e.role??"body"),{_partStyles:f,...x}=h,p=ye(h,e.styleFrom?{...e.style,...e.styleFrom(r,s)}:e.style,$(e.key),e.props?.align);g.push(w("Text",{text:e.mark==="accentLead"?ue(d.text):e.mark==="accentItalic"?ie(d.text):d.text,...x,...e.props??{},...p,...d.hidden?{_hidden:!0}:{}})),l(e.key,`${y}Text block: its words${d.hidden?", hidden":""}`);break}case"button":{const d=W(i[e.key]);if(!d.text.trim()){l(e.key,"nothing — no words, no button"),l(e.href,"nothing — no button to link"),typeof e.variant=="object"&&l(e.variant.key,"nothing — no button to style");break}const h=typeof i[e.href]=="string"&&i[e.href]?i[e.href]:"#",f={...e.style??{},...$(e.key)??{}};g.push(w("ButtonBlock",{label:d.text,href:h,...typeof e.props=="function"?e.props(i,s):e.props??{},...me(e.variant,i),...Object.keys(f).length?{_partStyles:{label:f}}:{},...d.hidden?{_hidden:!0}:{}})),l(e.key,`${y}Button block: its words`),l(e.href,`${y}Button block: its link`),typeof e.variant=="object"&&l(e.variant.key,`${y}Button block: its Style`);break}case"image":{const d=i[e.key];if(typeof d!="string"||!d){l(e.key,"nothing — no picture, no block"),e.alt&&l(e.alt,"nothing — no picture to describe");break}const h=e.alt&&typeof i[e.alt]=="string"?i[e.alt]:"";g.push(w("ImageBlock",{src:d,alt:h,...e.props??{}})),l(e.key,`${y}Image block: its picture`),e.alt&&l(e.alt,`${y}Image block: its alt text`);break}case"list":{g.push(...D(e,i,l));break}case"group":{const d=N(e.parts,i,b,y),h=K(e.box,e.props,i,`${e.name} Box`,!d.length&&!e.keepEmpty,y,l);h&&g.push(w(E,{name:e.name,...h,[_]:d}));break}case"block":{const d=e.parts?N(e.parts,i,b,y):[],h=K(e.box,e.props,i,`${e.type} block`,!!e.parts&&!d.length&&!e.keepEmpty,y,l);h&&g.push(w(e.type,{...h,...e.slot?{[e.slot]:d}:{}}));break}case"core":{const d=e.as??t.type,h={...e.headless?{}:{headPlacement:"own-box"},...e.props??{}},f=e.keep==="rest"?Object.keys(i).filter(p=>!H.has(p)&&!(p in h)):e.keep;for(const p of f)i[p]!==void 0&&(h[p]=i[p],l(p,`the ${d} block inside the Box`));if(e.keep==="rest"){for(const k of Object.keys(e.props??{}))i[k]!==void 0&&!H.has(k)&&l(k,`nothing — the ${d} block inside the Box has the row's own value`);i.headPlacement!==void 0&&l("headPlacement",`the ${d} block inside the Box: own-box`);const p=Object.fromEntries(Object.entries(I).filter(([k])=>!H.has(k)));Object.keys(p).length&&(h._partStyles=p)}for(const[p,k]of Object.entries(e.rename??{}))i[p]!==void 0&&(h[k]=i[p],l(p,`the ${d} block inside the Box: ${k}`));if(e.derive){Object.assign(h,e.derive.props(i,s));for(const p of e.derive.reads)i[p]!==void 0&&l(p,`the ${d} block inside the Box`)}const x=typeof e.slots=="function"?e.slots(i,s):e.slots??{};for(const[p,k]of Object.entries(x))h[p]=k.flatMap(B=>"kind"in B?D(B,i,l):q([B]));g.push(w(d,h));break}}return g},J=(n,i)=>{const b=i===0?"Box":`${n.name} Box`,y=N(n.parts,r,!0,i===0?"":`${b}: `),g=typeof n.boxProps=="function"?n.boxProps(r,s):n.boxProps??{},l=V(n.box??[],g,r,($,e,d)=>j($,d?`nothing — the old value draws nothing (${b}: no ${e})`:`${b}: ${e}`),s);return{type:E,props:{name:n.name,...l,[_]:y,id:de(a,i)}}},G=[o,...o.also??[]].map(J);r._partStyles!==void 0&&j("_partStyles","each old part's style moved to its new part");for(const[n,i]of Object.entries(o.reads??{}))r[n]!==void 0&&j(n,i);for(const[n,i]of Object.entries(o.drop??{}))n in r&&(m.push({key:n,why:i}),S.add(n));for(const n of Object.keys(r))Y.has(n)||S.has(n)||m.push({key:n,why:"not in the row — not carried"});return{node:G[0],nodes:G,carried:u,dropped:m,siteWrites:[...o.site?.(t,s)??[]]}}function We(t,o=M,s={}){const r=t.content;if(!Array.isArray(r))return t;let c=!1;const a=r.flatMap(u=>{const m=u&&typeof u.type=="string"&&o.includes(u.type)?v(T,u.type):void 0;if(!m)return[u];const S=Q(u,m,s);return S.skipped!==void 0?[u]:(c=!0,S.nodes)});return c?{...t,content:a}:t}function Xe(t,o=M,s={}){if(!Array.isArray(t))return[];const r=[];return t.forEach((c,a)=>{const u=c&&typeof c.type=="string"&&o.includes(c.type)?v(T,c.type):void 0;if(!u)return;const m=Q(c,u,s);m.skipped===void 0&&r.push({index:a,node:m.node,nodes:m.nodes})}),r}export{fe as HOST_PRESS_TYPES,_ as SECTION_BOX_SLOT,E as SECTION_BOX_TYPE,M as SECTION_TO_BOX_ON,le as SECTION_TO_BOX_PRESS,Ae as boxNativeReason,Q as convertSection,We as convertSectionsInPage,Ie as convertTheme,pe as convertsToBox,xe as filledTemplateHold,Me as hasWords,be as headInOwnBox,Fe as headParts,ge as ownBoxHold,Le as pressesAsBox,Ne as registerBoxNativeSections,Re as registerSectionToBox,de as sectionBoxIdOf,Xe as sectionToBoxEdits,Ce as sectionToBoxRow,He as sectionToBoxTypes};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "67.2.0",
3
+ "version": "67.3.0",
4
4
  "description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",