efficient-web-builder 65.0.0 → 66.0.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.
- package/CHANGELOG.md +66 -0
- package/dist/editor/components/AnchorField.js +1 -1
- package/dist/editor/components/CardShadowField.js +1 -1
- package/dist/editor/components/PagesPanel.js +1 -1
- package/dist/editor/components/SectionEditor.js +1 -1
- package/dist/editor/components/WebsitePreviewButton.js +1 -1
- package/dist/editor/components/storefront-editor.css +16 -24
- package/dist/editor/components/usePreviewHref.js +1 -1
- package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +0 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/box-fields.d.ts +2 -1
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +11 -10
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/field-groups.d.ts +0 -3
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
- package/dist/editor/lib/sections/section-dry-run.js +2 -2
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +3 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +1 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-link.d.ts +11 -0
- package/dist/format/lib/content/box-link.js +8 -8
- package/dist/format/lib/content/box-phone-place.d.ts +0 -2
- package/dist/format/lib/content/box-phone-place.js +1 -1
- package/dist/format/lib/content/box-side-space.js +1 -1
- package/dist/format/lib/content/card-image-shape.d.ts +5 -1
- package/dist/format/lib/content/card-image-shape.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +1 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/contact.d.ts +0 -1
- package/dist/format/lib/content/contact.js +2 -2
- package/dist/format/lib/content/css-length.d.ts +1 -0
- package/dist/format/lib/content/css-length.js +1 -0
- package/dist/format/lib/content/page-width.d.ts +17 -1
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
- package/dist/format/lib/document/media-drop.js +1 -1
- package/dist/format/lib/document/one-h1.d.ts +2 -0
- package/dist/format/lib/document/one-h1.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.js +1 -1
- package/dist/format/lib/document/section-catalog.js +10 -2
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/fit-words.js +4 -1
- package/dist/format/lib/links/page-link-rules.d.ts +0 -1
- package/dist/format/lib/links/page-link-rules.js +1 -1
- package/dist/format/lib/markup.d.ts +1 -0
- package/dist/format/lib/markup.js +2 -2
- package/dist/format/lib/sections/section-presets.js +1 -1
- package/dist/format/lib/sections/timeline-year-shape.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +1 -1
- package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
- package/dist/format/lib/source-rules/one-length-control.js +16 -0
- package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
- package/dist/format/lib/theme.d.ts +0 -1
- package/dist/format/lib/theme.js +3 -3
- package/dist/format/lib/web-runtime.d.ts +2 -0
- package/dist/format/lib/web-runtime.js +1 -1
- package/dist/render/components/BlockFrame.d.ts +3 -3
- package/dist/render/components/BlockFrame.js +1 -1
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/Btn.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +7 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/CategoryBar.js +1 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/DealerFinder.d.ts +4 -1
- package/dist/render/components/DealerFinder.js +1 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocTabs.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.d.ts +5 -3
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Heading.d.ts +0 -1
- package/dist/render/components/Heading.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/LocationMap.js +1 -1
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +1 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +2 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/SideListLayout.d.ts +4 -1
- package/dist/render/components/SideListLayout.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineRail.d.ts +11 -3
- package/dist/render/components/TimelineRail.js +1 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/components/goldPhrases.js +3 -3
- package/dist/render/lib/content/block-size.d.ts +5 -1
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +1 -1
- package/dist/render/lib/content/box-stack-line.js +1 -1
- package/dist/render/lib/content/button-look.d.ts +2 -0
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +5 -2
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/dealer-source.d.ts +6 -2
- package/dist/render/lib/dealer-source.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/card-press-titles.d.ts +10 -0
- package/dist/render/lib/document/card-press-titles.js +1 -0
- package/dist/render/lib/document/passes/section-height.js +1 -1
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/published-passes.js +1 -1
- package/dist/render/lib/document/slot-specs.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +0 -15
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/dist/render/lib/site-runtime.d.ts +4 -1
- package/dist/render/lib/site-runtime.js +1 -1
- package/package.json +5 -5
- package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
- package/dist/editor/components/TemplateFieldRow.js +0 -1
- package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
- package/dist/editor/lib/document/panel-heading-scope.js +0 -1
- package/dist/editor/lib/document/template-field.d.ts +0 -13
- package/dist/editor/lib/document/template-field.js +0 -1
- package/dist/format/lib/canvas-accent.d.ts +0 -1
- package/dist/format/lib/canvas-accent.js +0 -1
- package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
- package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as E,readHidable as k}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as u}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as be}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ue}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as ye,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as Pe,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as _e,cardKeyOf as H,cardListProps as Le,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Oe,bandProps as Ee,onBandPreset as ke,bandWrites as xe,DIM as T,DROP_COMMON as y,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Te,fillNoBoxHolds as Re,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as Ie,headTree as M,SIMPLE_HEADING_LOOK as Be,token as p}from"./section-head-looks.js";import{boxPadding as Ne,labelStyle as Fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as He}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const h=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),v=e=>t=>ce(I(t.columns)??I(e.columns)),We="inline is the head the row draws; an own-box node is skipped (`skip`)",Me={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Be}},K={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,He.Series);return t&&t!=="transparent"?t:void 0},_=e=>w(e)===me,ve={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},G={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[E("share")]:"content"},Ke=e=>{const t=w(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},R={...Fe(12),letterSpacing:.22,lineHeight:1.5},j=e=>ye(e.viewLabel)&&!k(e.viewLabel).hidden,s=e=>k(e).text?.trim?.()??"",L=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Ge=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),je=A([["label","Label"],["value","Value"],["body","Card body",!0]]),b=(e,t,o,n,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:O=>Le(n(O),o)},slots:(O,ie)=>({[_e]:[i(O,ie)]})}]}),X=e=>Array.isArray(e.cards)?e.cards:[],Y={top:76,bottom:76,topPhone:76,bottomPhone:76},V=e=>(Array.isArray(e.items)?e.items:[]).map(t=>L({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),Xe=e=>V(e).some(t=>x(t.href)!==void 0),U=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],q=e=>ue(e.eyebrowLook,"KeyFeatures")==="filled",Ye={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,Y)}),box:[...f,...P(Y)],parts:[{kind:"group",name:"Heading",props:{...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[E("share")]:"content"},parts:[{...Te("eyebrow"),when:q},{...De("eyebrow"),when:e=>!q(e)},Me]},b("Cards",e=>({...r,...N(v(be.defaultProps)(e))}),U,V,e=>F(Xe(e)),{reads:["items"]})],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},z={top:72,bottom:72,topPhone:72,bottomPhone:72},J=(e,t)=>({...Ce,...m("background")(e,t)}),Q=e=>{const t=v(he.defaultProps)(e);return{...r,...N(t)}},Ve=A([["title","Card title"],["body","Card body",!0]]),Z=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),$=e=>{const t={},o={};for(const[n,i]of Object.entries(e.props??{}))n!=="id"&&(le(i)?o[n]=i.map($):t[n]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},ee=(e,t)=>{const o=D(e)?F(Ue(e)):Se(),n=Array.isArray(e.template)?e.template.map($):[o],[i]=n;return n.length===1&&i.type===a?{...i,props:{...J(e,t),...i.props}}:{type:a,props:{...r,...J(e,t),name:"Card"},slots:{[l]:n}}},D=e=>e.cardStyle==="label-only",te=e=>Z(e).map((t,o)=>{const n=e.items[o]?.href;return L({key:t.key,title:t.title,href:typeof n=="string"?n.trim():""})}),Ue=e=>te(e).some(t=>x(t.href)!==void 0),oe=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function Ct(){const e=o=>({key:de("card"),title:u(o),body:u("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:u("Label"),title:u("Section *heading.*"),items:t}}const qe={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,z)}),box:[...f,...P(z)],parts:[{...M("Cards"),when:e=>!ge(e)},{...b("Cards",Q,Ve,Z,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&!D(e)},{...b("Cards",Q,U,te,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&D(e)}],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},ze={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),...Ie,..._(e)?Ee(e,t):{},...Ae(w(e),e,t),...S(e,K)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>_(t)?Oe(e,t,o):e],...P(K)],skip:e=>Re(w(e)),site:(e,t)=>_(e.props)?xe(e,t):[],parts:[M("Series"),b("Cards",Ke,Ge,e=>X(e).map(t=>L({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...ve,...m("background",(o,n)=>_(o)&&ke(o,n))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...G,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",T,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...G,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...j(e)?{}:{[Pe]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[E("share")]:"content"},slots:{[l]:[d("count",c,R),d("countLabel",T,R)]}},...j(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:k(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...R}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...y,...g,headPlacement:We}},re={top:60,bottom:60,topPhone:40,bottomPhone:40},Je={...r,direction:"row",columns:3,gap:40,gapPhone:16},Qe={...r,gap:8,gapPhone:8,...Ne(24),...h(1,1,1,1)},Ze={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,re)}),box:[...f,...P(re)],parts:[b("Cards",Je,je,e=>X(e).map(t=>L({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Qe,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",T,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...y,...g}},St={Cards:qe,KeyFeatures:Ye,Series:ze,DocMetaCards:Ze};export{St as CARDS_SECTION_TO_BOX,Ct as cardsPressStarter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as R}from"efficient-easel/draw";import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as
|
|
1
|
+
import{phoneKey as R}from"efficient-easel/draw";import{SITE_SIDE as U}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as F}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as L,token as n}from"./section-head-looks.js";import{labelStyle as C}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as g,DIM as k,DROP_COMMON as c,DROP_SIDE_PADDING as f,INNER_BOX as i,NO_PAD as p,NUMBER_TEXT as W,SAME_KEYS as u,SECTION_BOX as y,TEXT as m,fillFrom as S,lineSides as r,pictureCell as x,siteGutterOf as w,smallText as s,wrapperPad as T,wrapperPadKeys as B}from"./section-to-box-row-parts.js";const H=(e,t)=>{const o=a(e),b=a(t);return{...o===void 0?{}:{size:o},...b===void 0?{}:{sizePhone:b}}},V=e=>F(e.layout)==="stacked",M=e=>Math.min(Math.max(a(e.overlay)??60,0),100),d=e=>a(e)??100,X={textStyle:"heading-1",sizeToken:{...L("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},j=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:m,style:{...X,case:e?"upper":"none"},styleFrom:t=>H(t.titleSizeDesktop,t.titleSizeMobile),when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...k,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>H(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],A=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,G=()=>({name:"Scroll-Over Text",skip:e=>V(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...p,placement:"left",darken:M(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile)}),box:[...u.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>M(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:j,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:A("Button color"),buttonTextColor:A("Button text color"),...c}}),v={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},K={textStyle:"body-1",...n("body",16),lineHeight:1.7},O=e=>({kind:"text",key:"body",props:{...k,maxWidth:520},style:{...K,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},P=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},Y=(e,t)=>{const o=P(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},I={boxShapePhone:"landscape"},_="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",q=(e,t)=>({[e]:t,[R(e)]:t}),Z={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},E=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),$=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...P(e,100)}),box:[...u,...B(l)],parts:[{kind:"group",name:"Words",props:()=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:r({right:1}),sectionBorderPhone:r({}),...p,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:U}),parts:[s("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:m,style:{...v,case:"none"},mark:"accentItalic"},O(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(E(e).length,1),3),...q("sectionBorder",r({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:E,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:W,style:Z},s("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},x("Picture","imageSrc",I)],drop:{...c,grayscale:_,...f}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},J=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",Q=e=>Math.min(Math.max(a(e.overlay)??60,0),100),D=e=>typeof e=="string"&&e.trim()!=="",ee={...g,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},N=e=>({...x("Picture","imageSrc",(t,o)=>({...D(t.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...I,sectionBorder:r(e?{left:1}:{right:1}),...z(e?"left":"right",w(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:ee,style:{...C(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),z=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},te={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:J(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...Y(e,72),gap:24,gapPhone:24,...D(e.textBgSrc)?{darken:Q(e),darkenStyle:"even"}:{},...p,sectionPaddingTop:100,sectionPaddingBottom:100,...z(o?"right":"left",w(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:m,style:v,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...O(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...g,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},oe=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...P(e,72)}),box:[...u,...B(l)],parts:[N(!1),te,N(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:_,...c,...f}}),he={IntroBleed:G(),Manifesto:$(),Split:oe()};export{he as EDITORIAL_SECTION_TO_BOX};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { OwnProps, PartRow, SectionToBoxRow, SlotFill } from "../../../sections/section-to-box.js";
|
|
1
|
+
import type { ConvertContext, OwnProps, PartRow, SectionToBoxRow, SlotFill } from "../../../sections/section-to-box.js";
|
|
2
2
|
type Props = Record<string, unknown>;
|
|
3
3
|
export declare const HEAD_ONLY_TYPES: readonly string[];
|
|
4
4
|
export declare const HOST_ROW_HEAD_TYPES: readonly string[];
|
|
5
5
|
export type HeadOnlyRowExtension = {
|
|
6
|
-
slots?: Readonly<Record<string, readonly SlotFill[]
|
|
6
|
+
slots?: Readonly<Record<string, readonly SlotFill[]>> | ((node: Props, ctx: ConvertContext) => Readonly<Record<string, readonly SlotFill[]>>);
|
|
7
7
|
partsAfter?: readonly PartRow[];
|
|
8
8
|
drop?: Readonly<Record<string, string>>;
|
|
9
9
|
pressHeading?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SPLITTABLE_SECTIONS as
|
|
1
|
+
import{SPLITTABLE_SECTIONS as u}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as b}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as g,SECTION_BOX as B,innerPad as A}from"./section-to-box-row-parts.js";import{SITE_SIDE as m}from"efficient-easel/screen/lib/content/length-units";import{EDITORIAL_LINE as R,HEAD_BELOW as l,headLookOf as S,headReads as C,headTree as L}from"./section-head-looks.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as E}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as w}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as N,faqRunStyleKeys as k}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{PROCESS_COLUMNS_SLOT as D,processColumnSeeds as H}from"../../../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{BOX_SIDE_SPACE_PROP as F,BOX_SIDE_SPACE_SITE as y}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as j}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as x}from"../../../../../format/lib/content/section-surface.js";const X=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"],so=["Events","FitmentTable","ProductGrid","SpecTable"],s=(e,o)=>()=>({top:e,topPhone:o}),P=e=>o=>{const r=A(o,e).sectionPaddingTop;return{top:r,topPhone:r}},Y={Collections:s(120,70),Events:s(120,70),FAQ:s(120,70),GalleryB:s(120,70),FitmentTable:s(120,80),SpecTable:s(120,80),LongRead:s(120,80),RelatedProducts:s(0,0),Footprint:P("Footprint"),ProcessSteps:P("ProcessSteps"),ProductGrid:e=>({top:I(e.padTop)??120,topPhone:0})};function M(e,o={}){const r=u[e],n=Y[e];if(!r||!n)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);const p=r.padKey,_=L(e),c=C(e),O=r.headRows.filter(t=>![r.num,r.title,r.description,"linkText","linkHref"].includes(t)),d={...Object.fromEntries(O.filter(t=>!(t in c)).map(t=>[t,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:b[e]??e,boxProps:(t,i)=>{const a=n(t),h=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},f=typeof o.boxProps=="function"?o.boxProps(t,i):o.boxProps??{},T=S(e)==="editorial"?R:{};return{...B,direction:"column",gap:l[S(e)],sectionPaddingTop:a.top,sectionPaddingTopPhone:a.topPhone,...T,...h,...f}},box:[...g,...p?[[p,"sectionPaddingTop",(t,i)=>n(i).top]]:[]],parts:[_,...(()=>{const t={...p?{[p]:0}:{},...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(t).length?{props:t}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(c).length?{reads:c}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[r.title]}:{},...o.skip?{skip:o.skip}:{}}}const Q={...j,direction:"accordion",rowStyle:"numbered"},G={sectionPaddingLeft:m,sectionPaddingRight:m},K={Footprint:{slots:{[E]:[w()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[D]:H().map(r=>({...r,props:{...r.props,...G}}))}:{},boxProps:{gapPhone:l.editorial}},FAQ:{slots:{[E]:[N()]},pressHeading:!0,coreBox:{name:"Questions",props:Q},coreProps:{sectionAccent:x},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[F]:y},skip:e=>{const o=e._partStyles??{},r=k().filter(n=>o[n]!==void 0);return r.length?`held: its rows carry their own run style (_partStyles ${r.map(n=>`"${n}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},no=Object.fromEntries(X.map(e=>[e,M(e,K[e])]));export{Q as FAQ_ROWS_BOX,K as HEAD_ONLY_CARD_SEEDS,no as HEAD_ONLY_SECTION_TO_BOX,X as HEAD_ONLY_TYPES,so as HOST_ROW_HEAD_TYPES,M as headOnlyRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tabletKey as
|
|
1
|
+
import{tabletKey as D}from"efficient-easel/draw";import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{SECTION_BOX_SLOT as j,SECTION_BOX_TYPE as G}from"../../../sections/section-to-box.js";import{BUTTON as k,DIM as i,DROP_COMMON as v,DROP_SIDE_PADDING as K,INNER_BOX as o,SAME_KEYS as X,SECTION_BOX as f,SH_LINK as S,TEXT as p,bandAccent as Y,bandIndex as $,bandPage as z,bandProps as P,bandWrites as U,smallText as c,wrapperPad as l}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as x,editorialHeadTree as F,token as d}from"./section-head-looks.js";import{boxPadding as m,labelStyle as V}from"../../../../../format/lib/document/seed-parts.js";import{readAnchorName as q}from"../../../../../format/lib/content/anchor-name.js";import{declaredBlockSource as T}from"../../../../../format/lib/content/block-sources.js";import{parseLocationTileShape as J,splitLegacyRegion as w}from"../../../../../format/lib/content/contact.js";import{groupColumns as g}from"../../../../../format/lib/locations-grid.js";import{phoneHref as Q}from"../../../../../format/lib/links/phone-href.js";import{hasMapCoords as Z}from"../../../../../format/lib/map-styles.js";import{VIEW_HIDE_KEYS as ee}from"../../../../../format/lib/content/view-hide-class.js";const r=e=>typeof e=="string"?e:e==null?"":String(e),h=e=>Array.isArray(e.locations)?e.locations.map(t=>t??{}):[],s=e=>r(e.group),B=e=>`loc-${e}`,_=e=>r(e.state).trim()||w(r(e.region)).state,O=e=>r(e.country).trim()||w(r(e.region)).country,E=e=>[_(e),O(e)].filter(Boolean).join(" · "),te=e=>h(e).some(t=>r(t.photo).trim()!==""),oe=e=>h(e).some(t=>Z(Number(t.lat),Number(t.lng))),ne=(e,t)=>h(e).filter(n=>s(n)===s(t)).length,re=(e,t)=>ne(e,t)===1?"wide":J(e.imageShape),y={top:100,bottom:100,topPhone:60,bottomPhone:60},N=48,a=(e,t={})=>({...V(e),...t}),u={top:1,right:1,bottom:1,left:1},b={...o,direction:"row",share:"equal",gap:0},ae=e=>t=>t>g(t)?{...o,gap:0}:{...b,...t>1?{phoneRow:e}:{}},ie={kind:"group",name:"Gallery",props:{...o,gap:20,_hidden:!0},when:te,parts:[{kind:"group",name:"Gallery head",props:{...o,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[c("galleryKicker",a(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...i,align:"right",alignPhone:"left"},style:a(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:u,...m(12,12)},item:(e,t,n)=>({props:{...r(e.photo).trim()?{bgImage:r(e.photo),hover:"mono"}:{},link:`#${B(t)}`,boxShape:re(n,e)}}),parts:[{kind:"text",key:"name",props:p,style:a(11,{letterSpacing:.22,color:"text"})}],groups:{of:s,name:"Group",props:{...o,gap:10},head:e=>({label:s(e[0]??{})}),parts:[c("label",a(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ae(2),perRow:g,rowName:"Row",rowProps:{...b,phoneRow:2}}}]}]},se={kind:"group",name:"Words",props:{...o,gap:12,gapPhone:12,...m(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:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...o,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...p,_partStyles:{text:a(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(t,n)=>E(n)]),when:(e,t)=>E(t??{})!==""}]},{kind:"group",name:"Time zone",props:{...o,sectionBorder:u,...m(6,10)},parts:[{kind:"text",key:"timezone",props:{...i,textFit:"line"},style:a(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:i,style:{textStyle:"body-5",fontRole:"heading",...d("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,_partStyles:{label:a(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>Q(r(e))??"#"]],when:(e,t)=>r(t?.phone).trim()!==""},{kind:"text",key:"hours",props:i,style:a(12,{letterSpacing:.18,lineHeight:1.7})}]},pe={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)=>_(n)]),...["region","country"].map(e=>[e,"country",(t,n)=>O(n)])]},ce={kind:"group",name:"Map",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[pe]},le={kind:"list",key:"locations",name:"City",props:(e,t)=>({...o,gap:0,justify:"between",sectionBorder:u,jumpHighlight:!0,sectionAccent:$(e,t)>=0?z(e.sectionAccent,t):-1}),item:(e,t)=>({props:{anchor:B(t)}}),parts:[se,ce],groups:{of:s,name:"Group",props:{...o,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:{...o,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,t)=>r(t?.key).trim()!=="",parts:[c("key",a(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:p,style:{textStyle:"heading-3",...d("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:i,style:a(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...b,columns:g(e),[D("columns")]:1})}},C=a(10,{letterSpacing:.25}),de={kind:"block",type:G,props:{...o,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:oe,slot:j,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...i,text:"Location coordinates ©",_partStyles:{text:C}}},{kind:"block",type:"ButtonBlock",props:{...k,...S,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...C,color:"labels"}}}}]},I=(e,t)=>Object.fromEntries(t.filter(n=>e[n]!==void 0).map(n=>[n,e[n]])),M=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],H=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],A=e=>e.map(t=>[t,t,(n,R)=>l(R,y)[t]]),L=["sectionAccent","sectionAccent",Y],me=["gridSpan",...ee,...Object.values(W)],ge={name:"City pictures",skip:e=>T(e)?`fed by the data source "${T(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,t)=>({...f,direction:"column",gap:40,anchor:"studios",...x,...I(l(e,y),M),sectionPaddingBottom:N,sectionPaddingBottomPhone:N,...P(e,t)}),box:[...X.filter(e=>e!=="sectionAccent"&&e!=="anchor"),L,["anchor","anchor",e=>q(e).trim()?e:"studios"],...A(M)],parts:[F("sectionNumber","heading","tagline"),ie],also:[{name:"City maps",boxProps:(e,t)=>({...f,direction:"column",gap:40,sectionBorder:{bottom:1},...x,sectionPaddingTop:0,sectionPaddingTopPhone:0,...I(l(e,y),H),...P(e,t)}),box:[...me,L,...A(H)],parts:[le,de]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:U,drop:{...v,...K,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)"}},Oe={ContactLocations:ge};export{Oe as LOCATIONS_SECTION_TO_BOX};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasWords as
|
|
1
|
+
import{hasWords as l}from"../../../sections/section-to-box.js";import{BLOCK_WIDTH_LIMIT as N}from"efficient-easel/draw";import{fluidToken as R,token as o}from"./section-head-looks.js";import{STRIP_BOX as C}from"../../../../../format/lib/sections/strip-shape.js";import{PH as i,phAccentAsMarks as W}from"../../../../../format/lib/document/blocks/placeholders.js";import{DOC_MASTHEAD_PH as d}from"../../../../../format/lib/document/blocks/general/DocMasthead/meta.js";import{PAGE_TITLE_LEVEL_PROP as U,pageTitleDemoted as f}from"../../../../../format/lib/document/one-h1.js";import{AUTO_COLUMN as s,BUTTON as v,DIM as G,DROP_COMMON as c,DROP_SIDE_PADDING as g,INNER_BOX as n,leadLine as _,RIGHT_WORDS as S,SAME_KEYS as h,SECTION_BOX as m,SH_LINK as X,smallText as r,TEXT as a,wrapperPad as b,wrapperPadKeys as u}from"./section-to-box-row-parts.js";const T={minWidth:N.min},E=(e,t,p)=>({...r(e,{...t,...S}),props:{...a,align:"right",...s,...p}}),w={top:1,bottom:0},k=(e,t,p,M)=>({kind:"group",name:e,props:{...n,sectionPaddingBottom:t,sectionPaddingBottomPhone:p},parts:[M]}),I={widthFit:"fill",...T},O={top:100,bottom:60,topPhone:60,bottomPhone:40},K={...o("label",13),letterSpacing:.22,lineHeight:1.8},x={textStyle:"heading-1",...R("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},j=()=>({name:"Page Header",boxProps:e=>({...m,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,O)}),box:[...h,...u(O)],parts:[{kind:"group",name:"Header",props:{...n,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",12,0,{...r("eyebrow",o("label",13)),props:{...a,...s}}),{kind:"text",key:"title",role:"heading",props:{...a,tag:"h1",...I},style:x,mark:"accentItalic",when:e=>!f(e)},{kind:"text",key:"title",role:"heading",props:{...a,tag:"h2",...I},style:x,mark:"accentItalic",when:f},{kind:"group",name:"Details",props:{...n,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[_("label","value",K,s)]}]}]},{kind:"group",name:"Deck",props:{...n,maxWidth:760,sectionBorder:w,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:G,style:{textStyle:"body-1",fontRole:"accent",...o("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...c,...g,[U]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),ne=()=>({eyebrow:d.eyebrow,title:W(d.title),deck:d.deck,meta:[{label:i.label,value:i.value},{label:i.label,value:i.value}]}),B={top:80,bottom:40,topPhone:60,bottomPhone:32},V={...o("label",13),letterSpacing:.18,lineHeight:1.8},H={...o("label",13),letterSpacing:.22,lineHeight:1.9},Y=()=>({name:"Issue Header",boxProps:e=>({...m,direction:"column",gap:0,sectionBorder:{bottom:1},...b(e,B)}),box:[...h,...u(B)],parts:[{kind:"group",name:"Top",props:{...n,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[k("Eyebrow",14,14,r("eyebrow",o("label",14))),{kind:"group",name:"Issue",props:{...n,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[_("lead","rest",V)]}]}]},{kind:"group",name:"Bottom",props:{...n,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:w,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...a,maxWidth:720,...T},style:{textStyle:"body-1",fontRole:"heading3",...o("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...n,align:"stretch",gap:0},parts:[k("Heading",6,6,{kind:"text",key:"issueHeading",props:{...a,align:"right",...s},style:{textStyle:"body-1",fontRole:"heading",...o("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...S}}),{kind:"group",name:"Lines",props:{...n,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[E("text",{color:"labels",...H})]}]},E("issueTotal",H)]}]}],drop:{...c,...g}}),D={top:24,bottom:24,topPhone:16,bottomPhone:16},y={color:"labels",...o("label",13),letterSpacing:.2},L=e=>(Array.isArray(e.items)?e.items:[]).filter(t=>t&&typeof t.label=="string"&&t.label.trim()!==""),P=(e,t)=>t!==void 0&&L(e).at(-1)===t,A=(e,t)=>t!==void 0&&L(e).includes(t),F=(e,t)=>A(e,t)&&!P(e,t)&&l(t?.href),q=()=>({name:"Breadcrumb",skip:e=>l(e.meta)?'a trailing note after "·" needs a second mark; none live':void 0,boxProps:e=>({...m,...C,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...b(e,D)}),box:[...h,...u(D)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:F,props:{...v,...X,icon:"none"},style:y},{...r("label",y),when:(e,t)=>A(e,t)&&!P(e,t)&&!l(t?.href)},{...r("label",{...y,color:"text"}),when:P}]}],drop:{...c,...g,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),ae={DocMasthead:j(),Masthead:Y(),Breadcrumb:q()};export{ae as PAGE_HEADER_SECTION_TO_BOX,ne as pageHeaderPressStarter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{phoneKey as
|
|
1
|
+
import{phoneKey as v}from"efficient-easel/draw";import{newId as K}from"efficient-easel/data";import{COUNT_KEY_PROP as _}from"../../../../../format/lib/content/block-sources.js";import{resolveSectionBackground as k,THEME_SECTION_BG as M}from"../../../../../format/lib/content/section-background.js";import{finiteNumber as H}from"../../../../../format/lib/finite-number.js";import{hasWords as g}from"../../../sections/section-to-box.js";import{DROP_COMMON as T,DROP_SIDE_PADDING as x,INNER_BOX as a,NUMBER_TEXT as m,SAME_KEYS as O,SECTION_BOX as P,TEXT as i,bandAccent as Y,bandProps as U,bandWrites as W,fillFrom as G,onBandPreset as X,innerPad as $,innerPadKeys as q,smallText as S,wrapperPad as j,wrapperPadKeys as z}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as V,fluidToken as J,headTree as Q,token as n}from"./section-head-looks.js";import{SECTION_BG_BUILT_IN as E}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{CARD_STYLES as s,CARD_STYLE_KEY as f}from"../../../sections/card-list-style.js";import{CARD_LIST_TYPE as Z,CARD_TEMPLATE_SLOT as ee,cardListProps as te}from"../../../../../format/lib/content/card-template.js";import{BOX_TYPE as d,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{rowFieldTextSeed as c}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{say as r}from"../../../../../format/lib/editor-words.js";const b=e=>typeof e=="string"?e.trim():"";function A(e){const t=`${b(e.prefix)}${b(e.value)}`,o=b(e.suffix);return e.emphasizeAll===!0?t?`==_${t}_==`:"":`${t}${o?`==_${o}_==`:""}`}const B={textStyle:"heading-2",...J("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},w={kind:"block",type:"Text",props:{...m,_partStyles:{text:B}},box:[["value","text",(e,t)=>A(t)]],when:(e,t)=>t!==void 0&&typeof t.value=="string"&&A(t)!==""},R=e=>g(e?.supSuffix),L={textStyle:"body-1",fontRole:"heading",...n("body",16),lineHeight:1.5,letterSpacing:-.01},C={color:"labels",...n("label",12),lineHeight:1.5,letterSpacing:.24},I={...a,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[v("share")]:"content"},N={textStyle:"body-5",...n("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},y=e=>k(e.background,E.StatsParagraph),p=e=>y(e)===M,u=e=>({...e,sectionAccent:e.sectionAccent??0}),oe=(e,t)=>p(e)?G("background",(o,h)=>X(u(o),h))(e,t):{},re={name:"Stats with Text",skip:e=>y(e)&&y(e)!=="transparent"&&!p(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,t)=>({...P,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...V,...$(e,"StatsParagraph"),...p(e)?U(u(e),t):{}}),box:[...O.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>p(t)?Y(e,u(t),o):e],...q("StatsParagraph")],site:(e,t)=>p(e.props)?W({props:u(e.props)},t):[],parts:[Q("StatsParagraph"),{kind:"group",name:"Stats",props:{...a,...s.table.grid,[f]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...a,direction:"row",share:"equal",phoneRow:2,...s.table.row},props:(e,t)=>({...a,...s.table.card,...oe(e,t)}),parts:[{...w,when:(e,t)=>!R(t)&&w.when(e,t)},{kind:"group",name:"Figure",props:I,when:(e,t)=>R(t),parts:[w,{kind:"text",key:"supSuffix",props:i,style:N}]},{kind:"group",name:"Words",props:{...a,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:i,style:L},S("sub",C)]}]}]}],drop:{...T,...x,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"}},ae=new Set(["value","label",_]),F={top:48,bottom:48,topPhone:48,bottomPhone:48},se=e=>{const t=k(typeof e.background=="string"?e.background:void 0,E.Stats);return!!t&&t!=="transparent"},ne={name:"Stats",skip:e=>se(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":g(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(t=>g(t?.[_]))?"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(o=>!ae.has(o)))?"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=>({...P,direction:"column",gap:24,gapPhone:24,...j(e,F)}),box:[...O,...z(F)],parts:[S("heading",{color:"labels",...n("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...a,...s.list.grid,[f]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>H(e.columns)??4,rowName:"Stats row",rowProps:{...a,direction:"row",share:"equal",phoneRow:2,...s.list.row},props:{...a,...s.list.card},parts:[{kind:"text",key:"value",props:m,style:{textStyle:"heading-2",...n("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},S("label",{color:"labels",...n("label",12),letterSpacing:.2})]}]}],drop:{...T,...x,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:"only no fill reaches here: a node that paints a colour is skipped"}},Te={StatsParagraph:re,Stats:ne};function xe(){return{eyebrow:r("By the numbers"),title:r("What we count."),desc:r("A few numbers that matter to us."),stats:[],background:"transparent"}}const ie=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function Oe(){const e=(t,o,h,D="")=>({key:K("stat"),figure:t,superscript:D,label:o,body:h});return[e("28==_yr_==",r("Years in business"),r("Privately held since day one. Same two founders.")),e("==_8_==",r("Operating footprint"),r("Los Angeles · Fort Lauderdale · Bewdley · Drachten · Mumbai · Selangor · Ho Chi Minh · Sydney. Three continents covered from one California design studio."),r("cities")),e("−21==_%_==",r("Avg. weight saving"),r("Versus OEM equivalents, across our forged catalog.")),e("14==_×_==",r("Finish steps"),r("Specified in California to a 14-step protocol. No two sets are identical."))]}function pe(e){return{type:d,props:{...a,name:"Card",...structuredClone(s[e].listCard)},slots:{[l]:[{type:d,props:{...I,name:"Figure"},slots:{[l]:[c("figure",m,B),c("superscript",i,N)]}},{type:d,props:{...a,name:"Words",gap:4,gapPhone:4},slots:{[l]:[c("label",{...i,widthFit:"fill"},L),c("body",{...i,widthFit:"fill"},C,!0)]}}]}}}function Pe(e,t,o=4){return{type:d,props:{...a,name:"Stats",direction:"row",columns:o,...structuredClone(s[t].items),[f]:t},slots:{[l]:[{type:Z,props:te(e,ie),slots:{[ee]:[pe(t)]}}]}}}export{Te as STATS_SECTION_TO_BOX,A as figureWords,Pe as statsBoxSeed,xe as statsPressSeed,Oe as statsSeedRows};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BLOCK_WIDTH_LIMIT as u,hiddenKeyOf as _}from"efficient-easel/draw";import{hidableRow as g}from"../scaffold.js";import{hasWords as k}from"../../../sections/section-to-box.js";import{BLOCK_SOURCE_PROP as w,BLOG_CATEGORIES_SOURCE as y}from"../../../../../format/lib/content/block-sources.js";import{SECTION_PIN_ABOVE_KEY as B,SECTION_PIN_SCREENS_KEY as T}from"../../../../../format/lib/content/section-sticky.js";import{LABEL_FACE as E,token as O}from"../../../../../format/lib/document/seed-parts.js";import{PART_STYLES_PROP as f}from"../../part-styles.js";import{PH as s}from"../../../../../format/lib/document/blocks/placeholders.js";import{DROP_COMMON as a,DROP_SIDE_PADDING as i,INNER_BOX as S,SAME_KEYS as C,SECTION_BOX as P,TEXT as N,wrapperPad as A,wrapperPadKeys as R}from"./section-to-box-row-parts.js";const l="MenuBlock",n=e=>(Array.isArray(e)?e:[]).filter(t=>t&&k(t.label)),d=e=>{const[t,o]=[e.metaLabel,e.metaValue].map(m=>(g(m)??"").trim());if(!o)return t;const r=o.includes("==")?o:`==${o}==`;return t?`${t} ${r}`:r},p={top:0,bottom:0,topPhone:0,bottomPhone:0},x={...E,color:"labels",...O("label",12),letterSpacing:.24},I={kind:"group",name:"Note",props:{...S,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[_("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>d(e)!=="",props:e=>({...N,textFit:"line",text:d(e),[f]:{text:x}})}]},$=()=>({tabs:[],metaLabel:s.label,metaValue:s.value}),b="the note Text inside the Box (the label, then the value in the accent); no words, no Text",h={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:u.min},c=e=>({...e,boxProps:t=>({...P,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[T]:0,[B]:!0,sectionBorder:{bottom:1},...A(t,p)}),box:[...C,...R(p)]}),L=()=>c({name:"Tab Bar",skip:e=>n(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:b,metaValue:b},parts:[{kind:"block",type:l,props:h},I],drop:{...a,...i,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),M=()=>c({name:"Category Bar",skip:e=>{if(n(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(n(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:l,props:{...h,[w]:y}}],drop:{...a,...i,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),j={DocTabs:L(),CategoryBar:M()};export{j as TAB_BAR_SECTION_TO_BOX,$ as tabBarPressStarter};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{resolveSectionBackground as
|
|
1
|
+
import{resolveSectionBackground as K,THEME_SECTION_BG as G}from"../../../../../format/lib/content/section-background.js";import{SECTION_BG_BUILT_IN as j}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{BUTTON as _,DIM as s,bandAccent as V,bandIndex as q,bandWrites as z,fillNoBoxHolds as J,ownFill as Q,DROP_COMMON as B,DROP_SIDE_PADDING as A,INNER_BOX as o,SAME_KEYS as H,SECTION_BOX as b,TEXT as c,innerPad as y,innerPadKeys as O}from"./section-to-box-row-parts.js";import{splitParagraphs as Z}from"../../../../components/goldPhrases.js";import{accentItalicRuns as C}from"../../../../../format/lib/markup.js";import{TIMELINE_YEAR_BOX as $,TIMELINE_YEAR_HEAD as N}from"../../../../../format/lib/sections/timeline-year-shape.js";import{boxPadding as ee,LABEL_FACE as te}from"../../../../../format/lib/document/seed-parts.js";import{tabletKey as oe}from"efficient-easel/draw";import{EDITORIAL_LINE as M,editorialHeadTree as ne,fluidToken as re,headWordsOnPhoneLine as ie,token as i,withAccentItalic as ae}from"./section-head-looks.js";import{CTA_PH as l,phAccentAsMarks as L}from"../../../../../format/lib/document/blocks/placeholders.js";import{TIMELINE_PH as u,timelineScaffoldEntries as pe}from"../../../../../format/lib/document/blocks/general/Timeline/meta.js";import{TIMELINE_TRACK_PH as T,timelineTrackScaffoldEntries as se}from"../../../../../format/lib/document/blocks/general/TimelineTrack/meta.js";const R={buttonBorder:{width:0}},d=(e,t,n={})=>({textStyle:"body-5",...i("label",e),letterSpacing:t,lineHeight:1.5,weight:400,...n}),a=(e,t,n={})=>({...d(e,t),...te,...n}),g=(e,t,n)=>({...e,case:"upper",weight:500,letterSpacing:t,lineHeight:n}),p=(e,t,n={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:t,...n}),r=(e,t,n={})=>({kind:"text",key:e,props:c,style:t,...n}),W=(e,t)=>t?.future===!0,h=e=>Z(typeof e?.body=="string"?e.body:""),w=e=>K(typeof e.background=="string"?e.background:void 0,j.TimelineTrack),x=e=>w(e)===G?e:{...e,background:"transparent"},ce={name:"Milestone Timeline",skip:e=>J(w(e)),boxProps:(e,t)=>{const n=q(x(e),t);return{...b,direction:"column",gap:60,[oe("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...M,...y(e,"TimelineTrack"),...Q(w(e),e,t),...n>=0?{sectionAccent:n}:{}}},box:[...H.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,n)=>V(e,x(t),n)],...O("TimelineTrack")],parts:[ie(ae(ne("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...o,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...o,direction:"row",share:"equal",gap:0,line:!0,...M},parts:[{kind:"list",key:"entries",name:"Year",props:{...o,...$},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:N.name,props:{...o,...N},parts:[r("date",d(13,.22,{color:"accent"}),{when:(e,t)=>!W(e,t)}),r("date",d(13,.22,{color:"labels"}),{when:W}),r("title",{textStyle:"heading-3",...g(i("headingSmall",20),-.02,1.1)},{role:"heading"})]},r("blurb",p(i("body",13),1.55),{props:s,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...o,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{..._,align:"right",...R},style:a(13,.3)}]}]}],site:(e,t)=>z({props:x(e.props)},t),drop:{...B,...A,background:"another colour is the Box's Fill, or a skip if no Fill holds it; 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"}},f=e=>typeof e.layout=="string"?e.layout:"split",m=e=>f(e)==="split",P=e=>!m(e),D=e=>f(e)==="spine",le=e=>P(e)&&!D(e),F=(e,t,n,U)=>({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:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:t,sectionHeightUnitPhone:"px",...ee(12,16),...n},when:k=>U(k)&&typeof k.imageSrc=="string"&&k.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...o,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[r("imageCaption",a(11,.24,{color:"text"})),r("imageMeta",a(11,.24,{color:"accent"}),{props:{...c,align:"right"}})]}]}),v=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{..._,...e,...R},style:a(13,.3)}),S=()=>[r("title",{textStyle:"heading-3",...g(i("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...c,_partStyles:{text:p(i("body",17,16),1.6)}},box:[["body","text",(e,t)=>C(h(t)[0]??"")]],when:(e,t)=>h(t).length>0},{kind:"block",type:"Text",props:{...s,_partStyles:{text:p(i("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,t)=>C(h(t).slice(1).join(`
|
|
2
2
|
|
|
3
|
-
`))]],when:(e,t)=>h(t).length>1}],E=()=>r("date",
|
|
3
|
+
`))]],when:(e,t)=>h(t).length>1}],E=()=>r("date",d(13,.24,{color:"accent"})),I=(e,t,n={})=>r(e,t,{...n,props:{...c,...n.props??{},align:"center"}}),Y=re("headingMedium",40,5,76),X={sectionBorder:{bottom:1}},de={name:"Story Timeline",skip:e=>f(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>m(e)?{...b,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...X,...y(e,"Timeline")}:{...b,direction:"column",gap:48,gapPhone:48,align:"center",...X,...y(e,"Timeline")},box:[...H,...O("Timeline")],parts:[{kind:"group",name:"Heading",props:{...o,gap:24,gapPhone:24},when:m,parts:[r("eyebrow",a(12,.3,{color:"accent"}),{role:"eyebrow"}),r("title",{textStyle:"heading-2",...g(Y,-.03,.94)},{role:"heading",mark:"accentItalic"}),r("intro",p(i("body",14),1.6),{props:{...s,maxWidth:360},mark:"accentItalic"}),F(667,419,{},()=>!0),v()]},{kind:"group",name:"Chapters",props:{...o,gap:48,gapPhone:48,line:!1},when:m,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[E(),{kind:"group",name:"Words",props:{...o,gap:14,gapPhone:14},parts:S()}]}]},{kind:"group",name:"Heading",props:{...o,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:P,parts:[I("eyebrow",a(12,.3,{color:"accent"}),{role:"eyebrow"}),I("title",{textStyle:"heading-2",...g(Y,-.03,.94)},{role:"heading",mark:"accentItalic"}),I("intro",p(i("body",14),1.6),{props:{...s,maxWidth:520},mark:"accentItalic"}),v({align:"center"})]},F(506,192,{maxWidth:900,widthFit:"fill"},P),{kind:"group",name:"Chapters",props:{...o,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:D,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,gap:8,gapPhone:8},parts:[E(),{kind:"group",name:"Words",props:{...o,gap:14,gapPhone:14},parts:S()}]}]},{kind:"group",name:"Chapters",props:{...o,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:le,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...o,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...o,gap:8,gapPhone:8},parts:[E(),{kind:"group",name:"Words",props:{...o,gap:14,gapPhone:14},parts:S()}]},{kind:"group",name:"Spacer",props:{...o},keepEmpty:!0,parts:[]}]}]}],drop:{...B,...A,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},Se=()=>({eyebrow:u.eyebrow,title:L(u.title),intro:u.intro,ctaText:l.text,ctaHref:l.href,entries:pe()}),Ee=()=>({eyebrow:T.eyebrow,title:L(T.title),intro:T.intro,ctaText:l.text,ctaHref:l.href,entries:se()}),Ie={TimelineTrack:ce,Timeline:de};export{Ie as TIMELINE_SECTION_TO_BOX,Ee as milestoneTimelinePressStarter,Se as storyTimelinePressStarter};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { type SectionToBoxRow } from "../../../sections/section-to-box.js";
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
2
3
|
export declare const GENERAL_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
|
|
4
|
+
export declare const TEXT_PRESS_STARTERS: Readonly<Record<string, () => Readonly<Props>>>;
|
|
3
5
|
export declare function registerGeneralSectionRows(): void;
|
|
6
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasWords as
|
|
1
|
+
import{hasWords as L,registerSectionToBox as t}from"../../../sections/section-to-box.js";import{BUTTON as T,DIM as y,DROP_COMMON as s,DROP_SIDE_PADDING as u,INNER_BOX as o,leadLine as X,SAME_KEYS as d,SECTION_BOX as p,TEXT as l,innerPad as w,siteGutterOf as D,innerPadKeys as B,smallText as P,wrapperPad as O,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{CARDS_SECTION_TO_BOX as W}from"./section-to-box-rows-cards.js";import{normalizeSiteGutterPhone as M,siteGutterPhoneFollows as G}from"../../../../../format/lib/content/page-width.js";import{finiteNumber as F}from"../../../../../format/lib/finite-number.js";import{STATS_SECTION_TO_BOX as U}from"./section-to-box-rows-stats.js";import{LOGOS_SECTION_TO_BOX as K}from"./section-to-box-rows-logos.js";import{STRIP_SECTION_TO_BOX as Y}from"./section-to-box-rows-strip.js";import{TIMELINE_SECTION_TO_BOX as j}from"./section-to-box-rows-timeline.js";import{LOCATIONS_SECTION_TO_BOX as z}from"./section-to-box-rows-locations.js";import{HEAD_ONLY_SECTION_TO_BOX as q}from"./section-to-box-rows-head.js";import{PAGE_HEADER_SECTION_TO_BOX as J}from"./section-to-box-rows-pageheader.js";import{TAB_BAR_SECTION_TO_BOX as Q}from"./section-to-box-rows-tabbar.js";import{DOCBODY_SECTION_TO_BOX as V}from"./section-to-box-rows-docbody.js";import{EDITORIAL_SECTION_TO_BOX as Z}from"./section-to-box-rows-editorial.js";import{FORMS_SECTION_TO_BOX as $}from"./section-to-box-rows-forms.js";import{CHECKOUT_SECTION_TO_BOX as ee}from"./section-to-box-rows-checkout.js";import{PROOF_SECTION_TO_BOX as te}from"./section-to-box-rows-proof.js";import{PROMO_SECTION_TO_BOX as oe}from"./section-to-box-rows-promo.js";import{FITMENT_SECTION_TO_BOX as ne}from"./section-to-box-rows-fitment.js";import{fluidToken as ie,headTree as k,token as i}from"./section-head-looks.js";import{CTA_PH as b,PH as re,phAccentAsMarks as m}from"../../../../../format/lib/document/blocks/placeholders.js";import{PROSE_PH as S}from"../../../../../format/lib/document/blocks/general/Prose/meta.js";import{PARAGRAPHS_A_PH as g}from"../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";import{BANNER_PH as ae}from"../../../../../format/lib/document/blocks/general/Banner/meta.js";import{TITLE_WITH_BUTTONS_PH as se,TITLE_WITH_BUTTONS_SCAFFOLD_BUTTONS as de}from"../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";import{SECTION_HEADER_PH as r}from"../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";import{boxPadding as pe,fillSlot as le}from"../../../../../format/lib/document/seed-parts.js";const E={top:72,bottom:72,topPhone:72,bottomPhone:72},he={name:"Editorial Text",boxProps:e=>({...p,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...O(e,E)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...d,..._(E)],parts:[k("Prose"),{kind:"text",key:"body",props:y,style:{textStyle:"body-1",...i("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...s,...u,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 (the live export, 2026-10-24)"}},x={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},N=(e,n)=>n?.variant==="primary",I=(e,n)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:N,variant:"primary",style:{letterSpacing:.3},props:{...T,...x,...n}},{kind:"button",key:"label",href:"href",when:(a,h)=>!N(a,h),variant:"ghost",style:{letterSpacing:.3},props:{...T,...x,...n}}]}),c=e=>L(e.title),me={name:"Call-to-Action Heading",boxProps:e=>({...p,direction:"row",align:"center",justify:c(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...w(e,"TitleWithButtons")}),box:[...d,...B("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",...ie("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...o,gap:14,gapPhone:14,widthFitPhone:"fill",...c(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[I(c,{widthFit:"fill",iconPosition:"end"}),I(e=>!c(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 (the live 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",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function ge(e){const{siteGutter:n,siteGutterPhone:a}=e.site??{},h=D(e),f=Math.min(20,M(a)??G(n));return{sectionPaddingLeft:h,sectionPaddingRight:h,sectionPaddingLeftPhone:f,sectionPaddingRightPhone:f}}const H={top:40,bottom:64,topPhone:24,bottomPhone:36},ce={name:"Section Header",boxProps:(e,n)=>({...p,direction:"column",gap:0,...O(e,H),...ge(n)}),box:[...d,..._(H)],parts:[k("SectionHeader")],drop:{...s,...u,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 (the live 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"}},A={...o,direction:"row",share:[67],gap:32},R={...o,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},C=(e,n,a)=>({kind:"group",name:e,props:n,parts:[a]}),Te={name:"Lead Text",boxProps:e=>({...p,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...w(e,"ParagraphsA")}),box:[...d,...B("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...A,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",...i("label",12),letterSpacing:.24})]},C("Stats column",o,{kind:"group",name:"Stats",props:{...R,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[X("value","label",{...i("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...A,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",...i("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},C("Note column",{...o,justify:"end"},{kind:"group",name:"Founders",props:{...R,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",...i("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:y,style:{textStyle:"body-5",fontRole:"heading",...i("body",14,12),lineHeight:1.7}}]},P("attribution",{...i("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...s}},v={top:24,bottom:24,topPhone:24,bottomPhone:24},ue={name:"Banner",boxProps:e=>({...p,direction:"column",gap:0,...O(e,v)}),box:[...d,"contained",..._(v)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...o,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...le("surface"),...pe(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(F(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...o,gap:20,gapPhone:20},parts:[P("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...l,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...i("headingMedium",44,32)}},{kind:"text",key:"body",props:{...l,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...i("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:T}]}],drop:{...s,...u}},Pe={Prose:he,TitleWithButtons:me,SectionHeader:ce,ParagraphsA:Te,Banner:ue},je={Prose:()=>({eyebrow:S.eyebrow,title:m(S.title),body:S.body}),TitleWithButtons:()=>({title:m(se.title),buttons:de.map(e=>({...e}))}),SectionHeader:()=>({num:r.num,title:m(r.title),description:r.description,linkText:r.linkText,linkHref:b.href}),ParagraphsA:()=>({eyebrow:g.eyebrow,lead:re.body,foundersHeading:g.foundersHeading,foundersBody:g.foundersBody,attribution:g.attribution}),Banner:()=>({...ae,ctaText:b.text,ctaHref:b.href}),ProcessSteps:()=>({num:r.num,title:m(r.title)})};function ze(){t(Pe),t(U),t(K),t(W),t(Y),t(j),t(z),t(q),t(J),t(Q),t(V),t(Z),t($),t(ee),t(ne),t(te),t(oe)}export{Pe as GENERAL_SECTION_TO_BOX,je as TEXT_PRESS_STARTERS,ze as registerGeneralSectionRows};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = Record<string, unknown>;
|
|
2
|
+
export type CardPressTitle = {
|
|
3
|
+
readonly field: string;
|
|
4
|
+
readonly gates: readonly (readonly string[])[];
|
|
5
|
+
};
|
|
6
|
+
export declare const CARD_PRESS_TITLES_PROP = "_cardPressTitles";
|
|
7
|
+
export declare const CARD_PRESS_TITLE_PROP = "_cardPressTitle";
|
|
8
|
+
export declare function cardPressTitlesOf(props: Props | null | undefined, slot: string): readonly CardPressTitle[] | undefined;
|
|
9
|
+
export declare function markCardPressTitles<T>(data: T): T;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNodeList as m}from"efficient-easel/data";import{readHidable as E}from"efficient-easel/draw";import{BOX_HIDE_WHEN_ROW_EMPTY as h,isCardTemplateSlot as y,namedRowField as x}from"../../../format/lib/content/card-template.js";import{SHOW_FOR_PROP as d}from"../../../format/lib/content/box-show-for-choices.js";import{COUNT_KEY_PROP as L}from"../../../format/lib/content/block-sources.js";import{WALL_LABEL_ID_PROP as S}from"./wall-labels.js";const P="_cardPressTitles",k="_cardPressTitle";function j(t,r){const e=t?.[P],i=e&&typeof e=="object"?e[r]:void 0;return Array.isArray(i)&&i.length?i:void 0}const O=(t,r)=>({...t,props:{...t.props,...r}});function C(t){const r=t.props??{};return t.type!=="Text"||E(r.text).hidden||typeof r[L]=="string"||typeof r[S]=="string"?"":x(r)}function T(t,r,e,i){let n=null;return t.forEach((o,s)=>{let p=o;const f=C(o);if(f&&!i.has(f))i.add(f),e.push({field:f,gates:r}),p=O(o,{[k]:!0});else if(o.type!=="Text"&&!Array.isArray(o.props?.[d])){const l=o.props?.[h],R=Array.isArray(l)&&l.length?[...r,l.filter(c=>typeof c=="string")]:r;let u=null;for(const[c,a]of Object.entries(o.props??{})){if(!m(a)||y(o.type,c))continue;const _=T(a,R,e,i);_!==a&&((u??={})[c]=_)}u&&(p=O(o,u))}p!==o&&((n??=t.slice())[s]=p)}),n??t}function A(t){let r=null;return t.forEach((e,i)=>{const n=b(e);n!==e&&((r??=t.slice())[i]=n)}),r??t}function b(t){let r,e;for(const[i,n]of Object.entries(t.props??{})){if(!m(n))continue;let o=A(n);if(y(t.type,i)){const s=[];o=T(o,[],s,new Set),s.length&&((e??={})[i]=s)}o!==n&&((r??={...t.props})[i]=o)}return e&&((r??={...t.props})[P]=e),r?{...t,props:r}:t}function w(t){const r=t;if(!r||!Array.isArray(r.content))return t;const e=A(r.content);return e===r.content?t:{...r,content:e}}export{P as CARD_PRESS_TITLES_PROP,k as CARD_PRESS_TITLE_PROP,j as cardPressTitlesOf,w as markCardPressTitles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{SECTION_MIN_HEIGHT_EXCLUDED as o,sectionMinHeightAttrs as a}from"../../../../format/lib/content/section-min-height.js";import{CellWrap as l}from"../../../components/InBoxContext.js";import{drawsCopiesInTheBox as d}from"../../../../format/lib/content/copies-in-box.js";const g={name:"sectionHeight",applies:(e,n,t)=>n.isSection(e)&&!o.has(e)&&!!t&&typeof t.render=="function",panel(e,n,t){const i=t.heightFields;e.fields={...e.fields,...i()}},draw(e,n){const t=e.render;e.render=i=>{if(d(n,i))return t(i);const r=a(i);return r?s(l,{className:r.className,style:r.style,children:t(i)}):t(i)}}};export{g as sectionHeight};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as S}from"react/jsx-runtime";import{HideTaker as _}from"../../../components/ViewHideRoot.js";import{isBackgroundBox as m}from"../../../../format/lib/content/box-background.js";import{boxSideSpaceOf as u}from"../../../../format/lib/content/box-side-space.js";import{SECTION_PAD_KEYS as p,padValuesOf as T,resolveSectionPadding as g,sectionPadAttrs as I}from"../../content/section-padding.js";import{sectionFillPassClass as b}from"../../../../format/lib/content/section-min-height.js";import{COPIES_IN_THE_BOX as E,drawsCopiesInTheBox as O}from"../../../../format/lib/content/copies-in-box.js";const l={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},c=new Set(Object.keys(l)),P=new Set(["Flex","Text","Heading","ImageBlock"]),x=new Set(["Divider"]),N=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),f=new Set(["ProductGrid"]);function s(e,t,o=!1){const i=e.render;e.render=n=>{if(t?.(n))return i(n);const r=I({...T(n,p,o),sideSpace:u(n.sideSpace)}),a=i(n),d=b(n);return r?S(_,{className:d?`${r.className} ${d}`:r.className,style:r.style,children:a}):a}}const L={name:"sectionPadding",applies:(e,t,o)=>t.isSection(e)&&!N.has(e)&&!!o&&typeof o.render=="function",panel(e,t,o){c.has(t)||f.has(t)||(e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,t){if(c.has(t)){const o=e.render,i=l[t];e.render=n=>{const r=g(n,i);return o({...n,padTop:r.top,padBottom:r.bottom})};return}if(f.has(t)){s(e);return}P.has(t)||x.has(t)||s(e,t==="Flex"?o=>m(o.bgImage):E.has(t)?o=>O(t,o):void 0,!0)}},h=["Heading","Text","ImageBlock"],A=["LogoBlock"],W={name:"blockPadding",applies:(e,t,o)=>(h.includes(e)||A.includes(e))&&!!o&&typeof o.render=="function",panel(e,t,o){e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,t){P.has(t)||s(e,void 0,!0)}};export{x as PADS_ITS_OWN_SPACE,P as PAD_ON_ROOT,c as SECTION_PAD_INNER,l as SECTION_PAD_INNER_DEFAULTS,W as blockPadding,L as sectionPadding};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{capHeroGroups as s}from"../../../format/lib/document/cap-hero-groups.js";import{markListSearchScopes as m}from"../../../format/lib/document/list-search-scopes.js";import{dropEmptySourcedBoxes as i,markHeadCoreBoxes as h}from"./head-core-boxes.js";import{oneH1 as
|
|
1
|
+
import{capHeroGroups as s}from"../../../format/lib/document/cap-hero-groups.js";import{markListSearchScopes as m}from"../../../format/lib/document/list-search-scopes.js";import{dropEmptySourcedBoxes as i,markHeadCoreBoxes as h}from"./head-core-boxes.js";import{oneH1 as l}from"../../../format/lib/document/one-h1.js";import{withPageContents as c}from"../content/page-contents.js";import{markCardPressTitles as p}from"./card-press-titles.js";import{markWallLabels as d}from"./wall-labels.js";import{migrateLegacyPageData as u}from"./migrate-legacy.js";import{migrateRenamedProps as f}from"../../../format/lib/document/renamed-props.js";import{convertSectionsInPage as y,SECTION_TO_BOX_ON as g}from"../sections/section-to-box.js";import{siteThemeOf as w}from"../../../format/lib/theme.js";import{registerGeneralSectionRows as b}from"./blocks/general/section-to-box-rows.js";const k=[{name:"migrateLegacyPageData",chrome:!1,why:"page-only: it walks the top-level sections (Gallery B's array to its slot, a second pinned Header or Footer); a chrome document's one top-level node is the chrome itself",run:e=>u(e)},{name:"migrateRenamedProps",chrome:!0,why:"every document built from stored props: a renamed key still reads its stored answer (lib/source-rules/document-surfaces)",run:e=>f(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(b(),y(e,g,{theme:w(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>s(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>l(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>i(e)},{name:"markHeadCoreBoxes",chrome:!1,why:"page-only: it marks a head Box at the TOP of the page, where the mark element draws (lib/content/empty-hides); a chrome document's top is the chrome group",run:e=>h(e)},{name:"markListSearchScopes",chrome:!1,why:"page-only for now: it ties a Search to the lists of the page's Box; no chrome holds a Search, and a chrome entry is one flag when one does",run:e=>m(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>c(e)},{name:"markWallLabels",chrome:!0,why:"any document: each Marks wall is named by the lead Text drawn before it (aria-labelledby), the Box footer's walls too",run:e=>d(e)},{name:"markCardPressTitles",chrome:!0,why:"any document: an acting copy's press button is named by its template's title Text (aria-labelledby), a header or footer list too; after the wall labels, so a Text keeps one id",run:e=>p(e)}];function a(e,o,n){let r=e;for(const t of k)(!n||t.chrome)&&(r=t.run(r,o));return r}function D(e,o){return a(e,{metadata:o},!1)}function I(e,o){return a(e,{metadata:o},!0)}export{k as PUBLISHED_PASSES,I as publishedChromeData,D as publishedPageData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HERO_SLIDE_SEEDS as h}from"../../components/HeroSlide.js";import{heroGroupAddBlocked as
|
|
1
|
+
import{HERO_SLIDE_SEEDS as h}from"../../components/HeroSlide.js";import{heroGroupAddBlocked as p,heroGroupOverCapNotice as i}from"../../../format/lib/hero-group-placement.js";import{newNodeId as n}from"efficient-easel/draw";import{BOX_TYPE as c}from"../../../format/lib/document/container-blocks.js";import{BOX_LABEL as s}from"../../../format/lib/document/section-catalog.js";import{seedNodes as E}from"../../../format/lib/document/seed-parts.js";import{isNodeList as T}from"efficient-easel/data";import{PROCESS_COLUMNS_SLOT as _,PROCESS_STEPS_SEED_COUNT as O,processColumnSeed as u}from"../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{HERO_STRIP_SLOT as S}from"../../../format/lib/hero-ticker.js";const a=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([r,t])=>[r,T(t)?t.map(l=>a(l,o)):t]))}}),C=e=>{const[o]=E([u()],l=>n(l)),{id:r,...t}=a(o,e).props;return t},d={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>h.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:p,notice:i},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:p,notice:i},ProcessSteps:{slot:_,childType:c,addLabel:`Add ${s.toLowerCase()}`,seeds:e=>Array.from({length:O},()=>C(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},m=1,L={slot:S,childType:c,addLabel:`Add ${s.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=m?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>m?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},w={Hero:{[S]:L}};function x(e){for(const[o,r]of Object.entries(e)){if(o in d&&d[o]!==r)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);d[o]=r}}function N(e,o){const r=d[e];return r?{slot:r.slot,children:r.seeds(o).map(t=>({type:r.childType,props:{id:n(r.childType),...t}}))}:null}export{m as HERO_STRIP_CAP,L as HERO_STRIP_SPEC,w as SLOT_SECTION_EXTRA_SPECS,d as SLOT_SECTION_SPECS,N as buildSlotSeedChildren,x as registerSlotSectionSpecs};
|
|
@@ -43,23 +43,12 @@ export type ConvertContext = {
|
|
|
43
43
|
press?: boolean;
|
|
44
44
|
};
|
|
45
45
|
export declare function convertTheme(ctx: ConvertContext): ThemeValue | undefined;
|
|
46
|
-
export type Restyled = {
|
|
47
|
-
key: string;
|
|
48
|
-
was: {
|
|
49
|
-
size: number;
|
|
50
|
-
sizePhone?: number;
|
|
51
|
-
};
|
|
52
|
-
textStyle?: string;
|
|
53
|
-
size?: number;
|
|
54
|
-
sizePhone?: number;
|
|
55
|
-
};
|
|
56
46
|
export type SectionConversion = {
|
|
57
47
|
node: SectionNode;
|
|
58
48
|
nodes: SectionNode[];
|
|
59
49
|
carried: Carried[];
|
|
60
50
|
dropped: Dropped[];
|
|
61
51
|
siteWrites: SiteWrite[];
|
|
62
|
-
restyled: Restyled[];
|
|
63
52
|
skipped?: string;
|
|
64
53
|
};
|
|
65
54
|
export type TextRole = "heading" | "body" | "eyebrow";
|
|
@@ -113,10 +102,6 @@ type PartRowKind = {
|
|
|
113
102
|
style?: Props;
|
|
114
103
|
styleFrom?: (node: Props, ctx: ConvertContext) => Props;
|
|
115
104
|
props?: Props;
|
|
116
|
-
was?: {
|
|
117
|
-
size: number;
|
|
118
|
-
sizePhone?: number;
|
|
119
|
-
};
|
|
120
105
|
mark?: "accentLead" | "accentItalic";
|
|
121
106
|
} | {
|
|
122
107
|
kind: "button";
|