@opentiny/tiny-robot 0.2.0-alpha.1 → 0.2.0-alpha.3

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 (427) hide show
  1. package/dist/_plugin-vue_export-helper.js +9 -0
  2. package/dist/action-group/index.js +142 -0
  3. package/dist/bubble/index.js +3211 -0
  4. package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
  5. package/dist/container/index.js +60 -0
  6. package/dist/conversations/index.js +14 -0
  7. package/dist/feedback/index.js +192 -0
  8. package/dist/history/index.js +228 -0
  9. package/dist/icon-button/index.js +31 -0
  10. package/dist/index.d.ts +2190 -26
  11. package/dist/index.js +35 -43
  12. package/dist/index2.js +376 -0
  13. package/dist/index3.js +3895 -0
  14. package/dist/index4.js +637 -0
  15. package/dist/index5.js +3237 -0
  16. package/dist/index6.js +4623 -0
  17. package/dist/prompts/index.js +83 -0
  18. package/dist/question/index.js +375 -0
  19. package/dist/sender/index.js +683 -0
  20. package/dist/style.css +1 -1
  21. package/dist/suggestion/index.js +497 -0
  22. package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +100 -100
  23. package/dist/welcome/index.js +38 -0
  24. package/package.json +7 -3
  25. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  26. package/dist/action-group/ActionGroup.vue.d.ts +0 -26
  27. package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
  28. package/dist/action-group/index.d.ts +0 -12
  29. package/dist/action-group/index.type.d.ts +0 -16
  30. package/dist/bubble/bubble-list.vue.d.ts +0 -5
  31. package/dist/bubble/components/actions/copy.vue.d.ts +0 -10
  32. package/dist/bubble/components/actions/index.d.ts +0 -2
  33. package/dist/bubble/components/actions/refresh.vue.d.ts +0 -2
  34. package/dist/bubble/index.d.ts +0 -12
  35. package/dist/bubble/index.type.d.ts +0 -53
  36. package/dist/bubble/useScroll.d.ts +0 -4
  37. package/dist/container/index.d.ts +0 -7
  38. package/dist/container/index.type.d.ts +0 -16
  39. package/dist/container/index.vue.d.ts +0 -26
  40. package/dist/conversations/index.d.ts +0 -7
  41. package/dist/conversations/index.vue.d.ts +0 -2
  42. package/dist/feedback/components/SourceList.vue.d.ts +0 -11
  43. package/dist/feedback/components/index.d.ts +0 -1
  44. package/dist/feedback/index.d.ts +0 -7
  45. package/dist/feedback/index.type.d.ts +0 -25
  46. package/dist/feedback/index.vue.d.ts +0 -13
  47. package/dist/history/components/index.d.ts +0 -2
  48. package/dist/history/components/item-tag.vue.d.ts +0 -5
  49. package/dist/history/components/search-empty.vue.d.ts +0 -7
  50. package/dist/history/composables/index.d.ts +0 -1
  51. package/dist/history/composables/useEditItemTitle.d.ts +0 -12
  52. package/dist/history/index.d.ts +0 -6
  53. package/dist/history/index.type.d.ts +0 -43
  54. package/dist/history/index.vue.d.ts +0 -2
  55. package/dist/icon-button/index.d.ts +0 -7
  56. package/dist/icon-button/index.type.d.ts +0 -7
  57. package/dist/icon-button/index.vue.d.ts +0 -6
  58. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
  59. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
  60. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
  61. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
  62. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
  63. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
  64. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
  65. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
  66. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
  67. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
  68. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
  69. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  70. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
  71. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
  72. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
  73. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
  74. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
  75. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
  76. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
  77. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
  78. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
  79. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
  80. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
  81. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
  82. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
  83. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
  84. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
  85. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
  86. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
  87. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
  88. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
  89. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
  90. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
  91. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
  92. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
  93. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
  94. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
  95. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
  96. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
  97. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
  98. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
  99. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
  100. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
  101. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
  102. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
  103. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
  104. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
  105. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
  106. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
  107. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
  108. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
  109. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
  110. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
  111. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
  112. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
  113. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
  114. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
  115. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
  116. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
  117. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
  118. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
  119. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
  120. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
  121. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
  122. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
  123. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
  124. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
  125. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
  126. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
  127. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
  128. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
  129. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
  130. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
  131. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
  132. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
  133. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
  134. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
  135. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
  136. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
  137. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
  138. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
  139. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
  140. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
  141. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
  142. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
  143. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
  144. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
  145. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
  146. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
  147. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
  148. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
  149. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
  150. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
  151. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
  152. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
  153. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
  154. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
  155. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
  156. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
  157. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
  158. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  159. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
  160. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  161. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
  162. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
  163. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
  164. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
  165. package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -190
  166. package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -53
  167. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
  168. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
  169. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  170. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  171. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
  172. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
  221. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
  222. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
  223. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
  224. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
  225. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
  226. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
  227. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
  228. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
  229. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
  230. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
  231. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
  232. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
  233. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
  234. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
  235. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
  236. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
  237. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
  238. package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
  239. package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -97
  240. package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
  241. package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
  242. package/dist/packages/components/src/action-group/index.js +0 -17
  243. package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
  244. package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
  245. package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
  246. package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
  247. package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
  248. package/dist/packages/components/src/bubble/bubble-list.vue.js +0 -7
  249. package/dist/packages/components/src/bubble/bubble-list.vue2.js +0 -37
  250. package/dist/packages/components/src/bubble/bubble.vue.js +0 -7
  251. package/dist/packages/components/src/bubble/bubble.vue2.js +0 -118
  252. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +0 -7
  253. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +0 -35
  254. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +0 -7
  255. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +0 -16
  256. package/dist/packages/components/src/bubble/index.js +0 -18
  257. package/dist/packages/components/src/bubble/useScroll.js +0 -13
  258. package/dist/packages/components/src/container/index.js +0 -9
  259. package/dist/packages/components/src/container/index.vue.js +0 -7
  260. package/dist/packages/components/src/container/index.vue2.js +0 -55
  261. package/dist/packages/components/src/conversations/index.js +0 -9
  262. package/dist/packages/components/src/conversations/index.vue.js +0 -9
  263. package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
  264. package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
  265. package/dist/packages/components/src/feedback/index.js +0 -9
  266. package/dist/packages/components/src/feedback/index.vue.js +0 -7
  267. package/dist/packages/components/src/feedback/index.vue2.js +0 -142
  268. package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
  269. package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
  270. package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
  271. package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
  272. package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
  273. package/dist/packages/components/src/history/index.js +0 -11
  274. package/dist/packages/components/src/history/index.vue.js +0 -7
  275. package/dist/packages/components/src/history/index.vue2.js +0 -130
  276. package/dist/packages/components/src/icon-button/index.js +0 -9
  277. package/dist/packages/components/src/icon-button/index.vue.js +0 -7
  278. package/dist/packages/components/src/icon-button/index.vue2.js +0 -40
  279. package/dist/packages/components/src/prompts/index.js +0 -18
  280. package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
  281. package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
  282. package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
  283. package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
  284. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
  285. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
  286. package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
  287. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
  288. package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
  289. package/dist/packages/components/src/question/index.js +0 -9
  290. package/dist/packages/components/src/question/index.vue.js +0 -113
  291. package/dist/packages/components/src/question/index.vue2.js +0 -4
  292. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
  293. package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
  294. package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
  295. package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -121
  296. package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
  297. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
  298. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
  299. package/dist/packages/components/src/sender/index.js +0 -9
  300. package/dist/packages/components/src/sender/index.vue.js +0 -255
  301. package/dist/packages/components/src/sender/index.vue2.js +0 -4
  302. package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
  303. package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
  304. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
  305. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
  306. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
  307. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
  308. package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
  309. package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
  310. package/dist/packages/components/src/suggestion/index.js +0 -9
  311. package/dist/packages/components/src/suggestion/index.vue.js +0 -179
  312. package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
  313. package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
  314. package/dist/packages/components/src/welcome/index.js +0 -9
  315. package/dist/packages/components/src/welcome/index.vue.js +0 -7
  316. package/dist/packages/components/src/welcome/index.vue2.js +0 -32
  317. package/dist/prompts/index.d.ts +0 -12
  318. package/dist/prompts/index.type.d.ts +0 -55
  319. package/dist/prompts/prompt.vue.d.ts +0 -3
  320. package/dist/prompts/prompts.vue.d.ts +0 -20
  321. package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
  322. package/dist/question/components/HotQuestions.vue.d.ts +0 -89
  323. package/dist/question/composables/useQuestions.d.ts +0 -17
  324. package/dist/question/index.d.ts +0 -7
  325. package/dist/question/index.type.d.ts +0 -74
  326. package/dist/question/index.vue.d.ts +0 -46
  327. package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
  328. package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
  329. package/dist/sender/composables/useInputHandler.d.ts +0 -17
  330. package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
  331. package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
  332. package/dist/sender/index.d.ts +0 -7
  333. package/dist/sender/index.type.d.ts +0 -137
  334. package/dist/sender/index.vue.d.ts +0 -1012
  335. package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
  336. package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
  337. package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
  338. package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
  339. package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
  340. package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
  341. package/dist/suggestion/index.d.ts +0 -7
  342. package/dist/suggestion/index.type.d.ts +0 -94
  343. package/dist/suggestion/index.vue.d.ts +0 -343
  344. package/dist/suggestion/utils/dom.d.ts +0 -20
  345. package/dist/welcome/index.d.ts +0 -7
  346. package/dist/welcome/index.type.d.ts +0 -10
  347. package/dist/welcome/index.vue.d.ts +0 -18
  348. package/src/action-group/ActionGroup.vue +0 -232
  349. package/src/action-group/ActionGroupItem.vue +0 -9
  350. package/src/action-group/index.ts +0 -25
  351. package/src/action-group/index.type.ts +0 -20
  352. package/src/assets/icons/accessory.svg +0 -12
  353. package/src/assets/icons/loading-speech.svg +0 -16
  354. package/src/assets/icons/loading.svg +0 -17
  355. package/src/assets/icons/send.svg +0 -21
  356. package/src/assets/icons/voice.svg +0 -22
  357. package/src/bubble/bubble-list.vue +0 -42
  358. package/src/bubble/bubble.vue +0 -237
  359. package/src/bubble/components/actions/copy.vue +0 -54
  360. package/src/bubble/components/actions/index.ts +0 -2
  361. package/src/bubble/components/actions/refresh.vue +0 -31
  362. package/src/bubble/index.ts +0 -23
  363. package/src/bubble/index.type.ts +0 -63
  364. package/src/bubble/useScroll.ts +0 -14
  365. package/src/container/index.ts +0 -12
  366. package/src/container/index.type.ts +0 -17
  367. package/src/container/index.vue +0 -134
  368. package/src/conversations/index.ts +0 -12
  369. package/src/conversations/index.vue +0 -3
  370. package/src/feedback/components/SourceList.vue +0 -112
  371. package/src/feedback/components/index.ts +0 -1
  372. package/src/feedback/index.ts +0 -12
  373. package/src/feedback/index.type.ts +0 -27
  374. package/src/feedback/index.vue +0 -166
  375. package/src/history/components/index.ts +0 -2
  376. package/src/history/components/item-tag.vue +0 -49
  377. package/src/history/components/search-empty.vue +0 -38
  378. package/src/history/composables/index.ts +0 -1
  379. package/src/history/composables/useEditItemTitle.ts +0 -75
  380. package/src/history/index.ts +0 -12
  381. package/src/history/index.type.ts +0 -50
  382. package/src/history/index.vue +0 -292
  383. package/src/icon-button/index.ts +0 -12
  384. package/src/icon-button/index.type.ts +0 -8
  385. package/src/icon-button/index.vue +0 -52
  386. package/src/index.ts +0 -76
  387. package/src/prompts/index.ts +0 -25
  388. package/src/prompts/index.type.ts +0 -59
  389. package/src/prompts/prompt.vue +0 -101
  390. package/src/prompts/prompts.vue +0 -50
  391. package/src/question/components/CommonQuestions.vue +0 -146
  392. package/src/question/components/HotQuestions.vue +0 -148
  393. package/src/question/composables/useQuestions.ts +0 -106
  394. package/src/question/index.less +0 -447
  395. package/src/question/index.ts +0 -12
  396. package/src/question/index.type.ts +0 -86
  397. package/src/question/index.vue +0 -140
  398. package/src/question/vars.less +0 -135
  399. package/src/sender/components/ActionButtons.vue +0 -168
  400. package/src/sender/components/TemplateEditor.vue +0 -274
  401. package/src/sender/composables/useInputHandler.ts +0 -74
  402. package/src/sender/composables/useKeyboardHandler.ts +0 -101
  403. package/src/sender/composables/useSpeechHandler.ts +0 -122
  404. package/src/sender/index.less +0 -352
  405. package/src/sender/index.ts +0 -12
  406. package/src/sender/index.type.ts +0 -162
  407. package/src/sender/index.vue +0 -338
  408. package/src/sender/vars.less +0 -84
  409. package/src/suggestion/components/CategoryNav.vue +0 -38
  410. package/src/suggestion/components/SuggestionCapsule.vue +0 -183
  411. package/src/suggestion/components/SuggestionPanel.vue +0 -147
  412. package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
  413. package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
  414. package/src/suggestion/composables/useTriggerDetection.ts +0 -46
  415. package/src/suggestion/index.less +0 -497
  416. package/src/suggestion/index.ts +0 -12
  417. package/src/suggestion/index.type.ts +0 -101
  418. package/src/suggestion/index.vue +0 -338
  419. package/src/suggestion/utils/dom.ts +0 -66
  420. package/src/suggestion/vars.less +0 -141
  421. package/src/vite-env.d.ts +0 -1
  422. package/src/welcome/index.ts +0 -12
  423. package/src/welcome/index.type.ts +0 -12
  424. package/src/welcome/index.vue +0 -69
  425. package/tsconfig.json +0 -37
  426. package/tsconfig.node.json +0 -10
  427. package/vite.config.ts +0 -53
@@ -1,135 +0,0 @@
1
- /* ----------------- 颜色变量 ----------------- */
2
- :root {
3
- /* 主题基础颜色 */
4
- --tr-question-primary-color: #1890ff;
5
- --tr-question-background-color: #ffffff;
6
- --tr-question-modal-background-color: #ffffff;
7
- --tr-question-text-color: #333333;
8
- --tr-question-text-color-secondary: #666666;
9
- --tr-question-border-color: #e8e8e8;
10
- --tr-question-hover-color: #f5f5f5;
11
- --tr-question-tab-hover-bg: #f0f0f0;
12
- --tr-question-active-tab-color: var(--tr-question-primary-color);
13
- --tr-question-active-tab-bg: #e6f7ff;
14
-
15
- /* 弹窗相关颜色 */
16
- --tr-question-header-bg: #f9f9f9;
17
- --tr-question-title-color: #1d2129;
18
- --tr-question-close-icon-color: #86909c;
19
- --tr-question-tab-active-bg: #e8f3ff;
20
- --tr-question-tab-active-text: #1890ff;
21
- --tr-question-tab-text: #4e5969;
22
- --tr-question-tab-border: #f0f0f0;
23
- --tr-question-list-divider-color: #f0f0f0;
24
- --tr-question-modal-backdrop-color: rgba(0, 0, 0, 0.5);
25
-
26
- /* 常见问题颜色 */
27
- --tr-question-common-bg: #fff;
28
- --tr-question-common-text: #191919;
29
- --tr-question-common-hover-bg: #ebebeb;
30
- --tr-question-common-shadow: rgba(0, 0, 0, 0.04);
31
-
32
- /* 背景颜色 */
33
- --tr-question-container-bg: #f8f8f8;
34
- --tr-question-list-item-bg: #fff;
35
- --tr-question-list-hover-shadow: rgba(0, 0, 0, 0.08);
36
- --tr-question-category-bg: rgba(0, 0, 0, 0.04);
37
- --tr-question-category-hover-bg: rgba(0, 0, 0, 0.08);
38
- --tr-question-category-active-border: #191919;
39
- --tr-question-item-border-color: rgba(0, 0, 0, 0.04);
40
-
41
- /* 滚动条颜色 */
42
- --tr-question-scrollbar-track-bg: rgba(16, 31, 28, 0.1);
43
- --tr-question-scrollbar-thumb-bg: rgba(144, 147, 153, 0.5);
44
- --tr-question-scrollbar-thumb-hover-bg: rgba(144, 147, 153, 0.3);
45
-
46
- /* ----------------- 尺寸变量 ----------------- */
47
- /* 圆角 */
48
- --tr-question-border-radius: 24px;
49
- --tr-question-category-border-radius: 8px;
50
- --tr-question-list-border-radius: 12px;
51
- --tr-question-common-border-radius: 16px;
52
- --tr-question-scrollbar-border-radius: 2em;
53
-
54
- /* 间距和尺寸 */
55
- --tr-question-spacing: 16px;
56
- --tr-question-icon-size: 16px;
57
- --tr-question-container-height: 46px;
58
- --tr-question-item-height: 56px;
59
- --tr-question-trigger-size: 32px;
60
- --tr-question-common-item-height: 32px;
61
- --tr-question-category-height: 38px;
62
- --tr-question-scrollbar-width: 4px;
63
- --tr-question-modal-padding: 24px;
64
- --tr-question-modal-max-height: 80vh;
65
- --tr-question-modal-max-width: 640px;
66
- --tr-question-content-max-height: calc(80vh - 120px);
67
-
68
- /* ----------------- 文字变量 ----------------- */
69
- /* 字体 */
70
- --tr-question-font-size: 14px;
71
- --tr-question-title-font-size: 18px;
72
- --tr-question-title-font-weight: 600;
73
- --tr-question-item-font-weight: 400;
74
- --tr-question-line-height: 1.5;
75
- --tr-question-item-line-height: 22px;
76
-
77
- /* ----------------- 特效变量 ----------------- */
78
- /* 阴影 */
79
- --tr-question-panel-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
80
- --tr-question-trigger-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
81
- --tr-question-common-item-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
82
- --tr-question-list-item-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
83
- --tr-question-wrap-trigger-shadow: 2px 0 9px rgba(0, 0, 0, 0.04);
84
-
85
- /* 动画 */
86
- --tr-question-transition-duration: 0.3s;
87
- --tr-question-transition-timing: ease;
88
- --tr-question-hover-transition: all var(--tr-question-transition-duration) var(--tr-question-transition-timing);
89
- }
90
-
91
- /* ----------------- 暗色主题变量 ----------------- */
92
- [data-theme='dark'] {
93
- /* 主题基础颜色 */
94
- --tr-question-primary-color: #177ddc;
95
- --tr-question-background-color: #1f1f1f;
96
- --tr-question-modal-background-color: #2a2a2a;
97
- --tr-question-text-color: #f0f0f0;
98
- --tr-question-text-color-secondary: #aaaaaa;
99
- --tr-question-border-color: #434343;
100
- --tr-question-hover-color: #303030;
101
- --tr-question-tab-hover-bg: #3a3a3a;
102
- --tr-question-active-tab-color: var(--tr-question-primary-color);
103
- --tr-question-active-tab-bg: #113a5c;
104
-
105
- /* 弹窗相关颜色 */
106
- --tr-question-header-bg: #2a2a2a;
107
- --tr-question-title-color: #c9d1d9;
108
- --tr-question-close-icon-color: #8b949e;
109
- --tr-question-tab-active-bg: #30363d;
110
- --tr-question-tab-active-text: #58a6ff;
111
- --tr-question-tab-text: #8b949e;
112
- --tr-question-tab-border: #30363d;
113
- --tr-question-list-divider-color: #30363d;
114
- --tr-question-modal-backdrop-color: rgba(0, 0, 0, 0.7);
115
-
116
- /* 常见问题颜色 */
117
- --tr-question-common-bg: #2a2a2a;
118
- --tr-question-common-text: #e6e6e6;
119
- --tr-question-common-hover-bg: #3a3a3a;
120
- --tr-question-common-shadow: rgba(0, 0, 0, 0.2);
121
-
122
- /* 背景颜色 */
123
- --tr-question-container-bg: #141414;
124
- --tr-question-list-item-bg: #2a2a2a;
125
- --tr-question-list-hover-shadow: rgba(0, 0, 0, 0.3);
126
- --tr-question-category-bg: rgba(255, 255, 255, 0.04);
127
- --tr-question-category-hover-bg: rgba(255, 255, 255, 0.08);
128
- --tr-question-category-active-border: #e6e6e6;
129
- --tr-question-item-border-color: rgba(255, 255, 255, 0.04);
130
-
131
- /* 滚动条颜色 */
132
- --tr-question-scrollbar-track-bg: rgba(255, 255, 255, 0.05);
133
- --tr-question-scrollbar-thumb-bg: rgba(255, 255, 255, 0.2);
134
- --tr-question-scrollbar-thumb-hover-bg: rgba(255, 255, 255, 0.3);
135
- }
@@ -1,168 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
- import TinyButton from '@opentiny/vue-button'
4
- import { IconClose } from '@opentiny/vue-icon'
5
- import { ActionButtonsProps } from '../index.type'
6
-
7
- const TinyIconCloseSquare = IconClose()
8
-
9
- const props = withDefaults(defineProps<ActionButtonsProps>(), {
10
- /**
11
- * 是否显示加载状态
12
- * @default false
13
- */
14
- loading: false,
15
- /**
16
- * 是否禁用所有操作
17
- * @default false
18
- */
19
- disabled: false,
20
- /**
21
- * 是否显示清除按钮
22
- * @default true
23
- */
24
- showClear: true,
25
- /**
26
- * 输入框是否有内容
27
- * @default false
28
- */
29
- hasContent: false,
30
- /**
31
- * 是否允许语音功能
32
- */
33
- allowSpeech: false,
34
- speechStatus: () => ({
35
- isRecording: false,
36
- isSupported: false,
37
- }),
38
- /**
39
- * 是否允许附件功能
40
- */
41
- allowFiles: false,
42
- /**
43
- * 提交快捷方式
44
- * @default 'enter'
45
- */
46
- submitType: 'enter',
47
- })
48
-
49
- const emit = defineEmits<{
50
- /**
51
- * 清除内容事件
52
- */
53
- (e: 'clear'): void
54
- /**
55
- * 切换语音识别状态事件
56
- */
57
- (e: 'toggle-speech', state: boolean): void
58
- /**
59
- * 提交内容事件
60
- */
61
- (e: 'submit'): void
62
- /**
63
- * 取消发送事件,用于取消加载状态
64
- */
65
- (e: 'cancel'): void
66
- }>()
67
-
68
- /**
69
- * 是否启用语音功能
70
- */
71
- const speechEnabled = computed(() => props.allowSpeech)
72
-
73
- const isSpeechRecording = computed(() => props.speechStatus.isRecording)
74
-
75
- /**
76
- * 整体禁用状态
77
- */
78
- const isDisabled = computed(() => props.disabled)
79
-
80
- /**
81
- * 处理清除操作
82
- */
83
- const handleClear = () => {
84
- if (!isDisabled.value) {
85
- emit('clear')
86
- }
87
- }
88
-
89
- /**
90
- * 切换语音识别状态
91
- */
92
- const handleToggleSpeech = () => {
93
- if (!isDisabled.value) {
94
- const newState = !props.speechStatus.isRecording
95
- emit('toggle-speech', newState)
96
- }
97
- }
98
-
99
- /**
100
- * 处理提交操作
101
- */
102
- const handleSubmit = () => {
103
- if (!isDisabled.value) {
104
- emit('submit')
105
- }
106
- }
107
-
108
- /**
109
- * 处理取消操作
110
- */
111
- const handleCancel = () => {
112
- if (!isDisabled.value) {
113
- emit('cancel')
114
- }
115
- }
116
- </script>
117
-
118
- <template>
119
- <div class="action-buttons">
120
- <!-- 文件上传按钮 -->
121
- <template v-if="allowFiles && !loading">
122
- <tiny-tooltip content="上传文件" placement="top">
123
- <tiny-button type="text" :disabled="isDisabled">
124
- <img src="../../assets/icons/accessory.svg" class="button-icon" alt="上传文件" />
125
- </tiny-button>
126
- </tiny-tooltip>
127
- </template>
128
-
129
- <!-- 语音按钮:仅在启用语音功能时显示 -->
130
- <template v-if="speechEnabled && !loading">
131
- <tiny-button
132
- type="text"
133
- :disabled="isDisabled"
134
- @click="handleToggleSpeech"
135
- class="speech-button"
136
- :class="{ 'is-recording': isSpeechRecording }"
137
- >
138
- <img v-if="!isSpeechRecording" src="../../assets/icons/voice.svg" class="button-icon" alt="录音" />
139
- <img v-else src="../../assets/icons/loading-speech.svg" class="button-icon recording-icon" alt="语音中" />
140
- </tiny-button>
141
- </template>
142
-
143
- <template v-if="showClear">
144
- <tiny-tooltip content="清空内容" placement="top">
145
- <tiny-button type="text" :disabled="isDisabled || !hasContent" @click="handleClear" style="margin-left: 0">
146
- <component :is="TinyIconCloseSquare" class="button-icon" />
147
- </tiny-button>
148
- </tiny-tooltip>
149
- </template>
150
-
151
- <!-- 提交按钮:主操作按钮 -->
152
- <template v-if="hasContent || loading">
153
- <tiny-button
154
- type="text"
155
- :class="loading ? 'cancel-button' : 'submit-button'"
156
- :disabled="isDisabled"
157
- @click="loading ? handleCancel() : handleSubmit()"
158
- >
159
- <div class="button-content">
160
- <img v-if="!loading" src="../../assets/icons/send.svg" alt="发送" />
161
- <tiny-tooltip v-else content="停止生成" placement="top">
162
- <img src="../../assets/icons/loading.svg" alt="加载中" class="loading" />
163
- </tiny-tooltip>
164
- </div>
165
- </tiny-button>
166
- </template>
167
- </div>
168
- </template>
@@ -1,274 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref, computed, nextTick, watch } from 'vue'
3
- import { TemplatePart, TemplateEditorProps, TemplateEditorEmits, TemplateEditorExpose } from '../index.type'
4
-
5
- // 使用类型定义props
6
- const props = defineProps<TemplateEditorProps>()
7
-
8
- // 使用类型定义emits
9
- const emit = defineEmits<TemplateEditorEmits>()
10
-
11
- // 编辑器DOM引用
12
- const editorRef = ref<HTMLElement | null>(null)
13
-
14
- // 输入框引用集合
15
- // eslint-disable-next-line
16
- const inputRefs = ref<any>({})
17
-
18
- // 当前激活的输入块索引
19
- const activeFieldIndex = ref<number>(-1)
20
-
21
- // 解析模板,将其分解为普通文本和可编辑字段
22
- const templateParts = computed<TemplatePart[]>(() => {
23
- // TODO: 如果已有值,使用现有值填充模板
24
- if (props.value) {
25
- return parseValueIntoTemplate()
26
- }
27
-
28
- // 否则使用模板解析
29
- const parts: TemplatePart[] = []
30
- let currentIndex = 0
31
- let fieldIndex = 0
32
-
33
- // 正则表达式匹配 [xxx] 格式
34
- const regex = /\[(.*?)\]/g
35
- let match
36
-
37
- while ((match = regex.exec(props.template)) !== null) {
38
- // 添加匹配前的普通文本
39
- if (match.index > currentIndex) {
40
- parts.push({
41
- content: props.template.substring(currentIndex, match.index),
42
- isField: false,
43
- })
44
- }
45
-
46
- // 添加匹配的字段
47
- parts.push({
48
- content: '',
49
- placeholder: match[1],
50
- isField: true,
51
- fieldIndex: fieldIndex++,
52
- })
53
-
54
- currentIndex = match.index + match[0].length
55
- }
56
-
57
- // 添加剩余的普通文本
58
- if (currentIndex < props.template.length) {
59
- parts.push({
60
- content: props.template.substring(currentIndex),
61
- isField: false,
62
- })
63
- }
64
-
65
- return parts
66
- })
67
-
68
- // 解析现有值填充到模板中
69
- const parseValueIntoTemplate = (): TemplatePart[] => {
70
- // 在实际应用中,这里应该根据模板和现有值进行匹配
71
- return templateParts.value
72
- }
73
-
74
- // 生成完整的文本值
75
- const generateValue = (): string => {
76
- return templateParts.value.map((part) => part.content).join('')
77
- }
78
-
79
- // 更新值并触发事件
80
- const updateValue = (): void => {
81
- const newValue = generateValue()
82
- emit('update:value', newValue)
83
- emit('input', newValue)
84
- }
85
-
86
- // 激活输入块
87
- const activateField = (index: number): void => {
88
- activeFieldIndex.value = index
89
-
90
- // 确保DOM更新后再聚焦
91
- nextTick(() => {
92
- if (inputRefs.value[index]) {
93
- inputRefs.value[index]?.focus()
94
- }
95
- })
96
- }
97
-
98
- // 取消激活输入块
99
- const deactivateField = (): void => {
100
- updateValue()
101
- activeFieldIndex.value = -1
102
- }
103
-
104
- // 处理输入框键盘事件
105
- const handleInputKeyDown = (event: KeyboardEvent, index: number): void => {
106
- if (event.key === 'Tab') {
107
- event.preventDefault()
108
-
109
- // 找到下一个输入块
110
- const nextFieldIndex = findNextFieldIndex(index, event.shiftKey)
111
- if (nextFieldIndex !== -1) {
112
- // 先更新当前值
113
- updateValue()
114
- // 再激活下一个字段
115
- activateField(nextFieldIndex)
116
- }
117
- } else if (event.key === 'Enter') {
118
- event.preventDefault()
119
- deactivateField()
120
- }
121
- }
122
-
123
- // 寻找下一个输入块索引,支持通过 shift+tab 反向查找
124
- const findNextFieldIndex = (currentIndex: number, isReverse = false): number => {
125
- if (isReverse) {
126
- // 向前查找(Shift+Tab)
127
- for (let i = currentIndex - 1; i >= 0; i--) {
128
- if (templateParts.value[i].isField) {
129
- return i
130
- }
131
- }
132
-
133
- // 如果没有找到,则循环到最后一个字段
134
- for (let i = templateParts.value.length - 1; i > currentIndex; i--) {
135
- if (templateParts.value[i].isField) {
136
- return i
137
- }
138
- }
139
- } else {
140
- // 向后查找(Tab)
141
- for (let i = currentIndex + 1; i < templateParts.value.length; i++) {
142
- if (templateParts.value[i].isField) {
143
- return i
144
- }
145
- }
146
-
147
- // 循环回到第一个输入块
148
- for (let i = 0; i < currentIndex; i++) {
149
- if (templateParts.value[i].isField) {
150
- return i
151
- }
152
- }
153
- }
154
-
155
- return -1
156
- }
157
-
158
- // 监听值变化
159
- watch(
160
- () => props.value,
161
- (newValue) => {
162
- // 如果外部值为空字符串,清空所有字段内容
163
- if (newValue === '') {
164
- resetFields()
165
- }
166
- },
167
- )
168
-
169
- // 重置所有字段内容
170
- const resetFields = (): void => {
171
- // 清空所有输入块内容
172
- templateParts.value.forEach((part) => {
173
- if (part.isField) {
174
- part.content = ''
175
- }
176
- })
177
- // 更新值
178
- updateValue()
179
- }
180
-
181
- // 导出方法供父组件调用
182
- defineExpose<TemplateEditorExpose>({
183
- activateFirstField: () => {
184
- for (let i = 0; i < templateParts.value.length; i++) {
185
- if (templateParts.value[i].isField) {
186
- activateField(i)
187
- break
188
- }
189
- }
190
- },
191
- resetFields,
192
- })
193
- </script>
194
-
195
- <template>
196
- <div class="template-editor">
197
- <div class="template-content" ref="editorRef">
198
- <template v-for="(part, index) in templateParts" :key="index">
199
- <!-- 普通文本部分 -->
200
- <span v-if="!part.isField">{{ part.content }}</span>
201
-
202
- <!-- 可编辑的输入块部分 -->
203
- <span
204
- v-else
205
- class="template-field"
206
- :class="{ 'template-field-active': activeFieldIndex === index }"
207
- @click="activateField(index)"
208
- >
209
- <input
210
- v-if="activeFieldIndex === index"
211
- :ref="(el) => (inputRefs[index] = el)"
212
- v-model="part.content"
213
- class="template-input"
214
- @blur="deactivateField()"
215
- @keydown="handleInputKeyDown($event, index)"
216
- @click.stop
217
- />
218
- <span v-else class="template-placeholder">{{ part.content || part.placeholder }}</span>
219
- </span>
220
- </template>
221
- </div>
222
- </div>
223
- </template>
224
-
225
- <style scoped>
226
- .template-editor {
227
- width: 100%;
228
- min-height: 26px;
229
- line-height: 26px;
230
- }
231
-
232
- .template-content {
233
- display: inline;
234
- word-break: break-word;
235
- }
236
-
237
- .template-field {
238
- display: inline-block;
239
- height: 26px;
240
- min-width: fit-content;
241
- border-radius: 4px;
242
- background: rgba(0, 0, 0, 0.05);
243
- padding: 0 10px;
244
- margin: 0 2px;
245
- vertical-align: middle;
246
- cursor: text;
247
- transition: all 0.2s ease;
248
- }
249
-
250
- .template-field:hover {
251
- background: rgba(0, 0, 0, 0.08);
252
- }
253
-
254
- .template-placeholder {
255
- color: #666;
256
- user-select: none;
257
- }
258
-
259
- .template-input {
260
- box-sizing: border-box;
261
- width: 100%;
262
- height: 26px;
263
- border: 1px solid rgb(194, 194, 194);
264
- border-radius: 4px;
265
- padding: 0 10px;
266
- outline: none;
267
- background: white;
268
- }
269
-
270
- .template-field-active {
271
- background: transparent;
272
- padding: 0;
273
- }
274
- </style>
@@ -1,74 +0,0 @@
1
- import { ref, watch } from 'vue'
2
- import type { SenderProps, SenderEmits } from '../index.type'
3
-
4
- /**
5
- * 输入框值处理 Hook
6
- * 对输入框的值进行集中处理
7
- *
8
- * @param props 组件属性
9
- * @param emit 组件方法
10
- */
11
- export function useInputHandler(props: SenderProps, emit: SenderEmits) {
12
- const inputValue = ref(props.modelValue || props.defaultValue || '')
13
- const inputWrapper = ref<HTMLElement | null>(null)
14
-
15
- // 同步外部值变化
16
- watch(
17
- () => props.modelValue,
18
- (val) => {
19
- if (val !== undefined && val !== inputValue.value) {
20
- inputValue.value = val
21
- }
22
- },
23
- )
24
-
25
- // 监听内部值变化,触发update:modelValue事件
26
- watch(
27
- () => inputValue.value,
28
- (val) => {
29
- emit('update:modelValue', val)
30
- },
31
- )
32
-
33
- // 双向绑定处理
34
- const handleChange = (value: string) => {
35
- inputValue.value = value
36
- emit('update:modelValue', value)
37
- }
38
-
39
- // 提交处理
40
- const handleSubmit = (event?: Event) => {
41
- event?.preventDefault()
42
-
43
- const submitValue = inputValue.value
44
-
45
- if (!props.disabled && !props.loading && submitValue.trim()) {
46
- emit('submit', submitValue)
47
- }
48
- }
49
-
50
- // 清空输入
51
- const handleClear = () => {
52
- inputValue.value = ''
53
- emit('update:modelValue', '')
54
- emit('clear')
55
- }
56
-
57
- // 输入法状态
58
- const isComposing = ref(false)
59
-
60
- // 清除输入
61
- const clearInput = () => {
62
- handleClear()
63
- }
64
-
65
- return {
66
- inputValue,
67
- inputWrapper,
68
- isComposing,
69
- handleChange,
70
- handleSubmit,
71
- handleClear,
72
- clearInput,
73
- }
74
- }