efficient-web-builder 66.0.0 → 67.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/editor/components/MediaUploadField.js +1 -1
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/components/PartTextBox.js +1 -1
- package/dist/editor/components/PreviewPartAnchors.js +1 -1
- package/dist/editor/components/SectionWidthRows.d.ts +3 -1
- package/dist/editor/components/SectionWidthRows.js +1 -1
- package/dist/editor/components/SiteTextStylesField.js +1 -1
- package/dist/editor/components/storefront-editor.css +47 -0
- package/dist/editor/lib/animation/hover-fields.d.ts +1 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/block-offer.d.ts +2 -0
- package/dist/editor/lib/document/block-offer.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/IntroBleed/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
- package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
- package/dist/editor/lib/document/box-fields.d.ts +1 -1
- package/dist/editor/lib/document/controls.d.ts +24 -14
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/document/section-own-width-fields.js +1 -1
- package/dist/format/lib/animation/views.js +1 -1
- package/dist/format/lib/content/borders.d.ts +12 -2
- package/dist/format/lib/content/borders.js +1 -1
- package/dist/format/lib/content/card-corners.d.ts +3 -1
- package/dist/format/lib/content/card-corners.js +1 -1
- package/dist/format/lib/content/css-length.d.ts +6 -0
- package/dist/format/lib/content/css-length.js +1 -1
- package/dist/format/lib/content/image-corners.d.ts +3 -1
- package/dist/format/lib/content/image-corners.js +1 -1
- package/dist/format/lib/content/section-corners.d.ts +3 -1
- package/dist/format/lib/content/section-corners.js +1 -1
- package/dist/format/lib/content/section-min-height.d.ts +11 -1
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/section-sticky.d.ts +5 -0
- package/dist/format/lib/content/section-sticky.js +1 -1
- package/dist/format/lib/content/section-type-size.d.ts +12 -1
- package/dist/format/lib/content/section-type-size.js +1 -1
- package/dist/format/lib/content/section-width.d.ts +8 -0
- package/dist/format/lib/content/section-width.js +1 -1
- package/dist/format/lib/content/view-tier.d.ts +10 -0
- package/dist/format/lib/content/view-tier.js +1 -0
- package/dist/format/lib/document/blocks/general/Split/meta.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/Split/meta.js +2 -2
- package/dist/format/lib/document/easel-row-words.d.ts +2 -0
- package/dist/format/lib/document/easel-row-words.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +3 -1
- package/dist/format/lib/document/section-catalog.d.ts +5 -0
- package/dist/format/lib/document/section-catalog.js +10 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/fit-words.js +4 -2
- package/dist/format/lib/post-card-layout.d.ts +3 -0
- package/dist/format/lib/post-card-layout.js +1 -1
- package/dist/format/lib/sections/divider-style.d.ts +9 -0
- package/dist/format/lib/sections/divider-style.js +1 -1
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/format/lib/sections/section-presets.js +1 -1
- package/dist/format/lib/source-rules/one-length-control.js +3 -3
- package/dist/format/lib/theme.d.ts +1 -1
- package/dist/format/lib/theme.js +4 -4
- package/dist/render/components/Divider.d.ts +3 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/Flex.d.ts +3 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/HeroGroup.d.ts +3 -1
- package/dist/render/components/HeroGroup.js +1 -1
- package/dist/render/components/ImageBlock.d.ts +2 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/IntroBleed.d.ts +3 -2
- package/dist/render/components/IntroBleed.js +1 -1
- package/dist/render/components/PictureHoverMove.d.ts +18 -0
- package/dist/render/components/PictureHoverMove.js +1 -0
- package/dist/render/components/PictureWash.d.ts +2 -1
- package/dist/render/components/PictureWash.js +1 -1
- package/dist/render/components/ViewHideRoot.d.ts +6 -0
- package/dist/render/components/ViewHideRoot.js +1 -1
- package/dist/render/lib/content/block-size.d.ts +1 -1
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/Divider/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroGroup/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/IntroBleed/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
- 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-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +13 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/borders.js +1 -1
- package/dist/render/lib/document/passes/corners.js +1 -1
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-height.d.ts +5 -1
- package/dist/render/lib/document/passes/section-height.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/dist/render/lib/text-styles/site-text-styles.js +2 -2
- package/package.json +7 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{LENGTH_UNITS as
|
|
1
|
+
import{FOLLOW_RULES as C,resolveViewValue as M}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as O}from"efficient-easel/screen/lib/content/length-units";const p=["auto","fixed","screen","fill"],A=O.filter(e=>e==="px"||e==="%"),w="svh",P="vh",V="var(--sf-header-h, 88px)",v={min:40,max:2e3,step:10,fallback:600},G={min:10,max:200,step:5,fallback:100},U="sf-section-minh",l="grid-cols-[minmax(0,1fr)]",u={base:"--sf-section-minh",small:"--sf-section-minh-s"},h=e=>typeof e=="string"&&p.includes(e),k=e=>typeof e=="string"&&A.includes(e);function r(e){const t=h(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":k(e.sectionHeightUnit)?e.sectionHeightUnit:"px",i=t==="screen"?G.fallback:v.fallback,o=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:i;return{mode:t,value:o,unit:n}}function _(e){const{mode:t,value:n,unit:i}=r(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&i==="px")return[`${n}px`,null];const o=n/100,c=s=>t==="screen"?`(100${s} - ${V})`:`100${s}`;return[`calc(${c(P)} * ${o})`,`calc(${c(w)} * ${o})`]}function g(e){const t=_(e);if(!t)return;const[n,i]=t;return{display:"grid",[u.base]:n,...i?{[u.small]:i}:{}}}const K=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),X="Height",I="sf-section-minh-phone",T={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function d(e){return h(e.sectionHeightModePhone)}function F(e){return r({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}const S="sf-section-minh-tablet",x={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function E(e){return h(e.sectionHeightModeTablet)}function R(e){return r({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function H(e){const t=g(e),n=(N,L,b)=>_({sectionHeightMode:N,sectionHeightValue:L,sectionHeightUnit:b})??(t?["auto",null]:void 0),i=E(e)?n(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,o=d(e)?n(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):i;if(!t&&!i&&!o)return null;const c=[U,l],s={...t??{}};return i&&(c.push(S),s[x.base]=i[0],i[1]&&(s[x.small]=i[1])),o&&(c.push(I),s[T.base]=o[0],o[1]&&(s[T.small]=o[1])),{className:c.join(" "),style:s}}function q(e){return H(e)!==null||a(e).length>0}const f=`grid ${l}`,z="h-full",$="view-tablet:max-view-desktop:grid",m="max-view-tablet:grid",y=`${m} ${l}`;function J(e){if(a(e).length>0)return f;const t=H(e);if(!t)return"";if(g(e))return f;const n=t.className.split(" ");if(!n.includes(S))return y;const o=n.includes(I);return[$,o?m:"",l].filter(Boolean).join(" ")}const Q="data-sf-height-fill",B=["desktop","tablet","mobile"],D={desktop:"view-desktop:[.flex-col>&]:grow! view-desktop:[.flex-row>&]:self-stretch",tablet:"view-wide:max-view-desktop:[.flex-col>&]:grow! view-wide:max-view-desktop:[.flex-row>&]:self-stretch",mobile:"max-view-wide:[.flex-col>&]:grow!"};function a(e){const t=e,n=M("heightMode",r(t).mode,E(t)?R(t).mode:null,d(t)?F(t).mode:null,C),i={desktop:n.desktop==="fill",tablet:n.tablet==="fill",mobile:n.phone==="fill"};return B.filter(o=>i[o])}function Y(e){return a(e).map(t=>D[t]).join(" ")}function Z(e){const t=H(e);return a(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:f}}export{V as HEADER_HEIGHT_VAR,z as SECTION_FILL_CLASS,f as SECTION_FILL_PASS_CLASS,y as SECTION_FILL_PASS_PHONE_CLASS,l as SECTION_GRID_COLUMN_CLASS,Q as SECTION_HEIGHT_FILL_ATTR,p as SECTION_HEIGHT_MODES,A as SECTION_HEIGHT_UNITS,v as SECTION_MIN_HEIGHT,U as SECTION_MIN_HEIGHT_CLASS,K as SECTION_MIN_HEIGHT_EXCLUDED,X as SECTION_MIN_HEIGHT_GROUP_LABEL,I as SECTION_MIN_HEIGHT_PHONE_CLASS,T as SECTION_MIN_HEIGHT_PHONE_VARS,S as SECTION_MIN_HEIGHT_TABLET_CLASS,x as SECTION_MIN_HEIGHT_TABLET_VARS,u as SECTION_MIN_HEIGHT_VARS,G as SECTION_SCREEN_PCT,w as VIEWPORT_UNIT,P as VIEWPORT_UNIT_FALLBACK,d as hasPhoneHeight,E as hasTabletHeight,F as resolvePhoneHeight,r as resolveSectionMinHeight,R as resolveTabletHeight,J as sectionFillPassClass,q as sectionFillsHeight,Y as sectionHeightFillClass,a as sectionHeightFillViews,Z as sectionHeightWrap,H as sectionMinHeightAttrs,_ as sectionMinHeightLengths,g as sectionMinHeightStyle};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties } from "react";
|
|
2
2
|
import { type ShowWhenRule } from "efficient-shell/format";
|
|
3
|
+
import { type LengthRow } from "efficient-easel/screen/lib/content/length-units";
|
|
3
4
|
export declare const SECTION_STICK_LABEL = "Stick to top";
|
|
4
5
|
export declare const SECTION_STICK_DISTANCE: {
|
|
5
6
|
readonly min: 0;
|
|
@@ -7,6 +8,7 @@ export declare const SECTION_STICK_DISTANCE: {
|
|
|
7
8
|
readonly step: 4;
|
|
8
9
|
readonly fallback: 0;
|
|
9
10
|
};
|
|
11
|
+
export declare const SECTION_STICK_DISTANCE_ROW: LengthRow;
|
|
10
12
|
export declare const SECTION_PIN_LABEL = "Pin while scrolling";
|
|
11
13
|
export declare const SECTION_PIN_GROUP = "Scroll";
|
|
12
14
|
export declare const SECTION_PIN_VARS: {
|
|
@@ -68,13 +70,16 @@ export declare function resolveSectionStick(props: SectionStickProps, opts?: {
|
|
|
68
70
|
}): {
|
|
69
71
|
desktop: boolean;
|
|
70
72
|
desktopDistance: number;
|
|
73
|
+
desktopUnit: "px" | "%" | "vw";
|
|
71
74
|
desktopScreens: number;
|
|
72
75
|
tablet: boolean;
|
|
73
76
|
tabletDistance: number;
|
|
77
|
+
tabletUnit: "px" | "%" | "vw";
|
|
74
78
|
tabletScreens: number;
|
|
75
79
|
ownTablet: boolean;
|
|
76
80
|
phone: boolean;
|
|
77
81
|
phoneDistance: number;
|
|
82
|
+
phoneUnit: "px" | "%" | "vw";
|
|
78
83
|
phoneScreens: number;
|
|
79
84
|
ownPhone: boolean;
|
|
80
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PIN_STICK_VAR as
|
|
1
|
+
import{PIN_STICK_VAR as A,PIN_TRACK_POSITION_VAR as D,pinAttrs as f,pinStickVars as K,readPin as d}from"efficient-shell/format";import{finiteNumber as y}from"../finite-number.js";import{viewVarSplit as m}from"./view-var-split.js";import{cssLengthOf as E,rowUnitKeys as U,storedUnit as P}from"./css-length.js";const Q="Stick to top",h={min:0,max:200,step:4,fallback:0},L={kind:"position",unitKey:"stickTopDistanceUnit"},u=U(L),[g,R,v]=u,Z="Pin while scrolling",tt="Scroll",i={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},B="stickTopScreens",V=[B,"stickTopScreensTablet","stickTopScreensPhone"],et="Screens",Y="stickTopStop",k="screen",nt="Pin stops at",ot=[{value:"header",label:"Under the header"},{value:k,label:"Screen top"}],st="header",ct="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function w(e){return e===k?k:"header"}function it(e){return e===k?k:void 0}const M="stickAbove",rt="Stays above",at="On: the pinned box stays on top, and the sections after it scroll under it.";function H(e){return e.stickAbove===!0}const pt=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...u,...V,Y,M],St=new Set(["IntroBleed"]),Tt=new Set(["CategoryBar","DocTabs","Contents"]);function W(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}const O=e=>d(!0,e).length,_t={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},kt={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function b(e,s="px"){const t=y(e)??h.fallback;return s!=="px"?Math.max(h.min,t):Math.min(h.max,Math.max(h.min,Math.round(t)))}function j(e){return typeof e.stickTopTablet=="boolean"}function $(e){return typeof e.stickTopPhone=="boolean"}function F(e,s={}){const t=s.intro?W(e):e.stickTop===!0,S=e,T=P(S[g]),r=b(e.stickTopDistance,T),_=O(e.stickTopScreens),n=j(e),p=n?e.stickTopTablet===!0:t,o=n?P(S[R]):T,I=n?b(e.stickTopDistanceTablet,o):r,c=n?O(e.stickTopScreensTablet):_,a=$(e),l=a?e.stickTopPhone===!0:p,N=a?P(S[v]):o,C=a?b(e.stickTopDistancePhone,N):I,x=a?O(e.stickTopScreensPhone):c;return{desktop:t,desktopDistance:r,desktopUnit:T,desktopScreens:_,tablet:p,tabletDistance:I,tabletUnit:o,tabletScreens:c,ownTablet:n,phone:l,phoneDistance:C,phoneUnit:N,phoneScreens:x,ownPhone:a}}function lt(e,s={}){const t=F(e,{intro:s.atScreenTop});if(!t.desktop&&!t.tablet&&!t.phone)return null;const S=s.atScreenTop===!0&&typeof e.stickTop!="boolean",T=t.desktop&&t.desktopScreens>0||t.tablet&&t.tabletScreens>0||t.phone&&t.phoneScreens>0,r=s.above===!0&&H(e),_=s.track===!0&&!S&&T&&!r,n=(c,a,l,N)=>m({tabletClass:"",tabletVar:`${c}-tablet`,phoneClass:"",phoneVar:`${c}-phone`},a,l,N).style,p={...s.atScreenTop||w(e.stickTopStop)===k?{[i.header]:"0px"}:{},[i.distance]:E(t.desktopDistance,t.desktopUnit),...n(i.distance,E(t.desktopDistance,t.desktopUnit),E(t.tabletDistance,t.tabletUnit),E(t.phoneDistance,t.phoneUnit))};if(_){const c=l=>l?"1":"0",a={...p,...t.desktop?{}:{[i.on]:"0"},...n(i.on,c(t.desktop),c(t.tablet),c(t.phone)),[i.length]:String(t.desktopScreens),...n(i.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...G(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,n)};return{attrs:f(d(!0),"track").attrs,style:a}}const o=c=>c?"sticky":"static",I={...p,...t.desktop?{}:{[i.position]:"static"},...n(i.position,o(t.desktop),o(t.tablet),o(t.phone))};return{attrs:f(d(!0),"stick",r?{above:r}:{}).attrs,style:I}}function G(e,s,t,S){const T=[[i.stick,A],[i.trackPosition,D]],[r,_,n]=[e,s,t].map(K);return Object.fromEntries(T.flatMap(([p,o])=>[...e?[[p,r[o]]]:[],...Object.entries(S(p,r[o],_[o],n[o]))]))}export{kt as INTRO_OLD_STICKY_PINS,St as PIN_AT_SCREEN_TOP,at as SECTION_PIN_ABOVE_HINT,M as SECTION_PIN_ABOVE_KEY,rt as SECTION_PIN_ABOVE_LABEL,tt as SECTION_PIN_GROUP,pt as SECTION_PIN_KEYS,Z as SECTION_PIN_LABEL,B as SECTION_PIN_SCREENS_KEY,V as SECTION_PIN_SCREENS_KEYS,et as SECTION_PIN_SCREENS_LABEL,st as SECTION_PIN_STOP_DEFAULT,ct as SECTION_PIN_STOP_HINT,Y as SECTION_PIN_STOP_KEY,nt as SECTION_PIN_STOP_LABEL,ot as SECTION_PIN_STOP_OPTIONS,k as SECTION_PIN_STOP_SCREEN,i as SECTION_PIN_VARS,h as SECTION_STICK_DISTANCE,L as SECTION_STICK_DISTANCE_ROW,Tt as SECTION_STICK_EXCLUDED,Q as SECTION_STICK_LABEL,_t as SOME_VIEW_PINS,$ as hasPhoneStick,j as hasTabletStick,F as resolveSectionStick,H as sectionPinAbove,lt as sectionPinAttrs,w as sectionPinStopOf,it as sectionPinStopWrite};
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import type { SizeStep } from "../theme.js";
|
|
2
|
+
import { type LengthRow, type LengthUnit } from "efficient-easel/screen/lib/content/length-units";
|
|
2
3
|
export type TypeRole = "heading" | "body" | "label";
|
|
3
4
|
export declare const TYPE_SIZE_INHERIT: "inherit";
|
|
4
5
|
export declare const TYPE_SIZE_FIXED: "fixed";
|
|
5
6
|
export type TypeSizeValue = number | typeof TYPE_SIZE_INHERIT | typeof TYPE_SIZE_FIXED | undefined;
|
|
6
7
|
export declare const isTypeSizeInheriting: (v: unknown) => boolean;
|
|
7
|
-
export declare function resolveTypeSize(stored: TypeSizeValue, builtIn: string, role: TypeRole, step?: SizeStep): string;
|
|
8
|
+
export declare function resolveTypeSize(stored: TypeSizeValue, builtIn: string, role: TypeRole, step?: SizeStep, unit?: LengthUnit): string;
|
|
9
|
+
export declare const INTRO_TITLE_SIZE_ROW: LengthRow;
|
|
10
|
+
export declare const INTRO_BODY_SIZE_ROW: LengthRow;
|
|
11
|
+
export interface IntroSizeUnits {
|
|
12
|
+
titleDesktop: LengthUnit;
|
|
13
|
+
titleMobile: LengthUnit;
|
|
14
|
+
bodyDesktop: LengthUnit;
|
|
15
|
+
bodyMobile: LengthUnit;
|
|
16
|
+
}
|
|
17
|
+
export declare const INTRO_SIZE_UNIT_KEYS: readonly string[];
|
|
18
|
+
export declare function introSizeUnitsOf(props: Readonly<Record<string, unknown>>): IntroSizeUnits;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const x="inherit",
|
|
1
|
+
import{cssLengthOf as _,ownRowUnit as S,rowUnitKeys as f}from"./css-length.js";const x="inherit",p="fixed",y=e=>typeof e!="number"&&e!==p,E="var(--sf-heading-max, 9999px)";function a(e,t,i,o,I){if(typeof e=="number")return _(e,I);if(e===p)return t;const s=o?`var(--size-${o}, ${t})`:t;return i==="heading"?`min(${s}, ${E})`:s}const n={kind:"fontSize",unitKey:"titleSizeUnit"},r={kind:"fontSize",unitKey:"bodySizeUnit"},c=["desktop","mobile"],b=[n,r].flatMap(e=>f(e,c));function d(e){const t=(i,o)=>S(e,i,o);return{titleDesktop:t(n,"desktop"),titleMobile:t(n,"mobile"),bodyDesktop:t(r,"desktop"),bodyMobile:t(r,"mobile")}}export{r as INTRO_BODY_SIZE_ROW,b as INTRO_SIZE_UNIT_KEYS,n as INTRO_TITLE_SIZE_ROW,p as TYPE_SIZE_FIXED,x as TYPE_SIZE_INHERIT,d as introSizeUnitsOf,y as isTypeSizeInheriting,a as resolveTypeSize};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type LengthRow, type LengthUnit } from "efficient-easel/screen/lib/content/length-units";
|
|
1
2
|
export type WidthMode = "page" | "full";
|
|
2
3
|
export declare const WIDTH_MODES: readonly WidthMode[];
|
|
3
4
|
export declare const SECTION_WIDTH_CHOICES: readonly WidthMode[];
|
|
@@ -22,11 +23,14 @@ export declare const SECTION_WIDTH_KEYS: {
|
|
|
22
23
|
readonly background: "sectionBackgroundWidth";
|
|
23
24
|
readonly content: "sectionContentWidth";
|
|
24
25
|
readonly contentMax: "sectionContentMax";
|
|
26
|
+
readonly contentMaxUnit: "sectionContentMaxUnit";
|
|
25
27
|
};
|
|
28
|
+
export declare const SECTION_CONTENT_MAX_ROW: LengthRow;
|
|
26
29
|
export interface OwnSectionWidth {
|
|
27
30
|
background: WidthAnswer | null;
|
|
28
31
|
content: WidthAnswer | null;
|
|
29
32
|
contentMax: number | null;
|
|
33
|
+
contentMaxUnit: LengthUnit;
|
|
30
34
|
}
|
|
31
35
|
export declare function ownSectionWidth(props: Readonly<Record<string, unknown>>): OwnSectionWidth;
|
|
32
36
|
export declare function chromeOwnWidth(props: Readonly<Record<string, unknown>>): OwnSectionWidth;
|
|
@@ -37,9 +41,11 @@ export declare const sectionBackgroundPatch: (next: WidthAnswer) => {
|
|
|
37
41
|
export declare const sectionContentPatch: (next: WidthAnswer) => {
|
|
38
42
|
sectionContentWidth: "full";
|
|
39
43
|
sectionContentMax: undefined;
|
|
44
|
+
sectionContentMaxUnit: undefined;
|
|
40
45
|
} | {
|
|
41
46
|
sectionContentWidth: "content";
|
|
42
47
|
sectionContentMax?: undefined;
|
|
48
|
+
sectionContentMaxUnit?: undefined;
|
|
43
49
|
};
|
|
44
50
|
export declare const sectionContentMaxPatch: (px: number) => {
|
|
45
51
|
sectionContentWidth: "content";
|
|
@@ -49,9 +55,11 @@ export declare const sectionWidthResetPatch: (row: "background" | "content") =>
|
|
|
49
55
|
sectionBackgroundWidth: undefined;
|
|
50
56
|
sectionContentWidth?: undefined;
|
|
51
57
|
sectionContentMax?: undefined;
|
|
58
|
+
sectionContentMaxUnit?: undefined;
|
|
52
59
|
} | {
|
|
53
60
|
sectionContentWidth: undefined;
|
|
54
61
|
sectionContentMax: undefined;
|
|
62
|
+
sectionContentMaxUnit: undefined;
|
|
55
63
|
sectionBackgroundWidth?: undefined;
|
|
56
64
|
};
|
|
57
65
|
export declare const SITE_WIDTHS_KEY = "siteWidths";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{normalizeSectionContentMax as
|
|
1
|
+
import{storedUnit as u}from"./css-length.js";import{normalizeSectionContentMax as s}from"./page-width.js";const l=["page","full"],T=["full","page"],M={full:"Full",page:"Content"},p="inherit",g=t=>typeof t=="string"&&l.includes(t),b=t=>t===p;function h(t,e){return b(t.widthMode)?{mode:"full",inherited:!0}:g(t.widthMode)?{mode:t.widthMode,inherited:!1}:{mode:e,inherited:e==="full"}}function S(t){return h(t,"page").mode==="full"}const k={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"},W=["Ticker","CategoryBar","DocTabs","Header","Footer"];function O(t){return Object.prototype.hasOwnProperty.call(k,t)}const n={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},F={kind:"size",unitKey:n.contentMaxUnit};function x(t){const e=t[n.contentMaxUnit],c=u(e),a=t[n.contentMax],r=c==="px"?s(a):typeof a=="number"&&Number.isFinite(a)&&a>0?a:null,d=o(t[n.content])??(r===null?null:"content");return{background:o(t[n.background]),content:d,contentMax:d==="content"?r:null,contentMaxUnit:c}}function I(t){const e=x(t);return e.content===null&&t.fullWidth===!0?{...e,content:"full"}:e}function y(t){return t.background!==null||t.content!==null}const H=t=>({[n.background]:t}),B=t=>t==="full"?{[n.content]:t,[n.contentMax]:void 0,[n.contentMaxUnit]:void 0}:{[n.content]:t},_=t=>({[n.content]:"content",[n.contentMax]:t}),D=t=>t==="background"?{[n.background]:void 0}:{[n.content]:void 0,[n.contentMax]:void 0,[n.contentMaxUnit]:void 0},i="siteWidths",f=t=>t==="full"||t==="content";function o(t){return f(t)?t:null}function E(t,e){return{[i]:{background:o(t),content:o(e)}}}function w(t){const c=t.editor?.metadata?.[i];return{background:o(c?.background),content:o(c?.content)}}export{W as NO_WIDTH_ROWS,F as SECTION_CONTENT_MAX_ROW,T as SECTION_WIDTH_CHOICES,k as SECTION_WIDTH_FAMILY,n as SECTION_WIDTH_KEYS,i as SITE_WIDTHS_KEY,M as WIDTH_CHOICE_LABEL,p as WIDTH_INHERIT,l as WIDTH_MODES,I as chromeOwnWidth,y as hasOwnSectionWidth,O as hasWidthFamily,b as isInheritValue,o as normalizeSiteBackground,x as ownSectionWidth,h as resolveWidth,H as sectionBackgroundPatch,_ as sectionContentMaxPatch,B as sectionContentPatch,S as sectionRunsFullWidth,D as sectionWidthResetPatch,E as siteWidthsMetadata,w as siteWidthsOf};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VIEW_ABOVE } from "efficient-easel/screen/lib/content/length-units";
|
|
2
|
+
export type ViewTierName = keyof typeof VIEW_ABOVE;
|
|
3
|
+
export type PanelView = "desktop" | "tablet" | "phone";
|
|
4
|
+
export declare const TIER_OF_VIEW: {
|
|
5
|
+
readonly desktop: "desktop";
|
|
6
|
+
readonly tablet: "tablet";
|
|
7
|
+
readonly phone: "mobile";
|
|
8
|
+
};
|
|
9
|
+
export declare function tierOfView(view: PanelView | undefined): ViewTierName;
|
|
10
|
+
export declare function viewOfTier(tier: ViewTierName): PanelView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={desktop:"desktop",tablet:"tablet",phone:"mobile"},n=Object.keys(t);function r(e){return t[e??"desktop"]}function i(e){return n.find(o=>t[o]===e)??"desktop"}export{t as TIER_OF_VIEW,r as tierOfView,i as viewOfTier};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
2
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},
|
|
1
|
+
const t={eyebrow:"— Label",title:`Section headline *here.*
|
|
2
|
+
*Highlight line*`,body:"Describe this section in a sentence or two."},r={text:"Learn more"},a={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function i(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}export{r as IMGBTN_PH,t as SPLIT_PH,a as SplitMeta,i as splitImageOverlay};
|
|
@@ -4,6 +4,8 @@ export declare const EASEL_ROW_WORDS: {
|
|
|
4
4
|
readonly wrap: "Wrap";
|
|
5
5
|
readonly shrink: "Shrink";
|
|
6
6
|
readonly line: "One line";
|
|
7
|
+
readonly shorten: "Shorten";
|
|
8
|
+
readonly shortenHint: "One line, ends with ...";
|
|
7
9
|
readonly onTablet: "{value} on tablet";
|
|
8
10
|
readonly onDesktop: "{value} on desktop";
|
|
9
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink",line:"One line",onTablet:"{value} on tablet",onDesktop:"{value} on desktop"},
|
|
1
|
+
const e={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink",line:"One line",shorten:"Shorten",shortenHint:"One line, ends with ...",onTablet:"{value} on tablet",onDesktop:"{value} on desktop"},t={rendering:"Product renderings",photos:"Product photos",lifestyle:"Lifestyle photos",accessories:"Accessories",others:"Others"};export{t as EASEL_MEDIA_ZONE_WORDS,e as EASEL_ROW_WORDS};
|
|
@@ -46,7 +46,9 @@ export type PassInspector = {
|
|
|
46
46
|
sectionOwnWidthFields: (options?: {
|
|
47
47
|
drawsFullOnItsOwn?: boolean;
|
|
48
48
|
}) => FieldMap;
|
|
49
|
-
heightFields: (
|
|
49
|
+
heightFields: (opts?: {
|
|
50
|
+
fill?: boolean;
|
|
51
|
+
}) => FieldMap;
|
|
50
52
|
anchorFields: () => FieldMap;
|
|
51
53
|
stickFields: (opts?: {
|
|
52
54
|
intro?: boolean;
|
|
@@ -25,6 +25,11 @@ export declare const ALL_SECTION_TYPES: string[];
|
|
|
25
25
|
export declare const RETIRED_SECTION_LABELS: Readonly<Record<string, string>>;
|
|
26
26
|
export declare const SECTION_LABELS: Record<string, string>;
|
|
27
27
|
export declare const UNLISTED_BLOCK_SETS: Readonly<Record<string, BlockSet>>;
|
|
28
|
+
export interface PressNeedsSet {
|
|
29
|
+
readonly set: BlockSet;
|
|
30
|
+
readonly reason: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const PRESS_NEEDS_SET: Readonly<Record<string, PressNeedsSet>>;
|
|
28
33
|
export declare function blockSetOf(type: string): BlockSet | undefined;
|
|
29
34
|
export declare function blocksInSet(set: BlockSet): string[];
|
|
30
35
|
export declare const GENERAL_BLOCKS: readonly string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const m=["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:"GalleryB",label:"Gallery",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"}
|
|
1
|
+
const m=["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:"GalleryB",label:"Gallery",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"}]},{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:"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:"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"}]},{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"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function y(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const l="2027-02-05",s={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
2
2
|
|
|
3
3
|
WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
|
|
4
4
|
|
|
@@ -62,4 +62,12 @@ WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a pres
|
|
|
62
62
|
|
|
63
63
|
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
64
|
|
|
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.`},
|
|
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.`},EuTyreLabel:{label:"EU Tyre Label",note:`Owner, 2026-10-10 (approved): the EU Tyre Label becomes a Spec Table display chip. One place for a tyre's sheet, not two sections.
|
|
66
|
+
|
|
67
|
+
WHAT REPLACES IT: the Spec Table's "EU tyre label" Display chip (efficient-storefront-blocks, default off), which draws this page's grades under the tyre sheet; and the EU Tyre Label block (\`EuTyreLabelBlock\`, efficient-storefront-blocks), the same grades as a block of their own. Both read the grades live through the one grades draw (\`EuTyreLabelGrades\`), as this section did. Default on for sites that sell to the EU or UK waits for a site market source (a later step).
|
|
68
|
+
|
|
69
|
+
WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("EU tyre label.") and its section number (\`num\`, its only field). The grades, their source line and the live read are not lost.
|
|
70
|
+
|
|
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
|
+
|
|
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.'}},d=Object.fromEntries(Object.entries(s).map(([e,t])=>[e,t.note])),b=["Grid","Spacer","TyreFitment"],g=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(d)])),c=Object.fromEntries(Object.entries(s).map(([e,t])=>[e,t.label])),T={...c,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},h={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",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"},a={...h,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))},w={DocTabs:{set:"service",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 E(e){return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0}function r(e){return Object.keys(a).filter(t=>a[t]===e).sort()}const S=r("general"),f=r("commerce"),O=r("service"),p="Flex",n="Box",v=`${n}es`;function u(e){return e==="section"?"Blank section":n}function A(e,t,i){return e===p?u(t):i}export{g as ALL_SECTION_TYPES,m as BLOCK_SETS,n as BOX_LABEL,v as BOX_LABEL_PLURAL,f as COMMERCE_BLOCKS,S as GENERAL_BLOCKS,l as KEY_FEATURES_DELETE_BY,p as LEVEL_NAMED_TYPE,w as PRESS_NEEDS_SET,b as RETIRED_NESTABLE_SECTIONS,d as RETIRED_SECTIONS,c as RETIRED_SECTION_LABELS,o as SECTION_CATALOG,T as SECTION_LABELS,O as SERVICE_BLOCKS,h as UNLISTED_BLOCK_SETS,E as blockSetOf,r as blocksInSet,y as buildBlockCategories,A as labelAtLevel,u as labelForFlex};
|
|
@@ -617,6 +617,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
617
617
|
readonly "Image label": "Image label";
|
|
618
618
|
readonly "Image left": "Image left";
|
|
619
619
|
readonly "Image meta": "Image meta";
|
|
620
|
+
readonly "Image overlay": "Image overlay";
|
|
620
621
|
readonly "Image right": "Image right";
|
|
621
622
|
readonly "Image side": "Image side";
|
|
622
623
|
readonly "Image stage": "Image stage";
|
|
@@ -843,6 +844,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
843
844
|
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.";
|
|
844
845
|
readonly One: "One";
|
|
845
846
|
readonly "One line": "One line";
|
|
847
|
+
readonly "One line, ends with ...": "One line, ends with ...";
|
|
846
848
|
readonly "One row": "One row";
|
|
847
849
|
readonly "One then four": "One then four";
|
|
848
850
|
readonly "One third": "One third";
|
|
@@ -1068,6 +1070,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1068
1070
|
readonly "Short description of this figure.": "Short description of this figure.";
|
|
1069
1071
|
readonly "Short detail line": "Short detail line";
|
|
1070
1072
|
readonly "Short supporting line": "Short supporting line";
|
|
1073
|
+
readonly Shorten: "Shorten";
|
|
1071
1074
|
readonly Show: "Show";
|
|
1072
1075
|
readonly "Show arrows": "Show arrows";
|
|
1073
1076
|
readonly "Show cover image": "Show cover image";
|