@terrafirmagreg-team/mdx 1.2.2 → 1.2.4
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.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MDX/markdown pipeline",
|
|
6
6
|
"license": "LGPL-3.0-only",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fumadocs/story": "^1.5.3",
|
|
23
23
|
"@fumari/stf": "^1.1.2",
|
|
24
|
-
"@terrafirmagreg-team/translate": "1.2.
|
|
25
|
-
"@terrafirmagreg-team/ui": "1.2.
|
|
24
|
+
"@terrafirmagreg-team/translate": "^1.2.5",
|
|
25
|
+
"@terrafirmagreg-team/ui": "^1.2.6",
|
|
26
26
|
"@types/turndown": "^5.0.6",
|
|
27
|
-
"fumadocs-core": "16.17.
|
|
27
|
+
"fumadocs-core": "16.17.10",
|
|
28
28
|
"fumadocs-docgen": "^3.2.0",
|
|
29
29
|
"fumadocs-twoslash": "^4.0.4",
|
|
30
30
|
"fumadocs-typescript": "5.6.0",
|
|
31
|
-
"lucide-react": "^
|
|
31
|
+
"lucide-react": "^1.63.0",
|
|
32
32
|
"rehype-katex": "^7.0.1",
|
|
33
33
|
"rehype-raw": "^7.0.0",
|
|
34
34
|
"remark-directive": "^4.0.0",
|
|
@@ -46,7 +46,9 @@ import { LinkPreview } from '@terrafirmagreg-team/ui/components/blocks/link/link
|
|
|
46
46
|
import type { MDXComponents } from 'mdx/types';
|
|
47
47
|
import type { ComponentProps, HTMLAttributes } from 'react';
|
|
48
48
|
|
|
49
|
-
const extras
|
|
49
|
+
const extras = ((globalThis as Record<symbol, unknown>)[
|
|
50
|
+
Symbol.for('terrafirmagreg.mdx.components')
|
|
51
|
+
] ??= {}) as MDXComponents;
|
|
50
52
|
|
|
51
53
|
export function registerMdxComponents(map: MDXComponents): void {
|
|
52
54
|
Object.assign(extras, map);
|
|
@@ -11,7 +11,9 @@ export type MarkdownProvider = (
|
|
|
11
11
|
ctx: MarkdownProviderCtx,
|
|
12
12
|
) => Promise<Response | undefined>;
|
|
13
13
|
|
|
14
|
-
const providers =
|
|
14
|
+
const providers = ((globalThis as Record<symbol, unknown>)[
|
|
15
|
+
Symbol.for('terrafirmagreg.mdx.providers')
|
|
16
|
+
] ??= new Map<string, MarkdownProvider>()) as Map<string, MarkdownProvider>;
|
|
15
17
|
|
|
16
18
|
export function registerMarkdownProvider(
|
|
17
19
|
section: string,
|