@gitlab/ui 80.16.0 → 80.16.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/CHANGELOG.md +15 -0
- package/dist/components/base/breadcrumb/breadcrumb.js +1 -0
- package/dist/components/experimental/duo/chat/duo_chat.js +1 -1
- package/package.json +3 -3
- package/src/components/base/breadcrumb/breadcrumb.vue +3 -0
- package/src/components/experimental/duo/chat/duo_chat.vue +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [80.16.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.16.1...v80.16.2) (2024-05-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Duo:** Adjust size of close button ([aa3e7f6](https://gitlab.com/gitlab-org/gitlab-ui/commit/aa3e7f66d8fe4cc022234406a951289a038ae2e2))
|
|
7
|
+
* **Duo:** Make padding even ([767ec6a](https://gitlab.com/gitlab-org/gitlab-ui/commit/767ec6a8d765b665fe07bc850f7aa99803439154))
|
|
8
|
+
|
|
9
|
+
## [80.16.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.16.0...v80.16.1) (2024-05-30)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* breadcrumbs refs breaks on vue3 ([e3feef3](https://gitlab.com/gitlab-org/gitlab-ui/commit/e3feef3640f68fe58eaed80f91cb8ba68e8c7ab1))
|
|
15
|
+
|
|
1
16
|
# [80.16.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.15.2...v80.16.0) (2024-05-30)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -135,6 +135,7 @@ var script = {
|
|
|
135
135
|
// Wait for DOM update so all items get rendered and can be measured.
|
|
136
136
|
await this.$nextTick();
|
|
137
137
|
this.totalBreadcrumbsWidth = 0;
|
|
138
|
+
if (!this.$refs.breadcrumbs) return;
|
|
138
139
|
this.$refs.breadcrumbs.forEach((b, index) => {
|
|
139
140
|
const width = b.$el.clientWidth;
|
|
140
141
|
this.totalBreadcrumbsWidth += width;
|
|
@@ -359,7 +359,7 @@ var script = {
|
|
|
359
359
|
const __vue_script__ = script;
|
|
360
360
|
|
|
361
361
|
/* template */
|
|
362
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.isHidden)?_c('aside',{staticClass:"markdown-code-block duo-chat-drawer gl-max-h-full gl-bottom-0 gl-shadow-none gl-border-l gl-border-t duo-chat",attrs:{"id":"chat-component","role":"complementary","data-testid":"chat-component"}},[(_vm.showHeader)?_c('header',{staticClass:"duo-chat-drawer-header duo-chat-drawer-header-sticky gl-z-index-200 gl-p-0! gl-border-b-0",attrs:{"data-testid":"chat-header"}},[_c('div',{staticClass:"drawer-title gl-display-flex gl-justify-content-start gl-align-items-center gl-p-5"},[_c('h3',{staticClass:"gl-my-0 gl-font-size-h2"},[_vm._v(_vm._s(_vm.title))]),_vm._v(" "),(_vm.badgeType)?_c('gl-experiment-badge',{attrs:{"help-page-url":_vm.badgeHelpPageUrl,"type":_vm.badgeType,"container-id":"chat-component"}}):_vm._e(),_vm._v(" "),_c('gl-button',{staticClass:"gl-
|
|
362
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.isHidden)?_c('aside',{staticClass:"markdown-code-block duo-chat-drawer gl-max-h-full gl-bottom-0 gl-shadow-none gl-border-l gl-border-t duo-chat",attrs:{"id":"chat-component","role":"complementary","data-testid":"chat-component"}},[(_vm.showHeader)?_c('header',{staticClass:"duo-chat-drawer-header duo-chat-drawer-header-sticky gl-z-index-200 gl-p-0! gl-border-b-0",attrs:{"data-testid":"chat-header"}},[_c('div',{staticClass:"drawer-title gl-display-flex gl-justify-content-start gl-align-items-center gl-p-5"},[_c('h3',{staticClass:"gl-my-0 gl-font-size-h2"},[_vm._v(_vm._s(_vm.title))]),_vm._v(" "),(_vm.badgeType)?_c('gl-experiment-badge',{attrs:{"help-page-url":_vm.badgeHelpPageUrl,"type":_vm.badgeType,"container-id":"chat-component"}}):_vm._e(),_vm._v(" "),_c('gl-button',{staticClass:"gl-ml-auto",attrs:{"category":"tertiary","variant":"default","icon":"close","size":"small","data-testid":"chat-close-button","aria-label":_vm.$options.i18n.CHAT_CLOSE_LABEL},on:{"click":_vm.hideChat}})],1),_vm._v(" "),_c('gl-alert',{staticClass:"gl-text-center gl-border-t gl-p-4 gl-text-gray-700 gl-bg-gray-50 legal-warning gl-max-w-full",attrs:{"dismissible":false,"variant":"tip","show-icon":false,"role":"alert","data-testid":"chat-legal-warning"}},[_vm._v(_vm._s(_vm.$options.i18n.CHAT_LEGAL_GENERATED_BY_AI))]),_vm._v(" "),_vm._t("subheader"),_vm._v(" "),(_vm.error)?_c('gl-alert',{key:"error",staticClass:"gl-pl-9!",attrs:{"dismissible":false,"variant":"danger","role":"alert","data-testid":"chat-error"}},[_c('span',{directives:[{name:"safe-html",rawName:"v-safe-html",value:(_vm.error),expression:"error"}]})]):_vm._e()],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"duo-chat-drawer-body",attrs:{"data-testid":"chat-history"},on:{"scroll":_vm.handleScrollingTrottled}},[_c('transition-group',{staticClass:"duo-chat-history gl-display-flex gl-flex-direction-column gl-justify-content-end gl-bg-gray-10",class:[
|
|
363
363
|
{
|
|
364
364
|
'gl-h-full': !_vm.hasMessages,
|
|
365
365
|
'force-scroll-bar': _vm.hasMessages,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "80.16.
|
|
3
|
+
"version": "80.16.2",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"test:visual": "./bin/run-visual-tests.sh 'test-storybook --browsers firefox --verbose --url http://localhost:9001'",
|
|
56
56
|
"test:visual:update": "./bin/run-visual-tests.sh 'test-storybook -u --browsers firefox --verbose --url http://localhost:9001'",
|
|
57
57
|
"test:visual:internal": "NODE_ENV=test IS_VISUAL_TEST=true start-test storybook:run http-get://${STORYBOOK_HOST:-localhost}:9001/iframe.html",
|
|
58
|
-
"prettier": "prettier --check '**/*.{js,ts,vue}'",
|
|
59
|
-
"prettier:fix": "prettier --write '**/*.{js,ts,vue}'",
|
|
58
|
+
"prettier": "prettier --check '**/*.{js,mjs,ts,vue}'",
|
|
59
|
+
"prettier:fix": "prettier --write '**/*.{js,mjs,ts,vue}'",
|
|
60
60
|
"eslint": "eslint --max-warnings 0 --ext .js,.vue .",
|
|
61
61
|
"preeslint": "yarn generate-utilities",
|
|
62
62
|
"eslint:fix": "yarn eslint --fix",
|
|
@@ -128,6 +128,9 @@ export default {
|
|
|
128
128
|
await this.$nextTick();
|
|
129
129
|
|
|
130
130
|
this.totalBreadcrumbsWidth = 0;
|
|
131
|
+
|
|
132
|
+
if (!this.$refs.breadcrumbs) return;
|
|
133
|
+
|
|
131
134
|
this.$refs.breadcrumbs.forEach((b, index) => {
|
|
132
135
|
const width = b.$el.clientWidth;
|
|
133
136
|
this.totalBreadcrumbsWidth += width;
|