markstream-angular 2.0.17 → 2.0.19
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.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ interface CodeBlockPreviewPayload {
|
|
|
88
88
|
id: string;
|
|
89
89
|
}
|
|
90
90
|
type NodeRendererCodeBlockProps = Partial<{
|
|
91
|
+
clipboardWriter: (text: string) => void | Promise<void>;
|
|
91
92
|
stream: boolean;
|
|
92
93
|
theme: CodeBlockThemeProp;
|
|
93
94
|
darkTheme: CodeBlockTheme;
|
|
@@ -267,6 +268,7 @@ declare class CodeBlockNodeComponent implements AfterViewInit, OnChanges, OnDest
|
|
|
267
268
|
node: AngularRenderableNode;
|
|
268
269
|
context?: AngularRenderContext;
|
|
269
270
|
codeBlockOptions?: CodeBlockOptions;
|
|
271
|
+
clipboardWriter?: NodeRendererCodeBlockProps['clipboardWriter'];
|
|
270
272
|
props?: Record<string, any>;
|
|
271
273
|
useFallback: boolean;
|
|
272
274
|
copied: boolean;
|
|
@@ -298,6 +300,7 @@ declare class CodeBlockNodeComponent implements AfterViewInit, OnChanges, OnDest
|
|
|
298
300
|
get t(): (key: string) => string;
|
|
299
301
|
get mergedProps(): {
|
|
300
302
|
[x: string]: any;
|
|
303
|
+
clipboardWriter?: (text: string) => void | Promise<void>;
|
|
301
304
|
stream?: boolean;
|
|
302
305
|
theme?: markstream_angular.CodeBlockThemeProp;
|
|
303
306
|
darkTheme?: CodeBlockTheme;
|
|
@@ -393,7 +396,7 @@ declare class CodeBlockNodeComponent implements AfterViewInit, OnChanges, OnDest
|
|
|
393
396
|
private resolveCssSize;
|
|
394
397
|
private copyUsingTextarea;
|
|
395
398
|
static ɵfac: i0.ɵɵFactoryDeclaration<CodeBlockNodeComponent, never>;
|
|
396
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CodeBlockNodeComponent, "markstream-angular-code-block-node", never, { "node": { "alias": "node"; "required": true; }; "context": { "alias": "context"; "required": false; }; "codeBlockOptions": { "alias": "codeBlockOptions"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
|
|
399
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CodeBlockNodeComponent, "markstream-angular-code-block-node", never, { "node": { "alias": "node"; "required": true; }; "context": { "alias": "context"; "required": false; }; "codeBlockOptions": { "alias": "codeBlockOptions"; "required": false; }; "clipboardWriter": { "alias": "clipboardWriter"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
|
|
397
400
|
}
|
|
398
401
|
|
|
399
402
|
declare class HtmlPreviewFrameComponent {
|
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.19",
|
|
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
|
-
"
|
|
98
|
-
"
|
|
97
|
+
"markstream-core": "2.0.19",
|
|
98
|
+
"stream-markdown-parser": "1.2.20"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@angular/common": "^20.3.26",
|