efficient-web-builder 59.0.0 → 59.1.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 (62) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/editor/components/SwitchToBoxFooter.js +1 -1
  3. package/dist/editor/components/useCardContentSwitchPass.d.ts +1 -0
  4. package/dist/editor/components/useCardContentSwitchPass.js +1 -0
  5. package/dist/editor/components/usePinnedChromeSeed.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
  8. package/dist/editor/lib/document/box-footer-rows.d.ts +3 -0
  9. package/dist/editor/lib/document/box-footer-rows.js +1 -0
  10. package/dist/editor/lib/document/choice-pictures.d.ts +2 -1
  11. package/dist/editor/lib/document/choice-pictures.js +1 -1
  12. package/dist/editor/lib/document/page-root.js +2 -2
  13. package/dist/editor/lib/sections/text-layouts.js +1 -1
  14. package/dist/format/lib/content/block-align.d.ts +1 -0
  15. package/dist/format/lib/content/block-align.js +1 -1
  16. package/dist/format/lib/content/block-sources.d.ts +1 -0
  17. package/dist/format/lib/content/block-sources.js +1 -1
  18. package/dist/format/lib/content/box-shape.d.ts +1 -1
  19. package/dist/format/lib/content/page-width.d.ts +1 -0
  20. package/dist/format/lib/content/page-width.js +1 -1
  21. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +17 -0
  22. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -0
  23. package/dist/format/lib/document/box-footer.d.ts +13 -2
  24. package/dist/format/lib/document/box-footer.js +1 -1
  25. package/dist/format/lib/document/card-content-switch.d.ts +21 -0
  26. package/dist/format/lib/document/card-content-switch.js +1 -0
  27. package/dist/format/lib/document/container-blocks.js +1 -1
  28. package/dist/format/lib/document/section-catalog.js +2 -10
  29. package/dist/format/lib/document/seed-parts.d.ts +2 -0
  30. package/dist/format/lib/document/seed-parts.js +1 -1
  31. package/dist/format/lib/editor-words-catalogue.d.ts +1 -0
  32. package/dist/format/lib/editor-words-catalogue.js +1 -1
  33. package/dist/format/lib/sections/logo-look.d.ts +1 -1
  34. package/dist/format/lib/sections/logo-look.js +1 -1
  35. package/dist/render/components/Logos.d.ts +5 -1
  36. package/dist/render/components/Logos.js +1 -1
  37. package/dist/render/components/SiteGutterFrame.d.ts +5 -1
  38. package/dist/render/components/SiteGutterFrame.js +1 -1
  39. package/dist/render/components/Text.d.ts +2 -1
  40. package/dist/render/components/Text.js +1 -1
  41. package/dist/render/lib/content/section-edge.d.ts +7 -0
  42. package/dist/render/lib/content/section-edge.js +1 -1
  43. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  44. package/dist/render/lib/document/blocks/general/Logos/wall-rows.d.ts +2 -0
  45. package/dist/render/lib/document/blocks/general/Logos/wall-rows.js +1 -0
  46. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  47. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  48. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  49. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  50. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  51. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  52. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
  53. package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
  54. package/dist/render/lib/document/head-core-boxes.js +1 -1
  55. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  56. package/dist/render/lib/document/page-render.js +1 -1
  57. package/dist/render/lib/document/passes/section-width.js +1 -1
  58. package/dist/render/lib/document/wall-labels.d.ts +3 -0
  59. package/dist/render/lib/document/wall-labels.js +1 -0
  60. package/dist/render/lib/sections/section-to-box.d.ts +1 -0
  61. package/dist/render/lib/sections/section-to-box.js +1 -1
  62. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 59.1.0 - 2026-11-08
4
+
5
+ From main at `7197efbc`: #612, #616, #614, #617, #618. A minor: no `!` in any title, no declared export is removed, the peers stay `efficient-easel` `^29.0.0` and `efficient-shell` `^12.17.0`. No stored key or value moves.
6
+
7
+ **For hosts:**
8
+ - storefront-blocks: a later blocks bump takes `^59.1.0` for the band fix (#617: `SectionEdge.beyond`), the host-row presses (#616, #618) and the footer payment wall (#612).
9
+ - With no host row for a press type, a press is the ordinary insert as before (#616, #618).
10
+
11
+ ### Added
12
+
13
+ - **The footer payment line is a Logos wall** (#612): a Box of a lead Text and a Logos wall with the Logo style Marks; a Logos Alignment row; a published page drops a nested Box over sourced logos that were served no row. The Payment Logos block leaves the Add menu. Stored nodes still draw.
14
+ - **Five host-row types join the press list** (#616): new export `HOST_PRESS_TYPES`; ContactRouting, ReviewForm, AppointmentBooking, Reviews and CheckoutCTA press as a Box when a host registers the row.
15
+ - **Events joins the host-row press types** (#618): the Add menu's Events presses a Box with a host card row.
16
+ - **The delivery card gets its own time and price parts** (#614): a Cards press switched to Delivery options draws the card as parts on the Box structure; the Box that holds the Card list follows the Card content switch in every website host.
17
+ - **A full-width band stops at the Box edge** (#617): new `SectionEdge.beyond`, `sectionEdgeBeyondAttrs`, `groundBeyond`, `EDGE_BEYOND_VAR` and `FULL_SECTION_WIDTH`, so a band stops at the Box edge when the Box Background is Content (0 at Background: Content and in a Content header or footer group).
18
+
3
19
  ## 59.0.0 - 2026-11-08
4
20
 
5
21
  From main at `bb1ff965`: #608, #610, #611, #602, #613. A major: #608 has `!` in its title, narrows a peer and removes a module. The peer `efficient-shell` narrows from `^12.16.0` to `^12.17.0`; `efficient-easel` stays `^29.0.0`. No stored key or value moves (a stored hex paints as before; 0 rewritten).
@@ -1 +1 @@
1
- "use client";import{jsx as n,Fragment as g,jsxs as y}from"react/jsx-runtime";import{useState as k}from"react";import{createNode as w,newId as x}from"efficient-easel/data";import{useEasel as S}from"efficient-easel/easel";import{Banner as F,Button as s}from"efficient-shell/ui";import{useScreenDocument as T}from"efficient-easel/screen/components/ScreenDocumentContext";import{boxFooterFromFooter as B}from"../../format/lib/document/box-footer.js";import{FOOTER_TYPE as E}from"../lib/document/footer-blocks.js";import{SITE_FOOTER_TYPE as a,withSectionGroup as _}from"../../format/lib/document/section-groups.js";import{say as t}from"../../format/lib/editor-words.js";function O(){const{appState:c,dispatch:m,config:l}=S(o=>o),{readOnly:f}=T(),[u,r]=k(!1),i=c.data.content;if(f||i.some(o=>o.type===a))return null;const p=i.find(o=>o.type===E)??null,d=(o,e)=>w(l,o,e),h=()=>{const o=B(p,d,x(a));m({type:"setData",data:e=>({...e,content:[..._(e.content,o)]}),recordHistory:!0}),r(!1)};return n(F,{tone:"info",title:t("This footer uses the old layout"),action:u?y(g,{children:[n(s,{variant:"primary",size:"sm",onClick:h,children:t("Switch now")}),n(s,{variant:"secondary",size:"sm",onClick:()=>r(!1),children:t("Cancel")})]}):n(s,{variant:"secondary",size:"sm",onClick:()=>r(!0),children:t("Switch to Box footer")}),children:t("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}export{O as default};
1
+ "use client";import{jsx as r,Fragment as g,jsxs as k}from"react/jsx-runtime";import{useState as y}from"react";import{createNode as w,newId as x}from"efficient-easel/data";import{useEasel as F}from"efficient-easel/easel";import{Banner as S,Button as s}from"efficient-shell/ui";import{useScreenDocument as B}from"efficient-easel/screen/components/ScreenDocumentContext";import{boxFooterFromFooter as T}from"../../format/lib/document/box-footer.js";import{convertFooterBlock as E}from"../lib/document/box-footer-rows.js";import{FOOTER_TYPE as _}from"../lib/document/footer-blocks.js";import{SITE_FOOTER_TYPE as a,withSectionGroup as O}from"../../format/lib/document/section-groups.js";import{say as t}from"../../format/lib/editor-words.js";function j(){const{appState:c,dispatch:m,config:l}=F(o=>o),{readOnly:f}=B(),[u,n]=y(!1),i=c.data.content;if(f||i.some(o=>o.type===a))return null;const p=i.find(o=>o.type===_)??null,d=(o,e)=>w(l,o,e),h=()=>{const o=T(p,d,x(a),E);m({type:"setData",data:e=>({...e,content:[...O(e.content,o)]}),recordHistory:!0}),n(!1)};return r(S,{tone:"info",title:t("This footer uses the old layout"),action:u?k(g,{children:[r(s,{variant:"primary",size:"sm",onClick:h,children:t("Switch now")}),r(s,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:t("Cancel")})]}):r(s,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:t("Switch to Box footer")}),children:t("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}export{j as default};
@@ -0,0 +1 @@
1
+ export declare function useCardContentSwitchPass(): void;
@@ -0,0 +1 @@
1
+ "use client";import{useEffect as e}from"react";import{useEaselApi as r}from"efficient-easel/easel";import{followCardContentSwitches as n}from"../../format/lib/document/card-content-switch.js";function c(){const t=o();e(()=>t?n(t):void 0,[t])}function o(){try{return r()}catch{return null}}export{c as useCardContentSwitchPass};
@@ -1 +1 @@
1
- "use client";import{useEffect as j,useRef as q}from"react";import{createNode as T,newId as I}from"efficient-easel/data";import{useEaselApi as J}from"efficient-easel/easel";import{useScreenDocument as K}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as M}from"efficient-easel/screen/lib/session-context";import{SITE_FOOTER_SLUG as L}from"../../format/lib/content/footer.js";import{boxFooterFromFooter as U}from"../../format/lib/document/box-footer.js";import{useSectionToBoxPass as Q}from"./useSectionToBoxPass.js";import{ROOT_ZONE as l,missingPinnedTypes as V,pinnedDuplicateIds as O}from"efficient-easel/draw";import{FOOTER_TYPE as a,HEADER_TYPE as E,buildDefaultFooterBlocks as b,buildDefaultHeaderNode as N}from"../lib/document/footer-blocks.js";import{canSeedPinnedChrome as W}from"../../format/lib/document/pinned-seed-gate.js";import{siteFooterDocChrome as X,SITE_FOOTER_TYPE as f}from"../../format/lib/document/section-groups.js";import{inPlaceSeedPlan as $}from"../lib/document/pinned-in-place-seed.js";import{seedNewSiteHeader as ee}from"../../format/lib/document/new-site-header-seed.js";import{SITE_HEADER_TYPE as R}from"../../format/lib/document/section-groups.js";import{blocksOf as te}from"../lib/website-session.js";function De(t,D){const{adapter:_,capabilities:y,currentSlug:w,docId:S,data:C,saveStatus:H,siteId:v,tokenRef:x}=K(),z=M(),{hasSiteSettings:B,hasPinnedChrome:Y}=y;Q(t);const A=!!y.editsPinnedInPlace&&w!==L,g=w===L,h=J().getState,P=q(null);j(()=>{if(!W({docId:S,saveStatus:H,seededDocId:P.current})||(P.current=S,!Y))return;const p=h().appState.data,n=p.content,d=C?.content??[],r=(e,s)=>e.some(i=>i?.type===s);if(!B){const e=new Set(O(n)),s=e.size?n.filter(c=>!e.has(c.props.id)):n;if(e.size&&t.setDocument({...p,content:s}),g)return;const i=V(s,d);if(i.includes(a)){const c=s.length,o=t.insertSection(a,c);t.replaceComponent(l,c,{type:a,props:{id:o,blocks:b()}})}i.includes(E)&&t.insertNode(l,0,N());return}if(g){const e=X(n);if(e!==n&&t.setDocument({...p,content:[...e]}),!e.find(i=>i.type===a)&&!r(d,a)&&!r(e,f)&&!r(d,f)){const i=(o,m)=>T(D,o,m),c={type:a,props:{blocks:b()}};t.insertNode(l,e.length,U(c,i,I(f)))}return}if(A){const e=!!_?.pinnedChrome?.state().docId,s=$(n,{hasChromeDoc:e}),i=new Set([...s.remove,...O(n.filter(o=>!s.remove.includes(String(o.props.id))))]),c=i.size?n.filter(o=>!i.has(String(o.props.id))):n;if(c.length!==n.length&&t.setDocument({...p,content:c}),s.seedFooter&&!r(d,a)&&!r(d,f)){const o=(u,Z)=>T(D,u,Z),m={type:a,props:{blocks:b()}};t.insertNode(l,c.length,U(m,o,I(f)))}if(s.seedHeader&&!r(d,E)){const o=c[0]?.type===R?1:0;t.insertNode(l,o,N())}if(s.seedSiteHeader&&!r(d,R)&&!r(d,a)&&!r(d,f)){const o=S;ee({blocks:te(z),make:(m,u)=>T(D,m,u),id:I(R),siteId:v??null,token:x.current,latest:()=>h().appState.data.content,stillOpen:()=>P.current===o,write:m=>{const u=h().appState.data;t.setDocument({...u,content:[...m]})}})}return}const k=n.filter(e=>e.type!==a),G=new Set(O(k)),F=G.size?k.filter(e=>!G.has(e.props.id)):k;F.length!==n.length&&t.setDocument({...p,content:F}),!r(F,E)&&!r(d,E)&&t.insertNode(l,0,N())},[S,H,C,h,t,B,Y,g,A,_,z,v,x])}export{De as usePinnedChromeSeed};
1
+ "use client";import{useEffect as q,useRef as J}from"react";import{createNode as T,newId as I}from"efficient-easel/data";import{useEaselApi as K}from"efficient-easel/easel";import{useScreenDocument as M}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Q}from"efficient-easel/screen/lib/session-context";import{SITE_FOOTER_SLUG as L}from"../../format/lib/content/footer.js";import{boxFooterFromFooter as U}from"../../format/lib/document/box-footer.js";import{convertFooterBlock as Z}from"../lib/document/box-footer-rows.js";import{useSectionToBoxPass as V}from"./useSectionToBoxPass.js";import{ROOT_ZONE as l,missingPinnedTypes as W,pinnedDuplicateIds as O}from"efficient-easel/draw";import{FOOTER_TYPE as a,HEADER_TYPE as E,buildDefaultFooterBlocks as b,buildDefaultHeaderNode as N}from"../lib/document/footer-blocks.js";import{canSeedPinnedChrome as X}from"../../format/lib/document/pinned-seed-gate.js";import{siteFooterDocChrome as $,SITE_FOOTER_TYPE as f}from"../../format/lib/document/section-groups.js";import{inPlaceSeedPlan as ee}from"../lib/document/pinned-in-place-seed.js";import{seedNewSiteHeader as te}from"../../format/lib/document/new-site-header-seed.js";import{SITE_HEADER_TYPE as R}from"../../format/lib/document/section-groups.js";import{blocksOf as oe}from"../lib/website-session.js";function ke(t,D){const{adapter:_,capabilities:y,currentSlug:w,docId:S,data:C,saveStatus:v,siteId:H,tokenRef:x}=M(),B=Q(),{hasSiteSettings:z,hasPinnedChrome:Y}=y;V(t);const A=!!y.editsPinnedInPlace&&w!==L,g=w===L,h=K().getState,k=J(null);q(()=>{if(!X({docId:S,saveStatus:v,seededDocId:k.current})||(k.current=S,!Y))return;const p=h().appState.data,n=p.content,d=C?.content??[],s=(e,r)=>e.some(i=>i?.type===r);if(!z){const e=new Set(O(n)),r=e.size?n.filter(c=>!e.has(c.props.id)):n;if(e.size&&t.setDocument({...p,content:r}),g)return;const i=W(r,d);if(i.includes(a)){const c=r.length,o=t.insertSection(a,c);t.replaceComponent(l,c,{type:a,props:{id:o,blocks:b()}})}i.includes(E)&&t.insertNode(l,0,N());return}if(g){const e=$(n);if(e!==n&&t.setDocument({...p,content:[...e]}),!e.find(i=>i.type===a)&&!s(d,a)&&!s(e,f)&&!s(d,f)){const i=(o,m)=>T(D,o,m),c={type:a,props:{blocks:b()}};t.insertNode(l,e.length,U(c,i,I(f),Z))}return}if(A){const e=!!_?.pinnedChrome?.state().docId,r=ee(n,{hasChromeDoc:e}),i=new Set([...r.remove,...O(n.filter(o=>!r.remove.includes(String(o.props.id))))]),c=i.size?n.filter(o=>!i.has(String(o.props.id))):n;if(c.length!==n.length&&t.setDocument({...p,content:c}),r.seedFooter&&!s(d,a)&&!s(d,f)){const o=(u,j)=>T(D,u,j),m={type:a,props:{blocks:b()}};t.insertNode(l,c.length,U(m,o,I(f),Z))}if(r.seedHeader&&!s(d,E)){const o=c[0]?.type===R?1:0;t.insertNode(l,o,N())}if(r.seedSiteHeader&&!s(d,R)&&!s(d,a)&&!s(d,f)){const o=S;te({blocks:oe(B),make:(m,u)=>T(D,m,u),id:I(R),siteId:H??null,token:x.current,latest:()=>h().appState.data.content,stillOpen:()=>k.current===o,write:m=>{const u=h().appState.data;t.setDocument({...u,content:[...m]})}})}return}const P=n.filter(e=>e.type!==a),G=new Set(O(P)),F=G.size?P.filter(e=>!G.has(e.props.id)):P;F.length!==n.length&&t.setDocument({...p,content:F}),!s(F,E)&&!s(d,E)&&t.insertNode(l,0,N())},[S,v,C,h,t,z,Y,g,A,_,B,H,x])}export{ke as usePinnedChromeSeed};
@@ -1 +1 @@
1
- import{jsx as u}from"react/jsx-runtime";import{AccentIcon as O,ListIcon as L}from"efficient-easel/icons";import{isNodeList as F,newId as b}from"efficient-easel/data";import{group as w}from"efficient-easel/screen/lib/document/box-fields";import{COUNT_KEY_PROP as h}from"../../../../../../format/lib/content/block-sources.js";import{CARD_LIST_ROWS as p,CARD_LIST_TYPE as f,cardListFieldsOf as S,cardTemplateOwner as g,namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{BLOCK_SOURCE_EDIT_PROP as T,NO_BLOCK_SOURCE as E,blockSourceEditField as A,blockSourceField as M,blockSourceFields as P}from"../../../block-source-fields.js";import{select as W}from"../../../box-fields.js";import{text as x}from"../../../controls.js";import{cardsFieldsFollowContent as D}from"../../../../../../format/lib/document/cards-template-on-read.js";import{cardPicks as N,pickRow as j,withOwnCardKeys as v}from"../../../../../../format/lib/document/card-row-keys.js";import{ROW_LIVE_NUMBER_FIELD as B}from"../../../live-number-field.js";import{withShowWhen as d}from"../../../../../../format/lib/document/show-when-attach.js";import{CARD_ROW_FACTS as U,cardRowField as K,cardRowFields as H,cardRowItemField as Y}from"../../../card-row-fields.js";import{say as J}from"../../../../../../format/lib/editor-words.js";import{CardListSlots as V}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(t){return F(t)?t.some(o=>{const e=o.props??{};return o.type==="Text"&&typeof e[h]=="string"&&I(e)?!0:Object.values(e).some(y)}):!1}const q=t=>Object.defineProperty(Object.fromEntries(t.map(o=>[o.key,""])),"key",{get:()=>b("row"),enumerable:!0}),_=new WeakMap;function z(t,o,e){const r=o.filter(s=>!s.everySource);let n=_.get(t);n||_.set(t,n=new Map);const a=JSON.stringify([r,e]);let i=n.get(a);if(!i){const s=Object.fromEntries(r.map(l=>[l.key,Y(l)]));e&&(s[h]=B);const c=r[0]?.key;i={...t,arrayFields:s,defaultItemProps:q(r),getItemSummary:l=>c&&typeof l?.[c]=="string"&&l[c]||J("Row")},n.set(a,i)}return i}const R="cardListInCardTemplate",m={not:{context:R,is:!0}},G={...U,[R]:(t,o)=>{const e=g(o.appState,t.props?.id);return e===void 0?void 0:e!==null}},Q=d({type:"array",label:"Rows",icon:u(L,{}),arrayFields:{}},{all:[m,E]}),X=t=>t.find(o=>!o.everySource&&(o.kind??"text")==="text")?.key??"title",C=new WeakMap;function Z(t,o){let e=C.get(t);e||C.set(t,e=new WeakMap);let r=e.get(o);return r||e.set(o,r={...t,highlightedCard:o}),r}const $=t=>{const o=new Set(S(null,{type:f,props:t}).map(e=>e.key));return e=>o.has(e)},k=new WeakMap;function ee(t,o){let e=k.get(t);e||k.set(t,e=new WeakMap);let r=e.get(o);return r||e.set(o,r={...t,[p]:o}),r}const Se={fields:{_gSource:w("Source"),dataSource:d(M("Card content","Manual"),m),[T]:A(),_gCardList:w("Card list"),rowField:K("Shows","list"),[p]:Q,highlightedCard:d(W("Highlighted card",u(O,{}),[{label:"None",value:""}],""),m),highlightBadge:d(x("Highlight badge","Most popular"),m),...V},resolveData:t=>{const o=t.props,e=v(o,p),r=D(e,$(e));return r===o?t:{...t,props:r}},resolveFields:(t,o)=>{const e=t.props??{},r=P(f,H(o.fields,t,o),e),n=!!g(o.appState,e.id),a=r[p];if(n||!a)return r;const i=S(o.appState,{type:f,props:e}),s=ee(r,z(a,i,y(e.template))),c=r.highlightedCard;return c?Z(s,j(c,N(e,{rows:p,label:X(i)}))):s},showWhenFacts:G};export{Se as CardListFields};
1
+ import{jsx as w}from"react/jsx-runtime";import{AccentIcon as O,ListIcon as F}from"efficient-easel/icons";import{isNodeList as L,newId as b}from"efficient-easel/data";import{group as u}from"efficient-easel/screen/lib/document/box-fields";import{COUNT_KEY_PROP as h}from"../../../../../../format/lib/content/block-sources.js";import{CARD_LIST_ROWS as p,CARD_LIST_TYPE as f,cardListFieldsOf as S,cardTemplateOwner as g,namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{BLOCK_SOURCE_EDIT_PROP as T,NO_BLOCK_SOURCE as E,blockSourceEditField as A,blockSourceField as M,blockSourceFields as D}from"../../../block-source-fields.js";import{select as P}from"../../../box-fields.js";import{text as W}from"../../../controls.js";import{cardsFieldsFollowContent as x}from"../../../../../../format/lib/document/cards-template-on-read.js";import{cardFollowsContentSwitch as N}from"../../../../../../format/lib/document/card-content-switch.js";import{cardPicks as j,pickRow as v,withOwnCardKeys as B}from"../../../../../../format/lib/document/card-row-keys.js";import{ROW_LIVE_NUMBER_FIELD as U}from"../../../live-number-field.js";import{withShowWhen as d}from"../../../../../../format/lib/document/show-when-attach.js";import{CARD_ROW_FACTS as K,cardRowField as H,cardRowFields as Y,cardRowItemField as J}from"../../../card-row-fields.js";import{say as V}from"../../../../../../format/lib/editor-words.js";import{CardListSlots as q}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(e){return L(e)?e.some(o=>{const t=o.props??{};return o.type==="Text"&&typeof t[h]=="string"&&I(t)?!0:Object.values(t).some(y)}):!1}const z=e=>Object.defineProperty(Object.fromEntries(e.map(o=>[o.key,""])),"key",{get:()=>b("row"),enumerable:!0}),_=new WeakMap;function G(e,o,t){const r=o.filter(c=>!c.everySource);let s=_.get(e);s||_.set(e,s=new Map);const i=JSON.stringify([r,t]);let n=s.get(i);if(!n){const c=Object.fromEntries(r.map(l=>[l.key,J(l)]));t&&(c[h]=U);const a=r[0]?.key;n={...e,arrayFields:c,defaultItemProps:z(r),getItemSummary:l=>a&&typeof l?.[a]=="string"&&l[a]||V("Row")},s.set(i,n)}return n}const C="cardListInCardTemplate",m={not:{context:C,is:!0}},Q={...K,[C]:(e,o)=>{const t=g(o.appState,e.props?.id);return t===void 0?void 0:t!==null}},X=d({type:"array",label:"Rows",icon:w(F,{}),arrayFields:{}},{all:[m,E]}),Z=e=>e.find(o=>!o.everySource&&(o.kind??"text")==="text")?.key??"title",R=new WeakMap;function $(e,o){let t=R.get(e);t||R.set(e,t=new WeakMap);let r=t.get(o);return r||t.set(o,r={...e,highlightedCard:o}),r}const tt=e=>{const o=new Set(S(null,{type:f,props:e}).map(t=>t.key));return t=>o.has(t)},k=new WeakMap;function et(e,o){let t=k.get(e);t||k.set(e,t=new WeakMap);let r=t.get(o);return r||t.set(o,r={...e,[p]:o}),r}const yt={fields:{_gSource:u("Source"),dataSource:d(M("Card content","Manual"),m),[T]:A(),_gCardList:u("Card list"),rowField:H("Shows","list"),[p]:X,highlightedCard:d(P("Highlighted card",w(O,{}),[{label:"None",value:""}],""),m),highlightBadge:d(W("Highlight badge","Most popular"),m),...q},resolveData:(e,o)=>{const t=e.props,r=o?.lastData?.props,s=B(N(t,r),p),i=x(s,tt(s));return i===t?e:{...e,props:i}},resolveFields:(e,o)=>{const t=e.props??{},r=D(f,Y(o.fields,e,o),t),s=!!g(o.appState,t.id),i=r[p];if(s||!i)return r;const n=S(o.appState,{type:f,props:t}),c=et(r,G(i,n,y(t.template))),a=r.highlightedCard;return a?$(c,v(a,j(t,{rows:p,label:Z(n)}))):c},showWhenFacts:Q};export{yt as CardListFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as m,ColumnsIcon as O,HeightIcon as g,PaddingYIcon as p,StylesIcon as c}from"efficient-easel/icons";import{plainText as _,textarea as d,toggle as L,upload as S,withPanelOnly as h}from"../../../controls.js";import{group as s}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as u,slider as r}from"../../../box-fields.js";import{LAYOUT_CELL as f,LOGO_LOOK_PICTURES as C}from"../../../choice-pictures.js";import{DEFAULT_LOGO_LOOK as W,LOGO_LOOK_OPTIONS as E}from"../../../../../../format/lib/sections/logo-look.js";import{HEAD_ROWS_SHOW_WHEN as R,OWN_BOX_ROWS_SHOW_WHEN as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as H,withShowWhen as n}from"../../../../../../render/lib/document/show-when.js";import{blockSourceField as I,blockSourceFields as P,NO_BLOCK_SOURCE as N}from"../../../block-source-fields.js";import{BLOCK_SOURCE_PROP as i}from"../../../../../../format/lib/content/block-sources.js";import{seedLogosTemplate as w}from"../../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{LOGOS_PH as B,LogosSlots as a}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const b=["items","heading","bandPadding"],k=["look"],x={field:i,set:!0},T=H({_gContent:s("Content"),dataSource:I("Logo content","Manual"),heading:d("Heading",B.heading),items:{type:"array",label:"Logos",arrayFields:{src:S("Image","image/*"),alt:h(_("Name / alt"))},getItemSummary:o=>o.alt||o.src||"logo"},logos:n(a.logos,N),template:n(a.template,x),_gStyle:s("Style"),columns:r("Columns",e(O,{}),3,6,1,5),logoHeight:r("Logo height",e(g,{}),20,72,2,28,"px"),bandPadding:r("Space above and below",e(p,{}),16,120,4,40,"px"),grayscale:L("Black and white logos",!0,e(m,{})),look:u("Logo style",e(c,{}),E.map(o=>({...o,picture:C[o.value]})),W,{columns:2,cell:f})},[[b,R],[k,y]]),Q={fields:T,resolveFields:(o,{fields:t})=>P("Logos",t,o.props,{hides:["logos"]}),resolveData:(o,t)=>{if(!t?.changed?.[i])return o;const l=w(o.props);return l===o.props?o:{...o,props:l}}};export{Q as LogosFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as m,ColumnsIcon as O,HeightIcon as g,PaddingYIcon as c,StylesIcon as p}from"efficient-easel/icons";import{plainText as _,textarea as d,toggle as S,upload as L,withPanelOnly as h}from"../../../controls.js";import{VIEW_KEY_ACCESS as u,group as s}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentFields as f,iconPickerRow as C,slider as r}from"../../../box-fields.js";import{LAYOUT_CELL as E,LOGO_LOOK_PICTURES as W}from"../../../choice-pictures.js";import{DEFAULT_LOGO_LOOK as I,LOGO_LOOK_OPTIONS as R}from"../../../../../../format/lib/sections/logo-look.js";import{HEAD_ROWS_SHOW_WHEN as y,OWN_BOX_ROWS_SHOW_WHEN as H}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as P,withShowWhen as n}from"../../../../../../render/lib/document/show-when.js";import{blockSourceField as N,blockSourceFields as b,NO_BLOCK_SOURCE as k}from"../../../block-source-fields.js";import{BLOCK_SOURCE_PROP as i}from"../../../../../../format/lib/content/block-sources.js";import{seedLogosTemplate as w}from"../../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{LOGOS_PH as B,LogosSlots as a}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const x=["items","heading","bandPadding"],F=["look"],K={field:i,set:!0},T=P({_gContent:s("Content"),dataSource:N("Logo content","Manual"),heading:d("Heading",B.heading),items:{type:"array",label:"Logos",arrayFields:{src:L("Image","image/*"),alt:h(_("Name / alt"))},getItemSummary:o=>o.alt||o.src||"logo"},logos:n(a.logos,k),template:n(a.template,K),_gStyle:s("Style"),columns:r("Columns",e(O,{}),3,6,1,5),logoHeight:r("Logo height",e(g,{}),16,72,2,28,"px"),bandPadding:r("Space above and below",e(c,{}),16,120,4,40,"px"),grayscale:S("Black and white logos",!0,e(m,{})),look:C("Logo style",e(p,{}),R.map(o=>({...o,picture:W[o.value]})),I,{columns:2,cell:E}),...f("align",{access:u})},[[x,y],[F,H]]),Z={fields:T,resolveFields:(o,{fields:t})=>b("Logos",t,o.props,{hides:["logos"]}),resolveData:(o,t)=>{if(!t?.changed?.[i])return o;const l=w(o.props);return l===o.props?o:{...o,props:l}}};export{Z as LogosFields};
@@ -0,0 +1,3 @@
1
+ import type { ConvertFooterBlock } from "../../../format/lib/document/box-footer.js";
2
+ export declare const FOOTER_ROW_TYPES: readonly string[];
3
+ export declare const convertFooterBlock: ConvertFooterBlock;
@@ -0,0 +1 @@
1
+ import{isNodeList as c}from"efficient-easel/data";import{registerGeneralSectionRows as f}from"../../../render/lib/document/blocks/general/section-to-box-rows.js";import{convertSection as m,sectionToBoxRow as u}from"../../../render/lib/sections/section-to-box.js";const l=["FooterPayment"];function n(o,r){const{id:e,...t}=o.props;for(const[i,p]of Object.entries(t))c(p)&&(t[i]=p.map(s=>n(s,r)));return r(o.type,t)}const R=(o,r)=>{if(!l.includes(o.type))return null;f();const e=u(o.type);return e?m({type:o.type,props:{...o.props}},e).nodes.map(t=>n(t,r)):null};export{l as FOOTER_ROW_TYPES,R as convertFooterBlock};
@@ -1,13 +1,14 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { DividerStyle } from "../../../format/lib/sections/divider-style.js";
3
3
  import type { SectionHeadStyle } from "../../../format/lib/sections/section-head-style.js";
4
+ import type { LogoLook } from "../../../format/lib/sections/logo-look.js";
4
5
  export declare const CHART_PICTURES: Record<"bars" | "line" | "donut", ReactNode>;
5
6
  export declare function dividerPicture(style: DividerStyle): ReactNode;
6
7
  export declare const TAB_SHAPE_PICTURES: Record<"tabs" | "largeTabs", ReactNode>;
7
8
  export declare const POST_CARD_PICTURES: Record<"card" | "cover", ReactNode>;
8
9
  export declare const CARD_STYLE_PICTURES: Record<"cards" | "label-only", ReactNode>;
9
10
  export declare const CARD_LIST_STYLE_PICTURES: Record<"table" | "list", ReactNode>;
10
- export declare const LOGO_LOOK_PICTURES: Record<"plain" | "cards", ReactNode>;
11
+ export declare const LOGO_LOOK_PICTURES: Record<LogoLook, ReactNode>;
11
12
  export declare const INTRO_BLEED_PICTURES: Record<"overlay" | "stacked", ReactNode>;
12
13
  export declare const TIMELINE_PICTURES: Record<"split" | "spine" | "alternating" | "track", ReactNode>;
13
14
  export declare const SECTION_HEAD_PICTURES: Record<SectionHeadStyle, ReactNode>;
@@ -1 +1 @@
1
- import{jsx as t,jsxs as e}from"react/jsx-runtime";import{NoSymbolIcon as u}from"efficient-easel/icons";import{useId as p}from"react";import{STRIPE_GEOMETRY as E}from"../../../format/lib/sections/divider-style.js";const s=44,f=28;function y({children:n}){return t("svg",{width:s,height:f,viewBox:`0 0 ${s} ${f}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:n})}const x=({x:n,y:w,w:c,t:h=2,faint:l=!1})=>t("rect",{x:n,y:w,width:c,height:h,rx:h/2,stroke:"none",opacity:l?.45:1}),r=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,fill:"none"}),o=({x:n,y:w})=>t("circle",{cx:n,cy:w,r:1.75,stroke:"none"}),i=({x1:n,y1:w,x2:c,y2:h})=>t("line",{x1:n,y1:w,x2:c,y2:h}),I={bars:e(y,{children:[t(x,{x:8,y:14,w:5,t:10}),t(x,{x:16,y:8,w:5,t:16}),t(x,{x:24,y:18,w:5,t:6}),t(x,{x:32,y:11,w:5,t:13})]}),line:e(y,{children:[t("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),t(i,{x1:6,y1:25,x2:38,y2:25})]}),donut:e(y,{children:[t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function P(n){if(n==="none")return t("span",{style:{display:"flex",width:s,height:f,alignItems:"center",justifyContent:"center"},children:t(u,{size:20})});if(n==="line")return t(y,{children:t(i,{x1:4,y1:14,x2:40,y2:14})});const{ink:w,period:c}=E[n],h=.4,l=[];for(let a=-12;a<s;a+=c*h)l.push(t("polygon",{points:`${a},22 ${a+w*h},22 ${a+w*h+10},6 ${a+10},6`,stroke:"none"},a));return t(T,{children:l})}function T({children:n}){const w=`sf-div-${p().replace(/[^\w-]/g,"")}`;return e(y,{children:[t("clipPath",{id:w,children:t("rect",{x:4,y:6,width:36,height:16,rx:2})}),t("g",{clipPath:`url(#${w})`,children:n})]})}const d=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,stroke:"none",opacity:.3}),S={tabs:e(y,{children:[t(x,{x:5,y:10,w:9}),t(x,{x:18,y:10,w:9,faint:!0}),t(x,{x:31,y:10,w:9,faint:!0}),t(i,{x1:4,y1:17,x2:40,y2:17}),t(x,{x:4,y:16,w:11,t:2})]}),largeTabs:e(y,{children:[t(i,{x1:4,y1:5,x2:40,y2:5}),t(o,{x:7,y:10}),t(x,{x:11,y:9,w:16}),t(x,{x:31,y:9,w:9,faint:!0}),t(i,{x1:4,y1:14,x2:40,y2:14}),t(o,{x:7,y:19}),t(x,{x:11,y:18,w:13,faint:!0}),t(x,{x:31,y:18,w:9,faint:!0}),t(i,{x1:4,y1:23,x2:40,y2:23})]})},k={card:e(y,{children:[t(r,{x:10,y:3,w:24,h:22}),t(d,{x:12,y:5,w:20,h:10}),t(x,{x:13,y:18,w:16}),t(x,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:e(y,{children:[t(d,{x:10,y:3,w:24,h:22}),t(r,{x:10,y:3,w:24,h:22}),t(x,{x:13,y:17,w:16}),t(x,{x:13,y:21,w:11,t:1.5})]})},g={cards:e(y,{children:[t(r,{x:3,y:5,w:11,h:18}),t(r,{x:17,y:5,w:11,h:18}),t(r,{x:31,y:5,w:11,h:18}),t(x,{x:5,y:9,w:7}),t(x,{x:19,y:9,w:7}),t(x,{x:33,y:9,w:7}),t(x,{x:5,y:13,w:5,t:1.5,faint:!0}),t(x,{x:19,y:13,w:5,t:1.5,faint:!0}),t(x,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":e(y,{children:[t("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),t(x,{x:5,y:18,w:7}),t(x,{x:19,y:18,w:7}),t(x,{x:33,y:18,w:7})]})},L={table:e(y,{children:[t(r,{x:3,y:5,w:38,h:18}),t(i,{x1:15.7,y1:5,x2:15.7,y2:23}),t(i,{x1:28.3,y1:5,x2:28.3,y2:23}),t("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),t(x,{x:6,y:9,w:6,t:3}),t(x,{x:19,y:9,w:6,t:3}),t(x,{x:31,y:9,w:6,t:3}),t(x,{x:6,y:18,w:7,t:1.5,faint:!0}),t(x,{x:19,y:18,w:7,t:1.5,faint:!0}),t(x,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:e(y,{children:[t(i,{x1:3,y1:7,x2:13,y2:7}),t(i,{x1:17,y1:7,x2:27,y2:7}),t(i,{x1:31,y1:7,x2:41,y2:7}),t(x,{x:3,y:11,w:6,t:3}),t(x,{x:17,y:11,w:6,t:3}),t(x,{x:31,y:11,w:6,t:3}),t(x,{x:3,y:17,w:8,t:1.5,faint:!0}),t(x,{x:17,y:17,w:8,t:1.5,faint:!0}),t(x,{x:31,y:17,w:8,t:1.5,faint:!0})]})},U={plain:e(y,{children:[t(x,{x:5,y:12,w:9,t:4}),t(x,{x:18,y:12,w:9,t:4}),t(x,{x:31,y:12,w:9,t:4})]}),cards:e(y,{children:[t(r,{x:3,y:7,w:11,h:14}),t(r,{x:17,y:7,w:11,h:14}),t(r,{x:31,y:7,w:11,h:14}),t(x,{x:5,y:13,w:7}),t(x,{x:19,y:13,w:7}),t(x,{x:33,y:13,w:7})]})},O={overlay:e(y,{children:[t(d,{x:4,y:3,w:36,h:22}),t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:15,w:18,t:3}),t(x,{x:8,y:20,w:12})]}),stacked:e(y,{children:[t(x,{x:4,y:3,w:18,t:3}),t(x,{x:4,y:8,w:12}),t(d,{x:4,y:13,w:36,h:12}),t(r,{x:4,y:13,w:36,h:12})]})},A={split:e(y,{children:[t(x,{x:4,y:6,w:12,t:3}),t(x,{x:4,y:11,w:9,faint:!0}),t(i,{x1:20,y1:4,x2:20,y2:24}),t(x,{x:24,y:6,w:16}),t(x,{x:24,y:10,w:11,faint:!0}),t(x,{x:24,y:17,w:16}),t(x,{x:24,y:21,w:11,faint:!0})]}),spine:e(y,{children:[t(i,{x1:9,y1:4,x2:9,y2:24}),t(o,{x:9,y:8}),t(x,{x:14,y:7,w:24}),t(o,{x:9,y:14}),t(x,{x:14,y:13,w:20}),t(o,{x:9,y:20}),t(x,{x:14,y:19,w:24})]}),alternating:e(y,{children:[t(i,{x1:22,y1:4,x2:22,y2:24}),t(o,{x:22,y:8}),t(x,{x:4,y:7,w:14}),t(o,{x:22,y:14}),t(x,{x:26,y:13,w:14}),t(o,{x:22,y:20}),t(x,{x:4,y:19,w:14})]}),track:e(y,{children:[t(i,{x1:4,y1:12,x2:40,y2:12}),t(o,{x:8,y:12}),t(o,{x:22,y:12}),t(o,{x:36,y:12}),t(x,{x:4,y:17,w:8}),t(x,{x:18,y:17,w:8}),t(x,{x:32,y:17,w:8}),t(x,{x:4,y:21,w:6,faint:!0}),t(x,{x:18,y:21,w:6,faint:!0}),t(x,{x:32,y:21,w:6,faint:!0})]})},M={standard:e(y,{children:[t(x,{x:4,y:5,w:10,t:1.5,faint:!0}),t(x,{x:4,y:10,w:28,t:4}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:24,faint:!0})]}),editorial:e(y,{children:[t(x,{x:4,y:5,w:5,t:1.5,faint:!0}),t(x,{x:4,y:10,w:20,t:5}),t(x,{x:28,y:11,w:12,faint:!0}),t(x,{x:28,y:15,w:9,faint:!0}),t(i,{x1:4,y1:22,x2:40,y2:22})]}),simple:e(y,{children:[t(x,{x:4,y:8,w:10,t:1.5,faint:!0}),t(x,{x:4,y:13,w:26,t:4})]}),statement:e(y,{children:[t(x,{x:4,y:6,w:36,t:7}),t(x,{x:4,y:16,w:24,t:7})]}),natural:e(y,{children:[t(x,{x:4,y:8,w:22,t:3}),t(x,{x:4,y:15,w:34,faint:!0}),t(x,{x:4,y:19,w:28,faint:!0})]}),essay:e(y,{children:[t(x,{x:4,y:5,w:24,t:4}),t(x,{x:4,y:13,w:36,faint:!0}),t(x,{x:4,y:17,w:36,faint:!0}),t(x,{x:4,y:21,w:30,faint:!0})]})},b={"spec-card":e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:14}),t(r,{x:8,y:12,w:8,h:9}),t(r,{x:18,y:12,w:8,h:9}),t(r,{x:28,y:12,w:8,h:9})]}),fitment:e(y,{children:[t(r,{x:4,y:4,w:10,h:5}),t(r,{x:16,y:4,w:10,h:5}),t(r,{x:28,y:4,w:10,h:5}),t(x,{x:4,y:14,w:34,faint:!0}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:34,faint:!0})]}),portal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:10,t:4}),t(x,{x:8,y:14,w:16,faint:!0}),t(x,{x:26,y:18,w:10,t:4})]}),kanban:e(y,{children:[t(r,{x:4,y:3,w:10,h:22}),t(r,{x:17,y:3,w:10,h:22}),t(r,{x:30,y:3,w:10,h:22}),t(x,{x:6,y:6,w:6,t:4}),t(x,{x:6,y:12,w:6,t:4}),t(x,{x:19,y:6,w:6,t:4}),t(x,{x:32,y:6,w:6,t:4}),t(x,{x:32,y:12,w:6,t:4})]}),claims:e(y,{children:[t(x,{x:4,y:5,w:12,faint:!0}),t(x,{x:20,y:4,w:18,t:4}),t(x,{x:4,y:12,w:12,faint:!0}),t(x,{x:20,y:11,w:10,t:4}),t(x,{x:4,y:19,w:12,faint:!0}),t(x,{x:20,y:18,w:14,t:4})]}),browser:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(i,{x1:4,y1:8,x2:40,y2:8}),t(x,{x:8,y:11,w:28,t:5,faint:!0}),t(r,{x:8,y:18,w:8,h:4}),t(r,{x:18,y:18,w:8,h:4}),t(r,{x:28,y:18,w:8,h:4})]}),terminal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t("polyline",{points:"8,9 11,11 8,13",fill:"none"}),t(x,{x:13,y:10,w:14}),t(x,{x:8,y:16,w:22,faint:!0}),t(x,{x:8,y:20,w:16,faint:!0})]})},v={width:"5.75rem",height:"3.75rem"},D={width:"8.5rem",height:"3.75rem"},$={columns:e(y,{children:[t(r,{x:3,y:4,w:11,h:8}),t(r,{x:17,y:4,w:11,h:8}),t(r,{x:31,y:4,w:11,h:8}),t(x,{x:3,y:16,w:9}),t(x,{x:17,y:16,w:9}),t(x,{x:31,y:16,w:9}),t(x,{x:3,y:20,w:7,t:1.5,faint:!0}),t(x,{x:17,y:20,w:7,t:1.5,faint:!0}),t(x,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":e(y,{children:[t(r,{x:6,y:3,w:14,h:9}),t(x,{x:24,y:5,w:14}),t(x,{x:24,y:9,w:10,t:1.5,faint:!0}),t(r,{x:24,y:16,w:14,h:9}),t(x,{x:6,y:18,w:14}),t(x,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":e(y,{children:[t(r,{x:24,y:3,w:14,h:9}),t(x,{x:6,y:5,w:14}),t(x,{x:6,y:9,w:10,t:1.5,faint:!0}),t(r,{x:6,y:16,w:14,h:9}),t(x,{x:24,y:18,w:14}),t(x,{x:24,y:22,w:10,t:1.5,faint:!0})]})};export{L as CARD_LIST_STYLE_PICTURES,g as CARD_STYLE_PICTURES,I as CHART_PICTURES,$ as IMAGE_TEXT_ARRANGEMENT_PICTURES,O as INTRO_BLEED_PICTURES,v as LAYOUT_CELL,U as LOGO_LOOK_PICTURES,D as LONG_WORD_CELL,b as MOCKUP_PICTURES,k as POST_CARD_PICTURES,M as SECTION_HEAD_PICTURES,S as TAB_SHAPE_PICTURES,A as TIMELINE_PICTURES,P as dividerPicture};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";import{NoSymbolIcon as u}from"efficient-easel/icons";import{useId as p}from"react";import{STRIPE_GEOMETRY as E}from"../../../format/lib/sections/divider-style.js";const s=44,f=28;function y({children:n}){return t("svg",{width:s,height:f,viewBox:`0 0 ${s} ${f}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:n})}const x=({x:n,y:w,w:c,t:h=2,faint:l=!1})=>t("rect",{x:n,y:w,width:c,height:h,rx:h/2,stroke:"none",opacity:l?.45:1}),r=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,fill:"none"}),o=({x:n,y:w})=>t("circle",{cx:n,cy:w,r:1.75,stroke:"none"}),i=({x1:n,y1:w,x2:c,y2:h})=>t("line",{x1:n,y1:w,x2:c,y2:h}),I={bars:e(y,{children:[t(x,{x:8,y:14,w:5,t:10}),t(x,{x:16,y:8,w:5,t:16}),t(x,{x:24,y:18,w:5,t:6}),t(x,{x:32,y:11,w:5,t:13})]}),line:e(y,{children:[t("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),t(i,{x1:6,y1:25,x2:38,y2:25})]}),donut:e(y,{children:[t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function P(n){if(n==="none")return t("span",{style:{display:"flex",width:s,height:f,alignItems:"center",justifyContent:"center"},children:t(u,{size:20})});if(n==="line")return t(y,{children:t(i,{x1:4,y1:14,x2:40,y2:14})});const{ink:w,period:c}=E[n],h=.4,l=[];for(let a=-12;a<s;a+=c*h)l.push(t("polygon",{points:`${a},22 ${a+w*h},22 ${a+w*h+10},6 ${a+10},6`,stroke:"none"},a));return t(T,{children:l})}function T({children:n}){const w=`sf-div-${p().replace(/[^\w-]/g,"")}`;return e(y,{children:[t("clipPath",{id:w,children:t("rect",{x:4,y:6,width:36,height:16,rx:2})}),t("g",{clipPath:`url(#${w})`,children:n})]})}const d=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,stroke:"none",opacity:.3}),S={tabs:e(y,{children:[t(x,{x:5,y:10,w:9}),t(x,{x:18,y:10,w:9,faint:!0}),t(x,{x:31,y:10,w:9,faint:!0}),t(i,{x1:4,y1:17,x2:40,y2:17}),t(x,{x:4,y:16,w:11,t:2})]}),largeTabs:e(y,{children:[t(i,{x1:4,y1:5,x2:40,y2:5}),t(o,{x:7,y:10}),t(x,{x:11,y:9,w:16}),t(x,{x:31,y:9,w:9,faint:!0}),t(i,{x1:4,y1:14,x2:40,y2:14}),t(o,{x:7,y:19}),t(x,{x:11,y:18,w:13,faint:!0}),t(x,{x:31,y:18,w:9,faint:!0}),t(i,{x1:4,y1:23,x2:40,y2:23})]})},k={card:e(y,{children:[t(r,{x:10,y:3,w:24,h:22}),t(d,{x:12,y:5,w:20,h:10}),t(x,{x:13,y:18,w:16}),t(x,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:e(y,{children:[t(d,{x:10,y:3,w:24,h:22}),t(r,{x:10,y:3,w:24,h:22}),t(x,{x:13,y:17,w:16}),t(x,{x:13,y:21,w:11,t:1.5})]})},g={cards:e(y,{children:[t(r,{x:3,y:5,w:11,h:18}),t(r,{x:17,y:5,w:11,h:18}),t(r,{x:31,y:5,w:11,h:18}),t(x,{x:5,y:9,w:7}),t(x,{x:19,y:9,w:7}),t(x,{x:33,y:9,w:7}),t(x,{x:5,y:13,w:5,t:1.5,faint:!0}),t(x,{x:19,y:13,w:5,t:1.5,faint:!0}),t(x,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":e(y,{children:[t("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),t(x,{x:5,y:18,w:7}),t(x,{x:19,y:18,w:7}),t(x,{x:33,y:18,w:7})]})},L={table:e(y,{children:[t(r,{x:3,y:5,w:38,h:18}),t(i,{x1:15.7,y1:5,x2:15.7,y2:23}),t(i,{x1:28.3,y1:5,x2:28.3,y2:23}),t("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),t(x,{x:6,y:9,w:6,t:3}),t(x,{x:19,y:9,w:6,t:3}),t(x,{x:31,y:9,w:6,t:3}),t(x,{x:6,y:18,w:7,t:1.5,faint:!0}),t(x,{x:19,y:18,w:7,t:1.5,faint:!0}),t(x,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:e(y,{children:[t(i,{x1:3,y1:7,x2:13,y2:7}),t(i,{x1:17,y1:7,x2:27,y2:7}),t(i,{x1:31,y1:7,x2:41,y2:7}),t(x,{x:3,y:11,w:6,t:3}),t(x,{x:17,y:11,w:6,t:3}),t(x,{x:31,y:11,w:6,t:3}),t(x,{x:3,y:17,w:8,t:1.5,faint:!0}),t(x,{x:17,y:17,w:8,t:1.5,faint:!0}),t(x,{x:31,y:17,w:8,t:1.5,faint:!0})]})},U={plain:e(y,{children:[t(x,{x:5,y:12,w:9,t:4}),t(x,{x:18,y:12,w:9,t:4}),t(x,{x:31,y:12,w:9,t:4})]}),cards:e(y,{children:[t(r,{x:3,y:7,w:11,h:14}),t(r,{x:17,y:7,w:11,h:14}),t(r,{x:31,y:7,w:11,h:14}),t(x,{x:5,y:13,w:7}),t(x,{x:19,y:13,w:7}),t(x,{x:33,y:13,w:7})]}),marks:e(y,{children:[t(x,{x:8,y:12,w:6,t:4}),t(x,{x:17,y:12,w:6,t:4}),t(x,{x:26,y:12,w:6,t:4}),t(x,{x:35,y:12,w:3,t:4})]})},O={overlay:e(y,{children:[t(d,{x:4,y:3,w:36,h:22}),t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:15,w:18,t:3}),t(x,{x:8,y:20,w:12})]}),stacked:e(y,{children:[t(x,{x:4,y:3,w:18,t:3}),t(x,{x:4,y:8,w:12}),t(d,{x:4,y:13,w:36,h:12}),t(r,{x:4,y:13,w:36,h:12})]})},A={split:e(y,{children:[t(x,{x:4,y:6,w:12,t:3}),t(x,{x:4,y:11,w:9,faint:!0}),t(i,{x1:20,y1:4,x2:20,y2:24}),t(x,{x:24,y:6,w:16}),t(x,{x:24,y:10,w:11,faint:!0}),t(x,{x:24,y:17,w:16}),t(x,{x:24,y:21,w:11,faint:!0})]}),spine:e(y,{children:[t(i,{x1:9,y1:4,x2:9,y2:24}),t(o,{x:9,y:8}),t(x,{x:14,y:7,w:24}),t(o,{x:9,y:14}),t(x,{x:14,y:13,w:20}),t(o,{x:9,y:20}),t(x,{x:14,y:19,w:24})]}),alternating:e(y,{children:[t(i,{x1:22,y1:4,x2:22,y2:24}),t(o,{x:22,y:8}),t(x,{x:4,y:7,w:14}),t(o,{x:22,y:14}),t(x,{x:26,y:13,w:14}),t(o,{x:22,y:20}),t(x,{x:4,y:19,w:14})]}),track:e(y,{children:[t(i,{x1:4,y1:12,x2:40,y2:12}),t(o,{x:8,y:12}),t(o,{x:22,y:12}),t(o,{x:36,y:12}),t(x,{x:4,y:17,w:8}),t(x,{x:18,y:17,w:8}),t(x,{x:32,y:17,w:8}),t(x,{x:4,y:21,w:6,faint:!0}),t(x,{x:18,y:21,w:6,faint:!0}),t(x,{x:32,y:21,w:6,faint:!0})]})},M={standard:e(y,{children:[t(x,{x:4,y:5,w:10,t:1.5,faint:!0}),t(x,{x:4,y:10,w:28,t:4}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:24,faint:!0})]}),editorial:e(y,{children:[t(x,{x:4,y:5,w:5,t:1.5,faint:!0}),t(x,{x:4,y:10,w:20,t:5}),t(x,{x:28,y:11,w:12,faint:!0}),t(x,{x:28,y:15,w:9,faint:!0}),t(i,{x1:4,y1:22,x2:40,y2:22})]}),simple:e(y,{children:[t(x,{x:4,y:8,w:10,t:1.5,faint:!0}),t(x,{x:4,y:13,w:26,t:4})]}),statement:e(y,{children:[t(x,{x:4,y:6,w:36,t:7}),t(x,{x:4,y:16,w:24,t:7})]}),natural:e(y,{children:[t(x,{x:4,y:8,w:22,t:3}),t(x,{x:4,y:15,w:34,faint:!0}),t(x,{x:4,y:19,w:28,faint:!0})]}),essay:e(y,{children:[t(x,{x:4,y:5,w:24,t:4}),t(x,{x:4,y:13,w:36,faint:!0}),t(x,{x:4,y:17,w:36,faint:!0}),t(x,{x:4,y:21,w:30,faint:!0})]})},b={"spec-card":e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:14}),t(r,{x:8,y:12,w:8,h:9}),t(r,{x:18,y:12,w:8,h:9}),t(r,{x:28,y:12,w:8,h:9})]}),fitment:e(y,{children:[t(r,{x:4,y:4,w:10,h:5}),t(r,{x:16,y:4,w:10,h:5}),t(r,{x:28,y:4,w:10,h:5}),t(x,{x:4,y:14,w:34,faint:!0}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:34,faint:!0})]}),portal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:10,t:4}),t(x,{x:8,y:14,w:16,faint:!0}),t(x,{x:26,y:18,w:10,t:4})]}),kanban:e(y,{children:[t(r,{x:4,y:3,w:10,h:22}),t(r,{x:17,y:3,w:10,h:22}),t(r,{x:30,y:3,w:10,h:22}),t(x,{x:6,y:6,w:6,t:4}),t(x,{x:6,y:12,w:6,t:4}),t(x,{x:19,y:6,w:6,t:4}),t(x,{x:32,y:6,w:6,t:4}),t(x,{x:32,y:12,w:6,t:4})]}),claims:e(y,{children:[t(x,{x:4,y:5,w:12,faint:!0}),t(x,{x:20,y:4,w:18,t:4}),t(x,{x:4,y:12,w:12,faint:!0}),t(x,{x:20,y:11,w:10,t:4}),t(x,{x:4,y:19,w:12,faint:!0}),t(x,{x:20,y:18,w:14,t:4})]}),browser:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(i,{x1:4,y1:8,x2:40,y2:8}),t(x,{x:8,y:11,w:28,t:5,faint:!0}),t(r,{x:8,y:18,w:8,h:4}),t(r,{x:18,y:18,w:8,h:4}),t(r,{x:28,y:18,w:8,h:4})]}),terminal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t("polyline",{points:"8,9 11,11 8,13",fill:"none"}),t(x,{x:13,y:10,w:14}),t(x,{x:8,y:16,w:22,faint:!0}),t(x,{x:8,y:20,w:16,faint:!0})]})},v={width:"5.75rem",height:"3.75rem"},D={width:"8.5rem",height:"3.75rem"},$={columns:e(y,{children:[t(r,{x:3,y:4,w:11,h:8}),t(r,{x:17,y:4,w:11,h:8}),t(r,{x:31,y:4,w:11,h:8}),t(x,{x:3,y:16,w:9}),t(x,{x:17,y:16,w:9}),t(x,{x:31,y:16,w:9}),t(x,{x:3,y:20,w:7,t:1.5,faint:!0}),t(x,{x:17,y:20,w:7,t:1.5,faint:!0}),t(x,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":e(y,{children:[t(r,{x:6,y:3,w:14,h:9}),t(x,{x:24,y:5,w:14}),t(x,{x:24,y:9,w:10,t:1.5,faint:!0}),t(r,{x:24,y:16,w:14,h:9}),t(x,{x:6,y:18,w:14}),t(x,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":e(y,{children:[t(r,{x:24,y:3,w:14,h:9}),t(x,{x:6,y:5,w:14}),t(x,{x:6,y:9,w:10,t:1.5,faint:!0}),t(r,{x:6,y:16,w:14,h:9}),t(x,{x:24,y:18,w:14}),t(x,{x:24,y:22,w:10,t:1.5,faint:!0})]})};export{L as CARD_LIST_STYLE_PICTURES,g as CARD_STYLE_PICTURES,I as CHART_PICTURES,$ as IMAGE_TEXT_ARRANGEMENT_PICTURES,O as INTRO_BLEED_PICTURES,v as LAYOUT_CELL,U as LOGO_LOOK_PICTURES,D as LONG_WORD_CELL,b as MOCKUP_PICTURES,k as POST_CARD_PICTURES,M as SECTION_HEAD_PICTURES,S as TAB_SHAPE_PICTURES,A as TIMELINE_PICTURES,P as dividerPicture};
@@ -1,2 +1,2 @@
1
- import{jsx as o,jsxs as P}from"react/jsx-runtime";import{accentItalicCss as $,storedTextStyles as K,textStylesCss as X}from"../../../render/lib/text-styles/site-text-styles.js";import{pageWidthMarker as Y,PAGE_WIDTH_ATTR as q,siteWidthTokens as J,siteGutterTokens as Q,siteGutterPhoneClass as U,siteGutterPhoneTokens as Z,heroBackgroundTokens as ee}from"../../../format/lib/content/page-width.js";import{siteBlockGapPhoneClass as te,siteBlockGapPhoneTokens as oe,siteBlockGapTokens as ne}from"../../../format/lib/content/container-gap.js";import{usePreviewHeader as re}from"../../../render/components/PreviewHeaderContext.js";import{SitePhotographyProvider as se}from"../../../render/components/SitePhotographyContext.js";import{CORNER_STYLE_TO_PX as ae,normalizeCornerStyle as ie,normalizeCornerRadius as de,themeColorStyle as ce,typeSizesStyle as le,headingTypographyStyle as he,normalizeHeadingTypography as pe,themeAccentStyle as me,themeButtonStyle as fe,themePresetAccentVars as ue,themeSurfaceStyle as ge,siteCornerRadiusTokens as Se,shadowColorTokens as ye,headingCompressionAttr as xe,cardShadowAttr as Te,cardGapAttr as ke,hoverEffectAttr as Pe}from"../../../format/lib/theme.js";import{fontRoleStyle as Ce}from"../../../format/lib/fonts.js";import{wordStyleTokens as Ee}from"../../../format/lib/word-styles.js";import{isStandaloneSectionDocument as Ae,pageHasHeaderSection as C,pageTakesTopSpace as Ge,topSpaceMarker as ve,TOP_SPACE_ATTR as _e,HEADER_CLEARANCE_CLASS as Be}from"../../../render/lib/document/header-clearance.js";import{leadSectionInk as Re,HEADER_INK_ATTR as we}from"../../../render/lib/document/header-ink.js";import{useEasel as Ie}from"efficient-easel/easel";import{pageBackgroundVars as We}from"../../../format/lib/content/page-background.js";import{pageWidthTokens as He}from"../../../render/lib/document/page-frame.js";import{EditingBridgesProvider as Ne}from"../../../render/lib/document/editing-bridges.js";import be from"../../components/SectionTextPartBridge.js";import{PageContentsFromDocument as E}from"../../../render/components/PageContentsContext.js";const De={SectionTextParts:be};import{PageWidthWrapper as dt,PublishedPageFrame as ct,pageWidthTokens as lt}from"../../../render/lib/document/page-frame.js";const ze="color-mix(in oklab, var(--bg) 40%, #ffffff)",je="12vh";function Fe({style:n,children:a}){const{appState:i}=Ie(u=>u),t=i.data.content,r=i.data.root;if(Ae(t))return o("div",{className:"sf-themed-content",style:{...n,background:ze,minHeight:"100vh",paddingBottom:je},children:o("div",{style:{background:"var(--bg)"},children:o(E,{content:t,children:a})})});const d=C(t)&&Ge(r,t),c=C(t)?ve(r,t):null,p=c?{[_e]:c}:null,l=Y(r?.widthChoice),m=l?{[q]:l}:null,h=d?null:Re(t),f=h?{[we]:h}:null;return o("div",{className:`sf-themed-content${d?` ${Be}`:""}`,style:n,...f,...p,...m,children:o("div",{style:{background:"var(--bg)",minHeight:"100%"},children:o(E,{content:t,children:a})})})}function rt({propsTheme:n,propsFonts:a,propsCornerStyle:i,propsCornerRadiusPx:t,propsHeadingCompression:r,propsHeadingTypography:d,pageBackground:c,chromeInheritsSiteBackground:p,suppressPreviewNav:l,footer:m,overlay:h,children:f}){const{theme:u,fonts:A,sizes:G,cornerRadiusPx:v,cardShadow:g,shadowColor:_,cardGap:B,hoverEffect:S,headingCompression:R,siteWidth:w,siteGutter:I,siteGutterPhone:y,blockGap:W,blockGapPhone:x,headingTypography:H,heroBackgroundFollowsWidth:N,photographyGrayscale:b,textStyles:D,wordStyles:z,themeFromDocument:e}=re(),s=e?n:u,j=e?a:A,F=e?void 0:G,V=e?t===void 0?ae[ie(i)]:de(t):v,L=e?r:R,T=e?d:H,k=[X(K(e?void 0:D)),$(pe(T).italicStrong)].filter(Boolean).join(`
2
- `),O=He(),M={...ce(s),...le(F),...he(T),...O.style,...p?{}:We(c)};return P("div",{className:`sf-theme-surfaces sf-theme-accent ${[U(e?void 0:y),te(e?void 0:x)].filter(Boolean).join(" ")}`.trim(),style:{...Ce(j),...Ee(e?null:z),...me(s),...fe(s),...ue(s),...ge(s),...Se(V),...ye(e?void 0:g,e?void 0:_,e?void 0:S),...J(e?void 0:w),...Q(e?void 0:I),...Z(e?void 0:y),...ne(e?void 0:W),...oe(e?void 0:x),...ee(e?void 0:N)},"data-sf-headings":xe(L),"data-sf-card-shadow":e?void 0:Te(g),"data-sf-card-gap":e?void 0:ke(B),"data-sf-card-hover":e?void 0:Pe(S),onClickCapture:l,children:[k?o("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:k}}):null,o(se,{grayscale:e?void 0:b,children:P(Ne,{value:De,children:[o(Fe,{style:M,children:f}),m,h]})})]})}const st=n=>{n.target?.closest?.("a")&&n.preventDefault()};export{De as EDITING_BRIDGES,Fe as EditorPageBody,rt as EditorThemedBody,dt as PageWidthWrapper,ct as PublishedPageFrame,ze as SECTION_PREVIEW_CANVAS,je as SECTION_PREVIEW_CANVAS_TAIL,lt as pageWidthTokens,st as suppressPreviewNav};
1
+ import{jsx as o,jsxs as C}from"react/jsx-runtime";import{accentItalicCss as $,storedTextStyles as K,textStylesCss as X}from"../../../render/lib/text-styles/site-text-styles.js";import{pageWidthMarker as Y,PAGE_WIDTH_ATTR as q,siteWidthTokens as J,siteGutterTokens as Q,siteGutterPhoneClass as U,siteGutterPhoneTokens as Z,heroBackgroundTokens as ee}from"../../../format/lib/content/page-width.js";import{siteBlockGapPhoneClass as te,siteBlockGapPhoneTokens as oe,siteBlockGapTokens as ne}from"../../../format/lib/content/container-gap.js";import{usePreviewHeader as re}from"../../../render/components/PreviewHeaderContext.js";import{SitePhotographyProvider as se}from"../../../render/components/SitePhotographyContext.js";import{CORNER_STYLE_TO_PX as ae,normalizeCornerStyle as ie,normalizeCornerRadius as de,themeColorStyle as ce,typeSizesStyle as le,headingTypographyStyle as he,normalizeHeadingTypography as pe,themeAccentStyle as me,themeButtonStyle as fe,themePresetAccentVars as ue,themeSurfaceStyle as Se,siteCornerRadiusTokens as ge,shadowColorTokens as ye,headingCompressionAttr as xe,cardShadowAttr as Te,cardGapAttr as ke,hoverEffectAttr as Ce}from"../../../format/lib/theme.js";import{fontRoleStyle as Pe}from"../../../format/lib/fonts.js";import{wordStyleTokens as Ee}from"../../../format/lib/word-styles.js";import{isStandaloneSectionDocument as Ae,pageHasHeaderSection as P,pageTakesTopSpace as Ge,topSpaceMarker as ve,TOP_SPACE_ATTR as _e,HEADER_CLEARANCE_CLASS as Be}from"../../../render/lib/document/header-clearance.js";import{leadSectionInk as we,HEADER_INK_ATTR as Re}from"../../../render/lib/document/header-ink.js";import{useEasel as Ie}from"efficient-easel/easel";import{useCardContentSwitchPass as We}from"../../components/useCardContentSwitchPass.js";import{pageBackgroundVars as He}from"../../../format/lib/content/page-background.js";import{pageWidthTokens as Ne}from"../../../render/lib/document/page-frame.js";import{EditingBridgesProvider as be}from"../../../render/lib/document/editing-bridges.js";import De from"../../components/SectionTextPartBridge.js";import{PageContentsFromDocument as E}from"../../../render/components/PageContentsContext.js";const ze={SectionTextParts:De};import{PageWidthWrapper as lt,PublishedPageFrame as ht,pageWidthTokens as pt}from"../../../render/lib/document/page-frame.js";const je="color-mix(in oklab, var(--bg) 40%, #ffffff)",Fe="12vh";function Ve({style:n,children:a}){const{appState:i}=Ie(u=>u),t=i.data.content,r=i.data.root;if(Ae(t))return o("div",{className:"sf-themed-content",style:{...n,background:je,minHeight:"100vh",paddingBottom:Fe},children:o("div",{style:{background:"var(--bg)"},children:o(E,{content:t,children:a})})});const d=P(t)&&Ge(r,t),c=P(t)?ve(r,t):null,p=c?{[_e]:c}:null,l=Y(r?.widthChoice),m=l?{[q]:l}:null,h=d?null:we(t),f=h?{[Re]:h}:null;return o("div",{className:`sf-themed-content${d?` ${Be}`:""}`,style:n,...f,...p,...m,children:o("div",{style:{background:"var(--bg)",minHeight:"100%"},children:o(E,{content:t,children:a})})})}function at({propsTheme:n,propsFonts:a,propsCornerStyle:i,propsCornerRadiusPx:t,propsHeadingCompression:r,propsHeadingTypography:d,pageBackground:c,chromeInheritsSiteBackground:p,suppressPreviewNav:l,footer:m,overlay:h,children:f}){const{theme:u,fonts:A,sizes:G,cornerRadiusPx:v,cardShadow:S,shadowColor:_,cardGap:B,hoverEffect:g,headingCompression:w,siteWidth:R,siteGutter:I,siteGutterPhone:y,blockGap:W,blockGapPhone:x,headingTypography:H,heroBackgroundFollowsWidth:N,photographyGrayscale:b,textStyles:D,wordStyles:z,themeFromDocument:e}=re();We();const s=e?n:u,j=e?a:A,F=e?void 0:G,V=e?t===void 0?ae[ie(i)]:de(t):v,L=e?r:w,T=e?d:H,k=[X(K(e?void 0:D)),$(pe(T).italicStrong)].filter(Boolean).join(`
2
+ `),O=Ne(),M={...ce(s),...le(F),...he(T),...O.style,...p?{}:He(c)};return C("div",{className:`sf-theme-surfaces sf-theme-accent ${[U(e?void 0:y),te(e?void 0:x)].filter(Boolean).join(" ")}`.trim(),style:{...Pe(j),...Ee(e?null:z),...me(s),...fe(s),...ue(s),...Se(s),...ge(V),...ye(e?void 0:S,e?void 0:_,e?void 0:g),...J(e?void 0:R),...Q(e?void 0:I),...Z(e?void 0:y),...ne(e?void 0:W),...oe(e?void 0:x),...ee(e?void 0:N)},"data-sf-headings":xe(L),"data-sf-card-shadow":e?void 0:Te(S),"data-sf-card-gap":e?void 0:ke(B),"data-sf-card-hover":e?void 0:Ce(g),onClickCapture:l,children:[k?o("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:k}}):null,o(se,{grayscale:e?void 0:b,children:C(be,{value:ze,children:[o(Ve,{style:M,children:f}),m,h]})})]})}const it=n=>{n.target?.closest?.("a")&&n.preventDefault()};export{ze as EDITING_BRIDGES,Ve as EditorPageBody,at as EditorThemedBody,lt as PageWidthWrapper,ht as PublishedPageFrame,je as SECTION_PREVIEW_CANVAS,Fe as SECTION_PREVIEW_CANVAS_TAIL,pt as pageWidthTokens,it as suppressPreviewNav};
@@ -1 +1 @@
1
- import{convertSection as P,pressesAsBox as S,SECTION_TO_BOX_PRESS as _,sectionToBoxRow as l}from"../../../render/lib/sections/section-to-box.js";import{SECTION_PRESETS as R,presetFor as k}from"../../../format/lib/sections/section-presets.js";import{GENERAL_SECTION_TO_BOX as d}from"../../../render/lib/document/blocks/general/section-to-box-rows.js";import{statsBoxSeed as T,statsPressSeed as B,statsSeedRows as C}from"../../../render/lib/document/blocks/general/section-to-box-rows-stats.js";import{logosPressStarter as N,paymentPressStarter as w}from"../../../render/lib/document/blocks/general/section-to-box-rows-logos.js";import{cardsPressStarter as L}from"../../../render/lib/document/blocks/general/section-to-box-rows-cards.js";import{pageHeaderPressStarter as j}from"../../../render/lib/document/blocks/general/section-to-box-rows-pageheader.js";import{milestoneTimelinePressStarter as v,storyTimelinePressStarter as A}from"../../../render/lib/document/blocks/general/section-to-box-rows-timeline.js";import{seedNodes as U}from"../../../format/lib/document/seed-parts.js";import{propsWithPartStyleValue as W}from"../../../render/lib/document/part-styles.js";import{isNodeList as m}from"efficient-easel/data";const X=Object.keys(d),E={Logos:N,DocMasthead:j,Timeline:A,TimelineTrack:v},D={PaymentBadges:w};function u(t,r,e){const o={};for(const n of Object.keys(r(t.type)))o[n]=void 0;for(const[n,s]of Object.entries(t.props))o[n]=m(s)?s.map(p=>u(p,r,e)):s;return o.id=e(t.type),{type:t.type,props:o}}const O=t=>({...t?.theme?{theme:t.theme}:{},press:!0});function b(t,r,e=0,o=()=>({})){return(n,s,p)=>{const{nodes:i}=P({type:t,props:{...n(t),...o(),id:s(t)}},r,O(p));return u(i[e],n,s)}}const G={Stats:Y,Cards:M};function M(){const t=l("Cards");if(!t)return null;const r=b("Cards",t,0,L);return(e,o,n)=>{const s=r(e,o,n);return{...s,props:{...s.props,name:"Cards section"}}}}function Y(){const t=l("StatsParagraph");return t?(r,e,o)=>{const{nodes:n}=P({type:"StatsParagraph",props:{...r("StatsParagraph"),...B(),id:e("StatsParagraph")}},t,O(o)),s=n[0],p=m(s.props.content)?s.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=x(T(C(),"table")),c=p.map(h),a=u({...s,props:{...s.props,content:[...c,i]}},r,e);return{...a,props:{...a.props,name:"Stats section"}}}:null}function h(t){if(t.props?.name==="Words"){const r=m(t.props.content)?t.props.content.map($):t.props.content;return{...t,props:{...t.props,widthFitPhone:"fill",content:r}}}return m(t.props?.content)?{...t,props:{...t.props,content:t.props.content.map(h)}}:t}function $(t){return t.type!=="Text"?t:{...t,props:W({...t.props,alignTablet:"left"},"text","alignTablet","left")}}const x=t=>U([t],(r,e)=>`${r}-seed-${e}`)[0];function H(t,r){if(!S(t,r))return null;const e=G[t];if(e)return e();const o=l(t);return o?b(t,o,0,E[t]??D[t]):null}function I(t){return(r,e,o)=>{const n=s=>{if(s.type==="Stats"){const c=u(x(T([],"list")),r,e);return{...c,props:{...c.props,name:"Numbers"}}}let p=!1;const i={};for(const[c,a]of Object.entries(s.props))if(m(a)){const f=a.map(n);p||=f.some((y,g)=>y!==a[g]),i[c]=f}else i[c]=a;return p?{type:s.type,props:i}:s};return n(t(r,e,o))}}function st(t,r=_){const e=k(t);return e?I(e):H(t,r)}function ot(){return[...Object.keys(R),...X.filter(t=>S(t)),...Object.keys(E).filter(t=>S(t))]}export{E as MERGE_LAYOUTS,X as TEXT_LAYOUTS,b as conversionPreset,st as layoutPresetFor,ot as layoutTypes};
1
+ import{convertSection as P,pressesAsBox as S,SECTION_TO_BOX_PRESS as _,sectionToBoxRow as l}from"../../../render/lib/sections/section-to-box.js";import{SECTION_PRESETS as k,presetFor as R}from"../../../format/lib/sections/section-presets.js";import{GENERAL_SECTION_TO_BOX as B}from"../../../render/lib/document/blocks/general/section-to-box-rows.js";import{statsBoxSeed as T,statsPressSeed as d,statsSeedRows as C}from"../../../render/lib/document/blocks/general/section-to-box-rows-stats.js";import{footerPaymentPressStarter as L,logosPressStarter as N,paymentPressStarter as w}from"../../../render/lib/document/blocks/general/section-to-box-rows-logos.js";import{cardsPressStarter as j}from"../../../render/lib/document/blocks/general/section-to-box-rows-cards.js";import{pageHeaderPressStarter as v}from"../../../render/lib/document/blocks/general/section-to-box-rows-pageheader.js";import{milestoneTimelinePressStarter as A,storyTimelinePressStarter as U}from"../../../render/lib/document/blocks/general/section-to-box-rows-timeline.js";import{seedNodes as W}from"../../../format/lib/document/seed-parts.js";import{propsWithPartStyleValue as X}from"../../../render/lib/document/part-styles.js";import{isNodeList as m}from"efficient-easel/data";const D=Object.keys(B),E={Logos:N,DocMasthead:v,Timeline:U,TimelineTrack:A},G={PaymentBadges:w,PaymentLogosBlock:L};function u(t,r,e){const o={};for(const n of Object.keys(r(t.type)))o[n]=void 0;for(const[n,s]of Object.entries(t.props))o[n]=m(s)?s.map(p=>u(p,r,e)):s;return o.id=e(t.type),{type:t.type,props:o}}const O=t=>({...t?.theme?{theme:t.theme}:{},press:!0});function b(t,r,e=0,o=()=>({})){return(n,s,p)=>{const{nodes:i}=P({type:t,props:{...n(t),...o(),id:s(t)}},r,O(p));return u(i[e],n,s)}}const M={Stats:$,Cards:Y};function Y(){const t=l("Cards");if(!t)return null;const r=b("Cards",t,0,j);return(e,o,n)=>{const s=r(e,o,n);return{...s,props:{...s.props,name:"Cards section"}}}}function $(){const t=l("StatsParagraph");return t?(r,e,o)=>{const{nodes:n}=P({type:"StatsParagraph",props:{...r("StatsParagraph"),...d(),id:e("StatsParagraph")}},t,O(o)),s=n[0],p=m(s.props.content)?s.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=x(T(C(),"table")),a=p.map(h),c=u({...s,props:{...s.props,content:[...a,i]}},r,e);return{...c,props:{...c.props,name:"Stats section"}}}:null}function h(t){if(t.props?.name==="Words"){const r=m(t.props.content)?t.props.content.map(H):t.props.content;return{...t,props:{...t.props,widthFitPhone:"fill",content:r}}}return m(t.props?.content)?{...t,props:{...t.props,content:t.props.content.map(h)}}:t}function H(t){return t.type!=="Text"?t:{...t,props:X({...t.props,alignTablet:"left"},"text","alignTablet","left")}}const x=t=>W([t],(r,e)=>`${r}-seed-${e}`)[0];function I(t,r){if(!S(t,r))return null;const e=M[t];if(e)return e();const o=l(t);return o?b(t,o,0,E[t]??G[t]):null}function V(t){return(r,e,o)=>{const n=s=>{if(s.type==="Stats"){const a=u(x(T([],"list")),r,e);return{...a,props:{...a.props,name:"Numbers"}}}let p=!1;const i={};for(const[a,c]of Object.entries(s.props))if(m(c)){const f=c.map(n);p||=f.some((y,g)=>y!==c[g]),i[a]=f}else i[a]=c;return p?{type:s.type,props:i}:s};return n(t(r,e,o))}}function ot(t,r=_){const e=R(t);return e?V(e):I(t,r)}function nt(){return[...Object.keys(k),...D.filter(t=>S(t)),...Object.keys(E).filter(t=>S(t))]}export{E as MERGE_LAYOUTS,D as TEXT_LAYOUTS,b as conversionPreset,ot as layoutPresetFor,nt as layoutTypes};
@@ -3,5 +3,6 @@ export type BlockAlign = "left" | "center" | "right";
3
3
  export declare const BLOCK_ALIGN_JUSTIFY: Record<BlockAlign, string>;
4
4
  export type AlignKind = "text" | "place" | "justify" | "items";
5
5
  export declare function blockAlignOf(value: unknown): BlockAlign | undefined;
6
+ export declare function legacyBlockAlignOf(value: unknown): BlockAlign | undefined;
6
7
  export declare function alignViewAnswers(desktop: unknown, tablet: unknown, phone: unknown): ViewOverrides<BlockAlign>;
7
8
  export declare function alignViewClasses(kind: AlignKind, desktop: unknown, tablet: unknown, phone: unknown): string;
@@ -1 +1 @@
1
- import{viewOverrides as n}from"./view-overrides.js";const v={left:"justify-start",center:"justify-center",right:"justify-end"},o={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},w={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function r(e){return e==="left"||e==="center"||e==="right"?e:void 0}function m(e,a,s){const i=r(e)??"left",t=n("same",i,r(a),r(s)),l={};return t.tablet&&t.tablet!==i&&(l.tablet=t.tablet),t.phone&&t.phone!==i&&(l.phone=t.phone),l}function f(e,a,s,i){const t=m(a,s,i);return[t.tablet?o[e][t.tablet]:"",t.phone?w[e][t.phone]:""].filter(Boolean).join(" ")}export{v as BLOCK_ALIGN_JUSTIFY,m as alignViewAnswers,f as alignViewClasses,r as blockAlignOf};
1
+ import{viewOverrides as n}from"./view-overrides.js";const f={left:"justify-start",center:"justify-center",right:"justify-end"},o={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},w={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function a(t){return t==="left"||t==="center"||t==="right"?t:void 0}function v(t){return t==="start"?"left":t==="end"?"right":a(t)}function m(t,r,s){const i=a(t)??"left",e=n("same",i,a(r),a(s)),l={};return e.tablet&&e.tablet!==i&&(l.tablet=e.tablet),e.phone&&e.phone!==i&&(l.phone=e.phone),l}function b(t,r,s,i){const e=m(r,s,i);return[e.tablet?o[t][e.tablet]:"",e.phone?w[t][e.phone]:""].filter(Boolean).join(" ")}export{f as BLOCK_ALIGN_JUSTIFY,m as alignViewAnswers,b as alignViewClasses,a as blockAlignOf,v as legacyBlockAlignOf};
@@ -6,6 +6,7 @@ export declare const COUNT_KEY_PROP = "countKey";
6
6
  export declare const COUNTS_SOURCE = "counts";
7
7
  export declare const LOCATION_PAYMENT_METHODS_SOURCE = "location-payment-methods";
8
8
  export declare const SHOP_PAYMENT_METHODS_SOURCE = "shop-payment-methods";
9
+ export declare const DELIVERY_OPTIONS_SOURCE = "delivery-options";
9
10
  export type SourceRow = Readonly<Record<string, string>>;
10
11
  export interface SourceChoice {
11
12
  key: string;
@@ -1 +1 @@
1
- import{globalRegistry as c}from"../global-registry.js";import{nonEmptyString as a}from"../non-empty-string.js";const f="dataSource",x="dataSourceOptions",u="dataRows",E="countKey",_="counts",A="location-payment-methods",C="shop-payment-methods";function p(e){return typeof e.open=="function"}const y=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function s(){return c("efficient.block-sources",()=>({sources:new Map,revision:0}))}const m=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),b=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),l=e=>typeof e=="string"&&e.trim()!=="";function O(e){if(!e||!l(e.label))return null;if(p(e))return{label:e.label.trim(),open:e.open};const t=e.href;return l(t)?{label:e.label.trim(),href:t.trim()}:null}function d(e){if(typeof e.key!="string"||!y.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(r=>typeof r!="string"||!r))throw new Error(`The block source ${e.key} names no block it can fill.`);const t=O(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(r=>i(r)).filter(r=>r!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(m)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(b).map(r=>({...r}))}:{},...t?{edit:t}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(r=>typeof r=="string"&&r.trim()!=="").map(r=>r.trim())}:{}}}function w(e){const t=e.map(d),r=s();for(const o of t)r.sources.set(o.key,o);t.length&&(r.revision+=1)}function P(e){const t=[...s().sources.values()];return e===void 0?t:t.filter(r=>r.blocks.includes(e))}function h(e){return s().sources.get(e)??null}function v(e){return s().sources.get(e)?.choices??[]}function T(){return s().revision}function k(e){const t=e?.[f];return typeof t=="string"?t.trim():""}function i(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const[r,o]of Object.entries(e)){const n=a(o);n&&(t[r]=n)}return Object.keys(t).length?t:null}function S(e){const t=e?.[u];return Array.isArray(t)?t.map(i).filter(r=>r!==null):null}function U(e,t,r=[]){const o=S(e);if(o!==null&&(o.length||!t))return{rows:o,sample:!1};if(!t)return{rows:[],sample:!1};const n=h(k(e))?.sample;return{rows:n?.length?n:r,sample:!0}}export{x as BLOCK_SOURCE_OPTIONS_PROP,f as BLOCK_SOURCE_PROP,u as BLOCK_SOURCE_ROWS_PROP,_ as COUNTS_SOURCE,E as COUNT_KEY_PROP,A as LOCATION_PAYMENT_METHODS_SOURCE,C as SHOP_PAYMENT_METHODS_SOURCE,h as blockSourceSpec,P as blockSources,T as blockSourcesRevision,k as declaredBlockSource,p as isSourceEditAction,w as registerBlockSources,S as servedRows,v as sourceChoices,U as sourcedRows};
1
+ import{globalRegistry as c}from"../global-registry.js";import{nonEmptyString as a}from"../non-empty-string.js";const f="dataSource",x="dataSourceOptions",p="dataRows",_="countKey",g="counts",A="location-payment-methods",C="shop-payment-methods",w="delivery-options";function u(e){return typeof e.open=="function"}const y=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function s(){return c("efficient.block-sources",()=>({sources:new Map,revision:0}))}const m=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),b=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),i=e=>typeof e=="string"&&e.trim()!=="";function O(e){if(!e||!i(e.label))return null;if(u(e))return{label:e.label.trim(),open:e.open};const t=e.href;return i(t)?{label:e.label.trim(),href:t.trim()}:null}function d(e){if(typeof e.key!="string"||!y.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(r=>typeof r!="string"||!r))throw new Error(`The block source ${e.key} names no block it can fill.`);const t=O(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(r=>l(r)).filter(r=>r!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(m)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(b).map(r=>({...r}))}:{},...t?{edit:t}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(r=>typeof r=="string"&&r.trim()!=="").map(r=>r.trim())}:{}}}function P(e){const t=e.map(d),r=s();for(const o of t)r.sources.set(o.key,o);t.length&&(r.revision+=1)}function v(e){const t=[...s().sources.values()];return e===void 0?t:t.filter(r=>r.blocks.includes(e))}function h(e){return s().sources.get(e)??null}function T(e){return s().sources.get(e)?.choices??[]}function U(){return s().revision}function S(e){const t=e?.[f];return typeof t=="string"?t.trim():""}function l(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const[r,o]of Object.entries(e)){const n=a(o);n&&(t[r]=n)}return Object.keys(t).length?t:null}function k(e){const t=e?.[p];return Array.isArray(t)?t.map(l).filter(r=>r!==null):null}function N(e,t,r=[]){const o=k(e);if(o!==null&&(o.length||!t))return{rows:o,sample:!1};if(!t)return{rows:[],sample:!1};const n=h(S(e))?.sample;return{rows:n?.length?n:r,sample:!0}}export{x as BLOCK_SOURCE_OPTIONS_PROP,f as BLOCK_SOURCE_PROP,p as BLOCK_SOURCE_ROWS_PROP,g as COUNTS_SOURCE,_ as COUNT_KEY_PROP,w as DELIVERY_OPTIONS_SOURCE,A as LOCATION_PAYMENT_METHODS_SOURCE,C as SHOP_PAYMENT_METHODS_SOURCE,h as blockSourceSpec,v as blockSources,U as blockSourcesRevision,S as declaredBlockSource,u as isSourceEditAction,P as registerBlockSources,k as servedRows,T as sourceChoices,N as sourcedRows};
@@ -1,4 +1,4 @@
1
- export declare const BOX_SHAPES: ("square" | "video" | "auto" | "poster" | "tall" | "wide" | "landscape" | "portrait" | "panorama" | "story")[];
1
+ export declare const BOX_SHAPES: ("square" | "auto" | "video" | "poster" | "tall" | "wide" | "landscape" | "portrait" | "panorama" | "story")[];
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;
@@ -9,6 +9,7 @@ export declare function centredCap(maxWidth: number | string): CSSProperties;
9
9
  export declare function pageWidthStyle(fullWidth?: boolean, pageWidth?: number): CSSProperties | null;
10
10
  export declare const SITE_WIDTH_VAR = "--sf-site-width";
11
11
  export declare const SITE_WIDTH_CAP: string;
12
+ export declare const FULL_SECTION_WIDTH = "100vw";
12
13
  export declare const SITE_WIDTH_CAP_CLASS: string;
13
14
  export declare const PRE_SITE_WIDTH_CAP_CLASS: string;
14
15
  export declare function normalizeSiteWidth(v?: number | null): number;
@@ -1 +1 @@
1
- const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function M(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:r.default;return a(i)}const m="--sf-site-width",p=`var(${m},${r.default}px)`,w=`max-w-[${p}]`,b=`max-w-[${r.default}px]`;function c(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function D(t){const e=c(t);return e===r.default?{}:{[m]:`${e}px`}}const x={min:0,max:80,step:4,default:40},_="--sf-site-gutter",u={min:0,max:24,step:4},C="--sf-site-gutter-phone",A="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${_},${x.default}px)`,$=`px-[${n}]`,N=["px-10","px-[60px]"],o={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},h=[[`max-view-desktop:px-[${o.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${o.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${o.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${o.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${o.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${o.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${o.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${o.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${n}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${n})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${n})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${n})]`,"max-view-tablet:-mx-5"],[`-mx-[${n}]`,"-mx-10"],[$,"px-10"]];function U(t){return h.reduce((e,[i,S])=>e.split(i).join(S),t)}const L="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))]",f="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function W(t){const e=f.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return t.split(` ${e}`).join("").split(` ${f}`).join("")}const k="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 l(t){return typeof t!="number"||!Number.isFinite(t)?x.default:Math.round(Math.min(Math.max(t,x.min),x.max))}function B(t){const e=l(t);return e===x.default?{}:{[_]:`${e}px`}}function E(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,u.min),u.max))}function V(t){return typeof t=="number"&&Number.isFinite(t)?c(t):null}function y(t){const e=E(t);return e===null?{}:{[C]:`${e}px`}}function F(t){return E(t)===null?"":A}function z(t){return Math.min(u.max,l(t))}function H(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function j(t=0){return`max-w-[${H(t).replace(/ /g,"_")}]`}const T=p,K=`max-w-[${T}]`,X=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,d="--sf-hero-cap",I=`var(${d},none)`,q=`max-w-[${I}]`,O="--sf-hero-bleed-m",P="--sf-hero-bleed-w",v="--sf-hero-chrome-x",G="--sf-hero-chrome-cap";function J(t){return t===!0?{[d]:T,[O]:"auto",[P]:"100%",[v]:"24px",[G]:"none"}:{}}const s=`calc(${p} - ${n}*2)`,Q=`max-w-[${s.replace(/ /g,"_")}]`,Y=w;function Z(t){return t!==!1?null:a(R)}const g="--sf-chrome-cap",R=`var(${g},${s})`,tt="data-page-width";function et(t){return t==="full"?"full":null}function nt(t){return t==="full"?null:a(t==="content"?s:R)}function rt(t){if(t==="full")return"full";if(t==="content")return"content"}export{f as BOX_HOLDS_NO_GUTTER_CLASS,R as CHROME_CAP_READ,g as CHROME_CAP_VAR,s as CHROME_WIDTH_CAP,Q as CHROME_WIDTH_CAP_CLASS,k as EDITORIAL_COLUMN,I as HERO_BACKGROUND_CAP,q as HERO_BACKGROUND_CAP_CLASS,d as HERO_BACKGROUND_VAR,O as HERO_BLEED_MARGIN_VAR,P as HERO_BLEED_WIDTH_VAR,T as HERO_CAP,K as HERO_CAP_CLASS,G as HERO_CHROME_CAP_VAR,v as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,tt as PAGE_WIDTH_ATTR,Y as PRE_CHROME_WIDTH_CAP_CLASS,X as PRE_HERO_CAP_CLASS,N as PRE_SITE_GUTTER_CLASSES,b as PRE_SITE_WIDTH_CAP_CLASS,L as SITE_COLUMN,x as SITE_GUTTER,n as SITE_GUTTER_CAP,$ as SITE_GUTTER_CLASS,o as SITE_GUTTER_NARROW,u as SITE_GUTTER_PHONE,A as SITE_GUTTER_PHONE_CLASS,C as SITE_GUTTER_PHONE_VAR,h as SITE_GUTTER_SUBSTITUTIONS,_ as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,w as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,U as asMainGutters,a as centredCap,nt as chromeWidthStyle,J as heroBackgroundTokens,V as normalizeSectionContentMax,l as normalizeSiteGutter,E as normalizeSiteGutterPhone,c as normalizeSiteWidth,et as pageWidthMarker,M as pageWidthStyle,rt as resolveChromeWidth,F as siteGutterPhoneClass,z as siteGutterPhoneFollows,y as siteGutterPhoneTokens,B as siteGutterTokens,H as siteHalfColumnCap,j as siteHalfColumnCapClass,Z as siteWidthCapStyle,D as siteWidthTokens,W as withoutBoxHoldsNoGutter};
1
+ const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function M(t,e){if(t!==!1)return null;const i=typeof e=="number"?e:r.default;return a(i)}const m="--sf-site-width",p=`var(${m},${r.default}px)`,b="100vw",w=`max-w-[${p}]`,D=`max-w-[${r.default}px]`;function c(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function L(t){const e=c(t);return e===r.default?{}:{[m]:`${e}px`}}const x={min:0,max:80,step:4,default:40},_="--sf-site-gutter",s={min:0,max:24,step:4},C="--sf-site-gutter-phone",A="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",n=`var(${_},${x.default}px)`,$=`px-[${n}]`,N=["px-10","px-[60px]"],o={md:`min(24px,${n})`,sm:`min(20px,${n})`,frame:`min(24px,${n})`,tabs:`min(16px,${n})`},h=[[`max-view-desktop:px-[${o.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${o.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${o.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${o.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${o.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${o.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${o.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${o.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${n}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${n})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${n})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${n})]`,"max-view-tablet:-mx-5"],[`-mx-[${n}]`,"-mx-10"],[$,"px-10"]];function U(t){return h.reduce((e,[i,R])=>e.split(i).join(R),t)}const W="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))]",f="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function k(t){const e=f.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return t.split(` ${e}`).join("").split(` ${f}`).join("")}const B="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 l(t){return typeof t!="number"||!Number.isFinite(t)?x.default:Math.round(Math.min(Math.max(t,x.min),x.max))}function V(t){const e=l(t);return e===x.default?{}:{[_]:`${e}px`}}function E(t){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,s.min),s.max))}function y(t){return typeof t=="number"&&Number.isFinite(t)?c(t):null}function F(t){const e=E(t);return e===null?{}:{[C]:`${e}px`}}function z(t){return E(t)===null?"":A}function j(t){return Math.min(s.max,l(t))}function H(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function K(t=0){return`max-w-[${H(t).replace(/ /g,"_")}]`}const T=p,X=`max-w-[${T}]`,q=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,d="--sf-hero-cap",I=`var(${d},none)`,J=`max-w-[${I}]`,O="--sf-hero-bleed-m",v="--sf-hero-bleed-w",P="--sf-hero-chrome-x",G="--sf-hero-chrome-cap";function Q(t){return t===!0?{[d]:T,[O]:"auto",[v]:"100%",[P]:"24px",[G]:"none"}:{}}const u=`calc(${p} - ${n}*2)`,Y=`max-w-[${u.replace(/ /g,"_")}]`,Z=w;function tt(t){return t!==!1?null:a(S)}const g="--sf-chrome-cap",S=`var(${g},${u})`,et="data-page-width";function nt(t){return t==="full"?"full":null}function rt(t){return t==="full"?null:a(t==="content"?u:S)}function ot(t){if(t==="full")return"full";if(t==="content")return"content"}export{f as BOX_HOLDS_NO_GUTTER_CLASS,S as CHROME_CAP_READ,g as CHROME_CAP_VAR,u as CHROME_WIDTH_CAP,Y as CHROME_WIDTH_CAP_CLASS,B as EDITORIAL_COLUMN,b as FULL_SECTION_WIDTH,I as HERO_BACKGROUND_CAP,J as HERO_BACKGROUND_CAP_CLASS,d as HERO_BACKGROUND_VAR,O as HERO_BLEED_MARGIN_VAR,v as HERO_BLEED_WIDTH_VAR,T as HERO_CAP,X as HERO_CAP_CLASS,G as HERO_CHROME_CAP_VAR,P as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,et as PAGE_WIDTH_ATTR,Z as PRE_CHROME_WIDTH_CAP_CLASS,q as PRE_HERO_CAP_CLASS,N as PRE_SITE_GUTTER_CLASSES,D as PRE_SITE_WIDTH_CAP_CLASS,W as SITE_COLUMN,x as SITE_GUTTER,n as SITE_GUTTER_CAP,$ as SITE_GUTTER_CLASS,o as SITE_GUTTER_NARROW,s as SITE_GUTTER_PHONE,A as SITE_GUTTER_PHONE_CLASS,C as SITE_GUTTER_PHONE_VAR,h as SITE_GUTTER_SUBSTITUTIONS,_ as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,w as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,U as asMainGutters,a as centredCap,rt as chromeWidthStyle,Q as heroBackgroundTokens,y as normalizeSectionContentMax,l as normalizeSiteGutter,E as normalizeSiteGutterPhone,c as normalizeSiteWidth,nt as pageWidthMarker,M as pageWidthStyle,ot as resolveChromeWidth,z as siteGutterPhoneClass,j as siteGutterPhoneFollows,F as siteGutterPhoneTokens,V as siteGutterTokens,H as siteHalfColumnCap,K as siteHalfColumnCapClass,tt as siteWidthCapStyle,L as siteWidthTokens,k as withoutBoxHoldsNoGutter};
@@ -0,0 +1,17 @@
1
+ import { type BlockSeed } from "../../../seed-parts.js";
2
+ import { type CardsCardFields } from "./card-seed.js";
3
+ type Props = Record<string, unknown>;
4
+ export declare const CARDS_CELL: Props;
5
+ export declare const cardsGridLook: (columns: number) => Props;
6
+ export declare const cardBadgeSeed: (style?: Props) => BlockSeed;
7
+ export declare const cardListCardSeed: (fields?: CardsCardFields) => BlockSeed;
8
+ export declare const DELIVERY_CARD_FIELDS: {
9
+ readonly name: "name";
10
+ readonly time: "time";
11
+ readonly note: "note";
12
+ readonly price: "price";
13
+ };
14
+ export declare const deliveryGridLook: (columns: number) => Props;
15
+ export declare const GRID_LOOK_KEYS: readonly string[];
16
+ export declare const deliveryCardSeed: () => BlockSeed;
17
+ export {};
@@ -0,0 +1 @@
1
+ import{CARD_PLACE_PROP as l}from"../../../../content/card-place.js";import{CARD_BADGE_FIELD as E}from"../../../../content/card-state.js";import{BOX_TYPE as s,CONTAINER_BLOCKS_SLOT as n}from"../../../container-blocks.js";import{DIM as p,INNER_BOX as a,LABEL_FACE as _,TEXT as i,boxPadding as g,fillSlot as c,token as o}from"../../../seed-parts.js";import{TYPED_CARD_FIELDS as L,cardsCardSeed as m,rowFieldTextSeed as r}from"./card-seed.js";const D={sectionBorder:{top:0,right:1,bottom:1,left:0},...c("background")},O={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},R=t=>({direction:"row",columns:t,columnsTablet:t,...O}),d=(t={})=>r(E,{...i,tag:"p",[l]:"top-line"},t,!0),Y=(t=L)=>{const e=m(t);return{...e,props:{...D,...e.props},slots:{[n]:[...e.slots?.[n]??[],d()]}}},h={name:"name",time:"time",note:"note",price:"price"},S={textStyle:"body-1",...o("body",16),weight:500,lineHeight:1.5},I={..._,...o("label",12),letterSpacing:.18,lineHeight:1.5},b={textStyle:"body-1",...o("body",14),lineHeight:1.6},f={textStyle:"body-1",fontRole:"heading",...o("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},C={...o("label",11),letterSpacing:.25},y={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},x=t=>({direction:"row",columns:t,...y}),u=[...new Set([...Object.keys(R(1)),...Object.keys(x(1))])],K=()=>{const t=h,e={tag:"p",widthFit:"fill"};return{type:s,props:{...a,name:"Card",justify:"between",gap:16,gapPhone:16,...g(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...c("surface"),shadow:!0},slots:{[n]:[d(C),{type:s,props:{...a,name:"Words",gap:8,gapPhone:8},slots:{[n]:[r(t.name,{...i,...e},S),r(t.time,{...p,...e},I),r(t.note,{...p,...e},b)]}},r(t.price,{...i,...e},f)]}}};export{D as CARDS_CELL,h as DELIVERY_CARD_FIELDS,u as GRID_LOOK_KEYS,d as cardBadgeSeed,Y as cardListCardSeed,R as cardsGridLook,K as deliveryCardSeed,x as deliveryGridLook};
@@ -4,7 +4,18 @@ type Node = {
4
4
  props: Props;
5
5
  };
6
6
  export type MakeNode = (type: string, props?: Props) => Node;
7
+ export type ConvertFooterBlock = (node: Node, make: MakeNode) => Node[] | null;
7
8
  export declare const FOOTER_TEXT_PX: Record<"sm" | "md" | "lg", number>;
8
- export declare function pageBlocksFromFooterBlock(node: Node, make: MakeNode): Node[];
9
- export declare function boxFooterFromFooter(footer: Node | null, make: MakeNode, groupId: string): Node;
9
+ export declare const FOOTER_MARK_SIZES: {
10
+ readonly sm: {
11
+ readonly mark: 16;
12
+ readonly words: number;
13
+ };
14
+ readonly md: {
15
+ readonly mark: 20;
16
+ readonly words: number;
17
+ };
18
+ };
19
+ export declare function pageBlocksFromFooterBlock(node: Node, make: MakeNode, convert?: ConvertFooterBlock): Node[];
20
+ export declare function boxFooterFromFooter(footer: Node | null, make: MakeNode, groupId: string, convert?: ConvertFooterBlock): Node;
10
21
  export {};
@@ -1 +1 @@
1
- import{FOOTER_LOGO_PX as O}from"../logo/logo-size.js";import{resolveContainerGap as E}from"../content/container-gap.js";import{NESTED_BOX_PADDING as d}from"../content/box-layout.js";import{finiteNumber as p}from"../finite-number.js";import{isNodeList as _}from"efficient-easel/data";import{hiddenKeyOf as y}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as P}from"../content/card-template.js";import{buildSectionGroup as L,SITE_FOOTER_TYPE as x}from"./section-groups.js";const u="Flex",A={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock",FooterPayment:"PaymentLogosBlock"},b=e=>{const{id:o,...t}=e;return t},g=e=>typeof e=="string"?e:"",f={sm:12,md:13,lg:15},B="md",m=1.5,w={size:13,lineHeight:m,width:280},G=14,I=40,S=e=>e==="center"||e==="right"?e:"left";function N(e){const o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[r,n]of t){const i=p(e[r]);i&&(o[n]=i)}return o}function D(e,o,t){const r=t(e,b(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:h(o.template,String(r.props.id))}};if(o.template!==void 0)return r;const n=P(e,r.props);return n===r.props?r:{...r,props:n}}function h(e,o,t={at:0}){return e.map(r=>{const n={...r.props,id:`${o}~t${t.at++}`};for(const[i,s]of Object.entries(n))_(s)&&(n[i]=h(s,o,t));return{...r,props:n}})}function F(e,o){const t=e.props??{},r=A[e.type];if(r)return[D(r,t,o)];switch(e.type){case"FooterLogo":{const n=S(t.align),i=o("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(O*((p(t.widthPct)??100)/100)),href:"/",align:n,...N(t)}),s=g(t.tagline).trim();return s?[i,o("Text",{text:s,tone:"dim",align:n,_partStyles:{text:{...w}}})]:[i]}case"FooterText":{const n=typeof t.size=="string"&&t.size in f?t.size:B;return[o("Text",{text:g(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:f[n],lineHeight:m}}})]}case"FooterDivider":{const n=p(t.thickness),i=p(t.lengthPct);return[o("Divider",{...n!==void 0?{thickness:n}:{},...i!==void 0?{lengthPct:i}:{},...t.hideOnMobile===!0?{[y("mobile")]:!0}:{}})]}case"FooterGroup":{const n=Array.isArray(t.blocks)?t.blocks:[];return[o(u,{direction:t.direction==="horizontal"?"row":"column",gap:E("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...d,content:n.flatMap(i=>F(i,o))})]}default:return[]}}function U(e,o,t){const r=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=c=>o(u,{direction:"row",wrap:!0,share:"equal",gap:I,content:c}),i=[];let s=[];for(const c of r){const l=F(c,o);if(c.type==="FooterDivider"){s.length&&i.push(n(s)),s=[],i.push(...l);continue}l.length<=1?s.push(...l):s.push(o(u,{direction:"column",gap:G,align:"stretch",...d,content:l}))}(s.length||!i.length)&&i.push(n(s));const T=o(u,{direction:"column",content:[o("LegalLineBlock")]}),a=L(x,t,[...i,T]);return{...a,props:{...a.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}export{f as FOOTER_TEXT_PX,U as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
1
+ import{FOOTER_LOGO_PX as O}from"../logo/logo-size.js";import{resolveContainerGap as _}from"../content/container-gap.js";import{NESTED_BOX_PADDING as m}from"../content/box-layout.js";import{finiteNumber as a}from"../finite-number.js";import{isNodeList as y}from"efficient-easel/data";import{hiddenKeyOf as P}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as L}from"../content/card-template.js";import{buildSectionGroup as x,SITE_FOOTER_TYPE as A}from"./section-groups.js";const d="Flex",S={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},w={FooterPayment:"PaymentLogosBlock"},I=o=>{const{id:e,...s}=o;return s},h=o=>typeof o=="string"?o:"",g={sm:12,md:13,lg:15},W={sm:{mark:16,words:g.sm},md:{mark:20,words:g.md}},b="md",E=1.5,B={size:13,lineHeight:E,width:280},N=14,G=40,R=o=>o==="center"||o==="right"?o:"left";function D(o){const e={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=a(o[t]);c&&(e[i]=c)}return e}function k(o,e,s){const t=s(o,I(e));if(Array.isArray(e.template))return{...t,props:{...t.props,template:T(e.template,String(t.props.id))}};if(e.template!==void 0)return t;const i=L(o,t.props);return i===t.props?t:{...t,props:i}}function T(o,e,s={at:0}){return o.map(t=>{const i={...t.props,id:`${e}~t${s.at++}`};for(const[c,r]of Object.entries(i))y(r)&&(i[c]=T(r,e,s));return{...t,props:i}})}function F(o,e,s){const t=o.props??{},i=s?.(o,e);if(i)return i;const c=S[o.type]??w[o.type];if(c)return[k(c,t,e)];switch(o.type){case"FooterLogo":{const r=R(t.align),n=e("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(O*((a(t.widthPct)??100)/100)),href:"/",align:r,...D(t)}),p=h(t.tagline).trim();return p?[n,e("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...B}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&t.size in g?t.size:b;return[e("Text",{text:h(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:g[r],lineHeight:E}}})]}case"FooterDivider":{const r=a(t.thickness),n=a(t.lengthPct);return[e("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[P("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[e(d,{direction:t.direction==="horizontal"?"row":"column",gap:_("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...m,content:r.flatMap(n=>F(n,e,s))})]}default:return[]}}function Y(o,e,s,t){const i=o&&Array.isArray(o.props?.blocks)?o.props.blocks:[],c=l=>e(d,{direction:"row",wrap:!0,share:"equal",gap:G,content:l}),r=[];let n=[];for(const l of i){const u=F(l,e,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...u);continue}u.length<=1?n.push(...u):n.push(e(d,{direction:"column",gap:N,align:"stretch",...m,content:u}))}(n.length||!r.length)&&r.push(c(n));const p=e(d,{direction:"column",content:[e("LegalLineBlock")]}),f=x(A,s,[...r,p]);return{...f,props:{...f.props,...o?.props?.width==="full"?{fullWidth:!0}:{}}}}export{W as FOOTER_MARK_SIZES,g as FOOTER_TEXT_PX,Y as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
@@ -0,0 +1,21 @@
1
+ import { type Data, type DataConfig } from "efficient-easel/data";
2
+ type Props = Record<string, unknown>;
3
+ export declare function cardFollowsContentSwitch(props: Props, last: Props | null | undefined): Props;
4
+ export declare function cardsGridFollowsContent(box: Props, before: Props | null | undefined): Props;
5
+ export interface CardSwitchStore {
6
+ getState: () => {
7
+ appState: {
8
+ data: Data;
9
+ };
10
+ };
11
+ subscribe: (listener: () => void) => () => void;
12
+ dispatch: (action: {
13
+ type: "setData";
14
+ data: (prev: Data) => Data;
15
+ recordHistory: false;
16
+ }) => void;
17
+ readonly config: DataConfig;
18
+ readonly loaded: Data;
19
+ }
20
+ export declare function followCardContentSwitches(easel: CardSwitchStore): () => void;
21
+ export {};
@@ -0,0 +1 @@
1
+ import{DELIVERY_OPTIONS_SOURCE as T,declaredBlockSource as f}from"../content/block-sources.js";import{nonEmptyString as R}from"../non-empty-string.js";import{CARD_LIST_TYPE as w,CARD_TEMPLATE_SLOT as d}from"../content/card-template.js";import{find as I,walk as g}from"efficient-easel/data";import{BOX_TYPE as K,CONTAINER_BLOCKS_SLOT as F}from"./container-blocks.js";import{seedNodes as E}from"./seed-parts.js";import{SERVED_CARD_FIELDS as _,TYPED_CARD_FIELDS as C}from"./blocks/general/Cards/card-seed.js";import{GRID_LOOK_KEYS as A,cardListCardSeed as l,cardsGridLook as L,deliveryCardSeed as D,deliveryGridLook as h}from"./blocks/general/Cards/card-list-seed.js";import{finiteNumber as P}from"../finite-number.js";function p(r){return Array.isArray(r)?r.map(p):!r||typeof r!="object"?r:Object.fromEntries(Object.entries(r).filter(([n,t])=>n!=="id"&&t!==void 0&&!(Array.isArray(t)&&t.length===0)).sort(([n],[t])=>n<t?-1:n>t?1:0).map(([n,t])=>[n,p(t)]))}const Y=()=>"",a=r=>JSON.stringify(p(E([r],Y)));let y=null;function S(r){if(!Array.isArray(r)||r.length!==1)return null;y??={press:new Set([a(l(C)),a(l(_))]),delivery:a(D())};const n=JSON.stringify(p(r));return y.press.has(n)?"press":n===y.delivery?"delivery":null}const G=r=>f(r)===T?"delivery":"press";function X(r,n){if(!n||f(r)===f(n))return r;const t=S(r[d]),o=G(r);if(!t||t===o)return r;const i=R(r.id)??w,e=o==="delivery"?D():l(f(r)?_:C),s=E([e],(c,O)=>O==="0"?`${i}~card`:`${i}~card.${O.slice(2)}`);return{...r,[d]:s}}const k=(r,n)=>A.every(t=>JSON.stringify(r[t])===JSON.stringify(n[t]));function N(r,n){const t={...r};for(const o of A)delete t[o];return{...t,...structuredClone(n)}}function m(r){const n=r?.[F];if(!Array.isArray(n)||n.length!==1)return null;const t=n[0];return t?.type===w&&t.props?t:null}function J(r,n){const t=m(r),o=m(n);if(!t?.props||!o?.props||o.props.id!==t.props.id||f(t.props)===f(o.props))return r;const i=S(t.props[d]);if(!i||i===S(o.props[d]))return r;const e=P(r.columns);return e===void 0?r:i==="delivery"&&k(r,L(e))?N(r,h(e)):i==="press"&&k(r,h(e))?N(r,L(e)):r}function q(r){const n=u.get(r);n?n.count+=1:u.set(r,{count:1,stop:j(r)});let t=!1;return()=>{const o=u.get(r);t||!o||(t=!0,o.count-=1,!(o.count>0)&&(o.stop(),u.delete(r)))}}const u=new WeakMap;function j(r){let n=r.getState().appState.data;return r.subscribe(()=>{const t=r.getState().appState.data;if(t===n)return;const o=n;if(n=t,t===r.loaded)return;const i=new Map;g(t,r.config,e=>{if(e.type!==K||!m(e.props))return;const s=I(o,r.config,e.props.id);if(!s||s.node===e)return;const c=J(e.props,s.node.props);c!==e.props&&i.set(e.props.id,c)}),i.size&&r.dispatch({type:"setData",recordHistory:!1,data:e=>g(e,r.config,s=>{const c=i.get(s.props.id);return c?{...s,props:{...c,id:s.props.id}}:void 0})})})}export{X as cardFollowsContentSwitch,J as cardsGridFollowsContent,q as followCardContentSwitches};
@@ -1 +1 @@
1
- import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",L="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],i=[...c,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],S=l.map(e=>e.type),O=1,b=l.filter(e=>e.type!=="HeroGroup");function u(e){return e<O?l:b}const C={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:u}};function T(e,r=0){const t=C[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{L as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,S as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,T as containerBlocksFor};
1
+ import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",L="Flex",s="Text & media",i="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],y=[...c,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),u=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:i})),r=[...y,...u],l=[...c,{type:"HeroGroup",label:n}],S=l.map(e=>e.type),E=1,O=l.filter(e=>e.type!=="HeroGroup");function b(e){return e<E?l:O}const C={Flex:{slot:o,choices:()=>r},Grid:{slot:o,choices:()=>r},HeroGroup:{slot:o,choices:b}};function T(e,a=0){const t=C[e];return t?{slot:t.slot,choices:t.choices(a)}:null}export{L as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,r as CONTAINER_BLOCK_CHOICES,S as HERO_GROUP_BLOCK_TYPES,E as HERO_GROUP_NEST_DEPTH,T as containerBlocksFor};
@@ -20,15 +20,7 @@ WHAT REPLACES IT: a Cards section with Card style set to Label only. It draws th
20
20
 
21
21
  WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
22
22
 
23
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`,DeliveryOptions:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
24
-
25
- WHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's \`delivery-options\` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.
26
-
27
- WHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.
28
-
29
- NO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (\`scripts/test-section-to-box.tsx\` §5).
30
-
31
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.`,Series:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
23
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`,DeliveryOptions:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` §5).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming.",Series:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
32
24
 
33
25
  WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
34
26
 
@@ -62,4 +54,4 @@ WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a pres
62
54
 
63
55
  NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
64
56
 
65
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`,PaymentBadges:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},u=["Grid","Spacer","TyreFitment"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),T=a("commerce"),w=a("service"),d="Flex",s="Box",E=`${s}es`;function c(e){return e==="section"?"Blank section":s}function S(e,t,n){return e===d?c(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,E as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,d as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,w as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,S as labelAtLevel,c as labelForFlex};
57
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`,PaymentBadges:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},u=["Grid","Spacer","TyreFitment"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function s(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=s("general"),T=s("commerce"),w=s("service"),d="Flex",a="Box",E=`${a}es`;function c(e){return e==="section"?"Blank section":a}function S(e,t,n){return e===d?c(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,a as BOX_LABEL,E as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,d as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,w as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,s as blocksInSet,p as buildBlockCategories,S as labelAtLevel,c as labelForFlex};
@@ -1,9 +1,11 @@
1
+ import type { FillColorSlot } from "efficient-shell/markup";
1
2
  type Props = Record<string, unknown>;
2
3
  export declare const TEXT: Props;
3
4
  export declare const DIM: Props;
4
5
  export declare const BOX: Props;
5
6
  export declare const INNER_BOX: Props;
6
7
  export declare const boxPadding: (y: number, x?: number, yPhone?: number, xPhone?: number) => Props;
8
+ export declare const fillSlot: (slot: FillColorSlot) => Props;
7
9
  export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
8
10
  export declare const LABEL_FACE: Readonly<Props>;
9
11
  export declare const labelLook: (px: number, pxPhone?: number) => Props;
@@ -1 +1 @@
1
- import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as g}from"./blocks/general/Text/meta.js";const{text:B,tag:L,...l}=g.defaultProps,x=l,T={...x,tone:"dim"},P={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...P,direction:"column",...a},A=(t,o=t,n=t,e=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:n,sectionPaddingRightPhone:e,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:e}),f=(t,o,n,e)=>({sizeToken:{step:t,px:o,...e?{stepPhone:e}:{},...n?{pxPhone:n}:{}}}),i={case:"upper"},m={textStyle:"body-5",...i},u=(t,o)=>({...f("label",t,o),letterSpacing:.2,...i}),N=(t,o)=>({...m,...u(t,o)});function E(t,o,n=""){return t.map((e,s)=>{const r=n?`${n}.${s}`:String(s),c={...e.props??{}};for(const[p,d]of Object.entries(e.slots??{}))c[p]=E(d,o,r);return{type:e.type,props:{...c,id:o(e.type,r)}}})}export{P as BOX,T as DIM,_ as INNER_BOX,m as LABEL_FACE,x as TEXT,A as boxPadding,u as labelLook,N as labelStyle,E as seedNodes,f as token};
1
+ import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as l}from"./blocks/general/Text/meta.js";const{text:B,tag:L,...g}=l.defaultProps,x=g,T={...x,tone:"dim"},f={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...f,direction:"column",...a},A=(t,o=t,n=t,e=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:n,sectionPaddingRightPhone:e,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:e}),N=t=>({fillColor:t}),P=(t,o,n,e)=>({sizeToken:{step:t,px:o,...e?{stepPhone:e}:{},...n?{pxPhone:n}:{}}}),c={case:"upper"},m={textStyle:"body-5",...c},S=(t,o)=>({...P("label",t,o),letterSpacing:.2,...c}),k=(t,o)=>({...m,...S(t,o)});function u(t,o,n=""){return t.map((e,r)=>{const s=n?`${n}.${r}`:String(r),i={...e.props??{}};for(const[p,d]of Object.entries(e.slots??{}))i[p]=u(d,o,s);return{type:e.type,props:{...i,id:o(e.type,s)}}})}export{f as BOX,T as DIM,_ as INNER_BOX,m as LABEL_FACE,x as TEXT,A as boxPadding,N as fillSlot,S as labelLook,k as labelStyle,u as seedNodes,P as token};
@@ -732,6 +732,7 @@ export declare const WEB_BUILDER_WORDS: {
732
732
  readonly Map: "Map";
733
733
  readonly "Map & Theme": "Map & Theme";
734
734
  readonly "Map theme": "Map theme";
735
+ readonly Marks: "Marks";
735
736
  readonly Marquee: "Marquee";
736
737
  readonly "Match / done (green)": "Match / done (green)";
737
738
  readonly Media: "Media";