@brett_lamy/docstream 0.5.0 → 0.5.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/package.json +5 -1
- package/src/streamdown.tsx +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brett_lamy/docstream",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "GitBook-aware readonly markdown and AI stream renderer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"types": "./src/streamdown.tsx",
|
|
31
31
|
"import": "./src/streamdown.tsx"
|
|
32
32
|
},
|
|
33
|
+
"./reference": {
|
|
34
|
+
"types": "./src/docs/reference.tsx",
|
|
35
|
+
"import": "./src/docs/reference.tsx"
|
|
36
|
+
},
|
|
33
37
|
"./assets": {
|
|
34
38
|
"types": "./src/assets.ts",
|
|
35
39
|
"import": "./src/assets.ts"
|
package/src/streamdown.tsx
CHANGED
|
@@ -2,6 +2,11 @@ import { useMemo } from "react"
|
|
|
2
2
|
import { DocsRenderer } from "./docs/DocsRenderer"
|
|
3
3
|
import { parseMarkdown, trimPartialInlineToken } from "./gitbook/parse"
|
|
4
4
|
|
|
5
|
+
// Re-exported so markdown-only consumers of ./streamdown can wire chip
|
|
6
|
+
// click handling without importing the heavy root entry.
|
|
7
|
+
export { CitationSources, DocstreamRefContext, InlineReference } from "./docs/reference"
|
|
8
|
+
export type { DocstreamRefContextValue } from "./docs/reference"
|
|
9
|
+
|
|
5
10
|
export interface GitbookStreamdownProps {
|
|
6
11
|
children?: string
|
|
7
12
|
className?: string
|