markstream-angular 2.0.0 → 2.0.2
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/index.css
CHANGED
|
@@ -1505,7 +1505,15 @@ body > div[id^="dmermaid-"] {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
1507
|
.markstream-angular .infographic-render {
|
|
1508
|
+
position: relative;
|
|
1508
1509
|
width: 100%;
|
|
1509
1510
|
min-height: 320px;
|
|
1510
1511
|
overflow: auto;
|
|
1511
1512
|
}
|
|
1513
|
+
|
|
1514
|
+
.markstream-angular .infographic-pending-source {
|
|
1515
|
+
position: absolute;
|
|
1516
|
+
inset: 0;
|
|
1517
|
+
overflow: auto;
|
|
1518
|
+
margin: 0;
|
|
1519
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ interface CodeBlockOptions {
|
|
|
38
38
|
disableLineNumbers?: boolean;
|
|
39
39
|
overflow?: 'scroll' | 'wrap';
|
|
40
40
|
disableVirtualizationBuffers?: boolean;
|
|
41
|
-
preferredHighlighter?: 'shiki-js' | 'shiki-wasm';
|
|
42
41
|
useCSSClasses?: boolean;
|
|
43
42
|
useTokenTransformer?: boolean;
|
|
44
43
|
tokenizeMaxLineLength?: number;
|
|
@@ -289,6 +288,12 @@ declare class CodeBlockNodeComponent implements AfterViewInit, OnChanges, OnDest
|
|
|
289
288
|
private copyTimer;
|
|
290
289
|
private deferredHeightSyncRaf;
|
|
291
290
|
private lastCodeBlockOptions?;
|
|
291
|
+
private hasEditorInput;
|
|
292
|
+
private lastEditorIsDiff;
|
|
293
|
+
private lastEditorOriginalCode;
|
|
294
|
+
private lastEditorResolvedCode;
|
|
295
|
+
private lastEditorLanguage;
|
|
296
|
+
private lastEditorShowLoadingPlaceholder;
|
|
292
297
|
private lastRuntimeHostKey;
|
|
293
298
|
get t(): (key: string) => string;
|
|
294
299
|
get mergedProps(): {
|
|
@@ -613,6 +618,7 @@ declare class InfographicBlockNodeComponent implements AfterViewInit, OnChanges,
|
|
|
613
618
|
private viewReady;
|
|
614
619
|
private destroyed;
|
|
615
620
|
private renderToken;
|
|
621
|
+
private renderScheduled;
|
|
616
622
|
private copyTimer;
|
|
617
623
|
private infographicInstance;
|
|
618
624
|
get mergedProps(): {
|
|
@@ -658,6 +664,7 @@ declare class InfographicBlockNodeComponent implements AfterViewInit, OnChanges,
|
|
|
658
664
|
toggleCollapsed(): void;
|
|
659
665
|
adjustZoom(delta: number): void;
|
|
660
666
|
resetZoom(): void;
|
|
667
|
+
private scheduleInfographicRender;
|
|
661
668
|
private renderInfographic;
|
|
662
669
|
private destroyInfographic;
|
|
663
670
|
private syncModalPreview;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-angular",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "Angular 20+ standalone streaming Markdown renderer for AI chat, LLM token streams, SSE/WebSocket output, incomplete Markdown, Mermaid, KaTeX, stream-diffs powered code blocks, and safe Angular component rendering.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@floating-ui/dom": "^1.8.0",
|
|
97
|
-
"markstream-core": "2.0.
|
|
98
|
-
"stream-markdown-parser": "1.2.
|
|
97
|
+
"markstream-core": "2.0.2",
|
|
98
|
+
"stream-markdown-parser": "1.2.10"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@angular/common": "^20.3.26",
|