fumadocs-mdx 9.0.1 → 9.0.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
@@ -2,7 +2,7 @@ import { NextConfig } from 'next';
2
2
  import { RemarkHeadingOptions, RemarkImageOptions, RehypeCodeOptions } from 'fumadocs-core/mdx-plugins';
3
3
  import { Pluggable } from 'unified';
4
4
  import { Options as Options$1 } from './loader-mdx.mjs';
5
- import { O as Options } from './search-index-plugin-Dz3ovOHb.mjs';
5
+ import { O as Options } from './search-index-plugin-DG9nZ1CX.mjs';
6
6
  import '@mdx-js/mdx';
7
7
  import 'webpack';
8
8
 
package/dist/config.mjs CHANGED
@@ -121,7 +121,8 @@ var SearchIndexPlugin = class _SearchIndexPlugin {
121
121
  structuredData: info.data.structuredData,
122
122
  title: info.data.frontmatter.title,
123
123
  description: info.data.frontmatter.description,
124
- url: getUrl(relativePath)
124
+ url: getUrl(relativePath),
125
+ _data: info.data
125
126
  });
126
127
  }
127
128
  compilation.emitAsset(
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-Dz3ovOHb.mjs';
6
+ export { S as SearchIndex } from './search-index-plugin-DG9nZ1CX.mjs';
7
7
 
8
8
  declare const defaultSchemas: {
9
9
  frontmatter: z.ZodObject<{
@@ -14,14 +14,14 @@ declare const defaultSchemas: {
14
14
  _openapi: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  title: string;
17
- icon?: string | undefined;
18
17
  description?: string | undefined;
18
+ icon?: string | undefined;
19
19
  full?: boolean | undefined;
20
20
  _openapi?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
21
21
  }, {
22
22
  title: string;
23
- icon?: string | undefined;
24
23
  description?: string | undefined;
24
+ icon?: string | undefined;
25
25
  full?: boolean | undefined;
26
26
  _openapi?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
27
27
  }>;
@@ -6,6 +6,13 @@ interface SearchIndex {
6
6
  description?: string;
7
7
  url: string;
8
8
  structuredData: StructuredData;
9
+ /**
10
+ * VFile Data
11
+ */
12
+ _data: {
13
+ frontmatter: Record<string, unknown>;
14
+ [key: string]: unknown;
15
+ };
9
16
  }
10
17
  interface Options {
11
18
  rootContentDir: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "9.0.1",
3
+ "version": "9.0.3",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -53,11 +53,11 @@
53
53
  "unified": "^11.0.5",
54
54
  "webpack": "^5.90.3",
55
55
  "eslint-config-custom": "0.0.0",
56
- "fumadocs-core": "13.2.1",
56
+ "fumadocs-core": "13.4.0",
57
57
  "tsconfig": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "fumadocs-core": "13.x.x",
60
+ "fumadocs-core": "^13.2.1",
61
61
  "next": ">= 14.1.0"
62
62
  },
63
63
  "publishConfig": {