@life-cockpit/angular-ui-kit 1.11.1 → 1.11.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@life-cockpit/angular-ui-kit",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "description": "Life Cockpit Design System - Angular UI component library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,8 +21,14 @@
21
21
  "@angular/forms": "^21.0.0",
22
22
  "@angular/platform-browser": "^21.0.0",
23
23
  "@angular/router": "^21.0.0",
24
+ "mermaid": "^11.0.0",
24
25
  "rxjs": "^7.8.0"
25
26
  },
27
+ "peerDependenciesMeta": {
28
+ "mermaid": {
29
+ "optional": true
30
+ }
31
+ },
26
32
  "sideEffects": [
27
33
  "**/*.css",
28
34
  "**/*.scss"
@@ -6261,7 +6261,7 @@ interface MarkdownRendered {
6261
6261
  headings: MarkdownHeading[];
6262
6262
  }
6263
6263
  interface RenderPart {
6264
- type: 'html' | 'code';
6264
+ type: 'html' | 'code' | 'mermaid';
6265
6265
  index: number;
6266
6266
  safeHtml?: SafeHtml;
6267
6267
  code?: string;
@@ -6283,6 +6283,9 @@ declare class MarkdownComponent implements OnDestroy {
6283
6283
  private readonly sanitizer;
6284
6284
  private readonly http;
6285
6285
  private httpSub?;
6286
+ private mermaidApiPromise?;
6287
+ private mermaidInitialized;
6288
+ private mermaidRenderRun;
6286
6289
  /** URL or path to load markdown from */
6287
6290
  readonly src: _angular_core.InputSignal<string | undefined>;
6288
6291
  /** Raw markdown string */
@@ -6310,6 +6313,8 @@ declare class MarkdownComponent implements OnDestroy {
6310
6313
  /** Computed render parts (HTML chunks + code blocks interleaved) */
6311
6314
  protected renderParts: _angular_core.Signal<RenderPart[]>;
6312
6315
  protected containerClasses: _angular_core.Signal<string>;
6316
+ protected mermaidSvgs: _angular_core.WritableSignal<Record<number, SafeHtml>>;
6317
+ protected mermaidErrors: _angular_core.WritableSignal<Record<number, string>>;
6313
6318
  private headings;
6314
6319
  constructor();
6315
6320
  ngOnDestroy(): void;
@@ -6319,6 +6324,10 @@ declare class MarkdownComponent implements OnDestroy {
6319
6324
  private parseMarkdown;
6320
6325
  private parseTables;
6321
6326
  private escapeHtml;
6327
+ protected mermaidSvgFor(index: number): SafeHtml | null;
6328
+ protected mermaidErrorFor(index: number): string | null;
6329
+ private renderMermaidParts;
6330
+ private getMermaidApi;
6322
6331
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MarkdownComponent, never>;
6323
6332
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MarkdownComponent, "lc-markdown", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "linkTarget": { "alias": "linkTarget"; "required": false; "isSignal": true; }; "sanitize": { "alias": "sanitize"; "required": false; "isSignal": true; }; "syntaxHighlight": { "alias": "syntaxHighlight"; "required": false; "isSignal": true; }; "showHeadingAnchors": { "alias": "showHeadingAnchors"; "required": false; "isSignal": true; }; "baseUrl": { "alias": "baseUrl"; "required": false; "isSignal": true; }; }, { "linkClick": "linkClick"; "rendered": "rendered"; }, never, never, true, never>;
6324
6333
  }