@gitlab/ui 95.6.0 → 96.1.0
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 +29 -0
- package/dist/components/base/toggle/toggle.js +3 -4
- package/dist/components/experimental/duo/chat/constants.js +1 -2
- package/dist/components/experimental/duo/chat/duo_chat.js +2 -2
- package/dist/components/experimental/duo/chat/mock_data.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/toggle/toggle.scss +11 -37
- package/src/components/base/toggle/toggle.vue +4 -5
- package/src/components/experimental/duo/chat/constants.js +0 -1
- package/src/components/experimental/duo/chat/duo_chat.vue +1 -6
- package/src/components/experimental/duo/chat/mock_data.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
# [96.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v96.0.0...v96.1.0) (2024-10-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **GlToggle:** pairing with James feedback ([f261031](https://gitlab.com/gitlab-org/gitlab-ui/commit/f261031f76f4c5c3c36340b230ee50ed5a2022d4))
|
|
7
|
+
* **toggle:** adds specificity for when is-checked and is-disabled ([9fd0daf](https://gitlab.com/gitlab-org/gitlab-ui/commit/9fd0dafa1042dc2a82c519bd4d7b6fe8d6075817))
|
|
8
|
+
* **toggle:** another clean up of css states ([77a6672](https://gitlab.com/gitlab-org/gitlab-ui/commit/77a66724cb19da077a66fe951f4e446725279348))
|
|
9
|
+
* **toggle:** apply suggestions ([fd2e809](https://gitlab.com/gitlab-org/gitlab-ui/commit/fd2e809c8a1d130dad02ebfc2a6776d70c97d5aa))
|
|
10
|
+
* **toggle:** fix linting error ([2218423](https://gitlab.com/gitlab-org/gitlab-ui/commit/2218423bf50585d54833bf1e84dd809c94e11722))
|
|
11
|
+
* **toggle:** further cleanup of CSS ([b278a9e](https://gitlab.com/gitlab-org/gitlab-ui/commit/b278a9e7a7b990f2d80809f6f76b636d56b314dc))
|
|
12
|
+
* **toggle:** make no pointer events on toggle icon ([ac7c1f4](https://gitlab.com/gitlab-org/gitlab-ui/commit/ac7c1f43d9f26ea4dd270236d4143b18b8347881))
|
|
13
|
+
* **toggle:** rearrange css order for specificity ([589e39e](https://gitlab.com/gitlab-org/gitlab-ui/commit/589e39e93da54f3fd4310e4b5dc4cbe3f0f151bf))
|
|
14
|
+
* **toggle:** set class to is-disabled when loading ([478f2fb](https://gitlab.com/gitlab-org/gitlab-ui/commit/478f2fb91e79529d45ec5b46590e1a6c444a5837))
|
|
15
|
+
* **toggle:** use design tokens for is-disabled colors and clean up styling ([fad38fa](https://gitlab.com/gitlab-org/gitlab-ui/commit/fad38fa365115e3e55640280701077e6a9c4267c))
|
|
16
|
+
|
|
17
|
+
# [96.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v95.6.0...v96.0.0) (2024-10-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **DuoChat:** Remove the clean slash command ([eb10c71](https://gitlab.com/gitlab-org/gitlab-ui/commit/eb10c71d3c31210063bfd9bf526531118cf2242c))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* **DuoChat:** Remove support for using /clean slash command.
|
|
28
|
+
Use documented /clear command.
|
|
29
|
+
|
|
1
30
|
# [95.6.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v95.5.1...v95.6.0) (2024-10-09)
|
|
2
31
|
|
|
3
32
|
|
|
@@ -141,11 +141,10 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
|
|
|
141
141
|
'gl-flex-col': _vm.isVerticalLayout,
|
|
142
142
|
'gl-toggle-label-inline': !_vm.isVerticalLayout,
|
|
143
143
|
'is-disabled': _vm.disabled,
|
|
144
|
-
},attrs:{"data-testid":"toggle-wrapper"}},[_c('span',{staticClass:"gl-toggle-label gl-shrink-0",class:_vm.toggleClasses,attrs:{"id":_vm.labelId,"data-testid":"toggle-label"}},[_vm._t("label",function(){return [_vm._v(_vm._s(_vm.label))]})],2),_vm._v(" "),(_vm.shouldRenderDescription)?_c('span',{staticClass:"gl-description-label gl-mb-3",attrs:{"data-testid":"toggle-description"}},[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),_vm._v(" "),(_vm.name)?_c('input',{attrs:{"name":_vm.name,"type":"hidden"},domProps:{"value":_vm.value}}):_vm._e(),_vm._v(" "),_c('button',{staticClass:"gl-shrink-0",class:{
|
|
145
|
-
'gl-toggle': true,
|
|
144
|
+
},attrs:{"data-testid":"toggle-wrapper"}},[_c('span',{staticClass:"gl-toggle-label gl-shrink-0",class:_vm.toggleClasses,attrs:{"id":_vm.labelId,"data-testid":"toggle-label"}},[_vm._t("label",function(){return [_vm._v(_vm._s(_vm.label))]})],2),_vm._v(" "),(_vm.shouldRenderDescription)?_c('span',{staticClass:"gl-description-label gl-mb-3",attrs:{"data-testid":"toggle-description"}},[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),_vm._v(" "),(_vm.name)?_c('input',{attrs:{"name":_vm.name,"type":"hidden"},domProps:{"value":_vm.value}}):_vm._e(),_vm._v(" "),_c('button',{staticClass:"gl-toggle gl-shrink-0",class:{
|
|
146
145
|
'is-checked': _vm.value,
|
|
147
|
-
'is-disabled': _vm.disabled,
|
|
148
|
-
},attrs:{"role":"switch","aria-checked":_vm.isChecked,"aria-labelledby":_vm.labelId,"aria-describedby":_vm.helpId,"aria-disabled":_vm.disabled,"type":"button"},on:{"click":function($event){$event.preventDefault();return _vm.toggleFeature.apply(null, arguments)}}},[(_vm.isLoading)?_c('gl-loading-icon',{staticClass:"toggle-loading",attrs:{"color":"
|
|
146
|
+
'is-disabled': _vm.disabled || _vm.isLoading,
|
|
147
|
+
},attrs:{"role":"switch","aria-checked":_vm.isChecked,"aria-labelledby":_vm.labelId,"aria-describedby":_vm.helpId,"aria-disabled":_vm.disabled,"type":"button"},on:{"click":function($event){$event.preventDefault();return _vm.toggleFeature.apply(null, arguments)}}},[(_vm.isLoading)?_c('gl-loading-icon',{staticClass:"toggle-loading",attrs:{"color":"dark"}}):_c('span',{staticClass:"toggle-icon"},[_c('gl-icon',{attrs:{"name":_vm.icon,"size":12}})],1)],1),_vm._v(" "),(_vm.shouldRenderHelp)?_c('span',{staticClass:"gl-help-label",attrs:{"id":_vm.helpId,"data-testid":"toggle-help"}},[_vm._t("help",function(){return [_vm._v(_vm._s(_vm.help))]})],2):_vm._e()])};
|
|
149
148
|
var __vue_staticRenderFns__ = [];
|
|
150
149
|
|
|
151
150
|
/* style */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const CHAT_RESET_MESSAGE = '/reset';
|
|
2
|
-
const CHAT_CLEAN_MESSAGE = '/clean';
|
|
3
2
|
const CHAT_CLEAR_MESSAGE = '/clear';
|
|
4
3
|
const CHAT_INCLUDE_MESSAGE = '/include';
|
|
5
4
|
const LOADING_TRANSITION_DURATION = 7500;
|
|
@@ -24,4 +23,4 @@ const MESSAGE_MODEL_ROLES = {
|
|
|
24
23
|
};
|
|
25
24
|
const SELECTED_CONTEXT_ITEMS_DEFAULT_COLLAPSED = true;
|
|
26
25
|
|
|
27
|
-
export {
|
|
26
|
+
export { CHAT_CLEAR_MESSAGE, CHAT_INCLUDE_MESSAGE, CHAT_RESET_MESSAGE, DOCUMENTATION_SOURCE_TYPES, LOADING_TRANSITION_DURATION, MESSAGE_MODEL_ROLES, SELECTED_CONTEXT_ITEMS_DEFAULT_COLLAPSED };
|
|
@@ -15,7 +15,7 @@ import { translate } from '../../../../utils/i18n';
|
|
|
15
15
|
import GlDuoChatLoader from './components/duo_chat_loader/duo_chat_loader';
|
|
16
16
|
import GlDuoChatPredefinedPrompts from './components/duo_chat_predefined_prompts/duo_chat_predefined_prompts';
|
|
17
17
|
import GlDuoChatConversation from './components/duo_chat_conversation/duo_chat_conversation';
|
|
18
|
-
import { CHAT_RESET_MESSAGE, CHAT_INCLUDE_MESSAGE, MESSAGE_MODEL_ROLES,
|
|
18
|
+
import { CHAT_RESET_MESSAGE, CHAT_INCLUDE_MESSAGE, MESSAGE_MODEL_ROLES, CHAT_CLEAR_MESSAGE } from './constants';
|
|
19
19
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
20
20
|
|
|
21
21
|
const i18n = {
|
|
@@ -342,7 +342,7 @@ var script = {
|
|
|
342
342
|
this.contextItemsMenuIsOpen = true;
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
|
-
if (![CHAT_RESET_MESSAGE,
|
|
345
|
+
if (![CHAT_RESET_MESSAGE, CHAT_CLEAR_MESSAGE].includes(this.caseInsensitivePrompt)) {
|
|
346
346
|
this.displaySubmitButton = false;
|
|
347
347
|
}
|
|
348
348
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setStoryTimeout } from '../../../../utils/test_utils';
|
|
2
|
-
import { DOCUMENTATION_SOURCE_TYPES, MESSAGE_MODEL_ROLES, CHAT_RESET_MESSAGE,
|
|
2
|
+
import { DOCUMENTATION_SOURCE_TYPES, MESSAGE_MODEL_ROLES, CHAT_RESET_MESSAGE, CHAT_CLEAR_MESSAGE, CHAT_INCLUDE_MESSAGE } from './constants';
|
|
3
3
|
import { getMockContextItems } from './components/duo_chat_context/mock_context_data';
|
|
4
4
|
|
|
5
5
|
const MOCK_SOURCES = [{
|
|
@@ -141,7 +141,7 @@ const SLASH_COMMANDS = [{
|
|
|
141
141
|
shouldSubmit: true,
|
|
142
142
|
description: 'Reset conversation, ignore the previous messages.'
|
|
143
143
|
}, {
|
|
144
|
-
name:
|
|
144
|
+
name: CHAT_CLEAR_MESSAGE,
|
|
145
145
|
shouldSubmit: true,
|
|
146
146
|
description: 'Delete all messages in this conversation.'
|
|
147
147
|
}, {
|