@gitlab/duo-ui 8.7.2 → 8.7.4
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 +14 -0
- package/dist/components/chat/components/duo_chat_message/duo_chat_message.js +1 -1
- package/dist/components/chat/components/duo_chat_threads/duo_chat_threads.js +1 -1
- package/package.json +6 -6
- package/src/components/chat/components/duo_chat_message/duo_chat_message.vue +1 -1
- package/src/components/chat/components/duo_chat_threads/duo_chat_threads.vue +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [8.7.4](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.3...v8.7.4) (2025-03-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* prevent deletion of the last thread ([31e44ba](https://gitlab.com/gitlab-org/duo-ui/commit/31e44ba39ef74b2bebb5ceb8ed91e4e9bfaa1f10))
|
|
7
|
+
|
|
8
|
+
## [8.7.3](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.2...v8.7.3) (2025-03-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix headers to look more proportional ([d1d9ffa](https://gitlab.com/gitlab-org/duo-ui/commit/d1d9ffa74ab578b36eba73cae5517fd2cf7d4c94))
|
|
14
|
+
|
|
1
15
|
## [8.7.2](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.1...v8.7.2) (2025-03-13)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -268,7 +268,7 @@ const __vue_script__ = script;
|
|
|
268
268
|
|
|
269
269
|
/* template */
|
|
270
270
|
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-flex gl-flex-row gl-items-end duo-chat-message-container",on:{"mouseenter":function($event){_vm.hovered = true;},"mouseleave":function($event){_vm.hovered = false;
|
|
271
|
-
_vm.copied = false;}}},[_c('div',{staticClass:"duo-chat-message gl-border gl-border-transparent gl-p-4 gl-leading-20 gl-break-anywhere",class:{
|
|
271
|
+
_vm.copied = false;}}},[_c('div',{staticClass:"duo-chat-message gl-border gl-border-transparent gl-p-4 gl-leading-20 gl-break-anywhere md",class:{
|
|
272
272
|
'gl-ml-auto gl-rounded-br-none gl-bg-feedback-info gl-text-feedback-info': _vm.isUserMessage,
|
|
273
273
|
'gl-rounded-bl-none gl-border-1 gl-border-solid gl-border-gray-50 gl-text-default':
|
|
274
274
|
_vm.isAssistantMessage,
|
|
@@ -67,7 +67,7 @@ var script = {
|
|
|
67
67
|
const __vue_script__ = script;
|
|
68
68
|
|
|
69
69
|
/* template */
|
|
70
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-h-full gl-p-5"},[_c('div',{staticClass:"gl-bg-gray-50 gl-text-gray-500 gl-p-4 gl-mb-5 gl-rounded-base",attrs:{"data-testid":"chat-threads-info-banner"}},[_c('p',{staticClass:"gl-m-0 gl-flex"},[_c('gl-icon',{staticClass:"gl-mr-4",attrs:{"name":"bulb"}}),_vm._v(_vm._s(_vm.$options.i18n.CHAT_HISTORY_INFO)+"\n ")],1)]),_vm._v(" "),(_vm.hasThreads)?_vm._l((_vm.groupedThreads),function(threadsForDate,date){return _c('div',{key:date},[_c('div',{staticClass:"gl-font-bold gl-neutral-900 gl-mb-4",attrs:{"data-testid":"chat-threads-date-header"}},[_vm._v("\n "+_vm._s(_vm.formattedLocalDate(date))+"\n ")]),_vm._v(" "),_c('div',_vm._l((threadsForDate),function(thread){return _c('div',{key:thread.id,staticClass:"gl-flex gl-align-center gl-mb-4"},[_c('gl-button',{staticClass:"hover:gl-bg-gray-50 gl-text-ellipsis !gl-text-default justify-content-start gl-overflow-hidden gl-rounded-base gl-rounded-base gl-p-4 gl-w-full gl-whitespace-nowrap",attrs:{"data-testid":"chat-threads-thread-box","category":"tertiary","aria-label":_vm.sprintf(_vm.$options.i18n.OPEN_CHAT_LABEL, { title: thread.title || 'Untitled Chat' })},on:{"click":function($event){return _vm.onSelectThread(thread)}}},[_vm._v("\n "+_vm._s(thread.title || 'Untitled Chat')+"\n ")]),_vm._v(" "),_c('gl-button',{staticClass:"gl-neutral-900 !gl-p-4",attrs:{"data-testid":"chat-threads-delete-thread-button","icon":"remove","category":"tertiary","size":"small","aria-label":_vm.$options.i18n.THREAD_DELETE_LABEL},on:{"click":function($event){return _vm.$emit('delete-thread', thread.id)}}})],1)}),0)])}):_c('duo-chat-threads-empty')],2)};
|
|
70
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-h-full gl-p-5"},[_c('div',{staticClass:"gl-bg-gray-50 gl-text-gray-500 gl-p-4 gl-mb-5 gl-rounded-base",attrs:{"data-testid":"chat-threads-info-banner"}},[_c('p',{staticClass:"gl-m-0 gl-flex"},[_c('gl-icon',{staticClass:"gl-mr-4",attrs:{"name":"bulb"}}),_vm._v(_vm._s(_vm.$options.i18n.CHAT_HISTORY_INFO)+"\n ")],1)]),_vm._v(" "),(_vm.hasThreads)?_vm._l((_vm.groupedThreads),function(threadsForDate,date){return _c('div',{key:date},[_c('div',{staticClass:"gl-font-bold gl-neutral-900 gl-mb-4",attrs:{"data-testid":"chat-threads-date-header"}},[_vm._v("\n "+_vm._s(_vm.formattedLocalDate(date))+"\n ")]),_vm._v(" "),_c('div',_vm._l((threadsForDate),function(thread){return _c('div',{key:thread.id,staticClass:"gl-flex gl-align-center gl-mb-4"},[_c('gl-button',{staticClass:"hover:gl-bg-gray-50 gl-text-ellipsis !gl-text-default justify-content-start gl-overflow-hidden gl-rounded-base gl-rounded-base gl-p-4 gl-w-full gl-whitespace-nowrap",attrs:{"data-testid":"chat-threads-thread-box","category":"tertiary","aria-label":_vm.sprintf(_vm.$options.i18n.OPEN_CHAT_LABEL, { title: thread.title || 'Untitled Chat' })},on:{"click":function($event){return _vm.onSelectThread(thread)}}},[_vm._v("\n "+_vm._s(thread.title || 'Untitled Chat')+"\n ")]),_vm._v(" "),(_vm.threads.length > 1)?_c('gl-button',{staticClass:"gl-neutral-900 !gl-p-4",attrs:{"data-testid":"chat-threads-delete-thread-button","icon":"remove","category":"tertiary","size":"small","aria-label":_vm.$options.i18n.THREAD_DELETE_LABEL},on:{"click":function($event){return _vm.$emit('delete-thread', thread.id)}}}):_vm._e()],1)}),0)])}):_c('duo-chat-threads-empty')],2)};
|
|
71
71
|
var __vue_staticRenderFns__ = [];
|
|
72
72
|
|
|
73
73
|
/* style */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/duo-ui",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.4",
|
|
4
4
|
"description": "Duo UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"@babel/preset-env": "^7.25.7",
|
|
102
102
|
"@babel/preset-react": "^7.25.7",
|
|
103
103
|
"@cypress/grep": "^4.0.1",
|
|
104
|
-
"@gitlab/eslint-plugin": "20.
|
|
104
|
+
"@gitlab/eslint-plugin": "20.7.1",
|
|
105
105
|
"@gitlab/fonts": "^1.3.0",
|
|
106
106
|
"@gitlab/stylelint-config": "6.2.2",
|
|
107
|
-
"@gitlab/svgs": "^3.
|
|
107
|
+
"@gitlab/svgs": "^3.123.0",
|
|
108
108
|
"@gitlab/ui": "latest",
|
|
109
109
|
"@jest/test-sequencer": "^29.7.0",
|
|
110
110
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"babel-jest": "29.0.1",
|
|
139
139
|
"babel-loader": "^8.0.5",
|
|
140
140
|
"bootstrap": "4.6.2",
|
|
141
|
-
"cypress": "13.
|
|
141
|
+
"cypress": "13.17.0",
|
|
142
142
|
"cypress-axe": "^1.4.0",
|
|
143
143
|
"cypress-real-events": "^1.11.0",
|
|
144
144
|
"dompurify": "^3.1.2",
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
"esbuild": "^0.18.0",
|
|
147
147
|
"eslint": "8.57.1",
|
|
148
148
|
"eslint-import-resolver-jest": "3.0.2",
|
|
149
|
-
"eslint-plugin-cypress": "3.
|
|
150
|
-
"eslint-plugin-storybook": "0.
|
|
149
|
+
"eslint-plugin-cypress": "3.6.0",
|
|
150
|
+
"eslint-plugin-storybook": "0.11.4",
|
|
151
151
|
"gitlab-api-async-iterator": "^1.3.1",
|
|
152
152
|
"glob": "10.3.3",
|
|
153
153
|
"globby": "^11.1.0",
|
|
@@ -313,7 +313,7 @@ export default {
|
|
|
313
313
|
"
|
|
314
314
|
>
|
|
315
315
|
<div
|
|
316
|
-
class="duo-chat-message gl-border gl-border-transparent gl-p-4 gl-leading-20 gl-break-anywhere"
|
|
316
|
+
class="duo-chat-message gl-border gl-border-transparent gl-p-4 gl-leading-20 gl-break-anywhere md"
|
|
317
317
|
:class="{
|
|
318
318
|
'gl-ml-auto gl-rounded-br-none gl-bg-feedback-info gl-text-feedback-info': isUserMessage,
|
|
319
319
|
'gl-rounded-bl-none gl-border-1 gl-border-solid gl-border-gray-50 gl-text-default':
|