fumadocs-mdx 8.2.1 → 8.2.3

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
@@ -6,7 +6,7 @@ import { RemarkImageOptions, RehypeCodeOptions } from 'fumadocs-core/mdx-plugins
6
6
  import { PluggableList } from 'unified';
7
7
  import { Configuration } from 'webpack';
8
8
  import { Options as Options$1 } from './loader-mdx.mjs';
9
- import { O as Options } from './search-index-plugin-qbqv40V1.mjs';
9
+ import { O as Options } from './search-index-plugin-sA93pAAG.mjs';
10
10
  import '@mdx-js/mdx';
11
11
 
12
12
  type MDXOptions = Omit<NonNullable<Options$1>, 'rehypePlugins' | 'remarkPlugins'> & {
@@ -23,7 +23,7 @@ type ResolvePlugins = PluggableList | ((v: PluggableList) => PluggableList);
23
23
  interface CreateMDXOptions {
24
24
  cwd?: string;
25
25
  mdxOptions?: MDXOptions;
26
- buildSearchIndex?: Partial<Options> | false;
26
+ buildSearchIndex?: Omit<Options, 'rootContentDir' | 'rootMapFile'> | boolean;
27
27
  /**
28
28
  * Where the root map.ts should be, relative to cwd
29
29
  *
@@ -111,7 +111,7 @@ declare const createMDX: ({ mdxOptions, cwd, rootMapPath, rootContentPath, build
111
111
  relay?: {
112
112
  src: string;
113
113
  artifactDirectory?: string | undefined;
114
- language?: "typescript" | "javascript" | "flow" | undefined;
114
+ language?: "flow" | "typescript" | "javascript" | undefined;
115
115
  eagerEsModules?: boolean | undefined;
116
116
  } | undefined;
117
117
  removeConsole?: boolean | {
package/dist/config.mjs CHANGED
@@ -243,7 +243,7 @@ var createMDX = ({
243
243
  new SearchIndexPlugin({
244
244
  rootContentDir,
245
245
  rootMapFile,
246
- ...buildSearchIndex
246
+ ...typeof buildSearchIndex === "object" ? buildSearchIndex : {}
247
247
  })
248
248
  );
249
249
  return nextConfig.webpack?.(config, options) ?? config;
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  import { MDXProps } from 'mdx/types';
4
4
  import { StructuredData } from 'fumadocs-core/mdx-plugins';
5
5
  import { TableOfContents } from 'fumadocs-core/server';
6
- export { S as SearchIndex } from './search-index-plugin-qbqv40V1.mjs';
6
+ export { S as SearchIndex } from './search-index-plugin-sA93pAAG.mjs';
7
7
 
8
8
  declare const defaultSchemas: {
9
9
  frontmatter: z.ZodObject<{
@@ -9,7 +9,9 @@ interface SearchIndex {
9
9
  }
10
10
  interface Options {
11
11
  /**
12
- * Only enable at production builds, default: `true`
12
+ * Only build search indexes in production builds
13
+ *
14
+ * @defaultValue true
13
15
  */
14
16
  productionOnly?: boolean;
15
17
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "8.2.1",
3
+ "version": "8.2.3",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -43,7 +43,7 @@
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.2"
46
+ "fumadocs-core": "10.0.4"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/cross-spawn": "^6.0.6",