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.
@@ -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?: DOMPurify.Config;
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: DOMPurify.Config;
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: DOMPurify.Config;
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: DOMPurify.Config;
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: DOMPurify.Config;
54
+ comments: {
55
+ ALLOWED_TAGS: string[];
56
+ ALLOWED_ATTR: string[];
57
+ FORBID_ATTR: string[];
58
+ };
47
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildgrid-ui",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "homepage": "http://adrianomaringolo.github.io/buildgrid-ui",
5
5
  "publishConfig": {
6
6
  "access": "public"