efficient-web-builder 73.1.0 → 73.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 +28 -0
- package/dist/editor/components/SlotChildRows.js +1 -1
- package/dist/editor/components/StandaloneSectionEditor.js +1 -1
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/TickerSettingsPanel.js +1 -1
- package/dist/editor/components/useHostDocumentBridge.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
- package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +5 -0
- package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/footer-blocks.js +1 -1
- package/dist/editor/lib/document/own-pad-fields.d.ts +5 -0
- package/dist/editor/lib/document/own-pad-fields.js +1 -0
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/editor-document-adapter.js +1 -1
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/accordion-row-style.d.ts +3 -1
- package/dist/format/lib/content/accordion-row-style.js +1 -1
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/button-icon.d.ts +3 -1
- package/dist/format/lib/content/button-icon.js +1 -1
- package/dist/format/lib/content/card-place.d.ts +3 -1
- package/dist/format/lib/content/card-place.js +1 -1
- package/dist/format/lib/content/chat-launcher.js +1 -1
- package/dist/format/lib/content/container-direction.js +1 -1
- package/dist/format/lib/content/footprint.d.ts +22 -0
- package/dist/format/lib/content/footprint.js +1 -1
- package/dist/format/lib/content/image-fit.js +1 -1
- package/dist/format/lib/content/image-text-rows.d.ts +5 -2
- package/dist/format/lib/content/image-text-rows.js +1 -1
- package/dist/format/lib/content/list-number.js +1 -1
- package/dist/format/lib/content/list-position.js +1 -1
- package/dist/format/lib/content/text-tag.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
- package/dist/format/lib/document/box-footer.js +1 -1
- package/dist/format/lib/document/left-view.js +1 -1
- package/dist/format/lib/document/mockup-variant-fields.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +1 -0
- package/dist/format/lib/document/section-groups.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +11 -0
- package/dist/format/lib/editor-words-catalogue.js +4 -4
- package/dist/format/lib/hero-arrows.js +1 -1
- package/dist/format/lib/hero-group-placement.js +1 -1
- package/dist/format/lib/hero-media-layout.js +1 -1
- package/dist/format/lib/hero-phone-stack.d.ts +12 -0
- package/dist/format/lib/hero-phone-stack.js +1 -1
- package/dist/format/lib/hero-video.js +1 -1
- package/dist/format/lib/reel.js +1 -1
- package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
- package/dist/format/lib/sections/section-head-placement.d.ts +3 -1
- package/dist/format/lib/sections/section-head-placement.js +1 -1
- package/dist/format/lib/source-rules/one-option-parser.d.ts +12 -0
- package/dist/format/lib/source-rules/one-option-parser.js +12 -0
- package/dist/format/lib/theme.d.ts +2 -1
- package/dist/format/lib/theme.js +4 -4
- package/dist/render/components/BoxTabPaneContext.d.ts +2 -3
- package/dist/render/components/ButtonBlock.d.ts +2 -0
- package/dist/render/components/ButtonBlock.js +1 -1
- package/dist/render/components/DealerFinder.d.ts +7 -1
- package/dist/render/components/DealerFinder.js +1 -1
- package/dist/render/components/Footprint.d.ts +6 -2
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Heading.d.ts +1 -1
- package/dist/render/components/Heading.js +1 -1
- package/dist/render/components/HeroSection.d.ts +4 -1
- package/dist/render/components/HeroSection.js +1 -1
- package/dist/render/components/HeroSingle.d.ts +4 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.d.ts +3 -0
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/SideListLayout.d.ts +8 -2
- package/dist/render/components/SideListLayout.js +1 -1
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Text.d.ts +1 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +36 -2
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CustomHTML/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
- package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LocationMap/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- 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-logos.js +1 -1
- package/dist/render/lib/document/custom-css.d.ts +4 -2
- package/dist/render/lib/document/custom-css.js +2 -2
- package/dist/render/lib/document/header-clearance.js +1 -1
- package/dist/render/lib/document/header-ink.js +1 -1
- package/dist/render/lib/document/passes/section-padding.d.ts +4 -0
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/sanitize.d.ts +4 -1
- package/dist/render/lib/document/sanitize.js +1 -1
- package/dist/routine-index.json +1 -0
- package/dist/value-index.json +1 -0
- package/package.json +5 -4
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare const BUTTON_ICONS: readonly ["none", "arrow-right", "arrow-long-right", "arrow-up-right", "chevron-right", "external", "cart", "bag", "tag", "email", "location", "play", "download", "search", "car", "phone", "wheel", "chat", "chevron-left", "package", "truck", "shield-check", "receipt-refund"];
|
|
2
2
|
export type ButtonIconChoice = (typeof BUTTON_ICONS)[number];
|
|
3
3
|
export type ButtonIconGlyph = Exclude<ButtonIconChoice, "none">;
|
|
4
|
-
|
|
4
|
+
declare const BUTTON_ICON_SIDES: readonly ["before", "after", "end"];
|
|
5
|
+
export type ButtonIconSide = (typeof BUTTON_ICON_SIDES)[number];
|
|
5
6
|
export type ButtonWidth = "fit" | "fill";
|
|
6
7
|
export declare function storedButtonIcon(value: unknown): ButtonIconChoice | undefined;
|
|
7
8
|
export declare function buttonIconChoice(icon: unknown, arrow: unknown): ButtonIconChoice;
|
|
@@ -11,3 +12,4 @@ export declare function buttonWidth(value: unknown): ButtonWidth;
|
|
|
11
12
|
export declare function buttonWidthClass(desktop: unknown, phone: unknown, tablet?: unknown, { atSectionLine }?: {
|
|
12
13
|
readonly atSectionLine?: boolean;
|
|
13
14
|
}): string;
|
|
15
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buttonArrowShown as
|
|
1
|
+
import{buttonArrowShown as u}from"./button-arrow.js";import{nonEmptyString as r}from"../non-empty-string.js";import{parseOption as c}from"../parse-option.js";const d=["none","arrow-right","arrow-long-right","arrow-up-right","chevron-right","external","cart","bag","tag","email","location","play","download","search","car","phone","wheel","chat","chevron-left","package","truck","shield-check","receipt-refund"],p=["before","after","end"];function s(t){return typeof t=="string"&&d.includes(t)?t:void 0}function b(t,e){return s(t)??(u(e)?"arrow-right":"none")}function x(t){return c(p,"after",t)}function k(t,e){return x(t)==="end"&&i(e)==="fill"}function i(t){return t==="fill"||t==="fixed"?"fill":"fit"}function g(t,e,l,{atSectionLine:a=!1}={}){const n=i(t);if(r(l)){const o=i(l),f=r(e)?i(e):o;return a?[n==="fill"?"view-desktop:w-full":"view-desktop:w-auto",o==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",f==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[n==="fill"?"view-desktop:w-full":"view-desktop:w-auto",o==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",f==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}const w=n==="fill"?["w-full"]:[];if(r(e)){const o=i(e);o!==n&&w.push(o==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return w.join(" ")}export{d as BUTTON_ICONS,k as buttonIconAtEnd,b as buttonIconChoice,x as buttonIconSide,i as buttonWidth,g as buttonWidthClass,s as storedButtonIcon};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const CARD_PLACE_PROP = "cardPlace";
|
|
2
|
-
|
|
2
|
+
declare const CARD_PLACES: readonly ["", "top-line"];
|
|
3
|
+
export type CardPlace = (typeof CARD_PLACES)[number];
|
|
3
4
|
export declare function cardPlaceOf(props: Record<string, unknown>): CardPlace;
|
|
4
5
|
export declare const TOP_LINE_CLASS = "absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2";
|
|
5
6
|
export declare const TOP_LINE_ATTRIBUTE = "data-sf-top-line";
|
|
@@ -10,3 +11,4 @@ export declare function cardLineBetween(value: unknown, at: {
|
|
|
10
11
|
index?: number;
|
|
11
12
|
} | null, isCardBox: boolean): unknown;
|
|
12
13
|
export declare const OUTSIDE_FRAMED_CARD = "outsideFramedCard";
|
|
14
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CARD_LIST_TYPE as p}from"./card-template.js";const
|
|
1
|
+
import{CARD_LIST_TYPE as p}from"./card-template.js";import{parseOption as c}from"../parse-option.js";const i="cardPlace",f=["","top-line"];function C(t){return c(f,"",t[i])}const x="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",E="data-sf-top-line",d=new Set(["Cards",p]);function R(t){return typeof t=="string"&&d.has(t)}const a=t=>{if(!t||typeof t!="object")return!1;const o=t,r=e=>typeof e=="number"&&e>0,s=o.width,n=e=>typeof o[e]=="number"?r(o[e]):r(s);return n("top")&&!n("right")&&!n("bottom")&&!n("left")};function m(t,o,r){return!r||!o?.linesBetween||o.index!==0?t:a(t)?{...t,top:0}:t}const P="outsideFramedCard";export{i as CARD_PLACE_PROP,d as FRAMED_CARD_OWNERS,P as OUTSIDE_FRAMED_CARD,E as TOP_LINE_ATTRIBUTE,x as TOP_LINE_CLASS,m as cardLineBetween,C as cardPlaceOf,R as framesItsCards};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parseHexColor as
|
|
1
|
+
import{parseHexColor as r}from"efficient-shell/format";import{parseOption as e}from"../parse-option.js";const o=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],n=o[0],c=["right","left"],p="right";function s(t){return o.includes(t??"")?t:n}function C(t){return e(c,p,t)}function a(t){return t&&r(t)===t.toLowerCase()?t.toLowerCase():""}export{o as CHAT_LAUNCHER_ICONS,c as CHAT_LAUNCHER_POSITIONS,n as DEFAULT_CHAT_LAUNCHER_ICON,p as DEFAULT_CHAT_LAUNCHER_POSITION,a as chatLauncherColor,s as chatLauncherIcon,C as chatLauncherPosition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const c=["column","row","tabs","accordion"],
|
|
1
|
+
import{parseOption as t}from"../parse-option.js";const c=["column","row","tabs","accordion"],E="Direction",e={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},n={Flex:c,HeroGroup:["column","row"]},i={Flex:"row",HeroGroup:"column"},I={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function N(o,r){return t(n[o],i[o],r)}function p(o,r){return I[N(o,r)]}function s(o){return n[o].map(r=>({label:e[r],value:r}))}export{c as CONTAINER_DIRECTIONS,i as CONTAINER_DIRECTION_BUILT_IN,I as CONTAINER_DIRECTION_CLASS,E as CONTAINER_DIRECTION_LABEL,e as CONTAINER_DIRECTION_LABELS,n as CONTAINER_DIRECTION_OFFERED,p as containerDirectionClass,s as containerDirectionPoints,N as resolveContainerDirection};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { MapPin } from "efficient-shell/map";
|
|
2
2
|
import { type MapThemeMode } from "../map-styles.js";
|
|
3
3
|
import type { GeocodeState } from "./contact.js";
|
|
4
|
+
import { type ListPosition } from "./list-position.js";
|
|
4
5
|
export interface FootprintOffice {
|
|
5
6
|
role: string;
|
|
6
7
|
city: string;
|
|
@@ -26,3 +27,24 @@ export interface FootprintContent {
|
|
|
26
27
|
}
|
|
27
28
|
export declare const FOOTPRINT_DEFAULTS: FootprintContent;
|
|
28
29
|
export declare function footprintPins(offices: FootprintOffice[]): MapPin[];
|
|
30
|
+
export declare const FOOTPRINT_SHOWS: readonly ["both", "map", "list"];
|
|
31
|
+
export type FootprintShows = (typeof FOOTPRINT_SHOWS)[number];
|
|
32
|
+
export declare const FOOTPRINT_SHOWS_KEY = "shows";
|
|
33
|
+
export declare const FOOTPRINT_SHOWS_DEFAULT: FootprintShows;
|
|
34
|
+
export declare function footprintShows(props: Readonly<Record<string, unknown>>): FootprintShows;
|
|
35
|
+
export declare function footprintListPosition(props: Readonly<Record<string, unknown>>): ListPosition;
|
|
36
|
+
export declare const FOOTPRINT_MAP_HEIGHTS: readonly ["fixed", "full"];
|
|
37
|
+
export type FootprintMapHeight = (typeof FOOTPRINT_MAP_HEIGHTS)[number];
|
|
38
|
+
export declare const FOOTPRINT_MAP_HEIGHT_KEY = "mapHeight";
|
|
39
|
+
export declare const FOOTPRINT_MAP_HEIGHT_DEFAULT: FootprintMapHeight;
|
|
40
|
+
export declare const FOOTPRINT_MAP_HEIGHT_FULL: FootprintMapHeight;
|
|
41
|
+
export declare function footprintMapHeight(props: Readonly<Record<string, unknown>>): FootprintMapHeight;
|
|
42
|
+
export declare function footprintHeadInList(props: Readonly<Record<string, unknown>>): boolean;
|
|
43
|
+
export declare const FOOTPRINT_LIST_COLUMNS: readonly [1, 2, 3, 4];
|
|
44
|
+
export type FootprintListColumnCount = (typeof FOOTPRINT_LIST_COLUMNS)[number];
|
|
45
|
+
export declare const FOOTPRINT_LIST_COLUMNS_DEFAULT = "auto";
|
|
46
|
+
export type FootprintListColumns = typeof FOOTPRINT_LIST_COLUMNS_DEFAULT | FootprintListColumnCount;
|
|
47
|
+
export declare const FOOTPRINT_LIST_COLUMNS_TABLET_MAX = 2;
|
|
48
|
+
export declare const FOOTPRINT_LIST_COLUMNS_PHONE = 1;
|
|
49
|
+
export declare function footprintListColumns(props: Readonly<Record<string, unknown>>): FootprintListColumns;
|
|
50
|
+
export declare function footprintListColsClass(columns: FootprintListColumns, count: number): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasMapCoords as
|
|
1
|
+
import{hasMapCoords as T,mapCoordOfText as s}from"../map-styles.js";import{groupColsClass as O,groupColumns as u}from"../locations-grid.js";import{parseOption as e}from"../parse-option.js";import{parseListPosition as _}from"./list-position.js";import{HEAD_IN_LIST_COLUMN as c,parseSectionHeadPlacement as L}from"../sections/section-head-placement.js";const S=/^https?:\/\//i;function M(t){const o=(t.href??"").trim(),n=(t.linkLabel??"").trim();return{role:t.role??"",city:t.city??"",country:t.country??"",address:t.address??"",hq:t.hq==="true",lat:s(t.lat),lng:s(t.lng),...o&&n&&S.test(o)?{href:o,linkLabel:n}:{}}}function U(t){const o=n=>typeof n=="string"?n:"";return{badge:t.hq?"HQ":"",role:o(t.role),city:o(t.city),country:o(t.country),address:o(t.address),phone:o(t.phone),...t.href&&t.linkLabel?{href:t.href,linkLabel:t.linkLabel}:{}}}function f(t){return[t.city,t.country,t.address,t.role].map(o=>typeof o=="string"?o.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}const k={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function D(t){const o=[];return t.forEach((n,a)=>{T(n.lat,n.lng)&&o.push({key:String(a),label:n.city||n.role||"Office",lat:n.lat,lng:n.lng,glyph:"",tone:"",...n.hq?{badge:"HQ"}:{}})}),o}const x=["both","map","list"],B="shows",i="both";function h(t){return e(x,i,t.shows)}function m(t){return h(t)===i?_(t.listPosition):"below"}const d=["fixed","full"],I="mapHeight",p="fixed",q="full",l=t=>m(t)!=="below";function G(t){return l(t)?e(d,p,t[I]):p}function W(t){return l(t)&&L(t.headPlacement)===c}const P=[1,2,3,4],r="auto",N=2,g=1,C=[r,...P.map(String)];function j(t){const o=e(C,r,t.listColumns);return o===r?o:Number(o)}const H="max-view-desktop:grid-cols-2",E="max-[700px]:grid-cols-1";function K(t,o){const n=t===r?u(o):t;return[O(n),[n>N?H:"",n>g?E:""].filter(Boolean).join(" ")].join(" ")}export{k as FOOTPRINT_DEFAULTS,P as FOOTPRINT_LIST_COLUMNS,r as FOOTPRINT_LIST_COLUMNS_DEFAULT,g as FOOTPRINT_LIST_COLUMNS_PHONE,N as FOOTPRINT_LIST_COLUMNS_TABLET_MAX,d as FOOTPRINT_MAP_HEIGHTS,p as FOOTPRINT_MAP_HEIGHT_DEFAULT,q as FOOTPRINT_MAP_HEIGHT_FULL,I as FOOTPRINT_MAP_HEIGHT_KEY,x as FOOTPRINT_SHOWS,i as FOOTPRINT_SHOWS_DEFAULT,B as FOOTPRINT_SHOWS_KEY,U as footprintCardRow,W as footprintHeadInList,K as footprintListColsClass,j as footprintListColumns,m as footprintListPosition,G as footprintMapHeight,M as footprintOfficeOfRow,D as footprintPins,f as footprintSearchText,h as footprintShows};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const n=["cover","contain"],
|
|
1
|
+
import{parseOption as e}from"../parse-option.js";const n=["cover","contain"],r={cover:"Cover",contain:"Contain"},c="Image fit";function a(t,o){return e(n,o,t)}function p(){return n.map(t=>({label:r[t],value:t}))}function s(t){return t==="contain"?"object-contain":"object-cover"}function I(t,o){return t!=="auto"&&o==="cover"}export{n as IMAGE_FITS,r as IMAGE_FIT_LABEL,c as IMAGE_FIT_ROW_LABEL,s as imageFitClass,p as imageFitOptions,I as imageIsCropped,a as parseImageFit};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { RowHand } from "./mirror-cards.js";
|
|
2
|
-
|
|
3
|
-
export type
|
|
2
|
+
declare const IMAGE_TEXT_ARRANGEMENTS: readonly ["columns", "rows-left", "rows-right"];
|
|
3
|
+
export type ImageTextArrangement = (typeof IMAGE_TEXT_ARRANGEMENTS)[number];
|
|
4
|
+
declare const IMAGE_TEXT_IMAGE_WIDTHS: readonly ["half", "third"];
|
|
5
|
+
export type ImageTextImageWidth = (typeof IMAGE_TEXT_IMAGE_WIDTHS)[number];
|
|
4
6
|
export type ImageTextPhoneOrder = "picture" | "words";
|
|
5
7
|
export declare const ARRANGEMENT_OPTIONS: readonly {
|
|
6
8
|
value: ImageTextArrangement;
|
|
@@ -21,3 +23,4 @@ export declare function imageTextRowsHand(props: {
|
|
|
21
23
|
imageWidth?: unknown;
|
|
22
24
|
phoneOrder?: unknown;
|
|
23
25
|
} | null | undefined): RowHand | null;
|
|
26
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{parseOption as r}from"../parse-option.js";const o=["columns","rows-left","rows-right"],n=["half","third"],u=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],c=[{value:"half",label:"Half"},{value:"third",label:"One third"}],f=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function a(e){return r(o,"columns",e)}const i={"rows-left":"even","rows-right":"odd"},s={half:"equal",third:"bigRight"};function m(e){const t=a(e?.arrangement);if(t==="columns")return null;const l=r(n,"half",e?.imageWidth);return{mirror:i[t],row:{share:s[l],phoneReverse:e?.phoneOrder==="words"}}}export{u as ARRANGEMENT_OPTIONS,c as IMAGE_WIDTH_OPTIONS,f as PHONE_ORDER_OPTIONS,a as arrangementOf,m as imageTextRowsHand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=t=>String(t+1).padStart(2,"0"),
|
|
1
|
+
import{parseOption as r}from"../parse-option.js";const e=t=>String(t+1).padStart(2,"0"),i=[{label:"01 ·",value:"two-digit"},{label:"1.",value:"plain"}],p="two-digit",l=t=>r(i,p,t),n=(t,o)=>t==="plain"?`${o+1}.`:e(o);export{i as LIST_NUMBER_FORMS,p as LIST_NUMBER_FORM_DEFAULT,e as listNumber,n as listNumberIn,l as readListNumberForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["below","left","right"];function
|
|
1
|
+
import{parseOption as o}from"../parse-option.js";const e=["below","left","right"];function r(t){return o(e,"below",t)}function n(t){return r(t)!=="below"}export{n as listBesideMap,r as parseListPosition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{parseOption as n}from"../parse-option.js";const r=["p","h1","h2","h3","h4","h5","h6"];function o(t){return n(r,"p",t)}function h(t){const e=o(t);return e==="p"?null:Number(e.slice(1))}export{r as TEXT_TAGS,h as headingLevelOfTag,o as textTagOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../container-blocks.js";import{DIM as h,INNER_BOX as s,TEXT as c,boxPadding as p,labelLook as N,seedNodes as E,token as u,seedNodeId as L}from"../../../seed-parts.js";import{
|
|
1
|
+
import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../container-blocks.js";import{DIM as h,INNER_BOX as s,TEXT as c,boxPadding as p,labelLook as N,seedNodes as E,token as u,seedNodeId as L}from"../../../seed-parts.js";import{footprintListPosition as D}from"../../../../content/footprint.js";import{shapeKeyOf as d}from"../../../seed-shape.js";import{rowFieldTextSeed as r}from"../Cards/card-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as B,CARD_ROW_FIELD_PROP as C,CARD_ROW_LINK_PROP as R,CARD_TEMPLATE_SLOT as o}from"../../../../content/card-row-keys.js";import{DEALERS_SOURCE as K,declaredBlockSource as k}from"../../../../content/block-sources.js";const b="Footprint",F=e=>k(e)===K,g=N(11),H={textStyle:"body-1",...u("body",18),weight:500,lineHeight:1.2},V=()=>({type:a,props:{...s,gap:8,gapPhone:8,...p(20,24,20,20),name:"Office"},slots:{[l]:[r("badge",{...c,tag:"p",widthFit:"fill"},g,!0),r("role",{...c,tag:"p",widthFit:"fill"},g,!0),r("city",{...c,tag:"p",widthFit:"fill"},H),r("country",{...h,tag:"p",widthFit:"fill"},g),r("address",{...h,tag:"p",widthFit:"fill"},g),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[C]:"linkLabel",[R]:"href"}}]}}),P={textStyle:"body-1",fontRole:"heading",...u("body",16),weight:500,lineHeight:1.25},O={textStyle:"body-1",...u("body",14),lineHeight:1.5},$=()=>({type:a,props:{...s,gap:4,gapPhone:4,...p(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[l]:[r("city",{...c,tag:"p",widthFit:"fill"},P),r("address",{...h,tag:"p",widthFit:"fill"},O),r("phone",{...h,tag:"p",widthFit:"fill"},O)]}});function S(e){const t=L(e,b);let n=0;return E([$()],i=>i===a?`${t}~office`:`${t}~office.${n++}`)}function T(e){return Array.isArray(e[o])&&e[o].length>0&&d(e[o])===d(S(e))}const x=e=>e===void 0||Array.isArray(e)&&e.length===0;function A(e){return D(e)==="below"?T(e)?{...e,[o]:[]}:e:!x(e[o])||F(e)?e:{...e,[o]:S(e)}}const Y=P,M=O,W={textFit:"line"},y=(e,t,n="",i={},w={})=>{const f=r(e,{...t?h:c,tag:"p",...i},{...M,...w});return n?{...f,props:{...f.props,[R]:n}}:f},m=(e,t,n,i)=>({type:a,props:{...s,gap:0,gapPhone:0,[B]:[e],name:i},slots:{[l]:[y(e,t,n,W,{align:"right"})]}}),X=e=>({type:a,props:{...s,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?p(20,24):{...p(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[l]:[{type:a,props:{...s,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[l]:[{type:a,props:{...s,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[l]:[r("name",{...c,tag:"p",widthFit:"fill"},Y),y("address",!0)]}},y("place",!0,"",{widthFit:"fill"})]}},{type:a,props:{...s,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[l]:[m("distance",!0,"","Dealer distance"),m("phone",!1,"phoneHref","Dealer phone"),m("website",!1,"websiteHref","Dealer website")]}}]}}),U=e=>{const t=X(e),n={type:a,props:{...s,...p(0,12),name:"Dealer"},slots:{[l]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:n};function _(e,t){const n=L(e,b);let i=0;return E([U(t)],(w,f)=>f==="0"?`${n}~dealer`:`${n}~dealer.${i++}`)}function I(e){if(!Array.isArray(e[o])||e[o].length===0)return!1;const t=d(e[o]);return t===d(_(e,!0))||t===d(_(e,!1))}function Z(e){if(F(e)){const i=_(e,D(e)==="below");return!(x(e[o])||T(e)||I(e))||d(e[o]??[])===d(i)?e:{...e,[o]:i}}if(!I(e))return A(e);const t={...e,[o]:[]};return A(t)}export{b as FOOTPRINT_TYPE,V as footprintCardSeed,U as footprintDealerCardSeed,$ as footprintSideCardSeed,T as isUntouchedFootprintSideRow,Z as withFootprintListTemplate,A as withFootprintSideTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FOOTER_LOGO_PX as
|
|
1
|
+
import{FOOTER_LOGO_PX as y}from"../logo/logo-size.js";import{resolveContainerGap as P}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{nodeListKeys as L}from"./node-lists.js";import{hiddenKeyOf as x}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as w}from"../content/card-template.js";import{buildSectionGroup as A,SITE_FOOTER_TYPE as S}from"./section-groups.js";import{hasOwnEntry as I,ownEntry as h}from"../own-entry.js";import{parseOption as E}from"../parse-option.js";const d="Flex",B={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},b={FooterPayment:"PaymentLogosBlock"},G=e=>{const{id:o,...s}=e;return s},T=e=>typeof e=="string"?e:"",f={sm:12,md:13,lg:15},Z={sm:{mark:16,words:f.sm},md:{mark:20,words:f.md}},N="md",O=1.5,R={size:13,lineHeight:O,width:280},D=14,k=40,M=e=>E(["left","center","right"],"left",e);function X(e){const o={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=a(e[t]);c&&(o[i]=c)}return o}function z(e,o,s){const t=s(e,G(o));if(Array.isArray(o.template))return{...t,props:{...t.props,template:F(o.template,String(t.props.id))}};if(o.template!==void 0)return t;const i=w(e,t.props);return i===t.props?t:{...t,props:i}}function F(e,o,s={at:0}){return e.map(t=>{const i={...t.props,id:`${o}~t${s.at++}`};for(const c of L(t))i[c]=F(i[c],o,s);return{...t,props:i}})}function _(e,o,s){const t=e.props??{},i=s?.(e,o);if(i)return i;const c=h(B,e.type)??h(b,e.type);if(c)return[z(c,t,o)];switch(e.type){case"FooterLogo":{const r=M(t.align),n=o("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(y*((a(t.widthPct)??100)/100)),href:"/",align:r,...X(t)}),p=T(t.tagline).trim();return p?[n,o("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...R}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&I(f,t.size)?t.size:N;return[o("Text",{text:T(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:f[r],lineHeight:O}}})]}case"FooterDivider":{const r=a(t.thickness),n=a(t.lengthPct);return[o("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[x("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[o(d,{direction:t.direction==="horizontal"?"row":"column",gap:P("FooterGroup",t.gap),align:E(["start","center","end","stretch"],"start",t.align),...m,content:r.flatMap(n=>_(n,o,s))})]}default:return[]}}function j(e,o,s,t){const i=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],c=l=>o(d,{direction:"row",wrap:!0,share:"equal",gap:k,content:l}),r=[];let n=[];for(const l of i){const u=_(l,o,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...u);continue}u.length<=1?n.push(...u):n.push(o(d,{direction:"column",gap:D,align:"stretch",...m,content:u}))}(n.length||!r.length)&&r.push(c(n));const p=o(d,{direction:"column",content:[o("LegalLineBlock")]}),g=A(S,s,[...r,p]);return{...g,props:{...g.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}export{Z as FOOTER_MARK_SIZES,f as FOOTER_TEXT_PX,j as boxFooterFromFooter,_ as pageBlocksFromFooterBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const n="sf-editor-left-view";function
|
|
1
|
+
import{parseOption as o}from"../parse-option.js";const r=["pages","sections","styles"],n="sf-editor-left-view";function s(){if(typeof window>"u")return"pages";try{const e=window.localStorage.getItem(n);return o(r,"pages",e)}catch{return"pages"}}function f(e){if(!(typeof window>"u"))try{window.localStorage.setItem(n,e)}catch{}}function c(e,t){return e==="styles"&&!t?"sections":e}function p(e,t){return e?"sections":t}export{p as leftViewForSelection,s as readLeftView,c as resolveLeftView,f as writeLeftView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shownForOption as l,withRowRules as o}from"./show-when-attach.js";const
|
|
1
|
+
import{shownForOption as l,withRowRules as o}from"./show-when-attach.js";import{parseOption as s}from"../parse-option.js";const i=[{label:"Product record",hint:"Product record (spec tiles)",value:"spec-card"},{label:"Selector guide",hint:"Selector guide (pills + results)",value:"fitment"},{label:"Portal card",hint:"Portal card (stock + button + orders)",value:"portal"},{label:"Kanban board",hint:"Kanban board (job columns)",value:"kanban"},{label:"Claims panel",hint:"Claims panel (rows + defect bars)",value:"claims"},{label:"Browser shop",hint:"Browser storefront (hero + tiles)",value:"browser"},{label:"Terminal",hint:"Terminal (CLI session)",value:"terminal"}],r=i.map(a=>a.value),e="spec-card",c={badge:["spec-card","fitment","portal","kanban","claims","browser"],cardTitle:["spec-card","fitment","portal","kanban","claims"],cardSubtitle:["spec-card","fitment","portal","kanban","claims"],rows:["spec-card","fitment","portal","kanban","claims"],button:["spec-card","fitment","portal","kanban","claims"],footnote:["spec-card","fitment","portal","kanban","claims"],pills:["fitment"],tiles:["spec-card","portal","kanban","claims"],_gKanban:["kanban"],col1Title:["kanban"],col1Cards:["kanban"],col2Title:["kanban"],col2Cards:["kanban"],col3Title:["kanban"],col3Cards:["kanban"],col4Title:["kanban"],col4Cards:["kanban"],_gClaims:["claims"],barsHeading:["claims"],bars:["claims"],_gTerminal:["terminal"],termLines:["terminal"],_gBrowser:["browser"],urlText:["browser"],heroTitle:["browser"],heroButton:["browser"],products:["browser"]};function m(a){return s(r,e,a)}function d(a){return o(a,Object.entries(c).map(([t,n])=>[[t],l("variant",r,e,n)]))}export{e as MOCKUP_DEFAULT_VARIANT,r as MOCKUP_VARIANTS,c as MOCKUP_VARIANT_FIELDS,i as MOCKUP_VARIANT_OPTIONS,m as mockupVariantOf,d as withMockupVariantRules};
|
|
@@ -45,6 +45,7 @@ export type PassInspector = {
|
|
|
45
45
|
unitKey?: string;
|
|
46
46
|
fallback?: Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
47
47
|
}) => FieldMap;
|
|
48
|
+
ownPaddingFields?: (frameOf: (props: Record<string, unknown>) => number, note: (props: Record<string, unknown>, frame: number) => string | null, label?: string) => FieldMap;
|
|
48
49
|
sectionShapeFields: () => FieldMap;
|
|
49
50
|
cardShapeFields: () => FieldMap;
|
|
50
51
|
cellWidthFields: () => FieldMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const s="SiteHeader",i="SiteFooter",c="sections",
|
|
1
|
+
import{zoneKey as y}from"efficient-easel/data";const s="SiteHeader",i="SiteFooter",c="sections",E=[s,i],f=e=>e===s||e===i,T=e=>y({parentId:e,slot:c});function _(e,t,r=[]){return{type:e,props:{id:t,[c]:r}}}const d=new Set(["Footer",s,i]);function O(e){const t=new Set;let r=!1;const n=e.filter(u=>{const o=u?.type??"";return o==="Header"?(r=!0,!1):d.has(o)?t.has(o)?(r=!0,!1):(t.add(o),!0):!0});return r?n:e}function m(e,t){return e.some(r=>r?.type===t.type)?e:t.type===s?[t,...e]:[...e,t]}const a={[s]:{max:3,takes:["Flex","Ticker"]},[i]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function h(e,t,r){if(!f(e))return!0;const n=a[e];return r<n.max&&n.takes.includes(t)}function A(e,t){const r=t,n=r?.props?.id;if(n==null)return null;const u=e?.content;if(!Array.isArray(u))return null;for(const o of u){if(!f(o?.type))continue;const p=o.props?.[c];if(!Array.isArray(p)||!p.some(x=>x?.props?.id===n))continue;const l=a[o.type];return l.takes.includes(r?.type??"")?p.length>=l.max?{group:o.type,why:"full"}:null:{group:o.type,why:"type"}}return null}export{a as GROUP_SECTION_RULES,c as SECTION_GROUP_SLOT,E as SECTION_GROUP_TYPES,i as SITE_FOOTER_TYPE,s as SITE_HEADER_TYPE,_ as buildSectionGroup,h as groupAccepts,A as groupDuplicateRefusal,f as isSectionGroupType,T as sectionGroupZone,O as siteFooterDocChrome,m as withSectionGroup};
|
|
@@ -546,6 +546,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
546
546
|
readonly "From the bottom": "From the bottom";
|
|
547
547
|
readonly "From your template": "From your template";
|
|
548
548
|
readonly Full: "Full";
|
|
549
|
+
readonly "Full height": "Full height";
|
|
549
550
|
readonly "Full row": "Full row";
|
|
550
551
|
readonly "Full width": "Full width";
|
|
551
552
|
readonly "Full-bleed intro image the next section scrolls over.": "Full-bleed intro image the next section scrolls over.";
|
|
@@ -645,6 +646,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
645
646
|
readonly "In its own box": "In its own box";
|
|
646
647
|
readonly "In progress (main)": "In progress (main)";
|
|
647
648
|
readonly "In the card": "In the card";
|
|
649
|
+
readonly "In the list column": "In the list column";
|
|
648
650
|
readonly "In the product": "In the product";
|
|
649
651
|
readonly "In this issue": "In this issue";
|
|
650
652
|
readonly "In this section": "In this section";
|
|
@@ -724,6 +726,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
724
726
|
readonly Links: "Links";
|
|
725
727
|
readonly "Links to": "Links to";
|
|
726
728
|
readonly List: "List";
|
|
729
|
+
readonly "List only": "List only";
|
|
727
730
|
readonly "List search": "List search";
|
|
728
731
|
readonly Live: "Live";
|
|
729
732
|
readonly "Live chat": "Live chat";
|
|
@@ -765,6 +768,9 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
765
768
|
readonly Manual: "Manual";
|
|
766
769
|
readonly Map: "Map";
|
|
767
770
|
readonly "Map & Theme": "Map & Theme";
|
|
771
|
+
readonly "Map and list": "Map and list";
|
|
772
|
+
readonly "Map height": "Map height";
|
|
773
|
+
readonly "Map only": "Map only";
|
|
768
774
|
readonly "Map theme": "Map theme";
|
|
769
775
|
readonly Marks: "Marks";
|
|
770
776
|
readonly Marquee: "Marquee";
|
|
@@ -883,6 +889,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
883
889
|
readonly "Order content": "Order content";
|
|
884
890
|
readonly "Order summary": "Order summary";
|
|
885
891
|
readonly Others: "Others";
|
|
892
|
+
readonly "Outer padding": "Outer padding";
|
|
886
893
|
readonly Outline: "Outline";
|
|
887
894
|
readonly Outlined: "Outlined";
|
|
888
895
|
readonly Overlay: "Overlay";
|
|
@@ -1144,6 +1151,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1144
1151
|
readonly "Somebody else": "Somebody else";
|
|
1145
1152
|
readonly Source: "Source";
|
|
1146
1153
|
readonly "Space above and below": "Space above and below";
|
|
1154
|
+
readonly "Space between boxes": "Space between boxes";
|
|
1147
1155
|
readonly Spacer: "Spacer";
|
|
1148
1156
|
readonly "Spec Strip": "Spec Strip";
|
|
1149
1157
|
readonly "Spec Table": "Spec Table";
|
|
@@ -1428,6 +1436,8 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1428
1436
|
readonly Wording: "Wording";
|
|
1429
1437
|
readonly Words: "Words";
|
|
1430
1438
|
readonly "Words first": "Words first";
|
|
1439
|
+
readonly "Words space bottom": "Words space bottom";
|
|
1440
|
+
readonly "Words space top": "Words space top";
|
|
1431
1441
|
readonly Wrap: "Wrap";
|
|
1432
1442
|
readonly "Write the answer here.": "Write the answer here.";
|
|
1433
1443
|
readonly "Write the opening paragraph here.\n\n- Start a line with a dash for a bullet.\n- Add as many as you like.": "Write the opening paragraph here.\n\n- Start a line with a dash for a bullet.\n- Add as many as you like.";
|
|
@@ -1484,6 +1494,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1484
1494
|
readonly "not set": "not set";
|
|
1485
1495
|
readonly "not shown live": "not shown live";
|
|
1486
1496
|
readonly part: "part";
|
|
1497
|
+
readonly "plus {n} px (older setting)": "plus {n} px (older setting)";
|
|
1487
1498
|
readonly px: "px";
|
|
1488
1499
|
readonly tabs: "tabs";
|
|
1489
1500
|
readonly "the Text style in Styles": "the Text style in Styles";
|