@gitlab/ui 95.6.0 → 96.0.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 +13 -0
- 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/package.json +1 -1
- 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,16 @@
|
|
|
1
|
+
# [96.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v95.6.0...v96.0.0) (2024-10-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **DuoChat:** Remove the clean slash command ([eb10c71](https://gitlab.com/gitlab-org/gitlab-ui/commit/eb10c71d3c31210063bfd9bf526531118cf2242c))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **DuoChat:** Remove support for using /clean slash command.
|
|
12
|
+
Use documented /clear command.
|
|
13
|
+
|
|
1
14
|
# [95.6.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v95.5.1...v95.6.0) (2024-10-09)
|
|
2
15
|
|
|
3
16
|
|
|
@@ -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
|
}, {
|
package/package.json
CHANGED
|
@@ -17,7 +17,6 @@ import GlDuoChatLoader from './components/duo_chat_loader/duo_chat_loader.vue';
|
|
|
17
17
|
import GlDuoChatPredefinedPrompts from './components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue';
|
|
18
18
|
import GlDuoChatConversation from './components/duo_chat_conversation/duo_chat_conversation.vue';
|
|
19
19
|
import {
|
|
20
|
-
CHAT_CLEAN_MESSAGE,
|
|
21
20
|
CHAT_RESET_MESSAGE,
|
|
22
21
|
CHAT_CLEAR_MESSAGE,
|
|
23
22
|
CHAT_INCLUDE_MESSAGE,
|
|
@@ -393,11 +392,7 @@ export default {
|
|
|
393
392
|
return;
|
|
394
393
|
}
|
|
395
394
|
|
|
396
|
-
if (
|
|
397
|
-
![CHAT_RESET_MESSAGE, CHAT_CLEAN_MESSAGE, CHAT_CLEAR_MESSAGE].includes(
|
|
398
|
-
this.caseInsensitivePrompt
|
|
399
|
-
)
|
|
400
|
-
) {
|
|
395
|
+
if (![CHAT_RESET_MESSAGE, CHAT_CLEAR_MESSAGE].includes(this.caseInsensitivePrompt)) {
|
|
401
396
|
this.displaySubmitButton = false;
|
|
402
397
|
}
|
|
403
398
|
|
|
@@ -2,8 +2,8 @@ import { setStoryTimeout } from '../../../../utils/test_utils';
|
|
|
2
2
|
import {
|
|
3
3
|
DOCUMENTATION_SOURCE_TYPES,
|
|
4
4
|
MESSAGE_MODEL_ROLES,
|
|
5
|
+
CHAT_CLEAR_MESSAGE,
|
|
5
6
|
CHAT_RESET_MESSAGE,
|
|
6
|
-
CHAT_CLEAN_MESSAGE,
|
|
7
7
|
CHAT_INCLUDE_MESSAGE,
|
|
8
8
|
} from './constants';
|
|
9
9
|
import { getMockContextItems } from './components/duo_chat_context/mock_context_data';
|
|
@@ -154,7 +154,7 @@ export const SLASH_COMMANDS = [
|
|
|
154
154
|
description: 'Reset conversation, ignore the previous messages.',
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
name:
|
|
157
|
+
name: CHAT_CLEAR_MESSAGE,
|
|
158
158
|
shouldSubmit: true,
|
|
159
159
|
description: 'Delete all messages in this conversation.',
|
|
160
160
|
},
|