@gitlab/duo-ui 15.16.0 → 15.16.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/dist/components/agentic_chat/web_agentic_duo_chat.js +6 -0
- package/dist/components/chat/components/duo_chat_message/markdown_renderer.js +5 -1
- package/dist/components/chat/web_duo_chat.js +6 -0
- package/package.json +2 -2
- package/src/components/agentic_chat/web_agentic_duo_chat.vue +6 -0
- package/src/components/chat/components/duo_chat_message/markdown_renderer.vue +9 -1
- package/src/components/chat/web_duo_chat.vue +6 -0
|
@@ -61,6 +61,12 @@ var script = {
|
|
|
61
61
|
directives: {
|
|
62
62
|
SafeHtml: GlSafeHtmlDirective
|
|
63
63
|
},
|
|
64
|
+
provide() {
|
|
65
|
+
return {
|
|
66
|
+
// 'md' applies GitLab's markdown typography styles
|
|
67
|
+
markdownClass: 'md'
|
|
68
|
+
};
|
|
69
|
+
},
|
|
64
70
|
props: {
|
|
65
71
|
/**
|
|
66
72
|
* Determines if the component should be resizable. When true, it renders inside
|
|
@@ -21,6 +21,10 @@ var script = {
|
|
|
21
21
|
renderMarkdown: {
|
|
22
22
|
from: 'renderMarkdown',
|
|
23
23
|
default: () => renderDuoChatMarkdownPreview
|
|
24
|
+
},
|
|
25
|
+
markdownClass: {
|
|
26
|
+
from: 'markdownClass',
|
|
27
|
+
default: ''
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
props: {
|
|
@@ -69,7 +73,7 @@ var script = {
|
|
|
69
73
|
const __vue_script__ = script;
|
|
70
74
|
|
|
71
75
|
/* template */
|
|
72
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfigExtension]",value:(_vm.renderedMarkdown),expression:"renderedMarkdown",arg:_vm.$options.safeHtmlConfigExtension}],ref:"content"})};
|
|
76
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfigExtension]",value:(_vm.renderedMarkdown),expression:"renderedMarkdown",arg:_vm.$options.safeHtmlConfigExtension}],ref:"content",class:_vm.markdownClass})};
|
|
73
77
|
var __vue_staticRenderFns__ = [];
|
|
74
78
|
|
|
75
79
|
/* style */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/duo-ui",
|
|
3
|
-
"version": "15.16.
|
|
3
|
+
"version": "15.16.1",
|
|
4
4
|
"description": "Duo UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@gitlab/fonts": "^1.3.1",
|
|
106
106
|
"@gitlab/stylelint-config": "6.3.0",
|
|
107
107
|
"@gitlab/svgs": "^3.157.0",
|
|
108
|
-
"@gitlab/ui": "^
|
|
108
|
+
"@gitlab/ui": "^130.0.1",
|
|
109
109
|
"@jest/test-sequencer": "^29.7.0",
|
|
110
110
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
111
111
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
@@ -124,6 +124,12 @@ export default {
|
|
|
124
124
|
directives: {
|
|
125
125
|
SafeHtml,
|
|
126
126
|
},
|
|
127
|
+
provide() {
|
|
128
|
+
return {
|
|
129
|
+
// 'md' applies GitLab's markdown typography styles
|
|
130
|
+
markdownClass: 'md',
|
|
131
|
+
};
|
|
132
|
+
},
|
|
127
133
|
props: {
|
|
128
134
|
/**
|
|
129
135
|
* Determines if the component should be resizable. When true, it renders inside
|
|
@@ -23,6 +23,10 @@ export default {
|
|
|
23
23
|
from: 'renderMarkdown',
|
|
24
24
|
default: () => renderDuoChatMarkdownPreview,
|
|
25
25
|
},
|
|
26
|
+
markdownClass: {
|
|
27
|
+
from: 'markdownClass',
|
|
28
|
+
default: '',
|
|
29
|
+
},
|
|
26
30
|
},
|
|
27
31
|
props: {
|
|
28
32
|
markdown: {
|
|
@@ -67,5 +71,9 @@ export default {
|
|
|
67
71
|
};
|
|
68
72
|
</script>
|
|
69
73
|
<template>
|
|
70
|
-
<div
|
|
74
|
+
<div
|
|
75
|
+
ref="content"
|
|
76
|
+
v-safe-html:[$options.safeHtmlConfigExtension]="renderedMarkdown"
|
|
77
|
+
:class="markdownClass"
|
|
78
|
+
></div>
|
|
71
79
|
</template>
|