fumadocs-mdx 8.2.4 → 8.2.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.
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?: "flow" | "typescript" | "javascript" | undefined;
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) => JSX.Element;
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.4",
3
+ "version": "8.2.6",
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.5"
46
+ "fumadocs-core": "10.1.1"
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.0",
53
- "next": "^14.1.2",
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",