@gitlab/ui 101.15.0 → 101.16.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 +7 -0
- package/dist/components/base/animated_icon/animated_loader_icon.js +45 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.js +5 -3
- package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +3 -3
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/components/base/animated_icon/animated_icon.scss +21 -0
- package/src/components/base/animated_icon/animated_loader_icon.vue +44 -0
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +6 -33
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.vue +4 -6
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +3 -3
- package/src/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [101.16.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.15.0...v101.16.0) (2024-11-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **GlDuoChat, GlAnimatedIcon:** Update loading icon ([23d0874](https://gitlab.com/gitlab-org/gitlab-ui/commit/23d08749510808b1ece754025714ad2a6dd9fd65))
|
|
7
|
+
|
|
1
8
|
# [101.15.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.14.0...v101.15.0) (2024-11-07)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import GlBaseAnimatedIcon from './base_animated_icon';
|
|
2
|
+
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
3
|
+
|
|
4
|
+
var script = {
|
|
5
|
+
name: 'GlAnimatedLoaderIcon',
|
|
6
|
+
extends: GlBaseAnimatedIcon
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/* script */
|
|
10
|
+
const __vue_script__ = script;
|
|
11
|
+
|
|
12
|
+
/* template */
|
|
13
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{class:_vm.iconStateClass,attrs:{"aria-label":_vm.ariaLabel,"width":"16","height":"16","viewBox":"0 0 16 16","fill":"none","xmlns":"http://www.w3.org/2000/svg"}},[_c('circle',{staticClass:"gl-animated-loader-shape gl-animated-loader-shape-1",attrs:{"cx":"8","cy":"8","r":"2","fill":"currentColor","stroke-width":"0"}}),_vm._v(" "),_c('circle',{staticClass:"gl-animated-loader-shape gl-animated-loader-shape-2",attrs:{"cx":"14","cy":"8","r":"2","fill":"currentColor","stroke-width":"0"}}),_vm._v(" "),_c('circle',{staticClass:"gl-animated-loader-shape gl-animated-loader-shape-3",attrs:{"cx":"2","cy":"8","r":"2","fill":"currentColor","stroke-width":"0"}})])};
|
|
14
|
+
var __vue_staticRenderFns__ = [];
|
|
15
|
+
|
|
16
|
+
/* style */
|
|
17
|
+
const __vue_inject_styles__ = undefined;
|
|
18
|
+
/* scoped */
|
|
19
|
+
const __vue_scope_id__ = undefined;
|
|
20
|
+
/* module identifier */
|
|
21
|
+
const __vue_module_identifier__ = undefined;
|
|
22
|
+
/* functional template */
|
|
23
|
+
const __vue_is_functional_template__ = false;
|
|
24
|
+
/* style inject */
|
|
25
|
+
|
|
26
|
+
/* style inject SSR */
|
|
27
|
+
|
|
28
|
+
/* style inject shadow dom */
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const __vue_component__ = __vue_normalize__(
|
|
33
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
34
|
+
__vue_inject_styles__,
|
|
35
|
+
__vue_script__,
|
|
36
|
+
__vue_scope_id__,
|
|
37
|
+
__vue_is_functional_template__,
|
|
38
|
+
__vue_module_identifier__,
|
|
39
|
+
false,
|
|
40
|
+
undefined,
|
|
41
|
+
undefined,
|
|
42
|
+
undefined
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
export default __vue_component__;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { translate } from '../../../../../../utils/i18n';
|
|
2
2
|
import GlSprintf from '../../../../../utilities/sprintf/sprintf';
|
|
3
|
+
import GlAnimatedLoaderIcon from '../../../../../base/animated_icon/animated_loader_icon';
|
|
3
4
|
import { LOADING_TRANSITION_DURATION } from '../../constants';
|
|
4
5
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
5
6
|
|
|
@@ -11,7 +12,8 @@ const i18n = {
|
|
|
11
12
|
var script = {
|
|
12
13
|
name: 'GlDuoChatLoader',
|
|
13
14
|
components: {
|
|
14
|
-
GlSprintf
|
|
15
|
+
GlSprintf,
|
|
16
|
+
GlAnimatedLoaderIcon
|
|
15
17
|
},
|
|
16
18
|
i18n,
|
|
17
19
|
props: {
|
|
@@ -65,8 +67,8 @@ var script = {
|
|
|
65
67
|
const __vue_script__ = script;
|
|
66
68
|
|
|
67
69
|
/* template */
|
|
68
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"duo-chat-loader gl-mt-5 gl-flex gl-items-center"},[
|
|
69
|
-
var __vue_staticRenderFns__ = [
|
|
70
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"duo-chat-loader gl-mt-5 gl-flex gl-items-center gl-gap-3"},[_c('gl-animated-loader-icon',{attrs:{"is-on":true}}),_vm._v(" "),_c('div',[_c('gl-sprintf',{attrs:{"message":_vm.$options.i18n.LOADER_LOADING_MESSAGE},scopedSlots:_vm._u([{key:"tool",fn:function(){return [_c('strong',{attrs:{"data-testid":"tool"}},[_vm._v(_vm._s(_vm.toolName))])]},proxy:true},{key:"transition",fn:function(){return [_c('transition-group',{ref:"transition",staticClass:"transition gl-relative gl-inline-block gl-align-bottom",attrs:{"name":"text"},on:{"after-leave":_vm.computeTransitionWidth}},_vm._l((_vm.$options.i18n.LOADER_LOADING_TRANSITIONS),function(message,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.isCurrentTransition(index)),expression:"isCurrentTransition(index)"}],key:message,ref:_vm.isCurrentTransition(index) ? 'currentTransition' : '',refInFor:true,staticClass:"gl-absolute gl-bottom-0 gl-left-0 gl-whitespace-nowrap",attrs:{"data-testid":_vm.isCurrentTransition(index) ? 'current-transition' : ''}},[_vm._v(_vm._s(message))])}),0)]},proxy:true}])})],1)],1)};
|
|
71
|
+
var __vue_staticRenderFns__ = [];
|
|
70
72
|
|
|
71
73
|
/* style */
|
|
72
74
|
const __vue_inject_styles__ = undefined;
|
package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import throttle from 'lodash/throttle';
|
|
2
2
|
import GlIcon from '../../../../../base/icon/icon';
|
|
3
|
-
import
|
|
3
|
+
import GlAnimatedLoaderIcon from '../../../../../base/animated_icon/animated_loader_icon';
|
|
4
4
|
import { GlTooltipDirective } from '../../../../../../directives/tooltip';
|
|
5
5
|
import GlDuoChatContextItemSelections from '../duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections';
|
|
6
6
|
import GlDuoUserFeedback from '../../../user_feedback/user_feedback';
|
|
@@ -41,7 +41,7 @@ var script = {
|
|
|
41
41
|
GlFormGroup,
|
|
42
42
|
GlFormTextarea,
|
|
43
43
|
GlIcon,
|
|
44
|
-
|
|
44
|
+
GlAnimatedLoaderIcon
|
|
45
45
|
},
|
|
46
46
|
directives: {
|
|
47
47
|
SafeHtml: SafeHtmlDirective,
|
|
@@ -256,7 +256,7 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
|
|
|
256
256
|
_vm.isAssistantMessage,
|
|
257
257
|
'gl-bg-subtle': _vm.isAssistantMessage && !_vm.error,
|
|
258
258
|
'duo-chat-message-with-error gl-bg-red-50': _vm.error,
|
|
259
|
-
},on:{"insert-code-snippet":_vm.onInsertCodeSnippet}},[(_vm.error)?_c('gl-icon',{staticClass:"error-icon gl-border gl-mr-3 gl-shrink-0 gl-rounded-full gl-border-red-500 gl-text-red-600",attrs:{"aria-label":_vm.$options.i18n.MESSAGE_ERROR,"name":"status_warning_borderless","size":16,"data-testid":"error"}}):_vm._e(),_vm._v(" "),_c('div',{ref:"content-wrapper",class:{ 'has-error': _vm.error }},[(_vm.displaySelectedContextItems && _vm.isAssistantMessage)?_c('gl-duo-chat-context-item-selections',{attrs:{"selections":_vm.selectedContextItems,"title":_vm.selectedContextItemsTitle,"default-collapsed":_vm.selectedContextItemsDefaultCollapsed,"variant":"assistant"},on:{"get-content":_vm.onGetContextItemContent}}):_vm._e(),_vm._v(" "),(_vm.error)?_c('div',{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfigExtension]",value:(_vm.renderedError),expression:"renderedError",arg:_vm.$options.safeHtmlConfigExtension}],ref:"error-message"}):_c('div',[_c('div',{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfigExtension]",value:(_vm.messageContent),expression:"messageContent",arg:_vm.$options.safeHtmlConfigExtension}],ref:"content"}),_vm._v(" "),(_vm.isAssistantMessage)?[(_vm.sources)?_c('documentation-sources',{attrs:{"sources":_vm.sources}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"duo-chat-message-feedback gl-mt-4 gl-flex gl-items-end"},[(_vm.isChunkAndNotCancelled)?_c('gl-
|
|
259
|
+
},on:{"insert-code-snippet":_vm.onInsertCodeSnippet}},[(_vm.error)?_c('gl-icon',{staticClass:"error-icon gl-border gl-mr-3 gl-shrink-0 gl-rounded-full gl-border-red-500 gl-text-red-600",attrs:{"aria-label":_vm.$options.i18n.MESSAGE_ERROR,"name":"status_warning_borderless","size":16,"data-testid":"error"}}):_vm._e(),_vm._v(" "),_c('div',{ref:"content-wrapper",class:{ 'has-error': _vm.error }},[(_vm.displaySelectedContextItems && _vm.isAssistantMessage)?_c('gl-duo-chat-context-item-selections',{attrs:{"selections":_vm.selectedContextItems,"title":_vm.selectedContextItemsTitle,"default-collapsed":_vm.selectedContextItemsDefaultCollapsed,"variant":"assistant"},on:{"get-content":_vm.onGetContextItemContent}}):_vm._e(),_vm._v(" "),(_vm.error)?_c('div',{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfigExtension]",value:(_vm.renderedError),expression:"renderedError",arg:_vm.$options.safeHtmlConfigExtension}],ref:"error-message"}):_c('div',[_c('div',{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfigExtension]",value:(_vm.messageContent),expression:"messageContent",arg:_vm.$options.safeHtmlConfigExtension}],ref:"content"}),_vm._v(" "),(_vm.isAssistantMessage)?[(_vm.sources)?_c('documentation-sources',{attrs:{"sources":_vm.sources}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"duo-chat-message-feedback gl-mt-4 gl-flex gl-items-end"},[(_vm.isChunkAndNotCancelled)?_c('gl-animated-loader-icon',{attrs:{"is-on":true}}):_vm._e(),_vm._v(" "),(_vm.isNotChunkOrCancelled)?_c('gl-duo-user-feedback',{attrs:{"feedback-received":_vm.hasFeedback,"modal-title":_vm.$options.i18n.MODAL.TITLE,"modal-alert":_vm.$options.i18n.MODAL.ALERT_TEXT},on:{"feedback":_vm.logEvent},scopedSlots:_vm._u([{key:"feedback-extra-fields",fn:function(){return [_c('gl-form-group',{attrs:{"label":_vm.$options.i18n.MODAL.DID_WHAT,"optional":""}},[_c('gl-form-textarea',{attrs:{"placeholder":_vm.$options.i18n.MODAL.INTERACTION},model:{value:(_vm.didWhat),callback:function ($$v) {_vm.didWhat=$$v;},expression:"didWhat"}})],1),_vm._v(" "),_c('gl-form-group',{attrs:{"label":_vm.$options.i18n.MODAL.IMPROVE_WHAT,"optional":""}},[_c('gl-form-textarea',{attrs:{"placeholder":_vm.$options.i18n.MODAL.BETTER_RESPONSE},model:{value:(_vm.improveWhat),callback:function ($$v) {_vm.improveWhat=$$v;},expression:"improveWhat"}})],1)]},proxy:true}],null,false,419229417)}):_vm._e()],1)]:_vm._e()],2),_vm._v(" "),(_vm.displaySelectedContextItems && _vm.isUserMessage)?_c('gl-duo-chat-context-item-selections',{attrs:{"selections":_vm.selectedContextItems,"title":_vm.selectedContextItemsTitle,"default-collapsed":_vm.selectedContextItemsDefaultCollapsed,"variant":"user"},on:{"get-content":_vm.onGetContextItemContent}}):_vm._e()],1)],1)};
|
|
260
260
|
var __vue_staticRenderFns__ = [];
|
|
261
261
|
|
|
262
262
|
/* style */
|