markstream-react 0.0.50 → 0.0.53
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 +173 -106
- package/dist/Tooltip-DSM4ImfZ.js +207 -0
- package/dist/codeBlockExtraProps-RaPzFq78.js +3 -0
- package/dist/index-D0DspXy9.js +85 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.px.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/markstream-react.css +1 -1
- package/dist/next.d.ts +41 -19
- package/dist/next.js +1 -1
- package/dist/server.d.ts +67 -45
- package/dist/server.js +1 -1
- package/dist/tailwind.cjs +4 -0
- package/dist/tailwind.d.ts +2 -0
- package/dist/tailwind.js +2 -0
- package/dist/types/components/AdmonitionNode/AdmonitionNode.d.ts +2 -1
- package/dist/types/components/BlockquoteNode/BlockquoteNode.d.ts +2 -1
- package/dist/types/components/CheckboxNode/CheckboxNode.d.ts +2 -1
- package/dist/types/components/CodeBlockNode/CodeBlockNode.d.ts +2 -1
- package/dist/types/components/CodeBlockNode/PreCodeNode.d.ts +2 -1
- package/dist/types/components/D2BlockNode/D2BlockNode.d.ts +2 -1
- package/dist/types/components/DefinitionListNode/DefinitionListNode.d.ts +2 -1
- package/dist/types/components/EmojiNode/EmojiNode.d.ts +2 -1
- package/dist/types/components/EmphasisNode/EmphasisNode.d.ts +2 -1
- package/dist/types/components/FootnoteAnchorNode/FootnoteAnchorNode.d.ts +2 -1
- package/dist/types/components/FootnoteNode/FootnoteNode.d.ts +2 -1
- package/dist/types/components/FootnoteReferenceNode/FootnoteReferenceNode.d.ts +2 -1
- package/dist/types/components/HardBreakNode/HardBreakNode.d.ts +2 -1
- package/dist/types/components/HeadingNode/HeadingNode.d.ts +2 -1
- package/dist/types/components/HighlightNode/HighlightNode.d.ts +2 -1
- package/dist/types/components/HtmlBlockNode/HtmlBlockNode.d.ts +1 -1
- package/dist/types/components/HtmlInlineNode/HtmlInlineNode.d.ts +6 -2
- package/dist/types/components/ImageNode/ImageNode.d.ts +1 -1
- package/dist/types/components/InfographicBlockNode/InfographicBlockNode.d.ts +2 -1
- package/dist/types/components/InlineCodeNode/InlineCodeNode.d.ts +2 -1
- package/dist/types/components/InsertNode/InsertNode.d.ts +2 -1
- package/dist/types/components/LinkNode/LinkNode.d.ts +2 -1
- package/dist/types/components/ListItemNode/ListItemNode.d.ts +2 -1
- package/dist/types/components/ListNode/ListNode.d.ts +2 -1
- package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.d.ts +2 -1
- package/dist/types/components/Math/MathBlockNode.d.ts +1 -1
- package/dist/types/components/Math/MathInlineNode.d.ts +1 -1
- package/dist/types/components/MermaidBlockNode/MermaidBlockNode.d.ts +2 -1
- package/dist/types/components/NodeRenderer/FallbackComponent.d.ts +2 -1
- package/dist/types/components/NodeRenderer.d.ts +2 -1
- package/dist/types/components/ParagraphNode/ParagraphNode.d.ts +2 -1
- package/dist/types/components/ReferenceNode/ReferenceNode.d.ts +1 -1
- package/dist/types/components/StrikethroughNode/StrikethroughNode.d.ts +2 -1
- package/dist/types/components/StrongNode/StrongNode.d.ts +2 -1
- package/dist/types/components/SubscriptNode/SubscriptNode.d.ts +2 -1
- package/dist/types/components/SuperscriptNode/SuperscriptNode.d.ts +2 -1
- package/dist/types/components/TableNode/TableNode.d.ts +2 -1
- package/dist/types/components/TextNode/TextNode.d.ts +2 -1
- package/dist/types/components/ThematicBreakNode/ThematicBreakNode.d.ts +2 -1
- package/dist/types/components/VmrContainerNode/VmrContainerNode.d.ts +2 -1
- package/dist/types/context/viewportPriority.d.ts +1 -1
- package/dist/types/customComponents.d.ts +20 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next.d.ts +7 -3
- package/dist/types/renderers/renderChildren.d.ts +1 -1
- package/dist/types/renderers/renderNode.d.ts +1 -1
- package/dist/types/server-renderer/index.d.ts +45 -41
- package/dist/types/server.d.ts +2 -2
- package/dist/types/styles.d.ts +1 -0
- package/dist/types/types.d.ts +8 -3
- package/dist/types/utils/customHtmlTag.d.ts +5 -4
- package/dist/types/utils/htmlToReact.d.ts +17 -6
- package/package.json +41 -42
- package/dist/Tooltip-D786qxIk.js +0 -207
- package/dist/codeBlockExtraProps-7n9FWJXk.js +0 -3
- package/dist/index-o_DISWz2.js +0 -85
- package/dist/tailwind.ts +0 -3
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"description": "React Markdown renderer
|
|
4
|
+
"version": "0.0.53",
|
|
5
|
+
"description": "React/Next.js streaming Markdown renderer for AI chat, LLM token streams, SSE/WebSocket output, incomplete Markdown, long documents, Mermaid, KaTeX, Shiki, Monaco, and custom React components.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://markstream.simonhe.me/frameworks/react",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/Simon-He95/markstream-vue.git",
|
|
@@ -16,43 +16,37 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"react",
|
|
19
|
-
"reactjs",
|
|
20
|
-
"markdown",
|
|
21
|
-
"markdown-to-html",
|
|
22
|
-
"markdown-renderer",
|
|
23
|
-
"react-markdown",
|
|
24
|
-
"react-markdown-renderer",
|
|
25
|
-
"react-markdown-component",
|
|
26
|
-
"markdown-preview",
|
|
27
|
-
"markdown-viewer",
|
|
28
|
-
"react-component",
|
|
29
19
|
"nextjs",
|
|
30
20
|
"next.js",
|
|
31
21
|
"remix",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
22
|
+
"markdown",
|
|
23
|
+
"markdown-renderer",
|
|
24
|
+
"streaming-markdown-renderer",
|
|
25
|
+
"react-markdown",
|
|
26
|
+
"react-markdown-alternative",
|
|
27
|
+
"streamdown-alternative",
|
|
36
28
|
"streaming-markdown",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
29
|
+
"ai-markdown-renderer",
|
|
30
|
+
"ai-chat",
|
|
31
|
+
"llm",
|
|
32
|
+
"llm-markdown",
|
|
33
|
+
"llm-streaming",
|
|
34
|
+
"sse",
|
|
35
|
+
"sse-markdown",
|
|
36
|
+
"websocket",
|
|
37
|
+
"websocket-markdown",
|
|
40
38
|
"mermaid",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"streaming-mermaid",
|
|
40
|
+
"katex",
|
|
41
|
+
"streaming-katex",
|
|
42
|
+
"shiki",
|
|
43
|
+
"monaco",
|
|
44
|
+
"monaco-editor",
|
|
45
|
+
"streaming-code-blocks",
|
|
44
46
|
"large-documents",
|
|
45
|
-
"
|
|
46
|
-
"real-time-preview",
|
|
47
|
+
"safe-html",
|
|
47
48
|
"markstream-react",
|
|
48
|
-
"markstream"
|
|
49
|
-
"documentation",
|
|
50
|
-
"docs",
|
|
51
|
-
"content-management",
|
|
52
|
-
"cms",
|
|
53
|
-
"markdown-parser",
|
|
54
|
-
"md-to-html",
|
|
55
|
-
"react-markdown-component"
|
|
49
|
+
"markstream"
|
|
56
50
|
],
|
|
57
51
|
"sideEffects": [
|
|
58
52
|
"**/*.css"
|
|
@@ -73,7 +67,11 @@
|
|
|
73
67
|
"./index.css": "./dist/index.css",
|
|
74
68
|
"./index.px.css": "./dist/index.px.css",
|
|
75
69
|
"./index.tailwind.css": "./dist/index.tailwind.css",
|
|
76
|
-
"./tailwind":
|
|
70
|
+
"./tailwind": {
|
|
71
|
+
"types": "./dist/tailwind.d.ts",
|
|
72
|
+
"import": "./dist/tailwind.js",
|
|
73
|
+
"require": "./dist/tailwind.cjs"
|
|
74
|
+
},
|
|
77
75
|
"./workers/katexRenderer.worker": "./dist/workers/katexRenderer.worker.js",
|
|
78
76
|
"./workers/mermaidParser.worker": "./dist/workers/mermaidParser.worker.js"
|
|
79
77
|
},
|
|
@@ -91,7 +89,7 @@
|
|
|
91
89
|
"react": ">=18",
|
|
92
90
|
"react-dom": ">=18",
|
|
93
91
|
"stream-markdown": ">=0.0.16",
|
|
94
|
-
"stream-monaco": ">=0.0.
|
|
92
|
+
"stream-monaco": ">=0.0.45"
|
|
95
93
|
},
|
|
96
94
|
"peerDependenciesMeta": {
|
|
97
95
|
"@antv/infographic": {
|
|
@@ -117,31 +115,32 @@
|
|
|
117
115
|
"@floating-ui/dom": "^1.7.6",
|
|
118
116
|
"clsx": "^2.1.1",
|
|
119
117
|
"markstream-core": "1.0.3",
|
|
120
|
-
"stream-markdown-parser": "1.0.
|
|
118
|
+
"stream-markdown-parser": "1.0.8"
|
|
121
119
|
},
|
|
122
120
|
"devDependencies": {
|
|
123
|
-
"@types/react": "^18.3.
|
|
121
|
+
"@types/react": "^18.3.31",
|
|
124
122
|
"@types/react-dom": "^18.3.7",
|
|
125
123
|
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
126
|
-
"autoprefixer": "^10.5.
|
|
124
|
+
"autoprefixer": "^10.5.1",
|
|
127
125
|
"rollup": "^3.30.0",
|
|
128
126
|
"rollup-plugin-dts": "^5.3.1",
|
|
129
127
|
"rollup-plugin-visualizer": "^6.0.11",
|
|
130
128
|
"tailwindcss": "^3.4.19",
|
|
131
129
|
"typescript": "^5.9.3",
|
|
132
|
-
"vite": "^7.3.
|
|
130
|
+
"vite": "^7.3.5",
|
|
133
131
|
"vite-plugin-dts": "^4.5.4"
|
|
134
132
|
},
|
|
135
133
|
"scripts": {
|
|
136
134
|
"dev": "vite dev",
|
|
137
|
-
"build": "pnpm --dir ../markstream-core build && vite build --mode npm && vite build -c vite.config.tailwind.ts --mode npm && node ./scripts/copy-tailwind-css.mjs && node ../../scripts/generate-px-css.mjs && pnpm run build:dts && node ./scripts/ensure-next-client-directive.mjs",
|
|
135
|
+
"build": "pnpm --dir ../markstream-core build && vite build --mode npm && node ../../scripts/cleanup-style-entry.mjs && node ./scripts/finalize-tailwind-export.mjs && vite build -c vite.config.tailwind.ts --mode npm && node ./scripts/copy-tailwind-css.mjs && node ../../scripts/generate-px-css.mjs && pnpm run build:dts && node ./scripts/ensure-next-client-directive.mjs",
|
|
138
136
|
"build:analyze": "ANALYZE=true pnpm build",
|
|
139
137
|
"build:dts": "rollup -c ./scripts/rollup.dts.config.mjs && node ./scripts/clean-dts.cjs",
|
|
138
|
+
"check:exports": "node ../../scripts/check-react-package-exports.mjs",
|
|
140
139
|
"preview": "vite preview",
|
|
141
|
-
"typecheck": "tsc --noEmit",
|
|
140
|
+
"typecheck": "tsc --noEmit && tsc -p ../../test/react-local-component-maps-types.tsconfig.json --noEmit",
|
|
142
141
|
"size:check": "node ../../scripts/check-package-size.mjs",
|
|
143
142
|
"check:core-published": "node ../../scripts/check-core-published.mjs --package-json package.json --core-package-json ../markstream-core/package.json",
|
|
144
143
|
"check:workspace-deps-published": "node ../../scripts/check-workspace-deps-published.mjs --package-json package.json",
|
|
145
|
-
"release": "pnpm run check:workspace-deps-published && bumpp --commit --no-tag --no-push && pnpm publish --access public && node ../../scripts/tag-package.mjs --package-json package.json --push"
|
|
144
|
+
"release": "pnpm run check:workspace-deps-published && bumpp --all --commit --no-tag --no-push --execute 'pnpm --workspace-root run docs:llms:generate' && pnpm publish --access public && node ../../scripts/tag-package.mjs --package-json package.json --push"
|
|
146
145
|
}
|
|
147
146
|
}
|