@next/mdx 14.1.1-canary.82 → 14.1.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.
Files changed (3) hide show
  1. package/index.d.ts +22 -22
  2. package/package.json +1 -1
  3. package/readme.md +3 -0
package/index.d.ts CHANGED
@@ -1,33 +1,33 @@
1
- import type { NextConfig } from 'next'
2
- import type { Options } from '@mdx-js/loader'
3
- import type { RuleSetConditionAbsolute } from 'webpack'
1
+ /* eslint-disable */
2
+ import { NextConfig } from 'next'
3
+ import { CompileOptions } from '@mdx-js/mdx'
4
+ import { RuleSetConditionAbsolute } from 'webpack'
4
5
 
5
6
  type WithMDX = (config: NextConfig) => NextConfig
6
7
 
7
- declare namespace nextMDX {
8
- interface NextMDXOptions {
9
- /**
10
- * A webpack rule test to match files to treat as MDX.
11
- *
12
- * @default /\.mdx$/
13
- * @example
14
- * // Support both .md and .mdx files.
15
- * /\.mdx?$/
16
- */
17
- extension?: RuleSetConditionAbsolute
8
+ export interface NextMDXOptions {
9
+ /**
10
+ * A webpack rule test to match files to treat as MDX.
11
+ *
12
+ * @default /\.mdx$/
13
+ * @example
14
+ * // Support both .md and .mdx files.
15
+ * /\.mdx?$/
16
+ */
17
+ extension?: RuleSetConditionAbsolute
18
18
 
19
- /**
20
- * The options to pass to MDX.
21
- *
22
- * @see https://mdxjs.com/packages/mdx/#api
23
- */
24
- options?: Options
25
- }
19
+ /**
20
+ * The options to pass to MDX.
21
+ *
22
+ * @see https://mdxjs.com/packages/mdx/#api
23
+ */
24
+ options?: CompileOptions
26
25
  }
27
26
 
28
27
  /**
29
28
  * Use [MDX](https://github.com/mdx-js/mdx) with [Next.js](https://github.com/vercel/next.js)
30
29
  */
31
- declare function nextMDX(options?: nextMDX.NextMDXOptions): WithMDX
30
+ declare function nextMDX(options?: NextMDXOptions): WithMDX
32
31
 
33
32
  export = nextMDX
33
+ /* eslint=enable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/mdx",
3
- "version": "14.1.1-canary.82",
3
+ "version": "14.1.1",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
package/readme.md CHANGED
@@ -137,6 +137,9 @@ const withMDX = require('@next/mdx')({
137
137
  const nextConfig = {
138
138
  // Configure pageExtensions to include md and mdx
139
139
  pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
140
+ experimental: {
141
+ appDir: true,
142
+ }
140
143
  // Optionally, add any other Next.js config below
141
144
  reactStrictMode: true,
142
145
  }