valaxy 0.20.5 → 0.20.7

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 (67) hide show
  1. package/client/components/ValaxyApp.vue +10 -11
  2. package/client/components/ValaxyDecrypt.vue +9 -7
  3. package/client/components/ValaxyGalleryDecrypt.vue +1 -0
  4. package/client/components/ValaxyLogo.vue +5 -1
  5. package/client/components/ValaxyMd.vue +3 -3
  6. package/client/components/builtin/ValaxyMermaid.vue +40 -41
  7. package/client/composables/app/useValaxyHead.ts +13 -6
  8. package/client/composables/categories.ts +1 -1
  9. package/client/composables/codeGroups.ts +1 -1
  10. package/client/composables/collections.ts +1 -1
  11. package/client/composables/common.ts +3 -3
  12. package/client/composables/features/collapse-code.ts +1 -1
  13. package/client/composables/features/copy-code.ts +1 -0
  14. package/client/composables/features/index.ts +1 -1
  15. package/client/composables/helper/useInvisibleElement.ts +1 -1
  16. package/client/composables/index.ts +10 -10
  17. package/client/composables/locale.ts +4 -3
  18. package/client/composables/outline/anchor.ts +9 -8
  19. package/client/composables/outline/headers.ts +3 -3
  20. package/client/composables/outline/index.ts +1 -1
  21. package/client/composables/post/index.ts +3 -3
  22. package/client/composables/search/useFuseSearch.ts +4 -4
  23. package/client/composables/tags.ts +1 -1
  24. package/client/composables/widgets/aplayer.ts +1 -1
  25. package/client/config.ts +8 -8
  26. package/client/index.ts +5 -5
  27. package/client/main.ts +15 -15
  28. package/client/modules/devtools.ts +1 -1
  29. package/client/modules/floating-vue.ts +3 -3
  30. package/client/modules/mermaid.ts +3 -3
  31. package/client/modules/nprogress.ts +1 -1
  32. package/client/modules/pinia.ts +1 -1
  33. package/client/modules/schemaOrg.ts +1 -1
  34. package/client/modules/valaxy.ts +6 -6
  35. package/client/setup/main.ts +7 -7
  36. package/client/setup/mermaid.ts +1 -1
  37. package/client/setups.ts +2 -2
  38. package/client/stores/app.ts +1 -1
  39. package/client/stores/site.ts +2 -2
  40. package/client/styles/common/markdown.scss +4 -4
  41. package/client/styles/index.scss +0 -1
  42. package/client/types/index.ts +1 -1
  43. package/client/utils/index.ts +3 -3
  44. package/client/utils/time.ts +3 -4
  45. package/dist/chunk-JOSLTXIR.cjs +161 -0
  46. package/dist/chunk-LB5BBIUM.mjs +162 -0
  47. package/dist/node/cli/index.cjs +1 -1
  48. package/dist/node/cli/index.mjs +1 -1
  49. package/dist/node/index.cjs +1 -1
  50. package/dist/node/index.d.cts +86 -86
  51. package/dist/node/index.d.ts +86 -86
  52. package/dist/node/index.mjs +1 -1
  53. package/dist/types/index.cjs +1 -1
  54. package/dist/types/index.d.cts +3 -3
  55. package/dist/types/index.d.ts +3 -3
  56. package/dist/types/index.mjs +1 -1
  57. package/package.json +23 -23
  58. package/shims.d.ts +2 -2
  59. package/types/config.ts +1 -1
  60. package/types/index.ts +3 -3
  61. package/client/styles/common/scrollbar.scss +0 -30
  62. package/dist/chunk-5CL433IL.mjs +0 -162
  63. package/dist/chunk-VDCJKFCV.cjs +0 -161
  64. package/dist/{chunk-6GE64PZD.cjs → chunk-BJ22GQI6.cjs} +0 -0
  65. package/dist/{chunk-WE2LNW3F.mjs → chunk-XKANGEKW.mjs} +0 -0
  66. package/dist/{config-DfXD9Gt_.d.cts → config-Dxu7i2Zs.d.cts} +1 -1
  67. package/dist/{config-DfXD9Gt_.d.ts → config-Dxu7i2Zs.d.ts} +1 -1
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.7",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -56,27 +56,27 @@
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",
63
- "@intlify/unplugin-vue-i18n": "4",
63
+ "@intlify/unplugin-vue-i18n": "^6.0.1",
64
64
  "@types/katex": "^0.16.7",
65
65
  "@types/luxon": "^3.4.2",
66
66
  "@unhead/addons": "^1.11.13",
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.7",
71
71
  "@vueuse/core": "12.0.0-beta.1",
72
72
  "@vueuse/integrations": "12.0.0-beta.1",
73
+ "beasties": "^0.2.0",
73
74
  "consola": "^3.2.3",
74
- "critters": "^0.0.25",
75
75
  "cross-spawn": "^7.0.6",
76
76
  "css-i18n": "^0.0.5",
77
77
  "date-fns": "^4.1.0",
78
78
  "date-fns-tz": "^3.2.0",
79
- "debug": "^4.3.7",
79
+ "debug": "^4.4.0",
80
80
  "defu": "^6.1.4",
81
81
  "ejs": "^3.1.10",
82
82
  "escape-html": "^1.0.3",
@@ -87,7 +87,7 @@
87
87
  "gray-matter": "^4.0.3",
88
88
  "hookable": "^5.5.3",
89
89
  "html-to-text": "^9.0.5",
90
- "jiti": "^2.4.0",
90
+ "jiti": "^2.4.1",
91
91
  "js-base64": "^3.7.7",
92
92
  "js-yaml": "^4.1.0",
93
93
  "katex": "^0.16.11",
@@ -95,7 +95,7 @@
95
95
  "luxon": "^3.5.0",
96
96
  "markdown-it": "^14.1.0",
97
97
  "markdown-it-anchor": "^9.2.0",
98
- "markdown-it-attrs": "^4.2.0",
98
+ "markdown-it-attrs": "^4.3.0",
99
99
  "markdown-it-container": "^4.0.0",
100
100
  "markdown-it-emoji": "^3.0.0",
101
101
  "markdown-it-footnote": "^4.0.0",
@@ -103,35 +103,35 @@
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.3.0",
114
114
  "qrcode": "^1.5.4",
115
115
  "resolve-global": "^2.0.0",
116
- "sass": "^1.81.0",
117
- "shiki": "^1.23.1",
116
+ "sass": "^1.82.0",
117
+ "shiki": "^1.24.0",
118
118
  "star-markdown-css": "^0.5.3",
119
- "unocss": "^0.64.1",
120
- "unplugin-vue-components": "^0.27.4",
121
- "unplugin-vue-markdown": "^0.26.2",
122
- "unplugin-vue-router": "^0.10.8",
119
+ "unocss": "^0.65.1",
120
+ "unplugin-vue-components": "^0.27.5",
121
+ "unplugin-vue-markdown": "^0.27.1",
122
+ "unplugin-vue-router": "^0.10.9",
123
123
  "vanilla-lazyload": "^19.1.3",
124
- "vite": "^6.0.0",
125
- "vite-plugin-vue-devtools": "^7.6.4",
124
+ "vite": "^6.0.3",
125
+ "vite-plugin-vue-devtools": "^7.6.7",
126
126
  "vite-plugin-vue-layouts": "^0.11.0",
127
- "vite-ssg": "^0.24.1",
127
+ "vite-ssg": "^0.24.2",
128
128
  "vite-ssg-sitemap": "^0.8.1",
129
129
  "vue": "^3.5.13",
130
- "vue-i18n": "^10.0.4",
130
+ "vue-i18n": "^10.0.5",
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.7",
134
+ "@valaxyjs/utils": "0.20.7"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@mdit-vue/plugin-component": "^2.1.3",
@@ -157,7 +157,7 @@
157
157
  "gh-pages": "^6.2.0",
158
158
  "https-localhost": "^4.7.1",
159
159
  "rollup-plugin-visualizer": "^5.12.0",
160
- "table": "^6.8.2"
160
+ "table": "^6.9.0"
161
161
  },
162
162
  "scripts": {
163
163
  "build": "rimraf dist && tsup --splitting",
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'
@@ -1,30 +0,0 @@
1
- @use "valaxy/client/styles/mixins/index.scss" as *;
2
-
3
- ::-webkit-scrollbar {
4
- width: 8px;
5
- height: 8px;
6
- }
7
-
8
- ::-webkit-scrollbar-track {
9
- border-radius: 2px;
10
- background-color: rgba(255, 255, 255, 0.1);
11
- }
12
-
13
- ::-webkit-scrollbar-thumb {
14
- border-radius: 2px;
15
- background-color: rgba(122, 122, 122, 0.3);
16
-
17
- // transition not work
18
-
19
- &:window-inactive {
20
- background-color: rgba(122, 122, 122, 0.3);
21
- }
22
-
23
- &:hover {
24
- background-color: rgba(122, 122, 122, 0.7);
25
- }
26
-
27
- &:active {
28
- background-color: rgba(122, 122, 122, 0.9);
29
- }
30
- }