valaxy 0.23.5 → 0.23.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.
@@ -1,5 +1,6 @@
1
1
  import { onUnmounted } from 'vue'
2
2
 
3
+ // eslint-disable-next-line import/no-mutable-exports
3
4
  export let contentUpdatedCallbacks: (() => any)[] = []
4
5
 
5
6
  /**
@@ -4,7 +4,7 @@ import yargs from "yargs";
4
4
  import { hideBin } from "yargs/helpers";
5
5
 
6
6
  // package.json
7
- var version = "0.23.5";
7
+ var version = "0.23.6";
8
8
 
9
9
  // node/modules/fuse.ts
10
10
  import path4 from "path";
@@ -547,15 +547,7 @@ var customElements = /* @__PURE__ */ new Set([
547
547
  "munderover",
548
548
  "semantics"
549
549
  ]);
550
- var defaultViteConfig = {
551
- css: {
552
- preprocessorOptions: {
553
- scss: {
554
- api: "modern-compiler"
555
- }
556
- }
557
- }
558
- };
550
+ var defaultViteConfig = {};
559
551
 
560
552
  // node/utils/helper.ts
561
553
  function isExternal(str) {
@@ -2118,7 +2110,8 @@ var defaultBlocksOptions = {
2118
2110
  }
2119
2111
  };
2120
2112
  function containerPlugin(md3, options, containerOptions = {}) {
2121
- Object.keys(defaultBlocksOptions).forEach((optionKey) => {
2113
+ const blockKeys = Object.keys(Object.assign(defaultBlocksOptions, containerOptions));
2114
+ blockKeys.forEach((optionKey) => {
2122
2115
  const option = {
2123
2116
  ...defaultBlocksOptions[optionKey],
2124
2117
  ...containerOptions[optionKey] || {}
@@ -3,7 +3,7 @@ import {
3
3
  registerDevCommand,
4
4
  run,
5
5
  startValaxyDev
6
- } from "../../chunk-ZE4AYGG6.js";
6
+ } from "../../chunk-SBITNE3A.js";
7
7
  export {
8
8
  cli,
9
9
  registerDevCommand,
@@ -168,7 +168,7 @@ interface MarkdownOptions extends Options$1 {
168
168
  /**
169
169
  * Custom block configurations based on `markdown-it-container`
170
170
  */
171
- blocks?: Blocks;
171
+ blocks?: Record<string, BlockItem> | Blocks;
172
172
  /**
173
173
  * @see [markdown-it-image-figures](https://www.npmjs.com/package/markdown-it-image-figures)
174
174
  */
@@ -612,6 +612,7 @@ declare const ALL_ROUTE = "/:all(.*)*";
612
612
  declare const customElements: Set<string>;
613
613
  /**
614
614
  * @see https://vitejs.dev/config/shared-options.html#css-preprocessoroptions for sass@2
615
+ * vite@7 default use sass modern api
615
616
  */
616
617
  declare const defaultViteConfig: UserConfig;
617
618
 
@@ -50,7 +50,7 @@ import {
50
50
  startValaxyDev,
51
51
  toAtFS,
52
52
  transformObject
53
- } from "../chunk-ZE4AYGG6.js";
53
+ } from "../chunk-SBITNE3A.js";
54
54
  export {
55
55
  ALL_ROUTE,
56
56
  EXCERPT_SEPARATOR,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.23.5",
4
+ "version": "0.23.6",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -57,15 +57,15 @@
57
57
  "@clack/prompts": "^0.11.0",
58
58
  "@iconify-json/ri": "^1.2.5",
59
59
  "@intlify/unplugin-vue-i18n": "^6.0.8",
60
- "@shikijs/transformers": "^3.6.0",
60
+ "@shikijs/transformers": "^3.7.0",
61
61
  "@types/katex": "^0.16.7",
62
- "@unhead/addons": "^2.0.10",
63
- "@unhead/schema-org": "^2.0.10",
64
- "@unhead/vue": "^2.0.10",
65
- "@vitejs/plugin-vue": "^5.2.4",
62
+ "@unhead/addons": "^2.0.11",
63
+ "@unhead/schema-org": "^2.0.11",
64
+ "@unhead/vue": "^2.0.11",
65
+ "@vitejs/plugin-vue": "^6.0.0",
66
66
  "@vue/devtools-api": "7.7.2",
67
- "@vueuse/core": "^13.3.0",
68
- "@vueuse/integrations": "^13.3.0",
67
+ "@vueuse/core": "^13.4.0",
68
+ "@vueuse/integrations": "^13.4.0",
69
69
  "beasties": "^0.3.4",
70
70
  "birpc": "^2.4.0",
71
71
  "consola": "^3.4.2",
@@ -99,7 +99,7 @@
99
99
  "markdown-it-table-of-contents": "^0.9.0",
100
100
  "markdown-it-task-lists": "^2.1.1",
101
101
  "medium-zoom": "^1.1.0",
102
- "mermaid": "^11.6.0",
102
+ "mermaid": "^11.7.0",
103
103
  "mlly": "^1.7.4",
104
104
  "nprogress": "^0.2.0",
105
105
  "open": "10.1.0",
@@ -110,29 +110,29 @@
110
110
  "qrcode": "^1.5.4",
111
111
  "resolve-global": "^2.0.0",
112
112
  "sass": "^1.89.2",
113
- "shiki": "^3.6.0",
113
+ "shiki": "^3.7.0",
114
114
  "star-markdown-css": "^0.5.3",
115
115
  "table": "^6.9.0",
116
- "unhead": "^2.0.10",
117
- "unocss": "^66.2.0",
116
+ "unhead": "^2.0.11",
117
+ "unocss": "^66.3.2",
118
118
  "unplugin-vue-components": "28.0.0",
119
- "unplugin-vue-markdown": "^28.3.1",
120
- "unplugin-vue-router": "^0.12.0",
119
+ "unplugin-vue-markdown": "^29.0.0",
120
+ "unplugin-vue-router": "^0.13.0",
121
121
  "vanilla-lazyload": "^19.1.3",
122
- "vite": "^6.3.5",
123
- "vite-dev-rpc": "^1.0.7",
122
+ "vite": "^7.0.0",
123
+ "vite-dev-rpc": "^1.1.0",
124
124
  "vite-plugin-vue-devtools": "^7.7.7",
125
125
  "vite-plugin-vue-layouts": "^0.11.0",
126
- "vite-ssg": "^27.0.1",
126
+ "vite-ssg": "^28.0.0",
127
127
  "vite-ssg-sitemap": "^0.9.0",
128
128
  "vitepress-plugin-group-icons": "^1.6.0",
129
- "vue": "^3.5.16",
130
- "vue-i18n": "^11.1.5",
129
+ "vue": "^3.5.17",
130
+ "vue-i18n": "^11.1.7",
131
131
  "vue-router": "^4.5.1",
132
132
  "yargs": "^18.0.0",
133
133
  "zfeed": "^0.2.3",
134
- "@valaxyjs/devtools": "0.23.5",
135
- "@valaxyjs/utils": "0.23.5"
134
+ "@valaxyjs/devtools": "0.23.6",
135
+ "@valaxyjs/utils": "0.23.6"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@mdit-vue/plugin-component": "^2.1.4",
@@ -159,6 +159,9 @@
159
159
  "https-localhost": "^4.7.1",
160
160
  "rollup-plugin-visualizer": "^6.0.3"
161
161
  },
162
+ "resolutions": {
163
+ "vite": "catalog:"
164
+ },
162
165
  "scripts": {
163
166
  "clean": "rimraf dist",
164
167
  "build": "rimraf dist && tsup",