markstream-octane 0.0.56-beta.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.
- package/README.md +276 -0
- package/dist/client/chunks/languageIconExtended-BZR3DrgI.js +2 -0
- package/dist/client/index.js +2 -0
- package/dist/client/workers/katexRenderer.worker.js +59 -0
- package/dist/client/workers/mermaidParser.worker.js +63 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +845 -0
- package/dist/index.px.css +2 -0
- package/dist/index.tailwind.css +2009 -0
- package/dist/server/index.js +2 -0
- package/dist/server.d.ts +661 -0
- 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 +12 -0
- package/dist/types/components/BlockquoteNode/BlockquoteNode.d.ts +8 -0
- package/dist/types/components/CheckboxNode/CheckboxNode.d.ts +7 -0
- package/dist/types/components/CodeBlockNode/CodeBlockNode.d.ts +14 -0
- package/dist/types/components/CodeBlockNode/HtmlPreviewFrame.d.ts +12 -0
- package/dist/types/components/CodeBlockNode/PreCodeNode.d.ts +3 -0
- package/dist/types/components/CodeBlockNode/monaco.d.ts +2 -0
- package/dist/types/components/CodeBlockNode/monacoThemeRegistry.d.ts +8 -0
- package/dist/types/components/CodeBlockNode/monacoThemeScheduler.d.ts +5 -0
- package/dist/types/components/D2BlockNode/D2BlockNode.d.ts +3 -0
- package/dist/types/components/D2BlockNode/d2.d.ts +18 -0
- package/dist/types/components/D2BlockNode/index.d.ts +3 -0
- package/dist/types/components/DefinitionListNode/DefinitionListNode.d.ts +8 -0
- package/dist/types/components/EmojiNode/EmojiNode.d.ts +8 -0
- package/dist/types/components/EmphasisNode/EmphasisNode.d.ts +6 -0
- package/dist/types/components/FootnoteAnchorNode/FootnoteAnchorNode.d.ts +7 -0
- package/dist/types/components/FootnoteNode/FootnoteNode.d.ts +9 -0
- package/dist/types/components/FootnoteReferenceNode/FootnoteReferenceNode.d.ts +7 -0
- package/dist/types/components/HardBreakNode/HardBreakNode.d.ts +6 -0
- package/dist/types/components/HeadingNode/HeadingNode.d.ts +10 -0
- package/dist/types/components/HighlightNode/HighlightNode.d.ts +6 -0
- package/dist/types/components/HtmlBlockNode/HtmlBlockNode.d.ts +19 -0
- package/dist/types/components/HtmlInlineNode/HtmlInlineNode.d.ts +16 -0
- package/dist/types/components/ImageNode/ImageNode.d.ts +9 -0
- package/dist/types/components/InfographicBlockNode/InfographicBlockNode.d.ts +16 -0
- package/dist/types/components/InfographicBlockNode/height.d.ts +6 -0
- package/dist/types/components/InfographicBlockNode/index.d.ts +3 -0
- package/dist/types/components/InfographicBlockNode/infographic.d.ts +2 -0
- package/dist/types/components/InlineCodeNode/InlineCodeNode.d.ts +7 -0
- package/dist/types/components/InsertNode/InsertNode.d.ts +6 -0
- package/dist/types/components/LinkNode/LinkNode.d.ts +22 -0
- package/dist/types/components/ListItemNode/ListItemNode.d.ts +13 -0
- package/dist/types/components/ListNode/ListNode.d.ts +10 -0
- package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.d.ts +34 -0
- package/dist/types/components/Math/MathBlockNode.d.ts +3 -0
- package/dist/types/components/Math/MathInlineNode.d.ts +3 -0
- package/dist/types/components/Math/katex.d.ts +2 -0
- package/dist/types/components/MathBlockNode/MathBlockNode.d.ts +3 -0
- package/dist/types/components/MathInlineNode/MathInlineNode.d.ts +3 -0
- package/dist/types/components/MermaidBlockNode/MermaidBlockNode.d.ts +16 -0
- package/dist/types/components/MermaidBlockNode/height.d.ts +7 -0
- package/dist/types/components/MermaidBlockNode/index.d.ts +3 -0
- package/dist/types/components/MermaidBlockNode/mermaid.d.ts +23 -0
- package/dist/types/components/NodeRenderer/FallbackComponent.d.ts +6 -0
- package/dist/types/components/NodeRenderer/preloadMonaco.d.ts +2 -0
- package/dist/types/components/NodeRenderer.d.ts +5 -0
- package/dist/types/components/ParagraphNode/ParagraphNode.d.ts +9 -0
- package/dist/types/components/PreCodeNode/PreCodeNode.d.ts +3 -0
- package/dist/types/components/ReferenceNode/ReferenceNode.d.ts +15 -0
- package/dist/types/components/StrikethroughNode/StrikethroughNode.d.ts +6 -0
- package/dist/types/components/StrongNode/StrongNode.d.ts +6 -0
- package/dist/types/components/SubscriptNode/SubscriptNode.d.ts +6 -0
- package/dist/types/components/SuperscriptNode/SuperscriptNode.d.ts +6 -0
- package/dist/types/components/TableNode/TableNode.d.ts +10 -0
- package/dist/types/components/TextNode/TextNode.d.ts +8 -0
- package/dist/types/components/ThematicBreakNode/ThematicBreakNode.d.ts +3 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +16 -0
- package/dist/types/components/VmrContainerNode/VmrContainerNode.d.ts +10 -0
- package/dist/types/context/smoothStreaming.d.ts +2 -0
- package/dist/types/context/streamState.d.ts +25 -0
- package/dist/types/context/viewportPriority.d.ts +18 -0
- package/dist/types/customComponents.d.ts +38 -0
- package/dist/types/hooks/useSmoothMarkdownStream.d.ts +21 -0
- package/dist/types/i18n/useSafeI18n.d.ts +11 -0
- package/dist/types/index.d.ts +71 -0
- package/dist/types/renderers/codeBlockExtraProps.d.ts +5 -0
- package/dist/types/renderers/renderChildren.d.ts +7 -0
- package/dist/types/renderers/renderNode.d.ts +5 -0
- package/dist/types/server-renderer/html.d.ts +2 -0
- package/dist/types/server-renderer/index.d.ts +176 -0
- package/dist/types/server-renderer/katex.d.ts +2 -0
- package/dist/types/server.d.ts +56 -0
- package/dist/types/tailwind-entry.d.ts +3 -0
- package/dist/types/tooltip/singletonTooltip.d.ts +8 -0
- package/dist/types/types/component-props.d.ts +234 -0
- package/dist/types/types/node-component.d.ts +15 -0
- package/dist/types/types/octane.d.ts +12 -0
- package/dist/types/types.d.ts +127 -0
- package/dist/types/utils/customHtmlTag.d.ts +18 -0
- package/dist/types/utils/devEnv.d.ts +2 -0
- package/dist/types/utils/htmlToOctane.d.ts +23 -0
- package/dist/types/utils/languageIcon.d.ts +9 -0
- package/dist/types/utils/languageIconExtended.d.ts +2 -0
- package/dist/types/utils/normalizeKaTeXRenderInput.d.ts +2 -0
- package/dist/types/utils/performanceMonitor.d.ts +79 -0
- package/dist/types/utils/safeRaf.d.ts +3 -0
- package/dist/types/utils/streamingTextState.d.ts +3 -0
- package/dist/types/workers/katexRenderer.worker.d.ts +2 -0
- package/dist/types/workers/katexWorkerClient.d.ts +32 -0
- package/dist/types/workers/mermaidParser.worker.d.ts +2 -0
- package/dist/types/workers/mermaidWorkerClient.d.ts +15 -0
- package/package.json +149 -0
package/package.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "markstream-octane",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.56-beta.1",
|
|
5
|
+
"description": "Octane streaming Markdown renderer for AI chat, LLM token streams, SSE/WebSocket output, incomplete Markdown, long documents, Mermaid, KaTeX, Shiki, Monaco, and custom Octane components.",
|
|
6
|
+
"author": "Simon He",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://markstream.simonhe.me",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/Simon-He95/markstream-vue.git",
|
|
12
|
+
"directory": "packages/markstream-octane"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Simon-He95/markstream-vue/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"octane",
|
|
19
|
+
"markdown",
|
|
20
|
+
"markdown-renderer",
|
|
21
|
+
"streaming-markdown-renderer",
|
|
22
|
+
"octane-markdown",
|
|
23
|
+
"streamdown-alternative",
|
|
24
|
+
"streaming-markdown",
|
|
25
|
+
"ai-markdown-renderer",
|
|
26
|
+
"ai-chat",
|
|
27
|
+
"llm",
|
|
28
|
+
"llm-markdown",
|
|
29
|
+
"llm-streaming",
|
|
30
|
+
"sse",
|
|
31
|
+
"sse-markdown",
|
|
32
|
+
"websocket",
|
|
33
|
+
"websocket-markdown",
|
|
34
|
+
"mermaid",
|
|
35
|
+
"streaming-mermaid",
|
|
36
|
+
"katex",
|
|
37
|
+
"streaming-katex",
|
|
38
|
+
"shiki",
|
|
39
|
+
"monaco",
|
|
40
|
+
"monaco-editor",
|
|
41
|
+
"streaming-code-blocks",
|
|
42
|
+
"large-documents",
|
|
43
|
+
"safe-html",
|
|
44
|
+
"markstream-octane",
|
|
45
|
+
"markstream"
|
|
46
|
+
],
|
|
47
|
+
"sideEffects": [
|
|
48
|
+
"**/*.css"
|
|
49
|
+
],
|
|
50
|
+
"exports": {
|
|
51
|
+
".": {
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"browser": "./dist/client/index.js",
|
|
54
|
+
"node": "./dist/server/index.js",
|
|
55
|
+
"import": "./dist/client/index.js",
|
|
56
|
+
"default": "./dist/client/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./server": {
|
|
59
|
+
"types": "./dist/server.d.ts",
|
|
60
|
+
"node": "./dist/server/index.js",
|
|
61
|
+
"import": "./dist/server/index.js",
|
|
62
|
+
"default": "./dist/server/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./index.css": "./dist/index.css",
|
|
65
|
+
"./index.px.css": "./dist/index.px.css",
|
|
66
|
+
"./index.tailwind.css": "./dist/index.tailwind.css",
|
|
67
|
+
"./tailwind": {
|
|
68
|
+
"types": "./dist/tailwind.d.ts",
|
|
69
|
+
"import": "./dist/tailwind.js",
|
|
70
|
+
"require": "./dist/tailwind.cjs"
|
|
71
|
+
},
|
|
72
|
+
"./workers/katexRenderer.worker": "./dist/client/workers/katexRenderer.worker.js",
|
|
73
|
+
"./workers/mermaidParser.worker": "./dist/client/workers/mermaidParser.worker.js"
|
|
74
|
+
},
|
|
75
|
+
"main": "./dist/server/index.js",
|
|
76
|
+
"module": "./dist/client/index.js",
|
|
77
|
+
"types": "./dist/index.d.ts",
|
|
78
|
+
"files": [
|
|
79
|
+
"dist"
|
|
80
|
+
],
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"@antv/infographic": "^0.2.3",
|
|
83
|
+
"@terrastruct/d2": ">=0.1.33",
|
|
84
|
+
"katex": ">=0.16.22",
|
|
85
|
+
"mermaid": ">=11",
|
|
86
|
+
"octane": "^0.1.21",
|
|
87
|
+
"stream-markdown": ">=0.0.16",
|
|
88
|
+
"stream-monaco": ">=0.0.48"
|
|
89
|
+
},
|
|
90
|
+
"peerDependenciesMeta": {
|
|
91
|
+
"@antv/infographic": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@terrastruct/d2": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"katex": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"mermaid": {
|
|
101
|
+
"optional": true
|
|
102
|
+
},
|
|
103
|
+
"stream-markdown": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"stream-monaco": {
|
|
107
|
+
"optional": true
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"dependencies": {
|
|
111
|
+
"@floating-ui/dom": "^1.8.0",
|
|
112
|
+
"clsx": "^2.1.1",
|
|
113
|
+
"markstream-core": "1.0.3",
|
|
114
|
+
"stream-markdown-parser": "1.1.9"
|
|
115
|
+
},
|
|
116
|
+
"devDependencies": {
|
|
117
|
+
"@octanejs/testing-library": "^0.1.18",
|
|
118
|
+
"@testing-library/dom": "^10.4.1",
|
|
119
|
+
"@tsrx/core": "^0.1.56",
|
|
120
|
+
"@tsrx/typescript-plugin": "^0.3.118",
|
|
121
|
+
"@types/react": "^19.2.14",
|
|
122
|
+
"autoprefixer": "^10.5.4",
|
|
123
|
+
"jsdom": "^24.1.3",
|
|
124
|
+
"octane": "^0.1.21",
|
|
125
|
+
"rollup": "^3.30.0",
|
|
126
|
+
"rollup-plugin-dts": "^5.3.1",
|
|
127
|
+
"rollup-plugin-visualizer": "^6.0.11",
|
|
128
|
+
"tailwindcss": "^3.4.19",
|
|
129
|
+
"typescript": "^5.9.3",
|
|
130
|
+
"vite": "^8.0.16",
|
|
131
|
+
"vite-plugin-dts": "^4.5.4"
|
|
132
|
+
},
|
|
133
|
+
"scripts": {
|
|
134
|
+
"dev": "vite dev",
|
|
135
|
+
"build": "pnpm --dir ../markdown-parser build && pnpm --dir ../markstream-core build && vite build --mode npm-client && vite build --mode npm-server && node ./scripts/finalize-runtime-build.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/check-built-package.mjs",
|
|
136
|
+
"build:analyze": "ANALYZE=true pnpm build",
|
|
137
|
+
"build:dts": "node ./scripts/generate-tsrx-types.mjs --out-dir dist/types && rollup -c ./scripts/rollup.dts.config.mjs",
|
|
138
|
+
"check:exports": "node ./scripts/check-built-package.mjs",
|
|
139
|
+
"preview": "vite preview",
|
|
140
|
+
"test": "pnpm run test:client && pnpm run test:ssr",
|
|
141
|
+
"test:client": "vitest run --config vitest.config.ts",
|
|
142
|
+
"test:ssr": "vitest run --config vitest.ssr.config.ts",
|
|
143
|
+
"typecheck": "tsrx-tsc --noEmit -p tsconfig.json",
|
|
144
|
+
"size:check": "node ../../scripts/check-package-size.mjs",
|
|
145
|
+
"check:core-published": "node ../../scripts/check-core-published.mjs --package-json package.json --core-package-json ../markstream-core/package.json",
|
|
146
|
+
"check:workspace-deps-published": "node ../../scripts/check-workspace-deps-published.mjs --package-json package.json",
|
|
147
|
+
"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/dist-tag.mjs) && node ../../scripts/tag-package.mjs --package-json package.json --push"
|
|
148
|
+
}
|
|
149
|
+
}
|