efficient-web-builder 49.1.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 (150) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +1 -1
  3. package/dist/editor/components/BlogPostSource.js +1 -1
  4. package/dist/editor/components/EditorPagePathProvider.d.ts +4 -0
  5. package/dist/editor/components/EditorPagePathProvider.js +1 -0
  6. package/dist/editor/components/HeroPartPanel.js +1 -1
  7. package/dist/editor/components/MediaUploadField.js +1 -1
  8. package/dist/editor/components/PagesPanel.js +1 -1
  9. package/dist/editor/components/SectionEditor.js +1 -1
  10. package/dist/editor/components/SourceStatus.d.ts +3 -3
  11. package/dist/editor/components/SourceStatus.js +1 -1
  12. package/dist/editor/components/StorefrontEditor.js +1 -1
  13. package/dist/editor/components/ThemeCard.js +1 -1
  14. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  15. package/dist/editor/components/storefront-editor.css +1 -1
  16. package/dist/editor/components/usePartMotion.d.ts +1 -1
  17. package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
  18. package/dist/editor/components/usePartTypingDeps.js +1 -0
  19. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  20. package/dist/editor/lib/animation/fields.d.ts +1 -1
  21. package/dist/editor/lib/animation/fields.js +1 -1
  22. package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
  23. package/dist/editor/lib/animation/hover-fields.js +1 -1
  24. package/dist/editor/lib/document/add-target.js +1 -1
  25. package/dist/editor/lib/document/block-source-fields.d.ts +6 -0
  26. package/dist/editor/lib/document/block-source-fields.js +1 -1
  27. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  28. package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
  29. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  30. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  31. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  32. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  33. package/dist/editor/lib/document/blocks/general/PaymentBadges/fields.js +1 -1
  34. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  35. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  36. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  37. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
  38. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  39. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  40. package/dist/editor/lib/document/canvas-typing.js +1 -1
  41. package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
  42. package/dist/editor/lib/document/card-copy-rows.js +1 -0
  43. package/dist/editor/lib/document/card-display-chips.d.ts +7 -2
  44. package/dist/editor/lib/document/card-display-chips.js +1 -1
  45. package/dist/editor/lib/document/card-row-fields.js +1 -1
  46. package/dist/editor/lib/document/controls.d.ts +1 -0
  47. package/dist/editor/lib/document/controls.js +1 -1
  48. package/dist/editor/lib/document/darken-fields.d.ts +4 -0
  49. package/dist/editor/lib/document/darken-fields.js +1 -0
  50. package/dist/editor/lib/document/field-groups.js +1 -1
  51. package/dist/editor/lib/document/overrides.js +1 -1
  52. package/dist/editor/lib/document/slot-new-children.d.ts +2 -0
  53. package/dist/editor/lib/document/slot-new-children.js +1 -0
  54. package/dist/editor/lib/sections/hero-ticker-to-strip.js +1 -1
  55. package/dist/editor/lib/sections/new-section-node.js +1 -1
  56. package/dist/format/components/stored-pick-row.d.ts +8 -0
  57. package/dist/format/components/stored-pick-row.js +1 -0
  58. package/dist/format/lib/animation/hover.d.ts +32 -1
  59. package/dist/format/lib/animation/hover.js +1 -1
  60. package/dist/format/lib/content/block-sources.d.ts +11 -0
  61. package/dist/format/lib/content/block-sources.js +1 -1
  62. package/dist/format/lib/content/box-layout.d.ts +11 -0
  63. package/dist/format/lib/content/box-layout.js +1 -1
  64. package/dist/format/lib/content/box-shape.d.ts +2 -1
  65. package/dist/format/lib/content/box-shape.js +1 -1
  66. package/dist/format/lib/content/card-place.d.ts +8 -0
  67. package/dist/format/lib/content/card-place.js +1 -0
  68. package/dist/format/lib/content/card-template.d.ts +20 -2
  69. package/dist/format/lib/content/card-template.js +1 -1
  70. package/dist/format/lib/content/image-treatment.d.ts +23 -4
  71. package/dist/format/lib/content/image-treatment.js +1 -1
  72. package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +15 -0
  73. package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -0
  74. package/dist/format/lib/document/blocks/general/Cards/meta.d.ts +6 -0
  75. package/dist/format/lib/document/blocks/general/Cards/meta.js +1 -1
  76. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  77. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  78. package/dist/format/lib/document/blocks/general/text-part-shapes.json +8 -0
  79. package/dist/format/lib/document/box-footer.js +1 -1
  80. package/dist/format/lib/document/cards-template-on-read.d.ts +4 -0
  81. package/dist/format/lib/document/cards-template-on-read.js +1 -0
  82. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  83. package/dist/format/lib/document/easel-row-words.js +1 -1
  84. package/dist/format/lib/document/editor-page-context.js +1 -1
  85. package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
  86. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
  87. package/dist/format/lib/document/passes/types.d.ts +6 -0
  88. package/dist/format/lib/document/renamed-props.js +1 -1
  89. package/dist/format/lib/document/section-catalog.js +22 -2
  90. package/dist/format/lib/document/seed-parts.d.ts +18 -0
  91. package/dist/format/lib/document/seed-parts.js +1 -0
  92. package/dist/format/lib/editor-page-rows.d.ts +2 -0
  93. package/dist/format/lib/editor-page-rows.js +1 -1
  94. package/dist/format/lib/editor-words-catalogue.d.ts +21 -6
  95. package/dist/format/lib/editor-words-catalogue.js +4 -4
  96. package/dist/format/lib/hero-ticker.d.ts +4 -0
  97. package/dist/format/lib/hero-ticker.js +1 -1
  98. package/dist/format/lib/page-at-own-slug.d.ts +9 -0
  99. package/dist/format/lib/page-at-own-slug.js +1 -0
  100. package/dist/format/lib/popup/new-popup.js +1 -1
  101. package/dist/format/lib/sections/hero-overlay.js +1 -1
  102. package/dist/render/components/ButtonBlock.d.ts +1 -1
  103. package/dist/render/components/ButtonBlock.js +1 -1
  104. package/dist/render/components/Cards.d.ts +4 -2
  105. package/dist/render/components/Cards.js +1 -1
  106. package/dist/render/components/ContactLocations.d.ts +3 -1
  107. package/dist/render/components/ContactLocations.js +2 -2
  108. package/dist/render/components/Flex.d.ts +5 -1
  109. package/dist/render/components/Flex.js +1 -1
  110. package/dist/render/components/HeroPictures.d.ts +10 -0
  111. package/dist/render/components/HeroPictures.js +1 -1
  112. package/dist/render/components/HeroSingle.js +1 -1
  113. package/dist/render/components/HeroSlide.js +1 -1
  114. package/dist/render/components/ImageBlock.d.ts +6 -1
  115. package/dist/render/components/ImageBlock.js +1 -1
  116. package/dist/render/components/Manifesto.d.ts +3 -1
  117. package/dist/render/components/Manifesto.js +1 -1
  118. package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
  119. package/dist/render/components/PhotoHoverSheet.js +1 -0
  120. package/dist/render/components/PictureWash.d.ts +6 -0
  121. package/dist/render/components/PictureWash.js +1 -0
  122. package/dist/render/components/Placeholder.js +1 -1
  123. package/dist/render/components/PostCard.js +1 -1
  124. package/dist/render/components/Split.d.ts +3 -1
  125. package/dist/render/components/Split.js +1 -1
  126. package/dist/render/components/Text.d.ts +4 -3
  127. package/dist/render/components/Text.js +1 -1
  128. package/dist/render/lib/animation/part-motion.js +2 -2
  129. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  130. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
  134. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -2
  137. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  138. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -5
  139. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  142. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  143. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  144. package/dist/render/lib/document/passes/index.js +1 -1
  145. package/dist/render/lib/document/passes/section-animation.js +1 -1
  146. package/dist/render/lib/sections/section-to-box.d.ts +7 -7
  147. package/dist/render/lib/sections/section-to-box.js +1 -1
  148. package/dist/render/lib/site-runtime.d.ts +2 -0
  149. package/dist/render/lib/site-runtime.js +1 -1
  150. package/package.json +4 -4
@@ -1 +1 @@
1
- import{isStripBox as s}from"./box-separator.js";const k={sectionPaddingTop:0,sectionPaddingBottom:0},o={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},r={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function A(e,t){const w=typeof e=="string"&&e in o?o[e]:"",n=typeof t=="string"&&t in r?r[t]:"";return[w,n].filter(Boolean).join(" ")}function B(e){return e===!0||e==="wrap"?"flex-wrap":""}const N="Block widths",c=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]},{label:"2 : 3",value:"twoThree",weights:[2,3]}],i="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",p={equal:i,bigLeft:`${i} [&>*:first-child]:view-wide:grow-[2]`,bigRight:`${i} [&>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${i} [&>*:first-child]:view-wide:grow-[3]`,biggerRight:`${i} [&>*:last-child]:view-wide:grow-[3]`,twoThree:`${i} [&>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3]`};function x(e){return typeof e=="string"?p[e]??"":""}const _="[&>*]:view-wide:basis-[content]";function E(e){return x(e)===""?_:""}const P="Columns",R=1,T=3,v={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},X=c.filter(e=>e.value==="content"||e.value==="equal"),H="equal",I=1,$=6,a="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0!",d={1:`${a} [&>*]:view-wide:basis-[calc(100%/1)]!`,2:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${a} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function b(e){return typeof e=="number"?d[e]??"":""}const f={1:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc(100%/1)]!",2:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function m(e){return typeof e=="number"?f[e]??"":""}function y(e){return e.direction!=="row"||s(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":m(e.columnsTablet)}function W(e){return e.direction!=="row"||s(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":b(e.columns)}const g="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]",h={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},u="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]";function O(e){return e===!1||e==="nowrap"}function M(e,t,w){const n=v[Number(e)];if(!n)return"max-view-wide:flex-col";const l=O(w);return S(e,t)?l?u:g:l?h[Number(e)]:n}function S(e,t){return Number(e)in v&&t==="content"}const F="Block spacing",U=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],C="sf-box-gap-only";function G(e){return e==="gap"?C:""}export{r as BOX_ALIGN_CLASS,F as BOX_BLOCK_SPACING_LABEL,U as BOX_BLOCK_SPACING_POINTS,$ as BOX_COLUMNS_MAX,I as BOX_COLUMNS_MIN,C as BOX_GAP_ONLY_CLASS,P as BOX_PHONE_ROW_LABEL,T as BOX_PHONE_ROW_MAX,R as BOX_PHONE_ROW_MIN,N as BOX_SHARE_LABEL,H as BOX_SHARE_PHONE_DEFAULT,X as BOX_SHARE_PHONE_POINTS,c as BOX_SHARE_POINTS,k as NESTED_BOX_PADDING,G as boxBlockSpacingClass,b as boxColumnsClass,E as boxFitContentClass,A as boxLayoutClasses,M as boxPhoneRowClasses,S as boxPhoneRowFits,O as boxPhoneRowOneLine,W as boxRowColumnsClass,y as boxRowTabletColumnsClass,x as boxShareClasses,m as boxTabletColumnsClass,B as boxWrapClass};
1
+ import{isStripBox as o}from"./box-separator.js";const N={sectionPaddingTop:0,sectionPaddingBottom:0},r={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function T(e,t){const w=typeof e=="string"&&e in r?r[e]:"",l=typeof t=="string"&&t in c?c[t]:"";return[w,l].filter(Boolean).join(" ")}function R(e){return e===!0||e==="wrap"?"flex-wrap":""}const P="Block widths",b=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]},{label:"2 : 3",value:"twoThree",weights:[2,3]}],i="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",h={equal:i,bigLeft:`${i} [&>*:first-child]:view-wide:grow-[2]`,bigRight:`${i} [&>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${i} [&>*:first-child]:view-wide:grow-[3]`,biggerRight:`${i} [&>*:last-child]:view-wide:grow-[3]`,twoThree:`${i} [&>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3]`};function m(e){return typeof e=="string"?h[e]??"":""}const v="view-tablet:max-view-desktop:flex-row!",a=`${v} [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-0!`,p={content:`${v} [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[content]!`,equal:a,bigLeft:`${a} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]!`,bigRight:`${a} [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]!`,biggerLeft:`${a} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`,biggerRight:`${a} [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`,twoThree:`${a} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`};function f(e){return typeof e=="string"&&e in p?e:null}function X(e){if(e.direction!=="row"||o(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||x(e.columns)!==""||_(e.columnsTablet)!=="")return"";const t=f(e.shareTablet);return t===null?"":p[t]}const g="[&>*]:view-wide:basis-[content]";function $(e){return m(e)===""?g:""}const H="Columns",I=1,y=3,d={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},W=b.filter(e=>e.value==="content"||e.value==="equal"),M="equal",U=1,F=6,n="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0!",u={1:`${n} [&>*]:view-wide:basis-[calc(100%/1)]!`,2:`${n} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${n} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${n} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${n} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${n} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function x(e){return typeof e=="number"?u[e]??"":""}const S={1:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc(100%/1)]!",2:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function _(e){return typeof e=="number"?S[e]??"":""}function q(e){return e.direction!=="row"||o(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":_(e.columnsTablet)}function G(e){return e.direction!=="row"||o(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":x(e.columns)}const O="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]",k={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},L="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]";function C(e){return e===!1||e==="nowrap"}function j(e,t,w){const l=d[Number(e)];if(!l)return"max-view-wide:flex-col";const s=C(w);return A(e,t)?s?L:O:s?k[Number(e)]:l}function A(e,t){return Number(e)in d&&t==="content"}const D="Block spacing",K=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],B="sf-box-gap-only";function Q(e){return e==="gap"?B:""}export{c as BOX_ALIGN_CLASS,D as BOX_BLOCK_SPACING_LABEL,K as BOX_BLOCK_SPACING_POINTS,F as BOX_COLUMNS_MAX,U as BOX_COLUMNS_MIN,B as BOX_GAP_ONLY_CLASS,H as BOX_PHONE_ROW_LABEL,y as BOX_PHONE_ROW_MAX,I as BOX_PHONE_ROW_MIN,P as BOX_SHARE_LABEL,M as BOX_SHARE_PHONE_DEFAULT,W as BOX_SHARE_PHONE_POINTS,b as BOX_SHARE_POINTS,N as NESTED_BOX_PADDING,Q as boxBlockSpacingClass,x as boxColumnsClass,$ as boxFitContentClass,T as boxLayoutClasses,j as boxPhoneRowClasses,A as boxPhoneRowFits,C as boxPhoneRowOneLine,G as boxRowColumnsClass,q as boxRowTabletColumnsClass,X as boxRowTabletShareClass,m as boxShareClasses,f as boxShareTabletOf,_ as boxTabletColumnsClass,R as boxWrapClass};
@@ -7,4 +7,5 @@ export declare const BOX_SHAPE_OPTIONS: readonly {
7
7
  export declare function boxShapeOf(value: unknown): BoxShape;
8
8
  export declare function boxShapeClass(value: unknown): string;
9
9
  export declare function boxShapePhoneOf(desktop: unknown, phone: unknown): BoxShape | null;
10
- export declare function boxShapeClasses(desktop: unknown, phone: unknown): string;
10
+ export declare function boxShapeTabletOf(tablet: unknown): BoxShape | null;
11
+ export declare function boxShapeClasses(desktop: unknown, phone: unknown, tablet?: unknown): string;
@@ -1 +1 @@
1
- import{galleryCardRatioClass as o}from"./gallery-card-layout.js";const u=["auto","tall","square","landscape","wide"],d=[{label:"Auto",value:"auto"},{label:"Tall (3:4)",value:"tall"},{label:"Square (1:1)",value:"square"},{label:"Landscape (4:3)",value:"landscape"},{label:"Wide (2:1)",value:"wide"}];function t(e){return u.includes(String(e??""))?e:"auto"}function n(e){const a=t(e);return a==="auto"?"":o(a)}const s={tall:"view-wide:aspect-[3/4]",square:"view-wide:aspect-square",landscape:"view-wide:aspect-[4/3]",wide:"view-wide:aspect-[2/1]"},r={auto:"max-view-wide:aspect-auto",tall:"max-view-wide:h-auto max-view-wide:aspect-[3/4]",square:"max-view-wide:h-auto max-view-wide:aspect-square",landscape:"max-view-wide:h-auto max-view-wide:aspect-[4/3]",wide:"max-view-wide:h-auto max-view-wide:aspect-[2/1]"};function w(e,a){return u.includes(String(a??""))?a===t(e)?null:a:null}function p(e,a){const i=w(e,a);if(i===null)return n(e);const l=t(e);return[l==="auto"?"":s[l],r[i]].filter(Boolean).join(" ")}export{u as BOX_SHAPES,d as BOX_SHAPE_OPTIONS,n as boxShapeClass,p as boxShapeClasses,t as boxShapeOf,w as boxShapePhoneOf};
1
+ import{galleryCardRatioClass as n}from"./gallery-card-layout.js";const l=["auto","tall","square","landscape","wide"],b=[{label:"Auto",value:"auto"},{label:"Tall (3:4)",value:"tall"},{label:"Square (1:1)",value:"square"},{label:"Landscape (4:3)",value:"landscape"},{label:"Wide (2:1)",value:"wide"}];function o(e){return l.includes(String(e??""))?e:"auto"}function u(e){const a=o(e);return a==="auto"?"":n(a)}const r={tall:"view-wide:aspect-[3/4]",square:"view-wide:aspect-square",landscape:"view-wide:aspect-[4/3]",wide:"view-wide:aspect-[2/1]"},c={auto:"max-view-wide:aspect-auto",tall:"max-view-wide:h-auto max-view-wide:aspect-[3/4]",square:"max-view-wide:h-auto max-view-wide:aspect-square",landscape:"max-view-wide:h-auto max-view-wide:aspect-[4/3]",wide:"max-view-wide:h-auto max-view-wide:aspect-[2/1]"};function d(e,a){return l.includes(String(a??""))?a===o(e)?null:a:null}const p={auto:"view-tablet:max-view-desktop:aspect-auto!",tall:"view-tablet:max-view-desktop:h-auto! view-tablet:max-view-desktop:aspect-[3/4]!",square:"view-tablet:max-view-desktop:h-auto! view-tablet:max-view-desktop:aspect-square!",landscape:"view-tablet:max-view-desktop:h-auto! view-tablet:max-view-desktop:aspect-[4/3]!",wide:"view-tablet:max-view-desktop:h-auto! view-tablet:max-view-desktop:aspect-[2/1]!"};function v(e){return l.includes(String(e??""))?e:null}function m(e,a,w){const t=v(w),i=d(e,l.includes(String(a??""))?a:t);if(i===null&&t===null)return u(e);const s=o(e);return[i===null?u(e):s==="auto"?"":r[s],i===null?"":c[i],t===null?"":p[t]].filter(Boolean).join(" ")}export{l as BOX_SHAPES,b as BOX_SHAPE_OPTIONS,u as boxShapeClass,m as boxShapeClasses,o as boxShapeOf,d as boxShapePhoneOf,v as boxShapeTabletOf};
@@ -0,0 +1,8 @@
1
+ export declare const CARD_PLACE_PROP = "cardPlace";
2
+ export type CardPlace = "" | "top-line";
3
+ export declare function cardPlaceOf(props: Record<string, unknown>): CardPlace;
4
+ export declare const TOP_LINE_CLASS = "absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2";
5
+ export declare const TOP_LINE_ATTRIBUTE = "data-sf-top-line";
6
+ export declare const FRAMED_CARD_OWNERS: ReadonlySet<string>;
7
+ export declare function framesItsCards(ownerType: unknown): boolean;
8
+ export declare const OUTSIDE_FRAMED_CARD = "outsideFramedCard";
@@ -0,0 +1 @@
1
+ const e="cardPlace";function r(t){return t[e]==="top-line"?"top-line":""}const n="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",a="data-sf-top-line",o=new Set(["Cards"]);function s(t){return typeof t=="string"&&o.has(t)}const p="outsideFramedCard";export{e as CARD_PLACE_PROP,o as FRAMED_CARD_OWNERS,p as OUTSIDE_FRAMED_CARD,a as TOP_LINE_ATTRIBUTE,n as TOP_LINE_CLASS,r as cardPlaceOf,s as framesItsCards};
@@ -1,4 +1,4 @@
1
- import type { SourceRow } from "./block-sources.js";
1
+ import { type SourceRow } from "./block-sources.js";
2
2
  import type { CardCopyPlace } from "./mirror-cards.js";
3
3
  export declare const CARD_TEMPLATE_SLOT = "template";
4
4
  export declare const CARD_TEMPLATE_LABEL = "Card template";
@@ -14,27 +14,45 @@ export interface CardRowFieldSpec {
14
14
  key: string;
15
15
  label: string;
16
16
  kind?: CardRowFieldKind;
17
+ multiline?: boolean;
17
18
  alt?: string;
19
+ next?: string;
20
+ everySource?: boolean;
18
21
  }
19
22
  export interface CardTemplateSpec {
20
23
  block: string;
21
24
  fields: readonly CardRowFieldSpec[];
22
25
  blocks?: readonly CardTemplateBlock[];
26
+ typedRows?: string;
27
+ seed?: (props: Record<string, unknown>) => Record<string, unknown>;
23
28
  }
24
29
  export interface CardTemplateBlock {
25
30
  type: string;
26
31
  label: string;
27
32
  }
28
33
  export declare function registerCardTemplates(specs: readonly CardTemplateSpec[]): void;
34
+ export declare function templateOnRead(type: string | undefined, props: Record<string, unknown>): Record<string, unknown>;
35
+ export declare function templateOnInsert(type: string | undefined, props: Record<string, unknown>): Record<string, unknown>;
29
36
  export declare function cardTemplatesNameBlocks(): boolean;
30
37
  export declare function cardTemplateBlocks(type: string): readonly CardTemplateBlock[];
31
38
  export declare function isCardTemplateBlock(type: string): boolean;
39
+ export declare function cardTemplateTypedRows(type: unknown): string;
32
40
  export declare function hasCardTemplate(type: unknown): boolean;
33
41
  export declare function cardTemplateFields(type: string, kind?: CardRowFieldKind): readonly CardRowFieldSpec[];
34
- export declare function cardTemplateField(type: string | undefined, key: string): CardRowFieldSpec | null;
42
+ export declare function cardTemplateFieldsOf(owner: {
43
+ type?: unknown;
44
+ props?: Record<string, unknown>;
45
+ } | null | undefined, kind?: CardRowFieldKind): readonly CardRowFieldSpec[];
46
+ export declare function cardTemplateField(type: string | undefined, key: string, owner?: {
47
+ type?: unknown;
48
+ props?: Record<string, unknown>;
49
+ } | null): CardRowFieldSpec | null;
35
50
  export declare function namedRowField(props: Record<string, unknown> | null | undefined, prop?: string): string;
51
+ export declare function cardKeyOf(row: SourceRow, index: number): string;
36
52
  export declare function cardRow(value: unknown): SourceRow;
53
+ export declare function rowNextPicture(item: unknown, next: string | undefined, cover?: string): string;
37
54
  export declare function rowBound(type: string, props: Record<string, unknown> | null | undefined, key: string): boolean;
55
+ export declare function rowFieldOf(type: string, props: Record<string, unknown> | null | undefined, key: string): string;
38
56
  export declare function rowFieldText(row: SourceRow | null | undefined, key: string): string | null;
39
57
  export declare function rowFilledProps(type: string, props: Record<string, unknown>, row: SourceRow | null | undefined): Record<string, unknown>;
40
58
  type DocNode = {
@@ -1 +1 @@
1
- import{isNodeList as b}from"efficient-easel/data";import{BOX_TYPE as k}from"../document/container-blocks.js";import{globalRegistry as T}from"../global-registry.js";const B="template",L="Card template",w=["Text","ImageBlock","ButtonBlock","Flex"],f="rowField",A="rowLinkField";function P(){return{type:"slot",allow:[...w]}}const C=[{block:"OrderSummary",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]}];function l(){return T("efficient.card-templates",()=>new Map(C.map(e=>[e.block,e])))}function h(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const n=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);n.some(c=>c.type===o.type)||n.push({type:o.type,label:o.label||o.type})}l().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:n})}}function F(){for(const e of l().values())if(e.blocks?.length)return!0;return!1}function D(e){return l().get(e)?.blocks??[]}function I(e){for(const t of l().values())if(t.blocks?.some(n=>n.type===e))return!0;return!1}function g(e){return typeof e=="string"&&l().has(e)}function M(e,t){const n=l().get(e)?.fields??[];return t?n.filter(o=>(o.kind??"text")===t):n}function S(e,t){return e?l().get(e)?.fields.find(n=>n.key===t)??null:null}function d(e,t=f){const n=e?.[t];return typeof n=="string"?n.trim():""}function j(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[n,o]of Object.entries(e))typeof o=="string"&&(t[n]=o);return t}const m={Text:{text:f},ImageBlock:{src:f},ButtonBlock:{label:f,href:A}};function N(e,t,n){const o=m[e]?.[n];return!!(o&&d(t,o))}function O(e,t){return!t||!e?null:e[t]??""}function W(e,t,n){if(!n)return t;let o=null;for(const[c,i]of Object.entries(m[e]??{})){const r=O(n,d(t,i));r!==null&&(o??={...t},o[c]=r)}return o??t}function u(e,t){const n=e?.data?.content;if(!Array.isArray(n)||typeof t!="string")return;const o=(i,r)=>{for(const s of i){if(s?.props?.id===t)return r;for(const[x,a]of Object.entries(s?.props??{})){if(!b(a))continue;const y=x===B&&g(s.type)?{owner:s,direct:!0,nested:r!==null,underBox:!1}:r&&{owner:r.owner,direct:!1,nested:r.nested,underBox:r.underBox||s.type===k},p=o(a,y);if(p!==void 0)return p}}},c=o(n,null);return c===void 0?null:c}function v(e,t){const n=u(e,t);return n&&n.owner}function K(e,t){const n=u(e,t);return n&&(n.direct?n.owner:null)}function U(e,t){const n=u(e,t);if(n!==void 0)return n===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:n.nested,underBox:n.underBox}}export{f as CARD_ROW_FIELD_PROP,A as CARD_ROW_LINK_PROP,w as CARD_TEMPLATE_BLOCKS,L as CARD_TEMPLATE_LABEL,B as CARD_TEMPLATE_SLOT,U as cardCopyPlace,j as cardRow,D as cardTemplateBlocks,K as cardTemplateCardOwner,S as cardTemplateField,M as cardTemplateFields,v as cardTemplateOwner,P as cardTemplateSlot,F as cardTemplatesNameBlocks,g as hasCardTemplate,I as isCardTemplateBlock,d as namedRowField,h as registerCardTemplates,N as rowBound,O as rowFieldText,W as rowFilledProps};
1
+ import{blockSourceSpec as x,declaredBlockSource as g}from"./block-sources.js";import{isNodeList as T}from"efficient-easel/data";import{BOX_TYPE as w}from"../document/container-blocks.js";import{globalRegistry as C}from"../global-registry.js";import{nonEmptyString as p}from"../non-empty-string.js";import{withCardsTemplate as B}from"../document/cards-template-on-read.js";const R="template",j="Card template",A=["Text","ImageBlock","ButtonBlock","Flex"],u="rowField",O="rowLinkField";function K(){return{type:"slot",allow:[...A]}}const h=[{block:"OrderSummary",typedRows:"rows",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0}],seed:e=>B("Cards",e)}];function c(){return C("efficient.card-templates",()=>new Map(h.map(e=>[e.block,e])))}function W(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(i=>i.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=p(t.typedRows);c().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{}})}}function _(e,t){const r=e?c().get(e)?.seed:void 0;return r?r(t):t}function U(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,i=_(e,o);return i===o?t:i}function H(){for(const e of c().values())if(e.blocks?.length)return!0;return!1}function V(e){return c().get(e)?.blocks??[]}function X(e){for(const t of c().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function Y(e){return typeof e=="string"&&c().get(e)?.typedRows||""}function E(e){return typeof e=="string"&&c().has(e)}function $(e,t){const r=c().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function L(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=c().get(r)?.fields??[],o=x(g(e?.props))?.fields,i=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(s=>s.key===l.key))]:n;return t?i.filter(l=>(l.kind??"text")===t):i}function q(e,t,r){return e?r?L(r).find(n=>n.key===t)??null:c().get(e)?.fields.find(n=>n.key===t)??null:null}function y(e,t=u){const r=e?.[t];return typeof r=="string"?r.trim():""}function z(e,t){return e.key||String(t+1)}function G(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}function J(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const i=typeof o=="string"?o:o?.src,l=p(typeof i=="string"?i.trim():void 0);if(l&&l!==r.trim())return l}return""}const m={Text:{text:u},ImageBlock:{src:u},ButtonBlock:{label:u,href:O}};function Q(e,t,r){return P(e,t,r)!==""}function P(e,t,r){const n=m[e]?.[r];return n?y(t,n):""}function S(e,t){return!t||!e?null:e[t]??""}function Z(e,t,r){if(!r)return t;let n=null;for(const[o,i]of Object.entries(m[e]??{})){const l=S(r,y(t,i));l!==null&&(n??={...t},n[o]=l)}return n??t}function f(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,l)=>{for(const s of i){if(s?.props?.id===t)return l;for(const[b,d]of Object.entries(s?.props??{})){if(!T(d))continue;const k=b===R&&E(s.type)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===w},a=n(d,k);if(a!==void 0)return a}}},o=n(r,null);return o===void 0?null:o}function ee(e,t){const r=f(e,t);return r&&r.owner}function te(e,t){const r=f(e,t);return r&&(r.direct?r.owner:null)}function re(e,t){const r=f(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}export{u as CARD_ROW_FIELD_PROP,O as CARD_ROW_LINK_PROP,A as CARD_TEMPLATE_BLOCKS,j as CARD_TEMPLATE_LABEL,R as CARD_TEMPLATE_SLOT,re as cardCopyPlace,z as cardKeyOf,G as cardRow,V as cardTemplateBlocks,te as cardTemplateCardOwner,q as cardTemplateField,$ as cardTemplateFields,L as cardTemplateFieldsOf,ee as cardTemplateOwner,K as cardTemplateSlot,Y as cardTemplateTypedRows,H as cardTemplatesNameBlocks,E as hasCardTemplate,X as isCardTemplateBlock,y as namedRowField,W as registerCardTemplates,Q as rowBound,P as rowFieldOf,S as rowFieldText,Z as rowFilledProps,J as rowNextPicture,U as templateOnInsert,_ as templateOnRead};
@@ -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};
@@ -0,0 +1,15 @@
1
+ import { type BlockSeed, type SeededNode } from "../../../seed-parts.js";
2
+ type Props = Record<string, unknown>;
3
+ export declare const CARDS_CARD: Props;
4
+ export declare const CARDS_TITLE_LOOK: Props;
5
+ export declare const CARDS_BODY_LOOK: Props;
6
+ export declare const rowFieldTextSeed: (field: string, props: Props, style: Props, eyebrow?: boolean) => BlockSeed;
7
+ export type CardsCardFields = {
8
+ title: string;
9
+ body: string;
10
+ };
11
+ export declare const TYPED_CARD_FIELDS: CardsCardFields;
12
+ export declare const SERVED_CARD_FIELDS: CardsCardFields;
13
+ export declare const cardsCardSeed: (fields?: CardsCardFields) => BlockSeed;
14
+ export declare const cardsTemplateNodes: (idOf: (type: string, at: string) => string, fields?: CardsCardFields) => SeededNode[];
15
+ export {};
@@ -0,0 +1 @@
1
+ import{CARD_ROW_FIELD_PROP as d}from"../../../../content/card-template.js";import{BOX_TYPE as l,CONTAINER_BLOCKS_SLOT as a}from"../../../container-blocks.js";import{DIM as s,INNER_BOX as n,TEXT as _,boxPadding as x,seedNodes as S,token as o}from"../../../seed-parts.js";import{labelTextSeed as D}from"../../../text-seeds.js";const c={...n,gap:12,gapPhone:12,...x(32,32,28,28)},m={textStyle:"heading-3",...o("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},y={textStyle:"body-1",...o("body",15),lineHeight:1.6},p=(t,e,r,i=!1)=>({type:"Text",props:{...e,text:"",[d]:t,_partStyles:{text:{...i?D()._partStyles?.text??{}:{},...r}}}}),O={title:"title",body:"body"},b={title:"name",body:"note"},R=(t=O)=>({type:l,props:{...c,name:"Card"},slots:{[a]:[p(t.title,{..._,tag:"p",widthFit:"fill"},m),p(t.body,{...s,tag:"p",widthFit:"fill"},y)]}}),h=(t,e)=>S([R(e)],t);export{y as CARDS_BODY_LOOK,c as CARDS_CARD,m as CARDS_TITLE_LOOK,b as SERVED_CARD_FIELDS,O as TYPED_CARD_FIELDS,R as cardsCardSeed,h as cardsTemplateNodes,p as rowFieldTextSeed};
@@ -4,4 +4,10 @@ export declare const CARDS_PH: {
4
4
  title: string;
5
5
  };
6
6
  export type CardStyle = "cards" | "label-only";
7
+ export declare const CardsSlots: {
8
+ template: {
9
+ type: "slot";
10
+ allow: string[];
11
+ };
12
+ };
7
13
  export declare const CardsMeta: BlockMeta;
@@ -1 +1 @@
1
- const e={eyebrow:"Label",title:"Section *heading.*"},t={label:"Cards",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};export{e as CARDS_PH,t as CardsMeta};
1
+ import{cardTemplateSlot as e}from"../../../../content/card-template.js";const l={eyebrow:"Label",title:"Section *heading.*"},t={template:e()},r={label:"Cards",fields:t,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};export{l as CARDS_PH,r as CardsMeta,t as CardsSlots};
@@ -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};
@@ -108,6 +108,14 @@
108
108
  }
109
109
  }
110
110
  }
111
+ },
112
+ "highlightBadge": {
113
+ "type": "custom",
114
+ "__text": {
115
+ "control": "text",
116
+ "label": "Highlight badge",
117
+ "placeholder": "Most popular"
118
+ }
111
119
  }
112
120
  },
113
121
  "CategoryBar": {
@@ -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};
@@ -0,0 +1,4 @@
1
+ type Props = Record<string, unknown>;
2
+ export declare function withCardsTemplate(type: string | undefined, props: Props): Props;
3
+ export declare function cardsFieldsFollowContent(props: Props): Props;
4
+ export {};
@@ -0,0 +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};
@@ -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};
@@ -1 +1 @@
1
- import{PRODUCT_PAGE_SLUG as n,templateProductKind as i}from"../content/product-page.js";import{declaredRecordType as l}from"../content/record-types.js";let t=null,r=null;function u(e,o){t=e,r=o}function p(e){u(e,null)}function g(){return t}function d(){return r==="dynamic"||t===n}function P(e){return i(t??"",e)??"alloy-wheel"}function f(e){return d()?l(e):null}export{f as editorRecordType,P as editorTemplateProductKind,g as getEditorPageSlug,d as isEditorOnDynamicPage,u as setEditorPage,p as setEditorPageSlug};
1
+ import{PRODUCT_PAGE_SLUG as n,templateProductKind as i}from"../content/product-page.js";import{declaredRecordType as l}from"../content/record-types.js";import{isDynamicPageRow as u}from"../editor-page-rows.js";let t=null,r=null;function d(e,o){t=e,r=o}function P(e){d(e,null)}function m(){return t}function a(){return u({kind:r})||t===n}function f(e){return i(t??"",e)??"alloy-wheel"}function x(e){return a()?l(e):null}export{x as editorRecordType,f as editorTemplateProductKind,m as getEditorPageSlug,a as isEditorOnDynamicPage,d as setEditorPage,P as setEditorPageSlug};
@@ -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 +1 @@
1
- import{isNodeList as a}from"efficient-easel/data";const m={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"};function l(n){let e=n.props,c=!1;if(n.type&&e)for(const[t,o]of Object.entries(m)){const r=t.indexOf("."),i=t.slice(0,r),s=t.slice(r+1);if(i!==n.type||!(s in e))continue;const p=e[s],f={...e};delete f[s],(!(o in f)||f[o]===void 0)&&(f[o]=p),e=f,c=!0}if(e){let t=e;for(const[o,r]of Object.entries(e)){if(!a(r))continue;const i=r.map(l);i.some((s,p)=>s!==r[p])&&(t===e&&(t={...e}),t[o]=i,c=!0)}e=t}return c?{...n,props:e}:n}function d(n){const e=n;if(!e||typeof e!="object")return n;let c=!1;const t={...n};if(Array.isArray(e.content)){const o=e.content.map(l);o.some((r,i)=>r!==e.content[i])&&(t.content=o,c=!0)}if(e.zones&&typeof e.zones=="object"){let o=!1;const r=Object.fromEntries(Object.entries(e.zones).map(([i,s])=>{if(!Array.isArray(s))return[i,s];const p=s.map(l);return p.some((f,u)=>f!==s[u])&&(o=!0),[i,p]}));o&&(t.zones=r,c=!0)}return c?t:n}export{m as RENAMED_PROPS,d as migrateRenamedProps};
1
+ import{isNodeList as m}from"efficient-easel/data";import{templateOnRead as u}from"../content/card-template.js";const y={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"};function l(o){let e=o.props,c=!1;if(o.type&&e)for(const[t,r]of Object.entries(y)){const n=t.indexOf("."),i=t.slice(0,n),s=t.slice(n+1);if(i!==o.type||!(s in e))continue;const p=e[s],f={...e};delete f[s],(!(r in f)||f[r]===void 0)&&(f[r]=p),e=f,c=!0}if(o.type&&e){const t=u(o.type,e);t!==e&&(e=t,c=!0)}if(e){let t=e;for(const[r,n]of Object.entries(e)){if(!m(n))continue;const i=n.map(l);i.some((s,p)=>s!==n[p])&&(t===e&&(t={...e}),t[r]=i,c=!0)}e=t}return c?{...o,props:e}:o}function g(o){const e=o;if(!e||typeof e!="object")return o;let c=!1;const t={...o};if(Array.isArray(e.content)){const r=e.content.map(l);r.some((n,i)=>n!==e.content[i])&&(t.content=r,c=!0)}if(e.zones&&typeof e.zones=="object"){let r=!1;const n=Object.fromEntries(Object.entries(e.zones).map(([i,s])=>{if(!Array.isArray(s))return[i,s];const p=s.map(l);return p.some((f,a)=>f!==s[a])&&(r=!0),[i,p]}));r&&(t.zones=n,c=!0)}return c?t:o}export{y as RENAMED_PROPS,g as migrateRenamedProps};
@@ -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:"DeliveryOptions",label:"Delivery Options",set:"commerce"},{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:"Series",label:"Recurring Columns",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"},{type:"DocMetaCards",label:"Document Detail Cards",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 l={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
 
@@ -12,4 +12,24 @@ WHAT REPLACES IT: a Cards section with Card style set to Label only. It draws th
12
12
 
13
13
  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.
14
14
 
15
- 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.`,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."},m=["Grid","Spacer"],y=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(l)])),u=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),i={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",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"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"},a={...i,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function b(e){return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0}function r(e){return Object.keys(a).filter(t=>a[t]===e).sort()}const g=r("general"),T=r("commerce"),E=r("service"),c="Flex",s="Box",S=`${s}es`;function d(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===c?d(t):n}export{y as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,g as GENERAL_BLOCKS,c as LEVEL_NAMED_TYPE,m as RETIRED_NESTABLE_SECTIONS,l as RETIRED_SECTIONS,o as SECTION_CATALOG,u as SECTION_LABELS,E as SERVICE_BLOCKS,i as UNLISTED_BLOCK_SETS,b as blockSetOf,r as blocksInSet,p as buildBlockCategories,w as labelAtLevel,d as labelForFlex};
15
+ 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).
16
+
17
+ 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.
18
+
19
+ WHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.
20
+
21
+ 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).
22
+
23
+ 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).
24
+
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.
26
+
27
+ WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints; a short row no longer keeps 4 columns; the count is one plain Text, its figure no longer in the text ink; a card with no count still draws the footer line.
28
+
29
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Recurring Columns still renders through it and can still be edited; no document is rewritten.`,DocMetaCards:`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).
30
+
31
+ WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value and a Card body. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
32
+
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
+
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};
@@ -0,0 +1,18 @@
1
+ type Props = Record<string, unknown>;
2
+ export declare const TEXT: Props;
3
+ export declare const DIM: Props;
4
+ export declare const BOX: Props;
5
+ export declare const INNER_BOX: Props;
6
+ export declare const boxPadding: (y: number, x?: number, yPhone?: number, xPhone?: number) => Props;
7
+ export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
8
+ export type BlockSeed = {
9
+ type: string;
10
+ props?: Props;
11
+ slots?: Readonly<Record<string, readonly BlockSeed[]>>;
12
+ };
13
+ export type SeededNode = {
14
+ type: string;
15
+ props: Props;
16
+ };
17
+ export declare function seedNodes(seeds: readonly BlockSeed[], idOf: (type: string, at: string) => string, at?: string): SeededNode[];
18
+ export {};
@@ -0,0 +1 @@
1
+ import{NESTED_BOX_PADDING as p}from"../content/box-layout.js";import{TextMeta as a}from"./blocks/general/Text/meta.js";const{text:x,tag:T,...g}=a.defaultProps,P=g,B={...P,tone:"dim"},f={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},N={...f,direction:"column",...p},_=(o,e=o,n=o,t=e)=>({sectionPaddingTop:o,sectionPaddingRight:e,sectionPaddingBottom:o,sectionPaddingLeft:e,sectionPaddingTopPhone:n,sectionPaddingRightPhone:t,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:t}),D=(o,e,n,t)=>({sizeToken:{step:o,px:e,...t?{stepPhone:t}:{},...n?{pxPhone:n}:{}}});function m(o,e,n=""){return o.map((t,i)=>{const s=n?`${n}.${i}`:String(i),r={...t.props??{}};for(const[c,d]of Object.entries(t.slots??{}))r[c]=m(d,e,s);return{type:t.type,props:{...r,id:e(t.type,s)}}})}export{f as BOX,B as DIM,N as INNER_BOX,P as TEXT,_ as boxPadding,m as seedNodes,D as token};
@@ -8,6 +8,8 @@ export interface EditorPageRowLike {
8
8
  groupKey?: string;
9
9
  }
10
10
  export declare function isDynamicPageRow(row: EditorPageRowLike): boolean;
11
+ export declare const POPUP_PAGE_ROW_KIND = "lightbox";
12
+ export declare function isPopupPageRow(row: EditorPageRowLike): boolean;
11
13
  export interface EditorPageBucket<T> {
12
14
  key: string;
13
15
  label: string;
@@ -1 +1 @@
1
- const c="Main Pages",i="Dynamic Pages",a="dynamic",p="dynamic";function u(n){return n.kind===p}function l(n){const t=[],s=[];for(const o of n){if(u(o)){s.push(o);continue}const e=o.groupKey??(o.group?`folder:${o.group}`:"top"),r=t[t.length-1];r&&r.key===e?r.rows.push(o):t.push({key:e,label:o.group??c,rows:[o]})}if(s.length){const o=t.findIndex(e=>e.key.startsWith("system:"));t.splice(o===-1?t.length:o,0,{key:a,label:i,rows:s})}return t}export{i as DYNAMIC_PAGES_GROUP,a as DYNAMIC_PAGES_GROUP_KEY,p as DYNAMIC_PAGE_KIND,c as MAIN_PAGES_GROUP,l as bucketEditorPageRows,u as isDynamicPageRow};
1
+ const c="Main Pages",i="Dynamic Pages",p="dynamic",u="dynamic";function P(e){return e.kind===u}const a="lightbox";function g(e){return e.kind===a}function l(e){const t=[],s=[];for(const o of e){if(P(o)){s.push(o);continue}const n=o.groupKey??(o.group?`folder:${o.group}`:"top"),r=t[t.length-1];r&&r.key===n?r.rows.push(o):t.push({key:n,label:o.group??c,rows:[o]})}if(s.length){const o=t.findIndex(n=>n.key.startsWith("system:"));t.splice(o===-1?t.length:o,0,{key:p,label:i,rows:s})}return t}export{i as DYNAMIC_PAGES_GROUP,p as DYNAMIC_PAGES_GROUP_KEY,u as DYNAMIC_PAGE_KIND,c as MAIN_PAGES_GROUP,a as POPUP_PAGE_ROW_KIND,l as bucketEditorPageRows,P as isDynamicPageRow,g as isPopupPageRow};