@covalent/flavored-markdown 4.0.0 → 4.1.1-beta.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/README.md +4 -151
- package/covalent-flavored-markdown.d.ts +2 -2
- package/esm2020/covalent-flavored-markdown.mjs +5 -0
- package/esm2020/lib/cfm-list/cfm-list.component.mjs +60 -0
- package/esm2020/lib/flavored-markdown-loader/flavored-markdown-loader.component.mjs +104 -0
- package/esm2020/lib/flavored-markdown.component.mjs +492 -0
- package/esm2020/lib/flavored-markdown.module.mjs +69 -0
- package/esm2020/public_api.mjs +4 -0
- package/lib/cfm-list/cfm-list.component.d.ts +11 -0
- package/{flavored-markdown-loader → lib/flavored-markdown-loader}/flavored-markdown-loader.component.d.ts +8 -5
- package/{flavored-markdown.component.d.ts → lib/flavored-markdown.component.d.ts} +11 -2
- package/lib/flavored-markdown.module.d.ts +18 -0
- package/package.json +15 -46
- package/public_api.d.ts +3 -3
- package/_flavored-markdown-theme.scss +0 -21
- package/bundles/covalent-flavored-markdown.umd.js +0 -1310
- package/bundles/covalent-flavored-markdown.umd.js.map +0 -1
- package/bundles/covalent-flavored-markdown.umd.min.js +0 -16
- package/bundles/covalent-flavored-markdown.umd.min.js.map +0 -1
- package/cfm-list/cfm-list.component.d.ts +0 -8
- package/cfm-list/cfm-list.component.scss +0 -0
- package/covalent-flavored-markdown.metadata.json +0 -1
- package/esm2015/cfm-list/cfm-list.component.js +0 -39
- package/esm2015/covalent-flavored-markdown.js +0 -11
- package/esm2015/flavored-markdown-loader/flavored-markdown-loader.component.js +0 -159
- package/esm2015/flavored-markdown.component.js +0 -754
- package/esm2015/flavored-markdown.module.js +0 -45
- package/esm2015/index.js +0 -7
- package/esm2015/public_api.js +0 -9
- package/fesm2015/covalent-flavored-markdown.js +0 -1005
- package/fesm2015/covalent-flavored-markdown.js.map +0 -1
- package/flavored-markdown-loader/flavored-markdown-loader.component.scss +0 -26
- package/flavored-markdown.component.scss +0 -31
- package/flavored-markdown.module.d.ts +0 -2
- package/index.d.ts +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface IFlavoredListItem {
|
|
3
|
+
line: string;
|
|
4
|
+
sublines?: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare class TdFlavoredListComponent {
|
|
7
|
+
lines: IFlavoredListItem[];
|
|
8
|
+
dense: boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdFlavoredListComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdFlavoredListComponent, "td-cfm-list", never, { "lines": "lines"; "dense": "dense"; }, {}, never, never>;
|
|
11
|
+
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, SimpleChanges, OnChanges, EventEmitter } from '@angu
|
|
|
2
2
|
import { TdMarkdownLoaderService } from '@covalent/markdown';
|
|
3
3
|
import { ITdFlavoredMarkdownButtonClickEvent } from '../flavored-markdown.component';
|
|
4
4
|
import { ICopyCodeTooltips } from '@covalent/highlight';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TdFlavoredMarkdownLoaderComponent implements OnChanges {
|
|
6
7
|
private _changeDetectorRef;
|
|
7
8
|
private _markdownUrlLoaderService;
|
|
@@ -9,30 +10,30 @@ export declare class TdFlavoredMarkdownLoaderComponent implements OnChanges {
|
|
|
9
10
|
* url: string
|
|
10
11
|
* The url of the markdown file.
|
|
11
12
|
*/
|
|
12
|
-
url
|
|
13
|
+
url?: string;
|
|
13
14
|
/**
|
|
14
15
|
* httpOptions: object
|
|
15
16
|
* HTTP options that can be part of the request.
|
|
16
17
|
*/
|
|
17
|
-
httpOptions
|
|
18
|
+
httpOptions?: object;
|
|
18
19
|
/**
|
|
19
20
|
* anchor: string
|
|
20
21
|
* Anchor to jump to.
|
|
21
22
|
*/
|
|
22
|
-
anchor
|
|
23
|
+
anchor?: string;
|
|
23
24
|
/**
|
|
24
25
|
* copyCodeToClipboard?: boolean
|
|
25
26
|
*
|
|
26
27
|
* Display copy button on code snippets to copy code to clipboard.
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
29
|
-
copyCodeToClipboard
|
|
30
|
+
copyCodeToClipboard?: boolean | undefined;
|
|
30
31
|
/**
|
|
31
32
|
* copyCodeTooltips?: ICopyCodeTooltips
|
|
32
33
|
*
|
|
33
34
|
* Tooltips for copy button to copy and upon copying.
|
|
34
35
|
*/
|
|
35
|
-
copyCodeTooltips
|
|
36
|
+
copyCodeTooltips?: ICopyCodeTooltips;
|
|
36
37
|
/**
|
|
37
38
|
* contentReady: void
|
|
38
39
|
* Emitted when markdown rendering is finished.
|
|
@@ -49,4 +50,6 @@ export declare class TdFlavoredMarkdownLoaderComponent implements OnChanges {
|
|
|
49
50
|
constructor(_changeDetectorRef: ChangeDetectorRef, _markdownUrlLoaderService: TdMarkdownLoaderService);
|
|
50
51
|
ngOnChanges(changes: SimpleChanges): void;
|
|
51
52
|
loadMarkdown(): Promise<void>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdFlavoredMarkdownLoaderComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdFlavoredMarkdownLoaderComponent, "td-flavored-markdown-loader", never, { "url": "url"; "httpOptions": "httpOptions"; "anchor": "anchor"; "copyCodeToClipboard": "copyCodeToClipboard"; "copyCodeTooltips": "copyCodeTooltips"; }, { "contentReady": "contentReady"; "loadFailed": "loadFailed"; "buttonClicked": "buttonClicked"; }, never, never>;
|
|
52
55
|
}
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, Renderer2, ChangeDetectorRef, EventEmitter, ViewContaine
|
|
|
2
2
|
import { MatSort } from '@angular/material/sort';
|
|
3
3
|
import { MatTableDataSource } from '@angular/material/table';
|
|
4
4
|
import { ICopyCodeTooltips } from '@covalent/highlight';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export interface ITdFlavoredMarkdownButtonClickEvent {
|
|
6
7
|
text: string;
|
|
7
8
|
data: string;
|
|
@@ -19,6 +20,8 @@ export declare class TdFlavoredMarkdownTableComponent implements OnInit, AfterVi
|
|
|
19
20
|
dataSource: MatTableDataSource<unknown>;
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
ngAfterViewInit(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdFlavoredMarkdownTableComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdFlavoredMarkdownTableComponent, "ng-component", never, { "columnDefs": "columnDefs"; "data": "data"; }, {}, never, never>;
|
|
22
25
|
}
|
|
23
26
|
export declare class TdFlavoredMarkdownButtonComponent {
|
|
24
27
|
display: string;
|
|
@@ -26,12 +29,16 @@ export declare class TdFlavoredMarkdownButtonComponent {
|
|
|
26
29
|
data: string;
|
|
27
30
|
clicked: EventEmitter<ITdFlavoredMarkdownButtonClickEvent>;
|
|
28
31
|
emitClick(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdFlavoredMarkdownButtonComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdFlavoredMarkdownButtonComponent, "ng-component", never, { "text": "text"; "data": "data"; }, { "clicked": "clicked"; }, never, never>;
|
|
29
34
|
}
|
|
30
35
|
export declare class TdFlavoredMarkdownContainerDirective {
|
|
31
36
|
viewContainerRef: ViewContainerRef;
|
|
32
37
|
private _renderer;
|
|
33
38
|
constructor(viewContainerRef: ViewContainerRef, _renderer: Renderer2);
|
|
34
39
|
clear(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdFlavoredMarkdownContainerDirective, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdFlavoredMarkdownContainerDirective, "[tdFlavoredMarkdownContainer]", never, {}, {}, never>;
|
|
35
42
|
}
|
|
36
43
|
export declare type IReplacerFunc<T> = (componentRef: ComponentRef<T>, ...args: any[]) => void;
|
|
37
44
|
export declare class TdFlavoredMarkdownComponent implements AfterViewInit, OnChanges {
|
|
@@ -81,13 +88,13 @@ export declare class TdFlavoredMarkdownComponent implements AfterViewInit, OnCha
|
|
|
81
88
|
* Display copy button on code snippets to copy code to clipboard.
|
|
82
89
|
*
|
|
83
90
|
*/
|
|
84
|
-
copyCodeToClipboard
|
|
91
|
+
copyCodeToClipboard?: boolean | undefined;
|
|
85
92
|
/**
|
|
86
93
|
* copyCodeTooltips?: ICopyCodeTooltips
|
|
87
94
|
*
|
|
88
95
|
* Tooltips for copy button to copy and upon copying.
|
|
89
96
|
*/
|
|
90
|
-
copyCodeTooltips
|
|
97
|
+
copyCodeTooltips?: ICopyCodeTooltips;
|
|
91
98
|
/**
|
|
92
99
|
* contentReady?: function
|
|
93
100
|
* Event emitted after the markdown content rendering is finished.
|
|
@@ -112,4 +119,6 @@ export declare class TdFlavoredMarkdownComponent implements AfterViewInit, OnCha
|
|
|
112
119
|
private _replaceCodeBlocks;
|
|
113
120
|
private _replaceTables;
|
|
114
121
|
private _replaceLists;
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdFlavoredMarkdownComponent, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdFlavoredMarkdownComponent, "td-flavored-markdown", never, { "content": "content"; "simpleLineBreaks": "simpleLineBreaks"; "hostedUrl": "hostedUrl"; "anchor": "anchor"; "copyCodeToClipboard": "copyCodeToClipboard"; "copyCodeTooltips": "copyCodeTooltips"; }, { "contentReady": "contentReady"; "buttonClicked": "buttonClicked"; }, never, ["*"]>;
|
|
115
124
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./cfm-list/cfm-list.component";
|
|
3
|
+
import * as i2 from "./flavored-markdown.component";
|
|
4
|
+
import * as i3 from "./flavored-markdown-loader/flavored-markdown-loader.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/material/checkbox";
|
|
7
|
+
import * as i6 from "@angular/material/list";
|
|
8
|
+
import * as i7 from "@angular/material/progress-bar";
|
|
9
|
+
import * as i8 from "@covalent/highlight";
|
|
10
|
+
import * as i9 from "@covalent/markdown";
|
|
11
|
+
import * as i10 from "@angular/material/button";
|
|
12
|
+
import * as i11 from "@angular/material/table";
|
|
13
|
+
import * as i12 from "@angular/material/sort";
|
|
14
|
+
export declare class CovalentFlavoredMarkdownModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentFlavoredMarkdownModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentFlavoredMarkdownModule, [typeof i1.TdFlavoredListComponent, typeof i2.TdFlavoredMarkdownComponent, typeof i2.TdFlavoredMarkdownContainerDirective, typeof i3.TdFlavoredMarkdownLoaderComponent, typeof i2.TdFlavoredMarkdownButtonComponent, typeof i2.TdFlavoredMarkdownTableComponent], [typeof i4.CommonModule, typeof i5.MatCheckboxModule, typeof i6.MatListModule, typeof i7.MatProgressBarModule, typeof i8.CovalentHighlightModule, typeof i9.CovalentMarkdownModule, typeof i10.MatButtonModule, typeof i11.MatTableModule, typeof i12.MatSortModule], [typeof i2.TdFlavoredMarkdownComponent, typeof i3.TdFlavoredMarkdownLoaderComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentFlavoredMarkdownModule>;
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,54 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@covalent/flavored-markdown",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"angular",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "https://github.com/teradata/covalent.git"
|
|
17
|
-
},
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/teradata/covalent/issues"
|
|
3
|
+
"version": "4.1.1-beta.3",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^13.2.0",
|
|
6
|
+
"@angular/core": "^13.2.0",
|
|
7
|
+
"@covalent/markdown": "4.1.1-beta.3",
|
|
8
|
+
"showdown": "^2.0.0-alpha",
|
|
9
|
+
"@angular/platform-browser": "~13.2.0",
|
|
10
|
+
"@covalent/highlight": "4.1.1-beta.3",
|
|
11
|
+
"highlight.js": "^11.4.0",
|
|
12
|
+
"@angular/cdk": "^13.2.1",
|
|
13
|
+
"@angular/material": "^13.2.1"
|
|
20
14
|
},
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"author": "Teradata UX",
|
|
23
|
-
"contributors": [
|
|
24
|
-
"Kyle Ledbetter <kyle.ledbetter@teradata.com>",
|
|
25
|
-
"Richa Vyas <richa.vyas@teradata.com>",
|
|
26
|
-
"Ed Morales <eduardo.morales@teradata.com>",
|
|
27
|
-
"Jason Weaver <jason.weaver@teradata.com>",
|
|
28
|
-
"Jeremy Wilken <jeremy.wilken@teradata.com>",
|
|
29
|
-
"Jeremy Smartt <jeremy.smartt@teradata.com>",
|
|
30
|
-
"Steven Ov <steven.ov@teradata.com>"
|
|
31
|
-
],
|
|
32
15
|
"dependencies": {
|
|
33
|
-
"
|
|
34
|
-
"showdown": "^1.9.1",
|
|
35
|
-
"tslib": "^2.0.0"
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"@angular/common": "^9.0.0 || ^10.0.0-0 || ^11.0.0-0",
|
|
39
|
-
"@angular/core": "^9.0.0 || ^10.0.0-0 || ^11.0.0-0",
|
|
40
|
-
"@angular/cdk": "^9.0.0 || ^10.0.0-0 || ^11.0.0-0",
|
|
41
|
-
"@angular/material": "^9.0.0 || ^10.0.0-0 || ^11.0.0-0",
|
|
42
|
-
"@covalent/core": "^4.0.0",
|
|
43
|
-
"@covalent/highlight": "^4.0.0",
|
|
44
|
-
"@covalent/markdown": "^4.0.0"
|
|
16
|
+
"tslib": "^2.3.0"
|
|
45
17
|
},
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"esm2015": "esm2015/covalent-flavored-markdown.js",
|
|
50
|
-
"fesm2015": "fesm2015/covalent-flavored-markdown.js",
|
|
18
|
+
"module": "esm2020/covalent-flavored-markdown.mjs",
|
|
19
|
+
"es2020": "esm2020/covalent-flavored-markdown.mjs",
|
|
20
|
+
"esm2020": "esm2020/covalent-flavored-markdown.mjs",
|
|
51
21
|
"typings": "covalent-flavored-markdown.d.ts",
|
|
52
|
-
"metadata": "covalent-flavored-markdown.metadata.json",
|
|
53
22
|
"sideEffects": false
|
|
54
23
|
}
|
package/public_api.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './flavored-markdown.component';
|
|
2
|
-
export * from './flavored-markdown.module';
|
|
3
|
-
export * from './flavored-markdown-loader/flavored-markdown-loader.component';
|
|
1
|
+
export * from './lib/flavored-markdown.component';
|
|
2
|
+
export * from './lib/flavored-markdown.module';
|
|
3
|
+
export * from './lib/flavored-markdown-loader/flavored-markdown-loader.component';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@mixin covalent-flavored-markdown-theme($theme) {
|
|
2
|
-
$primary: map-get($theme, primary);
|
|
3
|
-
$accent: map-get($theme, accent);
|
|
4
|
-
$warn: map-get($theme, warn);
|
|
5
|
-
$foreground: map-get($theme, foreground);
|
|
6
|
-
$background: map-get($theme, background);
|
|
7
|
-
td-flavored-markdown {
|
|
8
|
-
:not(pre) > code {
|
|
9
|
-
background: #1e1e21;
|
|
10
|
-
color: mat-color($mat-grey, 50);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.mat-checkbox-disabled {
|
|
14
|
-
label.mat-checkbox-layout {
|
|
15
|
-
.mat-checkbox-label {
|
|
16
|
-
color: currentColor;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|