stream-mdx 0.1.1 → 0.2.0
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 +7 -0
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -78,6 +78,9 @@ export default function App() {
|
|
|
78
78
|
- `tableElements`: override table tags (e.g. Shadcn table wrappers).
|
|
79
79
|
- `htmlElements`: override HTML tag renders (when HTML is enabled).
|
|
80
80
|
- `mdxComponents`: MDX component registry (when MDX compilation is enabled).
|
|
81
|
+
- `caret`: show a streaming caret while blocks are still in-flight.
|
|
82
|
+
- `linkSafety`: intercept link clicks and require confirmation before navigation.
|
|
83
|
+
- `deferHeavyBlocks`: defer heavy blocks (e.g. Mermaid) until in view/idle.
|
|
81
84
|
- `scheduling`: patch scheduler/backpressure knobs.
|
|
82
85
|
|
|
83
86
|
## Plugins
|
|
@@ -97,6 +100,7 @@ Scoped equivalents:
|
|
|
97
100
|
## Addons
|
|
98
101
|
|
|
99
102
|
- `@stream-mdx/mermaid` (optional Mermaid diagram renderer)
|
|
103
|
+
- `@stream-mdx/theme-tailwind` (optional Tailwind theme CSS)
|
|
100
104
|
|
|
101
105
|
Example:
|
|
102
106
|
|
|
@@ -110,6 +114,8 @@ import { MermaidBlock } from "@stream-mdx/mermaid";
|
|
|
110
114
|
## Docs
|
|
111
115
|
|
|
112
116
|
- Docs site: https://kmccleary3301.github.io/stream-mdx/
|
|
117
|
+
- Live demo: https://kmccleary3301.github.io/stream-mdx/demo
|
|
118
|
+
- Showcase: https://kmccleary3301.github.io/stream-mdx/showcase
|
|
113
119
|
- Manual: `docs/COMPREHENSIVE_PROJECT_DOCUMENTATION.md`
|
|
114
120
|
- API: `docs/PUBLIC_API.md`
|
|
115
121
|
- React integration: `docs/REACT_INTEGRATION_GUIDE.md`
|
|
@@ -125,3 +131,4 @@ import { MermaidBlock } from "@stream-mdx/mermaid";
|
|
|
125
131
|
- `stream-mdx/plugins` – plugin registry + helpers
|
|
126
132
|
- `stream-mdx/plugins/*` – common plugin entrypoints
|
|
127
133
|
- `stream-mdx/core` – structured-clone-safe types + perf utilities
|
|
134
|
+
- `@stream-mdx/theme-tailwind` – optional Tailwind theme CSS
|
package/dist/core.d.cts
CHANGED
|
@@ -2,6 +2,8 @@ export * from '@stream-mdx/core';
|
|
|
2
2
|
import '@stream-mdx/react';
|
|
3
3
|
import '@stream-mdx/plugins';
|
|
4
4
|
import '@stream-mdx/worker';
|
|
5
|
+
import '@stream-mdx/worker/mdx-compile';
|
|
6
|
+
import '@stream-mdx/worker/node';
|
|
5
7
|
import '@stream-mdx/plugins/base';
|
|
6
8
|
import '@stream-mdx/plugins/callouts';
|
|
7
9
|
import '@stream-mdx/plugins/document';
|
|
@@ -11,6 +13,4 @@ import '@stream-mdx/plugins/math';
|
|
|
11
13
|
import '@stream-mdx/plugins/mdx';
|
|
12
14
|
import '@stream-mdx/plugins/registry';
|
|
13
15
|
import '@stream-mdx/plugins/tables';
|
|
14
|
-
import '@stream-mdx/worker/mdx-compile';
|
|
15
|
-
import '@stream-mdx/worker/node';
|
|
16
16
|
import '@stream-mdx/plugins/math/renderer';
|
package/dist/core.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from '@stream-mdx/core';
|
|
|
2
2
|
import '@stream-mdx/react';
|
|
3
3
|
import '@stream-mdx/plugins';
|
|
4
4
|
import '@stream-mdx/worker';
|
|
5
|
+
import '@stream-mdx/worker/mdx-compile';
|
|
6
|
+
import '@stream-mdx/worker/node';
|
|
5
7
|
import '@stream-mdx/plugins/base';
|
|
6
8
|
import '@stream-mdx/plugins/callouts';
|
|
7
9
|
import '@stream-mdx/plugins/document';
|
|
@@ -11,6 +13,4 @@ import '@stream-mdx/plugins/math';
|
|
|
11
13
|
import '@stream-mdx/plugins/mdx';
|
|
12
14
|
import '@stream-mdx/plugins/registry';
|
|
13
15
|
import '@stream-mdx/plugins/tables';
|
|
14
|
-
import '@stream-mdx/worker/mdx-compile';
|
|
15
|
-
import '@stream-mdx/worker/node';
|
|
16
16
|
import '@stream-mdx/plugins/math/renderer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-mdx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "StreamMDX convenience package (re-exports @stream-mdx/*).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
"prepack": "npm run build"
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
|
-
"@stream-mdx/core": "0.
|
|
118
|
-
"@stream-mdx/plugins": "0.
|
|
119
|
-
"@stream-mdx/react": "0.
|
|
120
|
-
"@stream-mdx/worker": "0.
|
|
117
|
+
"@stream-mdx/core": "0.2.0",
|
|
118
|
+
"@stream-mdx/plugins": "0.2.0",
|
|
119
|
+
"@stream-mdx/react": "0.2.0",
|
|
120
|
+
"@stream-mdx/worker": "0.2.0"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"react": ">=18.2.0",
|