@contentbit/studio 0.6.1 → 0.7.1

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.
@@ -1 +1 @@
1
- import{a as e,i as t,o as n,r,s as i,t as a}from"./index-WzJZ-6CK.js";import{a as o,c as s,d as c,i as l,l as u,n as d,o as f,r as p,s as m,u as h}from"./api-DA8X6vBb.js";var g=c(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),_=c(`blocks`,[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]),v=c(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),y=c(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),b=i(n()),x=e();function S(){let e=a.useSearch(),n=t({from:`/`}),[r,i]=(0,b.useState)(null),[c,g]=(0,b.useState)(null),[v,S]=(0,b.useState)(null),[O,j]=(0,b.useState)(!1);async function M(){j(!0),S(null);try{let[e,t]=await Promise.all([p(),d()]);i(e),g(t)}catch(e){S(e instanceof Error?e.message:String(e))}finally{j(!1)}}(0,b.useEffect)(()=>{M()},[]);let N=(0,b.useMemo)(()=>{if(!r)return[];let t=e.q.toLowerCase().trim();return r.files.filter(n=>{let r=[n.relativePath,n.title,n.slug,n.key,n.locale,n.keywords?.primary,...n.keywords?.secondary??[],...n.keywords?.lsi??[]].filter(Boolean).join(` `).toLowerCase();return(e.status===`all`||n.status===e.status)&&r.includes(t)}).sort((t,n)=>A(t,n,e.sort,e.dir))},[r,e.dir,e.q,e.sort,e.status]);function P(e){n({to:`/`,search:t=>({...t,...e})})}function F(t){P({sort:t,dir:e.sort===t&&e.dir===`asc`?`desc`:`asc`})}return(0,x.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,x.jsx)(`section`,{className:`border-b bg-muted/30`,children:(0,x.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-6 px-5 py-6`,children:[(0,x.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-end md:justify-between`,children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`contentbit studio`}),(0,x.jsx)(`h1`,{className:`mt-1 text-3xl font-semibold tracking-tight`,children:`Content dashboard`}),(0,x.jsx)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted-foreground`,children:`Read-only view of content health, structure, links, keywords, and previews.`})]}),(0,x.jsxs)(l,{onClick:M,disabled:O,className:`w-fit gap-2`,children:[(0,x.jsx)(s,{className:O?`size-4 animate-spin`:`size-4`}),`Refresh`]})]}),r&&(0,x.jsxs)(`div`,{className:`grid gap-px overflow-hidden rounded-sm border bg-border md:grid-cols-4`,children:[(0,x.jsx)(w,{label:`files`,value:r.summary.files,icon:(0,x.jsx)(h,{className:`size-4`})}),(0,x.jsx)(w,{label:`findings`,value:r.summary.errors+r.summary.warnings+r.summary.suggestions,icon:(0,x.jsx)(o,{className:`size-4`}),tone:r.summary.errors>0?`bad`:r.summary.warnings>0?`warn`:`ok`}),(0,x.jsx)(w,{label:`blocks`,value:r.summary.blocks,icon:(0,x.jsx)(_,{className:`size-4`})}),(0,x.jsx)(w,{label:`graph`,value:r.linkGraph?`${r.linkGraph.pages}/${r.linkGraph.links}`:`off`,icon:(0,x.jsx)(u,{className:`size-4`})})]})]})}),(0,x.jsxs)(`section`,{className:`mx-auto grid max-w-7xl gap-5 px-5 py-5 lg:grid-cols-[minmax(0,1fr)_320px]`,children:[(0,x.jsxs)(`div`,{className:`min-w-0`,children:[(0,x.jsxs)(`div`,{className:`mb-3 flex flex-col gap-2 md:flex-row`,children:[(0,x.jsxs)(`label`,{className:`relative flex min-w-0 flex-1 items-center`,children:[(0,x.jsx)(m,{className:`pointer-events-none absolute left-3 size-4 text-muted-foreground`}),(0,x.jsx)(`input`,{value:e.q,onChange:e=>P({q:e.target.value}),placeholder:`Search path, title, slug, keyword...`,className:`h-10 w-full border bg-background pl-9 pr-3 text-sm outline-none transition-colors focus:border-foreground`})]}),(0,x.jsxs)(`div`,{className:`flex items-center gap-1 border bg-background p-1`,children:[(0,x.jsx)(y,{className:`mx-2 size-4 text-muted-foreground`}),[`all`,`error`,`warning`,`suggestion`,`healthy`].map(t=>(0,x.jsx)(`button`,{onClick:()=>P({status:t}),className:e.status===t?`bg-foreground px-2.5 py-1.5 text-xs font-medium text-background`:`px-2.5 py-1.5 text-xs text-muted-foreground hover:text-foreground`,children:t},t))]})]}),(0,x.jsxs)(`div`,{className:`overflow-hidden border`,children:[(0,x.jsxs)(`div`,{className:`grid grid-cols-[1.4fr_0.6fr_0.6fr_0.6fr_2rem] gap-px border-b bg-border text-xs font-medium uppercase text-muted-foreground`,children:[(0,x.jsx)(k,{label:`Document`,active:e.sort===`document`,onClick:()=>F(`document`)}),(0,x.jsx)(k,{label:`Status`,active:e.sort===`status`,onClick:()=>F(`status`)}),(0,x.jsx)(k,{label:`Blocks`,active:e.sort===`blocks`,onClick:()=>F(`blocks`)}),(0,x.jsx)(k,{label:`Keywords`,active:e.sort===`keywords`,onClick:()=>F(`keywords`)}),(0,x.jsx)(`div`,{className:`bg-muted/50 px-2 py-2`})]}),v?(0,x.jsx)(`div`,{className:`p-4 text-sm text-destructive`,children:v}):r?(0,x.jsxs)(`div`,{className:`divide-y`,children:[N.map(e=>(0,x.jsx)(C,{file:e},e.path)),N.length===0&&(0,x.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground`,children:`No documents match the current filters.`})]}):(0,x.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground`,children:`Scanning content...`})]})]}),(0,x.jsxs)(`aside`,{className:`flex flex-col gap-4`,children:[r?.seo&&(0,x.jsxs)(E,{title:`SEO`,children:[(0,x.jsxs)(`div`,{className:`grid grid-cols-3 gap-px overflow-hidden border bg-border text-center`,children:[(0,x.jsx)(T,{value:r.seo.pages,label:`pages`}),(0,x.jsx)(T,{value:r.seo.planned,label:`planned`}),(0,x.jsx)(T,{value:r.seo.findings,label:`findings`})]}),(0,x.jsxs)(`div`,{className:`mt-3 flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,x.jsx)(f,{className:`size-4`}),(0,x.jsx)(`span`,{children:r.seo.schemaVersion})]})]}),(0,x.jsxs)(E,{title:`Link graph`,children:[r?.linkGraph?(0,x.jsxs)(`div`,{className:`grid grid-cols-3 gap-px overflow-hidden border bg-border text-center`,children:[(0,x.jsx)(T,{value:r.linkGraph.pages,label:`pages`}),(0,x.jsx)(T,{value:r.linkGraph.links,label:`links`}),(0,x.jsx)(T,{value:r.linkGraph.orphans,label:`orphans`})]}):(0,x.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No slug frontmatter detected.`}),c&&c.edges.length>0&&(0,x.jsx)(`ul`,{className:`mt-3 flex max-h-56 flex-col gap-2 overflow-auto text-xs`,children:c.edges.slice(0,12).map((e,t)=>(0,x.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,x.jsx)(`span`,{className:e.status===`unresolved`?`text-destructive`:`text-muted-foreground`,children:e.status}),(0,x.jsx)(`span`,{className:`truncate`,children:e.target})]},`${e.from}-${e.target}-${t}`))})]}),(0,x.jsx)(E,{title:`Block usage`,children:r&&Object.keys(r.blockUsage).length>0?(0,x.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Object.entries(r.blockUsage).map(([e,t])=>(0,x.jsxs)(`span`,{className:`border bg-muted px-2 py-1 font-mono text-xs`,children:[e,` x`,t]},e))}):(0,x.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No blocks found yet.`})}),(0,x.jsx)(E,{title:`Keyword coverage`,children:r&&(0,x.jsxs)(`div`,{className:`space-y-2 text-sm`,children:[(0,x.jsx)(D,{label:`primary`,value:r.keywordCoverage.withPrimary,total:r.keywordCoverage.total}),(0,x.jsx)(D,{label:`secondary`,value:r.keywordCoverage.withSecondary,total:r.keywordCoverage.total})]})})]})]})]})}function C({file:e}){return(0,x.jsxs)(r,{to:`/document`,search:{path:e.path},className:`grid grid-cols-[1.4fr_0.6fr_0.6fr_0.6fr_2rem] gap-px bg-border text-sm transition-colors hover:bg-foreground/20`,children:[(0,x.jsxs)(`div`,{className:`min-w-0 bg-background px-3 py-3`,children:[(0,x.jsx)(`p`,{className:`truncate font-medium`,children:e.title}),(0,x.jsx)(`p`,{className:`truncate font-mono text-xs text-muted-foreground`,children:e.relativePath})]}),(0,x.jsx)(`div`,{className:`bg-background px-3 py-3`,children:(0,x.jsx)(O,{status:e.status})}),(0,x.jsx)(`div`,{className:`bg-background px-3 py-3 font-mono text-xs`,children:e.blocks}),(0,x.jsx)(`div`,{className:`bg-background px-3 py-3 text-xs text-muted-foreground`,children:e.keywords?.primary?`primary`:`missing`}),(0,x.jsx)(`div`,{className:`flex items-center justify-center bg-background px-2 py-3`,children:(0,x.jsx)(g,{className:`size-4 text-muted-foreground`})})]})}function w({label:e,value:t,icon:n,tone:r}){return(0,x.jsxs)(`div`,{className:`bg-background p-4`,children:[(0,x.jsxs)(`div`,{className:`mb-3 flex items-center justify-between text-muted-foreground`,children:[(0,x.jsx)(`span`,{className:`text-xs uppercase`,children:e}),n]}),(0,x.jsx)(`div`,{className:`font-mono text-3xl font-semibold ${r===`bad`?`text-destructive`:r===`warn`?`text-amber-600`:r===`ok`?`text-emerald-600`:`text-foreground`}`,children:t})]})}function T({value:e,label:t}){return(0,x.jsxs)(`div`,{className:`bg-background px-2 py-2`,children:[(0,x.jsx)(`div`,{className:`font-mono text-lg font-semibold`,children:e}),(0,x.jsx)(`div`,{className:`text-[0.65rem] uppercase text-muted-foreground`,children:t})]})}function E({title:e,children:t}){return(0,x.jsxs)(`section`,{className:`border bg-background p-4`,children:[(0,x.jsx)(`h2`,{className:`mb-3 text-sm font-semibold`,children:e}),t]})}function D({label:e,value:t,total:n}){let r=n===0?0:Math.round(t/n*100);return(0,x.jsxs)(`div`,{children:[(0,x.jsxs)(`div`,{className:`mb-1 flex justify-between text-xs`,children:[(0,x.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,x.jsxs)(`span`,{className:`font-mono`,children:[r,`%`]})]}),(0,x.jsx)(`div`,{className:`h-2 bg-muted`,children:(0,x.jsx)(`div`,{className:`h-full bg-foreground`,style:{width:`${r}%`}})})]})}function O({status:e}){return(0,x.jsx)(`span`,{className:`inline-flex border px-2 py-0.5 text-xs ${e===`error`?`border-destructive/40 bg-destructive/10 text-destructive`:e===`warning`?`border-amber-500/40 bg-amber-500/10 text-amber-700`:e===`suggestion`?`border-blue-500/40 bg-blue-500/10 text-blue-700`:`border-emerald-500/40 bg-emerald-500/10 text-emerald-700`}`,children:e})}function k({label:e,active:t,onClick:n}){return(0,x.jsxs)(`button`,{className:t?`flex items-center gap-1 bg-muted px-3 py-2 text-foreground`:`flex items-center gap-1 bg-muted/50 px-3 py-2 hover:text-foreground`,onClick:n,children:[e,(0,x.jsx)(v,{className:`size-3`})]})}function A(e,t,n,r){let i=r===`asc`?1:-1,a={error:0,warning:1,suggestion:2,healthy:3};return((n===`status`?a[e.status]-a[t.status]:n===`blocks`?e.blocks-t.blocks:n===`keywords`?j(e)-j(t):n===`findings`?M(e)-M(t):e.relativePath.localeCompare(t.relativePath))||e.relativePath.localeCompare(t.relativePath))*i}function j(e){return+!!e.keywords?.primary+ +!!e.keywords?.secondary?.length+ +!!e.keywords?.lsi?.length}function M(e){return e.findings.errors*100+e.findings.warnings*10+e.findings.suggestions}export{S as component};
1
+ import{a as e,i as t,o as n,r,s as i,t as a}from"./index-C0ybJ4zQ.js";import{a as o,c as s,d as c,i as l,l as u,n as d,o as f,r as p,s as m,u as h}from"./api-BX-WUPtV.js";var g=c(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),_=c(`blocks`,[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]),v=c(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),y=c(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),b=i(n()),x=e();function S(){let e=a.useSearch(),n=t({from:`/`}),[r,i]=(0,b.useState)(null),[c,g]=(0,b.useState)(null),[v,S]=(0,b.useState)(null),[O,j]=(0,b.useState)(!1);async function M(){j(!0),S(null);try{let[e,t]=await Promise.all([p(),d()]);i(e),g(t)}catch(e){S(e instanceof Error?e.message:String(e))}finally{j(!1)}}(0,b.useEffect)(()=>{M()},[]);let N=(0,b.useMemo)(()=>{if(!r)return[];let t=e.q.toLowerCase().trim();return r.files.filter(n=>{let r=[n.relativePath,n.title,n.slug,n.key,n.locale,n.keywords?.primary,...n.keywords?.secondary??[],...n.keywords?.lsi??[]].filter(Boolean).join(` `).toLowerCase();return(e.status===`all`||n.status===e.status)&&r.includes(t)}).sort((t,n)=>A(t,n,e.sort,e.dir))},[r,e.dir,e.q,e.sort,e.status]);function P(e){n({to:`/`,search:t=>({...t,...e})})}function F(t){P({sort:t,dir:e.sort===t&&e.dir===`asc`?`desc`:`asc`})}return(0,x.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,x.jsx)(`section`,{className:`border-b bg-muted/30`,children:(0,x.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-6 px-5 py-6`,children:[(0,x.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-end md:justify-between`,children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`contentbit studio`}),(0,x.jsx)(`h1`,{className:`mt-1 text-3xl font-semibold tracking-tight`,children:`Content dashboard`}),(0,x.jsx)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted-foreground`,children:`Read-only view of content health, structure, links, keywords, and previews.`})]}),(0,x.jsxs)(l,{onClick:M,disabled:O,className:`w-fit gap-2`,children:[(0,x.jsx)(s,{className:O?`size-4 animate-spin`:`size-4`}),`Refresh`]})]}),r&&(0,x.jsxs)(`div`,{className:`grid gap-px overflow-hidden rounded-sm border bg-border md:grid-cols-4`,children:[(0,x.jsx)(w,{label:`files`,value:r.summary.files,icon:(0,x.jsx)(h,{className:`size-4`})}),(0,x.jsx)(w,{label:`findings`,value:r.summary.errors+r.summary.warnings+r.summary.suggestions,icon:(0,x.jsx)(o,{className:`size-4`}),tone:r.summary.errors>0?`bad`:r.summary.warnings>0?`warn`:`ok`}),(0,x.jsx)(w,{label:`blocks`,value:r.summary.blocks,icon:(0,x.jsx)(_,{className:`size-4`})}),(0,x.jsx)(w,{label:`graph`,value:r.linkGraph?`${r.linkGraph.pages}/${r.linkGraph.links}`:`off`,icon:(0,x.jsx)(u,{className:`size-4`})})]})]})}),(0,x.jsxs)(`section`,{className:`mx-auto grid max-w-7xl gap-5 px-5 py-5 lg:grid-cols-[minmax(0,1fr)_320px]`,children:[(0,x.jsxs)(`div`,{className:`min-w-0`,children:[(0,x.jsxs)(`div`,{className:`mb-3 flex flex-col gap-2 md:flex-row`,children:[(0,x.jsxs)(`label`,{className:`relative flex min-w-0 flex-1 items-center`,children:[(0,x.jsx)(m,{className:`pointer-events-none absolute left-3 size-4 text-muted-foreground`}),(0,x.jsx)(`input`,{value:e.q,onChange:e=>P({q:e.target.value}),placeholder:`Search path, title, slug, keyword...`,className:`h-10 w-full border bg-background pl-9 pr-3 text-sm outline-none transition-colors focus:border-foreground`})]}),(0,x.jsxs)(`div`,{className:`flex items-center gap-1 border bg-background p-1`,children:[(0,x.jsx)(y,{className:`mx-2 size-4 text-muted-foreground`}),[`all`,`error`,`warning`,`suggestion`,`healthy`].map(t=>(0,x.jsx)(`button`,{onClick:()=>P({status:t}),className:e.status===t?`bg-foreground px-2.5 py-1.5 text-xs font-medium text-background`:`px-2.5 py-1.5 text-xs text-muted-foreground hover:text-foreground`,children:t},t))]})]}),(0,x.jsxs)(`div`,{className:`overflow-hidden border`,children:[(0,x.jsxs)(`div`,{className:`grid grid-cols-[1.4fr_0.6fr_0.6fr_0.6fr_2rem] gap-px border-b bg-border text-xs font-medium uppercase text-muted-foreground`,children:[(0,x.jsx)(k,{label:`Document`,active:e.sort===`document`,onClick:()=>F(`document`)}),(0,x.jsx)(k,{label:`Status`,active:e.sort===`status`,onClick:()=>F(`status`)}),(0,x.jsx)(k,{label:`Blocks`,active:e.sort===`blocks`,onClick:()=>F(`blocks`)}),(0,x.jsx)(k,{label:`Keywords`,active:e.sort===`keywords`,onClick:()=>F(`keywords`)}),(0,x.jsx)(`div`,{className:`bg-muted/50 px-2 py-2`})]}),v?(0,x.jsx)(`div`,{className:`p-4 text-sm text-destructive`,children:v}):r?(0,x.jsxs)(`div`,{className:`divide-y`,children:[N.map(e=>(0,x.jsx)(C,{file:e},e.path)),N.length===0&&(0,x.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground`,children:`No documents match the current filters.`})]}):(0,x.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground`,children:`Scanning content...`})]})]}),(0,x.jsxs)(`aside`,{className:`flex flex-col gap-4`,children:[r?.seo&&(0,x.jsxs)(E,{title:`SEO`,children:[(0,x.jsxs)(`div`,{className:`grid grid-cols-3 gap-px overflow-hidden border bg-border text-center`,children:[(0,x.jsx)(T,{value:r.seo.pages,label:`pages`}),(0,x.jsx)(T,{value:r.seo.planned,label:`planned`}),(0,x.jsx)(T,{value:r.seo.findings,label:`findings`})]}),(0,x.jsxs)(`div`,{className:`mt-3 flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,x.jsx)(f,{className:`size-4`}),(0,x.jsx)(`span`,{children:r.seo.schemaVersion})]})]}),(0,x.jsxs)(E,{title:`Link graph`,children:[r?.linkGraph?(0,x.jsxs)(`div`,{className:`grid grid-cols-3 gap-px overflow-hidden border bg-border text-center`,children:[(0,x.jsx)(T,{value:r.linkGraph.pages,label:`pages`}),(0,x.jsx)(T,{value:r.linkGraph.links,label:`links`}),(0,x.jsx)(T,{value:r.linkGraph.orphans,label:`orphans`})]}):(0,x.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No slug frontmatter detected.`}),c&&c.edges.length>0&&(0,x.jsx)(`ul`,{className:`mt-3 flex max-h-56 flex-col gap-2 overflow-auto text-xs`,children:c.edges.slice(0,12).map((e,t)=>(0,x.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,x.jsx)(`span`,{className:e.status===`unresolved`?`text-destructive`:`text-muted-foreground`,children:e.status}),(0,x.jsx)(`span`,{className:`truncate`,children:e.target})]},`${e.from}-${e.target}-${t}`))})]}),(0,x.jsx)(E,{title:`Block usage`,children:r&&Object.keys(r.blockUsage).length>0?(0,x.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Object.entries(r.blockUsage).map(([e,t])=>(0,x.jsxs)(`span`,{className:`border bg-muted px-2 py-1 font-mono text-xs`,children:[e,` x`,t]},e))}):(0,x.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No blocks found yet.`})}),(0,x.jsx)(E,{title:`Keyword coverage`,children:r&&(0,x.jsxs)(`div`,{className:`space-y-2 text-sm`,children:[(0,x.jsx)(D,{label:`primary`,value:r.keywordCoverage.withPrimary,total:r.keywordCoverage.total}),(0,x.jsx)(D,{label:`secondary`,value:r.keywordCoverage.withSecondary,total:r.keywordCoverage.total})]})})]})]})]})}function C({file:e}){return(0,x.jsxs)(r,{to:`/document`,search:{path:e.path},className:`grid grid-cols-[1.4fr_0.6fr_0.6fr_0.6fr_2rem] gap-px bg-border text-sm transition-colors hover:bg-foreground/20`,children:[(0,x.jsxs)(`div`,{className:`min-w-0 bg-background px-3 py-3`,children:[(0,x.jsx)(`p`,{className:`truncate font-medium`,children:e.title}),(0,x.jsx)(`p`,{className:`truncate font-mono text-xs text-muted-foreground`,children:e.relativePath})]}),(0,x.jsx)(`div`,{className:`bg-background px-3 py-3`,children:(0,x.jsx)(O,{status:e.status})}),(0,x.jsx)(`div`,{className:`bg-background px-3 py-3 font-mono text-xs`,children:e.blocks}),(0,x.jsx)(`div`,{className:`bg-background px-3 py-3 text-xs text-muted-foreground`,children:e.keywords?.primary?`primary`:`missing`}),(0,x.jsx)(`div`,{className:`flex items-center justify-center bg-background px-2 py-3`,children:(0,x.jsx)(g,{className:`size-4 text-muted-foreground`})})]})}function w({label:e,value:t,icon:n,tone:r}){return(0,x.jsxs)(`div`,{className:`bg-background p-4`,children:[(0,x.jsxs)(`div`,{className:`mb-3 flex items-center justify-between text-muted-foreground`,children:[(0,x.jsx)(`span`,{className:`text-xs uppercase`,children:e}),n]}),(0,x.jsx)(`div`,{className:`font-mono text-3xl font-semibold ${r===`bad`?`text-destructive`:r===`warn`?`text-amber-600`:r===`ok`?`text-emerald-600`:`text-foreground`}`,children:t})]})}function T({value:e,label:t}){return(0,x.jsxs)(`div`,{className:`bg-background px-2 py-2`,children:[(0,x.jsx)(`div`,{className:`font-mono text-lg font-semibold`,children:e}),(0,x.jsx)(`div`,{className:`text-[0.65rem] uppercase text-muted-foreground`,children:t})]})}function E({title:e,children:t}){return(0,x.jsxs)(`section`,{className:`border bg-background p-4`,children:[(0,x.jsx)(`h2`,{className:`mb-3 text-sm font-semibold`,children:e}),t]})}function D({label:e,value:t,total:n}){let r=n===0?0:Math.round(t/n*100);return(0,x.jsxs)(`div`,{children:[(0,x.jsxs)(`div`,{className:`mb-1 flex justify-between text-xs`,children:[(0,x.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,x.jsxs)(`span`,{className:`font-mono`,children:[r,`%`]})]}),(0,x.jsx)(`div`,{className:`h-2 bg-muted`,children:(0,x.jsx)(`div`,{className:`h-full bg-foreground`,style:{width:`${r}%`}})})]})}function O({status:e}){return(0,x.jsx)(`span`,{className:`inline-flex border px-2 py-0.5 text-xs ${e===`error`?`border-destructive/40 bg-destructive/10 text-destructive`:e===`warning`?`border-amber-500/40 bg-amber-500/10 text-amber-700`:e===`suggestion`?`border-blue-500/40 bg-blue-500/10 text-blue-700`:`border-emerald-500/40 bg-emerald-500/10 text-emerald-700`}`,children:e})}function k({label:e,active:t,onClick:n}){return(0,x.jsxs)(`button`,{className:t?`flex items-center gap-1 bg-muted px-3 py-2 text-foreground`:`flex items-center gap-1 bg-muted/50 px-3 py-2 hover:text-foreground`,onClick:n,children:[e,(0,x.jsx)(v,{className:`size-3`})]})}function A(e,t,n,r){let i=r===`asc`?1:-1,a={error:0,warning:1,suggestion:2,healthy:3};return((n===`status`?a[e.status]-a[t.status]:n===`blocks`?e.blocks-t.blocks:n===`keywords`?j(e)-j(t):n===`findings`?M(e)-M(t):e.relativePath.localeCompare(t.relativePath))||e.relativePath.localeCompare(t.relativePath))*i}function j(e){return+!!e.keywords?.primary+ +!!e.keywords?.secondary?.length+ +!!e.keywords?.lsi?.length}function M(e){return e.findings.errors*100+e.findings.warnings*10+e.findings.suggestions}export{S as component};
@@ -3,22 +3,22 @@ var tsrStartManifest = () => ({ routes: {
3
3
  __root__: {
4
4
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/__root.tsx",
5
5
  children: ["/", "/document"],
6
- preloads: ["/assets/index-WzJZ-6CK.js"],
6
+ preloads: ["/assets/index-C0ybJ4zQ.js"],
7
7
  scripts: [{ attrs: {
8
8
  type: "module",
9
9
  async: !0,
10
- src: "/assets/index-WzJZ-6CK.js"
10
+ src: "/assets/index-C0ybJ4zQ.js"
11
11
  } }]
12
12
  },
13
13
  "/": {
14
14
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/index.tsx",
15
15
  children: void 0,
16
- preloads: ["/assets/routes-BWt7eK2V.js", "/assets/api-DA8X6vBb.js"]
16
+ preloads: ["/assets/routes-ACKdIhYm.js", "/assets/api-BX-WUPtV.js"]
17
17
  },
18
18
  "/document": {
19
19
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/document.tsx",
20
20
  children: void 0,
21
- preloads: ["/assets/document-BJw10sM7.js", "/assets/api-DA8X6vBb.js"]
21
+ preloads: ["/assets/document-BOMp4_F5.js", "/assets/api-BX-WUPtV.js"]
22
22
  }
23
23
  } });
24
24
  //#endregion
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/empty-plugin-adapters.js
1
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/empty-plugin-adapters.js
2
2
  var pluginSerializationAdapters = [];
3
3
  var hasPluginAdapters = false;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@tanstack+react-start@1.168.26_react-dom@19.2.7_react@19.2.7__react@19.2.7_vite@8.0.16__ab3bb52b22b1abc10e7023e1ae4545d9/node_modules/@tanstack/react-start/dist/plugin/default-entry/start.ts
1
+ //#region ../../node_modules/.pnpm/@tanstack+react-start@1.168.27_react-dom@19.2.7_react@19.2.7__react@19.2.7_vite@8.0.16__04ebb5e2b289a20a458eb7b1bb11e27f/node_modules/@tanstack/react-start/dist/plugin/default-entry/start.ts
2
2
  var startInstance = void 0;
3
3
  //#endregion
4
4
  export { startInstance };
@@ -1,6 +1,6 @@
1
1
  import type { BlockComponent } from '@contentbit/react';
2
- import type { ValidatedDocumentNode } from '@contentbit/core';
3
- export declare function renderStudioPreview(document: ValidatedDocumentNode, components?: Record<string, BlockComponent>, _options?: {
2
+ import type { ProcessedDocumentNode } from '@contentbit/core';
3
+ export declare function renderStudioPreview(document: ProcessedDocumentNode, components?: Record<string, BlockComponent>, _options?: {
4
4
  includeGenericComponents?: boolean;
5
5
  }): string;
6
6
  //# sourceMappingURL=preview.d.ts.map
@@ -4,12 +4,12 @@ import { jsx } from "react/jsx-runtime";
4
4
  import { defineHandlerCallback, renderRouterToStream } from "@tanstack/react-router/ssr/server";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { PassThrough, Readable } from "node:stream";
7
- //#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.20_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-start-server/dist/esm/StartServer.js
7
+ //#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.21_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-start-server/dist/esm/StartServer.js
8
8
  function StartServer(props) {
9
9
  return /* @__PURE__ */ jsx(RouterProvider, { router: props.router });
10
10
  }
11
11
  //#endregion
12
- //#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.20_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-start-server/dist/esm/defaultStreamHandler.js
12
+ //#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.21_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-start-server/dist/esm/defaultStreamHandler.js
13
13
  var defaultStreamHandler = defineHandlerCallback(({ request, router, responseHeaders }) => renderRouterToStream({
14
14
  request,
15
15
  router,
@@ -550,7 +550,7 @@ function errorResponse(error, debug, errHeaders) {
550
550
  });
551
551
  }
552
552
  //#endregion
553
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/request-response.js
553
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/request-response.js
554
554
  var GLOBAL_EVENT_STORAGE_KEY = Symbol.for("tanstack-start:event-storage");
555
555
  var globalObj$1 = globalThis;
556
556
  if (!globalObj$1[GLOBAL_EVENT_STORAGE_KEY]) globalObj$1[GLOBAL_EVENT_STORAGE_KEY] = new AsyncLocalStorage();
@@ -605,17 +605,26 @@ function getResponse() {
605
605
  return getH3Event().res;
606
606
  }
607
607
  //#endregion
608
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/constants.js
608
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/constants.js
609
609
  var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
610
610
  //#endregion
611
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/utils.js
611
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/utils.js
612
612
  /**
613
- * Remove control characters that can cause open redirect vulnerabilities.
614
- * Characters like \r (CR) and \n (LF) can trick URL parsers into interpreting
615
- * paths like "/\r/evil.com" as "http://evil.com".
613
+ * Re-encode characters that are unsafe in URL paths.
614
+ * Includes ASCII control characters (0x00-0x1F, 0x7F) and a subset of the
615
+ * WHATWG URL "path percent-encode set" (", <, >, `, {, }).
616
+ *
617
+ * Space (0x20) is intentionally excluded — decodeURI decodes %20 to space
618
+ * and the router stores decoded spaces in location.pathname. The existing
619
+ * encodePathLikeUrl already handles re-encoding spaces for outgoing URLs.
620
+ *
621
+ * These characters are decoded by decodeURI but must remain percent-encoded
622
+ * in paths to match how upstream layers (CDNs, edge middleware, browsers)
623
+ * interpret the URL, preventing infinite redirect loops and path mismatches.
616
624
  */
625
+ var PATH_UNSAFE_RE = /[\x00-\x1f\x7f"<>`{}]/g;
617
626
  function sanitizePathSegment(segment) {
618
- return segment.replace(/[\x00-\x1f\x7f]/g, "");
627
+ return segment.replace(PATH_UNSAFE_RE, (ch) => "%" + ch.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0"));
619
628
  }
620
629
  function decodeSegment(segment) {
621
630
  let decoded;
@@ -661,12 +670,12 @@ function decodePath(path) {
661
670
  };
662
671
  }
663
672
  //#endregion
664
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/invariant.js
673
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/invariant.js
665
674
  function invariant() {
666
675
  throw new Error("Invariant failed");
667
676
  }
668
677
  //#endregion
669
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/lru-cache.js
678
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/lru-cache.js
670
679
  function createLRUCache(max) {
671
680
  const cache = /* @__PURE__ */ new Map();
672
681
  let oldest;
@@ -733,17 +742,17 @@ function createLRUCache(max) {
733
742
  };
734
743
  }
735
744
  //#endregion
736
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/not-found.js
745
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/not-found.js
737
746
  /** Determine if a value is a TanStack Router not-found error. */
738
747
  function isNotFound(obj) {
739
748
  return obj?.isNotFound === true;
740
749
  }
741
750
  //#endregion
742
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/root.js
751
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/root.js
743
752
  /** Stable identifier used for the root route in a route tree. */
744
753
  var rootRouteId = "__root__";
745
754
  //#endregion
746
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/redirect.js
755
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/redirect.js
747
756
  /** Check whether a value is a TanStack Router redirect Response. */
748
757
  /** Check whether a value is a TanStack Router redirect Response. */
749
758
  function isRedirect(obj) {
@@ -755,7 +764,7 @@ function isResolvedRedirect(obj) {
755
764
  return isRedirect(obj) && !!obj.options.href;
756
765
  }
757
766
  //#endregion
758
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/rewrite.js
767
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/rewrite.js
759
768
  /** Execute a location input rewrite if provided. */
760
769
  function executeRewriteInput(rewrite, url) {
761
770
  const res = rewrite?.input?.({ url });
@@ -976,7 +985,7 @@ function createRandomKey() {
976
985
  return (Math.random() + 1).toString(36).substring(7);
977
986
  }
978
987
  //#endregion
979
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/manifest.js
988
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/manifest.js
980
989
  function getAssetCrossOrigin(assetCrossOrigin, kind) {
981
990
  if (!assetCrossOrigin) return;
982
991
  if (typeof assetCrossOrigin === "string") return assetCrossOrigin;
@@ -1024,7 +1033,7 @@ function createInlineCssPlaceholderAsset() {
1024
1033
  return { attrs: { suppressHydrationWarning: true } };
1025
1034
  }
1026
1035
  //#endregion
1027
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/constants.js
1036
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/constants.js
1028
1037
  var GLOBAL_TSR = "$_TSR";
1029
1038
  var TSR_SCRIPT_BARRIER_ID = "$tsr-stream-barrier";
1030
1039
  //#endregion
@@ -2969,7 +2978,7 @@ function Pu(e, r = {}) {
2969
2978
  }), e.t);
2970
2979
  }
2971
2980
  //#endregion
2972
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/transformer.js
2981
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/transformer.js
2973
2982
  /**
2974
2983
  * Create a strongly-typed serialization adapter for SSR hydration.
2975
2984
  * Use to register custom types with the router serializer.
@@ -3017,7 +3026,7 @@ function makeSerovalPlugin(serializationAdapter) {
3017
3026
  });
3018
3027
  }
3019
3028
  //#endregion
3020
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/RawStream.js
3029
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/RawStream.js
3021
3030
  /**
3022
3031
  * Marker class for ReadableStream<Uint8Array> that should be serialized
3023
3032
  * with base64 encoding (SSR) or binary framing (server functions).
@@ -3285,7 +3294,7 @@ function createRawStreamRPCPlugin(onRawStream) {
3285
3294
  });
3286
3295
  }
3287
3296
  //#endregion
3288
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/ShallowErrorPlugin.js
3297
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/ShallowErrorPlugin.js
3289
3298
  /**
3290
3299
  * this plugin serializes only the `message` part of an Error
3291
3300
  * this helps with serializing e.g. a ZodError which has functions attached that cannot be serialized
@@ -3365,7 +3374,7 @@ function w(e) {
3365
3374
  return t().catch(() => {}), r;
3366
3375
  }
3367
3376
  //#endregion
3368
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/seroval-plugins.js
3377
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/seroval-plugins.js
3369
3378
  var defaultSerovalPlugins = [
3370
3379
  ShallowErrorPlugin,
3371
3380
  RawStreamSSRPlugin,
@@ -3404,7 +3413,7 @@ var defaultSerovalPlugins = [
3404
3413
  })
3405
3414
  ];
3406
3415
  //#endregion
3407
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js
3416
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js
3408
3417
  /**
3409
3418
  * @description Returns the router manifest data that should be sent to the client.
3410
3419
  * This includes only the assets and preloads for the current route and any
@@ -3415,7 +3424,7 @@ var defaultSerovalPlugins = [
3415
3424
  * the dev styles URL for route-scoped CSS collection.
3416
3425
  */
3417
3426
  async function getStartManifest(matchedRoutes) {
3418
- const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-DyPYRepF.js");
3427
+ const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-BC1PNuB0.js");
3419
3428
  const startManifest = tsrStartManifest();
3420
3429
  let routes = startManifest.routes;
3421
3430
  routes[rootRouteId];
@@ -3447,7 +3456,7 @@ async function getServerFnById(id, access) {
3447
3456
  return action;
3448
3457
  }
3449
3458
  //#endregion
3450
- //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.12/node_modules/@tanstack/start-client-core/dist/esm/constants.js
3459
+ //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/constants.js
3451
3460
  var TSS_FORMDATA_CONTEXT = "__TSS_CONTEXT";
3452
3461
  var TSS_SERVER_FUNCTION = Symbol.for("TSS_SERVER_FUNCTION");
3453
3462
  var X_TSS_SERIALIZED = "x-tss-serialized";
@@ -3470,7 +3479,7 @@ var FrameType = {
3470
3479
  /** Full Content-Type header value with version parameter */
3471
3480
  var TSS_CONTENT_TYPE_FRAMED_VERSIONED = `${TSS_CONTENT_TYPE_FRAMED}; v=1`;
3472
3481
  //#endregion
3473
- //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.12/node_modules/@tanstack/start-client-core/dist/esm/safeObjectMerge.js
3482
+ //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/safeObjectMerge.js
3474
3483
  function isSafeKey(key) {
3475
3484
  return key !== "__proto__" && key !== "constructor" && key !== "prototype";
3476
3485
  }
@@ -3497,7 +3506,7 @@ function createNullProtoObject(source) {
3497
3506
  return obj;
3498
3507
  }
3499
3508
  //#endregion
3500
- //#region ../../node_modules/.pnpm/@tanstack+start-storage-context@1.167.15/node_modules/@tanstack/start-storage-context/dist/esm/async-local-storage.js
3509
+ //#region ../../node_modules/.pnpm/@tanstack+start-storage-context@1.167.16/node_modules/@tanstack/start-storage-context/dist/esm/async-local-storage.js
3501
3510
  var GLOBAL_STORAGE_KEY = Symbol.for("tanstack-start:start-storage-context");
3502
3511
  var globalObj = globalThis;
3503
3512
  if (!globalObj[GLOBAL_STORAGE_KEY]) globalObj[GLOBAL_STORAGE_KEY] = new AsyncLocalStorage();
@@ -3511,7 +3520,7 @@ function getStartContext(opts) {
3511
3520
  return context;
3512
3521
  }
3513
3522
  //#endregion
3514
- //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.12/node_modules/@tanstack/start-client-core/dist/esm/getStartOptions.js
3523
+ //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/getStartOptions.js
3515
3524
  var getStartOptions = () => getStartContext().startOptions;
3516
3525
  //#endregion
3517
3526
  //#region ../../node_modules/.pnpm/cookie-es@3.1.1/node_modules/cookie-es/dist/index.mjs
@@ -3557,7 +3566,7 @@ function splitSetCookieString(cookiesString) {
3557
3566
  return cookiesStrings;
3558
3567
  }
3559
3568
  //#endregion
3560
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/headers.js
3569
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/headers.js
3561
3570
  function toHeadersInstance(init) {
3562
3571
  if (init instanceof Headers) return init;
3563
3572
  else if (Array.isArray(init)) return new Headers(init);
@@ -3574,12 +3583,12 @@ function mergeHeaders(...headers) {
3574
3583
  }, new Headers());
3575
3584
  }
3576
3585
  //#endregion
3577
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-match-id.js
3586
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-match-id.js
3578
3587
  function dehydrateSsrMatchId(id) {
3579
3588
  return id.replaceAll("/", "\0");
3580
3589
  }
3581
3590
  //#endregion
3582
- //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.12/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js
3591
+ //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js
3583
3592
  function flattenMiddlewares(middlewares, maxDepth = 100) {
3584
3593
  const seen = /* @__PURE__ */ new Set();
3585
3594
  const flattened = [];
@@ -3597,7 +3606,7 @@ function flattenMiddlewares(middlewares, maxDepth = 100) {
3597
3606
  return flattened;
3598
3607
  }
3599
3608
  //#endregion
3600
- //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.12/node_modules/@tanstack/start-client-core/dist/esm/createMiddleware.js
3609
+ //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/createMiddleware.js
3601
3610
  var createMiddleware = (options, __opts) => {
3602
3611
  const resolvedOptions = {
3603
3612
  type: "request",
@@ -3625,7 +3634,7 @@ var createMiddleware = (options, __opts) => {
3625
3634
  };
3626
3635
  };
3627
3636
  //#endregion
3628
- //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.12/node_modules/@tanstack/start-client-core/dist/esm/createCsrfMiddleware.js
3637
+ //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/createCsrfMiddleware.js
3629
3638
  var innerCreateCsrfMiddleware = (opts = {}) => {
3630
3639
  return createMiddleware().server(async (ctx) => {
3631
3640
  const csrfCtx = ctx;
@@ -3680,12 +3689,12 @@ async function getFailureResponse(opts, ctx) {
3680
3689
  return opts.failureResponse?.clone() ?? new Response("Forbidden", { status: 403 });
3681
3690
  }
3682
3691
  //#endregion
3683
- //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.12/node_modules/@tanstack/start-client-core/dist/esm/getDefaultSerovalPlugins.js
3692
+ //#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/getDefaultSerovalPlugins.js
3684
3693
  function getDefaultSerovalPlugins() {
3685
3694
  return [...(getStartOptions()?.serializationAdapters)?.map(makeSerovalPlugin) ?? [], ...defaultSerovalPlugins];
3686
3695
  }
3687
3696
  //#endregion
3688
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/frame-protocol.js
3697
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/frame-protocol.js
3689
3698
  /**
3690
3699
  * Binary frame protocol for multiplexing JSON and raw streams over HTTP.
3691
3700
  *
@@ -3847,7 +3856,7 @@ function createMultiplexedStream(jsonStream, rawStreams, lateStreamSource) {
3847
3856
  });
3848
3857
  }
3849
3858
  //#endregion
3850
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/server-functions-handler.js
3859
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/server-functions-handler.js
3851
3860
  var serovalPlugins = void 0;
3852
3861
  var FORM_DATA_CONTENT_TYPES = ["multipart/form-data", "application/x-www-form-urlencoded"];
3853
3862
  var MAX_PAYLOAD_SIZE = 1e6;
@@ -4049,7 +4058,7 @@ function isNotFoundResponse(error) {
4049
4058
  });
4050
4059
  }
4051
4060
  //#endregion
4052
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/early-hints.js
4061
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/early-hints.js
4053
4062
  var LINK_PARAM_TOKEN_RE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
4054
4063
  var PRELOAD_AS_VALUES = new Set([
4055
4064
  "fetch",
@@ -4299,7 +4308,7 @@ function createEarlyHintsCollector(opts) {
4299
4308
  };
4300
4309
  }
4301
4310
  //#endregion
4302
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/transformAssetUrls.js
4311
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/transformAssetUrls.js
4303
4312
  function normalizeTransformAssetResult(result) {
4304
4313
  if (typeof result === "string") return { href: result };
4305
4314
  return result;
@@ -4458,7 +4467,7 @@ function buildManifest(source, opts) {
4458
4467
  };
4459
4468
  }
4460
4469
  //#endregion
4461
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/inlineCss.js
4470
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/inlineCss.js
4462
4471
  function getStaticHandlerInlineCssDefault(handlerInlineCss) {
4463
4472
  if (typeof handlerInlineCss === "function") return;
4464
4473
  return handlerInlineCss ?? true;
@@ -4469,7 +4478,7 @@ async function resolveInlineCssForRequest(opts) {
4469
4478
  return opts.handlerInlineCss ?? true;
4470
4479
  }
4471
4480
  //#endregion
4472
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/finalManifest.js
4481
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/finalManifest.js
4473
4482
  function createCachedBaseManifestLoader(loadBaseManifest) {
4474
4483
  let baseManifestPromise;
4475
4484
  return () => {
@@ -4590,7 +4599,7 @@ function warmupFinalManifest(opts) {
4590
4599
  return warmupPromise;
4591
4600
  }
4592
4601
  //#endregion
4593
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/serializer/ServerFunctionSerializationAdapter.js
4602
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/serializer/ServerFunctionSerializationAdapter.js
4594
4603
  var ServerFunctionSerializationAdapter = createSerializationAdapter({
4595
4604
  key: "$TSS/serverfn",
4596
4605
  test: (v) => {
@@ -4607,10 +4616,10 @@ var ServerFunctionSerializationAdapter = createSerializationAdapter({
4607
4616
  }
4608
4617
  });
4609
4618
  //#endregion
4610
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/tsrScript.js
4619
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/tsrScript.js
4611
4620
  var tsrScript_default = "self.$_TSR={h(){this.hydrated=!0,this.c()},e(){this.streamEnded=!0,this.c()},c(){this.hydrated&&this.streamEnded&&(delete self.$_TSR,delete self.$R.tsr)},p(e){this.initialized?e():this.buffer.push(e)},buffer:[]}";
4612
4621
  //#endregion
4613
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-server.js
4622
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-server.js
4614
4623
  var SCOPE_ID = "tsr";
4615
4624
  var TSR_PREFIX = GLOBAL_TSR + ".router=";
4616
4625
  var P_PREFIX = GLOBAL_TSR + ".p(()=>";
@@ -5089,7 +5098,7 @@ function getNormalizedURL(url, base) {
5089
5098
  };
5090
5099
  }
5091
5100
  //#endregion
5092
- //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.13/node_modules/@tanstack/router-core/dist/esm/ssr/handlerCallback.js
5101
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/handlerCallback.js
5093
5102
  function isSsrResponse(value) {
5094
5103
  return typeof value === "object" && value !== null && "response" in value && "serverSsrCleanup" in value;
5095
5104
  }
@@ -5116,7 +5125,7 @@ async function stripSsrResponseBody(result, reason) {
5116
5125
  };
5117
5126
  }
5118
5127
  //#endregion
5119
- //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.15/node_modules/@tanstack/start-server-core/dist/esm/createStartHandler.js
5128
+ //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/createStartHandler.js
5120
5129
  function getStartResponseHeaders(opts) {
5121
5130
  return mergeHeaders({ "Content-Type": "text/html; charset=utf-8" }, ...opts.router.stores.matches.get().map((match) => {
5122
5131
  return match.headers;
@@ -5131,8 +5140,8 @@ var createEarlyHintsForRequest = createEarlyHintsCollector;
5131
5140
  async function loadEntries() {
5132
5141
  const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
5133
5142
  import("./assets/router-BJiN6b7L.js"),
5134
- import("./assets/start-q50h9Mc3.js"),
5135
- import("./assets/empty-plugin-adapters-DKUlnwwl.js")
5143
+ import("./assets/start-m8EQRpUf.js"),
5144
+ import("./assets/empty-plugin-adapters-De7E1vAI.js")
5136
5145
  ]);
5137
5146
  return {
5138
5147
  routerEntry,
@@ -5508,7 +5517,7 @@ async function handleServerRoutes({ getRouter, request, url, executeRouter, cont
5508
5517
  return normalizeSsrResponse(response);
5509
5518
  }
5510
5519
  //#endregion
5511
- //#region ../../node_modules/.pnpm/@tanstack+react-start@1.168.26_react-dom@19.2.7_react@19.2.7__react@19.2.7_vite@8.0.16__ab3bb52b22b1abc10e7023e1ae4545d9/node_modules/@tanstack/react-start/dist/plugin/default-entry/server.ts
5520
+ //#region ../../node_modules/.pnpm/@tanstack+react-start@1.168.27_react-dom@19.2.7_react@19.2.7__react@19.2.7_vite@8.0.16__04ebb5e2b289a20a458eb7b1bb11e27f/node_modules/@tanstack/react-start/dist/plugin/default-entry/server.ts
5512
5521
  var fetch$1 = createStartHandler(defaultStreamHandler);
5513
5522
  function createServerEntry(entry) {
5514
5523
  return { async fetch(...args) {
@@ -2,7 +2,7 @@ import type { DocumentStats, LinkReference, LinkResolverOptions, SeoBrief } from
2
2
  import type { BlockComponent } from '@contentbit/react';
3
3
  export type StudioSeverity = 'error' | 'warning' | 'info';
4
4
  export type StudioStatus = 'error' | 'warning' | 'suggestion' | 'healthy';
5
- export type StudioFindingSource = 'validation' | 'links' | 'stats' | 'seo';
5
+ export type StudioFindingSource = 'validation' | 'links' | 'stats' | 'integrity' | 'seo';
6
6
  export interface StudioFinding {
7
7
  severity: StudioSeverity;
8
8
  source: StudioFindingSource;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;A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CAAC,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,UAAU,GAAG,YAAY,GAAG,cAAc,GAAG,MAAM,CAAA;CAC5D;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,KAAK,EAAE,eAAe,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,mBAAmB,CAAA;IACjC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,SAAS,CAAC,CAAA;CAC9E;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentbit/studio",
3
- "version": "0.6.1",
3
+ "version": "0.7.1",
4
4
  "description": "Local read-only content studio for contentbit projects.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -48,9 +48,9 @@
48
48
  "tinyglobby": "^0.2.10",
49
49
  "tw-animate-css": "^1.4.0",
50
50
  "vite": "^8",
51
- "@contentbit/blocks": "0.6.1",
52
- "@contentbit/core": "0.6.1",
53
- "@contentbit/react": "0.6.1"
51
+ "@contentbit/blocks": "0.7.1",
52
+ "@contentbit/core": "0.7.1",
53
+ "@contentbit/react": "0.7.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@testing-library/dom": "^10.4.1",
@@ -1,5 +1,5 @@
1
1
  import type { BlockComponent } from '@contentbit/react'
2
- import type { ValidatedDocumentNode } from '@contentbit/core'
2
+ import type { ProcessedDocumentNode } from '@contentbit/core'
3
3
  import type { ComponentType } from 'react'
4
4
 
5
5
  import { ContentBlocks } from '@contentbit/react'
@@ -14,7 +14,7 @@ interface FallbackProps {
14
14
  }
15
15
 
16
16
  export function renderStudioPreview(
17
- document: ValidatedDocumentNode,
17
+ document: ProcessedDocumentNode,
18
18
  components: Record<string, BlockComponent> = {},
19
19
  _options: { includeGenericComponents?: boolean } = {},
20
20
  ): string {
@@ -3,7 +3,7 @@ import type { BlockComponent } from '@contentbit/react'
3
3
 
4
4
  export type StudioSeverity = 'error' | 'warning' | 'info'
5
5
  export type StudioStatus = 'error' | 'warning' | 'suggestion' | 'healthy'
6
- export type StudioFindingSource = 'validation' | 'links' | 'stats' | 'seo'
6
+ export type StudioFindingSource = 'validation' | 'links' | 'stats' | 'integrity' | 'seo'
7
7
 
8
8
  export interface StudioFinding {
9
9
  severity: StudioSeverity