@stream-mdx/core 0.1.0 → 0.1.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/CHANGELOG.md +6 -0
- package/README.md +6 -0
- package/dist/types.d.cts +19 -0
- package/dist/types.d.ts +19 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -41,3 +41,9 @@ export function makeConfig(overrides?: Partial<typeof DEFAULT_BACKPRESSURE_CONFI
|
|
|
41
41
|
|
|
42
42
|
- API reference: `docs/PUBLIC_API.md`
|
|
43
43
|
- Security model: `docs/SECURITY_MODEL.md`
|
|
44
|
+
|
|
45
|
+
## Related packages
|
|
46
|
+
|
|
47
|
+
- `@stream-mdx/react` for the React renderer
|
|
48
|
+
- `@stream-mdx/worker` for hosted worker bundles
|
|
49
|
+
- `@stream-mdx/mermaid` for Mermaid diagram rendering (optional)
|
package/dist/types.d.cts
CHANGED
|
@@ -135,6 +135,8 @@ type WorkerIn = {
|
|
|
135
135
|
text: string;
|
|
136
136
|
} | {
|
|
137
137
|
type: "FINALIZE";
|
|
138
|
+
} | {
|
|
139
|
+
type: "DEBUG_STATE";
|
|
138
140
|
} | {
|
|
139
141
|
type: "MDX_COMPILED";
|
|
140
142
|
blockId: string;
|
|
@@ -167,6 +169,23 @@ type WorkerOut = {
|
|
|
167
169
|
} | {
|
|
168
170
|
type: "METRICS";
|
|
169
171
|
metrics: PerformanceMetrics;
|
|
172
|
+
} | {
|
|
173
|
+
type: "DEBUG_STATE";
|
|
174
|
+
state: {
|
|
175
|
+
contentLength: number;
|
|
176
|
+
contentTail: string;
|
|
177
|
+
blockCount: number;
|
|
178
|
+
blockTypeCounts: Record<string, number>;
|
|
179
|
+
lastBlockType?: string;
|
|
180
|
+
lastBlockRange?: {
|
|
181
|
+
from: number;
|
|
182
|
+
to: number;
|
|
183
|
+
};
|
|
184
|
+
lastBlockRawTail?: string;
|
|
185
|
+
hasInlineCodeHeading: boolean;
|
|
186
|
+
hasCodeBlocksHeading: boolean;
|
|
187
|
+
hasMediaHeading: boolean;
|
|
188
|
+
};
|
|
170
189
|
} | {
|
|
171
190
|
type: "ERROR";
|
|
172
191
|
phase: WorkerPhase;
|
package/dist/types.d.ts
CHANGED
|
@@ -135,6 +135,8 @@ type WorkerIn = {
|
|
|
135
135
|
text: string;
|
|
136
136
|
} | {
|
|
137
137
|
type: "FINALIZE";
|
|
138
|
+
} | {
|
|
139
|
+
type: "DEBUG_STATE";
|
|
138
140
|
} | {
|
|
139
141
|
type: "MDX_COMPILED";
|
|
140
142
|
blockId: string;
|
|
@@ -167,6 +169,23 @@ type WorkerOut = {
|
|
|
167
169
|
} | {
|
|
168
170
|
type: "METRICS";
|
|
169
171
|
metrics: PerformanceMetrics;
|
|
172
|
+
} | {
|
|
173
|
+
type: "DEBUG_STATE";
|
|
174
|
+
state: {
|
|
175
|
+
contentLength: number;
|
|
176
|
+
contentTail: string;
|
|
177
|
+
blockCount: number;
|
|
178
|
+
blockTypeCounts: Record<string, number>;
|
|
179
|
+
lastBlockType?: string;
|
|
180
|
+
lastBlockRange?: {
|
|
181
|
+
from: number;
|
|
182
|
+
to: number;
|
|
183
|
+
};
|
|
184
|
+
lastBlockRawTail?: string;
|
|
185
|
+
hasInlineCodeHeading: boolean;
|
|
186
|
+
hasCodeBlocksHeading: boolean;
|
|
187
|
+
hasMediaHeading: boolean;
|
|
188
|
+
};
|
|
170
189
|
} | {
|
|
171
190
|
type: "ERROR";
|
|
172
191
|
phase: WorkerPhase;
|