@terrafirmagreg-team/mdx 1.2.8 → 1.2.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrafirmagreg-team/mdx",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "type": "module",
5
5
  "description": "MDX/markdown pipeline",
6
6
  "license": "LGPL-3.0-only",
@@ -20,16 +20,13 @@
20
20
  "./lib/markdown": "./src/lib/markdown/index.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@fumadocs/story": "^1.5.3",
24
- "@fumari/stf": "^1.1.2",
25
- "@terrafirmagreg-team/translate": "^1.2.8",
26
- "@terrafirmagreg-team/ui": "^1.2.10",
27
- "fumadocs-core": "16.17.10",
23
+ "@terrafirmagreg-team/translate": "^1.2.10",
24
+ "@terrafirmagreg-team/ui": "^1.2.13",
28
25
  "fumadocs-docgen": "^3.2.0",
29
26
  "fumadocs-twoslash": "^4.0.4",
30
27
  "fumadocs-typescript": "5.6.0",
31
28
  "gemoji": "^8.1.0",
32
- "lucide-react": "^1.63.0",
29
+ "lucide-react": "^1.70.0",
33
30
  "mdast-util-to-string": "^4.0.0",
34
31
  "rehype-katex": "^7.0.1",
35
32
  "rehype-raw": "^7.0.0",
@@ -41,12 +38,15 @@
41
38
  "unist-util-visit": "^5.2.0"
42
39
  },
43
40
  "peerDependencies": {
41
+ "@fumadocs/story": "^1.5.3",
42
+ "@fumari/stf": "^1.1.2",
43
+ "fumadocs-core": ">=16",
44
44
  "next": ">=15",
45
45
  "react": ">=19"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/mdx": "^2.0.14",
49
- "@types/node": "^26.6.5",
49
+ "@types/node": "^26.6.6",
50
50
  "@types/react": "^19.3.0",
51
51
  "@types/react-dom": "^19.3.0"
52
52
  },
@@ -54,7 +54,7 @@ const rehypeCodeOptions = {
54
54
  };
55
55
 
56
56
  export const mdOptions = (
57
- datasetConfig: Record<string, { repo?: string }> = {},
57
+ datasetConfig: Record<string, { github?: { repo?: string } }> = {},
58
58
  ) => ({
59
59
  mdOptions: {
60
60
  remarkImageOptions: { onError: 'ignore' },
@@ -25,7 +25,7 @@ const DEFAULT_PATHS = [
25
25
  ];
26
26
 
27
27
  export function remarkGithubAutolinks(options: {
28
- datasetConfig?: Record<string, { repo?: string }>;
28
+ datasetConfig?: Record<string, { github?: { repo?: string } }>;
29
29
  paths?: RegExp[];
30
30
  } = {}) {
31
31
  const { datasetConfig = {}, paths = DEFAULT_PATHS } = options;
@@ -34,7 +34,7 @@ export function remarkGithubAutolinks(options: {
34
34
  const pack = paths
35
35
  .map((pattern) => pattern.exec(filePath)?.[1])
36
36
  .find(Boolean);
37
- const repo = pack ? datasetConfig[pack]?.repo : undefined;
37
+ const repo = pack ? datasetConfig[pack]?.github?.repo : undefined;
38
38
  if (!repo) return;
39
39
  const repoUrl = `https://github.com/${repo}`;
40
40
  const visit = (node: MdastNode) => {
package/src/lib/story.ts CHANGED
@@ -8,6 +8,8 @@ import type {
8
8
  import { DocsWithControl } from '../components/story-panel';
9
9
  import type { ComponentType } from 'react';
10
10
 
11
+ export { useStory } from '@fumadocs/story';
12
+ export { useDataEngine } from '@fumari/stf';
11
13
  export { md } from './md';
12
14
 
13
15
  const factory = defineStoryFactory({