@matechat/ng 17.2.0-alpha.1 → 17.2.0-alpha.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/fesm2022/matechat-ng.mjs +25 -7
- package/fesm2022/matechat-ng.mjs.map +1 -1
- package/index.d.ts +7 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -433,6 +433,12 @@ interface ASTNode {
|
|
|
433
433
|
* @returns {Array} 符合条件的节点列表
|
|
434
434
|
*/
|
|
435
435
|
declare function findCodeBlockWrappers(vnodes: any[]): any[];
|
|
436
|
+
/**
|
|
437
|
+
* 清空Dom节点的所有子节点
|
|
438
|
+
* @param {HTMLElement} element - 需要清空的Dom节点
|
|
439
|
+
* @returns {void}
|
|
440
|
+
*/
|
|
441
|
+
declare function clearElementChildren(element: HTMLElement): void;
|
|
436
442
|
|
|
437
443
|
declare class MDCardService {
|
|
438
444
|
private xssWhiteList;
|
|
@@ -501,6 +507,7 @@ declare class MarkdownCardComponent extends BaseComponent<MarkdownCardFoundation
|
|
|
501
507
|
matchHtmlToken: (token: Token, stack: Token[]) => void;
|
|
502
508
|
isValidTagName: (tagName: string | undefined) => boolean;
|
|
503
509
|
findCodeBlockWrappers: typeof findCodeBlockWrappers;
|
|
510
|
+
clearElementChildren: typeof clearElementChildren;
|
|
504
511
|
};
|
|
505
512
|
mdCardService: MDCardService;
|
|
506
513
|
constructor(renderer: Renderer2, cdr: ChangeDetectorRef);
|