efficient-web-builder 53.0.0 → 54.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/editor/components/DuplicateToPageMenu.d.ts +2 -0
- package/dist/editor/components/DuplicateToPageMenu.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/box-phone-order-field.d.ts +8 -0
- package/dist/editor/lib/document/box-phone-order-field.js +1 -0
- package/dist/format/lib/content/box-phone-place.d.ts +11 -0
- package/dist/format/lib/content/box-phone-place.js +1 -0
- package/dist/format/lib/document/blocks/block-types.d.ts +1 -1
- package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +1 -0
- package/dist/format/lib/editor-words-catalogue.js +1 -1
- package/dist/render/components/Flex.d.ts +2 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/InBoxContext.d.ts +1 -0
- package/dist/render/lib/content/block-size.d.ts +1 -0
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/passes/block-size.js +1 -1
- package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 54.0.0 - 2026-11-06
|
|
4
|
+
|
|
5
|
+
From main at `55be615c`: #536. A major because the `efficient-easel` peer rises from `^27.6.0` to `^27.7.0` (#536). No declared export is removed. `efficient-shell` stays at `^11.8.0`. No stored key or value moves (0 stored `orderPhone` on the US tenant).
|
|
6
|
+
|
|
7
|
+
**BREAKING for hosts (#536):** install `efficient-easel` 27.7.0 or newer with this release. The storefront's Tailwind `@source` keeps scanning web-builder `dist`, so the new whole-literal order classes are built.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **A Box Phone order, stored as child ids** (#536). A row Box can stack its blocks in another order on a phone: the `Phone order` row in the Box's Phone view (easel `PhoneOrderField`), stored as `orderPhone`. The page draws a cell per child (`lib/content/box-phone-place`) only when an order is stored and the Box is a plain row; with no order the markup is the same as before. Box declares `phoneOrder`, so easel's copies write the list again with new ids, and Duplicate to another page keeps the order. Only the look moves: the Tab key and a screen reader keep the desktop order.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`slots-start-afresh` reads `blockIds` live** (#536), so the editor no longer keeps a stale list for a block that declares an order.
|
|
16
|
+
|
|
3
17
|
## 53.0.0 - 2026-11-05
|
|
4
18
|
|
|
5
19
|
From main at `265af5ac`: #513, #517, #520, #523, #524, #525, #526, #528, #529, #531, #533, #535. A major because declared exports are removed or changed (#513, #520, #524, #525, #529) and the `efficient-easel` peer rises from `^27.3.0` to `^27.6.0` (#517). `efficient-shell` stays at `^11.8.0`. No stored key or value moves.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from "react";
|
|
2
|
+
import type { DataConfig } from "efficient-easel/data";
|
|
2
3
|
import { type TreeItem } from "efficient-easel/draw";
|
|
3
4
|
import type { EditorPageRow, WebsitePages } from "../../format/lib/web-backend.js";
|
|
4
5
|
interface Props {
|
|
@@ -9,6 +10,7 @@ interface Props {
|
|
|
9
10
|
runAuthed: (op: (token: string) => Promise<unknown>) => Promise<boolean>;
|
|
10
11
|
onNotify?: (msg: string, tone?: "success" | "error") => void;
|
|
11
12
|
}
|
|
13
|
+
export declare function copyForAnotherPage(node: TreeItem, components: DataConfig["components"], storedNode?: (node: TreeItem) => TreeItem): TreeItem;
|
|
12
14
|
export default function DuplicateToPageMenu({ node, currentSlug, siteId, tokenRef, runAuthed, onNotify }: Props): import("react").JSX.Element;
|
|
13
15
|
export declare function copyNodeToPage(pages: WebsitePages, page: Pick<EditorPageRow, "id" | "slug">, clone: TreeItem): Promise<void>;
|
|
14
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,jsxs as x,Fragment as
|
|
1
|
+
"use client";import{jsx as t,jsxs as x,Fragment as S}from"react/jsx-runtime";import{useCallback as j,useRef as A,useState as p}from"react";import{InspectorIconButton as B}from"efficient-easel/chrome";import{useEasel as O}from"efficient-easel/easel";import{PopupMenu as R,PopupMenuItem as _,PopupMenuLabel as f}from"efficient-shell/ui";import{CopyToPageIcon as L}from"efficient-easel/icons";import{backendOf as E}from"../lib/website-session.js";import{useEaselSession as z}from"efficient-easel/screen/lib/session-context";import{say as o}from"../../format/lib/editor-words.js";import{cloneNodeWithFreshIds as W}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as H}from"efficient-easel/draw";import{settlingPages as Y}from"../lib/editor-document-adapter.js";function $(i,r,l){const n=W(i,void 0,r);return l?.(n)??n}function q({node:i,currentSlug:r,siteId:l,tokenRef:n,runAuthed:c,onNotify:u}){const[s,a]=p(!1),[m,P]=p(null),d=z(),N=O(e=>e.config.components),[T,g]=p(!1),[h,b]=p(null),k=A(null),[y,v]=p(null),M=j(async()=>{if(d.usesBridgedToken&&!n.current){g(!0);return}try{P(await E(d).pages.list(l?{siteId:l}:void 0))}catch{g(!0)}},[n,l,d]),D=()=>{if(s){a(!1);return}const e=k.current?.getBoundingClientRect();e&&v({top:e.bottom+6,right:Math.max(8,window.innerWidth-e.right)}),P(null),g(!1),M(),a(!0)},w=(m??[]).filter(e=>e.slug!==r),F=async e=>{if(h)return;b(e.slug);const I=$(i,N,d.documentHooks?.storedNode),C=await c(()=>G(E(d).pages,e,I));b(null),a(!1),u?.(C?o("Duplicated to “{name}”",{name:e.label}):o("Couldn’t duplicate the section — please retry"),C?"success":"error")};return x(S,{children:[t("span",{"data-menu-toggle":!0,style:{display:"contents"},children:t(B,{buttonRef:k,label:o("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:D,children:t(L,{size:15})})}),s&&y&&t(R,{portal:!0,style:{top:y.top,right:y.right},onClose:()=>a(!1),children:x("div",{role:"menu","aria-label":o("Duplicate to page"),children:[t(f,{children:o("Duplicate to page")}),T?t(f,{children:o("Couldn’t load pages")}):m===null?t(f,{children:o("Loading…")}):w.length===0?t(f,{children:o("No other pages")}):w.map(e=>x(_,{role:"menuitem",disabled:h!==null,onClick:()=>{F(e)},children:[t("span",{className:"min-w-0 flex-1 truncate",children:e.label}),h===e.slug?t("span",{className:"shrink-0 text-xs",children:o("Copying…")}):e.draft&&t("span",{className:"shrink-0 text-xs",children:o("draft")})]},e.id))]})})]})}async function G(i,r,l){const n=Y(i),c=await n.load({id:r.id});if(!c)throw new Error(`Page "${r.slug}" no longer exists.`);const u=c.layout??{},s=Array.isArray(u.content)?[...u.content]:[],a=s.findIndex(m=>m?.type===H);s.splice(a===-1?s.length:a,0,l),await n.save(r.id,{layout:{root:{},zones:{},...u,content:s}},{version:c.version,clientId:""})}export{$ as copyForAnotherPage,G as copyNodeToPage,q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import{phoneKey as t,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{phoneKey as t,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as m,isBackgroundBox as j}from"../../../../../../format/lib/content/box-background.js";import{darkenFields as K}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as v,REEL_SHAPE_LABELS as G}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as Y,TAB_SHAPE_PICTURES as J}from"../../../choice-pictures.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ClockIcon as V,CropIcon as u,LineBetweenIcon as z,LineSolidIcon as q,ShadowIcon as Q,StylesIcon as Z,TableIcon as A,TargetIcon as $}from"efficient-easel/icons";import{boxBlockSpacingField as oo,boxFillField as eo,boxColumnsFields as no,boxShareField as to,boxSharePhoneField as io,boxShareTabletField as ro,containerDirectionField as lo,containerGapRows as ao,linkField as so,plainText as po,swapPadding as O,toggle as c,upload as g,withPanelOnly as mo}from"../../../controls.js";import{BOX_SHAPES as R,boxShapeOf as co}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as E}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as C}from"../../../shape-picker.js";import{BOX_COLUMNS_MAX as F,BOX_COLUMNS_MIN as b,boxPhoneRowOneLine as So}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as L}from"../../../../../../format/lib/content/box-separator.js";import{VIEW_KEY_ACCESS as ho,group as r,phoneTwinFields as w}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as _o,boxJustifyField as fo,boxWrapField as T,iconPickerRow as uo,placementField as Ao,select as H,sidesPaddingFields as N}from"../../../box-fields.js";import{withRowRules as Oo}from"../../../../../../render/lib/document/show-when.js";import{separatorField as go}from"../../../separator-field.js";import{LOOP_SCROLLS as Ro}from"../../../../../../format/lib/animation/index.js";import{FlexSlots as Eo}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{boxPhoneOrderField as Co}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Fo,ON_A_CARD as bo,cardDisplayField as Lo}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as wo,mirrorCardsField as To}from"../../../mirror-cards-field.js";import{SHOW_FOR_FACTS as Ho,showForField as No,showForFields as xo}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as l,SHARED_COLUMNS_LABEL as x,SHARED_COLUMNS_OFF as D,sharedColumnsDrawn as I,sharedColumnsFits as P,SHARED_COLUMNS_PHONE_POINTS as Do,SHARED_COLUMNS_POINTS as Io}from"../../../../../../render/lib/content/box-shared-columns.js";const Po={field:"bgImage",set:!0},k={field:"phoneRow",in:[2,3]},ko={field:"direction",is:"tabs"},Bo={field:"line",in:[!0,!1]},Mo={field:"anchor",set:!0},_=["fixed","screen"],yo={not:{any:[{field:"sectionHeightMode",in:_},{field:"sectionHeightModeTablet",in:_},{field:"sectionHeightModePhone",in:_}]}},Uo={context:"parent.line",is:!0},f={field:"direction",is:"row",default:"row"},s={not:Ro},S={all:[f,s,{not:{field:"separator",in:L.map(o=>o.value)}},{not:{field:"line",is:!0}}]},Wo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:F},(e,h)=>h+b)}}))]},Xo={all:[s,{not:{all:[f,{field:"separator",in:L.map(o=>o.value)}]}}]},B={not:{all:[S,{field:"columns",in:Array.from({length:F},(o,e)=>e+b)}]}},jo="sharedColumnsFits",M="sharedColumnsMisfit",y="sharedColumnsDraws",U="sharedColumnsPhoneDraws",Ko={[jo]:o=>P(o.props??{}),[M]:o=>!P(o.props??{}),[y]:o=>I(o.props??{}).desktop,[U]:o=>I(o.props??{}).phone};function W(o){return{all:[{not:{context:M,is:!0}},{any:[bo,{field:o,set:!0}]}]}}const p={not:{context:y,is:!0}},d={not:{context:U,is:!0}},vo={any:[p,d]};function Go(o){return{...o,render:e=>o.render({...e,value:So(e.value)?"nowrap":"wrap"})}}const Oe={fields:Oo({_gContent:r("Content"),content:Eo.content,_gCardDisplay:r("Display"),cardDisplay:Lo(),showFor:No(),_gLayout:r("Layout"),direction:lo("Flex"),tabShape:uo("Tab shape",n(Z,{}),v.map(o=>({label:G[o],value:o,picture:J[o]})),"tabs",{columns:2,cell:Y}),mirrorCards:To(),label:mo(po("Tab name")),...ao("Flex"),justify:fo(),align:_o(),...w("wrap",T(),void 0,{phoneRow:Go(T())}),[t("order")]:Co(),...w("boxShape",C("Box shape",n(u,{}),E(R),"shape","auto"),ho,{phoneRow:C("Box shape",n(u,{}),E(R),"shape","auto",{phoneRest:o=>co(o)})}),separator:go(n(z,{size:18}),"none"),share:a("desktop",to()),[i("share")]:ro(),[t("share")]:io(),[l]:a("desktop",H(x,n(A,{}),[...Io],D)),[t(l)]:a("mobile",H(x,n(A,{}),[...Do],D)),...no(),blockSpacing:oo(),line:c("Line",!1,n(q,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,n(V,{}),"Still to come: a hollow dot, and the gold line stops before it."),_gShadow:r("Shadow"),shadow:c("Shadow",!1,n(Q,{})),fillColor:eo(),_gBackground:r("Background image"),bgImage:a("desktop",g("Image","image/*")),bgImagePhone:a("mobile",g("Image","image/*")),...K(),placement:Ao("Content position"),_gLink:r("Link"),link:so("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,n($,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],Po],[[t("share")],{all:[k,d]}],[[l],W(l)],[[t(l)],W(t(l))],[[t("wrap")],{all:[k,s,d]}],[[t("order")],{all:[S,d,p]}],[["phoneRow"],d],[["tabShape"],ko],[["separator"],f],[["columns",i("columns")],S],[[i("gap")],Xo],[["justify"],{all:[s,vo]}],[["wrap"],{all:[s,B,p]}],[["share"],{all:[B,p]}],[[i("share")],{all:[Wo,p]}],[["line"],Bo],[["upcoming"],Uo],[["jumpHighlight"],Mo],[["boxShape",i("boxShape"),t("boxShape")],yo]]),resolveFields:(o,e)=>xo(Yo(o,e),o.props),showWhenFacts:{...Fo,...wo,...Ko,...Ho}};function Yo(...[o,{fields:e}]){{const h=o.props;if(j(h.bgImage)){const X=N({fallback:{top:m.desktop,bottom:m.desktop,left:m.side,right:m.side},tablet:!0});return O(e,X)}return o.props.padV2!==!0?O(e,N({fallback:{top:24,bottom:24},tablet:!0})):e}}export{Oe as FlexFields};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as i}from"react/jsx-runtime";import{isNode as c}from"efficient-easel/data";import{useEasel as d}from"efficient-easel/easel";import{PhoneOrderField as p}from"efficient-easel/fields";import{slotChildRowName as a}from"efficient-easel/draw";import{deviceField as f}from"efficient-easel/screen/lib/document/device-fields";import{say as u}from"../../../format/lib/editor-words.js";import{nonEmptyString as h}from"../../../format/lib/non-empty-string.js";import{sourceRowName as b}from"../../../format/lib/document/source-row-name.js";import{stripMarkup as k}from"../../../format/lib/markup.js";function y(){try{const o=d(e=>e),r=o.config.components??{},n=o.selectedItem?.props?.content,t=Array.isArray(n)?n.filter(e=>!c(e)||typeof r[e.type]?.render!="function"?!1:h(e.props?.id)!==void 0):[],s=t.map(e=>e.props.id);return{blocks:t,ids:s,labelOf:e=>r[e]?.label??e}}catch{return null}}function O({value:o,onChange:r,readOnly:n}){const t=y();if(!t)return null;const{blocks:s,ids:e,labelOf:l}=t;return i(p,{stored:"ids",value:o,ids:e,onChange:r,readOnly:n,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:m=>a(s[m],l,k,void 0,b)})}function A(){return f("mobile",{type:"custom",render:({value:o,onChange:r,readOnly:n})=>i(O,{value:o,onChange:r,readOnly:n})})}export{A as boxPhoneOrderField};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SlotCell } from "efficient-easel/render";
|
|
2
|
+
export declare const BOX_PHONE_PLACE_CLASS = "max-view-wide:[&>*]:order-[var(--sf-phone-place)]";
|
|
3
|
+
export declare const BOX_PHONE_PLACE_TABLET_CLASS = "max-view-tablet:[&>*]:order-[var(--sf-phone-place)]";
|
|
4
|
+
export declare const BOX_PHONE_PLACE_CANVAS_CLASS = "max-view-wide:order-[var(--sf-phone-place)]";
|
|
5
|
+
export declare const BOX_PHONE_PLACE_CANVAS_TABLET_CLASS = "max-view-tablet:order-[var(--sf-phone-place)]";
|
|
6
|
+
export declare const BOX_CELL_CLASS = "contents [&>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>*]:min-w-[inherit]";
|
|
7
|
+
export declare function boxPhoneOrder(value: unknown, ids: readonly string[]): string[] | undefined;
|
|
8
|
+
export declare function boxPhoneCell(order: readonly string[] | undefined, { tabletKeepsRow, editing }: {
|
|
9
|
+
tabletKeepsRow: boolean;
|
|
10
|
+
editing: boolean;
|
|
11
|
+
}): ((id: string) => SlotCell) | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{readPhoneOrderIds as s}from"efficient-easel/data";const a="max-view-wide:[&>*]:order-[var(--sf-phone-place)]",_="max-view-tablet:[&>*]:order-[var(--sf-phone-place)]",c="max-view-wide:order-[var(--sf-phone-place)]",p="max-view-tablet:order-[var(--sf-phone-place)]",A="contents [&>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>*]:min-w-[inherit]",h="unnamed:";function d(e,r){const n=Array.isArray(e)?e.filter(t=>!(typeof t=="string"&&t.startsWith(h))):e;return s(n,r)}function f(e,{tabletKeepsRow:r,editing:n}){if(!e)return;const t=n?r?p:c:`${A} ${r?_:a}`;return i=>{const o=e.indexOf(i);return{className:t,style:{"--sf-phone-place":o<0?e.length:o}}}}export{A as BOX_CELL_CLASS,c as BOX_PHONE_PLACE_CANVAS_CLASS,p as BOX_PHONE_PLACE_CANVAS_TABLET_CLASS,a as BOX_PHONE_PLACE_CLASS,_ as BOX_PHONE_PLACE_TABLET_CLASS,f as boxPhoneCell,d as boxPhoneOrder};
|
|
@@ -6,7 +6,7 @@ export type BlockSlots = Record<string, {
|
|
|
6
6
|
allow?: string[];
|
|
7
7
|
disallow?: string[];
|
|
8
8
|
}>;
|
|
9
|
-
export type BlockRender = Pick<Block, "label" | "defaultProps" | "render" | "inline"> & {
|
|
9
|
+
export type BlockRender = Pick<Block, "label" | "defaultProps" | "render" | "inline" | "phoneOrder"> & {
|
|
10
10
|
fields?: BlockSlots;
|
|
11
11
|
};
|
|
12
12
|
export type BlockMeta = Omit<BlockRender, "render">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{phoneKey as t}from"efficient-easel/screen/lib/content/view-tiers";const o={content:{type:"slot"}},r={label:"Box",fields:o,phoneOrder:{prop:t("order"),slot:"content"},defaultProps:{direction:"row",justify:"start",align:"stretch",wrap:!0,content:[],share:"equal",blockSpacing:"gap",padV2:!0,sectionPaddingTop:24,sectionPaddingBottom:24}};export{r as FlexMeta,o as FlexSlots};
|
|
@@ -1146,6 +1146,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
1146
1146
|
readonly "The header holds at most 3 sections": "The header holds at most 3 sections";
|
|
1147
1147
|
readonly "The name was not saved. Try again.": "The name was not saved. Try again.";
|
|
1148
1148
|
readonly "The newest 30 are kept. Named versions are always kept.": "The newest 30 are kept. Named versions are always kept.";
|
|
1149
|
+
readonly "The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.": "The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.";
|
|
1149
1150
|
readonly "The preview did not open. Try again.": "The preview did not open. Try again.";
|
|
1150
1151
|
readonly "The room left at the left and right edge of every page.": "The room left at the left and right edge of every page.";
|
|
1151
1152
|
readonly "The section it belonged to has been changed or removed.": "The section it belonged to has been changed or removed.";
|
|
@@ -5,7 +5,7 @@ const e={"$ efficient …":"$ efficient …","0 min":"0 min","0 min read":"0 min
|
|
|
5
5
|
*Highlight line*`,"Section heading *here.*":"Section heading *here.*","Section headline\n*Highlight line*":`Section headline
|
|
6
6
|
*Highlight line*`,"Section headline *here.*\n*Highlight line*":`Section headline *here.*
|
|
7
7
|
*Highlight line*`,"Section number":"Section number","Section settings":"Section settings",Sections:"Sections","Section’s own":"Section’s own","Secure encrypted checkout":"Secure encrypted checkout","Seen from\n*the counter.*":`Seen from
|
|
8
|
-
*the counter.*`,"Select a section or block to edit it.":"Select a section or block to edit it.","Select a word, then press the highlighter.":"Select a word, then press the highlighter.","Selector guide":"Selector guide","Selector guide (pills + results)":"Selector guide (pills + results)","Selector pills":"Selector pills",Separator:"Separator","Series title":"Series title",Serif:"Serif","Set by country":"Set by country","Set this card's corners first.":"Set this card's corners first.",Shadow:"Shadow","Shadow color":"Shadow color",Shape:"Shape","Share button":"Share button",Shared:"Shared","Shared, scroll":"Shared, scroll","Shop & galleries":"Shop & galleries","Short description of this figure.":"Short description of this figure.","Short detail line":"Short detail line","Short supporting line":"Short supporting line",Show:"Show","Show arrows":"Show arrows","Show cover image":"Show cover image","Show for":"Show for","Show hints":"Show hints","Show next image":"Show next image","Show on a card":"Show on a card","Show on phones":"Show on phones","Show slide picker":"Show slide picker","Show texture":"Show texture","Show the chat bubble":"Show the chat bubble","Show the chat bubble on the whole site":"Show the chat bubble on the whole site","Show ticker":"Show ticker","Show {label} on the slide":"Show {label} on the slide","Shown beside the heading":"Shown beside the heading","Shows when a visitor points at the button":"Shows when a visitor points at the button","Shrink to fit":"Shrink to fit","Side space":"Side space","Side-by-side image and text in two columns.":"Side-by-side image and text in two columns.",Sideways:"Sideways","Signup Form":"Signup Form",Simple:"Simple","Site button color":"Site button color","Site settings":"Site settings","Six across":"Six across","Six stagger":"Six stagger",Size:"Size",Sizes:"Sizes","Slash /":"Slash /","Slide name":"Slide name","Slide picker":"Slide picker","Slide picker placement":"Slide picker placement","Slide picker shape":"Slide picker shape","Slide {n}: own Overlay color.":"Slide {n}: own Overlay color.","Slides {n}: own Overlay color.":"Slides {n}: own Overlay color.",Small:"Small","Small — 40px":"Small — 40px","Social Logos":"Social Logos","Social link settings belong to a website.":"Social link settings belong to a website.","Social links":"Social links",Soft:"Soft",Solid:"Solid","Somebody else":"Somebody else",Source:"Source","Space above and below":"Space above and below",Spacer:"Spacer","Spec Strip":"Spec Strip","Spec Table":"Spec Table","Spec label":"Spec label","Spec tiles":"Spec tiles","Spec value":"Spec value",Spin:"Spin",Spine:"Spine","Spine (single rail)":"Spine (single rail)",Split:"Split","Split (editorial aside)":"Split (editorial aside)",Square:"Square","Square 1:1":"Square 1:1",Squares:"Squares",Stacked:"Stacked",Standard:"Standard",Stat:"Stat","Stat & note":"Stat & note","Stat label":"Stat label","Stat name":"Stat name","Stat value":"Stat value",State:"State","State / Province":"State / Province",Statement:"Statement",Stats:"Stats","Stats & social proof":"Stats & social proof","Stats with Text":"Stats with Text","Status chip":"Status chip","Step *one*":"Step *one*","Step *three*":"Step *three*","Step *two*":"Step *two*","Stick to top":"Stick to top","Still time per slide":"Still time per slide","Still to come: a hollow dot, and the gold line stops before it.":"Still to come: a hollow dot, and the gold line stops before it.","Storefront → Blog":"Storefront → Blog","Storefront ▸ Sites ▸ Settings":"Storefront ▸ Sites ▸ Settings","Story Timeline":"Story Timeline","Street address":"Street address","Strip fill":"Strip fill","Strip items":"Strip items","Stripes · bold":"Stripes · bold","Stripes · fine":"Stripes · fine","Stripes · medium":"Stripes · medium",Style:"Style",Styles:"Styles","Sub-title":"Sub-title","Sub-total lines":"Sub-total lines",Subscribe:"Subscribe",Subtitle:"Subtitle","Subtitle font size":"Subtitle font size",Subtotal:"Subtotal","Success heading":"Success heading","Success message":"Success message",Superscript:"Superscript","Switch now":"Switch now","Switch to Box footer":"Switch to Box footer","Synced from the blog post.":"Synced from the blog post.","Synced from the product.":"Synced from the product.","Synced from the site menu.":"Synced from the site menu.","Syncing from {place}…":"Syncing from {place}…",Tab:"Tab","Tab label":"Tab label","Tab name":"Tab name","Tab shape":"Tab shape","Tabbed Gallery":"Tabbed Gallery",Tabs:"Tabs","Tall (3:4)":"Tall (3:4)","Tall 3:4":"Tall 3:4","Tall first":"Tall first","Tall middle":"Tall middle","Team four":"Team four","Team one":"Team one","Team three":"Team three","Team two":"Team two",Telegram:"Telegram",Template:"Template","Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.","Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.","Templates keep their look. Press Done.":"Templates keep their look. Press Done.",Terminal:"Terminal","Terminal (CLI session)":"Terminal (CLI session)","Terminal lines":"Terminal lines",Testimonials:"Testimonials",Text:"Text","Text & content":"Text & content","Text & media":"Text & media","Text color":"Text color","Text column":"Text column","Text height":"Text height","Text position":"Text position","Text size":"Text size","Text style":"Text style",Texts:"Texts",Texture:"Texture","Texture color":"Texture color","Texture opacity":"Texture opacity","Thanks — we'll email you to confirm.":"Thanks — we'll email you to confirm.","The chat bubble is hidden across the whole site.":"The chat bubble is hidden across the whole site.","The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.":"The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.","The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.":"The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.","The floating chat bubble shows in the corner of every page.":"The floating chat bubble shows in the corner of every page.","The footer cannot take another one of these":"The footer cannot take another one of these","The footer holds at most 6 sections":"The footer holds at most 6 sections","The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.":"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.","The header and footer did not save. They are sent again with your next change.":"The header and footer did not save. They are sent again with your next change.","The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.":"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.","The header cannot take another one of these":"The header cannot take another one of these","The header holds at most 3 sections":"The header holds at most 3 sections","The name was not saved. Try again.":"The name was not saved. Try again.","The newest 30 are kept. Named versions are always kept.":"The newest 30 are kept. Named versions are always kept.","The preview did not open. Try again.":"The preview did not open. Try again.","The room left at the left and right edge of every page.":"The room left at the left and right edge of every page.","The section it belonged to has been changed or removed.":"The section it belonged to has been changed or removed.","The version was not restored. Nothing changed. Try again.":"The version was not restored. Nothing changed. Try again.","The whole website goes back to version {n} as a draft.":"The whole website goes back to version {n} as a draft.","The whole website goes back to version {n} as a draft: {what}.":"The whole website goes back to version {n} as a draft: {what}.","The width bar works for 2 to {count} blocks.":"The width bar works for 2 to {count} blocks.","The width of every section's background.":"The width of every section's background.","The width of every section's content.":"The width of every section's content.","The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.":"The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.",Theme:"Theme","Theme Switch":"Theme Switch","Theme {n}":"Theme {n}","Theme {n} background":"Theme {n} background","Theme {n} main color":"Theme {n} main color","Theme {n} text color":"Theme {n} text color","These settings apply to every view.":"These settings apply to every view.","They are saved in Version history as “Draft before restore”, so you can get them back.":"They are saved in Version history as “Draft before restore”, so you can get them back.",Thickness:"Thickness","Third item":"Third item","This cannot be undone.":"This cannot be undone.","This card is not in a section that can share corners.":"This card is not in a section that can share corners.","This color is hard to read on this theme's page. The buttons below are the same hue, darkened.":"This color is hard to read on this theme's page. The buttons below are the same hue, darkened.","This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.":"This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.","This color reads clearly on your pages.":"This color reads clearly on your pages.","This footer uses the old layout":"This footer uses the old layout","This is the only card in the section.":"This is the only card in the section.","This page":"This page","This page has no look of its own to set.":"This page has no look of its own to set.","This page is read-only.":"This page is read-only.","This part is no longer here.":"This part is no longer here.","This part's settings did not open.":"This part's settings did not open.","This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.","This ticker’s hero is no longer on the page.":"This ticker’s hero is no longer on the page.","This video has no frame yet. The slide shows its background colour until one is made.":"This video has no frame yet. The slide shows its background colour until one is made.","Three across":"Three across","Three ladder":"Three ladder","Three stagger":"Three stagger","Ticker items":"Ticker items",TikTok:"TikTok","Timeline entries":"Timeline entries","Timezone chip":"Timezone chip",Tint:"Tint","Tint color":"Tint color","Tint opacity":"Tint opacity",Title:"Title","Today, {time}":"Today, {time}",Tone:"Tone",Top:"Top","Top border":"Top border","Top center":"Top center","Top left":"Top left","Top right":"Top right","Top row":"Top row","Top space":"Top space",Total:"Total","Total amount":"Total amount","Total label":"Total label","Total line":"Total line",Track:"Track","Track (year rail)":"Track (year rail)","Trailing note":"Trailing note","Triangle ▼":"Triangle ▼","Trusted by *teams worldwide*":"Trusted by *teams worldwide*","Try again":"Try again","Two across":"Two across","Two image galleries with tabs and filters.":"Two image galleries with tabs and filters.","Two tall":"Two tall","Two, then threes":"Two, then threes",Type:"Type","Type a postcode or address":"Type a postcode or address","Typed here":"Typed here","Typed in":"Typed in","Tyre Fitment Form":"Tyre Fitment Form","Tyre Sizes":"Tyre Sizes","URL pill":"URL pill","URL: /{slug}":"URL: /{slug}",Undo:"Undo","Undo did not work. Nothing changed. Try again.":"Undo did not work. Nothing changed. Try again.",Ungrouped:"Ungrouped",Unit:"Unit","Unit labels":"Unit labels",Unlink:"Unlink",Up:"Up","Up and down":"Up and down",Upcoming:"Upcoming","Update style":"Update style","Update {style}?":"Update {style}?",Upload:"Upload","Upload a background image":"Upload a background image","Upload a poster still":"Upload a poster still","Uppercase heading":"Uppercase heading","Use {colour}":"Use {colour}",Value:"Value","Value suffix":"Value suffix","Version history":"Version history","Version history did not load.":"Version history did not load.","Version {n}":"Version {n}","Version {n} is now your draft":"Version {n} is now your draft",Versions:"Versions","Vertical breathing room between sections.":"Vertical breathing room between sections.",Video:"Video","Video 16:9":"Video 16:9","Video file":"Video file","Video frame":"Video frame","Video poster":"Video poster","View all":"View all","View all questions":"View all questions","View series →":"View series →",Volume:"Volume","Ways to pay":"Ways to pay","We accept":"We accept",WeChat:"WeChat","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.","What people *say.*":"What people *say.*","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.","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.","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.",WhatsApp:"WhatsApp","When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.":"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.","When the text does not fit":"When the text does not fit","Where this content is edited.":"Where this content is edited.","Whether this page sits on the site's content column, or runs edge to edge.":"Whether this page sits on the site's content column, or runs edge to edge.","Whole number Theme Color":"Whole number Theme Color","Wide (2:1)":"Wide (2:1)","Wide 2:1":"Wide 2:1","Wide promo strip with background image.":"Wide promo strip with background image.",Width:"Width","With us":"With us",Wording:"Wording",Words:"Words",Wrap:"Wrap","Write the answer here.":"Write the answer here.","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.
|
|
8
|
+
*the counter.*`,"Select a section or block to edit it.":"Select a section or block to edit it.","Select a word, then press the highlighter.":"Select a word, then press the highlighter.","Selector guide":"Selector guide","Selector guide (pills + results)":"Selector guide (pills + results)","Selector pills":"Selector pills",Separator:"Separator","Series title":"Series title",Serif:"Serif","Set by country":"Set by country","Set this card's corners first.":"Set this card's corners first.",Shadow:"Shadow","Shadow color":"Shadow color",Shape:"Shape","Share button":"Share button",Shared:"Shared","Shared, scroll":"Shared, scroll","Shop & galleries":"Shop & galleries","Short description of this figure.":"Short description of this figure.","Short detail line":"Short detail line","Short supporting line":"Short supporting line",Show:"Show","Show arrows":"Show arrows","Show cover image":"Show cover image","Show for":"Show for","Show hints":"Show hints","Show next image":"Show next image","Show on a card":"Show on a card","Show on phones":"Show on phones","Show slide picker":"Show slide picker","Show texture":"Show texture","Show the chat bubble":"Show the chat bubble","Show the chat bubble on the whole site":"Show the chat bubble on the whole site","Show ticker":"Show ticker","Show {label} on the slide":"Show {label} on the slide","Shown beside the heading":"Shown beside the heading","Shows when a visitor points at the button":"Shows when a visitor points at the button","Shrink to fit":"Shrink to fit","Side space":"Side space","Side-by-side image and text in two columns.":"Side-by-side image and text in two columns.",Sideways:"Sideways","Signup Form":"Signup Form",Simple:"Simple","Site button color":"Site button color","Site settings":"Site settings","Six across":"Six across","Six stagger":"Six stagger",Size:"Size",Sizes:"Sizes","Slash /":"Slash /","Slide name":"Slide name","Slide picker":"Slide picker","Slide picker placement":"Slide picker placement","Slide picker shape":"Slide picker shape","Slide {n}: own Overlay color.":"Slide {n}: own Overlay color.","Slides {n}: own Overlay color.":"Slides {n}: own Overlay color.",Small:"Small","Small — 40px":"Small — 40px","Social Logos":"Social Logos","Social link settings belong to a website.":"Social link settings belong to a website.","Social links":"Social links",Soft:"Soft",Solid:"Solid","Somebody else":"Somebody else",Source:"Source","Space above and below":"Space above and below",Spacer:"Spacer","Spec Strip":"Spec Strip","Spec Table":"Spec Table","Spec label":"Spec label","Spec tiles":"Spec tiles","Spec value":"Spec value",Spin:"Spin",Spine:"Spine","Spine (single rail)":"Spine (single rail)",Split:"Split","Split (editorial aside)":"Split (editorial aside)",Square:"Square","Square 1:1":"Square 1:1",Squares:"Squares",Stacked:"Stacked",Standard:"Standard",Stat:"Stat","Stat & note":"Stat & note","Stat label":"Stat label","Stat name":"Stat name","Stat value":"Stat value",State:"State","State / Province":"State / Province",Statement:"Statement",Stats:"Stats","Stats & social proof":"Stats & social proof","Stats with Text":"Stats with Text","Status chip":"Status chip","Step *one*":"Step *one*","Step *three*":"Step *three*","Step *two*":"Step *two*","Stick to top":"Stick to top","Still time per slide":"Still time per slide","Still to come: a hollow dot, and the gold line stops before it.":"Still to come: a hollow dot, and the gold line stops before it.","Storefront → Blog":"Storefront → Blog","Storefront ▸ Sites ▸ Settings":"Storefront ▸ Sites ▸ Settings","Story Timeline":"Story Timeline","Street address":"Street address","Strip fill":"Strip fill","Strip items":"Strip items","Stripes · bold":"Stripes · bold","Stripes · fine":"Stripes · fine","Stripes · medium":"Stripes · medium",Style:"Style",Styles:"Styles","Sub-title":"Sub-title","Sub-total lines":"Sub-total lines",Subscribe:"Subscribe",Subtitle:"Subtitle","Subtitle font size":"Subtitle font size",Subtotal:"Subtotal","Success heading":"Success heading","Success message":"Success message",Superscript:"Superscript","Switch now":"Switch now","Switch to Box footer":"Switch to Box footer","Synced from the blog post.":"Synced from the blog post.","Synced from the product.":"Synced from the product.","Synced from the site menu.":"Synced from the site menu.","Syncing from {place}…":"Syncing from {place}…",Tab:"Tab","Tab label":"Tab label","Tab name":"Tab name","Tab shape":"Tab shape","Tabbed Gallery":"Tabbed Gallery",Tabs:"Tabs","Tall (3:4)":"Tall (3:4)","Tall 3:4":"Tall 3:4","Tall first":"Tall first","Tall middle":"Tall middle","Team four":"Team four","Team one":"Team one","Team three":"Team three","Team two":"Team two",Telegram:"Telegram",Template:"Template","Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store images — this slot stays a placeholder. Each website picks its own after it’s created.","Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.":"Templates don’t store videos — this slot stays a placeholder. Each website picks its own after it’s created.","Templates keep their look. Press Done.":"Templates keep their look. Press Done.",Terminal:"Terminal","Terminal (CLI session)":"Terminal (CLI session)","Terminal lines":"Terminal lines",Testimonials:"Testimonials",Text:"Text","Text & content":"Text & content","Text & media":"Text & media","Text color":"Text color","Text column":"Text column","Text height":"Text height","Text position":"Text position","Text size":"Text size","Text style":"Text style",Texts:"Texts",Texture:"Texture","Texture color":"Texture color","Texture opacity":"Texture opacity","Thanks — we'll email you to confirm.":"Thanks — we'll email you to confirm.","The chat bubble is hidden across the whole site.":"The chat bubble is hidden across the whole site.","The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.":"The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.","The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.":"The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.","The floating chat bubble shows in the corner of every page.":"The floating chat bubble shows in the corner of every page.","The footer cannot take another one of these":"The footer cannot take another one of these","The footer holds at most 6 sections":"The footer holds at most 6 sections","The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.":"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.","The header and footer did not save. They are sent again with your next change.":"The header and footer did not save. They are sent again with your next change.","The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.":"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.","The header cannot take another one of these":"The header cannot take another one of these","The header holds at most 3 sections":"The header holds at most 3 sections","The name was not saved. Try again.":"The name was not saved. Try again.","The newest 30 are kept. Named versions are always kept.":"The newest 30 are kept. Named versions are always kept.","The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.":"The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order.","The preview did not open. Try again.":"The preview did not open. Try again.","The room left at the left and right edge of every page.":"The room left at the left and right edge of every page.","The section it belonged to has been changed or removed.":"The section it belonged to has been changed or removed.","The version was not restored. Nothing changed. Try again.":"The version was not restored. Nothing changed. Try again.","The whole website goes back to version {n} as a draft.":"The whole website goes back to version {n} as a draft.","The whole website goes back to version {n} as a draft: {what}.":"The whole website goes back to version {n} as a draft: {what}.","The width bar works for 2 to {count} blocks.":"The width bar works for 2 to {count} blocks.","The width of every section's background.":"The width of every section's background.","The width of every section's content.":"The width of every section's content.","The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.":"The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.",Theme:"Theme","Theme Switch":"Theme Switch","Theme {n}":"Theme {n}","Theme {n} background":"Theme {n} background","Theme {n} main color":"Theme {n} main color","Theme {n} text color":"Theme {n} text color","These settings apply to every view.":"These settings apply to every view.","They are saved in Version history as “Draft before restore”, so you can get them back.":"They are saved in Version history as “Draft before restore”, so you can get them back.",Thickness:"Thickness","Third item":"Third item","This cannot be undone.":"This cannot be undone.","This card is not in a section that can share corners.":"This card is not in a section that can share corners.","This color is hard to read on this theme's page. The buttons below are the same hue, darkened.":"This color is hard to read on this theme's page. The buttons below are the same hue, darkened.","This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.":"This color is hard to read on your page background. Pick one further from it — lighter if your pages are dark, deeper if they are light.","This color reads clearly on your pages.":"This color reads clearly on your pages.","This footer uses the old layout":"This footer uses the old layout","This is the only card in the section.":"This is the only card in the section.","This page":"This page","This page has no look of its own to set.":"This page has no look of its own to set.","This page is read-only.":"This page is read-only.","This part is no longer here.":"This part is no longer here.","This part's settings did not open.":"This part's settings did not open.","This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.":"This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.","This ticker’s hero is no longer on the page.":"This ticker’s hero is no longer on the page.","This video has no frame yet. The slide shows its background colour until one is made.":"This video has no frame yet. The slide shows its background colour until one is made.","Three across":"Three across","Three ladder":"Three ladder","Three stagger":"Three stagger","Ticker items":"Ticker items",TikTok:"TikTok","Timeline entries":"Timeline entries","Timezone chip":"Timezone chip",Tint:"Tint","Tint color":"Tint color","Tint opacity":"Tint opacity",Title:"Title","Today, {time}":"Today, {time}",Tone:"Tone",Top:"Top","Top border":"Top border","Top center":"Top center","Top left":"Top left","Top right":"Top right","Top row":"Top row","Top space":"Top space",Total:"Total","Total amount":"Total amount","Total label":"Total label","Total line":"Total line",Track:"Track","Track (year rail)":"Track (year rail)","Trailing note":"Trailing note","Triangle ▼":"Triangle ▼","Trusted by *teams worldwide*":"Trusted by *teams worldwide*","Try again":"Try again","Two across":"Two across","Two image galleries with tabs and filters.":"Two image galleries with tabs and filters.","Two tall":"Two tall","Two, then threes":"Two, then threes",Type:"Type","Type a postcode or address":"Type a postcode or address","Typed here":"Typed here","Typed in":"Typed in","Tyre Fitment Form":"Tyre Fitment Form","Tyre Sizes":"Tyre Sizes","URL pill":"URL pill","URL: /{slug}":"URL: /{slug}",Undo:"Undo","Undo did not work. Nothing changed. Try again.":"Undo did not work. Nothing changed. Try again.",Ungrouped:"Ungrouped",Unit:"Unit","Unit labels":"Unit labels",Unlink:"Unlink",Up:"Up","Up and down":"Up and down",Upcoming:"Upcoming","Update style":"Update style","Update {style}?":"Update {style}?",Upload:"Upload","Upload a background image":"Upload a background image","Upload a poster still":"Upload a poster still","Uppercase heading":"Uppercase heading","Use {colour}":"Use {colour}",Value:"Value","Value suffix":"Value suffix","Version history":"Version history","Version history did not load.":"Version history did not load.","Version {n}":"Version {n}","Version {n} is now your draft":"Version {n} is now your draft",Versions:"Versions","Vertical breathing room between sections.":"Vertical breathing room between sections.",Video:"Video","Video 16:9":"Video 16:9","Video file":"Video file","Video frame":"Video frame","Video poster":"Video poster","View all":"View all","View all questions":"View all questions","View series →":"View series →",Volume:"Volume","Ways to pay":"Ways to pay","We accept":"We accept",WeChat:"WeChat","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.","What people *say.*":"What people *say.*","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.","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.","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.",WhatsApp:"WhatsApp","When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.":"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.","When the text does not fit":"When the text does not fit","Where this content is edited.":"Where this content is edited.","Whether this page sits on the site's content column, or runs edge to edge.":"Whether this page sits on the site's content column, or runs edge to edge.","Whole number Theme Color":"Whole number Theme Color","Wide (2:1)":"Wide (2:1)","Wide 2:1":"Wide 2:1","Wide promo strip with background image.":"Wide promo strip with background image.",Width:"Width","With us":"With us",Wording:"Wording",Words:"Words",Wrap:"Wrap","Write the answer here.":"Write the answer here.","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.
|
|
9
9
|
|
|
10
10
|
- Start a line with a dash for a bullet.
|
|
11
11
|
- Add as many as you like.`,X:"X","X-Large":"X-Large",Year:"Year","Year →":"Year →",Years:"Years",YouTube:"YouTube","YouTube link":"YouTube link","Your *first* section.":"Your *first* section.","Your *second* section.":"Your *second* section.","Your drafts from before the restore are back":"Your drafts from before the restore are back","Your drafts go back to how they were before the restore.":"Your drafts go back to how they were before the restore.","Your fifth question goes here?":"Your fifth question goes here?","Your first question goes here?":"Your first question goes here?","Your fourth question goes here?":"Your fourth question goes here?","Your last changes did not save, so nothing was restored. Try again.":"Your last changes did not save, so nothing was restored. Try again.","Your last changes did not save, so the template was not made. Try again.":"Your last changes did not save, so the template was not made. Try again.","Your live website does not change until you press Publish.":"Your live website does not change until you press Publish.","Your locations as a city gallery plus address and map cards.":"Your locations as a city gallery plus address and map cards.","Your review":"Your review","Your second question goes here?":"Your second question goes here?","Your third question goes here?":"Your third question goes here?","Your unpublished changes are kept":"Your unpublished changes are kept",Zigzag:"Zigzag",Zoom:"Zoom","all theme colors":"all theme colors","body text":"body text",button:"button",card:"card",city:"city",direction:"direction",draft:"draft","e.g. About":"e.g. About","e.g. Americas":"e.g. Americas","e.g. about":"e.g. about","each block's own spacing":"each block's own spacing",entries:"entries",group:"group","https://youtu.be/…":"https://youtu.be/…",item:"item",label:"label",link:"link",main:"main",manifesto:"manifesto",none:"none","not set":"not set","not shown live":"not shown live",part:"part",px:"px",tabs:"tabs","the Text style in Styles":"the Text style in Styles","the built-in corners":"the built-in corners","the page":"the page","the same as Desktop":"the same as Desktop","the section":"the section","the theme's image stage":"the theme's image stage","the theme's section background":"the theme's section background","this container's own spacing":"this container's own spacing",upper:"upper","{day}, {time}":"{day}, {time}","{grade} on the button":"{grade} on the button","{label} hex code":"{label} hex code","{label} {n}":"{label} {n}","{label} — row {n}":"{label} — row {n}","{letter} · Step":"{letter} · Step","{name} (taken down)":"{name} (taken down)","{name} (unavailable)":"{name} (unavailable)","{name} is editing the header and footer. Nothing you change in them here is saved.":"{name} is editing the header and footer. Nothing you change in them here is saved.","{name} is editing {section}. Nothing you change in it here is saved.":"{name} is editing {section}. Nothing you change in it here is saved.","{name} is on this section":"{name} is on this section","{name} — renamed in the Console: {place}.":"{name} — renamed in the Console: {place}.","{n} change":"{n} change","{n} changes":"{n} changes","{n} cities":"{n} cities","{n} city":"{n} city","{n} of {total} layouts":"{n} of {total} layouts","{n} page":"{n} page","{n} pages":"{n} pages","{n} picture in this version was deleted from the media library. It stays empty.":"{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.":"{n} pictures in this version were deleted from the media library. They stay empty.","{page} from version {n} is now your draft":"{page} from version {n} is now your draft","{page} goes back to version {n} as a draft. Nothing else on your website changes.":"{page} goes back to version {n} as a draft. Nothing else on your website changes.","{section} could not load. It stays on the page as it was. Reload to try again.":"{section} could not load. It stays on the page as it was. Reload to try again.","{section} did not save. It is sent again with your next change.":"{section} did not save. It is sent again with your next change.","{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.":"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.","{value} from {from}":"{value} from {from}","{value} on desktop":"{value} on desktop","{value} on tablet":"{value} on tablet","{what} settings belong to a website.":"{what} settings belong to a website.","— Articles in total":"— Articles in total","— Label":"— Label","— Name, Year":"— Name, Year"};export{e as WEB_BUILDER_WORDS};
|
|
@@ -24,6 +24,7 @@ interface FlexProps {
|
|
|
24
24
|
sharePhone?: string;
|
|
25
25
|
shareTablet?: unknown;
|
|
26
26
|
wrapPhone?: unknown;
|
|
27
|
+
orderPhone?: unknown;
|
|
27
28
|
phoneRow?: number | string;
|
|
28
29
|
columns?: number | string;
|
|
29
30
|
columnsTablet?: number | string;
|
|
@@ -61,5 +62,5 @@ interface FlexProps {
|
|
|
61
62
|
mirrorCards?: unknown;
|
|
62
63
|
content: SlotComponent;
|
|
63
64
|
}
|
|
64
|
-
export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, phoneRow, columns, columnsTablet, separator, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, boxId, mirrorCards, content: Content, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
65
|
+
export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, orderPhone, phoneRow, columns, columnsTablet, separator, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, boxId, mirrorCards, content: Content, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
65
66
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as H,jsx as s,jsxs as lo}from"react/jsx-runtime";import{useId as Ve}from"react";import{parseHexColor as qe}from"efficient-shell/format";import Qe from"./BoxTabs.js";import{BoxTabPaneContext as Ze,useIsTabPane as os}from"./BoxTabPaneContext.js";import{boxPhoneCell as es,boxPhoneOrder as ss}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as ts,InBoxContext as rs,useCellOfStretchedRow as ns,useFillsCell as ls}from"./InBoxContext.js";import as,{InsideSiteColumn as se,useInsideSiteGutter as cs,useSectionRoot as ms}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as is}from"./BoxSurfaceContext.js";import us from"./PictureWash.js";import{BoxCellWidthContext as ds}from"./BoxCellWidthContext.js";import{useInSiteHeader as fs}from"./PhoneMenuTools.js";import{useCardRow as Cs}from"./CardRowContext.js";import{framesItsCards as ps}from"../../format/lib/content/card-place.js";import{MirrorContext as bs,useMirroredCopy as Ss,useUnderCardBox as xs}from"./MirrorContext.js";import{isMirroredCopy as hs,mirrorCardsActs as $s,mirroredBoxClass as _s,MIRROR_ROW_CLASS as ys,ownsCard as Ps}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as ao,FRAME_GUTTER as co}from"./BlockFrame.js";import{containerGapProps as Rs}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as As,boxBlockSpacingClass as Ls,boxFitContentClass as ws,boxRowColumnsClass as Os,boxRowTabletColumnsClass as Ns,boxRowTabletShareClass as Bs,boxPhoneCellsShareLine as vs,boxPhoneRowClasses as T,boxPhoneRowFits as ks,boxShareClasses as P,boxShareVars as Es,boxWrapClass as Ts}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Fs,boxSeparatorSeamClass as gs,boxSeparatorStyle as Ds,isStripBox as Is}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Ms,DEFAULT_LOOP_DIRECTION as Ws,DEFAULT_LOOP_SECONDS as js,isVerticalLoop as Hs}from"../../format/lib/animation/index.js";import{LoopTrack as Us}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as u,BOX_OWNS_SIDES_CLASS as Xs,boxDarkenStyle as Gs,boxPlacementClasses as Ks,CARD_SHADOW_CLASS as zs,isBackgroundBox as te}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as re}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Js,drawsSiteGutter as Ys}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Vs,boxShapeClasses as qs}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Qs,BOX_LINK_ATTR as ne,BOX_LINK_CLASS as le,BOX_LINKED_CLASS as Zs,boxJumpBlocksClass as ot,boxJumpCss as et,boxJumpSlug as st,boxLinkOf as tt}from"../../format/lib/content/box-link.js";import{SiteLink as rt}from"../lib/site-runtime.js";import{sectionBorderStyle as ae}from"../../format/lib/content/borders.js";import{finiteNumber as d}from"../../format/lib/finite-number.js";import{sectionPadAttrs as nt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as U}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as lt}from"../../format/lib/content/ink.js";import{sizedBackground as mo}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as at,resolveImageTreatment as ct}from"../../format/lib/content/image-treatment.js";import{BoxRail as mt,BoxRailStop as it,RAIL_STOPS_CLASS as ut,useTimelineRail as dt}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as ft,sharedColumnsClasses as Ct,sharedColumnsCss as pt}from"../lib/content/box-shared-columns.js";import bt from"./PhotoHoverSheet.js";const io={"--sf-site-gutter":"0px"},St={overflowX:"clip",overflowY:"visible"},xt={desktop:!1,phone:!1},ce="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",uo=o=>o==null||o==="",fo=o=>!uo(o)&&Number(o)===0;function ht({children:o}){return s(H,{children:o(Ve())})}function $t({direction:o,label:me,tabShape:ie,gap:Co,gapPhone:ue,gapTablet:X,justify:F,align:b,wrap:po,share:n,sharePhone:g,shareTablet:R,wrapPhone:de,orderPhone:fe,phoneRow:A,columns:L,columnsTablet:w,separator:a,blockSpacing:Ce,bgImage:O,bgImagePhone:bo,pictureHover:pe,darken:be,darkenStyle:Se,placement:xe,padV2:So=!1,border:xo,borderTablet:ho,borderPhone:$o,pad:r={},contained:G=!0,fillHeight:f=!1,shadow:_o,loop:S,scrollDirection:K=Ws,loopSeconds:he=js,loopDelay:$e=Ms,editing:D=!1,fillColor:yo,line:x,upcoming:_e,link:ye,boxShape:Po,boxShapePhone:Pe,boxShapeTablet:Re,jumpHighlight:Ae,anchor:Le,sharedSides:h=xt,boxId:Ro,mirrorCards:we,content:c}){const $=D?"":tt(ye),m=f?"":qs(Po,Pe,Re),Oe=!f&&Vs(Po)!=="",C=st(Ae,Le),z=typeof yo=="string"?qe(yo.trim()):null,Ao=z?{backgroundColor:z}:void 0,Lo=dt(),J=x===!0&&o!=="tabs",t=te(O),I=fs(),Ne=ms(),wo=os(),Y=ls(),Be=ns(),N=Is(o,a),l=S==="scroll"&&o!=="tabs",_=Cs(),ve=Ss(),ke=xs(),M=Ps({inCopy:_!==null,nestedCopy:_?.nested===!0,underBox:ke}),V=M&&ps(_?.ownerType),Oo=$s({direction:o,separator:a,loop:S,line:x,bgImage:O,columns:L,columnsTablet:w,share:n,wrap:po},M,h.desktop)&&hs(we,_?.index),No=t||M?"":_s(ve,o,l?void 0:F,b),B=Os({direction:o,separator:a,loop:S,line:x,columns:L}),y=Ns({direction:o,separator:a,loop:S,line:x,columnsTablet:w}),W=Bs({direction:o,separator:a,loop:S,line:x,columns:L,columnsTablet:w,share:n,shareTablet:R}),Ee=cs(),j=Ct(h,c.blockCount??0),Te=j&&(!_||_.index===0)?pt(h,c.blockCount??0):"",Bo=y!==""?Number(w)>=2:W===""||P(R)!=="",q=y!==""||W!=="",Fe=q&&!(y!==""&&Number(w)<2),vo=o==="row"&&!N&&!l&&x!==!0,Q=vo&&!h.phone&&!h.desktop?es(ss(fe,c.blockIds??[]),{tabletKeepsRow:Fe,editing:D}):void 0,ko=Q!==void 0&&!D,ge=B!==""?Number(L)>=2:P(n)!=="",Eo=[P(n),o==="row"?ws(n):"",B,y,W,Ls(Ce),Fs(o,a)].filter(Boolean).join(" "),De=Eo?` ${Eo}`:"",To=["flex",o==="row"?N||l?"flex-row":`flex-row ${T(A,g,de)}`:"flex-col",Ts(l?!1:po),t?Ks(xe??"center",o):As(l?void 0:F,b)+(No?` ${No}`:"")].join(" ")+De,v=f||t||m||Y?` ${U}`:"",Z=Oe?` ${m}`:m?`${v} ${m}`:v,Fo=Be&&o==="column"&&!t&&!l&&P(n)===""&&typeof F=="string"&&F!=="start",go=v||(Fo?` ${U}`:""),oo=$?` ${Zs}`:"",eo=t||I||So?"":" py-6",Ie=`${ao}${eo} ${co}${Z}${oo}`,Me=I?`${Z}${oo}`.trim():`w-full${eo}${Z}${oo}`,k=Rs("Flex",Co,o==="row"?"inline":"block",ue,N||l?void 0:X),Do=Es(n,R,o==="row"?c.blockCount??0:0),Io=N?{...k.style,...Ds(o,a)}:k.style,We=Do?{...Io,...Do}:Io,Mo=(e="")=>s(c,{className:`${To}${Oo?` ${ys}`:""}${k.className}${go}${e?` ${e}`:""}${J?` ${ut}`:""}${C?` ${ot(C)}`:""}${j}`,style:We,minEmptyHeight:120,...Q?{cell:Q}:null}),Wo=Hs(K)?"":gs(o,a),jo=l?s(Us,{direction:K,seconds:he,delay:$e,editing:D,copy:e=>Mo(e&&Wo?`${e} ${Wo}`:e)}):Mo(),Ho=o==="tabs"?s(Qe,{className:`${To}${k.className}${Y&&!f&&!t&&!m?"":v}`,style:k.style,shape:ie,children:jo}):jo,Uo=wo?s(Ze.Provider,{value:!1,children:Ho}):Ho,Xo=o==="row"&&!t&&(b===void 0||b==="stretch"),je={stretchedRow:Xo,fillingColumn:o==="column"&&(Y||Fo),columnsRow:B!==""||y!==""||j!==""||o==="row"&&(Array.isArray(n)||Array.isArray(R))||ko,...ko?{phoneCells:!0}:null,...Xo&&vo&&(c.blockCount??0)>=2&&ge?{picturesFillRow:!0}:null,...q?{fillFrom:Bo?"tablet":"desktop"}:null,...vs(A,g)&&(!q||Bo)?{phoneRowFills:!0}:null,...Ro?{id:Ro}:null},Go=s(rs.Provider,{value:je,children:s(ts.Provider,{value:!1,children:M?s(bs.Provider,{value:Oo,children:Uo}):Uo})}),so=J?s(mt,{row:o==="row",stops:c.blockCount??0,children:Go}):Go,He=me?.trim()||(wo?"":void 0),Ue={values:r,frame:eo?24:0},Xe=e=>Lo?s(it,{on:Lo,future:_e===!0,children:e}):e,Ge=e=>$.startsWith("/")?s(rt,{href:$,className:le,"aria-labelledby":e,[ne]:""}):s("a",{href:$,className:le,"aria-labelledby":e,[ne]:""}),Ko=(C?et(C):"")+Te,zo=Ko?s("style",{dangerouslySetInnerHTML:{__html:Ko}}):null,E=Js({loop:S,direction:o,scrollDirection:K,bgImage:O}),Ke=h.desktop&&j!==""&&!z&&!ae(xo,$o,ho)&&Object.keys(re(_o)).length===0&&!$&&!m&&!f&&!C&&!Ys(G&&!E,Ee)&&fo(Co)&&(uo(X)||fo(X))&&So&&Object.values(r).every(e=>uo(e)||fo(e)),ze=e=>({...Ke?{[ft]:""}:null,...t?null:re(_o),...C?{[Qs]:C}:null,...e?{id:e}:null}),Jo=B!==""?Number(L):0,Je=T(A,g)===T(void 0),Ye=(o==="column"||o==="row"&&!N&&!l&&(Jo===1&&Je||Jo===0&&c.blockCount===1))&&!t&&!J&&!I,Yo=t&&Ne&&!I,Vo=(e,i)=>Xe(s(as,{contained:G&&!E,style:E?io:void 0,framedClass:Ie,fillClass:Me,columnClass:`${ao} ${co}${go}`,tabLabel:He,pad:t?void 0:Ue,border:ae(xo,$o,ho),outerAttrs:ze(i),box:!0,edge:Ye,outerStyle:t?void 0:Ao,bleed:Yo,children:zo||i?lo(H,{children:[zo,i?Ge(i):null,E?s(se,{children:e}):e]}):E?s(se,{children:e}):e})),qo=e=>$?s(ht,{children:i=>Vo(e,i)}):Vo(e);if(!t){const e=b===void 0||b==="stretch",i=(P(n)!==""||B!==""||y!=="")&&!ks(A,g)&&!(W!==""&&P(R)==="")&&(e||T(A)!==T(void 0));return qo((o==="row"?i:o==="column"&&e)?s(ds.Provider,{value:!0,children:so}):so)}const to=Gs(be,Se),ro=te(bo),Qo=ro?{"--sf-box-bg":mo(O??""),"--sf-box-bg-p":mo(bo??"")}:{backgroundImage:mo(O??""),backgroundSize:"cover",backgroundPosition:"center"},Zo=ct(void 0,void 0,pe),p=Zo.className?Zo:null,no=nt({...r,top:d(r.top)??u.desktop,bottom:d(r.bottom)??u.desktop,topPhone:d(r.topPhone)??u.phone,bottomPhone:d(r.bottomPhone)??u.phone,left:d(r.left)??u.side,right:d(r.right)??u.side,leftPhone:d(r.leftPhone)??u.sidePhone,rightPhone:d(r.rightPhone)??u.sidePhone}),oe=s("div",{className:`relative z-[1] ${Xs} ${no?.className??""}${f||m?` ${U}`:""}`.trimEnd(),style:to?{...no?.style,...io,...lt}:{...no?.style,...io},children:so}),ee=Yo&&G?s("div",{className:`${ao} ${co}${f||m?` ${U}`:""}`,children:oe}):oe;return qo(s(H,{children:lo("div",{className:`relative isolate overflow-hidden ${zs}${v}${ro&&!p?` ${ce}`:""}`,style:{...V?St:{},...Ao,...p?{}:Qo},...p?{[at]:""}:{},children:[p&&lo(H,{children:[s(bt,{sheet:p.sheet}),s("div",{"aria-hidden":!0,className:`absolute inset-0${V?" rounded-[inherit]":""}${ro?` ${ce}`:""} ${p.className}`,style:{...Qo,...p.style??{}}})]}),s(us,{wash:to,...V?{className:"rounded-[inherit]"}:{}}),to?s(is,{children:ee}):ee]})}))}export{$t as default};
|
|
@@ -19,6 +19,7 @@ export type BlockSize = {
|
|
|
19
19
|
style: Record<string, string>;
|
|
20
20
|
attrs: Record<string, string>;
|
|
21
21
|
};
|
|
22
|
+
export declare function blockFillInCellClass(values: BlockSizeValues): string;
|
|
22
23
|
export declare function blockSizeOf(values: BlockSizeValues): BlockSize | null;
|
|
23
24
|
export declare function blockSetsItsWidth(values: BlockSizeValues): boolean;
|
|
24
25
|
export declare function blockSizeValuesOf(props: Readonly<Record<string, unknown>>): BlockSizeValues;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BLOCK_FIXED_WIDTH as
|
|
1
|
+
import{BLOCK_FIXED_WIDTH as g,BLOCK_SIZE_KEYS as F,parseBlockWidthFit as x,phoneKey as k,parseTextFit as u,tabletKey as T}from"efficient-easel/draw";import{partDisplayClass as C}from"../../../format/lib/content/part-display.js";const E="sf-block-size",K="show",j=e=>C(void 0,{block:e[k(K)]!==!1},"block"),r={fit:"data-fit",fitPhone:"data-fit-phone",min:"data-fit-min",minPhone:"data-fit-min-phone"},f=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,O={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},A={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},y={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},B={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},D={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},H={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},P=["widthFit","width","minWidth","maxWidth"],S={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"};function Y(e){const t=_(e);return t.sides.filter(i=>t.mode[i]==="fill").map(i=>y[t.three?"three":"two"][i]).filter(Boolean).join(" ")}function _(e){const t=P.some(n=>{const s=e[n]?.tablet;return n==="widthFit"?x(s)!==void 0:f(s)!==void 0}),i=t?["desktop","tablet","phone"]:["desktop","phone"],o=(n,s)=>{const a=n(s?.desktop),p=t?n(s?.tablet)??a:a;return{desktop:a,tablet:p,phone:n(s?.phone)??p}};return{three:t,sides:i,perSide:o,mode:o(x,e.widthFit)}}function M(e){const t=[],i={},o={},{three:n,sides:s,perSide:a,mode:p}=_(e),I=a(f,e.width);for(const w of s){const d=p[w];!d||d==="fit"||(t.push(n?A[w][d]:O[w][d]),d==="fixed"&&(i[B[w]]=`${I[w]??g.fallback}px`))}for(const w of["minWidth","maxWidth"]){const d=a(f,e[w]);for(const b of s){const v=d[b];if(v===void 0)continue;const[L,W]=n?H[w][b]:D[w][b];i[L]=`${v}px`,t.push(W)}}const m=u(e.textFit?.desktop),l=u(e.textFit?.phone),c=f(e.minFont?.desktop),h=f(e.minFont?.phone);return m==="line"&&t.push(S.desktop),(l??m)==="line"&&t.push(S.phone),m&&(o[r.fit]=m),l&&(o[r.fitPhone]=l),c!==void 0&&(o[r.min]=String(c)),h!==void 0&&(o[r.minPhone]=String(h)),t.length===0&&Object.keys(o).length===0?null:{className:[E,...t].join(" "),style:i,attrs:o}}function R(e){if(f(e.maxWidth?.desktop)!==void 0)return!0;const t=x(e.widthFit?.desktop);return t==="fill"||t==="fixed"}function V(e){const t={};for(const i of F){const o=e[i],n=e[T(i)],s=e[k(i)];(o!==void 0||n!==void 0||s!==void 0)&&(t[i]={desktop:o,tablet:n,phone:s})}return t}export{K as BLOCK_SHOW_KEY,E as BLOCK_SIZE_CLASS,r as TEXT_FIT_ATTR,Y as blockFillInCellClass,j as blockPhoneHideClass,R as blockSetsItsWidth,M as blockSizeOf,V as blockSizeValuesOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l}from"react/jsx-runtime";import{phoneKey as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{phoneKey as o,tabletKey as a}from"efficient-easel/draw";import{sharedColumnsDrawn as r}from"../../../../content/box-shared-columns.js";import{CountRowsContext as d,NO_COUNTS as c}from"../../../../../components/CountRowsContext.js";import h from"../../../../../components/Flex.js";import{loopDelayOf as m,loopSecondsOf as g,parseLoop as b,parseLoopDirection as u}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as f,declaredBlockSource as S,servedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as w}from"../../../../content/section-padding.js";import{sectionFillsHeight as y}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as C}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as D}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const N={...D,render:e=>{const t=l(h,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[o("gap")],gapTablet:e[a("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[o("share")],shareTablet:e[a("share")],wrapPhone:e[o("wrap")],orderPhone:e[o("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[a("columns")],separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:C(e),darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:w(e),contained:e.contained,fillHeight:y(e),shadow:e.shadow,loop:b(e.loop),scrollDirection:u(e.scrollDirection),loopSeconds:g({loopDuration:e.loopDuration}),loopDelay:m({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[o("boxShape")],boxShapeTablet:e[a("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:r(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content}),n=S(e),i=n?n===f?x(e):c:null;return l(d.Provider,{value:i,children:t})}};export{N as FlexRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as W}from"react/jsx-runtime";import{parseBlockWidthFit as D,phoneKey as o,tabletKey as l}from"efficient-easel/draw";import{blockFillInCellClass as j,blockPhoneHideClass as P,blockSizeOf as K,blockSizeValuesOf as A}from"../../content/block-size.js";import{CellWrap as L,useBoxCell as G}from"../../../components/InBoxContext.js";import{boxPhoneRowFits as X,boxRowColumnsClass as g,boxShareClasses as O,boxShareTabletOf as Z,boxTabletColumnsClass as $}from"../../../../format/lib/content/box-layout.js";import{resolveContainerDirection as v}from"../../../../format/lib/content/container-direction.js";import{containerBlocksFor as U}from"../../../../format/lib/document/container-blocks.js";import{readPartStyle as M}from"../part-styles.js";import{addShowWhenFacts as V,withRowRules as x}from"../../../../format/lib/document/show-when-attach.js";import{BOX_BLOCK_KEYS as Y}from"./cell-width.js";import{findParentNode as q}from"../../../../format/lib/document/passes/document-position.js";const J=new Set(["Text","Heading"]),Q=new Set(["h1","h2","h3","h4","h5","h6"]);function T(t,e){return t==="Heading"?!0:t!=="Text"?!1:typeof e.tag=="string"&&Q.has(e.tag)?!0:M(e,"text").textStyle?.startsWith("heading-")===!0}const a={not:{context:"blockOutsideBox",is:!0}},B={all:[a,{not:{context:"boxSharesWidth",is:!0}}]},k={all:[a,{not:{context:"boxSharesWidthPhone",is:!0}}]},C={all:[a,{not:{context:"boxSharesWidthTablet",is:!0}}]};function tt(t,e){return{any:[{field:l(t),is:e},{all:[{field:l(t),set:!1},{field:t,is:e}]}]}}function y(t,e,i){return{any:[{field:o(t),is:e},{all:[{field:o(t),set:!1},i??{field:t,is:e}]}]}}const H={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},et=[[["_gBlockSize","minWidth",l("minWidth"),o("minWidth"),"maxWidth",l("maxWidth"),o("maxWidth")],a],[["widthFit"],B],[[l("widthFit")],C],[[o("widthFit")],k],[["width"],{all:[B,{field:"widthFit",is:"fixed"}]}],[[l("width")],{all:[C,tt("widthFit","fixed")]}],[[o("width")],{all:[k,y("widthFit","fixed")]}]],I=[[["_gText","textFit",o("textFit")],a],[["minFont"],{all:[a,H]}],[[o("minFont")],{all:[a,y("textFit","shrink",H)]}]],h=(t,e)=>q(e.appState,t.props?.id),f=t=>!!t&&typeof t.type=="string"&&U(t.type)!==null,S=t=>(t.type==="Flex"||t.type==="HeroGroup")&&v(t.type,t.props?.direction)==="row",w=t=>{const e=D(t);return e!==void 0&&e!=="fit"},it={blockOutsideBox:(t,e)=>!f(h(t,e)),boxSharesWidth:(t,e)=>{const i=h(t,e);return!f(i)||!S(i)?!1:g({...i.props,direction:"row"})!==""?!0:O(i.props?.share)!==""&&!w(t.props?.widthFit)},boxSharesWidthTablet:(t,e)=>{const i=h(t,e);if(!f(i)||!S(i))return!1;if($(i.props?.[l("columns")])!==""||g({...i.props,direction:"row"})!=="")return!0;const n=Z(i.props?.[l("share")])??i.props?.share;return O(n)!==""&&!w(t.props?.[l("widthFit")]??t.props?.widthFit)},boxSharesWidthPhone:(t,e)=>{const i=h(t,e);if(!f(i)||!S(i))return!1;const n=i.props?.phoneRow;return(Number(n)===2||Number(n)===3)&&!X(n,i.props?.[o("share")])&&!w(t.props?.[o("widthFit")]??t.props?.widthFit)}},nt=t=>/^_[gds][A-Z]/.test(t);function rt(t,e,i){const n=Object.entries(t),r=n.findIndex(([c])=>c===e);if(r===-1)return null;let s=r+1;for(;s<n.length&&!nt(n[s][0]);)s++;return Object.fromEntries([...n.slice(0,s),...Object.entries(i),...n.slice(s)])}function N(t,e,i){const n=Object.entries(t);return Object.fromEntries([...n.slice(0,e),...Object.entries(i),...n.slice(e)])}function st(t,e,i){const n=Object.keys(e);if(n.includes("_dSize")){const{_gBlockSize:r,...s}=i;return N(e,n.indexOf("_dSize")+1,s)}return ot.has(t)&&n.includes("_gSpacing")?N(e,n.indexOf("_gSpacing"),i):{...e,...i}}const ot=new Set(["Text","Heading"]);function lt(t,e){const{_gText:i,...n}=e;return rt(t,"_gText",n)??{...t,...e}}function ct(t){const e=new WeakMap;return i=>{if(!i||!("textFit"in i))return i;let n=e.get(i);if(!n){n={...i};for(const r of["textFit",o("textFit")])r in n&&(n[r]=t[r]);e.set(i,n)}return n}}const Wt={name:"blockSize",applies:(t,e,i)=>Y.includes(t)&&!!i&&typeof i.render=="function",panel(t,e,i){const n=J.has(e),{text:r}=i.blockSizeFields(n?{textFit:e==="Heading"?"shrink":"wrap"}:{}),{size:s}=i.blockSizeFields({tablet:!0});let c=st(e,t.fields??{},x(s,et));if(n){const d=x(r,I);if(c=lt(c,d),e==="Text"){const z=x(i.blockSizeFields({textFit:"shrink"}).text,I),E=ct(z),b=t.resolveFields,R=(F,u)=>{const p=b?b(F,u):u.fields,m=_=>T(e,F?.props??{})?E(_??u.fields):_;return p instanceof Promise?p.then(m):m(p)};t.resolveFields=R}}t.fields=c,V(t,{...it,textWrapsByDefault:d=>!T(e,d.props??{})})},draw(t){at(t)}};function at(t){const e=t.render;t.render=i=>{const n=A(i),r=K(n),s=e(i);if(r===null)return s;const c=P(i);return W(ht,{size:r,className:c?`${r.className} ${c}`:r.className,inCell:j(n),children:s})}}function ht({size:t,className:e,inCell:i,children:n}){const r=G()?.phoneCells===!0;return W(L,{className:r&&i?`${e} ${i}`:e,...Object.keys(t.style).length?{style:t.style}:{},attrs:t.attrs,children:n})}export{Wt as blockSize,T as textShrinksByDefault};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as s}from"react/jsx-runtime";import{SlotsStartAfresh as l}from"../../../components/InBoxContext.js";import{NotASectionEdge as d}from"../../../components/SiteGutterFrame.js";const u=new Set(["Flex","Grid"]),i=
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{SlotsStartAfresh as l}from"../../../components/InBoxContext.js";import{NotASectionEdge as d}from"../../../components/SiteGutterFrame.js";const u=new Set(["Flex","Grid"]),i=e=>Object.entries(e.fields??{}).filter(([,t])=>t?.type==="slot").map(([t])=>t),S=["blockCount","blockIds"],a=new WeakMap;function h(e){const t=a.get(e);if(t)return t;const o=e,n=r=>s(d,{children:s(l,{children:s(o,{...r})})});Object.assign(n,e);for(const r of S)Object.defineProperty(n,r,{get:()=>e[r],configurable:!0,enumerable:!0});return a.set(e,n),n}const k={name:"slotsStartAfresh",applies:(e,t,o)=>!u.has(e)&&typeof o?.render=="function"&&i(o).length>0,draw(e){const t=i(e),o=e.render;e.render=n=>{const r={...n};for(const c of t){const f=n[c];typeof f=="function"&&(r[c]=h(f))}return o(r)}}};export{k as slotsStartAfresh};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-web-builder",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "54.0.0",
|
|
4
4
|
"description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@tabler/icons-react": "^3.46.0",
|
|
56
|
-
"efficient-easel": "^27.
|
|
56
|
+
"efficient-easel": "^27.7.0",
|
|
57
57
|
"efficient-shell": "^11.8.0",
|
|
58
58
|
"isomorphic-dompurify": "^3.18.0",
|
|
59
59
|
"next": ">=16",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/node": "^20",
|
|
73
73
|
"@types/react": "^19",
|
|
74
74
|
"@types/react-dom": "^19",
|
|
75
|
-
"efficient-easel": "^27.
|
|
75
|
+
"efficient-easel": "^27.7.0",
|
|
76
76
|
"efficient-shell": "^11.8.0",
|
|
77
77
|
"esbuild": "^0.28.0",
|
|
78
78
|
"happy-dom": "^20.14.5",
|