@uzum-tech/ui 2.3.7 → 2.4.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.
Files changed (319) hide show
  1. package/dist/index.js +63601 -32546
  2. package/dist/index.mjs +64856 -33810
  3. package/dist/index.prod.js +3 -3
  4. package/dist/index.prod.mjs +3 -3
  5. package/es/_internal/icons/Bold.d.ts +2 -0
  6. package/es/_internal/icons/Bold.mjs +29 -0
  7. package/es/_internal/icons/BulletList.d.ts +2 -0
  8. package/es/_internal/icons/BulletList.mjs +23 -0
  9. package/es/_internal/icons/HorizontalRule.d.ts +2 -0
  10. package/es/_internal/icons/HorizontalRule.mjs +14 -0
  11. package/es/_internal/icons/Italic.d.ts +2 -0
  12. package/es/_internal/icons/Italic.mjs +19 -0
  13. package/es/_internal/icons/NumberedList.d.ts +2 -0
  14. package/es/_internal/icons/NumberedList.mjs +23 -0
  15. package/es/_internal/icons/Quote.d.ts +2 -0
  16. package/es/_internal/icons/Quote.mjs +23 -0
  17. package/es/_internal/icons/SettingsLine.d.ts +2 -0
  18. package/es/_internal/icons/SettingsLine.mjs +19 -0
  19. package/es/_internal/icons/Strikethrough.d.ts +2 -0
  20. package/es/_internal/icons/Strikethrough.mjs +14 -0
  21. package/es/_internal/icons/index.d.ts +8 -0
  22. package/es/_internal/icons/index.mjs +8 -0
  23. package/es/_styles/markdown/markdown-content.cssr.d.ts +6 -0
  24. package/es/_styles/markdown/markdown-content.cssr.mjs +22 -0
  25. package/es/_utils/markdown/index.d.ts +3 -2
  26. package/es/_utils/markdown/index.mjs +2 -1
  27. package/es/_utils/markdown/render-markdown.d.ts +2 -1
  28. package/es/_utils/markdown/render-markdown.mjs +1 -1
  29. package/es/chat/src/Chat.d.ts +261 -24
  30. package/es/chat/src/Chat.mjs +2 -0
  31. package/es/chat/src/ChatMainArea.d.ts +81 -8
  32. package/es/chat/src/ChatMainArea.mjs +111 -355
  33. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +9084 -0
  34. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.mjs +71 -0
  35. package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +2645 -0
  36. package/es/chat/src/ChatParts/ChatAttachmentButton/interface.mjs +19 -0
  37. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +9070 -0
  38. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.mjs +78 -0
  39. package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +2637 -0
  40. package/es/chat/src/ChatParts/ChatEditingBlock/interface.mjs +15 -0
  41. package/es/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.d.ts +89 -0
  42. package/es/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.mjs +63 -0
  43. package/es/chat/src/ChatParts/ChatEditorInput/interface.d.ts +42 -0
  44. package/es/chat/src/ChatParts/ChatEditorInput/interface.mjs +34 -0
  45. package/es/chat/src/ChatParts/ChatFooter/ChatFooter.d.ts +115 -0
  46. package/es/chat/src/ChatParts/ChatFooter/ChatFooter.mjs +99 -0
  47. package/es/chat/src/ChatParts/ChatFooter/interface.d.ts +56 -0
  48. package/es/chat/src/ChatParts/ChatFooter/interface.mjs +46 -0
  49. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +9205 -0
  50. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.mjs +219 -0
  51. package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +2694 -0
  52. package/es/chat/src/ChatParts/ChatHeader/interface.mjs +67 -0
  53. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +9142 -0
  54. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.mjs +129 -0
  55. package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +2654 -0
  56. package/es/chat/src/ChatParts/ChatLegacyInput/interface.mjs +27 -0
  57. package/es/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.d.ts +148 -0
  58. package/es/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.mjs +92 -0
  59. package/es/chat/src/ChatParts/ChatMessagesArea/interface.d.ts +72 -0
  60. package/es/chat/src/ChatParts/ChatMessagesArea/interface.mjs +58 -0
  61. package/es/chat/src/interface.d.ts +7 -0
  62. package/es/chat/src/interface.mjs +4 -0
  63. package/es/chat/styles/light.d.ts +4 -0
  64. package/es/chat/styles/light.mjs +18 -0
  65. package/es/components.d.ts +12933 -32
  66. package/es/components.mjs +186 -180
  67. package/es/config-provider/src/internal-interface.d.ts +2 -0
  68. package/es/data-table/index.d.ts +1 -1
  69. package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +156 -0
  70. package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.mjs +220 -0
  71. package/es/data-table/src/ColumnSettings/styles.cssr.d.ts +2 -0
  72. package/es/data-table/src/ColumnSettings/styles.cssr.mjs +25 -0
  73. package/es/data-table/src/DataTable.d.ts +60 -2
  74. package/es/data-table/src/DataTable.mjs +99 -23
  75. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +14 -0
  76. package/es/data-table/src/interface.d.ts +53 -1
  77. package/es/data-table/src/interface.mjs +18 -1
  78. package/es/data-table/src/styles/index.cssr.mjs +17 -1
  79. package/es/data-table/src/use-column-settings.d.ts +2 -0
  80. package/es/data-table/src/use-column-settings.mjs +124 -0
  81. package/es/data-table/src/utils/column-utils.d.ts +2 -1
  82. package/es/data-table/src/utils/column-utils.mjs +6 -0
  83. package/es/editor/index.d.ts +10 -0
  84. package/es/editor/index.mjs +5 -0
  85. package/es/editor/src/Editor.d.ts +3896 -0
  86. package/es/editor/src/Editor.mjs +220 -0
  87. package/es/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.d.ts +37 -0
  88. package/es/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.mjs +63 -0
  89. package/es/editor/src/EditorParts/BlockTypeSelect/interface.d.ts +21 -0
  90. package/es/editor/src/EditorParts/BlockTypeSelect/interface.mjs +14 -0
  91. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +4078 -0
  92. package/es/editor/src/EditorParts/EditorContent/EditorContent.mjs +154 -0
  93. package/es/editor/src/EditorParts/EditorContent/index.d.ts +2 -0
  94. package/es/editor/src/EditorParts/EditorContent/index.mjs +2 -0
  95. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +1906 -0
  96. package/es/editor/src/EditorParts/EditorContent/interface.mjs +17 -0
  97. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +4582 -0
  98. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.mjs +170 -0
  99. package/es/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.d.ts +11 -0
  100. package/es/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.mjs +54 -0
  101. package/es/editor/src/EditorParts/EditorToolbar/index.d.ts +2 -0
  102. package/es/editor/src/EditorParts/EditorToolbar/index.mjs +2 -0
  103. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +1912 -0
  104. package/es/editor/src/EditorParts/EditorToolbar/interface.mjs +18 -0
  105. package/es/editor/src/EditorParts/SendButton/SendButton.d.ts +23 -0
  106. package/es/editor/src/EditorParts/SendButton/SendButton.mjs +42 -0
  107. package/es/editor/src/EditorParts/SendButton/interface.d.ts +18 -0
  108. package/es/editor/src/EditorParts/SendButton/interface.mjs +8 -0
  109. package/es/editor/src/EditorParts/ToolbarButton/ToolbarButton.d.ts +32 -0
  110. package/es/editor/src/EditorParts/ToolbarButton/ToolbarButton.mjs +44 -0
  111. package/es/editor/src/EditorParts/ToolbarButton/interface.d.ts +20 -0
  112. package/es/editor/src/EditorParts/ToolbarButton/interface.mjs +13 -0
  113. package/es/editor/src/composables/use-editor-commands.d.ts +8 -0
  114. package/es/editor/src/composables/use-editor-commands.mjs +69 -0
  115. package/es/editor/src/composables/use-editor-css-vars.d.ts +4 -0
  116. package/es/editor/src/composables/use-editor-css-vars.mjs +81 -0
  117. package/es/editor/src/constants.d.ts +12 -0
  118. package/es/editor/src/constants.mjs +25 -0
  119. package/es/editor/src/extensions.d.ts +7 -0
  120. package/es/editor/src/extensions.mjs +129 -0
  121. package/es/editor/src/interface.d.ts +2019 -0
  122. package/es/editor/src/interface.mjs +52 -0
  123. package/es/editor/src/markdown/constants.d.ts +8 -0
  124. package/es/editor/src/markdown/constants.mjs +206 -0
  125. package/es/editor/src/markdown/editor-serializer.d.ts +9 -0
  126. package/es/editor/src/markdown/editor-serializer.mjs +18 -0
  127. package/es/editor/src/markdown/escape.d.ts +2 -0
  128. package/es/editor/src/markdown/escape.mjs +24 -0
  129. package/es/editor/src/markdown/html.d.ts +1 -0
  130. package/es/editor/src/markdown/html.mjs +4 -0
  131. package/es/editor/src/markdown/parser.d.ts +4 -0
  132. package/es/editor/src/markdown/parser.mjs +36 -0
  133. package/es/editor/src/markdown/serializer-state.d.ts +10 -0
  134. package/es/editor/src/markdown/serializer-state.mjs +12 -0
  135. package/es/editor/src/markdown/serializer.d.ts +3 -0
  136. package/es/editor/src/markdown/serializer.mjs +8 -0
  137. package/es/editor/src/styles/index.cssr.d.ts +2 -0
  138. package/es/editor/src/styles/index.cssr.mjs +119 -0
  139. package/es/editor/styles/dark.d.ts +630 -0
  140. package/es/editor/styles/dark.mjs +21 -0
  141. package/es/editor/styles/index.d.ts +3 -0
  142. package/es/editor/styles/index.mjs +2 -0
  143. package/es/editor/styles/light.d.ts +677 -0
  144. package/es/editor/styles/light.mjs +87 -0
  145. package/es/editor/tests/fixtures/round-trip.d.ts +12 -0
  146. package/es/editor/tests/fixtures/round-trip.mjs +98 -0
  147. package/es/editor/tests/utils.d.ts +7 -0
  148. package/es/editor/tests/utils.mjs +27 -0
  149. package/es/locales/common/enUS.d.ts +21 -0
  150. package/es/locales/common/enUS.mjs +22 -1
  151. package/es/locales/common/ruRU.mjs +22 -1
  152. package/es/locales/common/uzUZ.mjs +22 -1
  153. package/es/locales/common/zhCN.mjs +22 -1
  154. package/es/message-bubble/src/styles/index.cssr.mjs +4 -17
  155. package/es/styles.d.ts +1 -0
  156. package/es/styles.mjs +1 -0
  157. package/es/themes/dark.mjs +2 -0
  158. package/es/themes/light.mjs +2 -0
  159. package/es/version.d.ts +1 -1
  160. package/es/version.mjs +1 -1
  161. package/lib/_internal/icons/Bold.d.ts +2 -0
  162. package/lib/_internal/icons/Bold.js +13 -0
  163. package/lib/_internal/icons/BulletList.d.ts +2 -0
  164. package/lib/_internal/icons/BulletList.js +13 -0
  165. package/lib/_internal/icons/HorizontalRule.d.ts +2 -0
  166. package/lib/_internal/icons/HorizontalRule.js +10 -0
  167. package/lib/_internal/icons/Italic.d.ts +2 -0
  168. package/lib/_internal/icons/Italic.js +11 -0
  169. package/lib/_internal/icons/NumberedList.d.ts +2 -0
  170. package/lib/_internal/icons/NumberedList.js +13 -0
  171. package/lib/_internal/icons/Quote.d.ts +2 -0
  172. package/lib/_internal/icons/Quote.js +13 -0
  173. package/lib/_internal/icons/SettingsLine.d.ts +2 -0
  174. package/lib/_internal/icons/SettingsLine.js +11 -0
  175. package/lib/_internal/icons/Strikethrough.d.ts +2 -0
  176. package/lib/_internal/icons/Strikethrough.js +10 -0
  177. package/lib/_internal/icons/index.d.ts +8 -0
  178. package/lib/_internal/icons/index.js +18 -2
  179. package/lib/_styles/markdown/markdown-content.cssr.d.ts +6 -0
  180. package/lib/_styles/markdown/markdown-content.cssr.js +28 -0
  181. package/lib/_utils/markdown/index.d.ts +3 -2
  182. package/lib/_utils/markdown/index.js +4 -1
  183. package/lib/_utils/markdown/render-markdown.d.ts +2 -1
  184. package/lib/_utils/markdown/render-markdown.js +1 -0
  185. package/lib/chat/src/Chat.d.ts +261 -24
  186. package/lib/chat/src/Chat.js +2 -0
  187. package/lib/chat/src/ChatMainArea.d.ts +81 -8
  188. package/lib/chat/src/ChatMainArea.js +93 -223
  189. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +9084 -0
  190. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.js +52 -0
  191. package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +2645 -0
  192. package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.js +17 -0
  193. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +9070 -0
  194. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.js +55 -0
  195. package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +2637 -0
  196. package/lib/chat/src/ChatParts/ChatEditingBlock/interface.js +14 -0
  197. package/lib/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.d.ts +89 -0
  198. package/lib/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.js +45 -0
  199. package/lib/chat/src/ChatParts/ChatEditorInput/interface.d.ts +42 -0
  200. package/lib/chat/src/ChatParts/ChatEditorInput/interface.js +37 -0
  201. package/lib/chat/src/ChatParts/ChatFooter/ChatFooter.d.ts +115 -0
  202. package/lib/chat/src/ChatParts/ChatFooter/ChatFooter.js +66 -0
  203. package/lib/chat/src/ChatParts/ChatFooter/interface.d.ts +56 -0
  204. package/lib/chat/src/ChatParts/ChatFooter/interface.js +49 -0
  205. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +9205 -0
  206. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.js +164 -0
  207. package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +2694 -0
  208. package/lib/chat/src/ChatParts/ChatHeader/interface.js +53 -0
  209. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +9142 -0
  210. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.js +98 -0
  211. package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +2654 -0
  212. package/lib/chat/src/ChatParts/ChatLegacyInput/interface.js +23 -0
  213. package/lib/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.d.ts +148 -0
  214. package/lib/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.js +49 -0
  215. package/lib/chat/src/ChatParts/ChatMessagesArea/interface.d.ts +72 -0
  216. package/lib/chat/src/ChatParts/ChatMessagesArea/interface.js +61 -0
  217. package/lib/chat/src/interface.d.ts +7 -0
  218. package/lib/chat/src/interface.js +3 -0
  219. package/lib/chat/styles/light.d.ts +4 -0
  220. package/lib/chat/styles/light.js +19 -0
  221. package/lib/components.d.ts +12933 -32
  222. package/lib/components.js +18 -7
  223. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  224. package/lib/data-table/index.d.ts +1 -1
  225. package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +156 -0
  226. package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.js +181 -0
  227. package/lib/data-table/src/ColumnSettings/styles.cssr.d.ts +2 -0
  228. package/lib/data-table/src/ColumnSettings/styles.cssr.js +30 -0
  229. package/lib/data-table/src/DataTable.d.ts +60 -2
  230. package/lib/data-table/src/DataTable.js +65 -23
  231. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +14 -0
  232. package/lib/data-table/src/interface.d.ts +53 -1
  233. package/lib/data-table/src/interface.js +17 -2
  234. package/lib/data-table/src/styles/index.cssr.js +17 -1
  235. package/lib/data-table/src/use-column-settings.d.ts +2 -0
  236. package/lib/data-table/src/use-column-settings.js +144 -0
  237. package/lib/data-table/src/utils/column-utils.d.ts +2 -1
  238. package/lib/data-table/src/utils/column-utils.js +5 -0
  239. package/lib/editor/index.d.ts +10 -0
  240. package/lib/editor/index.js +19 -0
  241. package/lib/editor/src/Editor.d.ts +3896 -0
  242. package/lib/editor/src/Editor.js +216 -0
  243. package/lib/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.d.ts +37 -0
  244. package/lib/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.js +47 -0
  245. package/lib/editor/src/EditorParts/BlockTypeSelect/interface.d.ts +21 -0
  246. package/lib/editor/src/EditorParts/BlockTypeSelect/interface.js +17 -0
  247. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +4078 -0
  248. package/lib/editor/src/EditorParts/EditorContent/EditorContent.js +121 -0
  249. package/lib/editor/src/EditorParts/EditorContent/index.d.ts +2 -0
  250. package/lib/editor/src/EditorParts/EditorContent/index.js +10 -0
  251. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +1906 -0
  252. package/lib/editor/src/EditorParts/EditorContent/interface.js +8 -0
  253. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +4582 -0
  254. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.js +126 -0
  255. package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.d.ts +11 -0
  256. package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.js +52 -0
  257. package/lib/editor/src/EditorParts/EditorToolbar/index.d.ts +2 -0
  258. package/lib/editor/src/EditorParts/EditorToolbar/index.js +10 -0
  259. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +1912 -0
  260. package/lib/editor/src/EditorParts/EditorToolbar/interface.js +11 -0
  261. package/lib/editor/src/EditorParts/SendButton/SendButton.d.ts +23 -0
  262. package/lib/editor/src/EditorParts/SendButton/SendButton.js +31 -0
  263. package/lib/editor/src/EditorParts/SendButton/interface.d.ts +18 -0
  264. package/lib/editor/src/EditorParts/SendButton/interface.js +11 -0
  265. package/lib/editor/src/EditorParts/ToolbarButton/ToolbarButton.d.ts +32 -0
  266. package/lib/editor/src/EditorParts/ToolbarButton/ToolbarButton.js +34 -0
  267. package/lib/editor/src/EditorParts/ToolbarButton/interface.d.ts +20 -0
  268. package/lib/editor/src/EditorParts/ToolbarButton/interface.js +16 -0
  269. package/lib/editor/src/composables/use-editor-commands.d.ts +8 -0
  270. package/lib/editor/src/composables/use-editor-commands.js +70 -0
  271. package/lib/editor/src/composables/use-editor-css-vars.d.ts +4 -0
  272. package/lib/editor/src/composables/use-editor-css-vars.js +46 -0
  273. package/lib/editor/src/constants.d.ts +12 -0
  274. package/lib/editor/src/constants.js +56 -0
  275. package/lib/editor/src/extensions.d.ts +7 -0
  276. package/lib/editor/src/extensions.js +136 -0
  277. package/lib/editor/src/interface.d.ts +2019 -0
  278. package/lib/editor/src/interface.js +22 -0
  279. package/lib/editor/src/markdown/constants.d.ts +8 -0
  280. package/lib/editor/src/markdown/constants.js +201 -0
  281. package/lib/editor/src/markdown/editor-serializer.d.ts +9 -0
  282. package/lib/editor/src/markdown/editor-serializer.js +20 -0
  283. package/lib/editor/src/markdown/escape.d.ts +2 -0
  284. package/lib/editor/src/markdown/escape.js +31 -0
  285. package/lib/editor/src/markdown/html.d.ts +1 -0
  286. package/lib/editor/src/markdown/html.js +9 -0
  287. package/lib/editor/src/markdown/parser.d.ts +4 -0
  288. package/lib/editor/src/markdown/parser.js +42 -0
  289. package/lib/editor/src/markdown/serializer-state.d.ts +10 -0
  290. package/lib/editor/src/markdown/serializer-state.js +16 -0
  291. package/lib/editor/src/markdown/serializer.d.ts +3 -0
  292. package/lib/editor/src/markdown/serializer.js +9 -0
  293. package/lib/editor/src/styles/index.cssr.d.ts +2 -0
  294. package/lib/editor/src/styles/index.cssr.js +124 -0
  295. package/lib/editor/styles/dark.d.ts +630 -0
  296. package/lib/editor/styles/dark.js +23 -0
  297. package/lib/editor/styles/index.d.ts +3 -0
  298. package/lib/editor/styles/index.js +10 -0
  299. package/lib/editor/styles/light.d.ts +677 -0
  300. package/lib/editor/styles/light.js +71 -0
  301. package/lib/editor/tests/fixtures/round-trip.d.ts +12 -0
  302. package/lib/editor/tests/fixtures/round-trip.js +125 -0
  303. package/lib/editor/tests/utils.d.ts +7 -0
  304. package/lib/editor/tests/utils.js +26 -0
  305. package/lib/locales/common/enUS.d.ts +21 -0
  306. package/lib/locales/common/enUS.js +22 -1
  307. package/lib/locales/common/ruRU.js +22 -1
  308. package/lib/locales/common/uzUZ.js +22 -1
  309. package/lib/locales/common/zhCN.js +22 -1
  310. package/lib/message-bubble/src/styles/index.cssr.js +4 -17
  311. package/lib/styles.d.ts +1 -0
  312. package/lib/styles.js +127 -125
  313. package/lib/themes/dark.js +136 -134
  314. package/lib/themes/light.js +136 -134
  315. package/lib/version.d.ts +1 -1
  316. package/lib/version.js +1 -1
  317. package/package.json +8 -1
  318. package/volar.d.ts +3 -0
  319. package/web-types.json +437 -2
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const vue_1 = require("vue");
4
+ exports.default = (0, vue_1.defineComponent)({
5
+ name: 'SettingsLine',
6
+ render() {
7
+ return ((0, vue_1.h)("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
8
+ (0, vue_1.h)("path", { d: "M10.5286 2.88797C11.4413 2.37068 12.5586 2.37067 13.4712 2.88797L16.3264 4.50629L19.1555 6.1698C20.0598 6.70154 20.6185 7.66913 20.6268 8.71818L20.6529 12L20.6268 15.2818C20.6185 16.3309 20.0598 17.2985 19.1555 17.8302L16.3264 19.4937L13.4712 21.112C12.5586 21.6293 11.4413 21.6293 10.5286 21.112L7.67342 19.4937L4.84432 17.8302C3.93999 17.2985 3.38135 16.3309 3.37301 15.2818L3.34692 12L3.37301 8.71818C3.38135 7.66913 3.93999 6.70154 4.84432 6.1698L7.67342 4.50629L10.5286 2.88797Z", stroke: "currentColor", "stroke-width": "2" }),
9
+ (0, vue_1.h)("path", { d: "M14.9837 12C14.9837 13.6479 13.6478 14.9838 11.9999 14.9838C10.352 14.9838 9.01612 13.6479 9.01612 12C9.01612 10.3521 10.352 9.01621 11.9999 9.01621C13.6478 9.01621 14.9837 10.3521 14.9837 12Z", stroke: "currentColor", "stroke-width": "2" })));
10
+ }
11
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const vue_1 = require("vue");
4
+ exports.default = (0, vue_1.defineComponent)({
5
+ name: 'Strikethrough',
6
+ render() {
7
+ return ((0, vue_1.h)("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
8
+ (0, vue_1.h)("path", { d: "M11.7676 6C12.4259 6 13.0567 6.1206 13.6592 6.36132C14.2727 6.60205 14.7582 6.95738 15.1152 7.42673C15.2824 7.61918 15.3662 7.79379 15.3662 7.95016C15.3661 8.07027 15.3104 8.19041 15.1992 8.31051C15.0876 8.43087 14.964 8.49117 14.8301 8.49117C14.7187 8.49105 14.6239 8.44933 14.5459 8.3652C14.3562 8.11244 14.1163 7.88982 13.8262 7.69724C13.5361 7.49265 13.2125 7.33584 12.8555 7.22752C12.5096 7.11924 12.1469 7.06541 11.7676 7.06541C11.2433 7.06544 10.7687 7.1554 10.3447 7.33592C9.93206 7.50442 9.60282 7.75126 9.35742 8.07614C9.12315 8.4011 9.00586 8.79261 9.00586 9.24995C9.00589 9.75531 9.14054 10.1701 9.4082 10.495C9.67588 10.8199 10.027 11.0909 10.4619 11.3075C10.8971 11.5121 11.3606 11.7051 11.8516 11.8856C12.3313 12.0301 12.7885 12.1989 13.2236 12.3915C13.307 12.4252 13.3874 12.4628 13.4668 12.4999H17.5C17.7761 12.4999 18 12.7237 18 12.9999C18 13.276 17.7761 13.4999 17.5 13.4999H14.8174C14.9675 13.6868 15.0957 13.8949 15.1992 14.1249C15.3998 14.5459 15.4999 15.0753 15.5 15.7127C15.5 16.3265 15.3381 16.8804 15.0146 17.3738C14.6911 17.8673 14.2448 18.2588 13.6758 18.5476C13.118 18.8365 12.4597 18.9867 11.7012 18.9988C10.8532 19.0109 10.116 18.8671 9.49121 18.5662C8.86651 18.2653 8.27011 17.8134 7.70117 17.2117C7.64538 17.1636 7.59444 17.1033 7.5498 17.0311C7.51641 16.9589 7.5 16.8743 7.5 16.7781C7.50006 16.634 7.55025 16.5019 7.65039 16.3817C7.76189 16.2614 7.88477 16.2011 8.01855 16.201C8.15245 16.201 8.27514 16.2613 8.38672 16.3817C8.82177 16.8871 9.3128 17.2721 9.85938 17.5369C10.4172 17.8017 11.0145 17.9343 11.6504 17.9344C12.186 17.9344 12.6604 17.8434 13.0732 17.6629C13.4972 17.4824 13.8317 17.2235 14.0771 16.8865C14.3226 16.5495 14.4453 16.1581 14.4453 15.7127C14.4452 15.1593 14.3062 14.7137 14.0273 14.3768C13.7484 14.0279 13.3802 13.7448 12.9229 13.5282C12.9033 13.5184 12.8831 13.5096 12.8633 13.4999H6.5C6.22386 13.4999 6 13.276 6 12.9999C6 12.7237 6.22386 12.4999 6.5 12.4999H10.2666C10.2088 12.4757 10.1507 12.4525 10.0938 12.4276C9.681 12.2351 9.31277 12.0059 8.98926 11.7411C8.66583 11.4643 8.4148 11.1274 8.23633 10.7304C8.05783 10.3332 7.96877 9.8517 7.96875 9.28608C7.96875 8.64816 8.12509 8.08233 8.4375 7.58884C8.74991 7.09539 9.19076 6.71041 9.75977 6.43359C10.3399 6.1448 11.009 6.00003 11.7676 6Z", fill: "currentColor" })));
9
+ }
10
+ });
@@ -5,6 +5,8 @@ export { default as ArrowHookUpRight } from './ArrowHookUpRight';
5
5
  export { default as ArrowUpIcon } from './ArrowUp';
6
6
  export { default as AttachIcon } from './Attach';
7
7
  export { default as BackwardIcon } from './Backward';
8
+ export { default as BoldIcon } from './Bold';
9
+ export { default as BulletListIcon } from './BulletList';
8
10
  export { default as BurgerMenuIcon } from './BurgerMenuIcon';
9
11
  export { default as CancelIcon } from './Cancel';
10
12
  export { default as CheckmarkIcon } from './Checkmark';
@@ -34,16 +36,20 @@ export { default as FileIcon } from './File';
34
36
  export { default as FileHeart } from './FileHeart';
35
37
  export { default as FilterIcon } from './Filter';
36
38
  export { default as ForwardIcon } from './Forward';
39
+ export { default as HorizontalRuleIcon } from './HorizontalRule';
37
40
  export { default as InactiveIcon } from './Inactive';
38
41
  export { default as InfoIcon } from './Info';
39
42
  export { default as InfoOutlineIcon } from './InfoOutline';
43
+ export { default as ItalicIcon } from './Italic';
40
44
  export { default as LogoutIcon } from './Logout';
41
45
  export { default as MdTime } from './MdTime';
42
46
  export { default as MoreIcon } from './More';
47
+ export { default as NumberedListIcon } from './NumberedList';
43
48
  export { default as OzbekFlag } from './OzbekFlag';
44
49
  export { default as PersonNote } from './PersonNote';
45
50
  export { default as PersonOutline } from './PersonOutline';
46
51
  export { default as PhotoIcon } from './Photo';
52
+ export { default as QuoteIcon } from './Quote';
47
53
  export { default as Refresh } from './Refresh';
48
54
  export { default as RemoveIcon } from './Remove';
49
55
  export { default as ResizeSmallIcon } from './ResizeSmall';
@@ -54,7 +60,9 @@ export { default as RussiaFlag } from './RussiaFlag';
54
60
  export { default as SearchIcon } from './Search';
55
61
  export { default as SearchOutlineIcon } from './SearchOutline';
56
62
  export { default as SendFilled } from './SendFilled';
63
+ export { default as SettingsLine } from './SettingsLine';
57
64
  export { default as SiderUnionBorder } from './SiderUnionBorder';
65
+ export { default as StrikethroughIcon } from './Strikethrough';
58
66
  export { default as SuccessIcon } from './Success';
59
67
  export { default as TimeIcon } from './Time';
60
68
  export { default as ToIcon } from './To';
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.RetryIcon = exports.ResizeSmallIcon = exports.RemoveIcon = exports.Refresh = exports.PhotoIcon = exports.PersonOutline = exports.PersonNote = exports.OzbekFlag = exports.MoreIcon = exports.MdTime = exports.LogoutIcon = exports.InfoOutlineIcon = exports.InfoIcon = exports.InactiveIcon = exports.ForwardIcon = exports.FilterIcon = exports.FileHeart = exports.FileIcon = exports.FastForwardIcon = exports.FastBackwardIcon = exports.EyeOffIcon = exports.EyeIcon = exports.ErrorIcon = exports.EmptyIcon = exports.EditIcon = exports.DragHandleRound = exports.DownloadIcon = exports.DismissCircleIcon = exports.DateIcon = exports.ContentCopy = exports.CloseIcon = exports.ClearSmallIcon = exports.ClearIcon = exports.ChevronRightIcon = exports.ChevronLeftIcon = exports.ChevronDownOutline = exports.ChevronDownFilledIcon = exports.ChevronDownIcon = exports.CheckmarkDoneSharp = exports.CheckmarkCircleIcon = exports.CheckmarkIcon = exports.CancelIcon = exports.BurgerMenuIcon = exports.BackwardIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowHookUpRight = exports.ArrowDownIcon = exports.ArrowBackIcon = exports.AddIcon = void 0;
7
- exports.ZoomOutIcon = exports.ZoomInIcon = exports.WarningIcon = exports.TrashIcon = exports.ToIcon = exports.TimeIcon = exports.SuccessIcon = exports.SiderUnionBorder = exports.SendFilled = exports.SearchOutlineIcon = exports.SearchIcon = exports.RussiaFlag = exports.RotateCounterclockwiseIcon = exports.RotateClockwiseIcon = void 0;
6
+ exports.PersonOutline = exports.PersonNote = exports.OzbekFlag = exports.NumberedListIcon = exports.MoreIcon = exports.MdTime = exports.LogoutIcon = exports.ItalicIcon = exports.InfoOutlineIcon = exports.InfoIcon = exports.InactiveIcon = exports.HorizontalRuleIcon = exports.ForwardIcon = exports.FilterIcon = exports.FileHeart = exports.FileIcon = exports.FastForwardIcon = exports.FastBackwardIcon = exports.EyeOffIcon = exports.EyeIcon = exports.ErrorIcon = exports.EmptyIcon = exports.EditIcon = exports.DragHandleRound = exports.DownloadIcon = exports.DismissCircleIcon = exports.DateIcon = exports.ContentCopy = exports.CloseIcon = exports.ClearSmallIcon = exports.ClearIcon = exports.ChevronRightIcon = exports.ChevronLeftIcon = exports.ChevronDownOutline = exports.ChevronDownFilledIcon = exports.ChevronDownIcon = exports.CheckmarkDoneSharp = exports.CheckmarkCircleIcon = exports.CheckmarkIcon = exports.CancelIcon = exports.BurgerMenuIcon = exports.BulletListIcon = exports.BoldIcon = exports.BackwardIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowHookUpRight = exports.ArrowDownIcon = exports.ArrowBackIcon = exports.AddIcon = void 0;
7
+ exports.ZoomOutIcon = exports.ZoomInIcon = exports.WarningIcon = exports.TrashIcon = exports.ToIcon = exports.TimeIcon = exports.SuccessIcon = exports.StrikethroughIcon = exports.SiderUnionBorder = exports.SettingsLine = exports.SendFilled = exports.SearchOutlineIcon = exports.SearchIcon = exports.RussiaFlag = exports.RotateCounterclockwiseIcon = exports.RotateClockwiseIcon = exports.RetryIcon = exports.ResizeSmallIcon = exports.RemoveIcon = exports.Refresh = exports.QuoteIcon = exports.PhotoIcon = void 0;
8
8
  var Add_1 = require("./Add");
9
9
  Object.defineProperty(exports, "AddIcon", { enumerable: true, get: function () { return __importDefault(Add_1).default; } });
10
10
  var ArrowBack_1 = require("./ArrowBack");
@@ -19,6 +19,10 @@ var Attach_1 = require("./Attach");
19
19
  Object.defineProperty(exports, "AttachIcon", { enumerable: true, get: function () { return __importDefault(Attach_1).default; } });
20
20
  var Backward_1 = require("./Backward");
21
21
  Object.defineProperty(exports, "BackwardIcon", { enumerable: true, get: function () { return __importDefault(Backward_1).default; } });
22
+ var Bold_1 = require("./Bold");
23
+ Object.defineProperty(exports, "BoldIcon", { enumerable: true, get: function () { return __importDefault(Bold_1).default; } });
24
+ var BulletList_1 = require("./BulletList");
25
+ Object.defineProperty(exports, "BulletListIcon", { enumerable: true, get: function () { return __importDefault(BulletList_1).default; } });
22
26
  var BurgerMenuIcon_1 = require("./BurgerMenuIcon");
23
27
  Object.defineProperty(exports, "BurgerMenuIcon", { enumerable: true, get: function () { return __importDefault(BurgerMenuIcon_1).default; } });
24
28
  var Cancel_1 = require("./Cancel");
@@ -77,18 +81,24 @@ var Filter_1 = require("./Filter");
77
81
  Object.defineProperty(exports, "FilterIcon", { enumerable: true, get: function () { return __importDefault(Filter_1).default; } });
78
82
  var Forward_1 = require("./Forward");
79
83
  Object.defineProperty(exports, "ForwardIcon", { enumerable: true, get: function () { return __importDefault(Forward_1).default; } });
84
+ var HorizontalRule_1 = require("./HorizontalRule");
85
+ Object.defineProperty(exports, "HorizontalRuleIcon", { enumerable: true, get: function () { return __importDefault(HorizontalRule_1).default; } });
80
86
  var Inactive_1 = require("./Inactive");
81
87
  Object.defineProperty(exports, "InactiveIcon", { enumerable: true, get: function () { return __importDefault(Inactive_1).default; } });
82
88
  var Info_1 = require("./Info");
83
89
  Object.defineProperty(exports, "InfoIcon", { enumerable: true, get: function () { return __importDefault(Info_1).default; } });
84
90
  var InfoOutline_1 = require("./InfoOutline");
85
91
  Object.defineProperty(exports, "InfoOutlineIcon", { enumerable: true, get: function () { return __importDefault(InfoOutline_1).default; } });
92
+ var Italic_1 = require("./Italic");
93
+ Object.defineProperty(exports, "ItalicIcon", { enumerable: true, get: function () { return __importDefault(Italic_1).default; } });
86
94
  var Logout_1 = require("./Logout");
87
95
  Object.defineProperty(exports, "LogoutIcon", { enumerable: true, get: function () { return __importDefault(Logout_1).default; } });
88
96
  var MdTime_1 = require("./MdTime");
89
97
  Object.defineProperty(exports, "MdTime", { enumerable: true, get: function () { return __importDefault(MdTime_1).default; } });
90
98
  var More_1 = require("./More");
91
99
  Object.defineProperty(exports, "MoreIcon", { enumerable: true, get: function () { return __importDefault(More_1).default; } });
100
+ var NumberedList_1 = require("./NumberedList");
101
+ Object.defineProperty(exports, "NumberedListIcon", { enumerable: true, get: function () { return __importDefault(NumberedList_1).default; } });
92
102
  var OzbekFlag_1 = require("./OzbekFlag");
93
103
  Object.defineProperty(exports, "OzbekFlag", { enumerable: true, get: function () { return __importDefault(OzbekFlag_1).default; } });
94
104
  var PersonNote_1 = require("./PersonNote");
@@ -97,6 +107,8 @@ var PersonOutline_1 = require("./PersonOutline");
97
107
  Object.defineProperty(exports, "PersonOutline", { enumerable: true, get: function () { return __importDefault(PersonOutline_1).default; } });
98
108
  var Photo_1 = require("./Photo");
99
109
  Object.defineProperty(exports, "PhotoIcon", { enumerable: true, get: function () { return __importDefault(Photo_1).default; } });
110
+ var Quote_1 = require("./Quote");
111
+ Object.defineProperty(exports, "QuoteIcon", { enumerable: true, get: function () { return __importDefault(Quote_1).default; } });
100
112
  var Refresh_1 = require("./Refresh");
101
113
  Object.defineProperty(exports, "Refresh", { enumerable: true, get: function () { return __importDefault(Refresh_1).default; } });
102
114
  var Remove_1 = require("./Remove");
@@ -117,8 +129,12 @@ var SearchOutline_1 = require("./SearchOutline");
117
129
  Object.defineProperty(exports, "SearchOutlineIcon", { enumerable: true, get: function () { return __importDefault(SearchOutline_1).default; } });
118
130
  var SendFilled_1 = require("./SendFilled");
119
131
  Object.defineProperty(exports, "SendFilled", { enumerable: true, get: function () { return __importDefault(SendFilled_1).default; } });
132
+ var SettingsLine_1 = require("./SettingsLine");
133
+ Object.defineProperty(exports, "SettingsLine", { enumerable: true, get: function () { return __importDefault(SettingsLine_1).default; } });
120
134
  var SiderUnionBorder_1 = require("./SiderUnionBorder");
121
135
  Object.defineProperty(exports, "SiderUnionBorder", { enumerable: true, get: function () { return __importDefault(SiderUnionBorder_1).default; } });
136
+ var Strikethrough_1 = require("./Strikethrough");
137
+ Object.defineProperty(exports, "StrikethroughIcon", { enumerable: true, get: function () { return __importDefault(Strikethrough_1).default; } });
122
138
  var Success_1 = require("./Success");
123
139
  Object.defineProperty(exports, "SuccessIcon", { enumerable: true, get: function () { return __importDefault(Success_1).default; } });
124
140
  var Time_1 = require("./Time");
@@ -0,0 +1,6 @@
1
+ import type { CNode } from 'css-render';
2
+ interface MarkdownContentStyleOptions {
3
+ cssVarPrefix: string;
4
+ }
5
+ export declare function markdownContentStyle({ cssVarPrefix }: MarkdownContentStyleOptions): CNode[];
6
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.markdownContentStyle = markdownContentStyle;
7
+ const cssr_1 = require("../../_utils/cssr");
8
+ function markdownContentStyle({
9
+ cssVarPrefix
10
+ }) {
11
+ return [(0, cssr_1.c)('h1', `font-size: var(${cssVarPrefix}-h1-font-size);`), (0, cssr_1.c)('h2', `font-size: var(${cssVarPrefix}-h2-font-size);`), (0, cssr_1.c)('h3', `font-size: var(${cssVarPrefix}-h3-font-size);`), (0, cssr_1.c)('ul, ol', 'list-style-position: inside;'), (0, cssr_1.c)('li > p', 'display: inline; margin: 0;'), (0, cssr_1.c)('p', 'margin: 0;'), (0, cssr_1.c)('blockquote', `
12
+ position: relative;
13
+ border-radius: 4px;
14
+ padding: 0 8px;
15
+ margin: 0;
16
+ background-color: var(${cssVarPrefix}-quote-background-color);
17
+ color: var(${cssVarPrefix}-quote-text-color);
18
+ `, [(0, cssr_1.c)('&::before', `
19
+ content: "";
20
+ width: 2px;
21
+ position: absolute;
22
+ left: 2px;
23
+ top: 2px;
24
+ bottom: 2px;
25
+ border-radius: 30px;
26
+ background-color: var(${cssVarPrefix}-quote-marker-color);
27
+ `)]), (0, cssr_1.c)('& > *:first-child', 'margin-top: 0;'), (0, cssr_1.c)('& > *:last-child', 'margin-bottom: 0;')];
28
+ }
@@ -1,2 +1,3 @@
1
- export type { MarkdownFeature, MarkdownOptions } from './interface';
2
- export { renderMarkdown, sanitizeMarkdown } from './render-markdown';
1
+ export { createMarkdownRenderer } from './create-markdown-renderer';
2
+ export type { MarkdownFeature, MarkdownOptions, NormalizedMarkdownOptions } from './interface';
3
+ export { normalizeOptions, renderMarkdown, sanitizeMarkdown } from './render-markdown';
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sanitizeMarkdown = exports.renderMarkdown = void 0;
3
+ exports.sanitizeMarkdown = exports.renderMarkdown = exports.normalizeOptions = exports.createMarkdownRenderer = void 0;
4
+ var create_markdown_renderer_1 = require("./create-markdown-renderer");
5
+ Object.defineProperty(exports, "createMarkdownRenderer", { enumerable: true, get: function () { return create_markdown_renderer_1.createMarkdownRenderer; } });
4
6
  var render_markdown_1 = require("./render-markdown");
7
+ Object.defineProperty(exports, "normalizeOptions", { enumerable: true, get: function () { return render_markdown_1.normalizeOptions; } });
5
8
  Object.defineProperty(exports, "renderMarkdown", { enumerable: true, get: function () { return render_markdown_1.renderMarkdown; } });
6
9
  Object.defineProperty(exports, "sanitizeMarkdown", { enumerable: true, get: function () { return render_markdown_1.sanitizeMarkdown; } });
@@ -1,3 +1,4 @@
1
- import type { MarkdownOptions } from './interface';
1
+ import type { MarkdownOptions, NormalizedMarkdownOptions } from './interface';
2
+ export declare function normalizeOptions(options?: MarkdownOptions): NormalizedMarkdownOptions;
2
3
  export declare function renderMarkdown(content: string, options?: MarkdownOptions): string;
3
4
  export declare function sanitizeMarkdown(content: string, options?: MarkdownOptions): string;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeOptions = normalizeOptions;
3
4
  exports.renderMarkdown = renderMarkdown;
4
5
  exports.sanitizeMarkdown = sanitizeMarkdown;
5
6
  const constants_1 = require("./constants");