Skip to content

Commit ebfb015

Browse files
mdx patch for r19
1 parent 277a095 commit ebfb015

File tree

5 files changed

+307
-5
lines changed

5 files changed

+307
-5
lines changed

mdx-components.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import type { MDXComponents } from 'mdx/types';
12
import { ImageZoom } from 'fumadocs-ui/components/image-zoom';
23
import defaultComponents from 'fumadocs-ui/mdx';
34
import Imagera from '@/components/imagera';
45

5-
type MDXComponents = Record<string, React.ComponentType<any>>;
6-
76
export function useMDXComponents(components?: MDXComponents): MDXComponents {
87
return {
98
...defaultComponents,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@types/react": "^19.2.2",
3131
"@types/react-dom": "^19.2.1",
3232
"autoprefixer": "^10.4.21",
33+
"patch-package": "^8.0.1",
3334
"postcss": "^8.5.6",
3435
"tailwindcss": "^4.1.8",
3536
"typescript": "^5.9.3"

patches/@[email protected]

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
diff --git a/types.d.ts b/types.d.ts
2+
index 498bb694de2e6a62f14d3fe998dc538aff920fc6..aa6140f61300ffd9697cd775d70b76579060b0d2 100644
3+
--- a/types.d.ts
4+
+++ b/types.d.ts
5+
@@ -1,3 +1,5 @@
6+
+import { type JSX } from 'react';
7+
+
8+
// Internal helper types
9+
10+
/**

0 commit comments

Comments
 (0)