valaxy 0.19.2 → 0.19.4

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 _chunkVJHFBXMRcjs = require('../../chunk-VJHFBXMR.cjs');require('../../chunk-AFNVTV2C.cjs');exports.cli = _chunkVJHFBXMRcjs.T; exports.run = _chunkVJHFBXMRcjs.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-K5UQMKIT.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 _chunkVJHFBXMRcjs = require('../chunk-VJHFBXMR.cjs');require('../chunk-AFNVTV2C.cjs');exports.ALL_ROUTE = _chunkVJHFBXMRcjs.e; exports.EXCERPT_SEPARATOR = _chunkVJHFBXMRcjs.b; exports.EXTERNAL_URL_RE = _chunkVJHFBXMRcjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkVJHFBXMRcjs.d; exports.ViteValaxyPlugins = _chunkVJHFBXMRcjs.N; exports.build = _chunkVJHFBXMRcjs.O; exports.cli = _chunkVJHFBXMRcjs.T; exports.createServer = _chunkVJHFBXMRcjs.S; exports.createValaxyLoader = _chunkVJHFBXMRcjs.M; exports.customElements = _chunkVJHFBXMRcjs.f; exports.defaultSiteConfig = _chunkVJHFBXMRcjs.p; exports.defaultValaxyConfig = _chunkVJHFBXMRcjs.t; exports.defineAddon = _chunkVJHFBXMRcjs.A; exports.defineConfig = _chunkVJHFBXMRcjs.v; exports.defineSiteConfig = _chunkVJHFBXMRcjs.q; exports.defineTheme = _chunkVJHFBXMRcjs.F; exports.defineUnoSetup = _chunkVJHFBXMRcjs.G; exports.defineValaxyAddon = _chunkVJHFBXMRcjs.z; exports.defineValaxyConfig = _chunkVJHFBXMRcjs.u; exports.defineValaxyTheme = _chunkVJHFBXMRcjs.E; exports.ensurePrefix = _chunkVJHFBXMRcjs.j; exports.generateClientRedirects = _chunkVJHFBXMRcjs.R; exports.getGitTimestamp = _chunkVJHFBXMRcjs.a; exports.getIndexHtml = _chunkVJHFBXMRcjs.L; exports.isExternal = _chunkVJHFBXMRcjs.h; exports.isPath = _chunkVJHFBXMRcjs.l; exports.loadConfig = _chunkVJHFBXMRcjs.n; exports.loadConfigFromFile = _chunkVJHFBXMRcjs.o; exports.mergeValaxyConfig = _chunkVJHFBXMRcjs.x; exports.mergeViteConfigs = _chunkVJHFBXMRcjs.K; exports.postProcessForSSG = _chunkVJHFBXMRcjs.Q; exports.processValaxyOptions = _chunkVJHFBXMRcjs.H; exports.resolveAddonsConfig = _chunkVJHFBXMRcjs.B; exports.resolveImportPath = _chunkVJHFBXMRcjs.g; exports.resolveOptions = _chunkVJHFBXMRcjs.I; exports.resolveSiteConfig = _chunkVJHFBXMRcjs.s; exports.resolveSiteConfigFromRoot = _chunkVJHFBXMRcjs.r; exports.resolveThemeConfigFromRoot = _chunkVJHFBXMRcjs.C; exports.resolveThemeValaxyConfig = _chunkVJHFBXMRcjs.J; exports.resolveUserThemeConfig = _chunkVJHFBXMRcjs.D; exports.resolveValaxyConfig = _chunkVJHFBXMRcjs.y; exports.resolveValaxyConfigFromRoot = _chunkVJHFBXMRcjs.w; exports.run = _chunkVJHFBXMRcjs.U; exports.slash = _chunkVJHFBXMRcjs.i; exports.ssgBuild = _chunkVJHFBXMRcjs.P; exports.toAtFS = _chunkVJHFBXMRcjs.k; exports.transformObject = _chunkVJHFBXMRcjs.m;
@@ -205,8 +205,24 @@ interface ValaxyExtendConfig {
205
205
  * Don't fail builds due to dead links.
206
206
  *
207
207
  * @default false
208
+ * @deprecated use `build.ignoreDeadLinks` instead
208
209
  */
209
210
  ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
211
+ build: {
212
+ /**
213
+ * Don't fail builds due to dead links.
214
+ *
215
+ * @default false
216
+ */
217
+ ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
218
+ /**
219
+ * Enable SSG for pagination
220
+ * @default false
221
+ * When enabled, it will generate pagination pages for you.
222
+ * `/page/1`, `/page/2`, ...
223
+ */
224
+ ssgForPagination: boolean;
225
+ };
210
226
  /**
211
227
  * internal modules
212
228
  */
@@ -410,7 +426,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
410
426
  declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
411
427
  name: string;
412
428
  cwd: string;
413
- }): ResolvedConfig<T>;
429
+ }): Promise<ResolvedConfig<T>>;
414
430
  declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
415
431
 
416
432
  declare const defaultValaxyConfig: ValaxyNodeConfig;
@@ -205,8 +205,24 @@ interface ValaxyExtendConfig {
205
205
  * Don't fail builds due to dead links.
206
206
  *
207
207
  * @default false
208
+ * @deprecated use `build.ignoreDeadLinks` instead
208
209
  */
209
210
  ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
211
+ build: {
212
+ /**
213
+ * Don't fail builds due to dead links.
214
+ *
215
+ * @default false
216
+ */
217
+ ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
218
+ /**
219
+ * Enable SSG for pagination
220
+ * @default false
221
+ * When enabled, it will generate pagination pages for you.
222
+ * `/page/1`, `/page/2`, ...
223
+ */
224
+ ssgForPagination: boolean;
225
+ };
210
226
  /**
211
227
  * internal modules
212
228
  */
@@ -410,7 +426,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
410
426
  declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
411
427
  name: string;
412
428
  cwd: string;
413
- }): ResolvedConfig<T>;
429
+ }): Promise<ResolvedConfig<T>>;
414
430
  declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
415
431
 
416
432
  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-K5UQMKIT.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.4",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -59,16 +59,15 @@
59
59
  "dependencies": {
60
60
  "@antfu/utils": "^0.7.10",
61
61
  "@ctrl/tinycolor": "^4.1.0",
62
- "@iconify-json/carbon": "^1.1.36",
63
62
  "@iconify-json/ri": "^1.1.21",
64
63
  "@intlify/unplugin-vue-i18n": "^4.0.0",
65
64
  "@types/js-yaml": "^4.0.9",
66
65
  "@types/katex": "^0.16.7",
67
- "@unhead/addons": "^1.9.15",
68
- "@unhead/schema-org": "^1.9.15",
69
- "@unhead/vue": "^1.9.15",
66
+ "@unhead/addons": "^1.9.16",
67
+ "@unhead/schema-org": "^1.9.16",
68
+ "@unhead/vue": "^1.9.16",
70
69
  "@vitejs/plugin-vue": "^5.0.5",
71
- "@vue/devtools-api": "^7.3.5",
70
+ "@vue/devtools-api": "^7.3.6",
72
71
  "@vueuse/core": "^10.11.0",
73
72
  "@vueuse/integrations": "^10.11.0",
74
73
  "consola": "^3.2.3",
@@ -110,24 +109,25 @@
110
109
  "pathe": "^1.1.2",
111
110
  "pinia": "^2.1.7",
112
111
  "qrcode": "^1.5.3",
113
- "sass": "^1.77.7",
112
+ "sass": "^1.77.8",
114
113
  "shiki": "^1.10.3",
115
114
  "star-markdown-css": "^0.5.1",
116
- "unocss": "^0.61.3",
117
- "unplugin-vue-components": "^0.27.2",
115
+ "unocss": "^0.61.5",
116
+ "unplugin-vue-components": "^0.27.3",
118
117
  "unplugin-vue-markdown": "^0.26.2",
119
118
  "unplugin-vue-router": "^0.10.0",
120
119
  "vanilla-lazyload": "^19.1.3",
121
- "vite": "^5.3.3",
122
- "vite-plugin-vue-devtools": "^7.3.5",
120
+ "vite": "^5.3.4",
121
+ "vite-plugin-vue-devtools": "^7.3.6",
123
122
  "vite-plugin-vue-layouts": "0.11.0",
124
123
  "vite-ssg": "0.23.7",
125
124
  "vite-ssg-sitemap": "0.6.1",
126
- "vue": "^3.4.31",
125
+ "vue": "^3.4.33",
127
126
  "vue-i18n": "^9.13.1",
128
127
  "vue-router": "^4.4.0",
129
128
  "yargs": "^17.7.2",
130
- "@valaxyjs/devtools": "0.19.2"
129
+ "@valaxyjs/devtools": "0.19.4",
130
+ "@valaxyjs/utils": "0.19.4"
131
131
  },
132
132
  "devDependencies": {
133
133
  "@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