@stacksjs/bunpress 0.2.36 → 0.2.38
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/dist/bin/cli.js +1 -1
- package/dist/{chunk-af54cmqz.js → chunk-4vg1gerz.js} +1 -1
- package/dist/{chunk-2ak6pzvc.js → chunk-fezafska.js} +1 -1
- package/dist/{chunk-967sb9pd.js → chunk-h86jm08b.js} +5 -5
- package/dist/{chunk-e93ycakx.js → chunk-j7jdypwb.js} +1369 -231
- package/dist/src/index.js +1 -1
- package/dist/src/screen-gallery.d.ts +10 -0
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as p,b as u,c as m,d as o,e as s,f as h,g as a,h as d,i as t,j as c,k as Oj,l as kj,m as Cj,n as Mj,o as Tj,p as Rj}from"../chunk-
|
|
2
|
+
import{a as p,b as u,c as m,d as o,e as s,f as h,g as a,h as d,i as t,j as c,k as Oj,l as kj,m as Cj,n as Mj,o as Tj,p as Rj}from"../chunk-j7jdypwb.js";import{A as Y,w as S,x as V,y as W,z as X}from"../chunk-9g247fj7.js";import{$ as Z,B as x,C as v,D as g,E as f,J as Ej,K as Gj,L as Jj,M as Kj,N as Nj,O as Pj,P as Qj,Q as Sj,R as Vj,S as Wj,T as Xj,U as Yj,V as Zj,W as _j,X as $j,Y as Aj,Z as Fj,_ as Ij,aa as _,ba as $,ca as Lj}from"../chunk-kw0tya77.js";import{ja as i,ka as l,la as n,ma as r,na as e,oa as jj,pa as qj,qa as zj,ra as Bj,sa as Dj}from"../chunk-94yk2vs9.js";function D(E){return E.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function N(E,K=!1){let z=E.trim();if(!z||/[\u0000-\u0020\u007f-\u009f\\]/.test(z))return null;let G=/^([a-z][a-z\d+.-]*):/i.exec(z)?.[1]?.toLowerCase();if(/^[^/]*:/.test(z)&&(!G||!["http","https",...K?[]:["mailto"]].includes(G)))return null;return z}function F(E,K={}){let z=[],G=E.replace(/[\u0000-\u0002]/g,""),Q=(j)=>j.replace(/\u0001(\d+)\u0002/g,(q,B)=>z[Number(B)]??""),J=(j)=>D(Q(j));return Bun.markdown.render(G,{text:(j)=>`\x01${z.push(j)-1}\x02`,heading:(j,q)=>`<h${q.level} id="wiki-${D(q.id??"")}">${j}</h${q.level}>`,paragraph:(j)=>`<p>${j}</p>`,blockquote:(j)=>`<blockquote>${j}</blockquote>`,strong:(j)=>`<strong>${j}</strong>`,emphasis:(j)=>`<em>${j}</em>`,strikethrough:(j)=>`<del>${j}</del>`,hr:()=>"<hr>",codespan:(j)=>`<code>${J(j)}</code>`,code:(j,q)=>{return`<pre><code${q?.language&&/^[\w+#.-]{1,30}$/.test(q.language)?` class="language-${D(q.language)}"`:""}>${J(j)}</code></pre>`},list:(j,q)=>q.ordered?`<ol start="${q.start??1}">${j}</ol>`:`<ul>${j}</ul>`,listItem:(j,q)=>`<li>${typeof q.checked==="boolean"?`<input type="checkbox" disabled${q.checked?" checked":""}>`:""}${j}</li>`,table:(j)=>`<table>${j}</table>`,thead:(j)=>`<thead>${j}</thead>`,tbody:(j)=>`<tbody>${j}</tbody>`,tr:(j)=>`<tr>${j}</tr>`,th:(j)=>`<th>${j}</th>`,td:(j)=>`<td>${j}</td>`,link:(j,q)=>{let B=N(q.href);if(!B)return j;let P=N(K.resolveLink?.(B)??B);return P?`<a href="${D(P)}" rel="nofollow noopener noreferrer">${j}</a>`:j},image:(j,q)=>{let B=N(q.src,!0);return B?`<img src="${D(B)}" alt="${J(j)}" loading="lazy">`:J(j)},html:(j)=>j},{tables:!0,strikethrough:!0,tasklists:!0,autolinks:!0,headings:{ids:!0}}).replace(/\u0001(\d+)\u0002/g,(j,q)=>D(z[Number(q)]??""))}export{Cj as wrapInLayout,Oj as stripConfiguredBasePath,Tj as startServer,r as splitLocaleFromPath,u as setLanguageAliases,Rj as serveCLI,l as resolveI18nConfig,p as resetHighlighter,Kj as reserveUniqueSlug,F as renderUntrustedMarkdown,$j as processInlineTocSyntax,t as prewarmHighlighter,m as normalizeLanguage,Mj as markdownToHtml,Gj as markdownHeadingText,e as localizeUrl,zj as localeLabel,jj as localeContentCandidates,n as loadI18nTranslations,o as isLanguageSupported,h as highlightCodeSync,s as highlightCode,d as getSyntaxHighlightingStyles,c as getHighlighterInstance,i as getConfiguredBasePath,f as getConfig,Nj as generateUniqueSlug,Fj as generateTocStyles,Ij as generateTocScripts,_j as generateTocPositions,Vj as generateTocHtml,Zj as generateTocData,Jj as generateSlug,Y as generateSitemap,Xj as generateSidebarTocHtml,V as generateRssFeed,W as generateRobotsTxt,Dj as generateLocaleDetectionScript,Wj as generateInlineTocHtml,Bj as generateHreflangTags,Yj as generateFloatingTocHtml,Sj as filterHeadings,Pj as extractHeadings,Aj as enhanceHeadingsWithAnchors,Ej as defaultTocConfig,x as defaultConfig,Lj as decodeHtmlEntities,qj as configForLocale,g as config,Qj as buildTocHierarchy,X as buildSitemap,_ as buildSearchRuntimeConfig,$ as buildSearchIndex,S as buildRssFeed,v as applyConfigPlugins,Z as SEARCH_INDEX_PATH,a as LIGHT_TOKEN_PALETTE,kj as BUN_THEME_FONTS};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Screen documentation gallery: device-framed multi-viewport showcases,
|
|
3
|
+
* walkthrough video cards, interactive device/role/theme filters, and a
|
|
4
|
+
* full-resolution lightbox inspector for BunPress documentation sites.
|
|
5
|
+
*
|
|
6
|
+
* Works with the markup generated by `buddy docs:screenshots` (`@stacksjs/docs`)
|
|
7
|
+
* as well as hand-authored `.bp-screens-gallery` / `.bp-device-frame` blocks.
|
|
8
|
+
*/
|
|
9
|
+
export declare const screenGalleryCSS: string;
|
|
10
|
+
export declare const screenGalleryScript: string;
|