efficient-web-builder 53.0.0 → 55.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.
Files changed (163) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/editor/components/BlockGapField.js +1 -1
  3. package/dist/editor/components/CornersField.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/SectionWidthRows.d.ts +2 -1
  7. package/dist/editor/components/SectionWidthRows.js +1 -1
  8. package/dist/editor/components/SideSpaceField.js +1 -1
  9. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Eyebrow/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +29 -2
  20. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/shared-fields.d.ts +1 -5
  22. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  23. package/dist/editor/lib/document/box-accordion-seed.d.ts +3 -0
  24. package/dist/editor/lib/document/box-accordion-seed.js +1 -0
  25. package/dist/editor/lib/document/box-fields.d.ts +11 -0
  26. package/dist/editor/lib/document/box-fields.js +1 -1
  27. package/dist/editor/lib/document/box-phone-order-field.d.ts +8 -0
  28. package/dist/editor/lib/document/box-phone-order-field.js +1 -0
  29. package/dist/editor/lib/document/controls.d.ts +3 -1
  30. package/dist/editor/lib/document/controls.js +1 -1
  31. package/dist/editor/lib/document/mirror-cards-field.d.ts +1 -0
  32. package/dist/editor/lib/document/mirror-cards-field.js +1 -1
  33. package/dist/editor/lib/document/passes/inspector.js +1 -1
  34. package/dist/editor/lib/document/section-own-width-fields.d.ts +4 -0
  35. package/dist/editor/lib/document/section-own-width-fields.js +1 -0
  36. package/dist/editor/lib/document/shape-picker.d.ts +8 -0
  37. package/dist/editor/lib/document/shape-picker.js +1 -1
  38. package/dist/format/lib/content/block-align.d.ts +4 -1
  39. package/dist/format/lib/content/block-align.js +1 -1
  40. package/dist/format/lib/content/box-layout.d.ts +5 -0
  41. package/dist/format/lib/content/box-layout.js +1 -1
  42. package/dist/format/lib/content/box-phone-place.d.ts +11 -0
  43. package/dist/format/lib/content/box-phone-place.js +1 -0
  44. package/dist/format/lib/content/box-shadow.d.ts +4 -0
  45. package/dist/format/lib/content/box-shadow.js +1 -1
  46. package/dist/format/lib/content/box-shape.d.ts +1 -1
  47. package/dist/format/lib/content/box-shape.js +1 -1
  48. package/dist/format/lib/content/card-template.d.ts +2 -1
  49. package/dist/format/lib/content/card-template.js +1 -1
  50. package/dist/format/lib/content/container-direction.d.ts +1 -1
  51. package/dist/format/lib/content/container-direction.js +1 -1
  52. package/dist/format/lib/content/gallery-card-layout.d.ts +16 -1
  53. package/dist/format/lib/content/gallery-card-layout.js +1 -1
  54. package/dist/format/lib/content/image-aspect.d.ts +2 -0
  55. package/dist/format/lib/content/image-aspect.js +1 -1
  56. package/dist/format/lib/content/page-width.d.ts +3 -0
  57. package/dist/format/lib/content/page-width.js +1 -1
  58. package/dist/format/lib/content/picture-focus-rows.js +1 -0
  59. package/dist/format/lib/content/section-height.d.ts +31 -2
  60. package/dist/format/lib/content/section-height.js +1 -1
  61. package/dist/format/lib/content/section-min-height.d.ts +2 -1
  62. package/dist/format/lib/content/section-min-height.js +1 -1
  63. package/dist/format/lib/content/section-width.d.ts +38 -1
  64. package/dist/format/lib/content/section-width.js +1 -1
  65. package/dist/format/lib/content/site-gutter.d.ts +2 -0
  66. package/dist/format/lib/content/site-gutter.js +1 -1
  67. package/dist/format/lib/content/view-overrides.d.ts +7 -0
  68. package/dist/format/lib/content/view-overrides.js +1 -0
  69. package/dist/format/lib/document/blocks/block-types.d.ts +1 -1
  70. package/dist/format/lib/document/blocks/general/Flex/meta.d.ts +4 -0
  71. package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
  72. package/dist/format/lib/document/passes/types.d.ts +3 -0
  73. package/dist/format/lib/document/section-catalog.js +1 -1
  74. package/dist/format/lib/editor-words-catalogue.d.ts +12 -0
  75. package/dist/format/lib/editor-words-catalogue.js +5 -5
  76. package/dist/format/lib/markup.d.ts +1 -0
  77. package/dist/format/lib/markup.js +2 -2
  78. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  79. package/dist/format/lib/sections/intro-bleed-layout.d.ts +1 -0
  80. package/dist/format/lib/sections/intro-bleed-layout.js +1 -1
  81. package/dist/format/lib/source-rules/padding-units-declared.d.ts +2 -0
  82. package/dist/format/lib/source-rules/padding-units-declared.js +6 -0
  83. package/dist/render/components/AccordionMark.d.ts +4 -0
  84. package/dist/render/components/AccordionMark.js +1 -0
  85. package/dist/render/components/BoxAccordionRow.d.ts +7 -0
  86. package/dist/render/components/BoxAccordionRow.js +1 -0
  87. package/dist/render/components/BoxTabPaneContext.d.ts +3 -1
  88. package/dist/render/components/BoxTabPaneContext.js +1 -1
  89. package/dist/render/components/BoxTabs.js +1 -1
  90. package/dist/render/components/ButtonBlock.d.ts +1 -0
  91. package/dist/render/components/ButtonBlock.js +1 -1
  92. package/dist/render/components/CardRowContext.js +1 -1
  93. package/dist/render/components/Divider.js +1 -1
  94. package/dist/render/components/Eyebrow.d.ts +2 -1
  95. package/dist/render/components/Eyebrow.js +1 -1
  96. package/dist/render/components/FAQ.js +1 -1
  97. package/dist/render/components/Flex.d.ts +15 -2
  98. package/dist/render/components/Flex.js +1 -1
  99. package/dist/render/components/HeroSection.d.ts +4 -1
  100. package/dist/render/components/HeroSection.js +1 -1
  101. package/dist/render/components/HeroSingle.d.ts +4 -1
  102. package/dist/render/components/HeroSingle.js +1 -1
  103. package/dist/render/components/HeroSlide.d.ts +1 -0
  104. package/dist/render/components/HeroSlide.js +1 -1
  105. package/dist/render/components/ImageBlock.js +1 -1
  106. package/dist/render/components/InBoxContext.d.ts +1 -0
  107. package/dist/render/components/IntroBleed.js +1 -1
  108. package/dist/render/components/LogoBlock.d.ts +1 -0
  109. package/dist/render/components/LogoBlock.js +1 -1
  110. package/dist/render/components/Logos.js +1 -1
  111. package/dist/render/components/ProcessSteps.d.ts +1 -0
  112. package/dist/render/components/ProcessSteps.js +1 -1
  113. package/dist/render/components/SiteGutterFrame.d.ts +16 -0
  114. package/dist/render/components/SiteGutterFrame.js +1 -1
  115. package/dist/render/components/Split.d.ts +2 -1
  116. package/dist/render/components/Split.js +1 -1
  117. package/dist/render/components/Text.d.ts +2 -1
  118. package/dist/render/components/Text.js +1 -1
  119. package/dist/render/components/TitleWithButtons.d.ts +2 -1
  120. package/dist/render/components/TitleWithButtons.js +1 -1
  121. package/dist/render/lib/content/block-size.d.ts +1 -0
  122. package/dist/render/lib/content/block-size.js +1 -1
  123. package/dist/render/lib/content/box-shared-columns.d.ts +2 -2
  124. package/dist/render/lib/content/box-shared-columns.js +1 -1
  125. package/dist/render/lib/content/box-stack-line.d.ts +15 -0
  126. package/dist/render/lib/content/box-stack-line.js +1 -0
  127. package/dist/render/lib/content/button-look.js +1 -1
  128. package/dist/render/lib/content/empty-hides.d.ts +8 -0
  129. package/dist/render/lib/content/empty-hides.js +1 -0
  130. package/dist/render/lib/content/section-edge.d.ts +1 -1
  131. package/dist/render/lib/content/section-edge.js +1 -1
  132. package/dist/render/lib/content/section-padding.d.ts +17 -3
  133. package/dist/render/lib/content/section-padding.js +1 -1
  134. package/dist/render/lib/content/view-values.d.ts +1 -7
  135. package/dist/render/lib/content/view-values.js +1 -1
  136. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  137. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  138. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  139. package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
  140. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  141. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  142. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  143. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  144. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  145. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  146. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  147. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  148. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  149. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  150. package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
  151. package/dist/render/lib/document/head-core-boxes.js +1 -0
  152. package/dist/render/lib/document/page-render.js +1 -1
  153. package/dist/render/lib/document/passes/block-size.js +1 -1
  154. package/dist/render/lib/document/passes/head-core.d.ts +3 -0
  155. package/dist/render/lib/document/passes/head-core.js +1 -0
  156. package/dist/render/lib/document/passes/index.js +1 -1
  157. package/dist/render/lib/document/passes/section-theme.js +1 -1
  158. package/dist/render/lib/document/passes/section-width.js +1 -1
  159. package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
  160. package/dist/render/lib/sections/section-to-box.js +1 -1
  161. package/package.json +5 -5
  162. package/dist/render/lib/content/picture-focus-rows.js +0 -1
  163. /package/dist/{render → format}/lib/content/picture-focus-rows.d.ts +0 -0
@@ -1 +1 @@
1
- import{blockSourceSpec as x,declaredBlockSource as g}from"./block-sources.js";import{isNodeList as T}from"efficient-easel/data";import{BOX_TYPE as w}from"../document/container-blocks.js";import{globalRegistry as C}from"../global-registry.js";import{nonEmptyString as p}from"../non-empty-string.js";import{withCardsTemplate as B}from"../document/cards-template-on-read.js";const R="template",j="Card template",A=["Text","ImageBlock","ButtonBlock","Flex"],u="rowField",O="rowLinkField";function K(){return{type:"slot",allow:[...A]}}const h=[{block:"OrderSummary",typedRows:"rows",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0}],seed:e=>B("Cards",e)}];function i(){return C("efficient.card-templates",()=>new Map(h.map(e=>[e.block,e])))}function W(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(c=>c.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=p(t.typedRows);i().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{}})}}function _(e,t){const r=e?i().get(e)?.seed:void 0;return r?r(t):t}function U(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,c=_(e,o);return c===o?t:c}function H(){for(const e of i().values())if(e.blocks?.length)return!0;return!1}function V(e){return i().get(e)?.blocks??[]}function X(e){for(const t of i().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function Y(e){return typeof e=="string"&&i().get(e)?.typedRows||""}function E(e){return typeof e=="string"&&i().has(e)}function $(e,t){const r=i().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function L(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=i().get(r)?.fields??[],o=x(g(e?.props))?.fields,c=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(s=>s.key===l.key))]:n;return t?c.filter(l=>(l.kind??"text")===t):c}function q(e,t,r){return e?r?L(r).find(n=>n.key===t)??null:i().get(e)?.fields.find(n=>n.key===t)??null:null}function y(e,t=u){const r=e?.[t];return typeof r=="string"?r.trim():""}function z(e,t){return e.key||String(t+1)}function G(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}function J(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const c=typeof o=="string"?o:o?.src,l=p(typeof c=="string"?c.trim():void 0);if(l&&l!==r.trim())return l}return""}const m={Text:{text:u},ImageBlock:{src:u},ButtonBlock:{label:u,href:O},Breadcrumb:{currentCrumb:u}};function Q(e,t,r){return P(e,t,r)!==""}function P(e,t,r){const n=m[e]?.[r];return n?y(t,n):""}function S(e,t){return!t||!e?null:e[t]??""}function Z(e,t,r){if(!r)return t;let n=null;for(const[o,c]of Object.entries(m[e]??{})){const l=S(r,y(t,c));l!==null&&(n??={...t},n[o]=l)}return n??t}function f(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(c,l)=>{for(const s of c){if(s?.props?.id===t)return l;for(const[b,d]of Object.entries(s?.props??{})){if(!T(d))continue;const k=b===R&&E(s.type)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===w},a=n(d,k);if(a!==void 0)return a}}},o=n(r,null);return o===void 0?null:o}function ee(e,t){const r=f(e,t);return r&&r.owner}function te(e,t){const r=f(e,t);return r&&(r.direct?r.owner:null)}function re(e,t){const r=f(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}export{u as CARD_ROW_FIELD_PROP,O as CARD_ROW_LINK_PROP,A as CARD_TEMPLATE_BLOCKS,j as CARD_TEMPLATE_LABEL,R as CARD_TEMPLATE_SLOT,re as cardCopyPlace,z as cardKeyOf,G as cardRow,V as cardTemplateBlocks,te as cardTemplateCardOwner,q as cardTemplateField,$ as cardTemplateFields,L as cardTemplateFieldsOf,ee as cardTemplateOwner,K as cardTemplateSlot,Y as cardTemplateTypedRows,H as cardTemplatesNameBlocks,E as hasCardTemplate,X as isCardTemplateBlock,y as namedRowField,W as registerCardTemplates,Q as rowBound,P as rowFieldOf,S as rowFieldText,Z as rowFilledProps,J as rowNextPicture,U as templateOnInsert,_ as templateOnRead};
1
+ import{blockSourceSpec as x,declaredBlockSource as g}from"./block-sources.js";import{isNodeList as T}from"efficient-easel/data";import{BOX_TYPE as w}from"../document/container-blocks.js";import{globalRegistry as C}from"../global-registry.js";import{nonEmptyString as y}from"../non-empty-string.js";import{accentItalicRuns as B}from"../markup.js";import{withCardsTemplate as R}from"../document/cards-template-on-read.js";const A="template",U="Card template",O=["Text","ImageBlock","ButtonBlock","Flex"],f="rowField",h="rowLinkField";function H(){return{type:"slot",allow:[...O]}}const _=[{block:"OrderSummary",typedRows:"rows",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0}],seed:e=>R("Cards",e)}];function s(){return C("efficient.card-templates",()=>new Map(_.map(e=>[e.block,e])))}function V(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(c=>c.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=y(t.typedRows);s().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{}})}}function E(e,t){const r=e?s().get(e)?.seed:void 0;return r?r(t):t}function X(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,c=E(e,o);return c===o?t:c}function Y(){for(const e of s().values())if(e.blocks?.length)return!0;return!1}function $(e){return s().get(e)?.blocks??[]}function q(e){for(const t of s().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function z(e){return typeof e=="string"&&s().get(e)?.typedRows||""}function L(e){return typeof e=="string"&&s().has(e)}function G(e,t){const r=s().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function P(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=s().get(r)?.fields??[],o=x(g(e?.props))?.fields,c=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(i=>i.key===l.key))]:n;return t?c.filter(l=>(l.kind??"text")===t):c}function S(e,t,r){return e?r?P(r).find(n=>n.key===t)??null:s().get(e)?.fields.find(n=>n.key===t)??null:null}function m(e,t=f){const r=e?.[t];return typeof r=="string"?r.trim():""}function J(e,t){return e.key||String(t+1)}function Q(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}function Z(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const c=typeof o=="string"?o:o?.src,l=y(typeof c=="string"?c.trim():void 0);if(l&&l!==r.trim())return l}return""}const b={Text:{text:f},ImageBlock:{src:f},ButtonBlock:{label:f,href:h},Breadcrumb:{currentCrumb:f}};function ee(e,t,r){return F(e,t,r)!==""}function F(e,t,r){const n=b[e]?.[r];return n?m(t,n):""}function I(e,t){return!t||!e?null:e[t]??""}function te(e,t,r,n){if(!r)return t;let o=null;for(const[c,l]of Object.entries(b[e]??{})){const i=m(t,l),u=I(r,i);u!==null&&(o??={...t},o[c]=n&&S(n,i)?.mark==="accentItalic"?B(u):u)}return o??t}function a(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(c,l)=>{for(const i of c){if(i?.props?.id===t)return l;for(const[u,d]of Object.entries(i?.props??{})){if(!T(d))continue;const k=u===A&&L(i.type)?{owner:i,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||i.type===w},p=n(d,k);if(p!==void 0)return p}}},o=n(r,null);return o===void 0?null:o}function re(e,t){const r=a(e,t);return r&&r.owner}function ne(e,t){const r=a(e,t);return r&&(r.direct?r.owner:null)}function oe(e,t){const r=a(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}export{f as CARD_ROW_FIELD_PROP,h as CARD_ROW_LINK_PROP,O as CARD_TEMPLATE_BLOCKS,U as CARD_TEMPLATE_LABEL,A as CARD_TEMPLATE_SLOT,oe as cardCopyPlace,J as cardKeyOf,Q as cardRow,$ as cardTemplateBlocks,ne as cardTemplateCardOwner,S as cardTemplateField,G as cardTemplateFields,P as cardTemplateFieldsOf,re as cardTemplateOwner,H as cardTemplateSlot,z as cardTemplateTypedRows,Y as cardTemplatesNameBlocks,L as hasCardTemplate,q as isCardTemplateBlock,m as namedRowField,V as registerCardTemplates,ee as rowBound,F as rowFieldOf,I as rowFieldText,te as rowFilledProps,Z as rowNextPicture,X as templateOnInsert,E as templateOnRead};
@@ -1,5 +1,5 @@
1
1
  export type DirectionContainer = "Flex" | "HeroGroup";
2
- export declare const CONTAINER_DIRECTIONS: readonly ["column", "row", "tabs"];
2
+ export declare const CONTAINER_DIRECTIONS: readonly ["column", "row", "tabs", "accordion"];
3
3
  export type ContainerDirection = (typeof CONTAINER_DIRECTIONS)[number];
4
4
  export declare const CONTAINER_DIRECTION_LABEL = "Direction";
5
5
  export declare const CONTAINER_DIRECTION_LABELS: Readonly<Record<ContainerDirection, string>>;
@@ -1 +1 @@
1
- const n=["column","row","tabs"],E="Direction",e={column:"Stacked",row:"One row",tabs:"Tabs"},t={Flex:n,HeroGroup:["column","row"]},c={Flex:"row",HeroGroup:"column"},I={column:"flex-col",row:"flex-row",tabs:"flex-col"};function N(r,o){return t[r].includes(o)?o:c[r]}function i(r,o){return I[N(r,o)]}function l(r){return t[r].map(o=>({label:e[o],value:o}))}export{n as CONTAINER_DIRECTIONS,c as CONTAINER_DIRECTION_BUILT_IN,I as CONTAINER_DIRECTION_CLASS,E as CONTAINER_DIRECTION_LABEL,e as CONTAINER_DIRECTION_LABELS,t as CONTAINER_DIRECTION_OFFERED,i as containerDirectionClass,l as containerDirectionPoints,N as resolveContainerDirection};
1
+ const c=["column","row","tabs","accordion"],N="Direction",t={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},n={Flex:c,HeroGroup:["column","row"]},e={Flex:"row",HeroGroup:"column"},I={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function i(r,o){return n[r].includes(o)?o:e[r]}function l(r,o){return I[i(r,o)]}function E(r){return n[r].map(o=>({label:t[o],value:o}))}export{c as CONTAINER_DIRECTIONS,e as CONTAINER_DIRECTION_BUILT_IN,I as CONTAINER_DIRECTION_CLASS,N as CONTAINER_DIRECTION_LABEL,t as CONTAINER_DIRECTION_LABELS,n as CONTAINER_DIRECTION_OFFERED,l as containerDirectionClass,E as containerDirectionPoints,i as resolveContainerDirection};
@@ -1,5 +1,5 @@
1
1
  import { type HeroGroupPlacement } from "../hero-group-placement.js";
2
- export declare const GALLERY_CARD_RATIOS: readonly ["square", "tall", "wide", "landscape", "portrait", "video", "panorama", "auto"];
2
+ export declare const GALLERY_CARD_RATIOS: readonly ["square", "tall", "wide", "landscape", "portrait", "video", "panorama", "story", "poster", "auto"];
3
3
  export type GalleryCardRatio = (typeof GALLERY_CARD_RATIOS)[number];
4
4
  export declare const GALLERY_CARD_RATIO_DEFAULT: GalleryCardRatio;
5
5
  export declare function galleryCardRatioClass(ratio?: string): string;
@@ -14,11 +14,26 @@ export declare const SHAPE_TABLE: readonly [{
14
14
  readonly image: "auto";
15
15
  readonly ratio: null;
16
16
  readonly label: "Auto";
17
+ }, {
18
+ readonly shape: "story";
19
+ readonly image: "9/16";
20
+ readonly ratio: readonly [9, 16];
21
+ readonly label: "Story 9:16";
22
+ }, {
23
+ readonly shape: "poster";
24
+ readonly image: "2/3";
25
+ readonly ratio: readonly [2, 3];
26
+ readonly label: "Poster 2:3";
17
27
  }, {
18
28
  readonly shape: "tall";
19
29
  readonly image: "3/4";
20
30
  readonly ratio: readonly [3, 4];
21
31
  readonly label: "Tall 3:4";
32
+ }, {
33
+ readonly shape: "portrait";
34
+ readonly image: "4/5";
35
+ readonly ratio: readonly [4, 5];
36
+ readonly label: "Portrait 4:5";
22
37
  }, {
23
38
  readonly shape: "square";
24
39
  readonly image: "1/1";
@@ -1 +1 @@
1
- import{normalisePlacement as n,placementParts as o}from"../hero-group-placement.js";import{scrim as t}from"./scrim.js";const A=["square","tall","wide","landscape","portrait","video","panorama","auto"],g="square";function f(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"auto":return"";default:return"aspect-square"}}const s=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"}];function L(e){return s.filter(a=>e.includes(a.shape))}const _=["overlay","below"];function h(e){return e==="below"}const b="bottom-left";function x(e){const{band:a,column:r}=o(n(e));return["justify-start","justify-center","justify-end"][a]+(r==="center"?" text-center":r==="end"?" text-right":"")}const i=`linear-gradient(180deg, transparent 40%, ${t(.85)} 100%)`,l=`linear-gradient(0deg, transparent 40%, ${t(.85)} 100%)`,c=t(.45);function C(e){return[l,c,i][o(n(e)).band]}export{b as GALLERY_CAPTION_ANCHOR_DEFAULT,_ as GALLERY_CAPTION_PLACES,A as GALLERY_CARD_RATIOS,g as GALLERY_CARD_RATIO_DEFAULT,s as SHAPE_TABLE,x as galleryCaptionAnchorClass,h as galleryCaptionIsBelow,C as galleryCaptionWash,f as galleryCardRatioClass,L as shapeLines};
1
+ import{normalisePlacement as o,placementParts as s}from"../hero-group-placement.js";import{scrim as t}from"./scrim.js";const g=["square","tall","wide","landscape","portrait","video","panorama","story","poster","auto"],A="square";function h(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";default:return"aspect-square"}}const n=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"}];function b(e){return n.filter(a=>e.includes(a.shape))}const f=["overlay","below"];function L(e){return e==="below"}const y="bottom-left";function _(e){const{band:a,column:r}=s(o(e));return["justify-start","justify-center","justify-end"][a]+(r==="center"?" text-center":r==="end"?" text-right":"")}const i=`linear-gradient(180deg, transparent 40%, ${t(.85)} 100%)`,l=`linear-gradient(0deg, transparent 40%, ${t(.85)} 100%)`,p=t(.45);function x(e){return[l,p,i][s(o(e)).band]}export{y as GALLERY_CAPTION_ANCHOR_DEFAULT,f as GALLERY_CAPTION_PLACES,g as GALLERY_CARD_RATIOS,A as GALLERY_CARD_RATIO_DEFAULT,n as SHAPE_TABLE,_ as galleryCaptionAnchorClass,L as galleryCaptionIsBelow,x as galleryCaptionWash,h as galleryCardRatioClass,b as shapeLines};
@@ -37,6 +37,8 @@ export declare function imageFillRowClasses(from: ImageFillFrom): {
37
37
  img: string;
38
38
  figure: string;
39
39
  };
40
+ export declare const isImageRatio: (value: unknown) => value is ImageRatio;
41
+ export declare function imageRatioAspect(value: unknown): string | null;
40
42
  export declare function imageAspectDrawn(aspect: unknown, rowGivesHeight: boolean): unknown;
41
43
  export declare function imageAspectPhoneRest(desktop: unknown): ImageRatio | undefined;
42
44
  export declare function imageAspectPhoneOf(drawn: unknown, phone: unknown): ImageRatio | null;
@@ -1 +1 @@
1
- import{BOX_GIVES_PICTURES_A_HEIGHT as p}from"./box-layout.js";import{imageIsCropped as n,parseImageFit as w}from"./image-fit.js";import{SHAPE_TABLE as m}from"./gallery-card-layout.js";const f=m.map(e=>e.image),a="fill",E={label:"Fill row",value:a,showWhen:p},r="4/3",v={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:{frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},tablet:{frame:"view-tablet:h-full view-tablet:min-h-[240px] view-tablet:aspect-auto!",img:"view-tablet:absolute view-tablet:inset-0",figure:"view-tablet:h-full"},desktop:{frame:"view-desktop:h-full view-desktop:min-h-[240px] max-view-desktop:aspect-[4/3]",img:"view-desktop:absolute view-desktop:inset-0",figure:"view-desktop:h-full"}};function R(e,t,i){return t&&!s(i)?"all":e??"wide"}function c(e){return v[e]}const d={auto:"","3/4":"aspect-[3/4]","2/1":"aspect-[2/1]","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","1/1":"aspect-square"},x={auto:"","3/4":"view-wide:aspect-[3/4]","2/1":"view-wide:aspect-[2/1]","21/9":"view-wide:aspect-[21/9]","16/9":"view-wide:aspect-[16/9]","4/3":"view-wide:aspect-[4/3]","1/1":"view-wide:aspect-square"},_={auto:"","3/4":"max-view-wide:aspect-[3/4]","2/1":"max-view-wide:aspect-[2/1]","21/9":"max-view-wide:aspect-[21/9]","16/9":"max-view-wide:aspect-[16/9]","4/3":"max-view-wide:aspect-[4/3]","1/1":"max-view-wide:aspect-square"},A={auto:"max-view-wide:aspect-auto!","3/4":"max-view-wide:aspect-[3/4]!","2/1":"max-view-wide:aspect-[2/1]!","21/9":"max-view-wide:aspect-[21/9]!","16/9":"max-view-wide:aspect-[16/9]!","4/3":"","1/1":"max-view-wide:aspect-square!"},s=e=>f.includes(e);function F(e,t){return e===a&&!t?r:e}function h(e){return e===a?r:s(e)?e:void 0}function u(e,t){return s(t)?t===e?null:t:e===a?r:null}function g(e,t){const i=u(e,t);return n(e,"cover")||i!==null&&n(i,"cover")}function L(e,t,i){return w(e,"cover")==="cover"&&g(t,i)}function P(e,t,i,o){return e==="desktop"?L(t,i,o):w(t,"cover")!=="cover"?!1:l(e==="tablet"?i:u(i,o)??i)}const l=e=>e===a||s(e)&&e!=="auto";function S(e,t,i="wide"){return e===a&&i==="all"?c("all").frame:t===null?s(e)?d[e]:"":[e===a?c(i).frame:s(e)?x[e]:"",e===a&&i==="desktop"?A[t]:_[t]].filter(Boolean).join(" ")}export{a as FILL_ROW,E as FILL_ROW_OPTION,S as imageAspectClasses,F as imageAspectDrawn,g as imageAspectDrawsARatio,u as imageAspectPhoneOf,h as imageAspectPhoneRest,R as imageFillFrom,c as imageFillRowClasses,L as imageFocalPointActs,P as imageFocalPointActsIn};
1
+ import{BOX_GIVES_PICTURES_A_HEIGHT as v}from"./box-layout.js";import{imageIsCropped as r,parseImageFit as c}from"./image-fit.js";import{SHAPE_TABLE as n}from"./gallery-card-layout.js";const d=n.map(e=>e.image),a="fill",E={label:"Fill row",value:a,showWhen:v},w="4/3",f={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:{frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},tablet:{frame:"view-tablet:h-full view-tablet:min-h-[240px] view-tablet:aspect-auto!",img:"view-tablet:absolute view-tablet:inset-0",figure:"view-tablet:h-full"},desktop:{frame:"view-desktop:h-full view-desktop:min-h-[240px] max-view-desktop:aspect-[4/3]",img:"view-desktop:absolute view-desktop:inset-0",figure:"view-desktop:h-full"}};function F(e,t,i){return t&&!s(i)?"all":e??"wide"}function p(e){return f[e]}const x={auto:"","3/4":"aspect-[3/4]","2/1":"aspect-[2/1]","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","1/1":"aspect-square","9/16":"aspect-[9/16]","2/3":"aspect-[2/3]","4/5":"aspect-[4/5]"},g={auto:"","3/4":"view-wide:aspect-[3/4]","2/1":"view-wide:aspect-[2/1]","21/9":"view-wide:aspect-[21/9]","16/9":"view-wide:aspect-[16/9]","4/3":"view-wide:aspect-[4/3]","1/1":"view-wide:aspect-square","9/16":"view-wide:aspect-[9/16]","2/3":"view-wide:aspect-[2/3]","4/5":"view-wide:aspect-[4/5]"},A={auto:"","3/4":"max-view-wide:aspect-[3/4]","2/1":"max-view-wide:aspect-[2/1]","21/9":"max-view-wide:aspect-[21/9]","16/9":"max-view-wide:aspect-[16/9]","4/3":"max-view-wide:aspect-[4/3]","1/1":"max-view-wide:aspect-square","9/16":"max-view-wide:aspect-[9/16]","2/3":"max-view-wide:aspect-[2/3]","4/5":"max-view-wide:aspect-[4/5]"},_={auto:"max-view-wide:aspect-auto!","3/4":"max-view-wide:aspect-[3/4]!","2/1":"max-view-wide:aspect-[2/1]!","21/9":"max-view-wide:aspect-[21/9]!","16/9":"max-view-wide:aspect-[16/9]!","4/3":"","1/1":"max-view-wide:aspect-square!","9/16":"max-view-wide:aspect-[9/16]!","2/3":"max-view-wide:aspect-[2/3]!","4/5":"max-view-wide:aspect-[4/5]!"},u=e=>d.includes(e),s=u;function h(e){const t=u(e)?n.find(i=>i.image===e)?.ratio:null;return t?`${t[0]} / ${t[1]}`:null}function P(e,t){return e===a&&!t?w:e}function S(e){return e===a?w:s(e)?e:void 0}function l(e,t){return s(t)?t===e?null:t:e===a?w:null}function L(e,t){const i=l(e,t);return r(e,"cover")||i!==null&&r(i,"cover")}function O(e,t,i){return c(e,"cover")==="cover"&&L(t,i)}function k(e,t,i,o){return e==="desktop"?O(t,i,o):c(t,"cover")!=="cover"?!1:m(e==="tablet"?i:l(i,o)??i)}const m=e=>e===a||s(e)&&e!=="auto";function C(e,t,i="wide"){return e===a&&i==="all"?p("all").frame:t===null?s(e)?x[e]:"":[e===a?p(i).frame:s(e)?g[e]:"",e===a&&i==="desktop"?_[t]:A[t]].filter(Boolean).join(" ")}export{a as FILL_ROW,E as FILL_ROW_OPTION,C as imageAspectClasses,P as imageAspectDrawn,L as imageAspectDrawsARatio,l as imageAspectPhoneOf,S as imageAspectPhoneRest,F as imageFillFrom,p as imageFillRowClasses,O as imageFocalPointActs,k as imageFocalPointActsIn,h as imageRatioAspect,u as isImageRatio};
@@ -39,10 +39,13 @@ export declare const SITE_GUTTER_NARROW: {
39
39
  export declare const SITE_GUTTER_SUBSTITUTIONS: ReadonlyArray<readonly [string, string]>;
40
40
  export declare function asMainGutters(html: string): string;
41
41
  export declare const SITE_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
42
+ export declare const BOX_HOLDS_NO_GUTTER_CLASS = "[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";
43
+ export declare function withoutBoxHoldsNoGutter(html: string): string;
42
44
  export declare const EDITORIAL_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";
43
45
  export declare function normalizeSiteGutter(v?: number | null): number;
44
46
  export declare function siteGutterTokens(v?: number | null): Record<string, string>;
45
47
  export declare function normalizeSiteGutterPhone(v?: number | null): number | null;
48
+ export declare function normalizeSectionContentMax(v: unknown): number | null;
46
49
  export declare function siteGutterPhoneTokens(v?: number | null): Record<string, string>;
47
50
  export declare function siteGutterPhoneClass(v?: number | null): string;
48
51
  export declare function siteGutterPhoneFollows(gutter?: number | null): number;
@@ -1 +1 @@
1
- const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function M(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:r.default;return a(i)}const m="--sf-site-width",p=`var(${m},${r.default}px)`,R=`max-w-[${p}]`,b=`max-w-[${r.default}px]`;function w(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function g(t){const e=w(t);return e===r.default?{}:{[m]:`${e}px`}}const o={min:0,max:80,step:4,default:40},_="--sf-site-gutter",u={min:0,max:24,step:4},C="--sf-site-gutter-phone",S="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${_},${o.default}px)`,A=`px-[${n}]`,D=["px-10","px-[60px]"],x={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},h=[[`max-view-desktop:px-[${x.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${x.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${x.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${x.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${x.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${x.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${x.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${x.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${n}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${n})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${n})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${n})]`,"max-view-tablet:-mx-5"],[`-mx-[${n}]`,"-mx-10"],[A,"px-10"]];function U(t){return h.reduce((e,[i,d])=>e.split(i).join(d),t)}const W="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",L="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function c(t){return typeof t!="number"||!Number.isFinite(t)?o.default:Math.round(Math.min(Math.max(t,o.min),o.max))}function N(t){const e=c(t);return e===o.default?{}:{[_]:`${e}px`}}function f(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,u.min),u.max))}function k(t){const e=f(t);return e===null?{}:{[C]:`${e}px`}}function V(t){return f(t)===null?"":S}function y(t){return Math.min(u.max,c(t))}function $(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function B(t=0){return`max-w-[${$(t).replace(/ /g,"_")}]`}const l=p,F=`max-w-[${l}]`,z=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,E="--sf-hero-cap",H=`var(${E},none)`,K=`max-w-[${H}]`,I="--sf-hero-bleed-m",v="--sf-hero-bleed-w",O="--sf-hero-chrome-x",P="--sf-hero-chrome-cap";function j(t){return t===!0?{[E]:l,[I]:"auto",[v]:"100%",[O]:"24px",[P]:"none"}:{}}const s=`calc(${p} - ${n}*2)`,q=`max-w-[${s.replace(/ /g,"_")}]`,J=R;function Q(t){return t!==!1?null:a(T)}const G="--sf-chrome-cap",T=`var(${G},${s})`,X="data-page-width";function Y(t){return t==="full"?"full":null}function Z(t){return t==="full"?null:a(t==="content"?s:T)}function tt(t){if(t==="full")return"full";if(t==="content")return"content"}export{T as CHROME_CAP_READ,G as CHROME_CAP_VAR,s as CHROME_WIDTH_CAP,q as CHROME_WIDTH_CAP_CLASS,L as EDITORIAL_COLUMN,H as HERO_BACKGROUND_CAP,K as HERO_BACKGROUND_CAP_CLASS,E as HERO_BACKGROUND_VAR,I as HERO_BLEED_MARGIN_VAR,v as HERO_BLEED_WIDTH_VAR,l as HERO_CAP,F as HERO_CAP_CLASS,P as HERO_CHROME_CAP_VAR,O as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,X as PAGE_WIDTH_ATTR,J as PRE_CHROME_WIDTH_CAP_CLASS,z as PRE_HERO_CAP_CLASS,D as PRE_SITE_GUTTER_CLASSES,b as PRE_SITE_WIDTH_CAP_CLASS,W as SITE_COLUMN,o as SITE_GUTTER,n as SITE_GUTTER_CAP,A as SITE_GUTTER_CLASS,x as SITE_GUTTER_NARROW,u as SITE_GUTTER_PHONE,S as SITE_GUTTER_PHONE_CLASS,C as SITE_GUTTER_PHONE_VAR,h as SITE_GUTTER_SUBSTITUTIONS,_ as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,R as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,U as asMainGutters,a as centredCap,Z as chromeWidthStyle,j as heroBackgroundTokens,c as normalizeSiteGutter,f as normalizeSiteGutterPhone,w as normalizeSiteWidth,Y as pageWidthMarker,M as pageWidthStyle,tt as resolveChromeWidth,V as siteGutterPhoneClass,y as siteGutterPhoneFollows,k as siteGutterPhoneTokens,N as siteGutterTokens,$ as siteHalfColumnCap,B as siteHalfColumnCapClass,Q as siteWidthCapStyle,g as siteWidthTokens};
1
+ const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function M(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:r.default;return a(i)}const m="--sf-site-width",p=`var(${m},${r.default}px)`,w=`max-w-[${p}]`,b=`max-w-[${r.default}px]`;function c(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function D(t){const e=c(t);return e===r.default?{}:{[m]:`${e}px`}}const x={min:0,max:80,step:4,default:40},_="--sf-site-gutter",u={min:0,max:24,step:4},C="--sf-site-gutter-phone",A="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${_},${x.default}px)`,$=`px-[${n}]`,N=["px-10","px-[60px]"],o={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},h=[[`max-view-desktop:px-[${o.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${o.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${o.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${o.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${o.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${o.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${o.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${o.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${n}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${n})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${n})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${n})]`,"max-view-tablet:-mx-5"],[`-mx-[${n}]`,"-mx-10"],[$,"px-10"]];function U(t){return h.reduce((e,[i,S])=>e.split(i).join(S),t)}const L="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",f="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function W(t){const e=f.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return t.split(` ${e}`).join("").split(` ${f}`).join("")}const k="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function l(t){return typeof t!="number"||!Number.isFinite(t)?x.default:Math.round(Math.min(Math.max(t,x.min),x.max))}function B(t){const e=l(t);return e===x.default?{}:{[_]:`${e}px`}}function E(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,u.min),u.max))}function V(t){return typeof t=="number"&&Number.isFinite(t)?c(t):null}function y(t){const e=E(t);return e===null?{}:{[C]:`${e}px`}}function F(t){return E(t)===null?"":A}function z(t){return Math.min(u.max,l(t))}function H(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function j(t=0){return`max-w-[${H(t).replace(/ /g,"_")}]`}const T=p,K=`max-w-[${T}]`,X=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,d="--sf-hero-cap",I=`var(${d},none)`,q=`max-w-[${I}]`,O="--sf-hero-bleed-m",P="--sf-hero-bleed-w",v="--sf-hero-chrome-x",G="--sf-hero-chrome-cap";function J(t){return t===!0?{[d]:T,[O]:"auto",[P]:"100%",[v]:"24px",[G]:"none"}:{}}const s=`calc(${p} - ${n}*2)`,Q=`max-w-[${s.replace(/ /g,"_")}]`,Y=w;function Z(t){return t!==!1?null:a(R)}const g="--sf-chrome-cap",R=`var(${g},${s})`,tt="data-page-width";function et(t){return t==="full"?"full":null}function nt(t){return t==="full"?null:a(t==="content"?s:R)}function rt(t){if(t==="full")return"full";if(t==="content")return"content"}export{f as BOX_HOLDS_NO_GUTTER_CLASS,R as CHROME_CAP_READ,g as CHROME_CAP_VAR,s as CHROME_WIDTH_CAP,Q as CHROME_WIDTH_CAP_CLASS,k as EDITORIAL_COLUMN,I as HERO_BACKGROUND_CAP,q as HERO_BACKGROUND_CAP_CLASS,d as HERO_BACKGROUND_VAR,O as HERO_BLEED_MARGIN_VAR,P as HERO_BLEED_WIDTH_VAR,T as HERO_CAP,K as HERO_CAP_CLASS,G as HERO_CHROME_CAP_VAR,v as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,tt as PAGE_WIDTH_ATTR,Y as PRE_CHROME_WIDTH_CAP_CLASS,X as PRE_HERO_CAP_CLASS,N as PRE_SITE_GUTTER_CLASSES,b as PRE_SITE_WIDTH_CAP_CLASS,L as SITE_COLUMN,x as SITE_GUTTER,n as SITE_GUTTER_CAP,$ as SITE_GUTTER_CLASS,o as SITE_GUTTER_NARROW,u as SITE_GUTTER_PHONE,A as SITE_GUTTER_PHONE_CLASS,C as SITE_GUTTER_PHONE_VAR,h as SITE_GUTTER_SUBSTITUTIONS,_ as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,w as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,U as asMainGutters,a as centredCap,nt as chromeWidthStyle,J as heroBackgroundTokens,V as normalizeSectionContentMax,l as normalizeSiteGutter,E as normalizeSiteGutterPhone,c as normalizeSiteWidth,et as pageWidthMarker,M as pageWidthStyle,rt as resolveChromeWidth,F as siteGutterPhoneClass,z as siteGutterPhoneFollows,y as siteGutterPhoneTokens,B as siteGutterTokens,H as siteHalfColumnCap,j as siteHalfColumnCapClass,Z as siteWidthCapStyle,D as siteWidthTokens,W as withoutBoxHoldsNoGutter};
@@ -0,0 +1 @@
1
+ import{phoneKey as n,tabletKey as m}from"efficient-easel/screen/lib/content/view-tiers";const s=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],a=e=>[e,m(e),n(e)],d=[...new Set(s.flatMap(e=>a(e.focus)))].sort();function p(e,t){const[c,l,i]=a(t).map(o=>typeof e[o]=="string"&&e[o]?e[o]:void 0);return{desktop:c,tablet:l,phone:i}}export{s as PICTURE_DOTS,d as PICTURE_FOCUS_KEYS,a as viewFocusKeys,p as viewFocusValues};
@@ -6,11 +6,40 @@ export declare const SECTION_HEIGHT: {
6
6
  readonly unit: "vh";
7
7
  };
8
8
  export declare function resolveSectionHeight(value: number | undefined): string;
9
- export declare function hasSectionHeight(...values: (number | undefined)[]): boolean;
10
- export declare function heroHeightBox({ heightDesktop, heightTablet, heightMobile }: {
9
+ export declare function hasSectionHeight(...values: unknown[]): boolean;
10
+ export declare const HERO_HEIGHT_PX: {
11
+ readonly fallback: 680;
12
+ readonly unit: "px";
13
+ readonly min: 40;
14
+ readonly max: 2000;
15
+ readonly step: 10;
16
+ };
17
+ export declare const HERO_FIXED_DEFAULT: {
18
+ readonly ratio: "16/9";
19
+ readonly px: "680px";
20
+ };
21
+ export type HeroFixedHeight = {
22
+ unit: "ratio";
23
+ value: string;
24
+ css: "auto";
25
+ aspect: string;
26
+ } | {
27
+ unit: "px";
28
+ value: string;
29
+ px: number;
30
+ css: string;
31
+ };
32
+ export declare function readHeroFixedHeight(value: unknown): HeroFixedHeight | null;
33
+ export declare function heroStoresRatio(box: {
34
+ style: Record<string, string> | undefined;
35
+ }): boolean;
36
+ export declare function heroHeightBox({ heightDesktop, heightTablet, heightMobile, heightFixed, heightFixedTablet, heightFixedMobile }: {
11
37
  heightDesktop?: number;
12
38
  heightTablet?: number;
13
39
  heightMobile?: number;
40
+ heightFixed?: string;
41
+ heightFixedTablet?: string;
42
+ heightFixedMobile?: string;
14
43
  }): {
15
44
  className: string;
16
45
  style: Record<string, string> | undefined;
@@ -1 +1 @@
1
- const a={min:40,max:100,step:5,fallback:100,unit:"vh"};function o(e){return`${typeof e=="number"?e:a.fallback}${a.unit}`}function f(...e){return e.some(t=>typeof t=="number")}function c({heightDesktop:e,heightTablet:t,heightMobile:h}){const r=f(e,h),n=typeof t=="number",s="view-tablet:max-view-desktop:h-[var(--sf-hero-h-t)]",i=r?n?`h-[var(--sf-hero-h-m)] ${s} view-desktop:h-[var(--sf-hero-h-d)]`:"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":n?`h-screen min-h-[680px] ${s} view-tablet:max-view-desktop:min-h-0`:"h-screen min-h-[680px]";return!r&&!n?{className:i,style:void 0}:{className:i,style:{...r?{"--sf-hero-h-d":o(e)}:{},...n?{"--sf-hero-h-t":o(t)}:{},...r?{"--sf-hero-h-m":o(h)}:{}}}}export{a as SECTION_HEIGHT,f as hasSectionHeight,c as heroHeightBox,o as resolveSectionHeight};
1
+ import{imageRatioAspect as k}from"./image-aspect.js";import{SECTION_MIN_HEIGHT as E}from"./section-min-height.js";const d={min:40,max:100,step:5,fallback:100,unit:"vh"};function I(t){return`${typeof t=="number"?t:d.fallback}${d.unit}`}function b(...t){return t.some(e=>typeof e=="number"||u(e)!==null)}const f={...E,fallback:680,unit:"px"},S={ratio:"16/9",px:`${f.fallback}px`},_=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function u(t){if(typeof t!="string")return null;const e=k(t);if(e!==null)return{unit:"ratio",value:t,css:"auto",aspect:e};const r=_.exec(t);if(r&&Number(r[1])>0){const s=Math.min(f.max,Math.max(f.min,Number(r[1])));return{unit:"px",value:`${s}px`,px:s,css:`${s}px`}}return null}function y(t){return Object.keys(t.style??{}).some(e=>e.startsWith("--sf-hero-ar-"))}function T({heightDesktop:t,heightTablet:e,heightMobile:r,heightFixed:s,heightFixedTablet:h,heightFixedMobile:m}){const i=n=>u(n)?.value,o=b(t,r,i(s),i(m)),a=b(e,i(h)),p=(n,$,w)=>{const c=u($);return c?.unit==="ratio"?{[`--sf-hero-h-${n}`]:c.css,[`--sf-hero-ar-${n}`]:c.aspect}:{[`--sf-hero-h-${n}`]:c?.css??I(w)}},x="view-tablet:max-view-desktop:h-[var(--sf-hero-h-t)]",l=o?a?`h-[var(--sf-hero-h-m)] ${x} view-desktop:h-[var(--sf-hero-h-d)]`:"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":a?`h-screen min-h-[680px] ${x} view-tablet:max-view-desktop:min-h-0`:"h-screen min-h-[680px]";if(!o&&!a)return{className:l,style:void 0};const v={...o?p("d",s,t):{},...a?p("t",h,e):{},...o?p("m",m,r):{}},H=y({style:v})?o?a?" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)] view-desktop:aspect-[var(--sf-hero-ar-d,auto)]":" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:aspect-[var(--sf-hero-ar-d,auto)]":" view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)]":"";return{className:`${l}${H}`,style:v}}export{S as HERO_FIXED_DEFAULT,f as HERO_HEIGHT_PX,d as SECTION_HEIGHT,b as hasSectionHeight,T as heroHeightBox,y as heroStoresRatio,u as readHeroFixedHeight,I as resolveSectionHeight};
@@ -1,7 +1,8 @@
1
1
  import type { CSSProperties } from "react";
2
+ import { type LengthUnit } from "efficient-easel/screen/lib/content/length-units";
2
3
  export type SectionHeightMode = "auto" | "fixed" | "screen";
3
4
  export declare const SECTION_HEIGHT_MODES: readonly SectionHeightMode[];
4
- export type SectionHeightUnit = "px" | "%";
5
+ export type SectionHeightUnit = Extract<LengthUnit, "px" | "%">;
5
6
  export declare const SECTION_HEIGHT_UNITS: readonly SectionHeightUnit[];
6
7
  export declare const VIEWPORT_UNIT: "svh";
7
8
  export declare const VIEWPORT_UNIT_FALLBACK: "vh";
@@ -1 +1 @@
1
- const N=["auto","fixed","screen"],C=["px","%"],p="svh",R="vh",b="var(--sf-header-h, 88px)",m={min:40,max:2e3,step:10,fallback:600},L={min:10,max:200,step:5,fallback:100},M="sf-section-minh",l="grid-cols-[minmax(0,1fr)]",h={base:"--sf-section-minh",small:"--sf-section-minh-s"},a=e=>typeof e=="string"&&N.includes(e),O=e=>typeof e=="string"&&C.includes(e);function r(e){const t=a(e.sectionHeightMode)?e.sectionHeightMode:"auto",i=t==="screen"?"%":O(e.sectionHeightUnit)?e.sectionHeightUnit:"px",n=t==="screen"?L.fallback:m.fallback,o=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:n;return{mode:t,value:o,unit:i}}function H(e){const{mode:t,value:i,unit:n}=r(e);if(t==="auto")return;if(t==="fixed"&&n==="px")return[`${i}px`,null];const o=i/100,c=s=>t==="screen"?`(100${s} - ${b})`:`100${s}`;return[`calc(${c("vh")} * ${o})`,`calc(${c("svh")} * ${o})`]}function _(e){const t=H(e);if(!t)return;const[i,n]=t;return{display:"grid",[h.base]:i,...n?{[h.small]:n}:{}}}const $=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),v="Height",u="sf-section-minh-phone",I={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function A(e){return a(e.sectionHeightModePhone)}function B(e){return r({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}const T="sf-section-minh-tablet",f={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function P(e){return a(e.sectionHeightModeTablet)}function F(e){return r({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function g(e){const t=_(e),i=(E,x,d)=>H({sectionHeightMode:E,sectionHeightValue:x,sectionHeightUnit:d})??(t?["auto",null]:void 0),n=P(e)?i(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,o=A(e)?i(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):n;if(!t&&!n&&!o)return null;const c=[M,l],s={...t??{}};return n&&(c.push(T),s[f.base]=n[0],n[1]&&(s[f.small]=n[1])),o&&(c.push(u),s[I.base]=o[0],o[1]&&(s[I.small]=o[1])),{className:c.join(" "),style:s}}function y(e){return g(e)!==null}const U=`grid ${l}`,D="h-full",V="view-tablet:max-view-desktop:grid",S="max-view-tablet:grid",G=`${S} ${l}`;function k(e){const t=g(e);if(!t)return"";if(_(e))return U;const i=t.className.split(" ");if(!i.includes(T))return G;const o=i.includes(u);return[V,o?S:"",l].filter(Boolean).join(" ")}export{b as HEADER_HEIGHT_VAR,D as SECTION_FILL_CLASS,U as SECTION_FILL_PASS_CLASS,G as SECTION_FILL_PASS_PHONE_CLASS,l as SECTION_GRID_COLUMN_CLASS,N as SECTION_HEIGHT_MODES,C as SECTION_HEIGHT_UNITS,m as SECTION_MIN_HEIGHT,M as SECTION_MIN_HEIGHT_CLASS,$ as SECTION_MIN_HEIGHT_EXCLUDED,v as SECTION_MIN_HEIGHT_GROUP_LABEL,u as SECTION_MIN_HEIGHT_PHONE_CLASS,I as SECTION_MIN_HEIGHT_PHONE_VARS,T as SECTION_MIN_HEIGHT_TABLET_CLASS,f as SECTION_MIN_HEIGHT_TABLET_VARS,h as SECTION_MIN_HEIGHT_VARS,L as SECTION_SCREEN_PCT,p as VIEWPORT_UNIT,R as VIEWPORT_UNIT_FALLBACK,A as hasPhoneHeight,P as hasTabletHeight,B as resolvePhoneHeight,r as resolveSectionMinHeight,F as resolveTabletHeight,k as sectionFillPassClass,y as sectionFillsHeight,g as sectionMinHeightAttrs,H as sectionMinHeightLengths,_ as sectionMinHeightStyle};
1
+ import{LENGTH_UNITS as N}from"efficient-easel/screen/lib/content/length-units";const m=["auto","fixed","screen"],C=N.filter(e=>e==="px"||e==="%"),b="svh",L="vh",M="var(--sf-header-h, 88px)",O={min:40,max:2e3,step:10,fallback:600},A={min:10,max:200,step:5,fallback:100},P="sf-section-minh",l="grid-cols-[minmax(0,1fr)]",h={base:"--sf-section-minh",small:"--sf-section-minh-s"},a=e=>typeof e=="string"&&m.includes(e),G=e=>typeof e=="string"&&C.includes(e);function r(e){const t=a(e.sectionHeightMode)?e.sectionHeightMode:"auto",i=t==="screen"?"%":G(e.sectionHeightUnit)?e.sectionHeightUnit:"px",n=t==="screen"?A.fallback:O.fallback,o=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:n;return{mode:t,value:o,unit:i}}function H(e){const{mode:t,value:i,unit:n}=r(e);if(t==="auto")return;if(t==="fixed"&&n==="px")return[`${i}px`,null];const o=i/100,c=s=>t==="screen"?`(100${s} - ${M})`:`100${s}`;return[`calc(${c(L)} * ${o})`,`calc(${c(b)} * ${o})`]}function _(e){const t=H(e);if(!t)return;const[i,n]=t;return{display:"grid",[h.base]:i,...n?{[h.small]:n}:{}}}const y=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),B="Height",u="sf-section-minh-phone",f={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function U(e){return a(e.sectionHeightModePhone)}function D(e){return r({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}const I="sf-section-minh-tablet",T={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function p(e){return a(e.sectionHeightModeTablet)}function F(e){return r({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function g(e){const t=_(e),i=(E,x,d)=>H({sectionHeightMode:E,sectionHeightValue:x,sectionHeightUnit:d})??(t?["auto",null]:void 0),n=p(e)?i(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,o=U(e)?i(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):n;if(!t&&!n&&!o)return null;const c=[P,l],s={...t??{}};return n&&(c.push(I),s[T.base]=n[0],n[1]&&(s[T.small]=n[1])),o&&(c.push(u),s[f.base]=o[0],o[1]&&(s[f.small]=o[1])),{className:c.join(" "),style:s}}function k(e){return g(e)!==null}const V=`grid ${l}`,w="h-full",R="view-tablet:max-view-desktop:grid",S="max-view-tablet:grid",$=`${S} ${l}`;function j(e){const t=g(e);if(!t)return"";if(_(e))return V;const i=t.className.split(" ");if(!i.includes(I))return $;const o=i.includes(u);return[R,o?S:"",l].filter(Boolean).join(" ")}export{M as HEADER_HEIGHT_VAR,w as SECTION_FILL_CLASS,V as SECTION_FILL_PASS_CLASS,$ as SECTION_FILL_PASS_PHONE_CLASS,l as SECTION_GRID_COLUMN_CLASS,m as SECTION_HEIGHT_MODES,C as SECTION_HEIGHT_UNITS,O as SECTION_MIN_HEIGHT,P as SECTION_MIN_HEIGHT_CLASS,y as SECTION_MIN_HEIGHT_EXCLUDED,B as SECTION_MIN_HEIGHT_GROUP_LABEL,u as SECTION_MIN_HEIGHT_PHONE_CLASS,f as SECTION_MIN_HEIGHT_PHONE_VARS,I as SECTION_MIN_HEIGHT_TABLET_CLASS,T as SECTION_MIN_HEIGHT_TABLET_VARS,h as SECTION_MIN_HEIGHT_VARS,A as SECTION_SCREEN_PCT,b as VIEWPORT_UNIT,L as VIEWPORT_UNIT_FALLBACK,U as hasPhoneHeight,p as hasTabletHeight,D as resolvePhoneHeight,r as resolveSectionMinHeight,F as resolveTabletHeight,j as sectionFillPassClass,k as sectionFillsHeight,g as sectionMinHeightAttrs,H as sectionMinHeightLengths,_ as sectionMinHeightStyle};
@@ -14,9 +14,46 @@ export declare function resolveWidth(props: WidthProps, defaultMode: WidthMode):
14
14
  };
15
15
  export declare function sectionRunsFullWidth(props: Readonly<Record<string, unknown>>): boolean;
16
16
  export type WidthAnswer = "full" | "content";
17
- export type SectionWidthFamily = "hero" | "scrollOver" | "background" | "both" | "contained" | "contentColumn" | "contentFull" | "productGrid" | "capped";
17
+ export type SectionWidthFamily = "hero" | "scrollOver" | "background" | "both" | "contained" | "contentColumn" | "contentFull" | "productGrid" | "capped" | "rawMarkup";
18
18
  export declare const SECTION_WIDTH_FAMILY: Readonly<Record<string, SectionWidthFamily>>;
19
+ export declare const NO_WIDTH_ROWS: readonly string[];
19
20
  export declare function hasWidthFamily(type: string): boolean;
21
+ export declare const SECTION_WIDTH_KEYS: {
22
+ readonly background: "sectionBackgroundWidth";
23
+ readonly content: "sectionContentWidth";
24
+ readonly contentMax: "sectionContentMax";
25
+ };
26
+ export interface OwnSectionWidth {
27
+ background: WidthAnswer | null;
28
+ content: WidthAnswer | null;
29
+ contentMax: number | null;
30
+ }
31
+ export declare function ownSectionWidth(props: Readonly<Record<string, unknown>>): OwnSectionWidth;
32
+ export declare function chromeOwnWidth(props: Readonly<Record<string, unknown>>): OwnSectionWidth;
33
+ export declare function hasOwnSectionWidth(own: OwnSectionWidth): boolean;
34
+ export declare const sectionBackgroundPatch: (next: WidthAnswer) => {
35
+ sectionBackgroundWidth: WidthAnswer;
36
+ };
37
+ export declare const sectionContentPatch: (next: WidthAnswer) => {
38
+ sectionContentWidth: "full";
39
+ sectionContentMax: undefined;
40
+ } | {
41
+ sectionContentWidth: "content";
42
+ sectionContentMax?: undefined;
43
+ };
44
+ export declare const sectionContentMaxPatch: (px: number) => {
45
+ sectionContentWidth: "content";
46
+ sectionContentMax: number;
47
+ };
48
+ export declare const sectionWidthResetPatch: (row: "background" | "content") => {
49
+ sectionBackgroundWidth: undefined;
50
+ sectionContentWidth?: undefined;
51
+ sectionContentMax?: undefined;
52
+ } | {
53
+ sectionContentWidth: undefined;
54
+ sectionContentMax: undefined;
55
+ sectionBackgroundWidth?: undefined;
56
+ };
20
57
  export declare const SITE_WIDTHS_KEY = "siteWidths";
21
58
  export interface SiteWidths {
22
59
  background: WidthAnswer | null;
@@ -1 +1 @@
1
- const r=["page","full"],l=["full","page"],g={full:"Full width",page:"Content width"},d="inherit",c=e=>typeof e=="string"&&r.includes(e),i=e=>e===d;function u(e,t){return i(e.widthMode)?{mode:"full",inherited:!0}:c(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:t,inherited:t==="full"}}function b(e){return u(e,"page").mode==="full"}const p={Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function h(e){return Object.prototype.hasOwnProperty.call(p,e)}const a="siteWidths",s=e=>e==="full"||e==="content";function n(e){return s(e)?e:null}function k(e,t){return{[a]:{background:n(e),content:n(t)}}}function m(e){const o=e.editor?.metadata?.[a];return{background:n(o?.background),content:n(o?.content)}}export{l as SECTION_WIDTH_CHOICES,p as SECTION_WIDTH_FAMILY,a as SITE_WIDTHS_KEY,g as WIDTH_CHOICE_LABEL,d as WIDTH_INHERIT,r as WIDTH_MODES,h as hasWidthFamily,i as isInheritValue,n as normalizeSiteBackground,u as resolveWidth,b as sectionRunsFullWidth,k as siteWidthsMetadata,m as siteWidthsOf};
1
+ import{normalizeSectionContentMax as r}from"./page-width.js";const d=["page","full"],k=["full","page"],f={full:"Full",page:"Content"},i="inherit",u=t=>typeof t=="string"&&d.includes(t),s=t=>t===i;function l(t,n){return s(t.widthMode)?{mode:"full",inherited:!0}:u(t.widthMode)?{mode:t.widthMode,inherited:!1}:{mode:n,inherited:n==="full"}}function m(t){return l(t,"page").mode==="full"}const p={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"},x=["Ticker","CategoryBar","DocTabs","Header","Footer"];function C(t){return Object.prototype.hasOwnProperty.call(p,t)}const e={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax"};function g(t){const n=r(t[e.contentMax]),c=o(t[e.content])??(n===null?null:"content");return{background:o(t[e.background]),content:c,contentMax:c==="content"?n:null}}function T(t){const n=g(t);return n.content===null&&t.fullWidth===!0?{...n,content:"full"}:n}function S(t){return t.background!==null||t.content!==null}const W=t=>({[e.background]:t}),M=t=>t==="full"?{[e.content]:t,[e.contentMax]:void 0}:{[e.content]:t},F=t=>({[e.content]:"content",[e.contentMax]:t}),I=t=>t==="background"?{[e.background]:void 0}:{[e.content]:void 0,[e.contentMax]:void 0},a="siteWidths",b=t=>t==="full"||t==="content";function o(t){return b(t)?t:null}function H(t,n){return{[a]:{background:o(t),content:o(n)}}}function O(t){const c=t.editor?.metadata?.[a];return{background:o(c?.background),content:o(c?.content)}}export{x as NO_WIDTH_ROWS,k as SECTION_WIDTH_CHOICES,p as SECTION_WIDTH_FAMILY,e as SECTION_WIDTH_KEYS,a as SITE_WIDTHS_KEY,f as WIDTH_CHOICE_LABEL,i as WIDTH_INHERIT,d as WIDTH_MODES,T as chromeOwnWidth,S as hasOwnSectionWidth,C as hasWidthFamily,s as isInheritValue,o as normalizeSiteBackground,g as ownSectionWidth,l as resolveWidth,W as sectionBackgroundPatch,F as sectionContentMaxPatch,M as sectionContentPatch,m as sectionRunsFullWidth,I as sectionWidthResetPatch,H as siteWidthsMetadata,O as siteWidthsOf};
@@ -1,3 +1,4 @@
1
+ import { type OwnSectionWidth } from "./section-width.js";
1
2
  export declare function isFrameContainer(type: unknown): boolean;
2
3
  export declare const BOX_GUTTER_KEY = "contentWidth";
3
4
  export declare const BOX_GUTTER_OFF = "full";
@@ -14,5 +15,6 @@ export declare function boxRunsEdgeToEdge(props: {
14
15
  scrollDirection?: unknown;
15
16
  bgImage?: unknown;
16
17
  }): boolean;
18
+ export declare function ownNodeWidth(type: unknown, props: Readonly<Record<string, unknown>>): OwnSectionWidth;
17
19
  export declare function siteDrawsGutter(siteContent: unknown): boolean;
18
20
  export declare function boxPlaceOf(content: unknown, id: unknown, site: boolean): BoxPlace | undefined;
@@ -1 +1 @@
1
- import{isNodeList as l}from"efficient-easel/data";import{isVerticalLoop as g}from"../animation/loop.js";import{isBackgroundBox as p}from"./box-background.js";const G=new Set(["Flex","Grid"]);function b(t){return typeof t=="string"&&G.has(t)}const m="contentWidth",B="full",O="content";function E(t){const n=t?.[m];return n===B?!1:n===O?!0:void 0}function F(t,n){return t&&!n}function T(t){return t.loop==="scroll"&&t.direction!=="tabs"&&!p(typeof t.bgImage=="string"?t.bgImage:null)&&!g(t.scrollDirection)}function w(t){return t!=="full"}function A(t,n,i){if(!Array.isArray(t)||typeof n!="string")return;const u=(d,o)=>{for(const s of d){const e=s?.props??{};if(e.id===n)return o;const r=b(s?.type),x=r&&(o.inBox?E(e)??i:i),a={insideGutter:o.insideGutter||x||r&&T(e),inBox:o.inBox||r};for(const f of Object.values(e)){if(!l(f))continue;const c=u(f,a);if(c!==void 0)return c}}};return u(t,{insideGutter:!1,inBox:!1})}export{m as BOX_GUTTER_KEY,B as BOX_GUTTER_OFF,O as BOX_GUTTER_ON,E as boxGutterOf,A as boxPlaceOf,T as boxRunsEdgeToEdge,F as drawsSiteGutter,b as isFrameContainer,w as siteDrawsGutter};
1
+ import{isNodeList as w}from"efficient-easel/data";import{isVerticalLoop as B}from"../animation/loop.js";import{isBackgroundBox as O}from"./box-background.js";import{ownSectionWidth as d}from"./section-width.js";const E=new Set(["Flex","Grid"]);function a(t){return typeof t=="string"&&E.has(t)}const T="contentWidth",_="full",y="content";function R(t){const n=t?.[T];return n===_?!1:n===y?!0:void 0}function v(t,n){return t&&!n}function l(t){return t.loop==="scroll"&&t.direction!=="tabs"&&t.direction!=="accordion"&&!O(typeof t.bgImage=="string"?t.bgImage:null)&&!B(t.scrollDirection)}function h(t,n){return a(t)&&l(n)?d({}):d(n)}function I(t){return t!=="full"}function U(t,n,x){if(!Array.isArray(t)||typeof n!="string")return;const s=(m,e,g,G)=>{for(const r of m){const o=r?.props??{};if(o.id===n)return e;const i=a(r?.type),u=(G?h(r?.type,o).content:null)==="content"?!0:g,b=i&&(e.inBox?R(o)??u:u),p={insideGutter:e.insideGutter||b||i&&l(o),inBox:e.inBox||i};for(const c of Object.values(o)){if(!w(c))continue;const f=s(c,p,u,!1);if(f!==void 0)return f}}};return s(t,{insideGutter:!1,inBox:!1},x,!0)}export{T as BOX_GUTTER_KEY,_ as BOX_GUTTER_OFF,y as BOX_GUTTER_ON,R as boxGutterOf,U as boxPlaceOf,l as boxRunsEdgeToEdge,v as drawsSiteGutter,a as isFrameContainer,h as ownNodeWidth,I as siteDrawsGutter};
@@ -0,0 +1,7 @@
1
+ import { type AutoRule, type ViewValueKind } from "efficient-easel/screen/lib/content/view-tiers";
2
+ export declare function viewRules(): Record<ViewValueKind, AutoRule>;
3
+ export interface ViewOverrides<T> {
4
+ tablet?: T;
5
+ phone?: T;
6
+ }
7
+ export declare function viewOverrides<T>(kind: ViewValueKind, desktop: T, tablet: T | null | undefined, phone: T | null | undefined, rules?: Record<ViewValueKind, AutoRule>): ViewOverrides<T>;
@@ -0,0 +1 @@
1
+ import{AUTO_RULES as c,FOLLOW_RULES as p,isAuto as E,resolveViewValue as L}from"efficient-easel/screen/lib/content/view-tiers";import{RESPONSIVE_RULES as O}from"./view-lines.js";function R(){return O==="v2"?c:p}function v(f,n,r,i,s=R()){const e=L(f,n,r,i,s),o={},u=(l,t)=>!E(l)||t!=null&&t!==n;return u(r,e.tablet)&&(o.tablet=e.tablet),u(i,e.phone)&&(o.phone=e.phone),o}export{v as viewOverrides,R as viewRules};
@@ -6,7 +6,7 @@ export type BlockSlots = Record<string, {
6
6
  allow?: string[];
7
7
  disallow?: string[];
8
8
  }>;
9
- export type BlockRender = Pick<Block, "label" | "defaultProps" | "render" | "inline"> & {
9
+ export type BlockRender = Pick<Block, "label" | "defaultProps" | "render" | "inline" | "phoneOrder"> & {
10
10
  fields?: BlockSlots;
11
11
  };
12
12
  export type BlockMeta = Omit<BlockRender, "render">;
@@ -1,5 +1,9 @@
1
1
  import type { BlockMeta } from "../../block-types.js";
2
2
  export declare const FlexSlots: {
3
+ rowTitle: {
4
+ type: "slot";
5
+ allow: string[];
6
+ };
3
7
  content: {
4
8
  type: "slot";
5
9
  };
@@ -1 +1 @@
1
- const t={content:{type:"slot"}},e={label:"Box",fields:t,defaultProps:{direction:"row",justify:"start",align:"stretch",wrap:!0,content:[],share:"equal",blockSpacing:"gap",padV2:!0,sectionPaddingTop:24,sectionPaddingBottom:24}};export{e as FlexMeta,t as FlexSlots};
1
+ import{phoneKey as t}from"efficient-easel/screen/lib/content/view-tiers";const o={rowTitle:{type:"slot",allow:["Text"]},content:{type:"slot"}},r={label:"Box",fields:o,phoneOrder:{prop:t("order"),slot:"content"},defaultProps:{direction:"row",justify:"start",align:"stretch",wrap:!0,content:[],share:"equal",blockSpacing:"gap",padV2:!0,sectionPaddingTop:24,sectionPaddingBottom:24}};export{r as FlexMeta,o as FlexSlots};
@@ -41,6 +41,9 @@ export type PassInspector = {
41
41
  cellWidthFields: () => FieldMap;
42
42
  widthField: (defaultMode: "full" | "page") => FieldMap;
43
43
  boxGutterFields: () => FieldMap;
44
+ sectionOwnWidthFields: (options?: {
45
+ drawsFullOnItsOwn?: boolean;
46
+ }) => FieldMap;
44
47
  heightFields: () => FieldMap;
45
48
  anchorFields: () => FieldMap;
46
49
  stickFields: () => FieldMap;
@@ -32,4 +32,4 @@ WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value
32
32
 
33
33
  WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
34
34
 
35
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,SubscribeBlogs:"card 66396 — folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},u=["Grid","Spacer"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),T=a("commerce"),E=a("service"),c="Flex",s="Box",S=`${s}es`;function d(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===c?d(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,c as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,E as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,w as labelAtLevel,d as labelForFlex};
35
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,SubscribeBlogs:"card 66396 — folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},u=["Grid","Spacer"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ArticleBody:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),T=a("commerce"),E=a("service"),c="Flex",s="Box",S=`${s}es`;function d(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===c?d(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,c as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,E as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,w as labelAtLevel,d as labelForFlex};
@@ -80,6 +80,7 @@ export declare const WEB_BUILDER_WORDS: {
80
80
  readonly "A world map of your locations with a legend \u2014 designed here, sold worldwide.": "A world map of your locations with a legend — designed here, sold worldwide.";
81
81
  readonly "A write-a-review form \u2014 submissions wait for your approval before they show.": "A write-a-review form — submissions wait for your approval before they show.";
82
82
  readonly "About & brand story": "About & brand story";
83
+ readonly Accordion: "Accordion";
83
84
  readonly Account: "Account";
84
85
  readonly "Active tab": "Active tab";
85
86
  readonly Add: "Add";
@@ -303,6 +304,7 @@ export declare const WEB_BUILDER_WORDS: {
303
304
  readonly "Contact, FAQ & forms": "Contact, FAQ & forms";
304
305
  readonly Contain: "Contain";
305
306
  readonly Content: "Content";
307
+ readonly "Content cannot be wider than the background.": "Content cannot be wider than the background.";
306
308
  readonly "Content position": "Content position";
307
309
  readonly "Content width": "Content width";
308
310
  readonly Contents: "Contents";
@@ -783,6 +785,7 @@ export declare const WEB_BUILDER_WORDS: {
783
785
  readonly Offices: "Offices";
784
786
  readonly "Offset tall": "Offset tall";
785
787
  readonly "On 1 page": "On 1 page";
788
+ readonly "On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.": "On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.";
786
789
  readonly "On a phone": "On a phone";
787
790
  readonly "On every blog post.": "On every blog post.";
788
791
  readonly "On every page": "On every page";
@@ -856,9 +859,11 @@ export declare const WEB_BUILDER_WORDS: {
856
859
  readonly Popup: "Popup";
857
860
  readonly "Portal card": "Portal card";
858
861
  readonly "Portal card (stock + button + orders)": "Portal card (stock + button + orders)";
862
+ readonly "Portrait 4:5": "Portrait 4:5";
859
863
  readonly Position: "Position";
860
864
  readonly Positions: "Positions";
861
865
  readonly "Post Card": "Post Card";
866
+ readonly "Poster 2:3": "Poster 2:3";
862
867
  readonly Prefix: "Prefix";
863
868
  readonly Preview: "Preview";
864
869
  readonly "Preview hover state": "Preview hover state";
@@ -893,6 +898,7 @@ export declare const WEB_BUILDER_WORDS: {
893
898
  readonly Quote: "Quote";
894
899
  readonly Quotes: "Quotes";
895
900
  readonly Rating: "Rating";
901
+ readonly Ratio: "Ratio";
896
902
  readonly "Read out in place of the picture, and shown if it can\u2019t load.": "Read out in place of the picture, and shown if it can’t load.";
897
903
  readonly "Read the story": "Read the story";
898
904
  readonly "Read time": "Read time";
@@ -1051,7 +1057,9 @@ export declare const WEB_BUILDER_WORDS: {
1051
1057
  readonly "Square 1:1": "Square 1:1";
1052
1058
  readonly Squares: "Squares";
1053
1059
  readonly Stacked: "Stacked";
1060
+ readonly "Stacks below": "Stacks below";
1054
1061
  readonly Standard: "Standard";
1062
+ readonly "Starts open": "Starts open";
1055
1063
  readonly Stat: "Stat";
1056
1064
  readonly "Stat & note": "Stat & note";
1057
1065
  readonly "Stat label": "Stat label";
@@ -1072,6 +1080,7 @@ export declare const WEB_BUILDER_WORDS: {
1072
1080
  readonly "Still to come: a hollow dot, and the gold line stops before it.": "Still to come: a hollow dot, and the gold line stops before it.";
1073
1081
  readonly "Storefront \u2192 Blog": "Storefront → Blog";
1074
1082
  readonly "Storefront \u25B8 Sites \u25B8 Settings": "Storefront ▸ Sites ▸ Settings";
1083
+ readonly "Story 9:16": "Story 9:16";
1075
1084
  readonly "Story Timeline": "Story Timeline";
1076
1085
  readonly "Street address": "Street address";
1077
1086
  readonly "Strip fill": "Strip fill";
@@ -1146,6 +1155,7 @@ export declare const WEB_BUILDER_WORDS: {
1146
1155
  readonly "The header holds at most 3 sections": "The header holds at most 3 sections";
1147
1156
  readonly "The name was not saved. Try again.": "The name was not saved. Try again.";
1148
1157
  readonly "The newest 30 are kept. Named versions are always kept.": "The newest 30 are kept. Named versions are always kept.";
1158
+ readonly "The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.": "The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.";
1149
1159
  readonly "The preview did not open. Try again.": "The preview did not open. Try again.";
1150
1160
  readonly "The room left at the left and right edge of every page.": "The room left at the left and right edge of every page.";
1151
1161
  readonly "The section it belonged to has been changed or removed.": "The section it belonged to has been changed or removed.";
@@ -1224,6 +1234,7 @@ export declare const WEB_BUILDER_WORDS: {
1224
1234
  readonly "Tyre Sizes": "Tyre Sizes";
1225
1235
  readonly "URL pill": "URL pill";
1226
1236
  readonly "URL: /{slug}": "URL: /{slug}";
1237
+ readonly "Under this screen width the blocks stand one under another, with the Phone Gap and Padding.": "Under this screen width the blocks stand one under another, with the Phone Gap and Padding.";
1227
1238
  readonly Undo: "Undo";
1228
1239
  readonly "Undo did not work. Nothing changed. Try again.": "Undo did not work. Nothing changed. Try again.";
1229
1240
  readonly Ungrouped: "Ungrouped";
@@ -1339,6 +1350,7 @@ export declare const WEB_BUILDER_WORDS: {
1339
1350
  readonly "the theme's section background": "the theme's section background";
1340
1351
  readonly "this container's own spacing": "this container's own spacing";
1341
1352
  readonly upper: "upper";
1353
+ readonly vh: "vh";
1342
1354
  readonly "{day}, {time}": "{day}, {time}";
1343
1355
  readonly "{grade} on the button": "{grade} on the button";
1344
1356
  readonly "{label} hex code": "{label} hex code";