@nuxtjs/mdc 0.17.0 → 0.17.1
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/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/MDC.vue.d.ts +1 -1
- package/dist/runtime/components/MDCCached.vue.d.ts +1 -1
- package/dist/runtime/components/prose/ProseA.vue.d.ts +2 -2
- package/dist/runtime/stringify/index.d.ts +1 -1
- package/package.json +21 -21
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -12,7 +12,7 @@ const registerMDCSlotTransformer = (resolver) => {
|
|
|
12
12
|
const compilerOptions = config.vue.template.compilerOptions;
|
|
13
13
|
compilerOptions.nodeTransforms = [
|
|
14
14
|
function viteMDCSlot(node, context) {
|
|
15
|
-
const isVueSlotWithUnwrap = node.tag === "slot" && node.props.find((p) => p.name === "mdc-unwrap" || p.name === "bind" && p.rawName === ":mdc-unwrap");
|
|
15
|
+
const isVueSlotWithUnwrap = node.tag === "slot" && node.props.find((p) => p.name === "mdc-unwrap" || p.name === "mdcUnwrap" || p.name === "bind" && p.rawName === ":mdc-unwrap");
|
|
16
16
|
const isMDCSlot = node.tag === "MDCSlot";
|
|
17
17
|
if (isVueSlotWithUnwrap || isMDCSlot) {
|
|
18
18
|
const transform = context.ssr ? context.nodeTransforms.find((nt) => nt.name === "ssrTransformSlotOutlet") : context.nodeTransforms.find((nt) => nt.name === "transformSlotOutlet");
|
|
@@ -350,7 +350,7 @@ const module = defineNuxtModule({
|
|
|
350
350
|
filename: "mdc-image-component.mjs",
|
|
351
351
|
write: true,
|
|
352
352
|
getContents: ({ app }) => {
|
|
353
|
-
const image = app.components.find((c) => c.pascalName === "NuxtImg" && !c.filePath.includes("nuxt/dist/app"));
|
|
353
|
+
const image = app.components.find((c) => c.pascalName === "NuxtImg" && !c.filePath.includes("nuxt/dist/app") && !c.filePath.includes("nuxt-nightly/dist/app"));
|
|
354
354
|
return image ? `export { default } from "${image.filePath}"` : 'export default "img"';
|
|
355
355
|
}
|
|
356
356
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
7
|
href: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Processor } from 'unified';
|
|
2
2
|
import type { MDCStringifyOptions, MDCRoot } from '@nuxtjs/mdc';
|
|
3
3
|
export declare function createStringifyProcessor(options?: MDCStringifyOptions): Processor<undefined, import("hast").Root, import("unist").Node, import("mdast").Root, string>;
|
|
4
4
|
export declare function createMarkdownStringifier(options?: MDCStringifyOptions): (value: any, data?: Record<string, any>) => Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/mdc",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Nuxt MDC module",
|
|
5
5
|
"repository": "nuxt-modules/mdc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
"verify": "npm run dev:prepare && npm run lint && npm run test && npm run typecheck"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@nuxt/kit": "^3.
|
|
72
|
-
"@shikijs/langs": "^3.
|
|
73
|
-
"@shikijs/themes": "^3.
|
|
74
|
-
"@shikijs/transformers": "^3.
|
|
71
|
+
"@nuxt/kit": "^3.17.7",
|
|
72
|
+
"@shikijs/langs": "^3.8.0",
|
|
73
|
+
"@shikijs/themes": "^3.8.0",
|
|
74
|
+
"@shikijs/transformers": "^3.8.0",
|
|
75
75
|
"@types/hast": "^3.0.4",
|
|
76
76
|
"@types/mdast": "^4.0.4",
|
|
77
|
-
"@vue/compiler-core": "^3.5.
|
|
77
|
+
"@vue/compiler-core": "^3.5.17",
|
|
78
78
|
"consola": "^3.4.2",
|
|
79
|
-
"debug": "4.4.
|
|
79
|
+
"debug": "4.4.1",
|
|
80
80
|
"defu": "^6.1.4",
|
|
81
81
|
"destr": "^2.0.5",
|
|
82
82
|
"detab": "^3.0.2",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"micromark-util-sanitize-uri": "^2.0.1",
|
|
89
89
|
"parse5": "^7.3.0",
|
|
90
90
|
"pathe": "^2.0.3",
|
|
91
|
-
"property-information": "^7.
|
|
91
|
+
"property-information": "^7.1.0",
|
|
92
92
|
"rehype-external-links": "^3.0.0",
|
|
93
93
|
"rehype-minify-whitespace": "^6.0.2",
|
|
94
94
|
"rehype-raw": "^7.0.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"remark-rehype": "^11.1.2",
|
|
104
104
|
"remark-stringify": "^11.0.0",
|
|
105
105
|
"scule": "^1.3.0",
|
|
106
|
-
"shiki": "^3.
|
|
106
|
+
"shiki": "^3.8.0",
|
|
107
107
|
"ufo": "^1.6.1",
|
|
108
108
|
"unified": "^11.0.5",
|
|
109
109
|
"unist-builder": "^4.0.0",
|
|
@@ -112,26 +112,26 @@
|
|
|
112
112
|
"vfile": "^6.0.3"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@nuxt/devtools": "^2.
|
|
116
|
-
"@nuxt/eslint-config": "^1.
|
|
115
|
+
"@nuxt/devtools": "^2.6.2",
|
|
116
|
+
"@nuxt/eslint-config": "^1.5.2",
|
|
117
117
|
"@nuxt/module-builder": "^1.0.1",
|
|
118
|
-
"@nuxt/schema": "^3.
|
|
119
|
-
"@nuxt/test-utils": "^3.
|
|
120
|
-
"@nuxt/ui": "^3.0
|
|
118
|
+
"@nuxt/schema": "^3.17.7",
|
|
119
|
+
"@nuxt/test-utils": "^3.19.2",
|
|
120
|
+
"@nuxt/ui": "^3.2.0",
|
|
121
121
|
"@nuxtjs/mdc": "link:.",
|
|
122
|
-
"@types/node": "^
|
|
123
|
-
"eslint": "^9.
|
|
124
|
-
"nuxt": "^3.
|
|
122
|
+
"@types/node": "^24.0.13",
|
|
123
|
+
"eslint": "^9.31.0",
|
|
124
|
+
"nuxt": "^3.17.7",
|
|
125
125
|
"rehype": "^13.0.2",
|
|
126
|
-
"release-it": "^19.0.
|
|
126
|
+
"release-it": "^19.0.3",
|
|
127
127
|
"typescript": "5.8.3",
|
|
128
|
-
"vitest": "^3.
|
|
129
|
-
"vue-tsc": "^
|
|
128
|
+
"vitest": "^3.2.4",
|
|
129
|
+
"vue-tsc": "^3.0.1"
|
|
130
130
|
},
|
|
131
131
|
"resolutions": {
|
|
132
132
|
"@nuxtjs/mdc": "workspace:*"
|
|
133
133
|
},
|
|
134
|
-
"packageManager": "pnpm@10.
|
|
134
|
+
"packageManager": "pnpm@10.13.1",
|
|
135
135
|
"release-it": {
|
|
136
136
|
"git": {
|
|
137
137
|
"commitMessage": "chore(release): release v${version}"
|