@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.
Files changed (414) hide show
  1. package/dist/_plugin-vue_export-helper.js +9 -0
  2. package/dist/action-group/index.js +142 -0
  3. package/dist/bubble/index.js +3211 -0
  4. package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
  5. package/dist/container/index.js +60 -0
  6. package/dist/conversations/index.js +14 -0
  7. package/dist/feedback/index.js +192 -0
  8. package/dist/history/index.js +228 -0
  9. package/dist/icon-button/index.js +31 -0
  10. package/dist/index.d.ts +2200 -26
  11. package/dist/index.js +35 -43
  12. package/dist/index2.js +376 -0
  13. package/dist/index3.js +3895 -0
  14. package/dist/index4.js +637 -0
  15. package/dist/index5.js +3237 -0
  16. package/dist/index6.js +4623 -0
  17. package/dist/prompts/index.js +83 -0
  18. package/dist/question/index.js +429 -0
  19. package/dist/sender/index.js +772 -0
  20. package/dist/style.css +1 -1
  21. package/dist/suggestion/index.js +497 -0
  22. package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +107 -107
  23. package/dist/welcome/index.js +38 -0
  24. package/package.json +7 -3
  25. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  26. package/dist/action-group/ActionGroup.vue.d.ts +0 -26
  27. package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
  28. package/dist/action-group/index.d.ts +0 -12
  29. package/dist/action-group/index.type.d.ts +0 -17
  30. package/dist/bubble/BubbleList.vue.d.ts +0 -5
  31. package/dist/bubble/index.d.ts +0 -12
  32. package/dist/bubble/index.type.d.ts +0 -51
  33. package/dist/container/index.d.ts +0 -7
  34. package/dist/container/index.type.d.ts +0 -16
  35. package/dist/container/index.vue.d.ts +0 -26
  36. package/dist/conversations/index.d.ts +0 -7
  37. package/dist/conversations/index.vue.d.ts +0 -2
  38. package/dist/feedback/components/SourceList.vue.d.ts +0 -11
  39. package/dist/feedback/components/index.d.ts +0 -1
  40. package/dist/feedback/index.d.ts +0 -7
  41. package/dist/feedback/index.type.d.ts +0 -25
  42. package/dist/feedback/index.vue.d.ts +0 -13
  43. package/dist/history/components/index.d.ts +0 -2
  44. package/dist/history/components/item-tag.vue.d.ts +0 -5
  45. package/dist/history/components/search-empty.vue.d.ts +0 -7
  46. package/dist/history/composables/index.d.ts +0 -1
  47. package/dist/history/composables/useEditItemTitle.d.ts +0 -12
  48. package/dist/history/index.d.ts +0 -6
  49. package/dist/history/index.type.d.ts +0 -43
  50. package/dist/history/index.vue.d.ts +0 -2
  51. package/dist/icon-button/index.d.ts +0 -7
  52. package/dist/icon-button/index.type.d.ts +0 -6
  53. package/dist/icon-button/index.vue.d.ts +0 -6
  54. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
  55. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
  56. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
  57. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
  58. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
  59. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
  60. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
  61. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
  62. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
  63. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
  64. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
  65. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  66. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
  67. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
  68. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
  69. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
  70. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
  71. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
  72. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
  73. 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
  74. 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
  75. 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
  76. 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
  77. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
  78. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
  79. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
  80. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
  81. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
  82. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
  83. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
  84. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
  85. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
  86. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
  87. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
  88. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
  89. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
  90. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
  91. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
  92. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
  93. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
  94. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
  95. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
  96. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
  97. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
  98. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
  99. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
  100. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
  101. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
  102. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
  103. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
  104. 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
  105. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
  106. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
  107. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
  108. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
  109. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
  110. 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
  111. 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
  112. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
  113. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
  114. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
  115. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
  116. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
  117. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
  118. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
  119. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
  120. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
  121. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
  122. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
  123. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
  124. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
  125. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
  126. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
  127. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
  128. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
  129. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
  130. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
  131. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
  132. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
  133. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
  134. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
  135. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
  136. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
  137. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
  138. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
  139. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
  140. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
  141. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
  142. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
  143. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
  144. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
  145. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
  146. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
  147. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
  148. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
  149. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
  150. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
  151. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
  152. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
  153. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
  154. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  155. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
  156. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  157. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
  158. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
  159. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
  160. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
  161. package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -310
  162. package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -110
  163. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
  164. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
  165. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  166. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  167. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
  168. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
  221. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
  222. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
  223. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
  224. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
  225. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
  226. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
  227. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
  228. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
  229. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
  230. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
  231. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
  232. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
  233. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
  234. package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
  235. package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -121
  236. package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
  237. package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
  238. package/dist/packages/components/src/action-group/index.js +0 -17
  239. package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
  240. package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
  241. package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
  242. package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
  243. package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
  244. package/dist/packages/components/src/bubble/Bubble.vue.js +0 -7
  245. package/dist/packages/components/src/bubble/Bubble.vue2.js +0 -76
  246. package/dist/packages/components/src/bubble/BubbleList.vue.js +0 -7
  247. package/dist/packages/components/src/bubble/BubbleList.vue2.js +0 -50
  248. package/dist/packages/components/src/bubble/index.js +0 -18
  249. package/dist/packages/components/src/container/index.js +0 -9
  250. package/dist/packages/components/src/container/index.vue.js +0 -7
  251. package/dist/packages/components/src/container/index.vue2.js +0 -55
  252. package/dist/packages/components/src/conversations/index.js +0 -9
  253. package/dist/packages/components/src/conversations/index.vue.js +0 -9
  254. package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
  255. package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
  256. package/dist/packages/components/src/feedback/index.js +0 -9
  257. package/dist/packages/components/src/feedback/index.vue.js +0 -7
  258. package/dist/packages/components/src/feedback/index.vue2.js +0 -143
  259. package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
  260. package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
  261. package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
  262. package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
  263. package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
  264. package/dist/packages/components/src/history/index.js +0 -11
  265. package/dist/packages/components/src/history/index.vue.js +0 -7
  266. package/dist/packages/components/src/history/index.vue2.js +0 -130
  267. package/dist/packages/components/src/icon-button/index.js +0 -9
  268. package/dist/packages/components/src/icon-button/index.vue.js +0 -7
  269. package/dist/packages/components/src/icon-button/index.vue2.js +0 -22
  270. package/dist/packages/components/src/prompts/index.js +0 -18
  271. package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
  272. package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
  273. package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
  274. package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
  275. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
  276. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
  277. package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
  278. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
  279. package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
  280. package/dist/packages/components/src/question/index.js +0 -9
  281. package/dist/packages/components/src/question/index.vue.js +0 -113
  282. package/dist/packages/components/src/question/index.vue2.js +0 -4
  283. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
  284. package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
  285. package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
  286. package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -175
  287. package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
  288. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
  289. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
  290. package/dist/packages/components/src/sender/index.js +0 -9
  291. package/dist/packages/components/src/sender/index.vue.js +0 -255
  292. package/dist/packages/components/src/sender/index.vue2.js +0 -4
  293. package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
  294. package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
  295. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
  296. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
  297. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
  298. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
  299. package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
  300. package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
  301. package/dist/packages/components/src/suggestion/index.js +0 -9
  302. package/dist/packages/components/src/suggestion/index.vue.js +0 -179
  303. package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
  304. package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
  305. package/dist/packages/components/src/welcome/index.js +0 -9
  306. package/dist/packages/components/src/welcome/index.vue.js +0 -7
  307. package/dist/packages/components/src/welcome/index.vue2.js +0 -32
  308. package/dist/prompts/index.d.ts +0 -12
  309. package/dist/prompts/index.type.d.ts +0 -55
  310. package/dist/prompts/prompt.vue.d.ts +0 -3
  311. package/dist/prompts/prompts.vue.d.ts +0 -20
  312. package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
  313. package/dist/question/components/HotQuestions.vue.d.ts +0 -89
  314. package/dist/question/composables/useQuestions.d.ts +0 -17
  315. package/dist/question/index.d.ts +0 -7
  316. package/dist/question/index.type.d.ts +0 -74
  317. package/dist/question/index.vue.d.ts +0 -46
  318. package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
  319. package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
  320. package/dist/sender/composables/useInputHandler.d.ts +0 -17
  321. package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
  322. package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
  323. package/dist/sender/index.d.ts +0 -7
  324. package/dist/sender/index.type.d.ts +0 -137
  325. package/dist/sender/index.vue.d.ts +0 -1012
  326. package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
  327. package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
  328. package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
  329. package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
  330. package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
  331. package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
  332. package/dist/suggestion/index.d.ts +0 -7
  333. package/dist/suggestion/index.type.d.ts +0 -94
  334. package/dist/suggestion/index.vue.d.ts +0 -343
  335. package/dist/suggestion/utils/dom.d.ts +0 -20
  336. package/dist/welcome/index.d.ts +0 -7
  337. package/dist/welcome/index.type.d.ts +0 -10
  338. package/dist/welcome/index.vue.d.ts +0 -18
  339. package/src/action-group/ActionGroup.vue +0 -247
  340. package/src/action-group/ActionGroupItem.vue +0 -9
  341. package/src/action-group/index.ts +0 -25
  342. package/src/action-group/index.type.ts +0 -21
  343. package/src/assets/icons/accessory.svg +0 -12
  344. package/src/assets/icons/loading-speech.svg +0 -16
  345. package/src/assets/icons/loading.svg +0 -17
  346. package/src/assets/icons/send.svg +0 -21
  347. package/src/assets/icons/voice.svg +0 -22
  348. package/src/bubble/Bubble.vue +0 -153
  349. package/src/bubble/BubbleList.vue +0 -55
  350. package/src/bubble/index.ts +0 -23
  351. package/src/bubble/index.type.ts +0 -49
  352. package/src/container/index.ts +0 -12
  353. package/src/container/index.type.ts +0 -17
  354. package/src/container/index.vue +0 -109
  355. package/src/conversations/index.ts +0 -12
  356. package/src/conversations/index.vue +0 -3
  357. package/src/feedback/components/SourceList.vue +0 -112
  358. package/src/feedback/components/index.ts +0 -1
  359. package/src/feedback/index.ts +0 -12
  360. package/src/feedback/index.type.ts +0 -27
  361. package/src/feedback/index.vue +0 -166
  362. package/src/history/components/index.ts +0 -2
  363. package/src/history/components/item-tag.vue +0 -49
  364. package/src/history/components/search-empty.vue +0 -38
  365. package/src/history/composables/index.ts +0 -1
  366. package/src/history/composables/useEditItemTitle.ts +0 -75
  367. package/src/history/index.ts +0 -12
  368. package/src/history/index.type.ts +0 -50
  369. package/src/history/index.vue +0 -292
  370. package/src/icon-button/index.ts +0 -12
  371. package/src/icon-button/index.type.ts +0 -7
  372. package/src/icon-button/index.vue +0 -58
  373. package/src/index.ts +0 -76
  374. package/src/prompts/index.ts +0 -25
  375. package/src/prompts/index.type.ts +0 -59
  376. package/src/prompts/prompt.vue +0 -101
  377. package/src/prompts/prompts.vue +0 -50
  378. package/src/question/components/CommonQuestions.vue +0 -146
  379. package/src/question/components/HotQuestions.vue +0 -148
  380. package/src/question/composables/useQuestions.ts +0 -106
  381. package/src/question/index.less +0 -447
  382. package/src/question/index.ts +0 -12
  383. package/src/question/index.type.ts +0 -86
  384. package/src/question/index.vue +0 -140
  385. package/src/question/vars.less +0 -135
  386. package/src/sender/components/ActionButtons.vue +0 -168
  387. package/src/sender/components/TemplateEditor.vue +0 -465
  388. package/src/sender/composables/useInputHandler.ts +0 -74
  389. package/src/sender/composables/useKeyboardHandler.ts +0 -101
  390. package/src/sender/composables/useSpeechHandler.ts +0 -122
  391. package/src/sender/index.less +0 -352
  392. package/src/sender/index.ts +0 -12
  393. package/src/sender/index.type.ts +0 -162
  394. package/src/sender/index.vue +0 -338
  395. package/src/sender/vars.less +0 -84
  396. package/src/suggestion/components/CategoryNav.vue +0 -38
  397. package/src/suggestion/components/SuggestionCapsule.vue +0 -183
  398. package/src/suggestion/components/SuggestionPanel.vue +0 -147
  399. package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
  400. package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
  401. package/src/suggestion/composables/useTriggerDetection.ts +0 -46
  402. package/src/suggestion/index.less +0 -497
  403. package/src/suggestion/index.ts +0 -12
  404. package/src/suggestion/index.type.ts +0 -101
  405. package/src/suggestion/index.vue +0 -338
  406. package/src/suggestion/utils/dom.ts +0 -66
  407. package/src/suggestion/vars.less +0 -141
  408. package/src/vite-env.d.ts +0 -1
  409. package/src/welcome/index.ts +0 -12
  410. package/src/welcome/index.type.ts +0 -12
  411. package/src/welcome/index.vue +0 -69
  412. package/tsconfig.json +0 -37
  413. package/tsconfig.node.json +0 -10
  414. package/vite.config.ts +0 -53
@@ -1,37 +0,0 @@
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
- };
@@ -1,112 +0,0 @@
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
- };
@@ -1,63 +0,0 @@
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
- };
@@ -1,34 +0,0 @@
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
- };
@@ -1,96 +0,0 @@
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
- };
@@ -1,78 +0,0 @@
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
- };
@@ -1,40 +0,0 @@
1
- const e = {
2
- options: {
3
- // Enable HTML tags in source
4
- html: !1,
5
- // Use '/' to close single tags (<br />)
6
- xhtmlOut: !1,
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: 100
31
- },
32
- components: {
33
- core: {},
34
- block: {},
35
- inline: {}
36
- }
37
- };
38
- export {
39
- e as default
40
- };
@@ -1,59 +0,0 @@
1
- const e = {
2
- options: {
3
- // Enable HTML tags in source
4
- html: !1,
5
- // Use '/' to close single tags (<br />)
6
- xhtmlOut: !1,
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
- "paragraph"
44
- ]
45
- },
46
- inline: {
47
- rules: [
48
- "text"
49
- ],
50
- rules2: [
51
- "balance_pairs",
52
- "fragments_join"
53
- ]
54
- }
55
- }
56
- };
57
- export {
58
- e as default
59
- };
@@ -1,127 +0,0 @@
1
- import { assign as b, escapeHtml as u, unescapeAll as m } from "./common/utils.js";
2
- const o = {};
3
- o.code_inline = function(n, r, i, l, t) {
4
- const e = n[r];
5
- return "<code" + t.renderAttrs(e) + ">" + u(e.content) + "</code>";
6
- };
7
- o.code_block = function(n, r, i, l, t) {
8
- const e = n[r];
9
- return "<pre" + t.renderAttrs(e) + "><code>" + u(n[r].content) + `</code></pre>
10
- `;
11
- };
12
- o.fence = function(n, r, i, l, t) {
13
- const e = n[r], s = e.info ? m(e.info).trim() : "";
14
- let c = "", g = "";
15
- if (s) {
16
- const f = s.split(/(\s+)/g);
17
- c = f[0], g = f.slice(2).join("");
18
- }
19
- let a;
20
- if (i.highlight ? a = i.highlight(e.content, c, g) || u(e.content) : a = u(e.content), a.indexOf("<pre") === 0)
21
- return a + `
22
- `;
23
- if (s) {
24
- const f = e.attrIndex("class"), d = e.attrs ? e.attrs.slice() : [];
25
- f < 0 ? d.push(["class", i.langPrefix + c]) : (d[f] = d[f].slice(), d[f][1] += " " + i.langPrefix + c);
26
- const p = {
27
- attrs: d
28
- };
29
- return `<pre><code${t.renderAttrs(p)}>${a}</code></pre>
30
- `;
31
- }
32
- return `<pre><code${t.renderAttrs(e)}>${a}</code></pre>
33
- `;
34
- };
35
- o.image = function(n, r, i, l, t) {
36
- const e = n[r];
37
- return e.attrs[e.attrIndex("alt")][1] = t.renderInlineAsText(e.children, i, l), t.renderToken(n, r, i);
38
- };
39
- o.hardbreak = function(n, r, i) {
40
- return i.xhtmlOut ? `<br />
41
- ` : `<br>
42
- `;
43
- };
44
- o.softbreak = function(n, r, i) {
45
- return i.breaks ? i.xhtmlOut ? `<br />
46
- ` : `<br>
47
- ` : `
48
- `;
49
- };
50
- o.text = function(n, r) {
51
- return u(n[r].content);
52
- };
53
- o.html_block = function(n, r) {
54
- return n[r].content;
55
- };
56
- o.html_inline = function(n, r) {
57
- return n[r].content;
58
- };
59
- function h() {
60
- this.rules = b({}, o);
61
- }
62
- h.prototype.renderAttrs = function(r) {
63
- let i, l, t;
64
- if (!r.attrs)
65
- return "";
66
- for (t = "", i = 0, l = r.attrs.length; i < l; i++)
67
- t += " " + u(r.attrs[i][0]) + '="' + u(r.attrs[i][1]) + '"';
68
- return t;
69
- };
70
- h.prototype.renderToken = function(r, i, l) {
71
- const t = r[i];
72
- let e = "";
73
- if (t.hidden)
74
- return "";
75
- t.block && t.nesting !== -1 && i && r[i - 1].hidden && (e += `
76
- `), e += (t.nesting === -1 ? "</" : "<") + t.tag, e += this.renderAttrs(t), t.nesting === 0 && l.xhtmlOut && (e += " /");
77
- let s = !1;
78
- if (t.block && (s = !0, t.nesting === 1 && i + 1 < r.length)) {
79
- const c = r[i + 1];
80
- (c.type === "inline" || c.hidden || c.nesting === -1 && c.tag === t.tag) && (s = !1);
81
- }
82
- return e += s ? `>
83
- ` : ">", e;
84
- };
85
- h.prototype.renderInline = function(n, r, i) {
86
- let l = "";
87
- const t = this.rules;
88
- for (let e = 0, s = n.length; e < s; e++) {
89
- const c = n[e].type;
90
- typeof t[c] < "u" ? l += t[c](n, e, r, i, this) : l += this.renderToken(n, e, r);
91
- }
92
- return l;
93
- };
94
- h.prototype.renderInlineAsText = function(n, r, i) {
95
- let l = "";
96
- for (let t = 0, e = n.length; t < e; t++)
97
- switch (n[t].type) {
98
- case "text":
99
- l += n[t].content;
100
- break;
101
- case "image":
102
- l += this.renderInlineAsText(n[t].children, r, i);
103
- break;
104
- case "html_inline":
105
- case "html_block":
106
- l += n[t].content;
107
- break;
108
- case "softbreak":
109
- case "hardbreak":
110
- l += `
111
- `;
112
- break;
113
- }
114
- return l;
115
- };
116
- h.prototype.render = function(n, r, i) {
117
- let l = "";
118
- const t = this.rules;
119
- for (let e = 0, s = n.length; e < s; e++) {
120
- const c = n[e].type;
121
- c === "inline" ? l += this.renderInline(n[e].children, r, i) : typeof t[c] < "u" ? l += t[c](n, e, r, i, this) : l += this.renderToken(n, e, r, i);
122
- }
123
- return l;
124
- };
125
- export {
126
- h as default
127
- };