valaxy 0.26.1 → 0.26.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.
- package/client/composables/collections.ts +1 -1
- package/client/composables/decrypt.ts +6 -3
- package/client/define/collection.ts +1 -35
- package/client/index.d.ts +48 -0
- package/client/shims.d.ts +32 -4
- package/client/tsconfig.json +16 -0
- package/client/types/collection.ts +35 -0
- package/client/types/index.ts +2 -0
- package/dist/node/cli/index.mjs +2 -2
- package/dist/node/index.d.mts +336 -314
- package/dist/node/index.mjs +2 -2
- package/dist/shared/valaxy.BwiZu4ms.d.mts +832 -0
- package/dist/shared/{valaxy.DYu2a9p6.mjs → valaxy.D7OlaIFc.mjs} +303 -303
- package/dist/types/index.d.mts +9 -775
- package/index.d.ts +0 -1
- package/package.json +34 -28
- package/types/frontmatter/page.ts +1 -1
- package/types/index.ts +0 -1
- package/dist/shared/valaxy.D_ue8jlC.d.mts +0 -60
- package/shims.d.ts +0 -85
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.26.
|
|
4
|
+
"version": "0.26.3",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"homepage": "https://valaxy.site",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "https://github.com/YunYouJun/valaxy"
|
|
15
|
+
"url": "git+https://github.com/YunYouJun/valaxy.git"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"vite",
|
|
@@ -25,13 +25,19 @@
|
|
|
25
25
|
"default": "./dist/node/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./client/*": "./client/*",
|
|
28
|
-
"./client":
|
|
28
|
+
"./client": {
|
|
29
|
+
"types": "./client/index.d.ts",
|
|
30
|
+
"import": "./client/index.ts"
|
|
31
|
+
},
|
|
29
32
|
"./node": {
|
|
30
33
|
"types": "./dist/node/index.d.mts",
|
|
31
34
|
"default": "./dist/node/index.mjs"
|
|
32
35
|
},
|
|
36
|
+
"./types": {
|
|
37
|
+
"types": "./dist/types/index.d.mts",
|
|
38
|
+
"default": "./dist/types/index.mjs"
|
|
39
|
+
},
|
|
33
40
|
"./package.json": "./package.json",
|
|
34
|
-
"./types": "./dist/types/index.d.mts",
|
|
35
41
|
"./*": "./*"
|
|
36
42
|
},
|
|
37
43
|
"main": "dist/node/index.mjs",
|
|
@@ -59,11 +65,11 @@
|
|
|
59
65
|
"@clack/prompts": "^0.11.0",
|
|
60
66
|
"@iconify-json/ri": "^1.2.5",
|
|
61
67
|
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
|
62
|
-
"@shikijs/transformers": "^3.9.
|
|
68
|
+
"@shikijs/transformers": "^3.9.2",
|
|
63
69
|
"@types/katex": "^0.16.7",
|
|
64
|
-
"@unhead/addons": "^2.0.
|
|
65
|
-
"@unhead/schema-org": "^2.0.
|
|
66
|
-
"@unhead/vue": "^2.0.
|
|
70
|
+
"@unhead/addons": "^2.0.14",
|
|
71
|
+
"@unhead/schema-org": "^2.0.14",
|
|
72
|
+
"@unhead/vue": "^2.0.14",
|
|
67
73
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
68
74
|
"@vue/devtools-api": "7.7.2",
|
|
69
75
|
"@vueuse/core": "^13.6.0",
|
|
@@ -81,13 +87,13 @@
|
|
|
81
87
|
"fast-glob": "^3.3.3",
|
|
82
88
|
"feed": "^5.1.0",
|
|
83
89
|
"floating-vue": "^5.2.2",
|
|
84
|
-
"fs-extra": "^11.3.
|
|
90
|
+
"fs-extra": "^11.3.1",
|
|
85
91
|
"fuse.js": "^7.1.0",
|
|
86
92
|
"gray-matter": "^4.0.3",
|
|
87
93
|
"hookable": "^5.5.3",
|
|
88
94
|
"html-to-text": "^9.0.5",
|
|
89
95
|
"jiti": "^2.5.1",
|
|
90
|
-
"js-base64": "^3.7.
|
|
96
|
+
"js-base64": "^3.7.8",
|
|
91
97
|
"js-yaml": "^4.1.0",
|
|
92
98
|
"katex": "^0.16.22",
|
|
93
99
|
"lru-cache": "^11.1.0",
|
|
@@ -112,38 +118,38 @@
|
|
|
112
118
|
"pinia": "^3.0.3",
|
|
113
119
|
"qrcode": "^1.5.4",
|
|
114
120
|
"resolve-global": "^2.0.0",
|
|
115
|
-
"sass": "^1.
|
|
116
|
-
"shiki": "^3.9.
|
|
121
|
+
"sass": "^1.90.0",
|
|
122
|
+
"shiki": "^3.9.2",
|
|
117
123
|
"star-markdown-css": "^0.5.3",
|
|
118
124
|
"table": "^6.9.0",
|
|
119
|
-
"unhead": "^2.0.
|
|
120
|
-
"unocss": "^66.4.
|
|
125
|
+
"unhead": "^2.0.14",
|
|
126
|
+
"unocss": "^66.4.2",
|
|
121
127
|
"unplugin-vue-components": "28.0.0",
|
|
122
128
|
"unplugin-vue-markdown": "^29.1.0",
|
|
123
|
-
"unplugin-vue-router": "^0.
|
|
129
|
+
"unplugin-vue-router": "^0.15.0",
|
|
124
130
|
"vanilla-lazyload": "^19.1.3",
|
|
125
|
-
"vite": "^7.
|
|
131
|
+
"vite": "^7.1.2",
|
|
126
132
|
"vite-dev-rpc": "^1.1.0",
|
|
127
133
|
"vite-plugin-vue-devtools": "^8.0.0",
|
|
128
134
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
129
|
-
"vite-ssg": "^28.
|
|
135
|
+
"vite-ssg": "^28.1.0",
|
|
130
136
|
"vite-ssg-sitemap": "^0.10.0",
|
|
131
|
-
"vitepress-plugin-group-icons": "^1.6.
|
|
137
|
+
"vitepress-plugin-group-icons": "^1.6.3",
|
|
132
138
|
"vue": "^3.5.18",
|
|
133
139
|
"vue-i18n": "^11.1.11",
|
|
134
140
|
"vue-router": "^4.5.1",
|
|
135
141
|
"yargs": "^18.0.0",
|
|
136
|
-
"@valaxyjs/
|
|
137
|
-
"@valaxyjs/
|
|
142
|
+
"@valaxyjs/utils": "0.26.3",
|
|
143
|
+
"@valaxyjs/devtools": "0.26.3"
|
|
138
144
|
},
|
|
139
145
|
"devDependencies": {
|
|
140
|
-
"@mdit-vue/plugin-component": "^
|
|
141
|
-
"@mdit-vue/plugin-frontmatter": "^
|
|
142
|
-
"@mdit-vue/plugin-headers": "^
|
|
143
|
-
"@mdit-vue/plugin-sfc": "^
|
|
144
|
-
"@mdit-vue/plugin-title": "^
|
|
145
|
-
"@mdit-vue/plugin-toc": "^
|
|
146
|
-
"@mdit-vue/shared": "^
|
|
146
|
+
"@mdit-vue/plugin-component": "^3.0.2",
|
|
147
|
+
"@mdit-vue/plugin-frontmatter": "^3.0.2",
|
|
148
|
+
"@mdit-vue/plugin-headers": "^3.0.2",
|
|
149
|
+
"@mdit-vue/plugin-sfc": "^3.0.2",
|
|
150
|
+
"@mdit-vue/plugin-title": "^3.0.2",
|
|
151
|
+
"@mdit-vue/plugin-toc": "^3.0.2",
|
|
152
|
+
"@mdit-vue/shared": "^3.0.2",
|
|
147
153
|
"@types/cross-spawn": "^6.0.6",
|
|
148
154
|
"@types/ejs": "^3.1.5",
|
|
149
155
|
"@types/gh-pages": "^6.1.0",
|
|
@@ -160,7 +166,7 @@
|
|
|
160
166
|
"gh-pages": "^6.3.0",
|
|
161
167
|
"https-localhost": "^4.7.1",
|
|
162
168
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
163
|
-
"unbuild": "^3.6.
|
|
169
|
+
"unbuild": "^3.6.1"
|
|
164
170
|
},
|
|
165
171
|
"resolutions": {
|
|
166
172
|
"vite": "catalog:build"
|
package/types/index.ts
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { UseDarkOptions } from '@vueuse/core';
|
|
2
|
-
|
|
3
|
-
interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
4
|
-
name: string;
|
|
5
|
-
/**
|
|
6
|
-
* be global component
|
|
7
|
-
*/
|
|
8
|
-
global?: boolean;
|
|
9
|
-
props?: Record<string, any>;
|
|
10
|
-
options?: AddonOptions;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare namespace DefaultTheme {
|
|
14
|
-
interface Config {
|
|
15
|
-
valaxyDarkOptions?: {
|
|
16
|
-
/**
|
|
17
|
-
* Options for `useDark`
|
|
18
|
-
* disableTransition default is `true`
|
|
19
|
-
* Its options are not computed, init when loaded.
|
|
20
|
-
* @see https://vueuse.org/core/useDark
|
|
21
|
-
* @url https://paco.me/writing/disable-theme-transitions
|
|
22
|
-
*
|
|
23
|
-
* @zh `useDark` 的选项
|
|
24
|
-
* disableTransition 默认为 `true`,不会进行渐变过渡,这是 VueUse 的默认行为
|
|
25
|
-
*/
|
|
26
|
-
useDarkOptions?: UseDarkOptions;
|
|
27
|
-
/**
|
|
28
|
-
* Enable circle transition when toggling dark mode
|
|
29
|
-
* Then use `toggleDarkWithTransition` instead of `toggleDark`
|
|
30
|
-
* @zh 启用圆形过渡切换暗黑模式
|
|
31
|
-
*/
|
|
32
|
-
circleTransition?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Theme color
|
|
35
|
-
* @zh 主题色
|
|
36
|
-
*/
|
|
37
|
-
themeColor?: {
|
|
38
|
-
/**
|
|
39
|
-
* Theme color for light mode
|
|
40
|
-
* @zh 亮色主题色
|
|
41
|
-
*/
|
|
42
|
-
light?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Theme color for dark mode
|
|
45
|
-
* @zh 暗色主题色
|
|
46
|
-
*/
|
|
47
|
-
dark?: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Custom header levels of outline in the aside component.
|
|
52
|
-
*
|
|
53
|
-
* @default 2
|
|
54
|
-
*/
|
|
55
|
-
outline?: number | [number, number] | 'deep' | false;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { DefaultTheme as D };
|
|
60
|
-
export type { ValaxyAddon as V };
|
package/shims.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import type { Header } from '@valaxyjs/utils'
|
|
2
|
-
|
|
3
|
-
import type { Ref } from 'vue'
|
|
4
|
-
|
|
5
|
-
import type { Post } from './types'
|
|
6
|
-
import 'vue-router'
|
|
7
|
-
import './client/shims'
|
|
8
|
-
|
|
9
|
-
declare module 'valaxy-addon-*'
|
|
10
|
-
declare module '@docsearch/js' {
|
|
11
|
-
function docsearch<T = any>(props: T): void
|
|
12
|
-
export default docsearch
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare interface Window {
|
|
16
|
-
// for devtools
|
|
17
|
-
__VUE_DEVTOOLS_ROUTER__: import('vue-router').Router
|
|
18
|
-
$frontmatter: any
|
|
19
|
-
$pageData: any
|
|
20
|
-
$valaxy: {
|
|
21
|
-
postList: Ref<Post[]>
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// algolia
|
|
25
|
-
instantsearch: any
|
|
26
|
-
algoliasearch: any
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// markdowns can be treat as Vue components
|
|
30
|
-
declare module '*.md' {
|
|
31
|
-
import type { DefineComponent } from 'vue'
|
|
32
|
-
|
|
33
|
-
const component: DefineComponent<object, object, any>
|
|
34
|
-
export default component
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare module '*.vue' {
|
|
38
|
-
import type { DefineComponent } from 'vue'
|
|
39
|
-
|
|
40
|
-
const component: DefineComponent<object, object, any>
|
|
41
|
-
export default component
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// vite hmr data
|
|
45
|
-
declare module '/@valaxyjs/config' {
|
|
46
|
-
const config: string
|
|
47
|
-
export default config
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
declare module '/@valaxyjs/context' {
|
|
51
|
-
const ctx: string
|
|
52
|
-
export default ctx
|
|
53
|
-
}
|
|
54
|
-
declare module '/@valaxyjs/addons' {
|
|
55
|
-
import type { DefineComponent } from 'vue'
|
|
56
|
-
|
|
57
|
-
const components: { props: any, component: DefineComponent<object, object, any> }[]
|
|
58
|
-
export default components
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
declare module '/@valaxyjs/locales' {
|
|
62
|
-
const messages: object
|
|
63
|
-
export default messages
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
declare module 'vue-router' {
|
|
67
|
-
interface RouteMeta {
|
|
68
|
-
headers: Header[]
|
|
69
|
-
frontmatter: Post
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
declare module '/@valaxyjs/redirects' {
|
|
74
|
-
import type { RouteRecordRaw } from 'vue-router'
|
|
75
|
-
|
|
76
|
-
export const redirectRoutes: RouteRecordRaw[]
|
|
77
|
-
|
|
78
|
-
export const useVueRouter: boolean
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
declare module 'mermaid/dist/mermaid.esm.mjs' {
|
|
82
|
-
import Mermaid from 'mermaid/dist/mermaid.d.ts'
|
|
83
|
-
|
|
84
|
-
export default Mermaid
|
|
85
|
-
}
|