dou-ui 0.1.0-alpha.2 → 0.1.0-alpha.4
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/components/button/button.js.map +1 -1
- package/dist/components/button/button.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/button/button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/calendar-view/calendar-view.js.map +1 -1
- package/dist/components/calendar-view/calendar-view.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/components/calendar-view/calendar-view.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/card/card.vue_vue_type_script_setup_true_lang.js +45 -19
- package/dist/components/card/card.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/cascader/cascader.js.map +1 -1
- package/dist/components/cascader/cascader.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/cascader/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-artifact/chat-artifact.js.map +1 -1
- package/dist/components/chat-artifact/chat-artifact.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/chat-artifact/chat-artifact.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-attachments/chat-attachments.js.map +1 -1
- package/dist/components/chat-attachments/chat-attachments.vue_vue_type_script_setup_true_lang.js +11 -2
- package/dist/components/chat-attachments/chat-attachments.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-attachments/chat-attachments2.js.map +1 -1
- package/dist/components/chat-confirm/chat-confirm.js.map +1 -1
- package/dist/components/chat-confirm/chat-confirm.vue_vue_type_script_setup_true_lang.js +40 -17
- package/dist/components/chat-confirm/chat-confirm.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-context-meter/chat-context-meter.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/chat-context-meter/chat-context-meter.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-context-meter/chat-context-meter2.js.map +1 -1
- package/dist/components/chat-input/chat-input.js.map +1 -1
- package/dist/components/chat-input/chat-input.vue_vue_type_script_setup_true_lang.js +75 -7
- package/dist/components/chat-input/chat-input.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-input/chat-input2.js.map +1 -1
- package/dist/components/chat-list/chat-list.js +9 -4
- package/dist/components/chat-list/chat-list.js.map +1 -1
- package/dist/components/chat-list/chat-list.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/chat-list/chat-list.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-list/chat-list2.js +6 -0
- package/dist/components/chat-list/chat-list2.js.map +1 -0
- package/dist/components/chat-list/index.js +1 -1
- package/dist/components/chat-message/chat-message.js.map +1 -1
- package/dist/components/chat-message/chat-message.vue_vue_type_script_setup_true_lang.js +119 -39
- package/dist/components/chat-message/chat-message.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-message/chat-message2.js.map +1 -1
- package/dist/components/chat-message/style.js +6 -0
- package/dist/components/chat-plan/chat-plan.js +9 -4
- package/dist/components/chat-plan/chat-plan.js.map +1 -1
- package/dist/components/chat-plan/chat-plan.vue_vue_type_script_setup_true_lang.js +64 -32
- package/dist/components/chat-plan/chat-plan.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-plan/chat-plan2.js +6 -0
- package/dist/components/chat-plan/chat-plan2.js.map +1 -0
- package/dist/components/chat-plan/index.js +1 -1
- package/dist/components/chat-plan/style.js +1 -0
- package/dist/components/chat-question/chat-question.js +6 -0
- package/dist/components/chat-question/chat-question.js.map +1 -0
- package/dist/components/chat-question/chat-question.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/chat-question/chat-question.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/chat-question/index.js +7 -0
- package/dist/components/chat-question/index.js.map +1 -0
- package/dist/components/chat-question/style.d.ts +1 -0
- package/dist/components/chat-question/style.js +2 -0
- package/dist/components/chat-reasoning/chat-reasoning.js.map +1 -1
- package/dist/components/chat-reasoning/chat-reasoning.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/chat-reasoning/chat-reasoning.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-sources/chat-citation.js.map +1 -1
- package/dist/components/chat-sources/chat-citation.vue_vue_type_script_setup_true_lang.js +52 -14
- package/dist/components/chat-sources/chat-citation.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-sources/chat-sources.js.map +1 -1
- package/dist/components/chat-sources/chat-sources.vue_vue_type_script_setup_true_lang.js +6 -4
- package/dist/components/chat-sources/chat-sources.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-sources/chat-sources2.js.map +1 -1
- package/dist/components/chat-sources/index.js +1 -1
- package/dist/components/chat-steps/chat-steps.js +9 -4
- package/dist/components/chat-steps/chat-steps.js.map +1 -1
- package/dist/components/chat-steps/chat-steps.vue_vue_type_script_setup_true_lang.js +20 -13
- package/dist/components/chat-steps/chat-steps.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-steps/chat-steps2.js +6 -0
- package/dist/components/chat-steps/chat-steps2.js.map +1 -0
- package/dist/components/chat-steps/index.js +1 -1
- package/dist/components/chat-steps/style.js +1 -0
- package/dist/components/chat-tool-call/chat-tool-call.js.map +1 -1
- package/dist/components/chat-tool-call/chat-tool-call.vue_vue_type_script_setup_true_lang.js +38 -12
- package/dist/components/chat-tool-call/chat-tool-call.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-tool-call/chat-tool-call2.js.map +1 -1
- package/dist/components/chat-tool-call/style.js +1 -0
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-block/code-block.vue_vue_type_script_setup_true_lang.js +37 -5
- package/dist/components/code-block/code-block.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/collapse/collapse-item.js.map +1 -1
- package/dist/components/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/collapse/collapse-transition.js +3 -1
- package/dist/components/collapse/collapse-transition.js.map +1 -1
- package/dist/components/collapse/index.js +1 -2
- package/dist/components/collapse/index.js.map +1 -1
- package/dist/components/color-mode/color-mode-button.js.map +1 -1
- package/dist/components/color-mode/color-mode-button.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-mode/color-mode-button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-mode/color-mode-select.js.map +1 -1
- package/dist/components/color-mode/color-mode-select.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-mode/color-mode-select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-mode/color-mode-switch.js.map +1 -1
- package/dist/components/color-mode/color-mode-switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-mode/color-mode-switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-panel/color-panel.js.map +1 -1
- package/dist/components/color-panel/color-panel.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/color-panel/color-panel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-picker/color-picker.js.map +1 -1
- package/dist/components/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/comment-thread/comment-thread.js.map +1 -1
- package/dist/components/comment-thread/comment-thread.vue_vue_type_script_setup_true_lang.js +19 -15
- package/dist/components/comment-thread/comment-thread.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/comment-thread/style.js +2 -0
- package/dist/components/config-provider/use-config.js +5 -2
- package/dist/components/config-provider/use-config.js.map +1 -1
- package/dist/components/context-menu/context-menu.js.map +1 -1
- package/dist/components/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +26 -11
- package/dist/components/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/context-menu/index.js +2 -0
- package/dist/components/context-menu/index.js.map +1 -1
- package/dist/components/copy-button/copy-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/descriptions/descriptions.js.map +1 -1
- package/dist/components/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/descriptions/descriptions2.js.map +1 -1
- package/dist/components/dialog/functional.js +3 -7
- package/dist/components/dialog/functional.js.map +1 -1
- package/dist/components/dialog/index.js +4 -3
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dropdown/dropdown-button.js.map +1 -1
- package/dist/components/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-group.js +6 -0
- package/dist/components/dropdown/dropdown-group.js.map +1 -0
- package/dist/components/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/components/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/dropdown/dropdown-item.js.map +1 -1
- package/dist/components/dropdown/dropdown-item.vue_vue_type_script_setup_true_lang.js +31 -9
- package/dist/components/dropdown/dropdown-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-items.js.map +1 -1
- package/dist/components/dropdown/dropdown-items.vue_vue_type_script_setup_true_lang.js +77 -52
- package/dist/components/dropdown/dropdown-items.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-radio-group.js.map +1 -1
- package/dist/components/dropdown/dropdown-radio-group.vue_vue_type_script_setup_true_lang.js +23 -5
- package/dist/components/dropdown/dropdown-radio-group.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-sub.js.map +1 -1
- package/dist/components/dropdown/dropdown-sub.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/components/dropdown/dropdown-sub.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown.js.map +1 -1
- package/dist/components/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown2.js.map +1 -1
- package/dist/components/dropdown/index.js +4 -5
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/dropdown/item-components.js +11 -0
- package/dist/components/dropdown/item-components.js.map +1 -0
- package/dist/components/dropdown/menu-entries.js +14 -0
- package/dist/components/dropdown/menu-entries.js.map +1 -0
- package/dist/components/dropdown/menu-keys.js +1 -1
- package/dist/components/dropdown/menu-keys.js.map +1 -1
- package/dist/components/ellipsis/ellipsis.js.map +1 -1
- package/dist/components/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/image/image.js.map +1 -1
- package/dist/components/image/image.vue_vue_type_script_setup_true_lang.js +10 -1
- package/dist/components/image/image.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/image-cropper/image-cropper.js.map +1 -1
- package/dist/components/image-cropper/image-cropper.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/components/image-cropper/image-cropper.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/infinite-scroll/infinite-scroll.js.map +1 -1
- package/dist/components/infinite-scroll/infinite-scroll.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/infinite-scroll/infinite-scroll.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input-date/segment-field.js.map +1 -1
- package/dist/components/input-date/segment-field.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/input-date/segment-field.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input-date/style.js +1 -0
- package/dist/components/input-time/style.js +1 -0
- package/dist/components/layout/layout-aside-trigger.js.map +1 -1
- package/dist/components/layout/layout-aside-trigger.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/layout/layout-aside-trigger.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/layout/layout-aside.js.map +1 -1
- package/dist/components/layout/layout-aside.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/layout/layout-aside.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/layout/layout-footer.js.map +1 -1
- package/dist/components/layout/layout-footer.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/components/layout/layout-footer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/link/link.js.map +1 -1
- package/dist/components/link/link.vue_vue_type_script_setup_true_lang.js +116 -31
- package/dist/components/link/link.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/markdown/index.js +9 -0
- package/dist/components/markdown/index.js.map +1 -0
- package/dist/components/markdown/markdown.js +6 -0
- package/dist/components/markdown/markdown.js.map +1 -0
- package/dist/components/markdown/markdown.vue_vue_type_script_setup_true_lang.js +225 -0
- package/dist/components/markdown/markdown.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/markdown/parse-block.js +577 -0
- package/dist/components/markdown/parse-block.js.map +1 -0
- package/dist/components/markdown/parse-inline.js +626 -0
- package/dist/components/markdown/parse-inline.js.map +1 -0
- package/dist/components/markdown/parser.js +308 -0
- package/dist/components/markdown/parser.js.map +1 -0
- package/dist/components/markdown/render.js +424 -0
- package/dist/components/markdown/render.js.map +1 -0
- package/dist/components/markdown/style.d.ts +1 -0
- package/dist/components/markdown/style.js +10 -0
- package/dist/components/markdown/url.js +16 -0
- package/dist/components/markdown/url.js.map +1 -0
- package/dist/components/menu/menu-actions.js +65 -0
- package/dist/components/menu/menu-actions.js.map +1 -0
- package/dist/components/menu/menu-item.js.map +1 -1
- package/dist/components/menu/menu-item.vue_vue_type_script_setup_true_lang.js +52 -13
- package/dist/components/menu/menu-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu-list.js.map +1 -1
- package/dist/components/menu/menu-list.vue_vue_type_script_setup_true_lang.js +33 -18
- package/dist/components/menu/menu-list.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu-popup.js.map +1 -1
- package/dist/components/menu/menu-popup.vue_vue_type_script_setup_true_lang.js +60 -19
- package/dist/components/menu/menu-popup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu.js +17 -13
- package/dist/components/menu/menu.js.map +1 -1
- package/dist/components/menu/menu.vue_vue_type_script_setup_true_lang.js +9 -2
- package/dist/components/menu/menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu2.js.map +1 -1
- package/dist/components/menubar/menubar.js.map +1 -1
- package/dist/components/node-graph/layout.js +251 -38
- package/dist/components/node-graph/layout.js.map +1 -1
- package/dist/components/node-graph/node-graph-legend.js.map +1 -1
- package/dist/components/node-graph/node-graph-legend.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/node-graph/node-graph-legend.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/node-graph/node-graph.js.map +1 -1
- package/dist/components/node-graph/node-graph.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/node-graph/node-graph.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/pagination/pagination-gap.js.map +1 -1
- package/dist/components/pagination/pagination-gap.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/pagination/pagination-gap.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/pagination/pagination.js.map +1 -1
- package/dist/components/pagination/pagination.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/pagination/pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/popconfirm/index.js +2 -0
- package/dist/components/popconfirm/index.js.map +1 -1
- package/dist/components/popconfirm/popconfirm.js.map +1 -1
- package/dist/components/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +6 -2
- package/dist/components/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/popover/index.js +2 -0
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/popover/popover.vue_vue_type_script_setup_true_lang.js +12 -5
- package/dist/components/popover/popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/progress-group/progress-group.js.map +1 -1
- package/dist/components/progress-group/progress-group.vue_vue_type_script_setup_true_lang.js +11 -4
- package/dist/components/progress-group/progress-group.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/qrcode/qrcode.js.map +1 -1
- package/dist/components/qrcode/qrcode.vue_vue_type_script_setup_true_lang.js +10 -2
- package/dist/components/qrcode/qrcode.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/select.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/select/select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/slider/slider.js.map +1 -1
- package/dist/components/slider/slider.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/slider/slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/status-dot/index.js +7 -0
- package/dist/components/status-dot/index.js.map +1 -0
- package/dist/components/status-dot/status-dot.js +26 -0
- package/dist/components/status-dot/status-dot.js.map +1 -0
- package/dist/components/status-dot/status-dot.vue_vue_type_script_lang.js +43 -0
- package/dist/components/status-dot/status-dot.vue_vue_type_script_lang.js.map +1 -0
- package/dist/components/status-dot/status-dot2.js +6 -0
- package/dist/components/status-dot/status-dot2.js.map +1 -0
- package/dist/components/status-dot/style.d.ts +1 -0
- package/dist/components/status-dot/style.js +2 -0
- package/dist/components/steps/steps.js.map +1 -1
- package/dist/components/steps/steps.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/steps/steps.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/table/table.vue_vue_type_script_setup_true_lang.js +19 -14
- package/dist/components/table/table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tabs/tab-panel.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/tabs/tab-panel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/tabs/tabs.vue_vue_type_script_setup_true_lang.js +117 -47
- package/dist/components/tabs/tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tabs/tabs2.js.map +1 -1
- package/dist/components/tag/tag.js.map +1 -1
- package/dist/components/tag/tag.vue_vue_type_script_setup_true_lang.js +21 -4
- package/dist/components/tag/tag.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/timeline/style.js +1 -0
- package/dist/components/timeline/timeline-item.js.map +1 -1
- package/dist/components/timeline/timeline-item.vue_vue_type_script_setup_true_lang.js +6 -2
- package/dist/components/timeline/timeline-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/toast/index.js +5 -4
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/store.js +1 -9
- package/dist/components/toast/store.js.map +1 -1
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/components/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +55 -8
- package/dist/components/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tour/tour.js.map +1 -1
- package/dist/components/tour/tour.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/tour/tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/transfer/transfer-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/tree/tree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/tree-select/tree-select.js.map +1 -1
- package/dist/components/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/upload/upload.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/upload/upload.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/upload/upload2.js.map +1 -1
- package/dist/components/user/user.js.map +1 -1
- package/dist/components/user/user.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/user/user.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/virtual-list/virtual-list.js +7 -1
- package/dist/components/virtual-list/virtual-list.js.map +1 -1
- package/dist/components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js +2 -7
- package/dist/components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/virtual-list/virtual-list2.js.map +1 -1
- package/dist/composables/use-popup.js +30 -5
- package/dist/composables/use-popup.js.map +1 -1
- package/dist/index.js +26 -19
- package/dist/index.js.map +1 -1
- package/dist/locale/en.js +14 -8
- package/dist/locale/en.js.map +1 -1
- package/dist/locale/zh-cn.js +14 -8
- package/dist/locale/zh-cn.js.map +1 -1
- package/dist/locale/zh-tw.js +14 -8
- package/dist/locale/zh-tw.js.map +1 -1
- package/dist/plugin.js +25 -14
- package/dist/plugin.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/button/button.d.ts +5 -1
- package/dist/types/components/calendar-view/calendar-view.d.ts +6 -0
- package/dist/types/components/calendar-view/calendar-view.vue.d.ts +1 -0
- package/dist/types/components/calendar-view/index.d.ts +3 -0
- package/dist/types/components/card/card.d.ts +6 -1
- package/dist/types/components/chat-artifact/chat-artifact.d.ts +2 -1
- package/dist/types/components/chat-attachments/chat-attachments.d.ts +2 -2
- package/dist/types/components/chat-confirm/chat-confirm.d.ts +7 -2
- package/dist/types/components/chat-input/chat-input.d.ts +33 -3
- package/dist/types/components/chat-input/chat-input.vue.d.ts +7 -0
- package/dist/types/components/chat-input/index.d.ts +20 -0
- package/dist/types/components/chat-list/chat-list.d.ts +19 -1
- package/dist/types/components/chat-list/index.d.ts +3 -3
- package/dist/types/components/chat-message/chat-message.d.ts +58 -5
- package/dist/types/components/chat-message/chat-message.vue.d.ts +7 -3
- package/dist/types/components/chat-message/index.d.ts +15 -4
- package/dist/types/components/chat-plan/chat-plan.d.ts +19 -2
- package/dist/types/components/chat-plan/chat-plan.vue.d.ts +2 -0
- package/dist/types/components/chat-plan/index.d.ts +6 -0
- package/dist/types/components/chat-question/chat-question.d.ts +43 -0
- package/dist/types/components/chat-question/chat-question.vue.d.ts +18 -0
- package/dist/types/components/chat-question/index.d.ts +43 -0
- package/dist/types/components/chat-sources/chat-sources.d.ts +6 -1
- package/dist/types/components/chat-steps/chat-steps.d.ts +10 -4
- package/dist/types/components/chat-steps/chat-steps.vue.d.ts +1 -1
- package/dist/types/components/chat-steps/index.d.ts +3 -3
- package/dist/types/components/chat-tool-call/chat-tool-call.d.ts +12 -3
- package/dist/types/components/chat-tool-call/chat-tool-call.vue.d.ts +1 -0
- package/dist/types/components/chat-tool-call/index.d.ts +3 -0
- package/dist/types/components/checkbox/index.d.ts +5 -5
- package/dist/types/components/code-block/code-block.d.ts +11 -0
- package/dist/types/components/code-block/code-block.vue.d.ts +3 -1
- package/dist/types/components/code-block/index.d.ts +9 -3
- package/dist/types/components/collapse/collapse-transition.d.ts +2 -7
- package/dist/types/components/collapse/collapse.vue.d.ts +1 -1
- package/dist/types/components/collapse/index.d.ts +5 -6
- package/dist/types/components/comment-thread/comment-thread.d.ts +6 -0
- package/dist/types/components/comment-thread/comment-thread.vue.d.ts +1 -0
- package/dist/types/components/comment-thread/index.d.ts +3 -0
- package/dist/types/components/context-menu/context-menu.d.ts +37 -4
- package/dist/types/components/context-menu/context-menu.vue.d.ts +2 -0
- package/dist/types/components/context-menu/index.d.ts +5 -0
- package/dist/types/components/copy-button/copy-button.vue.d.ts +1 -1
- package/dist/types/components/copy-button/index.d.ts +1 -1
- package/dist/types/components/descriptions/descriptions.d.ts +9 -1
- package/dist/types/components/descriptions/descriptions.vue.d.ts +1 -0
- package/dist/types/components/descriptions/index.d.ts +3 -0
- package/dist/types/components/dialog/functional.d.ts +0 -3
- package/dist/types/components/dialog/index.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown-group.vue.d.ts +13 -0
- package/dist/types/components/dropdown/dropdown-items.vue.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown-radio-group.vue.d.ts +8 -4
- package/dist/types/components/dropdown/dropdown.d.ts +28 -6
- package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
- package/dist/types/components/dropdown/index.d.ts +10 -81
- package/dist/types/components/dropdown/item-components.d.ts +103 -0
- package/dist/types/components/dropdown/menu-entries.d.ts +4 -0
- package/dist/types/components/image/image.d.ts +9 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/layout/index.d.ts +12 -6
- package/dist/types/components/layout/layout-aside.vue.d.ts +1 -1
- package/dist/types/components/layout/layout-footer.vue.d.ts +4 -2
- package/dist/types/components/layout/layout.d.ts +4 -0
- package/dist/types/components/link/index.d.ts +3 -0
- package/dist/types/components/link/link.d.ts +24 -3
- package/dist/types/components/link/link.vue.d.ts +1 -0
- package/dist/types/components/markdown/index.d.ts +58 -0
- package/dist/types/components/markdown/markdown.d.ts +251 -0
- package/dist/types/components/markdown/markdown.vue.d.ts +22 -0
- package/dist/types/components/markdown/parse-block.d.ts +61 -0
- package/dist/types/components/markdown/parse-inline.d.ts +19 -0
- package/dist/types/components/markdown/parser.d.ts +22 -0
- package/dist/types/components/markdown/render.d.ts +84 -0
- package/dist/types/components/markdown/url.d.ts +10 -0
- package/dist/types/components/masonry/index.d.ts +3 -3
- package/dist/types/components/menu/index.d.ts +11 -3
- package/dist/types/components/menu/menu-actions.d.ts +26 -0
- package/dist/types/components/menu/menu-item.vue.d.ts +6 -0
- package/dist/types/components/menu/menu.d.ts +48 -5
- package/dist/types/components/menu/menu.vue.d.ts +4 -1
- package/dist/types/components/menubar/menubar.d.ts +1 -1
- package/dist/types/components/node-graph/layout.d.ts +42 -0
- package/dist/types/components/node-graph/node-graph.d.ts +1 -1
- package/dist/types/components/popover/index.d.ts +3 -3
- package/dist/types/components/popover/popover.vue.d.ts +1 -1
- package/dist/types/components/progress-group/index.d.ts +3 -0
- package/dist/types/components/progress-group/progress-group.d.ts +7 -0
- package/dist/types/components/progress-group/progress-group.vue.d.ts +1 -0
- package/dist/types/components/qrcode/index.d.ts +3 -0
- package/dist/types/components/qrcode/qrcode.d.ts +5 -0
- package/dist/types/components/qrcode/qrcode.vue.d.ts +1 -0
- package/dist/types/components/select/index.d.ts +3 -3
- package/dist/types/components/select/select.vue.d.ts +1 -1
- package/dist/types/components/sortable/index.d.ts +3 -3
- package/dist/types/components/status-dot/index.d.ts +51 -0
- package/dist/types/components/status-dot/status-dot.d.ts +46 -0
- package/dist/types/components/status-dot/status-dot.vue.d.ts +46 -0
- package/dist/types/components/steps/steps.d.ts +1 -1
- package/dist/types/components/switch/index.d.ts +3 -3
- package/dist/types/components/table/index.d.ts +4 -3
- package/dist/types/components/table/table.d.ts +6 -1
- package/dist/types/components/tabs/index.d.ts +3 -0
- package/dist/types/components/tabs/tabs.d.ts +16 -3
- package/dist/types/components/tabs/tabs.vue.d.ts +1 -0
- package/dist/types/components/timeline/index.d.ts +3 -3
- package/dist/types/components/timeline/timeline-item.vue.d.ts +1 -1
- package/dist/types/components/toast/index.d.ts +0 -2
- package/dist/types/components/toast/store.d.ts +0 -4
- package/dist/types/components/virtual-list/index.d.ts +3 -3
- package/dist/types/components/virtual-list/virtual-list.d.ts +2 -0
- package/dist/types/composables/use-popup.d.ts +15 -5
- package/dist/types/index.d.ts +1 -0
- package/dist/types/locale/types.d.ts +20 -7
- package/dist/types/utils/app-context.d.ts +14 -0
- package/dist/types/utils/only-child.d.ts +3 -1
- package/dist/types/utils/pointer.d.ts +5 -0
- package/dist/types/utils/safe-url.d.ts +14 -0
- package/dist/types/utils/status-check.d.ts +8 -0
- package/dist/utils/app-context.js +22 -0
- package/dist/utils/app-context.js.map +1 -0
- package/dist/utils/install.js +5 -0
- package/dist/utils/install.js.map +1 -1
- package/dist/utils/only-child.js +56 -5
- package/dist/utils/only-child.js.map +1 -1
- package/dist/utils/pointer.js +6 -1
- package/dist/utils/pointer.js.map +1 -1
- package/dist/utils/safe-url.js +57 -0
- package/dist/utils/safe-url.js.map +1 -0
- package/dist/utils/status-check.js +27 -0
- package/dist/utils/status-check.js.map +1 -0
- package/package.json +3 -3
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { Size, Tone } from '../../utils/types';
|
|
2
2
|
export type ButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
|
|
3
3
|
export type ButtonTone = Tone;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* `xs` is a button-only size for secondary actions in dense rows and
|
|
6
|
+
* toolbars; other controls stop at `sm`.
|
|
7
|
+
*/
|
|
8
|
+
export type ButtonSize = 'xs' | Size;
|
|
5
9
|
export interface ButtonProps {
|
|
6
10
|
/** How much visual weight the button carries. */
|
|
7
11
|
variant?: ButtonVariant;
|
|
@@ -107,6 +107,12 @@ export interface CalendarViewProps {
|
|
|
107
107
|
maxEvents?: number;
|
|
108
108
|
/** Days that cannot be chosen. */
|
|
109
109
|
disabledDate?: (date: string) => boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The hairline frame and rounded corners around the month grid, the
|
|
112
|
+
* week and day columns and the agenda. Off, they take no border at all,
|
|
113
|
+
* for a card or panel that already has an edge. On by default.
|
|
114
|
+
*/
|
|
115
|
+
bordered?: boolean;
|
|
110
116
|
}
|
|
111
117
|
export interface CalendarViewEmits {
|
|
112
118
|
'update:modelValue': [date: string];
|
|
@@ -38,6 +38,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, Calen
|
|
|
38
38
|
hours: [number, number];
|
|
39
39
|
scrollTime: string;
|
|
40
40
|
maxEvents: number;
|
|
41
|
+
bordered: boolean;
|
|
41
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -35,6 +35,7 @@ export declare const DouCalendarView: import("../..").WithInstall<{
|
|
|
35
35
|
hours: [number, number];
|
|
36
36
|
scrollTime: string;
|
|
37
37
|
maxEvents: number;
|
|
38
|
+
bordered: boolean;
|
|
38
39
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
40
|
P: {};
|
|
40
41
|
B: {};
|
|
@@ -65,6 +66,7 @@ export declare const DouCalendarView: import("../..").WithInstall<{
|
|
|
65
66
|
hours: [number, number];
|
|
66
67
|
scrollTime: string;
|
|
67
68
|
maxEvents: number;
|
|
69
|
+
bordered: boolean;
|
|
68
70
|
}>;
|
|
69
71
|
__isFragment?: never;
|
|
70
72
|
__isTeleport?: never;
|
|
@@ -104,6 +106,7 @@ export declare const DouCalendarView: import("../..").WithInstall<{
|
|
|
104
106
|
hours: [number, number];
|
|
105
107
|
scrollTime: string;
|
|
106
108
|
maxEvents: number;
|
|
109
|
+
bordered: boolean;
|
|
107
110
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
108
111
|
$slots: import("./calendar-view").CalendarViewSlots;
|
|
109
112
|
}), import("vue").HTMLAttributes>;
|
|
@@ -10,7 +10,12 @@ export interface CardProps {
|
|
|
10
10
|
raised?: boolean;
|
|
11
11
|
/** Deepen the edge on hover, for a card that is a link or a button. */
|
|
12
12
|
interactive?: boolean;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The root element, e.g. `article`, `section`, `a` or `button`. A
|
|
15
|
+
* `button` looks the same as the other cards, defaults to `type="button"`
|
|
16
|
+
* and holds its parts in spans, as a button may only hold text-level
|
|
17
|
+
* content: put nothing interactive inside it.
|
|
18
|
+
*/
|
|
14
19
|
as?: string;
|
|
15
20
|
}
|
|
16
21
|
export interface CardSlots {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/** Picks the icon. */
|
|
2
2
|
export type ChatArtifactKind = 'document' | 'code' | 'image' | 'web' | 'data' | 'file';
|
|
3
|
-
export type ChatArtifactStatus = '
|
|
3
|
+
export type ChatArtifactStatus = 'running' | 'done' | 'error';
|
|
4
4
|
export interface ChatArtifactProps {
|
|
5
5
|
/** The name of what was made, e.g. "Trip plan.md". */
|
|
6
6
|
title?: string;
|
|
7
7
|
kind?: ChatArtifactKind;
|
|
8
8
|
/** A short line under the title, e.g. "Markdown · 1,200 words". */
|
|
9
9
|
description?: string;
|
|
10
|
+
/** `running` while it is still being made. */
|
|
10
11
|
status?: ChatArtifactStatus;
|
|
11
12
|
/** It is the one shown in the side panel now. */
|
|
12
13
|
active?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ChatAttachmentStatus = '
|
|
1
|
+
export type ChatAttachmentStatus = 'running' | 'done' | 'error';
|
|
2
2
|
export interface ChatAttachment {
|
|
3
3
|
/** Unique within the list. */
|
|
4
4
|
uid: string;
|
|
@@ -11,7 +11,7 @@ export interface ChatAttachment {
|
|
|
11
11
|
url?: string;
|
|
12
12
|
/** Leave out once the file is ready. */
|
|
13
13
|
status?: ChatAttachmentStatus;
|
|
14
|
-
/** Upload progress, from 0 to 100, while `
|
|
14
|
+
/** Upload progress, from 0 to 100, while `running`. */
|
|
15
15
|
percent?: number;
|
|
16
16
|
}
|
|
17
17
|
export interface ChatAttachmentsProps {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/** `danger` also paints the allow button, for actions that delete or send. */
|
|
2
2
|
export type ChatConfirmTone = 'neutral' | 'warning' | 'danger';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* `waiting` means the same as in ChatPlan: paused until the person answers.
|
|
5
|
+
* `withdrawn` means the assistant no longer needs an answer, e.g. the run
|
|
6
|
+
* was stopped or the plan changed before the person replied.
|
|
7
|
+
*/
|
|
8
|
+
export type ChatConfirmStatus = 'waiting' | 'approved' | 'denied' | 'withdrawn';
|
|
4
9
|
/** What the person chose: once, every time from now on, or not at all. */
|
|
5
10
|
export type ChatConfirmDecision = 'approve' | 'always' | 'deny';
|
|
6
11
|
export interface ChatConfirmProps {
|
|
@@ -8,7 +13,7 @@ export interface ChatConfirmProps {
|
|
|
8
13
|
title?: string;
|
|
9
14
|
/** What will happen, in a sentence. */
|
|
10
15
|
description?: string;
|
|
11
|
-
/** `
|
|
16
|
+
/** `waiting` asks; the others show how it ended in one quiet line. */
|
|
12
17
|
status?: ChatConfirmStatus;
|
|
13
18
|
/** Offer "Always allow" next to "Allow". */
|
|
14
19
|
allowAlways?: boolean;
|
|
@@ -2,16 +2,26 @@ import type { Component } from 'vue';
|
|
|
2
2
|
import type { Size } from '../../utils/types';
|
|
3
3
|
/** An entry of the `/` command or `@` mention menu. */
|
|
4
4
|
export interface ChatInputOption {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Handed back when picked; for a mention it is also what gets inserted
|
|
7
|
+
* after `@`, and so matched too. A command's value is never shown and
|
|
8
|
+
* is matched only when there is no `label`: it may be an id.
|
|
9
|
+
*/
|
|
6
10
|
value: string;
|
|
7
|
-
/** Shown in the menu. Defaults to `value`. */
|
|
11
|
+
/** Shown in the menu and matched against what is typed. Defaults to `value`. */
|
|
8
12
|
label?: string;
|
|
9
|
-
/**
|
|
13
|
+
/** More words that find it, e.g. other names or pinyin. */
|
|
14
|
+
keywords?: string[];
|
|
15
|
+
/** A quieter line after the label; matched too. */
|
|
10
16
|
description?: string;
|
|
11
17
|
/** An icon component before the label. */
|
|
12
18
|
icon?: Component;
|
|
13
19
|
disabled?: boolean;
|
|
14
20
|
}
|
|
21
|
+
/** Whether an option matches what is typed after the `/` or `@`. */
|
|
22
|
+
export type ChatInputFilter = (option: ChatInputOption, query: string, trigger: '/' | '@') => boolean;
|
|
23
|
+
/** `true` matches as described under `filter`, `false` lists every option as given. */
|
|
24
|
+
export type ChatInputFilterMode = boolean | ChatInputFilter;
|
|
15
25
|
/** `enter` sends on Enter (Shift+Enter breaks the line); `mod-enter` sends on Ctrl / ⌘ + Enter. */
|
|
16
26
|
export type ChatInputSubmitOn = 'enter' | 'mod-enter';
|
|
17
27
|
export interface ChatInputProps {
|
|
@@ -49,6 +59,20 @@ export interface ChatInputProps {
|
|
|
49
59
|
* one replaces the typed `@…` with `@value` and emits `mention`.
|
|
50
60
|
*/
|
|
51
61
|
mentions?: ChatInputOption[];
|
|
62
|
+
/**
|
|
63
|
+
* How options match what is typed after the trigger. By default what
|
|
64
|
+
* the person sees holds it, ignoring case: the label (or the value, when
|
|
65
|
+
* there is no label), a mention's value, the description and `keywords`.
|
|
66
|
+
* `false` lists them all as given, e.g. results already looked up with
|
|
67
|
+
* `search`. Give `{ '@': false }` to set the `/` and `@` menus apart;
|
|
68
|
+
* a trigger left out matches by default.
|
|
69
|
+
*/
|
|
70
|
+
filter?: ChatInputFilterMode | {
|
|
71
|
+
'/'?: ChatInputFilterMode;
|
|
72
|
+
'@'?: ChatInputFilterMode;
|
|
73
|
+
};
|
|
74
|
+
/** Wait this many ms after the last keystroke before emitting `search`. */
|
|
75
|
+
searchDelay?: number;
|
|
52
76
|
/** Where to render the `/` and `@` menu; `false` keeps it in place. */
|
|
53
77
|
teleport?: string | HTMLElement | false;
|
|
54
78
|
}
|
|
@@ -62,6 +86,12 @@ export interface ChatInputEmits {
|
|
|
62
86
|
command: [option: ChatInputOption];
|
|
63
87
|
/** Something was picked from the `@` menu. */
|
|
64
88
|
mention: [option: ChatInputOption];
|
|
89
|
+
/**
|
|
90
|
+
* The text after a `/` or `@` changed (after `searchDelay`), and when one
|
|
91
|
+
* is typed: look options up somewhere else and replace `commands` or
|
|
92
|
+
* `mentions` with them, usually with `filter` set to `false`.
|
|
93
|
+
*/
|
|
94
|
+
search: [query: string, trigger: '/' | '@'];
|
|
65
95
|
/** Files were pasted or dropped onto the input. */
|
|
66
96
|
attach: [files: File[]];
|
|
67
97
|
}
|
|
@@ -6,6 +6,7 @@ type __VLS_ModelProps = {
|
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatInputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
search: (query: string, trigger: "/" | "@") => any;
|
|
9
10
|
command: (option: ChatInputOption) => any;
|
|
10
11
|
stop: () => any;
|
|
11
12
|
"update:modelValue": (...args: unknown[]) => any;
|
|
@@ -13,6 +14,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatI
|
|
|
13
14
|
mention: (option: ChatInputOption) => any;
|
|
14
15
|
attach: (files: File[]) => any;
|
|
15
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
onSearch?: ((query: string, trigger: "/" | "@") => any) | undefined;
|
|
16
18
|
onCommand?: ((option: ChatInputOption) => any) | undefined;
|
|
17
19
|
onStop?: (() => any) | undefined;
|
|
18
20
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
@@ -23,6 +25,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatI
|
|
|
23
25
|
size: import("../..").Size;
|
|
24
26
|
teleport: string | false | HTMLElement;
|
|
25
27
|
loading: boolean;
|
|
28
|
+
filter: import("./chat-input").ChatInputFilterMode | {
|
|
29
|
+
'/'?: import("./chat-input").ChatInputFilterMode;
|
|
30
|
+
'@'?: import("./chat-input").ChatInputFilterMode;
|
|
31
|
+
};
|
|
26
32
|
disabled: boolean;
|
|
27
33
|
submitOn: import("./chat-input").ChatInputSubmitOn;
|
|
28
34
|
minRows: number;
|
|
@@ -30,6 +36,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatI
|
|
|
30
36
|
canSubmit: boolean;
|
|
31
37
|
commands: ChatInputOption[];
|
|
32
38
|
mentions: ChatInputOption[];
|
|
39
|
+
searchDelay: number;
|
|
33
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
41
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
42
|
declare const _default: typeof __VLS_export;
|
|
@@ -4,6 +4,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
4
4
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./chat-input").ChatInputProps & {
|
|
5
5
|
modelValue?: string;
|
|
6
6
|
}> & Readonly<{
|
|
7
|
+
onSearch?: ((query: string, trigger: "/" | "@") => any) | undefined;
|
|
7
8
|
onCommand?: ((option: import("./chat-input").ChatInputOption) => any) | undefined;
|
|
8
9
|
onStop?: (() => any) | undefined;
|
|
9
10
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
@@ -11,6 +12,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
11
12
|
onMention?: ((option: import("./chat-input").ChatInputOption) => any) | undefined;
|
|
12
13
|
onAttach?: ((files: File[]) => any) | undefined;
|
|
13
14
|
}>, import("./chat-input").ChatInputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
search: (query: string, trigger: "/" | "@") => any;
|
|
14
16
|
command: (option: import("./chat-input").ChatInputOption) => any;
|
|
15
17
|
stop: () => any;
|
|
16
18
|
"update:modelValue": (...args: unknown[]) => any;
|
|
@@ -21,6 +23,10 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
21
23
|
size: import("../..").Size;
|
|
22
24
|
teleport: string | false | HTMLElement;
|
|
23
25
|
loading: boolean;
|
|
26
|
+
filter: import("./chat-input").ChatInputFilterMode | {
|
|
27
|
+
'/'?: import("./chat-input").ChatInputFilterMode;
|
|
28
|
+
'@'?: import("./chat-input").ChatInputFilterMode;
|
|
29
|
+
};
|
|
24
30
|
disabled: boolean;
|
|
25
31
|
submitOn: import("./chat-input").ChatInputSubmitOn;
|
|
26
32
|
minRows: number;
|
|
@@ -28,6 +34,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
28
34
|
canSubmit: boolean;
|
|
29
35
|
commands: import("./chat-input").ChatInputOption[];
|
|
30
36
|
mentions: import("./chat-input").ChatInputOption[];
|
|
37
|
+
searchDelay: number;
|
|
31
38
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
32
39
|
P: {};
|
|
33
40
|
B: {};
|
|
@@ -38,6 +45,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
38
45
|
}, Readonly<import("./chat-input").ChatInputProps & {
|
|
39
46
|
modelValue?: string;
|
|
40
47
|
}> & Readonly<{
|
|
48
|
+
onSearch?: ((query: string, trigger: "/" | "@") => any) | undefined;
|
|
41
49
|
onCommand?: ((option: import("./chat-input").ChatInputOption) => any) | undefined;
|
|
42
50
|
onStop?: (() => any) | undefined;
|
|
43
51
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
@@ -48,6 +56,10 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
48
56
|
size: import("../..").Size;
|
|
49
57
|
teleport: string | false | HTMLElement;
|
|
50
58
|
loading: boolean;
|
|
59
|
+
filter: import("./chat-input").ChatInputFilterMode | {
|
|
60
|
+
'/'?: import("./chat-input").ChatInputFilterMode;
|
|
61
|
+
'@'?: import("./chat-input").ChatInputFilterMode;
|
|
62
|
+
};
|
|
51
63
|
disabled: boolean;
|
|
52
64
|
submitOn: import("./chat-input").ChatInputSubmitOn;
|
|
53
65
|
minRows: number;
|
|
@@ -55,6 +67,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
55
67
|
canSubmit: boolean;
|
|
56
68
|
commands: import("./chat-input").ChatInputOption[];
|
|
57
69
|
mentions: import("./chat-input").ChatInputOption[];
|
|
70
|
+
searchDelay: number;
|
|
58
71
|
}>;
|
|
59
72
|
__isFragment?: never;
|
|
60
73
|
__isTeleport?: never;
|
|
@@ -62,6 +75,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
62
75
|
} & import("vue").ComponentOptionsBase<Readonly<import("./chat-input").ChatInputProps & {
|
|
63
76
|
modelValue?: string;
|
|
64
77
|
}> & Readonly<{
|
|
78
|
+
onSearch?: ((query: string, trigger: "/" | "@") => any) | undefined;
|
|
65
79
|
onCommand?: ((option: import("./chat-input").ChatInputOption) => any) | undefined;
|
|
66
80
|
onStop?: (() => any) | undefined;
|
|
67
81
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
@@ -69,6 +83,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
69
83
|
onMention?: ((option: import("./chat-input").ChatInputOption) => any) | undefined;
|
|
70
84
|
onAttach?: ((files: File[]) => any) | undefined;
|
|
71
85
|
}>, import("./chat-input").ChatInputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
search: (query: string, trigger: "/" | "@") => any;
|
|
72
87
|
command: (option: import("./chat-input").ChatInputOption) => any;
|
|
73
88
|
stop: () => any;
|
|
74
89
|
"update:modelValue": (...args: unknown[]) => any;
|
|
@@ -79,6 +94,10 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
79
94
|
size: import("../..").Size;
|
|
80
95
|
teleport: string | false | HTMLElement;
|
|
81
96
|
loading: boolean;
|
|
97
|
+
filter: import("./chat-input").ChatInputFilterMode | {
|
|
98
|
+
'/'?: import("./chat-input").ChatInputFilterMode;
|
|
99
|
+
'@'?: import("./chat-input").ChatInputFilterMode;
|
|
100
|
+
};
|
|
82
101
|
disabled: boolean;
|
|
83
102
|
submitOn: import("./chat-input").ChatInputSubmitOn;
|
|
84
103
|
minRows: number;
|
|
@@ -86,6 +105,7 @@ export declare const DouChatInput: import("../..").WithInstall<{
|
|
|
86
105
|
canSubmit: boolean;
|
|
87
106
|
commands: import("./chat-input").ChatInputOption[];
|
|
88
107
|
mentions: import("./chat-input").ChatInputOption[];
|
|
108
|
+
searchDelay: number;
|
|
89
109
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
90
110
|
$slots: import("./chat-input").ChatInputSlots;
|
|
91
111
|
}), TextareaHTMLAttributes>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import type { VirtualListAlign, VirtualListKey } from '../virtual-list/virtual-list';
|
|
3
|
+
/**
|
|
4
|
+
* A message to scroll to: its key with `items`; otherwise its element, or
|
|
5
|
+
* the component that renders it (a `ref` on DouChatMessage).
|
|
6
|
+
*/
|
|
7
|
+
export type ChatListTarget = VirtualListKey | Element | ComponentPublicInstance;
|
|
8
|
+
/** @internal Whether the target is an element or a component, not a key. */
|
|
9
|
+
export declare const isTarget: (target: ChatListTarget) => target is Element | ComponentPublicInstance;
|
|
10
|
+
/** @internal The element of a target: a component gives its root element. */
|
|
11
|
+
export declare function elementOf(target: Element | ComponentPublicInstance): HTMLElement | null;
|
|
2
12
|
export interface ChatListProps<T = any> {
|
|
3
13
|
/**
|
|
4
14
|
* Follow new content: while the list is scrolled to the bottom, it stays
|
|
@@ -45,6 +55,14 @@ export interface ChatListExpose {
|
|
|
45
55
|
viewport: HTMLElement | null;
|
|
46
56
|
/** Scroll to the end and follow new content again. */
|
|
47
57
|
scrollToBottom: (behavior?: ScrollBehavior) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Jump to one message, e.g. one found by a search, and stop following
|
|
60
|
+
* new content. With `items` give its key (as `itemKey` makes it, or its
|
|
61
|
+
* index without one); otherwise its element or its DouChatMessage. Pair
|
|
62
|
+
* it with the message's `highlighted` to show which one it is. A target
|
|
63
|
+
* not in the list is ignored. `align` defaults to `center`.
|
|
64
|
+
*/
|
|
65
|
+
scrollToMessage: (target: ChatListTarget | null | undefined, align?: VirtualListAlign) => void;
|
|
48
66
|
/** Whether the list is at the bottom now. */
|
|
49
67
|
readonly atBottom: boolean;
|
|
50
68
|
}
|
|
@@ -70,7 +70,7 @@ export declare const DouChatList: import("../..").WithInstall<(<T>(__VLS_props:
|
|
|
70
70
|
hidden?: "" | "hidden" | (boolean | "false" | "true") | "until-found" | undefined;
|
|
71
71
|
color?: string | undefined | undefined;
|
|
72
72
|
translate?: "yes" | "no" | undefined | undefined;
|
|
73
|
-
|
|
73
|
+
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
74
74
|
onSelect?: ((payload: Event) => void) | undefined;
|
|
75
75
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
76
76
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -105,6 +105,7 @@ export declare const DouChatList: import("../..").WithInstall<(<T>(__VLS_props:
|
|
|
105
105
|
onKeyup?: ((payload: KeyboardEvent) => void) | undefined;
|
|
106
106
|
onDblclick?: ((payload: MouseEvent) => void) | undefined;
|
|
107
107
|
onMousedown?: ((payload: MouseEvent) => void) | undefined;
|
|
108
|
+
onMouseenter?: ((payload: MouseEvent) => void) | undefined;
|
|
108
109
|
onMouseleave?: ((payload: MouseEvent) => void) | undefined;
|
|
109
110
|
onMousemove?: ((payload: MouseEvent) => void) | undefined;
|
|
110
111
|
onMouseout?: ((payload: MouseEvent) => void) | undefined;
|
|
@@ -146,7 +147,6 @@ export declare const DouChatList: import("../..").WithInstall<(<T>(__VLS_props:
|
|
|
146
147
|
onPointermove?: ((payload: PointerEvent) => void) | undefined;
|
|
147
148
|
onPointerup?: ((payload: PointerEvent) => void) | undefined;
|
|
148
149
|
onPointercancel?: ((payload: PointerEvent) => void) | undefined;
|
|
149
|
-
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
150
150
|
onPointerleave?: ((payload: PointerEvent) => void) | undefined;
|
|
151
151
|
onPointerover?: ((payload: PointerEvent) => void) | undefined;
|
|
152
152
|
onPointerout?: ((payload: PointerEvent) => void) | undefined;
|
|
@@ -169,7 +169,7 @@ export declare const DouChatList: import("../..").WithInstall<(<T>(__VLS_props:
|
|
|
169
169
|
dir?: string | undefined | undefined;
|
|
170
170
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
171
171
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
172
|
-
enterKeyHint?: "search" | "next" | "
|
|
172
|
+
enterKeyHint?: "search" | "next" | "done" | "send" | "previous" | "enter" | "go" | undefined;
|
|
173
173
|
id?: string | undefined | undefined;
|
|
174
174
|
inert?: (boolean | "false" | "true") | undefined;
|
|
175
175
|
lang?: string | undefined | undefined;
|
|
@@ -2,11 +2,17 @@ import type { ChatArtifactKind, ChatArtifactStatus } from '../chat-artifact/chat
|
|
|
2
2
|
import type { ChatAttachment } from '../chat-attachments/chat-attachments';
|
|
3
3
|
import type { ChatConfirmDecision, ChatConfirmStatus, ChatConfirmTone } from '../chat-confirm/chat-confirm';
|
|
4
4
|
import type { ChatPlanItem } from '../chat-plan/chat-plan';
|
|
5
|
+
import type { ChatQuestionOption, ChatQuestionStatus } from '../chat-question/chat-question';
|
|
5
6
|
import type { ChatSource } from '../chat-sources/chat-sources';
|
|
6
7
|
import type { ChatStep } from '../chat-steps/chat-steps';
|
|
7
8
|
import type { ChatToolCallStatus } from '../chat-tool-call/chat-tool-call';
|
|
9
|
+
import type { MarkdownProps, MarkdownSlots } from '../markdown/markdown';
|
|
10
|
+
/** Options for the Markdown of text and reasoning parts. */
|
|
11
|
+
export type ChatMessageMarkdown = Pick<MarkdownProps, 'smooth' | 'speed' | 'caret' | 'linkTarget' | 'sanitizeUrl'>;
|
|
8
12
|
/** Who wrote the message. */
|
|
9
13
|
export type ChatMessageSender = 'user' | 'assistant' | 'system';
|
|
14
|
+
/** When the actions under a message show. */
|
|
15
|
+
export type ChatMessageActionsVisible = 'always' | 'hover';
|
|
10
16
|
export interface ChatTextPart {
|
|
11
17
|
type: 'text';
|
|
12
18
|
text: string;
|
|
@@ -27,17 +33,20 @@ export interface ChatToolPart {
|
|
|
27
33
|
status?: ChatToolCallStatus;
|
|
28
34
|
input?: unknown;
|
|
29
35
|
output?: unknown;
|
|
36
|
+
live?: boolean;
|
|
30
37
|
}
|
|
31
38
|
export interface ChatStepsPart {
|
|
32
39
|
type: 'steps';
|
|
33
40
|
items: ChatStep[];
|
|
34
|
-
|
|
41
|
+
live?: boolean;
|
|
35
42
|
title?: string;
|
|
36
43
|
}
|
|
37
44
|
export interface ChatPlanPart {
|
|
38
45
|
type: 'plan';
|
|
39
46
|
items: ChatPlanItem[];
|
|
40
47
|
title?: string;
|
|
48
|
+
collapsible?: boolean;
|
|
49
|
+
live?: boolean;
|
|
41
50
|
}
|
|
42
51
|
export interface ChatSourcesPart {
|
|
43
52
|
type: 'sources';
|
|
@@ -69,24 +78,50 @@ export interface ChatConfirmPart {
|
|
|
69
78
|
/** Shown as monospace detail, e.g. the command to run or a diff. */
|
|
70
79
|
detail?: string;
|
|
71
80
|
}
|
|
81
|
+
export interface ChatQuestionPart {
|
|
82
|
+
type: 'question';
|
|
83
|
+
/** Handed back with `question`, to tell questions apart. */
|
|
84
|
+
id?: string | number;
|
|
85
|
+
title: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
options: ChatQuestionOption[];
|
|
88
|
+
status?: ChatQuestionStatus;
|
|
89
|
+
/** The `value` of the option chosen. */
|
|
90
|
+
answer?: string | number;
|
|
91
|
+
}
|
|
72
92
|
/** Any other part; render it with the `part` slot. */
|
|
73
93
|
export interface ChatCustomPart {
|
|
74
94
|
type: string;
|
|
75
95
|
[key: string]: unknown;
|
|
76
96
|
}
|
|
77
|
-
export type ChatMessagePart = ChatTextPart | ChatReasoningPart | ChatToolPart | ChatStepsPart | ChatPlanPart | ChatSourcesPart | ChatFilesPart | ChatArtifactPart | ChatConfirmPart;
|
|
97
|
+
export type ChatMessagePart = ChatTextPart | ChatReasoningPart | ChatToolPart | ChatStepsPart | ChatPlanPart | ChatSourcesPart | ChatFilesPart | ChatArtifactPart | ChatConfirmPart | ChatQuestionPart;
|
|
78
98
|
export interface ChatMessageProps {
|
|
79
99
|
sender?: ChatMessageSender;
|
|
80
100
|
/**
|
|
81
101
|
* What the message is made of, in order: text, reasoning, tool calls,
|
|
82
|
-
* steps, a plan, sources, files, artifacts and
|
|
102
|
+
* steps, a plan, sources, files, artifacts, confirmations and questions may follow
|
|
83
103
|
* one another in any order.
|
|
84
104
|
*/
|
|
85
105
|
parts?: (ChatMessagePart | ChatCustomPart)[];
|
|
86
106
|
/** Shorthand for a message of one text part. */
|
|
87
107
|
content?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Render text and reasoning parts as Markdown, streaming included. `[1]`
|
|
110
|
+
* in the text becomes a citation of the message's sources parts. An
|
|
111
|
+
* object turns it on with options for the Markdown component, such as
|
|
112
|
+
* `sanitizeUrl`. Set it for every message in the ConfigProvider's
|
|
113
|
+
* `defaults`.
|
|
114
|
+
*/
|
|
115
|
+
markdown?: boolean | ChatMessageMarkdown;
|
|
88
116
|
/** No part has arrived yet: show the waiting dots, like ChatBubble's. */
|
|
89
117
|
loading?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* When the actions show: `'always'`, or `'hover'` while the pointer is
|
|
120
|
+
* over the message or focus is inside. Devices without hover always show
|
|
121
|
+
* them. Buttons from the `actions` slot follow along. Defaults to
|
|
122
|
+
* `'hover'` for the person's messages and `'always'` for the rest.
|
|
123
|
+
*/
|
|
124
|
+
actionsVisible?: ChatMessageActionsVisible;
|
|
90
125
|
/** Show a copy button among the actions, copying the text parts. */
|
|
91
126
|
copyable?: boolean;
|
|
92
127
|
/** Offer an edit button on the person's own messages; saving emits `edit`. */
|
|
@@ -95,6 +130,13 @@ export interface ChatMessageProps {
|
|
|
95
130
|
versions?: number;
|
|
96
131
|
/** Which version is shown, from 1. Bound with `v-model:version`. */
|
|
97
132
|
version?: number;
|
|
133
|
+
/**
|
|
134
|
+
* Mark this message with a ring in the primary color that hugs the
|
|
135
|
+
* bubble, e.g. after a search jumped to it. It stays while set and fades
|
|
136
|
+
* once turned off (at once with reduced motion): turn it off after a
|
|
137
|
+
* moment. Pair it with ChatList's `scrollToMessage`.
|
|
138
|
+
*/
|
|
139
|
+
highlighted?: boolean;
|
|
98
140
|
}
|
|
99
141
|
export interface ChatMessageEmits {
|
|
100
142
|
'update:version': [version: number];
|
|
@@ -104,16 +146,20 @@ export interface ChatMessageEmits {
|
|
|
104
146
|
confirm: [part: ChatConfirmPart, decision: ChatConfirmDecision];
|
|
105
147
|
/** An artifact part was pressed. */
|
|
106
148
|
artifact: [part: ChatArtifactPart];
|
|
149
|
+
/** An option of a question part was pressed, with its `value` and the option itself. */
|
|
150
|
+
question: [part: ChatQuestionPart, value: string | number, option: ChatQuestionOption];
|
|
107
151
|
}
|
|
108
152
|
export interface ChatMessageSlots {
|
|
109
153
|
/**
|
|
110
|
-
* Renders a text part,
|
|
111
|
-
* has been revealed so far.
|
|
154
|
+
* Renders a text part by hand, in place of plain text or `markdown`.
|
|
155
|
+
* `text` is what has been revealed so far; `part.text` is all of it.
|
|
156
|
+
* `sources` are the message's sources, for citations.
|
|
112
157
|
*/
|
|
113
158
|
text?: (props: {
|
|
114
159
|
part: ChatTextPart;
|
|
115
160
|
text: string;
|
|
116
161
|
index: number;
|
|
162
|
+
sources: ChatSource[];
|
|
117
163
|
}) => unknown;
|
|
118
164
|
/** Renders parts of a type the message does not know. */
|
|
119
165
|
part?: (props: {
|
|
@@ -125,6 +171,13 @@ export interface ChatMessageSlots {
|
|
|
125
171
|
/** Replaces all parts, for a message laid out by hand. */
|
|
126
172
|
default?: () => unknown;
|
|
127
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* The Markdown component's slots, with a `markdown-` prefix, for text
|
|
176
|
+
* rendered with `markdown`: `markdown-code`, `markdown-container-tip`, ...
|
|
177
|
+
*/
|
|
178
|
+
export type ChatMessageMarkdownSlots = {
|
|
179
|
+
[K in keyof MarkdownSlots as `markdown-${K & string}`]: MarkdownSlots[K];
|
|
180
|
+
};
|
|
128
181
|
/** The text of a message, for copying: its text parts, one paragraph each. */
|
|
129
182
|
export declare function messageText(parts: readonly {
|
|
130
183
|
type: string;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import type { ChatArtifactPart, ChatConfirmPart, ChatMessageProps, ChatMessageSlots } from './chat-message';
|
|
2
|
-
type __VLS_Slots = ChatMessageSlots;
|
|
1
|
+
import type { ChatArtifactPart, ChatConfirmPart, ChatQuestionPart, ChatMessageMarkdownSlots, ChatMessageProps, ChatMessageSlots } from './chat-message';
|
|
2
|
+
type __VLS_Slots = ChatMessageSlots & ChatMessageMarkdownSlots;
|
|
3
3
|
declare const __VLS_base: import("vue").DefineComponent<ChatMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
4
|
confirm: (part: ChatConfirmPart, decision: import("..").ChatConfirmDecision) => any;
|
|
5
5
|
edit: (text: string) => any;
|
|
6
6
|
artifact: (part: ChatArtifactPart) => any;
|
|
7
|
+
question: (part: ChatQuestionPart, value: string | number, option: import("..").ChatQuestionOption) => any;
|
|
7
8
|
"update:version": (version: number) => any;
|
|
8
9
|
}, string, import("vue").PublicProps, Readonly<ChatMessageProps> & Readonly<{
|
|
9
10
|
onConfirm?: ((part: ChatConfirmPart, decision: import("..").ChatConfirmDecision) => any) | undefined;
|
|
10
11
|
onEdit?: ((text: string) => any) | undefined;
|
|
11
12
|
onArtifact?: ((part: ChatArtifactPart) => any) | undefined;
|
|
13
|
+
onQuestion?: ((part: ChatQuestionPart, value: string | number, option: import("..").ChatQuestionOption) => any) | undefined;
|
|
12
14
|
"onUpdate:version"?: ((version: number) => any) | undefined;
|
|
13
15
|
}>, {
|
|
14
16
|
editable: boolean;
|
|
15
17
|
loading: boolean;
|
|
16
18
|
versions: number;
|
|
17
|
-
sender: import("./chat-message").ChatMessageSender;
|
|
18
19
|
copyable: boolean;
|
|
20
|
+
sender: import("./chat-message").ChatMessageSender;
|
|
21
|
+
markdown: boolean | import("./chat-message").ChatMessageMarkdown;
|
|
22
|
+
actionsVisible: import("./chat-message").ChatMessageActionsVisible;
|
|
19
23
|
version: number;
|
|
20
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -4,18 +4,22 @@ export declare const DouChatMessage: import("../..").WithInstall<{
|
|
|
4
4
|
onConfirm?: ((part: import("./chat-message").ChatConfirmPart, decision: import("..").ChatConfirmDecision) => any) | undefined;
|
|
5
5
|
onEdit?: ((text: string) => any) | undefined;
|
|
6
6
|
onArtifact?: ((part: import("./chat-message").ChatArtifactPart) => any) | undefined;
|
|
7
|
+
onQuestion?: ((part: import("./chat-message").ChatQuestionPart, value: string | number, option: import("..").ChatQuestionOption) => any) | undefined;
|
|
7
8
|
"onUpdate:version"?: ((version: number) => any) | undefined;
|
|
8
9
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
10
|
confirm: (part: import("./chat-message").ChatConfirmPart, decision: import("..").ChatConfirmDecision) => any;
|
|
10
11
|
edit: (text: string) => any;
|
|
11
12
|
artifact: (part: import("./chat-message").ChatArtifactPart) => any;
|
|
13
|
+
question: (part: import("./chat-message").ChatQuestionPart, value: string | number, option: import("..").ChatQuestionOption) => any;
|
|
12
14
|
"update:version": (version: number) => any;
|
|
13
15
|
}, import("vue").PublicProps, {
|
|
14
16
|
editable: boolean;
|
|
15
17
|
loading: boolean;
|
|
16
18
|
versions: number;
|
|
17
|
-
sender: import("./chat-message").ChatMessageSender;
|
|
18
19
|
copyable: boolean;
|
|
20
|
+
sender: import("./chat-message").ChatMessageSender;
|
|
21
|
+
markdown: boolean | import("./chat-message").ChatMessageMarkdown;
|
|
22
|
+
actionsVisible: import("./chat-message").ChatMessageActionsVisible;
|
|
19
23
|
version: number;
|
|
20
24
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
21
25
|
P: {};
|
|
@@ -28,13 +32,16 @@ export declare const DouChatMessage: import("../..").WithInstall<{
|
|
|
28
32
|
onConfirm?: ((part: import("./chat-message").ChatConfirmPart, decision: import("..").ChatConfirmDecision) => any) | undefined;
|
|
29
33
|
onEdit?: ((text: string) => any) | undefined;
|
|
30
34
|
onArtifact?: ((part: import("./chat-message").ChatArtifactPart) => any) | undefined;
|
|
35
|
+
onQuestion?: ((part: import("./chat-message").ChatQuestionPart, value: string | number, option: import("..").ChatQuestionOption) => any) | undefined;
|
|
31
36
|
"onUpdate:version"?: ((version: number) => any) | undefined;
|
|
32
37
|
}>, {}, {}, {}, {}, {
|
|
33
38
|
editable: boolean;
|
|
34
39
|
loading: boolean;
|
|
35
40
|
versions: number;
|
|
36
|
-
sender: import("./chat-message").ChatMessageSender;
|
|
37
41
|
copyable: boolean;
|
|
42
|
+
sender: import("./chat-message").ChatMessageSender;
|
|
43
|
+
markdown: boolean | import("./chat-message").ChatMessageMarkdown;
|
|
44
|
+
actionsVisible: import("./chat-message").ChatMessageActionsVisible;
|
|
38
45
|
version: number;
|
|
39
46
|
}>;
|
|
40
47
|
__isFragment?: never;
|
|
@@ -44,21 +51,25 @@ export declare const DouChatMessage: import("../..").WithInstall<{
|
|
|
44
51
|
onConfirm?: ((part: import("./chat-message").ChatConfirmPart, decision: import("..").ChatConfirmDecision) => any) | undefined;
|
|
45
52
|
onEdit?: ((text: string) => any) | undefined;
|
|
46
53
|
onArtifact?: ((part: import("./chat-message").ChatArtifactPart) => any) | undefined;
|
|
54
|
+
onQuestion?: ((part: import("./chat-message").ChatQuestionPart, value: string | number, option: import("..").ChatQuestionOption) => any) | undefined;
|
|
47
55
|
"onUpdate:version"?: ((version: number) => any) | undefined;
|
|
48
56
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
57
|
confirm: (part: import("./chat-message").ChatConfirmPart, decision: import("..").ChatConfirmDecision) => any;
|
|
50
58
|
edit: (text: string) => any;
|
|
51
59
|
artifact: (part: import("./chat-message").ChatArtifactPart) => any;
|
|
60
|
+
question: (part: import("./chat-message").ChatQuestionPart, value: string | number, option: import("..").ChatQuestionOption) => any;
|
|
52
61
|
"update:version": (version: number) => any;
|
|
53
62
|
}, string, {
|
|
54
63
|
editable: boolean;
|
|
55
64
|
loading: boolean;
|
|
56
65
|
versions: number;
|
|
57
|
-
sender: import("./chat-message").ChatMessageSender;
|
|
58
66
|
copyable: boolean;
|
|
67
|
+
sender: import("./chat-message").ChatMessageSender;
|
|
68
|
+
markdown: boolean | import("./chat-message").ChatMessageMarkdown;
|
|
69
|
+
actionsVisible: import("./chat-message").ChatMessageActionsVisible;
|
|
59
70
|
version: number;
|
|
60
71
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
61
|
-
$slots: import("./chat-message").ChatMessageSlots;
|
|
72
|
+
$slots: import("./chat-message").ChatMessageSlots & import("./chat-message").ChatMessageMarkdownSlots;
|
|
62
73
|
}), import("vue").HTMLAttributes>;
|
|
63
74
|
export default DouChatMessage;
|
|
64
75
|
export type * from './chat-message';
|