@opentiny/tiny-robot 0.1.0-alpha.0 → 0.2.0-alpha.0

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 (244) hide show
  1. package/dist/{bubble-item → bubble}/components/actions/copy.vue.d.ts +3 -3
  2. package/dist/{bubble-item → bubble}/components/actions/refresh.vue.d.ts +1 -1
  3. package/dist/bubble/index.d.ts +12 -0
  4. package/dist/bubble/index.type.d.ts +53 -0
  5. package/dist/bubble/useScroll.d.ts +4 -0
  6. package/dist/container/index.d.ts +7 -0
  7. package/dist/container/index.type.d.ts +16 -0
  8. package/dist/container/index.vue.d.ts +26 -0
  9. package/dist/index.d.ts +10 -5
  10. package/dist/index.js +31 -20
  11. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
  12. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
  13. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/index.js +21 -21
  14. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/pc.js +3 -3
  15. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
  16. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
  17. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/index.js +9 -9
  18. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/pc.js +5 -5
  19. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  20. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeclose.js +1 -1
  21. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeopen.js +1 -1
  22. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/finish.js +1 -1
  23. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/fullscreen.js +1 -1
  24. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +21 -22
  25. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/minscreen.js +1 -1
  26. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +1 -1
  27. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +1 -1
  28. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +1 -1
  29. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +1 -1
  30. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +1 -1
  31. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +1 -1
  32. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +1 -1
  33. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +1 -1
  34. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +1 -1
  35. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +1 -1
  36. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +1 -1
  37. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +1 -1
  38. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +1 -1
  39. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +1 -1
  40. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +1 -1
  41. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +1 -1
  42. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +1 -1
  43. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +1 -1
  44. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +1 -1
  45. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +1 -1
  46. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +1 -1
  47. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +1 -1
  48. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +1 -1
  49. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +1 -1
  50. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +1 -1
  51. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +1 -1
  52. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +1 -1
  53. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +1 -1
  54. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +1 -1
  55. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +1 -1
  56. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +1 -1
  57. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +1 -1
  58. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +1 -1
  59. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +1 -1
  60. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +1 -1
  61. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +1 -1
  62. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +1 -1
  63. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +1 -1
  64. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +1 -1
  65. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +1 -1
  66. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +1 -1
  67. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +1 -1
  68. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +1 -1
  69. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +1 -1
  70. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +1 -1
  71. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +1 -1
  72. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/sub-script.js +1 -1
  73. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/warn.js +1 -1
  74. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/index.js +3 -3
  75. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/pc.js +36 -36
  76. package/dist/node_modules/.pnpm/{@opentiny_vue-locale@3.22.0 → @opentiny_vue-locale@3.21.0}/node_modules/@opentiny/vue-locale/lib/index.js +63 -63
  77. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/index.js +1 -1
  78. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
  94. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
  95. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
  96. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
  97. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +33 -34
  98. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/index.js +22 -22
  99. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/vue.js +9 -9
  100. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/index.js +1 -1
  101. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +5 -5
  102. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tooltip/index.js +41 -40
  103. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  104. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/index.js +3 -6
  105. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/pc.js +2 -2
  106. package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
  107. package/dist/packages/components/src/bubble/bubble-list.vue2.js +37 -0
  108. package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
  109. package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
  110. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
  111. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
  112. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
  113. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
  114. package/dist/packages/components/src/bubble/index.js +18 -0
  115. package/dist/packages/components/src/bubble/useScroll.js +13 -0
  116. package/dist/packages/components/src/container/index.js +9 -0
  117. package/dist/packages/components/src/container/index.vue.js +7 -0
  118. package/dist/packages/components/src/container/index.vue2.js +55 -0
  119. package/dist/packages/components/src/conversations/index.js +1 -1
  120. package/dist/packages/components/src/prompts/index.js +18 -0
  121. package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
  122. package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
  123. package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
  124. package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
  125. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
  126. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
  127. package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
  128. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
  129. package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
  130. package/dist/packages/components/src/question/index.js +9 -0
  131. package/dist/packages/components/src/question/index.vue.js +113 -0
  132. package/dist/packages/components/src/question/index.vue2.js +4 -0
  133. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
  134. package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
  135. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
  136. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
  137. package/dist/packages/components/src/sender/index.vue.js +67 -66
  138. package/dist/packages/components/src/welcome/index.vue.js +5 -7
  139. package/dist/packages/components/src/welcome/index.vue2.js +32 -0
  140. package/dist/packages/svgs/dist/tiny-robot-svgs.js +223 -0
  141. package/dist/prompts/index.d.ts +12 -0
  142. package/dist/prompts/index.type.d.ts +55 -0
  143. package/dist/prompts/prompt.vue.d.ts +3 -0
  144. package/dist/prompts/prompts.vue.d.ts +20 -0
  145. package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
  146. package/dist/question/components/HotQuestions.vue.d.ts +89 -0
  147. package/dist/question/composables/useQuestions.d.ts +17 -0
  148. package/dist/question/index.d.ts +7 -0
  149. package/dist/question/index.type.d.ts +74 -0
  150. package/dist/question/index.vue.d.ts +46 -0
  151. package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
  152. package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
  153. package/dist/sender/index.type.d.ts +1 -1
  154. package/dist/sender/index.vue.d.ts +3 -4
  155. package/dist/style.css +1 -1
  156. package/dist/welcome/index.type.d.ts +10 -0
  157. package/dist/welcome/index.vue.d.ts +17 -1
  158. package/package.json +6 -5
  159. package/src/bubble/bubble-list.vue +42 -0
  160. package/src/bubble/bubble.vue +247 -0
  161. package/src/bubble/components/actions/copy.vue +54 -0
  162. package/src/bubble/components/actions/refresh.vue +31 -0
  163. package/src/bubble/index.ts +23 -0
  164. package/src/bubble/index.type.ts +63 -0
  165. package/src/bubble/useScroll.ts +14 -0
  166. package/src/container/index.ts +12 -0
  167. package/src/container/index.type.ts +17 -0
  168. package/src/container/index.vue +135 -0
  169. package/src/conversations/index.ts +1 -1
  170. package/src/index.ts +26 -12
  171. package/src/prompts/index.ts +25 -0
  172. package/src/prompts/index.type.ts +59 -0
  173. package/src/prompts/prompt.vue +115 -0
  174. package/src/prompts/prompts.vue +50 -0
  175. package/src/question/components/CommonQuestions.vue +146 -0
  176. package/src/question/components/HotQuestions.vue +148 -0
  177. package/src/question/composables/useQuestions.ts +106 -0
  178. package/src/question/index.less +448 -0
  179. package/src/question/index.ts +12 -0
  180. package/src/question/index.type.ts +86 -0
  181. package/src/question/index.vue +140 -0
  182. package/src/question/vars.less +135 -0
  183. package/src/sender/components/ActionButtons.vue +42 -39
  184. package/src/sender/composables/useInputHandler.ts +15 -10
  185. package/src/sender/composables/useKeyboardHandler.ts +6 -4
  186. package/src/sender/composables/useSpeechHandler.ts +5 -11
  187. package/src/sender/index.less +3 -5
  188. package/src/sender/index.type.ts +1 -1
  189. package/src/sender/index.vue +3 -2
  190. package/src/welcome/index.type.ts +12 -0
  191. package/src/welcome/index.vue +68 -2
  192. package/.vscode/extensions.json +0 -3
  193. package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
  194. package/dist/bubble-item/components/icons/index.d.ts +0 -2
  195. package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
  196. package/dist/bubble-item/index.d.ts +0 -7
  197. package/dist/bubble-list/index.d.ts +0 -8
  198. package/dist/bubble-list/index.type.d.ts +0 -55
  199. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
  200. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  201. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
  202. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
  203. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  204. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
  205. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
  206. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
  207. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
  208. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
  209. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
  210. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
  211. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  212. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
  213. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
  214. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
  215. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
  216. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
  217. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
  218. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
  219. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
  220. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
  221. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
  222. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
  223. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
  224. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
  225. package/dist/packages/components/src/bubble-item/index.js +0 -9
  226. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
  227. package/dist/packages/components/src/bubble-list/index.js +0 -9
  228. package/src/bubble-item/bubble-item.vue +0 -264
  229. package/src/bubble-item/components/actions/copy.vue +0 -47
  230. package/src/bubble-item/components/actions/refresh.vue +0 -27
  231. package/src/bubble-item/components/icons/ai.vue +0 -30
  232. package/src/bubble-item/components/icons/index.ts +0 -2
  233. package/src/bubble-item/components/icons/user.vue +0 -78
  234. package/src/bubble-item/index.ts +0 -12
  235. package/src/bubble-list/bubble-list.vue +0 -53
  236. package/src/bubble-list/index.ts +0 -14
  237. package/src/bubble-list/index.type.ts +0 -65
  238. package/src/sender/global.d.ts +0 -44
  239. /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
  240. /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
  241. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/vue.js +0 -0
  242. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -0
  243. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -0
  244. /package/src/{bubble-item → bubble}/components/actions/index.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { __spreadProps as w, __spreadValues as M } from "../chunk-G2ADBYYC.js";
2
- import { textLength as T, handleTextareaMouseUp as z, handleTextareaMouseDown as C, inputStyle as v, handleLeaveTextarea as F, handleEnterTextarea as N, getDisplayOnlyText as L, setInputDomValue as B, handleCompositionUpdate as E, handleCompositionStart as P, calculateNodeStyling as _, getSuffixVisible as A, calcIconOffset as U, watchFormSelect as W, handleChange as $, setShowMoreBtn as H, getInput as j, clear as k, showBox as K, getDisplayedMaskValue as Y, hiddenPassword as Z, handleEnterDisplayOnlyContent as q, hasSelection as G, handlePasswordVisible as J, handleCompositionEnd as Q, setNativeInputValue as R, calcTextareaHeight as X, updateIconOffset as p, resizeTextarea as ee, handleInput as ae, handleFocus as le, handleBlur as te, select as ie, focus as ne, blur as oe } from "./index.js";
2
+ import { textLength as T, handleTextareaMouseUp as z, handleTextareaMouseDown as C, inputStyle as v, handleLeaveTextarea as F, handleEnterTextarea as N, getDisplayOnlyText as L, setInputDomValue as B, handleCompositionUpdate as E, handleCompositionStart as P, calculateNodeStyling as _, getSuffixVisible as A, calcIconOffset as U, watchFormSelect as W, handleChange as $, setShowMoreBtn as H, getInput as j, clear as k, showBox as K, getDisplayedMaskValue as Y, hiddenPassword as q, handleEnterDisplayOnlyContent as G, hasSelection as J, handlePasswordVisible as Q, handleCompositionEnd as R, setNativeInputValue as X, calcTextareaHeight as Z, updateIconOffset as p, resizeTextarea as ee, handleInput as ae, handleFocus as le, handleBlur as te, select as ie, focus as ne, blur as oe } from "./index.js";
3
3
  import se from "../tall-storage/vue-storage-box.js";
4
- import { on as de, off as ue } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
4
+ import { on as de, off as ue } from "../common/deps/dom.js";
5
5
  const Ie = [
6
6
  "blur",
7
7
  "showBox",
@@ -181,7 +181,7 @@ const Ie = [
181
181
  handleInput: ae({ api: e, emit: l, nextTick: s, state: n }),
182
182
  resizeTextarea: ee({ api: e, parent: r, vm: i, state: n, props: a }),
183
183
  updateIconOffset: p(e),
184
- calcTextareaHeight: X({
184
+ calcTextareaHeight: Z({
185
185
  api: e,
186
186
  hiddenTextarea: null,
187
187
  props: a,
@@ -189,12 +189,12 @@ const Ie = [
189
189
  mode: f,
190
190
  constants: h
191
191
  }),
192
- setNativeInputValue: R({ api: e, state: n }),
193
- handleCompositionEnd: Q({ api: e, state: n }),
194
- handlePasswordVisible: J({ api: e, nextTick: s, state: n }),
195
- hasSelection: G(e),
196
- handleEnterDisplayOnlyContent: q({ state: n, props: a }),
197
- hiddenPassword: Z({ state: n, props: a }),
192
+ setNativeInputValue: X({ api: e, state: n }),
193
+ handleCompositionEnd: R({ api: e, state: n }),
194
+ handlePasswordVisible: Q({ api: e, nextTick: s, state: n }),
195
+ hasSelection: J(e),
196
+ handleEnterDisplayOnlyContent: G({ state: n, props: a }),
197
+ hiddenPassword: q({ state: n, props: a }),
198
198
  getDisplayedMaskValue: Y({ state: n })
199
199
  });
200
200
  }, fe = ({
@@ -1,4 +1,4 @@
1
- import { KEY_CODE as i } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
1
+ import { KEY_CODE as i } from "../common/index.js";
2
2
  const h = (t) => (t && t.preventDefault ? t.preventDefault() : window.event.returnValue = !1, !1), y = ({ emit: t, state: e }) => (r) => {
3
3
  e.hoverValue = "", t("selected", r);
4
4
  }, d = ({ emit: t, props: e, state: r }) => () => {
@@ -1,7 +1,7 @@
1
1
  import { keydown as a, selectItem as c, mousedown as u } from "./index.js";
2
- import { off as w, on as l } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
3
- const k = ["state", "mousedown", "selectItem"], f = (t, { onUnmounted: s, reactive: r, watch: m }, { emit: n }) => {
4
- const e = r({
2
+ import { off as w, on as l } from "../common/deps/dom.js";
3
+ const k = ["state", "mousedown", "selectItem"], f = (t, { onUnmounted: r, reactive: m, watch: s }, { emit: n }) => {
4
+ const e = m({
5
5
  hoverValue: ""
6
6
  }), o = {
7
7
  state: e,
@@ -9,11 +9,11 @@ const k = ["state", "mousedown", "selectItem"], f = (t, { onUnmounted: s, reacti
9
9
  selectItem: c({ emit: n, state: e }),
10
10
  keydown: a({ emit: n, props: t, state: e })
11
11
  };
12
- return m(
12
+ return s(
13
13
  () => t.isMemoryStorage,
14
14
  (d) => !d && (e.hoverValue = ""),
15
15
  { immediate: !0 }
16
- ), s(() => {
16
+ ), r(() => {
17
17
  e.hoverValue = "", w(document, "keydown", o.keydown);
18
18
  }), l(document, "keydown", o.keydown), o;
19
19
  };
@@ -1,56 +1,57 @@
1
- import { debounce as d, on as r, addClass as f, removeClass as a, off as c } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
2
- const m = ({ api: e, state: o, props: t }) => (n) => {
3
- const s = n && n.type === "mouseenter" ? 200 : 0;
1
+ import d from "../common/deps/debounce.js";
2
+ import { on as r, addClass as f, removeClass as p, off as c } from "../common/deps/dom.js";
3
+ const h = ({ api: e, state: o, props: t }) => (n) => {
4
+ const u = n && n.type === "mouseenter" ? 200 : 0;
4
5
  if (t.visible === "auto") {
5
- const { clientWidth: u, scrollWidth: i } = o.referenceElm;
6
- if (i <= u)
6
+ const { clientWidth: i, scrollWidth: s } = o.referenceElm;
7
+ if (s <= i)
7
8
  return;
8
9
  }
9
- e.setExpectedState(!0), e.handleShowPopper(s);
10
- }, h = (e) => () => {
10
+ e.setExpectedState(!0), e.handleShowPopper(u);
11
+ }, b = (e) => () => {
11
12
  e.setExpectedState(!1), e.debounceClose();
12
- }, b = ({ api: e, state: o }) => () => {
13
- o.focusing = !0, e.show();
14
13
  }, g = ({ api: e, state: o }) => () => {
15
- o.focusing = !1, e.hide();
14
+ o.focusing = !0, e.show();
16
15
  }, w = ({ api: e, state: o }) => () => {
16
+ o.focusing = !1, e.hide();
17
+ }, y = ({ api: e, state: o }) => () => {
17
18
  o.focusing = !1, e.show();
18
- }, y = ({ props: e, state: o }) => (t) => {
19
+ }, P = ({ props: e, state: o }) => (t) => {
19
20
  !o.expectedState || e.manual || (clearTimeout(o.timeout), o.timeout = window.setTimeout(() => {
20
21
  o.showPopper = !0;
21
22
  }, e.openDelay || t), e.hideAfter > 0 && (o.timeoutPending = window.setTimeout(() => {
22
23
  o.showPopper = !1;
23
24
  }, e.hideAfter)));
24
- }, P = ({ api: e, props: o, state: t }) => () => {
25
+ }, E = ({ api: e, props: o, state: t }) => () => {
25
26
  o.enterable && t.expectedState || o.manual || (clearTimeout(t.timeout), t.timeoutPending && clearTimeout(t.timeoutPending), t.showPopper = !1, o.disabled && e.doDestroy());
26
- }, E = ({ props: e, api: o, state: t, popperVmRef: n }) => (l) => {
27
+ }, x = ({ props: e, api: o, state: t, popperVmRef: n }) => (l) => {
27
28
  if (e.manual)
28
29
  return;
29
- const s = t.referenceElm, u = n.popper;
30
- !u || !s || u.contains(l.target) || s.contains(l.target) || t.showPopper && (o.setExpectedState(!1), o.debounceClose());
31
- }, x = ({ state: e }) => (o) => {
30
+ const u = t.referenceElm, i = n.popper;
31
+ !i || !u || i.contains(l.target) || u.contains(l.target) || t.showPopper && (o.setExpectedState(!1), o.debounceClose());
32
+ }, C = ({ state: e }) => (o) => {
32
33
  e.expectedState === !1 && clearTimeout(e.timeoutPending), e.expectedState = o;
33
- }, C = ({ state: e, api: o, vm: t }) => () => {
34
+ }, S = ({ state: e, api: o, vm: t }) => () => {
34
35
  const n = e.referenceElm;
35
36
  e.showPopper = !1, n && n.nodeType === 1 && (c(document, "click", o.handleDocumentClick), c(n, "mouseenter", o.show), c(n, "mouseleave", o.hide), c(n, "focus", o.focusHandler), c(n, "blur", o.handleBlur), c(n, "click", o.removeFocusing)), t.popperVM && (typeof t.popperVM.$destroy == "function" && t.popperVM.$destroy(), t.popperVM = null);
36
- }, S = ({ api: e, props: o }) => d(o.closeDelay, () => {
37
+ }, T = ({ api: e, props: o }) => d(o.closeDelay, () => {
37
38
  e.handleClosePopper();
38
- }), T = (e) => (o) => {
39
- o ? f(e.referenceElm, "focusing") : a(e.referenceElm, "focusing");
40
- }, $ = ({ slots: e, api: o }) => () => {
39
+ }), $ = (e) => (o) => {
40
+ o ? f(e.referenceElm, "focusing") : p(e.referenceElm, "focusing");
41
+ }, D = ({ slots: e, api: o }) => () => {
41
42
  if (!e.default || !e.default().length) {
42
43
  o.handleFocus();
43
44
  return;
44
45
  }
45
46
  let t = e.default()[0];
46
47
  t = t.elm || t.el, t && t.focus ? t.focus() : o.handleFocus();
47
- }, D = ({ api: e, state: o, vm: t }) => (n) => {
48
+ }, k = ({ api: e, state: o, vm: t }) => (n) => {
48
49
  let l = null;
49
50
  t.$el.nodeType === 8 ? l = n : t.$el.nodeType === 1 && (l = t.$el), !(!l || l.nodeType === 8 || o.referenceElm) && (o.referenceElm = l, l.setAttribute("aria-describedby", o.tooltipId), l.setAttribute("tabindex", o.tabindex.toString()), r(document, "click", e.handleDocumentClick), r(l, "mouseenter", e.show), r(l, "mouseleave", e.hide), r(l, "focus", e.focusHandler), r(l, "blur", e.handleBlur), r(l, "click", e.removeFocusing));
50
- }, k = ({ state: e, popperVmRef: o }) => (t) => {
51
+ }, F = ({ state: e, popperVmRef: o }) => (t) => {
51
52
  for (let n of t)
52
53
  n.type === "attributes" && n.attributeName === "x-placement" && (e.xPlacement = o.popper.getAttribute("x-placement") || "bottom");
53
- }, F = ({ vm: e, nextTick: o, popperVmRef: t }) => (n) => {
54
+ }, M = ({ vm: e, nextTick: o, popperVmRef: t }) => (n) => {
54
55
  o(() => e.bindEvent(n));
55
56
  let l = e.popperVM;
56
57
  e.$refs.popper ? t.popper = e.$refs.popper : t.popper = l.$el, o(() => {
@@ -58,20 +59,20 @@ const m = ({ api: e, state: o, props: t }) => (n) => {
58
59
  });
59
60
  };
60
61
  export {
61
- D as bindEvent,
62
- F as bindPopper,
63
- S as debounceClose,
64
- C as destroyed,
65
- $ as focusHandler,
66
- g as handleBlur,
67
- P as handleClosePopper,
68
- E as handleDocumentClick,
69
- b as handleFocus,
70
- y as handleShowPopper,
71
- h as hide,
72
- k as observeCallback,
73
- w as removeFocusing,
74
- x as setExpectedState,
75
- m as show,
76
- T as watchFocusing
62
+ k as bindEvent,
63
+ M as bindPopper,
64
+ T as debounceClose,
65
+ S as destroyed,
66
+ D as focusHandler,
67
+ w as handleBlur,
68
+ E as handleClosePopper,
69
+ x as handleDocumentClick,
70
+ g as handleFocus,
71
+ P as handleShowPopper,
72
+ b as hide,
73
+ F as observeCallback,
74
+ y as removeFocusing,
75
+ C as setExpectedState,
76
+ h as show,
77
+ $ as watchFocusing
77
78
  };
@@ -0,0 +1,90 @@
1
+ import { observeCallback as y, handleDocumentClick as D, focusHandler as H, bindEvent as k, handleClosePopper as B, handleShowPopper as O, setExpectedState as $, debounceClose as M, handleFocus as V, handleBlur as _, removeFocusing as j, watchFocusing as A, bindPopper as I, destroyed as J, hide as L, show as R } from "./index.js";
2
+ import W from "../common/deps/vue-popper.js";
3
+ import { guid as q } from "../common/string.js";
4
+ const Q = [
5
+ "state",
6
+ "bindEvent",
7
+ "hide",
8
+ "show",
9
+ "doDestroy",
10
+ "handleFocus",
11
+ "debounceClose",
12
+ "handleShowPopper",
13
+ "handleClosePopper",
14
+ "setExpectedState",
15
+ "updatePopper",
16
+ "focusHandler"
17
+ ], z = ({ reactive: t, showPopper: a, popperElm: d, referenceElm: r, props: i, inject: s, popperJS: l, currentPlacement: c }) => t({
18
+ popperJS: l,
19
+ showPopper: a,
20
+ popperElm: d,
21
+ referenceElm: r,
22
+ currentPlacement: c,
23
+ timeout: null,
24
+ focusing: !1,
25
+ expectedState: void 0,
26
+ tooltipId: q("tiny-tooltip-", 4),
27
+ tabindex: i.tabindex,
28
+ xPlacement: "bottom",
29
+ showContent: s("showContent", null),
30
+ tipsMaxWidth: s("tips-max-width", null)
31
+ }), U = (t, {
32
+ watch: a,
33
+ toRefs: d,
34
+ reactive: r,
35
+ onBeforeUnmount: i,
36
+ onDeactivated: s,
37
+ onMounted: l,
38
+ onUnmounted: c,
39
+ inject: m
40
+ }, { vm: n, emit: P, slots: b, nextTick: u, parent: w }) => {
41
+ const e = {}, p = {}, f = { emit: P, props: t, nextTick: u, toRefs: d, reactive: r, parent: w.$parent, vm: n, popperVmRef: p };
42
+ Object.assign(f, { slots: b, onBeforeUnmount: i, onDeactivated: s, watch: a });
43
+ const { showPopper: C, updatePopper: g, popperElm: v, referenceElm: S, doDestroy: x, popperJS: E, currentPlacement: F } = W(
44
+ f
45
+ ), o = z({
46
+ reactive: r,
47
+ showPopper: C,
48
+ popperElm: v,
49
+ referenceElm: S,
50
+ props: t,
51
+ inject: m,
52
+ popperJS: E,
53
+ currentPlacement: F
54
+ });
55
+ return Object.assign(e, {
56
+ state: o,
57
+ doDestroy: x,
58
+ updatePopper: g,
59
+ show: R({ api: e, state: o, props: t }),
60
+ hide: L(e),
61
+ destroyed: J({ state: o, api: e, vm: n }),
62
+ bindPopper: I({ vm: n, nextTick: u, popperVmRef: p }),
63
+ watchFocusing: A(o),
64
+ removeFocusing: j({ api: e, state: o }),
65
+ handleBlur: _({ api: e, state: o }),
66
+ handleFocus: V({ api: e, state: o }),
67
+ debounceClose: M({ api: e, props: t }),
68
+ setExpectedState: $({ state: o }),
69
+ handleShowPopper: O({ props: t, state: o }),
70
+ handleClosePopper: B({ api: e, props: t, state: o }),
71
+ bindEvent: k({ api: e, state: o, vm: n }),
72
+ focusHandler: H({ slots: b, api: e }),
73
+ handleDocumentClick: D({ props: t, api: e, state: o, popperVmRef: p }),
74
+ observeCallback: y({ state: o, popperVmRef: p })
75
+ }), a(() => o.focusing, e.watchFocusing), a(
76
+ () => t.modelValue,
77
+ (h) => u(() => t.manual && (o.showPopper = h))
78
+ ), l(() => {
79
+ if (e.bindPopper(), t.genArrowByHtml) {
80
+ const h = { attributes: !0, childList: !1, subtree: !1 };
81
+ e.observer = new MutationObserver(e.observeCallback), e.observer.observe(p.popper, h);
82
+ }
83
+ }), n.$on("tooltip-update", e.bindPopper), c(() => {
84
+ e.destroyed(), e.observer && e.observer.disconnect(), n.$off("tooltip-update");
85
+ }), e;
86
+ };
87
+ export {
88
+ Q as api,
89
+ U as renderless
90
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, $setup as f, $prefix as i, $props as p } from "../../../../../@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js";
1
+ import { defineComponent as l, $setup as f, $prefix as i, $props as p } from "../../../../../@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js";
2
2
  import o from "./pc.js";
3
3
  function a() {
4
4
  return a = Object.assign ? Object.assign.bind() : function(e) {
@@ -146,10 +146,7 @@ var d = function(t) {
146
146
  }
147
147
  },
148
148
  contentMaxHeight: {
149
- type: String,
150
- default: function() {
151
- return "80vh";
152
- }
149
+ type: String
153
150
  }
154
151
  }), u = l({
155
152
  name: i + "Tooltip",
@@ -162,7 +159,7 @@ var d = function(t) {
162
159
  template: d
163
160
  });
164
161
  }
165
- }), s = "3.undefined";
162
+ }), s = "3.21.0";
166
163
  u.model = {
167
164
  prop: "modelValue",
168
165
  event: "update:modelValue"
@@ -1,7 +1,7 @@
1
1
  import * as y from "vue";
2
2
  import { withDirectives as h, createVNode as m, vShow as C } from "vue";
3
- import { renderless as w, api as x } from "../../../../../@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js";
4
- import { defineComponent as S, createComponent as B, h as f, deduplicateCssClass as M, stringifyCssClass as O, setup as N, $prefix as P, parseVnode as E, isEmptyVnode as A, $props as D } from "../../../../../@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js";
3
+ import { renderless as w, api as x } from "../../../../../@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js";
4
+ import { defineComponent as S, createComponent as B, h as f, deduplicateCssClass as M, stringifyCssClass as O, setup as N, $prefix as P, parseVnode as E, isEmptyVnode as A, $props as D } from "../../../../../@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js";
5
5
  /* empty css */
6
6
  function d() {
7
7
  return d = Object.assign ? Object.assign.bind() : function(t) {
@@ -1,7 +1,7 @@
1
1
  import o from "./bubble-list.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f760d14"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5d3d74c8"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as i, ref as p, computed as b, watch as d, createElementBlock as n, openBlock as r, Fragment as _, renderList as B, createBlock as g, mergeProps as C } from "vue";
2
+ import k from "./bubble.vue.js";
3
+ import { useElementScroll as h } from "./useScroll.js";
4
+ const x = /* @__PURE__ */ i({
5
+ __name: "bubble-list",
6
+ props: {
7
+ items: {},
8
+ roles: {},
9
+ autoScroll: { type: Boolean }
10
+ },
11
+ setup(s) {
12
+ const t = s, l = p(), { scrollToBottom: c } = h(l), u = b(() => t.items.at(-1));
13
+ d([() => t.items.length, () => {
14
+ var e;
15
+ return (e = u.value) == null ? void 0 : e.content;
16
+ }], () => {
17
+ t.autoScroll && c();
18
+ });
19
+ const a = (e) => {
20
+ var o;
21
+ return { ...e.role ? ((o = t.roles) == null ? void 0 : o[e.role]) || {} : {}, ...e };
22
+ };
23
+ return (e, m) => (r(), n("div", {
24
+ class: "tr-bubble-list",
25
+ ref_key: "scrollContainer",
26
+ ref: l
27
+ }, [
28
+ (r(!0), n(_, null, B(t.items, (o, f) => (r(), g(k, C({
29
+ key: o.id || f,
30
+ ref_for: !0
31
+ }, a(o)), null, 16))), 128))
32
+ ], 512));
33
+ }
34
+ });
35
+ export {
36
+ x as default
37
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./bubble.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ddd36d13"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,118 @@
1
+ import { defineComponent as f, useCssVars as B, useSlots as M, computed as l, createElementBlock as s, openBlock as o, normalizeClass as y, createCommentVNode as c, createElementVNode as a, createBlock as v, resolveDynamicComponent as h, renderSlot as d, toDisplayString as S, unref as x, Fragment as D, renderList as L, withDirectives as V, vShow as $ } from "vue";
2
+ import E from "../../../../node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js";
3
+ import H from "./components/actions/copy.vue.js";
4
+ import I from "./components/actions/refresh.vue.js";
5
+ const N = {
6
+ key: 0,
7
+ class: "tr-bubble__avatar"
8
+ }, T = { class: "tr-bubble__content-wrapper" }, W = {
9
+ key: 1,
10
+ class: /* @__PURE__ */ y(["tr-bubble__content"])
11
+ }, z = { class: "tr-bubbule__body" }, F = ["innerHTML"], R = { key: 1 }, j = {
12
+ key: 2,
13
+ class: "tr-bubbule__aborted"
14
+ }, q = {
15
+ key: 0,
16
+ class: "tr-bubbule__footer"
17
+ }, G = { class: "tr-bubbule__footer-left" }, J = { class: "tr-bubbule__footer-actions" }, U = /* @__PURE__ */ f({
18
+ __name: "bubble",
19
+ props: {
20
+ content: { default: "" },
21
+ id: {},
22
+ placement: { default: "start" },
23
+ avatar: {},
24
+ role: {},
25
+ type: { default: "text" },
26
+ loading: { type: Boolean },
27
+ aborted: { type: Boolean },
28
+ mdConfig: {},
29
+ actions: {},
30
+ maxWidth: { default: "80%" }
31
+ },
32
+ emits: ["copy", "refresh", "action"],
33
+ setup(k, { emit: C }) {
34
+ B((r) => ({
35
+ "088abd95": e.maxWidth
36
+ }));
37
+ const e = k, u = C, w = M(), p = l(() => e.type === "markdown" ? E(e.mdConfig || {}).render(e.content) : e.content), b = l(() => e.placement === "start"), m = l(() => e.avatar ? f(() => () => e.avatar) : null), i = /* @__PURE__ */ new Map([
38
+ [
39
+ "copy",
40
+ {
41
+ name: "copy",
42
+ vnode: H,
43
+ show: !0
44
+ }
45
+ ],
46
+ [
47
+ "refresh",
48
+ {
49
+ name: "refresh",
50
+ vnode: I,
51
+ show: !0
52
+ }
53
+ ]
54
+ ]), _ = l(() => (e.actions || []).map((t) => typeof t == "string" ? i.get(t) : i.has(t.name) ? {
55
+ ...i.get(t.name),
56
+ ...t
57
+ } : t).filter((t) => !!t)), g = (r, ...t) => {
58
+ if (r === "copy") {
59
+ u("copy", t[0]);
60
+ return;
61
+ }
62
+ if (r === "refresh") {
63
+ u("refresh");
64
+ return;
65
+ }
66
+ u("action", r, ...t);
67
+ };
68
+ return (r, t) => (o(), s("div", {
69
+ class: y([
70
+ "tr-bubble",
71
+ {
72
+ "placement-start": b.value,
73
+ "placement-end": !b.value
74
+ }
75
+ ])
76
+ }, [
77
+ m.value ? (o(), s("div", N, [
78
+ (o(), v(h(m.value)))
79
+ ])) : c("", !0),
80
+ a("div", T, [
81
+ e.loading ? d(r.$slots, "loading", { key: 0 }, () => [
82
+ t[0] || (t[0] = a("div", { class: "tr-bubble__loading" }, [
83
+ a("span"),
84
+ a("span"),
85
+ a("span")
86
+ ], -1))
87
+ ], !0) : (o(), s("div", W, [
88
+ a("div", z, [
89
+ d(r.$slots, "default", {}, () => [
90
+ e.type === "markdown" ? (o(), s("span", {
91
+ key: 0,
92
+ innerHTML: p.value
93
+ }, null, 8, F)) : (o(), s("span", R, S(p.value), 1)),
94
+ e.aborted ? (o(), s("span", j, "(用户停止)")) : c("", !0)
95
+ ], !0)
96
+ ]),
97
+ x(w).footer || _.value.length > 0 ? (o(), s("div", q, [
98
+ a("div", G, [
99
+ d(r.$slots, "footer", {}, void 0, !0)
100
+ ]),
101
+ a("div", J, [
102
+ (o(!0), s(D, null, L(_.value, (n) => V((o(), v(h(n.vnode), {
103
+ key: n == null ? void 0 : n.name,
104
+ bubbleItem: e,
105
+ onClick: (A) => g(n.name, A)
106
+ }, null, 8, ["onClick"])), [
107
+ [$, typeof n.show == "function" ? n.show(e) : n.show]
108
+ ])), 128))
109
+ ])
110
+ ])) : c("", !0)
111
+ ]))
112
+ ])
113
+ ], 2));
114
+ }
115
+ });
116
+ export {
117
+ U as default
118
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./copy.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c674248f"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as i, createElementBlock as l, openBlock as s, createVNode as m, unref as u } from "vue";
2
+ import { IconCopy as b } from "../../../../../svgs/dist/tiny-robot-svgs.js";
3
+ const d = /* @__PURE__ */ i({
4
+ __name: "copy",
5
+ props: {
6
+ bubbleItem: {}
7
+ },
8
+ emits: ["click"],
9
+ setup(e, { emit: c }) {
10
+ const n = c;
11
+ async function o(t) {
12
+ try {
13
+ return await navigator.clipboard.writeText(t), !0;
14
+ } catch {
15
+ return !1;
16
+ }
17
+ }
18
+ const r = async () => {
19
+ const t = e.bubbleItem.content ? await o(e.bubbleItem.content) : !1;
20
+ n("click", t);
21
+ };
22
+ return (t, a) => (s(), l("button", {
23
+ class: "icon-btn",
24
+ onClick: r
25
+ }, [
26
+ m(u(b), {
27
+ width: "16px",
28
+ height: "16px"
29
+ })
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ d as default
35
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./refresh.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9f9f9745"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,16 @@
1
+ import { defineComponent as e, createElementBlock as t, openBlock as o, createVNode as n, unref as r } from "vue";
2
+ import { IconRefresh as c } from "../../../../../svgs/dist/tiny-robot-svgs.js";
3
+ const s = { class: "icon-btn" }, m = /* @__PURE__ */ e({
4
+ __name: "refresh",
5
+ setup(p) {
6
+ return (_, a) => (o(), t("button", s, [
7
+ n(r(c), {
8
+ width: "16px",
9
+ height: "16px"
10
+ })
11
+ ]));
12
+ }
13
+ });
14
+ export {
15
+ m as default
16
+ };
@@ -0,0 +1,18 @@
1
+ import n from "./bubble.vue.js";
2
+ import t from "./bubble-list.vue.js";
3
+ n.name = "TrBubble";
4
+ const o = function(b) {
5
+ b.component(n.name, n);
6
+ };
7
+ n.install = o;
8
+ const s = n;
9
+ t.name = "TrBubbleList";
10
+ const l = function(b) {
11
+ b.component(t.name, t);
12
+ };
13
+ t.install = l;
14
+ const i = t;
15
+ export {
16
+ s as Bubble,
17
+ i as BubbleList
18
+ };
@@ -0,0 +1,13 @@
1
+ import { nextTick as l } from "vue";
2
+ const s = (o) => ({ scrollToBottom: () => {
3
+ l(() => {
4
+ var t;
5
+ (t = o.value) == null || t.scrollTo({
6
+ top: o.value.scrollHeight,
7
+ behavior: "smooth"
8
+ });
9
+ });
10
+ } });
11
+ export {
12
+ s as useElementScroll
13
+ };
@@ -0,0 +1,9 @@
1
+ import n from "./index.vue.js";
2
+ n.name = "TrContainer";
3
+ const o = function(t) {
4
+ t.component(n.name, n);
5
+ };
6
+ n.install = o;
7
+ export {
8
+ n as default
9
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6a7e1263"]]);
5
+ export {
6
+ m as default
7
+ };