@kg-ui/kg-ui-plus 0.1.42 → 0.1.43

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 (64) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +1 -1
  3. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +1 -1
  4. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +2 -2
  5. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +1 -1
  6. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +1 -1
  7. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +2 -2
  8. package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
  9. package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
  10. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
  11. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
  12. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
  13. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
  14. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
  15. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +1 -1
  16. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +2 -2
  17. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
  18. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
  19. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
  20. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
  21. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
  22. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
  23. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +16 -2
  24. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
  25. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
  26. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
  27. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +1 -1
  28. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
  29. package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
  30. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +4 -3
  31. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
  32. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
  33. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
  34. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +1 -1
  35. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
  36. package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
  37. package/dist/es/KgCopilot/dialogue/messageParse/index.vue2.mjs +6 -2
  38. package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
  39. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
  40. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +42 -13
  41. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
  42. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  43. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +1 -1
  44. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  45. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  46. package/dist/es/KgCopilot/index.vue2.mjs +1 -1
  47. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  48. package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
  49. package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
  50. package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
  51. package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
  52. package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
  53. package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
  54. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
  55. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
  56. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
  57. package/dist/es/home/LProject/index.vue.mjs +1 -1
  58. package/dist/es/home/LProject/index.vue3.mjs +2 -2
  59. package/dist/es/home/index.vue.mjs +1 -1
  60. package/dist/es/home/index.vue3.mjs +2 -2
  61. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/copy-document.mjs +8 -0
  62. package/dist/es/store/modules/copilot.mjs +2 -1
  63. package/dist/es/style.css +1 -1
  64. package/package.json +124 -124
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 "./FilePreview.vue2.mjs";
2
2
  import "./FilePreview.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-00031e90"]]);
4
+ const FilePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a7569cf"]]);
5
5
  export {
6
6
  FilePreview as default
7
7
  };
@@ -9,7 +9,7 @@ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules
9
9
  import data$1 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/promotion.mjs";
10
10
  import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs";
11
11
  import { useThrottleFn } from "../../node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs";
12
- const _withScopeId = (n) => (pushScopeId("data-v-00031e90"), n = n(), popScopeId(), n);
12
+ const _withScopeId = (n) => (pushScopeId("data-v-7a7569cf"), n = n(), popScopeId(), n);
13
13
  const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, " 询问AI助手", -1));
14
14
  const _hoisted_2 = ["onKeydown"];
15
15
  const _hoisted_3 = { class: "err_result" };
@@ -1,4 +1,4 @@
1
- const FilePreview_vue_vue_type_style_index_0_scoped_00031e90_lang = "";
1
+ const FilePreview_vue_vue_type_style_index_0_scoped_7a7569cf_lang = "";
2
2
  export {
3
- FilePreview_vue_vue_type_style_index_0_scoped_00031e90_lang as default
3
+ FilePreview_vue_vue_type_style_index_0_scoped_7a7569cf_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./InitWrap.vue2.mjs";
2
2
  import "./InitWrap.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const InitWrap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cdbe48dd"]]);
4
+ const InitWrap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-16918236"]]);
5
5
  export {
6
6
  InitWrap as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, pushScopeId, popScopeId } from "vue";
2
2
  import _imports_0 from "../../assets/empty.png.mjs";
3
3
  import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs";
4
- const _withScopeId = (n) => (pushScopeId("data-v-cdbe48dd"), n = n(), popScopeId(), n);
4
+ const _withScopeId = (n) => (pushScopeId("data-v-16918236"), n = n(), popScopeId(), n);
5
5
  const _hoisted_1 = { class: "flex flex-col justify-center flex-wrap items-center" };
6
6
  const _hoisted_2 = { class: "flex justify-center items-center folder" };
7
7
  const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h2", null, "文件预览", -1));
@@ -1,4 +1,4 @@
1
- const InitWrap_vue_vue_type_style_index_0_scoped_cdbe48dd_lang = "";
1
+ const InitWrap_vue_vue_type_style_index_0_scoped_16918236_lang = "";
2
2
  export {
3
- InitWrap_vue_vue_type_style_index_0_scoped_cdbe48dd_lang as default
3
+ InitWrap_vue_vue_type_style_index_0_scoped_16918236_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 CopiCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-73dde8eb"]]);
4
+ const CopiCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca3f0536"]]);
5
5
  export {
6
6
  CopiCanvas as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_73dde8eb_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_ca3f0536_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_73dde8eb_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_ca3f0536_lang as default
4
4
  };
@@ -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-79b56717"]]);
4
+ const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7714b264"]]);
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-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);
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);
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_79b56717_lang = "";
1
+ const AnswerHead_vue_vue_type_style_index_0_scoped_7714b264_lang = "";
2
2
  export {
3
- AnswerHead_vue_vue_type_style_index_0_scoped_79b56717_lang as default
3
+ AnswerHead_vue_vue_type_style_index_0_scoped_7714b264_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-e25476bb"), n = n(), popScopeId(), n);
5
+ const _withScopeId = (n) => (pushScopeId("data-v-1975030b"), 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-e25476bb"]]);
23
+ const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1975030b"]]);
24
24
  export {
25
25
  UserHead as default
26
26
  };
@@ -1,4 +1,4 @@
1
- const UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang = "";
1
+ const UserHead_vue_vue_type_style_index_0_scoped_1975030b_lang = "";
2
2
  export {
3
- UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang as default
3
+ UserHead_vue_vue_type_style_index_0_scoped_1975030b_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./InputFootTool.vue2.mjs";
2
2
  import "./InputFootTool.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const InputFootTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-72faacc8"]]);
4
+ const InputFootTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ff289202"]]);
5
5
  export {
6
6
  InputFootTool as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const InputFootTool_vue_vue_type_style_index_0_scoped_72faacc8_lang = "";
1
+ const InputFootTool_vue_vue_type_style_index_0_scoped_ff289202_lang = "";
2
2
  export {
3
- InputFootTool_vue_vue_type_style_index_0_scoped_72faacc8_lang as default
3
+ InputFootTool_vue_vue_type_style_index_0_scoped_ff289202_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-e4530874"]]);
4
+ const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b959a5ee"]]);
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-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);
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);
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_e4530874_lang = "";
1
+ const NewTheme_vue_vue_type_style_index_0_scoped_b959a5ee_lang = "";
2
2
  export {
3
- NewTheme_vue_vue_type_style_index_0_scoped_e4530874_lang as default
3
+ NewTheme_vue_vue_type_style_index_0_scoped_b959a5ee_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-bbda30a3"]]);
4
+ const SelectPluginByKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c0f1db82"]]);
5
5
  export {
6
6
  SelectPluginByKey as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const SelectPluginByKey_vue_vue_type_style_index_0_scoped_bbda30a3_lang = "";
1
+ const SelectPluginByKey_vue_vue_type_style_index_0_scoped_c0f1db82_lang = "";
2
2
  export {
3
- SelectPluginByKey_vue_vue_type_style_index_0_scoped_bbda30a3_lang as default
3
+ SelectPluginByKey_vue_vue_type_style_index_0_scoped_c0f1db82_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-802c8083"]]);
4
+ const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cd657500"]]);
5
5
  export {
6
6
  SearchInput as default
7
7
  };
@@ -9,7 +9,7 @@ import { plusParamToStr } from "../../../utils/copilot.mjs";
9
9
  import data$2 from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/promotion.mjs";
10
10
  import data from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/braces-line.mjs";
11
11
  import data$1 from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/close-circle-line.mjs";
12
- const _withScopeId = (n) => (pushScopeId("data-v-802c8083"), n = n(), popScopeId(), n);
12
+ const _withScopeId = (n) => (pushScopeId("data-v-cd657500"), n = n(), popScopeId(), n);
13
13
  const _hoisted_1 = { class: "control-contain" };
14
14
  const _hoisted_2 = ["disabled", "onClick"];
15
15
  const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
@@ -92,7 +92,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
92
  checkedPluginByBtn,
93
93
  plugins,
94
94
  selPluginParams,
95
- pluginPayloadStr
95
+ pluginPayloadStr,
96
+ changeInputText
96
97
  } = storeToRefs(CopilotStore);
97
98
  const {
98
99
  setSearchText,
@@ -368,6 +369,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
368
369
  const text = (event.clipboardData || window.clipboardData).getData(
369
370
  "text/plain"
370
371
  );
372
+ pasteToInput(text);
373
+ };
374
+ watch(
375
+ () => changeInputText.value,
376
+ (val) => {
377
+ if (val && searchText.value) {
378
+ coptInput.value.innerText = searchText.value;
379
+ moveCursorPosition(searchText.value.length);
380
+ changeInputText.value = false;
381
+ }
382
+ }
383
+ );
384
+ const pasteToInput = (text) => {
371
385
  const selection = window.getSelection();
372
386
  if (!selection.rangeCount)
373
387
  return;
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_802c8083_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_cd657500_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_802c8083_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_cd657500_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-95c80042"]]);
4
+ const CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-65339d30"]]);
5
5
  export {
6
6
  CopiFooter as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_95c80042_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_65339d30_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_95c80042_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_65339d30_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SuggestMessage.vue2.mjs";
2
2
  import "./SuggestMessage.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const SuggestMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87d600ce"]]);
4
+ const SuggestMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ba323651"]]);
5
5
  export {
6
6
  SuggestMessage as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const SuggestMessage_vue_vue_type_style_index_0_scoped_87d600ce_lang = "";
1
+ const SuggestMessage_vue_vue_type_style_index_0_scoped_ba323651_lang = "";
2
2
  export {
3
- SuggestMessage_vue_vue_type_style_index_0_scoped_87d600ce_lang as default
3
+ SuggestMessage_vue_vue_type_style_index_0_scoped_ba323651_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-954e9440"]]);
4
+ const Dialogue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0c46f8b0"]]);
5
5
  export {
6
6
  Dialogue as default
7
7
  };
@@ -7,7 +7,7 @@ import data$1 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_module
7
7
  import data from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/caret-down-fill.mjs";
8
8
  import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
9
9
  import { storeToRefs } from "pinia";
10
- const _withScopeId = (n) => (pushScopeId("data-v-954e9440"), n = n(), popScopeId(), n);
10
+ const _withScopeId = (n) => (pushScopeId("data-v-0c46f8b0"), n = n(), popScopeId(), n);
11
11
  const _hoisted_1 = { class: "msg-head" };
12
12
  const _hoisted_2 = { class: "msg-box" };
13
13
  const _hoisted_3 = {
@@ -96,8 +96,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
96
  "onUpdate:isShrink": ($event) => item.isShrink = $event,
97
97
  isPrinting: item.needPrinting,
98
98
  "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
99
- scrollToBottom
100
- }, null, 8, ["msgs", "plusName", "isHistory", "startShrinkIndex", "isShrink", "onUpdate:isShrink", "isPrinting", "onUpdate:isPrinting"])
99
+ scrollToBottom,
100
+ isSend: item.isSend
101
+ }, null, 8, ["msgs", "plusName", "isHistory", "startShrinkIndex", "isShrink", "onUpdate:isShrink", "isPrinting", "onUpdate:isPrinting", "isSend"])
101
102
  ])
102
103
  ], 2)
103
104
  ])
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_954e9440_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_0c46f8b0_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_954e9440_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_0c46f8b0_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-86d77442"]]);
4
+ const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c85f484"]]);
5
5
  export {
6
6
  Edit as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const edit_vue_vue_type_style_index_0_scoped_86d77442_lang = "";
1
+ const edit_vue_vue_type_style_index_0_scoped_5c85f484_lang = "";
2
2
  export {
3
- edit_vue_vue_type_style_index_0_scoped_86d77442_lang as default
3
+ edit_vue_vue_type_style_index_0_scoped_5c85f484_lang as default
4
4
  };
@@ -104,7 +104,7 @@ const _sfc_main = {
104
104
  };
105
105
  }
106
106
  };
107
- const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-af617a5e"]]);
107
+ const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dccca92e"]]);
108
108
  export {
109
109
  FileBox as default
110
110
  };
@@ -1,4 +1,4 @@
1
- const fileBox_vue_vue_type_style_index_0_scoped_af617a5e_lang = "";
1
+ const fileBox_vue_vue_type_style_index_0_scoped_dccca92e_lang = "";
2
2
  export {
3
- fileBox_vue_vue_type_style_index_0_scoped_af617a5e_lang as default
3
+ fileBox_vue_vue_type_style_index_0_scoped_dccca92e_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-01dfdc25"]]);
4
+ const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-78b349b3"]]);
5
5
  export {
6
6
  MessageParse as default
7
7
  };
@@ -45,6 +45,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  isHistory: {
46
46
  type: Boolean,
47
47
  default: false
48
+ },
49
+ isSend: {
50
+ type: Boolean
48
51
  }
49
52
  },
50
53
  emits: ["update:isPrinting", "printOk", "update:msgs", "update:isShrink"],
@@ -137,8 +140,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
140
  scrollToBottom: dealHeight,
138
141
  isPrinting: item.needPrinting,
139
142
  "onUpdate:isPrinting": ($event) => item.needPrinting = $event,
140
- onPrintOk: printOk
141
- }, null, 8, ["text", "speed", "isPrinting", "onUpdate:isPrinting"])) : createCommentVNode("", true),
143
+ onPrintOk: printOk,
144
+ isSend: props.isSend
145
+ }, null, 8, ["text", "speed", "isPrinting", "onUpdate:isPrinting", "isSend"])) : createCommentVNode("", true),
142
146
  item.type === unref(DataType)[unref(DataType).edit] ? (openBlock(), createBlock(Edit, {
143
147
  key: 1,
144
148
  content: item.content,
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_01dfdc25_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_78b349b3_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_01dfdc25_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_78b349b3_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-1e5f984f"]]);
4
+ const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-38056d80"]]);
5
5
  export {
6
6
  ReadMd as default
7
7
  };
@@ -1,15 +1,12 @@
1
- import { defineComponent, ref, computed, watch, onMounted, resolveComponent, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref, normalizeStyle, createBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, resolveComponent, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref, normalizeStyle, createVNode, createCommentVNode, createBlock } from "vue";
2
2
  import purify from "../../../node_modules/.pnpm/dompurify@3.2.3/node_modules/dompurify/dist/purify.es.mjs";
3
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";
7
- import data from "../../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/check-square-fill.mjs";
8
- const _hoisted_1 = {
9
- class: "flex",
10
- style: { "align-items": "center" }
11
- };
12
- const _hoisted_2 = ["innerHTML"];
7
+ import data$1 from "../../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/check-square-fill.mjs";
8
+ import data from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/copy-document.mjs";
9
+ const _hoisted_1 = ["innerHTML"];
13
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
11
  __name: "readMd",
15
12
  props: {
@@ -30,13 +27,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
27
  speed: {
31
28
  type: Number,
32
29
  default: 0
30
+ },
31
+ isSend: {
32
+ type: Boolean
33
33
  }
34
34
  },
35
35
  emits: ["update:isPrinting", "printOk"],
36
36
  setup(__props, { emit: emits }) {
37
37
  const props = __props;
38
38
  const CopilotStore = useCopilotStoreHook();
39
- const { sendLonding } = storeToRefs(CopilotStore);
39
+ const { sendLonding, changeInputText } = storeToRefs(CopilotStore);
40
+ const { setSearchText } = CopilotStore;
40
41
  const vHtml = ref("");
41
42
  let printTimeout = null;
42
43
  const cursor = '<span class="cursor"></span>';
@@ -108,25 +109,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
108
109
  const resultHtml = computed(() => {
109
110
  return vHtml.value + (props.isPrinting && !isInCode(vHtml.value) ? cursor : "");
110
111
  });
112
+ const showCopyIcon = ref(false);
113
+ const mouseEnterToMd = () => {
114
+ if (props.isSend && !props.isPrinting) {
115
+ showCopyIcon.value = true;
116
+ }
117
+ };
118
+ const mouseLeaveFromMd = () => {
119
+ showCopyIcon.value = false;
120
+ };
121
+ const handleclickCopyMark = () => {
122
+ changeInputText.value = true;
123
+ setSearchText(props.text);
124
+ };
111
125
  return (_ctx, _cache) => {
112
126
  const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
113
127
  const _directive_highlight = resolveDirective("highlight");
114
- return openBlock(), createElementBlock("div", _hoisted_1, [
128
+ return openBlock(), createElementBlock("div", {
129
+ class: "flex",
130
+ style: { "align-items": "center" },
131
+ onMouseenter: mouseEnterToMd,
132
+ onMouseleave: mouseLeaveFromMd
133
+ }, [
115
134
  withDirectives(createElementVNode("div", {
116
135
  innerHTML: unref(resultHtml),
117
136
  class: "markdown",
118
137
  style: normalizeStyle({
119
138
  width: props.text.includes("LLM") && !props.isPrinting ? "auto" : "100%"
120
139
  })
121
- }, null, 12, _hoisted_2), [
140
+ }, null, 12, _hoisted_1), [
122
141
  [_directive_highlight]
123
142
  ]),
124
- props.text.includes("LLM") && !props.isPrinting ? (openBlock(), createBlock(_component_IconifyIconOffline, {
143
+ showCopyIcon.value ? (openBlock(), createElementBlock("div", {
125
144
  key: 0,
145
+ class: "copytoinput",
146
+ onClick: handleclickCopyMark
147
+ }, [
148
+ createVNode(_component_IconifyIconOffline, {
149
+ class: "copy-mark",
150
+ icon: unref(data)
151
+ }, null, 8, ["icon"])
152
+ ])) : createCommentVNode("", true),
153
+ props.text.includes("LLM") && !props.isPrinting ? (openBlock(), createBlock(_component_IconifyIconOffline, {
154
+ key: 1,
126
155
  class: "check-mark",
127
- icon: unref(data)
156
+ icon: unref(data$1)
128
157
  }, null, 8, ["icon"])) : createCommentVNode("", true)
129
- ]);
158
+ ], 32);
130
159
  };
131
160
  }
132
161
  });
@@ -1,4 +1,4 @@
1
- const readMd_vue_vue_type_style_index_0_scoped_1e5f984f_lang = "";
1
+ const readMd_vue_vue_type_style_index_0_scoped_38056d80_lang = "";
2
2
  export {
3
- readMd_vue_vue_type_style_index_0_scoped_1e5f984f_lang as default
3
+ readMd_vue_vue_type_style_index_0_scoped_38056d80_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 HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cef87429"]]);
4
+ const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b7d2f09"]]);
5
5
  export {
6
6
  HistoryReport as default
7
7
  };
@@ -7,7 +7,7 @@ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules
7
7
  import data$2 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/check.mjs";
8
8
  import data$3 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/close.mjs";
9
9
  import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
10
- const _withScopeId = (n) => (pushScopeId("data-v-cef87429"), n = n(), popScopeId(), n);
10
+ const _withScopeId = (n) => (pushScopeId("data-v-1b7d2f09"), n = n(), popScopeId(), n);
11
11
  const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h3", { class: "history-title" }, "历史记录", -1));
12
12
  const _hoisted_2 = { class: "search_box" };
13
13
  const _hoisted_3 = { class: "list_box" };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_cef87429_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_1b7d2f09_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_cef87429_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_1b7d2f09_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 KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d22e58c2"]]);
4
+ const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-06a6727b"]]);
5
5
  export {
6
6
  KgCopilot as default
7
7
  };