valaxy 0.22.6 → 0.22.8

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,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{a as w,d as h,e as d}from"./chunk-AEBFRNI5.js";d();d();function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Z(e,t,n,r){function o(s){return s instanceof n?s:new n(function(c){c(s)})}return new(n||(n=Promise))(function(s,c){function l(i){try{u(r.next(i))}catch(p){c(p)}}function a(i){try{u(r.throw(i))}catch(p){c(p)}}function u(i){i.done?s(i.value):o(i.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}import{createHash as me}from"node:crypto";import G from"node:fs";import se from"node:module";import b from"node:path";import{fileURLToPath as be,pathToFileURL as X}from"node:url";import{MessageChannel as he,Worker as _e,parentPort as we,receiveMessageOnPort as ge,workerData as re}from"node:worker_threads";d();import{createRequire as de}from"node:module";var j=process.cwd(),A=typeof w>"u"?de(import.meta.url):w,ee=[".ts",".tsx",...Object.keys(A.extensions)];d();import q from"node:fs";import _ from"node:path";var ye=e=>{try{return A.resolve(e)}catch{}},W=e=>!!ye(e),I=(e,t=!1)=>{if(typeof e=="string")return q.existsSync(e)&&(t||q.statSync(e).isFile())?e:"";for(let n of e??[])if(I(n,t))return n;return""},te=(e,t=ee)=>{let n=[...t,""].find(r=>I(e+r));return n==null?"":e+n},D=(e,t,n)=>{if(console.assert(_.isAbsolute(e)),!I(e,!0)||e!==j&&!e.startsWith(j+_.sep))return"";e=_.resolve(q.statSync(e).isDirectory()?e:_.resolve(e,".."));let r=typeof t=="string",o=r?t:"package.json";do{let s=I(_.resolve(e,o),r&&n);if(s)return s;e=_.resolve(e,"..")}while(e===j||e.startsWith(j+_.sep));return""};d();var ve=4,f={TsNode:"ts-node",EsbuildRegister:"esbuild-register",EsbuildRunner:"esbuild-runner",SWC:"swc",TSX:"tsx"},{NODE_OPTIONS:k,SYNCKIT_EXEC_ARGV:B,SYNCKIT_GLOBAL_SHIMS:Se,SYNCKIT_TIMEOUT:ne,SYNCKIT_TS_RUNNER:Ee}=process.env,ie=Number(process.versions.node.split(".")[0])>=20,xe=ne?+ne:void 0,Te=B?.split(",")||[],je=Ee,Oe=["1","true"].includes(Se),Pe=[{moduleName:"node-fetch",globalName:"fetch"},{moduleName:"node:perf_hooks",globalName:"performance",named:"performance"}],Ne=16,g;function Re(e){if(e&&typeof e=="object"){let t={};for(let n in e)t[n]=e[n];return t}}function nt(e,t){g??(g=new Map);let n=g.get(e);if(n)return n;if(!b.isAbsolute(e))throw new Error("`workerPath` must be absolute");let r=Ce(e,typeof t=="number"?{timeout:t}:t);return g.set(e,r),r}var F=typeof w>"u"?se.createRequire(import.meta.url):w,$e=e=>new URL(`data:text/javascript,${encodeURIComponent(e)}`),ae=e=>{var t;try{return!!(!((t=G.statSync(e,{throwIfNoEntry:!1}))===null||t===void 0)&&t.isFile())}catch{return!1}},Ie=(e,{execArgv:t,tsRunner:n})=>{let r=b.extname(e);if(!/[/\\]node_modules[/\\]/.test(e)&&(!r||/^\.[cm]?js$/.test(r))){let a=r?e.slice(0,-r.length):e,u;switch(r){case".cjs":{u=[".cts",".cjs"];break}case".mjs":{u=[".mts",".mjs"];break}default:{u=[".ts",".js"];break}}let i=te(a,u),p;i&&(!r||(p=i!==a))&&(e=i,p&&(r=b.extname(e)))}let o=/\.[cm]?ts$/.test(e),s=e.endsWith(".mjs"),c=e.endsWith(".mts");if(o){if(!c){let a=D(e);a&&(c=F(a).type==="module")}switch(n==null&&W(f.TsNode)&&(n=f.TsNode),n){case f.TsNode:{c?t.includes("--loader")||(t=["--loader",`${f.TsNode}/esm`,...t]):t.includes("-r")||(t=["-r",`${f.TsNode}/register`,...t]);break}case f.EsbuildRegister:{t.includes("-r")||(t=["-r",f.EsbuildRegister,...t]);break}case f.EsbuildRunner:{t.includes("-r")||(t=["-r",`${f.EsbuildRunner}/register`,...t]);break}case f.SWC:{t.includes("-r")||(t=["-r",`@${f.SWC}-node/register`,...t]);break}case f.TSX:{t.includes("--loader")||(t=["--loader",f.TSX,...t]);break}default:throw new Error(`Unknown ts runner: ${String(n)}`)}}else if(!s){let a=D(e);a&&(s=F(a).type==="module")}let l;if(process.versions.pnp){let a=k?.split(/\s+/),u;try{u=F.resolve("pnpapi")}catch{}if(u&&!a?.some((i,p)=>["-r","--require"].includes(i)&&u===F.resolve(a[p+1]))&&!t.includes(u)){t=["-r",u,...t];let i=b.resolve(u,"../.pnp.loader.mjs");ae(i)&&(l=X(i).toString(),ie||(t=["--experimental-loader",l,...t]))}}return{ext:r,isTs:o,jsUseEsm:s,tsRunner:n,tsUseEsm:c,workerPath:e,pnpLoaderPath:l,execArgv:t}},De=e=>me("md5").update(e).digest("hex"),V=(e,t="import")=>{let{moduleName:n,globalName:r,named:o,conditional:s}=typeof e=="string"?{moduleName:e}:e,c=t==="import"?`import${r?" "+(o===null?"* as "+r:o?.trim()?`{${o}}`:r)+" from":""} '${b.isAbsolute(n)?String(X(n)):n}'`:`${r?"const "+(o?.trim()?`{${o}}`:r)+"=":""}require('${n.replace(/\\/g,"\\\\")}')`;if(!r)return c;let l=`globalThis.${r}=${o?.trim()?o:r}`;return c+(s===!1?`;${l}`:`;if(!globalThis.${r})${l}`)},Fe=(e,t)=>e.reduce((n,r)=>`${n}${n?";":""}${V(r,t)}`,""),v,U,Ue=typeof h>"u"?b.dirname(be(import.meta.url)):h,O,S,oe=(e,t,n="import")=>{v??(v=new Map);let r=v.get(e);if(r){let[l,a]=r;if(n==="require"&&!a||n==="import"&&a&&ae(a))return l}let o=Fe(t,n),s=o,c;return n==="import"&&(U||(U=b.resolve(D(Ue),"../node_modules/.synckit")),G.mkdirSync(U,{recursive:!0}),c=b.resolve(U,De(e)+".mjs"),s=V(c),G.writeFileSync(c,o)),v.set(e,[s,c]),s};function Ce(e,{timeout:t=xe,execArgv:n=Te,tsRunner:r=je,transferList:o=[],globalShims:s=Oe}={}){let{port1:c,port2:l}=new he,{isTs:a,ext:u,jsUseEsm:i,tsUseEsm:p,tsRunner:P,workerPath:E,pnpLoaderPath:ce,execArgv:ue}=Ie(e,{execArgv:n,tsRunner:r}),K=X(E);if(/\.[cm]ts$/.test(E)){let y=!p||Number.parseFloat(process.versions.node)>=Ne;if(P){if([f.EsbuildRegister,f.EsbuildRunner,f.SWC,...y?[]:[f.TSX]].includes(P))throw new Error(`${P} is not supported for ${u} files yet`+(y?", you can try [tsx](https://github.com/esbuild-kit/tsx) instead":""))}else throw new Error("No ts runner specified, ts worker path is not supported")}let C=(s===!0?Pe:Array.isArray(s)?s:[]).filter(({moduleName:y})=>W(y));S??(S=new Int32Array(O??(O=new SharedArrayBuffer(ve)),0,1));let H=C.length>0,Y=a?!p:!i&&H,z=new _e(i&&H||p&&P===f.TsNode?$e(`${oe(E,C)};import '${String(K)}'`):Y?`${oe(E,C,"require")};${V(E,"require")}`:K,{eval:Y,workerData:{sharedBuffer:O,workerPort:l,pnpLoaderPath:ce},transferList:[l,...o],execArgv:ue}),fe=0,J=(y,m,x)=>{let L=Date.now(),T=Atomics.wait(S,0,0,x);if(Atomics.store(S,0,0),!["ok","not-equal"].includes(T)){let M={id:m,cmd:"abort"};throw y.postMessage(M),new Error("Internal error: Atomics.wait() failed: "+T)}let N=ge(c).message,{id:R}=N,pe=Q(N,["id"]);if(R<m){let M=Date.now()-L;return J(y,m,x?x-M:void 0)}if(m!==R)throw new Error(`Internal error: Expected id ${m} but got id ${R}`);return Object.assign({id:R},pe)},le=(...y)=>{let m=fe++,x={id:m,args:y};z.postMessage(x);let{result:L,error:T,properties:N}=J(c,m,t);if(T)throw Object.assign(T,N);return L};return z.unref(),le}function ot(e){if(!re)return;let{workerPort:t,sharedBuffer:n,pnpLoaderPath:r}=re;r&&ie&&se.register(r);let o=new Int32Array(n,0,1);we.on("message",({id:s,args:c})=>{Z(this,void 0,void 0,function*(){let l=!1,a=i=>{i.id===s&&i.cmd==="abort"&&(l=!0)};t.on("message",a);let u;try{u={id:s,result:yield e(...c)}}catch(i){u={id:s,error:i,properties:Re(i)}}t.off("message",a),!l&&(t.postMessage(u),Atomics.add(o,0,1),Atomics.notify(o,0))})})}export{nt as a,ot as b};
2
+ import{a as w,d as h,e as d}from"./chunk-R76WNJFY.js";d();d();function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Z(e,t,n,r){function o(s){return s instanceof n?s:new n(function(c){c(s)})}return new(n||(n=Promise))(function(s,c){function l(i){try{u(r.next(i))}catch(p){c(p)}}function a(i){try{u(r.throw(i))}catch(p){c(p)}}function u(i){i.done?s(i.value):o(i.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}import{createHash as me}from"node:crypto";import G from"node:fs";import se from"node:module";import b from"node:path";import{fileURLToPath as be,pathToFileURL as X}from"node:url";import{MessageChannel as he,Worker as _e,parentPort as we,receiveMessageOnPort as ge,workerData as re}from"node:worker_threads";d();import{createRequire as de}from"node:module";var j=process.cwd(),A=typeof w>"u"?de(import.meta.url):w,ee=[".ts",".tsx",...Object.keys(A.extensions)];d();import q from"node:fs";import _ from"node:path";var ye=e=>{try{return A.resolve(e)}catch{}},W=e=>!!ye(e),I=(e,t=!1)=>{if(typeof e=="string")return q.existsSync(e)&&(t||q.statSync(e).isFile())?e:"";for(let n of e??[])if(I(n,t))return n;return""},te=(e,t=ee)=>{let n=[...t,""].find(r=>I(e+r));return n==null?"":e+n},D=(e,t,n)=>{if(console.assert(_.isAbsolute(e)),!I(e,!0)||e!==j&&!e.startsWith(j+_.sep))return"";e=_.resolve(q.statSync(e).isDirectory()?e:_.resolve(e,".."));let r=typeof t=="string",o=r?t:"package.json";do{let s=I(_.resolve(e,o),r&&n);if(s)return s;e=_.resolve(e,"..")}while(e===j||e.startsWith(j+_.sep));return""};d();var ve=4,f={TsNode:"ts-node",EsbuildRegister:"esbuild-register",EsbuildRunner:"esbuild-runner",SWC:"swc",TSX:"tsx"},{NODE_OPTIONS:k,SYNCKIT_EXEC_ARGV:B,SYNCKIT_GLOBAL_SHIMS:Se,SYNCKIT_TIMEOUT:ne,SYNCKIT_TS_RUNNER:Ee}=process.env,ie=Number(process.versions.node.split(".")[0])>=20,xe=ne?+ne:void 0,Te=B?.split(",")||[],je=Ee,Oe=["1","true"].includes(Se),Pe=[{moduleName:"node-fetch",globalName:"fetch"},{moduleName:"node:perf_hooks",globalName:"performance",named:"performance"}],Ne=16,g;function Re(e){if(e&&typeof e=="object"){let t={};for(let n in e)t[n]=e[n];return t}}function nt(e,t){g??(g=new Map);let n=g.get(e);if(n)return n;if(!b.isAbsolute(e))throw new Error("`workerPath` must be absolute");let r=Ce(e,typeof t=="number"?{timeout:t}:t);return g.set(e,r),r}var F=typeof w>"u"?se.createRequire(import.meta.url):w,$e=e=>new URL(`data:text/javascript,${encodeURIComponent(e)}`),ae=e=>{var t;try{return!!(!((t=G.statSync(e,{throwIfNoEntry:!1}))===null||t===void 0)&&t.isFile())}catch{return!1}},Ie=(e,{execArgv:t,tsRunner:n})=>{let r=b.extname(e);if(!/[/\\]node_modules[/\\]/.test(e)&&(!r||/^\.[cm]?js$/.test(r))){let a=r?e.slice(0,-r.length):e,u;switch(r){case".cjs":{u=[".cts",".cjs"];break}case".mjs":{u=[".mts",".mjs"];break}default:{u=[".ts",".js"];break}}let i=te(a,u),p;i&&(!r||(p=i!==a))&&(e=i,p&&(r=b.extname(e)))}let o=/\.[cm]?ts$/.test(e),s=e.endsWith(".mjs"),c=e.endsWith(".mts");if(o){if(!c){let a=D(e);a&&(c=F(a).type==="module")}switch(n==null&&W(f.TsNode)&&(n=f.TsNode),n){case f.TsNode:{c?t.includes("--loader")||(t=["--loader",`${f.TsNode}/esm`,...t]):t.includes("-r")||(t=["-r",`${f.TsNode}/register`,...t]);break}case f.EsbuildRegister:{t.includes("-r")||(t=["-r",f.EsbuildRegister,...t]);break}case f.EsbuildRunner:{t.includes("-r")||(t=["-r",`${f.EsbuildRunner}/register`,...t]);break}case f.SWC:{t.includes("-r")||(t=["-r",`@${f.SWC}-node/register`,...t]);break}case f.TSX:{t.includes("--loader")||(t=["--loader",f.TSX,...t]);break}default:throw new Error(`Unknown ts runner: ${String(n)}`)}}else if(!s){let a=D(e);a&&(s=F(a).type==="module")}let l;if(process.versions.pnp){let a=k?.split(/\s+/),u;try{u=F.resolve("pnpapi")}catch{}if(u&&!a?.some((i,p)=>["-r","--require"].includes(i)&&u===F.resolve(a[p+1]))&&!t.includes(u)){t=["-r",u,...t];let i=b.resolve(u,"../.pnp.loader.mjs");ae(i)&&(l=X(i).toString(),ie||(t=["--experimental-loader",l,...t]))}}return{ext:r,isTs:o,jsUseEsm:s,tsRunner:n,tsUseEsm:c,workerPath:e,pnpLoaderPath:l,execArgv:t}},De=e=>me("md5").update(e).digest("hex"),V=(e,t="import")=>{let{moduleName:n,globalName:r,named:o,conditional:s}=typeof e=="string"?{moduleName:e}:e,c=t==="import"?`import${r?" "+(o===null?"* as "+r:o?.trim()?`{${o}}`:r)+" from":""} '${b.isAbsolute(n)?String(X(n)):n}'`:`${r?"const "+(o?.trim()?`{${o}}`:r)+"=":""}require('${n.replace(/\\/g,"\\\\")}')`;if(!r)return c;let l=`globalThis.${r}=${o?.trim()?o:r}`;return c+(s===!1?`;${l}`:`;if(!globalThis.${r})${l}`)},Fe=(e,t)=>e.reduce((n,r)=>`${n}${n?";":""}${V(r,t)}`,""),v,U,Ue=typeof h>"u"?b.dirname(be(import.meta.url)):h,O,S,oe=(e,t,n="import")=>{v??(v=new Map);let r=v.get(e);if(r){let[l,a]=r;if(n==="require"&&!a||n==="import"&&a&&ae(a))return l}let o=Fe(t,n),s=o,c;return n==="import"&&(U||(U=b.resolve(D(Ue),"../node_modules/.synckit")),G.mkdirSync(U,{recursive:!0}),c=b.resolve(U,De(e)+".mjs"),s=V(c),G.writeFileSync(c,o)),v.set(e,[s,c]),s};function Ce(e,{timeout:t=xe,execArgv:n=Te,tsRunner:r=je,transferList:o=[],globalShims:s=Oe}={}){let{port1:c,port2:l}=new he,{isTs:a,ext:u,jsUseEsm:i,tsUseEsm:p,tsRunner:P,workerPath:E,pnpLoaderPath:ce,execArgv:ue}=Ie(e,{execArgv:n,tsRunner:r}),K=X(E);if(/\.[cm]ts$/.test(E)){let y=!p||Number.parseFloat(process.versions.node)>=Ne;if(P){if([f.EsbuildRegister,f.EsbuildRunner,f.SWC,...y?[]:[f.TSX]].includes(P))throw new Error(`${P} is not supported for ${u} files yet`+(y?", you can try [tsx](https://github.com/esbuild-kit/tsx) instead":""))}else throw new Error("No ts runner specified, ts worker path is not supported")}let C=(s===!0?Pe:Array.isArray(s)?s:[]).filter(({moduleName:y})=>W(y));S??(S=new Int32Array(O??(O=new SharedArrayBuffer(ve)),0,1));let H=C.length>0,Y=a?!p:!i&&H,z=new _e(i&&H||p&&P===f.TsNode?$e(`${oe(E,C)};import '${String(K)}'`):Y?`${oe(E,C,"require")};${V(E,"require")}`:K,{eval:Y,workerData:{sharedBuffer:O,workerPort:l,pnpLoaderPath:ce},transferList:[l,...o],execArgv:ue}),fe=0,J=(y,m,x)=>{let L=Date.now(),T=Atomics.wait(S,0,0,x);if(Atomics.store(S,0,0),!["ok","not-equal"].includes(T)){let M={id:m,cmd:"abort"};throw y.postMessage(M),new Error("Internal error: Atomics.wait() failed: "+T)}let N=ge(c).message,{id:R}=N,pe=Q(N,["id"]);if(R<m){let M=Date.now()-L;return J(y,m,x?x-M:void 0)}if(m!==R)throw new Error(`Internal error: Expected id ${m} but got id ${R}`);return Object.assign({id:R},pe)},le=(...y)=>{let m=fe++,x={id:m,args:y};z.postMessage(x);let{result:L,error:T,properties:N}=J(c,m,t);if(T)throw Object.assign(T,N);return L};return z.unref(),le}function ot(e){if(!re)return;let{workerPort:t,sharedBuffer:n,pnpLoaderPath:r}=re;r&&ie&&se.register(r);let o=new Int32Array(n,0,1);we.on("message",({id:s,args:c})=>{Z(this,void 0,void 0,function*(){let l=!1,a=i=>{i.id===s&&i.cmd==="abort"&&(l=!0)};t.on("message",a);let u;try{u={id:s,result:yield e(...c)}}catch(i){u={id:s,error:i,properties:Re(i)}}t.off("message",a),!l&&(t.postMessage(u),Atomics.add(o,0,1),Atomics.notify(o,0))})})}export{nt as a,ot as b};
@@ -738,4 +738,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
738
738
  */
739
739
  type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
740
740
 
741
- export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PartialDeep as P, type RedirectRule as R, type SocialLink as S, type UserSiteConfig as U, type ValaxyAddon as V, type PageFrontMatter as a, type PostFrontMatter as b, type RedirectItem as c, type SiteConfig as d, type RuntimeConfig as e, type Pkg as f, type ValaxyConfig as g, type UserValaxyConfig as h, type Photo as i };
741
+ export { type Album as A, DefaultTheme as D, type ExcerptType as E, type FuseListItem as F, type PostFrontMatter as P, type RedirectRule as R, type SocialLink as S, type UserSiteConfig as U, type ValaxyAddon as V, type PageFrontMatter as a, type RedirectItem as b, type SiteConfig as c, type PartialDeep as d, type RuntimeConfig as e, type Pkg as f, type ValaxyConfig as g, type UserValaxyConfig as h, type Photo as i };
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{W as a,X as b,Y as c,Z as d}from"../../chunk-EKOCR2BL.js";import"../../chunk-N43QPRXN.js";import"../../chunk-AEBFRNI5.js";export{c as cli,b as registerDevCommand,d as run,a as startValaxyDev};
2
+ import{V as a,W as b,X as c,Y as d}from"../../chunk-C4KRTLSS.js";import"../../chunk-YBYGBP4O.js";import"../../chunk-R76WNJFY.js";export{c as cli,b as registerDevCommand,d as run,a as startValaxyDev};
@@ -3,7 +3,7 @@ import * as vite from 'vite';
3
3
  import { UserConfig, InlineConfig, PluginOption, Plugin } from 'vite';
4
4
  import { MarkdownEnv } from 'unplugin-vue-markdown/types';
5
5
  import * as valaxy_types from 'valaxy/types';
6
- import { SiteConfig, DefaultTheme, ValaxyConfig, PartialDeep, ValaxyAddon, RuntimeConfig, RedirectItem, UserSiteConfig } from 'valaxy/types';
6
+ import { SiteConfig, DefaultTheme, ValaxyConfig, ValaxyAddon, PartialDeep, RuntimeConfig, RedirectItem, UserSiteConfig } from 'valaxy/types';
7
7
  import Vue from '@vitejs/plugin-vue';
8
8
  import { Options as Options$1 } from 'beasties';
9
9
  import { Hookable } from 'hookable';
@@ -21,11 +21,12 @@ import { TocPluginOptions } from '@mdit-vue/plugin-toc';
21
21
  import { KatexOptions } from 'katex';
22
22
  import MarkdownIt from 'markdown-it';
23
23
  import anchorPlugin from 'markdown-it-anchor';
24
- import { LanguageInput, ShikiTransformer, Highlighter, ThemeRegistration, BuiltinTheme } from 'shiki';
24
+ import { MarkdownItAsync } from 'markdown-it-async';
25
+ import { ThemeRegistration, BuiltinTheme, LanguageInput, ShikiTransformer, Highlighter } from 'shiki';
25
26
  export { cli, registerDevCommand, run, startValaxyDev } from './cli/index.js';
26
27
  import { Awaitable } from '@antfu/utils';
27
28
  import * as defu from 'defu';
28
- import { P as PartialDeep$1 } from '../config-Dxu7i2Zs.js';
29
+ import { d as PartialDeep$1 } from '../config-C54Qk9Qu.js';
29
30
  import 'yargs';
30
31
  import '@vueuse/integrations/useFuse';
31
32
  import 'medium-zoom';
@@ -84,7 +85,7 @@ interface MarkdownOptions {
84
85
  /**
85
86
  * Setup markdown-it instance before applying plugins
86
87
  */
87
- preConfig?: (md: MarkdownIt) => void;
88
+ preConfig?: (md: MarkdownItAsync) => void;
88
89
  /**
89
90
  * markdown-it options
90
91
  */
@@ -92,7 +93,7 @@ interface MarkdownOptions {
92
93
  /**
93
94
  * config markdown-it
94
95
  */
95
- config?: (md: MarkdownIt) => void;
96
+ config?: (md: MarkdownItAsync) => void;
96
97
  anchor?: anchorPlugin.AnchorOptions;
97
98
  attrs?: {
98
99
  leftDelimiter?: string;
@@ -641,13 +642,6 @@ declare function getGitTimestamp(file: string, type?: 'created' | 'updated'): Pr
641
642
  * @param str
642
643
  */
643
644
  declare function isExternal(str: string): boolean;
644
- /**
645
- * slash path for windows
646
- * @param str
647
- */
648
- declare function slash(str: string): string;
649
- declare function ensurePrefix(prefix: string, str: string): string;
650
- declare function toAtFS(path: string): string;
651
645
  declare function isPath(name: string): boolean;
652
646
  /**
653
647
  * transform obj for vite code
@@ -658,6 +652,11 @@ declare function transformObject(obj: any): string;
658
652
  declare const isInstalledGlobally: {
659
653
  value?: boolean;
660
654
  };
655
+ /**
656
+ * Resolve path for import url on Vite client side
657
+ */
658
+ declare function resolveImportUrl(id: string): Promise<string>;
659
+ declare function toAtFS(path: string): string;
661
660
  /**
662
661
  * Before is CJS: use 'resolve'
663
662
  * ESM: use 'mlly'
@@ -665,4 +664,4 @@ declare const isInstalledGlobally: {
665
664
  declare function resolveImportPath(importName: string, ensure?: true): Promise<string>;
666
665
  declare function resolveImportPath(importName: string, ensure?: boolean): Promise<string | undefined>;
667
666
 
668
- export { ALL_ROUTE, EXCERPT_SEPARATOR, EXTERNAL_URL_RE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyApp, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, ViteValaxyPlugins, build, createServer, createValaxyLoader, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, ensurePrefix, generateClientRedirects, getGitTimestamp, getIndexHtml, getServerInfoText, isExternal, isInstalledGlobally, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
667
+ export { ALL_ROUTE, EXCERPT_SEPARATOR, EXTERNAL_URL_RE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyApp, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, ViteValaxyPlugins, build, createServer, createValaxyLoader, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, generateClientRedirects, getGitTimestamp, getIndexHtml, getServerInfoText, isExternal, isInstalledGlobally, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveImportUrl, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, ssgBuild, toAtFS, transformObject };
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-EKOCR2BL.js";import"../chunk-N43QPRXN.js";import"../chunk-AEBFRNI5.js";export{d as ALL_ROUTE,a as EXCERPT_SEPARATOR,b as EXTERNAL_URL_RE,c as PATHNAME_PROTOCOL_RE,P as ViteValaxyPlugins,Q as build,Y as cli,V as createServer,O as createValaxyLoader,e as customElements,t as defaultSiteConfig,x as defaultValaxyConfig,f as defaultViteConfig,E as defineAddon,z as defineConfig,u as defineSiteConfig,J as defineTheme,K as defineUnoSetup,D as defineValaxyAddon,y as defineValaxyConfig,I as defineValaxyTheme,j as ensurePrefix,T as generateClientRedirects,g as getGitTimestamp,q as getIndexHtml,U as getServerInfoText,h as isExternal,n as isInstalledGlobally,l as isPath,r as loadConfig,s as loadConfigFromFile,B as mergeValaxyConfig,p as mergeViteConfigs,S as postProcessForSSG,L as processValaxyOptions,X as registerDevCommand,F as resolveAddonsConfig,o as resolveImportPath,M as resolveOptions,w as resolveSiteConfig,v as resolveSiteConfigFromRoot,G as resolveThemeConfigFromRoot,N as resolveThemeValaxyConfig,H as resolveUserThemeConfig,C as resolveValaxyConfig,A as resolveValaxyConfigFromRoot,Z as run,i as slash,R as ssgBuild,W as startValaxyDev,k as toAtFS,m as transformObject};
2
+ import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-C4KRTLSS.js";import"../chunk-YBYGBP4O.js";import"../chunk-R76WNJFY.js";export{d as ALL_ROUTE,a as EXCERPT_SEPARATOR,b as EXTERNAL_URL_RE,c as PATHNAME_PROTOCOL_RE,O as ViteValaxyPlugins,P as build,X as cli,U as createServer,N as createValaxyLoader,e as customElements,s as defaultSiteConfig,w as defaultValaxyConfig,f as defaultViteConfig,D as defineAddon,y as defineConfig,t as defineSiteConfig,I as defineTheme,J as defineUnoSetup,C as defineValaxyAddon,x as defineValaxyConfig,H as defineValaxyTheme,S as generateClientRedirects,g as getGitTimestamp,p as getIndexHtml,T as getServerInfoText,h as isExternal,k as isInstalledGlobally,i as isPath,q as loadConfig,r as loadConfigFromFile,A as mergeValaxyConfig,o as mergeViteConfigs,R as postProcessForSSG,K as processValaxyOptions,W as registerDevCommand,E as resolveAddonsConfig,n as resolveImportPath,l as resolveImportUrl,L as resolveOptions,v as resolveSiteConfig,u as resolveSiteConfigFromRoot,F as resolveThemeConfigFromRoot,M as resolveThemeValaxyConfig,G as resolveUserThemeConfig,B as resolveValaxyConfig,z as resolveValaxyConfigFromRoot,Y as run,Q as ssgBuild,V as startValaxyDev,m as toAtFS,j as transformObject};
@@ -1,9 +1,5 @@
1
1
  import { LanguageRegistration } from 'shiki';
2
2
 
3
- /**
4
- * 2024-12-14 ref vitepress
5
- */
6
-
7
3
  declare function resolveLang(lang: string): Promise<LanguageRegistration[]>;
8
4
  type ShikiResolveLang = typeof resolveLang;
9
5
 
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{b as n}from"../chunk-N43QPRXN.js";import{e}from"../chunk-AEBFRNI5.js";e();import{bundledLanguages as r}from"shiki";async function g(a){return r[a]?.().then(t=>t.default)||[]}n(g);
2
+ import{b as n}from"../chunk-YBYGBP4O.js";import{e}from"../chunk-R76WNJFY.js";e();import{bundledLanguages as t}from"shiki";async function i(a){return t[a]?.().then(r=>r.default)||[]}n(i);
@@ -1,5 +1,5 @@
1
- import { a as PageFrontMatter, b as PostFrontMatter } from '../config-Dxu7i2Zs.js';
2
- export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, f as Pkg, c as RedirectItem, R as RedirectRule, e as RuntimeConfig, d as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-Dxu7i2Zs.js';
1
+ import { P as PostFrontMatter, a as PageFrontMatter } from '../config-C54Qk9Qu.js';
2
+ export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, d as PartialDeep, i as Photo, f as Pkg, b as RedirectItem, R as RedirectRule, e as RuntimeConfig, c as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-C54Qk9Qu.js';
3
3
  import { Header } from '@valaxyjs/utils';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'medium-zoom';
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{e}from"../chunk-AEBFRNI5.js";e();e();e();e();e();e();e();e();e();e();
2
+ import{e}from"../chunk-R76WNJFY.js";e();e();e();e();e();e();e();e();e();e();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.22.6",
4
+ "version": "0.22.8",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -52,22 +52,22 @@
52
52
  "node": "^14.18.0 || >=16.0.0"
53
53
  },
54
54
  "dependencies": {
55
- "@antfu/install-pkg": "^0.5.0",
56
- "@antfu/utils": "^0.7.10",
57
- "@clack/prompts": "^0.9.0",
55
+ "@antfu/install-pkg": "^1.0.0",
56
+ "@antfu/utils": "^9.0.0",
57
+ "@clack/prompts": "^0.10.0",
58
58
  "@iconify-json/ri": "^1.2.5",
59
59
  "@intlify/unplugin-vue-i18n": "^6.0.3",
60
60
  "@types/katex": "^0.16.7",
61
- "@unhead/addons": "^1.11.14",
62
- "@unhead/schema-org": "^1.11.14",
63
- "@unhead/vue": "^1.11.14",
61
+ "@unhead/addons": "^1.11.19",
62
+ "@unhead/schema-org": "^1.11.19",
63
+ "@unhead/vue": "^1.11.19",
64
64
  "@vitejs/plugin-vue": "^5.2.1",
65
- "@vue/devtools-api": "^7.6.8",
65
+ "@vue/devtools-api": "^7.7.2",
66
66
  "@vueuse/core": "12.0.0-beta.1",
67
67
  "@vueuse/integrations": "12.0.0-beta.1",
68
68
  "beasties": "^0.2.0",
69
- "birpc": "^0.2.19",
70
- "consola": "^3.3.3",
69
+ "birpc": "^2.2.0",
70
+ "consola": "^3.4.0",
71
71
  "cross-spawn": "^7.0.6",
72
72
  "css-i18n": "^0.0.5",
73
73
  "dayjs": "^1.11.13",
@@ -77,15 +77,15 @@
77
77
  "escape-html": "^1.0.3",
78
78
  "feed": "^4.2.2",
79
79
  "floating-vue": "^5.2.2",
80
- "fs-extra": "^11.2.0",
81
- "fuse.js": "^7.0.0",
80
+ "fs-extra": "^11.3.0",
81
+ "fuse.js": "^7.1.0",
82
82
  "gray-matter": "^4.0.3",
83
83
  "hookable": "^5.5.3",
84
84
  "html-to-text": "^9.0.5",
85
85
  "jiti": "^2.4.2",
86
86
  "js-base64": "^3.7.7",
87
87
  "js-yaml": "^4.1.0",
88
- "katex": "^0.16.19",
88
+ "katex": "^0.16.21",
89
89
  "lru-cache": "^11.0.2",
90
90
  "markdown-it": "^14.1.0",
91
91
  "markdown-it-anchor": "^9.2.0",
@@ -94,39 +94,39 @@
94
94
  "markdown-it-emoji": "^3.0.0",
95
95
  "markdown-it-footnote": "^4.0.0",
96
96
  "markdown-it-image-figures": "^2.1.1",
97
- "markdown-it-table-of-contents": "^0.8.0",
97
+ "markdown-it-table-of-contents": "^0.9.0",
98
98
  "markdown-it-task-lists": "^2.1.1",
99
99
  "medium-zoom": "^1.1.0",
100
100
  "mermaid": "^11.4.1",
101
- "mlly": "^1.7.3",
101
+ "mlly": "^1.7.4",
102
102
  "nprogress": "^0.2.0",
103
103
  "open": "10.1.0",
104
- "ora": "^8.1.1",
104
+ "ora": "^8.2.0",
105
105
  "pascalcase": "^2.0.0",
106
- "pathe": "^1.1.2",
107
- "pinia": "^2.3.0",
106
+ "pathe": "^2.0.3",
107
+ "pinia": "^3.0.1",
108
108
  "qrcode": "^1.5.4",
109
109
  "resolve-global": "^2.0.0",
110
- "sass": "^1.83.0",
111
- "shiki": "^1.24.4",
110
+ "sass": "^1.85.0",
111
+ "shiki": "^2.4.1",
112
112
  "star-markdown-css": "^0.5.3",
113
- "unocss": "^0.65.3",
114
- "unplugin-vue-components": "^0.28.0",
115
- "unplugin-vue-markdown": "^0.28.0",
116
- "unplugin-vue-router": "^0.10.9",
113
+ "unocss": "^65.5.0",
114
+ "unplugin-vue-components": "^28.1.0",
115
+ "unplugin-vue-markdown": "^28.3.0",
116
+ "unplugin-vue-router": "^0.11.2",
117
117
  "vanilla-lazyload": "^19.1.3",
118
- "vite": "^6.0.6",
119
- "vite-dev-rpc": "^0.1.7",
120
- "vite-plugin-vue-devtools": "^7.6.8",
118
+ "vite": "^6.1.0",
119
+ "vite-dev-rpc": "^1.0.7",
120
+ "vite-plugin-vue-devtools": "^7.7.2",
121
121
  "vite-plugin-vue-layouts": "^0.11.0",
122
- "vite-ssg": "^0.24.3",
122
+ "vite-ssg": "^25.0.0",
123
123
  "vite-ssg-sitemap": "^0.8.1",
124
124
  "vue": "^3.5.13",
125
- "vue-i18n": "^11.0.1",
125
+ "vue-i18n": "^11.1.1",
126
126
  "vue-router": "^4.5.0",
127
127
  "yargs": "^17.7.2",
128
- "@valaxyjs/utils": "0.22.6",
129
- "@valaxyjs/devtools": "0.22.6"
128
+ "@valaxyjs/devtools": "0.22.8",
129
+ "@valaxyjs/utils": "0.22.8"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@mdit-vue/plugin-component": "^2.1.3",
@@ -149,9 +149,9 @@
149
149
  "@types/yargs": "^17.0.33",
150
150
  "cilicili": "^0.1.1",
151
151
  "diacritics": "^1.3.0",
152
- "gh-pages": "^6.2.0",
152
+ "gh-pages": "^6.3.0",
153
153
  "https-localhost": "^4.7.1",
154
- "rollup-plugin-visualizer": "^5.13.1",
154
+ "rollup-plugin-visualizer": "^5.14.0",
155
155
  "table": "^6.9.0"
156
156
  },
157
157
  "scripts": {
@@ -1,19 +0,0 @@
1
- :root {
2
- --va-c-bg: #ffffff;
3
- --va-c-bg-light: #ffffff;
4
- --va-c-bg-dark: #fafafa;
5
- --va-c-bg-opacity: rgba(255, 255, 255, 0.8);
6
- --va-c-bg-soft: #f9f9f9;
7
- --va-c-bg-alt: #f9f9f9;
8
- --va-c-bg-mute: #f1f1f1;
9
- }
10
-
11
- html.dark {
12
- --va-c-bg: #1a1a1d;
13
- --va-c-bg-light: #202127;
14
- --va-c-bg-dark: #1a1a1a;
15
- --va-c-bg-opacity: rgba(0, 0, 0, 0.8);
16
- --va-c-bg-alt: #161618;
17
- --va-c-bg-soft: #202127;
18
- --va-c-bg-mute: #2f2f2f;
19
- }
@@ -1,15 +0,0 @@
1
- html,
2
- body,
3
- #app {
4
- margin: 0;
5
- padding: 0;
6
- line-height: 2;
7
- }
8
-
9
- html {
10
- background-color: var(--va-c-bg);
11
- }
12
-
13
- a {
14
- cursor: pointer;
15
- }