@gitlab/duo-ui 8.7.3 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  ## [8.7.3](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.2...v8.7.3) (2025-03-14)
2
9
 
3
10
 
@@ -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",
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.3.0",
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.0.0",
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.15.0",
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.5.0",
150
- "eslint-plugin-storybook": "0.9.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",
@@ -115,6 +115,7 @@ export default {
115
115
  </gl-button>
116
116
 
117
117
  <gl-button
118
+ v-if="threads.length > 1"
118
119
  data-testid="chat-threads-delete-thread-button"
119
120
  icon="remove"
120
121
  category="tertiary"