efficient-web-builder 59.0.0 → 59.2.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.
- package/CHANGELOG.md +31 -0
- package/dist/editor/components/HoverEffectField.js +1 -1
- package/dist/editor/components/SwitchToBoxFooter.js +1 -1
- package/dist/editor/components/useCardContentSwitchPass.d.ts +1 -0
- package/dist/editor/components/useCardContentSwitchPass.js +1 -0
- package/dist/editor/components/usePinnedChromeSeed.js +1 -1
- package/dist/editor/lib/animation/fields.js +1 -1
- package/dist/editor/lib/animation/hover-fields.d.ts +10 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/box-footer-rows.d.ts +3 -0
- package/dist/editor/lib/document/box-footer-rows.js +1 -0
- package/dist/editor/lib/document/box-side-space-field.d.ts +11 -0
- package/dist/editor/lib/document/box-side-space-field.js +1 -0
- package/dist/editor/lib/document/choice-pictures.d.ts +2 -1
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/animation/hover.d.ts +8 -0
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/block-align.d.ts +1 -0
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +1 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/box-side-space.d.ts +13 -0
- package/dist/format/lib/content/box-side-space.js +1 -0
- package/dist/format/lib/content/page-width.d.ts +3 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +18 -0
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +9 -0
- package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -1
- package/dist/format/lib/document/box-footer.d.ts +13 -2
- package/dist/format/lib/document/box-footer.js +1 -1
- package/dist/format/lib/document/card-content-switch.d.ts +22 -0
- package/dist/format/lib/document/card-content-switch.js +1 -0
- package/dist/format/lib/document/cards-template-on-read.js +1 -1
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/section-catalog.d.ts +1 -0
- package/dist/format/lib/document/section-catalog.js +4 -12
- package/dist/format/lib/document/seed-parts.d.ts +3 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/sections/logo-look.d.ts +1 -1
- package/dist/format/lib/sections/logo-look.js +1 -1
- package/dist/format/lib/source-rules/one-section-edge-inset.d.ts +6 -0
- package/dist/format/lib/source-rules/one-section-edge-inset.js +2 -0
- package/dist/format/lib/source-rules/one-site-column.js +3 -3
- package/dist/render/components/BlockFrame.d.ts +2 -0
- package/dist/render/components/BlockFrame.js +1 -1
- package/dist/render/components/Flex.d.ts +5 -2
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Logos.d.ts +5 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +7 -2
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +3 -1
- package/dist/render/lib/content/box-stack-line.js +1 -1
- package/dist/render/lib/content/section-edge.d.ts +12 -0
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/wall-rows.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/Logos/wall-rows.js +1 -0
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +3 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/wall-labels.d.ts +3 -0
- package/dist/render/lib/document/wall-labels.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +1 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare function centredCap(maxWidth: number | string): CSSProperties;
|
|
|
9
9
|
export declare function pageWidthStyle(fullWidth?: boolean, pageWidth?: number): CSSProperties | null;
|
|
10
10
|
export declare const SITE_WIDTH_VAR = "--sf-site-width";
|
|
11
11
|
export declare const SITE_WIDTH_CAP: string;
|
|
12
|
+
export declare const FULL_SECTION_WIDTH = "100vw";
|
|
12
13
|
export declare const SITE_WIDTH_CAP_CLASS: string;
|
|
13
14
|
export declare const PRE_SITE_WIDTH_CAP_CLASS: string;
|
|
14
15
|
export declare function normalizeSiteWidth(v?: number | null): number;
|
|
@@ -38,6 +39,8 @@ export declare const SITE_GUTTER_NARROW: {
|
|
|
38
39
|
};
|
|
39
40
|
export declare const SITE_GUTTER_SUBSTITUTIONS: ReadonlyArray<readonly [string, string]>;
|
|
40
41
|
export declare function asMainGutters(html: string): string;
|
|
42
|
+
export declare const SITE_COLUMN_NARROW = "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
|
|
43
|
+
export declare const SITE_COLUMN_EDGE_NARROW = "max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]";
|
|
41
44
|
export declare const SITE_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
|
|
42
45
|
export declare const BOX_HOLDS_NO_GUTTER_CLASS = "[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";
|
|
43
46
|
export declare function withoutBoxHoldsNoGutter(html: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function
|
|
1
|
+
const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function N(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:r.default;return a(i)}const m="--sf-site-width",p=`var(${m},${r.default}px)`,b="100vw",w=`max-w-[${p}]`,L=`max-w-[${r.default}px]`;function _(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function U(t){const e=_(t);return e===r.default?{}:{[m]:`${e}px`}}const x={min:0,max:80,step:4,default:40},c="--sf-site-gutter",s={min:0,max:24,step:4},C="--sf-site-gutter-phone",A="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${c},${x.default}px)`,$=`px-[${n}]`,D=["px-10","px-[60px]"],o={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},h=[[`max-view-desktop:px-[${o.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${o.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${o.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${o.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${o.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${o.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${o.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${o.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${n}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${n})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${n})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${n})]`,"max-view-tablet:-mx-5"],[`-mx-[${n}]`,"-mx-10"],[$,"px-10"]];function W(t){return h.reduce((e,[i,S])=>e.split(i).join(S),t)}const I="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",k="max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",B=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${I}`,f="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function V(t){const e=f.replace(/&/g,"&").replace(/>/g,">");return t.split(` ${e}`).join("").split(` ${f}`).join("")}const y="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function l(t){return typeof t!="number"||!Number.isFinite(t)?x.default:Math.round(Math.min(Math.max(t,x.min),x.max))}function F(t){const e=l(t);return e===x.default?{}:{[c]:`${e}px`}}function E(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,s.min),s.max))}function z(t){return typeof t=="number"&&Number.isFinite(t)?_(t):null}function j(t){const e=E(t);return e===null?{}:{[C]:`${e}px`}}function K(t){return E(t)===null?"":A}function X(t){return Math.min(s.max,l(t))}function O(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function q(t=0){return`max-w-[${O(t).replace(/ /g,"_")}]`}const T=p,J=`max-w-[${T}]`,Q=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,d="--sf-hero-cap",H=`var(${d},none)`,Y=`max-w-[${H}]`,v="--sf-hero-bleed-m",P="--sf-hero-bleed-w",g="--sf-hero-chrome-x",G="--sf-hero-chrome-cap";function Z(t){return t===!0?{[d]:T,[v]:"auto",[P]:"100%",[g]:"24px",[G]:"none"}:{}}const u=`calc(${p} - ${n}*2)`,tt=`max-w-[${u.replace(/ /g,"_")}]`,et=w;function nt(t){return t!==!1?null:a(R)}const M="--sf-chrome-cap",R=`var(${M},${u})`,rt="data-page-width";function ot(t){return t==="full"?"full":null}function xt(t){return t==="full"?null:a(t==="content"?u:R)}function pt(t){if(t==="full")return"full";if(t==="content")return"content"}export{f as BOX_HOLDS_NO_GUTTER_CLASS,R as CHROME_CAP_READ,M as CHROME_CAP_VAR,u as CHROME_WIDTH_CAP,tt as CHROME_WIDTH_CAP_CLASS,y as EDITORIAL_COLUMN,b as FULL_SECTION_WIDTH,H as HERO_BACKGROUND_CAP,Y as HERO_BACKGROUND_CAP_CLASS,d as HERO_BACKGROUND_VAR,v as HERO_BLEED_MARGIN_VAR,P as HERO_BLEED_WIDTH_VAR,T as HERO_CAP,J as HERO_CAP_CLASS,G as HERO_CHROME_CAP_VAR,g as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,rt as PAGE_WIDTH_ATTR,et as PRE_CHROME_WIDTH_CAP_CLASS,Q as PRE_HERO_CAP_CLASS,D as PRE_SITE_GUTTER_CLASSES,L as PRE_SITE_WIDTH_CAP_CLASS,B as SITE_COLUMN,k as SITE_COLUMN_EDGE_NARROW,I as SITE_COLUMN_NARROW,x as SITE_GUTTER,n as SITE_GUTTER_CAP,$ as SITE_GUTTER_CLASS,o as SITE_GUTTER_NARROW,s as SITE_GUTTER_PHONE,A as SITE_GUTTER_PHONE_CLASS,C as SITE_GUTTER_PHONE_VAR,h as SITE_GUTTER_SUBSTITUTIONS,c as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,w as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,W as asMainGutters,a as centredCap,xt as chromeWidthStyle,Z as heroBackgroundTokens,z as normalizeSectionContentMax,l as normalizeSiteGutter,E as normalizeSiteGutterPhone,_ as normalizeSiteWidth,ot as pageWidthMarker,N as pageWidthStyle,pt as resolveChromeWidth,K as siteGutterPhoneClass,X as siteGutterPhoneFollows,j as siteGutterPhoneTokens,F as siteGutterTokens,O as siteHalfColumnCap,q as siteHalfColumnCapClass,nt as siteWidthCapStyle,U as siteWidthTokens,V as withoutBoxHoldsNoGutter};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type BlockSeed } from "../../../seed-parts.js";
|
|
2
|
+
import { type CardsCardFields } from "./card-seed.js";
|
|
3
|
+
type Props = Record<string, unknown>;
|
|
4
|
+
export declare const CARDS_CELL: Props;
|
|
5
|
+
export declare const cardsGridLook: (columns: number) => Props;
|
|
6
|
+
export declare const cardBadgeSeed: (style?: Props) => BlockSeed;
|
|
7
|
+
export declare const cardListCardSeed: (fields?: CardsCardFields) => BlockSeed;
|
|
8
|
+
export declare const labelOnlyListCardSeed: (linked?: boolean) => BlockSeed;
|
|
9
|
+
export declare const DELIVERY_CARD_FIELDS: {
|
|
10
|
+
readonly name: "name";
|
|
11
|
+
readonly time: "time";
|
|
12
|
+
readonly note: "note";
|
|
13
|
+
readonly price: "price";
|
|
14
|
+
};
|
|
15
|
+
export declare const deliveryGridLook: (columns: number) => Props;
|
|
16
|
+
export declare const GRID_LOOK_KEYS: readonly string[];
|
|
17
|
+
export declare const deliveryCardSeed: () => BlockSeed;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CARD_PLACE_PROP as E}from"../../../../content/card-place.js";import{CARD_BADGE_FIELD as _}from"../../../../content/card-state.js";import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as n}from"../../../container-blocks.js";import{DIM as p,INNER_BOX as a,LABEL_FACE as g,TEXT as i,boxPadding as L,fillSlot as d,token as o}from"../../../seed-parts.js";import{TYPED_CARD_FIELDS as m,cardsCardSeed as D,labelOnlyCardSeed as O,rowFieldTextSeed as r}from"./card-seed.js";const l={sectionBorder:{top:0,right:1,bottom:1,left:0},...d("background")},S={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},R=t=>({direction:"row",columns:t,columnsTablet:t,...S}),c=(t={})=>r(_,{...i,tag:"p",[E]:"top-line"},t,!0),u=(t=m)=>{const e=D(t);return{...e,props:{...l,...e.props},slots:{[n]:[...e.slots?.[n]??[],c()]}}},K=(t=!1)=>{const e=O(t);return{...e,props:{...l,...e.props}}},h={name:"name",time:"time",note:"note",price:"price"},b={textStyle:"body-1",...o("body",16),weight:500,lineHeight:1.5},f={...g,...o("label",12),letterSpacing:.18,lineHeight:1.5},C={textStyle:"body-1",...o("body",14),lineHeight:1.6},I={textStyle:"body-1",fontRole:"heading",...o("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},y={...o("label",11),letterSpacing:.25},x={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},A=t=>({direction:"row",columns:t,...x}),G=[...new Set([...Object.keys(R(1)),...Object.keys(A(1))])],V=()=>{const t=h,e={tag:"p",widthFit:"fill"};return{type:s,props:{...a,name:"Card",justify:"between",gap:16,gapPhone:16,...L(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...d("surface"),shadow:!0},slots:{[n]:[c(y),{type:s,props:{...a,name:"Words",gap:8,gapPhone:8},slots:{[n]:[r(t.name,{...i,...e},b),r(t.time,{...p,...e},f),r(t.note,{...p,...e},C)]}},r(t.price,{...i,...e},I)]}}};export{l as CARDS_CELL,h as DELIVERY_CARD_FIELDS,G as GRID_LOOK_KEYS,c as cardBadgeSeed,u as cardListCardSeed,R as cardsGridLook,V as deliveryCardSeed,A as deliveryGridLook,K as labelOnlyListCardSeed};
|
|
@@ -12,4 +12,13 @@ export declare const TYPED_CARD_FIELDS: CardsCardFields;
|
|
|
12
12
|
export declare const SERVED_CARD_FIELDS: CardsCardFields;
|
|
13
13
|
export declare const cardsCardSeed: (fields?: CardsCardFields) => BlockSeed;
|
|
14
14
|
export declare const cardsTemplateNodes: (idOf: (type: string, at: string) => string, fields?: CardsCardFields) => SeededNode[];
|
|
15
|
+
export declare const LABEL_ONLY_CARD_FIELDS: {
|
|
16
|
+
readonly label: string;
|
|
17
|
+
readonly href: "href";
|
|
18
|
+
};
|
|
19
|
+
export declare const LABEL_ONLY_LABEL_LOOK: Props;
|
|
20
|
+
export declare const LABEL_ONLY_MARK: Props;
|
|
21
|
+
export declare const labelOnlyCardSeed: (linked?: boolean) => BlockSeed;
|
|
22
|
+
export declare const cardIdOf: (own: string) => (_type: string, at: string) => string;
|
|
23
|
+
export declare const labelOnlyTemplateNodes: (idOf: (type: string, at: string) => string, linked?: boolean) => SeededNode[];
|
|
15
24
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CARD_ROW_FIELD_PROP as
|
|
1
|
+
import{CARD_ROW_FIELD_PROP as O,CARD_ROW_LINK_PROP as L}from"../../../../content/card-template.js";import{BOX_ANGLE_PROP as m}from"../../../../content/box-angle.js";import{BOX_HIGHLIGHT as R,HOVER_KEY as S}from"../../../../animation/hover.js";import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as l}from"../../../container-blocks.js";import{DIM as h,INNER_BOX as n,TEXT as i,boxPadding as s,markBoxProps as y,seedNodes as d,token as p}from"../../../seed-parts.js";import{labelTextSeed as g}from"../../../text-seeds.js";const E={...n,gap:12,gapPhone:12,...s(32,32,28,28)},f={textStyle:"heading-3",...p("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},D={textStyle:"body-1",...p("body",15),lineHeight:1.6},a=(e,t,o,x=!1)=>({type:"Text",props:{...t,text:"",[O]:e,_partStyles:{text:{...x?g()._partStyles?.text??{}:{},...o}}}}),_={title:"title",body:"body"},H={title:"name",body:"note"},A=(e=_)=>({type:r,props:{...E,name:"Card"},slots:{[l]:[a(e.title,{...i,tag:"p",widthFit:"fill"},f),a(e.body,{...h,tag:"p",widthFit:"fill"},D)]}}),K=(e,t)=>d([A(t)],e),c={label:_.title,href:"href"},C={textStyle:"body-1",fontRole:"heading",color:"text",...p("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},b=y(9,"main",{[m]:45}),P=(e=!1)=>({type:r,props:{...n,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...s(32,28),[L]:c.href,...e?{[S]:R}:{}},slots:{[l]:[{type:r,props:{...b,name:"Mark"}},a(c.label,{...i,tag:"p",widthFit:"fill"},C)]}}),Y=e=>(t,o)=>o==="0"?`${e}~card`:`${e}~card.${o.slice(2)}`,X=(e,t=!1)=>d([P(t)],e);export{D as CARDS_BODY_LOOK,E as CARDS_CARD,f as CARDS_TITLE_LOOK,c as LABEL_ONLY_CARD_FIELDS,C as LABEL_ONLY_LABEL_LOOK,b as LABEL_ONLY_MARK,H as SERVED_CARD_FIELDS,_ as TYPED_CARD_FIELDS,Y as cardIdOf,A as cardsCardSeed,K as cardsTemplateNodes,P as labelOnlyCardSeed,X as labelOnlyTemplateNodes,a as rowFieldTextSeed};
|
|
@@ -2,6 +2,7 @@ import { type BlockSeed } from "../../../seed-parts.js";
|
|
|
2
2
|
type Props = Record<string, unknown>;
|
|
3
3
|
export declare const FAQ_QUESTION_FIELD = "question";
|
|
4
4
|
export declare const FAQ_ANSWER_FIELD = "answer";
|
|
5
|
+
export declare function faqRunStyleKeys(): string[];
|
|
5
6
|
export declare const faqCardSeed: () => BlockSeed;
|
|
6
7
|
export declare function withFaqTemplate(props: Props): Props;
|
|
7
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as
|
|
1
|
+
import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as d}from"../../../container-blocks.js";import{DIM as l,INNER_BOX as f,TEXT as p,seedNodes as s,token as n}from"../../../seed-parts.js";import{rowFieldTextSeed as i}from"../Cards/card-seed.js";import{nonEmptyString as r}from"../../../../non-empty-string.js";import{parseSectionHeadPlacement as c}from"../../../../sections/section-head-placement.js";import{textRegionPartKey as u}from"../../../../sections/text-regions.js";import{FAQ_REGIONS as S}from"../../../../sections/faq-text-regions.js";const O="question",w="answer",x={textStyle:"body-1",fontRole:"heading",...n("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},y={textStyle:"body-1",...n("body",15),lineHeight:1.7};function A(){return Object.keys(S).map(u)}const E=()=>({type:o,props:{...f,gap:0,name:"Question"},slots:{rowTitle:[i(O,{...p,tag:"p",widthFit:"fill"},x)],[d]:[i(w,{...l,tag:"p",widthFit:"fill",maxWidth:760},y)]}});function T(e){return c(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>r(e[t])!==void 0)}function Q(e){if(e.template!==void 0||T(e))return e;const t=r(e.id)??"FAQ";let a=0;return{...e,template:s([E()],m=>m===o?`${t}~row`:`${t}~row.${a++}`)}}export{w as FAQ_ANSWER_FIELD,O as FAQ_QUESTION_FIELD,E as faqCardSeed,A as faqRunStyleKeys,Q as withFaqTemplate};
|
|
@@ -4,7 +4,18 @@ type Node = {
|
|
|
4
4
|
props: Props;
|
|
5
5
|
};
|
|
6
6
|
export type MakeNode = (type: string, props?: Props) => Node;
|
|
7
|
+
export type ConvertFooterBlock = (node: Node, make: MakeNode) => Node[] | null;
|
|
7
8
|
export declare const FOOTER_TEXT_PX: Record<"sm" | "md" | "lg", number>;
|
|
8
|
-
export declare
|
|
9
|
-
|
|
9
|
+
export declare const FOOTER_MARK_SIZES: {
|
|
10
|
+
readonly sm: {
|
|
11
|
+
readonly mark: 16;
|
|
12
|
+
readonly words: number;
|
|
13
|
+
};
|
|
14
|
+
readonly md: {
|
|
15
|
+
readonly mark: 20;
|
|
16
|
+
readonly words: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare function pageBlocksFromFooterBlock(node: Node, make: MakeNode, convert?: ConvertFooterBlock): Node[];
|
|
20
|
+
export declare function boxFooterFromFooter(footer: Node | null, make: MakeNode, groupId: string, convert?: ConvertFooterBlock): Node;
|
|
10
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FOOTER_LOGO_PX as O}from"../logo/logo-size.js";import{resolveContainerGap as
|
|
1
|
+
import{FOOTER_LOGO_PX as O}from"../logo/logo-size.js";import{resolveContainerGap as _}from"../content/container-gap.js";import{NESTED_BOX_PADDING as m}from"../content/box-layout.js";import{finiteNumber as a}from"../finite-number.js";import{isNodeList as y}from"efficient-easel/data";import{hiddenKeyOf as P}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as L}from"../content/card-template.js";import{buildSectionGroup as x,SITE_FOOTER_TYPE as A}from"./section-groups.js";const d="Flex",S={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},w={FooterPayment:"PaymentLogosBlock"},I=o=>{const{id:e,...s}=o;return s},h=o=>typeof o=="string"?o:"",g={sm:12,md:13,lg:15},W={sm:{mark:16,words:g.sm},md:{mark:20,words:g.md}},b="md",E=1.5,B={size:13,lineHeight:E,width:280},N=14,G=40,R=o=>o==="center"||o==="right"?o:"left";function D(o){const e={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=a(o[t]);c&&(e[i]=c)}return e}function k(o,e,s){const t=s(o,I(e));if(Array.isArray(e.template))return{...t,props:{...t.props,template:T(e.template,String(t.props.id))}};if(e.template!==void 0)return t;const i=L(o,t.props);return i===t.props?t:{...t,props:i}}function T(o,e,s={at:0}){return o.map(t=>{const i={...t.props,id:`${e}~t${s.at++}`};for(const[c,r]of Object.entries(i))y(r)&&(i[c]=T(r,e,s));return{...t,props:i}})}function F(o,e,s){const t=o.props??{},i=s?.(o,e);if(i)return i;const c=S[o.type]??w[o.type];if(c)return[k(c,t,e)];switch(o.type){case"FooterLogo":{const r=R(t.align),n=e("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(O*((a(t.widthPct)??100)/100)),href:"/",align:r,...D(t)}),p=h(t.tagline).trim();return p?[n,e("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...B}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&t.size in g?t.size:b;return[e("Text",{text:h(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:g[r],lineHeight:E}}})]}case"FooterDivider":{const r=a(t.thickness),n=a(t.lengthPct);return[e("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[P("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[e(d,{direction:t.direction==="horizontal"?"row":"column",gap:_("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...m,content:r.flatMap(n=>F(n,e,s))})]}default:return[]}}function Y(o,e,s,t){const i=o&&Array.isArray(o.props?.blocks)?o.props.blocks:[],c=l=>e(d,{direction:"row",wrap:!0,share:"equal",gap:G,content:l}),r=[];let n=[];for(const l of i){const u=F(l,e,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...u);continue}u.length<=1?n.push(...u):n.push(e(d,{direction:"column",gap:N,align:"stretch",...m,content:u}))}(n.length||!r.length)&&r.push(c(n));const p=e(d,{direction:"column",content:[e("LegalLineBlock")]}),f=x(A,s,[...r,p]);return{...f,props:{...f.props,...o?.props?.width==="full"?{fullWidth:!0}:{}}}}export{W as FOOTER_MARK_SIZES,g as FOOTER_TEXT_PX,Y as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Data, type DataConfig } from "efficient-easel/data";
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
3
|
+
export declare function cardFollowsContentSwitch(props: Props, last: Props | null | undefined): Props;
|
|
4
|
+
export declare function cardsFollowCardStyle(props: Props, last: Props | null | undefined): Props;
|
|
5
|
+
export declare function cardsGridFollowsContent(box: Props, before: Props | null | undefined): Props;
|
|
6
|
+
export interface CardSwitchStore {
|
|
7
|
+
getState: () => {
|
|
8
|
+
appState: {
|
|
9
|
+
data: Data;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
subscribe: (listener: () => void) => () => void;
|
|
13
|
+
dispatch: (action: {
|
|
14
|
+
type: "setData";
|
|
15
|
+
data: (prev: Data) => Data;
|
|
16
|
+
recordHistory: false;
|
|
17
|
+
}) => void;
|
|
18
|
+
readonly config: DataConfig;
|
|
19
|
+
readonly loaded: Data;
|
|
20
|
+
}
|
|
21
|
+
export declare function followCardContentSwitches(easel: CardSwitchStore): () => void;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DELIVERY_OPTIONS_SOURCE as K,declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as p}from"../non-empty-string.js";import{CARD_LIST_TYPE as _,CARD_TEMPLATE_SLOT as f}from"../content/card-template.js";import{find as R,walk as g}from"efficient-easel/data";import{BOX_TYPE as j,CONTAINER_BLOCKS_SLOT as F}from"./container-blocks.js";import{seedNodes as S}from"./seed-parts.js";import{SERVED_CARD_FIELDS as a,TYPED_CARD_FIELDS as u,cardIdOf as A,cardsCardSeed as m,labelOnlyCardSeed as O}from"./blocks/general/Cards/card-seed.js";import{GRID_LOOK_KEYS as h,cardListCardSeed as w,cardsGridLook as k,deliveryCardSeed as D,deliveryGridLook as L}from"./blocks/general/Cards/card-list-seed.js";import{finiteNumber as Y}from"../finite-number.js";function l(t){return Array.isArray(t)?t.map(l):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).filter(([e,r])=>e!=="id"&&r!==void 0&&!(Array.isArray(r)&&r.length===0)).sort(([e],[r])=>e<r?-1:e>r?1:0).map(([e,r])=>[e,l(r)]))}const P=()=>"",G=t=>JSON.stringify(l(S([t],P)));function N(t,e,r){if(!Array.isArray(t)||t.length!==1)return null;const o=r.keys??=Object.fromEntries(Object.entries(e()).map(([n,s])=>[n,new Set(s.map(G))])),i=JSON.stringify(l(t));return Object.keys(o).find(n=>o[n].has(i))??null}const J=()=>({press:[w(u),w(a)],delivery:[D()]}),B={},C=t=>N(t,J,B),M=t=>d(t)===K?"delivery":"press";function et(t,e){if(!e||d(t)===d(e))return t;const r=C(t[f]),o=M(t);if(!r||r===o)return t;const i=p(t.id)??_,n=o==="delivery"?D():w(d(t)?a:u),s=S([n],A(i));return{...t,[f]:s}}const V=()=>({cards:[m(u),m(a)],label:[O(!1),O(!0)]}),v={},z=t=>N(t,V,v);function nt(t,e){if(!e||t.cardStyle==="label-only"==(e.cardStyle==="label-only"))return t;const r=z(t[f]),o=t.cardStyle==="label-only"?"label":"cards";if(!r||r===o)return t;const i=p(t.id)??"Cards",n=Array.isArray(t.items)&&t.items.some(b=>p(b?.href)!==void 0),s=o==="label"?O(n):m(d(t)?a:u),c=S([s],A(i));return{...t,[f]:c}}const I=(t,e)=>h.every(r=>JSON.stringify(t[r])===JSON.stringify(e[r]));function T(t,e){const r={...t};for(const o of h)delete r[o];return{...r,...structuredClone(e)}}function E(t){const e=t?.[F];if(!Array.isArray(e)||e.length!==1)return null;const r=e[0];return r?.type===_&&r.props?r:null}function H(t,e){const r=E(t),o=E(e);if(!r?.props||!o?.props||o.props.id!==r.props.id||d(r.props)===d(o.props))return t;const i=C(r.props[f]);if(!i||i===C(o.props[f]))return t;const n=Y(t.columns);return n===void 0?t:i==="delivery"&&I(t,k(n))?T(t,L(n)):i==="press"&&I(t,L(n))?T(t,k(n)):t}function ot(t){const e=y.get(t);e?e.count+=1:y.set(t,{count:1,stop:U(t)});let r=!1;return()=>{const o=y.get(t);r||!o||(r=!0,o.count-=1,!(o.count>0)&&(o.stop(),y.delete(t)))}}const y=new WeakMap;function U(t){let e=t.getState().appState.data;return t.subscribe(()=>{const r=t.getState().appState.data;if(r===e)return;const o=e;if(e=r,r===t.loaded)return;const i=new Map;g(r,t.config,n=>{if(n.type!==j||!E(n.props))return;const s=R(o,t.config,n.props.id);if(!s||s.node===n)return;const c=H(n.props,s.node.props);c!==n.props&&i.set(n.props.id,c)}),i.size&&t.dispatch({type:"setData",recordHistory:!1,data:n=>g(n,t.config,s=>{const c=i.get(s.props.id);return c?{...s,props:{...c,id:s.props.id}}:void 0})})})}export{et as cardFollowsContentSwitch,nt as cardsFollowCardStyle,H as cardsGridFollowsContent,ot as followCardContentSwitches};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{declaredBlockSource as
|
|
1
|
+
import{declaredBlockSource as u}from"../content/block-sources.js";import{nonEmptyString as s}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as y}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as A}from"./container-blocks.js";import{SERVED_CARD_FIELDS as f,TYPED_CARD_FIELDS as c,cardIdOf as _,cardsTemplateNodes as D,labelOnlyTemplateNodes as O}from"./blocks/general/Cards/card-seed.js";function I(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return E(t);const n=s(t.id)??"Cards",i=_(n);if(t.cardStyle==="label-only"){const l=Array.isArray(t.items)&&t.items.some(r=>s(r?.href)!==void 0);return E({...t,template:O(i,l)})}const a=u(t)?f:c;return{...t,template:D(i,a)}}const S=e=>{const[t,n]=e?[c,f]:[f,c];return new Map([[t.title,n.title],[t.body,n.body]])};function C(e,t){let n=null;return e.forEach((i,a)=>{const l=i?.props;if(!l)return;let r=l;const o=l[y];i.type==="Text"&&typeof o=="string"&&t.has(o)&&(r={...r,[y]:t.get(o)});const m=l[A];if(Array.isArray(m)){const d=C(m,t);d!==m&&(r={...r,[A]:d})}r!==l&&(n??=[...e],n[a]={...i,props:r})}),n??e}function E(e,t){if(!Array.isArray(e.template))return e;const n=S(!!u(e)),i=t?new Map([...n].filter(([l,r])=>t(r)&&!t(l))):n;if(!i.size)return e;const a=C(e.template,i);return a===e.template?e:{...e,template:a}}export{E as cardsFieldsFollowContent,I as withCardsTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",L="Flex",s="Text & media",
|
|
1
|
+
import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",L="Flex",s="Text & media",i="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],y=[...c,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),u=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:i})),r=[...y,...u],l=[...c,{type:"HeroGroup",label:n}],S=l.map(e=>e.type),E=1,O=l.filter(e=>e.type!=="HeroGroup");function b(e){return e<E?l:O}const C={Flex:{slot:o,choices:()=>r},Grid:{slot:o,choices:()=>r},HeroGroup:{slot:o,choices:b}};function T(e,a=0){const t=C[e];return t?{slot:t.slot,choices:t.choices(a)}:null}export{L as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,r as CONTAINER_BLOCK_CHOICES,S as HERO_GROUP_BLOCK_TYPES,E as HERO_GROUP_NEST_DEPTH,T as containerBlocksFor};
|
|
@@ -18,6 +18,7 @@ export declare function buildBlockCategories(): Record<string, {
|
|
|
18
18
|
components: string[];
|
|
19
19
|
defaultExpanded?: boolean;
|
|
20
20
|
}>;
|
|
21
|
+
export declare const KEY_FEATURES_DELETE_BY = "2026-12-04";
|
|
21
22
|
export declare const RETIRED_SECTIONS: Record<string, string>;
|
|
22
23
|
export declare const RETIRED_NESTABLE_SECTIONS: readonly ["Grid", "Spacer", "TyreFitment"];
|
|
23
24
|
export declare const ALL_SECTION_TYPES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const p=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"}]}];function u(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i="2026-12-04",l={Masthead:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
|
|
2
2
|
|
|
3
3
|
WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
|
|
4
4
|
|
|
@@ -16,19 +16,11 @@ NO CONVERTER ROW: 0 Spacer nodes on any page, draft or published, in any schema
|
|
|
16
16
|
|
|
17
17
|
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Spacer anywhere still renders through it and can still be edited; no document is rewritten.`,KeyFeatures:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds Cards and Key Features; Key Features' diamond cells are the card style "Label only". Retired by card [MERGE] One Text Block And Click Through Parts (2026-10-22).
|
|
18
18
|
|
|
19
|
-
WHAT REPLACES IT: a Cards section with Card style set to Label only.
|
|
19
|
+
WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell is a copy of the Label only card template (Cards/card-seed \`labelOnlyCardSeed\`): a cell Box (its link from the row's \`href\`), a 9px Mark Box in the main colour turned 45 degrees, and the label Text; the eyebrow starts on the pill look when none is stored. A cell's words are the card's \`title\` (row "Feature label"), its link the card's \`href\` (row "Link"). The Key Features conversion lands on the same card (\`scripts/test-key-features-diamond.tsx\`).
|
|
20
20
|
|
|
21
21
|
WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
|
|
22
22
|
|
|
23
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`,DeliveryOptions:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
|
|
24
|
-
|
|
25
|
-
WHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's \`delivery-options\` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.
|
|
26
|
-
|
|
27
|
-
WHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.
|
|
28
|
-
|
|
29
|
-
NO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (\`scripts/test-section-to-box.tsx\` §5).
|
|
30
|
-
|
|
31
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.`,Series:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
|
|
23
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${i}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`,DeliveryOptions:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` §5).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming.",Series:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
|
|
32
24
|
|
|
33
25
|
WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
|
|
34
26
|
|
|
@@ -62,4 +54,4 @@ WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a pres
|
|
|
62
54
|
|
|
63
55
|
NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
|
|
64
56
|
|
|
65
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`,PaymentBadges:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},
|
|
57
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`,PaymentBadges:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},m=["Grid","Spacer","TyreFitment"],y=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(l)])),g=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),d={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...d,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function b(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const T=a("general"),E=a("commerce"),w=a("service"),c="Flex",s="Box",S=`${s}es`;function h(e){return e==="section"?"Blank section":s}function O(e,t,n){return e===c?h(t):n}export{y as ALL_SECTION_TYPES,p as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,E as COMMERCE_BLOCKS,T as GENERAL_BLOCKS,i as KEY_FEATURES_DELETE_BY,c as LEVEL_NAMED_TYPE,m as RETIRED_NESTABLE_SECTIONS,l as RETIRED_SECTIONS,o as SECTION_CATALOG,g as SECTION_LABELS,w as SERVICE_BLOCKS,d as UNLISTED_BLOCK_SETS,b as blockSetOf,a as blocksInSet,u as buildBlockCategories,O as labelAtLevel,h as labelForFlex};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type { FillColorSlot } from "efficient-shell/markup";
|
|
1
2
|
type Props = Record<string, unknown>;
|
|
2
3
|
export declare const TEXT: Props;
|
|
3
4
|
export declare const DIM: Props;
|
|
4
5
|
export declare const BOX: Props;
|
|
5
6
|
export declare const INNER_BOX: Props;
|
|
6
7
|
export declare const boxPadding: (y: number, x?: number, yPhone?: number, xPhone?: number) => Props;
|
|
8
|
+
export declare const fillSlot: (slot: FillColorSlot) => Props;
|
|
9
|
+
export declare const markBoxProps: (size: number, fill: FillColorSlot, look?: Props) => Props;
|
|
7
10
|
export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
|
|
8
11
|
export declare const LABEL_FACE: Readonly<Props>;
|
|
9
12
|
export declare const labelLook: (px: number, pxPhone?: number) => Props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as
|
|
1
|
+
import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as l}from"./blocks/general/Text/meta.js";const{text:L,tag:T,...g}=l.defaultProps,x=g,_={...x,tone:"dim"},f={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},P={...f,direction:"column",...a},k=(t,o=t,e=t,n=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:e,sectionPaddingRightPhone:n,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:n}),m=t=>({fillColor:t}),A=(t,o,e={})=>({...P,widthFit:"fixed",width:t,minWidth:t,sectionHeightMode:"fixed",sectionHeightValue:t,sectionHeightUnit:"px",...m(o),...e}),h=(t,o,e,n)=>({sizeToken:{step:t,px:o,...n?{stepPhone:n}:{},...e?{pxPhone:e}:{}}}),c={case:"upper"},u={textStyle:"body-5",...c},S=(t,o)=>({...h("label",t,o),letterSpacing:.2,...c}),N=(t,o)=>({...u,...S(t,o)});function B(t,o,e=""){return t.map((n,i)=>{const r=e?`${e}.${i}`:String(i),s={...n.props??{}};for(const[p,d]of Object.entries(n.slots??{}))s[p]=B(d,o,r);return{type:n.type,props:{...s,id:o(n.type,r)}}})}export{f as BOX,_ as DIM,P as INNER_BOX,u as LABEL_FACE,x as TEXT,k as boxPadding,m as fillSlot,S as labelLook,N as labelStyle,A as markBoxProps,B as seedNodes,h as token};
|
|
@@ -210,6 +210,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
210
210
|
readonly Box: "Box";
|
|
211
211
|
readonly "Box name": "Box name";
|
|
212
212
|
readonly "Box shape": "Box shape";
|
|
213
|
+
readonly "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.": "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";
|
|
213
214
|
readonly "Brand Text": "Brand Text";
|
|
214
215
|
readonly "Brand name": "Brand name";
|
|
215
216
|
readonly Breadcrumb: "Breadcrumb";
|
|
@@ -732,6 +733,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
732
733
|
readonly Map: "Map";
|
|
733
734
|
readonly "Map & Theme": "Map & Theme";
|
|
734
735
|
readonly "Map theme": "Map theme";
|
|
736
|
+
readonly Marks: "Marks";
|
|
735
737
|
readonly Marquee: "Marquee";
|
|
736
738
|
readonly "Match / done (green)": "Match / done (green)";
|
|
737
739
|
readonly Media: "Media";
|
|
@@ -1056,6 +1058,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1056
1058
|
readonly Sideways: "Sideways";
|
|
1057
1059
|
readonly "Signup Form": "Signup Form";
|
|
1058
1060
|
readonly Simple: "Simple";
|
|
1061
|
+
readonly Site: "Site";
|
|
1059
1062
|
readonly "Site button color": "Site button color";
|
|
1060
1063
|
readonly "Site settings": "Site settings";
|
|
1061
1064
|
readonly "Six across": "Six across";
|
|
@@ -1326,6 +1329,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1326
1329
|
readonly WeChat: "WeChat";
|
|
1327
1330
|
readonly "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.": "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.";
|
|
1328
1331
|
readonly "What people *say.*": "What people *say.*";
|
|
1332
|
+
readonly "What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.": "What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.";
|
|
1329
1333
|
readonly "What this does when a shopper points at it, or taps it on a phone.": "What this does when a shopper points at it, or taps it on a phone.";
|
|
1330
1334
|
readonly "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.": "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.";
|
|
1331
1335
|
readonly "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.": "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.";
|