efficient-web-builder 50.0.0 → 51.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 (94) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -1
  3. package/dist/editor/components/BlogPostSource.js +1 -1
  4. package/dist/editor/components/HeroPartPanel.js +1 -1
  5. package/dist/editor/components/MediaUploadField.js +1 -1
  6. package/dist/editor/components/SectionEditor.js +1 -1
  7. package/dist/editor/components/ThemeCard.js +1 -1
  8. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  9. package/dist/editor/components/storefront-editor.css +1 -1
  10. package/dist/editor/components/usePartMotion.d.ts +1 -1
  11. package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
  12. package/dist/editor/components/usePartTypingDeps.js +1 -0
  13. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  14. package/dist/editor/lib/animation/fields.d.ts +1 -1
  15. package/dist/editor/lib/animation/fields.js +1 -1
  16. package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
  17. package/dist/editor/lib/animation/hover-fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  22. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  24. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  25. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
  26. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  27. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  28. package/dist/editor/lib/document/canvas-typing.js +1 -1
  29. package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
  30. package/dist/editor/lib/document/card-copy-rows.js +1 -0
  31. package/dist/editor/lib/document/controls.d.ts +1 -0
  32. package/dist/editor/lib/document/controls.js +1 -1
  33. package/dist/editor/lib/document/darken-fields.d.ts +4 -0
  34. package/dist/editor/lib/document/darken-fields.js +1 -0
  35. package/dist/editor/lib/document/overrides.js +1 -1
  36. package/dist/format/components/stored-pick-row.d.ts +8 -0
  37. package/dist/format/components/stored-pick-row.js +1 -0
  38. package/dist/format/lib/animation/hover.d.ts +32 -1
  39. package/dist/format/lib/animation/hover.js +1 -1
  40. package/dist/format/lib/content/box-layout.d.ts +11 -0
  41. package/dist/format/lib/content/box-layout.js +1 -1
  42. package/dist/format/lib/content/box-shape.d.ts +2 -1
  43. package/dist/format/lib/content/box-shape.js +1 -1
  44. package/dist/format/lib/content/card-template.d.ts +6 -0
  45. package/dist/format/lib/content/card-template.js +1 -1
  46. package/dist/format/lib/content/image-treatment.d.ts +23 -4
  47. package/dist/format/lib/content/image-treatment.js +1 -1
  48. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  49. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  50. package/dist/format/lib/document/box-footer.js +1 -1
  51. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  52. package/dist/format/lib/document/easel-row-words.js +1 -1
  53. package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
  54. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
  55. package/dist/format/lib/document/passes/types.d.ts +6 -0
  56. package/dist/format/lib/document/section-catalog.js +2 -2
  57. package/dist/format/lib/editor-words-catalogue.d.ts +9 -2
  58. package/dist/format/lib/editor-words-catalogue.js +3 -3
  59. package/dist/format/lib/sections/hero-overlay.js +1 -1
  60. package/dist/render/components/ButtonBlock.d.ts +1 -1
  61. package/dist/render/components/ButtonBlock.js +1 -1
  62. package/dist/render/components/ContactLocations.d.ts +3 -1
  63. package/dist/render/components/ContactLocations.js +2 -2
  64. package/dist/render/components/Flex.d.ts +5 -1
  65. package/dist/render/components/Flex.js +1 -1
  66. package/dist/render/components/HeroPictures.d.ts +10 -0
  67. package/dist/render/components/HeroPictures.js +1 -1
  68. package/dist/render/components/HeroSingle.js +1 -1
  69. package/dist/render/components/HeroSlide.js +1 -1
  70. package/dist/render/components/ImageBlock.d.ts +6 -1
  71. package/dist/render/components/ImageBlock.js +1 -1
  72. package/dist/render/components/Manifesto.d.ts +3 -1
  73. package/dist/render/components/Manifesto.js +1 -1
  74. package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
  75. package/dist/render/components/PhotoHoverSheet.js +1 -0
  76. package/dist/render/components/PictureWash.d.ts +6 -0
  77. package/dist/render/components/PictureWash.js +1 -0
  78. package/dist/render/components/Placeholder.js +1 -1
  79. package/dist/render/components/PostCard.js +1 -1
  80. package/dist/render/components/Split.d.ts +3 -1
  81. package/dist/render/components/Split.js +1 -1
  82. package/dist/render/components/Text.d.ts +2 -2
  83. package/dist/render/components/Text.js +1 -1
  84. package/dist/render/lib/animation/part-motion.js +2 -2
  85. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  86. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  87. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  88. package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
  89. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  90. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  91. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  92. package/dist/render/lib/document/passes/index.js +1 -1
  93. package/dist/render/lib/document/passes/section-animation.js +1 -1
  94. package/package.json +4 -4
@@ -9,12 +9,31 @@ export declare function imageTreatmentProps(grayscale?: boolean | null): {
9
9
  };
10
10
  };
11
11
  export declare const SITE_PHOTO_CLASS = "sf-photo-grayscale";
12
+ export declare const PHOTO_HOST_ATTR = "data-sf-photo-host";
13
+ export declare const PHOTO_HOVER_VARS: {
14
+ readonly duration: "--sf-photo-hover-duration";
15
+ readonly delay: "--sf-photo-hover-delay";
16
+ };
12
17
  export declare const SITE_PHOTO_CSS: string;
13
18
  export interface ImageTreatment {
14
19
  className?: string;
15
- style?: {
16
- filter: string;
17
- };
20
+ style?: Record<string, string>;
21
+ sheet?: string;
18
22
  }
19
- export declare function resolveImageTreatment(block?: boolean | null, site?: boolean | null): ImageTreatment;
23
+ export type PictureHoverTreatment = {
24
+ kind: string;
25
+ duration: number;
26
+ delay: number;
27
+ };
28
+ export declare function resolveImageTreatment(block?: boolean | null, site?: boolean | null, hover?: PictureHoverTreatment | null): ImageTreatment;
29
+ export declare const NEXT_PICTURE_CLASS = "sf-photo-next";
30
+ export declare const CARD_COPY_ATTR = "data-sf-repeat";
31
+ export declare const PICTURE_ZOOM_CLASS = "sf-photo-zoom";
32
+ export declare const PICTURE_ZOOM_VAR = "--sf-photo-zoom";
33
+ export declare const PICTURE_WASH_CLASS = "sf-photo-wash";
34
+ export declare const PICTURE_WASH_REST_CLASS = "sf-photo-wash-rest";
35
+ export declare const PICTURE_WASH_HOVER_CLASS = "sf-photo-wash-hover";
36
+ export declare const PICTURE_FRAME_CLASS = "sf-photo-frame";
37
+ export declare const NEXT_PICTURE_CSS: string;
38
+ export declare function resolveNextPicture(hover?: PictureHoverTreatment | null): ImageTreatment | null;
20
39
  export declare function sitePhotographyTokens(grayscale?: boolean | null): Record<string, string>;
@@ -1 +1 @@
1
- const o="grayscale(1) contrast(1.03)",s="Black and white";function n(e){return e===!0?{filter:o}:{}}function a(e){const{filter:r}=n(e);return r?{style:{filter:r}}:{}}const t="sf-photo-grayscale",i=`@media (hover:hover){.${t}{filter:${o};transition:filter 160ms ease}.${t}:hover{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${t}{transition:none}}`;function c(e,r){return typeof e=="boolean"?e?a(!0):{}:r===!0?{className:t}:{}}function u(e){return e===!0?{[t]:i}:{}}export{o as IMAGE_GRAYSCALE_FILTER,s as IMAGE_GRAYSCALE_LABEL,t as SITE_PHOTO_CLASS,i as SITE_PHOTO_CSS,a as imageTreatmentProps,n as imageTreatmentStyle,c as resolveImageTreatment,u as sitePhotographyTokens};
1
+ import{MOTION_TIMING as _}from"efficient-shell/format";const c="grayscale(1) contrast(1.03)",E="Black and white";function l(o){return o===!0?{filter:c}:{}}function S(o){const{filter:e}=l(o);return e?{style:{filter:e}}:{}}const r="sf-photo-grayscale",T="data-sf-photo-host",f={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},v=`@media (hover:hover){.${r}{filter:${c};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${r}:hover,[data-sf-photo-host]:hover .${r}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${r}{transition:none}}`;function u(o){const e=_.hover,t={...o.duration!==e.duration.default?{[f.duration]:`${o.duration}s`}:{},...o.delay!==e.delay.default?{[f.delay]:`${o.delay}s`}:{}};return Object.keys(t).length?t:void 0}function C(o,e,t){if(o===!0)return S(!0);if(t?.kind==="mono"){const d=u(t);return{className:r,sheet:v,...d?{style:d}:{}}}return o===!1?{}:e===!0?{className:r}:{}}const n="sf-photo-next",$="data-sf-repeat",p="sf-photo-zoom",A="--sf-photo-zoom",R="sf-photo-wash",s="sf-photo-wash-rest",a="sf-photo-wash-hover",i="sf-photo-frame",h=(o,e)=>{const t=`:not([${$}]:not(:hover) .${o})`;return`${e},[${$}]:hover .${o}${t},[${T}]:hover .${o}${t}`},m=o=>`${o} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,x=`.${n}{opacity:0}.${a}{opacity:0}@media (hover:hover){.${n},.${s},.${a}{transition:${m("opacity")}}${h(n,`.${n}:hover,.${i}:hover .${n}`)},${h(a,`.${i}:hover .${a}`)}{opacity:1}${h(s,`.${i}:hover .${s}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${p}{transition:${m("transform")}}${h(p,`.${i}:hover .${p}`)}{transform:scale(var(${A}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${n},.${s},.${a}{transition:none}}`;function O(o){if(o?.kind!=="nextImage")return null;const e=u(o);return{className:n,sheet:x,...e?{style:e}:{}}}function I(o){return o===!0?{[r]:v}:{}}export{$ as CARD_COPY_ATTR,c as IMAGE_GRAYSCALE_FILTER,E as IMAGE_GRAYSCALE_LABEL,n as NEXT_PICTURE_CLASS,x as NEXT_PICTURE_CSS,T as PHOTO_HOST_ATTR,f as PHOTO_HOVER_VARS,i as PICTURE_FRAME_CLASS,R as PICTURE_WASH_CLASS,a as PICTURE_WASH_HOVER_CLASS,s as PICTURE_WASH_REST_CLASS,p as PICTURE_ZOOM_CLASS,A as PICTURE_ZOOM_VAR,r as SITE_PHOTO_CLASS,v as SITE_PHOTO_CSS,S as imageTreatmentProps,l as imageTreatmentStyle,C as resolveImageTreatment,O as resolveNextPicture,I as sitePhotographyTokens};
@@ -1 +1 @@
1
- const e={slides:{type:"slot"},strip:{type:"slot",allow:["Flex"]}},t={label:"Hero Slideshow",fields:e,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};export{t as HeroMeta,e as HeroSlots};
1
+ const t={slides:{type:"slot"},strip:{type:"slot",allow:["Flex"]}},e={label:"Hero",fields:t,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};export{e as HeroMeta,t as HeroSlots};
@@ -1 +1 @@
1
- import{FOCAL_DEFAULT as e}from"efficient-shell/format";import{DEFAULT_OVERLAY_POSITION as r}from"../../../../sections/hero-overlay.js";import{DEFAULT_TINT as o}from"../../../../content/tint.js";const t={boxes:{type:"slot",allow:["HeroGroup"]}},p={label:"Hero",fields:t,defaultProps:{mediaType:"image",imageFocal:e,tintColor:o,tintOpacity:0,overlay:100,overlayColor:o,overlayPosition:r}};export{p as HeroSingleMeta,t as HeroSingleSlots};
1
+ import{FOCAL_DEFAULT as e}from"efficient-shell/format";import{DEFAULT_OVERLAY_POSITION as r}from"../../../../sections/hero-overlay.js";import{DEFAULT_TINT as o}from"../../../../content/tint.js";const t={boxes:{type:"slot",allow:["HeroGroup"]}},p={label:"Hero Single",fields:t,defaultProps:{mediaType:"image",imageFocal:e,tintColor:o,tintOpacity:0,overlay:100,overlayColor:o,overlayPosition:r}};export{p as HeroSingleMeta,t as HeroSingleSlots};
@@ -1 +1 @@
1
- import{FOOTER_LOGO_PX as T}from"../logo/logo-size.js";import{resolveContainerGap as E}from"../content/container-gap.js";import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{finiteNumber as p}from"../finite-number.js";import{buildSectionGroup as _,SITE_FOOTER_TYPE as O}from"./section-groups.js";const g="Flex",P={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock",FooterPayment:"PaymentLogosBlock"},x=o=>{const{id:e,...t}=o;return t},d=o=>typeof o=="string"?o:"",f={sm:12,md:13,lg:15},y="md",h=1.5,L={size:13,lineHeight:h,width:280},A=14,B=40,b=o=>o==="center"||o==="right"?o:"left";function G(o){const e={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[s,r]of t){const n=p(o[s]);n&&(e[r]=n)}return e}function F(o,e){const t=o.props??{},s=P[o.type];if(s)return[e(s,x(t))];switch(o.type){case"FooterLogo":{const r=b(t.align),n=e("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(T*((p(t.widthPct)??100)/100)),href:"/",align:r,...G(t)}),i=d(t.tagline).trim();return i?[n,e("Text",{text:i,tone:"dim",align:r,_partStyles:{text:{...L}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&t.size in f?t.size:y;return[e("Text",{text:d(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:f[r],lineHeight:h}}})]}case"FooterDivider":{const r=p(t.thickness),n=p(t.lengthPct);return[e("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{hideOnMobile:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[e(g,{direction:t.direction==="horizontal"?"row":"column",gap:E("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...a,content:r.flatMap(n=>F(n,e))})]}default:return[]}}function M(o,e,t){const s=o&&Array.isArray(o.props?.blocks)?o.props.blocks:[],r=c=>e(g,{direction:"row",wrap:!0,share:"equal",gap:B,content:c}),n=[];let i=[];for(const c of s){const l=F(c,e);if(c.type==="FooterDivider"){i.length&&n.push(r(i)),i=[],n.push(...l);continue}l.length<=1?i.push(...l):i.push(e(g,{direction:"column",gap:A,align:"stretch",...a,content:l}))}(i.length||!n.length)&&n.push(r(i));const m=e(g,{direction:"column",content:[e("LegalLineBlock")]}),u=_(O,t,[...n,m]);return{...u,props:{...u.props,...o?.props?.width==="full"?{fullWidth:!0}:{}}}}export{f as FOOTER_TEXT_PX,M as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
1
+ import{FOOTER_LOGO_PX as O}from"../logo/logo-size.js";import{resolveContainerGap as E}from"../content/container-gap.js";import{NESTED_BOX_PADDING as d}from"../content/box-layout.js";import{finiteNumber as p}from"../finite-number.js";import{isNodeList as _}from"efficient-easel/data";import{templateOnInsert as P}from"../content/card-template.js";import{buildSectionGroup as y,SITE_FOOTER_TYPE as L}from"./section-groups.js";const u="Flex",x={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock",FooterPayment:"PaymentLogosBlock"},A=e=>{const{id:o,...t}=e;return t},g=e=>typeof e=="string"?e:"",f={sm:12,md:13,lg:15},b="md",m=1.5,B={size:13,lineHeight:m,width:280},w=14,G=40,I=e=>e==="center"||e==="right"?e:"left";function S(e){const o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[r,n]of t){const i=p(e[r]);i&&(o[n]=i)}return o}function N(e,o,t){const r=t(e,A(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:h(o.template,String(r.props.id))}};if(o.template!==void 0)return r;const n=P(e,r.props);return n===r.props?r:{...r,props:n}}function h(e,o,t={at:0}){return e.map(r=>{const n={...r.props,id:`${o}~t${t.at++}`};for(const[i,s]of Object.entries(n))_(s)&&(n[i]=h(s,o,t));return{...r,props:n}})}function F(e,o){const t=e.props??{},r=x[e.type];if(r)return[N(r,t,o)];switch(e.type){case"FooterLogo":{const n=I(t.align),i=o("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(O*((p(t.widthPct)??100)/100)),href:"/",align:n,...S(t)}),s=g(t.tagline).trim();return s?[i,o("Text",{text:s,tone:"dim",align:n,_partStyles:{text:{...B}}})]:[i]}case"FooterText":{const n=typeof t.size=="string"&&t.size in f?t.size:b;return[o("Text",{text:g(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:f[n],lineHeight:m}}})]}case"FooterDivider":{const n=p(t.thickness),i=p(t.lengthPct);return[o("Divider",{...n!==void 0?{thickness:n}:{},...i!==void 0?{lengthPct:i}:{},...t.hideOnMobile===!0?{hideOnMobile:!0}:{}})]}case"FooterGroup":{const n=Array.isArray(t.blocks)?t.blocks:[];return[o(u,{direction:t.direction==="horizontal"?"row":"column",gap:E("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...d,content:n.flatMap(i=>F(i,o))})]}default:return[]}}function v(e,o,t){const r=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=c=>o(u,{direction:"row",wrap:!0,share:"equal",gap:G,content:c}),i=[];let s=[];for(const c of r){const l=F(c,o);if(c.type==="FooterDivider"){s.length&&i.push(n(s)),s=[],i.push(...l);continue}l.length<=1?s.push(...l):s.push(o(u,{direction:"column",gap:w,align:"stretch",...d,content:l}))}(s.length||!i.length)&&i.push(n(s));const T=o(u,{direction:"column",content:[o("LegalLineBlock")]}),a=y(L,t,[...i,T]);return{...a,props:{...a.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}export{f as FOOTER_TEXT_PX,v as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
@@ -5,4 +5,5 @@ export declare const EASEL_ROW_WORDS: {
5
5
  readonly shrink: "Shrink to fit";
6
6
  readonly line: "One line";
7
7
  readonly onTablet: "{value} on tablet";
8
+ readonly onDesktop: "{value} on desktop";
8
9
  };
@@ -1 +1 @@
1
- const t={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink to fit",line:"One line",onTablet:"{value} on tablet"};export{t as EASEL_ROW_WORDS};
1
+ const t={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink to fit",line:"One line",onTablet:"{value} on tablet",onDesktop:"{value} on desktop"};export{t as EASEL_ROW_WORDS};
@@ -0,0 +1,2 @@
1
+ import type { BlockPass } from "./types.js";
2
+ export declare const cardTemplateOnInsert: BlockPass;
@@ -0,0 +1 @@
1
+ import{templateOnInsert as c,templateOnRead as m}from"../../content/card-template.js";const i=e=>e.fields?.template?.type==="slot",g={name:"cardTemplateOnInsert",applies:(e,s,t)=>i(t),panel(e,s){const t=e.resolveData;e.resolveData=(r,o)=>{const n=r.props??{},p=o?.trigger,l=p==="insert"?c(s,n):p==="copy"?m(s,n):n,a=l===n?r:{...r,props:l};return t?t(a,o):a}}};export{g as cardTemplateOnInsert};
@@ -11,12 +11,18 @@ export type PassResolveFields = (data: {
11
11
  type?: string;
12
12
  } | null;
13
13
  }) => unknown;
14
+ export type PassResolveData = (data: {
15
+ props?: Record<string, unknown>;
16
+ }, params: {
17
+ trigger?: string;
18
+ } & Record<string, unknown>) => unknown;
14
19
  export type PassBlock = {
15
20
  label?: string;
16
21
  fields?: Record<string, unknown>;
17
22
  textParts?: Record<string, unknown>;
18
23
  defaultProps?: Record<string, unknown>;
19
24
  resolveFields?: PassResolveFields;
25
+ resolveData?: PassResolveData;
20
26
  render: (props: PassRenderProps) => ReactNode;
21
27
  };
22
28
  type FieldMap = Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero Slideshow",set:"general"},{type:"HeroSingle",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A — shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or a shape (Big left, Big right, Bigger left, Bigger right) and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` — 256 documents): 2 Grid nodes, and they are ONE Grid counted twice — the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 — equal thirds — and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n⚠️ THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned — hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. ⛔ So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says — Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS — the owner redoes live sections himself.\n\n⚠️ AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot — a Box included — refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` §3 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings — it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 — it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n⚠️ THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call — nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n • settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT — the map holds only TimelineTrack and Footprint, both AUTHORED lists\n • read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n • panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n • head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero — neither can style them — and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS — the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n⚠️ AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',Spacer:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
1
+ const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A — shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or a shape (Big left, Big right, Bigger left, Bigger right) and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` — 256 documents): 2 Grid nodes, and they are ONE Grid counted twice — the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 — equal thirds — and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n⚠️ THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned — hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. ⛔ So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says — Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS — the owner redoes live sections himself.\n\n⚠️ AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot — a Box included — refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` §3 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings — it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 — it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n⚠️ THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call — nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n • settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT — the map holds only TimelineTrack and Footprint, both AUTHORED lists\n • read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n • panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n • head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero — neither can style them — and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS — the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n⚠️ AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',Spacer:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
2
2
 
3
3
  WHAT REPLACES IT: a Divider with Style set to None. It draws no line, only its space, and that space is the Divider's Padding row (top and bottom, each with its phone value): the Spacer's 24 / 48 / 96 / 160 px are None with Padding 12 + 12, 24 + 24, 48 + 48, 80 + 80. \`scripts/test-divider-holds-the-spacer.tsx\` §5 holds it.
4
4
 
@@ -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",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"),d="Flex",s="Box",S=`${s}es`;function c(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===d?c(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,d 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,c 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",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"),d="Flex",s="Box",S=`${s}es`;function c(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===d?c(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,d 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,c as labelForFlex};
@@ -224,6 +224,7 @@ export declare const WEB_BUILDER_WORDS: {
224
224
  readonly "Button text color": "Button text color";
225
225
  readonly Buttons: "Buttons";
226
226
  readonly "Buy button": "Buy button";
227
+ readonly "By spokes": "By spokes";
227
228
  readonly "By the *numbers*": "By the *numbers*";
228
229
  readonly "By the numbers": "By the numbers";
229
230
  readonly "Call-to-Action Heading": "Call-to-Action Heading";
@@ -343,6 +344,7 @@ export declare const WEB_BUILDER_WORDS: {
343
344
  readonly Dark: "Dark";
344
345
  readonly "Dark band": "Dark band";
345
346
  readonly Darken: "Darken";
347
+ readonly "Darken on hover": "Darken on hover";
346
348
  readonly "Darken style": "Darken style";
347
349
  readonly Dashed: "Dashed";
348
350
  readonly "Data points": "Data points";
@@ -550,8 +552,8 @@ export declare const WEB_BUILDER_WORDS: {
550
552
  readonly Height: "Height";
551
553
  readonly Hero: "Hero";
552
554
  readonly "Hero & intros": "Hero & intros";
555
+ readonly "Hero Single": "Hero Single";
553
556
  readonly "Hero Slide": "Hero Slide";
554
- readonly "Hero Slideshow": "Hero Slideshow";
555
557
  readonly "Hero button": "Hero button";
556
558
  readonly "Hero line": "Hero line";
557
559
  readonly "Hidden on the page": "Hidden on the page";
@@ -1018,6 +1020,8 @@ export declare const WEB_BUILDER_WORDS: {
1018
1020
  readonly "Slide picker": "Slide picker";
1019
1021
  readonly "Slide picker placement": "Slide picker placement";
1020
1022
  readonly "Slide picker shape": "Slide picker shape";
1023
+ readonly "Slide {n}: own Overlay color.": "Slide {n}: own Overlay color.";
1024
+ readonly "Slides {n}: own Overlay color.": "Slides {n}: own Overlay color.";
1021
1025
  readonly Small: "Small";
1022
1026
  readonly "Small \u2014 40px": "Small — 40px";
1023
1027
  readonly "Social Logos": "Social Logos";
@@ -1177,6 +1181,7 @@ export declare const WEB_BUILDER_WORDS: {
1177
1181
  readonly TikTok: "TikTok";
1178
1182
  readonly "Timeline entries": "Timeline entries";
1179
1183
  readonly "Timezone chip": "Timezone chip";
1184
+ readonly Tint: "Tint";
1180
1185
  readonly "Tint color": "Tint color";
1181
1186
  readonly "Tint opacity": "Tint opacity";
1182
1187
  readonly Title: "Title";
@@ -1248,6 +1253,8 @@ export declare const WEB_BUILDER_WORDS: {
1248
1253
  readonly "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.": "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.";
1249
1254
  readonly "What people *say.*": "What people *say.*";
1250
1255
  readonly "What this does when a shopper points at it, or taps it on a phone.": "What this does when a shopper points at it, or taps it on a phone.";
1256
+ readonly "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.": "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.";
1257
+ readonly "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.": "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.";
1251
1258
  readonly WhatsApp: "WhatsApp";
1252
1259
  readonly "When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent.": "When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent.";
1253
1260
  readonly "When the text does not fit": "When the text does not fit";
@@ -1287,7 +1294,6 @@ export declare const WEB_BUILDER_WORDS: {
1287
1294
  readonly "Your unpublished changes are kept": "Your unpublished changes are kept";
1288
1295
  readonly Zigzag: "Zigzag";
1289
1296
  readonly Zoom: "Zoom";
1290
- readonly accent: "accent";
1291
1297
  readonly "all theme colors": "all theme colors";
1292
1298
  readonly "body text": "body text";
1293
1299
  readonly button: "button";
@@ -1305,6 +1311,7 @@ export declare const WEB_BUILDER_WORDS: {
1305
1311
  readonly item: "item";
1306
1312
  readonly label: "label";
1307
1313
  readonly link: "link";
1314
+ readonly main: "main";
1308
1315
  readonly manifesto: "manifesto";
1309
1316
  readonly none: "none";
1310
1317
  readonly "not set": "not set";