@opentiny/tiny-robot 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/extensions.json +3 -0
- package/README.md +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/bubble-item/components/actions/copy.vue.d.ts +10 -0
- package/dist/bubble-item/components/actions/index.d.ts +2 -0
- package/dist/bubble-item/components/actions/refresh.vue.d.ts +2 -0
- package/dist/bubble-item/components/icons/ai.vue.d.ts +2 -0
- package/dist/bubble-item/components/icons/index.d.ts +2 -0
- package/dist/bubble-item/components/icons/user.vue.d.ts +2 -0
- package/dist/bubble-item/index.d.ts +7 -0
- package/dist/bubble-list/bubble-list.vue.d.ts +5 -0
- package/dist/bubble-list/index.d.ts +8 -0
- package/dist/bubble-list/index.type.d.ts +55 -0
- package/dist/conversations/index.d.ts +7 -0
- package/dist/conversations/index.vue.d.ts +2 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +2202 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/index.js +113 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/pc.js +93 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +725 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +198 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +204 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +57 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +10 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +14 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +54 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +85 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +69 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +42 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +43 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/finish.js +34 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +30 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +78 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +30 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +29 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/warn.js +26 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/index.js +196 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/pc.js +568 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +1783 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/index.js +13 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/vue.js +34 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +12 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +135 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +149 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/index.js +228 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/vue.js +263 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/index.js +63 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +16 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +23 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +77 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +176 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +248 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +277 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +46 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +187 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +5 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +164 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +44 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +21 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +63 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +96 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +40 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +59 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +127 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +95 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +59 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +30 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +28 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +37 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +43 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +110 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +25 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +95 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +84 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +99 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +7 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +10 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +9 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +16 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +46 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +33 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +10 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +40 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +28 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +54 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +39 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +31 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +10 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +61 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +48 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +7 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +74 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +139 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +14 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +4 -0
- package/dist/packages/components/src/assets/icons/accessory.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/loading.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/send.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/voice.svg.js +4 -0
- package/dist/packages/components/src/bubble-item/bubble-item.vue.js +7 -0
- package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +111 -0
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +46 -0
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +4 -0
- package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +12 -0
- package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +45 -0
- package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +63 -0
- package/dist/packages/components/src/bubble-item/index.js +9 -0
- package/dist/packages/components/src/bubble-list/bubble-list.vue.js +7 -0
- package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +52 -0
- package/dist/packages/components/src/bubble-list/index.js +9 -0
- package/dist/packages/components/src/conversations/index.js +9 -0
- package/dist/packages/components/src/conversations/index.vue.js +9 -0
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +161 -0
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +4 -0
- package/dist/packages/components/src/sender/composables/useInputHandler.js +34 -0
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +31 -0
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +67 -0
- package/dist/packages/components/src/sender/index.js +9 -0
- package/dist/packages/components/src/sender/index.vue.js +233 -0
- package/dist/packages/components/src/sender/index.vue2.js +4 -0
- package/dist/packages/components/src/welcome/index.js +9 -0
- package/dist/packages/components/src/welcome/index.vue.js +9 -0
- package/dist/sender/components/ActionButtons.vue.d.ts +23 -0
- package/dist/sender/composables/useInputHandler.d.ts +17 -0
- package/dist/sender/composables/useKeyboardHandler.d.ts +18 -0
- package/dist/sender/composables/useSpeechHandler.d.ts +14 -0
- package/dist/sender/index.d.ts +7 -0
- package/dist/sender/index.type.d.ts +90 -0
- package/dist/sender/index.vue.d.ts +948 -0
- package/dist/style.css +1 -0
- package/dist/welcome/index.d.ts +7 -0
- package/dist/welcome/index.vue.d.ts +2 -0
- package/package.json +42 -0
- package/src/assets/icons/accessory.svg +12 -0
- package/src/assets/icons/loading-speech.svg +16 -0
- package/src/assets/icons/loading.svg +17 -0
- package/src/assets/icons/send.svg +21 -0
- package/src/assets/icons/voice.svg +22 -0
- package/src/bubble-item/bubble-item.vue +264 -0
- package/src/bubble-item/components/actions/copy.vue +47 -0
- package/src/bubble-item/components/actions/index.ts +2 -0
- package/src/bubble-item/components/actions/refresh.vue +27 -0
- package/src/bubble-item/components/icons/ai.vue +30 -0
- package/src/bubble-item/components/icons/index.ts +2 -0
- package/src/bubble-item/components/icons/user.vue +78 -0
- package/src/bubble-item/index.ts +12 -0
- package/src/bubble-list/bubble-list.vue +53 -0
- package/src/bubble-list/index.ts +14 -0
- package/src/bubble-list/index.type.ts +65 -0
- package/src/conversations/index.ts +12 -0
- package/src/conversations/index.vue +3 -0
- package/src/index.ts +30 -0
- package/src/sender/components/ActionButtons.vue +165 -0
- package/src/sender/composables/useInputHandler.ts +69 -0
- package/src/sender/composables/useKeyboardHandler.ts +99 -0
- package/src/sender/composables/useSpeechHandler.ts +128 -0
- package/src/sender/global.d.ts +44 -0
- package/src/sender/index.less +344 -0
- package/src/sender/index.ts +12 -0
- package/src/sender/index.type.ts +111 -0
- package/src/sender/index.vue +289 -0
- package/src/sender/vars.less +84 -0
- package/src/vite-env.d.ts +1 -0
- package/src/welcome/index.ts +12 -0
- package/src/welcome/index.vue +3 -0
- package/tsconfig.json +37 -0
- package/tsconfig.node.json +10 -0
- package/vite.config.ts +53 -0
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import * as s from "../../../../../mdurl@2.0.0/node_modules/mdurl/index.js";
|
|
2
|
+
import * as a from "../../../../../uc.micro@2.1.0/node_modules/uc.micro/index.js";
|
|
3
|
+
import { decodeHTML as i } from "../../../../../entities@4.5.0/node_modules/entities/lib/esm/decode.js";
|
|
4
|
+
import o from "../../../../../uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js";
|
|
5
|
+
import x from "../../../../../uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js";
|
|
6
|
+
function u(e) {
|
|
7
|
+
return Object.prototype.toString.call(e);
|
|
8
|
+
}
|
|
9
|
+
function D(e) {
|
|
10
|
+
return u(e) === "[object String]";
|
|
11
|
+
}
|
|
12
|
+
const f = Object.prototype.hasOwnProperty;
|
|
13
|
+
function L(e, r) {
|
|
14
|
+
return f.call(e, r);
|
|
15
|
+
}
|
|
16
|
+
function h(e) {
|
|
17
|
+
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
18
|
+
if (t) {
|
|
19
|
+
if (typeof t != "object")
|
|
20
|
+
throw new TypeError(t + "must be object");
|
|
21
|
+
Object.keys(t).forEach(function(n) {
|
|
22
|
+
e[n] = t[n];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}), e;
|
|
26
|
+
}
|
|
27
|
+
function w(e, r, t) {
|
|
28
|
+
return [].concat(e.slice(0, r), t, e.slice(r + 1));
|
|
29
|
+
}
|
|
30
|
+
function E(e) {
|
|
31
|
+
return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
|
|
32
|
+
}
|
|
33
|
+
function l(e) {
|
|
34
|
+
if (e > 65535) {
|
|
35
|
+
e -= 65536;
|
|
36
|
+
const r = 55296 + (e >> 10), t = 56320 + (e & 1023);
|
|
37
|
+
return String.fromCharCode(r, t);
|
|
38
|
+
}
|
|
39
|
+
return String.fromCharCode(e);
|
|
40
|
+
}
|
|
41
|
+
const c = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, p = /&([a-z#][a-z0-9]{1,31});/gi, F = new RegExp(c.source + "|" + p.source, "gi"), C = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
42
|
+
function d(e, r) {
|
|
43
|
+
if (r.charCodeAt(0) === 35 && C.test(r)) {
|
|
44
|
+
const n = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10);
|
|
45
|
+
return E(n) ? l(n) : e;
|
|
46
|
+
}
|
|
47
|
+
const t = i(e);
|
|
48
|
+
return t !== e ? t : e;
|
|
49
|
+
}
|
|
50
|
+
function y(e) {
|
|
51
|
+
return e.indexOf("\\") < 0 ? e : e.replace(c, "$1");
|
|
52
|
+
}
|
|
53
|
+
function M(e) {
|
|
54
|
+
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(F, function(r, t, n) {
|
|
55
|
+
return t || d(r, n);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
const _ = /[&<>"]/, g = /[&<>"]/g, A = {
|
|
59
|
+
"&": "&",
|
|
60
|
+
"<": "<",
|
|
61
|
+
">": ">",
|
|
62
|
+
'"': """
|
|
63
|
+
};
|
|
64
|
+
function P(e) {
|
|
65
|
+
return A[e];
|
|
66
|
+
}
|
|
67
|
+
function O(e) {
|
|
68
|
+
return _.test(e) ? e.replace(g, P) : e;
|
|
69
|
+
}
|
|
70
|
+
const S = /[.?*+^$[\]\\(){}|-]/g;
|
|
71
|
+
function b(e) {
|
|
72
|
+
return e.replace(S, "\\$&");
|
|
73
|
+
}
|
|
74
|
+
function B(e) {
|
|
75
|
+
switch (e) {
|
|
76
|
+
case 9:
|
|
77
|
+
case 32:
|
|
78
|
+
return !0;
|
|
79
|
+
}
|
|
80
|
+
return !1;
|
|
81
|
+
}
|
|
82
|
+
function I(e) {
|
|
83
|
+
if (e >= 8192 && e <= 8202)
|
|
84
|
+
return !0;
|
|
85
|
+
switch (e) {
|
|
86
|
+
case 9:
|
|
87
|
+
case 10:
|
|
88
|
+
case 11:
|
|
89
|
+
case 12:
|
|
90
|
+
case 13:
|
|
91
|
+
case 32:
|
|
92
|
+
case 160:
|
|
93
|
+
case 5760:
|
|
94
|
+
case 8239:
|
|
95
|
+
case 8287:
|
|
96
|
+
case 12288:
|
|
97
|
+
return !0;
|
|
98
|
+
}
|
|
99
|
+
return !1;
|
|
100
|
+
}
|
|
101
|
+
function $(e) {
|
|
102
|
+
return o.test(e) || x.test(e);
|
|
103
|
+
}
|
|
104
|
+
function j(e) {
|
|
105
|
+
switch (e) {
|
|
106
|
+
case 33:
|
|
107
|
+
case 34:
|
|
108
|
+
case 35:
|
|
109
|
+
case 36:
|
|
110
|
+
case 37:
|
|
111
|
+
case 38:
|
|
112
|
+
case 39:
|
|
113
|
+
case 40:
|
|
114
|
+
case 41:
|
|
115
|
+
case 42:
|
|
116
|
+
case 43:
|
|
117
|
+
case 44:
|
|
118
|
+
case 45:
|
|
119
|
+
case 46:
|
|
120
|
+
case 47:
|
|
121
|
+
case 58:
|
|
122
|
+
case 59:
|
|
123
|
+
case 60:
|
|
124
|
+
case 61:
|
|
125
|
+
case 62:
|
|
126
|
+
case 63:
|
|
127
|
+
case 64:
|
|
128
|
+
case 91:
|
|
129
|
+
case 92:
|
|
130
|
+
case 93:
|
|
131
|
+
case 94:
|
|
132
|
+
case 95:
|
|
133
|
+
case 96:
|
|
134
|
+
case 123:
|
|
135
|
+
case 124:
|
|
136
|
+
case 125:
|
|
137
|
+
case 126:
|
|
138
|
+
return !0;
|
|
139
|
+
default:
|
|
140
|
+
return !1;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function H(e) {
|
|
144
|
+
return e = e.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (e = e.replace(/ẞ/g, "ß")), e.toLowerCase().toUpperCase();
|
|
145
|
+
}
|
|
146
|
+
const N = { mdurl: s, ucmicro: a };
|
|
147
|
+
export {
|
|
148
|
+
w as arrayReplaceAt,
|
|
149
|
+
h as assign,
|
|
150
|
+
O as escapeHtml,
|
|
151
|
+
b as escapeRE,
|
|
152
|
+
l as fromCodePoint,
|
|
153
|
+
L as has,
|
|
154
|
+
j as isMdAsciiPunct,
|
|
155
|
+
$ as isPunctChar,
|
|
156
|
+
B as isSpace,
|
|
157
|
+
D as isString,
|
|
158
|
+
E as isValidEntityCode,
|
|
159
|
+
I as isWhiteSpace,
|
|
160
|
+
N as lib,
|
|
161
|
+
H as normalizeReference,
|
|
162
|
+
M as unescapeAll,
|
|
163
|
+
y as unescapeMd
|
|
164
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { unescapeAll as u } from "../common/utils.js";
|
|
2
|
+
function c(o, n, t) {
|
|
3
|
+
let r, e = n;
|
|
4
|
+
const i = {
|
|
5
|
+
ok: !1,
|
|
6
|
+
pos: 0,
|
|
7
|
+
str: ""
|
|
8
|
+
};
|
|
9
|
+
if (o.charCodeAt(e) === 60) {
|
|
10
|
+
for (e++; e < t; ) {
|
|
11
|
+
if (r = o.charCodeAt(e), r === 10 || r === 60)
|
|
12
|
+
return i;
|
|
13
|
+
if (r === 62)
|
|
14
|
+
return i.pos = e + 1, i.str = u(o.slice(n + 1, e)), i.ok = !0, i;
|
|
15
|
+
if (r === 92 && e + 1 < t) {
|
|
16
|
+
e += 2;
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
e++;
|
|
20
|
+
}
|
|
21
|
+
return i;
|
|
22
|
+
}
|
|
23
|
+
let f = 0;
|
|
24
|
+
for (; e < t && (r = o.charCodeAt(e), !(r === 32 || r < 32 || r === 127)); ) {
|
|
25
|
+
if (r === 92 && e + 1 < t) {
|
|
26
|
+
if (o.charCodeAt(e + 1) === 32)
|
|
27
|
+
break;
|
|
28
|
+
e += 2;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (r === 40 && (f++, f > 32))
|
|
32
|
+
return i;
|
|
33
|
+
if (r === 41) {
|
|
34
|
+
if (f === 0)
|
|
35
|
+
break;
|
|
36
|
+
f--;
|
|
37
|
+
}
|
|
38
|
+
e++;
|
|
39
|
+
}
|
|
40
|
+
return n === e || f !== 0 || (i.str = u(o.slice(n, e)), i.pos = e, i.ok = !0), i;
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
c as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function u(o, f, s) {
|
|
2
|
+
let p, i, r, l;
|
|
3
|
+
const d = o.posMax, n = o.pos;
|
|
4
|
+
for (o.pos = f + 1, p = 1; o.pos < d; ) {
|
|
5
|
+
if (r = o.src.charCodeAt(o.pos), r === 93 && (p--, p === 0)) {
|
|
6
|
+
i = !0;
|
|
7
|
+
break;
|
|
8
|
+
}
|
|
9
|
+
if (l = o.pos, o.md.inline.skipToken(o), r === 91) {
|
|
10
|
+
if (l === o.pos - 1)
|
|
11
|
+
p++;
|
|
12
|
+
else if (s)
|
|
13
|
+
return o.pos = n, -1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
let e = -1;
|
|
17
|
+
return i && (e = o.pos), o.pos = n, e;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
u as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { unescapeAll as f } from "../common/utils.js";
|
|
2
|
+
function u(n, l, t, c) {
|
|
3
|
+
let o, r = l;
|
|
4
|
+
const e = {
|
|
5
|
+
// if `true`, this is a valid link title
|
|
6
|
+
ok: !1,
|
|
7
|
+
// if `true`, this link can be continued on the next line
|
|
8
|
+
can_continue: !1,
|
|
9
|
+
// if `ok`, it's the position of the first character after the closing marker
|
|
10
|
+
pos: 0,
|
|
11
|
+
// if `ok`, it's the unescaped title
|
|
12
|
+
str: "",
|
|
13
|
+
// expected closing marker character code
|
|
14
|
+
marker: 0
|
|
15
|
+
};
|
|
16
|
+
if (c)
|
|
17
|
+
e.str = c.str, e.marker = c.marker;
|
|
18
|
+
else {
|
|
19
|
+
if (r >= t)
|
|
20
|
+
return e;
|
|
21
|
+
let i = n.charCodeAt(r);
|
|
22
|
+
if (i !== 34 && i !== 39 && i !== 40)
|
|
23
|
+
return e;
|
|
24
|
+
l++, r++, i === 40 && (i = 41), e.marker = i;
|
|
25
|
+
}
|
|
26
|
+
for (; r < t; ) {
|
|
27
|
+
if (o = n.charCodeAt(r), o === e.marker)
|
|
28
|
+
return e.pos = r + 1, e.str += f(n.slice(l, r)), e.ok = !0, e;
|
|
29
|
+
if (o === 40 && e.marker === 41)
|
|
30
|
+
return e;
|
|
31
|
+
o === 92 && r + 1 < t && r++, r++;
|
|
32
|
+
}
|
|
33
|
+
return e.can_continue = !0, e.str += f(n.slice(l, r)), e;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
u as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as m from "./common/utils.js";
|
|
2
|
+
import { isString as c, assign as a } from "./common/utils.js";
|
|
3
|
+
import * as p from "./helpers/index.js";
|
|
4
|
+
import d from "./renderer.js";
|
|
5
|
+
import w from "./parser_core.js";
|
|
6
|
+
import y from "./parser_block.js";
|
|
7
|
+
import k from "./parser_inline.js";
|
|
8
|
+
import g from "../../../../linkify-it@5.0.0/node_modules/linkify-it/index.js";
|
|
9
|
+
import s from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/decode.js";
|
|
10
|
+
import b from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/encode.js";
|
|
11
|
+
import f from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/format.js";
|
|
12
|
+
import u from "../../../../mdurl@2.0.0/node_modules/mdurl/lib/parse.js";
|
|
13
|
+
import l from "../../../../punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js";
|
|
14
|
+
import O from "./presets/default.js";
|
|
15
|
+
import E from "./presets/zero.js";
|
|
16
|
+
import I from "./presets/commonmark.js";
|
|
17
|
+
const A = {
|
|
18
|
+
default: O,
|
|
19
|
+
zero: E,
|
|
20
|
+
commonmark: I
|
|
21
|
+
}, _ = /^(vbscript|javascript|file|data):/, x = /^data:image\/(gif|png|jpeg|webp);/;
|
|
22
|
+
function L(t) {
|
|
23
|
+
const r = t.trim().toLowerCase();
|
|
24
|
+
return _.test(r) ? x.test(r) : !0;
|
|
25
|
+
}
|
|
26
|
+
const h = ["http:", "https:", "mailto:"];
|
|
27
|
+
function z(t) {
|
|
28
|
+
const r = u(t, !0);
|
|
29
|
+
if (r.hostname && (!r.protocol || h.indexOf(r.protocol) >= 0))
|
|
30
|
+
try {
|
|
31
|
+
r.hostname = l.toASCII(r.hostname);
|
|
32
|
+
} catch {
|
|
33
|
+
}
|
|
34
|
+
return b(f(r));
|
|
35
|
+
}
|
|
36
|
+
function R(t) {
|
|
37
|
+
const r = u(t, !0);
|
|
38
|
+
if (r.hostname && (!r.protocol || h.indexOf(r.protocol) >= 0))
|
|
39
|
+
try {
|
|
40
|
+
r.hostname = l.toUnicode(r.hostname);
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
return s(f(r), s.defaultChars + "%");
|
|
44
|
+
}
|
|
45
|
+
function n(t, r) {
|
|
46
|
+
if (!(this instanceof n))
|
|
47
|
+
return new n(t, r);
|
|
48
|
+
r || c(t) || (r = t || {}, t = "default"), this.inline = new k(), this.block = new y(), this.core = new w(), this.renderer = new d(), this.linkify = new g(), this.validateLink = L, this.normalizeLink = z, this.normalizeLinkText = R, this.utils = m, this.helpers = a({}, p), this.options = {}, this.configure(t), r && this.set(r);
|
|
49
|
+
}
|
|
50
|
+
n.prototype.set = function(t) {
|
|
51
|
+
return a(this.options, t), this;
|
|
52
|
+
};
|
|
53
|
+
n.prototype.configure = function(t) {
|
|
54
|
+
const r = this;
|
|
55
|
+
if (c(t)) {
|
|
56
|
+
const o = t;
|
|
57
|
+
if (t = A[o], !t)
|
|
58
|
+
throw new Error('Wrong `markdown-it` preset "' + o + '", check name');
|
|
59
|
+
}
|
|
60
|
+
if (!t)
|
|
61
|
+
throw new Error("Wrong `markdown-it` preset, can't be empty");
|
|
62
|
+
return t.options && r.set(t.options), t.components && Object.keys(t.components).forEach(function(o) {
|
|
63
|
+
t.components[o].rules && r[o].ruler.enableOnly(t.components[o].rules), t.components[o].rules2 && r[o].ruler2.enableOnly(t.components[o].rules2);
|
|
64
|
+
}), this;
|
|
65
|
+
};
|
|
66
|
+
n.prototype.enable = function(t, r) {
|
|
67
|
+
let o = [];
|
|
68
|
+
Array.isArray(t) || (t = [t]), ["core", "block", "inline"].forEach(function(e) {
|
|
69
|
+
o = o.concat(this[e].ruler.enable(t, !0));
|
|
70
|
+
}, this), o = o.concat(this.inline.ruler2.enable(t, !0));
|
|
71
|
+
const i = t.filter(function(e) {
|
|
72
|
+
return o.indexOf(e) < 0;
|
|
73
|
+
});
|
|
74
|
+
if (i.length && !r)
|
|
75
|
+
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + i);
|
|
76
|
+
return this;
|
|
77
|
+
};
|
|
78
|
+
n.prototype.disable = function(t, r) {
|
|
79
|
+
let o = [];
|
|
80
|
+
Array.isArray(t) || (t = [t]), ["core", "block", "inline"].forEach(function(e) {
|
|
81
|
+
o = o.concat(this[e].ruler.disable(t, !0));
|
|
82
|
+
}, this), o = o.concat(this.inline.ruler2.disable(t, !0));
|
|
83
|
+
const i = t.filter(function(e) {
|
|
84
|
+
return o.indexOf(e) < 0;
|
|
85
|
+
});
|
|
86
|
+
if (i.length && !r)
|
|
87
|
+
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + i);
|
|
88
|
+
return this;
|
|
89
|
+
};
|
|
90
|
+
n.prototype.use = function(t) {
|
|
91
|
+
const r = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
92
|
+
return t.apply(t, r), this;
|
|
93
|
+
};
|
|
94
|
+
n.prototype.parse = function(t, r) {
|
|
95
|
+
if (typeof t != "string")
|
|
96
|
+
throw new Error("Input data should be a String");
|
|
97
|
+
const o = new this.core.State(t, this, r);
|
|
98
|
+
return this.core.process(o), o.tokens;
|
|
99
|
+
};
|
|
100
|
+
n.prototype.render = function(t, r) {
|
|
101
|
+
return r = r || {}, this.renderer.render(this.parse(t, r), this.options, r);
|
|
102
|
+
};
|
|
103
|
+
n.prototype.parseInline = function(t, r) {
|
|
104
|
+
const o = new this.core.State(t, this, r);
|
|
105
|
+
return o.inlineMode = !0, this.core.process(o), o.tokens;
|
|
106
|
+
};
|
|
107
|
+
n.prototype.renderInline = function(t, r) {
|
|
108
|
+
return r = r || {}, this.renderer.render(this.parseInline(t, r), this.options, r);
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
n as default
|
|
112
|
+
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import u from "./ruler.js";
|
|
2
|
+
import s from "./rules_block/state_block.js";
|
|
3
|
+
import k from "./rules_block/table.js";
|
|
4
|
+
import b from "./rules_block/code.js";
|
|
5
|
+
import g from "./rules_block/fence.js";
|
|
6
|
+
import d from "./rules_block/blockquote.js";
|
|
7
|
+
import q from "./rules_block/hr.js";
|
|
8
|
+
import w from "./rules_block/list.js";
|
|
9
|
+
import y from "./rules_block/reference.js";
|
|
10
|
+
import E from "./rules_block/html_block.js";
|
|
11
|
+
import x from "./rules_block/heading.js";
|
|
12
|
+
import S from "./rules_block/lheading.js";
|
|
13
|
+
import _ from "./rules_block/paragraph.js";
|
|
14
|
+
const t = [
|
|
15
|
+
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
16
|
+
// which can be terminated by this one.
|
|
17
|
+
["table", k, ["paragraph", "reference"]],
|
|
18
|
+
["code", b],
|
|
19
|
+
["fence", g, ["paragraph", "reference", "blockquote", "list"]],
|
|
20
|
+
["blockquote", d, ["paragraph", "reference", "blockquote", "list"]],
|
|
21
|
+
["hr", q, ["paragraph", "reference", "blockquote", "list"]],
|
|
22
|
+
["list", w, ["paragraph", "reference", "blockquote"]],
|
|
23
|
+
["reference", y],
|
|
24
|
+
["html_block", E, ["paragraph", "reference", "blockquote"]],
|
|
25
|
+
["heading", x, ["paragraph", "reference", "blockquote"]],
|
|
26
|
+
["lheading", S],
|
|
27
|
+
["paragraph", _]
|
|
28
|
+
];
|
|
29
|
+
function c() {
|
|
30
|
+
this.ruler = new u();
|
|
31
|
+
for (let e = 0; e < t.length; e++)
|
|
32
|
+
this.ruler.push(t[e][0], t[e][1], { alt: (t[e][2] || []).slice() });
|
|
33
|
+
}
|
|
34
|
+
c.prototype.tokenize = function(e, n, o) {
|
|
35
|
+
const l = this.ruler.getRules(""), i = l.length, m = e.md.options.maxNesting;
|
|
36
|
+
let r = n, p = !1;
|
|
37
|
+
for (; r < o && (e.line = r = e.skipEmptyLines(r), !(r >= o || e.sCount[r] < e.blkIndent)); ) {
|
|
38
|
+
if (e.level >= m) {
|
|
39
|
+
e.line = o;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
const h = e.line;
|
|
43
|
+
let f = !1;
|
|
44
|
+
for (let a = 0; a < i; a++)
|
|
45
|
+
if (f = l[a](e, r, o, !1), f) {
|
|
46
|
+
if (h >= e.line)
|
|
47
|
+
throw new Error("block rule didn't increment state.line");
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
if (!f) throw new Error("none of the block rules matched");
|
|
51
|
+
e.tight = !p, e.isEmpty(e.line - 1) && (p = !0), r = e.line, r < o && e.isEmpty(r) && (p = !0, r++, e.line = r);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
c.prototype.parse = function(e, n, o, l) {
|
|
55
|
+
if (!e)
|
|
56
|
+
return;
|
|
57
|
+
const i = new this.State(e, n, o, l);
|
|
58
|
+
this.tokenize(i, i.line, i.lineMax);
|
|
59
|
+
};
|
|
60
|
+
c.prototype.State = s;
|
|
61
|
+
export {
|
|
62
|
+
c as default
|
|
63
|
+
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import m from "./ruler.js";
|
|
2
|
+
import n from "./rules_core/state_core.js";
|
|
3
|
+
import p from "./rules_core/normalize.js";
|
|
4
|
+
import s from "./rules_core/block.js";
|
|
5
|
+
import f from "./rules_core/inline.js";
|
|
6
|
+
import u from "./rules_core/linkify.js";
|
|
7
|
+
import a from "./rules_core/replacements.js";
|
|
8
|
+
import c from "./rules_core/smartquotes.js";
|
|
9
|
+
import h from "./rules_core/text_join.js";
|
|
10
|
+
const t = [
|
|
11
|
+
["normalize", p],
|
|
12
|
+
["block", s],
|
|
13
|
+
["inline", f],
|
|
14
|
+
["linkify", u],
|
|
15
|
+
["replacements", a],
|
|
16
|
+
["smartquotes", c],
|
|
17
|
+
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
18
|
+
// and joins them with the rest of the text
|
|
19
|
+
["text_join", h]
|
|
20
|
+
];
|
|
21
|
+
function i() {
|
|
22
|
+
this.ruler = new m();
|
|
23
|
+
for (let r = 0; r < t.length; r++)
|
|
24
|
+
this.ruler.push(t[r][0], t[r][1]);
|
|
25
|
+
}
|
|
26
|
+
i.prototype.process = function(r) {
|
|
27
|
+
const e = this.ruler.getRules("");
|
|
28
|
+
for (let o = 0, l = e.length; o < l; o++)
|
|
29
|
+
e[o](r);
|
|
30
|
+
};
|
|
31
|
+
i.prototype.State = n;
|
|
32
|
+
export {
|
|
33
|
+
i as default
|
|
34
|
+
};
|
package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import c from "./ruler.js";
|
|
2
|
+
import k from "./rules_inline/state_inline.js";
|
|
3
|
+
import g from "./rules_inline/text.js";
|
|
4
|
+
import a from "./rules_inline/linkify.js";
|
|
5
|
+
import d from "./rules_inline/newline.js";
|
|
6
|
+
import w from "./rules_inline/escape.js";
|
|
7
|
+
import _ from "./rules_inline/backticks.js";
|
|
8
|
+
import u from "./rules_inline/strikethrough.js";
|
|
9
|
+
import h from "./rules_inline/emphasis.js";
|
|
10
|
+
import x from "./rules_inline/link.js";
|
|
11
|
+
import y from "./rules_inline/image.js";
|
|
12
|
+
import b from "./rules_inline/autolink.js";
|
|
13
|
+
import v from "./rules_inline/html_inline.js";
|
|
14
|
+
import P from "./rules_inline/entity.js";
|
|
15
|
+
import z from "./rules_inline/balance_pairs.js";
|
|
16
|
+
import N from "./rules_inline/fragments_join.js";
|
|
17
|
+
const m = [
|
|
18
|
+
["text", g],
|
|
19
|
+
["linkify", a],
|
|
20
|
+
["newline", d],
|
|
21
|
+
["escape", w],
|
|
22
|
+
["backticks", _],
|
|
23
|
+
["strikethrough", u.tokenize],
|
|
24
|
+
["emphasis", h.tokenize],
|
|
25
|
+
["link", x],
|
|
26
|
+
["image", y],
|
|
27
|
+
["autolink", b],
|
|
28
|
+
["html_inline", v],
|
|
29
|
+
["entity", P]
|
|
30
|
+
], f = [
|
|
31
|
+
["balance_pairs", z],
|
|
32
|
+
["strikethrough", u.postProcess],
|
|
33
|
+
["emphasis", h.postProcess],
|
|
34
|
+
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
35
|
+
// rule below merges unused segments back with the rest of the text
|
|
36
|
+
["fragments_join", N]
|
|
37
|
+
];
|
|
38
|
+
function p() {
|
|
39
|
+
this.ruler = new c();
|
|
40
|
+
for (let o = 0; o < m.length; o++)
|
|
41
|
+
this.ruler.push(m[o][0], m[o][1]);
|
|
42
|
+
this.ruler2 = new c();
|
|
43
|
+
for (let o = 0; o < f.length; o++)
|
|
44
|
+
this.ruler2.push(f[o][0], f[o][1]);
|
|
45
|
+
}
|
|
46
|
+
p.prototype.skipToken = function(o) {
|
|
47
|
+
const i = o.pos, t = this.ruler.getRules(""), s = t.length, l = o.md.options.maxNesting, n = o.cache;
|
|
48
|
+
if (typeof n[i] < "u") {
|
|
49
|
+
o.pos = n[i];
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
let r = !1;
|
|
53
|
+
if (o.level < l) {
|
|
54
|
+
for (let e = 0; e < s; e++)
|
|
55
|
+
if (o.level++, r = t[e](o, !0), o.level--, r) {
|
|
56
|
+
if (i >= o.pos)
|
|
57
|
+
throw new Error("inline rule didn't increment state.pos");
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
} else
|
|
61
|
+
o.pos = o.posMax;
|
|
62
|
+
r || o.pos++, n[i] = o.pos;
|
|
63
|
+
};
|
|
64
|
+
p.prototype.tokenize = function(o) {
|
|
65
|
+
const i = this.ruler.getRules(""), t = i.length, s = o.posMax, l = o.md.options.maxNesting;
|
|
66
|
+
for (; o.pos < s; ) {
|
|
67
|
+
const n = o.pos;
|
|
68
|
+
let r = !1;
|
|
69
|
+
if (o.level < l) {
|
|
70
|
+
for (let e = 0; e < t; e++)
|
|
71
|
+
if (r = i[e](o, !1), r) {
|
|
72
|
+
if (n >= o.pos)
|
|
73
|
+
throw new Error("inline rule didn't increment state.pos");
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (r) {
|
|
78
|
+
if (o.pos >= s)
|
|
79
|
+
break;
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
o.pending += o.src[o.pos++];
|
|
83
|
+
}
|
|
84
|
+
o.pending && o.pushPending();
|
|
85
|
+
};
|
|
86
|
+
p.prototype.parse = function(o, i, t, s) {
|
|
87
|
+
const l = new this.State(o, i, t, s);
|
|
88
|
+
this.tokenize(l);
|
|
89
|
+
const n = this.ruler2.getRules(""), r = n.length;
|
|
90
|
+
for (let e = 0; e < r; e++)
|
|
91
|
+
n[e](l);
|
|
92
|
+
};
|
|
93
|
+
p.prototype.State = k;
|
|
94
|
+
export {
|
|
95
|
+
p as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
options: {
|
|
3
|
+
// Enable HTML tags in source
|
|
4
|
+
html: !0,
|
|
5
|
+
// Use '/' to close single tags (<br />)
|
|
6
|
+
xhtmlOut: !0,
|
|
7
|
+
// Convert '\n' in paragraphs into <br>
|
|
8
|
+
breaks: !1,
|
|
9
|
+
// CSS language prefix for fenced blocks
|
|
10
|
+
langPrefix: "language-",
|
|
11
|
+
// autoconvert URL-like texts to links
|
|
12
|
+
linkify: !1,
|
|
13
|
+
// Enable some language-neutral replacements + quotes beautification
|
|
14
|
+
typographer: !1,
|
|
15
|
+
// Double + single quotes replacement pairs, when typographer enabled,
|
|
16
|
+
// and smartquotes on. Could be either a String or an Array.
|
|
17
|
+
//
|
|
18
|
+
// For example, you can use '«»„“' for Russian, '„“‚‘' for German,
|
|
19
|
+
// and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
|
|
20
|
+
quotes: "“”‘’",
|
|
21
|
+
/* “”‘’ */
|
|
22
|
+
// Highlighter function. Should return escaped HTML,
|
|
23
|
+
// or '' if the source string is not changed and should be escaped externaly.
|
|
24
|
+
// If result starts with <pre... internal wrapper is skipped.
|
|
25
|
+
//
|
|
26
|
+
// function (/*str, lang*/) { return ''; }
|
|
27
|
+
//
|
|
28
|
+
highlight: null,
|
|
29
|
+
// Internal protection, recursion limit
|
|
30
|
+
maxNesting: 20
|
|
31
|
+
},
|
|
32
|
+
components: {
|
|
33
|
+
core: {
|
|
34
|
+
rules: [
|
|
35
|
+
"normalize",
|
|
36
|
+
"block",
|
|
37
|
+
"inline",
|
|
38
|
+
"text_join"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
block: {
|
|
42
|
+
rules: [
|
|
43
|
+
"blockquote",
|
|
44
|
+
"code",
|
|
45
|
+
"fence",
|
|
46
|
+
"heading",
|
|
47
|
+
"hr",
|
|
48
|
+
"html_block",
|
|
49
|
+
"lheading",
|
|
50
|
+
"list",
|
|
51
|
+
"reference",
|
|
52
|
+
"paragraph"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
inline: {
|
|
56
|
+
rules: [
|
|
57
|
+
"autolink",
|
|
58
|
+
"backticks",
|
|
59
|
+
"emphasis",
|
|
60
|
+
"entity",
|
|
61
|
+
"escape",
|
|
62
|
+
"html_inline",
|
|
63
|
+
"image",
|
|
64
|
+
"link",
|
|
65
|
+
"newline",
|
|
66
|
+
"text"
|
|
67
|
+
],
|
|
68
|
+
rules2: [
|
|
69
|
+
"balance_pairs",
|
|
70
|
+
"emphasis",
|
|
71
|
+
"fragments_join"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
e as default
|
|
78
|
+
};
|