efficient-web-builder 47.1.0 → 47.2.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 (111) hide show
  1. package/CHANGELOG.md +34 -1
  2. package/dist/editor/components/BlockGapField.d.ts +15 -1
  3. package/dist/editor/components/BlockGapField.js +1 -1
  4. package/dist/editor/components/DuplicateToPageMenu.d.ts +2 -0
  5. package/dist/editor/components/DuplicateToPageMenu.js +1 -1
  6. package/dist/editor/components/SideSpaceField.d.ts +31 -1
  7. package/dist/editor/components/SideSpaceField.js +1 -1
  8. package/dist/editor/components/SiteFields.js +1 -1
  9. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  10. package/dist/editor/components/StorefrontEditor.js +1 -1
  11. package/dist/editor/components/WebsiteSettingsPanel.d.ts +10 -0
  12. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  13. package/dist/editor/lib/animation/AnimationDurationRow.d.ts +4 -0
  14. package/dist/editor/lib/animation/AnimationDurationRow.js +1 -1
  15. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  16. package/dist/editor/lib/animation/fields.js +1 -1
  17. package/dist/editor/lib/animation/loop-fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  20. package/dist/editor/lib/document/canvas-typing.js +1 -1
  21. package/dist/editor/lib/document/card-display-chips.d.ts +33 -0
  22. package/dist/editor/lib/document/card-display-chips.js +1 -0
  23. package/dist/editor/lib/document/controls.d.ts +13 -0
  24. package/dist/editor/lib/document/controls.js +1 -1
  25. package/dist/editor/lib/document/field-groups.js +1 -1
  26. package/dist/editor/lib/document/live-number-field.d.ts +12 -0
  27. package/dist/editor/lib/document/live-number-field.js +1 -0
  28. package/dist/editor/lib/document/page-root.js +2 -2
  29. package/dist/editor/lib/editor-document-adapter.d.ts +5 -1
  30. package/dist/editor/lib/editor-document-adapter.js +1 -1
  31. package/dist/editor/lib/sections/section-dry-run.d.ts +34 -0
  32. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  33. package/dist/format/lib/animation/index.d.ts +1 -0
  34. package/dist/format/lib/animation/index.js +1 -1
  35. package/dist/format/lib/content/block-sources.d.ts +9 -0
  36. package/dist/format/lib/content/block-sources.js +1 -1
  37. package/dist/format/lib/content/box-layout.d.ts +12 -1
  38. package/dist/format/lib/content/box-layout.js +1 -1
  39. package/dist/format/lib/content/box-separator.js +1 -1
  40. package/dist/format/lib/content/card-template.d.ts +1 -0
  41. package/dist/format/lib/content/card-template.js +1 -1
  42. package/dist/format/lib/content/container-gap.d.ts +9 -1
  43. package/dist/format/lib/content/container-gap.js +1 -1
  44. package/dist/format/lib/content/count-numbers.d.ts +7 -0
  45. package/dist/format/lib/content/count-numbers.js +1 -0
  46. package/dist/format/lib/content/page-width.d.ts +11 -0
  47. package/dist/format/lib/content/page-width.js +1 -1
  48. package/dist/format/lib/content/section-sticky.d.ts +1 -0
  49. package/dist/format/lib/content/section-sticky.js +1 -1
  50. package/dist/format/lib/content/site-gutter.d.ts +6 -0
  51. package/dist/format/lib/content/site-gutter.js +1 -1
  52. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  53. package/dist/format/lib/document/easel-row-words.js +1 -1
  54. package/dist/format/lib/document/panel-bands.d.ts +1 -0
  55. package/dist/format/lib/document/panel-bands.js +1 -1
  56. package/dist/format/lib/document/passes/settings-groups.js +1 -1
  57. package/dist/format/lib/document/site-gap-fields.d.ts +1 -1
  58. package/dist/format/lib/document/site-gap-fields.js +1 -1
  59. package/dist/format/lib/editor-words-catalogue.d.ts +5 -0
  60. package/dist/format/lib/editor-words-catalogue.js +3 -3
  61. package/dist/format/lib/fit-words.js +4 -3
  62. package/dist/format/lib/sections/strip-shape.d.ts +1 -0
  63. package/dist/format/lib/sections/strip-shape.js +1 -1
  64. package/dist/format/lib/site-theme-row.d.ts +2 -0
  65. package/dist/format/lib/site-twin-row.d.ts +5 -0
  66. package/dist/format/lib/site-twin-row.js +1 -0
  67. package/dist/format/lib/source-rules/flat-theme-palette.js +1 -1
  68. package/dist/format/lib/source-rules/one-loop-module.js +3 -3
  69. package/dist/render/components/BlockFrame.d.ts +2 -1
  70. package/dist/render/components/BlockFrame.js +1 -1
  71. package/dist/render/components/Btn.js +1 -1
  72. package/dist/render/components/CountRowsContext.d.ts +8 -0
  73. package/dist/render/components/CountRowsContext.js +1 -0
  74. package/dist/render/components/Flex.d.ts +3 -1
  75. package/dist/render/components/Flex.js +1 -1
  76. package/dist/render/components/ImageBlock.d.ts +4 -1
  77. package/dist/render/components/ImageBlock.js +1 -1
  78. package/dist/render/components/InBoxContext.d.ts +1 -0
  79. package/dist/render/components/InBoxContext.js +1 -1
  80. package/dist/render/components/IntroBleed.js +1 -1
  81. package/dist/render/components/LocationMap.js +1 -1
  82. package/dist/render/components/PreviewHeaderContext.d.ts +9 -1
  83. package/dist/render/components/PreviewHeaderContext.js +1 -1
  84. package/dist/render/components/SiteGutterFrame.d.ts +7 -1
  85. package/dist/render/components/SiteGutterFrame.js +1 -1
  86. package/dist/render/lib/animation/LoopTrack.d.ts +2 -2
  87. package/dist/render/lib/animation/LoopTrack.js +1 -1
  88. package/dist/render/lib/content/block-size.js +1 -1
  89. package/dist/render/lib/content/section-edge.d.ts +10 -0
  90. package/dist/render/lib/content/section-edge.js +1 -0
  91. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  92. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  93. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  94. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  95. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  96. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +5 -0
  97. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  98. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +1 -1
  99. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  100. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  101. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  102. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
  103. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  104. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  105. package/dist/render/lib/document/passes/block-size.js +1 -1
  106. package/dist/render/lib/document/passes/section-anchor.js +1 -1
  107. package/dist/render/lib/document/passes/section-padding.js +1 -1
  108. package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
  109. package/dist/render/lib/sections/section-to-box.d.ts +5 -1
  110. package/dist/render/lib/sections/section-to-box.js +1 -1
  111. package/package.json +2 -2
@@ -1 +1 @@
1
- import{SECTION_BOX_SLOT as W,SECTION_BOX_TYPE as G}from"../../../sections/section-to-box.js";import{BUTTON as b,DIM as i,DROP_COMMON as j,DROP_SIDE_PADDING as X,INNER_BOX as n,SAME_KEYS as v,SECTION_BOX as S,SH_LINK as f,TEXT as p,bandAccent as $,bandIndex as K,bandPage as z,bandProps as P,bandWrites as U,smallText as d,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as Y,token as c}from"./section-head-looks.js";import{declaredBlockSource as w}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as q,splitLegacyRegion as x}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as F}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as V}from"../../../../../format/lib/map-styles.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),m=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,T=e=>r(e.state).trim()||x(r(e.region)).state,O=e=>r(e.country).trim()||x(r(e.region)).country,_=e=>[T(e),O(e)].filter(Boolean).join(" · "),J=e=>m(e).some(t=>r(t.photo).trim()!==""),Q=e=>m(e).some(t=>V(Number(t.lat),Number(t.lng))),Z=(e,t)=>m(e).filter(o=>s(o)===s(t)).length,ee=(e,t)=>Z(e,t)===1?"wide":q(e.imageShape),h={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),y={top:1,right:1,bottom:1,left:1},u=(e,t)=>({sectionPaddingTop:e,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingTopPhone:e,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:t,sectionPaddingRightPhone:t}),k={...n,direction:"row",share:"equal",gap:0},C=(e,t={})=>o=>o>g(o)?{...n,gap:0}:{...k,...t,...e&&o>1?{phoneRow:e}:{}},te=250,E={wrap:!0},oe={kind:"group",name:"Gallery",props:{...n,gap:20},when:J,parts:[{kind:"group",name:"Gallery head",props:{...n,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[d("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right"},style:a(11,{letterSpacing:.22})}]},{kind:"group",name:"Groups",props:{...n,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...n,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:y,...u(12,12)},item:(e,t,o)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo)}:{},link:`#${B(t)}`,boxShape:ee(o,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...n,gap:10},head:e=>({label:s(e[0]??{})}),parts:[d("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:C(2),perRow:g,rowName:"Row",rowProps:{...k,phoneRow:2}}}]}]},ne={kind:"group",name:"Words",props:{...n,gap:12,...u(28,28),sectionBorder:{bottom:1},sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...n,direction:"row",justify:"between",align:"start",gap:14,share:"content",wrap:!0},parts:[{kind:"group",name:"Name",props:{...n,gap:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24})}},box:["region","state","country"].map(e=>[e,"text",(t,o)=>_(o)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...n,sectionBorder:y,...u(6,10)},parts:[{kind:"text",key:"timezone",props:i,style:a(12,{letterSpacing:.22})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...b,...f,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text"})}},box:[["phone","label"],["phone","href",e=>F(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},re={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,o)=>T(o)]),...["region","country"].map(e=>[e,"country",(t,o)=>O(o)])]},ae={kind:"list",key:"locations",name:"City",props:(e,t)=>({...n,gap:0,sectionBorder:y,jumpHighlight:!0,minWidth:te,sectionAccent:K(e,t)>=0?z(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[ne,re],groups:{of:s,name:"Group",props:{...n,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:r(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...n,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[d("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:C(void 0,E),perRow:g,rowName:"Row",rowProps:{...k,...E}}},M=a(10,{letterSpacing:.25}),ie={kind:"block",type:G,props:{...n,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Q,slot:W,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:M}}},{kind:"block",type:"ButtonBlock",props:{...b,...f,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...M,color:"labels"}}}}]},R=(e,t)=>Object.fromEntries(t.filter(o=>e[o]!==void 0).map(o=>[o,e[o]])),A=["sectionPaddingTop","sectionPaddingTopPhone"],L=["sectionPaddingBottom","sectionPaddingBottomPhone"],I=e=>e.map(t=>[t,t,(o,D)=>l(D,h)[t]]),H=["sectionAccent","sectionAccent",$],se=["gridSpan","_hidden"],pe={name:"City pictures",skip:e=>w(e)?`fed by the data source "${w(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...S,direction:"column",gap:40,anchor:"studios",...R(l(e,h),A),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...v.filter(e=>e!=="sectionAccent"&&e!=="anchor"),H,["anchor","anchor",e=>r(e).trim()?e:"studios"],...I(A)],parts:[Y("sectionNumber","heading","tagline"),oe],also:[{name:"City maps",boxProps:(e,t)=>({...S,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...R(l(e,h),L),...P(e,t)}),box:[...se,H,...I(L)],parts:[ae,ie]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:U,drop:{...j,...X,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},ke={ContactLocations:pe};export{ke as LOCATIONS_SECTION_TO_BOX};
1
+ import{SECTION_BOX_SLOT as I,SECTION_BOX_TYPE as G}from"../../../sections/section-to-box.js";import{BUTTON as b,DIM as i,DROP_COMMON as W,DROP_SIDE_PADDING as j,INNER_BOX as o,SAME_KEYS as D,SECTION_BOX as P,SH_LINK as f,TEXT as p,bandAccent as X,bandIndex as v,bandPage as $,bandProps as S,bandWrites as K,smallText as d,wrapperPad as l}from"./section-to-box-row-parts.js";import{editorialHeadTree as z,token as c}from"./section-head-looks.js";import{declaredBlockSource as B}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as U,splitLegacyRegion as w}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as Y}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as F}from"../../../../../format/lib/map-styles.js";const a=e=>typeof e=="string"?e:e==null?"":String(e),m=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>a(e.group),x=e=>`loc-${e}`,T=e=>a(e.state).trim()||w(a(e.region)).state,O=e=>a(e.country).trim()||w(a(e.region)).country,_=e=>[T(e),O(e)].filter(Boolean).join(" · "),q=e=>m(e).some(t=>a(t.photo).trim()!==""),V=e=>m(e).some(t=>F(Number(t.lat),Number(t.lng))),J=(e,t)=>m(e).filter(n=>s(n)===s(t)).length,Q=(e,t)=>J(e,t)===1?"wide":U(e.imageShape),h={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,r=(e,t={})=>({textStyle:"body-5",...c("label",e),case:"upper",...t}),y={top:1,right:1,bottom:1,left:1},u=(e,t)=>({sectionPaddingTop:e,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingTopPhone:e,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:t,sectionPaddingRightPhone:t}),k={...o,direction:"row",share:"equal",gap:0},Z=e=>t=>t>g(t)?{...o,gap:0}:{...k,...t>1?{phoneRow:e}:{}},ee={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:q,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[d("galleryKicker",r(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:r(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...o,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...o,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:y,...u(12,12)},item:(e,t,n)=>({props:{...a(e.photo).trim()?{bgImage:a(e.photo)}:{},link:`#${x(t)}`,boxShape:Q(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:r(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[d("label",r(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Z(2),perRow:g,rowName:"Row",rowProps:{...k,phoneRow:2}}}]}]},te={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...u(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...o,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6,minWidth:0},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:r(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>_(n)]),when:(e,t)=>_(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:y,...u(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:r(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...c("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...b,...f,variant:"ghost",arrow:!1,_partStyles:{label:r(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>Y(a(e))??"#"]],when:(e,t)=>a(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:r(12,{letterSpacing:.18,lineHeight:1.7})}]},oe={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(t,n)=>T(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ne={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[oe]},ae={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:y,jumpHighlight:!0,sectionAccent:v(e,t)>=0?$(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:x(t)}}),parts:[te,ne],groups:{of:s,name:"Group",props:{...o,gap:20},head:e=>{const t=e[0]??{};return{key:s(t),groupName:a(t.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>a(t?.key).trim()!=="",parts:[d("key",r(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...c("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:r(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...k,columns:g(e)})}},C=r(10,{letterSpacing:.25}),re={kind:"block",type:G,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:V,slot:I,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...b,...f,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},M=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),E=["sectionPaddingTop","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomPhone"],L=e=>e.map(t=>[t,t,(n,R)=>l(R,h)[t]]),A=["sectionAccent","sectionAccent",X],ie=["gridSpan","_hidden"],se={name:"City pictures",skip:e=>B(e)?`fed by the data source "${B(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...P,direction:"column",gap:40,anchor:"studios",...M(l(e,h),E),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...S(e,t)}),box:[...D.filter(e=>e!=="sectionAccent"&&e!=="anchor"),A,["anchor","anchor",e=>a(e).trim()?e:"studios"],...L(E)],parts:[z("sectionNumber","heading","tagline"),ee],also:[{name:"City maps",boxProps:(e,t)=>({...P,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...M(l(e,h),H),...S(e,t)}),box:[...ie,A,...L(H)],parts:[ae,re]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:K,drop:{...W,...j,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},ue={ContactLocations:se};export{ue as LOCATIONS_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{phoneKey as d}from"efficient-easel/draw";import{hasWords as l}from"../../../sections/section-to-box.js";import{DROP_COMMON as c,DROP_SIDE_PADDING as h,INNER_BOX as o,SAME_KEYS as g,SECTION_BOX as u,TEXT as a,innerPad as S,innerPadKeys as x,smallText as f}from"./section-to-box-row-parts.js";import{headTree as w}from"./section-head-looks.js";const n=t=>typeof t=="string"?t.trim():"";function i(t){const e=`${n(t.prefix)}${n(t.value)}`,s=n(t.suffix);return t.emphasizeAll===!0?e?`==_${e}_==`:"":`${e}${s?`==_${s}_==`:""}`}const r={kind:"block",type:"Text",props:{...a,_partStyles:{text:{textStyle:"heading-1",case:"none",lineHeight:.9,letterSpacing:-.04}}},box:[["value","text",(t,e)=>i(e)]],when:(t,e)=>e!==void 0&&typeof e.value=="string"&&i(e)!==""},p=t=>l(t?.supSuffix),b={name:"Stats with Text",boxProps:t=>({...u,direction:"column",gap:60,sectionBorder:{bottom:1},...S(t,"StatsParagraph")}),box:[...g,...x("StatsParagraph")],parts:[w("StatsParagraph"),{kind:"group",name:"Stats",props:{...o,gap:0},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...o,direction:"row",gap:0,share:"equal"},props:{...o,justify:"between",gap:12,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}},parts:[{...r,when:(t,e)=>!p(e)&&r.when(t,e)},{kind:"group",name:"Figure",props:{...o,direction:"row",align:"start",gap:32,share:"content",phoneRow:2,[d("share")]:"content"},when:(t,e)=>p(e),parts:[r,{kind:"text",key:"supSuffix",props:a,style:{textStyle:"body-5",color:"accent",letterSpacing:.18,lineHeight:1,padding:18}}]},{kind:"group",name:"Words",props:{...o,gap:4},parts:[{kind:"text",key:"label",props:a,style:{textStyle:"body-1",letterSpacing:-.01},was:{size:16}},f("sub",{color:"labels",letterSpacing:.24})]}]}]}],drop:{...c,...h,background:"needs a Box fill: the old band painted this colour (the theme's section band, `var(--section-bg)`, or none) behind the head and round the cards, and a Box paints only its theme's page colour",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},T={StatsParagraph:b};export{T as STATS_SECTION_TO_BOX,i as figureWords};
1
+ import{phoneKey as l}from"efficient-easel/draw";import{COUNT_KEY_PROP as g}from"../../../../../format/lib/content/block-sources.js";import{resolveSectionBackground as k,THEME_SECTION_BG as _}from"../../../../../format/lib/content/section-background.js";import{finiteNumber as T}from"../../../../../format/lib/finite-number.js";import{hasWords as s}from"../../../sections/section-to-box.js";import{DROP_COMMON as u,DROP_SIDE_PADDING as m,INNER_BOX as o,NUMBER_TEXT as f,SAME_KEYS as w,SECTION_BOX as S,TEXT as b,bandAccent as B,bandProps as O,bandWrites as A,fillFrom as E,innerPad as N,innerPadKeys as R,smallText as i,wrapperPad as H,wrapperPadKeys as I}from"./section-to-box-row-parts.js";import{fluidToken as M,headTree as v,token as n}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as C}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const p=e=>typeof e=="string"?e.trim():"";function y(e){const t=`${p(e.prefix)}${p(e.value)}`,a=p(e.suffix);return e.emphasizeAll===!0?t?`==_${t}_==`:"":`${t}${a?`==_${a}_==`:""}`}const d={kind:"block",type:"Text",props:{...f,_partStyles:{text:{textStyle:"heading-2",...M("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04}}},box:[["value","text",(e,t)=>y(t)]],when:(e,t)=>t!==void 0&&typeof t.value=="string"&&y(t)!==""},P=e=>s(e?.supSuffix),c=e=>k(e.background,C.StatsParagraph),r=e=>c(e)===_,h=e=>({...e,sectionAccent:e.sectionAccent??0}),D=(e,t)=>r(e)?E("background")(e,t):{},F={name:"Stats with Text",skip:e=>c(e)&&c(e)!=="transparent"&&!r(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,t)=>({...S,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...N(e,"StatsParagraph"),...r(e)?O(h(e),t):{}}),box:[...w.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,a)=>r(t)?B(e,h(t),a):e],...R("StatsParagraph")],site:(e,t)=>r(e.props)?A({props:h(e.props)},t):[],parts:[v("StatsParagraph"),{kind:"group",name:"Stats",props:{...o,gap:0},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...o,direction:"row",gap:0,share:"equal",phoneRow:2,[l("share")]:"content"},props:(e,t)=>({...o,justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1},...D(e,t)}),parts:[{...d,when:(e,t)=>!P(t)&&d.when(e,t)},{kind:"group",name:"Figure",props:{...o,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[l("share")]:"content"},when:(e,t)=>P(t),parts:[d,{kind:"text",key:"supSuffix",props:b,style:{textStyle:"body-5",...n("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12}}]},{kind:"group",name:"Words",props:{...o,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:b,style:{textStyle:"body-1",fontRole:"heading",...n("body",16),lineHeight:1.5,letterSpacing:-.01}},i("sub",{color:"labels",...n("label",12),lineHeight:1.5,letterSpacing:.24})]}]}]}],drop:{...u,...m,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},K=new Set(["value","label",g]),x={top:48,bottom:48,topPhone:48,bottomPhone:48},U={name:"Stats",skip:e=>s(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(t=>s(t?.[g]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(t=>Object.keys(t??{}).some(a=>!K.has(a)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(t=>t!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...S,direction:"column",gap:24,gapPhone:24,...H(e,x)}),box:[...w,...I(x)],parts:[i("heading",{color:"labels",...n("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...o,gap:32,gapPhone:32},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>T(e.columns)??4,rowName:"Stats row",rowProps:{...o,direction:"row",gap:32,gapPhone:32,share:"equal",phoneRow:2},props:{...o,gap:8,gapPhone:8,sectionBorder:{top:1},sectionPaddingTop:20},parts:[{kind:"text",key:"value",props:f,style:{textStyle:"heading-2",...n("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},i("label",{color:"labels",...n("label",12),letterSpacing:.2})]}]}],drop:{...u,...m,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"needs a Box fill: a Box paints only its theme's page colour. 0 Hartes nodes store it (read-only, 2026-11-02)"}},z={StatsParagraph:F,Stats:U};export{z as STATS_SECTION_TO_BOX,y as figureWords};
@@ -1 +1 @@
1
- import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{parseTickerSeparator as T}from"../../../../../format/lib/sections/ticker-style.js";import{DIM as o,DROP_COMMON as i,DROP_SIDE_PADDING as n,SAME_KEYS as r,SECTION_BOX as s,TEXT as b,wrapperPad as a,wrapperPadKeys as p}from"./section-to-box-row-parts.js";import{SPEC_PAD as d,SPEC_STRIP as u,SPEC_TEXT as l,STRIP_BOX as c,TICKER_DISPLAY as _,TICKER_PAD as m,TICKER_SMALL as f,TICKER_STRIP as k}from"../../../../../format/lib/sections/strip-shape.js";const h=e=>e.size==="display",P=(e,t)=>({kind:"list",key:"items",name:"Item",flat:!0,when:t,parts:[{kind:"text",key:"text",props:o,style:e}]}),y={name:"Scrolling Bar",boxProps:e=>({...s,...c,...k,...a(e,m)}),box:[["separator","separator",e=>T(e)],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...r,["tone","sectionAccent",(e,t)=>t.sectionAccent!==void 0?x(t.sectionAccent):e==="plain"?-1:void 0],...p(m)],parts:[P(f,e=>!h(e)),P(_,h)],drop:{...i,...n,scrollDirection:"carried to Loop › Direction (the Box's Animation tab) by this row once the Box Loop build PR (Panels And Popups director) is merged; the row stays OFF until then",speed:"carried to Loop › Duration (the Box's Animation tab) by this row once the Box Loop build PR (Panels And Popups director) is merged; the row stays OFF until then",join:"the band sitting inside its neighbour: absent on all 18 live Tickers (JJ 2026-10-27), and not the separator",size:"each item's Text style: Small → Body 5, Display → Heading 3"}},S=e=>e?.tone==="muted",I={name:"Spec Strip",boxProps:e=>({...s,...c,...u,...e.fill==="none"?{sectionBorder:{top:1}}:{},...a(e,d)}),box:[...r,...p(d)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:b,style:l,when:(e,t)=>!S(t)},{kind:"text",key:"text",props:o,style:l,when:(e,t)=>S(t)}]}],drop:{...i,...n,fill:"None → no fill and a line on top. Dark band → the Box follows its theme: the old fixed `plate-band` colour has no home (no site write adds a theme preset since 8622589f); the merchant picks a dark theme on the Box"}},O={Ticker:y,SpecStrip:I};export{O as STRIP_SECTION_TO_BOX};
1
+ import{mixHex as u}from"efficient-shell/format";import{resolveSectionAccent as r,SECTION_ACCENT_INHERIT as E}from"../../../../../format/lib/content/section-surface.js";import{parseLoopDirection as x}from"../../../../../format/lib/animation/index.js";import{parseTickerSeparator as i,SEPARATOR_GLYPH as f}from"../../../../../format/lib/sections/ticker-style.js";import{DIM as s,DROP_COMMON as a,DROP_SIDE_PADDING as l,fillFrom as b,SAME_KEYS as p,sectionPage as h,SECTION_BOX as c,TEXT as y,wrapperPad as d,wrapperPadKeys as m}from"./section-to-box-row-parts.js";import{SPEC_PAD as S,SPEC_STRIP as A,SPEC_TEXT as T,STRIP_BOX as _,TICKER_BARE_GAP as C,TICKER_DISPLAY as R,TICKER_PAD as D,TICKER_SMALL as O,TICKER_STRIP as B}from"../../../../../format/lib/sections/strip-shape.js";const k=e=>e.size==="display",g=(e,o)=>{const t=h(e,o),n=e.tone!=="plain"&&t?.text&&t.background?u(t.text,t.background,.3):null;return n?{color:n}:{}},N=(e,o)=>e.tone!=="plain"&&r(e.sectionAccent)===null?b("background")(e,o):{},I=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:s,style:e,styleFrom:g}]}),K={name:"Scrolling Bar",boxProps:(e,o)=>({...c,..._,...B,...f[i(e.separator)]===""?C:{},...d(e,D),...N(e,o)}),box:[["scrollDirection","scrollDirection",e=>x(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>i(e)],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...p,["tone","sectionAccent",(e,o)=>r(o.sectionAccent)??E],...m(D)],parts:[I(O,e=>!k(e)),I(R,k)],drop:{...a,...l,join:"the band sitting inside its neighbour: absent on all 18 live Tickers (JJ 2026-10-27), and not the separator",size:"each item's Text style: Small → Body 5, Display → Heading 3"}},P=e=>e?.tone==="muted",w={name:"Spec Strip",boxProps:e=>({...c,..._,...A,...e.fill==="none"?{sectionBorder:{top:1}}:{},...d(e,S)}),box:[...p,...m(S)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:y,style:T,when:(e,o)=>!P(o)},{kind:"text",key:"text",props:s,style:T,when:(e,o)=>P(o)}]}],drop:{...a,...l,fill:"None → no fill and a line on top. Dark band → the Box follows its theme: the old fixed `plate-band` colour has no home (no site write adds a theme preset since 8622589f); the merchant picks a dark theme on the Box"}},Y={Ticker:K,SpecStrip:w};export{Y as STRIP_SECTION_TO_BOX};
@@ -1,3 +1,3 @@
1
- import{convertTheme as S}from"../../../sections/section-to-box.js";import{BUTTON as g,DIM as s,bandAccent as _,bandIndex as E,bandPage as I,bandWrites as B,DROP_COMMON as h,DROP_SIDE_PADDING as m,INNER_BOX as i,SAME_KEYS as b,SECTION_BOX as y,TEXT as l,headingCaseOf as u,innerPad as x,innerPadKeys as k}from"./section-to-box-row-parts.js";import{splitParagraphs as O}from"../../../../components/goldPhrases.js";import{TIMELINE_YEAR_BOX as A,TIMELINE_YEAR_HEAD as w}from"../../../../../format/lib/sections/timeline-year-shape.js";const H="jetbrains-mono",T="space-grotesk",r=(e,t,o={})=>({textStyle:"body-5",font:H,size:e,sizePhone:e,letterSpacing:t,lineHeight:1.5,weight:400,...o}),p=(e,t,o,d)=>({font:T,size:e,sizePhone:t,case:"upper",weight:500,letterSpacing:o,lineHeight:d}),a=(e,t,o,d={})=>({textStyle:"body-1",font:T,size:e,sizePhone:t,weight:400,case:"none",lineHeight:o,...d}),n=(e,t,o={})=>({kind:"text",key:e,props:l,style:t,...o}),P=(e,t)=>t?.future===!0,f=(e,t)=>{const o=S(t)?.themes[I(e.sectionAccent,t)]?.line;return o?{buttonBorder:{width:1,color:o}}:{}},c=e=>O(typeof e?.body=="string"?e.body:""),M={name:"Milestone Timeline",boxProps:(e,t)=>{const o=E(e,t);return{...y,direction:"column",gap:60,sectionBorder:{bottom:1},...x(e,"TimelineTrack"),...o>=0?{sectionAccent:o}:{}}},box:[...b.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",_],...k("TimelineTrack")],parts:[{kind:"group",name:"Heading",props:{...i,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionPaddingBottom:32,sectionBorder:{bottom:1}},parts:[{kind:"group",name:"Title",props:{...i,direction:"row",align:"end",gap:40,share:"content"},parts:[n("eyebrow",r(13,.3,{case:"upper",color:"accent",padding:8}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(79,40,-.03,1)},{role:"heading"})]},n("intro",a(14,14,1.5),{props:{...s,align:"right",maxWidth:360}})]},{kind:"group",name:"Years",props:{...i,direction:"row",share:"equal",gap:0,line:!0},parts:[{kind:"list",key:"entries",name:"Year",props:{...i,...A},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:w.name,props:{...i,...w},parts:[n("date",r(13,.22,{color:"accent"}),{when:(e,t)=>!P(e,t)}),n("date",r(13,.22,{color:"labels"}),{when:P}),n("title",{textStyle:"heading-3",...p(20,20,-.02,1.1)},{role:"heading"})]},n("blurb",a(13,13,1.55),{props:s})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,align:"right",...f(e,t)}),style:r(13,.3,{case:"upper"})}],site:(e,t)=>[...u("title")(e),...B(e,t)],drop:{...h,...m,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},N={name:"Story Timeline",skip:e=>{const t=typeof e.layout=="string"?e.layout:"split";return t==="split"?void 0:`display "${t}": not converted (0 live pages; Spine and Alternating are not offered, a Track story is not stored anywhere)`},boxProps:e=>({...y,direction:"row",share:"twoThree",gap:80,align:"start",...x(e,"Timeline")}),box:[...b,...k("Timeline")],parts:[{kind:"group",name:"Heading",props:{...i,gap:24},parts:[n("eyebrow",r(12,.3,{case:"upper",color:"accent"}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(72,40,-.03,.94)},{role:"heading"}),n("intro",a(14,14,1.6),{props:{...s,maxWidth:360}}),{kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...i,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:667,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:419,sectionHeightUnitPhone:"px",sectionPaddingTop:12,sectionPaddingBottom:12,sectionPaddingLeft:16,sectionPaddingRight:16,sectionPaddingTopPhone:12,sectionPaddingBottomPhone:12,sectionPaddingLeftPhone:16,sectionPaddingRightPhone:16},when:e=>typeof e.imageSrc=="string"&&e.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...i,direction:"row",justify:"between",align:"center",gap:12,share:"content",phoneRow:2},parts:[n("imageCaption",r(11,.24,{case:"upper",color:"text"})),n("imageMeta",r(11,.24,{case:"upper",color:"accent"}),{props:{...l,align:"right"}})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,...f(e,t)}),style:r(13,.3,{case:"upper"})}]},{kind:"group",name:"Chapters",props:{...i,gap:48,line:!1},parts:[{kind:"list",key:"entries",name:"Chapter",props:{...i,direction:"row",gap:24,share:"biggerRight",align:"start"},parts:[n("date",r(13,.24,{color:"accent"})),{kind:"group",name:"Words",props:{...i,gap:14},parts:[n("title",{textStyle:"heading-3",...p(24,20,-.02,1.5)},{role:"heading"}),{kind:"block",type:"Text",props:{...l,_partStyles:{text:a(17,16,1.6)}},box:[["body","text",(e,t)=>c(t)[0]??""]],when:(e,t)=>c(t).length>0},{kind:"block",type:"Text",props:{...s,_partStyles:{text:a(17,16,1.6,{paragraphSpacing:14})}},box:[["body","text",(e,t)=>c(t).slice(1).join(`
1
+ import{BUTTON as g,DIM as s,bandAccent as f,bandIndex as S,bandWrites as _,DROP_COMMON as h,DROP_SIDE_PADDING as m,INNER_BOX as o,SAME_KEYS as b,SECTION_BOX as y,lineBorder as u,TEXT as l,innerPad as x,innerPadKeys as k}from"./section-to-box-row-parts.js";import{splitParagraphs as E}from"../../../../components/goldPhrases.js";import{TIMELINE_YEAR_BOX as I,TIMELINE_YEAR_HEAD as w}from"../../../../../format/lib/sections/timeline-year-shape.js";const B="jetbrains-mono",T="space-grotesk",i=(e,t,r={})=>({textStyle:"body-5",font:B,size:e,sizePhone:e,letterSpacing:t,lineHeight:1.5,weight:400,...r}),p=(e,t,r,c)=>({font:T,size:e,sizePhone:t,case:"upper",weight:500,letterSpacing:r,lineHeight:c}),a=(e,t,r,c={})=>({textStyle:"body-1",font:T,size:e,sizePhone:t,weight:400,case:"none",lineHeight:r,...c}),n=(e,t,r={})=>({kind:"text",key:e,props:l,style:t,...r}),P=(e,t)=>t?.future===!0,d=e=>E(typeof e?.body=="string"?e.body:""),O={name:"Milestone Timeline",boxProps:(e,t)=>{const r=S(e,t);return{...y,direction:"column",gap:60,sectionBorder:{bottom:1},...x(e,"TimelineTrack"),...r>=0?{sectionAccent:r}:{}}},box:[...b.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",f],...k("TimelineTrack")],parts:[{kind:"group",name:"Heading",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionPaddingBottom:32,sectionBorder:{bottom:1}},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[n("eyebrow",i(13,.3,{case:"upper",color:"accent",padding:8}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(79,40,-.03,1)},{role:"heading"})]},n("intro",a(14,14,1.5),{props:{...s,align:"right",maxWidth:360}})]},{kind:"group",name:"Years",props:{...o,direction:"row",share:"equal",gap:0,line:!0},parts:[{kind:"list",key:"entries",name:"Year",props:{...o,...I},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:w.name,props:{...o,...w},parts:[n("date",i(13,.22,{color:"accent"}),{when:(e,t)=>!P(e,t)}),n("date",i(13,.22,{color:"labels"}),{when:P}),n("title",{textStyle:"heading-3",...p(20,20,-.02,1.1)},{role:"heading"})]},n("blurb",a(13,13,1.55),{props:s})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,align:"right",...u(e,t)}),style:i(13,.3,{case:"upper"})}],site:_,drop:{...h,...m,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},A={name:"Story Timeline",skip:e=>{const t=typeof e.layout=="string"?e.layout:"split";return t==="split"?void 0:`display "${t}": not converted (0 live pages; Spine and Alternating are not offered, a Track story is not stored anywhere)`},boxProps:e=>({...y,direction:"row",share:"twoThree",gap:80,align:"start",...x(e,"Timeline")}),box:[...b,...k("Timeline")],parts:[{kind:"group",name:"Heading",props:{...o,gap:24},parts:[n("eyebrow",i(12,.3,{case:"upper",color:"accent"}),{role:"eyebrow"}),n("title",{textStyle:"heading-2",...p(72,40,-.03,.94)},{role:"heading"}),n("intro",a(14,14,1.6),{props:{...s,maxWidth:360}}),{kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...o,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:667,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:419,sectionHeightUnitPhone:"px",sectionPaddingTop:12,sectionPaddingBottom:12,sectionPaddingLeft:16,sectionPaddingRight:16,sectionPaddingTopPhone:12,sectionPaddingBottomPhone:12,sectionPaddingLeftPhone:16,sectionPaddingRightPhone:16},when:e=>typeof e.imageSrc=="string"&&e.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...o,direction:"row",justify:"between",align:"center",gap:12,share:"content",phoneRow:2},parts:[n("imageCaption",i(11,.24,{case:"upper",color:"text"})),n("imageMeta",i(11,.24,{case:"upper",color:"accent"}),{props:{...l,align:"right"}})]}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:(e,t)=>({...g,...u(e,t)}),style:i(13,.3,{case:"upper"})}]},{kind:"group",name:"Chapters",props:{...o,gap:48,line:!1},parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:24,share:"biggerRight",align:"start"},parts:[n("date",i(13,.24,{color:"accent"})),{kind:"group",name:"Words",props:{...o,gap:14},parts:[n("title",{textStyle:"heading-3",...p(24,20,-.02,1.5)},{role:"heading"}),{kind:"block",type:"Text",props:{...l,_partStyles:{text:a(17,16,1.6)}},box:[["body","text",(e,t)=>d(t)[0]??""]],when:(e,t)=>d(t).length>0},{kind:"block",type:"Text",props:{...s,_partStyles:{text:a(17,16,1.6,{paragraphSpacing:14})}},box:[["body","text",(e,t)=>d(t).slice(1).join(`
2
2
 
3
- `)]],when:(e,t)=>c(t).length>1}]}]}]}],site:u("title"),drop:{...h,...m,layout:"Split is the only display converted (see skip); the Box's own arrangement replaces it"}},L={TimelineTrack:M,Timeline:N};export{L as TIMELINE_SECTION_TO_BOX};
3
+ `)]],when:(e,t)=>d(t).length>1}]}]}]}],drop:{...h,...m,layout:"Split is the only display converted (see skip); the Box's own arrangement replaces it"}},R={TimelineTrack:O,Timeline:A};export{R as TIMELINE_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{hasWords as x,registerSectionToBox as o}from"../../../sections/section-to-box.js";import{BUTTON as m,DIM as d,DROP_COMMON as n,DROP_SIDE_PADDING as p,INNER_BOX as t,SAME_KEYS as i,SECTION_BOX as r,TEXT as s,headingCaseOf as O,innerPad as c,innerPadKeys as y,smallText as a,wrapperPad as l,wrapperPadKeys as h}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as T}from"./section-to-box-rows-cards.js";import{finiteNumber as f}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as B}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as _}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as N}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as E}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as H}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as I}from"./section-to-box-rows-head.js";import{headTree as b}from"./section-head-looks.js";const u={top:72,bottom:72,topPhone:72,bottomPhone:72},v={name:"Editorial Text",boxProps:e=>({...r,direction:"column",gap:28,sectionBorder:{top:1},...l(e,u)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...i,...h(u)],parts:[b("Prose"),{kind:"text",key:"body",props:{...d,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.7,paragraphSpacing:18},was:{size:16}}],drop:{...n,...p,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (JJ's export, 2026-10-24)"}},A={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},w=(e,k)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",variant:{key:"variant",map:{primary:"primary",outline:"ghost"},fallback:"ghost"},style:{letterSpacing:.3},props:{...m,...A,...k}}]}),g=e=>x(e.title),C={name:"Call-to-Action Heading",boxProps:e=>({...r,direction:"row",align:"center",justify:g(e)?"between":"end",gap:60,share:"content",sectionBorder:{bottom:1},...c(e,"TitleWithButtons")}),box:[...i,...y("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:t,parts:[{kind:"text",key:"title",role:"heading",props:{...s,maxWidth:1e3},style:{textStyle:"heading-1",lineHeight:.94,letterSpacing:-.035}}]},{kind:"group",name:"Buttons",props:{...t,gap:14},parts:[w(g,{widthFit:"fill",iconPosition:"end"}),w(e=>!g(e),{})]}],site:O("title"),drop:{...n,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (JJ's export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves"}},S={top:40,bottom:64,topPhone:24,bottomPhone:36},W={name:"Section Header",boxProps:e=>({...r,direction:"column",gap:0,...l(e,S)}),box:[...i,...h(S)],parts:[b("SectionHeader")],drop:{...n,...p,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (JJ's export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},R={name:"Lead Text",boxProps:e=>({...r,direction:"column",gap:40,sectionBorder:{bottom:1},...c(e,"ParagraphsA")}),box:[...i,...y("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...t,direction:"row",justify:"between",gap:60,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:40},parts:[a("eyebrow",{color:"labels",letterSpacing:.24}),{kind:"group",name:"Stats",props:{...t,align:"end"},parts:[{kind:"list",key:"stats",name:"Stat",props:{...t,direction:"row",share:"content",justify:"end",gap:8},parts:[a("value",{color:"text",letterSpacing:.18,lineHeight:1.8}),a("label",{color:"labels",letterSpacing:.18,lineHeight:1.8})]}]}]},{kind:"group",name:"Words",props:{...t,direction:"row",align:"end",gap:60,share:"bigLeft"},parts:[{kind:"text",key:"lead",props:{...s,maxWidth:780},style:{textStyle:"body-1",lineHeight:1.45,letterSpacing:-.005,paragraphSpacing:0},was:{size:22,sizePhone:20}},{kind:"group",name:"Founders",props:{...t,gap:8},parts:[{kind:"group",name:"Note",props:{...t,gap:6},parts:[{kind:"text",key:"foundersHeading",props:s,style:{textStyle:"body-1",weight:500,letterSpacing:-.01,lineHeight:1.7},was:{size:18,sizePhone:16}},{kind:"text",key:"foundersBody",props:d,style:{textStyle:"body-5",lineHeight:1.7},was:{size:14,sizePhone:12}}]},a("attribution",{letterSpacing:.24,lineHeight:1.7})]}]}],drop:{...n}},P={top:24,bottom:24,topPhone:24,bottomPhone:24},L={name:"Banner",boxProps:e=>({...r,direction:"column",gap:0,...l(e,P)}),box:[...i,"contained",...h(P)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...t,gap:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},sectionPaddingTop:64,sectionPaddingBottom:64,sectionPaddingTopPhone:40,sectionPaddingBottomPhone:40,sectionPaddingLeft:40,sectionPaddingRight:40,sectionPaddingLeftPhone:24,sectionPaddingRightPhone:24},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(f(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...t,gap:20},parts:[a("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...s,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none"}},{kind:"text",key:"body",props:{...d,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6},was:{size:16}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:m}]}],drop:{...n,...p}},X={Prose:v,TitleWithButtons:C,SectionHeader:W,ParagraphsA:R,Banner:L};function Q(){o(X),o(B),o(_),o(T),o(N),o(E),o(H),o(I)}export{X as GENERAL_SECTION_TO_BOX,Q as registerGeneralSectionRows};
1
+ import{hasWords as H,registerSectionToBox as n}from"../../../sections/section-to-box.js";import{BUTTON as g,DIM as c,DROP_COMMON as s,DROP_SIDE_PADDING as m,INNER_BOX as o,numberAndUnit as R,NUMBER_TEXT as A,SAME_KEYS as d,SECTION_BOX as p,lineBorder as L,TEXT as l,innerPad as S,innerPadKeys as w,smallText as P,wrapperPad as u,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as W}from"./section-to-box-rows-cards.js";import{normalizeSiteGutter as C,normalizeSiteGutterPhone as D,siteGutterPhoneFollows as X}from"../../../../../format/lib/content/page-width.js";import{finiteNumber as G}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as M}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as F}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as J}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as z}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as U}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as K}from"./section-to-box-rows-head.js";import{fluidToken as j,headTree as k,token as r}from"./section-head-looks.js";const T={top:72,bottom:72,topPhone:72,bottomPhone:72},Y={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...u(e,T)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,...b(T)],parts:[k("Prose"),{kind:"text",key:"body",props:c,style:{textStyle:"body-1",...r("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...m,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (JJ's export, 2026-10-24)"}},x={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},_=(e,t)=>t?.variant==="primary",O=(e,t)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:_,variant:"primary",style:{letterSpacing:.3},props:{...g,...x,...t}},{kind:"button",key:"label",href:"href",when:(i,a)=>!_(i,a),variant:"ghost",style:{letterSpacing:.3},props:(i,a)=>({...g,...x,...t,...L(i,a)})}]}),h=e=>H(e.title),q={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:h(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...S(e,"TitleWithButtons")}),box:[...d,...w("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...o,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:l,style:{textStyle:"heading-1",...j("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035}}]},{kind:"group",name:"Buttons",props:e=>({...o,gap:14,gapPhone:14,widthFitPhone:"fill",...h(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[O(h,{widthFit:"fill",iconPosition:"end"}),O(e=>!h(e),{})]}],drop:{...s,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (JJ's export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves"}};function Q(e){const{siteGutter:t,siteGutterPhone:i}=e.site??{},a=C(t),f=Math.min(20,D(i)??X(t));return{sectionPaddingLeft:a,sectionPaddingRight:a,sectionPaddingLeftPhone:f,sectionPaddingRightPhone:f}}const B={top:40,bottom:64,topPhone:24,bottomPhone:36},V={name:"Section Header",boxProps:(e,t)=>({...p,direction:"column",gap:0,...u(e,B),...Q(t)}),box:[...d,...b(B)],parts:[k("SectionHeader")],drop:{...s,...m,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (JJ's export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},E={...o,direction:"row",share:"bigLeft",gap:30},N={...o,sectionPaddingLeft:30,sectionPaddingLeftPhone:0},v=(e,t,i)=>({kind:"group",name:e,props:t,parts:[i]}),y=e=>R(e.value,e.label),Z={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...S(e,"ParagraphsA")}),box:[...d,...w("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...E,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...o,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[P("eyebrow",{color:"labels",...r("label",12),letterSpacing:.24})]},v("Stats column",o,{kind:"group",name:"Stats",props:{...N,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[{kind:"block",type:"Text",when:(e,t)=>t!==void 0&&y(t)!=="",box:[["value","text",(e,t)=>y(t)],["label","text",(e,t)=>y(t)]],props:{...A,align:"right",alignPhone:"left",_partStyles:{text:{textStyle:"body-5",color:"labels",...r("label",13),case:"upper",letterSpacing:.18,lineHeight:1.8,align:"right",alignPhone:"left"}}}}]}]})]},{kind:"group",name:"Words",props:{...E,gapPhone:28},parts:[{kind:"group",name:"Lead",props:o,parts:[{kind:"group",name:"Measure",props:{...o,maxWidth:780},parts:[{kind:"text",key:"lead",props:l,style:{textStyle:"heading-3",...r("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},v("Note column",{...o,justify:"end",widthFit:"fill"},{kind:"group",name:"Founders",props:{...N,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:l,style:{textStyle:"body-1",fontRole:"heading",...r("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:c,style:{textStyle:"body-5",fontRole:"heading",...r("body",14,12),lineHeight:1.7}}]},P("attribution",{...r("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},I={top:24,bottom:24,topPhone:24,bottomPhone:24},$={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...u(e,I)}),box:[...d,"contained",...b(I)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...o,gap:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},sectionPaddingTop:64,sectionPaddingBottom:64,sectionPaddingTopPhone:40,sectionPaddingBottomPhone:40,sectionPaddingLeft:40,sectionPaddingRight:40,sectionPaddingLeftPhone:24,sectionPaddingRightPhone:24},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(G(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...o,gap:20},parts:[P("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none"}},{kind:"text",key:"body",props:{...c,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6},was:{size:16}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],drop:{...s,...m}},ee={Prose:Y,TitleWithButtons:q,SectionHeader:V,ParagraphsA:Z,Banner:$};function ce(){n(ee),n(M),n(F),n(W),n(J),n(z),n(U),n(K)}export{ee as GENERAL_SECTION_TO_BOX,ce as registerGeneralSectionRows};
@@ -1 +1 @@
1
- import{jsx as N}from"react/jsx-runtime";import{parseBlockWidthFit as z,phoneKey as s}from"efficient-easel/draw";import{blockSizeOf as E,blockSizeValuesOf as R}from"../../content/block-size.js";import{CellWrap as j}from"../../../components/InBoxContext.js";import{boxPhoneRowFits as D,boxShareClasses as P}from"../../../../format/lib/content/box-layout.js";import{resolveContainerDirection as C}from"../../../../format/lib/content/container-direction.js";import{containerBlocksFor as K}from"../../../../format/lib/document/container-blocks.js";import{readPartStyle as A}from"../part-styles.js";import{addShowWhenFacts as L,withRowRules as d}from"../../../../format/lib/document/show-when-attach.js";import{BOX_BLOCK_KEYS as G}from"./cell-width.js";import{findParentNode as X}from"../../../../format/lib/document/passes/document-position.js";const Z=new Set(["Text","Heading"]),v=new Set(["h1","h2","h3","h4","h5","h6"]);function _(t,e){return t==="Heading"?!0:t!=="Text"?!1:typeof e.tag=="string"&&v.has(e.tag)?!0:A(e,"text").textStyle?.startsWith("heading-")===!0}const c={not:{context:"blockOutsideBox",is:!0}},m={all:[c,{not:{context:"boxSharesWidth",is:!0}}]},g={all:[c,{not:{context:"boxSharesWidthPhone",is:!0}}]};function b(t,e,n){return{any:[{field:s(t),is:e},{all:[{field:s(t),set:!1},n??{field:t,is:e}]}]}}const O={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},U=[[["_gBlockSize","minWidth",s("minWidth"),"maxWidth",s("maxWidth")],c],[["widthFit"],m],[[s("widthFit")],g],[["width"],{all:[m,{field:"widthFit",is:"fixed"}]}],[[s("width")],{all:[g,b("widthFit","fixed")]}]],W=[[["_gText","textFit",s("textFit")],c],[["minFont"],{all:[c,O]}],[[s("minFont")],{all:[c,b("textFit","shrink",O)]}]],u=(t,e)=>X(e.appState,t.props?.id),x=t=>!!t&&typeof t.type=="string"&&K(t.type)!==null,k=t=>(t.type==="Flex"||t.type==="HeroGroup")&&C(t.type,t.props?.direction)==="row",B=t=>{const e=z(t);return e!==void 0&&e!=="fit"},M={blockOutsideBox:(t,e)=>!x(u(t,e)),boxSharesWidth:(t,e)=>{const n=u(t,e);return x(n)&&k(n)&&P(n.props?.share)!==""&&!B(t.props?.widthFit)},boxSharesWidthPhone:(t,e)=>{const n=u(t,e);if(!x(n)||!k(n))return!1;const i=n.props?.phoneRow;return(Number(i)===2||Number(i)===3)&&!D(i,n.props?.[s("share")])&&!B(t.props?.[s("widthFit")]??t.props?.widthFit)}},V=t=>/^_[gds][A-Z]/.test(t);function Y(t,e,n){const i=Object.entries(t),r=i.findIndex(([l])=>l===e);if(r===-1)return null;let o=r+1;for(;o<i.length&&!V(i[o][0]);)o++;return Object.fromEntries([...i.slice(0,o),...Object.entries(n),...i.slice(o)])}function T(t,e,n){const i=Object.entries(t);return Object.fromEntries([...i.slice(0,e),...Object.entries(n),...i.slice(e)])}function q(t,e,n){const i=Object.keys(e);if(i.includes("_dSize")){const{_gBlockSize:r,...o}=n;return T(e,i.indexOf("_dSize")+1,o)}return J.has(t)&&i.includes("_gSpacing")?T(e,i.indexOf("_gSpacing"),n):{...e,...n}}const J=new Set(["Text","Heading"]);function Q(t,e){const{_gText:n,...i}=e;return Y(t,"_gText",i)??{...t,...e}}function $(t){const e=new WeakMap;return n=>{if(!n||!("textFit"in n))return n;let i=e.get(n);if(!i){i={...n};for(const r of["textFit",s("textFit")])r in i&&(i[r]=t[r]);e.set(n,i)}return i}}const dt={name:"blockSize",applies:(t,e,n)=>G.includes(t)&&!!n&&typeof n.render=="function",panel(t,e,n){const i=Z.has(e),{size:r,text:o}=n.blockSizeFields(i?{textFit:e==="Heading"?"shrink":"wrap"}:{});let l=q(e,t.fields??{},d(r,U));if(i){const a=d(o,W);if(l=Q(l,a),e==="Text"){const y=d(n.blockSizeFields({textFit:"shrink"}).text,W),H=$(y),p=t.resolveFields,I=(S,f)=>{const h=p?p(S,f):f.fields,w=F=>_(e,S?.props??{})?H(F??f.fields):F;return h instanceof Promise?h.then(w):w(h)};t.resolveFields=I}}t.fields=l,L(t,{...M,textWrapsByDefault:a=>!_(e,a.props??{})})},draw(t){tt(t)}};function tt(t){const e=t.render;t.render=n=>{const i=E(R(n)),r=e(n);return i===null?r:N(j,{className:i.className,...Object.keys(i.style).length?{style:i.style}:{},attrs:i.attrs,children:r})}}export{dt as blockSize,_ as textShrinksByDefault};
1
+ import{jsx as N}from"react/jsx-runtime";import{parseBlockWidthFit as R,phoneKey as o}from"efficient-easel/draw";import{blockSizeOf as z,blockSizeValuesOf as E}from"../../content/block-size.js";import{CellWrap as j}from"../../../components/InBoxContext.js";import{boxPhoneRowFits as D,boxRowColumnsClass as C,boxShareClasses as P}from"../../../../format/lib/content/box-layout.js";import{resolveContainerDirection as K}from"../../../../format/lib/content/container-direction.js";import{containerBlocksFor as A}from"../../../../format/lib/document/container-blocks.js";import{readPartStyle as L}from"../part-styles.js";import{addShowWhenFacts as G,withRowRules as h}from"../../../../format/lib/document/show-when-attach.js";import{BOX_BLOCK_KEYS as X}from"./cell-width.js";import{findParentNode as Z}from"../../../../format/lib/document/passes/document-position.js";const v=new Set(["Text","Heading"]),U=new Set(["h1","h2","h3","h4","h5","h6"]);function m(t,e){return t==="Heading"?!0:t!=="Text"?!1:typeof e.tag=="string"&&U.has(e.tag)?!0:L(e,"text").textStyle?.startsWith("heading-")===!0}const c={not:{context:"blockOutsideBox",is:!0}},_={all:[c,{not:{context:"boxSharesWidth",is:!0}}]},b={all:[c,{not:{context:"boxSharesWidthPhone",is:!0}}]};function g(t,e,n){return{any:[{field:o(t),is:e},{all:[{field:o(t),set:!1},n??{field:t,is:e}]}]}}const O={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},M=[[["_gBlockSize","minWidth",o("minWidth"),"maxWidth",o("maxWidth")],c],[["widthFit"],_],[[o("widthFit")],b],[["width"],{all:[_,{field:"widthFit",is:"fixed"}]}],[[o("width")],{all:[b,g("widthFit","fixed")]}]],W=[[["_gText","textFit",o("textFit")],c],[["minFont"],{all:[c,O]}],[[o("minFont")],{all:[c,g("textFit","shrink",O)]}]],u=(t,e)=>Z(e.appState,t.props?.id),x=t=>!!t&&typeof t.type=="string"&&A(t.type)!==null,k=t=>(t.type==="Flex"||t.type==="HeroGroup")&&K(t.type,t.props?.direction)==="row",B=t=>{const e=R(t);return e!==void 0&&e!=="fit"},V={blockOutsideBox:(t,e)=>!x(u(t,e)),boxSharesWidth:(t,e)=>{const n=u(t,e);return!x(n)||!k(n)?!1:C({...n.props,direction:"row"})!==""?!0:P(n.props?.share)!==""&&!B(t.props?.widthFit)},boxSharesWidthPhone:(t,e)=>{const n=u(t,e);if(!x(n)||!k(n))return!1;const i=n.props?.phoneRow;return(Number(i)===2||Number(i)===3)&&!D(i,n.props?.[o("share")])&&!B(t.props?.[o("widthFit")]??t.props?.widthFit)}},Y=t=>/^_[gds][A-Z]/.test(t);function q(t,e,n){const i=Object.entries(t),r=i.findIndex(([l])=>l===e);if(r===-1)return null;let s=r+1;for(;s<i.length&&!Y(i[s][0]);)s++;return Object.fromEntries([...i.slice(0,s),...Object.entries(n),...i.slice(s)])}function T(t,e,n){const i=Object.entries(t);return Object.fromEntries([...i.slice(0,e),...Object.entries(n),...i.slice(e)])}function J(t,e,n){const i=Object.keys(e);if(i.includes("_dSize")){const{_gBlockSize:r,...s}=n;return T(e,i.indexOf("_dSize")+1,s)}return Q.has(t)&&i.includes("_gSpacing")?T(e,i.indexOf("_gSpacing"),n):{...e,...n}}const Q=new Set(["Text","Heading"]);function $(t,e){const{_gText:n,...i}=e;return q(t,"_gText",i)??{...t,...e}}function tt(t){const e=new WeakMap;return n=>{if(!n||!("textFit"in n))return n;let i=e.get(n);if(!i){i={...n};for(const r of["textFit",o("textFit")])r in i&&(i[r]=t[r]);e.set(n,i)}return i}}const ut={name:"blockSize",applies:(t,e,n)=>X.includes(t)&&!!n&&typeof n.render=="function",panel(t,e,n){const i=v.has(e),{size:r,text:s}=n.blockSizeFields(i?{textFit:e==="Heading"?"shrink":"wrap"}:{});let l=J(e,t.fields??{},h(r,M));if(i){const a=h(s,W);if(l=$(l,a),e==="Text"){const y=h(n.blockSizeFields({textFit:"shrink"}).text,W),H=tt(y),p=t.resolveFields,I=(S,f)=>{const d=p?p(S,f):f.fields,w=F=>m(e,S?.props??{})?H(F??f.fields):F;return d instanceof Promise?d.then(w):w(d)};t.resolveFields=I}}t.fields=l,G(t,{...V,textWrapsByDefault:a=>!m(e,a.props??{})})},draw(t){et(t)}};function et(t){const e=t.render;t.render=n=>{const i=z(E(n)),r=e(n);return i===null?r:N(j,{className:i.className,...Object.keys(i.style).length?{style:i.style}:{},attrs:i.attrs,children:r})}}export{ut as blockSize,m as textShrinksByDefault};
@@ -1 +1 @@
1
- import{jsx as s,Fragment as i,jsxs as t}from"react/jsx-runtime";import{slugify as a}from"efficient-shell/format";import{useInBox as c}from"../../../components/InBoxContext.js";const d="!grow-0 !shrink-0 !basis-0";function f({anchor:n}){const e=a(typeof n=="string"?n:""),r=c();return e?s("span",{id:e,className:r?`sf-section-anchor ${d}`:"sf-section-anchor","aria-hidden":"true"}):null}const x={name:"sectionAnchor",applies:(n,e,r)=>e.isSection(n)&&!!r&&typeof r.render=="function",panel(n,e,r){const o=r.anchorFields;n.fields={...n.fields,...o()}},draw(n){n.defaultProps={...n.defaultProps,anchor:""};const e=n.render;n.render=r=>t(i,{children:[s(f,{anchor:r.anchor}),e(r)]})}};export{d as SECTION_ANCHOR_IN_BOX_CLASS,x as sectionAnchor};
1
+ import{jsx as o,jsxs as t,Fragment as a}from"react/jsx-runtime";import{slugify as i}from"efficient-shell/format";import{useBoxCell as f,useFillsCell as u,useInBox as d}from"../../../components/InBoxContext.js";const h="!grow-0 !shrink-0 !basis-0",x="flex flex-col w-full min-w-0 [&>*]:grow";function c({anchor:n}){const s=i(typeof n=="string"?n:""),e=d();return s?o("span",{id:s,className:e?`sf-section-anchor ${h}`:"sf-section-anchor","aria-hidden":"true"}):null}function A({anchor:n,children:s}){const e=f()?.columnsRow===!0,r=u(),l=i(typeof n=="string"?n:"")!=="";return e&&!r&&l?t("div",{className:x,children:[o(c,{anchor:n}),s]}):t(a,{children:[o(c,{anchor:n}),s]})}const g={name:"sectionAnchor",applies:(n,s,e)=>s.isSection(n)&&!!e&&typeof e.render=="function",panel(n,s,e){const r=e.anchorFields;n.fields={...n.fields,...r()}},draw(n){n.defaultProps={...n.defaultProps,anchor:""};const s=n.render;n.render=e=>o(A,{anchor:e.anchor,children:s(e)})}};export{h as SECTION_ANCHOR_IN_BOX_CLASS,g as sectionAnchor};
@@ -1 +1 @@
1
- import{jsx as _}from"react/jsx-runtime";import{isBackgroundBox as u}from"../../../../format/lib/content/box-background.js";import{SECTION_PAD_KEYS as S,padValuesOf as p,resolveSectionPadding as m,sectionPadAttrs as T}from"../../content/section-padding.js";import{sectionFillPassClass as g}from"../../../../format/lib/content/section-min-height.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"]),A=new Set(["Divider"]),D=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),f=new Set(["ProductGrid"]);function i(t,e,n=!1){const r=t.render;t.render=o=>{if(e?.(o))return r(o);const s=T(p(o,S,n)),a=r(o),d=g(o);return s?_("div",{className:d?`${s.className} ${d}`:s.className,style:s.style,children:a}):a}}const h={name:"sectionPadding",applies:(t,e,n)=>e.isSection(t)&&!D.has(t)&&!!n&&typeof n.render=="function",panel(t,e,n){c.has(e)||f.has(e)||(t.fields={...t.fields,...n.sidesPaddingFields()})},draw(t,e){if(c.has(e)){const n=t.render,r=l[e];t.render=o=>{const s=m(o,r);return n({...o,padTop:s.top,padBottom:s.bottom})};return}if(f.has(e)){i(t);return}P.has(e)||A.has(e)||i(t,e==="Flex"?n=>u(n.bgImage):void 0,!0)}},E=["Heading","Text"],N=["LogoBlock"],B={name:"blockPadding",applies:(t,e,n)=>(E.includes(t)||N.includes(t))&&!!n&&typeof n.render=="function",panel(t,e,n){t.fields={...t.fields,...n.sidesPaddingFields()}},draw(t,e){P.has(e)||i(t,void 0,!0)}};export{A as PADS_ITS_OWN_SPACE,P as PAD_ON_ROOT,c as SECTION_PAD_INNER,l as SECTION_PAD_INNER_DEFAULTS,B as blockPadding,h as sectionPadding};
1
+ import{jsx as _}from"react/jsx-runtime";import{isBackgroundBox as u}from"../../../../format/lib/content/box-background.js";import{SECTION_PAD_KEYS as S,padValuesOf as m,resolveSectionPadding as g,sectionPadAttrs as p}from"../../content/section-padding.js";import{sectionFillPassClass as T}from"../../../../format/lib/content/section-min-height.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"]),I=new Set(["Divider"]),A=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),f=new Set(["ProductGrid"]);function i(e,t,o=!1){const r=e.render;e.render=n=>{if(t?.(n))return r(n);const s=p(m(n,S,o)),a=r(n),d=T(n);return s?_("div",{className:d?`${s.className} ${d}`:s.className,style:s.style,children:a}):a}}const h={name:"sectionPadding",applies:(e,t,o)=>t.isSection(e)&&!A.has(e)&&!!o&&typeof o.render=="function",panel(e,t,o){c.has(t)||f.has(t)||(e.fields={...e.fields,...o.sidesPaddingFields()})},draw(e,t){if(c.has(t)){const o=e.render,r=l[t];e.render=n=>{const s=g(n,r);return o({...n,padTop:s.top,padBottom:s.bottom})};return}if(f.has(t)){i(e);return}P.has(t)||I.has(t)||i(e,t==="Flex"?o=>u(o.bgImage):void 0,!0)}},D=["Heading","Text","ImageBlock"],E=["LogoBlock"],B={name:"blockPadding",applies:(e,t,o)=>(D.includes(e)||E.includes(e))&&!!o&&typeof o.render=="function",panel(e,t,o){e.fields={...e.fields,...o.sidesPaddingFields()}},draw(e,t){P.has(t)||i(e,void 0,!0)}};export{I as PADS_ITS_OWN_SPACE,P as PAD_ON_ROOT,c as SECTION_PAD_INNER,l as SECTION_PAD_INNER_DEFAULTS,B as blockPadding,h as sectionPadding};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import{SlotsStartAfresh as l}from"../../../components/InBoxContext.js";const u=new Set(["Flex","Grid"]),i=t=>Object.entries(t.fields??{}).filter(([,e])=>e?.type==="slot").map(([e])=>e),a=new WeakMap;function d(t){const e=a.get(t);if(e)return e;const r=t,n=s=>f(l,{children:f(r,{...s})});return Object.assign(n,t),Object.defineProperty(n,"blockCount",{get:()=>t.blockCount,configurable:!0}),a.set(t,n),n}const y={name:"slotsStartAfresh",applies:(t,e,r)=>!u.has(t)&&typeof r?.render=="function"&&i(r).length>0,draw(t){const e=i(t),r=t.render;t.render=n=>{const s={...n};for(const o of e){const c=n[o];typeof c=="function"&&(s[o]=d(c))}return r(s)}}};export{y as slotsStartAfresh};
1
+ import{jsx as s}from"react/jsx-runtime";import{SlotsStartAfresh as l}from"../../../components/InBoxContext.js";import{NotASectionEdge as d}from"../../../components/SiteGutterFrame.js";const u=new Set(["Flex","Grid"]),i=t=>Object.entries(t.fields??{}).filter(([,e])=>e?.type==="slot").map(([e])=>e),a=new WeakMap;function h(t){const e=a.get(t);if(e)return e;const r=t,n=o=>s(d,{children:s(l,{children:s(r,{...o})})});return Object.assign(n,t),Object.defineProperty(n,"blockCount",{get:()=>t.blockCount,configurable:!0}),a.set(t,n),n}const b={name:"slotsStartAfresh",applies:(t,e,r)=>!u.has(t)&&typeof r?.render=="function"&&i(r).length>0,draw(t){const e=i(t),r=t.render;t.render=n=>{const o={...n};for(const c of e){const f=n[c];typeof f=="function"&&(o[c]=h(f))}return r(o)}}};export{b as slotsStartAfresh};
@@ -33,6 +33,8 @@ export type SiteFacts = {
33
33
  deleted?: boolean;
34
34
  themePresets?: readonly ThemeColors[] | null;
35
35
  selectedPreset?: number | null;
36
+ siteGutter?: number | null;
37
+ siteGutterPhone?: number | null;
36
38
  };
37
39
  export type ConvertContext = {
38
40
  site?: SiteFacts;
@@ -83,7 +85,8 @@ export type ListPart = {
83
85
  item?: (item: Props, index: number, node: Props) => ListItemLook;
84
86
  perRow?: (node: Props) => number;
85
87
  rowName?: string;
86
- rowProps?: Props;
88
+ rowProps?: OwnProps;
89
+ rowFiller?: Props;
87
90
  groups?: ListGroups;
88
91
  };
89
92
  export type ListGroups = {
@@ -109,6 +112,7 @@ type PartRowKind = {
109
112
  key: string;
110
113
  role?: TextRole;
111
114
  style?: Props;
115
+ styleFrom?: (node: Props, ctx: ConvertContext) => Props;
112
116
  props?: Props;
113
117
  was?: {
114
118
  size: number;
@@ -1 +1 @@
1
- import{readHidable as U}from"efficient-easel/draw";import{BOX_TYPE as Z,CONTAINER_BLOCKS_SLOT as ee}from"../../../format/lib/document/container-blocks.js";import{headingTextSeed as te,labelTextSeed as ne}from"../../../format/lib/document/text-seeds.js";import{SPLITTABLE_SECTIONS as oe}from"../../../format/lib/sections/section-head-placement.js";import{finiteNumber as I}from"../../../format/lib/finite-number.js";import{bucketByGroup as se}from"../../../format/lib/locations-grid.js";import{normalizeTheme as V}from"../../../format/lib/theme.js";const j=Z,E=ee;function be(t){if(t.theme)return V(t.theme);const n=t.site?.themePresets;return n?V({selected:t.site?.selectedPreset??0,themes:[...n]}):void 0}function re(t,n){return n===0?`${t}~box`:`${t}~box-${n+1}`}const R={Flex:"the Box itself",Hero:"its slides hold Boxes of real blocks (Hero › Slide › Box)",Divider:"one block with no text, picture or button",CustomHTML:"the HTML box is the whole section; it has no parts"};function xe(t){for(const[n,i]of Object.entries(t)){if(n in R&&R[n]!==i)throw new Error(`lib/sections/section-to-box: "${n}" is already Box-native`);R[n]=i}}function ge(t){return R[t]}const Y=new Set(["id"]),_={},C=[];function $e(t){for(const[n,i]of Object.entries(t)){if(n in _&&_[n]!==i)throw new Error(`lib/sections/section-to-box: "${n}" already has a row`);_[n]=i}}function we(t){return _[t]}function Oe(){return Object.keys(_)}function Se(t){return t in _&&C.includes(t)}function Be(t){const n=oe[t];if(!n)throw new Error(`lib/sections/section-to-box: "${t}" has no head row in SPLITTABLE_SECTIONS`);const i=[{kind:"text",key:n.num,role:"eyebrow"},{kind:"text",key:n.title,role:"heading"}];return n.description&&i.push({kind:"text",key:n.description,role:"body"}),n.headRows.includes("linkText")&&n.headRows.includes("linkHref")&&i.push({kind:"button",key:"linkText",href:"linkHref"}),i}const H=t=>U(t),Te=t=>H(t).text.trim()!=="";function ie(t){if(t.includes("=="))return t;const n=t.indexOf("/"),i=n===-1?t:t.slice(0,n),a=i.trim();if(!a)return t;const u=i.indexOf(a);return`${i.slice(0,u)}==${a}==${i.slice(u+a.length)}${n===-1?"":t.slice(n)}`}const ae=t=>t==="heading"?te():t==="eyebrow"?ne():{};function ce(t,n,i,a){const f={...t._partStyles?.text??{},...n??{},...i??{}};return(a==="center"||a==="right")&&f.align===void 0&&(f.align=a),Object.keys(f).length?{_partStyles:{text:f}}:{}}function fe(t,n){if(t===void 0)return{};if(typeof t=="string")return{variant:t};const i=n[t.key];return{variant:typeof i=="string"&&Object.hasOwn(t.map,i)?t.map[i]:t.fallback}}function D(t,n,i,a,u={}){const f={...n};for(const h of t){const[m,S,P]=typeof h=="string"?[h,h,void 0]:h;if(i[m]===void 0)continue;const B=P?P(i[m],i,u):i[m];B===void 0?delete f[S]:f[S]=B,a(m,S,B===void 0)}return f}function de(t){const n=new Set([...Y,"headPlacement","_partStyles",...Object.keys(t.drop??{}),...Object.keys(t.reads??{})]),i=u=>{for(const f of u??[])n.add(typeof f=="string"?f:f[0])},a=u=>{for(const f of u)switch(f.kind){case"text":case"image":n.add(f.key),f.kind==="image"&&f.alt&&n.add(f.alt);break;case"button":n.add(f.key),n.add(f.href),typeof f.variant=="object"&&n.add(f.variant.key);break;case"list":n.add(f.key);break;case"group":case"block":i(f.box),a(f.parts??[]);break;case"core":f.keep!=="rest"&&f.keep.forEach(h=>n.add(h)),Object.keys(f.rename??{}).forEach(h=>n.add(h));for(const h of Object.values(f.slots??{}))for(const m of h)"kind"in m&&n.add(m.key);break}};for(const u of[t,...t.also??[]])i(u.box),a(u.parts);return n}function F(t,n,i={}){const a=t.props,u=n.skip?.(a);if(u!==void 0)return{node:t,nodes:[t],carried:[],dropped:[],siteWrites:[],restyled:[],skipped:u};const f=String(a.id??t.type),h=[],m=[],S=[],P=new Set,B=(o,r)=>{h.push({key:o,home:r}),P.add(o)},X=a._partStyles??{},L=de(n);let q=0;const $=(o,r)=>({type:o,props:{...r,id:`${f}~${o}-${++q}`}}),K=(o,r,k,l,b,d,w)=>{if(b){for(const c of o??[]){const s=typeof c=="string"?c:c[0];k[s]!==void 0&&w(s,`nothing — the ${l} has no parts, so it is not drawn`)}return}const e=typeof r=="function"?r(a,i):r??{};return D(o??[],e,k,(c,s,x)=>w(c,x?`nothing — the old value draws nothing (${l}: no ${s})`:`${d}${l}: ${s}`),i)},M=o=>o.map(r=>{const k={...r.props??{}};for(const[l,b]of Object.entries(r.slots??{}))k[l]=M(b);return $(r.type,k)}),W=(o,r,k)=>{const l=Array.isArray(r[o.key])?r[o.key]:[],b=typeof o.props=="function"?o.props(a,i):o.props??{},d=l.map((s,x)=>{const p=s??{},y=o.item?.(p,x,a)??{},g=v(y.reverse?[...o.parts].reverse():o.parts,p,!1,`item ${x+1}: `);return o.flat?y.props?g.map(T=>({...T,props:{...T.props,...y.props,id:T.props.id}})):g:[$(j,{name:`${o.name} ${x+1}`,...b,...y.props??{},[E]:g})]});if(o.groups){const s=o.groups;return k(o.key,l.length?`one Box per item (${l.length}), in a Box per group`:"nothing — the list is empty"),se(l.map(x=>x??{}),s.of,s.of).map((x,p)=>{const y=x.items.map(O=>O.item),g=s.parts?v(s.parts,s.head?.(y,a)??{},!1,`group ${p+1}: `):[],T=x.items.map(O=>d[O.index]),A=s.perRow?.(y.length,a),N=Number.isInteger(A)&&A>=1?A:1,z=[];if(s.perRow&&N<T.length)for(let O=0;O*N<T.length;O++)z.push(T.slice(O*N,(O+1)*N).flat());return $(j,{name:`${s.name} ${p+1}`,...s.props??{},[E]:[...g,$(j,{name:`${s.itemsName} ${p+1}`,...s.itemsProps?.(y.length,a)??{},[E]:z.length?z.map((O,Q)=>$(j,{name:`${s.rowName??`${s.itemsName} row`} ${Q+1}`,...s.rowProps??{},[E]:O})):T.flat()})]})})}const w=o.perRow?.(a),e=o.perRow?Number.isInteger(w)&&w>=1?w:1:0;if(k(o.key,(l.length?o.flat?`each item's parts (${l.length} items), in order`:`one Box per item (${l.length}), its parts inside`:"nothing — the list is empty")+(e&&l.length?`, in rows of ${e}`:"")),!e)return d.flat();const c=[];for(let s=0;s*e<d.length;s++)c.push($(j,{name:`${o.rowName??`${o.name} row`} ${s+1}`,...o.rowProps??{},[E]:d.slice(s*e,(s+1)*e).flat()}));return c},v=(o,r,k,l)=>{const b=[],d=(e,c)=>k?B(e,c):void 0,w=e=>k?X[e]:void 0;for(const e of o)if(!(e.when&&!e.when(a,k?void 0:r)))switch(e.kind){case"text":{const c=H(r[e.key]);if(!c.text.trim()){d(e.key,"nothing — empty words draw nothing, so no block");break}const s=ae(e.role??"body"),{_partStyles:x,...p}=s,y=ce(s,e.style,w(e.key),e.props?.align);if(e.was&&k){const g=y._partStyles?.text??{};S.push({key:e.key,was:e.was,...typeof g.textStyle=="string"?{textStyle:g.textStyle}:{},...I(g.size)!==void 0?{size:I(g.size)}:{},...I(g.sizePhone)!==void 0?{sizePhone:I(g.sizePhone)}:{}})}b.push($("Text",{text:e.mark==="accentLead"?ie(c.text):c.text,...p,...e.props??{},...y,...c.hidden?{_hidden:!0}:{}})),d(e.key,`${l}Text block: its words${c.hidden?", hidden":""}`);break}case"button":{const c=H(r[e.key]);if(!c.text.trim()){d(e.key,"nothing — no words, no button"),d(e.href,"nothing — no button to link"),typeof e.variant=="object"&&d(e.variant.key,"nothing — no button to style");break}const s=typeof r[e.href]=="string"&&r[e.href]?r[e.href]:"#",x={...e.style??{},...w(e.key)??{}};b.push($("ButtonBlock",{label:c.text,href:s,...typeof e.props=="function"?e.props(r,i):e.props??{},...fe(e.variant,r),...Object.keys(x).length?{_partStyles:{label:x}}:{},...c.hidden?{_hidden:!0}:{}})),d(e.key,`${l}Button block: its words`),d(e.href,`${l}Button block: its link`),typeof e.variant=="object"&&d(e.variant.key,`${l}Button block: its Style`);break}case"image":{const c=r[e.key];if(typeof c!="string"||!c){d(e.key,"nothing — no picture, no block"),e.alt&&d(e.alt,"nothing — no picture to describe");break}const s=e.alt&&typeof r[e.alt]=="string"?r[e.alt]:"";b.push($("ImageBlock",{src:c,alt:s,...e.props??{}})),d(e.key,`${l}Image block: its picture`),e.alt&&d(e.alt,`${l}Image block: its alt text`);break}case"list":{b.push(...W(e,r,d));break}case"group":{const c=v(e.parts,r,k,l),s=K(e.box,e.props,r,`${e.name} Box`,!c.length&&!e.keepEmpty,l,d);s&&b.push($(j,{name:e.name,...s,[E]:c}));break}case"block":{const c=e.parts?v(e.parts,r,k,l):[],s=K(e.box,e.props,r,`${e.type} block`,!!e.parts&&!c.length&&!e.keepEmpty,l,d);s&&b.push($(e.type,{...s,...e.slot?{[e.slot]:c}:{}}));break}case"core":{const c=e.as??t.type,s={headPlacement:"own-box",...e.props??{}},x=e.keep==="rest"?Object.keys(r).filter(p=>!L.has(p)&&!(p in s)):e.keep;for(const p of x)r[p]!==void 0&&(s[p]=r[p],d(p,`the ${c} block inside the Box`));if(e.keep==="rest"){for(const y of Object.keys(e.props??{}))r[y]!==void 0&&!L.has(y)&&d(y,`nothing — the ${c} block inside the Box has the row's own value`);r.headPlacement!==void 0&&d("headPlacement",`the ${c} block inside the Box: own-box`);const p=Object.fromEntries(Object.entries(X).filter(([y])=>!L.has(y)));Object.keys(p).length&&(s._partStyles=p)}for(const[p,y]of Object.entries(e.rename??{}))r[p]!==void 0&&(s[y]=r[p],d(p,`the ${c} block inside the Box: ${y}`));for(const[p,y]of Object.entries(e.slots??{}))s[p]=y.flatMap(g=>"kind"in g?W(g,r,d):M([g]));b.push($(c,s));break}}return b},J=(o,r)=>{const k=r===0?"Box":`${o.name} Box`,l=v(o.parts,a,!0,r===0?"":`${k}: `),b=typeof o.boxProps=="function"?o.boxProps(a,i):o.boxProps??{},d=D(o.box??[],b,a,(w,e,c)=>B(w,c?`nothing — the old value draws nothing (${k}: no ${e})`:`${k}: ${e}`),i);return{type:j,props:{name:o.name,...d,[E]:l,id:re(f,r)}}},G=[n,...n.also??[]].map(J);a._partStyles!==void 0&&B("_partStyles","each old part's style moved to its new part");for(const[o,r]of Object.entries(n.reads??{}))a[o]!==void 0&&B(o,r);for(const[o,r]of Object.entries(n.drop??{}))o in a&&(m.push({key:o,why:r}),P.add(o));for(const o of Object.keys(a))Y.has(o)||P.has(o)||m.push({key:o,why:"not in the row — not carried"});return{node:G[0],nodes:G,carried:h,dropped:m,siteWrites:[...n.site?.(t,i)??[]],restyled:S}}function _e(t,n=C,i={}){const a=t.content;if(!Array.isArray(a))return t;let u=!1;const f=a.flatMap(h=>{const m=h&&typeof h.type=="string"&&n.includes(h.type)?_[h.type]:void 0;if(!m)return[h];const S=F(h,m,i);return S.skipped!==void 0?[h]:(u=!0,S.nodes)});return u?{...t,content:f}:t}function je(t,n=C,i={}){if(!Array.isArray(t))return[];const a=[];return t.forEach((u,f)=>{const h=u&&typeof u.type=="string"&&n.includes(u.type)?_[u.type]:void 0;if(!h)return;const m=F(u,h,i);m.skipped===void 0&&a.push({index:f,node:m.node,nodes:m.nodes})}),a}export{E as SECTION_BOX_SLOT,j as SECTION_BOX_TYPE,C as SECTION_TO_BOX_ON,ge as boxNativeReason,F as convertSection,_e as convertSectionsInPage,be as convertTheme,Se as convertsToBox,Te as hasWords,Be as headParts,xe as registerBoxNativeSections,$e as registerSectionToBox,re as sectionBoxIdOf,je as sectionToBoxEdits,we as sectionToBoxRow,Oe 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}from"../../../format/lib/sections/section-head-placement.js";import{finiteNumber as R}from"../../../format/lib/finite-number.js";import{bucketByGroup as re}from"../../../format/lib/locations-grid.js";import{normalizeTheme as V}from"../../../format/lib/theme.js";const _=ee,P=te;function ge(t){if(t.theme)return V(t.theme);const o=t.site?.themePresets;return o?V({selected:t.site?.selectedPreset??0,themes:[...o]}):void 0}function ie(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)",Divider:"one block with no text, picture or button",CustomHTML:"the HTML box is the whole section; it has no parts"};function xe(t){for(const[o,r]of Object.entries(t)){if(o in A&&A[o]!==r)throw new Error(`lib/sections/section-to-box: "${o}" is already Box-native`);A[o]=r}}function we(t){return A[t]}const Y=new Set(["id"]),j={},H=[];function $e(t){for(const[o,r]of Object.entries(t)){if(o in j&&j[o]!==r)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);j[o]=r}}function Oe(t){return j[t]}function Se(){return Object.keys(j)}function Be(t){return t in j&&H.includes(t)}function Te(t){const o=se[t];if(!o)throw new Error(`lib/sections/section-to-box: "${t}" has no head row in SPLITTABLE_SECTIONS`);const r=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&r.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&r.push({kind:"button",key:"linkText",href:"linkHref"}),r}const F=t=>Z(t),_e=t=>F(t).text.trim()!=="";function ae(t){if(t.includes("=="))return t;const o=t.indexOf("/"),r=o===-1?t:t.slice(0,o),i=r.trim();if(!i)return t;const h=r.indexOf(i);return`${r.slice(0,h)}==${i}==${r.slice(h+i.length)}${o===-1?"":t.slice(o)}`}const ce=t=>t==="heading"?oe():t==="eyebrow"?ne():{};function fe(t,o,r,i){const c={...t._partStyles?.text??{},...o??{},...r??{}};return(i==="center"||i==="right")&&c.align===void 0&&(c.align=i),Object.keys(c).length?{_partStyles:{text:c}}:{}}function le(t,o){if(t===void 0)return{};if(typeof t=="string")return{variant:t};const r=o[t.key];return{variant:typeof r=="string"&&Object.hasOwn(t.map,r)?t.map[r]:t.fallback}}function D(t,o,r,i,h={}){const c={...o};for(const y of t){const[g,S,v]=typeof y=="string"?[y,y,void 0]:y;if(r[g]===void 0)continue;const B=v?v(r[g],r,h):r[g];B===void 0?delete c[S]:c[S]=B,i(g,S,B===void 0)}return c}function de(t){const o=new Set([...Y,"headPlacement","_partStyles",...Object.keys(t.drop??{}),...Object.keys(t.reads??{})]),r=h=>{for(const c of h??[])o.add(typeof c=="string"?c:c[0])},i=h=>{for(const c of h)switch(c.kind){case"text":case"image":o.add(c.key),c.kind==="image"&&c.alt&&o.add(c.alt);break;case"button":o.add(c.key),o.add(c.href),typeof c.variant=="object"&&o.add(c.variant.key);break;case"list":o.add(c.key);break;case"group":case"block":r(c.box),i(c.parts??[]);break;case"core":c.keep!=="rest"&&c.keep.forEach(y=>o.add(y)),Object.keys(c.rename??{}).forEach(y=>o.add(y));for(const y of Object.values(c.slots??{}))for(const g of y)"kind"in g&&o.add(g.key);break}};for(const h of[t,...t.also??[]])r(h.box),i(h.parts);return o}function q(t,o,r={}){const i=t.props,h=o.skip?.(i);if(h!==void 0)return{node:t,nodes:[t],carried:[],dropped:[],siteWrites:[],restyled:[],skipped:h};const c=String(i.id??t.type),y=[],g=[],S=[],v=new Set,B=(n,s)=>{y.push({key:n,home:s}),v.add(n)},X=i._partStyles??{},L=de(o);let J=0;const w=(n,s)=>({type:n,props:{...s,id:`${c}~${n}-${++J}`}}),K=(n,s,b,u,x,l,$)=>{if(x){for(const a of n??[]){const p=typeof a=="string"?a:a[0];b[p]!==void 0&&$(p,`nothing — the ${u} has no parts, so it is not drawn`)}return}const e=typeof s=="function"?s(i,r):s??{};return D(n??[],e,b,(a,p,f)=>$(a,f?`nothing — the old value draws nothing (${u}: no ${p})`:`${l}${u}: ${p}`),r)},M=n=>n.map(s=>{const b={...s.props??{}};for(const[u,x]of Object.entries(s.slots??{}))b[u]=M(x);return w(s.type,b)}),W=(n,s,b)=>{const u=Array.isArray(s[n.key])?s[n.key]:[],x=typeof n.props=="function"?n.props(i,r):n.props??{},l=u.map((f,d)=>{const k=f??{},m=n.item?.(k,d,i)??{},E=N(m.reverse?[...n.parts].reverse():n.parts,k,!1,`item ${d+1}: `);return n.flat?m.props?E.map(T=>({...T,props:{...T.props,...m.props,id:T.props.id}})):E:[w(_,{name:`${n.name} ${d+1}`,...x,...m.props??{},[P]:E})]});if(n.groups){const f=n.groups;return b(n.key,u.length?`one Box per item (${u.length}), in a Box per group`:"nothing — the list is empty"),re(u.map(d=>d??{}),f.of,f.of).map((d,k)=>{const m=d.items.map(O=>O.item),E=f.parts?N(f.parts,f.head?.(m,i)??{},!1,`group ${k+1}: `):[],T=d.items.map(O=>l[O.index]),z=f.perRow?.(m.length,i),I=Number.isInteger(z)&&z>=1?z:1,C=[];if(f.perRow&&I<T.length)for(let O=0;O*I<T.length;O++)C.push(T.slice(O*I,(O+1)*I).flat());return w(_,{name:`${f.name} ${k+1}`,...f.props??{},[P]:[...E,w(_,{name:`${f.itemsName} ${k+1}`,...f.itemsProps?.(m.length,i)??{},[P]:C.length?C.map((O,U)=>w(_,{name:`${f.rowName??`${f.itemsName} row`} ${U+1}`,...f.rowProps??{},[P]:O})):T.flat()})]})})}const $=n.perRow?.(i),e=n.perRow?Number.isInteger($)&&$>=1?$:1:0;if(b(n.key,(u.length?n.flat?`each item's parts (${u.length} items), in order`:`one Box per item (${u.length}), its parts inside`:"nothing — the list is empty")+(e&&u.length?`, in rows of ${e}`:"")),!e)return l.flat();const a=typeof n.rowProps=="function"?n.rowProps(i,r):n.rowProps??{},p=[];for(let f=0;f*e<l.length;f++){const d=l.slice(f*e,(f+1)*e).flat(),k=n.rowFiller?e-l.slice(f*e,(f+1)*e).length:0;p.push(w(_,{name:`${n.rowName??`${n.name} row`} ${f+1}`,...a,[P]:[...d,...Array.from({length:k},(m,E)=>w(_,{name:`Empty ${E+1}`,...n.rowFiller,[P]:[]}))]}))}return p},N=(n,s,b,u)=>{const x=[],l=(e,a)=>b?B(e,a):void 0,$=e=>b?X[e]:void 0;for(const e of n)if(!(e.when&&!e.when(i,b?void 0:s)))switch(e.kind){case"text":{const a=F(s[e.key]);if(!a.text.trim()){l(e.key,"nothing — empty words draw nothing, so no block");break}const p=ce(e.role??"body"),{_partStyles:f,...d}=p,k=fe(p,e.styleFrom?{...e.style,...e.styleFrom(i,r)}:e.style,$(e.key),e.props?.align);if(e.was&&b){const m=k._partStyles?.text??{};S.push({key:e.key,was:e.was,...typeof m.textStyle=="string"?{textStyle:m.textStyle}:{},...R(m.size)!==void 0?{size:R(m.size)}:{},...R(m.sizePhone)!==void 0?{sizePhone:R(m.sizePhone)}:{}})}x.push(w("Text",{text:e.mark==="accentLead"?ae(a.text):a.text,...d,...e.props??{},...k,...a.hidden?{_hidden:!0}:{}})),l(e.key,`${u}Text block: its words${a.hidden?", hidden":""}`);break}case"button":{const a=F(s[e.key]);if(!a.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 p=typeof s[e.href]=="string"&&s[e.href]?s[e.href]:"#",f={...e.style??{},...$(e.key)??{}};x.push(w("ButtonBlock",{label:a.text,href:p,...typeof e.props=="function"?e.props(s,r):e.props??{},...le(e.variant,s),...Object.keys(f).length?{_partStyles:{label:f}}:{},...a.hidden?{_hidden:!0}:{}})),l(e.key,`${u}Button block: its words`),l(e.href,`${u}Button block: its link`),typeof e.variant=="object"&&l(e.variant.key,`${u}Button block: its Style`);break}case"image":{const a=s[e.key];if(typeof a!="string"||!a){l(e.key,"nothing — no picture, no block"),e.alt&&l(e.alt,"nothing — no picture to describe");break}const p=e.alt&&typeof s[e.alt]=="string"?s[e.alt]:"";x.push(w("ImageBlock",{src:a,alt:p,...e.props??{}})),l(e.key,`${u}Image block: its picture`),e.alt&&l(e.alt,`${u}Image block: its alt text`);break}case"list":{x.push(...W(e,s,l));break}case"group":{const a=N(e.parts,s,b,u),p=K(e.box,e.props,s,`${e.name} Box`,!a.length&&!e.keepEmpty,u,l);p&&x.push(w(_,{name:e.name,...p,[P]:a}));break}case"block":{const a=e.parts?N(e.parts,s,b,u):[],p=K(e.box,e.props,s,`${e.type} block`,!!e.parts&&!a.length&&!e.keepEmpty,u,l);p&&x.push(w(e.type,{...p,...e.slot?{[e.slot]:a}:{}}));break}case"core":{const a=e.as??t.type,p={headPlacement:"own-box",...e.props??{}},f=e.keep==="rest"?Object.keys(s).filter(d=>!L.has(d)&&!(d in p)):e.keep;for(const d of f)s[d]!==void 0&&(p[d]=s[d],l(d,`the ${a} block inside the Box`));if(e.keep==="rest"){for(const k of Object.keys(e.props??{}))s[k]!==void 0&&!L.has(k)&&l(k,`nothing — the ${a} block inside the Box has the row's own value`);s.headPlacement!==void 0&&l("headPlacement",`the ${a} block inside the Box: own-box`);const d=Object.fromEntries(Object.entries(X).filter(([k])=>!L.has(k)));Object.keys(d).length&&(p._partStyles=d)}for(const[d,k]of Object.entries(e.rename??{}))s[d]!==void 0&&(p[k]=s[d],l(d,`the ${a} block inside the Box: ${k}`));for(const[d,k]of Object.entries(e.slots??{}))p[d]=k.flatMap(m=>"kind"in m?W(m,s,l):M([m]));x.push(w(a,p));break}}return x},Q=(n,s)=>{const b=s===0?"Box":`${n.name} Box`,u=N(n.parts,i,!0,s===0?"":`${b}: `),x=typeof n.boxProps=="function"?n.boxProps(i,r):n.boxProps??{},l=D(n.box??[],x,i,($,e,a)=>B($,a?`nothing — the old value draws nothing (${b}: no ${e})`:`${b}: ${e}`),r);return{type:_,props:{name:n.name,...l,[P]:u,id:ie(c,s)}}},G=[o,...o.also??[]].map(Q);i._partStyles!==void 0&&B("_partStyles","each old part's style moved to its new part");for(const[n,s]of Object.entries(o.reads??{}))i[n]!==void 0&&B(n,s);for(const[n,s]of Object.entries(o.drop??{}))n in i&&(g.push({key:n,why:s}),v.add(n));for(const n of Object.keys(i))Y.has(n)||v.has(n)||g.push({key:n,why:"not in the row — not carried"});return{node:G[0],nodes:G,carried:y,dropped:g,siteWrites:[...o.site?.(t,r)??[]],restyled:S}}function Pe(t,o=H,r={}){const i=t.content;if(!Array.isArray(i))return t;let h=!1;const c=i.flatMap(y=>{const g=y&&typeof y.type=="string"&&o.includes(y.type)?j[y.type]:void 0;if(!g)return[y];const S=q(y,g,r);return S.skipped!==void 0?[y]:(h=!0,S.nodes)});return h?{...t,content:c}:t}function je(t,o=H,r={}){if(!Array.isArray(t))return[];const i=[];return t.forEach((h,c)=>{const y=h&&typeof h.type=="string"&&o.includes(h.type)?j[h.type]:void 0;if(!y)return;const g=q(h,y,r);g.skipped===void 0&&i.push({index:c,node:g.node,nodes:g.nodes})}),i}export{P as SECTION_BOX_SLOT,_ as SECTION_BOX_TYPE,H as SECTION_TO_BOX_ON,we as boxNativeReason,q as convertSection,Pe as convertSectionsInPage,ge as convertTheme,Be as convertsToBox,_e as hasWords,Te as headParts,xe as registerBoxNativeSections,$e as registerSectionToBox,ie as sectionBoxIdOf,je as sectionToBoxEdits,Oe as sectionToBoxRow,Se as sectionToBoxTypes};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "47.1.0",
3
+ "version": "47.2.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",
@@ -72,7 +72,7 @@
72
72
  "@types/node": "^20",
73
73
  "@types/react": "^19",
74
74
  "@types/react-dom": "^19",
75
- "efficient-easel": "^26.7.0",
75
+ "efficient-easel": "^26.12.0",
76
76
  "efficient-shell": "^11.8.0",
77
77
  "esbuild": "^0.28.0",
78
78
  "happy-dom": "^20.14.5",