efficient-web-builder 67.6.0 → 67.8.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 (59) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/editor/lib/document/blocks/general/HostPart/fields.d.ts +2 -0
  3. package/dist/editor/lib/document/blocks/general/HostPart/fields.js +1 -0
  4. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  5. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  6. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  7. package/dist/editor/lib/document/build-config.js +1 -1
  8. package/dist/editor/lib/document/choice-pictures.d.ts +2 -0
  9. package/dist/editor/lib/document/choice-pictures.js +1 -1
  10. package/dist/editor/lib/document/controls.d.ts +5 -2
  11. package/dist/editor/lib/document/controls.js +1 -1
  12. package/dist/editor/lib/sections/text-layouts.js +1 -1
  13. package/dist/format/lib/content/box-background.d.ts +1 -0
  14. package/dist/format/lib/content/box-background.js +1 -1
  15. package/dist/format/lib/content/button-icon.d.ts +1 -1
  16. package/dist/format/lib/content/button-icon.js +1 -1
  17. package/dist/format/lib/content/card-template.d.ts +1 -0
  18. package/dist/format/lib/content/card-template.js +1 -1
  19. package/dist/format/lib/content/count-numbers.js +1 -1
  20. package/dist/format/lib/content/gallery-layout.d.ts +11 -2
  21. package/dist/format/lib/content/gallery-layout.js +1 -1
  22. package/dist/format/lib/document/blocks/block-types.d.ts +4 -0
  23. package/dist/format/lib/document/blocks/general/HostPart/meta.d.ts +2 -0
  24. package/dist/format/lib/document/blocks/general/HostPart/meta.js +1 -0
  25. package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
  26. package/dist/format/lib/document/blocks/general/metas.js +1 -1
  27. package/dist/format/lib/document/cap-hero-groups.js +1 -1
  28. package/dist/format/lib/document/general-order.d.ts +1 -1
  29. package/dist/format/lib/document/general-order.js +1 -1
  30. package/dist/format/lib/document/list-search-scopes.js +1 -1
  31. package/dist/format/lib/document/node-lists.d.ts +9 -0
  32. package/dist/format/lib/document/node-lists.js +1 -0
  33. package/dist/format/lib/document/passes/types.d.ts +4 -0
  34. package/dist/format/lib/document/renamed-props.js +1 -1
  35. package/dist/format/lib/document/section-catalog.js +1 -1
  36. package/dist/format/lib/editor-words-catalogue.d.ts +5 -0
  37. package/dist/format/lib/editor-words-catalogue.js +3 -3
  38. package/dist/format/lib/source-rules/no-hard-coded-option-rows.js +1 -1
  39. package/dist/format/lib/source-rules/own-key-reads.d.ts +5 -0
  40. package/dist/format/lib/source-rules/own-key-reads.js +9 -7
  41. package/dist/format/lib/source-rules/support/ts-program.d.ts +1 -0
  42. package/dist/format/lib/source-rules/support/ts-program.js +2 -2
  43. package/dist/render/components/ButtonBlock.js +1 -1
  44. package/dist/render/components/CardRowContext.d.ts +9 -1
  45. package/dist/render/components/CardRowContext.js +1 -1
  46. package/dist/render/components/Flex.js +1 -1
  47. package/dist/render/lib/animation/entrance.js +1 -1
  48. package/dist/render/lib/content/page-contents.js +1 -1
  49. package/dist/render/lib/document/blocks/general/HostPart/render.d.ts +2 -0
  50. package/dist/render/lib/document/blocks/general/HostPart/render.js +1 -0
  51. package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
  52. package/dist/render/lib/document/blocks/general/renders.js +1 -1
  53. package/dist/render/lib/document/card-press-titles.js +1 -1
  54. package/dist/render/lib/document/head-core-boxes.js +1 -1
  55. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  56. package/dist/render/lib/document/passes/section-padding.d.ts +5 -2
  57. package/dist/render/lib/document/passes/section-padding.js +1 -1
  58. package/dist/render/lib/document/wall-labels.js +1 -1
  59. package/package.json +1 -1
@@ -1 +1 @@
1
- import{parseHexColor as P}from"efficient-shell/format";import{fillColorRole as A}from"efficient-shell/markup";import{BOX_ROW_IMAGE_PROP as f}from"./box-card-rule.js";import{namedRowField as m,rowFieldText as h}from"./card-template.js";import{fillInkCss as C,fillSlotNamed as D,inkTokenOf as I,partColourName as E}from"../document/part-inks.js";import{scrim as p}from"./scrim.js";import{viewVarSplit as _}from"./view-var-split.js";const z="sf-card",g={min:0,max:100,step:5,fallback:0,unit:"%"},T=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],B="68%",G={desktop:20,phone:20,side:40,sidePhone:24},J="sf-box-sides",U={min:0,max:200,step:10};function N(t){return typeof t=="string"&&t.trim()!==""}function q(t){return N(typeof t?.bgImage=="string"?t.bgImage:null)||F(t)}function F(t){return m(t,f)!==""}function Q(t,e){return e||!F(t)?t:{...t,[f]:""}}function Z(t,e){const o=h(e,m(t,f))?.trim();return o||null}function O(t,e){const n=typeof t=="number"?t:Number.parseFloat(String(t??""));if(!Number.isFinite(n)||n<=0)return null;const l=(Math.min(g.max,Math.max(g.min,n))/100).toFixed(2);return e!=="bottom"?{background:p(Number(l))}:{background:`linear-gradient(0deg, ${p(Number(l))} 0%, ${p(0)} ${B})`}}const k=[{label:"Flat",value:"",hint:"One colour from top to bottom"},{label:"Fade",value:"down",hint:"The colour fades into the page colour at the bottom"}],v="fillFade",d=k[1].value,L=t=>t===d?d:k[0].value,R=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function tt(t){return L(t)!==d?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${R.map(n=>`color-mix(in srgb, var(--bg) ${n.mix}, transparent) ${n.at}`).join(", ")})`}}const y=t=>typeof t=="string"?P(t.trim()):null,x=t=>{const e=y(t);if(e!==null||typeof t!="string")return e;const n=t.trim();return n&&!n.startsWith("#")&&C(n)||null},et=t=>{if(typeof t!="string")return null;const e=A(E(t.trim()));return e?.kind==="slot"?e.slot:null},X="swatch";function nt(t,e){if(!e)return null;const n=h(e,m(t,X)),o=D(n);return y(n)??(o&&I(o)||null)}const W={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function ot(t,e,n){return _(W,x(t),x(e),x(n))}const V={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function rt(t){const e=O(t.darken,t.darkenStyle);if(!e)return{className:"",style:{}};const n=(r,u)=>String(O(r,u)?.background??"none"),o=r=>(typeof r=="number"||typeof r=="string"&&r.trim()!=="")&&Number.isFinite(Number(r))?r:void 0,l=r=>T.some(u=>u.value===r)?r:void 0,[s,a,i,c]=[o(t.darkenTablet),l(t.darkenStyleTablet),o(t.darkenPhone),l(t.darkenStylePhone)],b=s??t.darken,S=a??t.darkenStyle;return _(V,String(e.background),s!==void 0||a!==void 0?n(b,S):null,i!==void 0||c!==void 0?n(i??b,c??S):null)}function lt(t,e){const n={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[o,l]=n[t]??n.center,[s,a]=e==="column"?[l,o]:[o,l],i={start:"justify-start",center:"justify-center",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end"};return`${i[s]} ${c[a]}`}export{G as BOX_CARD_PAD,U as BOX_CARD_SIDE,g as BOX_DARKEN,T as BOX_DARKEN_STYLES,k as BOX_FILL_FADES,v as BOX_FILL_FADE_PROP,W as BOX_FILL_VIEWS,J as BOX_OWNS_SIDES_CLASS,X as BOX_SWATCH_PROP,V as BOX_WASH_VIEWS,z as CARD_SHADOW_CLASS,Q as boxCardProps,O as boxDarkenStyle,L as boxFillFadeOf,tt as boxFillFadeStyle,y as boxFillOf,et as boxFillSlot,ot as boxFillViews,q as boxIsCard,F as boxNamesRowPicture,x as boxPaintOf,lt as boxPlacementClasses,Z as boxRowPicture,nt as boxSwatchFill,rt as boxWashViews,N as isBackgroundBox};
1
+ import{parseHexColor as y}from"efficient-shell/format";import{fillColorRole as C}from"efficient-shell/markup";import{BOX_ROW_IMAGE_PROP as f}from"./box-card-rule.js";import{namedRowField as m,rowFieldText as S}from"./card-template.js";import{fillInkCss as P,fillSlotNamed as D,inkTokenOf as I,partColourName as E}from"../document/part-inks.js";import{scrim as p}from"./scrim.js";import{viewVarSplit as _}from"./view-var-split.js";const z="sf-card",G="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",F={min:0,max:100,step:5,fallback:0,unit:"%"},T=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],L="68%",J={desktop:20,phone:20,side:40,sidePhone:24},U="sf-box-sides",q={min:0,max:200,step:10};function N(t){return typeof t=="string"&&t.trim()!==""}function Q(t){return N(typeof t?.bgImage=="string"?t.bgImage:null)||g(t)}function g(t){return m(t,f)!==""}function Z(t,e){return e||!g(t)?t:{...t,[f]:""}}function v(t,e){const o=S(e,m(t,f))?.trim();return o||null}function O(t,e){const n=typeof t=="number"?t:Number.parseFloat(String(t??""));if(!Number.isFinite(n)||n<=0)return null;const l=(Math.min(F.max,Math.max(F.min,n))/100).toFixed(2);return e!=="bottom"?{background:p(Number(l))}:{background:`linear-gradient(0deg, ${p(Number(l))} 0%, ${p(0)} ${L})`}}const k=[{label:"Flat",value:"",hint:"One colour from top to bottom"},{label:"Fade",value:"down",hint:"The colour fades into the page colour at the bottom"}],tt="fillFade",d=k[1].value,B=t=>t===d?d:k[0].value,R=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function et(t){return B(t)!==d?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${R.map(n=>`color-mix(in srgb, var(--bg) ${n.mix}, transparent) ${n.at}`).join(", ")})`}}const A=t=>typeof t=="string"?y(t.trim()):null,x=t=>{const e=A(t);if(e!==null||typeof t!="string")return e;const n=t.trim();return n&&!n.startsWith("#")&&P(n)||null},nt=t=>{if(typeof t!="string")return null;const e=C(E(t.trim()));return e?.kind==="slot"?e.slot:null},X="swatch";function ot(t,e){if(!e)return null;const n=S(e,m(t,X)),o=D(n);return A(n)??(o&&I(o)||null)}const W={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function rt(t,e,n){return _(W,x(t),x(e),x(n))}const V={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function lt(t){const e=O(t.darken,t.darkenStyle);if(!e)return{className:"",style:{}};const n=(r,u)=>String(O(r,u)?.background??"none"),o=r=>(typeof r=="number"||typeof r=="string"&&r.trim()!=="")&&Number.isFinite(Number(r))?r:void 0,l=r=>T.some(u=>u.value===r)?r:void 0,[s,a,i,c]=[o(t.darkenTablet),l(t.darkenStyleTablet),o(t.darkenPhone),l(t.darkenStylePhone)],b=s??t.darken,h=a??t.darkenStyle;return _(V,String(e.background),s!==void 0||a!==void 0?n(b,h):null,i!==void 0||c!==void 0?n(i??b,c??h):null)}function st(t,e){const n={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[o,l]=n[t]??n.center,[s,a]=e==="column"?[l,o]:[o,l],i={start:"justify-start",center:"justify-center",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end"};return`${i[s]} ${c[a]}`}export{J as BOX_CARD_PAD,q as BOX_CARD_SIDE,F as BOX_DARKEN,T as BOX_DARKEN_STYLES,k as BOX_FILL_FADES,tt as BOX_FILL_FADE_PROP,W as BOX_FILL_VIEWS,U as BOX_OWNS_SIDES_CLASS,X as BOX_SWATCH_PROP,V as BOX_WASH_VIEWS,G as CARD_NO_LIFT_CLASS,z as CARD_SHADOW_CLASS,Z as boxCardProps,O as boxDarkenStyle,B as boxFillFadeOf,et as boxFillFadeStyle,A as boxFillOf,nt as boxFillSlot,rt as boxFillViews,Q as boxIsCard,g as boxNamesRowPicture,x as boxPaintOf,st as boxPlacementClasses,v as boxRowPicture,ot as boxSwatchFill,lt as boxWashViews,N as isBackgroundBox};
@@ -1,4 +1,4 @@
1
- export declare const BUTTON_ICONS: readonly ["none", "arrow-right", "arrow-long-right", "arrow-up-right", "chevron-right", "external", "cart", "bag", "tag", "email", "location", "play", "download", "search", "car"];
1
+ export declare const BUTTON_ICONS: readonly ["none", "arrow-right", "arrow-long-right", "arrow-up-right", "chevron-right", "external", "cart", "bag", "tag", "email", "location", "play", "download", "search", "car", "phone", "wheel", "chat", "chevron-left", "package", "truck", "shield-check", "receipt-refund"];
2
2
  export type ButtonIconChoice = (typeof BUTTON_ICONS)[number];
3
3
  export type ButtonIconGlyph = Exclude<ButtonIconChoice, "none">;
4
4
  export type ButtonIconSide = "before" | "after" | "end";
@@ -1 +1 @@
1
- import{buttonArrowShown as a}from"./button-arrow.js";import{nonEmptyString as r}from"../non-empty-string.js";const d=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car"];function c(t){return typeof t=="string"&&d.includes(t)?t:void 0}function m(t,o){return c(t)??(a(o)?"arrow-right":"none")}function s(t){return t==="before"?"before":t==="end"?"end":"after"}function v(t,o){return s(t)==="end"&&i(o)==="fill"}function i(t){return t==="fill"||t==="fixed"?"fill":"fit"}function b(t,o,l,{atSectionLine:u=!1}={}){const n=i(t);if(r(l)){const e=i(l),f=r(o)?i(o):e;return u?[n==="fill"?"view-desktop:w-full":"view-desktop:w-auto",e==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",f==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[n==="fill"?"view-desktop:w-full":"view-desktop:w-auto",e==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",f==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}const w=n==="fill"?["w-full"]:[];if(r(o)){const e=i(o);e!==n&&w.push(e==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return w.join(" ")}export{d as BUTTON_ICONS,v as buttonIconAtEnd,m as buttonIconChoice,s as buttonIconSide,i as buttonWidth,b as buttonWidthClass,c as storedButtonIcon};
1
+ import{buttonArrowShown as a}from"./button-arrow.js";import{nonEmptyString as r}from"../non-empty-string.js";const c=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car","phone","wheel","chat","chevron-left","package","truck","shield-check","receipt-refund"];function d(t){return typeof t=="string"&&c.includes(t)?t:void 0}function h(t,e){return d(t)??(a(e)?"arrow-right":"none")}function s(t){return t==="before"?"before":t==="end"?"end":"after"}function m(t,e){return s(t)==="end"&&i(e)==="fill"}function i(t){return t==="fill"||t==="fixed"?"fill":"fit"}function v(t,e,l,{atSectionLine:u=!1}={}){const n=i(t);if(r(l)){const o=i(l),f=r(e)?i(e):o;return u?[n==="fill"?"view-desktop:w-full":"view-desktop:w-auto",o==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",f==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[n==="fill"?"view-desktop:w-full":"view-desktop:w-auto",o==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",f==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}const w=n==="fill"?["w-full"]:[];if(r(e)){const o=i(e);o!==n&&w.push(o==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return w.join(" ")}export{c as BUTTON_ICONS,m as buttonIconAtEnd,h as buttonIconChoice,s as buttonIconSide,i as buttonWidth,v as buttonWidthClass,d as storedButtonIcon};
@@ -107,4 +107,5 @@ export declare function cardListFieldsOf(appState: unknown, list: {
107
107
  props?: Record<string, unknown>;
108
108
  } | null | undefined, kind?: CardRowFieldKind): readonly CardRowFieldSpec[];
109
109
  export declare function cardListProps(rows: readonly Record<string, unknown>[], fields: readonly CardRowFieldSpec[]): Record<string, unknown>;
110
+ export declare const HOST_PART_TYPE = "HostPart";
110
111
  export {};
@@ -1 +1 @@
1
- import{blockSources as F,blockSourceSpec as T,declaredBlockSource as h}from"./block-sources.js";import{slotFieldBlocks as B}from"./slot-field-blocks.js";import{isNodeList as P}from"efficient-easel/data";import{BOX_TYPE as D}from"../document/container-blocks.js";import{globalRegistry as v}from"../global-registry.js";import{nonEmptyString as L}from"../non-empty-string.js";import{accentItalicRuns as W}from"../markup.js";import{withCardsTemplate as M}from"../document/cards-template-on-read.js";import{withCardListTemplate as N}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as K,withArticleBodyTemplate as j}from"../document/article-body-seed.js";import{withLogosTemplate as H}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as Y}from"../document/blocks/general/FAQ/card-seed.js";import{withFootprintListTemplate as $}from"../document/blocks/general/Footprint/card-seed.js";const O="template",U="Card template",y="CardList",S=["Text","ImageBlock","ButtonBlock","Flex"],p="rowField",m="rowLinkField";function Be(){return{type:"slot",allow:[...S]}}const Q=S.filter(e=>e!=="ButtonBlock"),R="items",A="itemFields";function Le(){return{type:"slot",allow:[...Q]}}const q=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Y(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>$(e)},{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,plain:!0}],seed:e=>M("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:y,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>H(e)},{block:y,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:R,seed:e=>N(e)},{block:K,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>j(e)}];function f(){return v("efficient.card-templates",()=>new Map(q.map(e=>[e.block,e])))}function Oe(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(l=>l.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=[];for(const o of t.slots??[]){if(typeof o?.slot!="string"||!o.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);const l=L(o.label),c=Array.isArray(o.fields)?{fields:o.fields.map(a=>({...a}))}:null;n.some(a=>a.slot===o.slot)||n.push({slot:o.slot,...l?{label:l}:null,...c})}const s=n.some(o=>o.fields);if(s&&(t.fields.some(o=>o.everySource)||F(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?B().add(t.block):B().delete(t.block);const i=L(t.typedRows);f().set(t.block,{block:t.block,...n.length?{slots:n}:{},fields:t.fields.map(o=>({...o})),blocks:r,typedRows:i,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function V(e,t){const r=e?f().get(e)?.seed:void 0;return r?r(t):t}function Se(e,t){const r=z(e),n=(r.length?r:[O]).filter(l=>t[l]===void 0||Array.isArray(t[l])&&t[l].length===0);if(!n.length)return t;const s={...t};for(const l of n)delete s[l];const i=e?f().get(e)?.seedOnInsert:void 0,o=i?i(s):V(e,s);return o===s?t:o}function Re(){for(const e of f().values())if(e.blocks?.length)return!0;return!1}function Ae(e){return f().get(e)?.blocks??[]}function Ce(e){for(const t of f().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function _e(e){return typeof e=="string"&&f().get(e)?.typedRows||""}function Ee(e){return typeof e=="string"&&f().get(e)?.linesBetween===!0}function Ie(e){return typeof e=="string"&&f().has(e)}const X=[{slot:O}];function k(e){if(typeof e!="string")return[];const t=f().get(e);return t?t.slots??X:[]}function z(e){return k(e).map(t=>t.slot)}function G(e,t){return k(e).some(r=>r.slot===t)}function Fe(e,t){const r=k(e).find(n=>n.slot===t);return r?r.label??U:null}function x(e,t){return t?k(e).find(r=>r.slot===t)?.fields:void 0}function J(e,t){const r=f().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function Z(e,t){if(typeof e!="string")return"";const r=x(e,t);return(r?r.filter(n=>n.kind==="list"):J(e,"list"))[0]?.key??""}function ee(e,t,r){return g(e)||Z(t,r)}function C(e,t,r){const n=typeof e?.type=="string"?e.type:"";if(!n)return[];const s=x(n,r);if(s)return t?s.filter(c=>(c.kind??"text")===t):s;const i=f().get(n)?.fields??[],o=T(h(e?.props))?.fields,l=o?.length?[...o.map(c=>({...c})),...i.filter(c=>c.everySource&&!o.some(a=>a.key===c.key))]:i;return t?l.filter(c=>(c.kind??"text")===t):l}function te(e,t,r,n){if(!e)return null;const s=x(e,n);return s?s.find(i=>i.key===t)??null:r?C(r).find(i=>i.key===t)??null:f().get(e)?.fields.find(i=>i.key===t)??null}function _(e,t){return!e||!t?null:e.fields?.find(r=>r.key===t)??te(e.ownerType,t,e.owner,e.slot)}function Pe(e,t){return _(e,t)?.plain===!0}function g(e,t=p){const r=e?.[t];return typeof r=="string"?r.trim():""}function De(e,t){return e.key||String(t+1)}function ve(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}const re="hideWhenRowEmpty";function We(e,t){const r=e[re];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}const w={Text:{text:p,href:m},ImageBlock:{src:p,href:m},ButtonBlock:{label:p,href:m},LogoBlock:{alt:p,href:m},Breadcrumb:{currentCrumb:p}},Me=w,oe=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Ne(e,t,r){return ne(e,t,r)&&!oe.has(`${e}.${r}`)}function ne(e,t,r){return le(e,t,r)!==""}function le(e,t,r){const n=w[e]?.[r];return n?g(t,n):""}function E(e,t){return!t||!e?null:e[t]??""}function se(e,t){return E(e,t)?.trim()||void 0}function Ke(e,t,r,n,s,i){if(!r)return t;let o=null;for(const[l,c]of Object.entries(w[e]??{})){const a=g(t,c),u=E(r,a);if(u!==null){if(o??={...t},c===m){o[l]=se(r,a);continue}o[l]=_({ownerType:n,fields:s,slot:i},a)?.mark==="accentItalic"?W(u):u}}return o??t}function b(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,o)=>{for(const l of i){if(l?.props?.id===t)return o;for(const[c,a]of Object.entries(l?.props??{})){if(!P(a))continue;const u=G(l.type,c)?{owner:l,slot:c,direct:!0,nested:o!==null,underBox:!1}:o&&{owner:o.owner,slot:o.slot,direct:!1,nested:o.nested,underBox:o.underBox||l.type===D},d=n(a,u);if(d!==void 0)return d}}},s=n(r,null);return s===void 0?null:s}function ie(e,t){const r=b(e,t);return r&&r.owner}function ce(e,t){const r=b(e,t);return r&&r.slot}function je(e,t){const r=b(e,t);return r&&(r.direct?r.owner:null)}function He(e,t){const r=b(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function Ye(e,t,r){if(t?.type!==y)return[];const n=ie(e,t.props?.id);if(!n){const l=T(h(t.props))?.fields,c=l?.length?l.map(d=>({...d})):ae(t.props),a=(f().get(y)?.fields??[]).filter(d=>d.everySource&&!c.some(I=>I.key===d.key)),u=[...c,...a];return r?u.filter(d=>(d.kind??"text")===r):u}const s=ce(e,t.props?.id)??void 0,i=ee(t.props,n.type,s),o=i&&C(n,"list",s).find(l=>l.key===i)?.fields||[];return r?o.filter(l=>(l.kind??"text")===r):o}function $e(e,t){return{[p]:"",[R]:e.map(r=>({...r})),[A]:t.map(r=>({...r}))}}function ae(e,t){const r=e?.[A];if(!Array.isArray(r))return[];const n=r.flatMap(s=>{if(!s||typeof s!="object")return[];const{key:i,label:o,kind:l,multiline:c,alt:a,next:u}=s;if(typeof i!="string"||!i||typeof o!="string")return[];const d=l==="image"||l==="link"||l==="colour"?l:void 0;return[{key:i,label:o,...d?{kind:d}:{},...c===!0?{multiline:!0}:{},...typeof a=="string"&&a?{alt:a}:{},...typeof u=="string"&&u?{next:u}:{}}]});return t?n.filter(s=>(s.kind??"text")===t):n}export{re as BOX_HIDE_WHEN_ROW_EMPTY,A as CARD_LIST_FIELDS,Q as CARD_LIST_ITEM_BLOCKS,R as CARD_LIST_ROWS,y as CARD_LIST_TYPE,p as CARD_ROW_FIELD_PROP,m as CARD_ROW_LINK_PROP,S as CARD_TEMPLATE_BLOCKS,U as CARD_TEMPLATE_LABEL,O as CARD_TEMPLATE_SLOT,Me as ROW_BOUND_PROPS,oe as ROW_PART_BY_WORDS,He as cardCopyPlace,De as cardKeyOf,Ye as cardListFieldsOf,Le as cardListItemSlot,$e as cardListProps,ee as cardListShows,ve as cardRow,Ae as cardTemplateBlocks,je as cardTemplateCardOwner,te as cardTemplateField,J as cardTemplateFields,C as cardTemplateFieldsOf,Ee as cardTemplateLinesBetween,ie as cardTemplateOwner,Be as cardTemplateSlot,Fe as cardTemplateSlotLabel,z as cardTemplateSlotNames,ce as cardTemplateSlotOf,_e as cardTemplateTypedRows,Re as cardTemplatesNameBlocks,Z as defaultListField,Ie as hasCardTemplate,Ce as isCardTemplateBlock,G as isCardTemplateSlot,g as namedRowField,Oe as registerCardTemplates,ne as rowBound,le as rowFieldOf,_ as rowFieldSpec,E as rowFieldText,Pe as rowFieldWordsArePlain,Ke as rowFilledProps,se as rowLinkText,Ne as rowPartByKey,We as templateBoxIsEmpty,Se as templateOnInsert,V as templateOnRead};
1
+ import{blockSources as P,blockSourceSpec as T,declaredBlockSource as h}from"./block-sources.js";import{slotFieldBlocks as B}from"./slot-field-blocks.js";import{isNodeList as D}from"efficient-easel/data";import{BOX_TYPE as v}from"../document/container-blocks.js";import{globalRegistry as W}from"../global-registry.js";import{nonEmptyString as L}from"../non-empty-string.js";import{accentItalicRuns as M}from"../markup.js";import{withCardsTemplate as N}from"../document/cards-template-on-read.js";import{withCardListTemplate as K}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as H,withArticleBodyTemplate as $}from"../document/article-body-seed.js";import{withLogosTemplate as Y}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as j}from"../document/blocks/general/FAQ/card-seed.js";import{withFootprintListTemplate as U}from"../document/blocks/general/Footprint/card-seed.js";const O="template",Q="Card template",y="CardList",S=["Text","ImageBlock","ButtonBlock","Flex"],p="rowField",m="rowLinkField";function Le(){return{type:"slot",allow:[...S]}}const q=S.filter(e=>e!=="ButtonBlock"),R="items",_="itemFields";function Oe(){return{type:"slot",allow:[...q]}}const V=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>j(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>U(e)},{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,plain:!0}],seed:e=>N("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:y,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>Y(e)},{block:y,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:R,seed:e=>K(e)},{block:H,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>$(e)}];function f(){return W("efficient.card-templates",()=>new Map(V.map(e=>[e.block,e])))}function Se(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.`);if(o.type===I)throw new Error(`The card template of ${t.block} names "${I}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);r.some(l=>l.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=[];for(const o of t.slots??[]){if(typeof o?.slot!="string"||!o.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);const l=L(o.label),a=Array.isArray(o.fields)?{fields:o.fields.map(c=>({...c}))}:null;n.some(c=>c.slot===o.slot)||n.push({slot:o.slot,...l?{label:l}:null,...a})}const s=n.some(o=>o.fields);if(s&&(t.fields.some(o=>o.everySource)||P(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?B().add(t.block):B().delete(t.block);const i=L(t.typedRows);f().set(t.block,{block:t.block,...n.length?{slots:n}:{},fields:t.fields.map(o=>({...o})),blocks:r,typedRows:i,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function X(e,t){const r=e?f().get(e)?.seed:void 0;return r?r(t):t}function Re(e,t){const r=G(e),n=(r.length?r:[O]).filter(l=>t[l]===void 0||Array.isArray(t[l])&&t[l].length===0);if(!n.length)return t;const s={...t};for(const l of n)delete s[l];const i=e?f().get(e)?.seedOnInsert:void 0,o=i?i(s):X(e,s);return o===s?t:o}function _e(){for(const e of f().values())if(e.blocks?.length)return!0;return!1}function Ae(e){return f().get(e)?.blocks??[]}function Ce(e){for(const t of f().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function Ee(e){return typeof e=="string"&&f().get(e)?.typedRows||""}function Ie(e){return typeof e=="string"&&f().get(e)?.linesBetween===!0}function Fe(e){return typeof e=="string"&&f().has(e)}const z=[{slot:O}];function k(e){if(typeof e!="string")return[];const t=f().get(e);return t?t.slots??z:[]}function G(e){return k(e).map(t=>t.slot)}function J(e,t){return k(e).some(r=>r.slot===t)}function Pe(e,t){const r=k(e).find(n=>n.slot===t);return r?r.label??Q:null}function x(e,t){return t?k(e).find(r=>r.slot===t)?.fields:void 0}function Z(e,t){const r=f().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function ee(e,t){if(typeof e!="string")return"";const r=x(e,t);return(r?r.filter(n=>n.kind==="list"):Z(e,"list"))[0]?.key??""}function te(e,t,r){return g(e)||ee(t,r)}function A(e,t,r){const n=typeof e?.type=="string"?e.type:"";if(!n)return[];const s=x(n,r);if(s)return t?s.filter(a=>(a.kind??"text")===t):s;const i=f().get(n)?.fields??[],o=T(h(e?.props))?.fields,l=o?.length?[...o.map(a=>({...a})),...i.filter(a=>a.everySource&&!o.some(c=>c.key===a.key))]:i;return t?l.filter(a=>(a.kind??"text")===t):l}function re(e,t,r,n){if(!e)return null;const s=x(e,n);return s?s.find(i=>i.key===t)??null:r?A(r).find(i=>i.key===t)??null:f().get(e)?.fields.find(i=>i.key===t)??null}function C(e,t){return!e||!t?null:e.fields?.find(r=>r.key===t)??re(e.ownerType,t,e.owner,e.slot)}function De(e,t){return C(e,t)?.plain===!0}function g(e,t=p){const r=e?.[t];return typeof r=="string"?r.trim():""}function ve(e,t){return e.key||String(t+1)}function We(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}const oe="hideWhenRowEmpty";function Me(e,t){const r=e[oe];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}const w={Text:{text:p,href:m},ImageBlock:{src:p,href:m},ButtonBlock:{label:p,href:m},LogoBlock:{alt:p,href:m},Breadcrumb:{currentCrumb:p}},Ne=w,ne=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Ke(e,t,r){return le(e,t,r)&&!ne.has(`${e}.${r}`)}function le(e,t,r){return se(e,t,r)!==""}function se(e,t,r){const n=w[e]?.[r];return n?g(t,n):""}function E(e,t){return!t||!e?null:e[t]??""}function ie(e,t){return E(e,t)?.trim()||void 0}function He(e,t,r,n,s,i){if(!r)return t;let o=null;for(const[l,a]of Object.entries(w[e]??{})){const c=g(t,a),u=E(r,c);if(u!==null){if(o??={...t},a===m){o[l]=ie(r,c);continue}o[l]=C({ownerType:n,fields:s,slot:i},c)?.mark==="accentItalic"?M(u):u}}return o??t}function b(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,o)=>{for(const l of i){if(l?.props?.id===t)return o;for(const[a,c]of Object.entries(l?.props??{})){if(!D(c))continue;const u=J(l.type,a)?{owner:l,slot:a,direct:!0,nested:o!==null,underBox:!1}:o&&{owner:o.owner,slot:o.slot,direct:!1,nested:o.nested,underBox:o.underBox||l.type===v},d=n(c,u);if(d!==void 0)return d}}},s=n(r,null);return s===void 0?null:s}function ae(e,t){const r=b(e,t);return r&&r.owner}function ce(e,t){const r=b(e,t);return r&&r.slot}function $e(e,t){const r=b(e,t);return r&&(r.direct?r.owner:null)}function Ye(e,t){const r=b(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function je(e,t,r){if(t?.type!==y)return[];const n=ae(e,t.props?.id);if(!n){const l=T(h(t.props))?.fields,a=l?.length?l.map(d=>({...d})):fe(t.props),c=(f().get(y)?.fields??[]).filter(d=>d.everySource&&!a.some(F=>F.key===d.key)),u=[...a,...c];return r?u.filter(d=>(d.kind??"text")===r):u}const s=ce(e,t.props?.id)??void 0,i=te(t.props,n.type,s),o=i&&A(n,"list",s).find(l=>l.key===i)?.fields||[];return r?o.filter(l=>(l.kind??"text")===r):o}function Ue(e,t){return{[p]:"",[R]:e.map(r=>({...r})),[_]:t.map(r=>({...r}))}}function fe(e,t){const r=e?.[_];if(!Array.isArray(r))return[];const n=r.flatMap(s=>{if(!s||typeof s!="object")return[];const{key:i,label:o,kind:l,multiline:a,alt:c,next:u}=s;if(typeof i!="string"||!i||typeof o!="string")return[];const d=l==="image"||l==="link"||l==="colour"?l:void 0;return[{key:i,label:o,...d?{kind:d}:{},...a===!0?{multiline:!0}:{},...typeof c=="string"&&c?{alt:c}:{},...typeof u=="string"&&u?{next:u}:{}}]});return t?n.filter(s=>(s.kind??"text")===t):n}const I="HostPart";export{oe as BOX_HIDE_WHEN_ROW_EMPTY,_ as CARD_LIST_FIELDS,q as CARD_LIST_ITEM_BLOCKS,R as CARD_LIST_ROWS,y as CARD_LIST_TYPE,p as CARD_ROW_FIELD_PROP,m as CARD_ROW_LINK_PROP,S as CARD_TEMPLATE_BLOCKS,Q as CARD_TEMPLATE_LABEL,O as CARD_TEMPLATE_SLOT,I as HOST_PART_TYPE,Ne as ROW_BOUND_PROPS,ne as ROW_PART_BY_WORDS,Ye as cardCopyPlace,ve as cardKeyOf,je as cardListFieldsOf,Oe as cardListItemSlot,Ue as cardListProps,te as cardListShows,We as cardRow,Ae as cardTemplateBlocks,$e as cardTemplateCardOwner,re as cardTemplateField,Z as cardTemplateFields,A as cardTemplateFieldsOf,Ie as cardTemplateLinesBetween,ae as cardTemplateOwner,Le as cardTemplateSlot,Pe as cardTemplateSlotLabel,G as cardTemplateSlotNames,ce as cardTemplateSlotOf,Ee as cardTemplateTypedRows,_e as cardTemplatesNameBlocks,ee as defaultListField,Fe as hasCardTemplate,Ce as isCardTemplateBlock,J as isCardTemplateSlot,g as namedRowField,Se as registerCardTemplates,le as rowBound,se as rowFieldOf,C as rowFieldSpec,E as rowFieldText,De as rowFieldWordsArePlain,He as rowFilledProps,ie as rowLinkText,Ke as rowPartByKey,Me as templateBoxIsEmpty,Re as templateOnInsert,X as templateOnRead};
@@ -1 +1 @@
1
- import{isNodeList as c}from"efficient-easel/data";import{CARD_LIST_ROWS as _,CARD_LIST_TYPE as y,namedRowField as E}from"./card-template.js";import{BLOCK_SOURCE_PROP as C,COUNT_KEY_PROP as f,COUNTS_SOURCE as p,declaredBlockSource as x,sourceChoices as U}from"./block-sources.js";const N="Flex";function R(e,r){return E(e)?typeof e?.[f]=="string"?a(r?.[f]):"":a(e?.[f])}const a=e=>typeof e=="string"?e.trim():"",P=e=>e.type===y&&Array.isArray(e.props?.[_])&&e.props[_].some(r=>a(r?.[f])!==""),b=new Intl.NumberFormat("en-US");function A(e){return/^\d+$/.test(e)?b.format(Number(e)):e}function Y(e,r){const n=r?r.find(t=>t.key===e)?.value:U(p).find(t=>t.key===e)?.value;return n===void 0?null:A(n)}const B={[f]:"any"};function l(e,r=!1){const n=e.props;if(!n)return{node:e,names:!1};let t=e.type==="Text"&&(R(n)!==""||r&&R(n,B)!=="");const u=r||P(e);let o=n;for(const[O,i]of Object.entries(n)){if(!c(i))continue;const m=i.map(s=>l(s,u));m.some(s=>s.names)&&(t=!0),m.some((s,T)=>s.node!==i[T])&&(o={...o,[O]:m.map(s=>s.node)})}if(e.type!==N)return{node:o===n?e:{...e,props:o},names:t};const d=x(o);if(t&&!d&&(o={...o,[C]:p}),!t&&d===p){const{[C]:O,...i}=o;o=i}return{node:o===n?e:{...e,props:o},names:!1}}function S(e,r,n){for(const t of e){if(t?.props?.id===r)return n;for(const u of Object.values(t?.props??{})){if(!c(u))continue;const o=S(u,r,t.type===N?t:n);if(o!==void 0)return o}}}function g(e,r){if(!c(e))return!0;const n=S(e,r,null);if(n===void 0)return!0;if(n===null)return!1;const t=x(n.props);return!t||t===p}function k(e){const r=e?.content;if(!c(r))return e;const n=r.map(t=>l(t));return n.every((t,u)=>t.node===r[u])?e:{...e,content:n.map(t=>t.node)}}function F(e){return l(e).node}export{Y as countNumber,A as countWords,g as countsReachText,R as linkedCount,F as settleCountNode,k as settleCountSources};
1
+ import{isNodeList as c}from"efficient-easel/data";import{mapEachNode as S,mapNodeLists as T}from"../document/node-lists.js";import{CARD_LIST_ROWS as _,CARD_LIST_TYPE as E,namedRowField as y}from"./card-template.js";import{BLOCK_SOURCE_PROP as N,COUNT_KEY_PROP as u,COUNTS_SOURCE as i,declaredBlockSource as O,sourceChoices as U}from"./block-sources.js";const C="Flex";function x(t,n){return y(t)?typeof t?.[u]=="string"?p(n?.[u]):"":p(t?.[u])}const p=t=>typeof t=="string"?t.trim():"",L=t=>t.type===E&&Array.isArray(t.props?.[_])&&t.props[_].some(n=>p(n?.[u])!==""),P=new Intl.NumberFormat("en-US");function A(t){return/^\d+$/.test(t)?P.format(Number(t)):t}function h(t,n){const r=n?n.find(e=>e.key===t)?.value:U(i).find(e=>e.key===t)?.value;return r===void 0?null:A(r)}const B={[u]:"any"};function m(t,n=!1){const r=t.props;if(!r)return{node:t,names:!1};let e=t.type==="Text"&&(x(r)!==""||n&&x(r,B)!=="");const s=n||L(t);let o=T(t,d=>S(d,f=>{const l=m(f,s);return l.names&&(e=!0),l.node})).props;if(t.type!==C)return{node:o===r?t:{...t,props:o},names:e};const a=O(o);if(e&&!a&&(o={...o,[N]:i}),!e&&a===i){const{[N]:d,...f}=o;o=f}return{node:o===r?t:{...t,props:o},names:!1}}function R(t,n,r){for(const e of t){if(e?.props?.id===n)return r;for(const s of Object.values(e?.props??{})){if(!c(s))continue;const o=R(s,n,e.type===C?e:r);if(o!==void 0)return o}}}function v(t,n){if(!c(t))return!0;const r=R(t,n,null);if(r===void 0)return!0;if(r===null)return!1;const e=O(r.props);return!e||e===i}function F(t){const n=t?.content;if(!c(n))return t;const r=n.map(e=>m(e));return r.every((e,s)=>e.node===n[s])?t:{...t,content:r.map(e=>e.node)}}function I(t){return m(t).node}export{h as countNumber,A as countWords,v as countsReachText,x as linkedCount,I as settleCountNode,F as settleCountSources};
@@ -171,9 +171,18 @@ export declare const GALLERY_LAYOUT_KEYS: GalleryLayoutKey[];
171
171
  export declare const GALLERY_ACROSS_BUCKETS: readonly (2 | 3 | 4 | 6)[];
172
172
  export declare function galleryChoices(across: number | null, chosen: string): GalleryLayoutKey[];
173
173
  export declare function resolveGalleryLayout(value: unknown): GalleryLayout | null;
174
+ export declare const GALLERY_PHONE_LAYOUTS: {
175
+ readonly oneAcross: {
176
+ readonly label: "One across";
177
+ readonly phone: readonly [readonly [6, 2]];
178
+ readonly acrossPhone: 1;
179
+ };
180
+ };
181
+ export type GalleryPhoneLayoutKey = keyof typeof GALLERY_PHONE_LAYOUTS;
182
+ export declare function resolveGalleryPhoneLayout(value: unknown): GalleryPhoneLayoutKey | null;
174
183
  export declare function galleryTailSpan(layout: GalleryLayout, phone: boolean): number;
175
184
  export declare function galleryLayoutRatio(layout: GalleryLayout): readonly [number, number] | null;
176
185
  export declare function galleryPictureCells(layout: GalleryLayout): readonly GalleryCell[];
177
186
  export declare const GALLERY_LAYOUT_CLASS_PREFIX = "sf-wall--";
178
- export declare function galleryLayoutClass(key: GalleryLayoutKey): string;
179
- export declare function galleryLayoutCss(key: GalleryLayoutKey): string;
187
+ export declare function galleryLayoutClass(key: GalleryLayoutKey, phone?: GalleryPhoneLayoutKey | null): string;
188
+ export declare function galleryLayoutCss(key: GalleryLayoutKey, phone?: GalleryPhoneLayoutKey | null): string;
@@ -1 +1 @@
1
- import{SHAPE_TABLE as b}from"./gallery-card-layout.js";const $=12,L=6,T=800,c={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes · photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},x=Object.keys(c),w=[2,3,4,6];function _(o,e){return x.filter(s=>s===e||o===null||c[s].across===o)}function O(o){return typeof o!="string"||o===""?null:c[o]??null}function k(o,e){return e?L/o.acrossPhone:$/o.across}function A(o){return o.ratio?b.find(e=>e.shape===o.ratio)?.ratio??null:null}function R(o){return[...o.lead??[],...o.desktop]}const m="sf-wall--";function E(o){return`${m}${o}`}function y(o){const e=c[o],s=`.${E(o)}`,r=[],g=(l,h,a)=>`${s}:has(> :nth-child(${l}n+${h+a}):last-child) > :nth-last-child(-n+${a})`,f=(l,h,a=[])=>{const t=[],i=l.length,P=a.length;a.forEach(([n,d],u)=>{t.push(`${s} > :nth-child(${u+1}){grid-column:span ${n};grid-row:span ${d}}`)}),l.forEach(([n,d],u)=>{t.push(`${s} > :nth-child(${i}n+${P+u+1}){grid-column:span ${n};grid-row:span ${d}}`)});for(let n=1;n<i;n+=1)t.push(`${g(i,P,n)}{grid-column:span ${h};grid-row:span 1}`);return t};r.push(`${s}{grid-template-columns:repeat(${$},minmax(0,1fr))}`);const p=A(e);if(p&&(r.push(`${s}${s}{grid-auto-rows:auto}`),r.push(`${s}${s} > *{aspect-ratio:${p[0]}/${p[1]};height:auto}`)),r.push(...f(e.desktop,k(e,!1),e.lead)),r.push(`@media (max-width:${T}px){`),r.push(`${s}{grid-template-columns:repeat(${L},minmax(0,1fr))}`),r.push(...f(e.phone,k(e,!0),e.leadPhone)),e.phone.length===1&&!e.leadPhone?.length){const[l,h]=e.phone[0],a=e.lead?.length??0;for(let t=1;t<e.desktop.length;t+=1)r.push(`${g(e.desktop.length,a,t)}{grid-column:span ${l};grid-row:span ${h}}`)}return r.push("}"),r.join("")}export{w as GALLERY_ACROSS_BUCKETS,$ as GALLERY_COLUMNS,L as GALLERY_COLUMNS_PHONE,c as GALLERY_LAYOUTS,m as GALLERY_LAYOUT_CLASS_PREFIX,x as GALLERY_LAYOUT_KEYS,T as GALLERY_PHONE_BREAKPOINT,_ as galleryChoices,E as galleryLayoutClass,y as galleryLayoutCss,A as galleryLayoutRatio,R as galleryPictureCells,k as galleryTailSpan,O as resolveGalleryLayout};
1
+ import{SHAPE_TABLE as A}from"./gallery-card-layout.js";const k=12,P=6,E=800,i={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes · photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},w=Object.keys(i),_=[2,3,4,6];function R(o,s){return w.filter(h=>h===s||o===null||i[h].across===o)}function Y(o){return typeof o!="string"||o===""?null:i[o]??null}const x={oneAcross:{label:"One across",phone:[[P,2]],acrossPhone:1}};function G(o){return typeof o=="string"&&Object.prototype.hasOwnProperty.call(x,o)?o:null}function T(o,s){return s?P/o.acrossPhone:k/o.across}function S(o){return o.ratio?A.find(s=>s.shape===o.ratio)?.ratio??null:null}function C(o){return[...o.lead??[],...o.desktop]}const m="sf-wall--";function O(o,s){return`${m}${o}${s?`--${s}`:""}`}function B(o,s){const h=i[o],e=s?{...h,...x[s],leadPhone:void 0}:h,t=`.${O(o,s)}`,r=[],$=(c,p,a)=>`${t}:has(> :nth-child(${c}n+${p+a}):last-child) > :nth-last-child(-n+${a})`,L=(c,p,a=[])=>{const n=[],u=c.length,b=a.length;a.forEach(([l,g],f)=>{n.push(`${t} > :nth-child(${f+1}){grid-column:span ${l};grid-row:span ${g}}`)}),c.forEach(([l,g],f)=>{n.push(`${t} > :nth-child(${u}n+${b+f+1}){grid-column:span ${l};grid-row:span ${g}}`)});for(let l=1;l<u;l+=1)n.push(`${$(u,b,l)}{grid-column:span ${p};grid-row:span 1}`);return n};r.push(`${t}{grid-template-columns:repeat(${k},minmax(0,1fr))}`);const d=S(e);if(d&&(r.push(`${t}${t}{grid-auto-rows:auto}`),r.push(`${t}${t} > *{aspect-ratio:${d[0]}/${d[1]};height:auto}`)),r.push(...L(e.desktop,T(e,!1),e.lead)),r.push(`@media (max-width:${E}px){`),r.push(`${t}{grid-template-columns:repeat(${P},minmax(0,1fr))}`),r.push(...L(e.phone,T(e,!0),e.leadPhone)),e.phone.length===1&&!e.leadPhone?.length){const[c,p]=e.phone[0],a=e.lead?.length??0;for(let n=1;n<e.desktop.length;n+=1)r.push(`${$(e.desktop.length,a,n)}{grid-column:span ${c};grid-row:span ${p}}`)}return r.push("}"),r.join("")}export{_ as GALLERY_ACROSS_BUCKETS,k as GALLERY_COLUMNS,P as GALLERY_COLUMNS_PHONE,i as GALLERY_LAYOUTS,m as GALLERY_LAYOUT_CLASS_PREFIX,w as GALLERY_LAYOUT_KEYS,E as GALLERY_PHONE_BREAKPOINT,x as GALLERY_PHONE_LAYOUTS,R as galleryChoices,O as galleryLayoutClass,B as galleryLayoutCss,S as galleryLayoutRatio,C as galleryPictureCells,T as galleryTailSpan,Y as resolveGalleryLayout,G as resolveGalleryPhoneLayout};
@@ -10,6 +10,10 @@ export type BlockSlots = Record<string, {
10
10
  export type BlockRender = Pick<Block, "label" | "defaultProps" | "render" | "inline" | "phoneOrder"> & {
11
11
  fields?: BlockSlots;
12
12
  drawsPictures?: true;
13
+ innerPadding?: {
14
+ top: number;
15
+ bottom: number;
16
+ };
13
17
  };
14
18
  export type BlockMeta = Omit<BlockRender, "render">;
15
19
  export type BlockFields = Pick<Block, "fields" | "resolveFields" | "resolveData"> & {
@@ -0,0 +1,2 @@
1
+ import type { BlockMeta } from "../../block-types.js";
2
+ export declare const HostPartMeta: BlockMeta;
@@ -0,0 +1 @@
1
+ const t={label:"Host part",defaultProps:{name:"",label:""}};export{t as HostPartMeta};
@@ -41,6 +41,7 @@ export declare const GENERAL_METAS: {
41
41
  Mockup: BlockMeta;
42
42
  OrderSummary: BlockMeta;
43
43
  CardList: BlockMeta;
44
+ HostPart: BlockMeta;
44
45
  ParagraphsA: BlockMeta;
45
46
  PaymentBadges: BlockMeta;
46
47
  PostCard: BlockMeta;
@@ -1 +1 @@
1
- import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as s}from"./ContactLocations/meta.js";import{CountdownMeta as n}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{ContentsMeta as S}from"./Contents/meta.js";import{ListSearchMeta as l}from"./ListSearch/meta.js";import{DocBodyMeta as u}from"./DocBody/meta.js";import{DocMastheadMeta as T}from"./DocMasthead/meta.js";import{DocMetaCardsMeta as g}from"./DocMetaCards/meta.js";import{DocTabsMeta as B}from"./DocTabs/meta.js";import{EyebrowMeta as C}from"./Eyebrow/meta.js";import{FAQMeta as L}from"./FAQ/meta.js";import{FeaturedCoverMeta as H}from"./FeaturedCover/meta.js";import{FlexMeta as P}from"./Flex/meta.js";import{FootprintMeta as h}from"./Footprint/meta.js";import{GridMeta as y}from"./Grid/meta.js";import{HeadingMeta as k}from"./Heading/meta.js";import{HeroGroupMeta as E}from"./HeroGroup/meta.js";import{HeroMeta as A}from"./Hero/meta.js";import{HeroSingleMeta as D}from"./HeroSingle/meta.js";import{HeroSlideMeta as F}from"./HeroSlide/meta.js";import{ImageBlockMeta as R}from"./ImageBlock/meta.js";import{IntegrationsMeta as I}from"./Integrations/meta.js";import{IntroBleedMeta as x}from"./IntroBleed/meta.js";import{KeyFeaturesMeta as G}from"./KeyFeatures/meta.js";import{LocationMapMeta as b}from"./LocationMap/meta.js";import{LogoBlockMeta as _}from"./LogoBlock/meta.js";import{LogosMeta as v}from"./Logos/meta.js";import{LongReadMeta as w}from"./LongRead/meta.js";import{ManifestoMeta as O}from"./Manifesto/meta.js";import{MastheadMeta as N}from"./Masthead/meta.js";import{MockupMeta as K}from"./Mockup/meta.js";import{OrderSummaryMeta as Q}from"./OrderSummary/meta.js";import{CardListMeta as W}from"./CardList/meta.js";import{ParagraphsAMeta as X}from"./ParagraphsA/meta.js";import{PaymentBadgesMeta as j}from"./PaymentBadges/meta.js";import{PostCardMeta as q}from"./PostCard/meta.js";import{ProcessStepsMeta as z}from"./ProcessSteps/meta.js";import{ProseMeta as J}from"./Prose/meta.js";import{SectionHeaderMeta as U}from"./SectionHeader/meta.js";import{SeriesMeta as V}from"./Series/meta.js";import{SpacerMeta as Y}from"./Spacer/meta.js";import{SpecStripMeta as Z}from"./SpecStrip/meta.js";import{SplitMeta as $}from"./Split/meta.js";import{StatsMeta as oo}from"./Stats/meta.js";import{StatsParagraphMeta as to}from"./StatsParagraph/meta.js";import{TestimonialsMeta as ro}from"./Testimonials/meta.js";import{TextMeta as eo}from"./Text/meta.js";import{TickerMeta as ao}from"./Ticker/meta.js";import{TimelineMeta as mo}from"./Timeline/meta.js";import{TimelineTrackMeta as io}from"./TimelineTrack/meta.js";import{TitleWithButtonsMeta as po}from"./TitleWithButtons/meta.js";import Mo from"./text-part-shapes.json";const fo={Banner:a,Breadcrumb:m,ButtonBlock:i,Cards:p,CategoryBar:M,Chart:f,ContactLocations:s,CustomHTML:c,Divider:d,Contents:S,ListSearch:l,DocBody:u,DocMasthead:T,DocMetaCards:g,DocTabs:B,Eyebrow:C,FAQ:L,FeaturedCover:H,Flex:P,Footprint:h,Grid:y,Heading:k,Hero:A,HeroGroup:E,HeroSingle:D,HeroSlide:F,ImageBlock:R,Integrations:I,IntroBleed:x,Countdown:n,KeyFeatures:G,LocationMap:b,LogoBlock:_,Logos:v,LongRead:w,Manifesto:O,Masthead:N,Mockup:K,OrderSummary:Q,CardList:W,ParagraphsA:X,PaymentBadges:j,PostCard:q,ProcessSteps:z,Prose:J,SectionHeader:U,Series:V,Spacer:Y,SpecStrip:Z,Split:$,Stats:oo,StatsParagraph:to,Testimonials:ro,Text:eo,Ticker:ao,Timeline:mo,TimelineTrack:io,TitleWithButtons:po},so=Mo;function gt(){const t={};for(const o of e){const r=so[o];t[o]={...fo[o],...r?{textParts:r}:null}}return t}export{fo as GENERAL_METAS,gt as generalRenderMetas};
1
+ import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as s}from"./ContactLocations/meta.js";import{CountdownMeta as n}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{ContentsMeta as S}from"./Contents/meta.js";import{ListSearchMeta as l}from"./ListSearch/meta.js";import{DocBodyMeta as u}from"./DocBody/meta.js";import{DocMastheadMeta as T}from"./DocMasthead/meta.js";import{DocMetaCardsMeta as g}from"./DocMetaCards/meta.js";import{DocTabsMeta as B}from"./DocTabs/meta.js";import{EyebrowMeta as C}from"./Eyebrow/meta.js";import{FAQMeta as H}from"./FAQ/meta.js";import{FeaturedCoverMeta as L}from"./FeaturedCover/meta.js";import{FlexMeta as P}from"./Flex/meta.js";import{FootprintMeta as h}from"./Footprint/meta.js";import{GridMeta as y}from"./Grid/meta.js";import{HeadingMeta as k}from"./Heading/meta.js";import{HeroGroupMeta as E}from"./HeroGroup/meta.js";import{HeroMeta as A}from"./Hero/meta.js";import{HeroSingleMeta as D}from"./HeroSingle/meta.js";import{HeroSlideMeta as F}from"./HeroSlide/meta.js";import{ImageBlockMeta as R}from"./ImageBlock/meta.js";import{IntegrationsMeta as I}from"./Integrations/meta.js";import{IntroBleedMeta as x}from"./IntroBleed/meta.js";import{KeyFeaturesMeta as G}from"./KeyFeatures/meta.js";import{LocationMapMeta as b}from"./LocationMap/meta.js";import{LogoBlockMeta as _}from"./LogoBlock/meta.js";import{LogosMeta as v}from"./Logos/meta.js";import{LongReadMeta as w}from"./LongRead/meta.js";import{ManifestoMeta as O}from"./Manifesto/meta.js";import{MastheadMeta as N}from"./Masthead/meta.js";import{MockupMeta as K}from"./Mockup/meta.js";import{OrderSummaryMeta as Q}from"./OrderSummary/meta.js";import{CardListMeta as W}from"./CardList/meta.js";import{HostPartMeta as X}from"./HostPart/meta.js";import{ParagraphsAMeta as j}from"./ParagraphsA/meta.js";import{PaymentBadgesMeta as q}from"./PaymentBadges/meta.js";import{PostCardMeta as z}from"./PostCard/meta.js";import{ProcessStepsMeta as J}from"./ProcessSteps/meta.js";import{ProseMeta as U}from"./Prose/meta.js";import{SectionHeaderMeta as V}from"./SectionHeader/meta.js";import{SeriesMeta as Y}from"./Series/meta.js";import{SpacerMeta as Z}from"./Spacer/meta.js";import{SpecStripMeta as $}from"./SpecStrip/meta.js";import{SplitMeta as oo}from"./Split/meta.js";import{StatsMeta as to}from"./Stats/meta.js";import{StatsParagraphMeta as ro}from"./StatsParagraph/meta.js";import{TestimonialsMeta as eo}from"./Testimonials/meta.js";import{TextMeta as ao}from"./Text/meta.js";import{TickerMeta as mo}from"./Ticker/meta.js";import{TimelineMeta as io}from"./Timeline/meta.js";import{TimelineTrackMeta as po}from"./TimelineTrack/meta.js";import{TitleWithButtonsMeta as Mo}from"./TitleWithButtons/meta.js";import fo from"./text-part-shapes.json";const so={Banner:a,Breadcrumb:m,ButtonBlock:i,Cards:p,CategoryBar:M,Chart:f,ContactLocations:s,CustomHTML:c,Divider:d,Contents:S,ListSearch:l,DocBody:u,DocMasthead:T,DocMetaCards:g,DocTabs:B,Eyebrow:C,FAQ:H,FeaturedCover:L,Flex:P,Footprint:h,Grid:y,Heading:k,Hero:A,HeroGroup:E,HeroSingle:D,HeroSlide:F,ImageBlock:R,Integrations:I,IntroBleed:x,Countdown:n,KeyFeatures:G,LocationMap:b,LogoBlock:_,Logos:v,LongRead:w,Manifesto:O,Masthead:N,Mockup:K,OrderSummary:Q,CardList:W,HostPart:X,ParagraphsA:j,PaymentBadges:q,PostCard:z,ProcessSteps:J,Prose:U,SectionHeader:V,Series:Y,Spacer:Z,SpecStrip:$,Split:oo,Stats:to,StatsParagraph:ro,Testimonials:eo,Text:ao,Ticker:mo,Timeline:io,TimelineTrack:po,TitleWithButtons:Mo},no=fo;function Ct(){const t={};for(const o of e){const r=no[o];t[o]={...so[o],...r?{textParts:r}:null}}return t}export{so as GENERAL_METAS,Ct as generalRenderMetas};
@@ -1 +1 @@
1
- import{HERO_GROUP_TYPE as l,HERO_SLIDE_TYPE as m,publishableGroups as y}from"../hero-group-placement.js";import{isNodeList as b}from"efficient-easel/data";function u(t){const e=t.props;if(!e)return t;let r=e,p=!1;for(const[c,o]of Object.entries(e)){if(!b(o))continue;const n=o.map(u),s=t.type===m&&n.every(i=>i.type===l)?y(n):n;(s.length!==o.length||s.some((i,f)=>i!==o[f]))&&(r===e&&(r={...e}),r[c]=s,p=!0)}return p?{...t,props:r}:t}function h(t){const e=t;if(!e||typeof e!="object")return t;let r=!1;const p={...t};if(Array.isArray(e.content)){const c=e.content.map(u);c.some((o,n)=>o!==e.content[n])&&(p.content=c,r=!0)}if(e.zones&&typeof e.zones=="object"){let c=!1;const o=Object.fromEntries(Object.entries(e.zones).map(([n,s])=>{if(!Array.isArray(s))return[n,s];const i=s.map(u);return i.some((f,a)=>f!==s[a])&&(c=!0),[n,i]}));c&&(p.zones=o,r=!0)}return r?p:t}export{h as capHeroGroups};
1
+ import{HERO_GROUP_TYPE as a,HERO_SLIDE_TYPE as y,publishableGroups as E}from"../hero-group-placement.js";import{mapEachNode as b,mapNodeLists as l}from"./node-lists.js";function i(e){return e.props?l(e,o=>{const n=b(o,i),r=e.type===y&&n.every(s=>s.type===a)?E(n):n;return r.length!==o.length||r.some((s,p)=>s!==o[p])?r:o}):e}function O(e){const t=e;if(!t||typeof t!="object")return e;let o=!1;const n={...e};if(Array.isArray(t.content)){const r=t.content.map(i);r.some((s,p)=>s!==t.content[p])&&(n.content=r,o=!0)}if(t.zones&&typeof t.zones=="object"){let r=!1;const s=Object.fromEntries(Object.entries(t.zones).map(([p,c])=>{if(!Array.isArray(c))return[p,c];const f=c.map(i);return f.some((m,u)=>m!==c[u])&&(r=!0),[p,f]}));r&&(n.zones=s,o=!0)}return o?n:e}export{O as capHeroGroups};
@@ -1,3 +1,3 @@
1
1
  import type { Config } from "efficient-easel/blocks";
2
- export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "ListSearch", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML", "CardList"];
2
+ export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "ListSearch", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML", "CardList", "HostPart"];
3
3
  export declare function generalCategories(): Config["categories"];
@@ -1 +1 @@
1
- import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","ListSearch","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML","CardList"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
1
+ import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","ListSearch","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML","CardList","HostPart"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
@@ -1 +1 @@
1
- import{isNodeList as i}from"efficient-easel/data";const l="Flex",p="ListSearch",a=["FAQ"],S="listKey";function u(t){const s={...t.props??{}},o={...t,props:s},e={searches:[],lists:[]};t.type===p&&e.searches.push(o),a.includes(String(t.type))&&e.lists.push(o);for(const[n,r]of Object.entries(s))i(r)&&(s[n]=r.map(h=>{const c=u(h);return e.searches.push(...c.found.searches),e.lists.push(...c.found.lists),c.node}));if(t.type===l&&e.searches.length>0&&e.lists.length>0){const n=String(s.id??"");if(n){for(const r of[...e.searches,...e.lists])r.props[S]=n;return{node:o,found:{searches:[],lists:[]}}}}return{node:o,found:e}}const f=t=>i(t)&&t.some(s=>s.type===p||Object.values(s.props??{}).some(f));function d(t){const s=t;return!s||!Array.isArray(s.content)||!f(s.content)?t:{...s,content:s.content.map(o=>u(o).node)}}export{S as LIST_KEY_PROP,p as LIST_SEARCH_TYPE,a as LIST_TYPES,d as markListSearchScopes};
1
+ import{mapEachNode as c,mapNodeLists as o,mapPageContent as u}from"./node-lists.js";const y="Flex",p="ListSearch",a=["FAQ"],g="listKey";function S(t,e){const r={search:t.type===p,list:a.includes(String(t.type))};return o(t,s=>{for(const n of s){const i=S(n,e);r.search||=i.search,r.list||=i.list}return s}),t.type===y&&r.search&&r.list&&String(t.props?.id??"")?(e.add(t),{search:!1,list:!1}):r}function f(t,e,r){const s=e.has(t)?String(t.props?.id):r,n=o(t,h=>c(h,l=>f(l,e,s)));return s&&(t.type===p||a.includes(String(t.type)))?{...n,props:{...n.props,[g]:s}}:n}function x(t){return u(t,e=>{const r=new Set;for(const s of e)S(s,r);return r.size?c(e,s=>f(s,r,"")):e})}export{g as LIST_KEY_PROP,p as LIST_SEARCH_TYPE,a as LIST_TYPES,x as markListSearchScopes};
@@ -0,0 +1,9 @@
1
+ type Props = Record<string, unknown>;
2
+ export type ListNode = {
3
+ type?: unknown;
4
+ props?: Props;
5
+ };
6
+ export declare function mapEachNode<N>(list: readonly N[], fn: (node: N, index: number) => N): N[];
7
+ export declare function mapNodeLists<N extends ListNode>(node: N, fn: (list: ListNode[], key: string) => ListNode[]): N;
8
+ export declare function mapPageContent<T>(data: T, fn: (content: ListNode[]) => ListNode[]): T;
9
+ export {};
@@ -0,0 +1 @@
1
+ import{isNodeList as p}from"efficient-easel/data";function i(t,r){let n=null;return t.forEach((o,e)=>{const c=r(o,e);c!==o&&((n??=t.slice())[e]=c)}),n??t}function u(t,r){let n=null;for(const[o,e]of Object.entries(t.props??{})){if(!p(e))continue;const c=r(e,o);c!==e&&((n??={...t.props})[o]=c)}return n?{...t,props:n}:t}function f(t,r){const n=t;if(!n||!Array.isArray(n.content))return t;const o=r(n.content);return o===n.content?t:{...n,content:o}}export{i as mapEachNode,u as mapNodeLists,f as mapPageContent};
@@ -22,6 +22,10 @@ export type PassBlock = {
22
22
  textParts?: Record<string, unknown>;
23
23
  defaultProps?: Record<string, unknown>;
24
24
  drawsPictures?: boolean;
25
+ innerPadding?: {
26
+ top: number;
27
+ bottom: number;
28
+ };
25
29
  resolveFields?: PassResolveFields;
26
30
  resolveData?: PassResolveData;
27
31
  render: (props: PassRenderProps) => ReactNode;
@@ -1 +1 @@
1
- import{isNodeList as m}from"efficient-easel/data";import{templateOnRead as a}from"../content/card-template.js";import{BLOCK_SOURCE_PROP as y,declaredBlockSource as O,isBlockSourceKey as d}from"../content/block-sources.js";const P={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},R={"Footprint.source":"typed"};function l(o){let e=o.props,f=!1;if(o.type&&e)for(const[t,s]of Object.entries(P)){const i=t.indexOf("."),r=t.slice(0,i),n=t.slice(i+1);if(r!==o.type||!(n in e))continue;const c=e[n],p={...e};delete p[n],(!(s in p)||p[s]===void 0)&&(p[s]=c),e=p,f=!0}if(o.type&&e)for(const[t,s]of Object.entries(R)){const i=t.indexOf("."),r=t.slice(i+1);if(t.slice(0,i)!==o.type||!(r in e))continue;const n=typeof e[r]=="string"?e[r].trim():"",c={...e};delete c[r],d(n)&&n!==s&&!O(c)&&(c[y]=n),e=c,f=!0}if(o.type&&e){const t=a(o.type,e);t!==e&&(e=t,f=!0)}if(e){let t=e;for(const[s,i]of Object.entries(e)){if(!m(i))continue;const r=i.map(l);r.some((n,c)=>n!==i[c])&&(t===e&&(t={...e}),t[s]=r,f=!0)}e=t}return f?{...o,props:e}:o}function b(o){const e=o;if(!e||typeof e!="object")return o;let f=!1;const t={...o};if(Array.isArray(e.content)){const s=e.content.map(l);s.some((i,r)=>i!==e.content[r])&&(t.content=s,f=!0)}if(e.zones&&typeof e.zones=="object"){let s=!1;const i=Object.fromEntries(Object.entries(e.zones).map(([r,n])=>{if(!Array.isArray(n))return[r,n];const c=n.map(l);return c.some((p,u)=>p!==n[u])&&(s=!0),[r,c]}));s&&(t.zones=i,f=!0)}return f?t:o}export{P as RENAMED_PROPS,R as SOURCE_PROPS_MOVED,b as migrateRenamedProps};
1
+ import{mapEachNode as m,mapNodeLists as u}from"./node-lists.js";import{templateOnRead as y}from"../content/card-template.js";import{BLOCK_SOURCE_PROP as d,declaredBlockSource as O,isBlockSourceKey as R}from"../content/block-sources.js";const g={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},P={"Footprint.source":"typed"};function l(o){let e=o.props,i=!1;if(o.type&&e)for(const[t,r]of Object.entries(g)){const c=t.indexOf("."),n=t.slice(0,c),s=t.slice(c+1);if(n!==o.type||!(s in e))continue;const f=e[s],p={...e};delete p[s],(!(r in p)||p[r]===void 0)&&(p[r]=f),e=p,i=!0}if(o.type&&e)for(const[t,r]of Object.entries(P)){const c=t.indexOf("."),n=t.slice(c+1);if(t.slice(0,c)!==o.type||!(n in e))continue;const s=typeof e[n]=="string"?e[n].trim():"",f={...e};delete f[n],R(s)&&s!==r&&!O(f)&&(f[d]=s),e=f,i=!0}if(o.type&&e){const t=y(o.type,e);t!==e&&(e=t,i=!0)}if(e){const t=u({props:e},r=>m(r,l));t.props!==e&&(e=t.props,i=!0)}return i?{...o,props:e}:o}function b(o){const e=o;if(!e||typeof e!="object")return o;let i=!1;const t={...o};if(Array.isArray(e.content)){const r=e.content.map(l);r.some((c,n)=>c!==e.content[n])&&(t.content=r,i=!0)}if(e.zones&&typeof e.zones=="object"){let r=!1;const c=Object.fromEntries(Object.entries(e.zones).map(([n,s])=>{if(!Array.isArray(s))return[n,s];const f=s.map(l);return f.some((p,a)=>p!==s[a])&&(r=!0),[n,f]}));r&&(t.zones=c,i=!0)}return i?t:o}export{g as RENAMED_PROPS,P as SOURCE_PROPS_MOVED,b as migrateRenamedProps};
@@ -70,4 +70,4 @@ WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("
70
70
 
71
71
  NO CONVERTER ROW: 0 EU Tyre Labels are stored on the US and AU sites (inovit_us and inovit_au, \`layout\` and \`published_layout\`; read only, 2026-11-10). Old sites stay as they are (owner, 2026-11-06).
72
72
 
73
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items · Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. ⛔ A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},h=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,t.note])),E=["Grid","Spacer","TyreFitment"],S=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(h)])),p=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,t.label])),f={...p,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},u={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"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",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},s={...u,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))},m={DocTabs:{set:"service",blocks:["MenuBlock"],reason:"the Tab Bar press holds the Menu block, whose only source is a Console menu; a stored bar's typed tabs need nothing, so the Tab Bar stays general"}};function O(e,t,a=m){const i=r(a,e);return i!==void 0&&!t.includes(i.set)}function v(e){return r(s,e)}function n(e){return Object.keys(s).filter(t=>r(s,t)===e).sort()}const A=n("general"),C=n("commerce"),k=n("service"),y="Flex",d="Box",B=`${d}es`;function b(e){return e==="section"?"Blank section":d}function x(e,t,a){return e===y?b(t):a}export{S as ALL_SECTION_TYPES,T as BLOCK_SETS,d as BOX_LABEL,B as BOX_LABEL_PLURAL,C as COMMERCE_BLOCKS,A as GENERAL_BLOCKS,c as KEY_FEATURES_DELETE_BY,y as LEVEL_NAMED_TYPE,m as PRESS_NEEDS_SET,E as RETIRED_NESTABLE_SECTIONS,h as RETIRED_SECTIONS,p as RETIRED_SECTION_LABELS,o as SECTION_CATALOG,f as SECTION_LABELS,k as SERVICE_BLOCKS,u as UNLISTED_BLOCK_SETS,v as blockSetOf,n as blocksInSet,w as buildBlockCategories,x as labelAtLevel,b as labelForFlex,O as pressWithheld};
73
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items · Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. ⛔ A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},h=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,t.note])),E=["Grid","Spacer","TyreFitment"],S=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(h)])),p=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,t.label])),f={...p,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},u={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"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",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},s={...u,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))},m={DocTabs:{set:"service",blocks:["MenuBlock"],reason:"the Tab Bar press holds the Menu block, whose only source is a Console menu; a stored bar's typed tabs need nothing, so the Tab Bar stays general"}};function O(e,t,a=m){const i=r(a,e);return i!==void 0&&!t.includes(i.set)}function v(e){return r(s,e)}function n(e){return Object.keys(s).filter(t=>r(s,t)===e).sort()}const A=n("general"),C=n("commerce"),k=n("service"),y="Flex",d="Box",B=`${d}es`;function b(e){return e==="section"?"Blank section":d}function x(e,t,a){return e===y?b(t):a}export{S as ALL_SECTION_TYPES,T as BLOCK_SETS,d as BOX_LABEL,B as BOX_LABEL_PLURAL,C as COMMERCE_BLOCKS,A as GENERAL_BLOCKS,c as KEY_FEATURES_DELETE_BY,y as LEVEL_NAMED_TYPE,m as PRESS_NEEDS_SET,E as RETIRED_NESTABLE_SECTIONS,h as RETIRED_SECTIONS,p as RETIRED_SECTION_LABELS,o as SECTION_CATALOG,f as SECTION_LABELS,k as SERVICE_BLOCKS,u as UNLISTED_BLOCK_SETS,v as blockSetOf,n as blocksInSet,w as buildBlockCategories,x as labelAtLevel,b as labelForFlex,O as pressWithheld};
@@ -596,6 +596,7 @@ export declare const WEB_BUILDER_WORDS: {
596
596
  readonly Hint: "Hint";
597
597
  readonly "Hold video": "Hold video";
598
598
  readonly Home: "Home";
599
+ readonly "Host part": "Host part";
599
600
  readonly "Hours, minutes and seconds to a set date and time, then one line.": "Hours, minutes and seconds to a set date and time, then one line.";
600
601
  readonly Hover: "Hover";
601
602
  readonly "Hover effect": "Hover effect";
@@ -679,6 +680,7 @@ export declare const WEB_BUILDER_WORDS: {
679
680
  readonly "Latitude, longitude": "Latitude, longitude";
680
681
  readonly Layout: "Layout";
681
682
  readonly "Layout & structure": "Layout & structure";
683
+ readonly "Layout's own": "Layout's own";
682
684
  readonly "Layout, structure & embeds": "Layout, structure & embeds";
683
685
  readonly Layouts: "Layouts";
684
686
  readonly Lead: "Lead";
@@ -847,6 +849,7 @@ export declare const WEB_BUILDER_WORDS: {
847
849
  readonly "On {count} pages": "On {count} pages";
848
850
  readonly "On: the pinned box stays on top, and the sections after it scroll under it.": "On: the pinned box stays on top, and the sections after it scroll under it.";
849
851
  readonly One: "One";
852
+ readonly "One across": "One across";
850
853
  readonly "One colour from top to bottom": "One colour from top to bottom";
851
854
  readonly "One line": "One line";
852
855
  readonly "One line, ends with ...": "One line, ends with ...";
@@ -1091,6 +1094,7 @@ export declare const WEB_BUILDER_WORDS: {
1091
1094
  readonly "Show ticker": "Show ticker";
1092
1095
  readonly "Show {label} on the slide": "Show {label} on the slide";
1093
1096
  readonly "Shown beside the heading": "Shown beside the heading";
1097
+ readonly "Shown by the section: {name}": "Shown by the section: {name}";
1094
1098
  readonly Shows: "Shows";
1095
1099
  readonly "Shows when a visitor points at the button": "Shows when a visitor points at the button";
1096
1100
  readonly Shrink: "Shrink";
@@ -1249,6 +1253,7 @@ export declare const WEB_BUILDER_WORDS: {
1249
1253
  readonly "The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.": "The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.";
1250
1254
  readonly "The preview did not open. Try again.": "The preview did not open. Try again.";
1251
1255
  readonly "The room left at the left and right edge of every page.": "The room left at the left and right edge of every page.";
1256
+ readonly "The section draws {what} here, in every card.": "The section draws {what} here, in every card.";
1252
1257
  readonly "The section it belonged to has been changed or removed.": "The section it belonged to has been changed or removed.";
1253
1258
  readonly "The slide shows your Image while the video loads, because this video has no frame.": "The slide shows your Image while the video loads, because this video has no frame.";
1254
1259
  readonly "The version was not restored. Nothing changed. Try again.": "The version was not restored. Nothing changed. Try again.";