Commit ecd32e12 authored by Lukas Eipert's avatar Lukas Eipert
Browse files

fix(chat): Update to latest DuoChat

This fixes these issues:

1. Adds rendering of markdown to Duo chat
#1227.
Code blocks are correctly rendered while streaming.
2. Rendering of large strings in the chat:
gitlab#436008
3. We now stick to the bottom while scrolling:
gitlab-ui#2372
parent ae61c112
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -18,14 +18,6 @@ export default {
  components: {
    GlDuoChat,
  },
  provide() {
    return {
      renderMarkdown: content => content,
      renderGFM: element => {
        element.classList.add('gl-markdown', 'gl-compact-markdown');
      },
    };
  },
  data() {
    return {
      chatMessages: [],
+1221 −225

File changed.

Preview size limit exceeded, changes collapsed.

+4 −3
Original line number Diff line number Diff line
@@ -15,14 +15,15 @@
    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
  },
  "dependencies": {
    "@gitlab/ui": "^72.1.0",
    "@gitlab/ui": "^74.4.0",
    "dompurify": "^3.0.5",
    "v-tooltip": "^2.1.3",
    "vue": "^2.7.7"
    "vue": "^2.7.16",
    "vue-template-compiler": "^2.7.16"
  },
  "devDependencies": {
    "@babel/preset-env": "^7.23.8",
    "@babel/core": "^7.23.9",
    "@babel/preset-env": "^7.23.8",
    "@vitejs/plugin-vue2": "^1.1.2",
    "@vue/eslint-config-prettier": "^7.0.0",
    "@vue/test-utils": "^1.3.6",