efficient-web-builder 48.0.0 → 48.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/editor/components/PreviewPartAnchors.js +1 -1
- package/dist/editor/components/SectionIcon.js +1 -1
- package/dist/editor/lib/document/blocks/general/Contents/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -0
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/blocks/general/index.js +1 -1
- package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
- package/dist/editor/lib/document/canvas-typing.js +1 -1
- package/dist/editor/lib/document/overrides.js +1 -1
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/document/part-motion-canvas.d.ts +2 -3
- package/dist/editor/lib/document/part-motion-canvas.js +1 -2
- package/dist/format/lib/content/anchor-name.d.ts +2 -0
- package/dist/format/lib/content/anchor-name.js +1 -0
- package/dist/format/lib/content/box-link.js +1 -1
- package/dist/format/lib/content/list-number.d.ts +1 -0
- package/dist/format/lib/content/list-number.js +1 -0
- package/dist/format/lib/content/section-min-height.d.ts +3 -2
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/section-sticky.js +1 -1
- package/dist/format/lib/content/sticky-aside.d.ts +2 -0
- package/dist/format/lib/content/sticky-aside.js +1 -0
- package/dist/format/lib/document/blocks/general/Contents/meta.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/Contents/meta.js +1 -0
- package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/metas.js +1 -1
- package/dist/format/lib/document/blocks/general/text-part-shapes.json +10 -0
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/general-order.d.ts +1 -1
- package/dist/format/lib/document/general-order.js +1 -1
- package/dist/format/lib/links/page-link-rules.js +1 -1
- package/dist/format/lib/sections/contents-text-regions.d.ts +3 -0
- package/dist/format/lib/sections/contents-text-regions.js +1 -0
- package/dist/format/lib/sections/section-text-regions.js +1 -1
- package/dist/render/components/ContentsList.d.ts +14 -0
- package/dist/render/components/ContentsList.js +1 -0
- package/dist/render/components/DocBody.d.ts +18 -0
- package/dist/render/components/DocBody.js +5 -5
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/PageContentsContext.d.ts +14 -0
- package/dist/render/components/PageContentsContext.js +1 -0
- package/dist/render/components/PartStyledKind.js +1 -1
- package/dist/render/components/PartStyledText.js +1 -1
- package/dist/render/components/PublishedPartStylesContext.js +1 -1
- package/dist/render/components/Reel.js +1 -1
- package/dist/render/components/SectionAnimation.d.ts +3 -2
- package/dist/render/components/SectionAnimation.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/goldPhrases.d.ts +1 -1
- package/dist/render/components/goldPhrases.js +2 -2
- package/dist/render/lib/animation/entrance.d.ts +1 -0
- package/dist/render/lib/animation/entrance.js +1 -1
- package/dist/render/lib/animation/part-motion.d.ts +4 -0
- package/dist/render/lib/animation/part-motion.js +2 -1
- package/dist/render/lib/content/page-contents.d.ts +17 -0
- package/dist/render/lib/content/page-contents.js +1 -0
- package/dist/render/lib/document/blocks/general/Contents/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/Contents/render.js +1 -0
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/renders.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/section-anchor.d.ts +1 -0
- package/dist/render/lib/document/passes/section-anchor.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +1 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 48.1.0 - 2026-11-03
|
|
4
|
+
|
|
5
|
+
From main at `88c0e0a8`: #459, #460, #461, #462, and #463 (CI only). A minor: exports are added, no export is removed, peers are unchanged (`efficient-easel` `^27.0.0`, `efficient-shell` `^11.8.0`). The converter rows stay OFF (`SECTION_TO_BOX_ON` is empty), so no stored page converts.
|
|
6
|
+
|
|
7
|
+
**For hosts:** efficient-storefront-blocks takes this in #336; that bump relaxes `scripts/test-web-host-contract.tsx:1470` (#462).
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- The Contents block (`blocks/general/Contents`): a heading and one numbered link per anchored Box below it; `ContentsList` is the one list that DocBody and the block draw. The Document Text section (DocBody) gets a Box converter row, switched off (#460). One home for list numbers (`lib/content/list-number.ts`) and anchor names (`lib/content/anchor-name.ts`).
|
|
12
|
+
- One box of a part for the canvas and the page (#459): `partBoxOf`, `PART_HOST_ATTR`, `ensurePartLiftSheet`; `ENTRANCE_WRAPPER_CLASS` is also exported from `lib/animation/entrance`.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- A section anchor stored in the old `{text}` form draws its `id` and lights the jump highlight (#460).
|
|
17
|
+
- An anchored block in a Box stands one Gap from the block before it, not two (#461). Read-only count on the inovit_us pages: 0 blocks change.
|
|
18
|
+
- The Locations city card on a phone (#462): a Height grid is never wider than its parent (all three Height grid layers, one `minmax(0,1fr)` column); a city name wraps between words, never inside one; on a phone the time zone goes below a long name (Name row phone Wrap on). Live dry run on 58 US pages at 1440 and 390: 0 change.
|
|
19
|
+
|
|
20
|
+
### Internal
|
|
21
|
+
|
|
22
|
+
- The Commit convention check is repinned to efficient-ops `release-v1` (#463). No code change.
|
|
23
|
+
|
|
3
24
|
## 48.0.0 - 2026-11-03
|
|
4
25
|
|
|
5
26
|
From main at `1abf1642`: #448, #434, #449, #451, #453, #452, #455, #456, #458, #457. A major.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as F}from"react/jsx-runtime";import{readInks as z}from"../../format/lib/document/part-inks.js";import{useEffect as
|
|
1
|
+
"use client";import{jsx as F}from"react/jsx-runtime";import{readInks as z}from"../../format/lib/document/part-inks.js";import{useEffect as H,useRef as v}from"react";import{markOverlayPortal as Y}from"../../format/lib/document/overlay-portal.js";import{usePreviewParts as $}from"efficient-easel/draw/client";import{usePartStyle as j}from"./PreviewPartStyleContext.js";import{usePreviewDevice as G}from"efficient-easel/draw/client";import{decodePartId as q,encodePartId as U}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as V}from"efficient-easel/canvas";import{engagePartAnchors as Q}from"../lib/document/part-anchors.js";import{PART_ATTR as g,PART_STYLE_KIND_ATTR as T,PART_STYLE_OWNER_ATTR as X,partStyleOwnerOf as O}from"../../render/lib/document/text-parts.js";import{PART_STYLE_PROPERTIES as K,applyPartStyles as x,blockDrawsTextStyle as Z,partFontKeyOf as ee,partStyleBase as te,partStyleSource as re}from"../../render/lib/document/part-styles.js";import{fontRoleOfClassName as oe,styleRoleOfClassName as ne}from"../../format/lib/fonts.js";import{typeScaleGroupOfClassName as I}from"../../format/lib/theme.js";import{styleKeyForPart as C}from"../../format/lib/sections/section-text-kinds.js";import{NO_MOTIONS as se,PART_HOST_ATTR as ie}from"../../render/lib/animation/part-motion.js";import{paintPartMotion as le}from"../lib/document/part-motion-canvas.js";function ae(a){let o=null,i=null;for(let t=a;t&&(o===null||i===null);t=t.parentElement){const p=t.getAttribute("class");o??=ne(p),i??=I(p)}return{faceRole:o??"body",sizeGroup:i}}function D(a){const o=a.style,i={};for(const r of K)i[r]=o[r]??"",o[r]="";const t=getComputedStyle(a),p=getComputedStyle(a.ownerDocument.documentElement),m=te({fontSize:t.fontSize,fontWeight:t.fontWeight,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,textAlign:t.textAlign,textTransform:t.textTransform,paddingTop:t.paddingTop},ee(t.fontFamily,r=>p.getPropertyValue(r)));for(const r of K)o[r]=i[r];return m}function pe({needles:a,styles:o,motions:i=se,type:t,children:p}){const m=v(null),{selectedPartId:r}=$(),{setPartStyle:P}=j(),d=G()==="mobile",b=JSON.stringify(a),h=JSON.stringify(o),A=JSON.stringify(i),J=v(new Map);return H(()=>{const u=m.current;if(!u)return;const R=[],w=()=>u.parentElement,M=l=>{const n=w();if(!n)return null;const f=new MutationObserver(l);return f.observe(n,{attributes:!0,attributeFilter:[V]}),()=>f.disconnect()},k=l=>{const n=new MutationObserver(l);return n.observe(u,{childList:!0,subtree:!0,characterData:!0}),()=>n.disconnect()};let c=[];R.push(()=>{for(const l of c)l();c=[]});const L=JSON.parse(b),E=JSON.parse(h),W=JSON.parse(A),B=Q(u,L,w,M,(l,n,f)=>{for(const e of c)e();c=[];const _=[];for(const e of f){const s=e,y=Y(s);y&&c.push(y),s.getAttribute(g)===r&&_.push(s)}const N=re(n,r,_,e=>oe(e)!==null||I(e)!==null);if(N&&r){const e=N;P({partId:r,...ae(e),base:D(e),inks:z(e),...(()=>{const s=O(e);return s?{styleOwner:s}:{}})()})}x(f.filter(e=>!O(e)).map(e=>({element:e,partId:e.getAttribute(g)??""})),E,e=>D(e),e=>C(t,e),void 0,d,e=>Z(t,e));const S=[...u.querySelectorAll(`[${X}="${CSS.escape(n)}"][${T}]`)];S.length&&x(S.map(e=>({element:e,partId:U(n,e.getAttribute(T)??"")})),E,void 0,e=>e,void 0,d),c.push(le([...f.filter(e=>!O(e)).map(e=>{const s=e,y=q(s.getAttribute(g)??"")?.propKey??"";return{element:s,partKey:C(t,y)}}),...S.map(e=>({element:e,partKey:e.getAttribute(T)??""}))],e=>W[e],d,J.current))},k);return()=>{B();for(const l of R)l()}},[b,h,A,r,P,d,t]),F("div",{ref:m,[ie]:"",style:{display:"contents"},children:p})}export{pe as default,D as measureStyleBase,ae as styleTagsOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as h,Fragment as t,jsxs as e}from"react/jsx-runtime";import{BlockBannerIcon as n,BlockBoxIcon as M,BlockButtonIcon as g,BlockDividerIcon as x,BlockFooterIcon as a,BlockHeadingIcon as y,BlockProductIcon as p,BlockSocialIcon as w,BlockTextIcon as s,CardPaymentIcon as B,ChatIcon as k,AccountIcon as u,GlobeIcon as I,GridIcon as m,ImageIcon as c,MapIcon as S,MediaIcon as L,PageIcon as F}from"efficient-easel/icons";import{CART_GLYPH as v}from"../../render/components/cartGlyph.js";const H={header:e(t,{children:[h("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),h("path",{d:"M3 9.5h18"})]}),social:e(t,{children:[h("circle",{cx:"6",cy:"12",r:"2.5"}),h("circle",{cx:"18",cy:"6",r:"2.5"}),h("circle",{cx:"18",cy:"18",r:"2.5"}),h("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:e(t,{children:[h("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),h("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:e(t,{children:[h("path",{d:"M4 15.5h6M4 18h4"}),h("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:h("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:e(t,{children:[h("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),h("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:h("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:e(t,{children:[h("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),h("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:e(t,{children:[h("circle",{cx:"11",cy:"11",r:"6"}),h("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:v,CountrySwitchBlock:e(t,{children:[h("circle",{cx:"12",cy:"12",r:"8.5"}),h("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:e(t,{children:[h("circle",{cx:"12",cy:"12",r:"8.5"}),h("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:e(t,{children:[h("path",{d:"M3 9h18"}),h("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:e(t,{children:[h("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),h("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),h("path",{d:"M7 17h7"})]}),Collections:e(t,{children:[h("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),h("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),h("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:e(t,{children:[h("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),h("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:e(t,{children:[h("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),h("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),h("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),h("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),h("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:e(t,{children:[h("path",{d:"M3 7h9M15.5 7H21"}),h("circle",{cx:"13.5",cy:"7",r:"1.7"}),h("path",{d:"M3 12h4M10.5 12H21"}),h("circle",{cx:"8.5",cy:"12",r:"1.7"}),h("path",{d:"M3 17h9M15.5 17H21"}),h("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:e(t,{children:[h("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:e(t,{children:[h("path",{d:"M3 5h10"}),h("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),h("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),h("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:e(t,{children:[h("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),h("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),h("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:e(t,{children:[h("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),h("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),h("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),h("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:e(t,{children:[h("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),h("circle",{cx:"9",cy:"10",r:"1.6"}),h("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:e(t,{children:[h("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),h("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:e(t,{children:[h("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),h("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),h("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:e(t,{children:[h("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),h("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:e(t,{children:[h("path",{d:"M3.5 20h17"}),h("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:e(t,{children:[h("circle",{cx:"6",cy:"12",r:"2.6"}),h("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),h("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:e(t,{children:[h("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),h("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:e(t,{children:[h("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),h("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:e(t,{children:[h("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),h("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:e(t,{children:[h("path",{d:"M4 8.5h4.5M11 8.5h9"}),h("path",{d:"M4 14.5h16"})]}),HeroGroup:e(t,{children:[h("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),h("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M6.5 9h11M6.5 12.5h11"}),h("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:h(t,{children:h("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:e(t,{children:[h("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),h("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:e(t,{children:[h("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),h("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),h("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),h("path",{d:"M4 13.5h11M4 17.5h7"}),h("path",{d:"M17 15l3 2-3 2"})]}),CustomHTML:h("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},C=h("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),P={footer:a,Footer:a,Divider:x,FooterDivider:x,Banner:n,Flex:M,FooterSocial:w,FooterPayment:B,page:F,website:I,AccountBlock:u,chat:k,Heading:y,Text:s,ImageBlock:c,ButtonBlock:g,LocationMap:S,Grid:m,ProductRef:p,heroMedia:L,heroImage:c,heroImage2:c},G={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function f({type:i,size:r=16,className:d}){const o=G[i]??i,l=P[o];return l?h(l,{size:r,className:d}):h("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:d,"aria-hidden":"true",children:H[o]??C})}export{f as default};
|
|
1
|
+
import{jsx as h,Fragment as t,jsxs as e}from"react/jsx-runtime";import{BlockBannerIcon as n,BlockBoxIcon as M,BlockButtonIcon as g,BlockDividerIcon as x,BlockFooterIcon as a,BlockHeadingIcon as y,BlockProductIcon as p,BlockSocialIcon as w,BlockTextIcon as s,CardPaymentIcon as B,ChatIcon as k,AccountIcon as u,GlobeIcon as I,GridIcon as m,ImageIcon as c,MapIcon as S,MediaIcon as L,PageIcon as F}from"efficient-easel/icons";import{CART_GLYPH as v}from"../../render/components/cartGlyph.js";const H={header:e(t,{children:[h("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),h("path",{d:"M3 9.5h18"})]}),social:e(t,{children:[h("circle",{cx:"6",cy:"12",r:"2.5"}),h("circle",{cx:"18",cy:"6",r:"2.5"}),h("circle",{cx:"18",cy:"18",r:"2.5"}),h("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:e(t,{children:[h("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),h("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:e(t,{children:[h("path",{d:"M4 15.5h6M4 18h4"}),h("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:h("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:e(t,{children:[h("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),h("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:h("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:e(t,{children:[h("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),h("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:e(t,{children:[h("circle",{cx:"11",cy:"11",r:"6"}),h("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:v,CountrySwitchBlock:e(t,{children:[h("circle",{cx:"12",cy:"12",r:"8.5"}),h("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:e(t,{children:[h("circle",{cx:"12",cy:"12",r:"8.5"}),h("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:e(t,{children:[h("path",{d:"M3 9h18"}),h("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:e(t,{children:[h("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),h("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),h("path",{d:"M7 17h7"})]}),Collections:e(t,{children:[h("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),h("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),h("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:e(t,{children:[h("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),h("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:e(t,{children:[h("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),h("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),h("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),h("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),h("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:e(t,{children:[h("path",{d:"M3 7h9M15.5 7H21"}),h("circle",{cx:"13.5",cy:"7",r:"1.7"}),h("path",{d:"M3 12h4M10.5 12H21"}),h("circle",{cx:"8.5",cy:"12",r:"1.7"}),h("path",{d:"M3 17h9M15.5 17H21"}),h("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:e(t,{children:[h("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),h("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:e(t,{children:[h("path",{d:"M3 5h10"}),h("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),h("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),h("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:e(t,{children:[h("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),h("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),h("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:e(t,{children:[h("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),h("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),h("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),h("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:e(t,{children:[h("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),h("circle",{cx:"9",cy:"10",r:"1.6"}),h("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:e(t,{children:[h("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),h("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:e(t,{children:[h("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),h("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),h("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:e(t,{children:[h("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),h("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:e(t,{children:[h("path",{d:"M3.5 20h17"}),h("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:e(t,{children:[h("circle",{cx:"6",cy:"12",r:"2.6"}),h("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),h("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:e(t,{children:[h("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),h("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:e(t,{children:[h("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),h("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:e(t,{children:[h("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),h("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:e(t,{children:[h("path",{d:"M4 8.5h4.5M11 8.5h9"}),h("path",{d:"M4 14.5h16"})]}),HeroGroup:e(t,{children:[h("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),h("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:e(t,{children:[h("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),h("path",{d:"M6.5 9h11M6.5 12.5h11"}),h("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:h(t,{children:h("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:e(t,{children:[h("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),h("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:e(t,{children:[h("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),h("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),h("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),h("path",{d:"M4 13.5h11M4 17.5h7"}),h("path",{d:"M17 15l3 2-3 2"})]}),Contents:e(t,{children:[h("path",{d:"M4 7h2M4 12h2M4 17h2"}),h("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),CustomHTML:h("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},C=h("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),P={footer:a,Footer:a,Divider:x,FooterDivider:x,Banner:n,Flex:M,FooterSocial:w,FooterPayment:B,page:F,website:I,AccountBlock:u,chat:k,Heading:y,Text:s,ImageBlock:c,ButtonBlock:g,LocationMap:S,Grid:m,ProductRef:p,heroMedia:L,heroImage:c,heroImage2:c},G={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function f({type:i,size:r=16,className:d}){const o=G[i]??i,l=P[o];return l?h(l,{size:r,className:d}):h("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:d,"aria-hidden":"true",children:H[o]??C})}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{StickyIcon as r}from"efficient-easel/icons";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{SECTION_STICK_LABEL as t}from"../../../../../../format/lib/content/section-sticky.js";import{text as m,toggle as e}from"../../../controls.js";import{CONTENTS_PH as p}from"../../../../../../format/lib/document/blocks/general/Contents/meta.js";const S={fields:{title:m("Heading",p.title),_gStick:i(t),sticky:e(t,!0,o(r,{}))}};export{S as ContentsFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const assembleGeneralBlocks: () => Record<"Grid" | "HeroGroup" | "HeroSlide" | "Text" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Series" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "DocMetaCards" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Heading" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
2
|
-
export declare const generalBlocks: Record<"Grid" | "HeroGroup" | "HeroSlide" | "Text" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Series" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "DocMetaCards" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Heading" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
1
|
+
export declare const assembleGeneralBlocks: () => Record<"Grid" | "HeroGroup" | "HeroSlide" | "Text" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Series" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "DocMetaCards" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Heading" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "ButtonBlock" | "PostCard" | "Integrations" | "Contents", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
2
|
+
export declare const generalBlocks: Record<"Grid" | "HeroGroup" | "HeroSlide" | "Text" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Series" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "DocMetaCards" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Heading" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "ButtonBlock" | "PostCard" | "Integrations" | "Contents", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{assembleBlocks as o}from"../../../../../format/lib/document/blocks/block-types.js";import{registerGeneralSectionRows as r}from"../../../../../render/lib/document/blocks/general/section-to-box-rows.js";import{BannerFields as e}from"./Banner/fields.js";import{BreadcrumbFields as i}from"./Breadcrumb/fields.js";import{ButtonBlockFields as t}from"./ButtonBlock/fields.js";import{CardsFields as m}from"./Cards/fields.js";import{CategoryBarFields as s}from"./CategoryBar/fields.js";import{ChartFields as d}from"./Chart/fields.js";import{ContactLocationsFields as l}from"./ContactLocations/fields.js";import{CountdownFields as a}from"./Countdown/fields.js";import{CustomHTMLFields as p}from"../../../../../format/lib/document/blocks/general/CustomHTML/fields.js";import{DividerFields as F}from"./Divider/fields.js";import{
|
|
1
|
+
import{assembleBlocks as o}from"../../../../../format/lib/document/blocks/block-types.js";import{registerGeneralSectionRows as r}from"../../../../../render/lib/document/blocks/general/section-to-box-rows.js";import{BannerFields as e}from"./Banner/fields.js";import{BreadcrumbFields as i}from"./Breadcrumb/fields.js";import{ButtonBlockFields as t}from"./ButtonBlock/fields.js";import{CardsFields as m}from"./Cards/fields.js";import{CategoryBarFields as s}from"./CategoryBar/fields.js";import{ChartFields as d}from"./Chart/fields.js";import{ContactLocationsFields as l}from"./ContactLocations/fields.js";import{CountdownFields as a}from"./Countdown/fields.js";import{CustomHTMLFields as p}from"../../../../../format/lib/document/blocks/general/CustomHTML/fields.js";import{DividerFields as F}from"./Divider/fields.js";import{ContentsFields as f}from"./Contents/fields.js";import{DocBodyFields as n}from"./DocBody/fields.js";import{DocMastheadFields as c}from"./DocMasthead/fields.js";import{DocMetaCardsFields as S}from"./DocMetaCards/fields.js";import{DocTabsFields as B}from"./DocTabs/fields.js";import{EyebrowFields as g}from"./Eyebrow/fields.js";import{FAQFields as u}from"./FAQ/fields.js";import{FeaturedCoverFields as C}from"./FeaturedCover/fields.js";import{FlexFields as T}from"./Flex/fields.js";import{FootprintFields as k}from"./Footprint/fields.js";import{GridFields as L}from"./Grid/fields.js";import{HeadingFields as H}from"./Heading/fields.js";import{HeroFields as M}from"./Hero/fields.js";import{HeroGroupFields as h}from"./HeroGroup/fields.js";import{HeroSingleFields as y}from"./HeroSingle/fields.js";import{HeroSlideFields as D}from"./HeroSlide/fields.js";import{ImageBlockFields as P}from"./ImageBlock/fields.js";import{IntegrationsFields as E}from"./Integrations/fields.js";import{IntroBleedFields as b}from"./IntroBleed/fields.js";import{KeyFeaturesFields as G}from"./KeyFeatures/fields.js";import{LocationMapFields as I}from"./LocationMap/fields.js";import{LogoBlockFields as R}from"./LogoBlock/fields.js";import{LogosFields as x}from"./Logos/fields.js";import{LongReadFields as A}from"./LongRead/fields.js";import{ManifestoFields as w}from"./Manifesto/fields.js";import{MastheadFields as v}from"./Masthead/fields.js";import{MockupFields as N}from"./Mockup/fields.js";import{OrderSummaryFields as K}from"./OrderSummary/fields.js";import{ParagraphsAFields as O}from"./ParagraphsA/fields.js";import{PaymentBadgesFields as Q}from"./PaymentBadges/fields.js";import{PostCardFields as W}from"./PostCard/fields.js";import{ProcessStepsFields as _}from"./ProcessSteps/fields.js";import{ProseFields as j}from"./Prose/fields.js";import{SectionHeaderFields as q}from"./SectionHeader/fields.js";import{SeriesFields as z}from"./Series/fields.js";import{SpacerFields as J}from"../../../../../format/lib/document/blocks/general/Spacer/fields.js";import{SpecStripFields as U}from"./SpecStrip/fields.js";import{SplitFields as V}from"./Split/fields.js";import{StatsFields as X}from"./Stats/fields.js";import{StatsParagraphFields as Y}from"./StatsParagraph/fields.js";import{TestimonialsFields as Z}from"./Testimonials/fields.js";import{TextFields as $}from"./Text/fields.js";import{TickerFields as oo}from"./Ticker/fields.js";import{TimelineFields as ro}from"./Timeline/fields.js";import{TimelineTrackFields as eo}from"./TimelineTrack/fields.js";import{TitleWithButtonsFields as io}from"./TitleWithButtons/fields.js";import{GENERAL_RENDERS as to}from"../../../../../render/lib/document/blocks/general/renders.js";const mo={Banner:e,Breadcrumb:i,ButtonBlock:t,Cards:m,CategoryBar:s,Chart:d,ContactLocations:l,Countdown:a,CustomHTML:p,Divider:F,Contents:f,DocBody:n,DocMasthead:c,DocMetaCards:S,DocTabs:B,Eyebrow:g,FAQ:u,FeaturedCover:C,Flex:T,Footprint:k,Grid:L,Heading:H,Hero:M,HeroGroup:h,HeroSingle:y,HeroSlide:D,ImageBlock:P,Integrations:E,IntroBleed:b,KeyFeatures:G,LocationMap:I,LogoBlock:R,Logos:x,LongRead:A,Manifesto:w,Masthead:v,Mockup:N,OrderSummary:K,ParagraphsA:O,PaymentBadges:Q,PostCard:W,ProcessSteps:_,Prose:j,SectionHeader:q,Series:z,Spacer:J,SpecStrip:U,Split:V,Stats:X,StatsParagraph:Y,Testimonials:Z,Text:$,Ticker:oo,Timeline:ro,TimelineTrack:eo,TitleWithButtons:io},so=()=>(r(),o(to,mo)),nr=so();export{so as assembleGeneralBlocks,nr as generalBlocks};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useSyncExternalStore as
|
|
1
|
+
import{useSyncExternalStore as g}from"react";import{rowBound as P}from"../../../format/lib/content/card-template.js";import{linkedCount as O}from"../../../format/lib/content/count-numbers.js";import{SHOP_MARKUP as R}from"../../../format/lib/markup.js";import{readHidable as S,textFieldOffPage as k}from"./controls.js";import{decodePartId as v}from"efficient-easel/draw";import{canTypeOnCanvas as K,PART_ATTR as y}from"../../../render/lib/document/text-parts.js";import{partRowField as C}from"./part-row-field.js";import{decodePartKey as b,partRowValue as A}from"../../../render/lib/document/part-rows.js";import{isMultilineKind as E,typeInPlaceKind as _}from"../../../render/lib/document/part-text.js";import{commitPartText as w}from"./part-typing.js";import{consentWordsOf as F}from"../../../format/lib/content/consent-banner.js";import{KICKER_NUMBER_ATTR as I}from"../../../render/lib/content/page-contents.js";const B=`[${I}]`,L=["bold","italic","underline","strike","link","sup","sub"],M=["bullet","number"];function $(e,t){return e?[...L,...t?M:[]]:[]}function T(e,t){const r=v(e);if(!r?.propKey)return null;const{nodeId:u,propKey:s}=r,o=t.getItemById(u),c=t.getSelectorForId(u);if(!o||!c)return null;const{key:n,row:i}=b(s),a=t.components[o.type]?.fields?.[n],d=i?C(a,i):a,m=_(d);if(!m)return null;const l=o.props??{};if(F(l)!==null||!i&&P(o.type,l,n)||o.type==="Text"&&n==="text"&&O(l)||i&&!(Array.isArray(l[n])&&i.index<l[n].length))return null;const x=i?A(l[n],i):l[n];return{node:o,selector:c,propKey:s,kind:m,stored:x,offPage:k(d)}}function ee(e,t){const r=T(e,t);if(!r)return null;const{text:u,hidden:s}=S(r.stored);if(!K({offPage:r.offPage,hidden:!!s}))return null;const o=E(r.kind);return{partId:e,value:u,rules:R,multiline:o,skip:B,offered:$(r.kind!=="plainText",o),write:c=>{const n=T(e,t);n&&w({node:n.node,propKey:n.propKey,kind:n.kind,zone:n.selector.zone,index:n.selector.index},c,t.replace)}}}function te(e,t,r){return e?.isConnected&&e.getAttribute(y)===r?e:t?.querySelector(`[${y}="${h(r)}"]`)??null}function h(e){return e.replace(/["\\]/g,"\\$&")}function ne(e){const t=e.activeElement;return t?t.tagName==="IFRAME"||!!t.closest(".es-canvas"):!1}let f=null;const p=new Set;function N(){return f}function re(e){if(e!==f){f=e;for(const t of p)t()}}function W(e){return p.add(e),()=>{p.delete(e)}}function oe(){return g(W,N,()=>null)}export{N as canvasTypingPart,ne as keysOnCanvas,te as partElement,$ as partTextTools,ee as partTypingTarget,re as setCanvasTypingPart,W as subscribeCanvasTypingPart,oe as useCanvasTypingPart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as d,Fragment as v,jsxs as y}from"react/jsx-runtime";import{useEffect as I,useMemo as g,useRef as h}from"react";import{EaselCanvas as P,useEaselApi as T}from"efficient-easel/easel";import w from"../../components/PreviewThemeFrame.js";import{OpenDocumentChromeLoadNotice as F}from"../../components/PinnedChromeLoadNotice.js";import{SiteRestoreNotice as D}from"../../components/SiteRestoreNotice.js";import{usePreviewParts as E}from"efficient-easel/draw/client";import{partElement as
|
|
1
|
+
"use client";import{jsx as d,Fragment as v,jsxs as y}from"react/jsx-runtime";import{useEffect as I,useMemo as g,useRef as h}from"react";import{EaselCanvas as P,useEaselApi as T}from"efficient-easel/easel";import w from"../../components/PreviewThemeFrame.js";import{OpenDocumentChromeLoadNotice as F}from"../../components/PinnedChromeLoadNotice.js";import{SiteRestoreNotice as D}from"../../components/SiteRestoreNotice.js";import{usePreviewParts as E}from"efficient-easel/draw/client";import{partElement as k,partTypingTarget as x,setCanvasTypingPart as S}from"./canvas-typing.js";import{partThemeColors as A,readInks as W}from"../../../format/lib/document/part-inks.js";import{PART_ATTR as p}from"../../../render/lib/document/text-parts.js";import{useSectionOps as j}from"efficient-easel/screen/lib/document/use-section-ops";import{useBlockMetadata as B}from"../editor-block-metadata.js";import{usePreviewHeader as M,useSiteContentWidth as R}from"../../../render/components/PreviewHeaderContext.js";import{setEditorSiteContentWidth as C}from"../../../format/lib/document/editor-site-widths.js";import{siteWidthsMetadata as _}from"../../../format/lib/content/section-width.js";import{useEditorCanvasStyles as b}from"../editor-canvas-styles.js";function et(n){const{mirrorHostStyles:s}=b(),m=B(),{sectionBackgroundWidth:c,themeFromDocument:o}=M(),a=R(),u=g(()=>({...n.metadata??m??{},..._(o?null:c,a)}),[n.metadata,m,c,a,o]);I(()=>(C(a),()=>C(null)),[a]);const t=h(null),r=N(t),{onDocument:e}=n,i=l=>{t.current=l,e?.(l)};return y(v,{children:[d(D,{}),d(F,{}),d(P,{...n,onDocument:i,typing:r,metadata:u,height:"fill",mirrorStyles:s,frameWrapper:w})]})}function N(n){const s=T(),m=j(),c=E(),o=h({ops:m,parts:c});return o.current={ops:m,parts:c},g(()=>{const a={getItemById:t=>s.getState().getItemById(t),getSelectorForId:t=>s.getState().getSelectorForId(t),get components(){return s.getState().config.components},replace:(t,r,e)=>o.current.ops.replaceComponent(t,r,e)},u=(t,r)=>{const e=x(t,a);if(!e)return null;let i=r;const l=()=>(i=k(i,i?.ownerDocument??n.current,t),i),f=l();return f?{element:l,value:e.value,rules:e.rules,multiline:e.multiline,skip:e.skip,write:e.write,toolbar:{offered:e.offered,colors:e.offered.length>0?A(W(f)):void 0}}:null};return{at:t=>{const r=t.closest(`[${p}]`),e=r?.getAttribute(p);return r&&e?u(e,r):null},atSelection:()=>{const t=o.current.parts.selectedPartId;return t?u(t,null):null},onChange:t=>{if(!t.typing){S(null);return}const r=t.element.closest(`[${p}]`)?.getAttribute(p)??null;S(r),r&&o.current.parts.selectedPartId!==r&&o.current.parts.select(r)}}},[s,n])}export{et as SiteCanvas};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
`),
|
|
1
|
+
import{jsx as o,jsxs as P}from"react/jsx-runtime";import{accentItalicCss as $,storedTextStyles as K,textStylesCss as X}from"../../../render/lib/text-styles/site-text-styles.js";import{pageWidthMarker as Y,PAGE_WIDTH_ATTR as q,siteWidthTokens as J,siteGutterTokens as Q,siteGutterPhoneClass as U,siteGutterPhoneTokens as Z,heroBackgroundTokens as ee}from"../../../format/lib/content/page-width.js";import{siteBlockGapPhoneClass as te,siteBlockGapPhoneTokens as oe,siteBlockGapTokens as ne}from"../../../format/lib/content/container-gap.js";import{usePreviewHeader as re}from"../../../render/components/PreviewHeaderContext.js";import{SitePhotographyProvider as se}from"../../../render/components/SitePhotographyContext.js";import{CORNER_STYLE_TO_PX as ae,normalizeCornerStyle as ie,normalizeCornerRadius as de,themeColorStyle as ce,typeSizesStyle as le,headingTypographyStyle as he,normalizeHeadingTypography as pe,themeAccentStyle as me,themeButtonStyle as fe,themePresetAccentVars as ue,themeSurfaceStyle as ge,siteCornerRadiusTokens as Se,shadowColorTokens as ye,headingCompressionAttr as xe,cardShadowAttr as Te,cardGapAttr as ke,hoverEffectAttr as Pe}from"../../../format/lib/theme.js";import{fontRoleStyle as Ce}from"../../../format/lib/fonts.js";import{wordStyleTokens as Ee}from"../../../format/lib/word-styles.js";import{isStandaloneSectionDocument as Ae,pageHasHeaderSection as C,pageTakesTopSpace as Ge,topSpaceMarker as ve,TOP_SPACE_ATTR as _e,HEADER_CLEARANCE_CLASS as Be}from"../../../render/lib/document/header-clearance.js";import{leadSectionInk as Re,HEADER_INK_ATTR as we}from"../../../render/lib/document/header-ink.js";import{useEasel as Ie}from"efficient-easel/easel";import{pageBackgroundVars as We}from"../../../format/lib/content/page-background.js";import{pageWidthTokens as He}from"../../../render/lib/document/page-frame.js";import{EditingBridgesProvider as Ne}from"../../../render/lib/document/editing-bridges.js";import be from"../../components/SectionTextPartBridge.js";import{PageContentsFromDocument as E}from"../../../render/components/PageContentsContext.js";const De={SectionTextParts:be};import{PageWidthWrapper as dt,PublishedPageFrame as ct,pageWidthTokens as lt}from"../../../render/lib/document/page-frame.js";const ze="color-mix(in oklab, var(--bg) 40%, #ffffff)",je="12vh";function Fe({style:n,children:a}){const{appState:i}=Ie(u=>u),t=i.data.content,r=i.data.root;if(Ae(t))return o("div",{className:"sf-themed-content",style:{...n,background:ze,minHeight:"100vh",paddingBottom:je},children:o("div",{style:{background:"var(--bg)"},children:o(E,{content:t,children:a})})});const d=C(t)&&Ge(r,t),c=C(t)?ve(r,t):null,p=c?{[_e]:c}:null,l=Y(r?.widthChoice),m=l?{[q]:l}:null,h=d?null:Re(t),f=h?{[we]:h}:null;return o("div",{className:`sf-themed-content${d?` ${Be}`:""}`,style:n,...f,...p,...m,children:o("div",{style:{background:"var(--bg)",minHeight:"100%"},children:o(E,{content:t,children:a})})})}function rt({propsTheme:n,propsFonts:a,propsCornerStyle:i,propsCornerRadiusPx:t,propsHeadingCompression:r,propsHeadingTypography:d,pageBackground:c,chromeInheritsSiteBackground:p,suppressPreviewNav:l,footer:m,overlay:h,children:f}){const{theme:u,fonts:A,sizes:G,cornerRadiusPx:v,cardShadow:g,shadowColor:_,cardGap:B,hoverEffect:S,headingCompression:R,siteWidth:w,siteGutter:I,siteGutterPhone:y,blockGap:W,blockGapPhone:x,headingTypography:H,heroBackgroundFollowsWidth:N,photographyGrayscale:b,textStyles:D,wordStyles:z,themeFromDocument:e}=re(),s=e?n:u,j=e?a:A,F=e?void 0:G,V=e?t===void 0?ae[ie(i)]:de(t):v,L=e?r:R,T=e?d:H,k=[X(K(e?void 0:D)),$(pe(T).italicStrong)].filter(Boolean).join(`
|
|
2
|
+
`),O=He(),M={...ce(s),...le(F),...he(T),...O.style,...p?{}:We(c)};return P("div",{className:`sf-theme-surfaces sf-theme-accent ${[U(e?void 0:y),te(e?void 0:x)].filter(Boolean).join(" ")}`.trim(),style:{...Ce(j),...Ee(e?null:z),...me(s),...fe(s),...ue(s),...ge(s),...Se(V),...ye(e?void 0:g,e?void 0:_,e?void 0:S),...J(e?void 0:w),...Q(e?void 0:I),...Z(e?void 0:y),...ne(e?void 0:W),...oe(e?void 0:x),...ee(e?void 0:N)},"data-sf-headings":xe(L),"data-sf-card-shadow":e?void 0:Te(g),"data-sf-card-gap":e?void 0:ke(B),"data-sf-card-hover":e?void 0:Pe(S),onClickCapture:l,children:[k?o("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:k}}):null,o(se,{grayscale:e?void 0:b,children:P(Ne,{value:De,children:[o(Fe,{style:M,children:f}),m,h]})})]})}const st=n=>{n.target?.closest?.("a")&&n.preventDefault()};export{De as EDITING_BRIDGES,Fe as EditorPageBody,rt as EditorThemedBody,dt as PageWidthWrapper,ct as PublishedPageFrame,ze as SECTION_PREVIEW_CANVAS,je as SECTION_PREVIEW_CANVAS_TAIL,lt as pageWidthTokens,st as suppressPreviewNav};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type SeenEntrance } from "../../../render/components/SectionAnimation.js";
|
|
2
|
-
import { type PartMotion } from "../../../render/lib/animation/part-motion.js";
|
|
3
|
-
export
|
|
2
|
+
import { PART_LIFT_ATTR, type PartMotion } from "../../../render/lib/animation/part-motion.js";
|
|
3
|
+
export { PART_LIFT_ATTR };
|
|
4
4
|
export type SeenPartEntrances = Map<string, SeenEntrance>;
|
|
5
5
|
type StampedPart = {
|
|
6
6
|
element: HTMLElement;
|
|
7
7
|
partKey: string;
|
|
8
8
|
};
|
|
9
9
|
export declare function paintPartMotion(stamped: readonly StampedPart[], motionOf: (partKey: string) => PartMotion | undefined, phone: boolean, seen: SeenPartEntrances): () => void;
|
|
10
|
-
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{ENTRANCE_ATTR as
|
|
2
|
-
`),n.head.appendChild(o)}const _="data-sf-part-host";function g(n){const o=n.ownerDocument.defaultView;let r=n;for(;r&&!r.hasAttribute(_);){const i=o?.getComputedStyle(r).display??"";if(i!=="inline"&&i!=="contents")return r;r=r.parentElement}return null}function K(n,o,r,i){const c=[],f=new Map;for(const{partKey:t}of n){if(f.has(t))continue;const s=o(t)??{},p=d(s,"desktop"),a=d(s,"phone"),e=i.get(t),u=e?m.next(e,p,a,r):null;i.set(t,u?u.seen:m.seed(p,a)),f.set(t,u?.play??!1)}const l=new Map;for(const t of n){const s=g(t.element);s&&l.set(s,[...l.get(s)??[],t])}for(const[t,s]of l){const p=e=>b(o(e.partKey)??{}),a=E(s.filter(e=>p(e).entrance));if(a){const e=o(a.partKey)??{};c.push(A(t,d(e,r?"phone":"desktop"))),f.get(a.partKey)&&t.hasAttribute(T)&&w(t)}s.some(e=>p(e).hover==="lift")&&(R(t.ownerDocument),t.setAttribute(h,""),c.push(()=>t.removeAttribute(h)))}return()=>c.forEach(t=>t())}export{h as PART_LIFT_ATTR,K as paintPartMotion};
|
|
1
|
+
import{ENTRANCE_ATTR as h,playEntrance as x}from"efficient-shell/format";import{entranceReplay as w}from"../../../render/components/SectionAnimation.js";import{entranceOf as l}from"../../../render/lib/animation/entrance.js";import{PART_LIFT_ATTR as u,drawPartEntrance as A,ensurePartLiftSheet as T,firstOnPage as b,partBoxOf as g,partMotionDrawn as E}from"../../../render/lib/animation/part-motion.js";const y=new WeakMap;function v(a,p,d,m){const c=[],f=new Map;for(const{partKey:e}of a){if(f.has(e))continue;const t=p(e)??{},s=l(t,"desktop"),o=l(t,"phone"),n=m.get(e),r=n?w.next(n,s,o,d):null;m.set(e,r?r.seen:w.seed(s,o)),f.set(e,r?.play??!1)}const i=new Map,K=a.filter(e=>!a.some(t=>t!==e&&t.partKey===e.partKey&&t.element.contains(e.element)));for(const e of K){const t=g(e.element);t&&i.set(t,[...i.get(t)??[],e])}for(const[e,t]of i){const s=n=>E(p(n.partKey)??{}),o=b(t.filter(n=>s(n).entrance));if(o){const n=p(o.partKey)??{};c.push(A(e,l(n,d?"phone":"desktop")));const r=y.get(e);y.set(e,o.partKey),(f.get(o.partKey)||r!==void 0&&r!==o.partKey)&&e.hasAttribute(h)&&x(e)}else y.delete(e);t.some(n=>s(n).hover==="lift")&&(T(e.ownerDocument),e.setAttribute(u,""),c.push(()=>e.removeAttribute(u)))}return()=>c.forEach(e=>e())}export{u as PART_LIFT_ATTR,v as paintPartMotion};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{slugify as r}from"efficient-shell/format";function e(t){return typeof t=="string"?t.trim():t&&typeof t=="object"&&typeof t.text=="string"?t.text.trim():""}const n=t=>r(e(t));export{n as anchorSlug,e as readAnchorName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{anchorSlug as a}from"./anchor-name.js";function f(t){return typeof t=="string"?t.trim():""}const b="data-sf-box-link",v="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",x="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",u="data-sf-box-jump";function c(t){return`sf-box-jump-${t}`}function $(t,o){return t===!0?a(o):""}function p({box:t,lit:o,first:n}){const e=r=>r.join(`,
|
|
2
2
|
`),i=n(t),s=o.flatMap(n);return`
|
|
3
3
|
${t} {
|
|
4
4
|
outline: 2px solid transparent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const listNumber: (index: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r=t=>String(t+1).padStart(2,"0");export{r as listNumber};
|
|
@@ -19,6 +19,7 @@ export declare const SECTION_SCREEN_PCT: {
|
|
|
19
19
|
readonly fallback: 100;
|
|
20
20
|
};
|
|
21
21
|
export declare const SECTION_MIN_HEIGHT_CLASS = "sf-section-minh";
|
|
22
|
+
export declare const SECTION_GRID_COLUMN_CLASS = "grid-cols-[minmax(0,1fr)]";
|
|
22
23
|
export declare const SECTION_MIN_HEIGHT_VARS: {
|
|
23
24
|
readonly base: "--sf-section-minh";
|
|
24
25
|
readonly small: "--sf-section-minh-s";
|
|
@@ -58,7 +59,7 @@ export declare function sectionMinHeightAttrs(props: SectionMinHeightProps & Sec
|
|
|
58
59
|
style: CSSProperties;
|
|
59
60
|
} | null;
|
|
60
61
|
export declare function sectionFillsHeight(props: Record<string, unknown>): boolean;
|
|
61
|
-
export declare const SECTION_FILL_PASS_CLASS = "grid";
|
|
62
|
+
export declare const SECTION_FILL_PASS_CLASS = "grid grid-cols-[minmax(0,1fr)]";
|
|
62
63
|
export declare const SECTION_FILL_CLASS = "h-full";
|
|
63
|
-
export declare const SECTION_FILL_PASS_PHONE_CLASS = "max-[720px]:grid";
|
|
64
|
+
export declare const SECTION_FILL_PASS_PHONE_CLASS = "max-[720px]:grid grid-cols-[minmax(0,1fr)]";
|
|
64
65
|
export declare function sectionFillPassClass(props: Record<string, unknown>): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const I=["auto","fixed","screen"],f=["px","%"],M="svh",P="vh",E="var(--sf-header-h, 88px)",S={min:40,max:2e3,step:10,fallback:600},g={min:10,max:200,step:5,fallback:100},x="sf-section-minh",s="grid-cols-[minmax(0,1fr)]",l={base:"--sf-section-minh",small:"--sf-section-minh-s"},h=e=>typeof e=="string"&&I.includes(e),T=e=>typeof e=="string"&&f.includes(e);function H(e){const t=h(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":T(e.sectionHeightUnit)?e.sectionHeightUnit:"px",o=t==="screen"?g.fallback:S.fallback,i=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:o;return{mode:t,value:i,unit:n}}function a(e){const{mode:t,value:n,unit:o}=H(e);if(t==="auto")return;if(t==="fixed"&&o==="px")return[`${n}px`,null];const i=n/100,c=r=>t==="screen"?`(100${r} - ${E})`:`100${r}`;return[`calc(${c("vh")} * ${i})`,`calc(${c("svh")} * ${i})`]}function _(e){const t=a(e);if(!t)return;const[n,o]=t;return{display:"grid",[l.base]:n,...o?{[l.small]:o}:{}}}const p=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),A="Height",N="sf-section-minh-phone",u={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function d(e){return h(e.sectionHeightModePhone)}function U(e){return H({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function C(e){const t=_(e),n=d(e)?a({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})??(t?["auto",null]:void 0):void 0;if(!t&&!n)return null;const o=[x,s],i={...t??{}};return n&&(o.push(N),i[u.base]=n[0],n[1]&&(i[u.small]=n[1])),{className:o.join(" "),style:i}}function O(e){return C(e)!==null}const m=`grid ${s}`,V="h-full",L=`max-[720px]:grid ${s}`;function b(e){return O(e)?_(e)?m:L:""}export{E as HEADER_HEIGHT_VAR,V as SECTION_FILL_CLASS,m as SECTION_FILL_PASS_CLASS,L as SECTION_FILL_PASS_PHONE_CLASS,s as SECTION_GRID_COLUMN_CLASS,I as SECTION_HEIGHT_MODES,f as SECTION_HEIGHT_UNITS,S as SECTION_MIN_HEIGHT,x as SECTION_MIN_HEIGHT_CLASS,p as SECTION_MIN_HEIGHT_EXCLUDED,A as SECTION_MIN_HEIGHT_GROUP_LABEL,N as SECTION_MIN_HEIGHT_PHONE_CLASS,u as SECTION_MIN_HEIGHT_PHONE_VARS,l as SECTION_MIN_HEIGHT_VARS,g as SECTION_SCREEN_PCT,M as VIEWPORT_UNIT,P as VIEWPORT_UNIT_FALLBACK,d as hasPhoneHeight,U as resolvePhoneHeight,H as resolveSectionMinHeight,b as sectionFillPassClass,O as sectionFillsHeight,C as sectionMinHeightAttrs,a as sectionMinHeightLengths,_ as sectionMinHeightStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{finiteNumber as r}from"../finite-number.js";const _="Stick to top",s={min:0,max:200,step:4,fallback:0},a="sf-section-stick",u="sf-scroll-over",k="sf-section-stick-phone-on",f="sf-section-stick-phone-off",c={desktop:"--sf-stick-distance",phone:"--sf-stick-distance-phone"},x=new Set(["CategoryBar","DocTabs","IntroBleed"]);function i(o){const t=r(o)??s.fallback;return Math.min(s.max,Math.max(s.min,Math.round(t)))}function h(o){return typeof o.stickTopPhone=="boolean"}function C(o){const t=o.stickTop===!0,n=i(o.stickTopDistance),e=h(o),p=e?o.stickTopPhone===!0:t,S=e?i(o.stickTopDistancePhone):n;return{desktop:t,desktopDistance:n,phone:p,phoneDistance:S,ownPhone:e}}function I(o){const t=C(o);if(!t.desktop&&!t.phone)return null;const n=[a],e={};return t.desktop&&(e[c.desktop]=`${t.desktopDistance}px`),(t.ownPhone||t.phone!==t.desktop)&&(n.push(t.phone?k:f),t.phone&&(e[c.phone]=`${t.phoneDistance}px`)),t.desktop||n.push("sf-section-stick-desktop-off"),{className:n.join(" "),style:e}}export{u as SCROLL_OVER_CLASS,a as SECTION_STICK_CLASS,s as SECTION_STICK_DISTANCE,x as SECTION_STICK_EXCLUDED,_ as SECTION_STICK_LABEL,f as SECTION_STICK_PHONE_OFF_CLASS,k as SECTION_STICK_PHONE_ON_CLASS,c as SECTION_STICK_VARS,h as hasPhoneStick,C as resolveSectionStick,I as sectionStickAttrs};
|
|
1
|
+
import{finiteNumber as r}from"../finite-number.js";const _="Stick to top",s={min:0,max:200,step:4,fallback:0},a="sf-section-stick",u="sf-scroll-over",k="sf-section-stick-phone-on",f="sf-section-stick-phone-off",c={desktop:"--sf-stick-distance",phone:"--sf-stick-distance-phone"},x=new Set(["CategoryBar","DocTabs","IntroBleed","Contents"]);function i(o){const t=r(o)??s.fallback;return Math.min(s.max,Math.max(s.min,Math.round(t)))}function h(o){return typeof o.stickTopPhone=="boolean"}function C(o){const t=o.stickTop===!0,n=i(o.stickTopDistance),e=h(o),p=e?o.stickTopPhone===!0:t,S=e?i(o.stickTopDistancePhone):n;return{desktop:t,desktopDistance:n,phone:p,phoneDistance:S,ownPhone:e}}function I(o){const t=C(o);if(!t.desktop&&!t.phone)return null;const n=[a],e={};return t.desktop&&(e[c.desktop]=`${t.desktopDistance}px`),(t.ownPhone||t.phone!==t.desktop)&&(n.push(t.phone?k:f),t.phone&&(e[c.phone]=`${t.phoneDistance}px`)),t.desktop||n.push("sf-section-stick-desktop-off"),{className:n.join(" "),style:e}}export{u as SCROLL_OVER_CLASS,a as SECTION_STICK_CLASS,s as SECTION_STICK_DISTANCE,x as SECTION_STICK_EXCLUDED,_ as SECTION_STICK_LABEL,f as SECTION_STICK_PHONE_OFF_CLASS,k as SECTION_STICK_PHONE_ON_CLASS,c as SECTION_STICK_VARS,h as hasPhoneStick,C as resolveSectionStick,I as sectionStickAttrs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=120,S="sticky top-[120px]";export{S as STICKY_ASIDE_CLASS,t as STICKY_ASIDE_TOP};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={title:"On this page"},e={label:"Contents",defaultProps:{title:t.title,sticky:!0}};export{t as CONTENTS_PH,e as ContentsMeta};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as n}from"./ContactLocations/meta.js";import{CountdownMeta as s}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{
|
|
1
|
+
import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as n}from"./ContactLocations/meta.js";import{CountdownMeta as s}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{ContentsMeta as S}from"./Contents/meta.js";import{DocBodyMeta as l}from"./DocBody/meta.js";import{DocMastheadMeta as u}from"./DocMasthead/meta.js";import{DocMetaCardsMeta as T}from"./DocMetaCards/meta.js";import{DocTabsMeta as g}from"./DocTabs/meta.js";import{EyebrowMeta as B}from"./Eyebrow/meta.js";import{FAQMeta as C}from"./FAQ/meta.js";import{FeaturedCoverMeta as H}from"./FeaturedCover/meta.js";import{FlexMeta as P}from"./Flex/meta.js";import{FootprintMeta as L}from"./Footprint/meta.js";import{GridMeta as y}from"./Grid/meta.js";import{HeadingMeta as h}from"./Heading/meta.js";import{HeroGroupMeta as k}from"./HeroGroup/meta.js";import{HeroMeta as E}from"./Hero/meta.js";import{HeroSingleMeta as A}from"./HeroSingle/meta.js";import{HeroSlideMeta as D}from"./HeroSlide/meta.js";import{ImageBlockMeta as F}from"./ImageBlock/meta.js";import{IntegrationsMeta as R}from"./Integrations/meta.js";import{IntroBleedMeta as I}from"./IntroBleed/meta.js";import{KeyFeaturesMeta as x}from"./KeyFeatures/meta.js";import{LocationMapMeta as G}from"./LocationMap/meta.js";import{LogoBlockMeta as b}from"./LogoBlock/meta.js";import{LogosMeta as _}from"./Logos/meta.js";import{LongReadMeta as v}from"./LongRead/meta.js";import{ManifestoMeta as w}from"./Manifesto/meta.js";import{MastheadMeta as O}from"./Masthead/meta.js";import{MockupMeta as N}from"./Mockup/meta.js";import{OrderSummaryMeta as K}from"./OrderSummary/meta.js";import{ParagraphsAMeta as Q}from"./ParagraphsA/meta.js";import{PaymentBadgesMeta as W}from"./PaymentBadges/meta.js";import{PostCardMeta as X}from"./PostCard/meta.js";import{ProcessStepsMeta as j}from"./ProcessSteps/meta.js";import{ProseMeta as q}from"./Prose/meta.js";import{SectionHeaderMeta as z}from"./SectionHeader/meta.js";import{SeriesMeta as J}from"./Series/meta.js";import{SpacerMeta as U}from"./Spacer/meta.js";import{SpecStripMeta as V}from"./SpecStrip/meta.js";import{SplitMeta as Y}from"./Split/meta.js";import{StatsMeta as Z}from"./Stats/meta.js";import{StatsParagraphMeta as $}from"./StatsParagraph/meta.js";import{TestimonialsMeta as oo}from"./Testimonials/meta.js";import{TextMeta as to}from"./Text/meta.js";import{TickerMeta as ro}from"./Ticker/meta.js";import{TimelineMeta as eo}from"./Timeline/meta.js";import{TimelineTrackMeta as ao}from"./TimelineTrack/meta.js";import{TitleWithButtonsMeta as mo}from"./TitleWithButtons/meta.js";import io from"./text-part-shapes.json";const po={Banner:a,Breadcrumb:m,ButtonBlock:i,Cards:p,CategoryBar:M,Chart:f,ContactLocations:n,CustomHTML:c,Divider:d,Contents:S,DocBody:l,DocMasthead:u,DocMetaCards:T,DocTabs:g,Eyebrow:B,FAQ:C,FeaturedCover:H,Flex:P,Footprint:L,Grid:y,Heading:h,Hero:E,HeroGroup:k,HeroSingle:A,HeroSlide:D,ImageBlock:F,Integrations:R,IntroBleed:I,Countdown:s,KeyFeatures:x,LocationMap:G,LogoBlock:b,Logos:_,LongRead:v,Manifesto:w,Masthead:O,Mockup:N,OrderSummary:K,ParagraphsA:Q,PaymentBadges:W,PostCard:X,ProcessSteps:j,Prose:q,SectionHeader:z,Series:J,Spacer:U,SpecStrip:V,Split:Y,Stats:Z,StatsParagraph:$,Testimonials:oo,Text:to,Ticker:ro,Timeline:eo,TimelineTrack:ao,TitleWithButtons:mo},Mo=io;function St(){const t={};for(const o of e){const r=Mo[o];t[o]={...po[o],...r?{textParts:r}:null}}return t}export{po as GENERAL_METAS,St as generalRenderMetas};
|
|
@@ -228,6 +228,16 @@
|
|
|
228
228
|
"label": "HTML"
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
|
+
"Contents": {
|
|
232
|
+
"title": {
|
|
233
|
+
"type": "custom",
|
|
234
|
+
"__text": {
|
|
235
|
+
"control": "text",
|
|
236
|
+
"label": "Heading",
|
|
237
|
+
"placeholder": "On this page"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
231
241
|
"DocBody": {
|
|
232
242
|
"tocTitle": {
|
|
233
243
|
"type": "custom",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",T="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"}],i=[...c,{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],B=l.map(e=>e.type),O=1,
|
|
1
|
+
import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",T="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"}],i=[...c,{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"Contents",label:"Contents"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],B=l.map(e=>e.type),O=1,C=l.filter(e=>e.type!=="HeroGroup");function b(e){return e<O?l:C}const u={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:b}};function S(e,r=0){const t=u[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{T as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,B as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,S as containerBlocksFor};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Config } from "efficient-easel/blocks";
|
|
2
|
-
export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML"];
|
|
2
|
+
export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML"];
|
|
3
3
|
export declare function generalCategories(): Config["categories"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
|
|
1
|
+
import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HOME_PAGE_SLUG as
|
|
1
|
+
import{readAnchorName as a}from"../content/anchor-name.js";import{HOME_PAGE_SLUG as f}from"../document/home-page.js";import{slugify as i}from"efficient-shell/format";const s=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function P(e){return e.offersCommerce&&e.offersService?s:s.filter(t=>!t.needs||(t.needs==="commerce"?e.offersCommerce:e.offersService))}const u="#popup:";function g(e){return`${u}${e}`}function b(e){return e.startsWith(u)&&e.slice(u.length).trim()||null}function l(e){return e===f?"/":`/${e}`}function v(e){return`/journal/${e}`}function $(e){return`/wheels/${e}`}function A(e,t){return`${l(e)}#${t}`}function O(e){return i(e)}function S(...e){const t=new Set,n=[];for(const o of e)for(const p of o?.content??[]){const c=a(p?.props?.anchor);if(!c)continue;const r=i(c);!r||t.has(r)||(t.add(r),n.push({slug:r,name:c}))}return n}function w(e){const t=e.indexOf("#"),n=t===-1?e:e.slice(0,t),o=n.indexOf("?");return o===-1?n:n.slice(0,o)}function h(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}function K(e,t){if(!e)return"page";if(e.startsWith("/journal/"))return"blog";if(h(e))return"product";if(e.includes("#")){const n=e.slice(0,e.indexOf("#"));if(n===""||n==="/"||t.includes(n))return"anchor"}return e==="/"||t.includes(e)?"page":"custom"}export{s as LINK_KINDS,u as POPUP_LINK_PREFIX,A as anchorPath,K as inferKind,h as isProductPath,P as linkKindsFor,w as linkPagePath,S as pageAnchors,l as pagePath,g as popupPath,b as popupSlugOf,v as postPath,O as slugifyAnchor,$ as wheelPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};export{l as CONTENTS_REGIONS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{COLLECTION_CARD_TEXT_REGIONS as n}from"./collection-card-text-regions.js";import{FAQ_TEXT_REGIONS as t}from"./faq-text-regions.js";import{
|
|
1
|
+
import{COLLECTION_CARD_TEXT_REGIONS as n}from"./collection-card-text-regions.js";import{FAQ_TEXT_REGIONS as t}from"./faq-text-regions.js";import{CONTENTS_REGIONS as E}from"./contents-text-regions.js";import{SPEC_REGIONS as O}from"./spec-table-regions.js";const r={SpecTable:O,FAQ:t,Collections:n,Contents:E};function N(o){return o&&Object.hasOwn(r,o)?r[o]:null}export{r as SECTION_TEXT_REGIONS,N as regionsForSection};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PartStyles } from "../lib/document/part-styles.js";
|
|
2
|
+
export interface ContentsEntry {
|
|
3
|
+
label: string;
|
|
4
|
+
anchor: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const CONTENTS_STICKY_TOP = 120;
|
|
7
|
+
export default function ContentsList({ title, entries, stickyTop, sticky, editing, partStyles, }: {
|
|
8
|
+
title?: string;
|
|
9
|
+
entries: readonly ContentsEntry[];
|
|
10
|
+
stickyTop: number;
|
|
11
|
+
sticky?: boolean;
|
|
12
|
+
editing?: boolean;
|
|
13
|
+
partStyles?: PartStyles;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as n,jsxs as m}from"react/jsx-runtime";import{renderGold as c}from"./goldPhrases.js";import{listNumber as x}from"../../format/lib/content/list-number.js";import{STICKY_ASIDE_TOP as d}from"../../format/lib/content/sticky-aside.js";import{SIZE_STEP_OF_ROLE as T}from"../../format/lib/fonts.js";import{CONTENTS_REGIONS as b}from"../../format/lib/sections/contents-text-regions.js";import{TEXT_REGION_ATTR as h,regionStyle as u,textRegionPartKey as _}from"../../format/lib/sections/text-regions.js";const i=(e,t)=>e?{[h]:t}:{},p=(e,t)=>u(e?.[_(t)]?.role,b[t],T),C=d;function N({title:e,entries:t,stickyTop:f,sticky:s=!0,editing:a=!1,partStyles:l}){return m("aside",{className:`${s?"sticky ":""}flex flex-col self-start max-[900px]:static`,style:s?{top:f}:void 0,children:[e&&n("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:c(e)}),t.map((r,o)=>m("a",{href:`#${r.anchor}`,className:`flex items-center justify-between gap-3 border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${o===0?" border-t":""}`,children:[n("span",{...i(a,"entry"),style:p(l,"entry"),children:c(r.label||"Section")}),n("span",{...i(a,"number"),style:p(l,"number"),className:"text-accent",children:x(o)})]},`${o}-${r.anchor}`))]})}export{C as CONTENTS_STICKY_TOP,N as default};
|
|
@@ -4,10 +4,28 @@ export interface DocBodySection {
|
|
|
4
4
|
body: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function sectionAnchorId(label: string, index: number): string;
|
|
7
|
+
export declare function shownSections<S extends {
|
|
8
|
+
label?: unknown;
|
|
9
|
+
heading?: unknown;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
}>(sections: readonly S[] | undefined): S[];
|
|
12
|
+
export declare function sectionAnchorIds(sections: readonly {
|
|
13
|
+
label?: string;
|
|
14
|
+
heading?: string;
|
|
15
|
+
}[]): string[];
|
|
7
16
|
export interface DocBodyProps {
|
|
8
17
|
tocTitle?: string;
|
|
9
18
|
sections?: DocBodySection[];
|
|
10
19
|
editing?: boolean;
|
|
11
20
|
stickyTop?: number;
|
|
12
21
|
}
|
|
22
|
+
type DocBlock = {
|
|
23
|
+
type: "p";
|
|
24
|
+
text: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "ul";
|
|
27
|
+
items: string[];
|
|
28
|
+
};
|
|
29
|
+
export declare function parseBlocks(body: string): DocBlock[];
|
|
13
30
|
export default function DocBody({ tocTitle, sections, editing, stickyTop, }: DocBodyProps): import("react").JSX.Element | null;
|
|
31
|
+
export {};
|