valaxy 0.19.2 → 0.19.3

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
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRVKKZQ6Ccjs = require('../../chunk-RVKKZQ6C.cjs');require('../../chunk-I6UPHJXQ.cjs');exports.cli = _chunkRVKKZQ6Ccjs.T; exports.run = _chunkRVKKZQ6Ccjs.U;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHR5LED6Ecjs = require('../../chunk-HR5LED6E.cjs');require('../../chunk-AFNVTV2C.cjs');exports.cli = _chunkHR5LED6Ecjs.T; exports.run = _chunkHR5LED6Ecjs.U;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{T as a,U as b}from"../../chunk-PTYUKZAG.mjs";import"../../chunk-7VTZAWDO.mjs";export{a as cli,b as run};
2
+ import{T as a,U as b}from"../../chunk-YCKEDOLI.mjs";import"../../chunk-GYSOLAXM.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRVKKZQ6Ccjs = require('../chunk-RVKKZQ6C.cjs');require('../chunk-I6UPHJXQ.cjs');exports.ALL_ROUTE = _chunkRVKKZQ6Ccjs.e; exports.EXCERPT_SEPARATOR = _chunkRVKKZQ6Ccjs.b; exports.EXTERNAL_URL_RE = _chunkRVKKZQ6Ccjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkRVKKZQ6Ccjs.d; exports.ViteValaxyPlugins = _chunkRVKKZQ6Ccjs.N; exports.build = _chunkRVKKZQ6Ccjs.O; exports.cli = _chunkRVKKZQ6Ccjs.T; exports.createServer = _chunkRVKKZQ6Ccjs.S; exports.createValaxyLoader = _chunkRVKKZQ6Ccjs.M; exports.customElements = _chunkRVKKZQ6Ccjs.f; exports.defaultSiteConfig = _chunkRVKKZQ6Ccjs.p; exports.defaultValaxyConfig = _chunkRVKKZQ6Ccjs.t; exports.defineAddon = _chunkRVKKZQ6Ccjs.A; exports.defineConfig = _chunkRVKKZQ6Ccjs.v; exports.defineSiteConfig = _chunkRVKKZQ6Ccjs.q; exports.defineTheme = _chunkRVKKZQ6Ccjs.F; exports.defineUnoSetup = _chunkRVKKZQ6Ccjs.G; exports.defineValaxyAddon = _chunkRVKKZQ6Ccjs.z; exports.defineValaxyConfig = _chunkRVKKZQ6Ccjs.u; exports.defineValaxyTheme = _chunkRVKKZQ6Ccjs.E; exports.ensurePrefix = _chunkRVKKZQ6Ccjs.j; exports.generateClientRedirects = _chunkRVKKZQ6Ccjs.R; exports.getGitTimestamp = _chunkRVKKZQ6Ccjs.a; exports.getIndexHtml = _chunkRVKKZQ6Ccjs.L; exports.isExternal = _chunkRVKKZQ6Ccjs.h; exports.isPath = _chunkRVKKZQ6Ccjs.l; exports.loadConfig = _chunkRVKKZQ6Ccjs.n; exports.loadConfigFromFile = _chunkRVKKZQ6Ccjs.o; exports.mergeValaxyConfig = _chunkRVKKZQ6Ccjs.x; exports.mergeViteConfigs = _chunkRVKKZQ6Ccjs.K; exports.postProcessForSSG = _chunkRVKKZQ6Ccjs.Q; exports.processValaxyOptions = _chunkRVKKZQ6Ccjs.H; exports.resolveAddonsConfig = _chunkRVKKZQ6Ccjs.B; exports.resolveImportPath = _chunkRVKKZQ6Ccjs.g; exports.resolveOptions = _chunkRVKKZQ6Ccjs.I; exports.resolveSiteConfig = _chunkRVKKZQ6Ccjs.s; exports.resolveSiteConfigFromRoot = _chunkRVKKZQ6Ccjs.r; exports.resolveThemeConfigFromRoot = _chunkRVKKZQ6Ccjs.C; exports.resolveThemeValaxyConfig = _chunkRVKKZQ6Ccjs.J; exports.resolveUserThemeConfig = _chunkRVKKZQ6Ccjs.D; exports.resolveValaxyConfig = _chunkRVKKZQ6Ccjs.y; exports.resolveValaxyConfigFromRoot = _chunkRVKKZQ6Ccjs.w; exports.run = _chunkRVKKZQ6Ccjs.U; exports.slash = _chunkRVKKZQ6Ccjs.i; exports.ssgBuild = _chunkRVKKZQ6Ccjs.P; exports.toAtFS = _chunkRVKKZQ6Ccjs.k; exports.transformObject = _chunkRVKKZQ6Ccjs.m;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHR5LED6Ecjs = require('../chunk-HR5LED6E.cjs');require('../chunk-AFNVTV2C.cjs');exports.ALL_ROUTE = _chunkHR5LED6Ecjs.e; exports.EXCERPT_SEPARATOR = _chunkHR5LED6Ecjs.b; exports.EXTERNAL_URL_RE = _chunkHR5LED6Ecjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkHR5LED6Ecjs.d; exports.ViteValaxyPlugins = _chunkHR5LED6Ecjs.N; exports.build = _chunkHR5LED6Ecjs.O; exports.cli = _chunkHR5LED6Ecjs.T; exports.createServer = _chunkHR5LED6Ecjs.S; exports.createValaxyLoader = _chunkHR5LED6Ecjs.M; exports.customElements = _chunkHR5LED6Ecjs.f; exports.defaultSiteConfig = _chunkHR5LED6Ecjs.p; exports.defaultValaxyConfig = _chunkHR5LED6Ecjs.t; exports.defineAddon = _chunkHR5LED6Ecjs.A; exports.defineConfig = _chunkHR5LED6Ecjs.v; exports.defineSiteConfig = _chunkHR5LED6Ecjs.q; exports.defineTheme = _chunkHR5LED6Ecjs.F; exports.defineUnoSetup = _chunkHR5LED6Ecjs.G; exports.defineValaxyAddon = _chunkHR5LED6Ecjs.z; exports.defineValaxyConfig = _chunkHR5LED6Ecjs.u; exports.defineValaxyTheme = _chunkHR5LED6Ecjs.E; exports.ensurePrefix = _chunkHR5LED6Ecjs.j; exports.generateClientRedirects = _chunkHR5LED6Ecjs.R; exports.getGitTimestamp = _chunkHR5LED6Ecjs.a; exports.getIndexHtml = _chunkHR5LED6Ecjs.L; exports.isExternal = _chunkHR5LED6Ecjs.h; exports.isPath = _chunkHR5LED6Ecjs.l; exports.loadConfig = _chunkHR5LED6Ecjs.n; exports.loadConfigFromFile = _chunkHR5LED6Ecjs.o; exports.mergeValaxyConfig = _chunkHR5LED6Ecjs.x; exports.mergeViteConfigs = _chunkHR5LED6Ecjs.K; exports.postProcessForSSG = _chunkHR5LED6Ecjs.Q; exports.processValaxyOptions = _chunkHR5LED6Ecjs.H; exports.resolveAddonsConfig = _chunkHR5LED6Ecjs.B; exports.resolveImportPath = _chunkHR5LED6Ecjs.g; exports.resolveOptions = _chunkHR5LED6Ecjs.I; exports.resolveSiteConfig = _chunkHR5LED6Ecjs.s; exports.resolveSiteConfigFromRoot = _chunkHR5LED6Ecjs.r; exports.resolveThemeConfigFromRoot = _chunkHR5LED6Ecjs.C; exports.resolveThemeValaxyConfig = _chunkHR5LED6Ecjs.J; exports.resolveUserThemeConfig = _chunkHR5LED6Ecjs.D; exports.resolveValaxyConfig = _chunkHR5LED6Ecjs.y; exports.resolveValaxyConfigFromRoot = _chunkHR5LED6Ecjs.w; exports.run = _chunkHR5LED6Ecjs.U; exports.slash = _chunkHR5LED6Ecjs.i; exports.ssgBuild = _chunkHR5LED6Ecjs.P; exports.toAtFS = _chunkHR5LED6Ecjs.k; exports.transformObject = _chunkHR5LED6Ecjs.m;
@@ -410,7 +410,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
410
410
  declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
411
411
  name: string;
412
412
  cwd: string;
413
- }): ResolvedConfig<T>;
413
+ }): Promise<ResolvedConfig<T>>;
414
414
  declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
415
415
 
416
416
  declare const defaultValaxyConfig: ValaxyNodeConfig;
@@ -410,7 +410,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
410
410
  declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
411
411
  name: string;
412
412
  cwd: string;
413
- }): ResolvedConfig<T>;
413
+ }): Promise<ResolvedConfig<T>>;
414
414
  declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
415
415
 
416
416
  declare const defaultValaxyConfig: ValaxyNodeConfig;
@@ -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,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-PTYUKZAG.mjs";import"../chunk-7VTZAWDO.mjs";export{e as ALL_ROUTE,b as EXCERPT_SEPARATOR,c as EXTERNAL_URL_RE,d as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,f as customElements,p as defaultSiteConfig,t as defaultValaxyConfig,A as defineAddon,v as defineConfig,q as defineSiteConfig,F as defineTheme,G as defineUnoSetup,z as defineValaxyAddon,u as defineValaxyConfig,E as defineValaxyTheme,j as ensurePrefix,R as generateClientRedirects,a as getGitTimestamp,L as getIndexHtml,h as isExternal,l as isPath,n as loadConfig,o as loadConfigFromFile,x as mergeValaxyConfig,K as mergeViteConfigs,Q as postProcessForSSG,H as processValaxyOptions,B as resolveAddonsConfig,g as resolveImportPath,I as resolveOptions,s as resolveSiteConfig,r as resolveSiteConfigFromRoot,C as resolveThemeConfigFromRoot,J as resolveThemeValaxyConfig,D as resolveUserThemeConfig,y as resolveValaxyConfig,w as resolveValaxyConfigFromRoot,U as run,i as slash,P as ssgBuild,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,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-YCKEDOLI.mjs";import"../chunk-GYSOLAXM.mjs";export{e as ALL_ROUTE,b as EXCERPT_SEPARATOR,c as EXTERNAL_URL_RE,d as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,f as customElements,p as defaultSiteConfig,t as defaultValaxyConfig,A as defineAddon,v as defineConfig,q as defineSiteConfig,F as defineTheme,G as defineUnoSetup,z as defineValaxyAddon,u as defineValaxyConfig,E as defineValaxyTheme,j as ensurePrefix,R as generateClientRedirects,a as getGitTimestamp,L as getIndexHtml,h as isExternal,l as isPath,n as loadConfig,o as loadConfigFromFile,x as mergeValaxyConfig,K as mergeViteConfigs,Q as postProcessForSSG,H as processValaxyOptions,B as resolveAddonsConfig,g as resolveImportPath,I as resolveOptions,s as resolveSiteConfig,r as resolveSiteConfigFromRoot,C as resolveThemeConfigFromRoot,J as resolveThemeValaxyConfig,D as resolveUserThemeConfig,y as resolveValaxyConfig,w as resolveValaxyConfigFromRoot,U as run,i as slash,P as ssgBuild,k as toAtFS,m as transformObject};
@@ -1 +1 @@
1
- "use strict";var _chunkI6UPHJXQcjs = require('../chunk-I6UPHJXQ.cjs');_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );_chunkI6UPHJXQcjs.e.call(void 0, );
1
+ "use strict";var _chunkAFNVTV2Ccjs = require('../chunk-AFNVTV2C.cjs');_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );
@@ -1,5 +1,6 @@
1
1
  import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BuLv3zWm.cjs';
2
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-BuLv3zWm.cjs';
3
+ import { Header } from '@valaxyjs/utils';
3
4
  import 'medium-zoom';
4
5
  import '@vueuse/integrations/useFuse';
5
6
  import 'vanilla-lazyload';
@@ -11,34 +12,6 @@ type Page = Partial<PageFrontMatter>;
11
12
  type Post = Partial<PostFrontMatter>;
12
13
 
13
14
  type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
14
- interface Header {
15
- /**
16
- * The level of the header
17
- *
18
- * `1` to `6` for `<h1>` to `<h6>`
19
- */
20
- level: number;
21
- /**
22
- * The title of the header
23
- */
24
- title: string;
25
- /**
26
- * The slug of the header
27
- *
28
- * Typically the `id` attr of the header anchor
29
- */
30
- slug: string;
31
- /**
32
- * Link of the header
33
- *
34
- * Typically using `#${slug}` as the anchor hash
35
- */
36
- link: string;
37
- /**
38
- * i18n
39
- */
40
- lang?: string;
41
- }
42
15
  interface PageData {
43
16
  path: string;
44
17
  relativePath: string;
@@ -55,4 +28,4 @@ interface PageDataPayload {
55
28
  }
56
29
  type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
57
30
 
58
- export { type CleanUrlsMode, type HeadConfig, type Header, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
31
+ export { type CleanUrlsMode, type HeadConfig, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
@@ -1,5 +1,6 @@
1
1
  import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BuLv3zWm.js';
2
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-BuLv3zWm.js';
3
+ import { Header } from '@valaxyjs/utils';
3
4
  import 'medium-zoom';
4
5
  import '@vueuse/integrations/useFuse';
5
6
  import 'vanilla-lazyload';
@@ -11,34 +12,6 @@ type Page = Partial<PageFrontMatter>;
11
12
  type Post = Partial<PostFrontMatter>;
12
13
 
13
14
  type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
14
- interface Header {
15
- /**
16
- * The level of the header
17
- *
18
- * `1` to `6` for `<h1>` to `<h6>`
19
- */
20
- level: number;
21
- /**
22
- * The title of the header
23
- */
24
- title: string;
25
- /**
26
- * The slug of the header
27
- *
28
- * Typically the `id` attr of the header anchor
29
- */
30
- slug: string;
31
- /**
32
- * Link of the header
33
- *
34
- * Typically using `#${slug}` as the anchor hash
35
- */
36
- link: string;
37
- /**
38
- * i18n
39
- */
40
- lang?: string;
41
- }
42
15
  interface PageData {
43
16
  path: string;
44
17
  relativePath: string;
@@ -55,4 +28,4 @@ interface PageDataPayload {
55
28
  }
56
29
  type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
57
30
 
58
- export { type CleanUrlsMode, type HeadConfig, type Header, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
31
+ export { type CleanUrlsMode, type HeadConfig, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{d as e}from"../chunk-7VTZAWDO.mjs";e();e();e();e();e();e();e();e();e();e();
2
+ import{d as e}from"../chunk-GYSOLAXM.mjs";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.19.2",
4
+ "version": "0.19.3",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -64,11 +64,11 @@
64
64
  "@intlify/unplugin-vue-i18n": "^4.0.0",
65
65
  "@types/js-yaml": "^4.0.9",
66
66
  "@types/katex": "^0.16.7",
67
- "@unhead/addons": "^1.9.15",
68
- "@unhead/schema-org": "^1.9.15",
69
- "@unhead/vue": "^1.9.15",
67
+ "@unhead/addons": "^1.9.16",
68
+ "@unhead/schema-org": "^1.9.16",
69
+ "@unhead/vue": "^1.9.16",
70
70
  "@vitejs/plugin-vue": "^5.0.5",
71
- "@vue/devtools-api": "^7.3.5",
71
+ "@vue/devtools-api": "^7.3.6",
72
72
  "@vueuse/core": "^10.11.0",
73
73
  "@vueuse/integrations": "^10.11.0",
74
74
  "consola": "^3.2.3",
@@ -110,24 +110,25 @@
110
110
  "pathe": "^1.1.2",
111
111
  "pinia": "^2.1.7",
112
112
  "qrcode": "^1.5.3",
113
- "sass": "^1.77.7",
113
+ "sass": "^1.77.8",
114
114
  "shiki": "^1.10.3",
115
115
  "star-markdown-css": "^0.5.1",
116
- "unocss": "^0.61.3",
117
- "unplugin-vue-components": "^0.27.2",
116
+ "unocss": "^0.61.5",
117
+ "unplugin-vue-components": "^0.27.3",
118
118
  "unplugin-vue-markdown": "^0.26.2",
119
119
  "unplugin-vue-router": "^0.10.0",
120
120
  "vanilla-lazyload": "^19.1.3",
121
- "vite": "^5.3.3",
122
- "vite-plugin-vue-devtools": "^7.3.5",
121
+ "vite": "^5.3.4",
122
+ "vite-plugin-vue-devtools": "^7.3.6",
123
123
  "vite-plugin-vue-layouts": "0.11.0",
124
124
  "vite-ssg": "0.23.7",
125
125
  "vite-ssg-sitemap": "0.6.1",
126
- "vue": "^3.4.31",
126
+ "vue": "^3.4.33",
127
127
  "vue-i18n": "^9.13.1",
128
128
  "vue-router": "^4.4.0",
129
129
  "yargs": "^17.7.2",
130
- "@valaxyjs/devtools": "0.19.2"
130
+ "@valaxyjs/devtools": "0.19.3",
131
+ "@valaxyjs/utils": "0.19.3"
131
132
  },
132
133
  "devDependencies": {
133
134
  "@mdit-vue/plugin-component": "^2.1.3",
package/shims.d.ts CHANGED
@@ -3,8 +3,8 @@ import 'vue-router'
3
3
  // import './client/typed-router'
4
4
 
5
5
  import type { Ref } from 'vue'
6
+ import type { Header } from '@valaxyjs/utils'
6
7
  import type { Post } from './types'
7
- import type { Header } from './node/plugins/markdown'
8
8
 
9
9
  declare module 'valaxy-addon-*'
10
10
  declare module '@docsearch/js' {
package/types/data.ts CHANGED
@@ -1,37 +1,10 @@
1
+ import type { Header } from '@valaxyjs/utils'
1
2
  import type { Post } from './posts'
2
3
 
3
4
  export type CleanUrlsMode =
4
5
  | 'disabled'
5
6
  | 'without-subfolders'
6
7
  | 'with-subfolders'
7
- export interface Header {
8
- /**
9
- * The level of the header
10
- *
11
- * `1` to `6` for `<h1>` to `<h6>`
12
- */
13
- level: number
14
- /**
15
- * The title of the header
16
- */
17
- title: string
18
- /**
19
- * The slug of the header
20
- *
21
- * Typically the `id` attr of the header anchor
22
- */
23
- slug: string
24
- /**
25
- * Link of the header
26
- *
27
- * Typically using `#${slug}` as the anchor hash
28
- */
29
- link: string
30
- /**
31
- * i18n
32
- */
33
- lang?: string
34
- }
35
8
 
36
9
  export interface PageData {
37
10
  path: string
File without changes