valaxy 0.20.5 → 0.20.6

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.
Files changed (59) hide show
  1. package/client/components/ValaxyApp.vue +10 -10
  2. package/client/components/ValaxyDecrypt.vue +1 -0
  3. package/client/components/ValaxyGalleryDecrypt.vue +1 -0
  4. package/client/components/ValaxyMd.vue +3 -3
  5. package/client/components/builtin/ValaxyMermaid.vue +40 -41
  6. package/client/composables/app/useValaxyHead.ts +3 -3
  7. package/client/composables/categories.ts +1 -1
  8. package/client/composables/codeGroups.ts +1 -1
  9. package/client/composables/collections.ts +1 -1
  10. package/client/composables/common.ts +3 -3
  11. package/client/composables/features/collapse-code.ts +1 -1
  12. package/client/composables/features/copy-code.ts +1 -0
  13. package/client/composables/features/index.ts +1 -1
  14. package/client/composables/helper/useInvisibleElement.ts +1 -1
  15. package/client/composables/index.ts +10 -10
  16. package/client/composables/locale.ts +4 -3
  17. package/client/composables/outline/anchor.ts +1 -1
  18. package/client/composables/outline/headers.ts +3 -3
  19. package/client/composables/outline/index.ts +1 -1
  20. package/client/composables/post/index.ts +3 -3
  21. package/client/composables/search/useFuseSearch.ts +4 -4
  22. package/client/composables/tags.ts +1 -1
  23. package/client/composables/widgets/aplayer.ts +1 -1
  24. package/client/config.ts +8 -8
  25. package/client/index.ts +5 -5
  26. package/client/main.ts +15 -15
  27. package/client/modules/devtools.ts +1 -1
  28. package/client/modules/floating-vue.ts +3 -3
  29. package/client/modules/mermaid.ts +3 -3
  30. package/client/modules/nprogress.ts +1 -1
  31. package/client/modules/pinia.ts +1 -1
  32. package/client/modules/schemaOrg.ts +1 -1
  33. package/client/modules/valaxy.ts +6 -6
  34. package/client/setup/main.ts +7 -7
  35. package/client/setup/mermaid.ts +1 -1
  36. package/client/setups.ts +1 -1
  37. package/client/stores/app.ts +1 -1
  38. package/client/stores/site.ts +2 -2
  39. package/client/types/index.ts +1 -1
  40. package/client/utils/index.ts +3 -3
  41. package/client/utils/time.ts +3 -4
  42. package/dist/chunk-BQRH2D76.mjs +162 -0
  43. package/dist/chunk-F3UFLKIV.cjs +161 -0
  44. package/dist/node/cli/index.cjs +1 -1
  45. package/dist/node/cli/index.mjs +1 -1
  46. package/dist/node/index.cjs +1 -1
  47. package/dist/node/index.d.cts +86 -86
  48. package/dist/node/index.d.ts +86 -86
  49. package/dist/node/index.mjs +1 -1
  50. package/dist/types/index.d.cts +3 -3
  51. package/dist/types/index.d.ts +3 -3
  52. package/package.json +11 -11
  53. package/shims.d.ts +2 -2
  54. package/types/config.ts +1 -1
  55. package/types/index.ts +3 -3
  56. package/dist/chunk-5CL433IL.mjs +0 -162
  57. package/dist/chunk-VDCJKFCV.cjs +0 -161
  58. package/dist/{config-DfXD9Gt_.d.cts → config-Dxu7i2Zs.d.cts} +1 -1
  59. package/dist/{config-DfXD9Gt_.d.ts → config-Dxu7i2Zs.d.ts} +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVDCJKFCVcjs = require('../../chunk-VDCJKFCV.cjs');require('../../chunk-6GE64PZD.cjs');exports.cli = _chunkVDCJKFCVcjs.V; exports.run = _chunkVDCJKFCVcjs.W;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF3UFLKIVcjs = require('../../chunk-F3UFLKIV.cjs');require('../../chunk-6GE64PZD.cjs');exports.cli = _chunkF3UFLKIVcjs.V; exports.run = _chunkF3UFLKIVcjs.W;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{V as a,W as b}from"../../chunk-5CL433IL.mjs";import"../../chunk-WE2LNW3F.mjs";export{a as cli,b as run};
2
+ import{V as a,W as b}from"../../chunk-BQRH2D76.mjs";import"../../chunk-WE2LNW3F.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVDCJKFCVcjs = require('../chunk-VDCJKFCV.cjs');require('../chunk-6GE64PZD.cjs');exports.ALL_ROUTE = _chunkVDCJKFCVcjs.g; exports.EXCERPT_SEPARATOR = _chunkVDCJKFCVcjs.d; exports.EXTERNAL_URL_RE = _chunkVDCJKFCVcjs.e; exports.PATHNAME_PROTOCOL_RE = _chunkVDCJKFCVcjs.f; exports.ViteValaxyPlugins = _chunkVDCJKFCVcjs.P; exports.build = _chunkVDCJKFCVcjs.Q; exports.cli = _chunkVDCJKFCVcjs.V; exports.createServer = _chunkVDCJKFCVcjs.U; exports.createValaxyLoader = _chunkVDCJKFCVcjs.O; exports.customElements = _chunkVDCJKFCVcjs.h; exports.defaultSiteConfig = _chunkVDCJKFCVcjs.r; exports.defaultValaxyConfig = _chunkVDCJKFCVcjs.v; exports.defaultViteConfig = _chunkVDCJKFCVcjs.i; exports.defineAddon = _chunkVDCJKFCVcjs.C; exports.defineConfig = _chunkVDCJKFCVcjs.x; exports.defineSiteConfig = _chunkVDCJKFCVcjs.s; exports.defineTheme = _chunkVDCJKFCVcjs.H; exports.defineUnoSetup = _chunkVDCJKFCVcjs.I; exports.defineValaxyAddon = _chunkVDCJKFCVcjs.B; exports.defineValaxyConfig = _chunkVDCJKFCVcjs.w; exports.defineValaxyTheme = _chunkVDCJKFCVcjs.G; exports.ensurePrefix = _chunkVDCJKFCVcjs.l; exports.generateClientRedirects = _chunkVDCJKFCVcjs.T; exports.getGitTimestamp = _chunkVDCJKFCVcjs.a; exports.getIndexHtml = _chunkVDCJKFCVcjs.N; exports.isExternal = _chunkVDCJKFCVcjs.j; exports.isInstalledGlobally = _chunkVDCJKFCVcjs.b; exports.isPath = _chunkVDCJKFCVcjs.n; exports.loadConfig = _chunkVDCJKFCVcjs.p; exports.loadConfigFromFile = _chunkVDCJKFCVcjs.q; exports.mergeValaxyConfig = _chunkVDCJKFCVcjs.z; exports.mergeViteConfigs = _chunkVDCJKFCVcjs.M; exports.postProcessForSSG = _chunkVDCJKFCVcjs.S; exports.processValaxyOptions = _chunkVDCJKFCVcjs.J; exports.resolveAddonsConfig = _chunkVDCJKFCVcjs.D; exports.resolveImportPath = _chunkVDCJKFCVcjs.c; exports.resolveOptions = _chunkVDCJKFCVcjs.K; exports.resolveSiteConfig = _chunkVDCJKFCVcjs.u; exports.resolveSiteConfigFromRoot = _chunkVDCJKFCVcjs.t; exports.resolveThemeConfigFromRoot = _chunkVDCJKFCVcjs.E; exports.resolveThemeValaxyConfig = _chunkVDCJKFCVcjs.L; exports.resolveUserThemeConfig = _chunkVDCJKFCVcjs.F; exports.resolveValaxyConfig = _chunkVDCJKFCVcjs.A; exports.resolveValaxyConfigFromRoot = _chunkVDCJKFCVcjs.y; exports.run = _chunkVDCJKFCVcjs.W; exports.slash = _chunkVDCJKFCVcjs.k; exports.ssgBuild = _chunkVDCJKFCVcjs.R; exports.toAtFS = _chunkVDCJKFCVcjs.m; exports.transformObject = _chunkVDCJKFCVcjs.o;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF3UFLKIVcjs = require('../chunk-F3UFLKIV.cjs');require('../chunk-6GE64PZD.cjs');exports.ALL_ROUTE = _chunkF3UFLKIVcjs.d; exports.EXCERPT_SEPARATOR = _chunkF3UFLKIVcjs.a; exports.EXTERNAL_URL_RE = _chunkF3UFLKIVcjs.b; exports.PATHNAME_PROTOCOL_RE = _chunkF3UFLKIVcjs.c; exports.ViteValaxyPlugins = _chunkF3UFLKIVcjs.P; exports.build = _chunkF3UFLKIVcjs.Q; exports.cli = _chunkF3UFLKIVcjs.V; exports.createServer = _chunkF3UFLKIVcjs.U; exports.createValaxyLoader = _chunkF3UFLKIVcjs.O; exports.customElements = _chunkF3UFLKIVcjs.e; exports.defaultSiteConfig = _chunkF3UFLKIVcjs.t; exports.defaultValaxyConfig = _chunkF3UFLKIVcjs.x; exports.defaultViteConfig = _chunkF3UFLKIVcjs.f; exports.defineAddon = _chunkF3UFLKIVcjs.E; exports.defineConfig = _chunkF3UFLKIVcjs.z; exports.defineSiteConfig = _chunkF3UFLKIVcjs.u; exports.defineTheme = _chunkF3UFLKIVcjs.J; exports.defineUnoSetup = _chunkF3UFLKIVcjs.K; exports.defineValaxyAddon = _chunkF3UFLKIVcjs.D; exports.defineValaxyConfig = _chunkF3UFLKIVcjs.y; exports.defineValaxyTheme = _chunkF3UFLKIVcjs.I; exports.ensurePrefix = _chunkF3UFLKIVcjs.j; exports.generateClientRedirects = _chunkF3UFLKIVcjs.T; exports.getGitTimestamp = _chunkF3UFLKIVcjs.g; exports.getIndexHtml = _chunkF3UFLKIVcjs.q; exports.isExternal = _chunkF3UFLKIVcjs.h; exports.isInstalledGlobally = _chunkF3UFLKIVcjs.n; exports.isPath = _chunkF3UFLKIVcjs.l; exports.loadConfig = _chunkF3UFLKIVcjs.r; exports.loadConfigFromFile = _chunkF3UFLKIVcjs.s; exports.mergeValaxyConfig = _chunkF3UFLKIVcjs.B; exports.mergeViteConfigs = _chunkF3UFLKIVcjs.p; exports.postProcessForSSG = _chunkF3UFLKIVcjs.S; exports.processValaxyOptions = _chunkF3UFLKIVcjs.L; exports.resolveAddonsConfig = _chunkF3UFLKIVcjs.F; exports.resolveImportPath = _chunkF3UFLKIVcjs.o; exports.resolveOptions = _chunkF3UFLKIVcjs.M; exports.resolveSiteConfig = _chunkF3UFLKIVcjs.w; exports.resolveSiteConfigFromRoot = _chunkF3UFLKIVcjs.v; exports.resolveThemeConfigFromRoot = _chunkF3UFLKIVcjs.G; exports.resolveThemeValaxyConfig = _chunkF3UFLKIVcjs.N; exports.resolveUserThemeConfig = _chunkF3UFLKIVcjs.H; exports.resolveValaxyConfig = _chunkF3UFLKIVcjs.C; exports.resolveValaxyConfigFromRoot = _chunkF3UFLKIVcjs.A; exports.run = _chunkF3UFLKIVcjs.W; exports.slash = _chunkF3UFLKIVcjs.i; exports.ssgBuild = _chunkF3UFLKIVcjs.R; exports.toAtFS = _chunkF3UFLKIVcjs.k; exports.transformObject = _chunkF3UFLKIVcjs.m;
@@ -1,33 +1,33 @@
1
1
  import { ViteSSGOptions } from 'vite-ssg';
2
- export { cli, run } from './cli/index.cjs';
3
2
  import * as vite from 'vite';
4
- import { UserConfig, InlineConfig, Plugin, PluginOption } from 'vite';
3
+ import { UserConfig, InlineConfig, PluginOption, Plugin } from 'vite';
4
+ import { MarkdownEnv } from 'unplugin-vue-markdown/types';
5
5
  import * as valaxy_types from 'valaxy/types';
6
6
  import { SiteConfig, DefaultTheme, ValaxyConfig, PartialDeep, ValaxyAddon, RuntimeConfig, RedirectItem, UserSiteConfig } from 'valaxy/types';
7
- import { MarkdownEnv } from 'unplugin-vue-markdown/types';
8
7
  import Vue from '@vitejs/plugin-vue';
8
+ import { Hookable } from 'hookable';
9
+ import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
10
+ import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
11
+ import { VitePluginConfig } from 'unocss/vite';
9
12
  import Components from 'unplugin-vue-components/vite';
10
- import Layouts from 'vite-plugin-vue-layouts';
11
13
  import Markdown from 'unplugin-vue-markdown/vite';
12
- import Router from 'unplugin-vue-router/vite';
13
- import { VitePluginConfig } from 'unocss/vite';
14
14
  import { EditableTreeNode } from 'unplugin-vue-router';
15
- import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
16
- import { Hookable } from 'hookable';
17
- import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
18
- import MarkdownIt from 'markdown-it';
19
- import { LanguageInput, ShikiTransformer, Highlighter, ThemeRegistration, BuiltinTheme } from 'shiki';
20
- import anchorPlugin from 'markdown-it-anchor';
21
- import { KatexOptions } from 'katex';
15
+ import Router from 'unplugin-vue-router/vite';
16
+ import Layouts from 'vite-plugin-vue-layouts';
22
17
  import { HeadersPluginOptions } from '@mdit-vue/plugin-headers';
23
18
  import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
24
19
  import { TocPluginOptions } from '@mdit-vue/plugin-toc';
20
+ import { KatexOptions } from 'katex';
21
+ import MarkdownIt from 'markdown-it';
22
+ import anchorPlugin from 'markdown-it-anchor';
23
+ import { LanguageInput, ShikiTransformer, Highlighter, ThemeRegistration, BuiltinTheme } from 'shiki';
24
+ export { cli, run } from './cli/index.cjs';
25
25
  import { Awaitable } from '@antfu/utils';
26
26
  import * as defu from 'defu';
27
- import { P as PartialDeep$1 } from '../config-DfXD9Gt_.cjs';
27
+ import { P as PartialDeep$1 } from '../config-Dxu7i2Zs.cjs';
28
28
  import 'yargs';
29
- import 'medium-zoom';
30
29
  import '@vueuse/integrations/useFuse';
30
+ import 'medium-zoom';
31
31
  import 'vanilla-lazyload';
32
32
  import 'vue-router';
33
33
  import '@vueuse/core';
@@ -471,6 +471,17 @@ declare function resolveOptions(options?: ValaxyEntryOptions, mode?: ResolvedVal
471
471
  */
472
472
  declare function resolveThemeValaxyConfig(options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
473
473
 
474
+ declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
475
+ declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
476
+ /**
477
+ * post process for ssg fix extra string like `/html>` `ml>` `l>`
478
+ * handle tasks after ssg build
479
+ * todo find why
480
+ * @param options
481
+ */
482
+ declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
483
+ declare function generateClientRedirects(options: ResolvedValaxyOptions): Promise<void>;
484
+
474
485
  /**
475
486
  * merge vite.config.ts (user & theme)
476
487
  * @internal
@@ -482,26 +493,13 @@ declare function mergeViteConfigs({ userRoot, themeRoot }: ResolvedValaxyOptions
482
493
  */
483
494
  declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions, rawHtml: string): Promise<string>;
484
495
 
485
- declare const EXCERPT_SEPARATOR = "<!-- more -->";
486
- declare const EXTERNAL_URL_RE: RegExp;
487
- declare const PATHNAME_PROTOCOL_RE: RegExp;
488
- declare const ALL_ROUTE = "/:all(.*)*";
489
- declare const customElements: Set<string>;
490
- /**
491
- * @see https://vitejs.dev/config/shared-options.html#css-preprocessoroptions for sass@2
492
- */
493
- declare const defaultViteConfig: UserConfig;
494
-
495
- declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
496
- declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
497
- /**
498
- * post process for ssg fix extra string like `/html>` `ml>` `l>`
499
- * handle tasks after ssg build
500
- * todo find why
501
- * @param options
502
- */
503
- declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
504
- declare function generateClientRedirects(options: ResolvedValaxyOptions): Promise<void>;
496
+ declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
497
+ setup?: ValaxyAddonResolver['setup'];
498
+ }): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
499
+ setup?: ValaxyAddonResolver["setup"];
500
+ };
501
+ declare const defineAddon: typeof defineValaxyAddon;
502
+ declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
505
503
 
506
504
  interface LoadConfigFromFileOptions {
507
505
  cwd?: string;
@@ -518,45 +516,6 @@ declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options
518
516
  }): Promise<ResolvedConfig<T>>;
519
517
  declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
520
518
 
521
- declare const defaultValaxyConfig: ValaxyNodeConfig;
522
- /**
523
- * Type helper for valaxy.config.ts
524
- */
525
- declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep$1<ValaxyNodeConfig<ThemeConfig>>;
526
- declare const defineConfig: typeof defineValaxyConfig;
527
- declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<ResolvedConfig<ValaxyNodeConfig>>;
528
- /**
529
- * merge valaxy.config
530
- * (source, default)
531
- */
532
- declare const mergeValaxyConfig: <Source extends {
533
- [x: string]: any;
534
- [x: number]: any;
535
- [x: symbol]: any;
536
- }, Defaults extends Array<{
537
- [x: string]: any;
538
- [x: number]: any;
539
- [x: symbol]: any;
540
- } | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
541
- /**
542
- * resolve user valaxy config
543
- * options only have userRoot
544
- * @param options
545
- */
546
- declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
547
- config: ValaxyNodeConfig;
548
- configFile: string;
549
- theme: string;
550
- }>;
551
-
552
- declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
553
- setup?: ValaxyAddonResolver['setup'];
554
- }): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
555
- setup?: ValaxyAddonResolver["setup"];
556
- };
557
- declare const defineAddon: typeof defineValaxyAddon;
558
- declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
559
-
560
519
  declare const defaultSiteConfig: SiteConfig;
561
520
  /**
562
521
  * Type helper for site.config.ts
@@ -595,9 +554,52 @@ type ValaxyTheme<ThemeConfig = DefaultTheme.Config> = ValaxyPickConfig & {
595
554
  declare function defineValaxyTheme<ThemeConfig = DefaultTheme.Config>(theme: ValaxyTheme<ThemeConfig> | ((options: ResolvedValaxyOptions<ThemeConfig>) => ValaxyTheme<ThemeConfig>)): ValaxyTheme<ThemeConfig> | ((options: ResolvedValaxyOptions<ThemeConfig>) => ValaxyTheme<ThemeConfig>);
596
555
  declare const defineTheme: typeof defineValaxyTheme;
597
556
 
557
+ declare const defaultValaxyConfig: ValaxyNodeConfig;
558
+ /**
559
+ * Type helper for valaxy.config.ts
560
+ */
561
+ declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep$1<ValaxyNodeConfig<ThemeConfig>>;
562
+ declare const defineConfig: typeof defineValaxyConfig;
563
+ declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<ResolvedConfig<ValaxyNodeConfig>>;
564
+ /**
565
+ * merge valaxy.config
566
+ * (source, default)
567
+ */
568
+ declare const mergeValaxyConfig: <Source extends {
569
+ [x: string]: any;
570
+ [x: number]: any;
571
+ [x: symbol]: any;
572
+ }, Defaults extends Array<{
573
+ [x: string]: any;
574
+ [x: number]: any;
575
+ [x: symbol]: any;
576
+ } | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
577
+ /**
578
+ * resolve user valaxy config
579
+ * options only have userRoot
580
+ * @param options
581
+ */
582
+ declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
583
+ config: ValaxyNodeConfig;
584
+ configFile: string;
585
+ theme: string;
586
+ }>;
587
+
598
588
  type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
599
589
  declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
600
590
 
591
+ declare const EXCERPT_SEPARATOR = "<!-- more -->";
592
+ declare const EXTERNAL_URL_RE: RegExp;
593
+ declare const PATHNAME_PROTOCOL_RE: RegExp;
594
+ declare const ALL_ROUTE = "/:all(.*)*";
595
+ declare const customElements: Set<string>;
596
+ /**
597
+ * @see https://vitejs.dev/config/shared-options.html#css-preprocessoroptions for sass@2
598
+ */
599
+ declare const defaultViteConfig: UserConfig;
600
+
601
+ declare function ViteValaxyPlugins(valaxyApp: ValaxyNode, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
602
+
601
603
  /**
602
604
  * @packageDocumentation valaxy plugin
603
605
  */
@@ -611,22 +613,10 @@ declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
611
613
  */
612
614
  declare function createValaxyLoader(options: ResolvedValaxyOptions, serverOptions?: ValaxyServerOptions): Promise<Plugin[]>;
613
615
 
614
- declare function ViteValaxyPlugins(valaxyApp: ValaxyNode, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
615
-
616
616
  declare function createServer(valaxyApp: ValaxyNode, viteConfig?: InlineConfig, serverOptions?: ValaxyServerOptions): Promise<vite.ViteDevServer>;
617
617
 
618
618
  declare function getGitTimestamp(file: string, type?: 'created' | 'updated'): Promise<number>;
619
619
 
620
- declare const isInstalledGlobally: {
621
- value?: boolean;
622
- };
623
- /**
624
- * Before is CJS: use 'resolve'
625
- * ESM: use 'mlly'
626
- */
627
- declare function resolveImportPath(importName: string, ensure?: true): Promise<string>;
628
- declare function resolveImportPath(importName: string, ensure?: boolean): Promise<string | undefined>;
629
-
630
620
  /**
631
621
  * is url external (http/https:)
632
622
  * @param str
@@ -646,4 +636,14 @@ declare function isPath(name: string): boolean;
646
636
  */
647
637
  declare function transformObject(obj: any): string;
648
638
 
639
+ declare const isInstalledGlobally: {
640
+ value?: boolean;
641
+ };
642
+ /**
643
+ * Before is CJS: use 'resolve'
644
+ * ESM: use 'mlly'
645
+ */
646
+ declare function resolveImportPath(importName: string, ensure?: true): Promise<string>;
647
+ declare function resolveImportPath(importName: string, ensure?: boolean): Promise<string | undefined>;
648
+
649
649
  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 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, isExternal, isInstalledGlobally, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, ssgBuild, toAtFS, transformObject };
@@ -1,33 +1,33 @@
1
1
  import { ViteSSGOptions } from 'vite-ssg';
2
- export { cli, run } from './cli/index.js';
3
2
  import * as vite from 'vite';
4
- import { UserConfig, InlineConfig, Plugin, PluginOption } from 'vite';
3
+ import { UserConfig, InlineConfig, PluginOption, Plugin } from 'vite';
4
+ import { MarkdownEnv } from 'unplugin-vue-markdown/types';
5
5
  import * as valaxy_types from 'valaxy/types';
6
6
  import { SiteConfig, DefaultTheme, ValaxyConfig, PartialDeep, ValaxyAddon, RuntimeConfig, RedirectItem, UserSiteConfig } from 'valaxy/types';
7
- import { MarkdownEnv } from 'unplugin-vue-markdown/types';
8
7
  import Vue from '@vitejs/plugin-vue';
8
+ import { Hookable } from 'hookable';
9
+ import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
10
+ import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
11
+ import { VitePluginConfig } from 'unocss/vite';
9
12
  import Components from 'unplugin-vue-components/vite';
10
- import Layouts from 'vite-plugin-vue-layouts';
11
13
  import Markdown from 'unplugin-vue-markdown/vite';
12
- import Router from 'unplugin-vue-router/vite';
13
- import { VitePluginConfig } from 'unocss/vite';
14
14
  import { EditableTreeNode } from 'unplugin-vue-router';
15
- import { presetUno, presetAttributify, presetIcons, presetTypography } from 'unocss';
16
- import { Hookable } from 'hookable';
17
- import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
18
- import MarkdownIt from 'markdown-it';
19
- import { LanguageInput, ShikiTransformer, Highlighter, ThemeRegistration, BuiltinTheme } from 'shiki';
20
- import anchorPlugin from 'markdown-it-anchor';
21
- import { KatexOptions } from 'katex';
15
+ import Router from 'unplugin-vue-router/vite';
16
+ import Layouts from 'vite-plugin-vue-layouts';
22
17
  import { HeadersPluginOptions } from '@mdit-vue/plugin-headers';
23
18
  import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
24
19
  import { TocPluginOptions } from '@mdit-vue/plugin-toc';
20
+ import { KatexOptions } from 'katex';
21
+ import MarkdownIt from 'markdown-it';
22
+ import anchorPlugin from 'markdown-it-anchor';
23
+ import { LanguageInput, ShikiTransformer, Highlighter, ThemeRegistration, BuiltinTheme } from 'shiki';
24
+ export { cli, run } from './cli/index.js';
25
25
  import { Awaitable } from '@antfu/utils';
26
26
  import * as defu from 'defu';
27
- import { P as PartialDeep$1 } from '../config-DfXD9Gt_.js';
27
+ import { P as PartialDeep$1 } from '../config-Dxu7i2Zs.js';
28
28
  import 'yargs';
29
- import 'medium-zoom';
30
29
  import '@vueuse/integrations/useFuse';
30
+ import 'medium-zoom';
31
31
  import 'vanilla-lazyload';
32
32
  import 'vue-router';
33
33
  import '@vueuse/core';
@@ -471,6 +471,17 @@ declare function resolveOptions(options?: ValaxyEntryOptions, mode?: ResolvedVal
471
471
  */
472
472
  declare function resolveThemeValaxyConfig(options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
473
473
 
474
+ declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
475
+ declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
476
+ /**
477
+ * post process for ssg fix extra string like `/html>` `ml>` `l>`
478
+ * handle tasks after ssg build
479
+ * todo find why
480
+ * @param options
481
+ */
482
+ declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
483
+ declare function generateClientRedirects(options: ResolvedValaxyOptions): Promise<void>;
484
+
474
485
  /**
475
486
  * merge vite.config.ts (user & theme)
476
487
  * @internal
@@ -482,26 +493,13 @@ declare function mergeViteConfigs({ userRoot, themeRoot }: ResolvedValaxyOptions
482
493
  */
483
494
  declare function getIndexHtml({ clientRoot, themeRoot, userRoot, config }: ResolvedValaxyOptions, rawHtml: string): Promise<string>;
484
495
 
485
- declare const EXCERPT_SEPARATOR = "<!-- more -->";
486
- declare const EXTERNAL_URL_RE: RegExp;
487
- declare const PATHNAME_PROTOCOL_RE: RegExp;
488
- declare const ALL_ROUTE = "/:all(.*)*";
489
- declare const customElements: Set<string>;
490
- /**
491
- * @see https://vitejs.dev/config/shared-options.html#css-preprocessoroptions for sass@2
492
- */
493
- declare const defaultViteConfig: UserConfig;
494
-
495
- declare function build(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
496
- declare function ssgBuild(valaxyApp: ValaxyNode, viteConfig?: InlineConfig): Promise<void>;
497
- /**
498
- * post process for ssg fix extra string like `/html>` `ml>` `l>`
499
- * handle tasks after ssg build
500
- * todo find why
501
- * @param options
502
- */
503
- declare function postProcessForSSG(options: ResolvedValaxyOptions): Promise<void>;
504
- declare function generateClientRedirects(options: ResolvedValaxyOptions): Promise<void>;
496
+ declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
497
+ setup?: ValaxyAddonResolver['setup'];
498
+ }): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
499
+ setup?: ValaxyAddonResolver["setup"];
500
+ };
501
+ declare const defineAddon: typeof defineValaxyAddon;
502
+ declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
505
503
 
506
504
  interface LoadConfigFromFileOptions {
507
505
  cwd?: string;
@@ -518,45 +516,6 @@ declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options
518
516
  }): Promise<ResolvedConfig<T>>;
519
517
  declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
520
518
 
521
- declare const defaultValaxyConfig: ValaxyNodeConfig;
522
- /**
523
- * Type helper for valaxy.config.ts
524
- */
525
- declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep$1<ValaxyNodeConfig<ThemeConfig>>;
526
- declare const defineConfig: typeof defineValaxyConfig;
527
- declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<ResolvedConfig<ValaxyNodeConfig>>;
528
- /**
529
- * merge valaxy.config
530
- * (source, default)
531
- */
532
- declare const mergeValaxyConfig: <Source extends {
533
- [x: string]: any;
534
- [x: number]: any;
535
- [x: symbol]: any;
536
- }, Defaults extends Array<{
537
- [x: string]: any;
538
- [x: number]: any;
539
- [x: symbol]: any;
540
- } | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
541
- /**
542
- * resolve user valaxy config
543
- * options only have userRoot
544
- * @param options
545
- */
546
- declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
547
- config: ValaxyNodeConfig;
548
- configFile: string;
549
- theme: string;
550
- }>;
551
-
552
- declare function defineValaxyAddon<AddonOptions = object>(addonFunc: (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
553
- setup?: ValaxyAddonResolver['setup'];
554
- }): (addonOptions?: AddonOptions, valaxyOptions?: ResolvedValaxyOptions) => ValaxyAddon & {
555
- setup?: ValaxyAddonResolver["setup"];
556
- };
557
- declare const defineAddon: typeof defineValaxyAddon;
558
- declare function resolveAddonsConfig(addons: ValaxyAddonResolver[], options: ResolvedValaxyOptions): Promise<ValaxyNodeConfig>;
559
-
560
519
  declare const defaultSiteConfig: SiteConfig;
561
520
  /**
562
521
  * Type helper for site.config.ts
@@ -595,9 +554,52 @@ type ValaxyTheme<ThemeConfig = DefaultTheme.Config> = ValaxyPickConfig & {
595
554
  declare function defineValaxyTheme<ThemeConfig = DefaultTheme.Config>(theme: ValaxyTheme<ThemeConfig> | ((options: ResolvedValaxyOptions<ThemeConfig>) => ValaxyTheme<ThemeConfig>)): ValaxyTheme<ThemeConfig> | ((options: ResolvedValaxyOptions<ThemeConfig>) => ValaxyTheme<ThemeConfig>);
596
555
  declare const defineTheme: typeof defineValaxyTheme;
597
556
 
557
+ declare const defaultValaxyConfig: ValaxyNodeConfig;
558
+ /**
559
+ * Type helper for valaxy.config.ts
560
+ */
561
+ declare function defineValaxyConfig<ThemeConfig>(config: UserValaxyNodeConfig<ThemeConfig>): PartialDeep$1<ValaxyNodeConfig<ThemeConfig>>;
562
+ declare const defineConfig: typeof defineValaxyConfig;
563
+ declare function resolveValaxyConfigFromRoot(root: string, options?: ResolvedValaxyOptions): Promise<ResolvedConfig<ValaxyNodeConfig>>;
564
+ /**
565
+ * merge valaxy.config
566
+ * (source, default)
567
+ */
568
+ declare const mergeValaxyConfig: <Source extends {
569
+ [x: string]: any;
570
+ [x: number]: any;
571
+ [x: symbol]: any;
572
+ }, Defaults extends Array<{
573
+ [x: string]: any;
574
+ [x: number]: any;
575
+ [x: symbol]: any;
576
+ } | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
577
+ /**
578
+ * resolve user valaxy config
579
+ * options only have userRoot
580
+ * @param options
581
+ */
582
+ declare function resolveValaxyConfig(options: ValaxyEntryOptions): Promise<{
583
+ config: ValaxyNodeConfig;
584
+ configFile: string;
585
+ theme: string;
586
+ }>;
587
+
598
588
  type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
599
589
  declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
600
590
 
591
+ declare const EXCERPT_SEPARATOR = "<!-- more -->";
592
+ declare const EXTERNAL_URL_RE: RegExp;
593
+ declare const PATHNAME_PROTOCOL_RE: RegExp;
594
+ declare const ALL_ROUTE = "/:all(.*)*";
595
+ declare const customElements: Set<string>;
596
+ /**
597
+ * @see https://vitejs.dev/config/shared-options.html#css-preprocessoroptions for sass@2
598
+ */
599
+ declare const defaultViteConfig: UserConfig;
600
+
601
+ declare function ViteValaxyPlugins(valaxyApp: ValaxyNode, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
602
+
601
603
  /**
602
604
  * @packageDocumentation valaxy plugin
603
605
  */
@@ -611,22 +613,10 @@ declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
611
613
  */
612
614
  declare function createValaxyLoader(options: ResolvedValaxyOptions, serverOptions?: ValaxyServerOptions): Promise<Plugin[]>;
613
615
 
614
- declare function ViteValaxyPlugins(valaxyApp: ValaxyNode, serverOptions?: ValaxyServerOptions): Promise<(PluginOption | PluginOption[])[]>;
615
-
616
616
  declare function createServer(valaxyApp: ValaxyNode, viteConfig?: InlineConfig, serverOptions?: ValaxyServerOptions): Promise<vite.ViteDevServer>;
617
617
 
618
618
  declare function getGitTimestamp(file: string, type?: 'created' | 'updated'): Promise<number>;
619
619
 
620
- declare const isInstalledGlobally: {
621
- value?: boolean;
622
- };
623
- /**
624
- * Before is CJS: use 'resolve'
625
- * ESM: use 'mlly'
626
- */
627
- declare function resolveImportPath(importName: string, ensure?: true): Promise<string>;
628
- declare function resolveImportPath(importName: string, ensure?: boolean): Promise<string | undefined>;
629
-
630
620
  /**
631
621
  * is url external (http/https:)
632
622
  * @param str
@@ -646,4 +636,14 @@ declare function isPath(name: string): boolean;
646
636
  */
647
637
  declare function transformObject(obj: any): string;
648
638
 
639
+ declare const isInstalledGlobally: {
640
+ value?: boolean;
641
+ };
642
+ /**
643
+ * Before is CJS: use 'resolve'
644
+ * ESM: use 'mlly'
645
+ */
646
+ declare function resolveImportPath(importName: string, ensure?: true): Promise<string>;
647
+ declare function resolveImportPath(importName: string, ensure?: boolean): Promise<string | undefined>;
648
+
649
649
  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 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, isExternal, isInstalledGlobally, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, slash, 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,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-5CL433IL.mjs";import"../chunk-WE2LNW3F.mjs";export{g as ALL_ROUTE,d as EXCERPT_SEPARATOR,e as EXTERNAL_URL_RE,f as PATHNAME_PROTOCOL_RE,P as ViteValaxyPlugins,Q as build,V as cli,U as createServer,O as createValaxyLoader,h as customElements,r as defaultSiteConfig,v as defaultValaxyConfig,i as defaultViteConfig,C as defineAddon,x as defineConfig,s as defineSiteConfig,H as defineTheme,I as defineUnoSetup,B as defineValaxyAddon,w as defineValaxyConfig,G as defineValaxyTheme,l as ensurePrefix,T as generateClientRedirects,a as getGitTimestamp,N as getIndexHtml,j as isExternal,b as isInstalledGlobally,n as isPath,p as loadConfig,q as loadConfigFromFile,z as mergeValaxyConfig,M as mergeViteConfigs,S as postProcessForSSG,J as processValaxyOptions,D as resolveAddonsConfig,c as resolveImportPath,K as resolveOptions,u as resolveSiteConfig,t as resolveSiteConfigFromRoot,E as resolveThemeConfigFromRoot,L as resolveThemeValaxyConfig,F as resolveUserThemeConfig,A as resolveValaxyConfig,y as resolveValaxyConfigFromRoot,W as run,k as slash,R as ssgBuild,m as toAtFS,o 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,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-BQRH2D76.mjs";import"../chunk-WE2LNW3F.mjs";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,V as cli,U 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,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,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,W as run,i as slash,R as ssgBuild,k as toAtFS,m as transformObject};
@@ -1,8 +1,8 @@
1
- import { a as PageFrontMatter, b as PostFrontMatter } from '../config-DfXD9Gt_.cjs';
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-DfXD9Gt_.cjs';
1
+ import { a as PageFrontMatter, b as PostFrontMatter } from '../config-Dxu7i2Zs.cjs';
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.cjs';
3
3
  import { Header } from '@valaxyjs/utils';
4
- import 'medium-zoom';
5
4
  import '@vueuse/integrations/useFuse';
5
+ import 'medium-zoom';
6
6
  import 'vanilla-lazyload';
7
7
  import 'vue-router';
8
8
  import '@vueuse/core';
@@ -1,8 +1,8 @@
1
- import { a as PageFrontMatter, b as PostFrontMatter } from '../config-DfXD9Gt_.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-DfXD9Gt_.js';
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';
3
3
  import { Header } from '@valaxyjs/utils';
4
- import 'medium-zoom';
5
4
  import '@vueuse/integrations/useFuse';
5
+ import 'medium-zoom';
6
6
  import 'vanilla-lazyload';
7
7
  import 'vue-router';
8
8
  import '@vueuse/core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.20.5",
4
+ "version": "0.20.6",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -56,7 +56,7 @@
56
56
  "node": "^14.18.0 || >=16.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@antfu/install-pkg": "^0.4.1",
59
+ "@antfu/install-pkg": "^0.5.0",
60
60
  "@antfu/utils": "^0.7.10",
61
61
  "@clack/prompts": "^0.8.2",
62
62
  "@iconify-json/ri": "^1.2.3",
@@ -67,7 +67,7 @@
67
67
  "@unhead/schema-org": "^1.11.13",
68
68
  "@unhead/vue": "^1.11.13",
69
69
  "@vitejs/plugin-vue": "^5.2.1",
70
- "@vue/devtools-api": "^7.6.4",
70
+ "@vue/devtools-api": "^7.6.5",
71
71
  "@vueuse/core": "12.0.0-beta.1",
72
72
  "@vueuse/integrations": "12.0.0-beta.1",
73
73
  "consola": "^3.2.3",
@@ -103,26 +103,26 @@
103
103
  "markdown-it-table-of-contents": "^0.8.0",
104
104
  "markdown-it-task-lists": "^2.1.1",
105
105
  "medium-zoom": "^1.1.0",
106
- "mermaid": "^11.4.0",
106
+ "mermaid": "^11.4.1",
107
107
  "mlly": "^1.7.3",
108
108
  "nprogress": "^0.2.0",
109
109
  "open": "10.1.0",
110
110
  "ora": "^8.1.1",
111
111
  "pascalcase": "^2.0.0",
112
112
  "pathe": "^1.1.2",
113
- "pinia": "^2.2.6",
113
+ "pinia": "^2.2.7",
114
114
  "qrcode": "^1.5.4",
115
115
  "resolve-global": "^2.0.0",
116
116
  "sass": "^1.81.0",
117
117
  "shiki": "^1.23.1",
118
118
  "star-markdown-css": "^0.5.3",
119
119
  "unocss": "^0.64.1",
120
- "unplugin-vue-components": "^0.27.4",
121
- "unplugin-vue-markdown": "^0.26.2",
120
+ "unplugin-vue-components": "^0.27.5",
121
+ "unplugin-vue-markdown": "^0.26.3",
122
122
  "unplugin-vue-router": "^0.10.8",
123
123
  "vanilla-lazyload": "^19.1.3",
124
- "vite": "^6.0.0",
125
- "vite-plugin-vue-devtools": "^7.6.4",
124
+ "vite": "^6.0.1",
125
+ "vite-plugin-vue-devtools": "^7.6.5",
126
126
  "vite-plugin-vue-layouts": "^0.11.0",
127
127
  "vite-ssg": "^0.24.1",
128
128
  "vite-ssg-sitemap": "^0.8.1",
@@ -130,8 +130,8 @@
130
130
  "vue-i18n": "^10.0.4",
131
131
  "vue-router": "^4.5.0",
132
132
  "yargs": "^17.7.2",
133
- "@valaxyjs/devtools": "0.20.5",
134
- "@valaxyjs/utils": "0.20.5"
133
+ "@valaxyjs/devtools": "0.20.6",
134
+ "@valaxyjs/utils": "0.20.6"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@mdit-vue/plugin-component": "^2.1.3",
package/shims.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import 'vue-router'
1
+ import type { Header } from '@valaxyjs/utils'
2
2
 
3
3
  // import './client/typed-router'
4
4
 
5
5
  import type { Ref } from 'vue'
6
- import type { Header } from '@valaxyjs/utils'
7
6
  import type { Post } from './types'
7
+ import 'vue-router'
8
8
 
9
9
  declare module 'valaxy-addon-*'
10
10
  declare module '@docsearch/js' {
package/types/config.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { ZoomOptions } from 'medium-zoom'
2
1
  import type { FuseOptions } from '@vueuse/integrations/useFuse'
2
+ import type { ZoomOptions } from 'medium-zoom'
3
3
  import type { ILazyLoadOptions } from 'vanilla-lazyload'
4
4
  import type { RouteRecordRaw } from 'vue-router'
5
5
  import type { ValaxyAddon } from '../types'
package/types/index.ts CHANGED
@@ -2,12 +2,12 @@
2
2
  export * from './addon'
3
3
  export * from './config'
4
4
  export * from './data'
5
+ // default theme
6
+ export * from './default-theme'
5
7
  export * from './frontmatter'
6
- export * from './posts'
7
8
 
8
9
  // used in node, but without node deps
9
10
  // and need be shared with client types
10
11
  export * from './node'
11
12
 
12
- // default theme
13
- export * from './default-theme'
13
+ export * from './posts'