@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,18 +0,0 @@
1
- import o from "./prompt.vue.js";
2
- import t from "./prompts.vue.js";
3
- o.name = "TrPrompt";
4
- const n = function(m) {
5
- m.component(o.name, o);
6
- };
7
- o.install = n;
8
- const a = o;
9
- t.name = "TrPrompts";
10
- const p = function(m) {
11
- m.component(t.name, t);
12
- };
13
- t.install = p;
14
- const c = t;
15
- export {
16
- a as Prompt,
17
- c as Prompts
18
- };
@@ -1,7 +0,0 @@
1
- import o from "./prompt.vue2.js";
2
- /* empty css */
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e04bfae3"]]);
5
- export {
6
- a as default
7
- };
@@ -1,39 +0,0 @@
1
- import { defineComponent as i, createElementBlock as s, openBlock as t, normalizeClass as r, createElementVNode as o, createBlock as a, resolveDynamicComponent as c, createCommentVNode as d, toDisplayString as n, Fragment as l, createTextVNode as _ } from "vue";
2
- const m = { class: "tr-prompt__icon" }, b = { class: "tr-prompt__content" }, g = { class: "tr-prompt__content-label" }, y = {
3
- key: 0,
4
- class: "tr-prompt__content-description"
5
- }, u = /* @__PURE__ */ i({
6
- __name: "prompt",
7
- props: {
8
- label: {},
9
- id: {},
10
- description: {},
11
- icon: {},
12
- disabled: { type: Boolean },
13
- badge: {}
14
- },
15
- setup(p) {
16
- const e = p;
17
- return (f, h) => (t(), s("div", {
18
- class: r(["tr-prompt", { disabled: e.disabled }])
19
- }, [
20
- o("div", m, [
21
- (t(), a(c(e.icon)))
22
- ]),
23
- o("div", b, [
24
- o("h6", g, n(e.label), 1),
25
- e.description ? (t(), s("p", y, n(e.description), 1)) : d("", !0)
26
- ]),
27
- o("div", {
28
- class: r(["tr-prompt__badge", { label: typeof e.badge == "string" }])
29
- }, [
30
- typeof e.badge == "string" ? (t(), s(l, { key: 0 }, [
31
- _(n(e.badge), 1)
32
- ], 64)) : (t(), a(c(e.badge), { key: 1 }))
33
- ], 2)
34
- ], 2));
35
- }
36
- });
37
- export {
38
- u as default
39
- };
@@ -1,7 +0,0 @@
1
- import o from "./prompts.vue2.js";
2
- /* empty css */
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a3ceb6f3"]]);
5
- export {
6
- a as default
7
- };
@@ -1,36 +0,0 @@
1
- import { defineComponent as d, createElementBlock as l, openBlock as o, createElementVNode as u, renderSlot as _, normalizeClass as k, Fragment as f, renderList as C, createBlock as y, mergeProps as v, toRaw as B } from "vue";
2
- import w from "./prompt.vue.js";
3
- const h = { class: "tr-prompts" }, E = /* @__PURE__ */ d({
4
- __name: "prompts",
5
- props: {
6
- items: {},
7
- itemStyle: {},
8
- itemClass: {},
9
- vertical: { type: Boolean },
10
- wrap: { type: Boolean }
11
- },
12
- emits: ["item-click"],
13
- setup(i, { emit: c }) {
14
- const e = i, n = c, a = (t, s) => {
15
- n("item-click", t, B(s));
16
- };
17
- return (t, s) => (o(), l("div", h, [
18
- u("div", {
19
- class: k(["tr-prompts__list-container", { wrap: e.wrap, vertical: e.vertical }])
20
- }, [
21
- (o(!0), l(f, null, C(e.items, (r, m) => (o(), y(w, v({
22
- key: r.id || m,
23
- ref_for: !0
24
- }, r, {
25
- style: e.itemStyle,
26
- class: e.itemClass,
27
- onClick: (p) => a(p, r)
28
- }), null, 16, ["style", "class", "onClick"]))), 128))
29
- ], 2),
30
- _(t.$slots, "footer", {}, void 0, !0)
31
- ]));
32
- }
33
- });
34
- export {
35
- E as default
36
- };
@@ -1,89 +0,0 @@
1
- import { defineComponent as W, ref as a, watch as C, onMounted as z, onBeforeUnmount as R, createElementBlock as o, openBlock as s, normalizeClass as V, createCommentVNode as L, Fragment as w, renderList as E, createElementVNode as I, createTextVNode as q, createVNode as g, unref as b, toDisplayString as Q, nextTick as T } from "vue";
2
- import { IconEdit as $ } from "../../../../svgs/dist/tiny-robot-svgs.js";
3
- const A = ["onClick"], D = { style: { display: "flex", "align-items": "center" } }, F = { key: 0 }, M = ["onClick"], U = /* @__PURE__ */ W({
4
- __name: "CommonQuestions",
5
- props: {
6
- questions: {
7
- type: Array,
8
- required: !0
9
- },
10
- isExpanded: {
11
- type: Boolean,
12
- default: !1
13
- }
14
- },
15
- emits: ["question-click", "show-expand-button"],
16
- setup(B, { emit: N }) {
17
- const i = B, h = N, d = a(null), r = a(!1), c = a(!1), m = a([]), u = a([]);
18
- C(
19
- () => i.isExpanded,
20
- (n) => {
21
- c.value = n;
22
- }
23
- );
24
- const v = async () => {
25
- if (await T(), d.value) {
26
- const n = d.value, k = n.clientWidth;
27
- if (m.value = [], u.value = [], i.questions.length === 0) {
28
- r.value = !1;
29
- return;
30
- }
31
- let e = 0;
32
- const l = 8, t = document.createElement("div");
33
- t.className = "tr-common-questions_item", t.style.visibility = "hidden", t.style.position = "absolute", n.appendChild(t);
34
- for (let p = 0; p < i.questions.length; p++) {
35
- const f = i.questions[p];
36
- t.textContent = f.text;
37
- const y = t.offsetWidth + l;
38
- e + y <= k ? (e += y, m.value.push(f)) : u.value.push(f);
39
- }
40
- n.removeChild(t), r.value = u.value.length > 0, c.value = !1, h("show-expand-button", r.value);
41
- }
42
- }, _ = (n) => {
43
- h("question-click", n);
44
- };
45
- C(
46
- () => i.questions,
47
- () => {
48
- v();
49
- },
50
- { deep: !0 }
51
- );
52
- const x = () => {
53
- v();
54
- };
55
- return z(() => {
56
- v(), window.addEventListener("resize", x);
57
- }), R(() => {
58
- window.removeEventListener("resize", x);
59
- }), (n, k) => (s(), o("div", {
60
- class: V(["tr-common-questions", { expanded: c.value }]),
61
- ref_key: "commonQuestionsRef",
62
- ref: d
63
- }, [
64
- (s(!0), o(w, null, E(m.value, (e, l) => (s(), o("div", {
65
- key: `visible-${e.id}-${l}`,
66
- class: "tr-common-questions_item",
67
- onClick: (t) => _(e)
68
- }, [
69
- I("div", D, [
70
- g(b($))
71
- ]),
72
- q(" " + Q(e.text), 1)
73
- ], 8, A))), 128)),
74
- c.value ? (s(), o("div", F, [
75
- (s(!0), o(w, null, E(u.value, (e, l) => (s(), o("div", {
76
- key: `hidden-${e.id}-${l}`,
77
- class: "tr-common-questions_item",
78
- onClick: (t) => _(e)
79
- }, [
80
- g(b($)),
81
- q(" " + Q(e.text), 1)
82
- ], 8, M))), 128))
83
- ])) : L("", !0)
84
- ], 2));
85
- }
86
- });
87
- export {
88
- U as default
89
- };
@@ -1,4 +0,0 @@
1
- import f from "./CommonQuestions.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,140 +0,0 @@
1
- import { defineComponent as O, ref as k, computed as Q, watch as S, createElementBlock as i, createCommentVNode as h, openBlock as l, createElementVNode as s, withModifiers as _, normalizeStyle as M, createVNode as v, unref as r, Fragment as C, renderList as q, normalizeClass as N, renderSlot as u, toDisplayString as f, createTextVNode as V } from "vue";
2
- import z from "../../../../../node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js";
3
- import I from "../../../../../node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js";
4
- import { IconHotQuestion as T, IconTypeAll as A } from "../../../../svgs/dist/tiny-robot-svgs.js";
5
- const E = { class: "tr-question-header" }, H = { style: { display: "flex", "align-items": "center", gap: "12px", "font-size": "36px" } }, R = {
6
- key: 0,
7
- class: "tr-question-categories"
8
- }, W = ["onClick"], D = { class: "category-icon" }, F = { class: "tr-question-content" }, L = {
9
- key: 0,
10
- class: "tr-question-loading"
11
- }, P = { key: 1 }, j = ["onClick"], G = {
12
- key: 2,
13
- class: "tr-question-empty"
14
- }, Z = /* @__PURE__ */ O({
15
- __name: "HotQuestions",
16
- props: {
17
- visible: {
18
- type: Boolean,
19
- default: !1
20
- },
21
- categories: {
22
- type: Array,
23
- default: () => []
24
- },
25
- modalWidth: {
26
- type: String,
27
- default: "640px"
28
- },
29
- loading: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- closeOnClickOutside: {
34
- type: Boolean,
35
- default: !0
36
- }
37
- },
38
- emits: ["update:visible", "close", "select-category", "question-click"],
39
- setup(n, { emit: b }) {
40
- const B = z(), a = n, c = b, d = k(""), p = Q(() => {
41
- if (!d.value && a.categories.length > 0)
42
- return a.categories[0].questions || [];
43
- const e = a.categories.find((t) => t.id === d.value);
44
- return e ? e.questions : [];
45
- });
46
- S(
47
- () => a.categories,
48
- (e) => {
49
- e.length > 0 && !d.value && (d.value = e[0].id);
50
- },
51
- { immediate: !0 }
52
- );
53
- const y = () => {
54
- c("update:visible", !1), c("close");
55
- }, $ = (e) => {
56
- d.value = e, c(
57
- "select-category",
58
- a.categories.find((t) => t.id === e)
59
- );
60
- }, w = (e) => {
61
- c("question-click", e);
62
- }, x = (e) => {
63
- a.closeOnClickOutside && !e.composedPath().includes(g.value) && y();
64
- }, g = k(null);
65
- return (e, t) => n.visible ? (l(), i("div", {
66
- key: 0,
67
- class: "tr-question-modal-backdrop",
68
- onMousedown: x
69
- }, [
70
- s("div", {
71
- ref_key: "modalRef",
72
- ref: g,
73
- class: "tr-question-panel",
74
- style: M({ width: n.modalWidth }),
75
- onMousedown: t[0] || (t[0] = _(() => {
76
- }, ["stop"]))
77
- }, [
78
- s("div", E, [
79
- s("div", H, [
80
- s("div", null, [
81
- v(r(T))
82
- ]),
83
- t[1] || (t[1] = s("div", { class: "tr-question-header-title" }, "热门问题", -1))
84
- ]),
85
- s("span", {
86
- class: "tr-question-close-btn",
87
- onClick: y
88
- }, [
89
- v(r(I), {
90
- icon: r(B),
91
- type: "text"
92
- }, null, 8, ["icon"])
93
- ])
94
- ]),
95
- n.categories.length > 0 ? (l(), i("div", R, [
96
- (l(!0), i(C, null, q(n.categories, (o) => (l(), i("div", {
97
- key: o.id,
98
- class: N(["tr-question-categories-item", { active: d.value === o.id }]),
99
- onClick: (m) => $(o.id)
100
- }, [
101
- u(e.$slots, "category-label", { category: o }, () => [
102
- s("div", D, [
103
- v(r(A))
104
- ]),
105
- s("span", null, f(o.label), 1)
106
- ])
107
- ], 10, W))), 128))
108
- ])) : h("", !0),
109
- s("div", F, [
110
- n.loading ? (l(), i("div", L, [
111
- u(e.$slots, "loading-indicator", {}, () => [
112
- t[2] || (t[2] = s("div", { class: "tr-question-loading-spinner" }, null, -1))
113
- ])
114
- ])) : p.value.length > 0 ? (l(), i("ul", P, [
115
- (l(!0), i(C, null, q(p.value, (o, m) => (l(), i("li", {
116
- key: o.id,
117
- class: "tr-question-list-item",
118
- onClick: (J) => w(o)
119
- }, [
120
- u(e.$slots, "question-item", {
121
- question: o,
122
- index: m
123
- }, () => [
124
- s("span", null, f(m + 1) + ".", 1),
125
- V(" " + f(o.text), 1)
126
- ])
127
- ], 8, j))), 128))
128
- ])) : (l(), i("div", G, [
129
- u(e.$slots, "empty-state", {}, () => [
130
- t[3] || (t[3] = s("p", null, "暂无相关问题", -1))
131
- ])
132
- ]))
133
- ])
134
- ], 36)
135
- ], 32)) : h("", !0);
136
- }
137
- });
138
- export {
139
- Z as default
140
- };
@@ -1,4 +0,0 @@
1
- import f from "./HotQuestions.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,48 +0,0 @@
1
- import { ref as l, computed as h, watch as y } from "vue";
2
- function b(a = l([])) {
3
- const s = l(""), c = l(!1), n = l(!1), o = l("light"), r = h(() => {
4
- if (!s.value && a.value.length > 0)
5
- return a.value[0].questions;
6
- const t = a.value.find((e) => e.id === s.value);
7
- return t ? t.questions : [];
8
- }), i = (t) => {
9
- s.value = t;
10
- }, d = () => {
11
- n.value = !0;
12
- }, m = () => {
13
- n.value = !1;
14
- }, v = () => {
15
- c.value = !c.value;
16
- }, u = (t) => {
17
- const e = document.body;
18
- if (t) {
19
- const g = window.scrollY || document.documentElement.scrollTop;
20
- e.style.position = "fixed", e.style.width = "100%", e.style.top = `-${g}px`, e.style.overflowY = "scroll", e.classList.add("tr-modal-open");
21
- } else
22
- e.style.position = "", e.style.width = "", e.style.top = "", e.style.overflowY = "", e.classList.remove("tr-modal-open");
23
- };
24
- return y(n, (t) => {
25
- u(t);
26
- }), {
27
- activeCategory: s,
28
- isFloatingExpanded: c,
29
- modalVisible: n,
30
- currentTheme: o,
31
- activeQuestions: r,
32
- setActiveCategory: i,
33
- openModal: d,
34
- closeModal: m,
35
- toggleFloating: v,
36
- toggleTheme: () => {
37
- o.value = o.value === "light" ? "dark" : "light", document.documentElement.setAttribute("data-theme", o.value);
38
- },
39
- setTheme: (t) => {
40
- o.value = t, document.documentElement.setAttribute("data-theme", t);
41
- },
42
- refreshData: async () => Promise.resolve(),
43
- toggleBodyScroll: u
44
- };
45
- }
46
- export {
47
- b as useQuestions
48
- };
@@ -1,9 +0,0 @@
1
- import n from "./index.vue.js";
2
- n.name = "TrQuestion";
3
- const o = function(t) {
4
- t.component(n.name, n);
5
- };
6
- n.install = o;
7
- export {
8
- n as default
9
- };
@@ -1,113 +0,0 @@
1
- import { defineComponent as D, computed as N, ref as w, watch as O, onMounted as T, createElementBlock as q, openBlock as i, normalizeClass as M, createElementVNode as l, createVNode as a, createCommentVNode as U, unref as n, withCtx as d, renderSlot as r, createTextVNode as W, toDisplayString as p, createBlock as B } from "vue";
2
- import { useQuestions as z } from "./composables/useQuestions.js";
3
- import F from "./components/CommonQuestions.vue.js";
4
- import H from "./components/HotQuestions.vue.js";
5
- import { IconHotQuestion as j, IconTypeAll as G, IconArrowUp as J, IconArrowDown as K } from "../../../svgs/dist/tiny-robot-svgs.js";
6
- /* empty css */
7
- const L = ["data-theme"], P = { class: "category-icon" }, te = /* @__PURE__ */ D({
8
- __name: "index",
9
- props: {
10
- categories: { default: () => [] },
11
- commonQuestions: { default: () => [] },
12
- initialExpanded: { type: Boolean, default: !1 },
13
- modalWidth: { default: "640px" },
14
- theme: { default: "light" },
15
- closeOnClickOutside: { type: Boolean, default: !0 },
16
- loading: { type: Boolean, default: !1 }
17
- },
18
- emits: ["question-click", "select-category"],
19
- setup(b, { expose: Q, emit: $ }) {
20
- const u = b, g = () => {
21
- s.value = !s.value;
22
- }, f = $, v = N(() => u.categories), s = w(u.initialExpanded), { modalVisible: m, currentTheme: x, setActiveCategory: h, openModal: c, closeModal: k, setTheme: S, refreshData: A } = z(v);
23
- O(
24
- () => u.theme,
25
- (e) => {
26
- S(e);
27
- }
28
- );
29
- const y = (e) => {
30
- k(), f("question-click", e);
31
- }, I = (e) => {
32
- e && (h(e.id), f("select-category", e));
33
- }, C = w(!1), V = (e) => {
34
- C.value = e;
35
- };
36
- return T(() => {
37
- document.documentElement.setAttribute("data-theme", x.value);
38
- }), Q({
39
- openModal: c,
40
- closeModal: k,
41
- toggleFloating: g,
42
- setActiveCategory: h,
43
- refreshData: A
44
- }), (e, t) => (i(), q("div", {
45
- class: M(["tr-question-container", [`theme-${e.theme}`]]),
46
- "data-theme": e.theme
47
- }, [
48
- l("div", {
49
- class: "tr-question-trigger",
50
- onClick: t[0] || (t[0] = //@ts-ignore
51
- (...o) => n(c) && n(c)(...o))
52
- }, [
53
- a(n(j))
54
- ]),
55
- a(H, {
56
- visible: n(m),
57
- categories: v.value,
58
- "modal-width": e.modalWidth,
59
- loading: e.loading,
60
- "close-on-click-outside": e.closeOnClickOutside,
61
- "onUpdate:visible": t[1] || (t[1] = (o) => m.value = o),
62
- onClose: t[2] || (t[2] = (o) => m.value = !1),
63
- onQuestionClick: y,
64
- onSelectCategory: I
65
- }, {
66
- "category-label": d(({ category: o }) => [
67
- r(e.$slots, "category-label", { category: o }, () => [
68
- l("div", P, [
69
- a(n(G))
70
- ]),
71
- l("span", null, p(o.label), 1)
72
- ])
73
- ]),
74
- "question-item": d(({ question: o, index: E }) => [
75
- r(e.$slots, "question-item", {
76
- question: o,
77
- index: E
78
- }, () => [
79
- l("span", null, p(E + 1) + ".", 1),
80
- W(" " + p(o.text), 1)
81
- ])
82
- ]),
83
- "loading-indicator": d(() => [
84
- r(e.$slots, "loading-indicator", {}, () => [
85
- t[3] || (t[3] = l("div", { class: "tr-question-loading-spinner" }, null, -1))
86
- ])
87
- ]),
88
- "empty-state": d(() => [
89
- r(e.$slots, "empty-state", {}, () => [
90
- t[4] || (t[4] = l("p", null, "暂无相关问题", -1))
91
- ])
92
- ]),
93
- _: 3
94
- }, 8, ["visible", "categories", "modal-width", "loading", "close-on-click-outside"]),
95
- a(F, {
96
- isExpanded: s.value,
97
- questions: e.commonQuestions,
98
- onShowExpandButton: V,
99
- onQuestionClick: y
100
- }, null, 8, ["isExpanded", "questions"]),
101
- C.value ? (i(), q("div", {
102
- key: 0,
103
- class: "tr-question-wrap-trigger",
104
- onClick: g
105
- }, [
106
- s.value ? (i(), B(n(K), { key: 1 })) : (i(), B(n(J), { key: 0 }))
107
- ])) : U("", !0)
108
- ], 10, L));
109
- }
110
- });
111
- export {
112
- te as default
113
- };
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,143 +0,0 @@
1
- import { defineComponent as R, computed as m, resolveComponent as E, createElementBlock as d, openBlock as t, createBlock as s, createCommentVNode as r, withCtx as l, createVNode as g, unref as a, createElementVNode as f, normalizeClass as y, resolveDynamicComponent as N } from "vue";
2
- import T from "../../assets/icons/accessory.svg.js";
3
- import V from "../../assets/icons/voice.svg.js";
4
- import D from "../../assets/icons/loading-speech.svg.js";
5
- import F from "../../assets/icons/send.svg.js";
6
- import q from "../../assets/icons/loading.svg.js";
7
- import u from "../../../../../node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js";
8
- import z from "../../../../../node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js";
9
- const A = { class: "action-buttons" }, I = {
10
- key: 0,
11
- src: V,
12
- class: "button-icon",
13
- alt: "录音"
14
- }, $ = {
15
- key: 1,
16
- src: D,
17
- class: "button-icon recording-icon",
18
- alt: "语音中"
19
- }, j = { class: "button-content" }, G = {
20
- key: 0,
21
- src: F,
22
- alt: "发送"
23
- }, W = /* @__PURE__ */ R({
24
- __name: "ActionButtons",
25
- props: {
26
- loading: { type: Boolean, default: !1 },
27
- disabled: { type: Boolean, default: !1 },
28
- showClear: { type: Boolean, default: !0 },
29
- hasContent: { type: Boolean, default: !1 },
30
- allowSpeech: { type: Boolean, default: !1 },
31
- speechStatus: { default: () => ({
32
- isRecording: !1,
33
- isSupported: !1
34
- }) },
35
- allowFiles: { type: Boolean, default: !1 },
36
- submitType: { default: "enter" },
37
- showShortcuts: { type: Boolean }
38
- },
39
- emits: ["clear", "toggle-speech", "submit", "cancel"],
40
- setup(h, { emit: _ }) {
41
- const C = z(), i = h, c = _, v = m(() => i.allowSpeech), b = m(() => i.speechStatus.isRecording), o = m(() => i.disabled), k = () => {
42
- o.value || c("clear");
43
- }, B = () => {
44
- if (!o.value) {
45
- const e = !i.speechStatus.isRecording;
46
- c("toggle-speech", e);
47
- }
48
- }, S = () => {
49
- o.value || c("submit");
50
- }, w = () => {
51
- o.value || c("cancel");
52
- };
53
- return (e, n) => {
54
- const p = E("tiny-tooltip");
55
- return t(), d("div", A, [
56
- e.allowFiles && !e.loading ? (t(), s(p, {
57
- key: 0,
58
- content: "上传文件",
59
- placement: "top"
60
- }, {
61
- default: l(() => [
62
- g(a(u), {
63
- type: "text",
64
- disabled: o.value
65
- }, {
66
- default: l(() => n[1] || (n[1] = [
67
- f("img", {
68
- src: T,
69
- class: "button-icon",
70
- alt: "上传文件"
71
- }, null, -1)
72
- ])),
73
- _: 1
74
- }, 8, ["disabled"])
75
- ]),
76
- _: 1
77
- })) : r("", !0),
78
- v.value && !e.loading ? (t(), s(a(u), {
79
- key: 1,
80
- type: "text",
81
- disabled: o.value,
82
- onClick: B,
83
- class: y(["speech-button", { "is-recording": b.value }])
84
- }, {
85
- default: l(() => [
86
- b.value ? (t(), d("img", $)) : (t(), d("img", I))
87
- ]),
88
- _: 1
89
- }, 8, ["disabled", "class"])) : r("", !0),
90
- e.showClear ? (t(), s(p, {
91
- key: 2,
92
- content: "清空内容",
93
- placement: "top"
94
- }, {
95
- default: l(() => [
96
- g(a(u), {
97
- type: "text",
98
- disabled: o.value || !e.hasContent,
99
- onClick: k,
100
- style: { "margin-left": "0" }
101
- }, {
102
- default: l(() => [
103
- (t(), s(N(a(C)), { class: "button-icon" }))
104
- ]),
105
- _: 1
106
- }, 8, ["disabled"])
107
- ]),
108
- _: 1
109
- })) : r("", !0),
110
- e.hasContent || e.loading ? (t(), s(a(u), {
111
- key: 3,
112
- type: "text",
113
- class: y(e.loading ? "cancel-button" : "submit-button"),
114
- disabled: o.value,
115
- onClick: n[0] || (n[0] = (H) => e.loading ? w() : S())
116
- }, {
117
- default: l(() => [
118
- f("div", j, [
119
- e.loading ? (t(), s(p, {
120
- key: 1,
121
- content: "停止生成",
122
- placement: "top"
123
- }, {
124
- default: l(() => n[2] || (n[2] = [
125
- f("img", {
126
- src: q,
127
- alt: "加载中",
128
- class: "loading"
129
- }, null, -1)
130
- ])),
131
- _: 1
132
- })) : (t(), d("img", G))
133
- ])
134
- ]),
135
- _: 1
136
- }, 8, ["class", "disabled"])) : r("", !0)
137
- ]);
138
- };
139
- }
140
- });
141
- export {
142
- W as default
143
- };
@@ -1,4 +0,0 @@
1
- import f from "./ActionButtons.vue.js";
2
- export {
3
- f as default
4
- };