@stream-mdx/react 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/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/{index-D0akq48G.d.cts → index-D7px9jug.d.cts} +3 -0
- package/dist/{index-D0akq48G.d.ts → index-D7px9jug.d.ts} +3 -0
- package/dist/index.cjs +6 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +6 -0
- package/dist/renderer/node-views.d.cts +1 -1
- package/dist/renderer/node-views.d.ts +1 -1
- package/dist/renderer.cjs +6 -0
- package/dist/renderer.d.cts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.mjs +6 -0
- package/dist/{streaming-markdown-Ch6PwjAa.d.cts → streaming-markdown-DSC4L0xR.d.cts} +4 -1
- package/dist/{streaming-markdown-tca-Mf8D.d.ts → streaming-markdown-Dp1IDgMT.d.ts} +4 -1
- package/dist/streaming-markdown.cjs +6 -0
- package/dist/streaming-markdown.d.cts +2 -2
- package/dist/streaming-markdown.d.ts +2 -2
- package/dist/streaming-markdown.mjs +6 -0
- package/dist/utils/inline-html.d.cts +1 -1
- package/dist/utils/inline-html.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@stream-mdx/core';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { C as ComponentRegistry, D as DefaultLinkSafetyModal, L as LinkSafetyModalProps, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from '../index-
|
|
3
|
+
export { C as ComponentRegistry, D as DefaultLinkSafetyModal, L as LinkSafetyModalProps, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from '../index-D7px9jug.cjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@stream-mdx/core';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { C as ComponentRegistry, D as DefaultLinkSafetyModal, L as LinkSafetyModalProps, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from '../index-
|
|
3
|
+
export { C as ComponentRegistry, D as DefaultLinkSafetyModal, L as LinkSafetyModalProps, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from '../index-D7px9jug.js';
|
|
@@ -131,6 +131,9 @@ interface RendererConfig {
|
|
|
131
131
|
codeHighlighting?: CodeHighlightingMode;
|
|
132
132
|
outputMode?: CodeHighlightOutputMode;
|
|
133
133
|
liveCodeHighlighting?: boolean;
|
|
134
|
+
liveTokenization?: boolean;
|
|
135
|
+
emitHighlightTokens?: boolean;
|
|
136
|
+
emitDiffBlocks?: boolean;
|
|
134
137
|
};
|
|
135
138
|
performance?: {
|
|
136
139
|
frameBudgetMs?: number;
|
|
@@ -131,6 +131,9 @@ interface RendererConfig {
|
|
|
131
131
|
codeHighlighting?: CodeHighlightingMode;
|
|
132
132
|
outputMode?: CodeHighlightOutputMode;
|
|
133
133
|
liveCodeHighlighting?: boolean;
|
|
134
|
+
liveTokenization?: boolean;
|
|
135
|
+
emitHighlightTokens?: boolean;
|
|
136
|
+
emitDiffBlocks?: boolean;
|
|
134
137
|
};
|
|
135
138
|
performance?: {
|
|
136
139
|
frameBudgetMs?: number;
|
package/dist/index.cjs
CHANGED
|
@@ -5379,6 +5379,9 @@ var MarkdownRenderer = class {
|
|
|
5379
5379
|
const mdxComponentNames = getMdxComponentNames(this.config);
|
|
5380
5380
|
const codeHighlighting = this.config.plugins?.codeHighlighting;
|
|
5381
5381
|
const outputMode = this.config.plugins?.outputMode;
|
|
5382
|
+
const liveTokenization = this.config.plugins?.liveTokenization;
|
|
5383
|
+
const emitHighlightTokens = this.config.plugins?.emitHighlightTokens;
|
|
5384
|
+
const emitDiffBlocks = this.config.plugins?.emitDiffBlocks;
|
|
5382
5385
|
const docPlugins = {
|
|
5383
5386
|
footnotes: this.config.plugins?.footnotes ?? true,
|
|
5384
5387
|
html: this.config.plugins?.html ?? true,
|
|
@@ -5390,6 +5393,9 @@ var MarkdownRenderer = class {
|
|
|
5390
5393
|
...codeHighlighting !== void 0 ? { codeHighlighting } : {},
|
|
5391
5394
|
...outputMode !== void 0 ? { outputMode } : {},
|
|
5392
5395
|
liveCodeHighlighting: this.config.plugins?.liveCodeHighlighting ?? false,
|
|
5396
|
+
...liveTokenization !== void 0 ? { liveTokenization } : {},
|
|
5397
|
+
...emitHighlightTokens !== void 0 ? { emitHighlightTokens } : {},
|
|
5398
|
+
...emitDiffBlocks !== void 0 ? { emitDiffBlocks } : {},
|
|
5393
5399
|
...mdxComponentNames ? { mdxComponentNames } : {}
|
|
5394
5400
|
};
|
|
5395
5401
|
this.worker.postMessage({
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { B as BlockComponents, C as ComponentRegistry, D as DefaultLinkSafetyModal, H as HtmlElements, I as InlineComponents, d as InlineHtmlRenderer, c as InlineHtmlRendererMap, L as LinkSafetyModalProps, R as Renderer, a as RendererConfig, T as TableElements, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from './index-
|
|
1
|
+
export { B as BlockComponents, C as ComponentRegistry, D as DefaultLinkSafetyModal, H as HtmlElements, I as InlineComponents, d as InlineHtmlRenderer, c as InlineHtmlRendererMap, L as LinkSafetyModalProps, R as Renderer, a as RendererConfig, T as TableElements, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from './index-D7px9jug.cjs';
|
|
2
2
|
export { CompiledMDX, MDXClient, MDXComponentFactory, getMDXClient, getMDXComponentFactory, registerInlineMdxModule, registerMDXComponents } from './mdx-client.cjs';
|
|
3
3
|
export { useMdxCoordinator } from './mdx-coordinator.cjs';
|
|
4
4
|
import { CompiledMdxModule } from '@stream-mdx/core';
|
|
5
5
|
export { CoalesceConfig, CoalescingMetrics, DEFAULT_COALESCE_CONFIG, coalescePatches, coalescePatchesLinear, coalescePatchesQuadratic, coalescePatchesWithMetrics } from '@stream-mdx/core';
|
|
6
|
-
import { D as DeferredRenderConfig } from './streaming-markdown-
|
|
7
|
-
export { a as DeferredRenderContext, L as LinkSafetyCheck, f as LinkSafetyConfig, M as MdxHydrationOptions, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-
|
|
6
|
+
import { D as DeferredRenderConfig } from './streaming-markdown-DSC4L0xR.cjs';
|
|
7
|
+
export { a as DeferredRenderContext, L as LinkSafetyCheck, f as LinkSafetyConfig, M as MdxHydrationOptions, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-DSC4L0xR.cjs';
|
|
8
8
|
export { DisplayMathWrapper, renderDisplayMathWithHtml } from './math/display-wrapper.cjs';
|
|
9
9
|
export { MarkdownBlocksRenderer, MarkdownRenderer, MarkdownRenderer2, createMarkdownRenderer, useMarkdownRenderer } from './renderer.cjs';
|
|
10
10
|
export { useRendererBlocks, useRendererChildren, useRendererNode } from './renderer/hooks.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { B as BlockComponents, C as ComponentRegistry, D as DefaultLinkSafetyModal, H as HtmlElements, I as InlineComponents, d as InlineHtmlRenderer, c as InlineHtmlRendererMap, L as LinkSafetyModalProps, R as Renderer, a as RendererConfig, T as TableElements, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from './index-
|
|
1
|
+
export { B as BlockComponents, C as ComponentRegistry, D as DefaultLinkSafetyModal, H as HtmlElements, I as InlineComponents, d as InlineHtmlRenderer, c as InlineHtmlRendererMap, L as LinkSafetyModalProps, R as Renderer, a as RendererConfig, T as TableElements, f as defaultBlockComponents, e as defaultInlineComponents, m as mapHtmlToReact, r as renderInlineNodes, g as renderParagraphMixedSegments } from './index-D7px9jug.js';
|
|
2
2
|
export { CompiledMDX, MDXClient, MDXComponentFactory, getMDXClient, getMDXComponentFactory, registerInlineMdxModule, registerMDXComponents } from './mdx-client.js';
|
|
3
3
|
export { useMdxCoordinator } from './mdx-coordinator.js';
|
|
4
4
|
import { CompiledMdxModule } from '@stream-mdx/core';
|
|
5
5
|
export { CoalesceConfig, CoalescingMetrics, DEFAULT_COALESCE_CONFIG, coalescePatches, coalescePatchesLinear, coalescePatchesQuadratic, coalescePatchesWithMetrics } from '@stream-mdx/core';
|
|
6
|
-
import { D as DeferredRenderConfig } from './streaming-markdown-
|
|
7
|
-
export { a as DeferredRenderContext, L as LinkSafetyCheck, f as LinkSafetyConfig, M as MdxHydrationOptions, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-
|
|
6
|
+
import { D as DeferredRenderConfig } from './streaming-markdown-Dp1IDgMT.js';
|
|
7
|
+
export { a as DeferredRenderContext, L as LinkSafetyCheck, f as LinkSafetyConfig, M as MdxHydrationOptions, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-Dp1IDgMT.js';
|
|
8
8
|
export { DisplayMathWrapper, renderDisplayMathWithHtml } from './math/display-wrapper.js';
|
|
9
9
|
export { MarkdownBlocksRenderer, MarkdownRenderer, MarkdownRenderer2, createMarkdownRenderer, useMarkdownRenderer } from './renderer.js';
|
|
10
10
|
export { useRendererBlocks, useRendererChildren, useRendererNode } from './renderer/hooks.js';
|
package/dist/index.mjs
CHANGED
|
@@ -5323,6 +5323,9 @@ var MarkdownRenderer = class {
|
|
|
5323
5323
|
const mdxComponentNames = getMdxComponentNames(this.config);
|
|
5324
5324
|
const codeHighlighting = this.config.plugins?.codeHighlighting;
|
|
5325
5325
|
const outputMode = this.config.plugins?.outputMode;
|
|
5326
|
+
const liveTokenization = this.config.plugins?.liveTokenization;
|
|
5327
|
+
const emitHighlightTokens = this.config.plugins?.emitHighlightTokens;
|
|
5328
|
+
const emitDiffBlocks = this.config.plugins?.emitDiffBlocks;
|
|
5326
5329
|
const docPlugins = {
|
|
5327
5330
|
footnotes: this.config.plugins?.footnotes ?? true,
|
|
5328
5331
|
html: this.config.plugins?.html ?? true,
|
|
@@ -5334,6 +5337,9 @@ var MarkdownRenderer = class {
|
|
|
5334
5337
|
...codeHighlighting !== void 0 ? { codeHighlighting } : {},
|
|
5335
5338
|
...outputMode !== void 0 ? { outputMode } : {},
|
|
5336
5339
|
liveCodeHighlighting: this.config.plugins?.liveCodeHighlighting ?? false,
|
|
5340
|
+
...liveTokenization !== void 0 ? { liveTokenization } : {},
|
|
5341
|
+
...emitHighlightTokens !== void 0 ? { emitHighlightTokens } : {},
|
|
5342
|
+
...emitDiffBlocks !== void 0 ? { emitDiffBlocks } : {},
|
|
5337
5343
|
...mdxComponentNames ? { mdxComponentNames } : {}
|
|
5338
5344
|
};
|
|
5339
5345
|
this.worker.postMessage({
|
package/dist/renderer.cjs
CHANGED
|
@@ -4745,6 +4745,9 @@ var MarkdownRenderer = class {
|
|
|
4745
4745
|
const mdxComponentNames = getMdxComponentNames(this.config);
|
|
4746
4746
|
const codeHighlighting = this.config.plugins?.codeHighlighting;
|
|
4747
4747
|
const outputMode = this.config.plugins?.outputMode;
|
|
4748
|
+
const liveTokenization = this.config.plugins?.liveTokenization;
|
|
4749
|
+
const emitHighlightTokens = this.config.plugins?.emitHighlightTokens;
|
|
4750
|
+
const emitDiffBlocks = this.config.plugins?.emitDiffBlocks;
|
|
4748
4751
|
const docPlugins = {
|
|
4749
4752
|
footnotes: this.config.plugins?.footnotes ?? true,
|
|
4750
4753
|
html: this.config.plugins?.html ?? true,
|
|
@@ -4756,6 +4759,9 @@ var MarkdownRenderer = class {
|
|
|
4756
4759
|
...codeHighlighting !== void 0 ? { codeHighlighting } : {},
|
|
4757
4760
|
...outputMode !== void 0 ? { outputMode } : {},
|
|
4758
4761
|
liveCodeHighlighting: this.config.plugins?.liveCodeHighlighting ?? false,
|
|
4762
|
+
...liveTokenization !== void 0 ? { liveTokenization } : {},
|
|
4763
|
+
...emitHighlightTokens !== void 0 ? { emitHighlightTokens } : {},
|
|
4764
|
+
...emitDiffBlocks !== void 0 ? { emitDiffBlocks } : {},
|
|
4759
4765
|
...mdxComponentNames ? { mdxComponentNames } : {}
|
|
4760
4766
|
};
|
|
4761
4767
|
this.worker.postMessage({
|
package/dist/renderer.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as Renderer, a as RendererConfig, B as BlockComponents, I as InlineComponents, C as ComponentRegistry, b as CodeHighlightRangeRequest } from './index-
|
|
1
|
+
import { R as Renderer, a as RendererConfig, B as BlockComponents, I as InlineComponents, C as ComponentRegistry, b as CodeHighlightRangeRequest } from './index-D7px9jug.cjs';
|
|
2
2
|
import { Block, PatchMetrics, WorkerOut } from '@stream-mdx/core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { RendererStore, createRendererStore } from './renderer/store.cjs';
|
package/dist/renderer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as Renderer, a as RendererConfig, B as BlockComponents, I as InlineComponents, C as ComponentRegistry, b as CodeHighlightRangeRequest } from './index-
|
|
1
|
+
import { R as Renderer, a as RendererConfig, B as BlockComponents, I as InlineComponents, C as ComponentRegistry, b as CodeHighlightRangeRequest } from './index-D7px9jug.js';
|
|
2
2
|
import { Block, PatchMetrics, WorkerOut } from '@stream-mdx/core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { RendererStore, createRendererStore } from './renderer/store.js';
|
package/dist/renderer.mjs
CHANGED
|
@@ -4728,6 +4728,9 @@ var MarkdownRenderer = class {
|
|
|
4728
4728
|
const mdxComponentNames = getMdxComponentNames(this.config);
|
|
4729
4729
|
const codeHighlighting = this.config.plugins?.codeHighlighting;
|
|
4730
4730
|
const outputMode = this.config.plugins?.outputMode;
|
|
4731
|
+
const liveTokenization = this.config.plugins?.liveTokenization;
|
|
4732
|
+
const emitHighlightTokens = this.config.plugins?.emitHighlightTokens;
|
|
4733
|
+
const emitDiffBlocks = this.config.plugins?.emitDiffBlocks;
|
|
4731
4734
|
const docPlugins = {
|
|
4732
4735
|
footnotes: this.config.plugins?.footnotes ?? true,
|
|
4733
4736
|
html: this.config.plugins?.html ?? true,
|
|
@@ -4739,6 +4742,9 @@ var MarkdownRenderer = class {
|
|
|
4739
4742
|
...codeHighlighting !== void 0 ? { codeHighlighting } : {},
|
|
4740
4743
|
...outputMode !== void 0 ? { outputMode } : {},
|
|
4741
4744
|
liveCodeHighlighting: this.config.plugins?.liveCodeHighlighting ?? false,
|
|
4745
|
+
...liveTokenization !== void 0 ? { liveTokenization } : {},
|
|
4746
|
+
...emitHighlightTokens !== void 0 ? { emitHighlightTokens } : {},
|
|
4747
|
+
...emitDiffBlocks !== void 0 ? { emitDiffBlocks } : {},
|
|
4742
4748
|
...mdxComponentNames ? { mdxComponentNames } : {}
|
|
4743
4749
|
};
|
|
4744
4750
|
this.worker.postMessage({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PatchMetrics, FormatAnticipationConfig, CodeHighlightingMode, Block } from '@stream-mdx/core';
|
|
3
|
-
import { L as LinkSafetyModalProps, B as BlockComponents, T as TableElements, H as HtmlElements, I as InlineComponents } from './index-
|
|
3
|
+
import { L as LinkSafetyModalProps, B as BlockComponents, T as TableElements, H as HtmlElements, I as InlineComponents } from './index-D7px9jug.cjs';
|
|
4
4
|
import { AdaptiveBudgetState, PatchFlushResult } from './renderer/patch-commit-scheduler.cjs';
|
|
5
5
|
import { RendererStore } from './renderer/store.cjs';
|
|
6
6
|
|
|
@@ -68,6 +68,9 @@ interface StreamingFeatureFlags {
|
|
|
68
68
|
formatAnticipation?: FormatAnticipationConfig;
|
|
69
69
|
codeHighlighting?: CodeHighlightingMode;
|
|
70
70
|
liveCodeHighlighting?: boolean;
|
|
71
|
+
liveTokenization?: boolean;
|
|
72
|
+
emitHighlightTokens?: boolean;
|
|
73
|
+
emitDiffBlocks?: boolean;
|
|
71
74
|
}
|
|
72
75
|
/**
|
|
73
76
|
* Metrics emitted after each flush (high-priority + low-priority batches).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PatchMetrics, FormatAnticipationConfig, CodeHighlightingMode, Block } from '@stream-mdx/core';
|
|
3
|
-
import { L as LinkSafetyModalProps, B as BlockComponents, T as TableElements, H as HtmlElements, I as InlineComponents } from './index-
|
|
3
|
+
import { L as LinkSafetyModalProps, B as BlockComponents, T as TableElements, H as HtmlElements, I as InlineComponents } from './index-D7px9jug.js';
|
|
4
4
|
import { AdaptiveBudgetState, PatchFlushResult } from './renderer/patch-commit-scheduler.js';
|
|
5
5
|
import { RendererStore } from './renderer/store.js';
|
|
6
6
|
|
|
@@ -68,6 +68,9 @@ interface StreamingFeatureFlags {
|
|
|
68
68
|
formatAnticipation?: FormatAnticipationConfig;
|
|
69
69
|
codeHighlighting?: CodeHighlightingMode;
|
|
70
70
|
liveCodeHighlighting?: boolean;
|
|
71
|
+
liveTokenization?: boolean;
|
|
72
|
+
emitHighlightTokens?: boolean;
|
|
73
|
+
emitDiffBlocks?: boolean;
|
|
71
74
|
}
|
|
72
75
|
/**
|
|
73
76
|
* Metrics emitted after each flush (high-priority + low-priority batches).
|
|
@@ -5000,6 +5000,9 @@ var MarkdownRenderer = class {
|
|
|
5000
5000
|
const mdxComponentNames = getMdxComponentNames(this.config);
|
|
5001
5001
|
const codeHighlighting = this.config.plugins?.codeHighlighting;
|
|
5002
5002
|
const outputMode = this.config.plugins?.outputMode;
|
|
5003
|
+
const liveTokenization = this.config.plugins?.liveTokenization;
|
|
5004
|
+
const emitHighlightTokens = this.config.plugins?.emitHighlightTokens;
|
|
5005
|
+
const emitDiffBlocks = this.config.plugins?.emitDiffBlocks;
|
|
5003
5006
|
const docPlugins = {
|
|
5004
5007
|
footnotes: this.config.plugins?.footnotes ?? true,
|
|
5005
5008
|
html: this.config.plugins?.html ?? true,
|
|
@@ -5011,6 +5014,9 @@ var MarkdownRenderer = class {
|
|
|
5011
5014
|
...codeHighlighting !== void 0 ? { codeHighlighting } : {},
|
|
5012
5015
|
...outputMode !== void 0 ? { outputMode } : {},
|
|
5013
5016
|
liveCodeHighlighting: this.config.plugins?.liveCodeHighlighting ?? false,
|
|
5017
|
+
...liveTokenization !== void 0 ? { liveTokenization } : {},
|
|
5018
|
+
...emitHighlightTokens !== void 0 ? { emitHighlightTokens } : {},
|
|
5019
|
+
...emitDiffBlocks !== void 0 ? { emitDiffBlocks } : {},
|
|
5014
5020
|
...mdxComponentNames ? { mdxComponentNames } : {}
|
|
5015
5021
|
};
|
|
5016
5022
|
this.worker.postMessage({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '@stream-mdx/core';
|
|
3
|
-
import './index-
|
|
4
|
-
export { L as LinkSafetyCheck, f as LinkSafetyConfig, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-
|
|
3
|
+
import './index-D7px9jug.cjs';
|
|
4
|
+
export { L as LinkSafetyCheck, f as LinkSafetyConfig, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-DSC4L0xR.cjs';
|
|
5
5
|
import './renderer/patch-commit-scheduler.cjs';
|
|
6
6
|
import './renderer/store.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '@stream-mdx/core';
|
|
3
|
-
import './index-
|
|
4
|
-
export { L as LinkSafetyCheck, f as LinkSafetyConfig, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-
|
|
3
|
+
import './index-D7px9jug.js';
|
|
4
|
+
export { L as LinkSafetyCheck, f as LinkSafetyConfig, R as RendererMetrics, c as RendererStateSnapshot, e as StreamingCaret, b as StreamingFeatureFlags, h as StreamingMarkdown, d as StreamingMarkdownHandle, g as StreamingMarkdownProps, S as StreamingSchedulerOptions } from './streaming-markdown-Dp1IDgMT.js';
|
|
5
5
|
import './renderer/patch-commit-scheduler.js';
|
|
6
6
|
import './renderer/store.js';
|
|
@@ -4987,6 +4987,9 @@ var MarkdownRenderer = class {
|
|
|
4987
4987
|
const mdxComponentNames = getMdxComponentNames(this.config);
|
|
4988
4988
|
const codeHighlighting = this.config.plugins?.codeHighlighting;
|
|
4989
4989
|
const outputMode = this.config.plugins?.outputMode;
|
|
4990
|
+
const liveTokenization = this.config.plugins?.liveTokenization;
|
|
4991
|
+
const emitHighlightTokens = this.config.plugins?.emitHighlightTokens;
|
|
4992
|
+
const emitDiffBlocks = this.config.plugins?.emitDiffBlocks;
|
|
4990
4993
|
const docPlugins = {
|
|
4991
4994
|
footnotes: this.config.plugins?.footnotes ?? true,
|
|
4992
4995
|
html: this.config.plugins?.html ?? true,
|
|
@@ -4998,6 +5001,9 @@ var MarkdownRenderer = class {
|
|
|
4998
5001
|
...codeHighlighting !== void 0 ? { codeHighlighting } : {},
|
|
4999
5002
|
...outputMode !== void 0 ? { outputMode } : {},
|
|
5000
5003
|
liveCodeHighlighting: this.config.plugins?.liveCodeHighlighting ?? false,
|
|
5004
|
+
...liveTokenization !== void 0 ? { liveTokenization } : {},
|
|
5005
|
+
...emitHighlightTokens !== void 0 ? { emitHighlightTokens } : {},
|
|
5006
|
+
...emitDiffBlocks !== void 0 ? { emitDiffBlocks } : {},
|
|
5001
5007
|
...mdxComponentNames ? { mdxComponentNames } : {}
|
|
5002
5008
|
};
|
|
5003
5009
|
this.worker.postMessage({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-mdx/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "React renderer, scheduler, and worker wiring for the Streaming Markdown V2 pipeline",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"prepack": "npm run build"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@stream-mdx/core": "0.
|
|
89
|
-
"@stream-mdx/worker": "0.
|
|
88
|
+
"@stream-mdx/core": "0.3.0",
|
|
89
|
+
"@stream-mdx/worker": "0.3.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"jsdom": "^26.0.0"
|