@kg-ui/kg-ui-plus 0.1.6 → 0.1.8

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.
Files changed (63) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
  3. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
  4. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
  5. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
  6. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
  7. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
  8. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
  9. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
  10. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
  11. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
  12. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
  13. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +5 -10
  14. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
  15. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
  16. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
  17. package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
  18. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +17 -60
  19. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
  20. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
  21. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
  22. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +1 -1
  23. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
  24. package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
  25. package/dist/es/KgCopilot/dialogue/messageParse/index.vue2.mjs +95 -30
  26. package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
  27. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
  28. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +2 -2
  29. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
  30. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  31. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  32. package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
  33. package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
  34. package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
  35. package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
  36. package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
  37. package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
  38. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
  39. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
  40. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
  41. package/dist/es/home/LProject/index.vue.mjs +1 -1
  42. package/dist/es/home/LProject/index.vue3.mjs +2 -2
  43. package/dist/es/home/index.vue.mjs +1 -1
  44. package/dist/es/home/index.vue3.mjs +2 -2
  45. package/dist/es/node_modules/.pnpm/{dompurify@3.0.10 → dompurify@3.1.5}/node_modules/dompurify/dist/purify.es.mjs +48 -11
  46. package/dist/es/node_modules/.pnpm/{marked@12.0.1 → marked@12.0.2}/node_modules/marked/lib/marked.esm.mjs +2 -1
  47. package/dist/es/store/modules/copilot.mjs +16 -4
  48. package/dist/es/style.css +1 -1
  49. package/package.json +123 -123
  50. package/dist/es/KgCopilot/CopiFooter/SearchInput/SpeechControl.vue.mjs +0 -7
  51. package/dist/es/KgCopilot/CopiFooter/SearchInput/SpeechControl.vue2.mjs +0 -33
  52. package/dist/es/KgCopilot/CopiFooter/SearchInput/SpeechControl.vue3.mjs +0 -4
  53. package/dist/es/KgCopilot/CopiFooter/SearchInput/Upload.vue.mjs +0 -7
  54. package/dist/es/KgCopilot/CopiFooter/SearchInput/Upload.vue2.mjs +0 -140
  55. package/dist/es/KgCopilot/CopiFooter/SearchInput/Upload.vue3.mjs +0 -4
  56. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +0 -8
  57. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +0 -8
  58. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +0 -8
  59. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +0 -8
  60. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +0 -8
  61. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +0 -8
  62. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +0 -8
  63. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +0 -8
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # 星光探索-组件库
2
-
3
- ## 基于vue3 elemet-plus封装的组件库
1
+ # 星光探索-组件库
2
+
3
+ ## 基于vue3 elemet-plus封装的组件库
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./AnswerHead.vue2.mjs";
2
2
  import "./AnswerHead.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7714b264"]]);
4
+ const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79b56717"]]);
5
5
  export {
6
6
  AnswerHead as default
7
7
  };
@@ -3,7 +3,7 @@ import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
3
3
  import { storeToRefs } from "pinia";
4
4
  const _hoisted_1 = { class: "answer" };
5
5
  const _hoisted_2 = { class: "icon" };
6
- const _hoisted_3 = /* @__PURE__ */ createStaticVNode('<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-7714b264><g clip-path="url(#clip0_3984_10372)" data-v-7714b264><path d="M35.1201 6.46024C34.4524 4.39741 32.5312 3 30.363 3L28.7093 3C26.2926 3 24.2217 4.72855 23.7898 7.10639L21.448 19.9984L22.1587 17.5866C22.7854 15.46 24.7377 14 26.9548 14H35.2947L38.8884 15.7857L42.3527 14H41.1975C39.0293 14 37.1082 12.6026 36.4405 10.5398L35.1201 6.46024Z" fill="url(#paint0_radial_3984_10372)" data-v-7714b264></path><path d="M13.3948 41.5178C14.0556 43.5918 15.9822 45 18.1589 45H21.397C24.1428 45 26.3748 42.7858 26.3968 40.0401L26.4921 28.1641L25.8179 30.428C25.1866 32.5478 23.2377 34.0009 21.0259 34.0009L12.623 34.0009L9.54267 31.9459L6.20776 34.0009H7.34528C9.52197 34.0009 11.4486 35.4091 12.1093 37.4831L13.3948 41.5178Z" fill="url(#paint1_radial_3984_10372)" data-v-7714b264></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint2_linear_3984_10372)" data-v-7714b264></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint3_linear_3984_10372)" data-v-7714b264></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint4_radial_3984_10372)" data-v-7714b264></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint5_linear_3984_10372)" data-v-7714b264></path></g><defs data-v-7714b264><radialGradient id="paint0_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(39.3087 20.1095) rotate(-130.498) scale(18.242 17.2825)" data-v-7714b264><stop offset="0.0955758" stop-color="#00AEFF" data-v-7714b264></stop><stop offset="0.773185" stop-color="#2253CE" data-v-7714b264></stop><stop offset="1" stop-color="#0736C4" data-v-7714b264></stop></radialGradient><radialGradient id="paint1_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(9.88779 33.7078) rotate(50.1259) scale(16.5438 16.2528)" data-v-7714b264><stop stop-color="#FFB657" data-v-7714b264></stop><stop offset="0.633728" stop-color="#FF5F3D" data-v-7714b264></stop><stop offset="0.923392" stop-color="#C02B3C" data-v-7714b264></stop></radialGradient><linearGradient id="paint2_linear_3984_10372" x1="11.4526" y1="6.75624" x2="13.8689" y2="35.1765" gradientUnits="userSpaceOnUse" data-v-7714b264><stop offset="0.156162" stop-color="#0D91E1" data-v-7714b264></stop><stop offset="0.487484" stop-color="#52B471" data-v-7714b264></stop><stop offset="0.652394" stop-color="#98BD42" data-v-7714b264></stop><stop offset="0.937361" stop-color="#FFC800" data-v-7714b264></stop></linearGradient><linearGradient id="paint3_linear_3984_10372" x1="13.6347" y1="3" x2="14.954" y2="34.0019" gradientUnits="userSpaceOnUse" data-v-7714b264><stop stop-color="#3DCBFF" data-v-7714b264></stop><stop offset="0.246674" stop-color="#0588F7" stop-opacity="0" data-v-7714b264></stop></linearGradient><radialGradient id="paint4_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.8953 10.9649) rotate(109.574) scale(41.2667 50.0822)" data-v-7714b264><stop offset="0.0661714" stop-color="#8C48FF" data-v-7714b264></stop><stop offset="0.5" stop-color="#F2598A" data-v-7714b264></stop><stop offset="0.895833" stop-color="#FFB152" data-v-7714b264></stop></radialGradient><linearGradient id="paint5_linear_3984_10372" x1="44.2778" y1="12.1074" x2="44.2606" y2="20.5507" gradientUnits="userSpaceOnUse" data-v-7714b264><stop offset="0.0581535" stop-color="#F8ADFA" data-v-7714b264></stop><stop offset="0.708063" stop-color="#A86EDD" stop-opacity="0" data-v-7714b264></stop></linearGradient><clipPath id="clip0_3984_10372" data-v-7714b264><rect width="48" height="48" fill="white" data-v-7714b264></rect></clipPath></defs></svg>', 1);
6
+ const _hoisted_3 = /* @__PURE__ */ createStaticVNode('<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-79b56717><g clip-path="url(#clip0_3984_10372)" data-v-79b56717><path d="M35.1201 6.46024C34.4524 4.39741 32.5312 3 30.363 3L28.7093 3C26.2926 3 24.2217 4.72855 23.7898 7.10639L21.448 19.9984L22.1587 17.5866C22.7854 15.46 24.7377 14 26.9548 14H35.2947L38.8884 15.7857L42.3527 14H41.1975C39.0293 14 37.1082 12.6026 36.4405 10.5398L35.1201 6.46024Z" fill="url(#paint0_radial_3984_10372)" data-v-79b56717></path><path d="M13.3948 41.5178C14.0556 43.5918 15.9822 45 18.1589 45H21.397C24.1428 45 26.3748 42.7858 26.3968 40.0401L26.4921 28.1641L25.8179 30.428C25.1866 32.5478 23.2377 34.0009 21.0259 34.0009L12.623 34.0009L9.54267 31.9459L6.20776 34.0009H7.34528C9.52197 34.0009 11.4486 35.4091 12.1093 37.4831L13.3948 41.5178Z" fill="url(#paint1_radial_3984_10372)" data-v-79b56717></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint2_linear_3984_10372)" data-v-79b56717></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint3_linear_3984_10372)" data-v-79b56717></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint4_radial_3984_10372)" data-v-79b56717></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint5_linear_3984_10372)" data-v-79b56717></path></g><defs data-v-79b56717><radialGradient id="paint0_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(39.3087 20.1095) rotate(-130.498) scale(18.242 17.2825)" data-v-79b56717><stop offset="0.0955758" stop-color="#00AEFF" data-v-79b56717></stop><stop offset="0.773185" stop-color="#2253CE" data-v-79b56717></stop><stop offset="1" stop-color="#0736C4" data-v-79b56717></stop></radialGradient><radialGradient id="paint1_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(9.88779 33.7078) rotate(50.1259) scale(16.5438 16.2528)" data-v-79b56717><stop stop-color="#FFB657" data-v-79b56717></stop><stop offset="0.633728" stop-color="#FF5F3D" data-v-79b56717></stop><stop offset="0.923392" stop-color="#C02B3C" data-v-79b56717></stop></radialGradient><linearGradient id="paint2_linear_3984_10372" x1="11.4526" y1="6.75624" x2="13.8689" y2="35.1765" gradientUnits="userSpaceOnUse" data-v-79b56717><stop offset="0.156162" stop-color="#0D91E1" data-v-79b56717></stop><stop offset="0.487484" stop-color="#52B471" data-v-79b56717></stop><stop offset="0.652394" stop-color="#98BD42" data-v-79b56717></stop><stop offset="0.937361" stop-color="#FFC800" data-v-79b56717></stop></linearGradient><linearGradient id="paint3_linear_3984_10372" x1="13.6347" y1="3" x2="14.954" y2="34.0019" gradientUnits="userSpaceOnUse" data-v-79b56717><stop stop-color="#3DCBFF" data-v-79b56717></stop><stop offset="0.246674" stop-color="#0588F7" stop-opacity="0" data-v-79b56717></stop></linearGradient><radialGradient id="paint4_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.8953 10.9649) rotate(109.574) scale(41.2667 50.0822)" data-v-79b56717><stop offset="0.0661714" stop-color="#8C48FF" data-v-79b56717></stop><stop offset="0.5" stop-color="#F2598A" data-v-79b56717></stop><stop offset="0.895833" stop-color="#FFB152" data-v-79b56717></stop></radialGradient><linearGradient id="paint5_linear_3984_10372" x1="44.2778" y1="12.1074" x2="44.2606" y2="20.5507" gradientUnits="userSpaceOnUse" data-v-79b56717><stop offset="0.0581535" stop-color="#F8ADFA" data-v-79b56717></stop><stop offset="0.708063" stop-color="#A86EDD" stop-opacity="0" data-v-79b56717></stop></linearGradient><clipPath id="clip0_3984_10372" data-v-79b56717><rect width="48" height="48" fill="white" data-v-79b56717></rect></clipPath></defs></svg>', 1);
7
7
  const _hoisted_4 = { class: "head-label" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "AnswerHead",
@@ -1,4 +1,4 @@
1
- const AnswerHead_vue_vue_type_style_index_0_scoped_7714b264_lang = "";
1
+ const AnswerHead_vue_vue_type_style_index_0_scoped_79b56717_lang = "";
2
2
  export {
3
- AnswerHead_vue_vue_type_style_index_0_scoped_7714b264_lang as default
3
+ AnswerHead_vue_vue_type_style_index_0_scoped_79b56717_lang as default
4
4
  };
@@ -2,7 +2,7 @@ import { openBlock, createElementBlock, pushScopeId, popScopeId, createElementVN
2
2
  import "./UserHead.vue2.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  const _sfc_main = {};
5
- const _withScopeId = (n) => (pushScopeId("data-v-1975030b"), n = n(), popScopeId(), n);
5
+ const _withScopeId = (n) => (pushScopeId("data-v-e25476bb"), n = n(), popScopeId(), n);
6
6
  const _hoisted_1 = { class: "user" };
7
7
  const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "icon header-avatar rounded-full" }, [
8
8
  /* @__PURE__ */ createElementVNode("svg", {
@@ -20,7 +20,7 @@ const _hoisted_4 = [
20
20
  function _sfc_render(_ctx, _cache) {
21
21
  return openBlock(), createElementBlock("div", _hoisted_1, _hoisted_4);
22
22
  }
23
- const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1975030b"]]);
23
+ const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e25476bb"]]);
24
24
  export {
25
25
  UserHead as default
26
26
  };
@@ -1,4 +1,4 @@
1
- const UserHead_vue_vue_type_style_index_0_scoped_1975030b_lang = "";
1
+ const UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang = "";
2
2
  export {
3
- UserHead_vue_vue_type_style_index_0_scoped_1975030b_lang as default
3
+ UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./NewTheme.vue2.mjs";
2
2
  import "./NewTheme.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b959a5ee"]]);
4
+ const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e4530874"]]);
5
5
  export {
6
6
  NewTheme as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent, ref, watch, openBlock, createElementBlock, createEleme
2
2
  import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
3
3
  import { storeToRefs } from "pinia";
4
4
  const _hoisted_1 = { class: "outside-left-container" };
5
- const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="button-compose-content" data-v-b959a5ee><div class="button-compose-icon" data-v-b959a5ee><svg class="button-compose-icon" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-b959a5ee><path fill="#fff" d="M12 2C17.5228 2 22 6.47715 22 12C22 12.2628 21.9899 12.5232 21.97 12.7809C21.5319 12.3658 21.0361 12.0111 20.4958 11.73C20.3532 7.16054 16.6041 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 13.4696 3.87277 14.8834 4.57303 16.1375L4.72368 16.4072L3.61096 20.3914L7.59755 19.2792L7.86709 19.4295C9.04305 20.0852 10.3592 20.4531 11.73 20.4958C12.0111 21.0361 12.3658 21.5319 12.7809 21.97C12.5232 21.9899 12.2628 22 12 22C10.3817 22 8.81782 21.6146 7.41286 20.888L3.58704 21.9553C2.92212 22.141 2.23258 21.7525 2.04691 21.0876C1.98546 20.8676 1.98549 20.6349 2.04695 20.4151L3.11461 16.5922C2.38637 15.186 2 13.6203 2 12C2 6.47715 6.47715 2 12 2ZM23 17.5C23 14.4624 20.5376 12 17.5 12C14.4624 12 12 14.4624 12 17.5C12 20.5376 14.4624 23 17.5 23C20.5376 23 23 20.5376 23 17.5ZM18.0006 18L18.0011 20.5035C18.0011 20.7797 17.7773 21.0035 17.5011 21.0035C17.225 21.0035 17.0011 20.7797 17.0011 20.5035L17.0006 18H14.4956C14.2197 18 13.9961 17.7762 13.9961 17.5C13.9961 17.2239 14.2197 17 14.4956 17H17.0005L17 14.4993C17 14.2231 17.2239 13.9993 17.5 13.9993C17.7761 13.9993 18 14.2231 18 14.4993L18.0005 17H20.4966C20.7725 17 20.9961 17.2239 20.9961 17.5C20.9961 17.7762 20.7725 18 20.4966 18H18.0006Z" data-v-b959a5ee></path></svg></div><div class="button-compose-text" data-v-b959a5ee>新主题</div></div>', 1);
5
+ const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="button-compose-content" data-v-e4530874><div class="button-compose-icon" data-v-e4530874><svg class="button-compose-icon" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-e4530874><path fill="#fff" d="M12 2C17.5228 2 22 6.47715 22 12C22 12.2628 21.9899 12.5232 21.97 12.7809C21.5319 12.3658 21.0361 12.0111 20.4958 11.73C20.3532 7.16054 16.6041 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 13.4696 3.87277 14.8834 4.57303 16.1375L4.72368 16.4072L3.61096 20.3914L7.59755 19.2792L7.86709 19.4295C9.04305 20.0852 10.3592 20.4531 11.73 20.4958C12.0111 21.0361 12.3658 21.5319 12.7809 21.97C12.5232 21.9899 12.2628 22 12 22C10.3817 22 8.81782 21.6146 7.41286 20.888L3.58704 21.9553C2.92212 22.141 2.23258 21.7525 2.04691 21.0876C1.98546 20.8676 1.98549 20.6349 2.04695 20.4151L3.11461 16.5922C2.38637 15.186 2 13.6203 2 12C2 6.47715 6.47715 2 12 2ZM23 17.5C23 14.4624 20.5376 12 17.5 12C14.4624 12 12 14.4624 12 17.5C12 20.5376 14.4624 23 17.5 23C20.5376 23 23 20.5376 23 17.5ZM18.0006 18L18.0011 20.5035C18.0011 20.7797 17.7773 21.0035 17.5011 21.0035C17.225 21.0035 17.0011 20.7797 17.0011 20.5035L17.0006 18H14.4956C14.2197 18 13.9961 17.7762 13.9961 17.5C13.9961 17.2239 14.2197 17 14.4956 17H17.0005L17 14.4993C17 14.2231 17.2239 13.9993 17.5 13.9993C17.7761 13.9993 18 14.2231 18 14.4993L18.0005 17H20.4966C20.7725 17 20.9961 17.2239 20.9961 17.5C20.9961 17.7762 20.7725 18 20.4966 18H18.0006Z" data-v-e4530874></path></svg></div><div class="button-compose-text" data-v-e4530874>新主题</div></div>', 1);
6
6
  const _hoisted_3 = [
7
7
  _hoisted_2
8
8
  ];
@@ -1,4 +1,4 @@
1
- const NewTheme_vue_vue_type_style_index_0_scoped_b959a5ee_lang = "";
1
+ const NewTheme_vue_vue_type_style_index_0_scoped_e4530874_lang = "";
2
2
  export {
3
- NewTheme_vue_vue_type_style_index_0_scoped_b959a5ee_lang as default
3
+ NewTheme_vue_vue_type_style_index_0_scoped_e4530874_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SelectPluginByKey.vue2.mjs";
2
2
  import "./SelectPluginByKey.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const SelectPluginByKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-60319410"]]);
4
+ const SelectPluginByKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-33128106"]]);
5
5
  export {
6
6
  SelectPluginByKey as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const SelectPluginByKey_vue_vue_type_style_index_0_scoped_60319410_lang = "";
1
+ const SelectPluginByKey_vue_vue_type_style_index_0_scoped_33128106_lang = "";
2
2
  export {
3
- SelectPluginByKey_vue_vue_type_style_index_0_scoped_60319410_lang as default
3
+ SelectPluginByKey_vue_vue_type_style_index_0_scoped_33128106_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-89f2c40e"]]);
4
+ const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5442084b"]]);
5
5
  export {
6
6
  SearchInput as default
7
7
  };
@@ -1,13 +1,11 @@
1
1
  import { defineComponent, ref, onMounted, watch, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withModifiers, toDisplayString, normalizeClass, unref, createCommentVNode, withKeys, normalizeStyle, createTextVNode, pushScopeId, popScopeId } from "vue";
2
- import Upload from "./Upload.vue.mjs";
3
2
  import data from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs";
4
3
  import NewTheme from "./NewTheme.vue.mjs";
5
4
  import { filterPluginByPinyin } from "../../../utils/home.mjs";
6
- import SpeechControl from "./SpeechControl.vue.mjs";
7
5
  import SelectPluginByKey from "./SelectPluginByKey.vue.mjs";
8
6
  import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
9
7
  import { storeToRefs } from "pinia";
10
- const _withScopeId = (n) => (pushScopeId("data-v-89f2c40e"), n = n(), popScopeId(), n);
8
+ const _withScopeId = (n) => (pushScopeId("data-v-5442084b"), n = n(), popScopeId(), n);
11
9
  const _hoisted_1 = { class: "control-contain" };
12
10
  const _hoisted_2 = ["onClick"];
13
11
  const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
@@ -42,7 +40,7 @@ const _hoisted_11 = {
42
40
  };
43
41
  const _hoisted_12 = ["onKeydown"];
44
42
  const _hoisted_13 = { class: "bottom-controls" };
45
- const _hoisted_14 = { class: "bottom-left-controls" };
43
+ const _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-left-controls" }, null, -1));
46
44
  const _hoisted_15 = { class: "bottom-right-controls" };
47
45
  const _hoisted_16 = { class: "text-sum" };
48
46
  const _hoisted_17 = {
@@ -356,7 +354,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
356
354
  ref_key: "coptInput",
357
355
  ref: coptInput,
358
356
  class: "text-area",
359
- contenteditable: "plaintext-only",
357
+ contenteditable: "true",
360
358
  placeholder: "输入“@”选择智能体,可通过上下键切换,回车选中",
361
359
  spellcheck: "false",
362
360
  onInput: inputChange,
@@ -366,13 +364,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
366
364
  ],
367
365
  onCompositionstart: handleCompositionStart,
368
366
  onCompositionend: handleCompositionEnd
369
- }, toDisplayString(unref(searchText)), 41, _hoisted_12),
370
- createVNode(SpeechControl)
367
+ }, null, 40, _hoisted_12)
371
368
  ]),
372
369
  createElementVNode("div", _hoisted_13, [
373
- createElementVNode("div", _hoisted_14, [
374
- createVNode(Upload, { type: "pic" })
375
- ]),
370
+ _hoisted_14,
376
371
  createElementVNode("div", _hoisted_15, [
377
372
  createElementVNode("span", _hoisted_16, [
378
373
  createElementVNode("span", {
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_89f2c40e_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_5442084b_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_89f2c40e_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_5442084b_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b9fb0810"]]);
4
+ const CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5b3f494"]]);
5
5
  export {
6
6
  CopiFooter as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_b9fb0810_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_e5b3f494_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_b9fb0810_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_e5b3f494_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const dialogue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1d2ef1c0"]]);
4
+ const dialogue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-09cccaee"]]);
5
5
  export {
6
6
  dialogue as default
7
7
  };
@@ -2,16 +2,11 @@ import { defineComponent, ref, resolveComponent, openBlock, createElementBlock,
2
2
  import MessageParse from "./messageParse/index.vue.mjs";
3
3
  import UserHead from "../CopiContent/UserHead.vue.mjs";
4
4
  import AnswerHead from "../CopiContent/AnswerHead.vue.mjs";
5
- import data$3 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs";
6
- import data$5 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs";
7
- import data$1 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs";
8
- import data$2 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs";
9
- import data$4 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs";
10
- import data$6 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs";
5
+ import data$1 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs";
11
6
  import data from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/caret-down-fill.mjs";
12
7
  import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
13
8
  import { storeToRefs } from "pinia";
14
- const _withScopeId = (n) => (pushScopeId("data-v-1d2ef1c0"), n = n(), popScopeId(), n);
9
+ const _withScopeId = (n) => (pushScopeId("data-v-09cccaee"), n = n(), popScopeId(), n);
15
10
  const _hoisted_1 = { class: "msg-head" };
16
11
  const _hoisted_2 = { class: "msg-box" };
17
12
  const _hoisted_3 = {
@@ -20,33 +15,12 @@ const _hoisted_3 = {
20
15
  };
21
16
  const _hoisted_4 = { style: { "cursor": "pointer" } };
22
17
  const _hoisted_5 = {
23
- key: 0,
24
- class: "icon-operates"
25
- };
26
- const _hoisted_6 = {
27
- class: "icon-item",
28
- title: "点赞"
29
- };
30
- const _hoisted_7 = {
31
- class: "icon-item",
32
- title: "不喜欢"
33
- };
34
- const _hoisted_8 = {
35
- class: "icon-item",
36
- title: "复制"
37
- };
38
- const _hoisted_9 = {
39
- class: "icon-item",
40
- title: "导出"
41
- };
42
- const _hoisted_10 = {
43
- class: "icon-item",
44
- title: "播放"
18
+ class: /* @__PURE__ */ normalizeClass({ "plugs-answer": true })
45
19
  };
46
- const _hoisted_11 = { class: "stop-dialogue" };
47
- const _hoisted_12 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "gray-line" }, null, -1));
48
- const _hoisted_13 = { class: "title" };
49
- const _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "gray-line" }, null, -1));
20
+ const _hoisted_6 = { class: "stop-dialogue" };
21
+ const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "gray-line" }, null, -1));
22
+ const _hoisted_8 = { class: "title" };
23
+ const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "gray-line" }, null, -1));
50
24
  const _sfc_main = /* @__PURE__ */ defineComponent({
51
25
  __name: "index",
52
26
  setup(__props) {
@@ -108,48 +82,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
108
82
  }, null, 8, ["icon", "onClick", "class"])
109
83
  ])
110
84
  ])) : createCommentVNode("", true),
111
- createElementVNode("div", {
112
- class: normalizeClass({ "plugs-answer": true, "is-shrink": item.isShrink })
113
- }, [
85
+ createElementVNode("div", _hoisted_5, [
114
86
  createVNode(MessageParse, {
115
87
  msgs: item.msgs,
88
+ plusName: item.plusName,
116
89
  onPrintOk: printOk,
90
+ isShrink: item.isShrink,
117
91
  isPrinting: item.needPrinting,
118
92
  "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
119
93
  scrollToBottom
120
- }, null, 8, ["msgs", "isPrinting", "onUpdate:isPrinting"]),
121
- !item.isSend && !item.needPrinting && item.showOpt ? (openBlock(), createElementBlock("div", _hoisted_5, [
122
- createElementVNode("div", _hoisted_6, [
123
- createVNode(_component_IconifyIconOffline, { icon: unref(data$1) }, null, 8, ["icon"])
124
- ]),
125
- createElementVNode("div", _hoisted_7, [
126
- createVNode(_component_IconifyIconOffline, { icon: unref(data$2) }, null, 8, ["icon"])
127
- ]),
128
- createElementVNode("div", _hoisted_8, [
129
- createVNode(_component_IconifyIconOffline, { icon: unref(data$3) }, null, 8, ["icon"])
130
- ]),
131
- createElementVNode("div", _hoisted_9, [
132
- createVNode(_component_IconifyIconOffline, { icon: unref(data$4) }, null, 8, ["icon"])
133
- ]),
134
- createElementVNode("div", _hoisted_10, [
135
- createVNode(_component_IconifyIconOffline, { icon: unref(data$5) }, null, 8, ["icon"])
136
- ])
137
- ])) : createCommentVNode("", true)
138
- ], 2)
94
+ }, null, 8, ["msgs", "plusName", "isShrink", "isPrinting", "onUpdate:isPrinting"])
95
+ ])
139
96
  ], 2)
140
97
  ])
141
98
  ]);
142
99
  }), 128)),
143
- withDirectives(createElementVNode("div", _hoisted_11, [
144
- _hoisted_12,
145
- createElementVNode("div", _hoisted_13, [
100
+ withDirectives(createElementVNode("div", _hoisted_6, [
101
+ _hoisted_7,
102
+ createElementVNode("div", _hoisted_8, [
146
103
  createVNode(_component_IconifyIconOffline, {
147
- icon: unref(data$6),
104
+ icon: unref(data$1),
148
105
  class: "stop-icon"
149
106
  }, null, 8, ["icon"]),
150
107
  createTextVNode(" 很抱歉,此对话已达到其限制。让我们开始新的聊天。 ")
151
108
  ]),
152
- _hoisted_14
109
+ _hoisted_9
153
110
  ], 512), [
154
111
  [vShow, unref(stopDialogue)]
155
112
  ])
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_1d2ef1c0_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_09cccaee_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_1d2ef1c0_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_09cccaee_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./edit.vue2.mjs";
2
2
  import "./edit.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c85f484"]]);
4
+ const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-86d77442"]]);
5
5
  export {
6
6
  Edit as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const edit_vue_vue_type_style_index_0_scoped_5c85f484_lang = "";
1
+ const edit_vue_vue_type_style_index_0_scoped_86d77442_lang = "";
2
2
  export {
3
- edit_vue_vue_type_style_index_0_scoped_5c85f484_lang as default
3
+ edit_vue_vue_type_style_index_0_scoped_86d77442_lang as default
4
4
  };
@@ -87,7 +87,7 @@ const _sfc_main = {
87
87
  };
88
88
  }
89
89
  };
90
- const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9ceb0a57"]]);
90
+ const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ecb4b657"]]);
91
91
  export {
92
92
  FileBox as default
93
93
  };
@@ -1,4 +1,4 @@
1
- const fileBox_vue_vue_type_style_index_0_scoped_9ceb0a57_lang = "";
1
+ const fileBox_vue_vue_type_style_index_0_scoped_ecb4b657_lang = "";
2
2
  export {
3
- fileBox_vue_vue_type_style_index_0_scoped_9ceb0a57_lang as default
3
+ fileBox_vue_vue_type_style_index_0_scoped_ecb4b657_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-929a2332"]]);
4
+ const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-636ffe03"]]);
5
5
  export {
6
6
  MessageParse as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, watch, ref, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, watch, ref, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, renderList, unref, createBlock, createCommentVNode } from "vue";
2
2
  import { useCopilotStoreHook, DataType } from "../../../store/modules/copilot.mjs";
3
3
  import ReadMd from "./readMd.vue.mjs";
4
4
  import Edit from "./edit.vue.mjs";
@@ -9,6 +9,11 @@ const _hoisted_1 = {
9
9
  key: 3,
10
10
  class: "cursor"
11
11
  };
12
+ const _hoisted_2 = { key: 0 };
13
+ const _hoisted_3 = {
14
+ key: 3,
15
+ class: "cursor"
16
+ };
12
17
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
18
  __name: "index",
14
19
  props: {
@@ -25,6 +30,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
30
  type: Function,
26
31
  default: () => {
27
32
  }
33
+ },
34
+ isShrink: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+ plusName: {
39
+ type: String,
40
+ default: ""
28
41
  }
29
42
  },
30
43
  emits: ["update:isPrinting", "printOk", "update:msgs"],
@@ -42,9 +55,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
55
  }
43
56
  );
44
57
  const current = ref(1);
58
+ const firstResIndex = ref(props.msgs.length);
59
+ const notResultDom = ref(null);
60
+ const dealHeight = () => {
61
+ if (!props.isShrink && props.plusName) {
62
+ notResultDom.value.style.height = "auto";
63
+ const height = notResultDom.value.clientHeight;
64
+ notResultDom.value.style.height = height + "px";
65
+ }
66
+ props.scrollToBottom();
67
+ };
45
68
  watch(
46
69
  () => props.msgs.length,
47
70
  () => {
71
+ const resIndex = props.msgs.findIndex((item) => item.isResult);
72
+ firstResIndex.value = resIndex < 0 ? props.msgs.length : resIndex;
48
73
  if (current.value < props.msgs.length && !props.msgs[current.value - 1].needPrinting) {
49
74
  current.value++;
50
75
  }
@@ -75,36 +100,76 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
75
100
  }
76
101
  };
77
102
  return (_ctx, _cache) => {
78
- return openBlock(true), createElementBlock(Fragment, null, renderList(props.msgs, (item, index) => {
79
- return openBlock(), createElementBlock(Fragment, {
80
- key: item.uuid
103
+ return openBlock(), createElementBlock(Fragment, null, [
104
+ createElementVNode("div", {
105
+ class: normalizeClass({ "is-shrink": props.isShrink, "not-result": true }),
106
+ ref_key: "notResultDom",
107
+ ref: notResultDom
81
108
  }, [
82
- index < current.value && item.type === unref(DataType)[unref(DataType).text] ? (openBlock(), createBlock(ReadMd, {
83
- key: 0,
84
- text: item.content,
85
- scrollToBottom: props.scrollToBottom,
86
- isPrinting: item.needPrinting,
87
- "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
88
- onPrintOk: printOk
89
- }, null, 8, ["text", "scrollToBottom", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
90
- index < current.value && item.type === unref(DataType)[unref(DataType).edit] ? (openBlock(), createBlock(Edit, {
91
- key: 1,
92
- content: item.content,
93
- scrollToBottom: props.scrollToBottom,
94
- isPrinting: item.needPrinting,
95
- "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
96
- onPrintOk: printOk
97
- }, null, 8, ["content", "scrollToBottom", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
98
- index < current.value && item.type === unref(DataType)[unref(DataType).file] ? (openBlock(), createBlock(FileBox, {
99
- key: 2,
100
- desc: item.content,
101
- isPrinting: item.needPrinting,
102
- "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
103
- onPrintOk: printOk
104
- }, null, 8, ["desc", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
105
- props.isPrinting && index === current.value - 1 && !item.needPrinting ? (openBlock(), createElementBlock("span", _hoisted_1)) : createCommentVNode("", true)
106
- ], 64);
107
- }), 128);
109
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.msgs, (item, index) => {
110
+ return openBlock(), createElementBlock(Fragment, {
111
+ key: item.uuid
112
+ }, [
113
+ index < current.value && item.type === unref(DataType)[unref(DataType).text] && !item.isResult ? (openBlock(), createBlock(ReadMd, {
114
+ key: 0,
115
+ text: item.content,
116
+ scrollToBottom: dealHeight,
117
+ isPrinting: item.needPrinting,
118
+ "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
119
+ onPrintOk: printOk
120
+ }, null, 8, ["text", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
121
+ index < current.value && item.type === unref(DataType)[unref(DataType).edit] && !item.isResult ? (openBlock(), createBlock(Edit, {
122
+ key: 1,
123
+ content: item.content,
124
+ scrollToBottom: dealHeight,
125
+ isPrinting: item.needPrinting,
126
+ "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
127
+ onPrintOk: printOk
128
+ }, null, 8, ["content", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
129
+ index < current.value && item.type === unref(DataType)[unref(DataType).file] && !item.isResult ? (openBlock(), createBlock(FileBox, {
130
+ key: 2,
131
+ desc: item.content,
132
+ isPrinting: item.needPrinting,
133
+ "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
134
+ onPrintOk: printOk
135
+ }, null, 8, ["desc", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
136
+ props.isPrinting && index === current.value - 1 && !item.needPrinting && current.value <= firstResIndex.value ? (openBlock(), createElementBlock("span", _hoisted_1)) : createCommentVNode("", true)
137
+ ], 64);
138
+ }), 128))
139
+ ], 2),
140
+ current.value > firstResIndex.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
141
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.msgs, (item, index) => {
142
+ return openBlock(), createElementBlock(Fragment, {
143
+ key: item.uuid
144
+ }, [
145
+ index < current.value && item.type === unref(DataType)[unref(DataType).text] && item.isResult ? (openBlock(), createBlock(ReadMd, {
146
+ key: 0,
147
+ text: item.content,
148
+ scrollToBottom: props.scrollToBottom,
149
+ isPrinting: item.needPrinting,
150
+ "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
151
+ onPrintOk: printOk
152
+ }, null, 8, ["text", "scrollToBottom", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
153
+ index < current.value && item.type === unref(DataType)[unref(DataType).edit] && item.isResult ? (openBlock(), createBlock(Edit, {
154
+ key: 1,
155
+ content: item.content,
156
+ scrollToBottom: props.scrollToBottom,
157
+ isPrinting: item.needPrinting,
158
+ "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
159
+ onPrintOk: printOk
160
+ }, null, 8, ["content", "scrollToBottom", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
161
+ index < current.value && item.type === unref(DataType)[unref(DataType).file] && item.isResult ? (openBlock(), createBlock(FileBox, {
162
+ key: 2,
163
+ desc: item.content,
164
+ isPrinting: item.needPrinting,
165
+ "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
166
+ onPrintOk: printOk
167
+ }, null, 8, ["desc", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
168
+ props.isPrinting && index === current.value - 1 && !item.needPrinting ? (openBlock(), createElementBlock("span", _hoisted_3)) : createCommentVNode("", true)
169
+ ], 64);
170
+ }), 128))
171
+ ])) : createCommentVNode("", true)
172
+ ], 64);
108
173
  };
109
174
  }
110
175
  });
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_929a2332_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_636ffe03_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_929a2332_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_636ffe03_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./readMd.vue2.mjs";
2
2
  import "./readMd.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3758d8f2"]]);
4
+ const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-130428d1"]]);
5
5
  export {
6
6
  ReadMd as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, watch, onMounted, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref } from "vue";
2
- import purify from "../../../node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs";
3
- import { marked } from "../../../node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs";
2
+ import purify from "../../../node_modules/.pnpm/dompurify@3.1.5/node_modules/dompurify/dist/purify.es.mjs";
3
+ import { marked } from "../../../node_modules/.pnpm/marked@12.0.2/node_modules/marked/lib/marked.esm.mjs";
4
4
  import isInCode from "./mdInCode.mjs";
5
5
  import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
6
6
  import { storeToRefs } from "pinia";
@@ -1,4 +1,4 @@
1
- const readMd_vue_vue_type_style_index_0_scoped_3758d8f2_lang = "";
1
+ const readMd_vue_vue_type_style_index_0_scoped_130428d1_lang = "";
2
2
  export {
3
- readMd_vue_vue_type_style_index_0_scoped_3758d8f2_lang as default
3
+ readMd_vue_vue_type_style_index_0_scoped_130428d1_lang as default
4
4
  };