@stream-mdx/react 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/dist/components/index.cjs +497 -163
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.mjs +496 -163
- package/dist/{index-Bt1opGCs.d.cts → index-D0akq48G.d.cts} +24 -2
- package/dist/{index-Bt1opGCs.d.ts → index-D0akq48G.d.ts} +24 -2
- package/dist/index.cjs +3761 -2043
- package/dist/index.d.cts +43 -5
- package/dist/index.d.ts +43 -5
- package/dist/index.mjs +3985 -2265
- package/dist/mdx-client.cjs +60 -18
- package/dist/mdx-client.d.cts +11 -0
- package/dist/mdx-client.d.ts +11 -0
- package/dist/mdx-client.mjs +60 -18
- package/dist/mdx-coordinator.cjs +60 -18
- package/dist/mdx-coordinator.mjs +60 -18
- package/dist/renderer/node-views.cjs +466 -133
- package/dist/renderer/node-views.d.cts +1 -1
- package/dist/renderer/node-views.d.ts +1 -1
- package/dist/renderer/node-views.mjs +409 -68
- package/dist/renderer/patch-commit-scheduler.cjs +68 -7
- package/dist/renderer/patch-commit-scheduler.d.cts +6 -5
- package/dist/renderer/patch-commit-scheduler.d.ts +6 -5
- package/dist/renderer/patch-commit-scheduler.mjs +68 -7
- package/dist/renderer/store.cjs +481 -56
- package/dist/renderer/store.d.cts +2 -1
- package/dist/renderer/store.d.ts +2 -1
- package/dist/renderer/store.mjs +479 -47
- package/dist/renderer/virtualized-code.cjs +8 -2
- package/dist/renderer/virtualized-code.d.cts +4 -0
- package/dist/renderer/virtualized-code.d.ts +4 -0
- package/dist/renderer/virtualized-code.mjs +8 -2
- package/dist/renderer.cjs +3193 -2208
- package/dist/renderer.d.cts +4 -2
- package/dist/renderer.d.ts +4 -2
- package/dist/renderer.mjs +2950 -1957
- package/dist/streaming-markdown-Ch6PwjAa.d.cts +154 -0
- package/dist/streaming-markdown-tca-Mf8D.d.ts +154 -0
- package/dist/streaming-markdown.cjs +3944 -2248
- package/dist/streaming-markdown.d.cts +6 -95
- package/dist/streaming-markdown.d.ts +6 -95
- package/dist/streaming-markdown.mjs +3956 -2252
- package/dist/utils/inline-html.d.cts +1 -1
- package/dist/utils/inline-html.d.ts +1 -1
- package/package.json +3 -3
package/dist/renderer.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as Renderer,
|
|
1
|
+
import { R as Renderer, a as RendererConfig, B as BlockComponents, I as InlineComponents, C as ComponentRegistry, b as CodeHighlightRangeRequest } from './index-D0akq48G.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';
|
|
5
|
-
import { PatchFlushResult } from './renderer/patch-commit-scheduler.cjs';
|
|
5
|
+
import { PatchFlushResult, PatchCommitSchedulerOptions } from './renderer/patch-commit-scheduler.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Main renderer class
|
|
@@ -72,9 +72,11 @@ declare class MarkdownRenderer implements Renderer {
|
|
|
72
72
|
restart(): void;
|
|
73
73
|
finalize(): void;
|
|
74
74
|
setCredits(value: number): void;
|
|
75
|
+
requestCodeHighlightRange(request: CodeHighlightRangeRequest): void;
|
|
75
76
|
getPatchHistory(limit?: number): ReadonlyArray<PatchFlushResult>;
|
|
76
77
|
setPatchHistoryLimit(limit: number): void;
|
|
77
78
|
clearPatchHistory(): void;
|
|
79
|
+
setSchedulingOptions(options: PatchCommitSchedulerOptions): void;
|
|
78
80
|
getPendingQueueSize(): number;
|
|
79
81
|
/**
|
|
80
82
|
* Handle scheduled patch flush results from the commit scheduler.
|
package/dist/renderer.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as Renderer,
|
|
1
|
+
import { R as Renderer, a as RendererConfig, B as BlockComponents, I as InlineComponents, C as ComponentRegistry, b as CodeHighlightRangeRequest } from './index-D0akq48G.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';
|
|
5
|
-
import { PatchFlushResult } from './renderer/patch-commit-scheduler.js';
|
|
5
|
+
import { PatchFlushResult, PatchCommitSchedulerOptions } from './renderer/patch-commit-scheduler.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Main renderer class
|
|
@@ -72,9 +72,11 @@ declare class MarkdownRenderer implements Renderer {
|
|
|
72
72
|
restart(): void;
|
|
73
73
|
finalize(): void;
|
|
74
74
|
setCredits(value: number): void;
|
|
75
|
+
requestCodeHighlightRange(request: CodeHighlightRangeRequest): void;
|
|
75
76
|
getPatchHistory(limit?: number): ReadonlyArray<PatchFlushResult>;
|
|
76
77
|
setPatchHistoryLimit(limit: number): void;
|
|
77
78
|
clearPatchHistory(): void;
|
|
79
|
+
setSchedulingOptions(options: PatchCommitSchedulerOptions): void;
|
|
78
80
|
getPendingQueueSize(): number;
|
|
79
81
|
/**
|
|
80
82
|
* Handle scheduled patch flush results from the commit scheduler.
|