@gitlab/ui 66.37.0 → 67.1.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ # [67.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v67.0.0...v67.1.0) (2023-10-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * **color:** Add utility classes used in top header ([6d3e4cf](https://gitlab.com/gitlab-org/gitlab-ui/commit/6d3e4cfab9f78dfbfd81b1678fde6d0733fb769e))
7
+
8
+ # [67.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v66.37.0...v67.0.0) (2023-10-27)
9
+
10
+
11
+ ### Features
12
+
13
+ * **SafeHtml:** disallow potentially dangerous tags ([25926ab](https://gitlab.com/gitlab-org/gitlab-ui/commit/25926ab418ffbbbe657a6a1485d01c13368e2a67))
14
+
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ * **SafeHtml:** This change improves safe-html defense
19
+ by adding style, mystlye and form tags to the forbidden
20
+ list.
21
+
1
22
  # [66.37.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v66.36.1...v66.37.0) (2023-10-25)
2
23
 
3
24
 
@@ -1,5 +1,6 @@
1
1
  // See https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1421#note_617098438
2
2
  // for more details
3
3
  const forbiddenDataAttrs = ['data-remote', 'data-url', 'data-type', 'data-method', 'data-disable-with', 'data-disabled', 'data-disable', 'data-turbo'];
4
+ const forbiddenTags = ['style', 'mstyle', 'form'];
4
5
 
5
- export { forbiddenDataAttrs };
6
+ export { forbiddenDataAttrs, forbiddenTags };
@@ -1,5 +1,5 @@
1
1
  import DOMPurify from 'dompurify';
2
- import { forbiddenDataAttrs } from './constants';
2
+ import { forbiddenDataAttrs, forbiddenTags } from './constants';
3
3
 
4
4
  const {
5
5
  sanitize
@@ -13,7 +13,8 @@ const {
13
13
  const DEFAULT_CONFIG = {
14
14
  RETURN_DOM_FRAGMENT: true,
15
15
  ALLOW_UNKNOWN_PROTOCOLS: true,
16
- FORBID_ATTR: [...forbiddenDataAttrs]
16
+ FORBID_ATTR: forbiddenDataAttrs,
17
+ FORBID_TAGS: forbiddenTags
17
18
  };
18
19
  const transform = (el, binding) => {
19
20
  if (binding.oldValue !== binding.value) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 25 Oct 2023 09:55:57 GMT
3
+ * Generated on Fri, 27 Oct 2023 13:55:39 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 25 Oct 2023 09:55:57 GMT
3
+ * Generated on Fri, 27 Oct 2023 13:55:39 GMT
4
4
  */
5
5
 
6
6
  :root.gl-dark {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 25 Oct 2023 09:55:57 GMT
3
+ * Generated on Fri, 27 Oct 2023 13:55:39 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#fff";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 25 Oct 2023 09:55:57 GMT
3
+ * Generated on Fri, 27 Oct 2023 13:55:39 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#000";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 25 Oct 2023 09:55:57 GMT
3
+ // Generated on Fri, 27 Oct 2023 13:55:39 GMT
4
4
 
5
5
  $red-950: #fff4f3;
6
6
  $red-900: #fcf1ef;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 25 Oct 2023 09:55:57 GMT
3
+ // Generated on Fri, 27 Oct 2023 13:55:39 GMT
4
4
 
5
5
  $gl-line-height-52: 3.25rem;
6
6
  $gl-line-height-44: 2.75rem;