efficient-web-builder 18.3.1 → 19.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 CHANGED
@@ -1,5 +1,55 @@
1
1
  # Changelog
2
2
 
3
+ ## 19.0.0 - 2026-10-17
4
+
5
+ **A settings row may carry the shell's one show-when rule, read in ONE place** (Lewis 2026-10-17: one rule, one place; efficient-shell #516). No field carries a rule yet, so every panel draws what it drew.
6
+
7
+ ### Breaking for hosts
8
+
9
+ - **efficient-shell 7.50.0 or later is required.** The peer range narrows from `^7.48.0` to `^7.50.0`: the rows panel reads `showWhen` with the shell's `isShown`, first published in 7.50.0. On an older shell the import is missing. A narrowed range is a major (scripts/test-shell-peer-range).
10
+
11
+ ### Added for hosts
12
+
13
+ - `showWhen` on a field definition: the shell's `ShowWhenRule` as data, next to the label (`CustomField.showWhen`). The rows panel (`components/SiteFields`) drops a field whose rule is false before the Inspector draws; its value is kept. No field wraps itself.
14
+ - `lib/puck/show-when`: `visibleFields(fields, values, context)`, `showWhenContext(device, config, content, selector)`, `showWhenOf(field)`, and `withShowWhen(field, rule)` — the one way to give a field its rule, keeping the field's own type. The context a rule may read: `device` (the preview's view, in the editor's own words: `desktop` / `tablet` / `mobile`), `parentType`, and `parent` (the parent node's props, for a card-template row).
15
+
16
+ ### Changed for hosts
17
+
18
+ - **Which node owns a zone is answered once** (`lib/puck/selection-parent`: `zoneOwner(zone)`, `parentOfSelection(config, content, selector)`; Lewis's SSOT clean-up, 2026-10-17). `apply-card-corners`, `booking-preview` (`sectionIdOfBoxZone`), `pinned-chrome-doc` and `show-when` cut no zone by hand any more; each answers what it answered before (the last colon; no owner for an absent, empty or colon-less zone).
19
+
20
+ ### Not moved yet
21
+
22
+ - The 13 hand-written `resolveFields` hides. They move onto this next, as the show-when roll-out's own step.
23
+
24
+ ### Guards
25
+
26
+ - `scripts/test-shell-peer-range.ts` records the 7.50.0 floor.
27
+ - New `scripts/test-selection-parent.ts`: the cut, the parent found inside a Box, the old callers' answers, and no hand cut left in the four files. Failed first (module not found).
28
+ - New `scripts/test-field-show-when.tsx`: a `{ context: "device", is: "mobile" }` row shows only in the phone view; a `{ field: "x", is: true }` row follows x; a hidden row keeps its value (the values are frozen and come out unchanged); no rule or an unreadable one shows the row; the parent's type and values reach the rule; SiteFields is the one reader. Failed before the change (module not found).
29
+
30
+ ### Needs
31
+
32
+ - efficient-shell 7.50.0 (`isShown`).
33
+ ## 18.4.0 - 2026-10-17
34
+
35
+ **A site can show a Share button on its blog posts, and Assistant joins the fonts** (Panthera rebuild; Lewis approved the design 2026-10-17). A minor: no stored key changes, and every site draws what it drew.
36
+
37
+ ### Added for merchants
38
+
39
+ - **Site styles > Basics > Share button.** One switch for the whole site, last on the tab, with the hint "On every blog post." Off, and unset, draw no button, which is every site today. The button itself is drawn by the host's post page (the storefront's `/journal/<slug>`); nothing on the editor canvas changes.
40
+ - **Assistant** in the font list (sans, no italic: Google publishes none). A host that ships the face must load it on `--font-assistant`.
41
+
42
+ ### Added for hosts
43
+
44
+ - `SiteThemeRow.share_button_on_posts` (optional boolean; the backend column comes with it). The editor seeds it from the row with `=== true` and saves it immediately, like Photography.
45
+ - `PreviewHeaderContext`: `shareButtonOnPosts` / `setShareButtonOnPosts`; `PreviewHeaderProvider` takes `shareButtonOnPosts` / `onShareButtonOnPostsChange`.
46
+ - `FONT_OPTIONS` gains `assistant` (`--font-assistant`). A host whose guards count one loader per option (storefront-blocks `test-self-hosted-fonts`) must add the face in the same bump.
47
+
48
+ ### Guards
49
+
50
+ - New `scripts/test-site-share-button.tsx` (7): the row's name, glyph and switch; unset = off; the hint folds; the patch key; the Basics placement and template hiding; the seed; Assistant with no italic. Red before the change (the component and the option did not exist).
51
+ - `scripts/test-site-styles-basics-tab.tsx` renders the Share button row with the other Basics rows.
52
+
3
53
  ## 18.3.1 - 2026-10-17
4
54
 
5
55
  **A preset's picture reaches the edge of its half** (GG 2026-10-17). 18.3.0 seeds a new Box with `padV2` and Padding 24/24, and the section presets (Brand Text, Image & Text Split) build their boxes from those defaults, so their PICTURE box was born storing 24/24, against the presets' own words ("No padding, so the picture bleeds"). The picture box now keeps `padV2` and stores no top or bottom padding, so it draws none (`pictureBox` in `lib/sections/section-presets`). The words' box keeps its 100s. Only a preset placed from now on changes; every stored page draws what it drew.
@@ -47,6 +47,8 @@ type Ctx = {
47
47
  setHeroBackgroundFollowsWidth: (v: boolean | null) => void;
48
48
  photographyGrayscale: boolean | null;
49
49
  setPhotographyGrayscale: (v: boolean | null) => void;
50
+ shareButtonOnPosts: boolean | null;
51
+ setShareButtonOnPosts: (v: boolean | null) => void;
50
52
  themeFromDocument: boolean;
51
53
  selected: boolean;
52
54
  setSelected: (b: boolean) => void;
@@ -54,7 +56,7 @@ type Ctx = {
54
56
  setSelectHandler: (fn: () => void) => void;
55
57
  };
56
58
  export declare const PreviewHeaderContext: import("react").Context<Ctx>;
57
- export declare function PreviewHeaderProvider({ children, websiteName, templateChrome, templateName, chromePlaceholder, themeMode, onThemeModeChange, themeSwitchShown, onThemeSwitchShownChange, theme, onThemeChange, fonts, onFontsChange, sizes, onSizesChange, cornerRadiusPx, onCornerRadiusPxChange, cardShadow, onCardShadowChange, shadowColor, onShadowColorChange, cardGap, onCardGapChange, hoverEffect, onHoverEffectChange, headingCompression, onHeadingCompressionChange, siteWidth, onSiteWidthChange, siteGutter, blockGap, onSiteGutterChange, onBlockGapChange, headingTypography, onHeadingTypographyChange, textStyles, onTextStylesChange, heroBackgroundFollowsWidth, onHeroBackgroundFollowsWidthChange, photographyGrayscale, onPhotographyGrayscaleChange, themeFromDocument, }: {
59
+ export declare function PreviewHeaderProvider({ children, websiteName, templateChrome, templateName, chromePlaceholder, themeMode, onThemeModeChange, themeSwitchShown, onThemeSwitchShownChange, theme, onThemeChange, fonts, onFontsChange, sizes, onSizesChange, cornerRadiusPx, onCornerRadiusPxChange, cardShadow, onCardShadowChange, shadowColor, onShadowColorChange, cardGap, onCardGapChange, hoverEffect, onHoverEffectChange, headingCompression, onHeadingCompressionChange, siteWidth, onSiteWidthChange, siteGutter, blockGap, onSiteGutterChange, onBlockGapChange, headingTypography, onHeadingTypographyChange, textStyles, onTextStylesChange, heroBackgroundFollowsWidth, onHeroBackgroundFollowsWidthChange, photographyGrayscale, onPhotographyGrayscaleChange, shareButtonOnPosts, onShareButtonOnPostsChange, themeFromDocument, }: {
58
60
  children: ReactNode;
59
61
  websiteName?: string | null;
60
62
  templateChrome?: boolean;
@@ -96,6 +98,8 @@ export declare function PreviewHeaderProvider({ children, websiteName, templateC
96
98
  onHeroBackgroundFollowsWidthChange?: (v: boolean | null) => void;
97
99
  photographyGrayscale?: boolean | null;
98
100
  onPhotographyGrayscaleChange?: (v: boolean | null) => void;
101
+ shareButtonOnPosts?: boolean | null;
102
+ onShareButtonOnPostsChange?: (v: boolean | null) => void;
99
103
  themeFromDocument?: boolean;
100
104
  }): import("react").JSX.Element;
101
105
  export declare const usePreviewHeader: () => Ctx;
@@ -1 +1 @@
1
- "use client";import{jsx as k}from"react/jsx-runtime";import{createContext as Le,useCallback as t,useContext as Ue,useMemo as ge,useState as y}from"react";import{EditorSiteLogoContext as Me}from"./SiteLogoContext.js";import{useSelectHandler as Re}from"../lib/puck/preview-selection-context.js";import{IDENTITY_CARD_GAP as L,DEFAULT_HEADING_COMPRESSION as U,DEFAULT_HEADING_TYPOGRAPHY as g,DEFAULT_SIZES as M,DEFAULT_SWITCH_SHOWN as R,DEFAULT_THEME_MODE as O,DEFAULT_THEME_VALUE as W}from"../lib/theme.js";import{DEFAULT_FONTS as N}from"../lib/fonts.js";const B=Le({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:O,setThemeMode:()=>{},themeSwitchShown:R,setThemeSwitchShown:()=>{},theme:W,setTheme:()=>{},fonts:N,setFonts:()=>{},sizes:M,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:L,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:U,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,blockGap:null,setSiteGutter:()=>{},setBlockGap:()=>{},headingTypography:g,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},themeFromDocument:!1,selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function ze({children:Y,websiteName:o=null,templateChrome:l=!1,templateName:r=null,chromePlaceholder:n=!1,themeMode:j=O,onThemeModeChange:c,themeSwitchShown:z=R,onThemeSwitchShownChange:i,theme:b=W,onThemeChange:u,fonts:V=N,onFontsChange:d,sizes:Z=M,onSizesChange:S,cornerRadiusPx:q=null,onCornerRadiusPxChange:a,cardShadow:J=null,onCardShadowChange:p,shadowColor:K=null,onShadowColorChange:E,cardGap:Q=L,onCardGapChange:f,hoverEffect:X=null,onHoverEffectChange:T,headingCompression:$=U,onHeadingCompressionChange:m,siteWidth:C=null,onSiteWidthChange:H,siteGutter:ee=null,blockGap:te=null,onSiteGutterChange:D,onBlockGapChange:_,headingTypography:se=g,onHeadingTypographyChange:w,textStyles:le=null,onTextStylesChange:x,heroBackgroundFollowsWidth:oe=null,onHeroBackgroundFollowsWidthChange:A,photographyGrayscale:re=null,onPhotographyGrayscaleChange:v,themeFromDocument:ne=!1}){const[s,F]=y(null),ce=t(e=>F(ye=>ye??e),[]),[ie,ue]=y(!1),de=t(e=>c?.(e),[c]),Se=t(e=>i?.(e),[i]),ae=t(e=>u?.(e),[u]),pe=t(e=>d?.(e),[d]),Ee=t(e=>S?.(e),[S]),fe=t(e=>H?.(e),[H]),Te=t(e=>D?.(e),[D]),me=t(e=>_?.(e),[_]),He=t(e=>A?.(e),[A]),De=t(e=>v?.(e),[v]),_e=t(e=>a?.(e),[a]),we=t(e=>p?.(e),[p]),xe=t(e=>E?.(e),[E]),Ae=t(e=>f?.(e),[f]),ve=t(e=>T?.(e),[T]),Fe=t(e=>m?.(e),[m]),Ge=t(e=>w?.(e),[w]),Pe=t(e=>x?.(e),[x]),{select:he,setSelectHandler:Ie}=Re(),G=s?.logoUrl,P=s?.logoReversed,h=s?.logoInkIsDark,I=s!==null,ke=ge(()=>({logo:I?{logoUrl:G,logoReversed:P,logoInkIsDark:h}:null,placeholder:l||n,wordmark:l?r:o}),[I,G,P,h,l,n,r,o]);return k(Me.Provider,{value:ke,children:k(B.Provider,{value:{settings:s,setSettings:F,primeSettings:ce,websiteName:o,templateChrome:l,templateName:r,chromePlaceholder:n,themeMode:j,setThemeMode:de,themeSwitchShown:z,setThemeSwitchShown:Se,theme:b,setTheme:ae,fonts:V,setFonts:pe,sizes:Z,setSizes:Ee,cornerRadiusPx:q,setCornerRadiusPx:_e,cardShadow:J,setCardShadow:we,shadowColor:K,setShadowColor:xe,cardGap:Q,setCardGap:Ae,hoverEffect:X,setHoverEffect:ve,headingCompression:$,setHeadingCompression:Fe,siteWidth:C,setSiteWidth:fe,siteGutter:ee,blockGap:te,setSiteGutter:Te,setBlockGap:me,headingTypography:se,setHeadingTypography:Ge,textStyles:le,setTextStyles:Pe,heroBackgroundFollowsWidth:oe,setHeroBackgroundFollowsWidth:He,photographyGrayscale:re,setPhotographyGrayscale:De,themeFromDocument:ne,selected:ie,setSelected:ue,select:he,setSelectHandler:Ie},children:Y})})}const be=()=>Ue(B);export{B as PreviewHeaderContext,ze as PreviewHeaderProvider,be as usePreviewHeader};
1
+ "use client";import{jsx as y}from"react/jsx-runtime";import{createContext as gt,useCallback as e,useContext as Mt,useMemo as Rt,useState as L}from"react";import{EditorSiteLogoContext as Wt}from"./SiteLogoContext.js";import{useSelectHandler as Bt}from"../lib/puck/preview-selection-context.js";import{IDENTITY_CARD_GAP as U,DEFAULT_HEADING_COMPRESSION as O,DEFAULT_HEADING_TYPOGRAPHY as g,DEFAULT_SIZES as M,DEFAULT_SWITCH_SHOWN as R,DEFAULT_THEME_MODE as W,DEFAULT_THEME_VALUE as B}from"../lib/theme.js";import{DEFAULT_FONTS as N}from"../lib/fonts.js";const Y=gt({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:W,setThemeMode:()=>{},themeSwitchShown:R,setThemeSwitchShown:()=>{},theme:B,setTheme:()=>{},fonts:N,setFonts:()=>{},sizes:M,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:U,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:O,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,blockGap:null,setSiteGutter:()=>{},setBlockGap:()=>{},headingTypography:g,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1,selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function Zt({children:j,websiteName:o=null,templateChrome:l=!1,templateName:r=null,chromePlaceholder:n=!1,themeMode:z=W,onThemeModeChange:c,themeSwitchShown:b=R,onThemeSwitchShownChange:u,theme:V=B,onThemeChange:i,fonts:Z=N,onFontsChange:d,sizes:q=M,onSizesChange:S,cornerRadiusPx:J=null,onCornerRadiusPxChange:a,cardShadow:K=null,onCardShadowChange:p,shadowColor:Q=null,onShadowColorChange:E,cardGap:X=U,onCardGapChange:f,hoverEffect:$=null,onHoverEffectChange:T,headingCompression:C=O,onHeadingCompressionChange:m,siteWidth:tt=null,onSiteWidthChange:H,siteGutter:et=null,blockGap:st=null,onSiteGutterChange:D,onBlockGapChange:_,headingTypography:lt=g,onHeadingTypographyChange:P,textStyles:ot=null,onTextStylesChange:w,heroBackgroundFollowsWidth:rt=null,onHeroBackgroundFollowsWidthChange:x,photographyGrayscale:nt=null,onPhotographyGrayscaleChange:A,shareButtonOnPosts:ct=null,onShareButtonOnPostsChange:h,themeFromDocument:ut=!1}){const[s,v]=L(null),it=e(t=>v(Ot=>Ot??t),[]),[dt,St]=L(!1),at=e(t=>c?.(t),[c]),pt=e(t=>u?.(t),[u]),Et=e(t=>i?.(t),[i]),ft=e(t=>d?.(t),[d]),Tt=e(t=>S?.(t),[S]),mt=e(t=>H?.(t),[H]),Ht=e(t=>D?.(t),[D]),Dt=e(t=>_?.(t),[_]),_t=e(t=>x?.(t),[x]),Pt=e(t=>A?.(t),[A]),wt=e(t=>h?.(t),[h]),xt=e(t=>a?.(t),[a]),At=e(t=>p?.(t),[p]),ht=e(t=>E?.(t),[E]),vt=e(t=>f?.(t),[f]),Ft=e(t=>T?.(t),[T]),Gt=e(t=>m?.(t),[m]),It=e(t=>P?.(t),[P]),kt=e(t=>w?.(t),[w]),{select:yt,setSelectHandler:Lt}=Bt(),F=s?.logoUrl,G=s?.logoReversed,I=s?.logoInkIsDark,k=s!==null,Ut=Rt(()=>({logo:k?{logoUrl:F,logoReversed:G,logoInkIsDark:I}:null,placeholder:l||n,wordmark:l?r:o}),[k,F,G,I,l,n,r,o]);return y(Wt.Provider,{value:Ut,children:y(Y.Provider,{value:{settings:s,setSettings:v,primeSettings:it,websiteName:o,templateChrome:l,templateName:r,chromePlaceholder:n,themeMode:z,setThemeMode:at,themeSwitchShown:b,setThemeSwitchShown:pt,theme:V,setTheme:Et,fonts:Z,setFonts:ft,sizes:q,setSizes:Tt,cornerRadiusPx:J,setCornerRadiusPx:xt,cardShadow:K,setCardShadow:At,shadowColor:Q,setShadowColor:ht,cardGap:X,setCardGap:vt,hoverEffect:$,setHoverEffect:Ft,headingCompression:C,setHeadingCompression:Gt,siteWidth:tt,setSiteWidth:mt,siteGutter:et,blockGap:st,setSiteGutter:Ht,setBlockGap:Dt,headingTypography:lt,setHeadingTypography:It,textStyles:ot,setTextStyles:kt,heroBackgroundFollowsWidth:rt,setHeroBackgroundFollowsWidth:_t,photographyGrayscale:nt,setPhotographyGrayscale:Pt,shareButtonOnPosts:ct,setShareButtonOnPosts:wt,themeFromDocument:ut,selected:dt,setSelected:St,select:yt,setSelectHandler:Lt},children:j})})}const qt=()=>Mt(Y);export{Y as PreviewHeaderContext,Zt as PreviewHeaderProvider,qt as usePreviewHeader};
@@ -0,0 +1,7 @@
1
+ export declare const SITE_SHARE_BUTTON_LABEL = "Share button";
2
+ export declare const SITE_SHARE_BUTTON_HINT = "On every blog post.";
3
+ export default function ShareButtonField({ value, onChange, showHint, }: {
4
+ value: boolean | null;
5
+ onChange: (v: boolean) => void;
6
+ showHint?: boolean;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";import{jsx as e}from"react/jsx-runtime";import{useId as a}from"react";import{SettingsField as l,SettingsSwitch as s}from"efficient-easel/panel";import{ShareIcon as c}from"efficient-easel/icons";import{say as o}from"../lib/editor-words.js";const d="Share button",m="On every blog post.";function u({value:r,onChange:n,showHint:i=!0}){const t=a();return e(l,{label:o(d),labelId:t,icon:e(c,{}),action:e(s,{checked:r===!0,onChange:n,ariaLabelledBy:t}),hint:i?o(m):void 0})}export{m as SITE_SHARE_BUTTON_HINT,d as SITE_SHARE_BUTTON_LABEL,u as default};
@@ -1 +1 @@
1
- "use client";import{jsx as S}from"react/jsx-runtime";import{useLayoutEffect as O,useMemo as B,useRef as k,useState as T}from"react";import{useSelectedFields as D}from"efficient-easel/easel";import{Inspector as K,planFields as x}from"efficient-easel/fields";import{BUCKET_ICONS as j,entriesHiddenForTab as v}from"../lib/puck/controls.js";import{BUCKETS as L}from"../lib/puck/field-groups.js";import{say as q}from"../lib/editor-words.js";import{bandIsDropped as R,droppedBands as U,sameKeys as X,TEXT_BAND_KEY as C,TEXT_BAND_TITLE as G,withoutBands as H}from"../lib/puck/panel-bands.js";const E=new Map,f=new Set;function P(n,l){const s=new Map;for(const r of n.querySelectorAll(".es-insp-row[data-field]"))s.set(r.getAttribute("data-field")??"",r);const o=[];for(const[r,m]of l)o.push({key:r,rows:m.map(p=>{const d=s.get(p),c=!!d&&[...d.children].some(w=>!w.hidden),i=d?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:c,labelled:c&&!!i}})});return o}const Y=Object.fromEntries(L.map(n=>{const l=j[n];return[n,S(l,{},n)]}));function te({entries:n,entryCount:l=0}){const{id:s,fields:o,values:r,readOnly:m,onChange:p}=D(),[d,c]=T(()=>new Set(f)),[i,w]=T(()=>new Set),g=k(null),F=B(()=>{const e=new Map;for(const t of x(o).rows){if(!t.fold)continue;const a=e.get(t.fold.key)??[];a.push(t.name),e.set(t.fold.key,a)}return e},[o]);O(()=>{const e=g.current?.parentElement;if(!e)return;const t=new Set(U(P(e,F)));w(a=>X(a,t)?a:t)});const _=B(()=>H(o,i),[o,i]),A={key:C,rows:Array.from({length:l},()=>({shown:!0,labelled:!0}))},I=R(A)?void 0:{key:C,title:G},[b,M]=T(()=>E.get(s)),y=E.get(s),u=x(o).buckets,h=y&&u.includes(y)?y:b&&u.includes(b)?b:u[0],N=h===void 0||v(u,h)!==!0;return S(K,{fields:_,values:r,onChange:p,readOnly:m,tab:h,onTab:e=>{E.set(s,e),M(e)},tabIcons:Y,idPrefix:s,ariaLabel:q("Section settings"),lead:N?n:null,leadFold:I,closedFolds:d,onFold:(e,t)=>{t?f.delete(e):f.add(e),c(new Set(f))},children:S("span",{ref:g,hidden:!0})})}export{te as SiteFields,Y as TAB_ICONS};
1
+ "use client";import{jsx as E}from"react/jsx-runtime";import{useLayoutEffect as j,useMemo as C,useRef as L,useState as T}from"react";import{useEasel as q,useSelectedFields as P}from"efficient-easel/easel";import{Inspector as R,planFields as F}from"efficient-easel/fields";import{BUCKET_ICONS as U,entriesHiddenForTab as X}from"../lib/puck/controls.js";import{BUCKETS as G}from"../lib/puck/field-groups.js";import{say as H}from"../lib/editor-words.js";import{usePreviewDevice as W}from"./PreviewDeviceContext.js";import{showWhenContext as Y,visibleFields as z}from"../lib/puck/show-when.js";import{bandIsDropped as J,droppedBands as Q,sameKeys as V,TEXT_BAND_KEY as v,TEXT_BAND_TITLE as Z,withoutBands as $}from"../lib/puck/panel-bands.js";const g=new Map,f=new Set;function ee(o,r){const n=new Map;for(const s of o.querySelectorAll(".es-insp-row[data-field]"))n.set(s.getAttribute("data-field")??"",s);const a=[];for(const[s,m]of r)a.push({key:s,rows:m.map(p=>{const l=n.get(p),d=!!l&&[...l.children].some(b=>!b.hidden),w=l?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:d,labelled:d&&!!w}})});return a}const te=Object.fromEntries(G.map(o=>{const r=U[o];return[o,E(r,{},o)]}));function fe({entries:o,entryCount:r=0}){const{id:n,fields:a,values:s,readOnly:m,onChange:p}=P(),l=W(),{appState:d,config:w}=q(e=>e),b=Y(l,w,d.data.content??[],d.ui.itemSelector),c=z(a,s,b),[_,A]=T(()=>new Set(f)),[x,I]=T(()=>new Set),B=L(null),M=C(()=>{const e=new Map;for(const t of F(c).rows){if(!t.fold)continue;const i=e.get(t.fold.key)??[];i.push(t.name),e.set(t.fold.key,i)}return e},[c]);j(()=>{const e=B.current?.parentElement;if(!e)return;const t=new Set(Q(ee(e,M)));I(i=>V(i,t)?i:t)});const D=C(()=>$(c,x),[c,x]),N={key:v,rows:Array.from({length:r},()=>({shown:!0,labelled:!0}))},O=J(N)?void 0:{key:v,title:Z},[h,k]=T(()=>g.get(n)),y=g.get(n),u=F(c).buckets,S=y&&u.includes(y)?y:h&&u.includes(h)?h:u[0],K=S===void 0||X(u,S)!==!0;return E(R,{fields:D,values:s,onChange:p,readOnly:m,tab:S,onTab:e=>{g.set(n,e),k(e)},tabIcons:te,idPrefix:n,ariaLabel:H("Section settings"),lead:K?o:null,leadFold:O,closedFolds:_,onFold:(e,t)=>{t?f.delete(e):f.add(e),A(new Set(f))},children:E("span",{ref:B,hidden:!0})})}export{fe as SiteFields,te as TAB_ICONS};
@@ -1 +1 @@
1
- "use client";import{jsx as o}from"react/jsx-runtime";import{useCallback as R,useEffect as S,useMemo as l,useRef as V,useState as u}from"react";import x from"next/dynamic";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/screen.css";import"./storefront-editor.css";import{buildConfig as X}from"../lib/puck/build-config.js";import{withTemplateMediaPlaceholders as Z}from"../lib/puck/templateFields.js";import{setEditorPageSlug as B}from"../lib/puck/editor-page-context.js";import{StorefrontDocumentContext as $}from"./StorefrontDocumentContext.js";import{PreviewHeaderProvider as ee}from"./PreviewHeaderContext.js";import{PreviewTickerProvider as te}from"./PreviewTickerContext.js";import{PreviewPartsProvider as re}from"./PreviewPartsContext.js";import{PreviewLocationPartProvider as oe}from"./PreviewLocationPartContext.js";import{PreviewPartStyleProvider as ie}from"./PreviewPartStyleContext.js";import{sectionTemplates as O}from"../lib/editor-section-templates.js";import{nodeToDoc as ne,docToNode as F}from"../lib/puck/section-doc.js";import{newNodeId as se}from"../lib/puck/content-tree.js";import{migrateRenamedProps as de}from"../lib/puck/renamed-props.js";import{buildSlotSeedChildren as ae}from"../lib/puck/slot-specs.js";import{FOOTER_TYPE as ce,buildDefaultFooterBlocks as me}from"../lib/puck/footer-blocks.js";import{NO_BRIDGED_CAPABILITIES as le,useAdminBridge as ue}from"../lib/editor-admin-bridge.js";import{useEditorHost as fe}from"../lib/editor-host.js";import{ChromeWrap as pe}from"../lib/editor-chrome.js";import{sessionRegistry as ve}from"../lib/editor-session.js";import{useEditorSession as ge}from"../lib/editor-session-context.js";import{say as H}from"../lib/editor-words.js";import{routeSharedHostMessage as he}from"../lib/editor-host-inbound.js";import{routeWebsiteHostMessage as Se}from"../lib/website-host-inbound.js";import{DEFAULT_THEME_MODE as P,THEME_MODE_KEY as Pe}from"../lib/theme.js";import{makeSitePageAdapter as L}from"../lib/editor-document-adapter.js";import{documentPermissions as Ee}from"efficient-easel/edit-lock";import{useAutosave as ye}from"efficient-easel/autosave";import{saveStatusOf as Te}from"../lib/puck/pinned-seed-gate.js";import{blocksOf as we}from"../lib/website-session.js";const Ne=x(()=>import("./SiteEditorProvider.js"),{ssr:!1}),ke=x(()=>import("./SectionEditorShell.js"),{ssr:!1}),U="HeroSingle",Y="Untitled section";function Ae(i,E){const d=E.components,r=d[i]?i:U,y=d[r]?.defaultProps??{},n=ae(r,f=>d[f]?.defaultProps??{}),s=r===ce?{blocks:me()}:null;return{type:r,props:{id:se(r),...y,...n?{[n.slot]:n.children}:null,...s}}}function Ce(){if(typeof window>"u")return P;try{const i=window.localStorage.getItem(Pe);return i==="light"||i==="dark"||i==="auto"?i:P}catch{return P}}function Ie({id:i,initialType:E,initialName:d=Y}){const[r,y]=u(i),n=V(r);S(()=>{n.current=r},[r]);const s=fe(),[f,j]=u(E),[b,K]=u(d),[a,T]=u(void 0),[W,G]=u(P),{token:w,tokenRef:M}=ue({onMessage:e=>{if(Se(e)||he(e))return;const t=e;if(t?.type==="storefront-editor:navigate"&&t.target?.kind==="section"&&t.target.id){const I=t.target.id;if(I===n.current)return;const J=t.target.type,Q=t.target.name;k().then(()=>{j(J),K(Q||Y),y(I),s.address.show({kind:"section",id:I})})}}}),N=ye({save:e=>O.update(e.id,e.node).then(()=>{}),onFailure:(e,t)=>{t===0&&s.send("storefront-editor:save-failed")}}),{state:p,push:_,flush:k}=N;S(()=>G(Ce()),[]);const c=ge(),v=c.usesBridgedToken?!!w:!0,g=l(()=>X(ve(c),we(c)),[c]);S(()=>{if(!v)return;let e=!1;return T(void 0),O.ensure(r,b,Ae(f??U,g)).then(t=>!e&&T(t.node)).catch(()=>!e&&T(null)),()=>{e=!0}},[r,f,b,v,g]);const A=R(e=>{s.send("storefront-editor:dirty");const t=F(e);t&&_({id:n.current,node:t})},[_,s]),h=s.send,D=R(async e=>{try{return await e(M.current??""),!0}catch{return h("storefront-editor:save-failed"),!1}},[h]),q=l(()=>Z(g,!0),[g]);S(()=>(B(null),()=>B(null)),[]);const m=l(()=>a?de(ne(a)):null,[a]),C=l(()=>({target:{kind:"page",slug:""},adapter:L(void 0),capabilities:L(void 0).capabilities,templateId:null,currentSlug:"",currentKind:null,siteId:null,ready:v,token:w,tokenRef:M,notifyParent:h,runAuthed:D,docId:r,data:m,getLiveData:()=>m,footerOriginSlug:null,error:null,redirecting:!1,saveStatus:Te(p),saveState:p,autoSaveEnabled:!0,autoSaveStoppedByConflict:!1,hasUnsavedEdits:p.pending,toggleAutoSave:()=>{},retrySave:()=>{N.retryNow()},onChange:A,flushSave:k,onPublish:async e=>{const t=F(e);t&&await O.update(n.current,t)},bridgeCapabilities:le,access:{kind:"editing"},readOnly:!1,takeOverEditing:()=>{},viewReadOnly:()=>{},saveConflict:null,reloadFromServer:()=>{},navigate:()=>{},pendingNav:null,cancelPendingNav:()=>{},discardAndNavigate:()=>{},saveAndNavigate:async()=>{}}),[r,v,w,h,D,m,p,A,k,N.retryNow]),z=l(()=>Ee(!C.readOnly),[C.readOnly]);return a===void 0?o("div",{className:"sf-msg",children:H("Loading…")}):a===null||!m?o("div",{className:"sf-msg sf-msg--error",children:H("Couldn’t open this section.")}):o($.Provider,{value:C,children:o(ee,{themeMode:W,chromePlaceholder:!0,children:o(pe,{wrap:c.chrome?.wrap,surface:"section",children:o(te,{children:o(re,{children:o(oe,{children:o(ie,{children:o(Ne,{config:q,data:m,onChange:A,permissions:z,children:o(ke,{})},r)})})})})})})})}export{Ie as default};
1
+ "use client";import{jsx as o}from"react/jsx-runtime";import{useCallback as R,useEffect as S,useMemo as l,useRef as V,useState as u}from"react";import x from"next/dynamic";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/screen.css";import"./storefront-editor.css";import{buildConfig as X}from"../lib/puck/build-config.js";import{withTemplateMediaPlaceholders as Z}from"../lib/puck/templateFields.js";import{setEditorPageSlug as B}from"../lib/puck/editor-page-context.js";import{StorefrontDocumentContext as $}from"./StorefrontDocumentContext.js";import{PreviewHeaderProvider as ee}from"./PreviewHeaderContext.js";import{PreviewTickerProvider as te}from"./PreviewTickerContext.js";import{PreviewPartsProvider as re}from"./PreviewPartsContext.js";import{PreviewLocationPartProvider as oe}from"./PreviewLocationPartContext.js";import{PreviewPartStyleProvider as ie}from"./PreviewPartStyleContext.js";import{sectionTemplates as O}from"../lib/editor-section-templates.js";import{nodeToDoc as ne,docToNode as F}from"../lib/puck/section-doc.js";import{newNodeId as se}from"../lib/puck/content-tree.js";import{migrateRenamedProps as de}from"../lib/puck/renamed-props.js";import{buildSlotSeedChildren as ae}from"../lib/puck/slot-specs.js";import{FOOTER_TYPE as ce,buildDefaultFooterBlocks as me}from"../lib/puck/footer-blocks.js";import{NO_BRIDGED_CAPABILITIES as le,useAdminBridge as ue}from"../lib/editor-admin-bridge.js";import{useEditorHost as fe}from"../lib/editor-host.js";import{ChromeWrap as pe}from"../lib/editor-chrome.js";import{sessionRegistry as ve}from"../lib/editor-session.js";import{useEditorSession as ge}from"../lib/editor-session-context.js";import{say as H}from"../lib/editor-words.js";import{retargetWhenSaved as he}from"../lib/section-retarget.js";import{routeSharedHostMessage as Se}from"../lib/editor-host-inbound.js";import{routeWebsiteHostMessage as Pe}from"../lib/website-host-inbound.js";import{DEFAULT_THEME_MODE as P,THEME_MODE_KEY as Ee}from"../lib/theme.js";import{makeSitePageAdapter as L}from"../lib/editor-document-adapter.js";import{documentPermissions as ye}from"efficient-easel/edit-lock";import{useAutosave as Te}from"efficient-easel/autosave";import{saveStatusOf as we}from"../lib/puck/pinned-seed-gate.js";import{blocksOf as Ne}from"../lib/website-session.js";const ke=x(()=>import("./SiteEditorProvider.js"),{ssr:!1}),Ae=x(()=>import("./SectionEditorShell.js"),{ssr:!1}),U="HeroSingle",W="Untitled section";function Ce(i,E){const d=E.components,r=d[i]?i:U,y=d[r]?.defaultProps??{},n=ae(r,f=>d[f]?.defaultProps??{}),s=r===ce?{blocks:me()}:null;return{type:r,props:{id:se(r),...y,...n?{[n.slot]:n.children}:null,...s}}}function Ie(){if(typeof window>"u")return P;try{const i=window.localStorage.getItem(Ee);return i==="light"||i==="dark"||i==="auto"?i:P}catch{return P}}function Oe({id:i,initialType:E,initialName:d=W}){const[r,y]=u(i),n=V(r);S(()=>{n.current=r},[r]);const s=fe(),[f,Y]=u(E),[b,j]=u(d),[a,T]=u(void 0),[K,G]=u(P),{token:w,tokenRef:M}=ue({onMessage:e=>{if(Pe(e)||Se(e))return;const t=e;if(t?.type==="storefront-editor:navigate"&&t.target?.kind==="section"&&t.target.id){const I=t.target.id;if(I===n.current)return;const J=t.target.type,Q=t.target.name;he(k,()=>{Y(J),j(Q||W),y(I),s.address.show({kind:"section",id:I})},()=>s.send("storefront-editor:save-failed"))}}}),N=Te({save:e=>O.update(e.id,e.node).then(()=>{}),onFailure:(e,t)=>{t===0&&s.send("storefront-editor:save-failed")}}),{state:p,push:_,flush:k}=N;S(()=>G(Ie()),[]);const c=ge(),v=c.usesBridgedToken?!!w:!0,g=l(()=>X(ve(c),Ne(c)),[c]);S(()=>{if(!v)return;let e=!1;return T(void 0),O.ensure(r,b,Ce(f??U,g)).then(t=>!e&&T(t.node)).catch(()=>!e&&T(null)),()=>{e=!0}},[r,f,b,v,g]);const A=R(e=>{s.send("storefront-editor:dirty");const t=F(e);t&&_({id:n.current,node:t})},[_,s]),h=s.send,D=R(async e=>{try{return await e(M.current??""),!0}catch{return h("storefront-editor:save-failed"),!1}},[h]),q=l(()=>Z(g,!0),[g]);S(()=>(B(null),()=>B(null)),[]);const m=l(()=>a?de(ne(a)):null,[a]),C=l(()=>({target:{kind:"page",slug:""},adapter:L(void 0),capabilities:L(void 0).capabilities,templateId:null,currentSlug:"",currentKind:null,siteId:null,ready:v,token:w,tokenRef:M,notifyParent:h,runAuthed:D,docId:r,data:m,getLiveData:()=>m,footerOriginSlug:null,error:null,redirecting:!1,saveStatus:we(p),saveState:p,autoSaveEnabled:!0,autoSaveStoppedByConflict:!1,hasUnsavedEdits:p.pending,toggleAutoSave:()=>{},retrySave:()=>{N.retryNow()},onChange:A,flushSave:k,onPublish:async e=>{const t=F(e);t&&await O.update(n.current,t)},bridgeCapabilities:le,access:{kind:"editing"},readOnly:!1,takeOverEditing:()=>{},viewReadOnly:()=>{},saveConflict:null,reloadFromServer:()=>{},navigate:()=>{},pendingNav:null,cancelPendingNav:()=>{},discardAndNavigate:()=>{},saveAndNavigate:async()=>{}}),[r,v,w,h,D,m,p,A,k,N.retryNow]),z=l(()=>ye(!C.readOnly),[C.readOnly]);return a===void 0?o("div",{className:"sf-msg",children:H("Loading…")}):a===null||!m?o("div",{className:"sf-msg sf-msg--error",children:H("Couldn’t open this section.")}):o($.Provider,{value:C,children:o(ee,{themeMode:K,chromePlaceholder:!0,children:o(pe,{wrap:c.chrome?.wrap,surface:"section",children:o(te,{children:o(re,{children:o(oe,{children:o(ie,{children:o(ke,{config:q,data:m,onChange:A,permissions:z,children:o(Ae,{})},r)})})})})})})})}export{Oe as default};
@@ -1 +1 @@
1
- "use client";import{jsx as u,jsxs as ot}from"react/jsx-runtime";import{useCallback as a,useEffect as p,useMemo as M,useRef as S,useState as r}from"react";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/drag.css";import"efficient-easel/screen.css";import"./storefront-editor.css";import{buildConfig as nt}from"../lib/puck/build-config.js";import{ChromeWrap as at}from"../lib/editor-chrome.js";import{sessionRegistry as it}from"../lib/editor-session.js";import{backendOf as G,blocksOf as ct}from"../lib/website-session.js";import{useEditorSession as st}from"../lib/editor-session-context.js";import{withSiteBlockGapFields as dt}from"../lib/puck/site-gap-fields.js";import{withTemplateMediaPlaceholders as ut}from"../lib/puck/templateFields.js";import{setEditorPage as se}from"../lib/puck/editor-page-context.js";import{resolveSiteName as ht}from"../lib/content/site-name.js";import{normalizeSiteGutter as lt,normalizeSiteWidth as mt}from"../lib/content/page-width.js";import{normalizeSiteBlockGap as pt}from"../lib/content/container-gap.js";import St,{DocumentScreen as ft}from"./EditorScreenMount.js";import{useStorefrontDocument as gt}from"./StorefrontDocumentContext.js";import{PreviewHeaderProvider as wt}from"./PreviewHeaderContext.js";import{PreviewFooterProvider as Ct}from"./PreviewFooterContext.js";import{PreviewChatProvider as Tt,DEFAULT_CHAT_PREVIEW as Et}from"./PreviewChatContext.js";import{PreviewSocialProvider as _t}from"./PreviewSocialContext.js";import{useSocialSettings as yt}from"./useSocialSettings.js";import{PreviewSurfaceProvider as Pt}from"./PreviewSurfaceContext.js";import{WEBSITE_ADDRESSING as vt}from"../lib/website-document-addressing.js";import{PreviewTickerProvider as Ht}from"./PreviewTickerContext.js";import{PreviewPartsProvider as It}from"./PreviewPartsContext.js";import{PreviewLocationPartProvider as Mt}from"./PreviewLocationPartContext.js";import{PreviewPartStyleProvider as Gt}from"./PreviewPartStyleContext.js";import{SiteMapsProvider as Rt,readSiteMapsKey as kt,writeSiteMapsKey as de,readSiteMapId as At,writeSiteMapId as Dt}from"../lib/maps-config.js";import{CORNER_STYLE_TO_PX as Ft,DEFAULT_HEADING_COMPRESSION as Wt,DEFAULT_HEADING_TYPOGRAPHY as xt,DEFAULT_SWITCH_SHOWN as R,DEFAULT_SIZES as Nt,DEFAULT_THEME_MODE as C,normalizeCornerRadius as bt,normalizeCornerStyle as zt,normalizeCardShadow as Bt,normalizeCardGap as Ot,normalizeHoverEffect as Kt,normalizeShadowColor as Lt,IDENTITY_CARD_GAP as ue,IDENTITY_CARD_SHADOW as Yt,IDENTITY_HOVER_EFFECT as Ut,THEME_MODE_KEY as he,THEME_STORAGE_KEY as jt,THEME_SWITCH_HIDE as le,THEME_SWITCH_KEY as k}from"../lib/theme.js";import{DEFAULT_FONTS as Vt}from"../lib/fonts.js";import{WEBSITE_SCREEN as Xt}from"./WebsiteScreenParts.js";import{routeWebsiteHostMessage as Zt}from"../lib/website-host-inbound.js";import{siteTextFromRow as qt}from"../lib/site-text-styles.js";const Jt=()=>{if(typeof window>"u")return C;try{const i=window.localStorage.getItem(he);return i==="light"||i==="dark"||i==="auto"?i:C}catch{return C}},me=i=>{if(!(typeof window>"u"))try{window.localStorage.setItem(he,i)}catch{}},Qt=()=>{if(typeof window>"u")return R;try{return window.localStorage.getItem(k)!==le}catch{return R}},$t=()=>{if(!(typeof window>"u"))try{window.localStorage.removeItem(jt)}catch{}},pe=i=>{if(!(typeof window>"u"))try{i?window.localStorage.removeItem(k):window.localStorage.setItem(k,le)}catch{}};function er(){const{adapter:i,capabilities:s,templateId:A,ready:f,token:l,siteId:c,currentSlug:D,currentKind:F}=gt();p(()=>(se(D,F),()=>se(null,null)),[D,F]);const T=s.placeholderFrames,[Se,W]=r(null),[fe,x]=r("");p(()=>{const e=i.templateName;if(!f||!A||!e){x("");return}let o=!1;return e().then(d=>!o&&x(d??"")).catch(()=>{}),()=>{o=!0}},[f,l,A,i]);const[ge,E]=r(C),[we,_]=r(R),[Ce,N]=r({selected:0,themes:[]}),[Te,b]=r(Vt),[Ee,z]=r(Nt),[_e,B]=r(null),[ye,O]=r(Wt),[Pe,K]=r(null),[ve,L]=r(null),[He,Y]=r(ue),[Ie,U]=r(null),[Me,j]=r(null),[Ge,V]=r(null),[y,X]=r(null),h=st(),Z=M(()=>nt(it(h),ct(h)),[h]),Re=M(()=>dt(ut(Z,T),y),[Z,T,y]),[ke,q]=r(xt),[Ae,J]=r(null),[De,Q]=r(null),$=S(null),n=S(!1);p(()=>{E(Jt()),_(Qt())},[]);const Fe=a(e=>{n.current=!0,$t(),me(e),E(e)},[]),We=a(e=>{n.current=!0,pe(e),_(e)},[]),xe=a(e=>{n.current=!0,N(e)},[]),Ne=a(e=>{n.current=!0,b(e)},[]),be=a(e=>{n.current=!0,z(e)},[]),ze=a(e=>{n.current=!0,B(e)},[]),Be=a(e=>{n.current=!0,O(e)},[]),Oe=a(e=>{n.current=!0,K(e)},[]),Ke=a(e=>{n.current=!0,L(e)},[]),Le=a(e=>{n.current=!0,Y(e)},[]),Ye=a(e=>{n.current=!0,U(e)},[]),Ue=a(e=>{n.current=!0,q(e)},[]),[je,ee]=r(null),Ve=a(e=>{n.current=!0,ee(e)},[]),Xe=a(e=>{n.current=!0,j(e)},[]),Ze=a(e=>{n.current=!0,V(e)},[]),qe=a(e=>{n.current=!0,X(e)},[]),Je=a(e=>{n.current=!0,J(e)},[]),Qe=a(e=>{n.current=!0,Q(e)},[]);p(()=>{const e=G(h).theme;if(!l||!s.hasSiteTheme||!e)return;const o=c??"";$.current!==o&&($.current=o,n.current=!1);let d=!1;return e.get(c?{siteId:c}:void 0).then(t=>{if(d||n.current)return;me(t.default_mode),pe(t.show_theme_switch),E(t.default_mode),_(t.show_theme_switch),N({selected:t.selected_preset,themes:t.theme_presets});const m=qt(t);b(m.fonts),z(m.sizes),B(t.corner_radius_px===void 0?Ft[zt(t.corner_style)]:bt(t.corner_radius_px)),O(m.compression),K(t.card_shadow==null?Yt:Bt(t.card_shadow)),Y(t.card_gap==null?ue:Ot(t.card_gap)),U(t.hover_effect==null?Ut:Kt(t.hover_effect)),L(Lt(t.shadow_color)),j(mt(t.site_width)),V(lt(t.site_gutter)),X(pt(t.block_gap)),q(m.typography),ee(m.textStyles),J(t.hero_background_follows_width===!0),Q(t.photography_grayscale===!0)}).catch(()=>{}),()=>{d=!0}},[l,c,s.hasSiteTheme,h]);const $e=yt({token:l,siteId:c,enabled:s.hasSiteSettings}),[et,te]=r(Et),re=S(null),P=S(!1),v=S(null),g=S({}),tt=a(e=>{P.current=!0,te(o=>({...o,...e})),!(!s.hasSiteSettings||!l)&&(g.current={...g.current,...e},v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{const o=g.current;g.current={},G(h).chat?.update(o,c?{siteId:c}:void 0).catch(()=>{})},500))},[s.hasSiteSettings,l,c,h]);p(()=>{if(!l||!s.hasSiteSettings)return;const e=c??"";re.current!==e&&(re.current=e,P.current=!1);let o=!1;const d=G(h).chat;if(d)return d.get(c?{siteId:c}:void 0).then(t=>{o||P.current||te({enabled:t.enabled,title:t.title,subtitle:t.subtitle,greeting:t.greeting})}).catch(()=>{}),()=>{o=!0}},[l,c,s.hasSiteSettings,h]);const[w,H]=r(""),oe=S(null),I=S(!1);p(()=>H(kt()),[]);const ne=a(e=>{const o=e.trim();if(o===w)return;I.current=!0,de(o),H(o);const d=i.updateSite;!s.canEditSiteRecord||!f||!d||d({mapsApiKey:o}).catch(()=>{})},[w,s.canEditSiteRecord,f,i]),[ae,ie]=r("");p(()=>ie(At()),[]),p(()=>{const e=i.site;if(!f||!s.hasSiteRecord||!e){W(null);return}const o=c??"";oe.current!==o&&(oe.current=o,I.current=!1);let d=!1;return e().then(t=>{if(d||(W(ht(t.name)),I.current))return;const m=t.mapsApiKey??"";de(m),H(m);const ce=t.mapsMapId??"";Dt(ce),ie(ce)}).catch(()=>{}),()=>{d=!0}},[f,l,s.hasSiteRecord,c,i]);const rt=M(()=>({apiKey:w,setApiKey:ne,mapId:ae}),[w,ne,ae]);return u(ft,{config:Re,parts:Xt,wrap:(e,o)=>u(wt,{websiteName:Se,templateChrome:T,templateName:fe||null,themeMode:ge,onThemeModeChange:Fe,themeSwitchShown:we,onThemeSwitchShownChange:We,theme:Ce,onThemeChange:xe,fonts:Te,onFontsChange:Ne,cornerRadiusPx:_e,onCornerRadiusPxChange:ze,cardShadow:Pe,onCardShadowChange:Oe,shadowColor:ve,onShadowColorChange:Ke,cardGap:He,onCardGapChange:Le,hoverEffect:Ie,onHoverEffectChange:Ye,headingCompression:ye,onHeadingCompressionChange:Be,headingTypography:ke,onHeadingTypographyChange:Ue,textStyles:je,onTextStylesChange:Ve,sizes:Ee,onSizesChange:be,siteWidth:Me,onSiteWidthChange:Xe,siteGutter:Ge,onSiteGutterChange:Ze,blockGap:y,onBlockGapChange:qe,heroBackgroundFollowsWidth:Ae,onHeroBackgroundFollowsWidthChange:Je,photographyGrayscale:De,onPhotographyGrayscaleChange:Qe,themeFromDocument:!s.hasSiteTheme,children:u(Ct,{children:u(at,{wrap:h.chrome?.wrap,surface:"page",children:u(Ht,{children:u(It,{children:u(Mt,{children:u(Gt,{children:ot(Rt,{value:rt,children:[u(Tt,{chat:et,onChatChange:tt,children:u(_t,{value:$e,children:u(Pt,{children:e})})}),o]})})})})})})})})})}function tr({target:i}){return u(St,{target:i,addressing:vt,onHostMessage:Zt,children:u(er,{})})}export{tr as default};
1
+ "use client";import{jsx as u,jsxs as it}from"react/jsx-runtime";import{useCallback as a,useEffect as p,useMemo as M,useRef as S,useState as r}from"react";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/drag.css";import"efficient-easel/screen.css";import"./storefront-editor.css";import{buildConfig as ct}from"../lib/puck/build-config.js";import{ChromeWrap as st}from"../lib/editor-chrome.js";import{sessionRegistry as dt}from"../lib/editor-session.js";import{backendOf as G,blocksOf as ut}from"../lib/website-session.js";import{useEditorSession as ht}from"../lib/editor-session-context.js";import{withSiteBlockGapFields as lt}from"../lib/puck/site-gap-fields.js";import{withTemplateMediaPlaceholders as mt}from"../lib/puck/templateFields.js";import{setEditorPage as de}from"../lib/puck/editor-page-context.js";import{resolveSiteName as pt}from"../lib/content/site-name.js";import{normalizeSiteGutter as St,normalizeSiteWidth as ft}from"../lib/content/page-width.js";import{normalizeSiteBlockGap as gt}from"../lib/content/container-gap.js";import wt,{DocumentScreen as Ct}from"./EditorScreenMount.js";import{useStorefrontDocument as Tt}from"./StorefrontDocumentContext.js";import{PreviewHeaderProvider as _t}from"./PreviewHeaderContext.js";import{PreviewFooterProvider as Et}from"./PreviewFooterContext.js";import{PreviewChatProvider as yt,DEFAULT_CHAT_PREVIEW as Pt}from"./PreviewChatContext.js";import{PreviewSocialProvider as vt}from"./PreviewSocialContext.js";import{useSocialSettings as Ht}from"./useSocialSettings.js";import{PreviewSurfaceProvider as It}from"./PreviewSurfaceContext.js";import{WEBSITE_ADDRESSING as Mt}from"../lib/website-document-addressing.js";import{PreviewTickerProvider as Gt}from"./PreviewTickerContext.js";import{PreviewPartsProvider as Rt}from"./PreviewPartsContext.js";import{PreviewLocationPartProvider as kt}from"./PreviewLocationPartContext.js";import{PreviewPartStyleProvider as At}from"./PreviewPartStyleContext.js";import{SiteMapsProvider as Dt,readSiteMapsKey as Ft,writeSiteMapsKey as ue,readSiteMapId as Wt,writeSiteMapId as xt}from"../lib/maps-config.js";import{CORNER_STYLE_TO_PX as Bt,DEFAULT_HEADING_COMPRESSION as Nt,DEFAULT_HEADING_TYPOGRAPHY as bt,DEFAULT_SWITCH_SHOWN as R,DEFAULT_SIZES as Ot,DEFAULT_THEME_MODE as C,normalizeCornerRadius as zt,normalizeCornerStyle as Kt,normalizeCardShadow as Lt,normalizeCardGap as Yt,normalizeHoverEffect as Ut,normalizeShadowColor as jt,IDENTITY_CARD_GAP as he,IDENTITY_CARD_SHADOW as Vt,IDENTITY_HOVER_EFFECT as Xt,THEME_MODE_KEY as le,THEME_STORAGE_KEY as Zt,THEME_SWITCH_HIDE as me,THEME_SWITCH_KEY as k}from"../lib/theme.js";import{DEFAULT_FONTS as qt}from"../lib/fonts.js";import{WEBSITE_SCREEN as Jt}from"./WebsiteScreenParts.js";import{routeWebsiteHostMessage as Qt}from"../lib/website-host-inbound.js";import{siteTextFromRow as $t}from"../lib/site-text-styles.js";const er=()=>{if(typeof window>"u")return C;try{const i=window.localStorage.getItem(le);return i==="light"||i==="dark"||i==="auto"?i:C}catch{return C}},pe=i=>{if(!(typeof window>"u"))try{window.localStorage.setItem(le,i)}catch{}},tr=()=>{if(typeof window>"u")return R;try{return window.localStorage.getItem(k)!==me}catch{return R}},rr=()=>{if(!(typeof window>"u"))try{window.localStorage.removeItem(Zt)}catch{}},Se=i=>{if(!(typeof window>"u"))try{i?window.localStorage.removeItem(k):window.localStorage.setItem(k,me)}catch{}};function or(){const{adapter:i,capabilities:s,templateId:A,ready:f,token:l,siteId:c,currentSlug:D,currentKind:F}=Tt();p(()=>(de(D,F),()=>de(null,null)),[D,F]);const T=s.placeholderFrames,[fe,W]=r(null),[ge,x]=r("");p(()=>{const e=i.templateName;if(!f||!A||!e){x("");return}let o=!1;return e().then(d=>!o&&x(d??"")).catch(()=>{}),()=>{o=!0}},[f,l,A,i]);const[we,_]=r(C),[Ce,E]=r(R),[Te,B]=r({selected:0,themes:[]}),[_e,N]=r(qt),[Ee,b]=r(Ot),[ye,O]=r(null),[Pe,z]=r(Nt),[ve,K]=r(null),[He,L]=r(null),[Ie,Y]=r(he),[Me,U]=r(null),[Ge,j]=r(null),[Re,V]=r(null),[y,X]=r(null),h=ht(),Z=M(()=>ct(dt(h),ut(h)),[h]),ke=M(()=>lt(mt(Z,T),y),[Z,T,y]),[Ae,q]=r(bt),[De,J]=r(null),[Fe,Q]=r(null),[We,$]=r(null),ee=S(null),n=S(!1);p(()=>{_(er()),E(tr())},[]);const xe=a(e=>{n.current=!0,rr(),pe(e),_(e)},[]),Be=a(e=>{n.current=!0,Se(e),E(e)},[]),Ne=a(e=>{n.current=!0,B(e)},[]),be=a(e=>{n.current=!0,N(e)},[]),Oe=a(e=>{n.current=!0,b(e)},[]),ze=a(e=>{n.current=!0,O(e)},[]),Ke=a(e=>{n.current=!0,z(e)},[]),Le=a(e=>{n.current=!0,K(e)},[]),Ye=a(e=>{n.current=!0,L(e)},[]),Ue=a(e=>{n.current=!0,Y(e)},[]),je=a(e=>{n.current=!0,U(e)},[]),Ve=a(e=>{n.current=!0,q(e)},[]),[Xe,te]=r(null),Ze=a(e=>{n.current=!0,te(e)},[]),qe=a(e=>{n.current=!0,j(e)},[]),Je=a(e=>{n.current=!0,V(e)},[]),Qe=a(e=>{n.current=!0,X(e)},[]),$e=a(e=>{n.current=!0,J(e)},[]),et=a(e=>{n.current=!0,Q(e)},[]),tt=a(e=>{n.current=!0,$(e)},[]);p(()=>{const e=G(h).theme;if(!l||!s.hasSiteTheme||!e)return;const o=c??"";ee.current!==o&&(ee.current=o,n.current=!1);let d=!1;return e.get(c?{siteId:c}:void 0).then(t=>{if(d||n.current)return;pe(t.default_mode),Se(t.show_theme_switch),_(t.default_mode),E(t.show_theme_switch),B({selected:t.selected_preset,themes:t.theme_presets});const m=$t(t);N(m.fonts),b(m.sizes),O(t.corner_radius_px===void 0?Bt[Kt(t.corner_style)]:zt(t.corner_radius_px)),z(m.compression),K(t.card_shadow==null?Vt:Lt(t.card_shadow)),Y(t.card_gap==null?he:Yt(t.card_gap)),U(t.hover_effect==null?Xt:Ut(t.hover_effect)),L(jt(t.shadow_color)),j(ft(t.site_width)),V(St(t.site_gutter)),X(gt(t.block_gap)),q(m.typography),te(m.textStyles),J(t.hero_background_follows_width===!0),Q(t.photography_grayscale===!0),$(t.share_button_on_posts===!0)}).catch(()=>{}),()=>{d=!0}},[l,c,s.hasSiteTheme,h]);const rt=Ht({token:l,siteId:c,enabled:s.hasSiteSettings}),[ot,re]=r(Pt),oe=S(null),P=S(!1),v=S(null),g=S({}),nt=a(e=>{P.current=!0,re(o=>({...o,...e})),!(!s.hasSiteSettings||!l)&&(g.current={...g.current,...e},v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{const o=g.current;g.current={},G(h).chat?.update(o,c?{siteId:c}:void 0).catch(()=>{})},500))},[s.hasSiteSettings,l,c,h]);p(()=>{if(!l||!s.hasSiteSettings)return;const e=c??"";oe.current!==e&&(oe.current=e,P.current=!1);let o=!1;const d=G(h).chat;if(d)return d.get(c?{siteId:c}:void 0).then(t=>{o||P.current||re({enabled:t.enabled,title:t.title,subtitle:t.subtitle,greeting:t.greeting})}).catch(()=>{}),()=>{o=!0}},[l,c,s.hasSiteSettings,h]);const[w,H]=r(""),ne=S(null),I=S(!1);p(()=>H(Ft()),[]);const ae=a(e=>{const o=e.trim();if(o===w)return;I.current=!0,ue(o),H(o);const d=i.updateSite;!s.canEditSiteRecord||!f||!d||d({mapsApiKey:o}).catch(()=>{})},[w,s.canEditSiteRecord,f,i]),[ie,ce]=r("");p(()=>ce(Wt()),[]),p(()=>{const e=i.site;if(!f||!s.hasSiteRecord||!e){W(null);return}const o=c??"";ne.current!==o&&(ne.current=o,I.current=!1);let d=!1;return e().then(t=>{if(d||(W(pt(t.name)),I.current))return;const m=t.mapsApiKey??"";ue(m),H(m);const se=t.mapsMapId??"";xt(se),ce(se)}).catch(()=>{}),()=>{d=!0}},[f,l,s.hasSiteRecord,c,i]);const at=M(()=>({apiKey:w,setApiKey:ae,mapId:ie}),[w,ae,ie]);return u(Ct,{config:ke,parts:Jt,wrap:(e,o)=>u(_t,{websiteName:fe,templateChrome:T,templateName:ge||null,themeMode:we,onThemeModeChange:xe,themeSwitchShown:Ce,onThemeSwitchShownChange:Be,theme:Te,onThemeChange:Ne,fonts:_e,onFontsChange:be,cornerRadiusPx:ye,onCornerRadiusPxChange:ze,cardShadow:ve,onCardShadowChange:Le,shadowColor:He,onShadowColorChange:Ye,cardGap:Ie,onCardGapChange:Ue,hoverEffect:Me,onHoverEffectChange:je,headingCompression:Pe,onHeadingCompressionChange:Ke,headingTypography:Ae,onHeadingTypographyChange:Ve,textStyles:Xe,onTextStylesChange:Ze,sizes:Ee,onSizesChange:Oe,siteWidth:Ge,onSiteWidthChange:qe,siteGutter:Re,onSiteGutterChange:Je,blockGap:y,onBlockGapChange:Qe,heroBackgroundFollowsWidth:De,onHeroBackgroundFollowsWidthChange:$e,photographyGrayscale:Fe,onPhotographyGrayscaleChange:et,shareButtonOnPosts:We,onShareButtonOnPostsChange:tt,themeFromDocument:!s.hasSiteTheme,children:u(Et,{children:u(st,{wrap:h.chrome?.wrap,surface:"page",children:u(Gt,{children:u(Rt,{children:u(kt,{children:u(At,{children:it(Dt,{value:at,children:[u(yt,{chat:ot,onChatChange:nt,children:u(vt,{value:rt,children:u(It,{children:e})})}),o]})})})})})})})})})}function nr({target:i}){return u(wt,{target:i,addressing:Mt,onHostMessage:Qt,children:u(or,{})})}export{nr as default};
@@ -30,6 +30,11 @@ export declare function PhotographyGroupFields({ persist, showHint, }: {
30
30
  persist: (p: SiteThemeRowPatch, immediate?: boolean) => void;
31
31
  showHint?: boolean;
32
32
  }): import("react").JSX.Element;
33
+ export declare function shareButtonPatch(v: boolean | null): SiteThemeRowPatch;
34
+ export declare function ShareButtonRootField({ persist, showHint, }: {
35
+ persist: (p: SiteThemeRowPatch, immediate?: boolean) => void;
36
+ showHint?: boolean;
37
+ }): import("react").JSX.Element;
33
38
  export declare function useWebsiteName(): string;
34
39
  export declare function WebsiteNameReadonly(): import("react").JSX.Element;
35
40
  export default function WebsiteSettingsPanel({ themeFromDocument, tokenRef, siteId, onNotify, tab: tabFromHost, onTabChange, }: {
@@ -1 +1 @@
1
- "use client";import{jsx as o,jsxs as _,Fragment as x}from"react/jsx-runtime";import{useEasel as E}from"efficient-easel/easel";import{useState as R}from"react";import k from"./ThemeField.js";import z from"./CornersField.js";import W from"./CardShadowField.js";import v from"./ShadowColourField.js";import O from"./BlockGapField.js";import B from"./HoverEffectField.js";import G from"./HeroImageField.js";import Y from"./PhotographyField.js";import j from"./SideSpaceField.js";import X from"./SiteWidthField.js";import U from"./SiteAccentField.js";import q from"./SiteTextStylesField.js";import{usePreviewHeader as f}from"./PreviewHeaderContext.js";import{SettingsTabs as K}from"efficient-easel/panel";import{Tooltip as M,tabButtonId as $,tabPanelId as J}from"efficient-shell/ui";import{ContrastIcon as Q,NoteIcon as V,SettingsIcon as Z,TypeIcon as D}from"efficient-easel/icons";import{useThemeRowPersist as ee}from"../lib/theme-row-persist.js";import{themeSaveNotice as te}from"../lib/theme-save-message.js";import{say as S}from"../lib/editor-words.js";import{NEUTRAL_SITE_NAME as oe}from"../lib/content/site-name.js";import{previewFrame as ne}from"../lib/puck/preview-dom.js";import{useSiteTextStylesWriter as re}from"../lib/site-text-styles-writer.js";import{CORNER_STYLE_TO_PX as ie,normalizeCornerRadius as se,normalizeCornerStyle as ae,normalizeShadowColor as ce,selectedThemeColors as le}from"../lib/theme.js";const P="sf-site-styles",he="sf-site-styles-tabpanel",de=!1,ue="Show hints";function pe({shown:e,onChange:t}){return o("div",{className:"sf-hints",children:_("button",{type:"button","aria-pressed":e,onClick:()=>t(!e),className:`sf-rung sf-hints-toggle${e?" is-active":""}`,children:[o(V,{size:13}),S(ue)]})})}const dt="text",b=[{id:"basics",label:"Basics",icon:o(Z,{})},{id:"theme",label:"Theme",icon:o(Q,{})},{id:"text",label:"Text",icon:o(D,{})}];function fe({themeFromDocument:e,persist:t}){const{appState:i,dispatch:a}=E(d=>d),{theme:l,setTheme:n}=f(),h=i.data,u=h.root?.props??{},s=d=>{if(e){const p={...u,theme:d};a({type:"replaceRoot",root:{...h.root,props:p},recordHistory:!0})}else n(d);t({selected_preset:d.selected,theme_presets:d.themes})};return o(k,{value:e?u.theme:l,onChange:s})}function ge({themeFromDocument:e,persist:t}){const[i,a]=R(null),{theme:l,setFonts:n,setSizes:h,setHeadingTypography:u}=f(),s=re({themeFromDocument:e,persist:t}),{old:d,saved:p,writeRoot:C}=s,w=s.fonts,c=s.sizes,y=s.typography,g=r=>r.values.size??ye(Se[r.id]??"body")??Ce[r.kind],T=r=>s.write(r),F=me(l),I=r=>{const m={...w,accent:r};e?C({fonts:m}):n(m),t({accent_font:r})},L=r=>{h({...c,accent:r}),t({accent_size_px:r})},A=r=>{const m={...y,weightStrong:r};e?C({headingTypography:m}):u(m),t({heading_weight_strong:r})},N=r=>{const m={...y,italicStrong:r};e?C({headingTypography:m}):u(m),t({accent_italic:r})};return _(x,{children:[o(q,{saved:p,old:d,colours:F,sizeOf:g,onChange:T,openId:i===H?null:i,onOpenChange:a,withoutSize:e}),o(U,{font:w.accent,size:c.accent,weight:y.weightStrong,italic:y.italicStrong,headingWeight:y.weight,open:i===H,onOpenChange:r=>a(r?H:null),onChange:r=>{r.key==="font"?I(r.value):r.key==="size"?L(r.value):r.key==="weight"?A(r.value):N(r.value)},withoutSize:e})]})}const H="accent";function me(e){const t=le(e);return[{key:"accent",name:S("Accent"),value:t.accent},{key:"text",name:S("Text"),value:t.text},{key:"labels",name:S("Labels"),value:t.muted??t.text}]}const Se={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Ce={heading:32,body:14},we={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function ye(e){if(typeof document>"u")return null;const i=(ne()?.contentDocument??document).querySelector(we[e]);if(!i)return null;const a=parseFloat(getComputedStyle(i).fontSize);return Number.isFinite(a)?a:null}function _e({themeFromDocument:e,persist:t,showHint:i}){const{appState:a,dispatch:l}=E(c=>c),{cornerRadiusPx:n,setCornerRadiusPx:h}=f(),u=a.data,s=u.root?.props??{},d=s.cornerRadiusPx===void 0?ie[ae(s.cornerStyle)]:se(s.cornerRadiusPx),p=e?d:n,C=c=>l({type:"replaceRoot",root:{...u.root,props:{...s,...c}},recordHistory:!0});return o(z,{value:p,onChange:c=>{e?C({cornerRadiusPx:c}):h(c),t({corner_radius_px:c})},showHint:i})}function xe(e){return{site_width:e}}function Te({persist:e,showHint:t}){const{siteWidth:i,setSiteWidth:a}=f();return o(X,{value:i,onChange:n=>{a(n),e(xe(n),n===null)},showHint:t})}function be(e){return{block_gap:e}}function Re(e){return{site_gutter:e}}function Pe({persist:e,showHint:t}){const{siteGutter:i,setSiteGutter:a}=f();return o(j,{value:i,onChange:n=>{a(n),e(Re(n),n===null)},showHint:t})}function He({persist:e,showHint:t}){const{blockGap:i,setBlockGap:a}=f();return o(O,{value:i,onChange:n=>{a(n),e(be(n),n===null)},showHint:t})}function Ee({persist:e,showHint:t}){const{heroBackgroundFollowsWidth:i,setHeroBackgroundFollowsWidth:a}=f();return o(G,{value:i,onChange:n=>{a(n),e({hero_background_follows_width:n},!0)},showHint:t})}function Fe({persist:e,showHint:t=!0}){return _(x,{children:[o(Te,{persist:e,showHint:t}),o(Pe,{persist:e,showHint:t}),o(He,{persist:e,showHint:t}),o(Ee,{persist:e,showHint:t})]})}function Ie(e){return{card_shadow:e}}function Le(e){return e===null?{shadow_color:null}:{shadow_color:ce(e)}}function Ae(e){return{hover_effect:e}}function Ne({persist:e,showHint:t=!0}){const{cardShadow:i,setCardShadow:a,shadowColor:l,setShadowColor:n,hoverEffect:h,setHoverEffect:u}=f();return _(x,{children:[o(W,{value:i,onChange:s=>{a(s),e(Ie(s),!0)},showHint:t}),o(v,{value:l,onChange:s=>{n(s),e(Le(s),s===null)},showHint:t}),o(B,{value:h,onChange:s=>{u(s),e(Ae(s),!0)},showHint:t})]})}function ke(e){return{photography_grayscale:e}}function ze({persist:e,showHint:t}){const{photographyGrayscale:i,setPhotographyGrayscale:a}=f();return o(Y,{value:i,onChange:n=>{a(n),e(ke(n),!0)},showHint:t})}function We({persist:e,showHint:t=!0}){return o(x,{children:o(ze,{persist:e,showHint:t})})}function ve(){const{websiteName:e}=f();return e?.trim()||oe}function ut(){const e=ve();return o(M,{content:S("{name} — renamed in the Console: {place}.",{name:e,place:S("Storefront ▸ Sites ▸ Settings")}),className:"sf-name-tip",children:o("span",{className:"sf-panel-site",children:e})})}function Oe({themeFromDocument:e=!1,tokenRef:t,siteId:i,onNotify:a,tab:l,onTabChange:n}){const{persist:h}=ee({themeFromDocument:e,tokenRef:t,siteId:i,onResult:g=>{const T=te(g);T&&a?.(T.msg,T.tone)}}),[u,s]=R(b[0].id),d=l!==void 0,p=d?l:u,C=d?n??(()=>{}):s,w=b.find(g=>g.id===p)??b[0],[c,y]=R(de);return _(x,{children:[o(K,{items:b.map(g=>({...g,label:S(g.label)})),activeId:w.id,onSelect:C,ariaLabel:S("Site styles"),idPrefix:P}),_("div",{id:J(P,w.id),className:he,role:"tabpanel","aria-labelledby":$(P,w.id),children:[p==="basics"&&_(x,{children:[o(_e,{themeFromDocument:e,persist:h,showHint:c}),!e&&o(Ne,{persist:h,showHint:c}),!e&&o(Fe,{persist:h,showHint:c}),!e&&o(We,{persist:h,showHint:c}),o(pe,{shown:c,onChange:y})]}),p==="theme"&&o(fe,{themeFromDocument:e,persist:h}),p==="text"&&o(ge,{themeFromDocument:e,persist:h})]})]})}export{Ne as CardLookFields,pe as HintsToggle,Fe as PageGroupFields,We as PhotographyGroupFields,de as SHOW_HINTS_DEFAULT,P as SITE_STYLES_ID_PREFIX,b as SITE_STYLES_TABS,dt as SITE_STYLES_TEXT_TAB,he as TABPANEL_CLASS,ut as WebsiteNameReadonly,be as blockGapPatch,Ie as cardShadowPatch,Oe as default,Ae as hoverEffectPatch,ke as photographyPatch,Le as shadowColourPatch,Re as siteGutterPatch,xe as siteWidthPatch,ve as useWebsiteName};
1
+ "use client";import{jsx as o,jsxs as _,Fragment as x}from"react/jsx-runtime";import{useEasel as F}from"efficient-easel/easel";import{useState as P}from"react";import N from"./ThemeField.js";import k from"./CornersField.js";import z from"./CardShadowField.js";import O from"./ShadowColourField.js";import W from"./BlockGapField.js";import v from"./HoverEffectField.js";import G from"./HeroImageField.js";import Y from"./PhotographyField.js";import j from"./ShareButtonField.js";import X from"./SideSpaceField.js";import U from"./SiteWidthField.js";import q from"./SiteAccentField.js";import K from"./SiteTextStylesField.js";import{usePreviewHeader as p}from"./PreviewHeaderContext.js";import{SettingsTabs as M}from"efficient-easel/panel";import{Tooltip as $,tabButtonId as J,tabPanelId as Q}from"efficient-shell/ui";import{ContrastIcon as V,NoteIcon as Z,SettingsIcon as D,TypeIcon as ee}from"efficient-easel/icons";import{useThemeRowPersist as te}from"../lib/theme-row-persist.js";import{themeSaveNotice as oe}from"../lib/theme-save-message.js";import{say as S}from"../lib/editor-words.js";import{NEUTRAL_SITE_NAME as ne}from"../lib/content/site-name.js";import{previewFrame as re}from"../lib/puck/preview-dom.js";import{useSiteTextStylesWriter as ie}from"../lib/site-text-styles-writer.js";import{CORNER_STYLE_TO_PX as se,normalizeCornerRadius as ae,normalizeCornerStyle as ce,normalizeShadowColor as le,selectedThemeColors as he}from"../lib/theme.js";const R="sf-site-styles",de="sf-site-styles-tabpanel",ue=!1,pe="Show hints";function fe({shown:e,onChange:t}){return o("div",{className:"sf-hints",children:_("button",{type:"button","aria-pressed":e,onClick:()=>t(!e),className:`sf-rung sf-hints-toggle${e?" is-active":""}`,children:[o(Z,{size:13}),S(pe)]})})}const gt="text",b=[{id:"basics",label:"Basics",icon:o(D,{})},{id:"theme",label:"Theme",icon:o(V,{})},{id:"text",label:"Text",icon:o(ee,{})}];function ge({themeFromDocument:e,persist:t}){const{appState:i,dispatch:s}=F(d=>d),{theme:l,setTheme:n}=p(),h=i.data,u=h.root?.props??{},a=d=>{if(e){const f={...u,theme:d};s({type:"replaceRoot",root:{...h.root,props:f},recordHistory:!0})}else n(d);t({selected_preset:d.selected,theme_presets:d.themes})};return o(N,{value:e?u.theme:l,onChange:a})}function me({themeFromDocument:e,persist:t}){const[i,s]=P(null),{theme:l,setFonts:n,setSizes:h,setHeadingTypography:u}=p(),a=ie({themeFromDocument:e,persist:t}),{old:d,saved:f,writeRoot:C}=a,w=a.fonts,c=a.sizes,y=a.typography,g=r=>r.values.size??_e(Ce[r.id]??"body")??we[r.kind],T=r=>a.write(r),E=Se(l),I=r=>{const m={...w,accent:r};e?C({fonts:m}):n(m),t({accent_font:r})},L=r=>{h({...c,accent:r}),t({accent_size_px:r})},A=r=>{const m={...y,weightStrong:r};e?C({headingTypography:m}):u(m),t({heading_weight_strong:r})},B=r=>{const m={...y,italicStrong:r};e?C({headingTypography:m}):u(m),t({accent_italic:r})};return _(x,{children:[o(K,{saved:f,old:d,colours:E,sizeOf:g,onChange:T,openId:i===H?null:i,onOpenChange:s,withoutSize:e}),o(q,{font:w.accent,size:c.accent,weight:y.weightStrong,italic:y.italicStrong,headingWeight:y.weight,open:i===H,onOpenChange:r=>s(r?H:null),onChange:r=>{r.key==="font"?I(r.value):r.key==="size"?L(r.value):r.key==="weight"?A(r.value):B(r.value)},withoutSize:e})]})}const H="accent";function Se(e){const t=he(e);return[{key:"accent",name:S("Accent"),value:t.accent},{key:"text",name:S("Text"),value:t.text},{key:"labels",name:S("Labels"),value:t.muted??t.text}]}const Ce={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},we={heading:32,body:14},ye={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function _e(e){if(typeof document>"u")return null;const i=(re()?.contentDocument??document).querySelector(ye[e]);if(!i)return null;const s=parseFloat(getComputedStyle(i).fontSize);return Number.isFinite(s)?s:null}function xe({themeFromDocument:e,persist:t,showHint:i}){const{appState:s,dispatch:l}=F(c=>c),{cornerRadiusPx:n,setCornerRadiusPx:h}=p(),u=s.data,a=u.root?.props??{},d=a.cornerRadiusPx===void 0?se[ce(a.cornerStyle)]:ae(a.cornerRadiusPx),f=e?d:n,C=c=>l({type:"replaceRoot",root:{...u.root,props:{...a,...c}},recordHistory:!0});return o(k,{value:f,onChange:c=>{e?C({cornerRadiusPx:c}):h(c),t({corner_radius_px:c})},showHint:i})}function Te(e){return{site_width:e}}function be({persist:e,showHint:t}){const{siteWidth:i,setSiteWidth:s}=p();return o(U,{value:i,onChange:n=>{s(n),e(Te(n),n===null)},showHint:t})}function Pe(e){return{block_gap:e}}function Re(e){return{site_gutter:e}}function He({persist:e,showHint:t}){const{siteGutter:i,setSiteGutter:s}=p();return o(X,{value:i,onChange:n=>{s(n),e(Re(n),n===null)},showHint:t})}function Fe({persist:e,showHint:t}){const{blockGap:i,setBlockGap:s}=p();return o(W,{value:i,onChange:n=>{s(n),e(Pe(n),n===null)},showHint:t})}function Ee({persist:e,showHint:t}){const{heroBackgroundFollowsWidth:i,setHeroBackgroundFollowsWidth:s}=p();return o(G,{value:i,onChange:n=>{s(n),e({hero_background_follows_width:n},!0)},showHint:t})}function Ie({persist:e,showHint:t=!0}){return _(x,{children:[o(be,{persist:e,showHint:t}),o(He,{persist:e,showHint:t}),o(Fe,{persist:e,showHint:t}),o(Ee,{persist:e,showHint:t})]})}function Le(e){return{card_shadow:e}}function Ae(e){return e===null?{shadow_color:null}:{shadow_color:le(e)}}function Be(e){return{hover_effect:e}}function Ne({persist:e,showHint:t=!0}){const{cardShadow:i,setCardShadow:s,shadowColor:l,setShadowColor:n,hoverEffect:h,setHoverEffect:u}=p();return _(x,{children:[o(z,{value:i,onChange:a=>{s(a),e(Le(a),!0)},showHint:t}),o(O,{value:l,onChange:a=>{n(a),e(Ae(a),a===null)},showHint:t}),o(v,{value:h,onChange:a=>{u(a),e(Be(a),!0)},showHint:t})]})}function ke(e){return{photography_grayscale:e}}function ze({persist:e,showHint:t}){const{photographyGrayscale:i,setPhotographyGrayscale:s}=p();return o(Y,{value:i,onChange:n=>{s(n),e(ke(n),!0)},showHint:t})}function Oe({persist:e,showHint:t=!0}){return o(x,{children:o(ze,{persist:e,showHint:t})})}function We(e){return{share_button_on_posts:e}}function ve({persist:e,showHint:t=!0}){const{shareButtonOnPosts:i,setShareButtonOnPosts:s}=p();return o(j,{value:i,onChange:n=>{s(n),e(We(n),!0)},showHint:t})}function Ge(){const{websiteName:e}=p();return e?.trim()||ne}function mt(){const e=Ge();return o($,{content:S("{name} — renamed in the Console: {place}.",{name:e,place:S("Storefront ▸ Sites ▸ Settings")}),className:"sf-name-tip",children:o("span",{className:"sf-panel-site",children:e})})}function Ye({themeFromDocument:e=!1,tokenRef:t,siteId:i,onNotify:s,tab:l,onTabChange:n}){const{persist:h}=te({themeFromDocument:e,tokenRef:t,siteId:i,onResult:g=>{const T=oe(g);T&&s?.(T.msg,T.tone)}}),[u,a]=P(b[0].id),d=l!==void 0,f=d?l:u,C=d?n??(()=>{}):a,w=b.find(g=>g.id===f)??b[0],[c,y]=P(ue);return _(x,{children:[o(M,{items:b.map(g=>({...g,label:S(g.label)})),activeId:w.id,onSelect:C,ariaLabel:S("Site styles"),idPrefix:R}),_("div",{id:Q(R,w.id),className:de,role:"tabpanel","aria-labelledby":J(R,w.id),children:[f==="basics"&&_(x,{children:[o(xe,{themeFromDocument:e,persist:h,showHint:c}),!e&&o(Ne,{persist:h,showHint:c}),!e&&o(Ie,{persist:h,showHint:c}),!e&&o(Oe,{persist:h,showHint:c}),!e&&o(ve,{persist:h,showHint:c}),o(fe,{shown:c,onChange:y})]}),f==="theme"&&o(ge,{themeFromDocument:e,persist:h}),f==="text"&&o(me,{themeFromDocument:e,persist:h})]})]})}export{Ne as CardLookFields,fe as HintsToggle,Ie as PageGroupFields,Oe as PhotographyGroupFields,ue as SHOW_HINTS_DEFAULT,R as SITE_STYLES_ID_PREFIX,b as SITE_STYLES_TABS,gt as SITE_STYLES_TEXT_TAB,ve as ShareButtonRootField,de as TABPANEL_CLASS,mt as WebsiteNameReadonly,Pe as blockGapPatch,Le as cardShadowPatch,Ye as default,Be as hoverEffectPatch,ke as photographyPatch,Ae as shadowColourPatch,We as shareButtonPatch,Re as siteGutterPatch,Te as siteWidthPatch,Ge as useWebsiteName};
@@ -717,6 +717,7 @@ export declare const WEB_BUILDER_WORDS: {
717
717
  readonly Offices: "Offices";
718
718
  readonly "Offset tall": "Offset tall";
719
719
  readonly "On a phone": "On a phone";
720
+ readonly "On every blog post.": "On every blog post.";
720
721
  readonly "On picture": "On picture";
721
722
  readonly "On this page": "On this page";
722
723
  readonly "One row": "One row";
@@ -885,6 +886,7 @@ export declare const WEB_BUILDER_WORDS: {
885
886
  readonly "Set this card's corners first.": "Set this card's corners first.";
886
887
  readonly "Shadow color": "Shadow color";
887
888
  readonly Shape: "Shape";
889
+ readonly "Share button": "Share button";
888
890
  readonly Shared: "Shared";
889
891
  readonly "Shop & galleries": "Shop & galleries";
890
892
  readonly "Short description of this figure.": "Short description of this figure.";
@@ -1,11 +1,11 @@
1
1
  const e={"$ efficient …":"$ efficient …","0 min":"0 min","0 min read":"0 min read","01 / Section":"01 / Section","100s":"100s","1st rendering":"1st rendering","2nd rendering":"2nd rendering","30-day returns":"30-day returns","3rd rendering":"3rd rendering","4th rendering":"4th rendering","5th rendering":"5th rendering","A 'Show us yours.' headline with a photo-submission form.":"A 'Show us yours.' headline with a photo-submission form.","A big headline beside a stack of call-to-action buttons.":"A big headline beside a stack of call-to-action buttons.","A bold brand statement beside a full-height image, with a stat strip.":"A bold brand statement beside a full-height image, with a stat strip.","A call-to-action button.":"A call-to-action button.","A card's opening picture — a card pinned to a finish keeps its own.":"A card's opening picture — a card pinned to a finish keeps its own.","A centered 'ready to order?' headline with the checkout button.":"A centered 'ready to order?' headline with the checkout button.","A chat bubble on every page":"A chat bubble on every page","A corner would need a diagonal ramp, which this overlay does not draw.":"A corner would need a diagonal ramp, which this overlay does not draw.","A detail line":"A detail line","A display order-summary panel — items, totals and a note.":"A display order-summary panel — items, totals and a note.","A document header — headline, metadata and standfirst.":"A document header — headline, metadata and standfirst.","A featured article — big cover image beside a headline and dek.":"A featured article — big cover image beside a headline and dek.","A fitment table — per-size bolt patterns, offsets and load ratings, filterable by diameter.":"A fitment table — per-size bolt patterns, offsets and load ratings, filterable by diameter.","A frequently-asked-questions accordion with a header.":"A frequently-asked-questions accordion with a header.","A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.":"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.","A heading over a grid of free-text title-and-blurb cards.":"A heading over a grid of free-text title-and-blurb cards.","A heading over columns of image, title, blurb and specs.":"A heading over columns of image, title, blurb and specs.","A headline beside a stylized product-UI mockup card — spec sheet, fitment, portal, kanban and more.":"A headline beside a stylized product-UI mockup card — spec sheet, fitment, portal, kanban and more.","A horizontal year track of milestones — company history or roadmap.":"A horizontal year track of milestones — company history or roadmap.","A journal issue header with a lead statement and contents.":"A journal issue header with a lead statement and contents.","A line or two of supporting copy.":"A line or two of supporting copy.","A long-form article spread with a pull-quote and cover image.":"A long-form article spread with a pull-quote and cover image.","A marquee cannot run diagonally, so the corners are not answers.":"A marquee cannot run diagonally, so the corners are not answers.","A milestone still to come.":"A milestone still to come.","A newsletter signup beside a list of recent issues.":"A newsletter signup beside a list of recent issues.","A newsletter signup beside your latest blog posts, pulled live.":"A newsletter signup beside your latest blog posts, pulled live.","A numbered section title with optional link.":"A numbered section title with optional link.","A paragraph of body copy.":"A paragraph of body copy.","A payment-methods trust strip with reassurance lines.":"A payment-methods trust strip with reassurance lines.","A picture worth\n*a thousand rows.*":`A picture worth
2
2
  *a thousand rows.*`,"A plain editorial text section — eyebrow, heading and body copy.":"A plain editorial text section — eyebrow, heading and body copy.","A product hero — image beside price, bullets and a buy button.":"A product hero — image beside price, bullets and a buy button.","A row of partner or brand logos.":"A row of partner or brand logos.","A scrolling marquee of short phrases, full width.":"A scrolling marquee of short phrases, full width.","A second customer quote — what they loved, in a sentence or two.":"A second customer quote — what they loved, in a sentence or two.","A section heading over a grid of column cards.":"A section heading over a grid of column cards.","A sentence or two of supporting copy.":"A sentence or two of supporting copy.","A short customer quote goes here — replace it with a real testimonial from your customers.":"A short customer quote goes here — replace it with a real testimonial from your customers.","A short customer quote goes here.":"A short customer quote goes here.","A short description of this recurring column.":"A short description of this recurring column.","A short lead paragraph introducing this section — a sentence or two about its theme.":"A short lead paragraph introducing this section — a sentence or two about its theme.","A short line about this card.":"A short line about this card.","A short line about this milestone.":"A short line about this milestone.","A short name so a link can jump straight to this section, like yoursite.com/page#about.":"A short name so a link can jump straight to this section, like yoursite.com/page#about.","A short pull quote.":"A short pull quote.","A short reassurance note under the total.":"A short reassurance note under the total.","A short summary of the article goes here.":"A short summary of the article goes here.","A short summary of the featured article — one or two sentences that draw the reader in.":"A short summary of the featured article — one or two sentences that draw the reader in.","A short summary of the post — one or two sentences.":"A short summary of the post — one or two sentences.","A single heading line.":"A single heading line.","A slim trail showing where the reader is (Home / Journal…).":"A slim trail showing where the reader is (Home / Journal…).","A spec sheet — labeled rows of product specifications.":"A spec sheet — labeled rows of product specifications.","A standalone image, at the width you set.":"A standalone image, at the width you set.","A sticky row of category tabs with counts and links.":"A sticky row of category tabs with counts and links.","A sticky tab bar to switch between documents.":"A sticky tab bar to switch between documents.","A template is a blueprint — it has no website of its own, so there is nothing here to change.":"A template is a blueprint — it has no website of its own, so there is nothing here to change.","A theme-color chip and heading over a grid of short feature labels.":"A theme-color chip and heading over a grid of short feature labels.","A thin horizontal rule between sections.":"A thin horizontal rule between sections.","A thin one-line spec strip — small-caps items spread across the width, as a dark band or a bare hairline row.":"A thin one-line spec strip — small-caps items spread across the width, as a dark band or a bare hairline row.","A third short quote to round out the row.":"A third short quote to round out the row.","A three-up meta strip for the foot of a document.":"A three-up meta strip for the foot of a document.","A titled chart — bars, line or donut — drawn from your own labeled data points.":"A titled chart — bars, line or donut — drawn from your own labeled data points.","A vehicle picker — make, model, year and trim resolve the OEM stock fitment live.":"A vehicle picker — make, model, year and trim resolve the OEM stock fitment live.","A world map of your locations with a legend — designed here, sold worldwide.":"A world map of your locations with a legend — designed here, sold worldwide.","A write-a-review form — submissions wait for your approval before they show.":"A write-a-review form — submissions wait for your approval before they show.","About & brand story":"About & brand story",Accent:"Accent","Accent button":"Accent button","Accent footnote":"Accent footnote","Active tab":"Active tab","Add a *headline* for this post.":"Add a *headline* for this post.","Add a *headline* for this story.":"Add a *headline* for this story.","Add a page":"Add a page","Add a sentence or two introducing this document.":"Add a sentence or two introducing this document.","Add a sentence or two of supporting copy.":"Add a sentence or two of supporting copy.","Add a short heading.":"Add a short heading.","Add a short statement here — a sentence or two is plenty.":"Add a short statement here — a sentence or two is plenty.","Add an office in the inspector":"Add an office in the inspector","Add another question":"Add another question","Add city":"Add city","Add group":"Add group","Add new theme":"Add new theme","Add page":"Add page","Add slide":"Add slide","Add this section's copy here.":"Add this section's copy here.","Add this section's copy here. A blank line starts a new paragraph.":"Add this section's copy here. A blank line starts a new paragraph.","Add your answer here — a sentence or two is plenty.":"Add your answer here — a sentence or two is plenty.","Add your answer here.":"Add your answer here.","Add your answer here. Keep it clear and concise so it stays easy to scan.":"Add your answer here. Keep it clear and concise so it stays easy to scan.","Add your first question":"Add your first question","Add your numbers.":"Add your numbers.",Address:"Address",After:"After",Alignment:"Alignment",All:"All","Alt text":"Alt text","Alternating (zig-zag)":"Alternating (zig-zag)",Amount:"Amount","An editorial aside beside a rail-marked timeline of dated entries.":"An editorial aside beside a rail-marked timeline of dated entries.","An editorial heading and paragraph over a row of theme-color-accented stat cards.":"An editorial heading and paragraph over a row of theme-color-accented stat cards.","An editorial text panel with a stat strip and founders' note.":"An editorial text panel with a stat strip and founders' note.","An empty section. Add whatever you want inside.":"An empty section. Add whatever you want inside.",Anchor:"Anchor","Anchor name":"Anchor name",Animation:"Animation","Another group already uses this heading — pick a different one.":"Another group already uses this heading — pick a different one.",Answer:"Answer","Any color":"Any color",App:"App","App chips":"App chips","App name":"App name",Appearance:"Appearance","Appearance settings belong to a website.":"Appearance settings belong to a website.","Applied to {n} card":"Applied to {n} card","Applied to {n} cards":"Applied to {n} cards","Apply to all cards":"Apply to all cards","Approved customer reviews in a star-rated card grid, pulled live.":"Approved customer reviews in a star-rated card grid, pulled live.",Arrows:"Arrows","Arrows placement":"Arrows placement","Arrows shape":"Arrows shape",Article:"Article","Article *headline* goes here.":"Article *headline* goes here.","Article Text":"Article Text","Article headline":"Article headline","Article title":"Article title","As shot":"As shot","As uploaded":"As uploaded","Aspect ratio":"Aspect ratio","At zero":"At zero",Attribution:"Attribution",Auto:"Auto","Auto contrast":"Auto contrast","Auto-advance slides":"Auto-advance slides","Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.":"Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.","Auto-slide":"Auto-slide","Avg rating":"Avg rating",Background:"Background","Background image":"Background image","Background images":"Background images","Background video":"Background video",Badge:"Badge",Banner:"Banner","Banner headline":"Banner headline",Bar:"Bar",Bare:"Bare",Bars:"Bars","Bars (comparison / funnel)":"Bars (comparison / funnel)","Bars heading":"Bars heading",Basics:"Basics",Before:"Before","Begin reading":"Begin reading","Below picture":"Below picture","Big first":"Big first","Big left":"Big left","Big right":"Big right","Big stat":"Big stat","Bigger left":"Bigger left","Bigger right":"Bigger right","Black and white":"Black and white","Black and white logos":"Black and white logos",Block:"Block","Block gap":"Block gap","Block spacing":"Block spacing","Block widths":"Block widths","Blog & journal":"Blog & journal","Blog post":"Blog post","Blog post source":"Blog post source",Body:"Body",Bold:"Bold","Bold word":"Bold word","Booking Form":"Booking Form",Border:"Border","Border bottom":"Border bottom","Border color":"Border color","Border left":"Border left","Border right":"Border right","Border style":"Border style","Border top":"Border top","Border width":"Border width",Borders:"Borders",Bottom:"Bottom","Bottom center":"Bottom center","Bottom left":"Bottom left","Bottom right":"Bottom right",Box:"Box","Box name":"Box name","Brand Strip":"Brand Strip","Brand Text":"Brand Text","Brand name":"Brand name",Breadcrumb:"Breadcrumb",Brick:"Brick","Browser mock":"Browser mock","Browser storefront (hero + tiles)":"Browser storefront (hero + tiles)","Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.":"Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.","Bundle Products":"Bundle Products",Button:"Button","Button Right Text":"Button Right Text","Button color":"Button color","Button label":"Button label","Button link":"Button link","Button text color":"Button text color",Buttons:"Buttons","Buy button":"Buy button","By the *numbers*":"By the *numbers*","By the numbers":"By the numbers","Call-to-Action Heading":"Call-to-Action Heading",Cancel:"Cancel",Caption:"Caption",Card:"Card","Card body":"Card body","Card button":"Card button","Card header strip":"Card header strip","Card height":"Card height","Card image":"Card image","Card layout":"Card layout","Card link":"Card link","Card number":"Card number","Card outline":"Card outline","Card shadow":"Card shadow","Card subtitle":"Card subtitle","Card title":"Card title","Card title one":"Card title one","Card title three":"Card title three","Card title two":"Card title two","Card type":"Card type",Cards:"Cards",Cart:"Cart","Catalog Filter Bar":"Catalog Filter Bar",Category:"Category","Category Bar":"Category Bar","Category bar":"Category bar","Cell width":"Cell width",Center:"Center","Changed on every page":"Changed on every page","Changes not live yet":"Changes not live yet",Chart:"Chart","Chart style":"Chart style","Chat with us":"Chat with us","Checkout & ordering":"Checkout & ordering","Chip label":"Chip label","Choose a background image first — there’s nothing to focus yet.":"Choose a background image first — there’s nothing to focus yet.","Choose a page":"Choose a page","Choose a post":"Choose a post","Choose a product":"Choose a product","Choose a section":"Choose a section","Cities in this group":"Cities in this group",City:"City","City strip":"City strip","Claims bars":"Claims bars","Claims panel (rows + defect bars)":"Claims panel (rows + defect bars)","Clear change":"Clear change","Clear change: {label}":"Clear change: {label}","Clear colors":"Clear colors","Clear formatting":"Clear formatting","Clear override":"Clear override","Clear override: {label}":"Clear override: {label}","Clear this site’s colors?":"Clear this site’s colors?","Clear {what}":"Clear {what}","Clear {what}: {label}":"Clear {what}: {label}",Collections:"Collections",Color:"Color","Column *title.*":"Column *title.*","Column 1 cards":"Column 1 cards","Column 1 title":"Column 1 title","Column 2 cards":"Column 2 cards","Column 2 title":"Column 2 title","Column 3 cards":"Column 3 cards","Column 3 title":"Column 3 title","Column 4 cards":"Column 4 cards","Column 4 title":"Column 4 title","Column {n}":"Column {n}",Columns:"Columns","Columns on phone":"Columns on phone","Contact / Locations":"Contact / Locations","Contact Form":"Contact Form","Contact, FAQ & forms":"Contact, FAQ & forms",Contain:"Contain",Contained:"Contained",Content:"Content","Content position":"Content position","Content width":"Content width",Contents:"Contents","Contents heading":"Contents heading","Contents label":"Contents label",Coordinates:"Coordinates","Coordinates from OpenStreetMap":"Coordinates from OpenStreetMap","Copy above image":"Copy above image","Copy over image":"Copy over image","Copying…":"Copying…",Corners:"Corners","Couldn’t add the page — please retry.":"Couldn’t add the page — please retry.","Couldn’t delete the page — please retry.":"Couldn’t delete the page — please retry.","Couldn’t duplicate the section — please retry":"Couldn’t duplicate the section — please retry","Couldn’t load pages":"Couldn’t load pages","Couldn’t open the media picker — please try again.":"Couldn’t open the media picker — please try again.","Couldn’t open this section.":"Couldn’t open this section.","Couldn’t reach {place}.":"Couldn’t reach {place}.",Count:"Count",Countdown:"Countdown",Country:"Country","Country Switch":"Country Switch",Cover:"Cover","Cover image":"Cover image","Cross ✕":"Cross ✕",Crumbs:"Crumbs","Current page":"Current page","Custom HTML":"Custom HTML","Custom URL":"Custom URL","Customer Photo Grid":"Customer Photo Grid","Customer name":"Customer name","Customer photos in a card grid with a click-to-open lightbox.":"Customer photos in a card grid with a click-to-open lightbox.","Customer quotes in a grid — the quote, a name and a role.":"Customer quotes in a grid — the quote, a name and a role.",Dark:"Dark","Dark band":"Dark band",Darken:"Darken","Darken style":"Darken style",Dashed:"Dashed","Data points":"Data points",Date:"Date","Deck / standfirst":"Deck / standfirst",Default:"Default","Defect rate by product":"Defect rate by product",Dek:"Dek","Delete city":"Delete city","Delete group ({n} cities)":"Delete group ({n} cities)","Delete group ({n} city)":"Delete group ({n} city)","Delete {label} group ({n} cities)":"Delete {label} group ({n} cities)","Delete {label} group ({n} city)":"Delete {label} group ({n} city)","Delete {name}":"Delete {name}","Delete “{name}”":"Delete “{name}”","Deleted “{name}”":"Deleted “{name}”",Delivery:"Delivery","Delivery Options":"Delivery Options","Delivery tiers as cards — name, window and price, one highlighted.":"Delivery tiers as cards — name, window and price, one highlighted.","Describe this section in a sentence or two.":"Describe this section in a sentence or two.","Describe this step in a sentence or two.":"Describe this step in a sentence or two.","Describe what happened, in a sentence or two.":"Describe what happened, in a sentence or two.",Design:"Design",Detail:"Detail","Detail line":"Detail line",Direction:"Direction","Directions link":"Directions link","Dismiss link":"Dismiss link",Display:"Display","Distance from top":"Distance from top",Divider:"Divider","Document Detail Cards":"Document Detail Cards","Document Header":"Document Header","Document Tabs":"Document Tabs","Document Text":"Document Text","Document body":"Document body","Document masthead":"Document masthead","Document tabs":"Document tabs",Done:"Done","Done {name}":"Done {name}","Donut (split of a whole)":"Donut (split of a whole)","Dot ●":"Dot ●",Dots:"Dots",Dotted:"Dotted",Down:"Down","Drop in your own sanitized HTML.":"Drop in your own sanitized HTML.","Duplicate section":"Duplicate section","Duplicate to another page":"Duplicate to another page","Duplicate to page":"Duplicate to page","Duplicated to “{name}”":"Duplicated to “{name}”",Dynamic:"Dynamic","Dynamic Pages":"Dynamic Pages","EU Tyre Label":"EU Tyre Label","Each block":"Each block","Each side":"Each side","Each website created from this template sets its own appearance afterwards.":"Each website created from this template sets its own appearance afterwards.","Each website created from this template sets its own header afterwards.":"Each website created from this template sets its own header afterwards.","Each website created from this template sets its own live chat afterwards.":"Each website created from this template sets its own live chat afterwards.","Each website created from this template sets its own social link afterwards.":"Each website created from this template sets its own social link afterwards.","Each website created from this template sets its own {what} afterwards.":"Each website created from this template sets its own {what} afterwards.","Easy to read":"Easy to read",Edit:"Edit","Edit {name}":"Edit {name}","Edit “{name}” in {place}":"Edit “{name}” in {place}","Editing {name} changes it everywhere.":"Editing {name} changes it everywhere.","Editor only — not shown live":"Editor only — not shown live",Editorial:"Editorial","Editorial Text":"Editorial Text",Email:"Email","Email Form":"Email Form","Email signup":"Email signup",Empty:"Empty",End:"End",Ends:"Ends","Enter coordinates manually":"Enter coordinates manually",Entrance:"Entrance",Entries:"Entries","Entries count":"Entries count",Equal:"Equal",Essay:"Essay",Even:"Even","Every page":"Every page","Every text on the site that follows {style} changes to look like this one. This text’s own changes are cleared, and it keeps following {style}.":"Every text on the site that follows {style} changes to look like this one. This text’s own changes are cleared, and it keeps following {style}.","Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.":"Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.","Everything else on this block comes from the linked post. Unlink it to edit by hand.":"Everything else on this block comes from the linked post. Unlink it to edit by hand.","Everything is live":"Everything is live",Excerpt:"Excerpt",Eyebrow:"Eyebrow","Eyebrow style":"Eyebrow style",Facebook:"Facebook",Fade:"Fade",Feature:"Feature","Feature Banner":"Feature Banner","Feature Rows":"Feature Rows","Feature label":"Feature label","Feature label five":"Feature label five","Feature label four":"Feature label four","Feature label one":"Feature label one","Feature label six":"Feature label six","Feature label three":"Feature label three","Feature label two":"Feature label two","Feature story":"Feature story",Featured:"Featured","Featured *image*":"Featured *image*","Featured cover":"Featured cover",Features:"Features",Feedback:"Feedback","Field label":"Field label","Field notes":"Field notes",Fill:"Fill",Filled:"Filled","Filters the collection grids below it — a sticky row of Pills (the default), or Columns, one per filter you switch on.":"Filters the collection grids below it — a sticky row of Pills (the default), or Columns, one per filter you switch on.","Find coordinates":"Find coordinates","Finding…":"Finding…","Fine print":"Fine print","Finish swatches":"Finish swatches","Finish · Size · ×1":"Finish · Size · ×1","First item":"First item","First section":"First section","Fit content":"Fit content","Fitment Form":"Fitment Form","Fitment Table":"Fitment Table",Fixed:"Fixed","Fixed size — the site’s Text setting doesn’t resize this.":"Fixed size — the site’s Text setting doesn’t resize this.","Follow the page":"Follow the page","Follow the slideshow":"Follow the slideshow","Follows Desktop":"Follows Desktop","Follows the section's Corners until you set a number here.":"Follows the section's Corners until you set a number here.","Follows the site":"Follows the site","Follows the style":"Follows the style","Footer Box":"Footer Box","Footer · on every page":"Footer · on every page","Footer · on every page · old style":"Footer · on every page · old style",Footnote:"Footnote",Form:"Form","Form eyebrow":"Form eyebrow","Form heading":"Form heading","Form intro":"Form intro","Formatting — click a row first":"Formatting — click a row first","Formatting — row {n}":"Formatting — row {n}",Founders:"Founders","Founders heading":"Founders heading","Founders statement":"Founders statement","Four across":"Four across","Four stagger":"Four stagger",Frequency:"Frequency","Frequently *asked.*":"Frequently *asked.*","From the bottom":"From the bottom",Full:"Full","Full width":"Full width","Full-bleed intro image the next section scrolls over.":"Full-bleed intro image the next section scrolls over.","Full-screen image or video with a headline.":"Full-screen image or video with a headline.","Full-screen opener with rotating slides.":"Full-screen opener with rotating slides.",Gap:"Gap","Gap only":"Gap only","Give the new template page a name. It starts blank — add sections once it opens.":"Give the new template page a name. It starts blank — add sections once it opens.","Gives the other card this card's Corners.":"Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.":"Gives the other {n} cards this card's Corners.",Good:"Good","Greeting message":"Greeting message",Grid:"Grid",Group:"Group","Group heading":"Group heading","Group name":"Group name",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",HQ:"HQ",HTML:"HTML",Hairline:"Hairline","Hairline borders":"Hairline borders","Hand-picked products in a tidy grid.":"Hand-picked products in a tidy grid.","Hard to read":"Hard to read",Header:"Header","Header badge":"Header badge","Header settings belong to a website.":"Header settings belong to a website.","Header · on every page":"Header · on every page","Header · on every page · old style":"Header · on every page · old style",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading font size":"Heading font size",Headings:"Headings",Headquarters:"Headquarters",Height:"Height",Hero:"Hero","Hero & intros":"Hero & intros","Hero Slide":"Hero Slide","Hero Slideshow":"Hero Slideshow","Hero button":"Hero button","Hero image":"Hero image","Hero line":"Hero line","Hidden on the page":"Hidden on the page","Hide manual coordinates":"Hide manual coordinates","Hide {label} on the slide":"Hide {label} on the slide",Highlight:"Highlight","Highlight key numbers — years, designs.":"Highlight key numbers — years, designs.","Highlight line":"Highlight line",Hint:"Hint","Hold video":"Hold video",Home:"Home","Hours, minutes and seconds to a set date and time, then one line.":"Hours, minutes and seconds to a set date and time, then one line.","Hover effect":"Hover effect",Icon:"Icon","Icon after text":"Icon after text","Icon before text":"Icon before text","Icon position":"Icon position","Illustrative example":"Illustrative example",Image:"Image","Image & Text Columns":"Image & Text Columns","Image & Text Split":"Image & Text Split","Image background":"Image background","Image caption":"Image caption","Image column":"Image column","Image date":"Image date","Image fit":"Image fit","Image focus":"Image focus","Image label":"Image label","Image left":"Image left","Image meta":"Image meta","Image right":"Image right","Image side":"Image side","Image stage":"Image stage","Image tint":"Image tint","Image width":"Image width","In its own box":"In its own box","In progress (accent)":"In progress (accent)","In the product":"In the product","In this issue":"In this issue","In this section":"In this section","In your own time zone. Every visitor counts down to the same moment.":"In your own time zone. Every visitor counts down to the same moment.",Instagram:"Instagram",Integrations:"Integrations","Integrations Grid":"Integrations Grid",Interview:"Interview",Intro:"Intro","Introduce your company in a paragraph or two.":"Introduce your company in a paragraph or two.","Issue Header":"Issue Header","Issue lines":"Issue lines","Issue meta lines":"Issue meta lines",Item:"Item","Item alignment":"Item alignment",Items:"Items","Items from":"Items from","Its own":"Its own","Its size follows Site styles ▸ {follows} — {px}px right now.":"Its size follows Site styles ▸ {follows} — {px}px right now.","Its size follows Site styles ▸ {follows}.":"Its size follows Site styles ▸ {follows}.","Job card label":"Job card label",Join:"Join","Jumps to a section on that page.":"Jumps to a section on that page.",Justify:"Justify","Kanban board (job columns)":"Kanban board (job columns)","Kanban columns":"Kanban columns","Keep this section's own built-in size":"Keep this section's own built-in size","Key *features.*":"Key *features.*","Key Features":"Key Features",LINE:"LINE",LIVE:"LIVE",Label:"Label","Label color":"Label color",Labels:"Labels",Ladder:"Ladder",Large:"Large","Large text only":"Large text only","Latest Posts":"Latest Posts","Latest journal posts in a three-card row.":"Latest journal posts in a three-card row.",Latitude:"Latitude",Layout:"Layout","Layout & structure":"Layout & structure","Layout, structure & embeds":"Layout, structure & embeds",Lead:"Lead","Lead Text":"Lead Text","Learn more":"Learn more","Leave a blank line between paragraphs to start a new one.":"Leave a blank line between paragraphs to start a new one.","Leave a field blank to use the built-in wording.":"Leave a field blank to use the built-in wording.",Left:"Left","Left and right":"Left and right","Left of the copy":"Left of the copy","Legal & documents":"Legal & documents","Legal Line":"Legal Line",Level:"Level",Lift:"Lift",Lifted:"Lifted",Light:"Light",Lightbox:"Lightbox","Limited release":"Limited release",Line:"Line","Line (trend)":"Line (trend)",Link:"Link","Linked to a blog post. This editor has no blog to pick another from; choose “None (manual)” to author the section yourself.":"Linked to a blog post. This editor has no blog to pick another from; choose “None (manual)” to author the section yourself.","Linked to “{name}”":"Linked to “{name}”",LinkedIn:"LinkedIn",Links:"Links","Links to":"Links to",List:"List","Live chat":"Live chat","Live chat settings belong to a website.":"Live chat settings belong to a website.","Loading…":"Loading…","Location name":"Location name",Locations:"Locations","Locations Map":"Locations Map",Logo:"Logo","Logo alt text":"Logo alt text","Logo color":"Logo color","Logo description":"Logo description","Logo five":"Logo five","Logo four":"Logo four","Logo height":"Logo height","Logo image":"Logo image","Logo one":"Logo one","Logo three":"Logo three","Logo two":"Logo two",Logos:"Logos","Long read":"Long read","Long-form document body with an 'On this page' contents list.":"Long-form document body with an 'On this page' contents list.",Longitude:"Longitude",Look:"Look",Main:"Main","Main Pages":"Main Pages","Main color":"Main color","Main heading":"Main heading","Main heading\n*Highlight line*":`Main heading
3
- *Highlight line*`,Map:"Map","Map & Theme":"Map & Theme","Map theme":"Map theme","Match / done (green)":"Match / done (green)",Media:"Media",Medium:"Medium",Menu:"Menu",Message:"Message","Meta line":"Meta line",Metadata:"Metadata","Metadata rows":"Metadata rows",Middle:"Middle","Middle meta":"Middle meta",Milestone:"Milestone","Milestone Timeline":"Milestone Timeline","Milestone title.":"Milestone title.",Milestones:"Milestones",Mixed:"Mixed","Mockup Card":"Mockup Card","Mockup card":"Mockup card","Mockup position":"Mockup position",Mono:"Mono","Month DD, YYYY":"Month DD, YYYY",Motion:"Motion","Multi-column container for blocks.":"Multi-column container for blocks.",Muted:"Muted",Name:"Name","Name / alt":"Name / alt",Natural:"Natural","Navigation & wayfinding":"Navigation & wayfinding","Never published":"Never published","New page":"New page","Next slide":"Next slide","No fill":"No fill","No locations yet.":"No locations yet.","No match (gray ✕)":"No match (gray ✕)","No other pages":"No other pages","No pages match your search":"No pages match your search","No pages yet. Add one with + above.":"No pages yet. Add one with + above.","No section anchors yet":"No section anchors yet","No style":"No style","No wrap":"No wrap","No. 1":"No. 1",None:"None","None (manual)":"None (manual)",Normal:"Normal","Not changed":"Not changed","Not chosen":"Not chosen","Not saved. Reload the page.":"Not saved. Reload the page.","Not saved. Try again.":"Not saved. Try again.","Not set":"Not set","Not shown on the page":"Not shown on the page",Note:"Note","Note label":"Note label","Note value":"Note value",Nothing:"Nothing",Nudge:"Nudge",Number:"Number","Number style":"Number style",Numbers:"Numbers","N°01, N°02":"N°01, N°02",Off:"Off",Office:"Office",Offices:"Offices","Offset tall":"Offset tall","On a phone":"On a phone","On picture":"On picture","On this page":"On this page","One row":"One row","One then four":"One then four","Only the size follows a site style. This section sets its own font, weight and letter case.":"Only the size follows a site style. This section sets its own font, weight and letter case.",Open:"Open","Open first answer":"Open first answer","Open the {name} in a new tab":"Open the {name} in a new tab","Open your saved draft in a new tab. Visitors don't see it.":"Open your saved draft in a new tab. Visitors don't see it.","Opening hours":"Opening hours","Opening the picker…":"Opening the picker…",Option:"Option","Order Table":"Order Table","Order summary":"Order summary",Outline:"Outline",Outlined:"Outlined",Overlay:"Overlay","Overlay - CartDrawer":"Overlay - CartDrawer","Overlay button":"Overlay button","Overlay button link":"Overlay button link","Overlay color":"Overlay color","Overlay position":"Overlay position",Padding:"Padding","Padding bottom":"Padding bottom","Padding left":"Padding left","Padding right":"Padding right","Padding top":"Padding top",Page:"Page","Page button":"Page button","Page name":"Page name","Page settings":"Page settings",Pages:"Pages","Panel heading":"Panel heading","Panels & cards":"Panels & cards","Panels and cards":"Panels and cards","Part of {name}":"Part of {name}","Paste a link to each profile. A platform left empty shows nothing on the site.":"Paste a link to each profile. A platform left empty shows nothing on the site.","Payment Methods":"Payment Methods","Payment methods":"Payment methods",Phone:"Phone","Photo Submission Form":"Photo Submission Form","Photo behind the words":"Photo behind the words",Photography:"Photography","Photos in a row":"Photos in a row","Pick a color to see how it reads.":"Pick a color to see how it reads.","Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.":"Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.","Pick who to reach, then a form that routes the message.":"Pick who to reach, then a form that routes the message.",Pinterest:"Pinterest",Placement:"Placement",Plain:"Plain","Play video":"Play video","Playback speed":"Playback speed","Plays well with\n*your favourite apps.*":`Plays well with
3
+ *Highlight line*`,Map:"Map","Map & Theme":"Map & Theme","Map theme":"Map theme","Match / done (green)":"Match / done (green)",Media:"Media",Medium:"Medium",Menu:"Menu",Message:"Message","Meta line":"Meta line",Metadata:"Metadata","Metadata rows":"Metadata rows",Middle:"Middle","Middle meta":"Middle meta",Milestone:"Milestone","Milestone Timeline":"Milestone Timeline","Milestone title.":"Milestone title.",Milestones:"Milestones",Mixed:"Mixed","Mockup Card":"Mockup Card","Mockup card":"Mockup card","Mockup position":"Mockup position",Mono:"Mono","Month DD, YYYY":"Month DD, YYYY",Motion:"Motion","Multi-column container for blocks.":"Multi-column container for blocks.",Muted:"Muted",Name:"Name","Name / alt":"Name / alt",Natural:"Natural","Navigation & wayfinding":"Navigation & wayfinding","Never published":"Never published","New page":"New page","Next slide":"Next slide","No fill":"No fill","No locations yet.":"No locations yet.","No match (gray ✕)":"No match (gray ✕)","No other pages":"No other pages","No pages match your search":"No pages match your search","No pages yet. Add one with + above.":"No pages yet. Add one with + above.","No section anchors yet":"No section anchors yet","No style":"No style","No wrap":"No wrap","No. 1":"No. 1",None:"None","None (manual)":"None (manual)",Normal:"Normal","Not changed":"Not changed","Not chosen":"Not chosen","Not saved. Reload the page.":"Not saved. Reload the page.","Not saved. Try again.":"Not saved. Try again.","Not set":"Not set","Not shown on the page":"Not shown on the page",Note:"Note","Note label":"Note label","Note value":"Note value",Nothing:"Nothing",Nudge:"Nudge",Number:"Number","Number style":"Number style",Numbers:"Numbers","N°01, N°02":"N°01, N°02",Off:"Off",Office:"Office",Offices:"Offices","Offset tall":"Offset tall","On a phone":"On a phone","On every blog post.":"On every blog post.","On picture":"On picture","On this page":"On this page","One row":"One row","One then four":"One then four","Only the size follows a site style. This section sets its own font, weight and letter case.":"Only the size follows a site style. This section sets its own font, weight and letter case.",Open:"Open","Open first answer":"Open first answer","Open the {name} in a new tab":"Open the {name} in a new tab","Open your saved draft in a new tab. Visitors don't see it.":"Open your saved draft in a new tab. Visitors don't see it.","Opening hours":"Opening hours","Opening the picker…":"Opening the picker…",Option:"Option","Order Table":"Order Table","Order summary":"Order summary",Outline:"Outline",Outlined:"Outlined",Overlay:"Overlay","Overlay - CartDrawer":"Overlay - CartDrawer","Overlay button":"Overlay button","Overlay button link":"Overlay button link","Overlay color":"Overlay color","Overlay position":"Overlay position",Padding:"Padding","Padding bottom":"Padding bottom","Padding left":"Padding left","Padding right":"Padding right","Padding top":"Padding top",Page:"Page","Page button":"Page button","Page name":"Page name","Page settings":"Page settings",Pages:"Pages","Panel heading":"Panel heading","Panels & cards":"Panels & cards","Panels and cards":"Panels and cards","Part of {name}":"Part of {name}","Paste a link to each profile. A platform left empty shows nothing on the site.":"Paste a link to each profile. A platform left empty shows nothing on the site.","Payment Methods":"Payment Methods","Payment methods":"Payment methods",Phone:"Phone","Photo Submission Form":"Photo Submission Form","Photo behind the words":"Photo behind the words",Photography:"Photography","Photos in a row":"Photos in a row","Pick a color to see how it reads.":"Pick a color to see how it reads.","Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.":"Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.","Pick who to reach, then a form that routes the message.":"Pick who to reach, then a form that routes the message.",Pinterest:"Pinterest",Placement:"Placement",Plain:"Plain","Play video":"Play video","Playback speed":"Playback speed","Plays well with\n*your favourite apps.*":`Plays well with
4
4
  *your favourite apps.*`,"Pop up - SubscribePopup":"Pop up - SubscribePopup","Portal card (stock + button + orders)":"Portal card (stock + button + orders)",Position:"Position",Positions:"Positions","Post Card":"Post Card",Prefix:"Prefix",Preview:"Preview","Preview hover state":"Preview hover state","Preview the live site (opens in a new tab)":"Preview the live site (opens in a new tab)","Preview the live site in a new tab":"Preview the live site in a new tab","Preview your saved draft in a new tab":"Preview your saved draft in a new tab","Previous slide":"Previous slide",Price:"Price","Primary (Theme Color)":"Primary (Theme Color)",Product:"Product","Product Grid":"Product Grid","Product Hero":"Product Hero","Product badge":"Product badge","Product collections in a tidy grid.":"Product collections in a tidy grid.","Product name":"Product name","Product page":"Product page","Product record":"Product record","Product record (spec tiles)":"Product record (spec tiles)","Product tiles":"Product tiles","Promotions & sign-ups":"Promotions & sign-ups",Publish:"Publish",Published:"Published","Pull quote":"Pull quote","Put this page on your site":"Put this page on your site","Put your changes on your site":"Put your changes on your site","Q&A":"Q&A",Question:"Question",Questions:"Questions",Quiet:"Quiet",Quote:"Quote",Quotes:"Quotes",Rating:"Rating","Read out in place of the picture, and shown if it can’t load.":"Read out in place of the picture, and shown if it can’t load.","Read the story":"Read the story","Read time":"Read time","Reads in":"Reads in","Ready-to-Order Banner":"Ready-to-Order Banner","Reassurance lines":"Reassurance lines","Record type":"Record type","Recurring Columns":"Recurring Columns","Reel label":"Reel label","Refresh now":"Refresh now","Region · country":"Region · country","Related Products":"Related Products","Remove section":"Remove section","Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.":"Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.","Reset color":"Reset color","Reset {name} to the preset":"Reset {name} to the preset",Rest:"Rest","Result / order rows":"Result / order rows","Review Form":"Review Form",Reviews:"Reviews",Right:"Right","Right Top Text":"Right Top Text","Right links":"Right links","Right of the copy":"Right of the copy",Rigs:"Rigs","Rigs fitted":"Rigs fitted",Rise:"Rise",Role:"Role","Role · Location":"Role · Location","Role · location":"Role · location","Rotate on hover":"Rotate on hover","Rounds the picture. Left alone it stays square.":"Rounds the picture. Left alone it stays square.","Rounds the picture. The card's own corner is in Site styles.":"Rounds the picture. The card's own corner is in Site styles.",Sans:"Sans","Save as Template":"Save as Template","Save this website as a platform template":"Save this website as a platform template","Save your page changes first":"Save your page changes first",Scale:"Scale",Screen:"Screen","Scroll direction":"Scroll direction","Scroll duration":"Scroll duration","Scroll-Over Text":"Scroll-Over Text","Scrolling Bar":"Scrolling Bar",Search:"Search","Search all pages":"Search all pages","Search all pages…":"Search all pages…",Season:"Season","Second item":"Second item","Second section":"Second section","Second surface":"Second surface",Section:"Section","Section *heading.*":"Section *heading.*","Section *title*":"Section *title*","Section Header":"Section Header","Section above":"Section above","Section band":"Section band","Section below":"Section below","Section header":"Section header","Section heading":"Section heading","Section heading\n*Highlight line*":`Section heading
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 word, then press the highlighter.":"Select a word, then press the highlighter.","Selector guide (pills + results)":"Selector guide (pills + results)","Selector pills":"Selector pills",Separator:"Separator","Series title":"Series title",Serif:"Serif","Set this card's corners first.":"Set this card's corners first.","Shadow color":"Shadow color",Shape:"Shape",Shared:"Shared","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 arrows":"Show arrows","Show cover image":"Show cover image","Show hints":"Show hints","Show on a card":"Show on a card","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","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 settings":"Site settings","Site styles":"Site styles","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",Small:"Small","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","Space above and below":"Space above and below","Space between":"Space between",Spacer:"Spacer","Spec Strip":"Spec Strip","Spec Table":"Spec Table","Spec label":"Spec label","Spec tiles":"Spec tiles","Spec value":"Spec value","Spine (single rail)":"Spine (single rail)","Split (editorial aside)":"Split (editorial aside)",Square:"Square",Stacked:"Stacked",Standard:"Standard",Start:"Start",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","Storefront → Blog":"Storefront → Blog","Storefront ▸ Sites ▸ Settings":"Storefront ▸ Sites ▸ Settings","Story Timeline":"Story Timeline","Street address":"Street address",Stretch:"Stretch","Strip fill":"Strip fill","Strip items":"Strip items","Stripes · bold":"Stripes · bold","Stripes · fine":"Stripes · fine","Stripes · medium":"Stripes · medium",Style:"Style","Sub-title":"Sub-title","Sub-total lines":"Sub-total lines",Subtitle:"Subtitle","Subtitle font size":"Subtitle font size",Subtotal:"Subtotal","Success heading":"Success heading","Success message":"Success message",Superscript:"Superscript",Surfaces:"Surfaces","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","Tabbed Gallery":"Tabbed Gallery",Tabs:"Tabs","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","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 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 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 is full width, so this card follows Site styles ▸ Basics ▸ Corners.":"The section is full width, so this card follows Site styles ▸ Basics ▸ Corners.","The section it belonged to has been changed or removed.":"The section it belonged to has been changed or removed.","The standard width every page on this site renders at.":"The standard width every page on this site renders at.","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 {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","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 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 section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.":"This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.","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.","Three across":"Three across","Three ladder":"Three ladder","Three stagger":"Three stagger",Ticker:"Ticker","Ticker items":"Ticker items",TikTok:"TikTok","Timeline entries":"Timeline entries","Timezone chip":"Timezone chip","Tint color":"Tint color","Tint opacity":"Tint opacity",Title:"Title",Tone:"Tone",Top:"Top","Top and bottom":"Top and bottom","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","Trailing note":"Trailing note","Triangle ▼":"Triangle ▼","Trusted by *teams worldwide*":"Trusted by *teams worldwide*","Two across":"Two across","Two image galleries with tabs and filters.":"Two image galleries with tabs and filters.","Two tall":"Two tall",Type:"Type","Typed here":"Typed here","Tyre Fitment Form":"Tyre Fitment Form","Tyre Sizes":"Tyre Sizes","URL pill":"URL pill","URL: /{slug}":"URL: /{slug}",Undo:"Undo",Ungrouped:"Ungrouped",Unit:"Unit","Unit labels":"Unit labels",Up:"Up","Up and down":"Up and down",Upcoming:"Upcoming","Update style":"Update style","Update {style}?":"Update {style}?","Upload a background image":"Upload a background image","Upload a background video":"Upload a background video","Upload a poster still":"Upload a poster still","Uppercase heading":"Uppercase heading","Use {colour}":"Use {colour}",Value:"Value","Value suffix":"Value suffix","Vertical breathing room between sections.":"Vertical breathing room between sections.",Video:"Video","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",WeChat:"WeChat","What people *say.*":"What people *say.*",WhatsApp:"WhatsApp","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 promo strip with background image.":"Wide promo strip with background image.",Width:"Width","With us":"With us",Wording:"Wording",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 word, then press the highlighter.":"Select a word, then press the highlighter.","Selector guide (pills + results)":"Selector guide (pills + results)","Selector pills":"Selector pills",Separator:"Separator","Series title":"Series title",Serif:"Serif","Set this card's corners first.":"Set this card's corners first.","Shadow color":"Shadow color",Shape:"Shape","Share button":"Share button",Shared:"Shared","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 arrows":"Show arrows","Show cover image":"Show cover image","Show hints":"Show hints","Show on a card":"Show on a card","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","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 settings":"Site settings","Site styles":"Site styles","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",Small:"Small","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","Space above and below":"Space above and below","Space between":"Space between",Spacer:"Spacer","Spec Strip":"Spec Strip","Spec Table":"Spec Table","Spec label":"Spec label","Spec tiles":"Spec tiles","Spec value":"Spec value","Spine (single rail)":"Spine (single rail)","Split (editorial aside)":"Split (editorial aside)",Square:"Square",Stacked:"Stacked",Standard:"Standard",Start:"Start",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","Storefront → Blog":"Storefront → Blog","Storefront ▸ Sites ▸ Settings":"Storefront ▸ Sites ▸ Settings","Story Timeline":"Story Timeline","Street address":"Street address",Stretch:"Stretch","Strip fill":"Strip fill","Strip items":"Strip items","Stripes · bold":"Stripes · bold","Stripes · fine":"Stripes · fine","Stripes · medium":"Stripes · medium",Style:"Style","Sub-title":"Sub-title","Sub-total lines":"Sub-total lines",Subtitle:"Subtitle","Subtitle font size":"Subtitle font size",Subtotal:"Subtotal","Success heading":"Success heading","Success message":"Success message",Superscript:"Superscript",Surfaces:"Surfaces","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","Tabbed Gallery":"Tabbed Gallery",Tabs:"Tabs","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","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 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 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 is full width, so this card follows Site styles ▸ Basics ▸ Corners.":"The section is full width, so this card follows Site styles ▸ Basics ▸ Corners.","The section it belonged to has been changed or removed.":"The section it belonged to has been changed or removed.","The standard width every page on this site renders at.":"The standard width every page on this site renders at.","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 {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","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 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 section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.":"This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.","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.","Three across":"Three across","Three ladder":"Three ladder","Three stagger":"Three stagger",Ticker:"Ticker","Ticker items":"Ticker items",TikTok:"TikTok","Timeline entries":"Timeline entries","Timezone chip":"Timezone chip","Tint color":"Tint color","Tint opacity":"Tint opacity",Title:"Title",Tone:"Tone",Top:"Top","Top and bottom":"Top and bottom","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","Trailing note":"Trailing note","Triangle ▼":"Triangle ▼","Trusted by *teams worldwide*":"Trusted by *teams worldwide*","Two across":"Two across","Two image galleries with tabs and filters.":"Two image galleries with tabs and filters.","Two tall":"Two tall",Type:"Type","Typed here":"Typed here","Tyre Fitment Form":"Tyre Fitment Form","Tyre Sizes":"Tyre Sizes","URL pill":"URL pill","URL: /{slug}":"URL: /{slug}",Undo:"Undo",Ungrouped:"Ungrouped",Unit:"Unit","Unit labels":"Unit labels",Up:"Up","Up and down":"Up and down",Upcoming:"Upcoming","Update style":"Update style","Update {style}?":"Update {style}?","Upload a background image":"Upload a background image","Upload a background video":"Upload a background video","Upload a poster still":"Upload a poster still","Uppercase heading":"Uppercase heading","Use {colour}":"Use {colour}",Value:"Value","Value suffix":"Value suffix","Vertical breathing room between sections.":"Vertical breathing room between sections.",Video:"Video","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",WeChat:"WeChat","What people *say.*":"What people *say.*",WhatsApp:"WhatsApp","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 promo strip with background image.":"Wide promo strip with background image.",Width:"Width","With us":"With us",Wording:"Wording",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","Your *first* section.":"Your *first* section.","Your *second* section.":"Your *second* section.","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 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?",Zigzag:"Zigzag",accent:"accent","all theme colors":"all theme colors","body text":"body text",button:"button",card:"card",city:"city",draft:"draft","e.g. About":"e.g. About","e.g. Americas":"e.g. Americas","e.g. about":"e.g. about","e.g. {example}":"e.g. {example}","each block's own spacing":"each block's own spacing",entries:"entries",group:"group","images only":"images only",item:"item",label:"label",manifesto:"manifesto","not set":"not set","not shown live":"not shown live",part:"part",px:"px","the Text style in Site styles":"the Text style in Site styles","the admin":"the admin","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","videos only":"videos only","{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} (unavailable)":"{name} (unavailable)","{name} is on this section":"{name} is on this section","{name} — renamed in the Console: {place}.":"{name} — renamed in the Console: {place}.","{n} cities":"{n} cities","{n} city":"{n} city","{n} of {total} layouts":"{n} of {total} layouts","{value} from {from}":"{value} from {from}","{value} on desktop":"{value} on desktop","{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};
package/dist/lib/fonts.js CHANGED
@@ -1 +1 @@
1
- const l=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],n=new Map(l.map(e=>[e.key,e])),g={sans:"Sans",serif:"Serif",mono:"Mono"};function S(){return Object.keys(g).map(e=>[e,l.filter(t=>t.category===e)]).filter(([,e])=>e.length>0)}function O(e){return n.get(e)?.italic??!1}function _(e){return n.get(e)?.italicLoaded??!1}function x(e){return n.get(e)}const c=["heading","heading2","heading3","body","accent","label"],k={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Accent",label:"Labels"},u=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],y=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,V={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},p={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function E(e){const t=e?y.exec(e):null;return t?p[t[1]]??null:h(e)}function h(e){if(!e)return null;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));for(const[a,i]of u)if(t.includes(a))return i;return null}const b=["heading","heading2","heading3"],L=["font-display","font-heading2","font-heading3"];function I(e){if(!e)return!1;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));return L.some(a=>t.includes(a))}function T(e){return b.includes(e)}const s={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function d(e){const t=a=>{const i=e?.[a];if(i&&n.has(i))return i;if(a==="heading2"||a==="heading3"){const r=e?.heading;return r&&n.has(r)?r:s.heading}return s[a]};return Object.fromEntries(c.map(a=>[a,t(a)]))}function f(e,t){return n.get(e[t])??n.get(s[t])}function o(e,t){return`var(${f(e,t).cssVar})`}function F(e){const t=d(e);return[...new Set([...m,...c.map(a=>f(t,a).cssVar)])]}const m=[...new Set(c.map(e=>n.get(s[e]).cssVar))],A=[...new Set(l.map(e=>e.cssVar))];function R(e){const t=d(e);return{"--font-role-heading":o(t,"heading"),"--font-role-heading2":o(t,"heading2"),"--font-role-heading3":o(t,"heading3"),"--font-role-body":o(t,"body"),"--font-role-accent":o(t,"accent"),"--font-role-label":o(t,"label"),fontFamily:"var(--font-role-body)"}}export{A as ALL_FONT_CSS_VARS,s as DEFAULT_FONTS,g as FONT_CATEGORY_LABELS,l as FONT_OPTIONS,c as FONT_ROLES,k as FONT_ROLE_LABELS,L as HEADING_FACE_UTILITIES,b as HEADING_FONT_ROLES,m as ROOT_FALLBACK_CSS_VARS,V as SIZE_STEP_OF_ROLE,I as drawsHeadingFace,O as fontHasItalic,_ as fontItalicIsUsable,x as fontOption,h as fontRoleOfClassName,R as fontRoleStyle,S as fontsByCategory,T as isHeadingRole,d as normalizeFonts,F as siteFontCssVars,E as styleRoleOfClassName};
1
+ const l=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],n=new Map(l.map(e=>[e.key,e])),g={sans:"Sans",serif:"Serif",mono:"Mono"};function S(){return Object.keys(g).map(e=>[e,l.filter(t=>t.category===e)]).filter(([,e])=>e.length>0)}function O(e){return n.get(e)?.italic??!1}function _(e){return n.get(e)?.italicLoaded??!1}function x(e){return n.get(e)}const c=["heading","heading2","heading3","body","accent","label"],k={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Accent",label:"Labels"},u=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],y=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,V={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},p={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function E(e){const t=e?y.exec(e):null;return t?p[t[1]]??null:h(e)}function h(e){if(!e)return null;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));for(const[a,i]of u)if(t.includes(a))return i;return null}const b=["heading","heading2","heading3"],L=["font-display","font-heading2","font-heading3"];function I(e){if(!e)return!1;const t=e.split(/\s+/).filter(a=>!a.slice(0,a.lastIndexOf(":")+1).includes("&")).map(a=>a.slice(a.lastIndexOf(":")+1));return L.some(a=>t.includes(a))}function T(e){return b.includes(e)}const s={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function d(e){const t=a=>{const i=e?.[a];if(i&&n.has(i))return i;if(a==="heading2"||a==="heading3"){const r=e?.heading;return r&&n.has(r)?r:s.heading}return s[a]};return Object.fromEntries(c.map(a=>[a,t(a)]))}function f(e,t){return n.get(e[t])??n.get(s[t])}function o(e,t){return`var(${f(e,t).cssVar})`}function F(e){const t=d(e);return[...new Set([...m,...c.map(a=>f(t,a).cssVar)])]}const m=[...new Set(c.map(e=>n.get(s[e]).cssVar))],A=[...new Set(l.map(e=>e.cssVar))];function R(e){const t=d(e);return{"--font-role-heading":o(t,"heading"),"--font-role-heading2":o(t,"heading2"),"--font-role-heading3":o(t,"heading3"),"--font-role-body":o(t,"body"),"--font-role-accent":o(t,"accent"),"--font-role-label":o(t,"label"),fontFamily:"var(--font-role-body)"}}export{A as ALL_FONT_CSS_VARS,s as DEFAULT_FONTS,g as FONT_CATEGORY_LABELS,l as FONT_OPTIONS,c as FONT_ROLES,k as FONT_ROLE_LABELS,L as HEADING_FACE_UTILITIES,b as HEADING_FONT_ROLES,m as ROOT_FALLBACK_CSS_VARS,V as SIZE_STEP_OF_ROLE,I as drawsHeadingFace,O as fontHasItalic,_ as fontItalicIsUsable,x as fontOption,h as fontRoleOfClassName,R as fontRoleStyle,S as fontsByCategory,T as isHeadingRole,d as normalizeFonts,F as siteFontCssVars,E as styleRoleOfClassName};
@@ -1 +1 @@
1
- import{isSectionGroupType as F,SITE_FOOTER_TYPE as E,SITE_HEADER_TYPE as O,siteFooterDocChrome as z}from"./puck/section-groups.js";const A="Footer",N=[O,A,E],y=e=>{const t=e?.content;return Array.isArray(t)?t:[]},l=e=>{const t=e?.zones;return t&&typeof t=="object"&&!Array.isArray(t)?t:null},h=e=>{const t=e?.props?.id;return typeof t=="string"?t:void 0},I=e=>e.slice(0,Math.max(0,e.lastIndexOf(":")));function x(e){const t=z(y(e)),o=t.some(r=>r?.type===E);return t.filter(r=>r?.type===O||r?.type===E||r?.type===A&&!o)}function k(e,t){const o=new Set,r=s=>{if(Array.isArray(s)){for(const f of s)r(f);return}if(!s||typeof s!="object")return;const i=s;if(typeof i.type=="string"&&i.props&&typeof i.props=="object"){const f=h(i);f&&o.add(f)}for(const f of Object.values(s))r(f)};if(r(e),t){let s=!0;const i=new Set;for(;s;){s=!1;for(const[f,p]of Object.entries(t))i.has(f)||!o.has(I(f))||(i.add(f),r(p),s=!0)}}return o}function T(e,t){const o={},r={};for(const[s,i]of Object.entries(e??{}))(t.has(I(s))?o:r)[s]=i;return{owned:o,rest:r}}function M(e,t){if(!t)return e;const o=x(t);if(!o.length)return e;const r=o.filter(p=>p.type===O),s=o.filter(p=>p.type!==O),i={...e,content:[...r,...y(e),...s]},{owned:f}=T(l(t),k(o,l(t)));return Object.keys(f).length&&(i.zones={...l(e)??{},...f}),i}function R(e,t){if(!t)return{page:e,chrome:null};const o=x(t),r=new Set(o.map(h).filter(n=>!!n)),s=[],i=[];for(const n of y(e)){const c=h(n);c&&r.has(c)||F(n?.type)?i.push(n):s.push(n)}const f=new Map(i.map(n=>[h(n),n])),p=new Set;let d=z(y(t)).flatMap(n=>{const c=h(n);if(!c||!r.has(c))return[n];const u=f.get(c);return u?(p.add(u),[u]):[]});for(const n of i)p.has(n)||d.some(c=>c?.type===n.type)||(d=n.type===O?[n,...d]:[...d,n]);d=z(d);const P=d.length===y(t).length&&d.every((n,c)=>n===y(t)[c]),j=l(e),C=k(d,j),{owned:b,rest:S}=T(j,C),_=T(l(t),k(o,l(t))).owned,g={...t,content:P?t.content:[...d]},a=l(t);if(a||Object.keys(b).length){const n={};for(const[c,u]of Object.entries(a??{}))c in _?c in b&&(n[c]=b[c]):n[c]=u;for(const[c,u]of Object.entries(b))c in n||(n[c]=u);g.zones=n,a&&m(g.zones,a)&&(g.zones=a)}const w={...e,content:s};return j&&(Object.keys(S).length||!Object.keys(_).length?w.zones=S:delete w.zones),{page:w,chrome:g}}function m(e,t){const o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every((s,i)=>s===r[i]&&e[s]===t[s])}function Y(e,t){return o=>e(o)||o!==void 0&&N.includes(o)&&t()}export{N as PINNED_CHROME_TYPES,Y as lockedWhileHeld,M as spliceChrome,R as splitChrome};
1
+ import{isSectionGroupType as F,SITE_FOOTER_TYPE as E,SITE_HEADER_TYPE as O,siteFooterDocChrome as k}from"./puck/section-groups.js";import{zoneOwner as N}from"./puck/selection-parent.js";const A="Footer",x=[O,A,E],y=e=>{const t=e?.content;return Array.isArray(t)?t:[]},l=e=>{const t=e?.zones;return t&&typeof t=="object"&&!Array.isArray(t)?t:null},h=e=>{const t=e?.props?.id;return typeof t=="string"?t:void 0},I=e=>N(e)?.ownerId??"";function P(e){const t=k(y(e)),o=t.some(r=>r?.type===E);return t.filter(r=>r?.type===O||r?.type===E||r?.type===A&&!o)}function z(e,t){const o=new Set,r=s=>{if(Array.isArray(s)){for(const f of s)r(f);return}if(!s||typeof s!="object")return;const i=s;if(typeof i.type=="string"&&i.props&&typeof i.props=="object"){const f=h(i);f&&o.add(f)}for(const f of Object.values(s))r(f)};if(r(e),t){let s=!0;const i=new Set;for(;s;){s=!1;for(const[f,p]of Object.entries(t))i.has(f)||!o.has(I(f))||(i.add(f),r(p),s=!0)}}return o}function T(e,t){const o={},r={};for(const[s,i]of Object.entries(e??{}))(t.has(I(s))?o:r)[s]=i;return{owned:o,rest:r}}function Z(e,t){if(!t)return e;const o=P(t);if(!o.length)return e;const r=o.filter(p=>p.type===O),s=o.filter(p=>p.type!==O),i={...e,content:[...r,...y(e),...s]},{owned:f}=T(l(t),z(o,l(t)));return Object.keys(f).length&&(i.zones={...l(e)??{},...f}),i}function v(e,t){if(!t)return{page:e,chrome:null};const o=P(t),r=new Set(o.map(h).filter(n=>!!n)),s=[],i=[];for(const n of y(e)){const c=h(n);c&&r.has(c)||F(n?.type)?i.push(n):s.push(n)}const f=new Map(i.map(n=>[h(n),n])),p=new Set;let d=k(y(t)).flatMap(n=>{const c=h(n);if(!c||!r.has(c))return[n];const u=f.get(c);return u?(p.add(u),[u]):[]});for(const n of i)p.has(n)||d.some(c=>c?.type===n.type)||(d=n.type===O?[n,...d]:[...d,n]);d=k(d);const m=d.length===y(t).length&&d.every((n,c)=>n===y(t)[c]),g=l(e),C=z(d,g),{owned:w,rest:S}=T(g,C),_=T(l(t),z(o,l(t))).owned,b={...t,content:m?t.content:[...d]},a=l(t);if(a||Object.keys(w).length){const n={};for(const[c,u]of Object.entries(a??{}))c in _?c in w&&(n[c]=w[c]):n[c]=u;for(const[c,u]of Object.entries(w))c in n||(n[c]=u);b.zones=n,a&&D(b.zones,a)&&(b.zones=a)}const j={...e,content:s};return g&&(Object.keys(S).length||!Object.keys(_).length?j.zones=S:delete j.zones),{page:j,chrome:b}}function D(e,t){const o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every((s,i)=>s===r[i]&&e[s]===t[s])}function H(e,t){return o=>e(o)||o!==void 0&&x.includes(o)&&t()}export{x as PINNED_CHROME_TYPES,H as lockedWhileHeld,Z as spliceChrome,v as splitChrome};
@@ -1,4 +1,4 @@
1
- import { type SlotConfigView, type TreeItem } from "./content-tree.js";
1
+ import type { SlotConfigView, TreeItem } from "./content-tree.js";
2
2
  export type ItemSelector = {
3
3
  index: number;
4
4
  zone?: string;
@@ -1 +1 @@
1
- import{say as d,sayCount as l}from"../editor-words.js";import{hasOwnCardCorners as m,cardsWithSharedCorners as x}from"../content/card-corners.js";import{locateNode as C}from"./content-tree.js";function g(r,o,p){const s=p?.zone??"",n=s.lastIndexOf(":"),h=n>0?s.slice(0,n):"",a=n>0?s.slice(n+1):"",e=h?C(r,o,h):null,t=e&&Array.isArray(e.item.props[a])?e.item.props[a]:[],u=p?.index??-1,i=u>=0?t[u]:void 0,f=i?.props?.id?String(i.props.id):"",c=Math.max(t.length-1,0);return!e||!f?{can:!1,reason:"unreachable",others:0}:t.length<=1?{can:!1,reason:"alone",others:c}:m(i?.props?.cardCorners)?{can:!0,others:c,zone:e.zone,index:e.index,data:{...e.item,props:{...e.item.props,[a]:x(t,f)}}}:{can:!1,reason:"unset",others:c}}function b(r){return r.can?l("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",r.others):r.reason==="alone"?d("This is the only card in the section."):r.reason==="unset"?d("Set this card's corners first."):d("This card is not in a section that can share corners.")}function I(r){return l("Applied to {n} card","Applied to {n} cards",r)}function S(r,o){r.can&&o(r.zone,r.index,r.data)}export{S as applyCorners,I as applyCornersDoneLabel,b as applyCornersNote,g as planApplyCorners};
1
+ import{say as i,sayCount as h}from"../editor-words.js";import{hasOwnCardCorners as f,cardsWithSharedCorners as u}from"../content/card-corners.js";import{parentOfSelection as l}from"./selection-parent.js";function y(r,t,c){const e=l(r,t,c),o=e?.slot??"",n=e&&Array.isArray(e.item.props[o])?e.item.props[o]:[],p=c?.index??-1,s=p>=0?n[p]:void 0,d=s?.props?.id?String(s.props.id):"",a=Math.max(n.length-1,0);return!e||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:a}:f(s?.props?.cardCorners)?{can:!0,others:a,zone:e.zone,index:e.index,data:{...e.item,props:{...e.item.props,[o]:u(n,d)}}}:{can:!1,reason:"unset",others:a}}function A(r){return r.can?h("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",r.others):r.reason==="alone"?i("This is the only card in the section."):r.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function g(r){return h("Applied to {n} card","Applied to {n} cards",r)}function S(r,t){r.can&&t(r.zone,r.index,r.data)}export{S as applyCorners,g as applyCornersDoneLabel,A as applyCornersNote,y as planApplyCorners};
@@ -1 +1 @@
1
- "use client";import{useSyncExternalStore as o}from"react";let t=null;const r=new Set;function l(e){if(t!==e){t=e;for(const n of r)n()}}function u(e){return r.add(e),()=>{r.delete(e)}}function s(){return o(u,()=>t,()=>null)}function c(e){if(!e)return null;const n=e.lastIndexOf(":");return n>0?e.slice(0,n):null}export{c as sectionIdOfBoxZone,l as setBookingPreview,s as useBookingPreview};
1
+ "use client";import{useSyncExternalStore as t}from"react";import{zoneOwner as i}from"./selection-parent.js";let n=null;const o=new Set;function f(e){if(n!==e){n=e;for(const r of o)r()}}function u(e){return o.add(e),()=>{o.delete(e)}}function c(){return t(u,()=>n,()=>null)}function w(e){return i(e)?.ownerId??null}export{w as sectionIdOfBoxZone,f as setBookingPreview,c as useBookingPreview};
@@ -1,6 +1,7 @@
1
1
  import { type ReactElement, type ReactNode } from "react";
2
2
  import { readHidable, hidableText, type HidableValue } from "./hidable.js";
3
3
  import { FOLD_FIELD_MARKER, LINK_FIELD_MARKER, MEDIA_FIELD_MARKER, SCAFFOLD_FIELD_MARKER, TEXT_FIELD_MARKER, foldMetaOf, textFieldIdentifier, type EdgeCell, type FoldFieldMeta, type TextFieldMeta, type TextListRendering } from "./field-markers.js";
4
+ import type { ShowWhenRule } from "./show-when.js";
4
5
  import { type HeroGroupPlacement } from "../hero-group-placement.js";
5
6
  import { type SettingsSidesValue, type SettingsBorderValue } from "efficient-easel/panel";
6
7
  import { type AlignmentPoint, FOCAL_DEFAULT } from "efficient-shell/ui";
@@ -34,6 +35,7 @@ export type CustomField<V> = {
34
35
  type: "custom";
35
36
  render: Render<V>;
36
37
  [GAP_FIELD_CONTAINER]?: GapContainer;
38
+ showWhen?: ShowWhenRule;
37
39
  };
38
40
  export declare function Label({ children }: {
39
41
  children: ReactNode;
@@ -0,0 +1,12 @@
1
+ import { type NodeLocation, type SlotConfigView, type TreeItem } from "./content-tree.js";
2
+ export declare function zoneOwner(zone: string | null | undefined): {
3
+ ownerId: string;
4
+ slot: string;
5
+ } | null;
6
+ export type SelectionAddress = {
7
+ index: number;
8
+ zone?: string;
9
+ } | null | undefined;
10
+ export declare function parentOfSelection(config: SlotConfigView, content: ReadonlyArray<TreeItem>, selector: SelectionAddress): (NodeLocation & {
11
+ slot: string;
12
+ }) | null;
@@ -0,0 +1 @@
1
+ import{locateNode as r}from"./content-tree.js";function c(n){if(!n)return null;const t=n.lastIndexOf(":");return t>0?{ownerId:n.slice(0,t),slot:n.slice(t+1)}:null}function s(n,t,l){const o=c(l?.zone),e=o?r(n,t,o.ownerId):null;return e&&o?{...e,slot:o.slot}:null}export{s as parentOfSelection,c as zoneOwner};
@@ -0,0 +1,14 @@
1
+ import { type ShowWhenContext, type ShowWhenRule } from "efficient-shell/ui";
2
+ import type { SlotConfigView, TreeItem } from "./content-tree.js";
3
+ export type { ShowWhenRule, ShowWhenContext };
4
+ export type WithShowWhen = {
5
+ showWhen?: ShowWhenRule;
6
+ };
7
+ export declare function withShowWhen<F extends object>(field: F, rule: ShowWhenRule): F;
8
+ export declare function showWhenOf(field: unknown): ShowWhenRule | undefined;
9
+ export declare function visibleFields<T extends Record<string, unknown>>(fields: T, values: Readonly<Record<string, unknown>> | null | undefined, context: ShowWhenContext): T;
10
+ export type ShowWhenSelector = {
11
+ index: number;
12
+ zone?: string;
13
+ } | null | undefined;
14
+ export declare function showWhenContext(device: string | undefined, config: SlotConfigView, content: ReadonlyArray<TreeItem>, selector: ShowWhenSelector): ShowWhenContext;
@@ -0,0 +1 @@
1
+ import{isShown as s}from"efficient-shell/ui";import{parentOfSelection as f}from"./selection-parent.js";function w(e,t){return{...e,showWhen:t}}function h(e){return e&&typeof e=="object"?e.showWhen:void 0}function m(e,t,r){let o=!1;const n={};for(const[i,p]of Object.entries(e))s(h(p),t??{},r)?n[i]=p:o=!0;return o?n:e}function a(e,t,r,o){const n=f(t,r,o);return{device:e,parentType:n?.item.type,parent:n?.item.props}}export{a as showWhenContext,h as showWhenOf,m as visibleFields,w as withShowWhen};
@@ -0,0 +1,2 @@
1
+ export type RetargetOutcome = "switched" | "refused";
2
+ export declare function retargetWhenSaved(flush: () => Promise<boolean>, retarget: () => void, refuse: () => void): Promise<RetargetOutcome>;
@@ -0,0 +1 @@
1
+ async function n(t,r,a){let e=!1;try{e=await t()}catch{}return e?(r(),"switched"):(a(),"refused")}export{n as retargetWhenSaved};
@@ -50,6 +50,7 @@ export interface SiteThemeRow {
50
50
  block_gap?: number | null;
51
51
  hero_background_follows_width?: boolean | null;
52
52
  photography_grayscale?: boolean | null;
53
+ share_button_on_posts?: boolean | null;
53
54
  word_styles?: Partial<Record<string, Record<string, unknown> | null>> | null;
54
55
  text_styles?: {
55
56
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "18.3.1",
3
+ "version": "19.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",
@@ -41,7 +41,7 @@
41
41
  "peerDependencies": {
42
42
  "@tabler/icons-react": "^3.46.0",
43
43
  "efficient-easel": "^11.2.0",
44
- "efficient-shell": "^7.48.0",
44
+ "efficient-shell": "^7.50.0",
45
45
  "isomorphic-dompurify": "^3.18.0",
46
46
  "next": ">=16",
47
47
  "react": ">=19",
@@ -60,7 +60,7 @@
60
60
  "@types/react": "^19",
61
61
  "@types/react-dom": "^19",
62
62
  "efficient-easel": "^11.2.0",
63
- "efficient-shell": "^7.48.0",
63
+ "efficient-shell": "^7.50.0",
64
64
  "esbuild": "^0.28.0",
65
65
  "happy-dom": "^20.14.5",
66
66
  "isomorphic-dompurify": "^3.18.0",