efficient-web-builder 74.6.0 → 74.8.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/editor/components/AddPageWindow.js +1 -1
  3. package/dist/editor/components/CustomHtmlCodeWindow.js +3 -3
  4. package/dist/editor/components/DuplicateToPageMenu.js +1 -1
  5. package/dist/editor/components/PageStarterCard.js +1 -1
  6. package/dist/editor/components/PagesPanel.js +1 -1
  7. package/dist/editor/components/PartSettingsPanel.js +1 -1
  8. package/dist/editor/components/PreviewPartAnchors.d.ts +2 -2
  9. package/dist/editor/components/PreviewPartAnchors.js +1 -1
  10. package/dist/editor/components/SectionTextPartBridge.js +1 -1
  11. package/dist/editor/components/SiteAccentField.js +1 -1
  12. package/dist/editor/components/SiteTextStylesField.d.ts +2 -0
  13. package/dist/editor/components/SiteTextStylesField.js +1 -1
  14. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  15. package/dist/editor/components/StorefrontEditor.js +1 -1
  16. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  17. package/dist/editor/components/storefront-editor.css +45 -8
  18. package/dist/editor/components/useSocialSettings.d.ts +2 -2
  19. package/dist/editor/lib/content/section-one-padding.d.ts +31 -0
  20. package/dist/editor/lib/content/section-one-padding.js +1 -0
  21. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  22. package/dist/editor/lib/document/box-fields.d.ts +1 -1
  23. package/dist/editor/lib/document/page-root.js +2 -2
  24. package/dist/format/lib/content/box-shape.d.ts +1 -1
  25. package/dist/format/lib/content/box-side-space.d.ts +6 -2
  26. package/dist/format/lib/content/box-side-space.js +1 -1
  27. package/dist/format/lib/content/page-width.d.ts +10 -1
  28. package/dist/format/lib/content/page-width.js +1 -1
  29. package/dist/format/lib/content/view-lines.d.ts +1 -0
  30. package/dist/format/lib/content/view-lines.js +1 -1
  31. package/dist/format/lib/document/blocks/block-types.d.ts +2 -0
  32. package/dist/format/lib/document/passes/types.d.ts +2 -0
  33. package/dist/format/lib/document/style-text.d.ts +2 -0
  34. package/dist/format/lib/document/style-text.js +1 -1
  35. package/dist/format/lib/editor-words-catalogue.d.ts +1 -0
  36. package/dist/format/lib/editor-words-catalogue.js +1 -1
  37. package/dist/format/lib/editor-words-kept.js +1 -1
  38. package/dist/format/lib/fonts.d.ts +43 -7
  39. package/dist/format/lib/fonts.js +1 -1
  40. package/dist/format/lib/frame-viewport.d.ts +3 -0
  41. package/dist/format/lib/frame-viewport.js +1 -0
  42. package/dist/format/lib/page-starters.d.ts +2 -0
  43. package/dist/format/lib/page-starters.js +1 -1
  44. package/dist/format/lib/site-font-faces.d.ts +9 -0
  45. package/dist/format/lib/site-font-faces.js +2 -0
  46. package/dist/format/lib/site-theme-row.d.ts +29 -1
  47. package/dist/format/lib/site-theme-row.js +1 -0
  48. package/dist/format/lib/sized-image.js +1 -1
  49. package/dist/format/lib/source-rules/one-dropdown.js +3 -3
  50. package/dist/format/lib/source-rules/page-picture-place.js +3 -3
  51. package/dist/format/lib/source-rules/published-mounts.js +38 -38
  52. package/dist/format/lib/source-rules/shape-rows-use-the-picker.js +2 -2
  53. package/dist/format/lib/source-rules/support/element-call.d.ts +5 -0
  54. package/dist/format/lib/source-rules/support/element-call.js +1 -0
  55. package/dist/format/lib/word-styles.d.ts +7 -6
  56. package/dist/format/lib/word-styles.js +1 -1
  57. package/dist/render/components/BlockFrame.d.ts +3 -1
  58. package/dist/render/components/BlockFrame.js +1 -1
  59. package/dist/render/components/Flex.js +1 -1
  60. package/dist/render/components/HeroPictures.d.ts +2 -2
  61. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  62. package/dist/render/components/SiteFontsContext.d.ts +11 -0
  63. package/dist/render/components/SiteFontsContext.js +2 -0
  64. package/dist/render/lib/content/section-own-pads.d.ts +2 -2
  65. package/dist/render/lib/content/section-own-pads.js +1 -1
  66. package/dist/render/lib/content/section-padding.d.ts +3 -2
  67. package/dist/render/lib/document/part-styles.d.ts +7 -5
  68. package/dist/render/lib/document/part-styles.js +2 -2
  69. package/dist/render/lib/document/passes/section-padding.d.ts +2 -1
  70. package/dist/render/lib/document/passes/section-padding.js +1 -1
  71. package/dist/render/lib/text-styles/site-text-styles.d.ts +3 -3
  72. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  73. package/dist/routine-index.json +1 -1
  74. package/dist/value-index.json +1 -1
  75. package/package.json +2 -2
@@ -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};
@@ -222,7 +222,7 @@
222
222
  line-height: 1;
223
223
  box-shadow: 0 0 0 2px var(--sf-panel);
224
224
  opacity: 0;
225
- transition: opacity 0.12s, transform 0.12s;
225
+ transition: opacity var(--motion-fast), transform var(--motion-fast);
226
226
  }
227
227
  .sf-gap:hover .sf-gap-line,
228
228
  .sf-gap:focus-visible .sf-gap-line {
@@ -413,7 +413,7 @@
413
413
  backdrop-filter: blur(2px);
414
414
  -webkit-backdrop-filter: blur(2px);
415
415
  opacity: 0;
416
- transition: opacity 0.15s;
416
+ transition: opacity var(--motion-base);
417
417
  pointer-events: none;
418
418
  }
419
419
  .sf-addcard:hover .sf-addcard-overlay,
@@ -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
@@ -2590,7 +2627,7 @@
2590
2627
  flex: none;
2591
2628
  align-items: center;
2592
2629
  color: var(--sf-disabled);
2593
- transition: transform 120ms ease;
2630
+ transition: transform var(--motion-fast) ease;
2594
2631
  }
2595
2632
  .sf-style-row.is-open .sf-style-caret {
2596
2633
  transform: rotate(90deg);
@@ -2655,7 +2692,7 @@
2655
2692
  color: var(--sf-muted);
2656
2693
  opacity: 0;
2657
2694
  transform: scale(0.6);
2658
- transition: opacity 160ms ease, transform 160ms ease;
2695
+ transition: opacity var(--motion-base) ease, transform var(--motion-base) ease;
2659
2696
  }
2660
2697
  .sf-style-slot.is-saved {
2661
2698
  opacity: 1;
@@ -3132,7 +3169,7 @@
3132
3169
  font-weight: 500;
3133
3170
  color: var(--sf-icon);
3134
3171
  cursor: pointer;
3135
- transition: background 0.12s, color 0.12s, box-shadow 0.12s;
3172
+ transition: background var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast);
3136
3173
  }
3137
3174
  /* …AND AT THE NARROW END, THE LAST 3.48px (card 66221). Wrapping the header
3138
3175
  panel's rows put every strip onto a line of its own, which took the widest of
@@ -7,8 +7,8 @@ export declare function useSocialSettings({ token, siteId, enabled, }: {
7
7
  siteId: string | null;
8
8
  enabled: boolean;
9
9
  }): {
10
- links: Partial<Record<"line" | "x" | "youtube" | "instagram" | "facebook" | "tiktok" | "linkedin" | "pinterest" | "whatsapp" | "telegram" | "wechat", string>>;
11
- rows: Record<"line" | "x" | "youtube" | "instagram" | "facebook" | "tiktok" | "linkedin" | "pinterest" | "whatsapp" | "telegram" | "wechat", SocialRowState>;
10
+ links: Partial<Record<"x" | "line" | "youtube" | "instagram" | "facebook" | "tiktok" | "linkedin" | "pinterest" | "whatsapp" | "telegram" | "wechat", string>>;
11
+ rows: Record<"x" | "line" | "youtube" | "instagram" | "facebook" | "tiktok" | "linkedin" | "pinterest" | "whatsapp" | "telegram" | "wechat", SocialRowState>;
12
12
  canSave: boolean;
13
13
  saveLink: (platform: SocialPlatform, value: string) => Promise<SocialSaveOutcome>;
14
14
  };
@@ -0,0 +1,31 @@
1
+ import { type OwnFrame } from "../../../render/lib/content/section-padding.js";
2
+ type Props = Record<string, unknown>;
3
+ type OnePaddingHost = {
4
+ types: readonly string[];
5
+ draw: (type: string, props: Props, editing?: boolean) => string;
6
+ sectionOf: (html: string) => Element | null;
7
+ frameOf: (type: string) => ((props: Props) => OwnFrame) | undefined;
8
+ defaultsOf?: (type: string) => Props;
9
+ innerRoom?: Readonly<Record<string, string>>;
10
+ views?: {
11
+ tablet: number;
12
+ mobile: number;
13
+ };
14
+ };
15
+ type OnePaddingResult = {
16
+ wrapped: string[];
17
+ owns: string[];
18
+ checks: number;
19
+ failures: string[];
20
+ };
21
+ export declare function edgeLineAt(start: Element, side: "t" | "b", width: number, unknown: string[], skipStartPad?: boolean): {
22
+ sum: number;
23
+ seen: string;
24
+ };
25
+ export declare function edgeLine(start: Element, side: "t" | "b"): {
26
+ sum: number;
27
+ seen: string;
28
+ };
29
+ export declare const edgeHolds: (before: number, after: number, frame: number, total: number) => boolean;
30
+ export declare function sectionOnePadding(host: OnePaddingHost): OnePaddingResult;
31
+ export {};
@@ -0,0 +1 @@
1
+ import{frameAt as B}from"../../../render/lib/content/section-padding.js";import{ownEntry as I}from"../../../format/lib/own-entry.js";const Y=/^(?:[^\s]*:)?p[ytb]-/,O=/(^|;)\s*padding-(top|bottom)\s*:/,Z=/^p[ytb]-0$/,z={sectionPaddingTop:40,sectionPaddingBottom:50,sectionPaddingTopTablet:30,sectionPaddingBottomTablet:36,sectionPaddingTopPhone:20,sectionPaddingBottomPhone:24,padTotal:["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"]};function D(e){const o=/^([pm])([ytb])-(?:(\d+(?:\.\d+)?)|\[(\d+(?:\.\d+)?)px\])$/.exec(e);return o?{kind:o[1],side:o[2],px:o[3]!==void 0?Number(o[3])*4:Number(o[4])}:null}const P=e=>(e.getAttribute("class")??"").split(/\s+/).filter(Boolean),u=e=>e.getAttribute("style")??"",H=(e,o)=>new RegExp(`(?:^|;)\\s*padding-${o==="t"?"top":"bottom"}\\s*:\\s*(\\d+(?:\\.\\d+)?)px`).exec(u(e)),J={desktop:1440,tablet:1099,mobile:390},V={"view-desktop":1100,"view-wide":800,"view-tablet":720,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},q=/^max-(?:\[(\d+)px\]|(.+))$/,W=e=>{const o=q.exec(e);return o?o[1]!==void 0?Number(o[1]):I(V,o[2]):void 0};function K(e,o){if(q.test(e)){const r=W(e);return r===void 0?void 0:o<r}const d=/^(?:min-\[(\d+)px\]|(.+))$/.exec(e),s=d?.[1]!==void 0?Number(d[1]):I(V,d?.[2]??"");return s===void 0?void 0:o>=s}function Q(e,o,d,s){const r=e.split(":"),f=D(r.pop()??"");if(!f)return null;let a=0;for(const i of r){const p=(i==="first"?!d.previousElementSibling:i==="last"?!d.nextElementSibling:void 0)??K(i,o);if(p===void 0)return s.push(e),null;if(!p)return null;const t=W(i);a+=1+(t!==void 0?1/(1+t):0)}return{...f,rank:a}}function F(e,o,d,s,r=!1){let f=0;const a=[];for(let i=e;i;i=o==="t"?i.firstElementChild:i.lastElementChild){const m=H(i,o);let p={px:m?Number(m[1]):0,rank:m?1/0:-1},t={px:0,rank:-1};for(const $ of P(i)){const l=Q($,d,i,s);!l||l.side!=="y"&&l.side!==o||(l.kind==="m"?t=l.rank>=t.rank?l:t:p=l.rank>=p.rank?l:p)}const c=(r&&i===e?0:p.px)+t.px;c&&a.push(`${i.tagName.toLowerCase()}:${c}`),f+=c}return{sum:f,seen:a.join(" > ")}}function X(e,o){let d=0;const s=[];for(let r=e;r;r=o==="t"?r.firstElementChild:r.lastElementChild){const f=H(r,o);let a=f?Number(f[1]):0,i=0;for(const p of P(r)){const t=D(p);!t||t.side!=="y"&&t.side!==o||(t.kind==="m"?i=t.px:f||(a=t.px))}const m=a+i;m&&s.push(`${r.tagName.toLowerCase()}:${m}`),d+=m}return{sum:d,seen:s.join(" > ")}}const U=(e,o,d,s)=>e-d>=0&&o-s===e-d,C=e=>Y.test(e)&&!Z.test(e);function ot(e){const o=[];let d=0;const s=(t,c,$="")=>{d++,t||o.push(`${c}${$?` — ${$.slice(0,600)}`:""}`)},r=e.innerRoom??{},f=e.defaultsOf??(()=>({})),a=[],i=t=>e.sectionOf(t)?.querySelectorAll("*").length??0,m=e.types.filter(t=>{const c=e.draw(t,{sectionPaddingTop:40});return c.includes("sf-section-pad")&&i(c)===i(e.draw(t,{}))+1}),p=[];for(const t of m){const c=e.frameOf(t),$=e.draw(t,z),l=e.sectionOf($);if(!l){s(!1,`§2 ${t}: draws`,$.slice(0,200));continue}const j=Array.from(l.querySelectorAll("*")),k=j.filter(n=>P(n).includes("sf-section-pad")&&!n.parentElement?.closest("section")),G=Array.from(e.sectionOf(e.draw(t,{}))?.querySelectorAll("*")??[]).some(n=>P(n).some(C)||O.test(u(n))),L=Object.prototype.hasOwnProperty.call(r,t);if(L&&s(typeof c!="function",`§1 ${t}: its padding is a column's (${r[t]}), so it declares no frame`),!G||L){s(k.length===1&&/padding-top\s*:\s*40px/.test(u(k[0])),`§2 ${t}: no padding of its own, so the wrapper draws the total once`,$.slice(0,300));continue}s(typeof c=="function",`§1 ${t}: has padding of its own, so it declares its own frame (the builder's table, or its meta's ownPad)`),p.push(t),s(k.every(n=>!O.test(u(n))),`§2 ${t}: no outer wrapper draws a top or bottom`,k.map(u).join(" | "));const T=j.filter(n=>/(^|;)\s*padding-top\s*:\s*40px/.test(u(n)));s(T.length===1,`§2 ${t}: ONE element draws the total top 40`,`${T.length} found`);const h=T[0];if(!h)continue;const b=u(h);s(/padding-bottom\s*:\s*50px/.test(b),`§2 ${t}: the same element draws the total bottom 50`,b),s(/--sf-pad-t-tablet\s*:\s*30px/.test(b)&&/--sf-pad-b-tablet\s*:\s*36px/.test(b),`§2 ${t}: …its tablet 30 / 36`,b),s(/--sf-pad-t-phone\s*:\s*20px/.test(b)&&/--sf-pad-b-phone\s*:\s*24px/.test(b),`§2 ${t}: …its phone 20 / 24`,b);const R=P(h).filter(C);s(R.length===0,`§2 ${t}: the padded element keeps no vertical padding class`,R.join(" "));const N=[];for(let n=h.parentElement;n&&n!==l;n=n.parentElement){const g=P(n).filter(C);(g.length||O.test(u(n)))&&N.push(`${n.tagName.toLowerCase()}[${g.join(" ")}${O.test(u(n))?` style=${u(n)}`:""}]`)}if(s(N.length===0,`§2 ${t}: nothing between the section's top and the padded element pads`,N.join(" > ")),typeof c!="function")continue;const S=[];for(let n=h;n&&n!==l;n=n.parentElement)S.unshift(Array.from(n.parentElement?.children??[]).indexOf(n));let E=e.sectionOf(e.draw(t,{}));for(const n of S)E=E?.children[n];if(!E){s(!1,`§3 ${t}: the padded element is drawn with nothing stored`,S.join("/"));continue}const A=c({...f(t),editor:{isEditing:!0}}),M=typeof A=="object"&&A!==null&&"top"in A,_=n=>M?A[n==="t"?"top":"bottom"]:A;for(const[n,g]of[["t",40],["b",50]]){const w=B(_(n),"desktop"),y=X(E,n),x=X(h,n);s(U(y.sum,x.sum,w,g),`§3 ${t}: the ${n==="t"?"top":"bottom"} edge draws its frame ${w} once, and a total in its place`,`nothing stored ${y.sum} (${y.seen}); total ${g} draws ${x.sum} (${x.seen})`)}for(const n of["tablet","mobile"]){const g=(e.views??J)[n];for(const w of["t","b"]){const y=B(_(w),n),x=F(E,w,g,a),v=F(h,w,g,a,!0);s(x.sum-y===v.sum,`§3 ${t} ${n}: the ${w==="t"?"top":"bottom"} edge at ${g}px draws its frame ${y} once`,`nothing stored ${x.sum} (${x.seen}); content under the total ${v.sum} (${v.seen})`)}}}return s(a.length===0,"§3 every view prefix on an edge line is one the rule reads",[...new Set(a)].join(" ")),{wrapped:m,owns:p,checks:d,failures:o}}export{U as edgeHolds,X as edgeLine,F as edgeLineAt,ot as sectionOnePadding};
@@ -1,2 +1,2 @@
1
- export declare const assembleGeneralBlocks: () => Record<"CardList" | "Text" | "ImageBlock" | "ButtonBlock" | "Flex" | "Cards" | "FAQ" | "Footprint" | "Grid" | "Hero" | "HeroGroup" | "HeroSingle" | "HeroSlide" | "Logos" | "LogoBlock" | "OrderSummary" | "ProcessSteps" | "IntroBleed" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "SectionHeader" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "Integrations" | "ContactLocations" | "PaymentBadges" | "Heading" | "Eyebrow" | "LocationMap" | "Contents" | "ListSearch" | "HostPart" | "PostCard", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
2
- export declare const generalBlocks: Record<"CardList" | "Text" | "ImageBlock" | "ButtonBlock" | "Flex" | "Cards" | "FAQ" | "Footprint" | "Grid" | "Hero" | "HeroGroup" | "HeroSingle" | "HeroSlide" | "Logos" | "LogoBlock" | "OrderSummary" | "ProcessSteps" | "IntroBleed" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "SectionHeader" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "Integrations" | "ContactLocations" | "PaymentBadges" | "Heading" | "Eyebrow" | "LocationMap" | "Contents" | "ListSearch" | "HostPart" | "PostCard", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
1
+ export declare const assembleGeneralBlocks: () => Record<"CardList" | "Text" | "ImageBlock" | "ButtonBlock" | "Flex" | "Footprint" | "FAQ" | "ProcessSteps" | "LongRead" | "Series" | "TimelineTrack" | "StatsParagraph" | "Cards" | "Testimonials" | "Prose" | "SectionHeader" | "Manifesto" | "Split" | "ContactLocations" | "CategoryBar" | "DocTabs" | "CustomHTML" | "Hero" | "HeroSingle" | "IntroBleed" | "SpecStrip" | "Timeline" | "ParagraphsA" | "KeyFeatures" | "Chart" | "Mockup" | "TitleWithButtons" | "Countdown" | "DocMasthead" | "DocBody" | "DocMetaCards" | "Breadcrumb" | "Banner" | "Stats" | "Logos" | "Divider" | "OrderSummary" | "PaymentBadges" | "Grid" | "Masthead" | "FeaturedCover" | "Ticker" | "HeroGroup" | "HeroSlide" | "HostPart" | "Contents" | "Spacer" | "Integrations" | "Heading" | "Eyebrow" | "LogoBlock" | "LocationMap" | "ListSearch" | "PostCard", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
2
+ export declare const generalBlocks: Record<"CardList" | "Text" | "ImageBlock" | "ButtonBlock" | "Flex" | "Footprint" | "FAQ" | "ProcessSteps" | "LongRead" | "Series" | "TimelineTrack" | "StatsParagraph" | "Cards" | "Testimonials" | "Prose" | "SectionHeader" | "Manifesto" | "Split" | "ContactLocations" | "CategoryBar" | "DocTabs" | "CustomHTML" | "Hero" | "HeroSingle" | "IntroBleed" | "SpecStrip" | "Timeline" | "ParagraphsA" | "KeyFeatures" | "Chart" | "Mockup" | "TitleWithButtons" | "Countdown" | "DocMasthead" | "DocBody" | "DocMetaCards" | "Breadcrumb" | "Banner" | "Stats" | "Logos" | "Divider" | "OrderSummary" | "PaymentBadges" | "Grid" | "Masthead" | "FeaturedCover" | "Ticker" | "HeroGroup" | "HeroSlide" | "HostPart" | "Contents" | "Spacer" | "Integrations" | "Heading" | "Eyebrow" | "LogoBlock" | "LocationMap" | "ListSearch" | "PostCard", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
@@ -3,7 +3,7 @@ import { boxFieldBuilders, type BoxFieldSay } from "efficient-easel/screen/lib/d
3
3
  import type { ShowWhenRule } from "efficient-shell/format";
4
4
  type Rows = ReturnType<typeof boxFieldBuilders>;
5
5
  export declare const rowSay: BoxFieldSay;
6
- export declare const LENGTH_UNITS_TABLE: Readonly<Record<"size" | "spacing" | "gap" | "radius" | "fontSize" | "letterSpacing" | "position" | "border" | "height" | "breakpoint", readonly ("px" | "%" | "vw")[]>>;
6
+ export declare const LENGTH_UNITS_TABLE: Readonly<Record<"spacing" | "gap" | "size" | "radius" | "fontSize" | "letterSpacing" | "position" | "border" | "height" | "breakpoint", readonly ("px" | "%" | "vw")[]>>;
7
7
  export declare const slider: Rows["slider"];
8
8
  export declare const select: Rows["select"];
9
9
  export declare const Segmented: Rows["Segmented"];
@@ -1,2 +1,2 @@
1
- import{jsx as t,Fragment as q,jsxs as A}from"react/jsx-runtime";import{Suspense as J,useMemo as Q}from"react";import{accentItalicCss as Z,storedTextStyles as ee,textStylesCss as te}from"../../../render/lib/text-styles/site-text-styles.js";import{pageWidthMarker as oe,PAGE_WIDTH_ATTR as re,siteWidthTokens as ne,siteGutterTokens as ie,siteGutterPhoneClass as se,siteGutterPhoneTokens as ae,heroBackgroundTokens as de,SIDE_ONCE_ATTR as ce,sideSpaceOnceAttr as pe}from"../../../format/lib/content/page-width.js";import{SITE_FOOTER_KIND as le}from"../../../format/lib/content/footer.js";import{siteBlockGapPhoneClass as he,siteBlockGapPhoneTokens as me,siteBlockGapTokens as fe}from"../../../format/lib/content/container-gap.js";import{usePreviewHeader as ue}from"../../../render/components/PreviewHeaderContext.js";import{usePreviewFooter as Se}from"../../components/PreviewFooterContext.js";import{SiteRootPropsProvider as ge}from"../../../render/components/SiteRootProps.js";import{SITE_CSS_SCOPE_ATTR as Te,siteCssScopeAttr as ye}from"../../../format/lib/content/site-css.js";import{SitePhotographyProvider as Pe}from"../../../render/components/SitePhotographyContext.js";import{ThemeLightInkProvider as xe}from"../../../render/components/ThemeLightInkContext.js";import{CORNER_STYLE_TO_PX as ke,normalizeCornerStyle as Ce,normalizeCornerRadius as Ee,themeColorStyle as _e,themeLightInk as Ae,typeSizesStyle as Re,headingTypographyStyle as Ge,normalizeHeadingTypography as ve,themeAccentStyle as Ie,themeButtonStyle as Be,themePresetAccentVars as we,themeSurfaceStyle as We,siteCornerRadiusTokens as He,shadowColorTokens as Fe,headingCompressionAttr as be,cardShadowAttr as Ne,cardGapAttr as De,hoverEffectAttr as Oe}from"../../../format/lib/theme.js";import{fontRoleStyle as Le}from"../../../format/lib/fonts.js";import{wordStyleTokens as Ue}from"../../../format/lib/word-styles.js";import{isStandaloneSectionDocument as ze,pageHasHeaderSection as R,pageTakesTopSpace as je,topSpaceMarker as Ve,TOP_SPACE_ATTR as Me,HEADER_CLEARANCE_CLASS as $e}from"../../../render/lib/document/header-clearance.js";import{leadSectionInk as Ke,HEADER_INK_ATTR as Xe}from"../../../render/lib/document/header-ink.js";import{useEasel as y}from"efficient-easel/easel";import{chromeRootWithFooter as Ye,inPlaceFooterProps as qe}from"../pinned-chrome-doc.js";import{useCardContentSwitchPass as Je}from"../../components/useCardContentSwitchPass.js";import{pageBackgroundVars as Qe}from"../../../format/lib/content/page-background.js";import{pageWidthTokens as Ze}from"../../../render/lib/document/page-frame.js";import{EditingBridgesProvider as et}from"../../../render/lib/document/editing-bridges.js";import tt from"../../components/SectionTextPartBridge.js";import{PageContentsFromDocument as G}from"../../../render/components/PageContentsContext.js";const ot={SectionTextParts:tt};import{PageWidthWrapper as bt,PublishedPageFrame as Nt,pageWidthTokens as Dt}from"../../../render/lib/document/page-frame.js";const rt="color-mix(in oklab, var(--bg) 40%, #ffffff)",nt="12vh";function it({style:r,children:c}){const{appState:p}=y(a=>a),o=p.data.content,n=p.data.root;if(ze(o))return t("div",{className:"sf-themed-content",style:{...r,background:rt,minHeight:"100vh",paddingBottom:nt},children:t("div",{style:{background:"var(--bg)"},children:t(G,{content:o,children:c})})});const l=R(o)&&je(n,o),h=R(o)?Ve(n,o):null,S=h?{[Me]:h}:null,m=oe(n?.widthChoice),i=m?{[re]:m}:null,s=l?null:Ke(o),g=s?{[Xe]:s}:null;return t("div",{className:`sf-themed-content${l?` ${$e}`:""}`,style:r,...g,...S,...i,children:t("div",{style:{background:"var(--bg)",minHeight:"100%"},children:t(G,{content:o,children:c})})})}function wt({propsTheme:r,propsFonts:c,propsCornerStyle:p,propsCornerRadiusPx:o,propsHeadingCompression:n,propsHeadingTypography:l,pageBackground:h,chromeInheritsSiteBackground:S,suppressPreviewNav:m,footer:i,overlay:s,children:g}){Je();const a=y(d=>d.appState.data.root?.props),T=y(d=>qe(d.appState.data.content));return t(st,{siteFooterRootProps:a?.kind===le?a:void 0,inPlaceFooterProps:T,propsTheme:r,propsFonts:c,propsCornerStyle:p,propsCornerRadiusPx:o,propsHeadingCompression:n,propsHeadingTypography:l,pageBackground:h,chromeInheritsSiteBackground:S,onClickCapture:m,body:d=>A(q,{children:[t(it,{style:d,children:g}),i,s]})})}function st({propsTheme:r,propsFonts:c,propsCornerStyle:p,propsCornerRadiusPx:o,propsHeadingCompression:n,propsHeadingTypography:l,pageBackground:h,chromeInheritsSiteBackground:S,onClickCapture:m,siteFooterRootProps:i,inPlaceFooterProps:s,body:g}){const{chromeRootProps:a}=Se(),T=Q(()=>Ye(a,s),[a,s]),{theme:d,fonts:v,sizes:I,cornerRadiusPx:B,cardShadow:P,shadowColor:w,cardGap:W,hoverEffect:x,headingCompression:H,siteWidth:F,siteGutter:b,siteGutterPhone:k,blockGap:N,blockGapPhone:C,siteLengthUnits:D,headingTypography:O,heroBackgroundFollowsWidth:L,photographyGrayscale:U,textStyles:z,wordStyles:j,themeFromDocument:e}=ue(),f=e?r:d,V=e?c:v,M=e?void 0:I,$=e?o===void 0?ke[Ce(p)]:Ee(o):B,u=e?{}:D,K=e?n:H,E=e?l:O,_=[te(ee(e?void 0:z)),Z(ve(E).italicStrong)].filter(Boolean).join(`
2
- `),X=Ze(),Y={..._e(f),...Re(M),...Ge(E),...X.style,...S?{}:Qe(h)};return A("div",{className:`sf-theme-surfaces sf-theme-accent ${[se(e?void 0:k),he(e?void 0:C)].filter(Boolean).join(" ")}`.trim(),style:{...Le(V),...Ue(e?null:j),...Ie(f),...Be(f),...we(f),...We(f),...He($,u.cornerRadiusUnit),...Fe(e?void 0:P,e?void 0:w,e?void 0:x),...ne(e?void 0:F,u.siteWidthUnit),...ie(e?void 0:b,u.siteGutterUnit),...ae(e?void 0:k,u.siteGutterPhoneUnit),...fe(e?void 0:N,u.blockGapUnit),...me(e?void 0:C,u.blockGapPhoneUnit),...de(e?void 0:L)},"data-sf-headings":be(K),[ce]:pe(i??T),[Te]:ye(i??T),"data-sf-card-shadow":e?void 0:Ne(P),"data-sf-card-gap":e?void 0:De(W),"data-sf-card-hover":e?void 0:Oe(x),onClickCapture:m,children:[_?t("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:_}}):null,t(Pe,{grayscale:e?void 0:U,children:t(et,{value:ot,children:t(xe,{ink:Ae(f),children:t(J,{fallback:null,children:t(ge,{rootProps:i??T,children:g(Y)})})})})})]})}const Wt=r=>{r.target?.closest?.("a")&&r.preventDefault()};export{ot as EDITING_BRIDGES,it as EditorPageBody,wt as EditorThemedBody,bt as PageWidthWrapper,Nt as PublishedPageFrame,rt as SECTION_PREVIEW_CANVAS,nt as SECTION_PREVIEW_CANVAS_TAIL,st as SiteThemeCarrier,Dt as pageWidthTokens,Wt as suppressPreviewNav};
1
+ import{jsx as t,Fragment as J,jsxs as A}from"react/jsx-runtime";import{Suspense as Q,useMemo as Z}from"react";import{accentItalicCss as ee,storedTextStyles as te,textStylesCss as oe}from"../../../render/lib/text-styles/site-text-styles.js";import{pageWidthMarker as re,PAGE_WIDTH_ATTR as ne,siteWidthTokens as ie,siteGutterTokens as se,siteGutterPhoneClass as ae,siteGutterPhoneTokens as de,heroBackgroundTokens as ce,SIDE_ONCE_ATTR as pe,sideSpaceOnceAttr as le}from"../../../format/lib/content/page-width.js";import{SITE_FOOTER_KIND as he}from"../../../format/lib/content/footer.js";import{siteBlockGapPhoneClass as me,siteBlockGapPhoneTokens as fe,siteBlockGapTokens as ue}from"../../../format/lib/content/container-gap.js";import{usePreviewHeader as Se}from"../../../render/components/PreviewHeaderContext.js";import{usePreviewFooter as ge}from"../../components/PreviewFooterContext.js";import{SiteRootPropsProvider as ye}from"../../../render/components/SiteRootProps.js";import{SITE_CSS_SCOPE_ATTR as Te,siteCssScopeAttr as Pe}from"../../../format/lib/content/site-css.js";import{SitePhotographyProvider as xe}from"../../../render/components/SitePhotographyContext.js";import{ThemeLightInkProvider as ke}from"../../../render/components/ThemeLightInkContext.js";import{CORNER_STYLE_TO_PX as Ce,normalizeCornerStyle as Ee,normalizeCornerRadius as Re,themeColorStyle as _e,themeLightInk as Ae,typeSizesStyle as Ge,headingTypographyStyle as ve,normalizeHeadingTypography as Ie,themeAccentStyle as Be,themeButtonStyle as we,themePresetAccentVars as We,themeSurfaceStyle as Fe,siteCornerRadiusTokens as He,shadowColorTokens as be,headingCompressionAttr as Ne,cardShadowAttr as De,cardGapAttr as Oe,hoverEffectAttr as Le}from"../../../format/lib/theme.js";import{fontRoleStyle as Ue}from"../../../format/lib/fonts.js";import{wordStyleTokens as ze}from"../../../format/lib/word-styles.js";import{useFontRegistry as je}from"../../../render/components/SiteFontsContext.js";import{isStandaloneSectionDocument as Ve,pageHasHeaderSection as G,pageTakesTopSpace as Me,topSpaceMarker as $e,TOP_SPACE_ATTR as Ke,HEADER_CLEARANCE_CLASS as Xe}from"../../../render/lib/document/header-clearance.js";import{leadSectionInk as Ye,HEADER_INK_ATTR as qe}from"../../../render/lib/document/header-ink.js";import{useEasel as P}from"efficient-easel/easel";import{chromeRootWithFooter as Je,inPlaceFooterProps as Qe}from"../pinned-chrome-doc.js";import{useCardContentSwitchPass as Ze}from"../../components/useCardContentSwitchPass.js";import{pageBackgroundVars as et}from"../../../format/lib/content/page-background.js";import{pageWidthTokens as tt}from"../../../render/lib/document/page-frame.js";import{EditingBridgesProvider as ot}from"../../../render/lib/document/editing-bridges.js";import rt from"../../components/SectionTextPartBridge.js";import{PageContentsFromDocument as v}from"../../../render/components/PageContentsContext.js";const nt={SectionTextParts:rt};import{PageWidthWrapper as Ot,PublishedPageFrame as Lt,pageWidthTokens as Ut}from"../../../render/lib/document/page-frame.js";const it="color-mix(in oklab, var(--bg) 40%, #ffffff)",st="12vh";function at({style:r,children:c}){const{appState:p}=P(a=>a),o=p.data.content,n=p.data.root;if(Ve(o))return t("div",{className:"sf-themed-content",style:{...r,background:it,minHeight:"100vh",paddingBottom:st},children:t("div",{style:{background:"var(--bg)"},children:t(v,{content:o,children:c})})});const l=G(o)&&Me(n,o),h=G(o)?$e(n,o):null,S=h?{[Ke]:h}:null,m=re(n?.widthChoice),i=m?{[ne]:m}:null,s=l?null:Ye(o),g=s?{[qe]:s}:null;return t("div",{className:`sf-themed-content${l?` ${Xe}`:""}`,style:r,...g,...S,...i,children:t("div",{style:{background:"var(--bg)",minHeight:"100%"},children:t(v,{content:o,children:c})})})}function Ht({propsTheme:r,propsFonts:c,propsCornerStyle:p,propsCornerRadiusPx:o,propsHeadingCompression:n,propsHeadingTypography:l,pageBackground:h,chromeInheritsSiteBackground:S,suppressPreviewNav:m,footer:i,overlay:s,children:g}){Ze();const a=P(d=>d.appState.data.root?.props),y=P(d=>Qe(d.appState.data.content));return t(dt,{siteFooterRootProps:a?.kind===he?a:void 0,inPlaceFooterProps:y,propsTheme:r,propsFonts:c,propsCornerStyle:p,propsCornerRadiusPx:o,propsHeadingCompression:n,propsHeadingTypography:l,pageBackground:h,chromeInheritsSiteBackground:S,onClickCapture:m,body:d=>A(J,{children:[t(at,{style:d,children:g}),i,s]})})}function dt({propsTheme:r,propsFonts:c,propsCornerStyle:p,propsCornerRadiusPx:o,propsHeadingCompression:n,propsHeadingTypography:l,pageBackground:h,chromeInheritsSiteBackground:S,onClickCapture:m,siteFooterRootProps:i,inPlaceFooterProps:s,body:g}){const{chromeRootProps:a}=ge(),y=Z(()=>Je(a,s),[a,s]),{theme:d,fonts:I,sizes:B,cornerRadiusPx:w,cardShadow:x,shadowColor:W,cardGap:F,hoverEffect:k,headingCompression:H,siteWidth:b,siteGutter:N,siteGutterPhone:C,blockGap:D,blockGapPhone:E,siteLengthUnits:O,headingTypography:L,heroBackgroundFollowsWidth:U,photographyGrayscale:z,textStyles:j,wordStyles:V,themeFromDocument:e}=Se(),T=je(),f=e?r:d,M=e?c:I,$=e?void 0:B,K=e?o===void 0?Ce[Ee(p)]:Re(o):w,u=e?{}:O,X=e?n:H,R=e?l:L,_=[oe(te(e?void 0:j),T),ee(Ie(R).italicStrong)].filter(Boolean).join(`
2
+ `),Y=tt(),q={..._e(f),...Ge($),...ve(R),...Y.style,...S?{}:et(h)};return A("div",{className:`sf-theme-surfaces sf-theme-accent ${[ae(e?void 0:C),me(e?void 0:E)].filter(Boolean).join(" ")}`.trim(),style:{...Ue(M,T),...ze(e?null:V,T),...Be(f),...we(f),...We(f),...Fe(f),...He(K,u.cornerRadiusUnit),...be(e?void 0:x,e?void 0:W,e?void 0:k),...ie(e?void 0:b,u.siteWidthUnit),...se(e?void 0:N,u.siteGutterUnit),...de(e?void 0:C,u.siteGutterPhoneUnit),...ue(e?void 0:D,u.blockGapUnit),...fe(e?void 0:E,u.blockGapPhoneUnit),...ce(e?void 0:U)},"data-sf-headings":Ne(X),[pe]:le(i??y),[Te]:Pe(i??y),"data-sf-card-shadow":e?void 0:De(x),"data-sf-card-gap":e?void 0:Oe(F),"data-sf-card-hover":e?void 0:Le(k),onClickCapture:m,children:[_?t("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:_}}):null,t(xe,{grayscale:e?void 0:z,children:t(ot,{value:nt,children:t(ke,{ink:Ae(f),children:t(Q,{fallback:null,children:t(ye,{rootProps:i??y,children:g(q)})})})})})]})}const bt=r=>{r.target?.closest?.("a")&&r.preventDefault()};export{nt as EDITING_BRIDGES,at as EditorPageBody,Ht as EditorThemedBody,Ot as PageWidthWrapper,Lt as PublishedPageFrame,it as SECTION_PREVIEW_CANVAS,st as SECTION_PREVIEW_CANVAS_TAIL,dt as SiteThemeCarrier,Ut as pageWidthTokens,bt as suppressPreviewNav};
@@ -1,4 +1,4 @@
1
- export declare const BOX_SHAPES: ("custom" | "auto" | "square" | "video" | "tall" | "wide" | "screen" | "landscape" | "portrait" | "panorama" | "story" | "poster")[];
1
+ export declare const BOX_SHAPES: ("auto" | "square" | "screen" | "custom" | "tall" | "wide" | "landscape" | "portrait" | "video" | "panorama" | "story" | "poster")[];
2
2
  export type BoxShape = (typeof BOX_SHAPES)[number];
3
3
  export declare function boxShapeOf(value: unknown): BoxShape;
4
4
  export declare function boxShapeClass(value: unknown): string;
@@ -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};
@@ -1,5 +1,6 @@
1
1
  import type { Config } from "efficient-easel/blocks";
2
2
  import type { BlockShowWhenFacts } from "../show-when-attach.js";
3
+ import type { SectionOwnPad } from "../../../../render/lib/content/section-own-pads.js";
3
4
  export type Block = Config["components"][string];
4
5
  export type BlockSlots = Record<string, {
5
6
  type: "slot";
@@ -16,6 +17,7 @@ export type BlockRender = Pick<Block, "label" | "defaultProps" | "render" | "inl
16
17
  };
17
18
  sitsInBox?: true;
18
19
  partSizeCaps?: Readonly<Record<string, true>>;
20
+ ownPad?: SectionOwnPad;
19
21
  };
20
22
  export type BlockMeta = Omit<BlockRender, "render">;
21
23
  export type BlockFields = Pick<Block, "fields" | "resolveFields" | "resolveData"> & {
@@ -2,6 +2,7 @@ import type { ComponentType, ReactNode } from "react";
2
2
  import type { TextFit } from "efficient-easel/draw";
3
3
  import type { AnimationTabKind } from "../../../../editor/lib/animation/fields.js";
4
4
  import type { OwnFrame } from "../../../../render/lib/content/section-padding.js";
5
+ import type { SectionOwnPad } from "../../../../render/lib/content/section-own-pads.js";
5
6
  export type PassRenderProps = Record<string, unknown>;
6
7
  export type PassResolveFields = (data: {
7
8
  props?: Record<string, unknown>;
@@ -29,6 +30,7 @@ export type PassBlock = {
29
30
  };
30
31
  sitsInBox?: true;
31
32
  partSizeCaps?: Readonly<Record<string, true>>;
33
+ ownPad?: SectionOwnPad;
32
34
  resolveFields?: PassResolveFields;
33
35
  resolveData?: PassResolveData;
34
36
  render: (props: PassRenderProps) => ReactNode;
@@ -1 +1,3 @@
1
1
  export declare function styleElementText(css: string): string;
2
+ export declare function cssStringBody(value: string): string;
3
+ export declare function cssHash(css: string): string;
@@ -1 +1 @@
1
- function t(e){return e.replace(/<(?=\/)/g,"\\3c ")}export{t as styleElementText};
1
+ import{ownEntry as n}from"../own-entry.js";function i(r){return r.replace(/<(?=\/)/g,"\\3c ")}const o={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function l(r){return r.replace(/[\\"\n\r\f]/g,t=>n(o,t)??t)}function f(r){let t=2166136261;for(let e=0;e<r.length;e+=1)t^=r.charCodeAt(e),t=Math.imul(t,16777619);return(t>>>0).toString(36)}export{f as cssHash,l as cssStringBody,i as styleElementText};
@@ -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";