efficient-web-builder 59.1.0 → 59.2.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 (55) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/editor/components/HoverEffectField.js +1 -1
  3. package/dist/editor/lib/animation/fields.js +1 -1
  4. package/dist/editor/lib/animation/hover-fields.d.ts +10 -1
  5. package/dist/editor/lib/animation/hover-fields.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  8. package/dist/editor/lib/document/box-side-space-field.d.ts +11 -0
  9. package/dist/editor/lib/document/box-side-space-field.js +1 -0
  10. package/dist/format/lib/animation/hover.d.ts +8 -0
  11. package/dist/format/lib/animation/hover.js +1 -1
  12. package/dist/format/lib/content/box-side-space.d.ts +13 -0
  13. package/dist/format/lib/content/box-side-space.js +1 -0
  14. package/dist/format/lib/content/page-width.d.ts +2 -0
  15. package/dist/format/lib/content/page-width.js +1 -1
  16. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +1 -0
  17. package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -1
  18. package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +9 -0
  19. package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -1
  20. package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +1 -0
  21. package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -1
  22. package/dist/format/lib/document/card-content-switch.d.ts +1 -0
  23. package/dist/format/lib/document/card-content-switch.js +1 -1
  24. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  25. package/dist/format/lib/document/section-catalog.d.ts +1 -0
  26. package/dist/format/lib/document/section-catalog.js +4 -4
  27. package/dist/format/lib/document/seed-parts.d.ts +1 -0
  28. package/dist/format/lib/document/seed-parts.js +1 -1
  29. package/dist/format/lib/editor-words-catalogue.d.ts +3 -0
  30. package/dist/format/lib/editor-words-catalogue.js +2 -2
  31. package/dist/format/lib/source-rules/one-section-edge-inset.d.ts +6 -0
  32. package/dist/format/lib/source-rules/one-section-edge-inset.js +2 -0
  33. package/dist/format/lib/source-rules/one-site-column.js +3 -3
  34. package/dist/render/components/BlockFrame.d.ts +2 -0
  35. package/dist/render/components/BlockFrame.js +1 -1
  36. package/dist/render/components/Flex.d.ts +5 -2
  37. package/dist/render/components/Flex.js +1 -1
  38. package/dist/render/components/SiteGutterFrame.d.ts +2 -1
  39. package/dist/render/components/SiteGutterFrame.js +1 -1
  40. package/dist/render/lib/content/box-stack-line.d.ts +3 -1
  41. package/dist/render/lib/content/box-stack-line.js +1 -1
  42. package/dist/render/lib/content/section-edge.d.ts +5 -0
  43. package/dist/render/lib/content/section-edge.js +1 -1
  44. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  45. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  46. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
  47. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  48. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
  49. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  50. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  51. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +3 -1
  52. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  53. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  54. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
  55. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 59.2.0 - 2026-11-08
4
+
5
+ From main at `c14a6f97`: #620, #621, #622, #623. A minor: no `!` in any title, no declared export is removed (22 exports added in #621, vs npm 59.1.0), 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.2.0`. ContactRouting moves to `sectionEdgeBandAttrs` (#623), and `sectionEdgeBeyondAttrs` is `@deprecated` (delete it in the next major).
9
+ - The stored Key Features node still draws through `components/KeyFeatures.tsx` until its move; the delete date is `KEY_FEATURES_DELETE_BY` (2026-12-04) (#621).
10
+
11
+ ### Added
12
+
13
+ - **A Box takes a Side space choice, Box or Site** (#620): a new Design row. Box (unset) is the same frame as before; Site (`sideSpace: "site"`) leaves the site column's side space, read from the site's own token.
14
+ - **Label only is a card template of real parts** (#621): a card Box with a Mark Box (the diamond) and a label Text, on the Box structure. A stored Label only node with no template gets it on read. The old drawing branch in the Cards block is removed.
15
+ - **A stored Q&A converts to the Box path in its own look** (#622): the conversion writes `sideSpace: "site"`, and a node with its own run style is held by name. No data moves and `SECTION_TO_BOX_ON` stays empty.
16
+ - **A band reaches the section edge and pads back** (#623): new `sectionEdgeBandAttrs`, `oneSectionEdgeInset` and `OneSectionEdgeInsetOptions`. `sectionEdgeBeyondAttrs` is deprecated.
17
+
3
18
  ## 59.1.0 - 2026-11-08
4
19
 
5
20
  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.
@@ -1 +1 @@
1
- "use client";import{jsx as t}from"react/jsx-runtime";import{SettingsDefaultReset as c,SettingsField as E,SettingsSegmented as d}from"efficient-easel/panel";import{HoverIcon as p}from"efficient-easel/icons";import{HOVER_KIND_LABELS as s}from"../../format/lib/animation/hover.js";import{say as e,editorEaselWords as h}from"../../format/lib/editor-words.js";import{HOVER_EFFECTS as m,DEFAULT_HOVER_EFFECT as f}from"../../format/lib/theme.js";const o={none:s.none,lift:s.lift,highlight:"Highlight"},H="What a card does when a shopper points at it — or taps it, on a phone. Highlight is the effect your cards already use.";function g({value:i,onChange:n}){const r=i===null,a=i??f;return t(E,{label:e("Hover effect"),icon:t(p,{}),value:e(o[a]),changed:!r,action:t(c,{words:h()?.panel,label:e("Hover effect"),changed:!r,detail:e(o[f]),onReset:()=>n(null)}),hint:e(H),children:t(d,{options:m.map(l=>({id:l,label:e(o[l])})),value:a,ariaLabel:e("Hover effect"),onChange:n})})}export{o as HOVER_EFFECT_LABELS,g as default};
1
+ "use client";import{jsx as t}from"react/jsx-runtime";import{SettingsDefaultReset as c,SettingsField as E,SettingsSegmented as d}from"efficient-easel/panel";import{HoverIcon as p}from"efficient-easel/icons";import{HIGHLIGHT_LABEL as H,HOVER_KIND_LABELS as s}from"../../format/lib/animation/hover.js";import{say as e,editorEaselWords as m}from"../../format/lib/editor-words.js";import{HOVER_EFFECTS as h,DEFAULT_HOVER_EFFECT as f}from"../../format/lib/theme.js";const o={none:s.none,lift:s.lift,highlight:H},u="What a card does when a shopper points at it — or taps it, on a phone. Highlight is the effect your cards already use.";function F({value:i,onChange:n}){const r=i===null,a=i??f;return t(E,{label:e("Hover effect"),icon:t(p,{}),value:e(o[a]),changed:!r,action:t(c,{words:m()?.panel,label:e("Hover effect"),changed:!r,detail:e(o[f]),onReset:()=>n(null)}),hint:e(u),children:t(d,{options:h.map(l=>({id:l,label:e(o[l])})),value:a,ariaLabel:e("Hover effect"),onChange:n})})}export{o as HOVER_EFFECT_LABELS,F as default};
@@ -1 +1 @@
1
- import{loopDelayField as i,loopDurationField as n}from"./AnimationDurationRow.js";import{entranceFields as e}from"./entrance-fields.js";import{cardHoverResting as s,pictureHoverResting as c}from"../../../format/lib/animation/hover.js";import{cardHoverFields as a,hoverFields as p,pictureHoverFields as t}from"./hover-fields.js";import{customize as l}from"efficient-easel/screen/lib/document/box-fields";import{loopDirectionField as u,loopFields as m,loopHeading as d}from"./loop-fields.js";import{truthy as F,withRowsShownWhen as f}from"../../../format/lib/document/show-when-attach.js";function g(){const o=t("none");return f(o,Object.keys(o),F("bgImage"))}function R(o,r=""){switch(o){case"section":case"block":return e();case"box":return{...e(),...m(),...g()};case"picture":return{...e(),...t(c(r),r)};case"textPart":return{...e(),...p()};case"cards":return{...e(),...a(s(r))};case"marquee":return{...e(),_gLoop:d(),_cLoop:l(),scrollDirection:u(),loopDuration:n({readsSpeed:!0}),loopDelay:i()}}}export{R as animationTabFields};
1
+ import{loopDelayField as c,loopDurationField as a}from"./AnimationDurationRow.js";import{entranceFields as o}from"./entrance-fields.js";import{HOVER_GROUP_KEY as l,HOVER_KEY as p,cardHoverResting as m,pictureHoverResting as u}from"../../../format/lib/animation/hover.js";import{boxHoverFields as d,cardHoverFields as f,hoverFields as F,pictureHoverFields as H}from"./hover-fields.js";import{ON_A_CARD as g}from"../document/card-display-chips.js";import{customize as b}from"efficient-easel/screen/lib/document/box-fields";import{loopDirectionField as h,loopFields as v,loopHeading as D}from"./loop-fields.js";import{truthy as t,withRowsShownWhen as i}from"../../../format/lib/document/show-when-attach.js";function R(){const r=d(),e=[l,p],n=i(r,Object.keys(r).filter(s=>!e.includes(s)),t("bgImage"));return i(n,e,{any:[t("bgImage"),g]})}function I(r,e=""){switch(r){case"section":case"block":return o();case"box":return{...o(),...v(),...R()};case"picture":return{...o(),...H(u(e),e)};case"textPart":return{...o(),...F()};case"cards":return{...o(),...f(m(e))};case"marquee":return{...o(),_gLoop:D(),_cLoop:b(),scrollDirection:h(),loopDuration:a({readsSpeed:!0}),loopDelay:c()}}}export{I as animationTabFields};
@@ -1,4 +1,6 @@
1
- import { type CardHover, type PictureHover } from "../../../format/lib/animation/hover.js";
1
+ import type { ReactElement } from "react";
2
+ import type { ShowWhenRule } from "../../../render/lib/document/show-when.js";
3
+ import { type BoxHover, type CardHover, type PictureHover } from "../../../format/lib/animation/hover.js";
2
4
  export declare function hoverFields(): Record<string, unknown>;
3
5
  export declare function cardHoverFields(resting: CardHover): Record<string, unknown>;
4
6
  export declare function pictureHoverFields(resting: PictureHover, blockKey?: string): Record<string, unknown>;
@@ -7,3 +9,10 @@ export declare function offerNextPicture<Fields extends Record<string, unknown>>
7
9
  }, params: {
8
10
  appState?: unknown;
9
11
  }): Fields;
12
+ export declare const BOX_HIGHLIGHT_ROW: {
13
+ description: string;
14
+ type: "custom";
15
+ render: (props: import("efficient-easel/screen/lib/document/box-fields").BoxFieldRenderProps<BoxHover | undefined>) => ReactElement;
16
+ showWhen?: ShowWhenRule;
17
+ };
18
+ export declare function boxHoverFields(): Record<string, unknown>;
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{ContrastIcon as K,NoSymbolIcon as P,HoverLiftIcon as g,HoverNextImageIcon as y,HoverRotateIcon as A,HoverZoomIcon as H,OpacityIcon as U}from"efficient-easel/icons";import{customize as F,describedAs as b,group as W}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as z}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as n}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as B,noControlField as L}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as c}from"../../../format/lib/content/box-background.js";import{cardTemplateField as M,cardTemplateOwner as Y,namedRowField as X}from"../../../format/lib/content/card-template.js";import{angleRow as j,slider as v}from"../document/box-fields.js";import{say as I}from"../../../format/lib/editor-words.js";import{withShowWhen as a}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as O,animationDurationField as w,showsWhatRuns as h}from"./AnimationDurationRow.js";import{CARD_HOVER_KEYS as s,CARD_HOVER_KINDS as Z,CARD_HOVER_TURN as G,HOVER_KEY as m,HOVER_KIND_LABELS as T,NEXT_PICTURE_BLOCKS as q,NEXT_PICTURE_HOVER_KINDS as J,OLD_SPIN_KEY as Q,PART_HOVER_KINDS as N,PICTURE_HOVER_KEYS as k,PICTURE_HOVER_KINDS as $,PICTURE_HOVER_ZOOM as l,cardHoverAngleOf as oo,cardHoverKindOf as eo,cardRotatesRule as to,HOVER_GROUP_KEY as R,pictureHoverKindOf as ro,pictureHoverMovesRule as no,pictureHoverRunsRule as io}from"../../../format/lib/animation/hover.js";const f=o=>n("desktop",W("Hover",{dot:o})),C=()=>n("desktop",F()),so="What this does when a shopper points at it, or taps it on a phone.",ao="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",po="What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.",co="What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",lo={none:()=>i(P,{}),nextImage:()=>i(y,{}),rotate:()=>i(A,{}),zoom:()=>i(H,{}),lift:()=>i(g,{}),mono:()=>i(K,{})};function _(o,e){const r=z({label:I("Hover effect"),options:o.map(t=>({value:t,label:I(T[t]),picture:lo[t]()})),fallback:e});return b(r,{type:"select",label:"Hover effect",options:o.map(t=>({value:t,label:T[t]}))})}function ko(){return{[R]:f({field:m,in:N.filter(o=>o!=="none")}),[m]:n("desktop",{..._(N,"none"),description:so})}}function Co(o){const e=to(o),r=j(G);return{[R]:f(e),[s.kind]:n("desktop",{...h(_(Z,o),(t,p)=>eo(p??{},o)),description:co}),[Q]:L({type:"custom",render:()=>i(B,{})},"always"),_cHover:C(),[s.angle]:n("desktop",a(h(r,t=>oo(t)),e)),[s.duration]:n("desktop",a(w("hover"),e)),[s.delay]:n("desktop",a(O("hover"),e))}}function xo(o,e=""){const r=io(o);return{[R]:f(r),[s.kind]:x($,o,ao),_cHover:C(),...q.includes(e)?mo():{},[s.duration]:n("desktop",a(w("hover"),r)),[s.delay]:n("desktop",a(O("hover"),r))}}function mo(){const o=no(),e=v("Zoom",i(H,{}),l.min,l.max,l.step,l.min,l.unit),r=v("Darken on hover",i(U,{}),c.min,c.max,c.step,c.fallback,c.unit);return{[k.zoom]:n("desktop",a(e,o)),[k.darken]:n("desktop",a(r,o))}}function x(o,e,r){const t=n("desktop",{...h(_(o,e),p=>ro({[m]:p},e,o)),description:r});return Object.assign(t,{[S]:e})}const S="sfPictureResting",V=new WeakMap;function So(o,e,r){const t=o[s.kind],p=t?.[S];if(!t||!p)return o;const E=e.props?.[m]==="nextImage",u=E?null:Y(r.appState,e.props?.id),D=u?M(String(u.type),X(e.props),u):null;if(!E&&!D?.next)return o;let d=V.get(o);return d||(d={...o,[s.kind]:x(J,p,po)},V.set(o,d)),d}export{Co as cardHoverFields,ko as hoverFields,So as offerNextPicture,xo as pictureHoverFields};
1
+ import{jsx as s}from"react/jsx-runtime";import{AccentIcon as U,ContrastIcon as F,NoSymbolIcon as I,HoverLiftIcon as X,HoverNextImageIcon as L,HoverRotateIcon as W,HoverZoomIcon as O,OpacityIcon as G}from"efficient-easel/icons";import{customize as z,describedAs as v,group as M}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as w}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as Y,noControlField as j}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as p}from"../../../format/lib/content/box-background.js";import{cardTemplateField as Z,cardTemplateOwner as q,namedRowField as J}from"../../../format/lib/content/card-template.js";import{angleRow as Q,slider as T}from"../document/box-fields.js";import{say as d}from"../../../format/lib/editor-words.js";import{withShowWhen as a}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as N,animationDurationField as x,showsWhatRuns as _}from"./AnimationDurationRow.js";import{BOX_HIGHLIGHT as V,BOX_HOVER_KINDS as k,BOX_HOVER_LABELS as C,CARD_HOVER_KEYS as i,CARD_HOVER_KINDS as $,CARD_HOVER_TURN as oo,HOVER_KEY as l,HOVER_KIND_LABELS as S,NEXT_PICTURE_BLOCKS as eo,NEXT_PICTURE_HOVER_KINDS as to,OLD_SPIN_KEY as no,PART_HOVER_KINDS as D,PICTURE_HOVER_KEYS as K,PICTURE_HOVER_KINDS as ro,PICTURE_HOVER_ZOOM as u,cardHoverAngleOf as so,cardHoverKindOf as io,cardRotatesRule as ao,HOVER_GROUP_KEY as m,pictureHoverKindOf as co,pictureHoverMovesRule as po,pictureHoverRunsRule as b}from"../../../format/lib/animation/hover.js";const f=o=>r("desktop",M("Hover",{dot:o})),P=()=>r("desktop",z()),lo="What this does when a shopper points at it, or taps it on a phone.",uo="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",ho="What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.",mo="What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",fo={none:()=>s(I,{}),nextImage:()=>s(L,{}),rotate:()=>s(W,{}),zoom:()=>s(O,{}),lift:()=>s(X,{}),mono:()=>s(F,{})};function H(o,e){const n=w({label:d("Hover effect"),options:o.map(t=>({value:t,label:d(S[t]),picture:fo[t]()})),fallback:e});return v(n,{type:"select",label:"Hover effect",options:o.map(t=>({value:t,label:S[t]}))})}function bo(){return{[m]:f({field:l,in:D.filter(o=>o!=="none")}),[l]:r("desktop",{...H(D,"none"),description:lo})}}function Po(o){const e=ao(o),n=Q(oo);return{[m]:f(e),[i.kind]:r("desktop",{..._(H($,o),(t,c)=>io(c??{},o)),description:mo}),[no]:j({type:"custom",render:()=>s(Y,{})},"always"),_cHover:P(),[i.angle]:r("desktop",a(_(n,t=>so(t)),e)),[i.duration]:r("desktop",a(x("hover"),e)),[i.delay]:r("desktop",a(N("hover"),e))}}function Ro(o,e=""){const n=b(o);return{[m]:f(n),[i.kind]:g(ro,o,uo),_cHover:P(),...eo.includes(e)?_o():{},[i.duration]:r("desktop",a(x("hover"),n)),[i.delay]:r("desktop",a(N("hover"),n))}}function _o(){const o=po(),e=T("Zoom",s(O,{}),u.min,u.max,u.step,u.min,u.unit),n=T("Darken on hover",s(G,{}),p.min,p.max,p.step,p.fallback,p.unit);return{[K.zoom]:r("desktop",a(e,o)),[K.darken]:r("desktop",a(n,o))}}function g(o,e,n){const t=r("desktop",{..._(H(o,e),c=>co({[l]:c},e,o)),description:n});return Object.assign(t,{[y]:e})}const y="sfPictureResting",A=new WeakMap;function go(o,e,n){const t=o[i.kind],c=t?.[y];if(!t||!c)return o;const E=e.props?.[l]==="nextImage",R=E?null:q(n.appState,e.props?.id),B=R?Z(String(R.type),J(e.props),R):null;if(!E&&!B?.next)return o;let h=A.get(o);return h||(h={...o,[i.kind]:g(to,c,ho)},A.set(o,h)),h}const Ho="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",Eo={none:()=>s(I,{}),[V]:()=>s(U,{})},yo=r("desktop",{...v(w({label:d("Hover effect"),options:k.map(o=>({value:o,label:d(C[o]),picture:Eo[o]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:k.map(o=>({value:o,label:C[o]}))}),description:Ho});function Ao(){const o={any:[b("none"),{field:l,is:V}]};return{...Ro("none"),[m]:f(o)}}export{yo as BOX_HIGHLIGHT_ROW,Ao as boxHoverFields,Po as cardHoverFields,bo as hoverFields,go as offerNextPicture,Ro as pictureHoverFields};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import{AccentIcon as C,ColumnsIcon as f,StylesIcon as c}from"efficient-easel/icons";import{copyText as S,plainText as w,text as d,textarea as E,withOffPage as F}from"../../../controls.js";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as L,select as m,slider as I}from"../../../box-fields.js";import{CARD_STYLE_PICTURES as p,LAYOUT_CELL as _}from"../../../choice-pictures.js";import{SPLITTABLE_SECTIONS as O,headFieldsForPlacement as T}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as k,eyebrowLookFor as h}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as P,blockSourceEditField as R,blockSourceField as x,blockSourceFields as M}from"../../../block-source-fields.js";import{cardTemplateFields as u}from"../../../../../../format/lib/content/card-template.js";import{cardRowItemField as y}from"../../../card-row-fields.js";import{cardPicks as j,newCard as v,pickRow as A,withOwnCardKeys as B}from"../../../../../../format/lib/document/card-row-keys.js";import{isNodeList as D}from"efficient-easel/data";import{cardsFieldsFollowContent as H}from"../../../../../../format/lib/document/cards-template-on-read.js";import{CARDS_PH as b,CardsSlots as N}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const K=e=>D(e.template)&&e.template.length>0;function U(e,t){const o=K(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([r,l])=>r==="highlightedCard"?o?[[r,A(l,j(t))]]:[]:r==="highlightBadge"?o?[[r,l]]:[]:r==="items"&&o&&l?[[r,q(l)]]:[[r,l]]))}const Y=Object.fromEntries(u("Cards").filter(e=>!e.everySource).map(e=>[e.key,y(e)])),W=Object.fromEntries(u("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,y(e)])),g=new WeakMap;function q(e){let t=g.get(e);return t||g.set(e,t={...e,arrayFields:Y}),t}const ae={fields:{_gSource:i("Source"),dataSource:x("Card content","Manual"),[P]:R(),_gContent:i("Content"),eyebrow:d("Eyebrow",b.eyebrow),eyebrowLook:m("Eyebrow style",s(c,{}),[...k],h("Cards")),title:E("Heading",b.title),items:{type:"array",label:"Cards",arrayFields:W,defaultItemProps:v({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...N,highlightedCard:m("Highlighted card",s(C,{}),[{label:"None",value:""}],""),highlightBadge:d("Highlight badge","Most popular"),_gStyle:i("Style"),cardStyle:L("Card style",s(c,{}),[{label:"Cards",value:"cards",picture:p.cards},{label:"Label only",value:"label-only",picture:p["label-only"]}],"cards",{columns:2,cell:_}),columns:I("Columns",s(f,{}),2,4,1,3)},resolveData:e=>{const t=H(e.props),o=t===e.props?e:{...e,props:t},r=o.props,l=B(r);return l===r?o:{...o,props:l}},resolveFields:(e,{fields:t})=>{const o=T(M("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,O.Cards.headRows),r=e.props,l=U(o,r);if(r.cardStyle!=="label-only")return l;const a=o.items,n=o.eyebrowLook;return{...l,...a?{items:{...a,arrayFields:{title:S("Feature label"),href:F(w("Link"))}}}:{},...n?{eyebrowLook:{...n,fallback:h("KeyFeatures")}}:{}}}};export{ae as CardsFields};
1
+ import{jsx as i}from"react/jsx-runtime";import{AccentIcon as g,ColumnsIcon as S,StylesIcon as d}from"efficient-easel/icons";import{copyText as w,plainText as E,text as m,textarea as F,withOffPage as L}from"../../../controls.js";import{group as n}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,select as p,slider as _}from"../../../box-fields.js";import{CARD_STYLE_PICTURES as y,LAYOUT_CELL as O}from"../../../choice-pictures.js";import{SPLITTABLE_SECTIONS as T,headFieldsForPlacement as k}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as P,eyebrowLookFor as h}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as R,blockSourceEditField as x,blockSourceField as D,blockSourceFields as M}from"../../../block-source-fields.js";import{cardTemplateFields as u}from"../../../../../../format/lib/content/card-template.js";import{cardRowItemField as b}from"../../../card-row-fields.js";import{cardPicks as j,newCard as v,pickRow as A,withOwnCardKeys as B}from"../../../../../../format/lib/document/card-row-keys.js";import{isNodeList as H}from"efficient-easel/data";import{cardsFieldsFollowContent as N}from"../../../../../../format/lib/document/cards-template-on-read.js";import{cardsFollowCardStyle as K}from"../../../../../../format/lib/document/card-content-switch.js";import{CARDS_PH as C,CardsSlots as U}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const Y=e=>H(e.template)&&e.template.length>0;function W(e,o){const l=Y(o)&&o.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,r])=>t==="highlightedCard"?l?[[t,A(r,j(o))]]:[]:t==="highlightBadge"?l?[[t,r]]:[]:t==="items"&&l&&r?[[t,G(r)]]:[[t,r]]))}const q=Object.fromEntries(u("Cards").filter(e=>!e.everySource).map(e=>[e.key,b(e)])),z=Object.fromEntries(u("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,b(e)])),f=new WeakMap;function G(e){let o=f.get(e);return o||f.set(e,o={...e,arrayFields:q}),o}const de={fields:{_gSource:n("Source"),dataSource:D("Card content","Manual"),[R]:x(),_gContent:n("Content"),eyebrow:m("Eyebrow",C.eyebrow),eyebrowLook:p("Eyebrow style",i(d,{}),[...P],h("Cards")),title:F("Heading",C.title),items:{type:"array",label:"Cards",arrayFields:z,defaultItemProps:v({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...U,highlightedCard:p("Highlighted card",i(g,{}),[{label:"None",value:""}],""),highlightBadge:m("Highlight badge","Most popular"),_gStyle:n("Style"),cardStyle:I("Card style",i(d,{}),[{label:"Cards",value:"cards",picture:y.cards},{label:"Label only",value:"label-only",picture:y["label-only"]}],"cards",{columns:2,cell:O}),columns:_("Columns",i(S,{}),2,4,1,3)},resolveData:(e,o)=>{const l=o?.lastData?.props,t=K(e.props,l),r=N(t),s=r===e.props?e:{...e,props:r},a=s.props,c=B(a);return c===a?s:{...s,props:c}},resolveFields:(e,{fields:o})=>{const l=k(M("Cards",o,e.props,{hides:["items"]}),e.props.headPlacement,T.Cards.headRows),t=e.props,r=W(l,t);if(t.cardStyle!=="label-only")return r;const s=l.items,a=l.eyebrowLook;return{...r,...s?{items:{...s,arrayFields:{title:w("Feature label"),href:L(E("Link"))}}}:{},...a?{eyebrowLook:{...a,fallback:h("KeyFeatures")}}:{}}}};export{de as CardsFields};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as C,BOX_SWATCH_PROP as Ro,isBackgroundBox as uo}from"../../../../../../format/lib/content/box-background.js";import{CARD_ROW_FACTS as Ao,cardRowField as Co,cardRowFields as wo}from"../../../card-row-fields.js";import{darkenFields as To}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as Eo,REEL_SHAPE_LABELS as No}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as x,CARD_LIST_STYLE_PICTURES as go,TAB_SHAPE_PICTURES as Do}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as u,CARD_STYLE_POINTS as Lo,applyCardStyle as Io,isCardStyle as bo}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as l}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as Fo,ClockIcon as Po,CropIcon as y,GapIcon as ko,MediaLayoutStackedIcon as Ho,LineBetweenIcon as xo,LineSolidIcon as yo,ListIcon as Wo,NumberedListIcon as W,ShadowIcon as Bo,StylesIcon as B,TableIcon as M,TargetIcon as Mo,WrapIcon as U}from"efficient-easel/icons";import{boxBlockSpacingField as Uo,boxFillField as Ko,boxColumnsFields as Xo,boxShareField as Yo,boxSharePhoneField as jo,boxShareTabletField as vo,containerDirectionField as Go,containerGapRows as Vo,linkField as Jo,plainText as zo,swapPadding as K,toggle as c,upload as X,withPanelOnly as qo}from"../../../controls.js";import{BOX_STACK_LINE as Y,BOX_STACK_RANGE as T,STACK_BELOW_PROP as j}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as v,boxShapeOf as Qo}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as Zo}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as G}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as V}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as $o,ACCORDION_PHONE_COLUMN_COUNTS as oe,BOX_COLUMNS_MAX as E,BOX_COLUMNS_MIN as N,boxPhoneRowOneLine as ee,boxWrapWordOf as J}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as z}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as q,VIEW_KEY_ACCESS as s,group as m,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as ne,boxAlignField as te,boxJustifyField as re,boxWrapField as w,iconPickerRow as g,placementField as ie,select as D,sidesPaddingFields as Q,slider as ae}from"../../../box-fields.js";import{withRowRules as le}from"../../../../../../render/lib/document/show-when.js";import{separatorField as se}from"../../../separator-field.js";import{LOOP_SCROLLS as de}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as ce,TICKER_JOIN_OPTIONS as pe}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as _e}from"../../../../../../format/lib/document/passes/document-position.js";import{accordionOnSet as Se}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Oe,ACCORDION_ROW_STYLE_PROP as L}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as Z}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as me,CONTAINER_BLOCKS_SLOT as fe}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as he}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Re,ON_A_CARD as ue,cardDisplayField as I}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Ae,MIRROR_CARDS_MIRRORS as Ce,mirrorCardsField as we}from"../../../mirror-cards-field.js";import{handedRowOf as $}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Te,showForField as Ee,showForFields as Ne}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as f,SHARED_COLUMNS_LABEL as oo,SHARED_COLUMNS_OFF as eo,sharedColumnsDrawn as no,sharedColumnsFits as to,SHARED_COLUMNS_PHONE_POINTS as ge,SHARED_COLUMNS_POINTS as De,sharedRowsDrawn as Le}from"../../../../../../render/lib/content/box-shared-columns.js";const b={field:"bgImage",set:!0},ro={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Ie={field:"direction",is:"tabs"},be={field:"line",in:[!0,!1]},Fe={field:"anchor",set:!0},F=["fixed","screen"],Pe={not:{any:[{field:"sectionHeightMode",in:F},{field:"sectionHeightModeTablet",in:F},{field:"sectionHeightModePhone",in:F}]}},ke={context:"parent.line",is:!0},p={not:{field:"direction",is:"accordion"}},io={field:"direction",is:"accordion"},ao={any:[p,{not:{field:L,is:"numbered"}},{field:"columns",in:[...$o]},{field:"phoneRow",in:[...oe]}]},lo="notAccordionRow",He={not:{context:lo,is:!0}},xe={[lo]:(o,e)=>e.parent?.props?.direction!=="accordion"},P={field:"direction",is:"row",default:"row"},_={not:de},S={all:[P,_,{not:{field:"separator",in:z.map(o=>o.value)}},{not:{field:"line",is:!0}}]},so={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:E},(e,n)=>n+N)}}))]},ye={all:[_,{not:{all:[P,{field:"separator",in:z.map(o=>o.value)}]}}]},k={not:{all:[S,{field:"columns",in:Array.from({length:E},(o,e)=>e+N)}]}},We="sharedColumnsFits",co="sharedColumnsMisfit",po="sharedColumnsDraws",_o="sharedColumnsPhoneDraws",Be={[We]:o=>to(o.props??{}),[co]:o=>!to(o.props??{}),[po]:o=>no(o.props??{}).desktop,[_o]:o=>no(o.props??{}).phone};function So(o){return{all:[{not:{context:co,is:!0}},{any:[ue,{field:o,set:!0}]}]}}const O={not:{context:po,is:!0}},h={not:{context:_o,is:!0}},Oo="sharedRowsDraws",Me={[Oo]:(o,e)=>Le(o.props??{})&&$(e.appState,o.props?.id)?.row===void 0},A={not:{context:Oo,is:!0}},Ue={any:[O,h]},H={not:b},Ke={not:{context:Ce,is:!0}},mo="rowHanded",Xe={not:{context:mo,is:!0}},Ye={[mo]:(o,e)=>{const n=$(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},fo={all:[p,H,O,h,Ke]},je={field:"direction",is:"row"},ve={field:"align",in:["start","center","end"]},Ge={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function Ve(){const{darken:o,darkenStyle:e}=To();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const ho={not:{all:[S,{field:i("columns"),in:Array.from({length:E},(o,e)=>e+N)}]}};function Je(){const o=c(q,!1,t(U,{})),e=n=>{const a=J(n);return a===void 0?void 0:a==="wrap"};return{...w(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:a=>n.onChange(a===void 0?void 0:a?"wrap":"nowrap")})}}function ze(){const o=c(q,!0,t(U,{})),e=n=>{const a=J(n);return a===void 0?void 0:a==="wrap"};return{...w(),render:n=>{const a=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!ee(void 0,a?n.follows:void 0),followsNoView:!a,onChange:R=>n.onChange(R===void 0?void 0:R?"wrap":"nowrap")})}}}const kn={fields:le({_gContent:m("Content"),rowTitle:Z.rowTitle,content:Z.content,_gCardDisplay:m("Display"),cardDisplay:I("desktop"),cardDisplayTablet:I("tablet"),cardDisplayPhone:I("mobile"),showFor:Ee(),_gLayout:m("Layout"),direction:Go("Flex"),tabShape:g("Tab shape",t(B,{}),Eo.map(o=>({label:No[o],value:o,picture:Do[o]})),"tabs",{columns:2,cell:x}),mirrorCards:we(),[j]:l("desktop",ae("Stacks below",t(Ho,{}),T.min,T.max,T.step,Y,"px",{clear:{hint:Y},hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),startsOpen:l("desktop",c("Starts open",!1,t(Fo,{}))),[L]:l("desktop",g("Row style",t(W,{}),Oe.map(o=>({...o,picture:o.value==="numbered"?t(W,{}):t(Wo,{})})),"plain",{columns:2})),label:qo(zo("Tab name")),...Vo("Flex"),...d("justify",re(),s),...d("align",te(),s),...(()=>{const o=d("wrap",w(),s,{phoneRow:ze()}),e=d("wrap",w(),s,{phoneRow:Je()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:he(),...d("boxShape",V("Box shape",t(y,{}),G(v),"shape","auto"),s,{phoneRow:V("Box shape",t(y,{}),G(v),"shape","auto",{phoneRest:o=>Qo(o)})}),[Zo]:l("desktop",ne(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:se(t(xo,{size:18}),"none"),[u]:l("desktop",g("Card style",t(B,{}),Lo.map(o=>({...o,picture:go[o.value]})),"table",{columns:2,cell:x})),share:l("desktop",Yo()),[i("share")]:vo(),[r("share")]:jo(),[f]:l("desktop",D(oo,t(M,{}),[...De],eo)),[r(f)]:l("mobile",D(oo,t(M,{}),[...ge],eo)),...Xo(),...d("blockSpacing",Uo(),s),line:c("Line",!1,t(yo,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(Po,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:D("Join",t(ko,{}),pe,ce),_gShadow:m("Shadow"),...d("shadow",c("Shadow",!1,t(Bo,{})),s),...d("fillColor",Ko(),s),[Ro]:Co("Fill content","colour"),_gBackground:m("Background image"),bgImage:l("desktop",X("Image","image/*")),bgImagePhone:l("mobile",X("Image","image/*")),...Ve(),placement:ie("Content position"),_gLink:m("Link"),link:Jo("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,t(Mo,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],b],[[r("share")],{all:[ro,h]}],[[f],So(f)],[[r(f)],So(r(f))],[[r("wrap")],{all:[ro,_,h,A]}],[[r("order")],{all:[S,h,O]}],[["phoneRow"],h],[[L],io],[["tabShape"],Ie],[["rowTitle","startsOpen"],He],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],p],[[i("justify"),r("justify")],{all:[_,fo,A]}],[[i("align"),r("align")],{all:[je,ve,fo]}],[[i("wrap")],{all:[_,k,ho,O,p,A]}],[[i("shadow"),r("shadow")],H],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[b,Ge]}],[["separator"],P],[[u],{field:u,set:!0}],[["columns"],{any:[S,io]}],[[i("columns")],S],[[j],{all:[S,H,ho,{not:{all:[so,{field:i("share"),set:!0}]}}]}],[[i("gap")],{all:[ye,ao]}],[["gap",r("gap")],ao],[["justify"],{all:[_,Ue,p,A]}],[["wrap"],{all:[_,k,O,p,A]}],[["share"],{all:[k,O,p]}],[[i("share")],{all:[so,O]}],[["line"],be],[["upcoming"],ke],[["jumpHighlight"],Fe],[["boxShape",i("boxShape"),r("boxShape")],Pe],[["direction","share",r("order")],Xe],[["join"],_e]]),resolveData:(o,e)=>{const n=o.props,a=n[u];return e.changed?.[u]===!0&&bo(a)?{...o,props:Io(n,a,me,fe)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:Se(n)}:o},resolveFields:(o,e)=>Ne(qe(o,{...e,fields:wo(e.fields,o,e)}),o.props),showWhenFacts:{...Ao,...Re,...Ae,...Ye,...Be,...Me,...Te,...xe}};function qe(...[o,{fields:e}]){{const n=o.props;if(uo(n.bgImage)){const R=Q({fallback:{top:C.desktop,bottom:C.desktop,left:C.side,right:C.side},tablet:!0});return K(e,R)}return o.props.padV2!==!0?K(e,Q({fallback:{top:24,bottom:24},tablet:!0})):e}}export{kn as FlexFields};
1
+ import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as C,BOX_SWATCH_PROP as To,isBackgroundBox as W}from"../../../../../../format/lib/content/box-background.js";import{CARD_ROW_FACTS as No,cardRowField as x,cardRowFields as go}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Do}from"../../../../../../format/lib/content/card-template.js";import{HOVER_KEY as B}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as Io}from"../../../../animation/hover-fields.js";import{darkenFields as Lo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as bo,REEL_SHAPE_LABELS as Po}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as y,CARD_LIST_STYLE_PICTURES as Fo,TAB_SHAPE_PICTURES as Ho}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as u,CARD_STYLE_POINTS as ko,applyCardStyle as Wo,isCardStyle as xo}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as Bo,ClockIcon as yo,CropIcon as M,GapIcon as Mo,MediaLayoutStackedIcon as Uo,LineBetweenIcon as Ko,LineSolidIcon as Xo,ListIcon as Go,NumberedListIcon as U,ShadowIcon as Yo,StylesIcon as K,TableIcon as X,TargetIcon as vo,WrapIcon as G}from"efficient-easel/icons";import{boxBlockSpacingField as jo,boxFillField as Vo,boxColumnsFields as Jo,boxShareField as zo,boxSharePhoneField as qo,boxShareTabletField as Qo,containerDirectionField as Zo,containerGapRows as $o,linkField as oe,plainText as ee,swapPadding as Y,toggle as c,upload as v,withPanelOnly as ne}from"../../../controls.js";import{BOX_STACK_LINE as j,BOX_STACK_RANGE as E,STACK_BELOW_PROP as V}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as J,boxShapeOf as te}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as re}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as z}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as q}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as ie,ACCORDION_PHONE_COLUMN_COUNTS as le,BOX_COLUMNS_MAX as T,BOX_COLUMNS_MIN as N,boxPhoneRowOneLine as ae,boxWrapWordOf as Q}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as Z}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as $,VIEW_KEY_ACCESS as s,group as O,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as se,boxAlignField as de,boxJustifyField as ce,boxWrapField as w,iconPickerRow as g,placementField as pe,select as D,sidesPaddingFields as oo,slider as _e}from"../../../box-fields.js";import{withRowRules as Se,withShowWhen as me}from"../../../../../../render/lib/document/show-when.js";import{separatorField as Oe}from"../../../separator-field.js";import{LOOP_SCROLLS as fe}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as he,TICKER_JOIN_OPTIONS as Re}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as eo}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as no}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as ue}from"../../../box-side-space-field.js";import{accordionOnSet as Ae}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Ce,ACCORDION_ROW_STYLE_PROP as I}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as to}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as we,CONTAINER_BLOCKS_SLOT as Ee}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as Te}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Ne,ON_A_CARD as ro,cardDisplayField as L}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as ge,MIRROR_CARDS_MIRRORS as De,mirrorCardsField as Ie}from"../../../mirror-cards-field.js";import{handedRowOf as io}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Le,showForField as be,showForFields as Pe}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as f,SHARED_COLUMNS_LABEL as lo,SHARED_COLUMNS_OFF as ao,sharedColumnsDrawn as so,sharedColumnsFits as co,SHARED_COLUMNS_PHONE_POINTS as Fe,SHARED_COLUMNS_POINTS as He,sharedRowsDrawn as ke}from"../../../../../../render/lib/content/box-shared-columns.js";const b={field:"bgImage",set:!0},po={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},We={field:"direction",is:"tabs"},xe={field:"line",in:[!0,!1]},Be={field:"anchor",set:!0},P=["fixed","screen"],ye={not:{any:[{field:"sectionHeightMode",in:P},{field:"sectionHeightModeTablet",in:P},{field:"sectionHeightModePhone",in:P}]}},Me={context:"parent.line",is:!0},p={not:{field:"direction",is:"accordion"}},_o={field:"direction",is:"accordion"},So={any:[p,{not:{field:I,is:"numbered"}},{field:"columns",in:[...ie]},{field:"phoneRow",in:[...le]}]},mo="notAccordionRow",Ue={not:{context:mo,is:!0}},Ke={[mo]:(o,e)=>e.parent?.props?.direction!=="accordion"},F={field:"direction",is:"row",default:"row"},_={not:fe},S={all:[F,_,{not:{field:"separator",in:Z.map(o=>o.value)}},{not:{field:"line",is:!0}}]},Oo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:T},(e,n)=>n+N)}}))]},Xe={all:[_,{not:{all:[F,{field:"separator",in:Z.map(o=>o.value)}]}}]},H={not:{all:[S,{field:"columns",in:Array.from({length:T},(o,e)=>e+N)}]}},Ge="sharedColumnsFits",fo="sharedColumnsMisfit",ho="sharedColumnsDraws",Ro="sharedColumnsPhoneDraws",Ye={[Ge]:o=>co(o.props??{}),[fo]:o=>!co(o.props??{}),[ho]:o=>so(o.props??{}).desktop,[Ro]:o=>so(o.props??{}).phone};function uo(o){return{all:[{not:{context:fo,is:!0}},{any:[ro,{field:o,set:!0}]}]}}const m={not:{context:ho,is:!0}},h={not:{context:Ro,is:!0}},Ao="sharedRowsDraws",ve={[Ao]:(o,e)=>ke(o.props??{})&&io(e.appState,o.props?.id)?.row===void 0},A={not:{context:Ao,is:!0}},je={any:[m,h]},k={not:b},Ve={not:{context:De,is:!0}},Co="rowHanded",Je={not:{context:Co,is:!0}},ze={[Co]:(o,e)=>{const n=io(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},wo={all:[p,k,m,h,Ve]},qe={field:"direction",is:"row"},Qe={field:"align",in:["start","center","end"]},Ze={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function $e(){const{darken:o,darkenStyle:e}=Lo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const Eo={not:{all:[S,{field:i("columns"),in:Array.from({length:T},(o,e)=>e+N)}]}};function on(){const o=c($,!1,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...w(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:l=>n.onChange(l===void 0?void 0:l?"wrap":"nowrap")})}}function en(){const o=c($,!0,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...w(),render:n=>{const l=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!ae(void 0,l?n.follows:void 0),followsNoView:!l,onChange:R=>n.onChange(R===void 0?void 0:R?"wrap":"nowrap")})}}}const jn={fields:Se({_gContent:O("Content"),rowTitle:to.rowTitle,content:to.content,_gCardDisplay:O("Display"),cardDisplay:L("desktop"),cardDisplayTablet:L("tablet"),cardDisplayPhone:L("mobile"),showFor:be(),_gLayout:O("Layout"),direction:Zo("Flex"),tabShape:g("Tab shape",t(K,{}),bo.map(o=>({label:Po[o],value:o,picture:Ho[o]})),"tabs",{columns:2,cell:y}),mirrorCards:Ie(),[V]:a("desktop",_e("Stacks below",t(Uo,{}),E.min,E.max,E.step,j,"px",{clear:{hint:j},hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[no]:ue(),startsOpen:a("desktop",c("Starts open",!1,t(Bo,{}))),[I]:a("desktop",g("Row style",t(U,{}),Ce.map(o=>({...o,picture:o.value==="numbered"?t(U,{}):t(Go,{})})),"plain",{columns:2})),label:ne(ee("Tab name")),...$o("Flex"),...d("justify",ce(),s),...d("align",de(),s),...(()=>{const o=d("wrap",w(),s,{phoneRow:en()}),e=d("wrap",w(),s,{phoneRow:on()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:Te(),...d("boxShape",q("Box shape",t(M,{}),z(J),"shape","auto"),s,{phoneRow:q("Box shape",t(M,{}),z(J),"shape","auto",{phoneRest:o=>te(o)})}),[re]:a("desktop",se(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:Oe(t(Ko,{size:18}),"none"),[u]:a("desktop",g("Card style",t(K,{}),ko.map(o=>({...o,picture:Fo[o.value]})),"table",{columns:2,cell:y})),share:a("desktop",zo()),[i("share")]:Qo(),[r("share")]:qo(),[f]:a("desktop",D(lo,t(X,{}),[...He],ao)),[r(f)]:a("mobile",D(lo,t(X,{}),[...Fe],ao)),...Jo(),...d("blockSpacing",jo(),s),line:c("Line",!1,t(Xo,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(yo,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:D("Join",t(Mo,{}),Re,he),_gShadow:O("Shadow"),...d("shadow",c("Shadow",!1,t(Yo,{})),s),...d("fillColor",Vo(),s),[To]:x("Fill content","colour"),_gBackground:O("Background image"),bgImage:a("desktop",v("Image","image/*")),bgImagePhone:a("mobile",v("Image","image/*")),...$e(),placement:pe("Content position"),_gLink:O("Link"),link:oe("Link to"),[Do]:x("Link from","link"),jumpHighlight:c("Highlight when a link jumps here",!1,t(vo,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],b],[[r("share")],{all:[po,h]}],[[f],uo(f)],[[r(f)],uo(r(f))],[[r("wrap")],{all:[po,_,h,A]}],[[r("order")],{all:[S,h,m]}],[["phoneRow"],h],[[I],_o],[["tabShape"],We],[["rowTitle","startsOpen"],Ue],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],p],[[i("justify"),r("justify")],{all:[_,wo,A]}],[[i("align"),r("align")],{all:[qe,Qe,wo]}],[[i("wrap")],{all:[_,H,Eo,m,p,A]}],[[i("shadow"),r("shadow")],k],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[b,Ze]}],[["separator"],F],[[u],{field:u,set:!0}],[["columns"],{any:[S,_o]}],[[i("columns")],S],[[V],{all:[S,k,Eo,{not:{all:[Oo,{field:i("share"),set:!0}]}}]}],[[i("gap")],{all:[Xe,So]}],[["gap",r("gap")],So],[["justify"],{all:[_,je,p,A]}],[["wrap"],{all:[_,H,m,p,A]}],[["share"],{all:[H,m,p]}],[[i("share")],{all:[Oo,m]}],[["line"],xe],[["upcoming"],Me],[["jumpHighlight"],Be],[["boxShape",i("boxShape"),r("boxShape")],ye],[["direction","share",r("order")],Je],[["join"],eo],[[no],eo]]),resolveData:(o,e)=>{const n=o.props,l=n[u];return e.changed?.[u]===!0&&xo(l)?{...o,props:Wo(n,l,we,Ee)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:Ae(n)}:o},resolveFields:(o,e)=>tn(Pe(rn(o,{...e,fields:go(e.fields,o,e)}),o.props),o.props),showWhenFacts:{...No,...Ne,...ge,...ze,...Ye,...ve,...Le,...Ke}},nn=me(Io,ro);function tn(o,e){const n=o;return!(B in n)||W(e.bgImage)?o:{...n,[B]:nn}}function rn(...[o,{fields:e}]){{const n=o.props;if(W(n.bgImage)){const R=oo({fallback:{top:C.desktop,bottom:C.desktop,left:C.side,right:C.side},tablet:!0});return Y(e,R)}return o.props.padV2!==!0?Y(e,oo({fallback:{top:24,bottom:24},tablet:!0})):e}}export{jn as FlexFields};
@@ -0,0 +1,11 @@
1
+ import { type ReactElement } from "react";
2
+ export declare function boxSideSpaceField(): {
3
+ render: (props: Parameters<(props: import("efficient-easel/screen/lib/document/box-fields").BoxFieldRenderProps<string>) => ReactElement>[0]) => ReactElement<{
4
+ hint?: string;
5
+ }, string | import("react").JSXElementConstructor<any>>;
6
+ type: "custom";
7
+ showWhen?: import("efficient-shell/ui").ShowWhenRule;
8
+ options: readonly import("efficient-easel/screen/lib/document/box-fields").SelectOption[];
9
+ fallback: string;
10
+ note?: string;
11
+ };
@@ -0,0 +1 @@
1
+ "use client";import{jsx as i}from"react/jsx-runtime";import{cloneElement as n}from"react";import{PaddingXIcon as m}from"efficient-easel/icons";import{deviceField as S}from"efficient-easel/screen/lib/document/device-fields";import{SIDE_SPACE_LABEL as d}from"../../components/SideSpaceField.js";import{BOX_SIDE_SPACE_DEFAULT as _,BOX_SIDE_SPACE_HINT as a,BOX_SIDE_SPACE_OPTIONS as c,boxSideSpaceOf as E,boxSideSpaceWrite as f}from"../../../format/lib/content/box-side-space.js";import{select as p}from"./box-fields.js";import{say as l}from"../../../format/lib/editor-words.js";function D(){const o=p(d,i(m,{}),c,_);return S("desktop",{...o,render:e=>{const r=o.render({...e,value:E(e.value),onChange:t=>e.onChange(f(t))});return n(r,{hint:l(a)})}})}export{D as boxSideSpaceField};
@@ -3,6 +3,14 @@ export declare const HOVER_KEY = "hover";
3
3
  export declare const HOVER_GROUP_KEY = "_gHover";
4
4
  export type { HoverKind };
5
5
  export declare const HOVER_KIND_LABELS: Readonly<Record<HoverKind, string>>;
6
+ export declare const BOX_HIGHLIGHT = "highlight";
7
+ export declare const HIGHLIGHT_LABEL = "Highlight";
8
+ export type BoxHover = "none" | typeof BOX_HIGHLIGHT;
9
+ export declare const BOX_HOVER_KINDS: readonly BoxHover[];
10
+ export declare const BOX_HOVER_LABELS: Readonly<Record<BoxHover, string>>;
11
+ export declare function boxHoverOf(record: Readonly<Record<string, unknown>>): BoxHover;
12
+ export declare const BOX_HIGHLIGHT_CLASS = "transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]";
13
+ export declare function boxHighlightStyle(record: Readonly<Record<string, unknown>>, ink: (slot: string) => string): Record<string, string> | null;
6
14
  export type PartHover = Extract<HoverKind, "none" | "lift">;
7
15
  export declare const PART_HOVER_KINDS: readonly PartHover[];
8
16
  export declare function hoverOf(record: Readonly<Record<string, unknown>>): PartHover;
@@ -1 +1 @@
1
- import{HOVER_MOTION as E,hoverKindsOf as u,motionSeconds as a}from"efficient-shell/format";import{ANGLE_RANGE as H}from"../content/box-angle.js";import{finiteNumber as s}from"../finite-number.js";const i="hover",P="_gHover",L={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},v=u(["none","lift"]);function M(n){const e=n[i];return v.includes(e)?e:"none"}const R=u(["none","rotate"]),r={kind:i,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay"},l="spinOnHover",p=H,_={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},U=Object.keys(_);function I(n){return _[n]??"none"}const N=E.rotateFallbackDeg;function g(n,e){const t=n[r.kind];if(R.includes(t))return t;const o=n[l];return typeof o=="boolean"?o?"rotate":"none":e}function h(n){const e=s(n);return e===void 0?N:Math.min(p.max,Math.max(p.min,e))}function G(n,e){const t=I(e),o=g(n,t);return{kind:o,angle:o==="rotate"?h(n[r.angle]):null,duration:a("hover","duration",o==="rotate"?n[r.duration]:void 0),delay:a("hover","delay",o==="rotate"?n[r.delay]:void 0)}}function B(n){const e={field:r.kind,in:[...R]};return{any:[{field:r.kind,is:"rotate"},{all:[{not:e},n==="rotate"?{not:{field:l,is:!1}}:{field:l,is:!0}]}]}}const O=u(["none","mono"]),S=u(["none","nextImage","mono"]),m={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Y=Object.keys(m);function k(n){return m[n]??"none"}const x={zoom:"hoverZoom",darken:"hoverDarken"},d={min:100,max:150,step:1,unit:"%"},c=["nextImage"];function D(n,e){if(!c.includes(e))return null;const t=s(n[x.zoom]);if(t===void 0)return null;const o=Math.min(d.max,Math.max(d.min,t));return o===d.min?null:String(o/100)}function V(n,e){if(!c.includes(e))return null;const t=s(n[x.darken]);return t!==void 0&&t>0?t:null}const C=["ImageBlock"];function K(n,e,t=O){const o=n[i];return t.includes(o)?o:e}function b(n,e=""){const t=C.includes(e)?S:O,o=K(n,k(e),t),f=o!=="none";return{kind:o,duration:a("hover","duration",f?n[r.duration]:void 0),delay:a("hover","delay",f?n[r.delay]:void 0),...c.includes(o)?{zoom:D(n,o),darken:V(n,o)}:{}}}function z(){return{field:i,in:[...c]}}function Z(n){return n==="none"?{field:i,in:["mono","nextImage"]}:{not:{field:i,is:"none"}}}export{p as CARD_HOVER_ANGLE,r as CARD_HOVER_KEYS,R as CARD_HOVER_KINDS,U as CARD_HOVER_SECTIONS,N as CARD_HOVER_TURN,P as HOVER_GROUP_KEY,i as HOVER_KEY,L as HOVER_KIND_LABELS,C as NEXT_PICTURE_BLOCKS,S as NEXT_PICTURE_HOVER_KINDS,l as OLD_SPIN_KEY,v as PART_HOVER_KINDS,Y as PICTURE_HOVER_BLOCKS,x as PICTURE_HOVER_KEYS,O as PICTURE_HOVER_KINDS,d as PICTURE_HOVER_ZOOM,h as cardHoverAngleOf,g as cardHoverKindOf,G as cardHoverOf,I as cardHoverResting,B as cardRotatesRule,M as hoverOf,K as pictureHoverKindOf,z as pictureHoverMovesRule,b as pictureHoverOf,k as pictureHoverResting,Z as pictureHoverRunsRule,D as pictureHoverZoomOf};
1
+ import{HOVER_MOTION as m,hoverKindsOf as a,motionSeconds as c}from"efficient-shell/format";import{ANGLE_RANGE as v}from"../content/box-angle.js";import{finiteNumber as l}from"../finite-number.js";const i="hover",b="_gHover",h={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},u="highlight",g="Highlight",M=["none",u],U={none:h.none,[u]:g};function I(n){return n[i]===u?u:"none"}const X="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]";function Y(n,e){return I(n)!==u?null:{"--sf-hl-bg":e("surface"),"--sf-hl-ink":e("main")}}const S=a(["none","lift"]);function z(n){const e=n[i];return S.includes(e)?e:"none"}const _=a(["none","rotate"]),r={kind:i,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay"},f="spinOnHover",x=v,R={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Z=Object.keys(R);function N(n){return R[n]??"none"}const k=m.rotateFallbackDeg;function V(n,e){const t=n[r.kind];if(_.includes(t))return t;const o=n[f];return typeof o=="boolean"?o?"rotate":"none":e}function D(n){const e=l(n);return e===void 0?k:Math.min(x.max,Math.max(x.min,e))}function w(n,e){const t=N(e),o=V(n,t);return{kind:o,angle:o==="rotate"?D(n[r.angle]):null,duration:c("hover","duration",o==="rotate"?n[r.duration]:void 0),delay:c("hover","delay",o==="rotate"?n[r.delay]:void 0)}}function j(n){const e={field:r.kind,in:[..._]};return{any:[{field:r.kind,is:"rotate"},{all:[{not:e},n==="rotate"?{not:{field:f,is:!1}}:{field:f,is:!0}]}]}}const O=a(["none","mono"]),C=a(["none","nextImage","mono"]),H={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},F=Object.keys(H);function L(n){return H[n]??"none"}const E={zoom:"hoverZoom",darken:"hoverDarken"},d={min:100,max:150,step:1,unit:"%"},s=["nextImage"];function T(n,e){if(!s.includes(e))return null;const t=l(n[E.zoom]);if(t===void 0)return null;const o=Math.min(d.max,Math.max(d.min,t));return o===d.min?null:String(o/100)}function A(n,e){if(!s.includes(e))return null;const t=l(n[E.darken]);return t!==void 0&&t>0?t:null}const K=["ImageBlock"];function G(n,e,t=O){const o=n[i];return t.includes(o)?o:e}function W(n,e=""){const t=K.includes(e)?C:O,o=G(n,L(e),t),p=o!=="none";return{kind:o,duration:c("hover","duration",p?n[r.duration]:void 0),delay:c("hover","delay",p?n[r.delay]:void 0),...s.includes(o)?{zoom:T(n,o),darken:A(n,o)}:{}}}function q(){return{field:i,in:[...s]}}function J(n){return n==="none"?{field:i,in:["mono","nextImage"]}:{not:{field:i,is:"none"}}}export{u as BOX_HIGHLIGHT,X as BOX_HIGHLIGHT_CLASS,M as BOX_HOVER_KINDS,U as BOX_HOVER_LABELS,x as CARD_HOVER_ANGLE,r as CARD_HOVER_KEYS,_ as CARD_HOVER_KINDS,Z as CARD_HOVER_SECTIONS,k as CARD_HOVER_TURN,g as HIGHLIGHT_LABEL,b as HOVER_GROUP_KEY,i as HOVER_KEY,h as HOVER_KIND_LABELS,K as NEXT_PICTURE_BLOCKS,C as NEXT_PICTURE_HOVER_KINDS,f as OLD_SPIN_KEY,S as PART_HOVER_KINDS,F as PICTURE_HOVER_BLOCKS,E as PICTURE_HOVER_KEYS,O as PICTURE_HOVER_KINDS,d as PICTURE_HOVER_ZOOM,Y as boxHighlightStyle,I as boxHoverOf,D as cardHoverAngleOf,V as cardHoverKindOf,w as cardHoverOf,N as cardHoverResting,j as cardRotatesRule,z as hoverOf,G as pictureHoverKindOf,q as pictureHoverMovesRule,W as pictureHoverOf,L as pictureHoverResting,J as pictureHoverRunsRule,T as pictureHoverZoomOf};
@@ -0,0 +1,13 @@
1
+ export declare const BOX_SIDE_SPACE_PROP = "sideSpace";
2
+ export declare const BOX_SIDE_SPACE_OPTIONS: readonly [{
3
+ readonly value: "box";
4
+ readonly label: "Box";
5
+ }, {
6
+ readonly value: "site";
7
+ readonly label: "Site";
8
+ }];
9
+ export type BoxSideSpace = (typeof BOX_SIDE_SPACE_OPTIONS)[number]["value"];
10
+ export declare const BOX_SIDE_SPACE_DEFAULT: BoxSideSpace;
11
+ export declare const BOX_SIDE_SPACE_HINT = "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";
12
+ export declare function boxSideSpaceOf(value: unknown): BoxSideSpace;
13
+ export declare function boxSideSpaceWrite(next: unknown): "site" | undefined;
@@ -0,0 +1 @@
1
+ const t="sideSpace",s=[{value:"box",label:"Box"},{value:"site",label:"Site"}],o="box",i="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function n(e){return e==="site"?"site":"box"}function S(e){return e==="site"?"site":void 0}export{o as BOX_SIDE_SPACE_DEFAULT,i as BOX_SIDE_SPACE_HINT,s as BOX_SIDE_SPACE_OPTIONS,t as BOX_SIDE_SPACE_PROP,n as boxSideSpaceOf,S as boxSideSpaceWrite};
@@ -39,6 +39,8 @@ export declare const SITE_GUTTER_NARROW: {
39
39
  };
40
40
  export declare const SITE_GUTTER_SUBSTITUTIONS: ReadonlyArray<readonly [string, string]>;
41
41
  export declare function asMainGutters(html: string): string;
42
+ export declare const SITE_COLUMN_NARROW = "max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
43
+ export declare const SITE_COLUMN_EDGE_NARROW = "max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]";
42
44
  export declare const SITE_COLUMN = "mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";
43
45
  export declare const BOX_HOLDS_NO_GUTTER_CLASS = "[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";
44
46
  export declare function withoutBoxHoldsNoGutter(html: string): string;
@@ -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)`,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};
1
+ const r={min:1e3,max:2e3,step:50,default:1600};function a(t){return{maxWidth:t,marginInline:"auto",width:"100%"}}function N(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}]`,L=`max-w-[${r.default}px]`;function _(t){return typeof t!="number"||!Number.isFinite(t)?r.default:Math.round(Math.min(Math.max(t,r.min),r.max))}function U(t){const e=_(t);return e===r.default?{}:{[m]:`${e}px`}}const x={min:0,max:80,step:4,default:40},c="--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(${c},${x.default}px)`,$=`px-[${n}]`,D=["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 W(t){return h.reduce((e,[i,S])=>e.split(i).join(S),t)}const I="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",k="max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",B=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${I}`,f="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";function V(t){const e=f.replace(/&/g,"&amp;").replace(/>/g,"&gt;");return t.split(` ${e}`).join("").split(` ${f}`).join("")}const y="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 F(t){const e=l(t);return e===x.default?{}:{[c]:`${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 z(t){return typeof t=="number"&&Number.isFinite(t)?_(t):null}function j(t){const e=E(t);return e===null?{}:{[C]:`${e}px`}}function K(t){return E(t)===null?"":A}function X(t){return Math.min(s.max,l(t))}function O(t=0){return`calc(${p}/2 - ${n}*2 - ${t}px)`}function q(t=0){return`max-w-[${O(t).replace(/ /g,"_")}]`}const T=p,J=`max-w-[${T}]`,Q=`max-w-[min(var(--sf-page-cap,${r.default}px),${r.default}px)]`,d="--sf-hero-cap",H=`var(${d},none)`,Y=`max-w-[${H}]`,v="--sf-hero-bleed-m",P="--sf-hero-bleed-w",g="--sf-hero-chrome-x",G="--sf-hero-chrome-cap";function Z(t){return t===!0?{[d]:T,[v]:"auto",[P]:"100%",[g]:"24px",[G]:"none"}:{}}const u=`calc(${p} - ${n}*2)`,tt=`max-w-[${u.replace(/ /g,"_")}]`,et=w;function nt(t){return t!==!1?null:a(R)}const M="--sf-chrome-cap",R=`var(${M},${u})`,rt="data-page-width";function ot(t){return t==="full"?"full":null}function xt(t){return t==="full"?null:a(t==="content"?u:R)}function pt(t){if(t==="full")return"full";if(t==="content")return"content"}export{f as BOX_HOLDS_NO_GUTTER_CLASS,R as CHROME_CAP_READ,M as CHROME_CAP_VAR,u as CHROME_WIDTH_CAP,tt as CHROME_WIDTH_CAP_CLASS,y as EDITORIAL_COLUMN,b as FULL_SECTION_WIDTH,H as HERO_BACKGROUND_CAP,Y as HERO_BACKGROUND_CAP_CLASS,d as HERO_BACKGROUND_VAR,v as HERO_BLEED_MARGIN_VAR,P as HERO_BLEED_WIDTH_VAR,T as HERO_CAP,J as HERO_CAP_CLASS,G as HERO_CHROME_CAP_VAR,g as HERO_CHROME_INSET_VAR,r as PAGE_WIDTH,rt as PAGE_WIDTH_ATTR,et as PRE_CHROME_WIDTH_CAP_CLASS,Q as PRE_HERO_CAP_CLASS,D as PRE_SITE_GUTTER_CLASSES,L as PRE_SITE_WIDTH_CAP_CLASS,B as SITE_COLUMN,k as SITE_COLUMN_EDGE_NARROW,I as SITE_COLUMN_NARROW,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,c as SITE_GUTTER_VAR,p as SITE_WIDTH_CAP,w as SITE_WIDTH_CAP_CLASS,m as SITE_WIDTH_VAR,W as asMainGutters,a as centredCap,xt as chromeWidthStyle,Z as heroBackgroundTokens,z as normalizeSectionContentMax,l as normalizeSiteGutter,E as normalizeSiteGutterPhone,_ as normalizeSiteWidth,ot as pageWidthMarker,N as pageWidthStyle,pt as resolveChromeWidth,K as siteGutterPhoneClass,X as siteGutterPhoneFollows,j as siteGutterPhoneTokens,F as siteGutterTokens,O as siteHalfColumnCap,q as siteHalfColumnCapClass,nt as siteWidthCapStyle,U as siteWidthTokens,V as withoutBoxHoldsNoGutter};
@@ -5,6 +5,7 @@ export declare const CARDS_CELL: Props;
5
5
  export declare const cardsGridLook: (columns: number) => Props;
6
6
  export declare const cardBadgeSeed: (style?: Props) => BlockSeed;
7
7
  export declare const cardListCardSeed: (fields?: CardsCardFields) => BlockSeed;
8
+ export declare const labelOnlyListCardSeed: (linked?: boolean) => BlockSeed;
8
9
  export declare const DELIVERY_CARD_FIELDS: {
9
10
  readonly name: "name";
10
11
  readonly time: "time";
@@ -1 +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};
1
+ import{CARD_PLACE_PROP as E}from"../../../../content/card-place.js";import{CARD_BADGE_FIELD as _}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 g,TEXT as i,boxPadding as L,fillSlot as d,token as o}from"../../../seed-parts.js";import{TYPED_CARD_FIELDS as m,cardsCardSeed as D,labelOnlyCardSeed as O,rowFieldTextSeed as r}from"./card-seed.js";const l={sectionBorder:{top:0,right:1,bottom:1,left:0},...d("background")},S={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},R=t=>({direction:"row",columns:t,columnsTablet:t,...S}),c=(t={})=>r(_,{...i,tag:"p",[E]:"top-line"},t,!0),u=(t=m)=>{const e=D(t);return{...e,props:{...l,...e.props},slots:{[n]:[...e.slots?.[n]??[],c()]}}},K=(t=!1)=>{const e=O(t);return{...e,props:{...l,...e.props}}},h={name:"name",time:"time",note:"note",price:"price"},b={textStyle:"body-1",...o("body",16),weight:500,lineHeight:1.5},f={...g,...o("label",12),letterSpacing:.18,lineHeight:1.5},C={textStyle:"body-1",...o("body",14),lineHeight:1.6},I={textStyle:"body-1",fontRole:"heading",...o("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},y={...o("label",11),letterSpacing:.25},x={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},A=t=>({direction:"row",columns:t,...x}),G=[...new Set([...Object.keys(R(1)),...Object.keys(A(1))])],V=()=>{const t=h,e={tag:"p",widthFit:"fill"};return{type:s,props:{...a,name:"Card",justify:"between",gap:16,gapPhone:16,...L(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...d("surface"),shadow:!0},slots:{[n]:[c(y),{type:s,props:{...a,name:"Words",gap:8,gapPhone:8},slots:{[n]:[r(t.name,{...i,...e},b),r(t.time,{...p,...e},f),r(t.note,{...p,...e},C)]}},r(t.price,{...i,...e},I)]}}};export{l as CARDS_CELL,h as DELIVERY_CARD_FIELDS,G as GRID_LOOK_KEYS,c as cardBadgeSeed,u as cardListCardSeed,R as cardsGridLook,V as deliveryCardSeed,A as deliveryGridLook,K as labelOnlyListCardSeed};
@@ -12,4 +12,13 @@ export declare const TYPED_CARD_FIELDS: CardsCardFields;
12
12
  export declare const SERVED_CARD_FIELDS: CardsCardFields;
13
13
  export declare const cardsCardSeed: (fields?: CardsCardFields) => BlockSeed;
14
14
  export declare const cardsTemplateNodes: (idOf: (type: string, at: string) => string, fields?: CardsCardFields) => SeededNode[];
15
+ export declare const LABEL_ONLY_CARD_FIELDS: {
16
+ readonly label: string;
17
+ readonly href: "href";
18
+ };
19
+ export declare const LABEL_ONLY_LABEL_LOOK: Props;
20
+ export declare const LABEL_ONLY_MARK: Props;
21
+ export declare const labelOnlyCardSeed: (linked?: boolean) => BlockSeed;
22
+ export declare const cardIdOf: (own: string) => (_type: string, at: string) => string;
23
+ export declare const labelOnlyTemplateNodes: (idOf: (type: string, at: string) => string, linked?: boolean) => SeededNode[];
15
24
  export {};
@@ -1 +1 @@
1
- import{CARD_ROW_FIELD_PROP as d}from"../../../../content/card-template.js";import{BOX_TYPE as l,CONTAINER_BLOCKS_SLOT as a}from"../../../container-blocks.js";import{DIM as s,INNER_BOX as n,TEXT as _,boxPadding as x,seedNodes as S,token as o}from"../../../seed-parts.js";import{labelTextSeed as D}from"../../../text-seeds.js";const c={...n,gap:12,gapPhone:12,...x(32,32,28,28)},m={textStyle:"heading-3",...o("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},y={textStyle:"body-1",...o("body",15),lineHeight:1.6},p=(t,e,r,i=!1)=>({type:"Text",props:{...e,text:"",[d]:t,_partStyles:{text:{...i?D()._partStyles?.text??{}:{},...r}}}}),O={title:"title",body:"body"},b={title:"name",body:"note"},R=(t=O)=>({type:l,props:{...c,name:"Card"},slots:{[a]:[p(t.title,{..._,tag:"p",widthFit:"fill"},m),p(t.body,{...s,tag:"p",widthFit:"fill"},y)]}}),h=(t,e)=>S([R(e)],t);export{y as CARDS_BODY_LOOK,c as CARDS_CARD,m as CARDS_TITLE_LOOK,b as SERVED_CARD_FIELDS,O as TYPED_CARD_FIELDS,R as cardsCardSeed,h as cardsTemplateNodes,p as rowFieldTextSeed};
1
+ import{CARD_ROW_FIELD_PROP as O,CARD_ROW_LINK_PROP as L}from"../../../../content/card-template.js";import{BOX_ANGLE_PROP as m}from"../../../../content/box-angle.js";import{BOX_HIGHLIGHT as R,HOVER_KEY as S}from"../../../../animation/hover.js";import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as l}from"../../../container-blocks.js";import{DIM as h,INNER_BOX as n,TEXT as i,boxPadding as s,markBoxProps as y,seedNodes as d,token as p}from"../../../seed-parts.js";import{labelTextSeed as g}from"../../../text-seeds.js";const E={...n,gap:12,gapPhone:12,...s(32,32,28,28)},f={textStyle:"heading-3",...p("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},D={textStyle:"body-1",...p("body",15),lineHeight:1.6},a=(e,t,o,x=!1)=>({type:"Text",props:{...t,text:"",[O]:e,_partStyles:{text:{...x?g()._partStyles?.text??{}:{},...o}}}}),_={title:"title",body:"body"},H={title:"name",body:"note"},A=(e=_)=>({type:r,props:{...E,name:"Card"},slots:{[l]:[a(e.title,{...i,tag:"p",widthFit:"fill"},f),a(e.body,{...h,tag:"p",widthFit:"fill"},D)]}}),K=(e,t)=>d([A(t)],e),c={label:_.title,href:"href"},C={textStyle:"body-1",fontRole:"heading",color:"text",...p("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},b=y(9,"main",{[m]:45}),P=(e=!1)=>({type:r,props:{...n,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...s(32,28),[L]:c.href,...e?{[S]:R}:{}},slots:{[l]:[{type:r,props:{...b,name:"Mark"}},a(c.label,{...i,tag:"p",widthFit:"fill"},C)]}}),Y=e=>(t,o)=>o==="0"?`${e}~card`:`${e}~card.${o.slice(2)}`,X=(e,t=!1)=>d([P(t)],e);export{D as CARDS_BODY_LOOK,E as CARDS_CARD,f as CARDS_TITLE_LOOK,c as LABEL_ONLY_CARD_FIELDS,C as LABEL_ONLY_LABEL_LOOK,b as LABEL_ONLY_MARK,H as SERVED_CARD_FIELDS,_ as TYPED_CARD_FIELDS,Y as cardIdOf,A as cardsCardSeed,K as cardsTemplateNodes,P as labelOnlyCardSeed,X as labelOnlyTemplateNodes,a as rowFieldTextSeed};
@@ -2,6 +2,7 @@ import { type BlockSeed } from "../../../seed-parts.js";
2
2
  type Props = Record<string, unknown>;
3
3
  export declare const FAQ_QUESTION_FIELD = "question";
4
4
  export declare const FAQ_ANSWER_FIELD = "answer";
5
+ export declare function faqRunStyleKeys(): string[];
5
6
  export declare const faqCardSeed: () => BlockSeed;
6
7
  export declare function withFaqTemplate(props: Props): Props;
7
8
  export {};
@@ -1 +1 @@
1
- import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as l}from"../../../container-blocks.js";import{DIM as m,INNER_BOX as f,TEXT as s,seedNodes as c,token as n}from"../../../seed-parts.js";import{rowFieldTextSeed as i}from"../Cards/card-seed.js";import{nonEmptyString as r}from"../../../../non-empty-string.js";import{parseSectionHeadPlacement as p}from"../../../../sections/section-head-placement.js";const w="question",S="answer",u={textStyle:"body-1",fontRole:"heading",...n("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},O={textStyle:"body-1",...n("body",15),lineHeight:1.7},E=()=>({type:o,props:{...f,gap:0,name:"Question"},slots:{rowTitle:[i(w,{...s,tag:"p",widthFit:"fill"},u)],[l]:[i(S,{...m,tag:"p",widthFit:"fill",maxWidth:760},O)]}});function T(e){return p(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>r(e[t])!==void 0)}function N(e){if(e.template!==void 0||T(e))return e;const t=r(e.id)??"FAQ";let d=0;return{...e,template:c([E()],a=>a===o?`${t}~row`:`${t}~row.${d++}`)}}export{S as FAQ_ANSWER_FIELD,w as FAQ_QUESTION_FIELD,E as faqCardSeed,N as withFaqTemplate};
1
+ import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as d}from"../../../container-blocks.js";import{DIM as l,INNER_BOX as f,TEXT as p,seedNodes as s,token as n}from"../../../seed-parts.js";import{rowFieldTextSeed as i}from"../Cards/card-seed.js";import{nonEmptyString as r}from"../../../../non-empty-string.js";import{parseSectionHeadPlacement as c}from"../../../../sections/section-head-placement.js";import{textRegionPartKey as u}from"../../../../sections/text-regions.js";import{FAQ_REGIONS as S}from"../../../../sections/faq-text-regions.js";const O="question",w="answer",x={textStyle:"body-1",fontRole:"heading",...n("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},y={textStyle:"body-1",...n("body",15),lineHeight:1.7};function A(){return Object.keys(S).map(u)}const E=()=>({type:o,props:{...f,gap:0,name:"Question"},slots:{rowTitle:[i(O,{...p,tag:"p",widthFit:"fill"},x)],[d]:[i(w,{...l,tag:"p",widthFit:"fill",maxWidth:760},y)]}});function T(e){return c(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>r(e[t])!==void 0)}function Q(e){if(e.template!==void 0||T(e))return e;const t=r(e.id)??"FAQ";let a=0;return{...e,template:s([E()],m=>m===o?`${t}~row`:`${t}~row.${a++}`)}}export{w as FAQ_ANSWER_FIELD,O as FAQ_QUESTION_FIELD,E as faqCardSeed,A as faqRunStyleKeys,Q as withFaqTemplate};
@@ -1,6 +1,7 @@
1
1
  import { type Data, type DataConfig } from "efficient-easel/data";
2
2
  type Props = Record<string, unknown>;
3
3
  export declare function cardFollowsContentSwitch(props: Props, last: Props | null | undefined): Props;
4
+ export declare function cardsFollowCardStyle(props: Props, last: Props | null | undefined): Props;
4
5
  export declare function cardsGridFollowsContent(box: Props, before: Props | null | undefined): Props;
5
6
  export interface CardSwitchStore {
6
7
  getState: () => {
@@ -1 +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
+ import{DELIVERY_OPTIONS_SOURCE as K,declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as p}from"../non-empty-string.js";import{CARD_LIST_TYPE as _,CARD_TEMPLATE_SLOT as f}from"../content/card-template.js";import{find as R,walk as g}from"efficient-easel/data";import{BOX_TYPE as j,CONTAINER_BLOCKS_SLOT as F}from"./container-blocks.js";import{seedNodes as S}from"./seed-parts.js";import{SERVED_CARD_FIELDS as a,TYPED_CARD_FIELDS as u,cardIdOf as A,cardsCardSeed as m,labelOnlyCardSeed as O}from"./blocks/general/Cards/card-seed.js";import{GRID_LOOK_KEYS as h,cardListCardSeed as w,cardsGridLook as k,deliveryCardSeed as D,deliveryGridLook as L}from"./blocks/general/Cards/card-list-seed.js";import{finiteNumber as Y}from"../finite-number.js";function l(t){return Array.isArray(t)?t.map(l):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).filter(([e,r])=>e!=="id"&&r!==void 0&&!(Array.isArray(r)&&r.length===0)).sort(([e],[r])=>e<r?-1:e>r?1:0).map(([e,r])=>[e,l(r)]))}const P=()=>"",G=t=>JSON.stringify(l(S([t],P)));function N(t,e,r){if(!Array.isArray(t)||t.length!==1)return null;const o=r.keys??=Object.fromEntries(Object.entries(e()).map(([n,s])=>[n,new Set(s.map(G))])),i=JSON.stringify(l(t));return Object.keys(o).find(n=>o[n].has(i))??null}const J=()=>({press:[w(u),w(a)],delivery:[D()]}),B={},C=t=>N(t,J,B),M=t=>d(t)===K?"delivery":"press";function et(t,e){if(!e||d(t)===d(e))return t;const r=C(t[f]),o=M(t);if(!r||r===o)return t;const i=p(t.id)??_,n=o==="delivery"?D():w(d(t)?a:u),s=S([n],A(i));return{...t,[f]:s}}const V=()=>({cards:[m(u),m(a)],label:[O(!1),O(!0)]}),v={},z=t=>N(t,V,v);function nt(t,e){if(!e||t.cardStyle==="label-only"==(e.cardStyle==="label-only"))return t;const r=z(t[f]),o=t.cardStyle==="label-only"?"label":"cards";if(!r||r===o)return t;const i=p(t.id)??"Cards",n=Array.isArray(t.items)&&t.items.some(b=>p(b?.href)!==void 0),s=o==="label"?O(n):m(d(t)?a:u),c=S([s],A(i));return{...t,[f]:c}}const I=(t,e)=>h.every(r=>JSON.stringify(t[r])===JSON.stringify(e[r]));function T(t,e){const r={...t};for(const o of h)delete r[o];return{...r,...structuredClone(e)}}function E(t){const e=t?.[F];if(!Array.isArray(e)||e.length!==1)return null;const r=e[0];return r?.type===_&&r.props?r:null}function H(t,e){const r=E(t),o=E(e);if(!r?.props||!o?.props||o.props.id!==r.props.id||d(r.props)===d(o.props))return t;const i=C(r.props[f]);if(!i||i===C(o.props[f]))return t;const n=Y(t.columns);return n===void 0?t:i==="delivery"&&I(t,k(n))?T(t,L(n)):i==="press"&&I(t,L(n))?T(t,k(n)):t}function ot(t){const e=y.get(t);e?e.count+=1:y.set(t,{count:1,stop:U(t)});let r=!1;return()=>{const o=y.get(t);r||!o||(r=!0,o.count-=1,!(o.count>0)&&(o.stop(),y.delete(t)))}}const y=new WeakMap;function U(t){let e=t.getState().appState.data;return t.subscribe(()=>{const r=t.getState().appState.data;if(r===e)return;const o=e;if(e=r,r===t.loaded)return;const i=new Map;g(r,t.config,n=>{if(n.type!==j||!E(n.props))return;const s=R(o,t.config,n.props.id);if(!s||s.node===n)return;const c=H(n.props,s.node.props);c!==n.props&&i.set(n.props.id,c)}),i.size&&t.dispatch({type:"setData",recordHistory:!1,data:n=>g(n,t.config,s=>{const c=i.get(s.props.id);return c?{...s,props:{...c,id:s.props.id}}:void 0})})})}export{et as cardFollowsContentSwitch,nt as cardsFollowCardStyle,H as cardsGridFollowsContent,ot as followCardContentSwitches};
@@ -1 +1 @@
1
- import{declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as C}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as s}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as y}from"./container-blocks.js";import{SERVED_CARD_FIELDS as m,TYPED_CARD_FIELDS as f,cardsTemplateNodes as E}from"./blocks/general/Cards/card-seed.js";function L(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return D(t);const r=C(t.id)??"Cards",i=d(t)?m:f;return{...t,template:E((l,n)=>n==="0"?`${r}~card`:`${r}~card.${n.slice(2)}`,i)}}const A=e=>{const[t,r]=e?[f,m]:[m,f];return new Map([[t.title,r.title],[t.body,r.body]])};function _(e,t){let r=null;return e.forEach((i,l)=>{const n=i?.props;if(!n)return;let o=n;const a=n[s];i.type==="Text"&&typeof a=="string"&&t.has(a)&&(o={...o,[s]:t.get(a)});const c=n[y];if(Array.isArray(c)){const u=_(c,t);u!==c&&(o={...o,[y]:u})}o!==n&&(r??=[...e],r[l]={...i,props:o})}),r??e}function D(e,t){if(!Array.isArray(e.template))return e;const r=A(!!d(e)),i=t?new Map([...r].filter(([n,o])=>t(o)&&!t(n))):r;if(!i.size)return e;const l=_(e.template,i);return l===e.template?e:{...e,template:l}}export{D as cardsFieldsFollowContent,L as withCardsTemplate};
1
+ import{declaredBlockSource as u}from"../content/block-sources.js";import{nonEmptyString as s}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as y}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as A}from"./container-blocks.js";import{SERVED_CARD_FIELDS as f,TYPED_CARD_FIELDS as c,cardIdOf as _,cardsTemplateNodes as D,labelOnlyTemplateNodes as O}from"./blocks/general/Cards/card-seed.js";function I(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return E(t);const n=s(t.id)??"Cards",i=_(n);if(t.cardStyle==="label-only"){const l=Array.isArray(t.items)&&t.items.some(r=>s(r?.href)!==void 0);return E({...t,template:O(i,l)})}const a=u(t)?f:c;return{...t,template:D(i,a)}}const S=e=>{const[t,n]=e?[c,f]:[f,c];return new Map([[t.title,n.title],[t.body,n.body]])};function C(e,t){let n=null;return e.forEach((i,a)=>{const l=i?.props;if(!l)return;let r=l;const o=l[y];i.type==="Text"&&typeof o=="string"&&t.has(o)&&(r={...r,[y]:t.get(o)});const m=l[A];if(Array.isArray(m)){const d=C(m,t);d!==m&&(r={...r,[A]:d})}r!==l&&(n??=[...e],n[a]={...i,props:r})}),n??e}function E(e,t){if(!Array.isArray(e.template))return e;const n=S(!!u(e)),i=t?new Map([...n].filter(([l,r])=>t(r)&&!t(l))):n;if(!i.size)return e;const a=C(e.template,i);return a===e.template?e:{...e,template:a}}export{E as cardsFieldsFollowContent,I as withCardsTemplate};
@@ -18,6 +18,7 @@ export declare function buildBlockCategories(): Record<string, {
18
18
  components: string[];
19
19
  defaultExpanded?: boolean;
20
20
  }>;
21
+ export declare const KEY_FEATURES_DELETE_BY = "2026-12-04";
21
22
  export declare const RETIRED_SECTIONS: Record<string, string>;
22
23
  export declare const RETIRED_NESTABLE_SECTIONS: readonly ["Grid", "Spacer", "TyreFitment"];
23
24
  export declare const ALL_SECTION_TYPES: string[];
@@ -1,4 +1,4 @@
1
- const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Masthead:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
1
+ const p=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"}]}];function u(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i="2026-12-04",l={Masthead:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
2
2
 
3
3
  WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
4
4
 
@@ -16,11 +16,11 @@ NO CONVERTER ROW: 0 Spacer nodes on any page, draft or published, in any schema
16
16
 
17
17
  THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Spacer anywhere still renders through it and can still be edited; no document is rewritten.`,KeyFeatures:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds Cards and Key Features; Key Features' diamond cells are the card style "Label only". Retired by card [MERGE] One Text Block And Click Through Parts (2026-10-22).
18
18
 
19
- WHAT REPLACES IT: a Cards section with Card style set to Label only. It draws this section's own component (\`components/KeyFeatures\`), so for the same words it draws the same bytes: the pill eyebrow when no look is stored, the columns, each cell's link. A cell's words are the card's \`title\` (row "Feature label"), its link the card's \`href\` (row "Link"), both shown under Label only. \`scripts/test-cards-label-only.tsx\` §2 holds the bytes.
19
+ WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell is a copy of the Label only card template (Cards/card-seed \`labelOnlyCardSeed\`): a cell Box (its link from the row's \`href\`), a 9px Mark Box in the main colour turned 45 degrees, and the label Text; the eyebrow starts on the pill look when none is stored. A cell's words are the card's \`title\` (row "Feature label"), its link the card's \`href\` (row "Link"). The Key Features conversion lands on the same card (\`scripts/test-key-features-diamond.tsx\`).
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).\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).
23
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${i}). 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).
24
24
 
25
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.
26
26
 
@@ -54,4 +54,4 @@ WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a pres
54
54
 
55
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).
56
56
 
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};
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."},m=["Grid","Spacer","TyreFitment"],y=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(l)])),g=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),d={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={...d,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function b(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 T=a("general"),E=a("commerce"),w=a("service"),c="Flex",s="Box",S=`${s}es`;function h(e){return e==="section"?"Blank section":s}function O(e,t,n){return e===c?h(t):n}export{y as ALL_SECTION_TYPES,p as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,E as COMMERCE_BLOCKS,T as GENERAL_BLOCKS,i as KEY_FEATURES_DELETE_BY,c as LEVEL_NAMED_TYPE,m as RETIRED_NESTABLE_SECTIONS,l as RETIRED_SECTIONS,o as SECTION_CATALOG,g as SECTION_LABELS,w as SERVICE_BLOCKS,d as UNLISTED_BLOCK_SETS,b as blockSetOf,a as blocksInSet,u as buildBlockCategories,O as labelAtLevel,h as labelForFlex};
@@ -6,6 +6,7 @@ export declare const BOX: Props;
6
6
  export declare const INNER_BOX: Props;
7
7
  export declare const boxPadding: (y: number, x?: number, yPhone?: number, xPhone?: number) => Props;
8
8
  export declare const fillSlot: (slot: FillColorSlot) => Props;
9
+ export declare const markBoxProps: (size: number, fill: FillColorSlot, look?: Props) => Props;
9
10
  export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
10
11
  export declare const LABEL_FACE: Readonly<Props>;
11
12
  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 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};
1
+ import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as l}from"./blocks/general/Text/meta.js";const{text:L,tag:T,...g}=l.defaultProps,x=g,_={...x,tone:"dim"},f={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},P={...f,direction:"column",...a},k=(t,o=t,e=t,n=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:e,sectionPaddingRightPhone:n,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:n}),m=t=>({fillColor:t}),A=(t,o,e={})=>({...P,widthFit:"fixed",width:t,minWidth:t,sectionHeightMode:"fixed",sectionHeightValue:t,sectionHeightUnit:"px",...m(o),...e}),h=(t,o,e,n)=>({sizeToken:{step:t,px:o,...n?{stepPhone:n}:{},...e?{pxPhone:e}:{}}}),c={case:"upper"},u={textStyle:"body-5",...c},S=(t,o)=>({...h("label",t,o),letterSpacing:.2,...c}),N=(t,o)=>({...u,...S(t,o)});function B(t,o,e=""){return t.map((n,i)=>{const r=e?`${e}.${i}`:String(i),s={...n.props??{}};for(const[p,d]of Object.entries(n.slots??{}))s[p]=B(d,o,r);return{type:n.type,props:{...s,id:o(n.type,r)}}})}export{f as BOX,_ as DIM,P as INNER_BOX,u as LABEL_FACE,x as TEXT,k as boxPadding,m as fillSlot,S as labelLook,N as labelStyle,A as markBoxProps,B as seedNodes,h as token};