fumadocs-mdx 8.2.4 → 8.2.5
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/config.d.mts +2 -1
- package/dist/index.d.mts +1 -1
- package/dist/loader.mjs +1 -1
- package/package.json +4 -4
package/dist/config.d.mts
CHANGED
|
@@ -87,6 +87,7 @@ declare const createMDX: ({ mdxOptions, cwd, rootMapPath, rootContentPath, build
|
|
|
87
87
|
amp?: {
|
|
88
88
|
canonicalBase?: string | undefined;
|
|
89
89
|
} | undefined;
|
|
90
|
+
deploymentId?: string | undefined;
|
|
90
91
|
basePath?: string | undefined;
|
|
91
92
|
sassOptions?: {
|
|
92
93
|
[key: string]: any;
|
|
@@ -115,7 +116,7 @@ declare const createMDX: ({ mdxOptions, cwd, rootMapPath, rootContentPath, build
|
|
|
115
116
|
relay?: {
|
|
116
117
|
src: string;
|
|
117
118
|
artifactDirectory?: string | undefined;
|
|
118
|
-
language?: "
|
|
119
|
+
language?: "typescript" | "javascript" | "flow" | undefined;
|
|
119
120
|
eagerEsModules?: boolean | undefined;
|
|
120
121
|
} | undefined;
|
|
121
122
|
removeConsole?: boolean | {
|
package/dist/index.d.mts
CHANGED
|
@@ -53,7 +53,7 @@ type SourceFile<Meta extends MetaData, Fronmatter extends PageData> = {
|
|
|
53
53
|
* Defalt MDX properties
|
|
54
54
|
*/
|
|
55
55
|
interface MDXExport<Frontmatter = PageData> {
|
|
56
|
-
default: (props: MDXProps) =>
|
|
56
|
+
default: (props: MDXProps) => React.ReactElement;
|
|
57
57
|
frontmatter: Frontmatter;
|
|
58
58
|
lastModified: number | undefined;
|
|
59
59
|
toc: TableOfContents;
|
package/dist/loader.mjs
CHANGED
|
@@ -23,7 +23,7 @@ function buildMap({
|
|
|
23
23
|
if (!importPath.startsWith(".")) {
|
|
24
24
|
importPath = `./${importPath}`;
|
|
25
25
|
}
|
|
26
|
-
const name = `file_${i}`;
|
|
26
|
+
const name = `file_${i.toString()}`;
|
|
27
27
|
imports.push(`import * as ${name} from ${JSON.stringify(importPath)};`);
|
|
28
28
|
entries.push(`${JSON.stringify(file)}: ${name}`);
|
|
29
29
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.5",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"fast-glob": "^3.3.1",
|
|
44
44
|
"gray-matter": "^4.0.3",
|
|
45
45
|
"zod": "^3.22.4",
|
|
46
|
-
"fumadocs-core": "10.0
|
|
46
|
+
"fumadocs-core": "10.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/cross-spawn": "^6.0.6",
|
|
50
50
|
"@types/mdast": "^4.0.3",
|
|
51
51
|
"@types/mdx": "^2.0.11",
|
|
52
|
-
"@types/react": "^18.2.
|
|
53
|
-
"next": "^14.1.
|
|
52
|
+
"@types/react": "^18.2.67",
|
|
53
|
+
"next": "^14.1.4",
|
|
54
54
|
"unified": "^11.0.4",
|
|
55
55
|
"webpack": "^5.90.3",
|
|
56
56
|
"eslint-config-custom": "0.0.0",
|