@umbraco-cms/backoffice 14.0.0--preview004-fe149e14 → 14.0.0--preview004-2834a107

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.
@@ -1,2 +1,21 @@
1
- import * as sanitizeHtml from 'sanitize-html';
1
+ /// <reference types="react" />
2
+ /// <reference types="trusted-types" />
3
+ import DOMPurify from 'dompurify';
4
+ declare const sanitizeHtml: {
5
+ (source: string | Node): string;
6
+ (source: string | Node, config: DOMPurify.Config & {
7
+ RETURN_TRUSTED_TYPE: true;
8
+ }): TrustedHTML;
9
+ (source: string | Node, config: DOMPurify.Config & {
10
+ RETURN_DOM_FRAGMENT?: false | undefined;
11
+ RETURN_DOM?: false | undefined;
12
+ }): string;
13
+ (source: string | Node, config: DOMPurify.Config & {
14
+ RETURN_DOM_FRAGMENT: true;
15
+ }): DocumentFragment;
16
+ (source: string | Node, config: DOMPurify.Config & {
17
+ RETURN_DOM: true;
18
+ }): HTMLElement;
19
+ (source: string | Node, config: DOMPurify.Config): string | HTMLElement | DocumentFragment;
20
+ };
2
21
  export { sanitizeHtml };