efficient-web-builder 74.6.0 → 74.7.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,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 74.7.0 - 2026-11-23
4
+
5
+ From main at `001582b7`: #837.
6
+
7
+ A minor: the Add page window shows each starter as the whole page in three columns, the editor's Desktop view is never laid out narrower than 961, and the Box `Side space` row gets a third choice, **None**. New exports; no export removed, no new peer, no stored value moves.
8
+
9
+ **For hosts:**
10
+ - No step. A page that stores `sideSpace: "none"` on a Box (the library pages after eff-erp/efficient-backend#5118) draws edge to edge only on 74.7.0 or later; an older builder draws it as Box.
11
+
12
+ ### Added
13
+
14
+ - **Box Side space: None.** The Box `Side space` row offers Box, Site and None (stored `sideSpace: "none"`, exported as `BOX_SIDE_SPACE_NONE` from `lib/content/box-side-space`). From 800px up the top-level frame draws no side space; below 800 it keeps the site column's `min(20px, Side space)`, so a phone never puts words on the glass. A nested Box that stores "site" keeps the Side space. `components/BlockFrame` exports `FRAME_NONE_GUTTER`.
15
+ - **Add page: whole-page cards.** `PageStarterCard` draws the starter's whole layout on a 1440 x 800 screen (the frame's `vh`/`svh`/`dvh`/`lvh` are pinned to that screen by the new `lib/frame-viewport`), and the window deals the cards across three columns in list order (`lib/page-starters` `CARD_COLUMNS`, `dealtInto`). "+ Blank page" is the shell's secondary `Button`.
16
+
17
+ ### Changed
18
+
19
+ - **Desktop canvas floor 961.** The editor lays the Desktop view out at `DESKTOP_CANVAS_MIN` (961, `lib/content/view-lines`) and scales it down, so a section's narrow-desktop layout (Split, Brand Text) no longer shows at 1440 with both panels open. `PHONE_EDGE` (800) does not move; no published page changes.
20
+ - `frameGutterOf` takes `boolean | SideSpace` (a boolean keeps its old meaning). `boxSideSpaceWrite` may now also return `"none"`; a caller that stored its answer as `"site" | undefined` widens its type.
21
+ - The `Side space` row's hint names None and drops "It has no effect when Content is Full width", which was wrong. The old hint stays in `KEPT_EDITOR_PHRASES` until 2026-12-18.
22
+
23
+ ### Deprecated
24
+
25
+ - `firstSectionOf` (`lib/page-starters`): nothing in this package reads it now. Delete by 2026-12-23.
26
+
3
27
  ## 74.6.0 - 2026-11-22
4
28
 
5
29
  From main at `ca2a3c7d`.
@@ -1 +1 @@
1
- "use client";import{jsx as a,jsxs as g}from"react/jsx-runtime";import{useEffect as G,useId as W,useMemo as q,useRef as z,useState as h}from"react";import{useScreenDocument as H}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as O}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as I}from"efficient-easel/page-copy";import{AddIcon as V}from"efficient-easel/icons";import{Dialog as J,EmptyState as K,Grid as Q,LoadingSpinner as U,Paragraph as X,SidebarActionButton as Y,SidebarLayout as Z,SidebarNavItem as S,Title as $,toast as T}from"efficient-shell/ui";import ee from"./PageStarterCard.js";import{useHostConfig as te}from"../lib/document/host-config.js";import{useSiteWidthsMetadata as ae}from"../lib/document/overrides.js";import{say as t}from"../../format/lib/editor-words.js";import{ALL_STARTERS as i,TEMPLATE_STARTERS as w,shownLibraryGroups as re,startersIn as se,templateStarters as oe}from"../../format/lib/page-starters.js";import{backendOf as ne}from"../lib/website-session.js";function ie({open:l,onClose:x,takenSlugs:b,onCreated:L}){const N=O(),{adapter:d,siteId:c,templateId:R}=H(),r=ne(N).pages,y=!R&&!!(r.starters&&r.createFromStarter),u=q(()=>c?{siteId:c}:{},[c]),j=te(),B=ae(),[k,s]=h(null),[o,n]=h(i),[m,v]=h(null),C=z(null),A=W();G(()=>{if(!l)return;if(n(i),!y){s([]);return}let e=!0;return s(null),r.starters(u).then(f=>e&&s(f),()=>{e&&(s([]),T.error(t("Couldn’t load the pages — please retry.")))}),()=>{e=!1}},[l,y,r,u]);const P=async(e,f)=>{if(!m){v(e);try{L(await f())}catch{T.error(t("Couldn’t add the page — please retry."))}finally{v(null)}}},F=()=>{if(!d.createPage)return;const e=t("New page");P("blank",()=>d.createPage({slug:I(e,b),title:e,layout:{}}))},M=e=>{P(e.id,()=>r.createFromStarter(e.id,{title:e.title,slug:I(e.slug,b),...u}))},p=k??[],_=re(p),E=se(o,p),D=g("nav",{"aria-label":t("Pages"),className:"sf-add-page-nav",children:[a(S,{label:t("All pages"),active:o===i,onClick:()=>n(i)}),_.map(e=>a(S,{label:t(e.label),active:o===e.key,onClick:()=>n(e.key)},e.key)),oe(p).length>0?a("div",{className:"sf-add-page-group",children:a(S,{label:t("From your template"),active:o===w,onClick:()=>n(w)})}):null]});return a(J,{open:l,onClose:x,size:"full",title:t("Add page"),initialFocus:C,children:a(Z,{sidebarTop:g(Y,{onClick:F,disabled:!d.createPage||m!==null,children:[a(V,{"aria-hidden":!0}),t("Blank page")]}),sidebar:D,children:g("div",{ref:C,tabIndex:-1,role:"region","aria-labelledby":A,className:"sf-add-page",children:[a($,{id:A,level:2,as:"h3",children:t("Pages for your site")}),a(X,{tone:"default",className:"sf-add-page-sub",children:t("Choose a page and change the text, images and more.")}),k===null?a(U,{label:t("Loading…")}):E.length===0?a(K,{title:t("No pages to start from"),description:t("Start with a blank page, then add sections.")}):a(Q,{cols:1,smCols:2,lgCols:3,gap:8,children:E.map(e=>a(ee,{starter:e,config:j,metadata:B,busy:m===e.id,onAdd:M},e.id))})]})})})}export{ie as default};
1
+ "use client";import{jsx as a,jsxs as P}from"react/jsx-runtime";import{useEffect as W,useId as q,useMemo as G,useRef as H,useState as h}from"react";import{useScreenDocument as U}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as V}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as E}from"efficient-easel/page-copy";import{AddIcon as J}from"efficient-easel/icons";import{Button as K,Dialog as Q,EmptyState as X,LoadingSpinner as Y,Paragraph as Z,SidebarLayout as $,SidebarNavItem as S,Title as ee,toast as L}from"efficient-shell/ui";import ae from"./PageStarterCard.js";import{useHostConfig as te}from"../lib/document/host-config.js";import{useSiteWidthsMetadata as re}from"../lib/document/overrides.js";import{say as t}from"../../format/lib/editor-words.js";import{ALL_STARTERS as i,CARD_COLUMNS as se,TEMPLATE_STARTERS as T,dealtInto as oe,shownLibraryGroups as ne,startersIn as le,templateStarters as ie}from"../../format/lib/page-starters.js";import{backendOf as de}from"../lib/website-session.js";function ce({open:d,onClose:w,takenSlugs:b,onCreated:x}){const R=V(),{adapter:c,siteId:m,templateId:M}=U(),r=de(R).pages,y=!M&&!!(r.starters&&r.createFromStarter),u=G(()=>m?{siteId:m}:{},[m]),_=te(),j=re(),[v,o]=h(null),[n,l]=h(i),[p,k]=h(null),C=H(null),N=q();W(()=>{if(!d)return;if(l(i),!y){o([]);return}let e=!0;return o(null),r.starters(u).then(s=>e&&o(s),()=>{e&&(o([]),L.error(t("Couldn’t load the pages — please retry.")))}),()=>{e=!1}},[d,y,r,u]);const A=async(e,s)=>{if(!p){k(e);try{x(await s())}catch{L.error(t("Couldn’t add the page — please retry."))}finally{k(null)}}},B=()=>{if(!c.createPage)return;const e=t("New page");A("blank",()=>c.createPage({slug:E(e,b),title:e,layout:{}}))},D=e=>{A(e.id,()=>r.createFromStarter(e.id,{title:e.title,slug:E(e.slug,b),...u}))},f=v??[],F=ne(f),I=le(n,f),z=oe(se,I),O=P("nav",{"aria-label":t("Pages"),className:"sf-add-page-nav",children:[a(S,{label:t("All pages"),active:n===i,onClick:()=>l(i)}),F.map(e=>a(S,{label:t(e.label),active:n===e.key,onClick:()=>l(e.key)},e.key)),ie(f).length>0?a("div",{className:"sf-add-page-group",children:a(S,{label:t("From your template"),active:n===T,onClick:()=>l(T)})}):null]});return a(Q,{open:d,onClose:w,size:"full",title:t("Add page"),initialFocus:C,children:a($,{sidebarTop:a("div",{className:"sf-add-page-blank",children:a(K,{variant:"secondary",size:"md",leftIcon:a(J,{"aria-hidden":!0}),onClick:B,disabled:!c.createPage||p!==null,children:t("Blank page")})}),sidebar:O,children:P("div",{ref:C,tabIndex:-1,role:"region","aria-labelledby":N,className:"sf-add-page",children:[a(ee,{id:N,level:2,as:"h3",children:t("Pages for your site")}),a(Z,{tone:"default",className:"sf-add-page-sub",children:t("Choose a page and change the text, images and more.")}),v===null?a(Y,{label:t("Loading…")}):I.length===0?a(X,{title:t("No pages to start from"),description:t("Start with a blank page, then add sections.")}):a("div",{className:"sf-add-page-cards",children:z.map((e,s)=>a("div",{className:"sf-add-page-column",children:e.map(g=>a(ae,{starter:g,config:_,metadata:j,busy:p===g.id,onAdd:D},g.id))},s))})]})})})}export{ce as default};
@@ -1 +1 @@
1
- "use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useMemo as p,useState as h}from"react";import{CanvasFrame as g}from"efficient-easel/easel";import{Button as v,Card as y,FitFrame as C,Text as S}from"efficient-shell/ui";import x from"./PreviewThemeFrame.js";import D from"../../render/lib/document/page-render.js";import{SiteThemeCarrier as N,suppressPreviewNav as F}from"../lib/document/page-root.js";import{useEditorCanvasStyles as T}from"../lib/editor-canvas-styles.js";import{say as i}from"../../format/lib/editor-words.js";import{firstSectionOf as b}from"../../format/lib/page-starters.js";const j=1440,z=1080;function A({starter:t,config:a,metadata:n,busy:s,onAdd:d}){const{mirrorHostStyles:m}=T(),[l,c]=h(null),f=p(()=>{const r=b(t.layout),u=t.layout.zones;return{root:{props:{}},content:r?[r]:[],zones:u??{}}},[t.layout]);return o("div",{className:"sf-starter",children:[o(y,{padding:"none",className:"sf-starter-picture",children:[e("div",{inert:!0,className:"sf-starter-frame",children:e(C,{width:j,height:z,children:e(g,{id:`page-starter-${t.id}`,title:t.title,mirrorStyles:m,onDocument:c,height:"fill",children:e(x,{document:l??void 0,children:e(N,{onClickCapture:F,body:r=>e("div",{className:"sf-themed-content",style:r,children:e("div",{style:{background:"var(--bg)"},children:e(D,{config:a,data:f,metadata:n})})})})})})})}),e("div",{className:"sf-starter-add",children:e(v,{onClick:()=>d(t),loading:s,"aria-label":i("Add “{name}”",{name:t.title}),children:i("Add page")})})]}),e(S,{size:"sm",children:t.title})]})}export{A as default};
1
+ "use client";import{jsx as e,jsxs as d}from"react/jsx-runtime";import{useEffect as x,useState as n}from"react";import{CanvasFrame as N}from"efficient-easel/easel";import{Button as S,Card as b,FitFrame as D,Text as F}from"efficient-shell/ui";import H from"./PreviewThemeFrame.js";import P from"../../render/lib/document/page-render.js";import{SiteThemeCarrier as R,suppressPreviewNav as E}from"../lib/document/page-root.js";import{useEditorCanvasStyles as T}from"../lib/editor-canvas-styles.js";import{say as l}from"../../format/lib/editor-words.js";import{pinFrameViewport as _}from"../../format/lib/frame-viewport.js";const j=1440,s=800;function A({starter:t,config:f,metadata:h,busy:u,onAdd:p}){const{mirrorHostStyles:g}=T(),[i,v]=n(null),[C,w]=n(s),[r,y]=n(null);return x(()=>{if(!i)return;const a=_(i,s),o=i.defaultView,m=()=>{r&&w(Math.max(s,Math.ceil(r.getBoundingClientRect().height)))},c=o&&r?new o.ResizeObserver(m):null;return r&&c?.observe(r),m(),()=>{a(),c?.disconnect()}},[i,r]),d("div",{className:"sf-starter",children:[d(b,{padding:"none",className:"sf-starter-picture",children:[e("div",{inert:!0,className:"sf-starter-frame",children:e(D,{width:j,height:C,children:e(N,{id:`page-starter-${t.id}`,title:t.title,mirrorStyles:g,onDocument:v,height:"fill",children:e(H,{document:i??void 0,children:e(R,{onClickCapture:E,body:a=>e("div",{className:"sf-themed-content",style:a,children:e("div",{ref:y,style:{background:"var(--bg)"},children:e(P,{config:f,data:t.layout,metadata:h})})})})})})})}),e("div",{className:"sf-starter-add",children:e(S,{onClick:()=>p(t),loading:u,"aria-label":l("Add “{name}”",{name:t.title}),children:l("Add page")})})]}),e(F,{size:"sm",children:t.title})]})}export{A as default};
@@ -1 +1 @@
1
- "use client";import{jsx as a,Fragment as y,jsxs as C}from"react/jsx-runtime";import{useCallback as v,useEffect as g,useRef as te,useState as B}from"react";import{SettingsSwitch as oe}from"efficient-easel/panel";import{PagesIcon as re,StylesIcon as ne}from"efficient-easel/rail";import{PaletteIcon as ie}from"efficient-shell/icons/efficient";import{Subtree as se,TreeRow as D}from"efficient-easel/tree";import{useEasel as N}from"efficient-easel/easel";import{toItemSelector as ae}from"efficient-easel/node-ops";import{useEaselStrings as H}from"efficient-easel/strings";import{LocationsTreeContext as ce}from"./LocationsTreeContext.js";import{usePartTypingDeps as de}from"./usePartTypingDeps.js";import{copyItemWrite as le}from"../lib/document/card-copy-rows.js";import pe from"./PagesPanel.js";import{useShowPagesForAddPage as me}from"./AddPageOnOpen.js";import{usePreviewChat as ue}from"./PreviewChatContext.js";import{PREVIEW_DEVICES as fe}from"./preview-devices.js";import{PHONE_EDGE as Se}from"../../format/lib/content/view-lines.js";import{PreviewDeviceContext as Ee}from"efficient-easel/draw/client";import{usePreviewSocial as Pe}from"../../render/components/PreviewSocialContext.js";import{usePreviewSurface as he}from"./PreviewSurfaceContext.js";import{TICKER_PART_LABEL as Te,usePreviewTicker as we}from"../../render/components/PreviewTickerContext.js";import{heroStoresLegacyTicker as ge}from"../../format/lib/hero-ticker.js";import{usePreviewHeroPart as Ie}from"../../render/components/PreviewHeroPartContext.js";import{HERO_MEDIA_PARTS as be,HERO_PART_MODE as W,heroMediaRows as ve,heroPartId as M,readHeroPartId as _e}from"../../render/lib/document/hero-media-parts.js";import ke,{CHAT_MODE as Ce,HEADER_MODE as Re,SOCIAL_MODE as Le,WEBSITE_MODE as V,WEBSITE_PAGE_MODE as Oe}from"./SectionEditor.js";import R from"./SectionIcon.js";import Ae from"./SectionThumbnail.js";import{useScreenDocument as L}from"efficient-easel/screen/components/ScreenDocumentContext";import ye from"./StylesPanel.js";import{LOCATIONS_TYPE as Be,useLocationsTree as De}from"./useLocationsTree.js";import{usePinnedChromeSeed as Ne}from"./usePinnedChromeSeed.js";import{useHostDocumentBridge as He}from"./useHostDocumentBridge.js";import{usePreviewHref as We}from"./usePreviewHref.js";import{WebsitePreviewButton as Me}from"./WebsitePreviewButton.js";import{SITE_STYLES_BASICS_TAB as Ve,SITE_STYLES_TABS as xe,SITE_STYLES_TEXT_TAB as Ge,useWebsiteName as Ye}from"./WebsiteSettingsPanel.js";import{useWebsiteMainAction as Fe}from"./useWebsiteMainAction.js";import{VersionHistory as ze}from"./VersionHistoryDrawer.js";import{useEaselSession as x}from"efficient-easel/screen/lib/session-context";import{useOpenPageName as Ke}from"../lib/page-rows.js";import{HERO_GROUP_TYPE as je,heroGroupNestDepth as Ue}from"../../format/lib/hero-group-placement.js";import{stripMarkup as Ze}from"../../format/lib/markup.js";import{categoryShortLabel as qe,PINNED_SECTION_TYPE as Xe}from"../lib/document/add-palette.js";import{canAddTo as Je}from"../lib/document/add-target.js";import{cardTemplateSlotsOf as Qe}from"../../format/lib/document/card-template-layers.js";import{blockIsOffered as $e}from"../lib/document/block-offer.js";import{sectionIdOfBoxZone as et,setBookingPreview as tt}from"../../render/lib/document/booking-preview.js";import{footerBlockRowName as ot}from"../../format/lib/document/footer-block-row-name.js";import{sourceRowName as rt}from"../../format/lib/document/source-row-name.js";import{FOOTER_TYPE as nt,HEADER_TYPE as G}from"../lib/document/footer-blocks.js";import{leftViewForSelection as it,readLeftView as st,resolveLeftView as at,writeLeftView as ct}from"../../format/lib/document/left-view.js";import{websiteNodeIsLocked as dt}from"../lib/document/locked-blocks.js";import{everyPageNotice as lt,noOwnTab as pt,pinnedReach as Y,websiteDuplicateBlocked as mt}from"../lib/document/every-page.js";import{sharedSectionReach as ut,WEBSITE_SHARED_SECTIONS as ft}from"../lib/shared-sections-layer.js";import{activeSharedSections as O,setSharedEditor as F}from"../../format/lib/shared-sections-active.js";import{sharedSectionsOf as St}from"efficient-easel/screen/lib/shared-sections";import{pinnedChromeInPlace as _}from"../../format/lib/pinned-chrome-lock.js";import{scrollPreviewToSection as Et,scrollPreviewToTop as z}from"efficient-easel/screen/lib/document/preview-dom";import{SiteCanvas as Pt}from"../lib/document/overrides.js";import{labelAtLevel as ht}from"../../format/lib/document/section-catalog.js";import{WEBSITE_MEDIA_DROP as Tt}from"../../format/lib/document/media-drop.js";import{editorWords as wt,say as f}from"../../format/lib/editor-words.js";import{SECTION_DESCRIPTIONS as gt}from"../../format/lib/document/section-descriptions.js";import{groupAccepts as It,isSectionGroupType as bt,sectionGroupZone as vt,SITE_FOOTER_TYPE as K,SITE_HEADER_TYPE as _t}from"../../format/lib/document/section-groups.js";import{SaveAsTemplateButton as kt}from"./SaveAsTemplateButton.js";import{resolveSaveAsTemplateAction as Ct,SAVE_AS_TEMPLATE_EVENT as Rt}from"../../format/lib/save-as-template-action.js";import{menuPresets as Lt}from"../lib/sections/menu-presets.js";import{newSectionNode as Ot}from"../lib/sections/new-section-node.js";import{useHostProducts as At}from"../lib/use-host-products.js";import{backendOf as yt}from"../lib/website-session.js";function j({mode:e,open:t}){const{setSelectedHeroId:o,setSelectHandler:r}=we(),c=H().tree,d=e,n=d.kind==="ticker"?d.heroId:null,s=v(i=>{if(!i)return;t({kind:"ticker",heroId:i}),Et(i)},[t]);return g(()=>{o(n)},[n,o]),g(()=>{r(s)},[r,s]),{partRows:(i,{rowClick:m})=>{const S=String(i.props.id);return i.type==="Hero"&&ge(i.props)&&a(D,{icon:a(R,{type:"ticker",size:13}),name:f(Te),onSelect:()=>s(S),selected:n===S,rowProps:{onClick:m(()=>s(S))},words:c})}}}function U({mode:e,select:t}){const{setSelectedHeroPart:o,setSelectHandler:r}=Ie(),c=H().tree,{appState:d,config:n}=N(p=>p),s=te({data:d.data,config:n});s.current={data:d.data,config:n};const i=e,m=be.find(p=>W[p]===i.kind),S=m&&"nodeId"in i?M(String(i.nodeId),m):null,P=v(p=>{const l=_e(p);if(!l)return;const{data:T,config:h}=s.current,u=ae(T,h,{kind:"node",id:l.nodeId});if(!u)return;const I={kind:W[l.part],nodeId:l.nodeId};t({index:u.index,zone:u.zone},I)},[t]);return g(()=>{o(S)},[S,o]),g(()=>{r(P)},[r,P]),{partRows:(p,{rowClick:l})=>{const T=String(p.props.id),h=ve(p);if(h.length===0)return null;const u=E=>{const w=M(T,E.part);return a(D,{icon:a(R,{type:E.part==="media"?"heroMedia":"heroImage",size:13}),name:f(E.label),onSelect:()=>P(w),selected:S===w,rowProps:{onClick:l(()=>P(w))},words:c},w)},[I,...b]=h;return C(y,{children:[u(I),b.length>0&&a(se,{children:b.map(u)})]})}}}function Z(e,t){return{partRows:(o,r)=>C(y,{children:[e.partRows?.(o,r),t.partRows?.(o,r)]})}}function Bt(e){const{adapter:t,capabilities:o,currentSlug:r,siteId:c,docId:d,hasUnsavedEdits:n,bridgeCapabilities:s,notifyParent:i,token:m}=L(),{hasPreviewLink:S}=o,P=yt(x()).preview?.draftLink,p=Fe(e.data),l=Ct({hasTrustedConsole:!!m,canCreatePlatformTemplate:s.canCreatePlatformTemplate,capabilities:o,siteId:c,hasUnsavedEdits:n}),T=v(()=>{!c||!r||i(Rt,{siteId:c,slug:r})},[i,c,r]),h=We({pageSlug:r,siteId:c,token:m}),u=t.previewHref?.(r)??h;return{barLead:()=>l.visible&&a(kt,{enabled:l.enabled,reason:l.enabled?"":l.disabledReason,onSaved:T}),barView:()=>S&&r&&a(Me,{liveHref:u,pageId:d??null,draftLink:P}),mainAction:p}}function Dt(e,t){const{capabilities:o,templateId:r,siteId:c,tokenRef:d,navigate:n}=L(),{hasSiteTheme:s,explainsSiteSettings:i}=o,m=E=>t.setView(E),[S,P]=B(xe[0].id),[p,l]=B(!1),{surface:T,setSurface:h}=he(),u=()=>{if(s){m("styles"),t.reveal(),z();return}e.show(V),e.reveal(),z()},I={id:"pages",label:f("Pages"),icon:a(re,{}),panel:({onHide:E})=>a(pe,{activeSurface:T,onPreviewSurface:h,onNavigate:w=>{h(null),n(r?{kind:"template",id:r,pageSlug:w}:{kind:"page",slug:w,siteId:c??void 0})},onClose:E})},b=[];return!s&&i&&b.push({id:"appearance",label:f("Appearance"),icon:a(ie,{}),active:e.kind==="website",onSelect:u}),s&&b.push({id:"styles",label:f("Styles"),icon:a(ne,{}),panel:({onHide:E,notify:w})=>a(ye,{tokenRef:d,siteId:c??void 0,onClose:E,onNotify:w,tab:S,onTabChange:P,revealPageGroup:p,onPageGroupRevealed:()=>l(!1)})}),{railLead:[I],railTrail:b,resolveLeftView:E=>at(E,s),openSettings:u,openStyles:()=>{P(Ge),m("styles")},openPageStyles:s?()=>{P(Ve),l(!0),m("styles"),t.reveal()}:i?()=>{e.show(Oe),e.reveal()}:void 0}}function Nt(){const{navigate:e,siteId:t,reloadFromServer:o,docId:r}=L(),c=N(n=>n.config),d=x();g(()=>(F({openPage:n=>e({kind:"page",slug:n.slug,siteId:t??void 0}),reload:()=>{o()},config:c}),()=>F(null)),[e,t,o,c]),g(()=>{const n=O();if(!n||!r)return;let s=!1;return St(d).list().then(i=>{s||n.learn(i)}).catch(()=>{}),()=>{s=!0}},[r,d])}function q(){const e=de();return v(t=>{le(t,e)},[e])}function Ht(e,t,o,r){const{kind:c,open:d}=e,{selected:n,zoneOf:s}=t;g(()=>{tt(n?.type==="BookingBox"&&n.props.region==="confirm"?et(s(String(n.props.id))):null)},[n?.props.id]);const i=De(e,t),{capabilities:{hasSiteSettings:m}}=L();Nt();const{chat:S,setChat:P,setSelected:p,setSelectHandler:l}=ue(),T=v(()=>d(Ce),[d]),h=c==="chat";g(()=>{p(h)},[h,p]),g(()=>{l(T)},[l,T]);const{setOpenHandler:u}=Pe(),I=v(()=>d(Le),[d]);g(()=>{u(I)},[u,I]);const b=Z(j(e),U(e)),E=Bt(t),w=Dt(e,r);me(r);const Q=o.device,$=q();return{...b,...E,...w,hasOwnRows:k=>k.type===Be,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:$,wrap:k=>a(ce.Provider,{value:!0,children:C(Ee.Provider,{value:Q,children:[k,a(ze,{})]})}),addPanelRow:k=>m?C("div",{className:"sf-addside-sitewide",children:[a("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:a(R,{type:"chat",size:16})}),C("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{k(),T()},children:[f("Live chat"),a("span",{className:"sf-addside-sitewide-desc",children:f("A chat bubble on every page")})]}),a(oe,{checked:S.enabled,onChange:ee=>P({enabled:ee}),ariaLabel:f("Show the chat bubble on the whole site")})]}):void 0}}let X=null,A=new WeakMap;function Wt(e){const t=wt();if(!e||!t)return e;X!==t&&(X=t,A=new WeakMap);let o=A.get(e);return o||(o={...e,choices:e.choices?e.choices.map(r=>({...r,label:f(r.label)})):null,spec:e.spec?{...e.spec,addLabel:f(e.spec.addLabel),...e.spec.childLabel?{childLabel:f(e.spec.childLabel)}:{}}:null},A.set(e,o)),o}const Mt={isLockedBlock:(e,t)=>dt(e,t)||!!(t&&O()?.heldElsewhere(t.props.id)),duplicateBlocked:mt,nestDepth:(e,t,o)=>t===je?Ue(e,o):0,newSectionNode:Ot,canAddTo:(e,t,o,r)=>Wt(Je(e,t,r,o)),blockIsOffered:$e,slotsOf:Qe,resolveOnInsert:!0},Vt=new Proxy(gt,{get:(e,t)=>{const o=Reflect.get(e,t);return typeof o=="string"?f(o):o}}),xt={labelAtLevel:(e,t,o)=>f(ht(e,t,o)),descriptions:Vt,categoryLabel:e=>{const t=qe(e);return t===void 0?void 0:f(t)},firstSection:Xe,blockRowName:ot,rowName:rt,plainText:Ze,Icon:R,Thumbnail:Ae,useProducts:At,presets:Lt()},Gt={desktop:2e3,tablet:800,mobile:390},J="desktop",Yt={options:fe,initial:J,fluid:J,fluidMin:Se,widths:Gt,hidesPerView:!0},Ft={read:st,write:e=>ct(e),forSelection:(e,t)=>it(e,t)},zt={first:G,last:nt,firstGroup:_t,lastGroup:K,isSectionGroup:bt,sectionGroupZone:vt,panelOf:e=>e===G?Re:null,get sharedReach(){return _()?jt:void 0},get shared(){return O()?ft:void 0},get groupTab(){return _()?pt:void 0},get groupBadge(){return _()?Y({type:K})??void 0:void 0},get changeNotice(){return _()?lt():void 0},get band(){return _()?Kt:void 0},get groupAccepts(){return _()?It:void 0}},Kt={foldable:!0},jt=e=>Y(e)??ut(e);function Ut(e){return{...Z(j(e),U(e)),onCopyItem:q(),openSettings:()=>e.show(V)}}function Zt(e,t){Ne(e,t),He()}const pr={useOwnerName:Ye,useDocumentLabel:Ke,useBridges:Ht,useStandaloneBridges:Ut,useDocumentPass:Zt,blockRules:Mt,blockLook:xt,devices:Yt,leftView:Ft,pinned:zt,Canvas:Pt,canvasDrag:{media:Tt},Inspector:ke};export{pr as WEBSITE_SCREEN};
1
+ "use client";import{jsx as a,Fragment as y,jsxs as C}from"react/jsx-runtime";import{useCallback as v,useEffect as g,useRef as te,useState as B}from"react";import{SettingsSwitch as oe}from"efficient-easel/panel";import{PagesIcon as re,StylesIcon as ne}from"efficient-easel/rail";import{PaletteIcon as ie}from"efficient-shell/icons/efficient";import{Subtree as se,TreeRow as D}from"efficient-easel/tree";import{useEasel as N}from"efficient-easel/easel";import{toItemSelector as ae}from"efficient-easel/node-ops";import{useEaselStrings as H}from"efficient-easel/strings";import{LocationsTreeContext as ce}from"./LocationsTreeContext.js";import{usePartTypingDeps as de}from"./usePartTypingDeps.js";import{copyItemWrite as le}from"../lib/document/card-copy-rows.js";import pe from"./PagesPanel.js";import{useShowPagesForAddPage as me}from"./AddPageOnOpen.js";import{usePreviewChat as ue}from"./PreviewChatContext.js";import{PREVIEW_DEVICES as fe}from"./preview-devices.js";import{DESKTOP_CANVAS_MIN as Se}from"../../format/lib/content/view-lines.js";import{PreviewDeviceContext as Ee}from"efficient-easel/draw/client";import{usePreviewSocial as Pe}from"../../render/components/PreviewSocialContext.js";import{usePreviewSurface as he}from"./PreviewSurfaceContext.js";import{TICKER_PART_LABEL as Te,usePreviewTicker as we}from"../../render/components/PreviewTickerContext.js";import{heroStoresLegacyTicker as ge}from"../../format/lib/hero-ticker.js";import{usePreviewHeroPart as Ie}from"../../render/components/PreviewHeroPartContext.js";import{HERO_MEDIA_PARTS as be,HERO_PART_MODE as W,heroMediaRows as ve,heroPartId as M,readHeroPartId as _e}from"../../render/lib/document/hero-media-parts.js";import ke,{CHAT_MODE as Ce,HEADER_MODE as Re,SOCIAL_MODE as Le,WEBSITE_MODE as V,WEBSITE_PAGE_MODE as Oe}from"./SectionEditor.js";import R from"./SectionIcon.js";import Ae from"./SectionThumbnail.js";import{useScreenDocument as L}from"efficient-easel/screen/components/ScreenDocumentContext";import ye from"./StylesPanel.js";import{LOCATIONS_TYPE as Be,useLocationsTree as De}from"./useLocationsTree.js";import{usePinnedChromeSeed as Ne}from"./usePinnedChromeSeed.js";import{useHostDocumentBridge as He}from"./useHostDocumentBridge.js";import{usePreviewHref as We}from"./usePreviewHref.js";import{WebsitePreviewButton as Me}from"./WebsitePreviewButton.js";import{SITE_STYLES_BASICS_TAB as Ve,SITE_STYLES_TABS as xe,SITE_STYLES_TEXT_TAB as Ge,useWebsiteName as Ye}from"./WebsiteSettingsPanel.js";import{useWebsiteMainAction as Fe}from"./useWebsiteMainAction.js";import{VersionHistory as ze}from"./VersionHistoryDrawer.js";import{useEaselSession as x}from"efficient-easel/screen/lib/session-context";import{useOpenPageName as Ke}from"../lib/page-rows.js";import{HERO_GROUP_TYPE as je,heroGroupNestDepth as Ue}from"../../format/lib/hero-group-placement.js";import{stripMarkup as Ze}from"../../format/lib/markup.js";import{categoryShortLabel as qe,PINNED_SECTION_TYPE as Xe}from"../lib/document/add-palette.js";import{canAddTo as Je}from"../lib/document/add-target.js";import{cardTemplateSlotsOf as Qe}from"../../format/lib/document/card-template-layers.js";import{blockIsOffered as $e}from"../lib/document/block-offer.js";import{sectionIdOfBoxZone as et,setBookingPreview as tt}from"../../render/lib/document/booking-preview.js";import{footerBlockRowName as ot}from"../../format/lib/document/footer-block-row-name.js";import{sourceRowName as rt}from"../../format/lib/document/source-row-name.js";import{FOOTER_TYPE as nt,HEADER_TYPE as G}from"../lib/document/footer-blocks.js";import{leftViewForSelection as it,readLeftView as st,resolveLeftView as at,writeLeftView as ct}from"../../format/lib/document/left-view.js";import{websiteNodeIsLocked as dt}from"../lib/document/locked-blocks.js";import{everyPageNotice as lt,noOwnTab as pt,pinnedReach as Y,websiteDuplicateBlocked as mt}from"../lib/document/every-page.js";import{sharedSectionReach as ut,WEBSITE_SHARED_SECTIONS as ft}from"../lib/shared-sections-layer.js";import{activeSharedSections as O,setSharedEditor as F}from"../../format/lib/shared-sections-active.js";import{sharedSectionsOf as St}from"efficient-easel/screen/lib/shared-sections";import{pinnedChromeInPlace as _}from"../../format/lib/pinned-chrome-lock.js";import{scrollPreviewToSection as Et,scrollPreviewToTop as z}from"efficient-easel/screen/lib/document/preview-dom";import{SiteCanvas as Pt}from"../lib/document/overrides.js";import{labelAtLevel as ht}from"../../format/lib/document/section-catalog.js";import{WEBSITE_MEDIA_DROP as Tt}from"../../format/lib/document/media-drop.js";import{editorWords as wt,say as f}from"../../format/lib/editor-words.js";import{SECTION_DESCRIPTIONS as gt}from"../../format/lib/document/section-descriptions.js";import{groupAccepts as It,isSectionGroupType as bt,sectionGroupZone as vt,SITE_FOOTER_TYPE as K,SITE_HEADER_TYPE as _t}from"../../format/lib/document/section-groups.js";import{SaveAsTemplateButton as kt}from"./SaveAsTemplateButton.js";import{resolveSaveAsTemplateAction as Ct,SAVE_AS_TEMPLATE_EVENT as Rt}from"../../format/lib/save-as-template-action.js";import{menuPresets as Lt}from"../lib/sections/menu-presets.js";import{newSectionNode as Ot}from"../lib/sections/new-section-node.js";import{useHostProducts as At}from"../lib/use-host-products.js";import{backendOf as yt}from"../lib/website-session.js";function j({mode:e,open:t}){const{setSelectedHeroId:o,setSelectHandler:r}=we(),c=H().tree,d=e,n=d.kind==="ticker"?d.heroId:null,s=v(i=>{if(!i)return;t({kind:"ticker",heroId:i}),Et(i)},[t]);return g(()=>{o(n)},[n,o]),g(()=>{r(s)},[r,s]),{partRows:(i,{rowClick:m})=>{const S=String(i.props.id);return i.type==="Hero"&&ge(i.props)&&a(D,{icon:a(R,{type:"ticker",size:13}),name:f(Te),onSelect:()=>s(S),selected:n===S,rowProps:{onClick:m(()=>s(S))},words:c})}}}function U({mode:e,select:t}){const{setSelectedHeroPart:o,setSelectHandler:r}=Ie(),c=H().tree,{appState:d,config:n}=N(p=>p),s=te({data:d.data,config:n});s.current={data:d.data,config:n};const i=e,m=be.find(p=>W[p]===i.kind),S=m&&"nodeId"in i?M(String(i.nodeId),m):null,P=v(p=>{const l=_e(p);if(!l)return;const{data:T,config:h}=s.current,u=ae(T,h,{kind:"node",id:l.nodeId});if(!u)return;const I={kind:W[l.part],nodeId:l.nodeId};t({index:u.index,zone:u.zone},I)},[t]);return g(()=>{o(S)},[S,o]),g(()=>{r(P)},[r,P]),{partRows:(p,{rowClick:l})=>{const T=String(p.props.id),h=ve(p);if(h.length===0)return null;const u=E=>{const w=M(T,E.part);return a(D,{icon:a(R,{type:E.part==="media"?"heroMedia":"heroImage",size:13}),name:f(E.label),onSelect:()=>P(w),selected:S===w,rowProps:{onClick:l(()=>P(w))},words:c},w)},[I,...b]=h;return C(y,{children:[u(I),b.length>0&&a(se,{children:b.map(u)})]})}}}function Z(e,t){return{partRows:(o,r)=>C(y,{children:[e.partRows?.(o,r),t.partRows?.(o,r)]})}}function Bt(e){const{adapter:t,capabilities:o,currentSlug:r,siteId:c,docId:d,hasUnsavedEdits:n,bridgeCapabilities:s,notifyParent:i,token:m}=L(),{hasPreviewLink:S}=o,P=yt(x()).preview?.draftLink,p=Fe(e.data),l=Ct({hasTrustedConsole:!!m,canCreatePlatformTemplate:s.canCreatePlatformTemplate,capabilities:o,siteId:c,hasUnsavedEdits:n}),T=v(()=>{!c||!r||i(Rt,{siteId:c,slug:r})},[i,c,r]),h=We({pageSlug:r,siteId:c,token:m}),u=t.previewHref?.(r)??h;return{barLead:()=>l.visible&&a(kt,{enabled:l.enabled,reason:l.enabled?"":l.disabledReason,onSaved:T}),barView:()=>S&&r&&a(Me,{liveHref:u,pageId:d??null,draftLink:P}),mainAction:p}}function Dt(e,t){const{capabilities:o,templateId:r,siteId:c,tokenRef:d,navigate:n}=L(),{hasSiteTheme:s,explainsSiteSettings:i}=o,m=E=>t.setView(E),[S,P]=B(xe[0].id),[p,l]=B(!1),{surface:T,setSurface:h}=he(),u=()=>{if(s){m("styles"),t.reveal(),z();return}e.show(V),e.reveal(),z()},I={id:"pages",label:f("Pages"),icon:a(re,{}),panel:({onHide:E})=>a(pe,{activeSurface:T,onPreviewSurface:h,onNavigate:w=>{h(null),n(r?{kind:"template",id:r,pageSlug:w}:{kind:"page",slug:w,siteId:c??void 0})},onClose:E})},b=[];return!s&&i&&b.push({id:"appearance",label:f("Appearance"),icon:a(ie,{}),active:e.kind==="website",onSelect:u}),s&&b.push({id:"styles",label:f("Styles"),icon:a(ne,{}),panel:({onHide:E,notify:w})=>a(ye,{tokenRef:d,siteId:c??void 0,onClose:E,onNotify:w,tab:S,onTabChange:P,revealPageGroup:p,onPageGroupRevealed:()=>l(!1)})}),{railLead:[I],railTrail:b,resolveLeftView:E=>at(E,s),openSettings:u,openStyles:()=>{P(Ge),m("styles")},openPageStyles:s?()=>{P(Ve),l(!0),m("styles"),t.reveal()}:i?()=>{e.show(Oe),e.reveal()}:void 0}}function Nt(){const{navigate:e,siteId:t,reloadFromServer:o,docId:r}=L(),c=N(n=>n.config),d=x();g(()=>(F({openPage:n=>e({kind:"page",slug:n.slug,siteId:t??void 0}),reload:()=>{o()},config:c}),()=>F(null)),[e,t,o,c]),g(()=>{const n=O();if(!n||!r)return;let s=!1;return St(d).list().then(i=>{s||n.learn(i)}).catch(()=>{}),()=>{s=!0}},[r,d])}function q(){const e=de();return v(t=>{le(t,e)},[e])}function Ht(e,t,o,r){const{kind:c,open:d}=e,{selected:n,zoneOf:s}=t;g(()=>{tt(n?.type==="BookingBox"&&n.props.region==="confirm"?et(s(String(n.props.id))):null)},[n?.props.id]);const i=De(e,t),{capabilities:{hasSiteSettings:m}}=L();Nt();const{chat:S,setChat:P,setSelected:p,setSelectHandler:l}=ue(),T=v(()=>d(Ce),[d]),h=c==="chat";g(()=>{p(h)},[h,p]),g(()=>{l(T)},[l,T]);const{setOpenHandler:u}=Pe(),I=v(()=>d(Le),[d]);g(()=>{u(I)},[u,I]);const b=Z(j(e),U(e)),E=Bt(t),w=Dt(e,r);me(r);const Q=o.device,$=q();return{...b,...E,...w,hasOwnRows:k=>k.type===Be,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:$,wrap:k=>a(ce.Provider,{value:!0,children:C(Ee.Provider,{value:Q,children:[k,a(ze,{})]})}),addPanelRow:k=>m?C("div",{className:"sf-addside-sitewide",children:[a("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:a(R,{type:"chat",size:16})}),C("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{k(),T()},children:[f("Live chat"),a("span",{className:"sf-addside-sitewide-desc",children:f("A chat bubble on every page")})]}),a(oe,{checked:S.enabled,onChange:ee=>P({enabled:ee}),ariaLabel:f("Show the chat bubble on the whole site")})]}):void 0}}let X=null,A=new WeakMap;function Wt(e){const t=wt();if(!e||!t)return e;X!==t&&(X=t,A=new WeakMap);let o=A.get(e);return o||(o={...e,choices:e.choices?e.choices.map(r=>({...r,label:f(r.label)})):null,spec:e.spec?{...e.spec,addLabel:f(e.spec.addLabel),...e.spec.childLabel?{childLabel:f(e.spec.childLabel)}:{}}:null},A.set(e,o)),o}const Mt={isLockedBlock:(e,t)=>dt(e,t)||!!(t&&O()?.heldElsewhere(t.props.id)),duplicateBlocked:mt,nestDepth:(e,t,o)=>t===je?Ue(e,o):0,newSectionNode:Ot,canAddTo:(e,t,o,r)=>Wt(Je(e,t,r,o)),blockIsOffered:$e,slotsOf:Qe,resolveOnInsert:!0},Vt=new Proxy(gt,{get:(e,t)=>{const o=Reflect.get(e,t);return typeof o=="string"?f(o):o}}),xt={labelAtLevel:(e,t,o)=>f(ht(e,t,o)),descriptions:Vt,categoryLabel:e=>{const t=qe(e);return t===void 0?void 0:f(t)},firstSection:Xe,blockRowName:ot,rowName:rt,plainText:Ze,Icon:R,Thumbnail:Ae,useProducts:At,presets:Lt()},Gt={desktop:2e3,tablet:800,mobile:390},J="desktop",Yt={options:fe,initial:J,fluid:J,fluidMin:Se,widths:Gt,hidesPerView:!0},Ft={read:st,write:e=>ct(e),forSelection:(e,t)=>it(e,t)},zt={first:G,last:nt,firstGroup:_t,lastGroup:K,isSectionGroup:bt,sectionGroupZone:vt,panelOf:e=>e===G?Re:null,get sharedReach(){return _()?jt:void 0},get shared(){return O()?ft:void 0},get groupTab(){return _()?pt:void 0},get groupBadge(){return _()?Y({type:K})??void 0:void 0},get changeNotice(){return _()?lt():void 0},get band(){return _()?Kt:void 0},get groupAccepts(){return _()?It:void 0}},Kt={foldable:!0},jt=e=>Y(e)??ut(e);function Ut(e){return{...Z(j(e),U(e)),onCopyItem:q(),openSettings:()=>e.show(V)}}function Zt(e,t){Ne(e,t),He()}const pr={useOwnerName:Ye,useDocumentLabel:Ke,useBridges:Ht,useStandaloneBridges:Ut,useDocumentPass:Zt,blockRules:Mt,blockLook:xt,devices:Yt,leftView:Ft,pinned:zt,Canvas:Pt,canvasDrag:{media:Tt},Inspector:ke};export{pr as WEBSITE_SCREEN};
@@ -1681,7 +1681,7 @@
1681
1681
  flex: 1 1 0%;
1682
1682
  min-height: 0;
1683
1683
  overflow-y: auto;
1684
- padding: var(--space-32) var(--space-48);
1684
+ padding: var(--space-32);
1685
1685
  }
1686
1686
  /* The main area takes the window's first focus (initialFocus), so a mouse
1687
1687
  open draws no ring on "+ Blank page". It is not a control: no ring of its
@@ -1695,6 +1695,28 @@
1695
1695
  .sf-add-page-nav {
1696
1696
  padding: 0 var(--space-8);
1697
1697
  }
1698
+ /* "+ Blank page": the shell's quiet outline Button across the sidebar, on the
1699
+ list's side gutter, one block step (8 + the layout's 8) above the list. */
1700
+ .sf-add-page-blank {
1701
+ display: flex;
1702
+ padding: 0 var(--space-8) var(--space-8);
1703
+ }
1704
+ .sf-add-page-blank > button {
1705
+ flex: 1 1 auto;
1706
+ }
1707
+ /* The cards: three columns of different heights, each as tall as its whole
1708
+ pages (Wix), one setting step apart (Add page r05d). */
1709
+ .sf-add-page-cards {
1710
+ display: grid;
1711
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1712
+ gap: var(--space-32);
1713
+ align-items: start;
1714
+ }
1715
+ .sf-add-page-column {
1716
+ display: flex;
1717
+ flex-direction: column;
1718
+ gap: var(--space-32);
1719
+ }
1698
1720
  .sf-add-page-sub {
1699
1721
  margin: var(--space-8) 0 var(--space-32);
1700
1722
  }
@@ -1728,11 +1750,26 @@
1728
1750
  display: flex;
1729
1751
  align-items: center;
1730
1752
  justify-content: center;
1753
+ }
1754
+ /* The pointed card darkens under its one button (Add page r05d). Only this
1755
+ layer fades: the button sits above it and is never see-through, so it shows
1756
+ at its own colour from the first frame of the hover. */
1757
+ .sf-starter-add::before {
1758
+ content: "";
1759
+ position: absolute;
1760
+ inset: 0;
1761
+ background: color-mix(in srgb, var(--scrim-soft) 60%, transparent);
1731
1762
  opacity: 0;
1732
1763
  transition: opacity var(--motion-fast);
1733
1764
  }
1734
- .sf-starter:hover .sf-starter-add,
1735
- .sf-starter:focus-within .sf-starter-add {
1765
+ .sf-starter-add > * {
1766
+ position: relative;
1767
+ opacity: 0;
1768
+ }
1769
+ .sf-starter:hover .sf-starter-add::before,
1770
+ .sf-starter:focus-within .sf-starter-add::before,
1771
+ .sf-starter:hover .sf-starter-add > *,
1772
+ .sf-starter:focus-within .sf-starter-add > * {
1736
1773
  opacity: 1;
1737
1774
  }
1738
1775
  /* `.sf-pgroup*` and `.sf-prow` WERE HERE: the Pages headings are the shell's
@@ -1,14 +1,18 @@
1
1
  export declare const BOX_SIDE_SPACE_PROP = "sideSpace";
2
2
  export declare const BOX_SIDE_SPACE_SITE = "site";
3
+ export declare const BOX_SIDE_SPACE_NONE = "none";
3
4
  export declare const BOX_SIDE_SPACE_OPTIONS: readonly [{
4
5
  readonly value: "box";
5
6
  readonly label: "Box";
6
7
  }, {
7
8
  readonly value: "site";
8
9
  readonly label: "Site";
10
+ }, {
11
+ readonly value: "none";
12
+ readonly label: "None";
9
13
  }];
10
14
  export type BoxSideSpace = (typeof BOX_SIDE_SPACE_OPTIONS)[number]["value"];
11
15
  export declare const BOX_SIDE_SPACE_DEFAULT: BoxSideSpace;
12
- export declare const BOX_SIDE_SPACE_HINT = "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";
16
+ export declare const BOX_SIDE_SPACE_HINT = "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";
13
17
  export declare function boxSideSpaceOf(value: unknown): BoxSideSpace;
14
- export declare function boxSideSpaceWrite(next: unknown): typeof BOX_SIDE_SPACE_SITE | undefined;
18
+ export declare function boxSideSpaceWrite(next: unknown): typeof BOX_SIDE_SPACE_SITE | typeof BOX_SIDE_SPACE_NONE | undefined;
@@ -1 +1 @@
1
- import{SITE_SIDE as o}from"efficient-easel/screen/lib/content/length-units";const n="sideSpace",e=o,S=[{value:"box",label:"Box"},{value:e,label:"Site"}],i="box",p="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function x(t){return t===e?e:"box"}function _(t){return t===e?e:void 0}export{i as BOX_SIDE_SPACE_DEFAULT,p as BOX_SIDE_SPACE_HINT,S as BOX_SIDE_SPACE_OPTIONS,n as BOX_SIDE_SPACE_PROP,e as BOX_SIDE_SPACE_SITE,x as boxSideSpaceOf,_ as boxSideSpaceWrite};
1
+ import{SITE_SIDE as s}from"efficient-easel/screen/lib/content/length-units";const S="sideSpace",o=s,t="none",p=[{value:"box",label:"Box"},{value:o,label:"Site"},{value:t,label:"None"}],i="box",r="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function _(e){return e===o||e===t?e:"box"}function c(e){return e===o||e===t?e:void 0}export{i as BOX_SIDE_SPACE_DEFAULT,r as BOX_SIDE_SPACE_HINT,t as BOX_SIDE_SPACE_NONE,p as BOX_SIDE_SPACE_OPTIONS,S as BOX_SIDE_SPACE_PROP,o as BOX_SIDE_SPACE_SITE,_ as boxSideSpaceOf,c as boxSideSpaceWrite};
@@ -49,7 +49,7 @@ export declare const SIDE_ONCE_VALUE = "once";
49
49
  export declare function sideSpaceOnceAttr(rootProps: unknown): typeof SIDE_ONCE_VALUE | undefined;
50
50
  export declare const SITE_COLUMN_NARROW = "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
51
51
  export declare function siteSideRoom<S extends SideSpace = "box">(sideSpace?: S): (typeof SIDE_ROOMS)[S];
52
- type SideSpace = "box" | "site";
52
+ export type SideSpace = "box" | "site" | "none";
53
53
  declare const SIDE_ROOMS: {
54
54
  readonly box: {
55
55
  readonly className: "[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]";
@@ -69,6 +69,15 @@ declare const SIDE_ROOMS: {
69
69
  readonly onceFrame: "[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]";
70
70
  readonly onceGutter: "[[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]";
71
71
  };
72
+ readonly none: {
73
+ readonly className: "[--sf-pad-site:0px] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]";
74
+ readonly value: "var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))";
75
+ readonly edge: "[--sf-edge-g:var(--sf-pad-site)]";
76
+ readonly frame: "view-wide:px-0 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
77
+ readonly once: "[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(20px,var(--sf-box-g,var(--sf-site-gutter,40px))))]";
78
+ readonly onceFrame: "[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]";
79
+ readonly onceGutter: "[[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]";
80
+ };
72
81
  };
73
82
  export declare const SITE_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
74
83
  export declare const BOX_HOLDS_NO_GUTTER_CLASS = "[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";
@@ -1 +1 @@
1
- import{siteLengthCss as _,siteLengthHeld as P,storedUnit as b}from"./css-length.js";import{convertLength as D,rowGrid as G}from"efficient-easel/screen/lib/content/length-units";import{ownEntry as L}from"../own-entry.js";const s={min:1e3,max:2e3,step:50,default:1600};function d(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function ae(e,t){if(e!==!1)return null;const n=typeof t=="number"?t:s.default;return d(n)}const E="--sf-site-width",c=`var(${E},${s.default}px)`,pe="100vw",M=`max-w-[${c}]`,ue=`max-w-[${s.default}px]`;function v(e){return typeof e!="number"||!Number.isFinite(e)?s.default:Math.round(Math.min(Math.max(e,s.min),s.max))}function fe(e,t){const n=_(e,t,"size",s);if(n!==null)return{[E]:n};const r=v(e);return r===s.default?{}:{[E]:`${r}px`}}const i={min:0,max:80,step:4,default:40,typedMax:Number.POSITIVE_INFINITY},l="--sf-site-gutter",a={min:0,max:24,step:4,typedMax:Number.POSITIVE_INFINITY},U=G({kind:"spacing"},"vw",i).max;function w(e,t){return e<=t?`${e}px`:`min(${e}px, ${U}vw)`}const O="--sf-site-gutter-phone",W="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",y="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",o=`var(${l},${i.default}px)`,V=`px-[${o}]`,ce=["px-10","px-[60px]"],x={md:`min(24px,${o})`,sm:`min(20px,${o})`,frame:`min(24px,${o})`,tabs:`min(16px,${o})`},k=[[`max-view-desktop:px-[${x.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${x.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${x.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${x.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${x.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${x.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${x.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${x.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${o}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${o})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${o})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${o})]`,"max-view-tablet:-mx-5"],[`-mx-[${o}]`,"-mx-10"],[V,"px-10"]];function me(e){return k.reduce((t,[n,r])=>t.split(n).join(r),e)}const F="sideSpaceOnce",_e="data-sf-side",B="once";function de(e){if(!(!e||typeof e!="object"))return e[F]===!0?B:void 0}const T="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Ee(e){return u[e??"box"]}const m="[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(24px,var(--sf-site-gutter,40px)))]",p="[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]",S={"max-[960px]":m,"max-[900px]":m,"max-view-desktop":m,"max-[1100px]":m,"max-view-wide":p,"max-view-tablet":p,"max-[720px]":p,"max-[640px]":p,"max-[800px]":p},C="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",R="[--sf-edge-g:var(--sf-pad-site)]",u={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:C,edge:R,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(24px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:S["max-[960px]"],onceGutter:"[[data-sf-side=once]_&]:max-[960px]:[--sf-box-g:min(24px,var(--sf-site-gutter,40px))] [[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(24px,var(--sf-site-gutter,40px)))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:C,edge:R,frame:T,once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(20px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:S["max-view-wide"],onceGutter:"[[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]"}},le=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${T}`,h="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]",j="[[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter-phone:0px]";function Se(e){return`${j} ${u[e].onceGutter}`}const z="[[data-sf-side=once]_&]:[--sf-box-g:var(--sf-site-gutter,40px)] [[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter:0px] [[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter-phone:0px]",K="[[data-sf-side=once]_&]:max-view-wide:-mx-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]",Y=/^([^\s:]+):px-\[min\((?:20|24)px,var\(--sf-site-gutter,40px\)\)\]$/,X="max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))]";function Z(e){if(!e)return"";const t=[];for(const n of e.split(/\s+/)){const r=Y.exec(n)?.[1],f=r?L(S,r):void 0;f?t.push(f):n===X&&t.push(K)}return t.join(" ")}const ge="[[data-sf-side=once]_&]:[--sf-pad-site:inherit]",ve="[[data-sf-side=once]_&]:[--sf-edge-g:var(--sf-box-g,var(--sf-site-gutter,40px))]";function q(e){if(!e)return"";const t=e.split(" "),n=["site","box"].find(r=>u[r].className.split(" ").every(f=>t.includes(f)));return n?`${z} ${u[n].once} ${u[n].onceGutter}`:""}function we(e,t){const n=t?[q(e),Z(e)].filter(Boolean).join(" "):"";return n?`${e} ${n}`:e}function Oe(e){const t=h.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return e.split(` ${t}`).join("").split(` ${h}`).join("")}const Te="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function I(e){return typeof e!="number"||!Number.isFinite(e)?i.default:Math.round(Math.min(Math.max(e,i.min),i.typedMax))}function Ce(e,t){const n=_(e,t,"spacing",i);if(n!==null)return{[l]:n};const r=I(e);return r===i.default?{}:{[l]:w(r,i.max)}}function A(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,a.min),a.typedMax))}function Re(e){return typeof e=="number"&&Number.isFinite(e)?v(e):null}function he(e,t){const n=_(e,t,"spacing",a);if(n!==null)return{[O]:n};const r=A(e);return r===null?{}:{[O]:w(r,a.max)}}function Ie(e){return A(e)===null?"":`${W} ${y}`}function Ae(e,t){const n=P(e,t,"spacing",i),r=n===null?I(e):D(n,b(t),"px","mobile",a);return Math.min(a.max,r)}function J(e=0){return`calc(${c}/2 - ${o}*2 - ${e}px)`}function $e(e=0){return`max-w-[${J(e).replace(/ /g,"_")}]`}const $=c,Ne=`max-w-[${$}]`,He=`max-w-[min(var(--sf-page-cap,${s.default}px),${s.default}px)]`,N="--sf-hero-cap",Q=`var(${N},none)`,Pe=`max-w-[${Q}]`,ee="--sf-hero-bleed-m",te="--sf-hero-bleed-w",ne="--sf-hero-chrome-x",re="--sf-hero-chrome-cap";function be(e){return e===!0?{[N]:$,[ee]:"auto",[te]:"100%",[ne]:"24px",[re]:"none"}:{}}const g=`calc(${c} - ${o}*2)`,De=`max-w-[${g.replace(/ /g,"_")}]`,Ge=M;function Le(e){return e!==!1?null:d(H)}const oe="--sf-chrome-cap",H=`var(${oe},${g})`,Me="data-page-width";function Ue(e){return e==="full"?"full":null}function We(e){return e==="full"?null:d(e==="content"?g:H)}function ye(e){if(e==="full")return"full";if(e==="content")return"content"}export{h as BOX_HOLDS_NO_GUTTER_CLASS,H as CHROME_CAP_READ,oe as CHROME_CAP_VAR,g as CHROME_WIDTH_CAP,De as CHROME_WIDTH_CAP_CLASS,Te as EDITORIAL_COLUMN,pe as FULL_SECTION_WIDTH,Q as HERO_BACKGROUND_CAP,Pe as HERO_BACKGROUND_CAP_CLASS,N as HERO_BACKGROUND_VAR,ee as HERO_BLEED_MARGIN_VAR,te as HERO_BLEED_WIDTH_VAR,$ as HERO_CAP,Ne as HERO_CAP_CLASS,re as HERO_CHROME_CAP_VAR,ne as HERO_CHROME_INSET_VAR,s as PAGE_WIDTH,Me as PAGE_WIDTH_ATTR,Ge as PRE_CHROME_WIDTH_CAP_CLASS,He as PRE_HERO_CAP_CLASS,ce as PRE_SITE_GUTTER_CLASSES,ue as PRE_SITE_WIDTH_CAP_CLASS,_e as SIDE_ONCE_ATTR,ve as SIDE_ONCE_EDGE_GUTTER_CLASS,ge as SIDE_ONCE_EDGE_SIDE_CLASS,z as SIDE_ONCE_HOLDS_CLASS,B as SIDE_ONCE_VALUE,U as SIDE_SPACE_GUARD_VW,F as SIDE_SPACE_ONCE_PROP,le as SITE_COLUMN,T as SITE_COLUMN_NARROW,i as SITE_GUTTER,o as SITE_GUTTER_CAP,V as SITE_GUTTER_CLASS,x as SITE_GUTTER_NARROW,a as SITE_GUTTER_PHONE,W as SITE_GUTTER_PHONE_CLASS,y as SITE_GUTTER_PHONE_EDGE_CLASS,O as SITE_GUTTER_PHONE_VAR,k as SITE_GUTTER_SUBSTITUTIONS,l as SITE_GUTTER_VAR,c as SITE_WIDTH_CAP,M as SITE_WIDTH_CAP_CLASS,E as SITE_WIDTH_VAR,me as asMainGutters,d as centredCap,We as chromeWidthStyle,be as heroBackgroundTokens,Re as normalizeSectionContentMax,I as normalizeSiteGutter,A as normalizeSiteGutterPhone,v as normalizeSiteWidth,Ue as pageWidthMarker,ae as pageWidthStyle,ye as resolveChromeWidth,Se as sideOnceFrameHolds,de as sideSpaceOnceAttr,Ie as siteGutterPhoneClass,Ae as siteGutterPhoneFollows,he as siteGutterPhoneTokens,Ce as siteGutterTokens,J as siteHalfColumnCap,$e as siteHalfColumnCapClass,Ee as siteSideRoom,Le as siteWidthCapStyle,fe as siteWidthTokens,we as withSideOnce,Oe as withoutBoxHoldsNoGutter};
1
+ import{siteLengthCss as _,siteLengthHeld as H,storedUnit as P}from"./css-length.js";import{convertLength as D,rowGrid as G}from"efficient-easel/screen/lib/content/length-units";import{ownEntry as L}from"../own-entry.js";const i={min:1e3,max:2e3,step:50,default:1600};function E(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function ae(e,t){if(e!==!1)return null;const n=typeof t=="number"?t:i.default;return E(n)}const l="--sf-site-width",m=`var(${l},${i.default}px)`,pe="100vw",M=`max-w-[${m}]`,ue=`max-w-[${i.default}px]`;function O(e){return typeof e!="number"||!Number.isFinite(e)?i.default:Math.round(Math.min(Math.max(e,i.min),i.max))}function fe(e,t){const n=_(e,t,"size",i);if(n!==null)return{[l]:n};const r=O(e);return r===i.default?{}:{[l]:`${r}px`}}const o={min:0,max:80,step:4,default:40,typedMax:Number.POSITIVE_INFINITY},v="--sf-site-gutter",a={min:0,max:24,step:4,typedMax:Number.POSITIVE_INFINITY},U=G({kind:"spacing"},"vw",o).max;function T(e,t){return e<=t?`${e}px`:`min(${e}px, ${U}vw)`}const C="--sf-site-gutter-phone",W="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",y="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",s=`var(${v},${o.default}px)`,V=`px-[${s}]`,me=["px-10","px-[60px]"],x={md:`min(24px,${s})`,sm:`min(20px,${s})`,frame:`min(24px,${s})`,tabs:`min(16px,${s})`},k=[[`max-view-desktop:px-[${x.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${x.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${x.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${x.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${x.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${x.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${x.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${x.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${s}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${s})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${s})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${s})]`,"max-view-tablet:-mx-5"],[`-mx-[${s}]`,"-mx-10"],[V,"px-10"]];function ce(e){return k.reduce((t,[n,r])=>t.split(n).join(r),e)}const F="sideSpaceOnce",de="data-sf-side",B="once";function _e(e){if(!(!e||typeof e!="object"))return e[F]===!0?B:void 0}const R="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Ee(e){return u[e??"box"]}const c="[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(24px,var(--sf-site-gutter,40px)))]",p="[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]",d={"max-[960px]":c,"max-[900px]":c,"max-view-desktop":c,"max-[1100px]":c,"max-view-wide":p,"max-view-tablet":p,"max-[720px]":p,"max-[640px]":p,"max-[800px]":p},g="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",w="[--sf-edge-g:var(--sf-pad-site)]",u={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:g,edge:w,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(24px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:d["max-[960px]"],onceGutter:"[[data-sf-side=once]_&]:max-[960px]:[--sf-box-g:min(24px,var(--sf-site-gutter,40px))] [[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(24px,var(--sf-site-gutter,40px)))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:g,edge:w,frame:R,once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(20px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:d["max-view-wide"],onceGutter:"[[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]"},none:{className:"[--sf-pad-site:0px] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:g,edge:w,frame:"view-wide:px-0 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(20px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:d["max-view-wide"],onceGutter:"[[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]"}},le=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${R}`,h="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]",j="[[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter-phone:0px]";function ve(e){return`${j} ${u[e].onceGutter}`}const z="[[data-sf-side=once]_&]:[--sf-box-g:var(--sf-site-gutter,40px)] [[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter:0px] [[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter-phone:0px]",K="[[data-sf-side=once]_&]:max-view-wide:-mx-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]",Y=/^([^\s:]+):px-\[min\((?:20|24)px,var\(--sf-site-gutter,40px\)\)\]$/,X="max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))]";function Z(e){if(!e)return"";const t=[];for(const n of e.split(/\s+/)){const r=Y.exec(n)?.[1],f=r?L(d,r):void 0;f?t.push(f):n===X&&t.push(K)}return t.join(" ")}const ge="[[data-sf-side=once]_&]:[--sf-pad-site:inherit]",we="[[data-sf-side=once]_&]:[--sf-edge-g:var(--sf-box-g,var(--sf-site-gutter,40px))]";function q(e){if(!e)return"";const t=e.split(" "),n=["none","site","box"].find(r=>u[r].className.split(" ").every(f=>t.includes(f)));return n?`${z} ${u[n].once} ${u[n].onceGutter}`:""}function Se(e,t){const n=t?[q(e),Z(e)].filter(Boolean).join(" "):"";return n?`${e} ${n}`:e}function Oe(e){const t=h.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return e.split(` ${t}`).join("").split(` ${h}`).join("")}const Te="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function I(e){return typeof e!="number"||!Number.isFinite(e)?o.default:Math.round(Math.min(Math.max(e,o.min),o.typedMax))}function Ce(e,t){const n=_(e,t,"spacing",o);if(n!==null)return{[v]:n};const r=I(e);return r===o.default?{}:{[v]:T(r,o.max)}}function A(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,a.min),a.typedMax))}function Re(e){return typeof e=="number"&&Number.isFinite(e)?O(e):null}function he(e,t){const n=_(e,t,"spacing",a);if(n!==null)return{[C]:n};const r=A(e);return r===null?{}:{[C]:T(r,a.max)}}function Ie(e){return A(e)===null?"":`${W} ${y}`}function Ae(e,t){const n=H(e,t,"spacing",o),r=n===null?I(e):D(n,P(t),"px","mobile",a);return Math.min(a.max,r)}function J(e=0){return`calc(${m}/2 - ${s}*2 - ${e}px)`}function $e(e=0){return`max-w-[${J(e).replace(/ /g,"_")}]`}const $=m,Ne=`max-w-[${$}]`,be=`max-w-[min(var(--sf-page-cap,${i.default}px),${i.default}px)]`,N="--sf-hero-cap",Q=`var(${N},none)`,He=`max-w-[${Q}]`,ee="--sf-hero-bleed-m",te="--sf-hero-bleed-w",ne="--sf-hero-chrome-x",re="--sf-hero-chrome-cap";function Pe(e){return e===!0?{[N]:$,[ee]:"auto",[te]:"100%",[ne]:"24px",[re]:"none"}:{}}const S=`calc(${m} - ${s}*2)`,De=`max-w-[${S.replace(/ /g,"_")}]`,Ge=M;function Le(e){return e!==!1?null:E(b)}const se="--sf-chrome-cap",b=`var(${se},${S})`,Me="data-page-width";function Ue(e){return e==="full"?"full":null}function We(e){return e==="full"?null:E(e==="content"?S:b)}function ye(e){if(e==="full")return"full";if(e==="content")return"content"}export{h as BOX_HOLDS_NO_GUTTER_CLASS,b as CHROME_CAP_READ,se as CHROME_CAP_VAR,S as CHROME_WIDTH_CAP,De as CHROME_WIDTH_CAP_CLASS,Te as EDITORIAL_COLUMN,pe as FULL_SECTION_WIDTH,Q as HERO_BACKGROUND_CAP,He as HERO_BACKGROUND_CAP_CLASS,N as HERO_BACKGROUND_VAR,ee as HERO_BLEED_MARGIN_VAR,te as HERO_BLEED_WIDTH_VAR,$ as HERO_CAP,Ne as HERO_CAP_CLASS,re as HERO_CHROME_CAP_VAR,ne as HERO_CHROME_INSET_VAR,i as PAGE_WIDTH,Me as PAGE_WIDTH_ATTR,Ge as PRE_CHROME_WIDTH_CAP_CLASS,be as PRE_HERO_CAP_CLASS,me as PRE_SITE_GUTTER_CLASSES,ue as PRE_SITE_WIDTH_CAP_CLASS,de as SIDE_ONCE_ATTR,we as SIDE_ONCE_EDGE_GUTTER_CLASS,ge as SIDE_ONCE_EDGE_SIDE_CLASS,z as SIDE_ONCE_HOLDS_CLASS,B as SIDE_ONCE_VALUE,U as SIDE_SPACE_GUARD_VW,F as SIDE_SPACE_ONCE_PROP,le as SITE_COLUMN,R as SITE_COLUMN_NARROW,o as SITE_GUTTER,s as SITE_GUTTER_CAP,V as SITE_GUTTER_CLASS,x as SITE_GUTTER_NARROW,a as SITE_GUTTER_PHONE,W as SITE_GUTTER_PHONE_CLASS,y as SITE_GUTTER_PHONE_EDGE_CLASS,C as SITE_GUTTER_PHONE_VAR,k as SITE_GUTTER_SUBSTITUTIONS,v as SITE_GUTTER_VAR,m as SITE_WIDTH_CAP,M as SITE_WIDTH_CAP_CLASS,l as SITE_WIDTH_VAR,ce as asMainGutters,E as centredCap,We as chromeWidthStyle,Pe as heroBackgroundTokens,Re as normalizeSectionContentMax,I as normalizeSiteGutter,A as normalizeSiteGutterPhone,O as normalizeSiteWidth,Ue as pageWidthMarker,ae as pageWidthStyle,ye as resolveChromeWidth,ve as sideOnceFrameHolds,_e as sideSpaceOnceAttr,Ie as siteGutterPhoneClass,Ae as siteGutterPhoneFollows,he as siteGutterPhoneTokens,Ce as siteGutterTokens,J as siteHalfColumnCap,$e as siteHalfColumnCapClass,Ee as siteSideRoom,Le as siteWidthCapStyle,fe as siteWidthTokens,Se as withSideOnce,Oe as withoutBoxHoldsNoGutter};
@@ -1,5 +1,6 @@
1
1
  export declare const RESPONSIVE_RULES: "v1" | "v2";
2
2
  export declare const PHONE_EDGE = 800;
3
+ export declare const DESKTOP_CANVAS_MIN = 961;
3
4
  export declare const VIEW_LINE_PX: {
4
5
  readonly "view-tablet": 720;
5
6
  readonly "view-desktop": 1100;
@@ -1 +1 @@
1
- import{VIEW_DESKTOP_MIN as s,VIEW_TABLET_MIN as p}from"efficient-easel/screen/lib/content/view-tiers";const _="v1",n=800,x={"view-tablet":p,"view-desktop":s,"view-wide":n};function I(t){const e=t.startsWith("max-"),E=e?t.slice(4):t;if(E in x)return{px:x[E],max:e};const o=/^(max|min)-\[(\d+)px\]$/.exec(t);return o?{px:Number(o[2]),max:o[1]==="max"}:void 0}const d=`(min-width: ${n}px)`,r="data-sf-line",c="edge",m={[r]:c},N=(t,e)=>t==="edge"||t!=="section"&&e;export{m as EDGE_LINE_ATTRS,d as EDGE_WIDE_MEDIA,r as LINE_ATTR,c as LINE_EDGE,n as PHONE_EDGE,_ as RESPONSIVE_RULES,x as VIEW_LINE_PX,I as breakpointOf,N as drawsAtEdge};
1
+ import{VIEW_DESKTOP_MIN as s,VIEW_TABLET_MIN as x}from"efficient-easel/screen/lib/content/view-tiers";import{ownEntry as p}from"../own-entry.js";const m="v1",E=800,N=961,c={"view-tablet":x,"view-desktop":s,"view-wide":E};function f(t){const e=t.startsWith("max-"),r=e?t.slice(4):t,n=p(c,r);if(n!==void 0)return{px:n,max:e};const o=/^(max|min)-\[(\d+)px\]$/.exec(t);return o?{px:Number(o[2]),max:o[1]==="max"}:void 0}const D=`(min-width: ${E}px)`,_="data-sf-line",i="edge",T={[_]:i},w=(t,e)=>t==="edge"||t!=="section"&&e;export{N as DESKTOP_CANVAS_MIN,T as EDGE_LINE_ATTRS,D as EDGE_WIDE_MEDIA,_ as LINE_ATTR,i as LINE_EDGE,E as PHONE_EDGE,m as RESPONSIVE_RULES,c as VIEW_LINE_PX,f as breakpointOf,w as drawsAtEdge};
@@ -225,6 +225,7 @@ export declare const WEB_BUILDER_WORDS: {
225
225
  readonly "Box name": "Box name";
226
226
  readonly "Box shape": "Box shape";
227
227
  readonly "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.": "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";
228
+ readonly "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.": "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";
228
229
  readonly "Brand Text": "Brand Text";
229
230
  readonly "Brand name": "Brand name";
230
231
  readonly Breadcrumb: "Breadcrumb";