@gitlab/ui 43.9.0 → 43.9.3
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 +21 -0
- package/README.md +1 -1
- package/dist/directives/safe_html/safe_html.js +4 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +8 -8
- package/src/components/base/alert/alert.scss +0 -19
- package/src/components/regions/empty_state/empty_state.stories.js +4 -2
- package/src/directives/safe_html/safe_html.js +3 -1
- package/src/directives/safe_html/safe_html.stories.js +3 -1
- package/src/scss/utilities.scss +14 -14
- package/src/scss/utility-mixins/flex.scss +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "43.9.
|
|
3
|
+
"version": "43.9.3",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@popperjs/core": "^2.11.2",
|
|
59
59
|
"bootstrap-vue": "2.20.1",
|
|
60
|
-
"dompurify": "^2.
|
|
60
|
+
"dompurify": "^2.4.0",
|
|
61
61
|
"echarts": "^5.3.2",
|
|
62
62
|
"iframe-resizer": "^4.3.2",
|
|
63
63
|
"lodash": "^4.17.20",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@arkweid/lefthook": "0.7.7",
|
|
80
|
-
"@babel/core": "^7.18.
|
|
80
|
+
"@babel/core": "^7.18.13",
|
|
81
81
|
"@babel/preset-env": "^7.18.10",
|
|
82
|
-
"@gitlab/eslint-plugin": "
|
|
82
|
+
"@gitlab/eslint-plugin": "17.0.0",
|
|
83
83
|
"@gitlab/stylelint-config": "4.1.0",
|
|
84
|
-
"@gitlab/svgs": "3.
|
|
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": "^
|
|
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.
|
|
146
|
+
"vue": "2.7.10",
|
|
147
147
|
"vue-loader": "^15.8.3",
|
|
148
|
-
"vue-template-compiler": "2.7.
|
|
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 =
|
|
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:
|
|
139
|
+
svgPath: issuesSvg,
|
|
138
140
|
primaryButtonText: 'Learn more',
|
|
139
141
|
secondaryButtonText: null,
|
|
140
142
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
} = {}) => ({
|
package/src/scss/utilities.scss
CHANGED
|
@@ -3284,39 +3284,47 @@
|
|
|
3284
3284
|
flex-wrap: nowrap !important;
|
|
3285
3285
|
}
|
|
3286
3286
|
|
|
3287
|
+
.gl-flex-direction-column {
|
|
3288
|
+
flex-direction: column;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
.gl-flex-direction-column\! {
|
|
3292
|
+
flex-direction: column !important;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3287
3295
|
.gl-sm-flex-direction-column {
|
|
3288
3296
|
@include gl-media-breakpoint-down(md) {
|
|
3289
|
-
|
|
3297
|
+
flex-direction: column;
|
|
3290
3298
|
}
|
|
3291
3299
|
}
|
|
3292
3300
|
|
|
3293
3301
|
.gl-sm-flex-direction-column\! {
|
|
3294
3302
|
@include gl-media-breakpoint-down(md) {
|
|
3295
|
-
|
|
3303
|
+
flex-direction: column !important;
|
|
3296
3304
|
}
|
|
3297
3305
|
}
|
|
3298
3306
|
|
|
3299
3307
|
.gl-md-flex-direction-column {
|
|
3300
3308
|
@include gl-media-breakpoint-up(md) {
|
|
3301
|
-
|
|
3309
|
+
flex-direction: column;
|
|
3302
3310
|
}
|
|
3303
3311
|
}
|
|
3304
3312
|
|
|
3305
3313
|
.gl-md-flex-direction-column\! {
|
|
3306
3314
|
@include gl-media-breakpoint-up(md) {
|
|
3307
|
-
|
|
3315
|
+
flex-direction: column !important;
|
|
3308
3316
|
}
|
|
3309
3317
|
}
|
|
3310
3318
|
|
|
3311
3319
|
.gl-lg-flex-direction-column {
|
|
3312
3320
|
@include gl-media-breakpoint-up(lg) {
|
|
3313
|
-
|
|
3321
|
+
flex-direction: column;
|
|
3314
3322
|
}
|
|
3315
3323
|
}
|
|
3316
3324
|
|
|
3317
3325
|
.gl-lg-flex-direction-column\! {
|
|
3318
3326
|
@include gl-media-breakpoint-up(lg) {
|
|
3319
|
-
|
|
3327
|
+
flex-direction: column !important;
|
|
3320
3328
|
}
|
|
3321
3329
|
}
|
|
3322
3330
|
|
|
@@ -3332,14 +3340,6 @@
|
|
|
3332
3340
|
}
|
|
3333
3341
|
}
|
|
3334
3342
|
|
|
3335
|
-
.gl-flex-direction-column {
|
|
3336
|
-
flex-direction: column;
|
|
3337
|
-
}
|
|
3338
|
-
|
|
3339
|
-
.gl-flex-direction-column\! {
|
|
3340
|
-
flex-direction: column !important;
|
|
3341
|
-
}
|
|
3342
|
-
|
|
3343
3343
|
.gl-flex-direction-column-reverse {
|
|
3344
3344
|
flex-direction: column-reverse;
|
|
3345
3345
|
}
|
|
@@ -132,6 +132,10 @@
|
|
|
132
132
|
flex-wrap: nowrap;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
@mixin gl-flex-direction-column {
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
}
|
|
138
|
+
|
|
135
139
|
@mixin gl-sm-flex-direction-column {
|
|
136
140
|
// stylelint-disable-next-line @gitlab/no-gl-media-breakpoint-down
|
|
137
141
|
@include gl-media-breakpoint-down(md) {
|
|
@@ -158,10 +162,6 @@
|
|
|
158
162
|
}
|
|
159
163
|
}
|
|
160
164
|
|
|
161
|
-
@mixin gl-flex-direction-column {
|
|
162
|
-
flex-direction: column;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
165
|
@mixin gl-flex-direction-column-reverse {
|
|
166
166
|
flex-direction: column-reverse;
|
|
167
167
|
}
|