@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/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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matechat/ng",
3
- "version": "17.2.0-alpha.1",
3
+ "version": "17.2.0-alpha.2",
4
4
  "license": "MIT",
5
5
  "description": "前端智能化场景解决方案UI库,轻松构建你的AI应用。",
6
6
  "keywords": [