@opentiny/tiny-robot 0.2.0-alpha.2 → 0.2.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/_plugin-vue_export-helper.js +9 -0
- package/dist/action-group/index.js +142 -0
- package/dist/bubble/index.js +3211 -0
- package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
- package/dist/container/index.js +60 -0
- package/dist/conversations/index.js +14 -0
- package/dist/feedback/index.js +192 -0
- package/dist/history/index.js +228 -0
- package/dist/icon-button/index.js +31 -0
- package/dist/index.d.ts +2200 -26
- package/dist/index.js +35 -43
- package/dist/index2.js +376 -0
- package/dist/index3.js +3895 -0
- package/dist/index4.js +637 -0
- package/dist/index5.js +3237 -0
- package/dist/index6.js +4623 -0
- package/dist/prompts/index.js +83 -0
- package/dist/question/index.js +429 -0
- package/dist/sender/index.js +772 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +497 -0
- package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +107 -107
- package/dist/welcome/index.js +38 -0
- package/package.json +7 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -17
- package/dist/bubble/BubbleList.vue.d.ts +0 -5
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -51
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -16
- package/dist/container/index.vue.d.ts +0 -26
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/history/components/index.d.ts +0 -2
- package/dist/history/components/item-tag.vue.d.ts +0 -5
- package/dist/history/components/search-empty.vue.d.ts +0 -7
- package/dist/history/composables/index.d.ts +0 -1
- package/dist/history/composables/useEditItemTitle.d.ts +0 -12
- package/dist/history/index.d.ts +0 -6
- package/dist/history/index.type.d.ts +0 -43
- package/dist/history/index.vue.d.ts +0 -2
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -6
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
- 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-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
- 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/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -310
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -110
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -121
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
- package/dist/packages/components/src/action-group/index.js +0 -17
- package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
- package/dist/packages/components/src/bubble/Bubble.vue.js +0 -7
- package/dist/packages/components/src/bubble/Bubble.vue2.js +0 -76
- package/dist/packages/components/src/bubble/BubbleList.vue.js +0 -7
- package/dist/packages/components/src/bubble/BubbleList.vue2.js +0 -50
- package/dist/packages/components/src/bubble/index.js +0 -18
- package/dist/packages/components/src/container/index.js +0 -9
- package/dist/packages/components/src/container/index.vue.js +0 -7
- package/dist/packages/components/src/container/index.vue2.js +0 -55
- package/dist/packages/components/src/conversations/index.js +0 -9
- package/dist/packages/components/src/conversations/index.vue.js +0 -9
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
- package/dist/packages/components/src/feedback/index.js +0 -9
- package/dist/packages/components/src/feedback/index.vue.js +0 -7
- package/dist/packages/components/src/feedback/index.vue2.js +0 -143
- package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
- package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
- package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
- package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
- package/dist/packages/components/src/history/index.js +0 -11
- package/dist/packages/components/src/history/index.vue.js +0 -7
- package/dist/packages/components/src/history/index.vue2.js +0 -130
- package/dist/packages/components/src/icon-button/index.js +0 -9
- package/dist/packages/components/src/icon-button/index.vue.js +0 -7
- package/dist/packages/components/src/icon-button/index.vue2.js +0 -22
- package/dist/packages/components/src/prompts/index.js +0 -18
- package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
- package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
- package/dist/packages/components/src/question/index.js +0 -9
- package/dist/packages/components/src/question/index.vue.js +0 -113
- package/dist/packages/components/src/question/index.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -175
- package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
- package/dist/packages/components/src/sender/index.js +0 -9
- package/dist/packages/components/src/sender/index.vue.js +0 -255
- package/dist/packages/components/src/sender/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
- package/dist/packages/components/src/suggestion/index.js +0 -9
- package/dist/packages/components/src/suggestion/index.vue.js +0 -179
- package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
- package/dist/packages/components/src/welcome/index.js +0 -9
- package/dist/packages/components/src/welcome/index.vue.js +0 -7
- package/dist/packages/components/src/welcome/index.vue2.js +0 -32
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -55
- package/dist/prompts/prompt.vue.d.ts +0 -3
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
- package/dist/question/components/HotQuestions.vue.d.ts +0 -89
- package/dist/question/composables/useQuestions.d.ts +0 -17
- package/dist/question/index.d.ts +0 -7
- package/dist/question/index.type.d.ts +0 -74
- package/dist/question/index.vue.d.ts +0 -46
- package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
- package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
- package/dist/sender/composables/useInputHandler.d.ts +0 -17
- package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
- package/dist/sender/index.d.ts +0 -7
- package/dist/sender/index.type.d.ts +0 -137
- package/dist/sender/index.vue.d.ts +0 -1012
- package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
- package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
- package/dist/suggestion/index.d.ts +0 -7
- package/dist/suggestion/index.type.d.ts +0 -94
- package/dist/suggestion/index.vue.d.ts +0 -343
- package/dist/suggestion/utils/dom.d.ts +0 -20
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
- package/src/action-group/ActionGroup.vue +0 -247
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -21
- package/src/assets/icons/accessory.svg +0 -12
- package/src/assets/icons/loading-speech.svg +0 -16
- package/src/assets/icons/loading.svg +0 -17
- package/src/assets/icons/send.svg +0 -21
- package/src/assets/icons/voice.svg +0 -22
- package/src/bubble/Bubble.vue +0 -153
- package/src/bubble/BubbleList.vue +0 -55
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -49
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -109
- package/src/conversations/index.ts +0 -12
- package/src/conversations/index.vue +0 -3
- package/src/feedback/components/SourceList.vue +0 -112
- package/src/feedback/components/index.ts +0 -1
- package/src/feedback/index.ts +0 -12
- package/src/feedback/index.type.ts +0 -27
- package/src/feedback/index.vue +0 -166
- package/src/history/components/index.ts +0 -2
- package/src/history/components/item-tag.vue +0 -49
- package/src/history/components/search-empty.vue +0 -38
- package/src/history/composables/index.ts +0 -1
- package/src/history/composables/useEditItemTitle.ts +0 -75
- package/src/history/index.ts +0 -12
- package/src/history/index.type.ts +0 -50
- package/src/history/index.vue +0 -292
- package/src/icon-button/index.ts +0 -12
- package/src/icon-button/index.type.ts +0 -7
- package/src/icon-button/index.vue +0 -58
- package/src/index.ts +0 -76
- package/src/prompts/index.ts +0 -25
- package/src/prompts/index.type.ts +0 -59
- package/src/prompts/prompt.vue +0 -101
- package/src/prompts/prompts.vue +0 -50
- package/src/question/components/CommonQuestions.vue +0 -146
- package/src/question/components/HotQuestions.vue +0 -148
- package/src/question/composables/useQuestions.ts +0 -106
- package/src/question/index.less +0 -447
- package/src/question/index.ts +0 -12
- package/src/question/index.type.ts +0 -86
- package/src/question/index.vue +0 -140
- package/src/question/vars.less +0 -135
- package/src/sender/components/ActionButtons.vue +0 -168
- package/src/sender/components/TemplateEditor.vue +0 -465
- package/src/sender/composables/useInputHandler.ts +0 -74
- package/src/sender/composables/useKeyboardHandler.ts +0 -101
- package/src/sender/composables/useSpeechHandler.ts +0 -122
- package/src/sender/index.less +0 -352
- package/src/sender/index.ts +0 -12
- package/src/sender/index.type.ts +0 -162
- package/src/sender/index.vue +0 -338
- package/src/sender/vars.less +0 -84
- package/src/suggestion/components/CategoryNav.vue +0 -38
- package/src/suggestion/components/SuggestionCapsule.vue +0 -183
- package/src/suggestion/components/SuggestionPanel.vue +0 -147
- package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
- package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
- package/src/suggestion/composables/useTriggerDetection.ts +0 -46
- package/src/suggestion/index.less +0 -497
- package/src/suggestion/index.ts +0 -12
- package/src/suggestion/index.type.ts +0 -101
- package/src/suggestion/index.vue +0 -338
- package/src/suggestion/utils/dom.ts +0 -66
- package/src/suggestion/vars.less +0 -141
- package/src/vite-env.d.ts +0 -1
- package/src/welcome/index.ts +0 -12
- package/src/welcome/index.type.ts +0 -12
- package/src/welcome/index.vue +0 -69
- package/tsconfig.json +0 -37
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -53
package/dist/index.js
CHANGED
|
@@ -1,70 +1,62 @@
|
|
|
1
|
-
import { Bubble as
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import "./
|
|
7
|
-
import { Prompt as
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import n from "./packages/components/src/container/index.vue.js";
|
|
13
|
-
import p from "./packages/components/src/conversations/index.vue.js";
|
|
14
|
-
import c from "./packages/components/src/feedback/index.vue.js";
|
|
15
|
-
import f from "./packages/components/src/icon-button/index.vue.js";
|
|
16
|
-
import T from "./packages/components/src/question/index.vue.js";
|
|
17
|
-
import l from "./packages/components/src/sender/index.vue.js";
|
|
18
|
-
import u from "./packages/components/src/welcome/index.vue.js";
|
|
19
|
-
import b from "./packages/components/src/suggestion/index.vue.js";
|
|
1
|
+
import { Bubble as t, BubbleList as e } from "./bubble/index.js";
|
|
2
|
+
import m from "./container/index.js";
|
|
3
|
+
import a from "./conversations/index.js";
|
|
4
|
+
import n from "./feedback/index.js";
|
|
5
|
+
import i from "./history/index.js";
|
|
6
|
+
import p from "./icon-button/index.js";
|
|
7
|
+
import { Prompt as c, Prompts as f } from "./prompts/index.js";
|
|
8
|
+
import T from "./question/index.js";
|
|
9
|
+
import l from "./sender/index.js";
|
|
10
|
+
import u from "./welcome/index.js";
|
|
11
|
+
import b from "./suggestion/index.js";
|
|
20
12
|
const d = [
|
|
13
|
+
t,
|
|
14
|
+
e,
|
|
21
15
|
m,
|
|
22
|
-
|
|
16
|
+
a,
|
|
23
17
|
n,
|
|
18
|
+
i,
|
|
24
19
|
p,
|
|
25
20
|
c,
|
|
26
|
-
i,
|
|
27
21
|
f,
|
|
28
|
-
e,
|
|
29
|
-
a,
|
|
30
22
|
T,
|
|
31
23
|
l,
|
|
32
24
|
u,
|
|
33
25
|
b
|
|
34
|
-
],
|
|
26
|
+
], F = {
|
|
35
27
|
install(o) {
|
|
36
28
|
d.forEach((r) => {
|
|
37
|
-
const
|
|
38
|
-
o.component(`Tr${
|
|
29
|
+
const s = r.name.replace(/^Tiny/, "").replace(/^Tr/, "");
|
|
30
|
+
o.component(`Tr${s}`, r);
|
|
39
31
|
});
|
|
40
32
|
}
|
|
41
33
|
};
|
|
42
34
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
t as Bubble,
|
|
36
|
+
e as BubbleList,
|
|
37
|
+
m as Container,
|
|
38
|
+
a as Conversations,
|
|
39
|
+
n as Feedback,
|
|
48
40
|
i as History,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
p as IconButton,
|
|
42
|
+
c as Prompt,
|
|
43
|
+
f as Prompts,
|
|
52
44
|
T as Question,
|
|
53
45
|
l as Sender,
|
|
54
46
|
b as Suggestion,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
t as TrBubble,
|
|
48
|
+
e as TrBubbleList,
|
|
49
|
+
m as TrContainer,
|
|
50
|
+
a as TrConversations,
|
|
51
|
+
n as TrFeedback,
|
|
60
52
|
i as TrHistory,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
p as TrIconButton,
|
|
54
|
+
c as TrPrompt,
|
|
55
|
+
f as TrPrompts,
|
|
64
56
|
T as TrQuestion,
|
|
65
57
|
l as TrSender,
|
|
66
58
|
b as TrSuggestion,
|
|
67
59
|
u as TrWelcome,
|
|
68
60
|
u as Welcome,
|
|
69
|
-
|
|
61
|
+
F as default
|
|
70
62
|
};
|
package/dist/index2.js
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { onMounted as K, nextTick as ne, watch as U, getCurrentScope as oe, onScopeDispose as le, isRef as ie, getCurrentInstance as H, toValue as b, hasInjectionContext as Z, inject as re, shallowRef as W, computed as j, reactive as G, unref as ue, watchEffect as se } from "vue";
|
|
2
|
+
function ce(e) {
|
|
3
|
+
return oe() ? (le(e), !0) : !1;
|
|
4
|
+
}
|
|
5
|
+
const F = /* @__PURE__ */ new WeakMap(), ae = (...e) => {
|
|
6
|
+
var t;
|
|
7
|
+
const n = e[0], o = (t = H()) == null ? void 0 : t.proxy;
|
|
8
|
+
if (o == null && !Z())
|
|
9
|
+
throw new Error("injectLocal must be called in setup");
|
|
10
|
+
return o && F.has(o) && n in F.get(o) ? F.get(o)[n] : re(...e);
|
|
11
|
+
}, q = typeof window < "u" && typeof document < "u";
|
|
12
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
13
|
+
const de = Object.prototype.toString, fe = (e) => de.call(e) === "[object Object]", S = () => {
|
|
14
|
+
}, me = /* @__PURE__ */ he();
|
|
15
|
+
function he() {
|
|
16
|
+
var e, t;
|
|
17
|
+
return q && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
18
|
+
}
|
|
19
|
+
function ee(e, t) {
|
|
20
|
+
function n(...o) {
|
|
21
|
+
return new Promise((a, h) => {
|
|
22
|
+
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(a).catch(h);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
27
|
+
function pe(e, t = {}) {
|
|
28
|
+
let n, o, a = S;
|
|
29
|
+
const h = (l) => {
|
|
30
|
+
clearTimeout(l), a(), a = S;
|
|
31
|
+
};
|
|
32
|
+
let f;
|
|
33
|
+
return (l) => {
|
|
34
|
+
const r = b(e), d = b(t.maxWait);
|
|
35
|
+
return n && h(n), r <= 0 || d !== void 0 && d <= 0 ? (o && (h(o), o = null), Promise.resolve(l())) : new Promise((v, w) => {
|
|
36
|
+
a = t.rejectOnCancel ? w : v, f = l, d && !o && (o = setTimeout(() => {
|
|
37
|
+
n && h(n), o = null, v(f());
|
|
38
|
+
}, d)), n = setTimeout(() => {
|
|
39
|
+
o && h(o), o = null, v(l());
|
|
40
|
+
}, r);
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ve(...e) {
|
|
45
|
+
let t = 0, n, o = !0, a = S, h, f, u, l, r;
|
|
46
|
+
!ie(e[0]) && typeof e[0] == "object" ? { delay: f, trailing: u = !0, leading: l = !0, rejectOnCancel: r = !1 } = e[0] : [f, u = !0, l = !0, r = !1] = e;
|
|
47
|
+
const d = () => {
|
|
48
|
+
n && (clearTimeout(n), n = void 0, a(), a = S);
|
|
49
|
+
};
|
|
50
|
+
return (w) => {
|
|
51
|
+
const p = b(f), g = Date.now() - t, M = () => h = w();
|
|
52
|
+
return d(), p <= 0 ? (t = Date.now(), M()) : (g > p && (l || !o) ? (t = Date.now(), M()) : u && (h = new Promise((i, s) => {
|
|
53
|
+
a = r ? s : i, n = setTimeout(() => {
|
|
54
|
+
t = Date.now(), o = !0, i(M()), d();
|
|
55
|
+
}, Math.max(0, p - g));
|
|
56
|
+
})), !l && !n && (n = setTimeout(() => o = !0, p)), o = !1, h);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function Q(e) {
|
|
60
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
61
|
+
}
|
|
62
|
+
function R(e) {
|
|
63
|
+
return Array.isArray(e) ? e : [e];
|
|
64
|
+
}
|
|
65
|
+
function we(e) {
|
|
66
|
+
return H();
|
|
67
|
+
}
|
|
68
|
+
function be(e, t = 200, n = {}) {
|
|
69
|
+
return ee(
|
|
70
|
+
pe(t, n),
|
|
71
|
+
e
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
function ge(e, t = 200, n = !1, o = !0, a = !1) {
|
|
75
|
+
return ee(
|
|
76
|
+
ve(t, n, o, a),
|
|
77
|
+
e
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function te(e, t = !0, n) {
|
|
81
|
+
we() ? K(e, n) : t ? e() : ne(e);
|
|
82
|
+
}
|
|
83
|
+
function ye(e, t, n) {
|
|
84
|
+
return U(
|
|
85
|
+
e,
|
|
86
|
+
t,
|
|
87
|
+
{
|
|
88
|
+
...n,
|
|
89
|
+
immediate: !0
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
const D = q ? window : void 0;
|
|
94
|
+
function x(e) {
|
|
95
|
+
var t;
|
|
96
|
+
const n = b(e);
|
|
97
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
98
|
+
}
|
|
99
|
+
function E(...e) {
|
|
100
|
+
const t = [], n = () => {
|
|
101
|
+
t.forEach((u) => u()), t.length = 0;
|
|
102
|
+
}, o = (u, l, r, d) => (u.addEventListener(l, r, d), () => u.removeEventListener(l, r, d)), a = j(() => {
|
|
103
|
+
const u = R(b(e[0])).filter((l) => l != null);
|
|
104
|
+
return u.every((l) => typeof l != "string") ? u : void 0;
|
|
105
|
+
}), h = ye(
|
|
106
|
+
() => {
|
|
107
|
+
var u, l;
|
|
108
|
+
return [
|
|
109
|
+
(l = (u = a.value) == null ? void 0 : u.map((r) => x(r))) != null ? l : [D].filter((r) => r != null),
|
|
110
|
+
R(b(a.value ? e[1] : e[0])),
|
|
111
|
+
R(ue(a.value ? e[2] : e[1])),
|
|
112
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
113
|
+
b(a.value ? e[3] : e[2])
|
|
114
|
+
];
|
|
115
|
+
},
|
|
116
|
+
([u, l, r, d]) => {
|
|
117
|
+
if (n(), !(u != null && u.length) || !(l != null && l.length) || !(r != null && r.length))
|
|
118
|
+
return;
|
|
119
|
+
const v = fe(d) ? { ...d } : d;
|
|
120
|
+
t.push(
|
|
121
|
+
...u.flatMap(
|
|
122
|
+
(w) => l.flatMap(
|
|
123
|
+
(p) => r.map((g) => o(w, p, g, v))
|
|
124
|
+
)
|
|
125
|
+
)
|
|
126
|
+
);
|
|
127
|
+
},
|
|
128
|
+
{ flush: "post" }
|
|
129
|
+
), f = () => {
|
|
130
|
+
h(), n();
|
|
131
|
+
};
|
|
132
|
+
return ce(n), f;
|
|
133
|
+
}
|
|
134
|
+
let X = !1;
|
|
135
|
+
function Pe(e, t, n = {}) {
|
|
136
|
+
const { window: o = D, ignore: a = [], capture: h = !0, detectIframe: f = !1, controls: u = !1 } = n;
|
|
137
|
+
if (!o)
|
|
138
|
+
return u ? { stop: S, cancel: S, trigger: S } : S;
|
|
139
|
+
if (me && !X) {
|
|
140
|
+
X = !0;
|
|
141
|
+
const i = { passive: !0 };
|
|
142
|
+
Array.from(o.document.body.children).forEach((s) => E(s, "click", S, i)), E(o.document.documentElement, "click", S, i);
|
|
143
|
+
}
|
|
144
|
+
let l = !0;
|
|
145
|
+
const r = (i) => b(a).some((s) => {
|
|
146
|
+
if (typeof s == "string")
|
|
147
|
+
return Array.from(o.document.querySelectorAll(s)).some((m) => m === i.target || i.composedPath().includes(m));
|
|
148
|
+
{
|
|
149
|
+
const m = x(s);
|
|
150
|
+
return m && (i.target === m || i.composedPath().includes(m));
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
function d(i) {
|
|
154
|
+
const s = b(i);
|
|
155
|
+
return s && s.$.subTree.shapeFlag === 16;
|
|
156
|
+
}
|
|
157
|
+
function v(i, s) {
|
|
158
|
+
const m = b(i), A = m.$.subTree && m.$.subTree.children;
|
|
159
|
+
return A == null || !Array.isArray(A) ? !1 : A.some((k) => k.el === s.target || s.composedPath().includes(k.el));
|
|
160
|
+
}
|
|
161
|
+
const w = (i) => {
|
|
162
|
+
const s = x(e);
|
|
163
|
+
if (i.target != null && !(!(s instanceof Element) && d(e) && v(e, i)) && !(!s || s === i.target || i.composedPath().includes(s))) {
|
|
164
|
+
if ("detail" in i && i.detail === 0 && (l = !r(i)), !l) {
|
|
165
|
+
l = !0;
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
t(i);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
let p = !1;
|
|
172
|
+
const g = [
|
|
173
|
+
E(o, "click", (i) => {
|
|
174
|
+
p || (p = !0, setTimeout(() => {
|
|
175
|
+
p = !1;
|
|
176
|
+
}, 0), w(i));
|
|
177
|
+
}, { passive: !0, capture: h }),
|
|
178
|
+
E(o, "pointerdown", (i) => {
|
|
179
|
+
const s = x(e);
|
|
180
|
+
l = !r(i) && !!(s && !i.composedPath().includes(s));
|
|
181
|
+
}, { passive: !0 }),
|
|
182
|
+
f && E(o, "blur", (i) => {
|
|
183
|
+
setTimeout(() => {
|
|
184
|
+
var s;
|
|
185
|
+
const m = x(e);
|
|
186
|
+
((s = o.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !(m != null && m.contains(o.document.activeElement)) && t(i);
|
|
187
|
+
}, 0);
|
|
188
|
+
}, { passive: !0 })
|
|
189
|
+
].filter(Boolean), M = () => g.forEach((i) => i());
|
|
190
|
+
return u ? {
|
|
191
|
+
stop: M,
|
|
192
|
+
cancel: () => {
|
|
193
|
+
l = !1;
|
|
194
|
+
},
|
|
195
|
+
trigger: (i) => {
|
|
196
|
+
l = !0, w(i), l = !1;
|
|
197
|
+
}
|
|
198
|
+
} : M;
|
|
199
|
+
}
|
|
200
|
+
function Se() {
|
|
201
|
+
const e = W(!1), t = H();
|
|
202
|
+
return t && K(() => {
|
|
203
|
+
e.value = !0;
|
|
204
|
+
}, t), e;
|
|
205
|
+
}
|
|
206
|
+
function Te(e) {
|
|
207
|
+
const t = Se();
|
|
208
|
+
return j(() => (t.value, !!e()));
|
|
209
|
+
}
|
|
210
|
+
const Ee = Symbol("vueuse-ssr-width");
|
|
211
|
+
function Me() {
|
|
212
|
+
const e = Z() ? ae(Ee, null) : null;
|
|
213
|
+
return typeof e == "number" ? e : void 0;
|
|
214
|
+
}
|
|
215
|
+
function We(e, t = {}) {
|
|
216
|
+
const { window: n = D, ssrWidth: o = Me() } = t, a = Te(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), h = W(typeof o == "number"), f = W(), u = W(!1), l = (r) => {
|
|
217
|
+
u.value = r.matches;
|
|
218
|
+
};
|
|
219
|
+
return se(() => {
|
|
220
|
+
if (h.value) {
|
|
221
|
+
h.value = !a.value;
|
|
222
|
+
const r = b(e).split(",");
|
|
223
|
+
u.value = r.some((d) => {
|
|
224
|
+
const v = d.includes("not all"), w = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), p = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
225
|
+
let g = !!(w || p);
|
|
226
|
+
return w && g && (g = o >= Q(w[1])), p && g && (g = o <= Q(p[1])), v ? !g : g;
|
|
227
|
+
});
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
a.value && (f.value = n.matchMedia(b(e)), u.value = f.value.matches);
|
|
231
|
+
}), E(f, "change", l, { passive: !0 }), j(() => u.value);
|
|
232
|
+
}
|
|
233
|
+
const J = 1;
|
|
234
|
+
function Oe(e, t = {}) {
|
|
235
|
+
const {
|
|
236
|
+
throttle: n = 0,
|
|
237
|
+
idle: o = 200,
|
|
238
|
+
onStop: a = S,
|
|
239
|
+
onScroll: h = S,
|
|
240
|
+
offset: f = {
|
|
241
|
+
left: 0,
|
|
242
|
+
right: 0,
|
|
243
|
+
top: 0,
|
|
244
|
+
bottom: 0
|
|
245
|
+
},
|
|
246
|
+
eventListenerOptions: u = {
|
|
247
|
+
capture: !1,
|
|
248
|
+
passive: !0
|
|
249
|
+
},
|
|
250
|
+
behavior: l = "auto",
|
|
251
|
+
window: r = D,
|
|
252
|
+
onError: d = (c) => {
|
|
253
|
+
console.error(c);
|
|
254
|
+
}
|
|
255
|
+
} = t, v = W(0), w = W(0), p = j({
|
|
256
|
+
get() {
|
|
257
|
+
return v.value;
|
|
258
|
+
},
|
|
259
|
+
set(c) {
|
|
260
|
+
M(c, void 0);
|
|
261
|
+
}
|
|
262
|
+
}), g = j({
|
|
263
|
+
get() {
|
|
264
|
+
return w.value;
|
|
265
|
+
},
|
|
266
|
+
set(c) {
|
|
267
|
+
M(void 0, c);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
function M(c, P) {
|
|
271
|
+
var y, _, L, C;
|
|
272
|
+
if (!r)
|
|
273
|
+
return;
|
|
274
|
+
const T = b(e);
|
|
275
|
+
if (!T)
|
|
276
|
+
return;
|
|
277
|
+
(L = T instanceof Document ? r.document.body : T) == null || L.scrollTo({
|
|
278
|
+
top: (y = b(P)) != null ? y : g.value,
|
|
279
|
+
left: (_ = b(c)) != null ? _ : p.value,
|
|
280
|
+
behavior: b(l)
|
|
281
|
+
});
|
|
282
|
+
const I = ((C = T == null ? void 0 : T.document) == null ? void 0 : C.documentElement) || (T == null ? void 0 : T.documentElement) || T;
|
|
283
|
+
p != null && (v.value = I.scrollLeft), g != null && (w.value = I.scrollTop);
|
|
284
|
+
}
|
|
285
|
+
const i = W(!1), s = G({
|
|
286
|
+
left: !0,
|
|
287
|
+
right: !1,
|
|
288
|
+
top: !0,
|
|
289
|
+
bottom: !1
|
|
290
|
+
}), m = G({
|
|
291
|
+
left: !1,
|
|
292
|
+
right: !1,
|
|
293
|
+
top: !1,
|
|
294
|
+
bottom: !1
|
|
295
|
+
}), A = (c) => {
|
|
296
|
+
i.value && (i.value = !1, m.left = !1, m.right = !1, m.top = !1, m.bottom = !1, a(c));
|
|
297
|
+
}, k = be(A, n + o), V = (c) => {
|
|
298
|
+
var P;
|
|
299
|
+
if (!r)
|
|
300
|
+
return;
|
|
301
|
+
const y = ((P = c == null ? void 0 : c.document) == null ? void 0 : P.documentElement) || (c == null ? void 0 : c.documentElement) || x(c), { display: _, flexDirection: L, direction: C } = getComputedStyle(y), T = C === "rtl" ? -1 : 1, I = y.scrollLeft;
|
|
302
|
+
m.left = I < v.value, m.right = I > v.value;
|
|
303
|
+
const z = Math.abs(I * T) <= (f.left || 0), $ = Math.abs(I * T) + y.clientWidth >= y.scrollWidth - (f.right || 0) - J;
|
|
304
|
+
_ === "flex" && L === "row-reverse" ? (s.left = $, s.right = z) : (s.left = z, s.right = $), v.value = I;
|
|
305
|
+
let O = y.scrollTop;
|
|
306
|
+
c === r.document && !O && (O = r.document.body.scrollTop), m.top = O < w.value, m.bottom = O > w.value;
|
|
307
|
+
const B = Math.abs(O) <= (f.top || 0), Y = Math.abs(O) + y.clientHeight >= y.scrollHeight - (f.bottom || 0) - J;
|
|
308
|
+
_ === "flex" && L === "column-reverse" ? (s.top = Y, s.bottom = B) : (s.top = B, s.bottom = Y), w.value = O;
|
|
309
|
+
}, N = (c) => {
|
|
310
|
+
var P;
|
|
311
|
+
if (!r)
|
|
312
|
+
return;
|
|
313
|
+
const y = (P = c.target.documentElement) != null ? P : c.target;
|
|
314
|
+
V(y), i.value = !0, k(c), h(c);
|
|
315
|
+
};
|
|
316
|
+
return E(
|
|
317
|
+
e,
|
|
318
|
+
"scroll",
|
|
319
|
+
n ? ge(N, n, !0, !1) : N,
|
|
320
|
+
u
|
|
321
|
+
), te(() => {
|
|
322
|
+
try {
|
|
323
|
+
const c = b(e);
|
|
324
|
+
if (!c)
|
|
325
|
+
return;
|
|
326
|
+
V(c);
|
|
327
|
+
} catch (c) {
|
|
328
|
+
d(c);
|
|
329
|
+
}
|
|
330
|
+
}), E(
|
|
331
|
+
e,
|
|
332
|
+
"scrollend",
|
|
333
|
+
A,
|
|
334
|
+
u
|
|
335
|
+
), {
|
|
336
|
+
x: p,
|
|
337
|
+
y: g,
|
|
338
|
+
isScrolling: i,
|
|
339
|
+
arrivedState: s,
|
|
340
|
+
directions: m,
|
|
341
|
+
measure() {
|
|
342
|
+
const c = b(e);
|
|
343
|
+
r && c && V(c);
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
function Ae(e = {}) {
|
|
348
|
+
const {
|
|
349
|
+
window: t = D,
|
|
350
|
+
initialWidth: n = Number.POSITIVE_INFINITY,
|
|
351
|
+
initialHeight: o = Number.POSITIVE_INFINITY,
|
|
352
|
+
listenOrientation: a = !0,
|
|
353
|
+
includeScrollbar: h = !0,
|
|
354
|
+
type: f = "inner"
|
|
355
|
+
} = e, u = W(n), l = W(o), r = () => {
|
|
356
|
+
if (t)
|
|
357
|
+
if (f === "outer")
|
|
358
|
+
u.value = t.outerWidth, l.value = t.outerHeight;
|
|
359
|
+
else if (f === "visual" && t.visualViewport) {
|
|
360
|
+
const { width: v, height: w, scale: p } = t.visualViewport;
|
|
361
|
+
u.value = Math.round(v * p), l.value = Math.round(w * p);
|
|
362
|
+
} else h ? (u.value = t.innerWidth, l.value = t.innerHeight) : (u.value = t.document.documentElement.clientWidth, l.value = t.document.documentElement.clientHeight);
|
|
363
|
+
};
|
|
364
|
+
r(), te(r);
|
|
365
|
+
const d = { passive: !0 };
|
|
366
|
+
if (E("resize", r, d), t && f === "visual" && t.visualViewport && E(t.visualViewport, "resize", r, d), a) {
|
|
367
|
+
const v = We("(orientation: portrait)");
|
|
368
|
+
U(v, () => r());
|
|
369
|
+
}
|
|
370
|
+
return { width: u, height: l };
|
|
371
|
+
}
|
|
372
|
+
export {
|
|
373
|
+
Ae as a,
|
|
374
|
+
Pe as o,
|
|
375
|
+
Oe as u
|
|
376
|
+
};
|