@uzum-tech/ui 2.3.8 → 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 +5 -0
  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 +17 -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,52 @@
1
+ import { useTheme } from "../../_mixins/index.mjs";
2
+ import { createInjectionKey } from "../../_utils/index.mjs";
3
+ export const editorInjectionKey = createInjectionKey('u-editor');
4
+ export const editorProps = Object.assign(Object.assign({}, useTheme.props), {
5
+ value: String,
6
+ defaultValue: {
7
+ type: String,
8
+ default: ''
9
+ },
10
+ placeholder: String,
11
+ markdownOptions: Object,
12
+ toolbar: {
13
+ type: [Array, Boolean],
14
+ default: true
15
+ },
16
+ sendTooltip: String,
17
+ boldTooltip: String,
18
+ strikethroughTooltip: String,
19
+ italicTooltip: String,
20
+ blockquoteTooltip: String,
21
+ dividerTooltip: String,
22
+ bulletListTooltip: String,
23
+ orderedListTooltip: String,
24
+ showSendButton: {
25
+ type: Boolean,
26
+ default: true
27
+ },
28
+ sendOnEnter: {
29
+ type: Boolean,
30
+ default: true
31
+ },
32
+ disabled: Boolean,
33
+ readonly: Boolean,
34
+ autofocus: Boolean,
35
+ maxLength: Number,
36
+ maxRows: Number,
37
+ toolbarButtonProps: Object,
38
+ toolbarIconProps: Object,
39
+ toolbarDropdownProps: Object,
40
+ sendButtonProps: Object,
41
+ sendIconProps: Object,
42
+ contentProps: Object,
43
+ extensions: {
44
+ type: Array,
45
+ default: () => []
46
+ },
47
+ onSend: [Function, Array],
48
+ onFocus: [Function, Array],
49
+ onBlur: [Function, Array],
50
+ 'onUpdate:value': [Function, Array],
51
+ onUpdateValue: [Function, Array]
52
+ });
@@ -0,0 +1,8 @@
1
+ import type { EditorToolbarItemKey } from '@uzum-tech/ui';
2
+ import type { MarkdownSerializer, ParseSpec } from 'prosemirror-markdown';
3
+ import type { EditorCommandSpec } from '../interface';
4
+ export declare const markdownEditorEscapeRegex: Record<string, RegExp>;
5
+ export declare const MARKDOWN_EDITOR_TOKEN_PARSE_SPECS: Record<string, ParseSpec>;
6
+ export declare const MARKDOWN_EDITOR_NODE_SERIALIZERS: MarkdownSerializer['nodes'];
7
+ export declare const MARKDOWN_EDITOR_MARK_SERIALIZERS: MarkdownSerializer['marks'];
8
+ export declare const EDITOR_COMMAND_SPECS: Record<EditorToolbarItemKey, EditorCommandSpec>;
@@ -0,0 +1,206 @@
1
+ const markdownSourceOf = token => token.markup || null;
2
+ function markdownSourceOrDefault(node, fallback) {
3
+ const source = node.attrs.markdownSource;
4
+ return typeof source === 'string' && source ? source : fallback;
5
+ }
6
+ export const markdownEditorEscapeRegex = {
7
+ BULLET_MARKER_REGEX: /^[-*+](?=\s)/,
8
+ ORDERED_MARKER_REGEX: /^(\d+)([.)])(?=\s)/,
9
+ BLOCKQUOTE_MARKER_REGEX: /^>/,
10
+ DIVIDER_LINE_REGEX: /^([-*_=])\1{2,}\s*$/
11
+ };
12
+ export const MARKDOWN_EDITOR_TOKEN_PARSE_SPECS = {
13
+ paragraph: {
14
+ block: 'paragraph'
15
+ },
16
+ heading: {
17
+ block: 'heading',
18
+ getAttrs: token => ({
19
+ level: Number(token.tag.slice(1)),
20
+ markdownSource: markdownSourceOf(token)
21
+ })
22
+ },
23
+ blockquote: {
24
+ block: 'blockquote',
25
+ getAttrs: token => ({
26
+ markdownSource: markdownSourceOf(token)
27
+ })
28
+ },
29
+ bullet_list: {
30
+ block: 'bulletList',
31
+ getAttrs: token => ({
32
+ markdownSource: markdownSourceOf(token)
33
+ })
34
+ },
35
+ ordered_list: {
36
+ block: 'orderedList',
37
+ getAttrs: token => {
38
+ var _a;
39
+ return {
40
+ start: Number((_a = token.attrGet('start')) !== null && _a !== void 0 ? _a : 1),
41
+ markdownSource: markdownSourceOf(token)
42
+ };
43
+ }
44
+ },
45
+ list_item: {
46
+ block: 'listItem'
47
+ },
48
+ hr: {
49
+ node: 'horizontalRule',
50
+ getAttrs: token => ({
51
+ markdownSource: markdownSourceOf(token)
52
+ })
53
+ },
54
+ hardbreak: {
55
+ node: 'hardBreak'
56
+ },
57
+ softbreak: {
58
+ node: 'hardBreak'
59
+ },
60
+ strong: {
61
+ mark: 'bold',
62
+ getAttrs: token => ({
63
+ markdownSource: markdownSourceOf(token)
64
+ })
65
+ },
66
+ em: {
67
+ mark: 'italic',
68
+ getAttrs: token => ({
69
+ markdownSource: markdownSourceOf(token)
70
+ })
71
+ },
72
+ s: {
73
+ mark: 'strike',
74
+ getAttrs: token => ({
75
+ markdownSource: markdownSourceOf(token)
76
+ })
77
+ },
78
+ link: {
79
+ mark: 'link',
80
+ getAttrs: token => ({
81
+ href: token.attrGet('href'),
82
+ title: token.attrGet('title'),
83
+ markdownSource: markdownSourceOf(token)
84
+ })
85
+ }
86
+ };
87
+ export const MARKDOWN_EDITOR_NODE_SERIALIZERS = {
88
+ paragraph(state, node) {
89
+ state.renderInline(node);
90
+ state.closeBlock(node);
91
+ },
92
+ heading(state, node) {
93
+ const marker = markdownSourceOrDefault(node, '#'.repeat(node.attrs.level));
94
+ state.write(`${marker} `);
95
+ state.renderInline(node);
96
+ state.closeBlock(node);
97
+ },
98
+ blockquote(state, node) {
99
+ const marker = markdownSourceOrDefault(node, '>');
100
+ state.wrapBlock(`${marker} `, null, node, () => state.renderContent(node));
101
+ },
102
+ bulletList(state, node) {
103
+ const marker = markdownSourceOrDefault(node, '-');
104
+ state.renderList(node, ' ', () => `${marker} `);
105
+ },
106
+ orderedList(state, node) {
107
+ var _a;
108
+ const delimiter = markdownSourceOrDefault(node, '.');
109
+ const start = Number((_a = node.attrs.start) !== null && _a !== void 0 ? _a : 1);
110
+ const maxWidth = String(start + node.childCount - 1).length;
111
+ const space = state.repeat(' ', maxWidth + 2);
112
+ state.renderList(node, space, index => {
113
+ const label = String(start + index);
114
+ return `${state.repeat(' ', maxWidth - label.length)}${label}${delimiter} `;
115
+ });
116
+ },
117
+ listItem(state, node) {
118
+ state.renderContent(node);
119
+ },
120
+ horizontalRule(state, node) {
121
+ state.write(markdownSourceOrDefault(node, '---'));
122
+ state.closeBlock(node);
123
+ },
124
+ hardBreak(state, node, parent, index) {
125
+ for (let next = index + 1; next < parent.childCount; next++) {
126
+ if (parent.child(next).type !== node.type) {
127
+ state.write('\n');
128
+ return;
129
+ }
130
+ }
131
+ },
132
+ text(state, node) {
133
+ var _a;
134
+ state.text((_a = node.text) !== null && _a !== void 0 ? _a : '');
135
+ }
136
+ };
137
+ export const MARKDOWN_EDITOR_MARK_SERIALIZERS = {
138
+ bold: {
139
+ open: (_state, mark) => markdownSourceOrDefault(mark, '**'),
140
+ close: (_state, mark) => markdownSourceOrDefault(mark, '**'),
141
+ mixable: true,
142
+ expelEnclosingWhitespace: true
143
+ },
144
+ italic: {
145
+ open: (_state, mark) => markdownSourceOrDefault(mark, '*'),
146
+ close: (_state, mark) => markdownSourceOrDefault(mark, '*'),
147
+ mixable: true,
148
+ expelEnclosingWhitespace: true
149
+ },
150
+ strike: {
151
+ open: (_state, mark) => markdownSourceOrDefault(mark, '~~'),
152
+ close: (_state, mark) => markdownSourceOrDefault(mark, '~~'),
153
+ mixable: true,
154
+ expelEnclosingWhitespace: true
155
+ },
156
+ link: {
157
+ open: '[',
158
+ close: (_state, mark) => {
159
+ var _a;
160
+ const title = mark.attrs.title ? ` "${mark.attrs.title}"` : '';
161
+ return `](${(_a = mark.attrs.href) !== null && _a !== void 0 ? _a : ''}${title})`;
162
+ }
163
+ }
164
+ };
165
+ export const EDITOR_COMMAND_SPECS = {
166
+ blockType: {
167
+ run: editor => editor.chain().focus().setParagraph().run(),
168
+ active: editor => editor.isActive('heading'),
169
+ enabled: editor => editor.can().chain().focus().setParagraph().run()
170
+ },
171
+ bold: {
172
+ run: editor => editor.chain().focus().toggleBold().run(),
173
+ active: editor => editor.isActive('bold'),
174
+ enabled: editor => editor.can().chain().focus().toggleBold().run()
175
+ },
176
+ strikethrough: {
177
+ run: editor => editor.chain().focus().toggleStrike().run(),
178
+ active: editor => editor.isActive('strike'),
179
+ enabled: editor => editor.can().chain().focus().toggleStrike().run()
180
+ },
181
+ italic: {
182
+ run: editor => editor.chain().focus().toggleItalic().run(),
183
+ active: editor => editor.isActive('italic'),
184
+ enabled: editor => editor.can().chain().focus().toggleItalic().run()
185
+ },
186
+ blockquote: {
187
+ run: editor => editor.chain().focus().toggleBlockquote().run(),
188
+ active: editor => editor.isActive('blockquote'),
189
+ enabled: editor => editor.can().chain().focus().toggleBlockquote().run()
190
+ },
191
+ divider: {
192
+ run: editor => editor.chain().focus().setHorizontalRule().run(),
193
+ active: editor => editor.isActive('horizontalRule'),
194
+ enabled: editor => editor.can().chain().focus().setHorizontalRule().run()
195
+ },
196
+ bulletList: {
197
+ run: editor => editor.chain().focus().toggleBulletList().run(),
198
+ active: editor => editor.isActive('bulletList'),
199
+ enabled: editor => editor.can().chain().focus().toggleBulletList().run()
200
+ },
201
+ orderedList: {
202
+ run: editor => editor.chain().focus().toggleOrderedList().run(),
203
+ active: editor => editor.isActive('orderedList'),
204
+ enabled: editor => editor.can().chain().focus().toggleOrderedList().run()
205
+ }
206
+ };
@@ -0,0 +1,9 @@
1
+ import type { Node } from '@tiptap/pm/model';
2
+ import type { NormalizedMarkdownOptions } from '../../../_utils/markdown';
3
+ import type { MarkdownSerializerStateOptions } from '../interface';
4
+ import { MarkdownSerializer } from 'prosemirror-markdown';
5
+ export declare class EditorMarkdownSerializer extends MarkdownSerializer {
6
+ private readonly markdownOptions;
7
+ constructor(nodes: MarkdownSerializer['nodes'], marks: MarkdownSerializer['marks'], options: MarkdownSerializer['options'], markdownOptions: NormalizedMarkdownOptions);
8
+ serialize(content: Node, options?: MarkdownSerializerStateOptions): string;
9
+ }
@@ -0,0 +1,18 @@
1
+ import { MarkdownSerializer } from 'prosemirror-markdown';
2
+ import { EditorMarkdownSerializerState } from "./serializer-state.mjs";
3
+ export class EditorMarkdownSerializer extends MarkdownSerializer {
4
+ constructor(nodes, marks, options, markdownOptions) {
5
+ super(nodes, marks, options);
6
+ this.markdownOptions = markdownOptions;
7
+ }
8
+ serialize(content, options) {
9
+ const state = new EditorMarkdownSerializerState(this.nodes, this.marks, Object.assign(Object.assign(Object.assign({}, this.options), {
10
+ tightLists: true
11
+ }), options), this.markdownOptions);
12
+ state.renderContent(content);
13
+ if ('out' in state && typeof state.out === 'string') {
14
+ return state.out;
15
+ }
16
+ return '';
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ import type { NormalizedMarkdownOptions } from '../../../_utils/markdown';
2
+ export declare function escapeLineStart(line: string, options: NormalizedMarkdownOptions): string;
@@ -0,0 +1,24 @@
1
+ import { markdownEditorEscapeRegex } from "./constants.mjs";
2
+ export function escapeLineStart(line, options) {
3
+ const features = new Set(options.features);
4
+ if (features.has('heading')) {
5
+ const headingMarkerRegex = new RegExp(`^#{1,${options.maxHeadingLevel}}(?=\\s)`);
6
+ if (headingMarkerRegex.test(line)) return `\\${line}`;
7
+ }
8
+ if (features.has('bulletList') && markdownEditorEscapeRegex.BULLET_MARKER_REGEX.test(line)) {
9
+ return `\\${line}`;
10
+ }
11
+ if (features.has('orderedList')) {
12
+ const ordered = markdownEditorEscapeRegex.ORDERED_MARKER_REGEX.exec(line);
13
+ if (ordered) {
14
+ return line.replace(markdownEditorEscapeRegex.ORDERED_MARKER_REGEX, `$1\\$2`);
15
+ }
16
+ }
17
+ if (features.has('blockquote') && markdownEditorEscapeRegex.BLOCKQUOTE_MARKER_REGEX.test(line)) {
18
+ return `\\${line}`;
19
+ }
20
+ if (features.has('divider') && markdownEditorEscapeRegex.DIVIDER_LINE_REGEX.test(line)) {
21
+ return `\\${line}`;
22
+ }
23
+ return line;
24
+ }
@@ -0,0 +1 @@
1
+ export declare function unwrapListParagraphs(html: string): string;
@@ -0,0 +1,4 @@
1
+ import { EDITOR_MARKDOWN_REGEX } from "../constants.mjs";
2
+ export function unwrapListParagraphs(html) {
3
+ return html.replace(EDITOR_MARKDOWN_REGEX.SINGLE_PARAGRAPH_ITEM, '<li>$1</li>').replace(EDITOR_MARKDOWN_REGEX.PARAGRAPH_BEFORE_NESTED_LIST, '<li>$1');
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { Schema } from '@tiptap/pm/model';
2
+ import type { MarkdownOptions } from '../../../_utils/markdown';
3
+ import { MarkdownParser } from 'prosemirror-markdown';
4
+ export declare function createMarkdownParser(schema: Schema, options?: MarkdownOptions): MarkdownParser;
@@ -0,0 +1,36 @@
1
+ import { MarkdownParser } from 'prosemirror-markdown';
2
+ import { createMarkdownRenderer, normalizeOptions } from "../../../_utils/markdown/index.mjs";
3
+ import { MARKDOWN_EDITOR_TOKEN_PARSE_SPECS } from "./constants.mjs";
4
+ function imageToMarkdown(token) {
5
+ var _a;
6
+ const source = (_a = token.attrGet('src')) !== null && _a !== void 0 ? _a : '';
7
+ const title = token.attrGet('title');
8
+ const address = title ? `${source} "${title}"` : source;
9
+ return `![${token.content}](${address})`;
10
+ }
11
+ function imagesToTextCoreRule(state) {
12
+ for (const token of state.tokens) {
13
+ if (token.type !== 'inline' || !token.children) continue;
14
+ for (const child of token.children) {
15
+ if (child.type !== 'image') continue;
16
+ child.type = 'text';
17
+ child.content = imageToMarkdown(child);
18
+ child.children = null;
19
+ child.attrs = null;
20
+ }
21
+ }
22
+ }
23
+ export function createMarkdownParser(schema, options) {
24
+ var _a, _b;
25
+ const tokenizer = createMarkdownRenderer(normalizeOptions(options));
26
+ tokenizer.core.ruler.before('u_prune_empty_blocks', 'u_editor_images_to_text', imagesToTextCoreRule);
27
+ const specs = {};
28
+ for (const type of Object.keys(MARKDOWN_EDITOR_TOKEN_PARSE_SPECS)) {
29
+ const spec = MARKDOWN_EDITOR_TOKEN_PARSE_SPECS[type];
30
+ const name = (_b = (_a = spec.block) !== null && _a !== void 0 ? _a : spec.node) !== null && _b !== void 0 ? _b : spec.mark;
31
+ specs[type] = name && !schema.nodes[name] && !schema.marks[name] ? {
32
+ ignore: true
33
+ } : spec;
34
+ }
35
+ return new MarkdownParser(schema, tokenizer, specs);
36
+ }
@@ -0,0 +1,10 @@
1
+ import type { MarkdownSerializer } from 'prosemirror-markdown';
2
+ import type { NormalizedMarkdownOptions } from '../../../_utils/markdown';
3
+ import type { MarkdownSerializerStateOptions, SerializerStateConstructor } from '../interface';
4
+ declare const SerializerState: SerializerStateConstructor;
5
+ export declare class EditorMarkdownSerializerState extends SerializerState {
6
+ private readonly markdownOptions;
7
+ constructor(nodes: MarkdownSerializer['nodes'], marks: MarkdownSerializer['marks'], options: MarkdownSerializer['options'] & MarkdownSerializerStateOptions, markdownOptions: NormalizedMarkdownOptions);
8
+ esc(line: string, startOfLine?: boolean): string;
9
+ }
10
+ export {};
@@ -0,0 +1,12 @@
1
+ import { MarkdownSerializerState } from 'prosemirror-markdown';
2
+ import { escapeLineStart } from "./escape.mjs";
3
+ const SerializerState = MarkdownSerializerState;
4
+ export class EditorMarkdownSerializerState extends SerializerState {
5
+ constructor(nodes, marks, options, markdownOptions) {
6
+ super(nodes, marks, options);
7
+ this.markdownOptions = markdownOptions;
8
+ }
9
+ esc(line, startOfLine = false) {
10
+ return startOfLine ? escapeLineStart(line, this.markdownOptions) : line;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ import type { MarkdownSerializer } from 'prosemirror-markdown';
2
+ import type { MarkdownOptions } from '../../../_utils/markdown';
3
+ export declare function createMarkdownSerializer(options?: MarkdownOptions): MarkdownSerializer;
@@ -0,0 +1,8 @@
1
+ import { normalizeOptions } from "../../../_utils/markdown/index.mjs";
2
+ import { MARKDOWN_EDITOR_MARK_SERIALIZERS, MARKDOWN_EDITOR_NODE_SERIALIZERS } from "./constants.mjs";
3
+ import { EditorMarkdownSerializer } from "./editor-serializer.mjs";
4
+ export function createMarkdownSerializer(options) {
5
+ return new EditorMarkdownSerializer(MARKDOWN_EDITOR_NODE_SERIALIZERS, MARKDOWN_EDITOR_MARK_SERIALIZERS, {
6
+ hardBreakNodeName: 'hardBreak'
7
+ }, normalizeOptions(options));
8
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,119 @@
1
+ import { markdownContentStyle } from "../../../_styles/markdown/markdown-content.cssr.mjs";
2
+ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
3
+ // vars:
4
+ // --u-bezier
5
+ // --u-editor-background-color
6
+ // --u-editor-border-color
7
+ // --u-editor-border-radius
8
+ // --u-editor-toolbar-background-color
9
+ // --u-editor-toolbar-divider-color
10
+ // --u-editor-toolbar-button-color-active
11
+ // --u-editor-toolbar-button-color-hover
12
+ // --u-editor-toolbar-icon-color-disabled
13
+ // --u-editor-toolbar-icon-color-active
14
+ // --u-editor-toolbar-icon-color-hover
15
+ // --u-editor-toolbar-icon-color
16
+ // --u-editor-content-background-color
17
+ // --u-editor-content-text-color
18
+ // --u-editor-placeholder-color
19
+ // --u-editor-send-button-color
20
+ // --u-editor-block-type-menu-width
21
+ // --u-editor-block-type-menu-color
22
+ // --u-editor-block-type-menu-border-color
23
+ // --u-editor-block-type-menu-border-radius
24
+ // --u-editor-block-type-menu-box-shadow
25
+ // --u-editor-markdown-quote-border-color
26
+ // --u-editor-markdown-quote-text-color
27
+ // --u-editor-markdown-quote-background-color
28
+ // --u-editor-markdown-quote-marker-color
29
+ // --u-editor-markdown-divider-color
30
+ // --u-editor-markdown-h1-font-size
31
+ // --u-editor-markdown-h2-font-size
32
+ // --u-editor-markdown-h3-font-size
33
+ // --u-editor-markdown-text-font-size
34
+ // --u-editor-markdown-h1-line-height
35
+ // --u-editor-markdown-h2-line-height
36
+ // --u-editor-markdown-h3-line-height
37
+ // --u-editor-markdown-text-line-height
38
+ export default c([cB('editor', `
39
+ box-sizing: border-box;
40
+ display: flex;
41
+ flex-direction: column;
42
+ width: 100%;
43
+ background-color: var(--u-editor-background-color);
44
+ border-radius: 12px;
45
+ `, [cE('toolbar', `
46
+ padding: 8px 12px;
47
+ border-top-left-radius: 12px;
48
+ border-top-right-radius: 12px;
49
+ background-color: var(--u-editor-toolbar-background-color);
50
+ `, [cM('standalone', 'border-radius: var(--u-editor-border-radius);'), cE('toolbar-divider', `
51
+ font-size: 24px;
52
+ margin: 0;
53
+ `), cE('toolbar-block-type', `
54
+ width: 71px;
55
+ `)]), cE('content-wrapper', `
56
+ display: flex;
57
+ align-items: flex-start;
58
+ gap: 8px;
59
+ padding: 8px 10px;
60
+ border: 2px solid var(--u-editor-border-color);
61
+ border-bottom-left-radius: 12px;
62
+ border-bottom-right-radius: 12px;
63
+ `, [cM('standalone', 'border-radius: var(--u-editor-border-radius);'), cE('content-scroller', `
64
+ flex: 1;
65
+ min-width: 0;
66
+ height: auto;
67
+ `), cE('send-button', `
68
+ flex-shrink: 0;
69
+ `)]), cE('content', `
70
+ white-space: normal;
71
+ width: 100%;
72
+ min-width: 0;
73
+ background-color: var(--u-editor-content-background-color);
74
+ color: var(--u-editor-content-text-color);
75
+ font-size: var(--u-editor-markdown-text-font-size);
76
+ line-height: var(--u-editor-markdown-text-line-height);
77
+ word-wrap: break-word;
78
+ `, [cM('scrollable', `
79
+ overflow-y: auto;
80
+ scrollbar-width: none;
81
+ `, [c('&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb', `
82
+ width: 0;
83
+ height: 0;
84
+ display: none;
85
+ `)]), cE('editable', 'outline: none;', [c('.is-editor-empty:first-child::before', `
86
+ content: attr(data-placeholder);
87
+ float: left;
88
+ height: 0;
89
+ pointer-events: none;
90
+ color: var(--u-editor-placeholder-color);
91
+ `)]), ...markdownContentStyle({
92
+ cssVarPrefix: '--u-editor-markdown'
93
+ })])]), cB('editor-block-type-menu', `
94
+ box-sizing: border-box;
95
+ width: var(--u-editor-block-type-menu-width);
96
+ height: auto;
97
+ max-height: none;
98
+ padding: 8px;
99
+ background-color: var(--u-editor-block-type-menu-color);
100
+ border: 1px solid var(--u-editor-block-type-menu-border-color);
101
+ border-radius: var(--u-editor-block-type-menu-border-radius);
102
+ box-shadow: var(--u-editor-block-type-menu-box-shadow);
103
+ `, [cB('editor-block-type-option', `
104
+ min-height: unset;
105
+ padding: 12px 16px;
106
+ border-radius: 12px;
107
+ `, [cM('heading1', `
108
+ font-size: var(--u-editor-markdown-h1-font-size);
109
+ line-height: var(--u-editor-markdown-h1-line-height);
110
+ `), cM('heading2', `
111
+ font-size: var(--u-editor-markdown-h2-font-size);
112
+ line-height: var(--u-editor-markdown-h2-line-height);
113
+ `), cM('heading3', `
114
+ font-size: var(--u-editor-markdown-h3-font-size);
115
+ line-height: var(--u-editor-markdown-h3-line-height);
116
+ `), cM('paragraph', `
117
+ font-size: var(--u-editor-markdown-text-font-size);
118
+ line-height: var(--u-editor-markdown-text-line-height);
119
+ `)])])]);