@publier/shell 0.5.4 → 0.5.5

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/index.mjs CHANGED
@@ -1 +1 @@
1
- export{i as HASHED_ASSET_RE,t as docsShell,a as publierCacheControl}from"./integration-ppIViL_F.mjs";
1
+ export{i as HASHED_ASSET_RE,t as docsShell,a as publierCacheControl}from"./integration-DXOvP4Qd.mjs";
@@ -94,6 +94,10 @@ if (import.meta.hot) {
94
94
  window.addEventListener('load', remeasure);
95
95
  document.fonts?.addEventListener('loadingdone', remeasure);
96
96
  document.fonts?.ready.then(remeasure);
97
+
98
+
99
+
100
+ document.addEventListener("contentvisibilityautostatechange", remeasure, true);
97
101
  })();
98
102
  `,_(),x(),w()];return e.searchEnabled&&t.push(C(e.searchHotkey),pe()),t.join(`
99
103
  `)}function ut(e,t){let n=[],r=[],i=[];for(let a of[`heading`,`body`,`mono`]){let o=e[a];if(!o?.family)continue;let s=`--publier-font-${a}`,c=a===`mono`?[`monospace`]:[`system-ui`,`sans-serif`],l=[o.weight??`400`],u=[o.style??`normal`];if(o.googleFontsUrl)n.push({name:o.family,cssVariable:s,provider:M.google(),fallbacks:c,weights:l,styles:u,subsets:[`latin`]}),r.push(a);else if(o.src){let e=j.isAbsolute(o.src)&&T(o.src)?o.src:j.join(t,`public`,o.src.replace(/^\/+/,``));n.push({name:o.family,cssVariable:s,provider:M.local(),fallbacks:c,weights:l,styles:u,subsets:[`latin`],options:{variants:[{weight:l[0],style:u[0],src:[e]}]}}),r.push(a)}else i.push(`${s}:"${o.family}",${c.join(`,`)};`)}return{entries:n,familyOnlyCss:i.length?`:root{${i.join(``)}}`:``,slots:r}}const dt=[{pkg:`astro-expressive-code`,aliases:[`astro-expressive-code`]},{pkg:`@astrojs/mdx`,aliases:[`@astrojs/mdx`]},{pkg:`@astrojs/sitemap`,aliases:[`@astrojs/sitemap`]},{pkg:`astro-pagefind`,aliases:[`astro-pagefind`,`pagefind`]},{pkg:`@qwik.dev/astro`,aliases:[`@qwik.dev/astro`]}];function $(e,t){let n=j.join(e,`src`,`content`,t);if(!T(n))return!1;try{return he(n,{recursive:!0}).some(e=>typeof e==`string`&&/\.mdx?$/.test(e))}catch{return!1}}function ft(e){return JSON.stringify(e).replace(/</g,`\\u003c`)}function pt(e={}){let t=null,n=``,r=``,i={name:`@publier/shell`,hooks:{"astro:config:setup":async({command:a,config:c,updateConfig:l,injectScript:u,injectRoute:d,logger:f})=>{let m=c.root?ge(c.root):process.cwd();try{me()}catch(e){let t=e instanceof Error?e.message:String(e),n=ne(t);throw n?Error(n):e}let h=p(j.join(m,`package.json`)),g=JSON.stringify(e),_=Be(m),v=Re(_??``);if(_)for(let e of ze(_))f.warn(e);let y=v.site;t={llms:v.llms,siteName:y.name,siteUrl:y.url??void 0,siteDescription:y.description??void 0};let b=v.vars,re=v.fonts,ie=v.nav,ae=v.announcement,oe=v.docs,x=typeof y.url==`string`&&y.url.length>0;x&&!c.site&&l({site:y.url});let fe=new Set(c.integrations.map(e=>e.name)),S=dt.filter(({aliases:e})=>!e.some(e=>fe.has(e)));S.length>0&&f.warn(`[@publier/shell] Required framework integrations are not registered in
@@ -1 +1 @@
1
- export{t as docsShell,n as hoistMediaOutOfUtilitiesLayer,r as publierCascadeHoistPlugin}from"./integration-ppIViL_F.mjs";
1
+ export{t as docsShell,n as hoistMediaOutOfUtilitiesLayer,r as publierCascadeHoistPlugin}from"./integration-DXOvP4Qd.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@publier/shell",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Qwik + Astro docs layout for Publier sites.",
6
6
  "type": "module",