@ferrlabs/ui-ng 1.46.1 → 1.47.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ferrlabs/ui-ng",
3
- "version": "1.46.1",
3
+ "version": "1.47.0",
4
4
  "description": "FerrLabs design system: Angular 22 components (standalone, signals, zoneless), themed by the tokens of @ferrlabs/ui-foundation.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "homepage": "https://github.com/FerrLabs/UI#readme",
@@ -23,6 +23,10 @@
23
23
  "./docs/styles.css": {
24
24
  "default": "./docs/styles.css"
25
25
  },
26
+ "./markdown": {
27
+ "types": "./types/ferrlabs-ui-ng-markdown.d.ts",
28
+ "default": "./fesm2022/ferrlabs-ui-ng-markdown.mjs"
29
+ },
26
30
  "./package.json": {
27
31
  "default": "./package.json"
28
32
  }
@@ -33,11 +37,23 @@
33
37
  "@angular/core": "^22.0.0",
34
38
  "@angular/forms": "^22.0.0",
35
39
  "@angular/platform-browser": "^22.0.0",
36
- "@ferrlabs/ui-foundation": "^5.5.0"
40
+ "@ferrlabs/ui-foundation": "^5.5.0",
41
+ "marked": "^18.0.0",
42
+ "marked-highlight": "^2.2.0",
43
+ "prismjs": "^1.29.0"
37
44
  },
38
45
  "peerDependenciesMeta": {
39
46
  "@ferrlabs/ui-foundation": {
40
47
  "optional": true
48
+ },
49
+ "marked": {
50
+ "optional": true
51
+ },
52
+ "marked-highlight": {
53
+ "optional": true
54
+ },
55
+ "prismjs": {
56
+ "optional": true
41
57
  }
42
58
  },
43
59
  "dependencies": {
@@ -0,0 +1,39 @@
1
+ import * as i0 from "@angular/core";
2
+ import { OnDestroy } from "@angular/core";
3
+ export declare class CodeComponent implements OnDestroy {
4
+ readonly code: import("@angular/core").InputSignal<string>;
5
+ readonly language: import("@angular/core").InputSignal<string | undefined>;
6
+ private readonly document;
7
+ private resetTimer;
8
+ protected readonly html: import("@angular/core").Signal<string>;
9
+ protected readonly label: import("@angular/core").Signal<string>;
10
+ protected readonly copied: import("@angular/core").WritableSignal<boolean>;
11
+ protected copy(): Promise<void>;
12
+ ngOnDestroy(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<CodeComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<CodeComponent, "flr-code", never, {
15
+ "code": {
16
+ "alias": "code";
17
+ "required": true;
18
+ "isSignal": true;
19
+ };
20
+ "language": {
21
+ "alias": "language";
22
+ "required": false;
23
+ "isSignal": true;
24
+ };
25
+ }, {}, never, never, true, never>;
26
+ }
27
+ export declare class MarkdownComponent {
28
+ readonly source: import("@angular/core").InputSignal<string>;
29
+ protected readonly html: import("@angular/core").Signal<string>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownComponent, "flr-markdown", never, {
32
+ "source": {
33
+ "alias": "source";
34
+ "required": false;
35
+ "isSignal": true;
36
+ };
37
+ }, {}, never, never, true, never>;
38
+ }
39
+ //# sourceMappingURL=ferrlabs-ui-ng-markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ferrlabs-ui-ng-markdown.d.ts","names":[],"sources":["../../markdown/code.component.ts","../../markdown/markdown.component.ts"],"mappings":";;qBAuBa,yBAAyB;WAC3B,8BAAI;WACJ,kCAAQ;mBAEA;UACT;qBAEW,8BAAI;qBACJ,+BAAK;qBACL,gCAAM;YAET,QAAQ;EAaxB;SAxBW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAa;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;qBCNb;WACF,gCAAM;qBAEI,8BAAI;SAHZ,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAiB;MAAA;MAAA;MAAA"}