valaxy 1.1.0 → 1.2.0

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,5 +1,5 @@
1
- import { c as Post } from '../shared/valaxy.I4MpBkZO.mjs';
2
- export { A as Album, B as BaseFrontMatter, D as DefaultTheme, E as ExcerptType, F as FuseListItem, d as Page, e as PageFrontMatter, P as PartialDeep, f as Photo, g as Pkg, h as PostFrontMatter, a as RedirectItem, i as RedirectRule, R as RuntimeConfig, S as SiteConfig, j as SocialLink, U as UserSiteConfig, k as UserValaxyConfig, b as ValaxyAddon, V as ValaxyConfig } from '../shared/valaxy.I4MpBkZO.mjs';
1
+ import { c as Post } from '../shared/valaxy.BGgY-Hwl.mjs';
2
+ export { A as Album, B as BaseFrontMatter, D as DefaultTheme, E as ExcerptType, F as FuseListItem, d as Page, e as PageFrontMatter, P as PartialDeep, f as Photo, g as Pkg, h as PostFrontMatter, a as RedirectItem, i as RedirectRule, R as RuntimeConfig, S as SiteConfig, j as SocialLink, U as UserSiteConfig, k as UserValaxyConfig, b as ValaxyAddon, V as ValaxyConfig } from '../shared/valaxy.BGgY-Hwl.mjs';
3
3
  import { Header } from '@valaxyjs/utils';
4
4
  import '@vueuse/integrations/useFuse';
5
5
  import 'medium-zoom';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -68,22 +68,16 @@
68
68
  "@antfu/install-pkg": "^2.1.0",
69
69
  "@antfu/utils": "^9.3.0",
70
70
  "@clack/prompts": "^1.8.1",
71
- "@eslint-community/eslint-utils": "^4.4.0",
72
71
  "@iconify-json/ri": "^1.2.10",
73
- "@intlify/bundle-utils": "11.2.5",
74
- "@intlify/shared": "~11.4.2",
75
- "@intlify/vue-i18n-extensions": "^8.0.0",
76
- "@rollup/pluginutils": "^5.1.0",
72
+ "@intlify/unplugin-vue-i18n": "11.2.7",
77
73
  "@shikijs/transformers": "^4.4.3",
78
74
  "@types/katex": "^0.16.8",
79
- "@typescript-eslint/scope-manager": "^8.13.0",
80
- "@typescript-eslint/typescript-estree": "^8.13.0",
81
75
  "@unhead/bundler": "^3.4.1",
82
76
  "@unhead/schema-org": "^3.4.1",
83
77
  "@unhead/vue": "^3.4.1",
84
- "@valaxyjs/devtools": "1.1.0",
85
- "@valaxyjs/utils": "1.1.0",
86
- "@vitejs/devtools": "0.7.5",
78
+ "@valaxyjs/devtools": "1.2.0",
79
+ "@valaxyjs/utils": "1.2.0",
80
+ "@vitejs/devtools": "0.8.0",
87
81
  "@vitejs/plugin-vue": "^6.0.9",
88
82
  "@vueuse/core": "^15.0.0",
89
83
  "@vueuse/integrations": "^15.0.0",
@@ -110,7 +104,7 @@
110
104
  "katex": "^0.18.7",
111
105
  "local-pkg": "^1.2.1",
112
106
  "lru-cache": "^11.5.3",
113
- "magic-string": "^0.30.21",
107
+ "magic-string": "^1.4.3",
114
108
  "markdown-exit": "^1.3.0",
115
109
  "markdown-it": "^15.0.2",
116
110
  "markdown-it-anchor": "^10.0.0",
@@ -131,7 +125,6 @@
131
125
  "p-map": "^7.0.8",
132
126
  "pascalcase": "^2.0.0",
133
127
  "pathe": "^2.0.3",
134
- "picocolors": "^1.0.0",
135
128
  "picomatch": "^4.0.4",
136
129
  "pinia": "^4.0.3",
137
130
  "qrcode": "^1.5.4",
@@ -139,11 +132,11 @@
139
132
  "resolve-global": "^2.0.0",
140
133
  "sass": "^1.104.1",
141
134
  "shiki": "^4.4.3",
142
- "star-markdown-css": "^0.5.3",
135
+ "star-markdown-css": "^0.6.1",
143
136
  "table": "^6.9.0",
144
137
  "tinyglobby": "^0.2.17",
145
138
  "unhead": "^3.4.1",
146
- "unocss": "66.10.5",
139
+ "unocss": "^66.11.0",
147
140
  "unplugin": "^3.0.0",
148
141
  "unplugin-utils": "^0.3.1",
149
142
  "unplugin-vue-components": "32.1.0",
@@ -25,5 +25,13 @@ declare module 'vue-router' {
25
25
  * Layout name
26
26
  */
27
27
  layout?: string
28
+ /**
29
+ * Props passed to the layout component
30
+ */
31
+ layoutProps?: Record<string, unknown>
32
+ /**
33
+ * Set on the parent routes generated by `setupLayouts`
34
+ */
35
+ isLayout?: boolean
28
36
  }
29
37
  }
package/vendor/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Build plugin snapshots
2
2
 
3
- These MIT-licensed distribution snapshots keep Valaxy's stable compiler and layout
3
+ These MIT-licensed distribution snapshots keep Valaxy's component discovery
4
4
  behavior while removing the vulnerable `fast-glob → micromatch → braces` chain
5
5
  from published packages. `sources.json` records the original npm versions, source
6
6
  repositories and SHA-256 hashes of every copied file. Each directory includes its
@@ -8,13 +8,6 @@ upstream license. Other runtime dependencies remain explicit in Valaxy's manifes
8
8
 
9
9
  Changes relative to the recorded distributions:
10
10
 
11
- - `@intlify/unplugin-vue-i18n@11.2.5`: replace its async file scanner with
12
- `tinyglobby.glob`, requesting absolute locale paths for Windows cross-drive
13
- projects. Keep the stable message compiler and SFC transforms.
14
- - `vite-plugin-vue-layouts-next@3.2.0`: replace async/sync scanners with
15
- `tinyglobby.glob`/`globSync`; resolve directory globs against Vite's root;
16
- import the included browser runtime through `valaxy/vendor/layouts/runtime.mjs`.
17
- Browser runtime and layout-name normalization are otherwise unchanged.
18
11
  - `unplugin-vue-components@32.1.0`: sort component paths by the configured glob
19
12
  priority when rebuilding the registry. This preserves core → theme → addon →
20
13
  user overrides after initial discovery and file additions/removals, independent
@@ -27,3 +20,10 @@ and compiled JSON/YAML locales. Full Yun/Press SSG and packed-consumer tests ver
27
20
  the published artifacts. No audit exemptions or consumer overrides are needed
28
21
  for the replacement scanners. Remove a snapshot once its upstream stable release
29
22
  provides the same scanning/ordering behavior and passes these regressions.
23
+
24
+ The layout system was vendored from `vite-plugin-vue-layouts-next@3.2.0` until Valaxy
25
+ replaced it with its own `node/plugins/layouts.ts` and `client/utils/layouts.ts`,
26
+ which keep that plugin's options, layout-name normalization and runtime behavior.
27
+
28
+ `@intlify/unplugin-vue-i18n` was vendored at 11.2.5 until upstream 11.2.7 adopted
29
+ `tinyglobby` with absolute paths; Valaxy now depends on the npm release directly.
@@ -1,35 +1,4 @@
1
1
  [
2
- {
3
- "package": "@intlify/unplugin-vue-i18n",
4
- "version": "11.2.5",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/intlify/bundle-tools.git",
8
- "directory": "packages/unplugin-vue-i18n"
9
- },
10
- "files": {
11
- "lib/index.mjs": "0b9279529baf89e0c027a9d4db94dd69fef9d357e457606db3ccf6e178e21268",
12
- "lib/types.d.ts": "d1315ab34c1eb6588ba2fd8a040146f940fb37d1c5ba72e19daa2f46e9615190",
13
- "LICENSE": "5332a7645b0acec33bef55f24b5c16ffaa60c097e2aade91a7945c2f12607636"
14
- }
15
- },
16
- {
17
- "package": "vite-plugin-vue-layouts-next",
18
- "version": "3.2.0",
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/loicduong/vite-plugin-vue-layouts-next.git"
22
- },
23
- "files": {
24
- "dist/index.mjs": "edab37ca837b9261f651e567af175942934b161726a45ca9b22a291c1a1be465",
25
- "dist/index.d.mts": "d622d03bc14a55d033fb4c164b8ce7256a9c042a328b0bd42849483359d9e915",
26
- "dist/runtime.mjs": "70d6c6164ab2e3211e393b3044c03aa96c10b3cf0dee90da38881c8a4e33b454",
27
- "dist/runtime.d.mts": "450f7f97295a601a412358e2fa2e57828b86611e8bc01e9b135a1dea4b0f8b7f",
28
- "dist/layoutName-DVkP7Qpo.mjs": "80eaa8258117a0f35a86855a5c749c6090da04df13169675715ab6ffce908e88",
29
- "client.d.ts": "5faf3587eae88f0a014a6ddc5693376fe7a153bb36bbabf622e65dda4e9f1422",
30
- "LICENSE": "3b66548ac8a2385a8756e574acdcff245cebb4dfae4ab277183dd3ce276e1330"
31
- }
32
- },
33
2
  {
34
3
  "package": "unplugin-vue-components",
35
4
  "version": "32.1.0",
@@ -1,20 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022-present, kazuya kawaguchi
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,7 +0,0 @@
1
- import type { UnpluginInstance, UnpluginFactory } from 'unplugin'
2
- import type { PluginOptions } from './types.js'
3
- export type { PluginOptions, SFCLangFormat, TreeShakingOptions, VueI18nModule } from './types.js'
4
- declare const unpluginFactory: UnpluginFactory<PluginOptions | undefined>
5
- declare const unplugin: UnpluginInstance<PluginOptions | undefined, boolean>
6
- export { unplugin, unpluginFactory }
7
- export default unplugin