@gitlab/ui 43.9.1 → 43.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "43.9.1",
3
+ "version": "43.9.2",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -77,11 +77,11 @@
77
77
  },
78
78
  "devDependencies": {
79
79
  "@arkweid/lefthook": "0.7.7",
80
- "@babel/core": "^7.18.10",
80
+ "@babel/core": "^7.18.13",
81
81
  "@babel/preset-env": "^7.18.10",
82
- "@gitlab/eslint-plugin": "16.0.0",
82
+ "@gitlab/eslint-plugin": "17.0.0",
83
83
  "@gitlab/stylelint-config": "4.1.0",
84
- "@gitlab/svgs": "3.0.0",
84
+ "@gitlab/svgs": "3.2.0",
85
85
  "@rollup/plugin-commonjs": "^11.1.0",
86
86
  "@rollup/plugin-node-resolve": "^7.1.3",
87
87
  "@rollup/plugin-replace": "^2.3.2",
@@ -102,7 +102,7 @@
102
102
  "babel-plugin-require-context-hook": "^1.0.0",
103
103
  "babel-preset-vue": "^2.0.2",
104
104
  "bootstrap": "4.5.3",
105
- "cypress": "^6.6.0",
105
+ "cypress": "^10.6.0",
106
106
  "emoji-regex": "^10.0.0",
107
107
  "eslint": "8.22.0",
108
108
  "eslint-import-resolver-jest": "3.0.2",
@@ -143,9 +143,9 @@
143
143
  "stylelint": "14.9.1",
144
144
  "stylelint-config-prettier": "9.0.3",
145
145
  "stylelint-prettier": "2.0.0",
146
- "vue": "2.7.9",
146
+ "vue": "2.7.10",
147
147
  "vue-loader": "^15.8.3",
148
- "vue-template-compiler": "2.7.9"
148
+ "vue-template-compiler": "2.7.10"
149
149
  },
150
150
  "release": {
151
151
  "branches": [
@@ -63,25 +63,6 @@
63
63
  @include gl-line-height-normal;
64
64
  }
65
65
 
66
- // Todo: deprecate the .gl-alert-dismiss styles after all instances from HAML and Ruby have been migrated
67
- .gl-alert-dismiss {
68
- @include gl-absolute;
69
- @include gl-top-0;
70
- @include gl-right-0;
71
- @include gl-p-5;
72
- @include gl-line-height-normal;
73
- @include gl-bg-none;
74
- @include gl-border-none;
75
- @include gl-text-gray-500;
76
-
77
- > svg {
78
- @include gl-fill-current-color;
79
- @include gl-w-5;
80
- @include gl-h-5;
81
- @include gl-vertical-align-middle;
82
- }
83
- }
84
-
85
66
  // This is the replacement for .gl-alert-dismiss
86
67
  .gl-dismiss-btn {
87
68
  @include gl-absolute;
@@ -1,3 +1,5 @@
1
+ import securityDashboardEmptyStateSvg from '@gitlab/svgs/dist/illustrations/security-dashboard-empty-state.svg';
2
+ import issuesSvg from '@gitlab/svgs/dist/illustrations/issues.svg';
1
3
  import { GlButton, GlEmptyState } from '../../../index';
2
4
  import readme from './empty_state.md';
3
5
 
@@ -24,7 +26,7 @@ const Template = (args) => ({
24
26
 
25
27
  const generateProps = ({
26
28
  title = 'This state is empty',
27
- svgPath = 'https://gitlab.com/gitlab-org/gitlab-svgs/raw/v1.152.0/illustrations/security-dashboard-empty-state.svg',
29
+ svgPath = securityDashboardEmptyStateSvg,
28
30
  svgHeight = 145,
29
31
  description = 'The title and message should be clear, concise, and explain why the user is seeing this screen.',
30
32
  primaryButtonText = 'Something actionable',
@@ -134,7 +136,7 @@ export const SlottedDescription = (args) => ({
134
136
  });
135
137
  SlottedDescription.args = generateProps({
136
138
  title: 'Slotted description example',
137
- svgPath: 'https://gitlab.com/gitlab-org/gitlab-svgs/raw/v1.152.0/illustrations/issues.svg',
139
+ svgPath: issuesSvg,
138
140
  primaryButtonText: 'Learn more',
139
141
  secondaryButtonText: null,
140
142
  });
@@ -1,6 +1,8 @@
1
- import { sanitize } from 'dompurify';
1
+ import DOMPurify from 'dompurify';
2
2
  import { forbiddenDataAttrs } from './constants';
3
3
 
4
+ const { sanitize } = DOMPurify;
5
+
4
6
  // Mitigate against future dompurify mXSS bypasses by
5
7
  // avoiding additional serialize/parse round trip.
6
8
  // See https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/1782
@@ -1,7 +1,9 @@
1
- import { sanitize } from 'dompurify';
1
+ import DOMPurify from 'dompurify';
2
2
  import { GlSafeHtmlDirective as GlSafeHtml } from '../../index';
3
3
  import readme from './safe_html.md';
4
4
 
5
+ const { sanitize } = DOMPurify;
6
+
5
7
  const generateProps = ({
6
8
  unsafeHTML = '<a href="javascript:alert(document.domain)">Click me</a>',
7
9
  } = {}) => ({