efficient-web-builder 58.0.0 → 59.1.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 (127) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/editor/components/SwitchToBoxFooter.js +1 -1
  3. package/dist/editor/components/useCardContentSwitchPass.d.ts +1 -0
  4. package/dist/editor/components/useCardContentSwitchPass.js +1 -0
  5. package/dist/editor/components/usePinnedChromeSeed.js +1 -1
  6. package/dist/editor/lib/document/ColourControl.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/Countdown/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
  13. package/dist/editor/lib/document/box-footer-rows.d.ts +3 -0
  14. package/dist/editor/lib/document/box-footer-rows.js +1 -0
  15. package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
  16. package/dist/editor/lib/document/card-row-fields.js +1 -1
  17. package/dist/editor/lib/document/choice-pictures.d.ts +2 -1
  18. package/dist/editor/lib/document/choice-pictures.js +1 -1
  19. package/dist/editor/lib/document/controls.d.ts +12 -6
  20. package/dist/editor/lib/document/controls.js +1 -1
  21. package/dist/editor/lib/document/page-root.js +2 -2
  22. package/dist/editor/lib/sections/text-layouts.js +1 -1
  23. package/dist/format/lib/content/block-align.d.ts +1 -0
  24. package/dist/format/lib/content/block-align.js +1 -1
  25. package/dist/format/lib/content/block-sources.d.ts +1 -0
  26. package/dist/format/lib/content/block-sources.js +1 -1
  27. package/dist/format/lib/content/box-background.d.ts +2 -2
  28. package/dist/format/lib/content/box-background.js +1 -1
  29. package/dist/format/lib/content/box-shape.d.ts +1 -1
  30. package/dist/format/lib/content/card-columns.d.ts +1 -0
  31. package/dist/format/lib/content/card-columns.js +1 -0
  32. package/dist/format/lib/content/card-place.js +1 -1
  33. package/dist/format/lib/content/card-state.d.ts +17 -0
  34. package/dist/format/lib/content/card-state.js +1 -1
  35. package/dist/format/lib/content/card-template.js +1 -1
  36. package/dist/format/lib/content/gallery-layout.d.ts +13 -1
  37. package/dist/format/lib/content/gallery-layout.js +1 -1
  38. package/dist/format/lib/content/page-background.js +1 -1
  39. package/dist/format/lib/content/page-width.d.ts +1 -0
  40. package/dist/format/lib/content/page-width.js +1 -1
  41. package/dist/format/lib/content/section-background.js +1 -1
  42. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +17 -0
  43. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -0
  44. package/dist/format/lib/document/blocks/general/Chart/meta.d.ts +1 -0
  45. package/dist/format/lib/document/blocks/general/Chart/meta.js +1 -1
  46. package/dist/format/lib/document/blocks/general/Countdown/meta.d.ts +1 -0
  47. package/dist/format/lib/document/blocks/general/Countdown/meta.js +1 -1
  48. package/dist/format/lib/document/blocks/general/Mockup/meta.d.ts +1 -0
  49. package/dist/format/lib/document/blocks/general/Mockup/meta.js +1 -1
  50. package/dist/format/lib/document/blocks/general/text-part-shapes.json +10 -0
  51. package/dist/format/lib/document/box-footer.d.ts +13 -2
  52. package/dist/format/lib/document/box-footer.js +1 -1
  53. package/dist/format/lib/document/card-content-switch.d.ts +21 -0
  54. package/dist/format/lib/document/card-content-switch.js +1 -0
  55. package/dist/format/lib/document/card-row-keys.d.ts +14 -0
  56. package/dist/format/lib/document/card-row-keys.js +1 -0
  57. package/dist/format/lib/document/cards-template-on-read.d.ts +1 -1
  58. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  59. package/dist/format/lib/document/container-blocks.js +1 -1
  60. package/dist/format/lib/document/neutralization-contracts.js +1 -1
  61. package/dist/format/lib/document/part-inks.d.ts +5 -2
  62. package/dist/format/lib/document/part-inks.js +1 -1
  63. package/dist/format/lib/document/section-catalog.js +2 -10
  64. package/dist/format/lib/document/seed-parts.d.ts +2 -0
  65. package/dist/format/lib/document/seed-parts.js +1 -1
  66. package/dist/format/lib/document/theme-slots.d.ts +20 -0
  67. package/dist/format/lib/document/theme-slots.js +1 -0
  68. package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
  69. package/dist/format/lib/editor-words-catalogue.js +2 -2
  70. package/dist/format/lib/sections/logo-look.d.ts +1 -1
  71. package/dist/format/lib/sections/logo-look.js +1 -1
  72. package/dist/format/lib/theme.d.ts +1 -0
  73. package/dist/format/lib/theme.js +4 -4
  74. package/dist/render/components/Cards.d.ts +2 -1
  75. package/dist/render/components/Cards.js +1 -1
  76. package/dist/render/components/ChartSection.d.ts +2 -1
  77. package/dist/render/components/ChartSection.js +1 -1
  78. package/dist/render/components/Countdown.d.ts +2 -1
  79. package/dist/render/components/Countdown.js +1 -1
  80. package/dist/render/components/FeaturedCover.d.ts +2 -1
  81. package/dist/render/components/FeaturedCover.js +1 -1
  82. package/dist/render/components/KeyFeatures.js +1 -1
  83. package/dist/render/components/Logos.d.ts +5 -1
  84. package/dist/render/components/Logos.js +1 -1
  85. package/dist/render/components/MockupSection.d.ts +2 -1
  86. package/dist/render/components/MockupSection.js +1 -1
  87. package/dist/render/components/SiteGutterFrame.d.ts +5 -1
  88. package/dist/render/components/SiteGutterFrame.js +1 -1
  89. package/dist/render/components/Text.d.ts +2 -1
  90. package/dist/render/components/Text.js +1 -1
  91. package/dist/render/lib/content/section-edge.d.ts +7 -0
  92. package/dist/render/lib/content/section-edge.js +1 -1
  93. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  94. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  95. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  96. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  97. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  98. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  99. package/dist/render/lib/document/blocks/general/Logos/wall-rows.d.ts +2 -0
  100. package/dist/render/lib/document/blocks/general/Logos/wall-rows.js +1 -0
  101. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  102. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  103. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -1
  104. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  105. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +3 -0
  106. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  107. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  108. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  109. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  110. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.d.ts +2 -0
  111. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -0
  112. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.d.ts +2 -0
  113. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -0
  114. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  115. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  116. package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
  117. package/dist/render/lib/document/head-core-boxes.js +1 -1
  118. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  119. package/dist/render/lib/document/page-render.js +1 -1
  120. package/dist/render/lib/document/passes/section-width.js +1 -1
  121. package/dist/render/lib/document/wall-labels.d.ts +3 -0
  122. package/dist/render/lib/document/wall-labels.js +1 -0
  123. package/dist/render/lib/sections/section-to-box.d.ts +1 -0
  124. package/dist/render/lib/sections/section-to-box.js +1 -1
  125. package/package.json +3 -3
  126. package/dist/editor/lib/document/theme-swatches.d.ts +0 -3
  127. package/dist/editor/lib/document/theme-swatches.js +0 -1
@@ -1 +1 @@
1
- const k=12,E=6,A=800,n={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]}},P=Object.keys(n),$=[2,3,4,6];function x(o,s){return P.filter(e=>e===s||o===null||n[e].across===o)}function _(o){return typeof o!="string"||o===""?null:n[o]??null}function u(o,s){return s?6/o.acrossPhone:12/o.across}function O(o){return[...o.lead??[],...o.desktop]}const f="sf-wall--";function b(o){return`${f}${o}`}function T(o){const s=n[o],e=`.${b(o)}`,a=[],p=(d,L,i=[])=>{const t=[],l=d.length,g=i.length;i.forEach(([r,c],h)=>{t.push(`${e} > :nth-child(${h+1}){grid-column:span ${r};grid-row:span ${c}}`)}),d.forEach(([r,c],h)=>{t.push(`${e} > :nth-child(${l}n+${g+h+1}){grid-column:span ${r};grid-row:span ${c}}`)});for(let r=1;r<l;r+=1)t.push(`${e}:has(> :nth-child(${l}n+${g+r}):last-child) > :nth-last-child(-n+${r}){grid-column:span ${L};grid-row:span 1}`);return t};return a.push(`${e}{grid-template-columns:repeat(12,minmax(0,1fr))}`),a.push(...p(s.desktop,u(s,!1),s.lead)),a.push("@media (max-width:800px){"),a.push(`${e}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...p(s.phone,u(s,!0),s.leadPhone)),a.push("}"),a.join("")}export{$ as GALLERY_ACROSS_BUCKETS,k as GALLERY_COLUMNS,E as GALLERY_COLUMNS_PHONE,n as GALLERY_LAYOUTS,f as GALLERY_LAYOUT_CLASS_PREFIX,P as GALLERY_LAYOUT_KEYS,A as GALLERY_PHONE_BREAKPOINT,x as galleryChoices,b as galleryLayoutClass,T as galleryLayoutCss,O as galleryPictureCells,u as galleryTailSpan,_ as resolveGalleryLayout};
1
+ import{SHAPE_TABLE as b}from"./gallery-card-layout.js";const $=12,L=6,T=800,c={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes · photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},x=Object.keys(c),w=[2,3,4,6];function _(o,e){return x.filter(s=>s===e||o===null||c[s].across===o)}function O(o){return typeof o!="string"||o===""?null:c[o]??null}function k(o,e){return e?L/o.acrossPhone:$/o.across}function A(o){return o.ratio?b.find(e=>e.shape===o.ratio)?.ratio??null:null}function R(o){return[...o.lead??[],...o.desktop]}const m="sf-wall--";function E(o){return`${m}${o}`}function y(o){const e=c[o],s=`.${E(o)}`,r=[],g=(l,h,a)=>`${s}:has(> :nth-child(${l}n+${h+a}):last-child) > :nth-last-child(-n+${a})`,f=(l,h,a=[])=>{const t=[],i=l.length,P=a.length;a.forEach(([n,d],u)=>{t.push(`${s} > :nth-child(${u+1}){grid-column:span ${n};grid-row:span ${d}}`)}),l.forEach(([n,d],u)=>{t.push(`${s} > :nth-child(${i}n+${P+u+1}){grid-column:span ${n};grid-row:span ${d}}`)});for(let n=1;n<i;n+=1)t.push(`${g(i,P,n)}{grid-column:span ${h};grid-row:span 1}`);return t};r.push(`${s}{grid-template-columns:repeat(${$},minmax(0,1fr))}`);const p=A(e);if(p&&(r.push(`${s}${s}{grid-auto-rows:auto}`),r.push(`${s}${s} > *{aspect-ratio:${p[0]}/${p[1]};height:auto}`)),r.push(...f(e.desktop,k(e,!1),e.lead)),r.push(`@media (max-width:${T}px){`),r.push(`${s}{grid-template-columns:repeat(${L},minmax(0,1fr))}`),r.push(...f(e.phone,k(e,!0),e.leadPhone)),e.phone.length===1&&!e.leadPhone?.length){const[l,h]=e.phone[0],a=e.lead?.length??0;for(let t=1;t<e.desktop.length;t+=1)r.push(`${g(e.desktop.length,a,t)}{grid-column:span ${l};grid-row:span ${h}}`)}return r.push("}"),r.join("")}export{w as GALLERY_ACROSS_BUCKETS,$ as GALLERY_COLUMNS,L as GALLERY_COLUMNS_PHONE,c as GALLERY_LAYOUTS,m as GALLERY_LAYOUT_CLASS_PREFIX,x as GALLERY_LAYOUT_KEYS,T as GALLERY_PHONE_BREAKPOINT,_ as galleryChoices,E as galleryLayoutClass,y as galleryLayoutCss,A as galleryLayoutRatio,R as galleryPictureCells,k as galleryTailSpan,O as resolveGalleryLayout};
@@ -1 +1 @@
1
- import{parseHexColor as o}from"efficient-shell/format";const e="#ffffff";function t(r){return n(r)?r:e}function n(r){return typeof r=="string"&&o(r)===r.toLowerCase()}function u(r){return{"--bg":t(r)}}export{e as PAGE_BACKGROUND_DEFAULT,n as isPageBackgroundAuthored,u as pageBackgroundVars,t as resolvePageBackground};
1
+ import{parseHexColor as e}from"efficient-shell/format";import{fillSlotNamed as n}from"../document/part-inks.js";import{themeSlotOf as f}from"../document/theme-slots.js";const a="#ffffff";function u(o){const r=t(o);return r||(i(o)?o:a)}function t(o){const r=n(o);return r?f(r)?.page??"":""}function i(o){return typeof o=="string"&&e(o)===o.toLowerCase()||t(o)!==""}function g(o){return{"--bg":u(o)}}export{a as PAGE_BACKGROUND_DEFAULT,i as isPageBackgroundAuthored,g as pageBackgroundVars,u as resolvePageBackground};
@@ -9,6 +9,7 @@ export declare function centredCap(maxWidth: number | string): CSSProperties;
9
9
  export declare function pageWidthStyle(fullWidth?: boolean, pageWidth?: number): CSSProperties | null;
10
10
  export declare const SITE_WIDTH_VAR = "--sf-site-width";
11
11
  export declare const SITE_WIDTH_CAP: string;
12
+ export declare const FULL_SECTION_WIDTH = "100vw";
12
13
  export declare const SITE_WIDTH_CAP_CLASS: string;
13
14
  export declare const PRE_SITE_WIDTH_CAP_CLASS: string;
14
15
  export declare function normalizeSiteWidth(v?: 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)`,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};
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)`,b="100vw",w=`max-w-[${p}]`,D=`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 L(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",s={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,R])=>e.split(i).join(R),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))]",f="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function k(t){const e=f.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return t.split(` ${e}`).join("").split(` ${f}`).join("")}const B="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 V(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,s.min),s.max))}function y(t){return typeof t=="number"&&Number.isFinite(t)?c(t):null}function F(t){const e=E(t);return e===null?{}:{[C]:`${e}px`}}function z(t){return E(t)===null?"":A}function j(t){return Math.min(s.max,l(t))}function H(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function K(t=0){return`max-w-[${H(t).replace(/ /g,"_")}]`}const T=p,X=`max-w-[${T}]`,q=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,d="--sf-hero-cap",I=`var(${d},none)`,J=`max-w-[${I}]`,O="--sf-hero-bleed-m",v="--sf-hero-bleed-w",P="--sf-hero-chrome-x",G="--sf-hero-chrome-cap";function Q(t){return t===!0?{[d]:T,[O]:"auto",[v]:"100%",[P]:"24px",[G]:"none"}:{}}const u=`calc(${p} - ${n}*2)`,Y=`max-w-[${u.replace(/ /g,"_")}]`,Z=w;function tt(t){return t!==!1?null:a(S)}const g="--sf-chrome-cap",S=`var(${g},${u})`,et="data-page-width";function nt(t){return t==="full"?"full":null}function rt(t){return t==="full"?null:a(t==="content"?u:S)}function ot(t){if(t==="full")return"full";if(t==="content")return"content"}export{f as BOX_HOLDS_NO_GUTTER_CLASS,S as CHROME_CAP_READ,g as CHROME_CAP_VAR,u as CHROME_WIDTH_CAP,Y as CHROME_WIDTH_CAP_CLASS,B as EDITORIAL_COLUMN,b as FULL_SECTION_WIDTH,I as HERO_BACKGROUND_CAP,J as HERO_BACKGROUND_CAP_CLASS,d as HERO_BACKGROUND_VAR,O as HERO_BLEED_MARGIN_VAR,v as HERO_BLEED_WIDTH_VAR,T as HERO_CAP,X as HERO_CAP_CLASS,G as HERO_CHROME_CAP_VAR,P as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,et as PAGE_WIDTH_ATTR,Z as PRE_CHROME_WIDTH_CAP_CLASS,q as PRE_HERO_CAP_CLASS,N as PRE_SITE_GUTTER_CLASSES,D as PRE_SITE_WIDTH_CAP_CLASS,W as SITE_COLUMN,x as SITE_GUTTER,n as SITE_GUTTER_CAP,$ as SITE_GUTTER_CLASS,o as SITE_GUTTER_NARROW,s 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,rt as chromeWidthStyle,Q as heroBackgroundTokens,y as normalizeSectionContentMax,l as normalizeSiteGutter,E as normalizeSiteGutterPhone,c as normalizeSiteWidth,nt as pageWidthMarker,M as pageWidthStyle,ot as resolveChromeWidth,z as siteGutterPhoneClass,j as siteGutterPhoneFollows,F as siteGutterPhoneTokens,V as siteGutterTokens,H as siteHalfColumnCap,K as siteHalfColumnCapClass,tt as siteWidthCapStyle,L as siteWidthTokens,k as withoutBoxHoldsNoGutter};
@@ -1 +1 @@
1
- import{parseHexColor as u}from"efficient-shell/format";const i="var(--section-bg)",f="inherit";function c(n,t){return n===f?i:n===void 0?t:E(n)}const p=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function E(n){return n.replace(p,"var(--site-$1")}const d={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function _(n,t,r){const e=c(n,t);if(!e||e==="transparent")return r.background.toLowerCase();const o=e.trim(),a=o.startsWith("#")?u(o):null;if(a)return a.toLowerCase();const s=d[o.replace(/\s+/g,"")];return(s?r[s]:r.background).toLowerCase()}const x="transparent";function l(n,t){const r=c(n,t);return!r||r===x?"none":r===i?"band":null}function C(n,t,r=t){const e=a=>!a||a==="transparent",o=c(n,t);return o===r||e(o)&&e(r)}export{f as SECTION_BG_INHERIT,x as SECTION_BG_NO_FILL,i as THEME_SECTION_BG,C as isSectionBackgroundEmpty,E as paintedFill,c as resolveSectionBackground,l as sectionBackgroundChoice,_ as sectionBackgroundHex};
1
+ import{parseHexColor as u}from"efficient-shell/format";import{fillSlotNamed as f,inkTokenOf as p}from"../document/part-inks.js";const i="var(--section-bg)",E="inherit";function c(n,r){return n===E?i:n===void 0?r:l(n)}const d=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function l(n){const r=f(n);return r?p(r):n.replace(d,"var(--site-$1")}const x={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function N(n,r,t){const e=c(n,r);if(!e||e==="transparent")return t.background.toLowerCase();const o=e.trim(),a=o.startsWith("#")?u(o):null;if(a)return a.toLowerCase();const s=x[o.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}const g="transparent";function T(n,r){const t=c(n,r);return!t||t===g?"none":t===i?"band":null}function C(n,r,t=r){const e=a=>!a||a==="transparent",o=c(n,r);return o===t||e(o)&&e(t)}export{E as SECTION_BG_INHERIT,g as SECTION_BG_NO_FILL,i as THEME_SECTION_BG,C as isSectionBackgroundEmpty,l as paintedFill,c as resolveSectionBackground,T as sectionBackgroundChoice,N as sectionBackgroundHex};
@@ -0,0 +1,17 @@
1
+ import { type BlockSeed } from "../../../seed-parts.js";
2
+ import { type CardsCardFields } from "./card-seed.js";
3
+ type Props = Record<string, unknown>;
4
+ export declare const CARDS_CELL: Props;
5
+ export declare const cardsGridLook: (columns: number) => Props;
6
+ export declare const cardBadgeSeed: (style?: Props) => BlockSeed;
7
+ export declare const cardListCardSeed: (fields?: CardsCardFields) => BlockSeed;
8
+ export declare const DELIVERY_CARD_FIELDS: {
9
+ readonly name: "name";
10
+ readonly time: "time";
11
+ readonly note: "note";
12
+ readonly price: "price";
13
+ };
14
+ export declare const deliveryGridLook: (columns: number) => Props;
15
+ export declare const GRID_LOOK_KEYS: readonly string[];
16
+ export declare const deliveryCardSeed: () => BlockSeed;
17
+ export {};
@@ -0,0 +1 @@
1
+ import{CARD_PLACE_PROP as l}from"../../../../content/card-place.js";import{CARD_BADGE_FIELD as E}from"../../../../content/card-state.js";import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as n}from"../../../container-blocks.js";import{DIM as p,INNER_BOX as a,LABEL_FACE as _,TEXT as i,boxPadding as g,fillSlot as c,token as o}from"../../../seed-parts.js";import{TYPED_CARD_FIELDS as L,cardsCardSeed as m,rowFieldTextSeed as r}from"./card-seed.js";const D={sectionBorder:{top:0,right:1,bottom:1,left:0},...c("background")},O={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},R=t=>({direction:"row",columns:t,columnsTablet:t,...O}),d=(t={})=>r(E,{...i,tag:"p",[l]:"top-line"},t,!0),Y=(t=L)=>{const e=m(t);return{...e,props:{...D,...e.props},slots:{[n]:[...e.slots?.[n]??[],d()]}}},h={name:"name",time:"time",note:"note",price:"price"},S={textStyle:"body-1",...o("body",16),weight:500,lineHeight:1.5},I={..._,...o("label",12),letterSpacing:.18,lineHeight:1.5},b={textStyle:"body-1",...o("body",14),lineHeight:1.6},f={textStyle:"body-1",fontRole:"heading",...o("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},C={...o("label",11),letterSpacing:.25},y={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},x=t=>({direction:"row",columns:t,...y}),u=[...new Set([...Object.keys(R(1)),...Object.keys(x(1))])],K=()=>{const t=h,e={tag:"p",widthFit:"fill"};return{type:s,props:{...a,name:"Card",justify:"between",gap:16,gapPhone:16,...g(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...c("surface"),shadow:!0},slots:{[n]:[d(C),{type:s,props:{...a,name:"Words",gap:8,gapPhone:8},slots:{[n]:[r(t.name,{...i,...e},S),r(t.time,{...p,...e},I),r(t.note,{...p,...e},b)]}},r(t.price,{...i,...e},f)]}}};export{D as CARDS_CELL,h as DELIVERY_CARD_FIELDS,u as GRID_LOOK_KEYS,d as cardBadgeSeed,Y as cardListCardSeed,R as cardsGridLook,K as deliveryCardSeed,x as deliveryGridLook};
@@ -3,4 +3,5 @@ export declare const CHART_PH: {
3
3
  eyebrow: string;
4
4
  title: string;
5
5
  };
6
+ export declare const CHART_OWN_BOX_WORDS: readonly ["eyebrow", "title", "body", "caption"];
6
7
  export declare const ChartMeta: BlockMeta;
@@ -1,2 +1,2 @@
1
1
  const t={eyebrow:"By the numbers",title:`A picture worth
2
- *a thousand rows.*`},e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};export{t as CHART_PH,e as ChartMeta};
2
+ *a thousand rows.*`},e=["eyebrow","title","body","caption"],o={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};export{e as CHART_OWN_BOX_WORDS,t as CHART_PH,o as ChartMeta};
@@ -3,4 +3,5 @@ export declare const COUNTDOWN_DEFAULTS: {
3
3
  title: string;
4
4
  zeroText: string;
5
5
  };
6
+ export declare const COUNTDOWN_OWN_BOX_WORDS: readonly ["title"];
6
7
  export declare const CountdownMeta: BlockMeta;
@@ -1 +1 @@
1
- const o={title:"Back online in",zeroText:"Almost done. Back very soon."},t={label:"Countdown",defaultProps:{...o,endsAt:"",showUnits:!0}};export{o as COUNTDOWN_DEFAULTS,t as CountdownMeta};
1
+ const t={title:"Back online in",zeroText:"Almost done. Back very soon."},o=["title"],e={label:"Countdown",defaultProps:{...t,endsAt:"",showUnits:!0}};export{t as COUNTDOWN_DEFAULTS,o as COUNTDOWN_OWN_BOX_WORDS,e as CountdownMeta};
@@ -1,2 +1,3 @@
1
1
  import type { BlockMeta } from "../../block-types.js";
2
+ export declare const MOCKUP_OWN_BOX_WORDS: readonly ["eyebrow", "title", "body"];
2
3
  export declare const MockupMeta: BlockMeta;
@@ -1 +1 @@
1
- const e={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};export{e as MockupMeta};
1
+ const e=["eyebrow","title","body"],t={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};export{e as MOCKUP_OWN_BOX_WORDS,t as MockupMeta};
@@ -1499,6 +1499,16 @@
1499
1499
  }
1500
1500
  }
1501
1501
  },
1502
+ "CardList": {
1503
+ "highlightBadge": {
1504
+ "type": "custom",
1505
+ "__text": {
1506
+ "control": "text",
1507
+ "label": "Highlight badge",
1508
+ "placeholder": "Most popular"
1509
+ }
1510
+ }
1511
+ },
1502
1512
  "ParagraphsA": {
1503
1513
  "eyebrow": {
1504
1514
  "type": "custom",
@@ -4,7 +4,18 @@ type Node = {
4
4
  props: Props;
5
5
  };
6
6
  export type MakeNode = (type: string, props?: Props) => Node;
7
+ export type ConvertFooterBlock = (node: Node, make: MakeNode) => Node[] | null;
7
8
  export declare const FOOTER_TEXT_PX: Record<"sm" | "md" | "lg", number>;
8
- export declare function pageBlocksFromFooterBlock(node: Node, make: MakeNode): Node[];
9
- export declare function boxFooterFromFooter(footer: Node | null, make: MakeNode, groupId: string): Node;
9
+ export declare const FOOTER_MARK_SIZES: {
10
+ readonly sm: {
11
+ readonly mark: 16;
12
+ readonly words: number;
13
+ };
14
+ readonly md: {
15
+ readonly mark: 20;
16
+ readonly words: number;
17
+ };
18
+ };
19
+ export declare function pageBlocksFromFooterBlock(node: Node, make: MakeNode, convert?: ConvertFooterBlock): Node[];
20
+ export declare function boxFooterFromFooter(footer: Node | null, make: MakeNode, groupId: string, convert?: ConvertFooterBlock): Node;
10
21
  export {};
@@ -1 +1 @@
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{hiddenKeyOf as y}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as P}from"../content/card-template.js";import{buildSectionGroup as L,SITE_FOOTER_TYPE as x}from"./section-groups.js";const u="Flex",A={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock",FooterPayment:"PaymentLogosBlock"},b=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,w={size:13,lineHeight:m,width:280},G=14,I=40,S=e=>e==="center"||e==="right"?e:"left";function N(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 D(e,o,t){const r=t(e,b(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=A[e.type];if(r)return[D(r,t,o)];switch(e.type){case"FooterLogo":{const n=S(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,...N(t)}),s=g(t.tagline).trim();return s?[i,o("Text",{text:s,tone:"dim",align:n,_partStyles:{text:{...w}}})]:[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?{[y("mobile")]:!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 U(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:I,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:G,align:"stretch",...d,content:l}))}(s.length||!i.length)&&i.push(n(s));const T=o(u,{direction:"column",content:[o("LegalLineBlock")]}),a=L(x,t,[...i,T]);return{...a,props:{...a.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}export{f as FOOTER_TEXT_PX,U as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
1
+ import{FOOTER_LOGO_PX as O}from"../logo/logo-size.js";import{resolveContainerGap as _}from"../content/container-gap.js";import{NESTED_BOX_PADDING as m}from"../content/box-layout.js";import{finiteNumber as a}from"../finite-number.js";import{isNodeList as y}from"efficient-easel/data";import{hiddenKeyOf as P}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as L}from"../content/card-template.js";import{buildSectionGroup as x,SITE_FOOTER_TYPE as A}from"./section-groups.js";const d="Flex",S={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},w={FooterPayment:"PaymentLogosBlock"},I=o=>{const{id:e,...s}=o;return s},h=o=>typeof o=="string"?o:"",g={sm:12,md:13,lg:15},W={sm:{mark:16,words:g.sm},md:{mark:20,words:g.md}},b="md",E=1.5,B={size:13,lineHeight:E,width:280},N=14,G=40,R=o=>o==="center"||o==="right"?o:"left";function D(o){const e={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=a(o[t]);c&&(e[i]=c)}return e}function k(o,e,s){const t=s(o,I(e));if(Array.isArray(e.template))return{...t,props:{...t.props,template:T(e.template,String(t.props.id))}};if(e.template!==void 0)return t;const i=L(o,t.props);return i===t.props?t:{...t,props:i}}function T(o,e,s={at:0}){return o.map(t=>{const i={...t.props,id:`${e}~t${s.at++}`};for(const[c,r]of Object.entries(i))y(r)&&(i[c]=T(r,e,s));return{...t,props:i}})}function F(o,e,s){const t=o.props??{},i=s?.(o,e);if(i)return i;const c=S[o.type]??w[o.type];if(c)return[k(c,t,e)];switch(o.type){case"FooterLogo":{const r=R(t.align),n=e("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(O*((a(t.widthPct)??100)/100)),href:"/",align:r,...D(t)}),p=h(t.tagline).trim();return p?[n,e("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...B}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&t.size in g?t.size:b;return[e("Text",{text:h(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:g[r],lineHeight:E}}})]}case"FooterDivider":{const r=a(t.thickness),n=a(t.lengthPct);return[e("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[P("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[e(d,{direction:t.direction==="horizontal"?"row":"column",gap:_("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...m,content:r.flatMap(n=>F(n,e,s))})]}default:return[]}}function Y(o,e,s,t){const i=o&&Array.isArray(o.props?.blocks)?o.props.blocks:[],c=l=>e(d,{direction:"row",wrap:!0,share:"equal",gap:G,content:l}),r=[];let n=[];for(const l of i){const u=F(l,e,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...u);continue}u.length<=1?n.push(...u):n.push(e(d,{direction:"column",gap:N,align:"stretch",...m,content:u}))}(n.length||!r.length)&&r.push(c(n));const p=e(d,{direction:"column",content:[e("LegalLineBlock")]}),f=x(A,s,[...r,p]);return{...f,props:{...f.props,...o?.props?.width==="full"?{fullWidth:!0}:{}}}}export{W as FOOTER_MARK_SIZES,g as FOOTER_TEXT_PX,Y as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
@@ -0,0 +1,21 @@
1
+ import { type Data, type DataConfig } from "efficient-easel/data";
2
+ type Props = Record<string, unknown>;
3
+ export declare function cardFollowsContentSwitch(props: Props, last: Props | null | undefined): Props;
4
+ export declare function cardsGridFollowsContent(box: Props, before: Props | null | undefined): Props;
5
+ export interface CardSwitchStore {
6
+ getState: () => {
7
+ appState: {
8
+ data: Data;
9
+ };
10
+ };
11
+ subscribe: (listener: () => void) => () => void;
12
+ dispatch: (action: {
13
+ type: "setData";
14
+ data: (prev: Data) => Data;
15
+ recordHistory: false;
16
+ }) => void;
17
+ readonly config: DataConfig;
18
+ readonly loaded: Data;
19
+ }
20
+ export declare function followCardContentSwitches(easel: CardSwitchStore): () => void;
21
+ export {};
@@ -0,0 +1 @@
1
+ import{DELIVERY_OPTIONS_SOURCE as T,declaredBlockSource as f}from"../content/block-sources.js";import{nonEmptyString as R}from"../non-empty-string.js";import{CARD_LIST_TYPE as w,CARD_TEMPLATE_SLOT as d}from"../content/card-template.js";import{find as I,walk as g}from"efficient-easel/data";import{BOX_TYPE as K,CONTAINER_BLOCKS_SLOT as F}from"./container-blocks.js";import{seedNodes as E}from"./seed-parts.js";import{SERVED_CARD_FIELDS as _,TYPED_CARD_FIELDS as C}from"./blocks/general/Cards/card-seed.js";import{GRID_LOOK_KEYS as A,cardListCardSeed as l,cardsGridLook as L,deliveryCardSeed as D,deliveryGridLook as h}from"./blocks/general/Cards/card-list-seed.js";import{finiteNumber as P}from"../finite-number.js";function p(r){return Array.isArray(r)?r.map(p):!r||typeof r!="object"?r:Object.fromEntries(Object.entries(r).filter(([n,t])=>n!=="id"&&t!==void 0&&!(Array.isArray(t)&&t.length===0)).sort(([n],[t])=>n<t?-1:n>t?1:0).map(([n,t])=>[n,p(t)]))}const Y=()=>"",a=r=>JSON.stringify(p(E([r],Y)));let y=null;function S(r){if(!Array.isArray(r)||r.length!==1)return null;y??={press:new Set([a(l(C)),a(l(_))]),delivery:a(D())};const n=JSON.stringify(p(r));return y.press.has(n)?"press":n===y.delivery?"delivery":null}const G=r=>f(r)===T?"delivery":"press";function X(r,n){if(!n||f(r)===f(n))return r;const t=S(r[d]),o=G(r);if(!t||t===o)return r;const i=R(r.id)??w,e=o==="delivery"?D():l(f(r)?_:C),s=E([e],(c,O)=>O==="0"?`${i}~card`:`${i}~card.${O.slice(2)}`);return{...r,[d]:s}}const k=(r,n)=>A.every(t=>JSON.stringify(r[t])===JSON.stringify(n[t]));function N(r,n){const t={...r};for(const o of A)delete t[o];return{...t,...structuredClone(n)}}function m(r){const n=r?.[F];if(!Array.isArray(n)||n.length!==1)return null;const t=n[0];return t?.type===w&&t.props?t:null}function J(r,n){const t=m(r),o=m(n);if(!t?.props||!o?.props||o.props.id!==t.props.id||f(t.props)===f(o.props))return r;const i=S(t.props[d]);if(!i||i===S(o.props[d]))return r;const e=P(r.columns);return e===void 0?r:i==="delivery"&&k(r,L(e))?N(r,h(e)):i==="press"&&k(r,h(e))?N(r,L(e)):r}function q(r){const n=u.get(r);n?n.count+=1:u.set(r,{count:1,stop:j(r)});let t=!1;return()=>{const o=u.get(r);t||!o||(t=!0,o.count-=1,!(o.count>0)&&(o.stop(),u.delete(r)))}}const u=new WeakMap;function j(r){let n=r.getState().appState.data;return r.subscribe(()=>{const t=r.getState().appState.data;if(t===n)return;const o=n;if(n=t,t===r.loaded)return;const i=new Map;g(t,r.config,e=>{if(e.type!==K||!m(e.props))return;const s=I(o,r.config,e.props.id);if(!s||s.node===e)return;const c=J(e.props,s.node.props);c!==e.props&&i.set(e.props.id,c)}),i.size&&r.dispatch({type:"setData",recordHistory:!1,data:e=>g(e,r.config,s=>{const c=i.get(s.props.id);return c?{...s,props:{...c,id:s.props.id}}:void 0})})})}export{X as cardFollowsContentSwitch,J as cardsGridFollowsContent,q as followCardContentSwitches};
@@ -0,0 +1,14 @@
1
+ export type CardPick = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ export declare function cardPicks(props: Record<string, unknown>, { rows, label }?: {
6
+ rows?: string;
7
+ label?: string;
8
+ }): CardPick[];
9
+ export type PickSeed = {
10
+ options: CardPick[];
11
+ };
12
+ export declare function pickRow(seed: PickSeed, picks: CardPick[]): PickSeed;
13
+ export declare function newCard(words: Record<string, string>, prefix?: string): Record<string, string>;
14
+ export declare function withOwnCardKeys(props: Record<string, unknown>, rowsKey?: string): Record<string, unknown>;
@@ -0,0 +1 @@
1
+ import{newId as y}from"efficient-easel/data";import{declaredBlockSource as g,sourceChoices as w}from"../content/block-sources.js";import{cardKeyOf as C,cardRow as b}from"../content/card-template.js";import{say as x}from"../editor-words.js";function j(t,{rows:r="items",label:n="title"}={}){const o=g(t);return o?w(o).map(c=>({label:c.label,value:c.key})):(Array.isArray(t[r])?t[r]:[]).map((c,i)=>({label:typeof c?.[n]=="string"&&c[n].trim()||x("Card {n}",{n:i+1}),value:C(b(c),i)}))}const h=new WeakMap;function v(t,r){let n=h.get(t);n||h.set(t,n=new Map);const o=JSON.stringify(r);let a=n.get(o);return a||n.set(o,a={...t,options:[...t.options,...r]}),a}function B(t,r="card"){return Object.defineProperty({...t},"key",{get:()=>y(r),enumerable:!0})}function P(t,r="items"){if(!Array.isArray(t[r])||g(t))return t;const n=t[r],o=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",a=e=>e&&typeof e=="object"&&typeof e.key=="string"?e.key:"",c=!!o&&!n.some(e=>a(e)===o),i=new Set;let s=t.highlightedCard,l=!1;const k=n.map((e,m)=>{if(!e||typeof e!="object")return e;const f=a(e);if(f&&!i.has(f))return i.add(f),e;const u=!f&&c&&o===String(m+1);if(f||u){const d=y("card");return i.add(d),l=!0,u&&(s=d),{...e,key:d}}return e});return l?{...t,[r]:k,highlightedCard:s}:t}export{j as cardPicks,B as newCard,v as pickRow,P as withOwnCardKeys};
@@ -1,4 +1,4 @@
1
1
  type Props = Record<string, unknown>;
2
2
  export declare function withCardsTemplate(type: string | undefined, props: Props): Props;
3
- export declare function cardsFieldsFollowContent(props: Props): Props;
3
+ export declare function cardsFieldsFollowContent(props: Props, offers?: (field: string) => boolean): Props;
4
4
  export {};
@@ -1 +1 @@
1
- import{declaredBlockSource as u}from"../content/block-sources.js";import{nonEmptyString as C}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as s}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as y}from"./container-blocks.js";import{SERVED_CARD_FIELDS as a,TYPED_CARD_FIELDS as c,cardsTemplateNodes as E}from"./blocks/general/Cards/card-seed.js";function O(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return D(t);const r=C(t.id)??"Cards",o=u(t)?a:c;return{...t,template:E((m,n)=>n==="0"?`${r}~card`:`${r}~card.${n.slice(2)}`,o)}}const A=e=>{const[t,r]=e?[c,a]:[a,c];return new Map([[t.title,r.title],[t.body,r.body]])};function _(e,t){let r=null;return e.forEach((o,m)=>{const n=o?.props;if(!n)return;let i=n;const l=n[s];o.type==="Text"&&typeof l=="string"&&t.has(l)&&(i={...i,[s]:t.get(l)});const f=n[y];if(Array.isArray(f)){const d=_(f,t);d!==f&&(i={...i,[y]:d})}i!==n&&(r??=[...e],r[m]={...o,props:i})}),r??e}function D(e){if(!Array.isArray(e.template))return e;const t=_(e.template,A(!!u(e)));return t===e.template?e:{...e,template:t}}export{D as cardsFieldsFollowContent,O as withCardsTemplate};
1
+ import{declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as C}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as s}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as y}from"./container-blocks.js";import{SERVED_CARD_FIELDS as m,TYPED_CARD_FIELDS as f,cardsTemplateNodes as E}from"./blocks/general/Cards/card-seed.js";function L(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return D(t);const r=C(t.id)??"Cards",i=d(t)?m:f;return{...t,template:E((l,n)=>n==="0"?`${r}~card`:`${r}~card.${n.slice(2)}`,i)}}const A=e=>{const[t,r]=e?[f,m]:[m,f];return new Map([[t.title,r.title],[t.body,r.body]])};function _(e,t){let r=null;return e.forEach((i,l)=>{const n=i?.props;if(!n)return;let o=n;const a=n[s];i.type==="Text"&&typeof a=="string"&&t.has(a)&&(o={...o,[s]:t.get(a)});const c=n[y];if(Array.isArray(c)){const u=_(c,t);u!==c&&(o={...o,[y]:u})}o!==n&&(r??=[...e],r[l]={...i,props:o})}),r??e}function D(e,t){if(!Array.isArray(e.template))return e;const r=A(!!d(e)),i=t?new Map([...r].filter(([n,o])=>t(o)&&!t(n))):r;if(!i.size)return e;const l=_(e.template,i);return l===e.template?e:{...e,template:l}}export{D as cardsFieldsFollowContent,L as withCardsTemplate};
@@ -1 +1 @@
1
- import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",L="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],i=[...c,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],S=l.map(e=>e.type),O=1,b=l.filter(e=>e.type!=="HeroGroup");function u(e){return e<O?l:b}const C={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:u}};function T(e,r=0){const t=C[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{L as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,S as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,T as containerBlocksFor};
1
+ import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",L="Flex",s="Text & media",i="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],y=[...c,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),u=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:i})),r=[...y,...u],l=[...c,{type:"HeroGroup",label:n}],S=l.map(e=>e.type),E=1,O=l.filter(e=>e.type!=="HeroGroup");function b(e){return e<E?l:O}const C={Flex:{slot:o,choices:()=>r},Grid:{slot:o,choices:()=>r},HeroGroup:{slot:o,choices:b}};function T(e,a=0){const t=C[e];return t?{slot:t.slot,choices:t.choices(a)}:null}export{L as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,r as CONTAINER_BLOCK_CHOICES,S as HERO_GROUP_BLOCK_TYPES,E as HERO_GROUP_NEST_DEPTH,T as containerBlocksFor};
@@ -1 +1 @@
1
- import{SNAPSHOT_OBJECTS as s,HYDRATED_LISTS as l}from"./snapshot-contracts.js";const b={heading:"Main heading",body:"Add supporting copy.",eyebrow:"Label",button:"Button label",alt:"Image description",caption:"Image caption",address:null,phone:null,email:null,legal:null,generic:"Label"},r=[{semantic:"alt",name:/(^|[a-z])alt$|^imageLabel$|Alt$/i,label:/\balt text\b/i},{semantic:"caption",name:/caption/i,label:/\bcaption\b/i},{semantic:"email",name:/email/i,label:/\be-?mail\b/i},{semantic:"phone",name:/phone|tel$|mobile/i,label:/\bphone\b|\btelephone\b/i},{semantic:"address",name:/address|street|postcode|suburb|^hours$|^timezone$/i,label:/\baddress\b|\bopening hours\b/i},{semantic:"legal",name:/consent|finePrint|legal|disclaimer|copyright|abn|acn/i,label:/\bconsent\b|\bfine print\b|\blegal\b|\bdisclaimer\b/i},{semantic:"button",name:/^cta|Cta|button|Button|submitText|linkText|readLabel|viewLabel|archiveText|subscribedText/i,label:/\bbutton\b|\bcta\b|\blink text\b/i},{semantic:"eyebrow",name:/eyebrow|kicker|badge|^tag$|^num$|Number$|^label$|Label$|^meta|Meta$|^value$/i,label:/\beyebrow\b|\bkicker\b|\bbadge\b|\blabel\b|\bnumber\b|\btag\b/i},{semantic:"heading",name:/heading|Heading|^title|Title$|titleTop|titleBottom|^name$|question/i,label:/\bheading\b|\btitle\b/i},{semantic:"body",name:/body|description|^desc$|^intro|^lead|^dek$|^deck$|blurb|^copy$|quote|tagline|answer|^note$|footnote|^text$/i,label:/\bbody\b|\bdescription\b|\bblurb\b|\bintro\b|\bparagraph\b/i}];function g(e,a="",n=!1){for(const t of r)if(t.name?.test(e))return t.semantic;for(const t of r)if(t.label?.test(a))return t.semantic;return n?"body":"generic"}const c=["anchor"],d=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function E(e){return c.includes(e)||d.test(e)}const T={Reviews:["designCode"],ReviewForm:["designCode"],Form:["formSlug"]},v={HeroSingle:[{path:"eyebrow",semantic:"eyebrow",shape:"hidable"},{path:"titleTop",semantic:"heading",shape:"hidable"}],Hero:[{path:"tickerItems",semantic:"eyebrow",shape:"textList"}],ContactLocations:[{path:"sectionNumber",semantic:"eyebrow"},{path:"heading",semantic:"heading"},{path:"tagline",semantic:"body"},{path:"galleryKicker",semantic:"eyebrow"},{path:"galleryHint",semantic:"body"},{path:"locations[].groupName",semantic:"eyebrow"},{path:"locations[].name",semantic:"heading",neutral:"City name"},{path:"locations[].address",semantic:"address"},{path:"locations[].phone",semantic:"phone"},{path:"locations[].email",semantic:"email"},{path:"locations[].state",semantic:"address"},{path:"locations[].country",semantic:"address"},{path:"locations[].region",semantic:"address"},{path:"locations[].hours",semantic:"address"},{path:"locations[].timezone",semantic:"address"}]},p={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};p.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};const S=["previewProduct"],y=Object.fromEntries(Object.entries(s).map(([e,a])=>[e,Object.keys(a)])),_=Object.fromEntries(Object.entries(l).map(([e,a])=>[e,[...a]])),m=["email","phone","address"],u={email:"Email address",phone:"Phone number",address:"Address"},h=[{rule:"email address",re:/[\w.+-]+@[\w-]+\.[\w.]+/},{rule:"url or domain",re:/https?:\/\/|\bwww\.|\.(?:com|net|org|au|co|io)\b/i},{rule:"phone number",re:/(?:\+\d[\d\s-]{7,}|\b0\d[\d\s-]{7,})/},{rule:"street address",re:/\b\d+[a-z]?\s+[A-Z][a-z]+\s+(?:St|Street|Rd|Road|Ave|Avenue|Hwy|Highway|Dr|Drive)\b/}];function $(e,a){const n=(a??"").trim();if(n){const t=h.find(({re:i})=>i.test(n));if(!t)return{ok:!0,neutral:n,source:"declared"};const o=m.includes(e)?u[e]:void 0;return o?{ok:!0,neutral:o,source:"safe-substitute"}:{ok:!1,reason:`declared placeholder ${JSON.stringify(n)} looks like a ${t.rule}. A placeholder is copied verbatim into every platform template — make it generic.`}}return{ok:!0,neutral:b[e],source:"fallback"}}export{v as CUSTOM_FIELD_TEXT,p as CUSTOM_FIELD_VALUES,_ as HYDRATED_PROPS_FROM_MEDIA_CONTRACT,d as LINK_TEXT_PROP_RE,h as PLACEHOLDER_FORBIDDEN,T as REFERENCE_TEXT_FIELDS,S as ROOT_REFERENCE_PROPS,u as SAFE_SEMANTIC_PLACEHOLDER,m as SEMANTICS_WITH_UNSAFE_PLACEHOLDERS,b as SEMANTIC_FALLBACKS,y as SNAPSHOT_PROPS_FROM_MEDIA_CONTRACT,c as STRUCTURAL_TEXT_PROPS,g as classifyTextSemantic,E as isStructuralTextProp,$ as resolveNeutralValue};
1
+ import{SNAPSHOT_OBJECTS as s,HYDRATED_LISTS as l}from"./snapshot-contracts.js";const b={heading:"Main heading",body:"Add supporting copy.",eyebrow:"Label",button:"Button label",alt:"Image description",caption:"Image caption",address:null,phone:null,email:null,legal:null,generic:"Label"},o=[{semantic:"alt",name:/(^|[a-z])alt$|^imageLabel$|Alt$/i,label:/\balt text\b/i},{semantic:"caption",name:/caption/i,label:/\bcaption\b/i},{semantic:"email",name:/email/i,label:/\be-?mail\b/i},{semantic:"phone",name:/phone|tel$|mobile/i,label:/\bphone\b|\btelephone\b/i},{semantic:"address",name:/address|street|postcode|suburb|^hours$|^timezone$/i,label:/\baddress\b|\bopening hours\b/i},{semantic:"legal",name:/consent|finePrint|legal|disclaimer|copyright|abn|acn/i,label:/\bconsent\b|\bfine print\b|\blegal\b|\bdisclaimer\b/i},{semantic:"button",name:/^cta|Cta|button|Button|submitText|linkText|readLabel|viewLabel|archiveText|subscribedText/i,label:/\bbutton\b|\bcta\b|\blink text\b/i},{semantic:"eyebrow",name:/eyebrow|kicker|badge|^tag$|^num$|Number$|^label$|Label$|^meta|Meta$|^value$/i,label:/\beyebrow\b|\bkicker\b|\bbadge\b|\blabel\b|\bnumber\b|\btag\b/i},{semantic:"heading",name:/heading|Heading|^title|Title$|titleTop|titleBottom|^name$|question/i,label:/\bheading\b|\btitle\b/i},{semantic:"body",name:/body|description|^desc$|^intro|^lead|^dek$|^deck$|blurb|^copy$|quote|tagline|answer|^note$|footnote|^text$/i,label:/\bbody\b|\bdescription\b|\bblurb\b|\bintro\b|\bparagraph\b/i}];function g(e,a="",i=!1){for(const t of o)if(t.name?.test(e))return t.semantic;for(const t of o)if(t.label?.test(a))return t.semantic;return i?"body":"generic"}const c=["anchor"],d=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function E(e){return c.includes(e)||d.test(e)}const T={Reviews:["designCode"],ReviewForm:["designCode"],Form:["formSlug"]},y={HeroSingle:[{path:"eyebrow",semantic:"eyebrow",shape:"hidable"},{path:"titleTop",semantic:"heading",shape:"hidable"}],CardList:[{path:"items[].title",semantic:"heading"},{path:"items[].body",semantic:"body"}],Hero:[{path:"tickerItems",semantic:"eyebrow",shape:"textList"}],ContactLocations:[{path:"sectionNumber",semantic:"eyebrow"},{path:"heading",semantic:"heading"},{path:"tagline",semantic:"body"},{path:"galleryKicker",semantic:"eyebrow"},{path:"galleryHint",semantic:"body"},{path:"locations[].groupName",semantic:"eyebrow"},{path:"locations[].name",semantic:"heading",neutral:"City name"},{path:"locations[].address",semantic:"address"},{path:"locations[].phone",semantic:"phone"},{path:"locations[].email",semantic:"email"},{path:"locations[].state",semantic:"address"},{path:"locations[].country",semantic:"address"},{path:"locations[].region",semantic:"address"},{path:"locations[].hours",semantic:"address"},{path:"locations[].timezone",semantic:"address"}]},p={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};p.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};const v=["previewProduct"],S=Object.fromEntries(Object.entries(s).map(([e,a])=>[e,Object.keys(a)])),_=Object.fromEntries(Object.entries(l).map(([e,a])=>[e,[...a]])),m=["email","phone","address"],u={email:"Email address",phone:"Phone number",address:"Address"},h=[{rule:"email address",re:/[\w.+-]+@[\w-]+\.[\w.]+/},{rule:"url or domain",re:/https?:\/\/|\bwww\.|\.(?:com|net|org|au|co|io)\b/i},{rule:"phone number",re:/(?:\+\d[\d\s-]{7,}|\b0\d[\d\s-]{7,})/},{rule:"street address",re:/\b\d+[a-z]?\s+[A-Z][a-z]+\s+(?:St|Street|Rd|Road|Ave|Avenue|Hwy|Highway|Dr|Drive)\b/}];function $(e,a){const i=(a??"").trim();if(i){const t=h.find(({re:r})=>r.test(i));if(!t)return{ok:!0,neutral:i,source:"declared"};const n=m.includes(e)?u[e]:void 0;return n?{ok:!0,neutral:n,source:"safe-substitute"}:{ok:!1,reason:`declared placeholder ${JSON.stringify(i)} looks like a ${t.rule}. A placeholder is copied verbatim into every platform template — make it generic.`}}return{ok:!0,neutral:b[e],source:"fallback"}}export{y as CUSTOM_FIELD_TEXT,p as CUSTOM_FIELD_VALUES,_ as HYDRATED_PROPS_FROM_MEDIA_CONTRACT,d as LINK_TEXT_PROP_RE,h as PLACEHOLDER_FORBIDDEN,T as REFERENCE_TEXT_FIELDS,v as ROOT_REFERENCE_PROPS,u as SAFE_SEMANTIC_PLACEHOLDER,m as SEMANTICS_WITH_UNSAFE_PLACEHOLDERS,b as SEMANTIC_FALLBACKS,S as SNAPSHOT_PROPS_FROM_MEDIA_CONTRACT,c as STRUCTURAL_TEXT_PROPS,g as classifyTextSemantic,E as isStructuralTextProp,$ as resolveNeutralValue};
@@ -1,7 +1,10 @@
1
1
  import type { CopyThemeColor } from "efficient-easel/copy";
2
- import { type ColorSlot } from "efficient-shell/markup";
2
+ import { type ColorSlot, type FillColorSlot } from "efficient-shell/markup";
3
3
  export declare function inkTokenOf(slot: string): string;
4
+ export declare function fillSlotNamed(value: unknown): FillColorSlot | null;
4
5
  export declare function partColourName(value: string): string;
5
6
  export declare function partInkCss(value: string | undefined): string;
6
- export declare function partThemeColors(read?: Partial<Record<ColorSlot, string>> | null, slots?: readonly string[]): CopyThemeColor[];
7
+ export declare function partThemeColors(read?: Partial<Record<FillColorSlot, string>> | null, slots?: readonly string[]): CopyThemeColor[];
8
+ export declare function fillInkCss(name: string): string;
9
+ export declare function fillSlotOfInk(css: string | undefined): FillColorSlot | null;
7
10
  export declare function readInks(element: HTMLElement): Partial<Record<ColorSlot, string>>;
@@ -1 +1 @@
1
- import{parseHexColor as l}from"efficient-shell/format";import{COLOR_SLOTS as m,colorRole as S}from"efficient-shell/markup";import{say as g}from"../editor-words.js";import{COLOUR_TOKEN as s}from"../word-styles.js";const p={main:s.accent,text:s.text,background:"var(--bg)",muted:s.labels},k={main:"Main",text:"Text",background:"Background",muted:"Muted"};function a(t){return Object.hasOwn(p,t)?p[t]??"":""}const d={accent:"main",labels:"muted"};function C(t){return Object.hasOwn(d,t)?d[t]:t}function T(t){if(!t)return"";if(t.startsWith("#"))return l(t)===t.toLowerCase()?t:"";const o=S(C(t));return o?.kind==="slot"?a(o.slot):""}const N="#9ca3af";function y(t,o=m){return o.flatMap(r=>{const n=k[r];return a(r)&&n?[{name:r,label:g(n),value:t?.[r]||N}]:[]})}function E(t){const o={},r=t.ownerDocument,n=r?.defaultView;if(!r||!n)return o;const O=n.getComputedStyle(t),e=r.createElement("canvas").getContext("2d");for(const u of m){const f=a(u);if(!f)continue;const b=f.replace(/^var\((--[\w-]+)\)$/,"$1"),i=O.getPropertyValue(b).trim();if(!i)continue;let c=x(i);!c&&e&&(e.fillStyle="#000000",e.fillStyle=i,c=x(String(e.fillStyle))),c&&(o[u]=c)}return o}function x(t){const o=t.trim().toLowerCase();if(o.startsWith("#"))return l(o);const r=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return r?`#${r.slice(1,4).map(n=>Math.min(255,Number(n)).toString(16).padStart(2,"0")).join("")}`:null}export{a as inkTokenOf,C as partColourName,T as partInkCss,y as partThemeColors,E as readInks};
1
+ import{parseHexColor as u}from"efficient-shell/format";import{COLOR_SLOTS as a,FILL_COLOR_SLOTS as O,colorRole as w,fillColorRole as m}from"efficient-shell/markup";import{themeSlotOf as p,UNREAD_INK as L}from"./theme-slots.js";function e(t){return p(t)?.ink??""}function I(t){if(typeof t!="string")return null;const o=m(t.trim());return o?.kind==="slot"&&e(o.slot)?o.slot:null}const d={accent:"main",labels:"muted"};function S(t){return Object.hasOwn(d,t)?d[t]:t}function N(t){if(!t)return"";if(t.startsWith("#"))return u(t)===t.toLowerCase()?t:"";const o=w(S(t));return o?.kind==="slot"?e(o.slot):""}function b(t,o=a){return o.flatMap(n=>{const r=p(n);return r?.ink?[{name:n,label:r.label(),value:t?.[n]||L}]:[]})}function _(t){const o=m(S(t));return o?.kind==="slot"?e(o.slot):""}function R(t){const o=t?.trim();return o?O.find(n=>e(n)===o)??null:null}function T(t){const o={},n=t.ownerDocument,r=n?.defaultView;if(!n||!r)return o;const x=r.getComputedStyle(t),l=n.createElement("canvas").getContext("2d");for(const c of a){const f=e(c);if(!f)continue;const C=f.replace(/^var\((--[\w-]+)\)$/,"$1"),s=x.getPropertyValue(C).trim();if(!s)continue;let i=k(s);!i&&l&&(l.fillStyle="#000000",l.fillStyle=s,i=k(String(l.fillStyle))),i&&(o[c]=i)}return o}function k(t){const o=t.trim().toLowerCase();if(o.startsWith("#"))return u(o);const n=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return n?`#${n.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}export{_ as fillInkCss,I as fillSlotNamed,R as fillSlotOfInk,e as inkTokenOf,S as partColourName,N as partInkCss,b as partThemeColors,T as readInks};
@@ -20,15 +20,7 @@ WHAT REPLACES IT: a Cards section with Card style set to Label only. It draws th
20
20
 
21
21
  WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
22
22
 
23
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`,DeliveryOptions:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
24
-
25
- WHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's \`delivery-options\` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.
26
-
27
- WHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.
28
-
29
- NO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (\`scripts/test-section-to-box.tsx\` §5).
30
-
31
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.`,Series:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
23
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`,DeliveryOptions:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` §5).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming.",Series:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
32
24
 
33
25
  WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
34
26
 
@@ -62,4 +54,4 @@ WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a pres
62
54
 
63
55
  NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
64
56
 
65
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`,PaymentBadges:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},u=["Grid","Spacer","TyreFitment"],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",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"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",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",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"),w=a("service"),d="Flex",s="Box",E=`${s}es`;function c(e){return e==="section"?"Blank section":s}function S(e,t,n){return e===d?c(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,E 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,w as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,S as labelAtLevel,c as labelForFlex};
57
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`,PaymentBadges:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},u=["Grid","Spacer","TyreFitment"],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",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"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",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",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 s(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=s("general"),T=s("commerce"),w=s("service"),d="Flex",a="Box",E=`${a}es`;function c(e){return e==="section"?"Blank section":a}function S(e,t,n){return e===d?c(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,a as BOX_LABEL,E 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,w as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,s as blocksInSet,p as buildBlockCategories,S as labelAtLevel,c as labelForFlex};
@@ -1,9 +1,11 @@
1
+ import type { FillColorSlot } from "efficient-shell/markup";
1
2
  type Props = Record<string, unknown>;
2
3
  export declare const TEXT: Props;
3
4
  export declare const DIM: Props;
4
5
  export declare const BOX: Props;
5
6
  export declare const INNER_BOX: Props;
6
7
  export declare const boxPadding: (y: number, x?: number, yPhone?: number, xPhone?: number) => Props;
8
+ export declare const fillSlot: (slot: FillColorSlot) => Props;
7
9
  export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
8
10
  export declare const LABEL_FACE: Readonly<Props>;
9
11
  export declare const labelLook: (px: number, pxPhone?: number) => Props;
@@ -1 +1 @@
1
- import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as g}from"./blocks/general/Text/meta.js";const{text:B,tag:L,...l}=g.defaultProps,x=l,T={...x,tone:"dim"},P={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...P,direction:"column",...a},A=(t,o=t,n=t,e=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:n,sectionPaddingRightPhone:e,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:e}),f=(t,o,n,e)=>({sizeToken:{step:t,px:o,...e?{stepPhone:e}:{},...n?{pxPhone:n}:{}}}),i={case:"upper"},m={textStyle:"body-5",...i},u=(t,o)=>({...f("label",t,o),letterSpacing:.2,...i}),N=(t,o)=>({...m,...u(t,o)});function E(t,o,n=""){return t.map((e,s)=>{const r=n?`${n}.${s}`:String(s),c={...e.props??{}};for(const[p,d]of Object.entries(e.slots??{}))c[p]=E(d,o,r);return{type:e.type,props:{...c,id:o(e.type,r)}}})}export{P as BOX,T as DIM,_ as INNER_BOX,m as LABEL_FACE,x as TEXT,A as boxPadding,u as labelLook,N as labelStyle,E as seedNodes,f as token};
1
+ import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as l}from"./blocks/general/Text/meta.js";const{text:B,tag:L,...g}=l.defaultProps,x=g,T={...x,tone:"dim"},f={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...f,direction:"column",...a},A=(t,o=t,n=t,e=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:n,sectionPaddingRightPhone:e,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:e}),N=t=>({fillColor:t}),P=(t,o,n,e)=>({sizeToken:{step:t,px:o,...e?{stepPhone:e}:{},...n?{pxPhone:n}:{}}}),c={case:"upper"},m={textStyle:"body-5",...c},S=(t,o)=>({...P("label",t,o),letterSpacing:.2,...c}),k=(t,o)=>({...m,...S(t,o)});function u(t,o,n=""){return t.map((e,r)=>{const s=n?`${n}.${r}`:String(r),i={...e.props??{}};for(const[p,d]of Object.entries(e.slots??{}))i[p]=u(d,o,s);return{type:e.type,props:{...i,id:o(e.type,s)}}})}export{f as BOX,T as DIM,_ as INNER_BOX,m as LABEL_FACE,x as TEXT,A as boxPadding,N as fillSlot,S as labelLook,k as labelStyle,u as seedNodes,P as token};
@@ -0,0 +1,20 @@
1
+ import type { CopyThemeColor } from "efficient-easel/copy";
2
+ import { normalizeThemeColors, type ThemeValue } from "../theme.js";
3
+ export interface ThemeSlot {
4
+ ink: string;
5
+ page: string;
6
+ key: keyof ReturnType<typeof normalizeThemeColors>;
7
+ label: () => string;
8
+ words: (n: number) => string;
9
+ }
10
+ export declare function themeSlotOf(slot: string): ThemeSlot | undefined;
11
+ export declare const UNREAD_INK = "#9ca3af";
12
+ export declare function slotFill(slot: string, colors: ReturnType<typeof normalizeThemeColors>, n: number): {
13
+ hex: string;
14
+ words: string;
15
+ } | null;
16
+ export declare function fillThemeColors(colors: ReturnType<typeof normalizeThemeColors>, n: number): CopyThemeColor[];
17
+ export declare function themePresets(value?: ThemeValue | null): {
18
+ value: string;
19
+ label: string;
20
+ }[];
@@ -0,0 +1 @@
1
+ import{parseHexColor as f}from"efficient-shell/format";import{FILL_COLOR_SLOTS as p}from"efficient-shell/markup";import{say as o}from"../editor-words.js";import{SECTION_PALETTE as h}from"../content/ink.js";import{COLOUR_TOKEN as a}from"../word-styles.js";import{normalizeTheme as T}from"../theme.js";const l=e=>{const n=h.find(t=>t.role===e);return n?`var(${n.token})`:""},b=e=>l(e)?`var(--theme-${e})`:"",m={main:{ink:a.accent,page:a.accent,key:"accent",label:()=>o("Main"),words:e=>o("Theme {n} main color",{n:e})},text:{ink:a.text,page:a.text,key:"text",label:()=>o("Text"),words:e=>o("Theme {n} text color",{n:e})},background:{ink:l("bg"),page:b("bg"),key:"background",label:()=>o("Background"),words:e=>o("Theme {n} background",{n:e})},muted:{ink:a.labels,page:a.labels,key:"muted",label:()=>o("Muted"),words:e=>o("Theme {n} muted color",{n:e})},surface:{ink:l("surface"),page:l("surface"),key:"surface",label:()=>o("Surface"),words:e=>o("Theme {n} surface color",{n:e})}};function i(e){return Object.hasOwn(m,e)?m[e]:void 0}const x="#9ca3af";function g(e,n,t){const r=i(e);return r?{hex:f(n[r.key]??"")??"",words:r.words(t)}:null}function C(e,n){return p.flatMap(t=>{const r=g(t,e,n);return r&&i(t)?.ink?[{name:t,label:r.words,value:r.hex||x}]:[]})}const w=["main","text","background"];function I(e){const n=new Set,t=[];return T(e).themes.forEach((r,d)=>{for(const k of w){const c=i(k),u=c?r[c.key]:void 0,s=typeof u=="string"&&u?f(u):null;!c||!s||n.has(s)||(n.add(s),t.push({value:s,label:c.words(d+1)}))}}),t}export{x as UNREAD_INK,C as fillThemeColors,g as slotFill,I as themePresets,i as themeSlotOf};
@@ -732,6 +732,7 @@ export declare const WEB_BUILDER_WORDS: {
732
732
  readonly Map: "Map";
733
733
  readonly "Map & Theme": "Map & Theme";
734
734
  readonly "Map theme": "Map theme";
735
+ readonly Marks: "Marks";
735
736
  readonly Marquee: "Marquee";
736
737
  readonly "Match / done (green)": "Match / done (green)";
737
738
  readonly Media: "Media";
@@ -1139,6 +1140,7 @@ export declare const WEB_BUILDER_WORDS: {
1139
1140
  readonly "Success heading": "Success heading";
1140
1141
  readonly "Success message": "Success message";
1141
1142
  readonly Superscript: "Superscript";
1143
+ readonly Surface: "Surface";
1142
1144
  readonly "Switch now": "Switch now";
1143
1145
  readonly "Switch to Box footer": "Switch to Box footer";
1144
1146
  readonly "Synced from the blog post.": "Synced from the blog post.";
@@ -1214,6 +1216,7 @@ export declare const WEB_BUILDER_WORDS: {
1214
1216
  readonly "Theme {n} background": "Theme {n} background";
1215
1217
  readonly "Theme {n} main color": "Theme {n} main color";
1216
1218
  readonly "Theme {n} muted color": "Theme {n} muted color";
1219
+ readonly "Theme {n} surface color": "Theme {n} surface color";
1217
1220
  readonly "Theme {n} text color": "Theme {n} text color";
1218
1221
  readonly "These settings apply to every view.": "These settings apply to every view.";
1219
1222
  readonly "They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.": "They are saved in Version history as “Draft before restore”, so you can get them back.";
@@ -1274,6 +1277,7 @@ export declare const WEB_BUILDER_WORDS: {
1274
1277
  readonly "Two image galleries with tabs and filters.": "Two image galleries with tabs and filters.";
1275
1278
  readonly "Two tall": "Two tall";
1276
1279
  readonly "Two, then threes": "Two, then threes";
1280
+ readonly "Two, then threes \u00B7 photo": "Two, then threes · photo";
1277
1281
  readonly Type: "Type";
1278
1282
  readonly "Type a postcode or address": "Type a postcode or address";
1279
1283
  readonly "Typed by hand": "Typed by hand";