stream-mdx 0.2.0 → 0.3.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 CHANGED
@@ -101,6 +101,7 @@ Scoped equivalents:
101
101
 
102
102
  - `@stream-mdx/mermaid` (optional Mermaid diagram renderer)
103
103
  - `@stream-mdx/theme-tailwind` (optional Tailwind theme CSS)
104
+ - `@stream-mdx/tui` + `@stream-mdx/protocol` (terminal/CLI helpers)
104
105
 
105
106
  Example:
106
107
 
@@ -111,6 +112,13 @@ import { MermaidBlock } from "@stream-mdx/mermaid";
111
112
  <StreamingMarkdown text={content} components={{ mermaid: MermaidBlock }} />;
112
113
  ```
113
114
 
115
+ ## Terminal / TUI
116
+
117
+ If you're building a terminal UI, use:
118
+
119
+ - `@stream-mdx/protocol` for stable event/type contracts
120
+ - `@stream-mdx/tui` for NDJSON helpers and a snapshot store for applying patches
121
+
114
122
  ## Docs
115
123
 
116
124
  - Docs site: https://kmccleary3301.github.io/stream-mdx/
package/dist/core.d.cts CHANGED
@@ -2,8 +2,6 @@ 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';
7
5
  import '@stream-mdx/plugins/base';
8
6
  import '@stream-mdx/plugins/callouts';
9
7
  import '@stream-mdx/plugins/document';
@@ -13,4 +11,6 @@ import '@stream-mdx/plugins/math';
13
11
  import '@stream-mdx/plugins/mdx';
14
12
  import '@stream-mdx/plugins/registry';
15
13
  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,8 +2,6 @@ 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';
7
5
  import '@stream-mdx/plugins/base';
8
6
  import '@stream-mdx/plugins/callouts';
9
7
  import '@stream-mdx/plugins/document';
@@ -13,4 +11,6 @@ import '@stream-mdx/plugins/math';
13
11
  import '@stream-mdx/plugins/mdx';
14
12
  import '@stream-mdx/plugins/registry';
15
13
  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.2.0",
3
+ "version": "0.3.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.2.0",
118
- "@stream-mdx/plugins": "0.2.0",
119
- "@stream-mdx/react": "0.2.0",
120
- "@stream-mdx/worker": "0.2.0"
117
+ "@stream-mdx/core": "0.3.0",
118
+ "@stream-mdx/plugins": "0.3.0",
119
+ "@stream-mdx/react": "0.3.0",
120
+ "@stream-mdx/worker": "0.3.0"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "react": ">=18.2.0",