@gitlab/duo-ui 10.21.0 → 10.22.1
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/agentic_chat/agentic_duo_chat.js +18 -37
- package/dist/components/chat/components/duo_chat_header/duo_chat_header.js +4 -4
- package/dist/components/chat/duo_chat.js +35 -54
- package/dist/components/ui/duo_layout/duo_layout.js +100 -0
- package/dist/components/ui/side_rail/side_rail.js +67 -0
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/index.js +2 -0
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/package.json +2 -1
- package/src/components/agentic_chat/agentic_duo_chat.vue +210 -244
- package/src/components/chat/components/duo_chat_header/duo_chat_header.vue +24 -22
- package/src/components/chat/duo_chat.scss +1 -2
- package/src/components/chat/duo_chat.vue +214 -238
- package/src/components/ui/duo_layout/duo_layout.md +0 -0
- package/src/components/ui/duo_layout/duo_layout.vue +95 -0
- package/src/components/ui/side_rail/side_rail.vue +56 -0
- package/src/index.js +2 -0
- package/translations.js +5 -4
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { GlButtonGroup, GlButton, GlAvatar, GlTooltipDirective } from '@gitlab/ui';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'SideRail',
|
|
6
|
+
directives: {
|
|
7
|
+
GlTooltip: GlTooltipDirective,
|
|
8
|
+
},
|
|
9
|
+
components: {
|
|
10
|
+
GlButtonGroup,
|
|
11
|
+
GlButton,
|
|
12
|
+
GlAvatar,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
/**
|
|
16
|
+
* String to display the empty state of recent content
|
|
17
|
+
*/
|
|
18
|
+
buttons: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: false,
|
|
21
|
+
default: () => ({}),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
onClick(buttonName) {
|
|
26
|
+
this.$emit('click', buttonName);
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
31
|
+
<template>
|
|
32
|
+
<gl-button-group :vertical="true">
|
|
33
|
+
<template v-for="(button, buttonName) in buttons">
|
|
34
|
+
<div
|
|
35
|
+
v-if="button.dividerBefore"
|
|
36
|
+
:key="`${buttonName}-divider`"
|
|
37
|
+
class="gl-mx-auto gl-my-3 gl-h-1 gl-w-5 gl-border-0 gl-border-t-1 gl-border-solid gl-border-[#7759C233]"
|
|
38
|
+
name="divider"
|
|
39
|
+
></div>
|
|
40
|
+
<gl-button
|
|
41
|
+
v-if="button.render"
|
|
42
|
+
:key="`${buttonName}-button`"
|
|
43
|
+
v-gl-tooltip
|
|
44
|
+
:title="button.title"
|
|
45
|
+
category="tertiary"
|
|
46
|
+
variant="default"
|
|
47
|
+
size="medium"
|
|
48
|
+
:icon="button.icon"
|
|
49
|
+
active-class="gl-active"
|
|
50
|
+
@click="onClick(buttonName)"
|
|
51
|
+
>
|
|
52
|
+
<gl-avatar v-if="button.avatar" :size="32" :entity-name="button.avatar" shape="circle" />
|
|
53
|
+
</gl-button>
|
|
54
|
+
</template>
|
|
55
|
+
</gl-button-group>
|
|
56
|
+
</template>
|
package/src/index.js
CHANGED
|
@@ -42,5 +42,7 @@ export { InsertCodeSnippetElement as DuoChatInsertCodeSnippetElement } from './c
|
|
|
42
42
|
export { default as DuoNavigationBar } from './components/ui/duo_navigation_bar/duo_navigation_bar.vue';
|
|
43
43
|
export { default as DuoRecentCollapsible } from './components/ui/duo_recent_collapsible/duo_recent_collapsible.vue';
|
|
44
44
|
export { default as DuoRecentContent } from './components/ui/duo_recent_content/duo_recent_content.vue';
|
|
45
|
+
export { default as DuoLayout } from './components/ui/duo_layout/duo_layout.vue';
|
|
46
|
+
export { default as SideRail } from './components/ui/side_rail/side_rail.vue';
|
|
45
47
|
|
|
46
48
|
export { addDuoMarkdownPlugin } from './components/chat/markdown_renderer';
|
package/translations.js
CHANGED
|
@@ -7,12 +7,12 @@ export default {
|
|
|
7
7
|
'AgenticDuoChat.chatDefaultPredefinedPromptsCreateTemplate': 'How do I create a template?',
|
|
8
8
|
'AgenticDuoChat.chatDefaultPredefinedPromptsForkProject': 'How do I fork a project?',
|
|
9
9
|
'AgenticDuoChat.chatDefaultTitle': 'GitLab Duo Agentic Chat',
|
|
10
|
-
'AgenticDuoChat.chatDisclamer':
|
|
11
|
-
'Chat can autonomously change code. Responses and changes can be inaccurate. Review carefully.',
|
|
10
|
+
'AgenticDuoChat.chatDisclamer': 'Responses may be inaccurate. Verify before use.',
|
|
12
11
|
'AgenticDuoChat.chatEmptyStateTitle':
|
|
13
12
|
'👋 I am GitLab Duo Agentic Chat, your personal AI-powered assistant. How can I help you today?',
|
|
14
13
|
'AgenticDuoChat.chatHistoryTitle': 'Chat history',
|
|
15
|
-
'AgenticDuoChat.
|
|
14
|
+
'AgenticDuoChat.chatModelPlaceholder': 'GitLab Duo Agentic Chat',
|
|
15
|
+
'AgenticDuoChat.chatPromptPlaceholderDefault': "Let's work through this together...",
|
|
16
16
|
'AgenticDuoChat.chatPromptPlaceholderWithCommands': 'Type /help to learn more',
|
|
17
17
|
'AgenticDuoChat.chatSubmitLabel': 'Send chat message.',
|
|
18
18
|
'AgenticDuoChat.overLimitCharacterCountMessage': null,
|
|
@@ -65,9 +65,10 @@ export default {
|
|
|
65
65
|
'👋 I am GitLab Duo Chat, your personal AI-powered assistant. How can I help you today?',
|
|
66
66
|
'DuoChat.chatHistoryInfo': 'Inactive chats are deleted after 30 days.',
|
|
67
67
|
'DuoChat.chatHistoryToolTip': 'Chat history',
|
|
68
|
+
'DuoChat.chatModelPlaceholder': 'GitLab Duo Chat',
|
|
68
69
|
'DuoChat.chatNewLabel': 'New chat',
|
|
69
70
|
'DuoChat.chatNewToolTip': 'New chat',
|
|
70
|
-
'DuoChat.chatPromptPlaceholderDefault': '
|
|
71
|
+
'DuoChat.chatPromptPlaceholderDefault': "Let's work through this together...",
|
|
71
72
|
'DuoChat.chatPromptPlaceholderWithCommands': 'Type /help to learn more',
|
|
72
73
|
'DuoChat.chatSubmitLabel': 'Send chat message.',
|
|
73
74
|
'DuoChat.chatTitle': 'GitLab Duo Chat',
|