fumadocs-core 13.4.0 → 13.4.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.
@@ -4,7 +4,8 @@ import { RehypeShikiOptions } from '@shikijs/rehype';
4
4
  import { Processor, Transformer } from 'unified';
5
5
  import { ShikiTransformer } from 'shiki';
6
6
  import { Root as Root$1, Heading } from 'mdast';
7
- export { a as StructureOptions, S as StructuredData, r as remarkStructure, s as structure } from '../remark-structure-Dj8oa5Ba.js';
7
+ export { a as StructureOptions, S as StructuredData, r as remarkStructure, s as structure } from '../remark-structure-mP51W1AN.js';
8
+ import 'unist-util-visit';
8
9
 
9
10
  interface CodeBlockIcon {
10
11
  viewBox: string;
@@ -414,7 +414,7 @@ import remarkMdx from "remark-mdx";
414
414
  import { visit as visit2 } from "unist-util-visit";
415
415
  var slugger = new Slugger();
416
416
  function remarkStructure({
417
- types = ["paragraph", "blockquote", "heading"]
417
+ types = ["paragraph", "blockquote", "heading", "tableCell"]
418
418
  } = {}) {
419
419
  return (node, file) => {
420
420
  slugger.reset();
@@ -1,5 +1,6 @@
1
1
  import { Root } from 'mdast';
2
2
  import { Transformer, PluggableList } from 'unified';
3
+ import { Test } from 'unist-util-visit';
3
4
 
4
5
  interface Heading {
5
6
  id: string;
@@ -18,9 +19,11 @@ interface StructuredData {
18
19
  }
19
20
  interface StructureOptions {
20
21
  /**
21
- * Types to be scanned, default: `["heading", "blockquote", "paragraph"]`
22
+ * Types to be scanned.
23
+ *
24
+ * @defaultValue ['paragraph', 'blockquote', 'heading', 'tableCell']
22
25
  */
23
- types?: string[];
26
+ types?: Test;
24
27
  }
25
28
  /**
26
29
  * Attach structured data to VFile, you can access via `vfile.data.structuredData`.
@@ -1,9 +1,10 @@
1
1
  import { NextRequest } from 'next/server';
2
- import { S as StructuredData } from '../remark-structure-Dj8oa5Ba.js';
2
+ import { S as StructuredData } from '../remark-structure-mP51W1AN.js';
3
3
  import { SortedResult } from './shared.js';
4
4
  import { I as I18nConfig } from '../config-inq6kP6y.js';
5
5
  import 'mdast';
6
6
  import 'unified';
7
+ import 'unist-util-visit';
7
8
 
8
9
  interface I18nSimpleOptions extends Omit<SimpleOptions, 'language' | 'indexes'> {
9
10
  i18n: I18nConfig;
@@ -4,9 +4,10 @@ import { SWRResponse } from 'swr';
4
4
  import { SortedResult } from '../search/shared.js';
5
5
  import { BaseIndex } from './server.js';
6
6
  import 'algoliasearch';
7
- import '../remark-structure-Dj8oa5Ba.js';
7
+ import '../remark-structure-mP51W1AN.js';
8
8
  import 'mdast';
9
9
  import 'unified';
10
+ import 'unist-util-visit';
10
11
 
11
12
  interface Options extends SearchOptions {
12
13
  /**
@@ -1,7 +1,8 @@
1
1
  import { SearchClient, SearchIndex } from 'algoliasearch';
2
- import { S as StructuredData } from '../remark-structure-Dj8oa5Ba.js';
2
+ import { S as StructuredData } from '../remark-structure-mP51W1AN.js';
3
3
  import 'mdast';
4
4
  import 'unified';
5
+ import 'unist-util-visit';
5
6
 
6
7
  interface DocumentRecord {
7
8
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "13.4.0",
3
+ "version": "13.4.1",
4
4
  "description": "The library for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -133,7 +133,7 @@
133
133
  "github-slugger": "^2.0.0",
134
134
  "image-size": "^1.1.1",
135
135
  "negotiator": "^0.6.3",
136
- "npm-to-yarn": "^2.2.1",
136
+ "npm-to-yarn": "^3.0.0",
137
137
  "react-remove-scroll": "^2.5.10",
138
138
  "remark": "^15.0.0",
139
139
  "remark-gfm": "^4.0.0",