buildgrid-ui 1.17.0 → 1.17.1
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 +211 -103
- package/dist/buildgrid-ui.css +1 -1
- package/dist/buildgrid-ui.es.js +7645 -8196
- package/dist/buildgrid-ui.umd.js +78 -79
- package/dist/lib/hooks/use-sanitized-html.d.ts +18 -6
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import DOMPurify from 'dompurify';
|
|
2
1
|
export interface UseSanitizedHtmlOptions {
|
|
3
2
|
/**
|
|
4
3
|
* Custom DOMPurify configuration options
|
|
5
4
|
*/
|
|
6
|
-
sanitizeOptions?:
|
|
5
|
+
sanitizeOptions?: any;
|
|
7
6
|
/**
|
|
8
7
|
* Whether to allow all HTML tags and attributes (less secure)
|
|
9
8
|
* @default false
|
|
@@ -31,17 +30,30 @@ export declare const sanitizePresets: {
|
|
|
31
30
|
/**
|
|
32
31
|
* Basic text formatting only (p, br, strong, em, u)
|
|
33
32
|
*/
|
|
34
|
-
basic:
|
|
33
|
+
basic: {
|
|
34
|
+
ALLOWED_TAGS: string[];
|
|
35
|
+
ALLOWED_ATTR: string[];
|
|
36
|
+
};
|
|
35
37
|
/**
|
|
36
38
|
* Rich text with headings and lists
|
|
37
39
|
*/
|
|
38
|
-
rich:
|
|
40
|
+
rich: {
|
|
41
|
+
ALLOWED_TAGS: string[];
|
|
42
|
+
ALLOWED_ATTR: string[];
|
|
43
|
+
};
|
|
39
44
|
/**
|
|
40
45
|
* Full content including links and media
|
|
41
46
|
*/
|
|
42
|
-
full:
|
|
47
|
+
full: {
|
|
48
|
+
ALLOWED_TAGS: string[];
|
|
49
|
+
ALLOWED_ATTR: string[];
|
|
50
|
+
};
|
|
43
51
|
/**
|
|
44
52
|
* Comments and user-generated content (very restrictive)
|
|
45
53
|
*/
|
|
46
|
-
comments:
|
|
54
|
+
comments: {
|
|
55
|
+
ALLOWED_TAGS: string[];
|
|
56
|
+
ALLOWED_ATTR: string[];
|
|
57
|
+
FORBID_ATTR: string[];
|
|
58
|
+
};
|
|
47
59
|
};
|