@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,9 +1,9 @@
1
- import { svg as o } from "../../../../../@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js";
2
- import { createElementBlock as t, openBlock as n, createElementVNode as r } from "vue";
1
+ import { l as o } from "./index6.js";
2
+ import { createElementBlock as n, openBlock as r, createElementVNode as t } from "vue";
3
3
  var c = {
4
4
  viewBox: "0 0 16 16",
5
5
  xmlns: "http://www.w3.org/2000/svg"
6
- }, a = /* @__PURE__ */ r(
6
+ }, a = /* @__PURE__ */ t(
7
7
  "path",
8
8
  {
9
9
  d: "M12.49 3.3a.5.5 0 0 1 .05.62L8.58 7.89l3.91 3.88c.21.19.23.48.05.71-.17.19-.49.24-.71.06L7.88 8.58 4 12.49c-.18.17-.5.18-.68.01a.496.496 0 0 1-.08-.67l3.93-3.94L3.29 4a.524.524 0 0 1 .04-.71c.17-.14.42-.16.58-.05l3.97 3.93 3.9-3.87c.18-.22.51-.22.71 0Z",
@@ -13,17 +13,17 @@ var c = {
13
13
  -1
14
14
  /* HOISTED */
15
15
  ), l = [a];
16
- function d(e, s) {
17
- return n(), t("svg", c, [].concat(l));
16
+ function i(e, d) {
17
+ return r(), n("svg", c, [].concat(l));
18
18
  }
19
- var i = {
20
- render: d
19
+ var s = {
20
+ render: i
21
21
  }, _ = function() {
22
22
  return o({
23
23
  name: "IconClose",
24
- component: i
24
+ component: s
25
25
  })();
26
26
  };
27
27
  export {
28
- _ as default
28
+ _ as i
29
29
  };
@@ -0,0 +1,60 @@
1
+ import { defineComponent as m, useCssVars as v, useModel as c, computed as _, createElementBlock as w, openBlock as g, createElementVNode as n, renderSlot as r, createVNode as u, unref as a } from "vue";
2
+ import { N as h, F as $, T as C } from "../tiny-robot-svgs.js";
3
+ import d from "../icon-button/index.js";
4
+ import { _ as b } from "../_plugin-vue_export-helper.js";
5
+ const B = { class: "tr-container" }, N = { class: "tr-container__header" }, T = { class: "tr-container__header-operations" }, k = { class: "tr-container__footer" }, z = /* @__PURE__ */ m({
6
+ __name: "index",
7
+ props: {
8
+ show: { type: Boolean, required: !0 },
9
+ showModifiers: {},
10
+ fullscreen: { type: Boolean },
11
+ fullscreenModifiers: {}
12
+ },
13
+ emits: ["update:show", "update:fullscreen"],
14
+ setup(o) {
15
+ v((t) => ({
16
+ b67b7ee6: s.value ? "0" : "unset",
17
+ "72873ea0": s.value ? "unset" : "var(--tr-container-width)",
18
+ "224ae4c1": l.value ? "100" : "-1",
19
+ cb10cae2: l.value ? "1" : "0"
20
+ }));
21
+ const l = c(o, "show"), s = c(o, "fullscreen"), f = _(() => s.value ? h : $);
22
+ return (t, e) => (g(), w("div", B, [
23
+ e[3] || (e[3] = n("div", { class: "tr-container__dragging-bar-wrapper" }, [
24
+ n("div", { class: "tr-container__dragging-bar" })
25
+ ], -1)),
26
+ n("div", N, [
27
+ r(t.$slots, "title", {}, () => [
28
+ e[2] || (e[2] = n("h3", { class: "tr-container__title" }, "OpenTiny NEXT", -1))
29
+ ]),
30
+ n("div", T, [
31
+ r(t.$slots, "operations"),
32
+ u(a(d), {
33
+ size: "28",
34
+ "svg-size": "20",
35
+ icon: f.value,
36
+ onClick: e[0] || (e[0] = (p) => t.$emit("update:fullscreen", !s.value))
37
+ }, null, 8, ["icon"]),
38
+ u(a(d), {
39
+ size: "28",
40
+ "svg-size": "20",
41
+ icon: a(C),
42
+ onClick: e[1] || (e[1] = (p) => t.$emit("update:show", !1))
43
+ }, null, 8, ["icon"])
44
+ ])
45
+ ]),
46
+ r(t.$slots, "default"),
47
+ n("div", k, [
48
+ r(t.$slots, "footer")
49
+ ])
50
+ ]));
51
+ }
52
+ }), i = /* @__PURE__ */ b(z, [["__scopeId", "data-v-81c9f59e"]]);
53
+ i.name = "TrContainer";
54
+ const y = function(o) {
55
+ o.component(i.name, i);
56
+ };
57
+ i.install = y;
58
+ export {
59
+ i as default
60
+ };
@@ -0,0 +1,14 @@
1
+ import { _ as t } from "../_plugin-vue_export-helper.js";
2
+ const s = {};
3
+ function e(o, r) {
4
+ return "conversations";
5
+ }
6
+ const n = /* @__PURE__ */ t(s, [["render", e]]);
7
+ n.name = "Conversations";
8
+ const c = function(o) {
9
+ o.component(n.name, n);
10
+ };
11
+ n.install = c;
12
+ export {
13
+ n as default
14
+ };
@@ -0,0 +1,192 @@
1
+ import { defineComponent as D, ref as E, computed as P, onMounted as z, watch as O, createElementBlock as a, openBlock as t, createCommentVNode as k, Fragment as x, renderList as S, toDisplayString as y, createVNode as b, unref as l, nextTick as Z, createElementVNode as p, createBlock as d, withCtx as f, createTextVNode as q, resolveDynamicComponent as C } from "vue";
2
+ import { D as T, x as N, Z as j, E as H, V as J, h as K } from "../tiny-robot-svgs.js";
3
+ import { B as R } from "../index3.js";
4
+ import V, { ActionGroupItem as $ } from "../action-group/index.js";
5
+ import Q from "../icon-button/index.js";
6
+ import { _ as X } from "../_plugin-vue_export-helper.js";
7
+ const U = { class: "tr-feedback__source-list" }, W = ["href"], Y = /* @__PURE__ */ D({
8
+ __name: "SourceList",
9
+ props: {
10
+ sources: {},
11
+ linesLimit: { default: Number.MAX_SAFE_INTEGER }
12
+ },
13
+ setup(h) {
14
+ const _ = h, e = E(!1), L = E([]), c = E(null), g = () => {
15
+ Z(() => {
16
+ const u = L.value.map((o) => (o == null ? void 0 : o.offsetTop) || 0), n = Array.from(new Set(u));
17
+ if (n.length > _.linesLimit) {
18
+ const o = n[_.linesLimit - 1], s = u.lastIndexOf(o);
19
+ c.value = s;
20
+ } else
21
+ c.value = null;
22
+ });
23
+ }, A = P(() => _.sources.length - (c.value || 0));
24
+ z(g), O(() => _.sources, g);
25
+ const m = (u, n) => {
26
+ u && (L.value[n] = u);
27
+ };
28
+ return (u, n) => (t(), a("div", U, [
29
+ (t(!0), a(x, null, S(_.sources, (o, s) => (t(), a(x, { key: s }, [
30
+ !c.value || e.value || s < c.value ? (t(), a("a", {
31
+ key: 0,
32
+ class: "pill",
33
+ href: o.link,
34
+ target: "_blank",
35
+ ref_for: !0,
36
+ ref: (r) => m(r, s)
37
+ }, y(o.label), 9, W)) : k("", !0),
38
+ c.value && !e.value && s === c.value ? (t(), a("span", {
39
+ key: 1,
40
+ class: "pill",
41
+ onClick: n[0] || (n[0] = (r) => e.value = !0)
42
+ }, y(A.value) + "+ ", 1)) : k("", !0)
43
+ ], 64))), 128)),
44
+ e.value ? (t(), a("span", {
45
+ key: 0,
46
+ class: "pill collapse-pill",
47
+ onClick: n[1] || (n[1] = (o) => e.value = !1)
48
+ }, [
49
+ b(l(T))
50
+ ])) : k("", !0)
51
+ ]));
52
+ }
53
+ }), ee = /* @__PURE__ */ X(Y, [["__scopeId", "data-v-5817f518"]]), te = { class: "tr-feedback" }, se = { class: "tr-feedback__operations" }, oe = { class: "tr-feedback__operations-left" }, ne = { key: 1 }, le = { class: "tr-feedback__operations-right" }, ae = {
54
+ key: 0,
55
+ class: "tr-feedback__footer"
56
+ }, re = { key: 0 }, ie = /* @__PURE__ */ D({
57
+ __name: "index",
58
+ props: {
59
+ operations: {},
60
+ operationsLimit: { default: Number.MAX_SAFE_INTEGER },
61
+ actions: {},
62
+ actionsLimit: { default: Number.MAX_SAFE_INTEGER },
63
+ sources: {},
64
+ sourcesLinesLimit: { default: Number.MAX_SAFE_INTEGER }
65
+ },
66
+ emits: ["operation", "action"],
67
+ setup(h, { emit: _ }) {
68
+ const e = h, L = {
69
+ copy: K,
70
+ refresh: J,
71
+ like: H,
72
+ dislike: j
73
+ }, c = _, g = (n) => {
74
+ var o, s, r;
75
+ (r = (s = (o = e.operations) == null ? void 0 : o.find((v) => v.name === n)) == null ? void 0 : s.onClick) == null || r.call(s), c("operation", n);
76
+ }, A = (n) => {
77
+ var o, s, r;
78
+ (r = (s = (o = e.actions) == null ? void 0 : o.find((v) => v.name === n)) == null ? void 0 : s.onClick) == null || r.call(s), c("action", n);
79
+ }, m = E(!1), u = () => {
80
+ m.value = !m.value;
81
+ };
82
+ return (n, o) => {
83
+ var s, r, v, w, B, F, M, G;
84
+ return t(), a("div", te, [
85
+ p("div", se, [
86
+ p("div", oe, [
87
+ (s = e.operations) != null && s.length ? (t(), d(l(V), {
88
+ key: 0,
89
+ "max-num": e.operationsLimit,
90
+ "drop-down-show-label-only": !0,
91
+ onItemClick: g,
92
+ class: "tr-feedback__operations-left-action-group"
93
+ }, {
94
+ moreBtn: f(() => [
95
+ b(l(R), {
96
+ round: "",
97
+ size: "mini",
98
+ "reset-time": 0,
99
+ class: "tr-feedback__operations-more-btn"
100
+ }, {
101
+ default: f(() => [
102
+ o[0] || (o[0] = p("span", null, "更多", -1)),
103
+ b(l(N))
104
+ ]),
105
+ _: 1
106
+ })
107
+ ]),
108
+ default: f(() => [
109
+ (t(!0), a(x, null, S(e.operations, (i) => (t(), d(l($), {
110
+ key: i.name,
111
+ name: i.name,
112
+ label: i.label
113
+ }, {
114
+ default: f(() => [
115
+ b(l(R), {
116
+ round: "",
117
+ "reset-time": 0,
118
+ size: "mini"
119
+ }, {
120
+ default: f(() => [
121
+ q(y(i.label), 1)
122
+ ]),
123
+ _: 2
124
+ }, 1024)
125
+ ]),
126
+ _: 2
127
+ }, 1032, ["name", "label"]))), 128))
128
+ ]),
129
+ _: 1
130
+ }, 8, ["max-num"])) : (r = e.sources) != null && r.length ? (t(), a("div", ne, [
131
+ p("span", {
132
+ class: "tr-feedback__source",
133
+ onClick: u
134
+ }, [
135
+ p("span", null, y((v = e.sources) == null ? void 0 : v.length) + "条来源", 1),
136
+ (t(), d(C(m.value ? l(T) : l(N))))
137
+ ])
138
+ ])) : k("", !0)
139
+ ]),
140
+ p("div", le, [
141
+ b(l(V), {
142
+ "max-num": e.actionsLimit,
143
+ "show-tooltip": !0,
144
+ onItemClick: A
145
+ }, {
146
+ default: f(() => [
147
+ (t(!0), a(x, null, S(e.actions, (i) => (t(), d(l($), {
148
+ key: i.name,
149
+ name: i.name,
150
+ label: i.label
151
+ }, {
152
+ default: f(() => [
153
+ typeof i.icon == "string" ? (t(), d(l(Q), {
154
+ key: 0,
155
+ icon: L[i.icon]
156
+ }, null, 8, ["icon"])) : (t(), d(C(i.icon), { key: 1 }))
157
+ ]),
158
+ _: 2
159
+ }, 1032, ["name", "label"]))), 128))
160
+ ]),
161
+ _: 1
162
+ }, 8, ["max-num"])
163
+ ])
164
+ ]),
165
+ (w = e.operations) != null && w.length && ((B = e.sources) != null && B.length) || m.value && e.sources ? (t(), a("div", ae, [
166
+ (F = e.operations) != null && F.length && ((M = e.sources) != null && M.length) ? (t(), a("div", re, [
167
+ p("span", {
168
+ class: "tr-feedback__source",
169
+ onClick: u
170
+ }, [
171
+ p("span", null, y((G = e.sources) == null ? void 0 : G.length) + "条来源", 1),
172
+ (t(), d(C(m.value ? l(T) : l(N))))
173
+ ])
174
+ ])) : k("", !0),
175
+ m.value && e.sources ? (t(), d(l(ee), {
176
+ key: 1,
177
+ sources: e.sources,
178
+ "lines-limit": e.sourcesLinesLimit
179
+ }, null, 8, ["sources", "lines-limit"])) : k("", !0)
180
+ ])) : k("", !0)
181
+ ]);
182
+ };
183
+ }
184
+ }), I = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-cc6ef316"]]);
185
+ I.name = "TrFeedback";
186
+ const ce = function(h) {
187
+ h.component(I.name, I);
188
+ };
189
+ I.install = ce;
190
+ export {
191
+ I as default
192
+ };
@@ -0,0 +1,228 @@
1
+ import { defineComponent as V, createElementBlock as u, openBlock as n, normalizeStyle as X, normalizeClass as D, createElementVNode as p, toDisplayString as k, createVNode as m, unref as e, ref as A, watchEffect as Y, nextTick as Z, mergeModels as G, useCssVars as q, computed as h, useModel as N, createCommentVNode as E, Fragment as T, renderList as $, createBlock as P, withDirectives as ee, mergeProps as te, withCtx as R, withModifiers as H, vModelText as re } from "vue";
2
+ import { k as oe, S as se, y as ae, j as ne, T as ie } from "../tiny-robot-svgs.js";
3
+ import { I as le } from "../index5.js";
4
+ import { T as U } from "../index4.js";
5
+ import B from "../icon-button/index.js";
6
+ import { o as ce } from "../index2.js";
7
+ import { _ as M } from "../_plugin-vue_export-helper.js";
8
+ const ue = /* @__PURE__ */ V({
9
+ __name: "item-tag",
10
+ props: {
11
+ text: {},
12
+ type: { default: "default" },
13
+ style: {}
14
+ },
15
+ setup(i) {
16
+ const t = i;
17
+ return (a, _) => (n(), u("div", {
18
+ class: D(["tr-history__item-tag", t.type]),
19
+ style: X(t.style)
20
+ }, [
21
+ p("span", null, k(t.text), 1)
22
+ ], 6));
23
+ }
24
+ }), de = /* @__PURE__ */ M(ue, [["__scopeId", "data-v-346767bb"]]), _e = { class: "tr-history__empty" }, pe = { class: "tr-history__empty-icon" }, he = { class: "tr-history__empty-text" }, me = /* @__PURE__ */ V({
25
+ __name: "search-empty",
26
+ props: {
27
+ text: { default: "暂无内容" }
28
+ },
29
+ setup(i) {
30
+ const t = i;
31
+ return (a, _) => (n(), u("div", _e, [
32
+ p("span", pe, [
33
+ m(e(oe))
34
+ ]),
35
+ p("span", he, k(t.text), 1)
36
+ ]));
37
+ }
38
+ }), ye = /* @__PURE__ */ M(me, [["__scopeId", "data-v-b21f5bc0"]]), ve = (i) => {
39
+ const t = A(), a = (l) => {
40
+ t.value = {
41
+ id: l.id,
42
+ title: l.title,
43
+ rawData: l
44
+ };
45
+ }, _ = A(null), y = (l) => {
46
+ l && Z(() => {
47
+ _.value = l, _.value.focus();
48
+ });
49
+ };
50
+ let r;
51
+ const v = () => {
52
+ if (t.value) {
53
+ if (t.value.title !== t.value.rawData.title) {
54
+ const { title: l, rawData: I } = t.value;
55
+ i("item-title-change", l, I);
56
+ }
57
+ t.value = void 0;
58
+ }
59
+ r == null || r(), r = void 0;
60
+ }, g = () => {
61
+ t.value = void 0, r == null || r(), r = void 0;
62
+ }, b = (l) => {
63
+ l.key === "Enter" ? v() : l.key === "Escape" && g();
64
+ };
65
+ return Y(() => {
66
+ _.value && (r == null || r(), r = ce(_, () => {
67
+ v();
68
+ }));
69
+ }), {
70
+ editingItem: t,
71
+ handleEdit: a,
72
+ handleEditorInputRef: y,
73
+ handleKeyDown: b
74
+ };
75
+ }, fe = { class: "tr-history" }, ke = { class: "tr-history__tabs" }, ge = ["onClick"], be = {
76
+ key: 0,
77
+ class: "tr-history__search"
78
+ }, xe = { class: "tr-history__content" }, Ce = {
79
+ key: 0,
80
+ class: "tr-history__group-title"
81
+ }, Te = ["onClick"], Ie = { class: "tr-history__item-title" }, we = { class: "tr-history__item-actions" }, Ee = { class: "tr-history__close" }, $e = /* @__PURE__ */ V({
82
+ __name: "index",
83
+ props: /* @__PURE__ */ G({
84
+ tabTitle: {},
85
+ data: {},
86
+ activeTab: {},
87
+ searchBar: { type: Boolean },
88
+ searchQuery: {},
89
+ searchPlaceholder: {},
90
+ searchFn: { type: Function, default: (i, { title: t }) => i ? t.toLowerCase().includes(i.toLowerCase()) : !0 },
91
+ selected: {},
92
+ tabs: {}
93
+ }, {
94
+ activeTab: {},
95
+ activeTabModifiers: {},
96
+ searchQuery: {},
97
+ searchQueryModifiers: {}
98
+ }),
99
+ emits: /* @__PURE__ */ G(["close", "item-click", "item-title-change", "item-delete"], ["update:activeTab", "update:searchQuery"]),
100
+ setup(i, { emit: t }) {
101
+ q((c) => ({
102
+ d4b77bae: b.value ? "1px solid rgb(240, 240, 240)" : "none",
103
+ "659130e6": b.value ? "2px solid rgb(25, 25, 25)" : "none"
104
+ }));
105
+ const a = i, _ = N(i, "activeTab"), y = N(i, "searchQuery"), r = t, v = h(() => Array.isArray(a.tabs) ? a.tabs : [{ title: a.tabTitle, id: "0" }]), g = h(() => _.value || v.value[0].id), b = h(() => v.value.length > 1), l = (c) => {
106
+ var s;
107
+ const o = typeof ((s = c[0]) == null ? void 0 : s.group);
108
+ return o === "string" || o === "symbol";
109
+ }, I = h(() => Array.isArray(a.data) ? a.data || [] : a.data[g.value] || []), w = Symbol("NO_GROUP"), O = h(() => {
110
+ const c = I.value;
111
+ return l(c) ? c : [{ group: w, items: c }];
112
+ }), x = h(() => a.searchBar ? O.value.map((o) => ({
113
+ ...o,
114
+ items: o.items.filter((s) => a.searchFn(y.value || "", s))
115
+ })).filter((o) => o.items.length > 0) : O.value), L = h(() => x.value.length === 0 ? !1 : x.value[0].group === w ? x.value[0].items.length > 0 : !0), j = (c) => {
116
+ var o;
117
+ c.id !== ((o = C.value) == null ? void 0 : o.id) && r("item-click", c);
118
+ }, z = () => {
119
+ r("close");
120
+ }, W = (c) => {
121
+ r("item-delete", c);
122
+ }, { editingItem: C, handleEdit: F, handleEditorInputRef: J, handleKeyDown: Q } = ve(r);
123
+ return (c, o) => (n(), u("div", fe, [
124
+ p("div", ke, [
125
+ (n(!0), u(T, null, $(v.value, (s) => (n(), u("div", {
126
+ key: s.id,
127
+ class: D(["tr-history__tab", { active: g.value === s.id }]),
128
+ onClick: (d) => _.value = s.id
129
+ }, k(s.title), 11, ge))), 128))
130
+ ]),
131
+ a.searchBar ? (n(), u("div", be, [
132
+ m(e(le), {
133
+ modelValue: y.value,
134
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => y.value = s),
135
+ placeholder: a.searchPlaceholder || "搜索对话名称",
136
+ "prefix-icon": e(se),
137
+ clearable: ""
138
+ }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
139
+ ])) : E("", !0),
140
+ p("div", xe, [
141
+ L.value ? (n(!0), u(T, { key: 0 }, $(x.value, (s) => (n(), u("div", {
142
+ key: s.group,
143
+ class: "tr-history__group"
144
+ }, [
145
+ s.group !== e(w) ? (n(), u("div", Ce, [
146
+ p("span", null, k(s.group), 1)
147
+ ])) : E("", !0),
148
+ (n(!0), u(T, null, $(s.items, (d) => {
149
+ var S;
150
+ return n(), u("div", {
151
+ key: `${d.id}-${d.title}`,
152
+ class: D(["tr-history__item", { selected: a.selected === d.id }]),
153
+ onClick: (f) => j(d)
154
+ }, [
155
+ ((S = e(C)) == null ? void 0 : S.id) !== d.id ? (n(), u(T, { key: 0 }, [
156
+ p("span", Ie, k(d.title), 1),
157
+ d.tag ? (n(), P(e(de), te({
158
+ key: 0,
159
+ class: "tr-history__item-tag",
160
+ ref_for: !0
161
+ }, d.tag), null, 16)) : E("", !0),
162
+ p("div", we, [
163
+ m(e(U), {
164
+ content: "编辑",
165
+ effect: "dark",
166
+ placement: "top",
167
+ "open-delay": 500
168
+ }, {
169
+ default: R(() => [
170
+ m(e(B), {
171
+ icon: e(ae),
172
+ onClick: H((f) => e(F)(d), ["stop"])
173
+ }, null, 8, ["icon", "onClick"])
174
+ ]),
175
+ _: 2
176
+ }, 1024),
177
+ m(e(U), {
178
+ content: "删除",
179
+ effect: "dark",
180
+ placement: "top",
181
+ "open-delay": 500
182
+ }, {
183
+ default: R(() => [
184
+ m(e(B), {
185
+ icon: e(ne),
186
+ onClick: H((f) => W(d), ["stop"])
187
+ }, null, 8, ["icon", "onClick"])
188
+ ]),
189
+ _: 2
190
+ }, 1024)
191
+ ])
192
+ ], 64)) : ee((n(), u("input", {
193
+ key: 1,
194
+ "onUpdate:modelValue": o[1] || (o[1] = (f) => e(C).title = f),
195
+ class: "tr-history__item-edit",
196
+ ref_for: !0,
197
+ ref: e(J),
198
+ onKeydown: o[2] || (o[2] = //@ts-ignore
199
+ (...f) => e(Q) && e(Q)(...f))
200
+ }, null, 544)), [
201
+ [re, e(C).title]
202
+ ])
203
+ ], 10, Te);
204
+ }), 128))
205
+ ]))), 128)) : (n(), P(e(ye), {
206
+ key: 1,
207
+ text: y.value ? "暂无搜索结果" : "暂无内容"
208
+ }, null, 8, ["text"]))
209
+ ]),
210
+ p("div", Ee, [
211
+ m(e(B), {
212
+ icon: e(ie),
213
+ rounded: "",
214
+ onClick: z
215
+ }, null, 8, ["icon"])
216
+ ])
217
+ ]));
218
+ }
219
+ }), K = /* @__PURE__ */ M($e, [["__scopeId", "data-v-8aa5fd59"]]), Be = function(i) {
220
+ i.component("TrHistory", K);
221
+ }, Ge = {
222
+ ...K,
223
+ install: Be,
224
+ name: "TrHistory"
225
+ };
226
+ export {
227
+ Ge as default
228
+ };
@@ -0,0 +1,31 @@
1
+ import { defineComponent as i, useCssVars as p, computed as a, createElementBlock as l, openBlock as c, normalizeClass as m, createBlock as d, resolveDynamicComponent as f } from "vue";
2
+ import { _ } from "../_plugin-vue_export-helper.js";
3
+ const x = /* @__PURE__ */ i({
4
+ __name: "index",
5
+ props: {
6
+ icon: {},
7
+ size: { default: "24px" },
8
+ svgSize: { default: "16px" },
9
+ rounded: { type: Boolean }
10
+ },
11
+ setup(t) {
12
+ p((e) => ({
13
+ "56dcaa02": r.value,
14
+ "0eb2a672": u.value
15
+ }));
16
+ const o = t, s = (e) => isNaN(Number(e)) ? e : `${e}px`, r = a(() => s(o.size)), u = a(() => s(o.svgSize));
17
+ return (e, z) => (c(), l("button", {
18
+ class: m(["tr-icon-button", { rounded: o.rounded }])
19
+ }, [
20
+ (c(), d(f(o.icon)))
21
+ ], 2));
22
+ }
23
+ }), n = /* @__PURE__ */ _(x, [["__scopeId", "data-v-21ea878f"]]);
24
+ n.name = "TrIconButton";
25
+ const v = function(t) {
26
+ t.component(n.name, n);
27
+ };
28
+ n.install = v;
29
+ export {
30
+ n as default
31
+ };