valaxy 0.26.2 → 0.26.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.
package/index.d.ts CHANGED
@@ -2,7 +2,6 @@
2
2
  // be able to reference @vueuse/shared in project root.
3
3
  /// <reference types="@vueuse/shared" />
4
4
 
5
- export * from './shims'
6
5
  export * from './client/index'
7
6
  export * from './dist/node/index.mjs'
8
7
  export * from './dist/types/index.mjs'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.26.2",
4
+ "version": "0.26.4",
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": "./client/shims.d.ts",
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,22 +65,22 @@
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.2",
68
+ "@shikijs/transformers": "^3.12.0",
63
69
  "@types/katex": "^0.16.7",
64
70
  "@unhead/addons": "^2.0.14",
65
71
  "@unhead/schema-org": "^2.0.14",
66
72
  "@unhead/vue": "^2.0.14",
67
73
  "@vitejs/plugin-vue": "^6.0.1",
68
74
  "@vue/devtools-api": "7.7.2",
69
- "@vueuse/core": "^13.6.0",
70
- "@vueuse/integrations": "^13.6.0",
75
+ "@vueuse/core": "^13.8.0",
76
+ "@vueuse/integrations": "^13.8.0",
71
77
  "beasties": "^0.3.5",
72
78
  "consola": "^3.4.2",
73
79
  "cross-spawn": "^7.0.6",
74
80
  "css-i18n": "^0.0.5",
75
- "dayjs": "^1.11.13",
81
+ "dayjs": "^1.11.14",
76
82
  "debug": "^4.4.1",
77
- "define-config-ts": "^0.1.2",
83
+ "define-config-ts": "^0.1.3",
78
84
  "defu": "^6.1.4",
79
85
  "ejs": "^3.1.10",
80
86
  "escape-html": "^1.0.3",
@@ -87,7 +93,7 @@
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.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",
@@ -102,8 +108,8 @@
102
108
  "markdown-it-table-of-contents": "^0.9.0",
103
109
  "markdown-it-task-lists": "^2.1.1",
104
110
  "medium-zoom": "^1.1.0",
105
- "mermaid": "^11.9.0",
106
- "mlly": "^1.7.4",
111
+ "mermaid": "^11.10.1",
112
+ "mlly": "^1.8.0",
107
113
  "nprogress": "^0.2.0",
108
114
  "open": "10.1.0",
109
115
  "ora": "^8.2.0",
@@ -112,8 +118,8 @@
112
118
  "pinia": "^3.0.3",
113
119
  "qrcode": "^1.5.4",
114
120
  "resolve-global": "^2.0.0",
115
- "sass": "^1.90.0",
116
- "shiki": "^3.9.2",
121
+ "sass": "^1.91.0",
122
+ "shiki": "^3.12.0",
117
123
  "star-markdown-css": "^0.5.3",
118
124
  "table": "^6.9.0",
119
125
  "unhead": "^2.0.14",
@@ -122,28 +128,28 @@
122
128
  "unplugin-vue-markdown": "^29.1.0",
123
129
  "unplugin-vue-router": "^0.15.0",
124
130
  "vanilla-lazyload": "^19.1.3",
125
- "vite": "^7.1.1",
131
+ "vite": "^7.1.3",
126
132
  "vite-dev-rpc": "^1.1.0",
127
- "vite-plugin-vue-devtools": "^8.0.0",
133
+ "vite-plugin-vue-devtools": "^8.0.1",
128
134
  "vite-plugin-vue-layouts": "^0.11.0",
129
- "vite-ssg": "^28.0.0",
135
+ "vite-ssg": "^28.1.0",
130
136
  "vite-ssg-sitemap": "^0.10.0",
131
- "vitepress-plugin-group-icons": "^1.6.2",
132
- "vue": "^3.5.18",
137
+ "vitepress-plugin-group-icons": "^1.6.3",
138
+ "vue": "^3.5.20",
133
139
  "vue-i18n": "^11.1.11",
134
140
  "vue-router": "^4.5.1",
135
141
  "yargs": "^18.0.0",
136
- "@valaxyjs/utils": "0.26.2",
137
- "@valaxyjs/devtools": "0.26.2"
142
+ "@valaxyjs/utils": "0.26.4",
143
+ "@valaxyjs/devtools": "0.26.4"
138
144
  },
139
145
  "devDependencies": {
140
- "@mdit-vue/plugin-component": "^2.1.4",
141
- "@mdit-vue/plugin-frontmatter": "^2.1.4",
142
- "@mdit-vue/plugin-headers": "^2.1.4",
143
- "@mdit-vue/plugin-sfc": "^2.1.4",
144
- "@mdit-vue/plugin-title": "^2.1.4",
145
- "@mdit-vue/plugin-toc": "^2.1.4",
146
- "@mdit-vue/shared": "^2.1.4",
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.0"
169
+ "unbuild": "^3.6.1"
164
170
  },
165
171
  "resolutions": {
166
172
  "vite": "catalog:build"
@@ -1,5 +1,5 @@
1
1
  import type { ImageObject, NodeRelations } from '@unhead/schema-org'
2
- import type { CollectionConfig } from '../../client/define'
2
+ import type { CollectionConfig } from '../../client/types'
3
3
 
4
4
  export interface Album {
5
5
  /**
package/types/index.ts CHANGED
@@ -9,5 +9,4 @@ export * from './frontmatter'
9
9
  // used in node, but without node deps
10
10
  // and need be shared with client types
11
11
  export * from './node'
12
-
13
12
  export * from './posts'
@@ -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
- }