react-ai-renderer 0.1.9 → 0.1.11
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/README.md +60 -0
- package/dist/index.cjs +4091 -3034
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4085 -3028
- package/dist/index.js.map +1 -1
- package/package.json +11 -3
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-ai-renderer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
"files": [
|
|
9
16
|
"dist",
|
|
10
17
|
"README.md",
|
|
@@ -33,8 +40,8 @@
|
|
|
33
40
|
"license": "MIT",
|
|
34
41
|
"description": "一个专为 AI 应用程序设计的 React 渲染器,支持流式 Markdown 和 MDX 内容渲染,提供 AI 推理展示、代码高亮和可选的 Mermaid 图表渲染功能。",
|
|
35
42
|
"peerDependencies": {
|
|
36
|
-
"react": "
|
|
37
|
-
"react-dom": "
|
|
43
|
+
"react": ">=18.2.0",
|
|
44
|
+
"react-dom": ">=18.2.0"
|
|
38
45
|
},
|
|
39
46
|
"optionalDependencies": {
|
|
40
47
|
"katex": "^0.16.0",
|
|
@@ -59,6 +66,7 @@
|
|
|
59
66
|
"@rollup/plugin-commonjs": "^24.0.0",
|
|
60
67
|
"@rollup/plugin-json": "^6.1.0",
|
|
61
68
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
69
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
62
70
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
63
71
|
"@types/node": "^18.19.0",
|
|
64
72
|
"@types/react": "^18.2.0",
|