@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.
- package/dist/{bubble-item → bubble}/components/actions/copy.vue.d.ts +3 -3
- package/dist/{bubble-item → bubble}/components/actions/refresh.vue.d.ts +1 -1
- package/dist/bubble/index.d.ts +12 -0
- package/dist/bubble/index.type.d.ts +53 -0
- package/dist/bubble/useScroll.d.ts +4 -0
- package/dist/container/index.d.ts +7 -0
- package/dist/container/index.type.d.ts +16 -0
- package/dist/container/index.vue.d.ts +26 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +31 -20
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
- 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
- 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
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
- 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
- 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
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
- 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
- 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
- package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
- package/dist/packages/components/src/bubble/bubble-list.vue2.js +37 -0
- package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
- package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
- package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
- package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
- package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
- package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
- package/dist/packages/components/src/bubble/index.js +18 -0
- package/dist/packages/components/src/bubble/useScroll.js +13 -0
- package/dist/packages/components/src/container/index.js +9 -0
- package/dist/packages/components/src/container/index.vue.js +7 -0
- package/dist/packages/components/src/container/index.vue2.js +55 -0
- package/dist/packages/components/src/conversations/index.js +1 -1
- package/dist/packages/components/src/prompts/index.js +18 -0
- package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
- package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
- package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
- package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
- package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
- package/dist/packages/components/src/question/index.js +9 -0
- package/dist/packages/components/src/question/index.vue.js +113 -0
- package/dist/packages/components/src/question/index.vue2.js +4 -0
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
- package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
- package/dist/packages/components/src/sender/index.vue.js +67 -66
- package/dist/packages/components/src/welcome/index.vue.js +5 -7
- package/dist/packages/components/src/welcome/index.vue2.js +32 -0
- package/dist/packages/svgs/dist/tiny-robot-svgs.js +223 -0
- package/dist/prompts/index.d.ts +12 -0
- package/dist/prompts/index.type.d.ts +55 -0
- package/dist/prompts/prompt.vue.d.ts +3 -0
- package/dist/prompts/prompts.vue.d.ts +20 -0
- package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
- package/dist/question/components/HotQuestions.vue.d.ts +89 -0
- package/dist/question/composables/useQuestions.d.ts +17 -0
- package/dist/question/index.d.ts +7 -0
- package/dist/question/index.type.d.ts +74 -0
- package/dist/question/index.vue.d.ts +46 -0
- package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
- package/dist/sender/index.type.d.ts +1 -1
- package/dist/sender/index.vue.d.ts +3 -4
- package/dist/style.css +1 -1
- package/dist/welcome/index.type.d.ts +10 -0
- package/dist/welcome/index.vue.d.ts +17 -1
- package/package.json +6 -5
- package/src/bubble/bubble-list.vue +42 -0
- package/src/bubble/bubble.vue +247 -0
- package/src/bubble/components/actions/copy.vue +54 -0
- package/src/bubble/components/actions/refresh.vue +31 -0
- package/src/bubble/index.ts +23 -0
- package/src/bubble/index.type.ts +63 -0
- package/src/bubble/useScroll.ts +14 -0
- package/src/container/index.ts +12 -0
- package/src/container/index.type.ts +17 -0
- package/src/container/index.vue +135 -0
- package/src/conversations/index.ts +1 -1
- package/src/index.ts +26 -12
- package/src/prompts/index.ts +25 -0
- package/src/prompts/index.type.ts +59 -0
- package/src/prompts/prompt.vue +115 -0
- package/src/prompts/prompts.vue +50 -0
- package/src/question/components/CommonQuestions.vue +146 -0
- package/src/question/components/HotQuestions.vue +148 -0
- package/src/question/composables/useQuestions.ts +106 -0
- package/src/question/index.less +448 -0
- package/src/question/index.ts +12 -0
- package/src/question/index.type.ts +86 -0
- package/src/question/index.vue +140 -0
- package/src/question/vars.less +135 -0
- package/src/sender/components/ActionButtons.vue +42 -39
- package/src/sender/composables/useInputHandler.ts +15 -10
- package/src/sender/composables/useKeyboardHandler.ts +6 -4
- package/src/sender/composables/useSpeechHandler.ts +5 -11
- package/src/sender/index.less +3 -5
- package/src/sender/index.type.ts +1 -1
- package/src/sender/index.vue +3 -2
- package/src/welcome/index.type.ts +12 -0
- package/src/welcome/index.vue +68 -2
- package/.vscode/extensions.json +0 -3
- package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
- package/dist/bubble-item/components/icons/index.d.ts +0 -2
- package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
- package/dist/bubble-item/index.d.ts +0 -7
- package/dist/bubble-list/index.d.ts +0 -8
- package/dist/bubble-list/index.type.d.ts +0 -55
- package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
- package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
- package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
- package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
- package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
- package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
- package/dist/packages/components/src/bubble-item/index.js +0 -9
- package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
- package/dist/packages/components/src/bubble-list/index.js +0 -9
- package/src/bubble-item/bubble-item.vue +0 -264
- package/src/bubble-item/components/actions/copy.vue +0 -47
- package/src/bubble-item/components/actions/refresh.vue +0 -27
- package/src/bubble-item/components/icons/ai.vue +0 -30
- package/src/bubble-item/components/icons/index.ts +0 -2
- package/src/bubble-item/components/icons/user.vue +0 -78
- package/src/bubble-item/index.ts +0 -12
- package/src/bubble-list/bubble-list.vue +0 -53
- package/src/bubble-list/index.ts +0 -14
- package/src/bubble-list/index.type.ts +0 -65
- package/src/sender/global.d.ts +0 -44
- /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
- /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
- /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
- /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
- /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
- /package/src/{bubble-item → bubble}/components/actions/index.ts +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import e from "./_Symbol.js";
|
|
2
|
-
var o = Object.prototype, c = o.hasOwnProperty, f = o.toString, r = e ? e.toStringTag : void 0;
|
|
3
|
-
function p(t) {
|
|
4
|
-
var a = c.call(t, r), n = t[r];
|
|
5
|
-
try {
|
|
6
|
-
t[r] = void 0;
|
|
7
|
-
var i = !0;
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
var g = f.call(t);
|
|
11
|
-
return i && (a ? t[r] = n : delete t[r]), g;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
p as default
|
|
15
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import S from "./isObject.js";
|
|
2
|
-
import h from "./now.js";
|
|
3
|
-
import W from "./toNumber.js";
|
|
4
|
-
var y = "Expected a function", R = Math.max, A = Math.min;
|
|
5
|
-
function _(x, i, u) {
|
|
6
|
-
var a, d, c, f, n, r, l = 0, E = !1, m = !1, g = !0;
|
|
7
|
-
if (typeof x != "function")
|
|
8
|
-
throw new TypeError(y);
|
|
9
|
-
i = W(i) || 0, S(u) && (E = !!u.leading, m = "maxWait" in u, c = m ? R(W(u.maxWait) || 0, i) : c, g = "trailing" in u ? !!u.trailing : g);
|
|
10
|
-
function v(e) {
|
|
11
|
-
var t = a, o = d;
|
|
12
|
-
return a = d = void 0, l = e, f = x.apply(o, t), f;
|
|
13
|
-
}
|
|
14
|
-
function b(e) {
|
|
15
|
-
return l = e, n = setTimeout(s, i), E ? v(e) : f;
|
|
16
|
-
}
|
|
17
|
-
function C(e) {
|
|
18
|
-
var t = e - r, o = e - l, p = i - t;
|
|
19
|
-
return m ? A(p, c - o) : p;
|
|
20
|
-
}
|
|
21
|
-
function k(e) {
|
|
22
|
-
var t = e - r, o = e - l;
|
|
23
|
-
return r === void 0 || t >= i || t < 0 || m && o >= c;
|
|
24
|
-
}
|
|
25
|
-
function s() {
|
|
26
|
-
var e = h();
|
|
27
|
-
if (k(e))
|
|
28
|
-
return I(e);
|
|
29
|
-
n = setTimeout(s, C(e));
|
|
30
|
-
}
|
|
31
|
-
function I(e) {
|
|
32
|
-
return n = void 0, g && a ? v(e) : (a = d = void 0, f);
|
|
33
|
-
}
|
|
34
|
-
function L() {
|
|
35
|
-
n !== void 0 && clearTimeout(n), l = 0, a = r = d = n = void 0;
|
|
36
|
-
}
|
|
37
|
-
function M() {
|
|
38
|
-
return n === void 0 ? f : I(h());
|
|
39
|
-
}
|
|
40
|
-
function T() {
|
|
41
|
-
var e = h(), t = k(e);
|
|
42
|
-
if (a = arguments, d = this, r = e, t) {
|
|
43
|
-
if (n === void 0)
|
|
44
|
-
return b(r);
|
|
45
|
-
if (m)
|
|
46
|
-
return clearTimeout(n), n = setTimeout(s, i), v(r);
|
|
47
|
-
}
|
|
48
|
-
return n === void 0 && (n = setTimeout(s, i)), f;
|
|
49
|
-
}
|
|
50
|
-
return T.cancel = L, T.flush = M, T;
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
_ as default
|
|
54
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import n from "./_baseTrim.js";
|
|
2
|
-
import f from "./isObject.js";
|
|
3
|
-
import o from "./isSymbol.js";
|
|
4
|
-
var s = NaN, m = /^[-+]0x[0-9a-f]+$/i, p = /^0b[01]+$/i, e = /^0o[0-7]+$/i, b = parseInt;
|
|
5
|
-
function O(r) {
|
|
6
|
-
if (typeof r == "number")
|
|
7
|
-
return r;
|
|
8
|
-
if (o(r))
|
|
9
|
-
return s;
|
|
10
|
-
if (f(r)) {
|
|
11
|
-
var t = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
12
|
-
r = f(t) ? t + "" : t;
|
|
13
|
-
}
|
|
14
|
-
if (typeof r != "string")
|
|
15
|
-
return r === 0 ? r : +r;
|
|
16
|
-
r = n(r);
|
|
17
|
-
var i = p.test(r);
|
|
18
|
-
return i || e.test(r) ? b(r.slice(2), i ? 2 : 8) : m.test(r) ? s : +r;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
O as default
|
|
22
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, useCssVars as B, computed as l, createElementBlock as a, openBlock as n, normalizeClass as d, createElementVNode as s, renderSlot as b, createBlock as m, resolveDynamicComponent as p, createCommentVNode as _, toDisplayString as I, Fragment as M, renderList as x, withDirectives as V, vShow as D } from "vue";
|
|
2
|
-
import L from "../../../../node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js";
|
|
3
|
-
import N from "./components/actions/copy.vue.js";
|
|
4
|
-
import R from "./components/actions/refresh.vue.js";
|
|
5
|
-
import S from "./components/icons/ai.vue.js";
|
|
6
|
-
import $ from "./components/icons/user.vue.js";
|
|
7
|
-
const E = { class: "tr-bubble__avatar" }, H = { class: "tr-bubbule__body" }, T = ["innerHTML"], U = { key: 1 }, W = {
|
|
8
|
-
key: 2,
|
|
9
|
-
class: "tr-bubbule__aborted"
|
|
10
|
-
}, z = { class: "tr-bubbule__footer" }, F = { class: "tr-bubbule__footer-left" }, j = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "tr-bubbule__footer-actions"
|
|
13
|
-
}, Q = /* @__PURE__ */ A({
|
|
14
|
-
__name: "bubble-item",
|
|
15
|
-
props: {
|
|
16
|
-
role: {},
|
|
17
|
-
content: { default: "" },
|
|
18
|
-
type: { default: "text" },
|
|
19
|
-
status: { default: "complete" },
|
|
20
|
-
roleConfig: {},
|
|
21
|
-
mdConfig: {},
|
|
22
|
-
showActions: { type: Boolean },
|
|
23
|
-
actions: {},
|
|
24
|
-
maxWidth: { default: "80%" }
|
|
25
|
-
},
|
|
26
|
-
emits: ["actionClick"],
|
|
27
|
-
setup(f, { emit: v }) {
|
|
28
|
-
B((o) => ({
|
|
29
|
-
"75d34360": e.maxWidth
|
|
30
|
-
}));
|
|
31
|
-
const e = f, u = l(() => e.type === "markdown" ? L(e.mdConfig || {}).render(e.content) : e.content), i = l(() => e.role === "user"), c = l(() => {
|
|
32
|
-
var o;
|
|
33
|
-
return (o = e.roleConfig) != null && o.align ? e.roleConfig.align === "right" : i.value;
|
|
34
|
-
}), g = l(() => {
|
|
35
|
-
var r;
|
|
36
|
-
const o = (r = e.roleConfig) == null ? void 0 : r.avatar;
|
|
37
|
-
return o ? () => o : i.value ? $ : S;
|
|
38
|
-
}), h = /* @__PURE__ */ new Map([
|
|
39
|
-
[
|
|
40
|
-
"copy",
|
|
41
|
-
{
|
|
42
|
-
name: "copy",
|
|
43
|
-
vnode: N,
|
|
44
|
-
show: () => e.status === "complete" || e.status === "aborted"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
[
|
|
48
|
-
"regenerate",
|
|
49
|
-
{
|
|
50
|
-
name: "regenerate",
|
|
51
|
-
vnode: R,
|
|
52
|
-
show: () => e.status === "complete" || e.status === "aborted"
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
]), y = l(() => (Array.isArray(e.actions) && e.actions.length > 0 ? e.actions : e.role === "ai" ? ["regenerate", "copy"] : ["copy"]).map((t) => typeof t == "string" ? h.get(t) : t).filter((t) => !!t)), k = v, C = (o, ...r) => {
|
|
56
|
-
k("actionClick", o, ...r);
|
|
57
|
-
};
|
|
58
|
-
return (o, r) => (n(), a("div", {
|
|
59
|
-
class: d([
|
|
60
|
-
"tr-bubble",
|
|
61
|
-
{
|
|
62
|
-
"align-left": !c.value,
|
|
63
|
-
"align-right": c.value
|
|
64
|
-
}
|
|
65
|
-
])
|
|
66
|
-
}, [
|
|
67
|
-
s("div", E, [
|
|
68
|
-
(n(), m(p(g.value)))
|
|
69
|
-
]),
|
|
70
|
-
e.status === "loading" ? b(o.$slots, "loading", { key: 0 }, () => [
|
|
71
|
-
r[0] || (r[0] = s("div", { class: "tr-bubble__load-wrap" }, [
|
|
72
|
-
s("span"),
|
|
73
|
-
s("span"),
|
|
74
|
-
s("span")
|
|
75
|
-
], -1))
|
|
76
|
-
], !0) : (n(), a("div", {
|
|
77
|
-
key: 1,
|
|
78
|
-
class: d([
|
|
79
|
-
"tr-bubble__content",
|
|
80
|
-
{ "tr-bubble__content-role-ai": !i.value },
|
|
81
|
-
{ "tr-bubble__content-role-user": i.value }
|
|
82
|
-
])
|
|
83
|
-
}, [
|
|
84
|
-
s("div", H, [
|
|
85
|
-
e.type === "markdown" ? (n(), a("span", {
|
|
86
|
-
key: 0,
|
|
87
|
-
innerHTML: u.value
|
|
88
|
-
}, null, 8, T)) : (n(), a("span", U, I(u.value), 1)),
|
|
89
|
-
e.status === "aborted" ? (n(), a("span", W, "(用户停止)")) : _("", !0)
|
|
90
|
-
]),
|
|
91
|
-
s("div", z, [
|
|
92
|
-
s("div", F, [
|
|
93
|
-
b(o.$slots, "footer", {}, void 0, !0)
|
|
94
|
-
]),
|
|
95
|
-
e.showActions ? (n(), a("div", j, [
|
|
96
|
-
(n(!0), a(M, null, x(y.value, (t) => V((n(), m(p(t.vnode), {
|
|
97
|
-
key: t == null ? void 0 : t.name,
|
|
98
|
-
bubbleItem: e,
|
|
99
|
-
onClick: (w) => C(t.name, w)
|
|
100
|
-
}, null, 8, ["onClick"])), [
|
|
101
|
-
[D, typeof t.show == "function" ? t.show(e) : t.show]
|
|
102
|
-
])), 128))
|
|
103
|
-
])) : _("", !0)
|
|
104
|
-
])
|
|
105
|
-
], 2))
|
|
106
|
-
], 2));
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
export {
|
|
110
|
-
Q as default
|
|
111
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as a, openBlock as m, createElementVNode as t } from "vue";
|
|
2
|
-
const w = /* @__PURE__ */ s({
|
|
3
|
-
__name: "copy",
|
|
4
|
-
props: {
|
|
5
|
-
bubbleItem: {}
|
|
6
|
-
},
|
|
7
|
-
emits: ["click"],
|
|
8
|
-
setup(o, { emit: r }) {
|
|
9
|
-
const i = r;
|
|
10
|
-
async function c(e) {
|
|
11
|
-
try {
|
|
12
|
-
return await navigator.clipboard.writeText(e), !0;
|
|
13
|
-
} catch {
|
|
14
|
-
return !1;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
const l = async () => {
|
|
18
|
-
const e = o.bubbleItem.content ? await c(o.bubbleItem.content) : !1;
|
|
19
|
-
i("click", e);
|
|
20
|
-
};
|
|
21
|
-
return (e, n) => (m(), a("span", { onClick: l }, n[0] || (n[0] = [
|
|
22
|
-
t("svg", {
|
|
23
|
-
width: "1em",
|
|
24
|
-
height: "1em",
|
|
25
|
-
viewBox: "0 0 16 16",
|
|
26
|
-
fill: "none",
|
|
27
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
29
|
-
}, [
|
|
30
|
-
t("desc", null, "Created with Pixso."),
|
|
31
|
-
t("defs"),
|
|
32
|
-
t("path", {
|
|
33
|
-
id: "矢量 22",
|
|
34
|
-
d: "M4 4.76C2.89 4.76 2 5.66 2 6.76L2 11.99C2 13.1 2.89 13.99 4 13.99L9.23 13.99C10.33 13.99 11.23 13.1 11.23 11.99L11.23 6.76C11.23 5.66 10.33 4.76 9.23 4.76L4 4.76ZM14 8.46L14 3.84C14 2.82 13.17 2 12.15 2L7.53 2",
|
|
35
|
-
stroke: "#191919",
|
|
36
|
-
"stroke-opacity": "1.000000",
|
|
37
|
-
"stroke-width": "1.000000",
|
|
38
|
-
"stroke-linecap": "round"
|
|
39
|
-
})
|
|
40
|
-
], -1)
|
|
41
|
-
])));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
w as default
|
|
46
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as t, openBlock as i, createStaticVNode as l } from "vue";
|
|
2
|
-
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const o = {};
|
|
4
|
-
function c(n, e) {
|
|
5
|
-
return i(), t("span", null, e[0] || (e[0] = [
|
|
6
|
-
l('<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><desc>Created with Pixso.</desc><defs><clipPath id="clip521_64343"><rect id="刷新-refresh" width="16.000000" height="16.000000" fill="white" fill-opacity="0"></rect></clipPath></defs><g clip-path="url(#clip521_64343)"><path id="形状结合" d="M11.8 2.75C14.55 4.73 15.27 8.46 13.54 11.3L15.24 10.84C15.47 10.78 15.7 10.9 15.8 11.1L15.83 11.18C15.9 11.44 15.75 11.7 15.49 11.77L12.59 12.54C12.34 12.61 12.08 12.46 12.01 12.2L11.23 9.31C11.16 9.06 11.31 8.79 11.57 8.72C11.82 8.65 12.08 8.81 12.16 9.06L12.65 10.91C14.21 8.49 13.62 5.24 11.24 3.52C8.77 1.74 5.32 2.28 3.53 4.73C1.74 7.18 2.29 10.61 4.76 12.39C6.42 13.59 8.28 13.84 10.39 13.16C10.64 13.08 10.91 13.22 10.99 13.47C11.07 13.72 10.94 13.99 10.68 14.07C8.29 14.85 6.11 14.55 4.19 13.16C1.3 11.07 0.65 7.04 2.75 4.16C4.85 1.29 8.91 0.66 11.8 2.75Z" fill="#191919" fill-opacity="1.000000" fill-rule="nonzero"></path></g></svg>', 1)
|
|
7
|
-
]));
|
|
8
|
-
}
|
|
9
|
-
const f = /* @__PURE__ */ r(o, [["render", c]]);
|
|
10
|
-
export {
|
|
11
|
-
f as default
|
|
12
|
-
};
|