vditor 3.8.7

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 (419) hide show
  1. package/CHANGELOG.md +1072 -0
  2. package/LICENSE +21 -0
  3. package/README.md +649 -0
  4. package/dist/css/content-theme/ant-design.css +210 -0
  5. package/dist/css/content-theme/dark.css +123 -0
  6. package/dist/css/content-theme/light.css +101 -0
  7. package/dist/css/content-theme/wechat.css +94 -0
  8. package/dist/images/.DS_Store +0 -0
  9. package/dist/images/emoji/b3log.png +0 -0
  10. package/dist/images/emoji/chainbook.png +0 -0
  11. package/dist/images/emoji/doge.png +0 -0
  12. package/dist/images/emoji/hacpai.png +0 -0
  13. package/dist/images/emoji/huaji.gif +0 -0
  14. package/dist/images/emoji/latke.png +0 -0
  15. package/dist/images/emoji/lute.png +0 -0
  16. package/dist/images/emoji/octocat.png +0 -0
  17. package/dist/images/emoji/pipe.png +0 -0
  18. package/dist/images/emoji/solo.png +0 -0
  19. package/dist/images/emoji/sym.png +0 -0
  20. package/dist/images/emoji/trollface.png +0 -0
  21. package/dist/images/emoji/vditor.png +0 -0
  22. package/dist/images/emoji/wide.png +0 -0
  23. package/dist/images/emoji/wulian.png +0 -0
  24. package/dist/images/img-loading.svg +1 -0
  25. package/dist/images/logo.png +0 -0
  26. package/dist/index.css +28 -0
  27. package/dist/index.d.ts +75 -0
  28. package/dist/index.min.js +15353 -0
  29. package/dist/js/.DS_Store +0 -0
  30. package/dist/js/abcjs/abcjs_basic.min.js +3 -0
  31. package/dist/js/echarts/echarts.min.js +23 -0
  32. package/dist/js/flowchart.js/flowchart.min.js +9 -0
  33. package/dist/js/graphviz/full.render.js +90 -0
  34. package/dist/js/graphviz/viz.js +333 -0
  35. package/dist/js/highlight.js/highlight.pack.js +1617 -0
  36. package/dist/js/highlight.js/styles/abap.css +155 -0
  37. package/dist/js/highlight.js/styles/algol.css +142 -0
  38. package/dist/js/highlight.js/styles/algol_nu.css +90 -0
  39. package/dist/js/highlight.js/styles/ant-design.css +469 -0
  40. package/dist/js/highlight.js/styles/arduino.css +155 -0
  41. package/dist/js/highlight.js/styles/autumn.css +136 -0
  42. package/dist/js/highlight.js/styles/borland.css +146 -0
  43. package/dist/js/highlight.js/styles/bw.css +149 -0
  44. package/dist/js/highlight.js/styles/colorful.css +156 -0
  45. package/dist/js/highlight.js/styles/dracula.css +139 -0
  46. package/dist/js/highlight.js/styles/emacs.css +166 -0
  47. package/dist/js/highlight.js/styles/friendly.css +182 -0
  48. package/dist/js/highlight.js/styles/fruity.css +121 -0
  49. package/dist/js/highlight.js/styles/github.css +173 -0
  50. package/dist/js/highlight.js/styles/igor.css +122 -0
  51. package/dist/js/highlight.js/styles/lovelace.css +145 -0
  52. package/dist/js/highlight.js/styles/manni.css +138 -0
  53. package/dist/js/highlight.js/styles/monokai.css +131 -0
  54. package/dist/js/highlight.js/styles/monokailight.css +179 -0
  55. package/dist/js/highlight.js/styles/murphy.css +144 -0
  56. package/dist/js/highlight.js/styles/native.css +163 -0
  57. package/dist/js/highlight.js/styles/paraiso-dark.css +136 -0
  58. package/dist/js/highlight.js/styles/paraiso-light.css +135 -0
  59. package/dist/js/highlight.js/styles/pastie.css +180 -0
  60. package/dist/js/highlight.js/styles/perldoc.css +140 -0
  61. package/dist/js/highlight.js/styles/pygments.css +158 -0
  62. package/dist/js/highlight.js/styles/rainbow_dash.css +163 -0
  63. package/dist/js/highlight.js/styles/rrt.css +158 -0
  64. package/dist/js/highlight.js/styles/solarized-dark.css +145 -0
  65. package/dist/js/highlight.js/styles/solarized-dark256.css +145 -0
  66. package/dist/js/highlight.js/styles/solarized-light.css +162 -0
  67. package/dist/js/highlight.js/styles/swapoff.css +144 -0
  68. package/dist/js/highlight.js/styles/tango.css +183 -0
  69. package/dist/js/highlight.js/styles/trac.css +166 -0
  70. package/dist/js/highlight.js/styles/vim.css +143 -0
  71. package/dist/js/highlight.js/styles/vs.css +112 -0
  72. package/dist/js/highlight.js/styles/xcode.css +173 -0
  73. package/dist/js/i18n/en_US.js +85 -0
  74. package/dist/js/i18n/ja_JP.js +85 -0
  75. package/dist/js/i18n/ko_KR.js +85 -0
  76. package/dist/js/i18n/ru_RU.js +85 -0
  77. package/dist/js/i18n/zh_CN.js +85 -0
  78. package/dist/js/i18n/zh_TW.js +85 -0
  79. package/dist/js/icons/ant.js +174 -0
  80. package/dist/js/icons/material.js +195 -0
  81. package/dist/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
  82. package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  83. package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  84. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  85. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  86. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  87. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  88. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  89. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  90. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  91. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  92. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  93. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  94. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  95. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  96. package/dist/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
  97. package/dist/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  98. package/dist/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  99. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  100. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  101. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  102. package/dist/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
  103. package/dist/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  104. package/dist/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  105. package/dist/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
  106. package/dist/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  107. package/dist/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  108. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  109. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  110. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  111. package/dist/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
  112. package/dist/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  113. package/dist/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  114. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  115. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  116. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  117. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  118. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  119. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  120. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  121. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  122. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  123. package/dist/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
  124. package/dist/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
  125. package/dist/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  126. package/dist/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
  127. package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  128. package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  129. package/dist/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
  130. package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  131. package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  132. package/dist/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
  133. package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  134. package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  135. package/dist/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
  136. package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  137. package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  138. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  139. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  140. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  141. package/dist/js/katex/katex.min.css +1 -0
  142. package/dist/js/katex/katex.min.js +2 -0
  143. package/dist/js/lute/.DS_Store +0 -0
  144. package/dist/js/lute/lute.min.js +46 -0
  145. package/dist/js/mathjax/.DS_Store +0 -0
  146. package/dist/js/mathjax/LICENSE +202 -0
  147. package/dist/js/mathjax/a11y/assistive-mml.js +1 -0
  148. package/dist/js/mathjax/a11y/complexity.js +1 -0
  149. package/dist/js/mathjax/a11y/explorer.js +1 -0
  150. package/dist/js/mathjax/a11y/semantic-enrich.js +1 -0
  151. package/dist/js/mathjax/input/asciimath.js +1 -0
  152. package/dist/js/mathjax/input/mml/entities.js +1 -0
  153. package/dist/js/mathjax/input/mml.js +1 -0
  154. package/dist/js/mathjax/input/tex/extensions/action.js +1 -0
  155. package/dist/js/mathjax/input/tex/extensions/all-packages.js +1 -0
  156. package/dist/js/mathjax/input/tex/extensions/ams.js +1 -0
  157. package/dist/js/mathjax/input/tex/extensions/amscd.js +1 -0
  158. package/dist/js/mathjax/input/tex/extensions/autoload.js +1 -0
  159. package/dist/js/mathjax/input/tex/extensions/bbox.js +1 -0
  160. package/dist/js/mathjax/input/tex/extensions/boldsymbol.js +1 -0
  161. package/dist/js/mathjax/input/tex/extensions/braket.js +1 -0
  162. package/dist/js/mathjax/input/tex/extensions/bussproofs.js +1 -0
  163. package/dist/js/mathjax/input/tex/extensions/cancel.js +1 -0
  164. package/dist/js/mathjax/input/tex/extensions/color.js +1 -0
  165. package/dist/js/mathjax/input/tex/extensions/colorV2.js +1 -0
  166. package/dist/js/mathjax/input/tex/extensions/configMacros.js +1 -0
  167. package/dist/js/mathjax/input/tex/extensions/enclose.js +1 -0
  168. package/dist/js/mathjax/input/tex/extensions/extpfeil.js +1 -0
  169. package/dist/js/mathjax/input/tex/extensions/html.js +1 -0
  170. package/dist/js/mathjax/input/tex/extensions/mhchem.js +1 -0
  171. package/dist/js/mathjax/input/tex/extensions/newcommand.js +1 -0
  172. package/dist/js/mathjax/input/tex/extensions/noerrors.js +1 -0
  173. package/dist/js/mathjax/input/tex/extensions/noundefined.js +1 -0
  174. package/dist/js/mathjax/input/tex/extensions/physics.js +1 -0
  175. package/dist/js/mathjax/input/tex/extensions/require.js +1 -0
  176. package/dist/js/mathjax/input/tex/extensions/tagFormat.js +1 -0
  177. package/dist/js/mathjax/input/tex/extensions/textmacros.js +1 -0
  178. package/dist/js/mathjax/input/tex/extensions/unicode.js +1 -0
  179. package/dist/js/mathjax/input/tex/extensions/verb.js +1 -0
  180. package/dist/js/mathjax/input/tex-base.js +1 -0
  181. package/dist/js/mathjax/input/tex-full.js +1 -0
  182. package/dist/js/mathjax/input/tex.js +1 -0
  183. package/dist/js/mathjax/sre/mathmaps/de.js +104 -0
  184. package/dist/js/mathjax/sre/mathmaps/en.js +110 -0
  185. package/dist/js/mathjax/sre/mathmaps/es.js +104 -0
  186. package/dist/js/mathjax/sre/mathmaps/fr.js +104 -0
  187. package/dist/js/mathjax/sre/mathmaps/mathmaps_ie.js +518 -0
  188. package/dist/js/mathjax/sre/mathmaps/nemeth.js +104 -0
  189. package/dist/js/mathjax/sre/sre-node.js +11 -0
  190. package/dist/js/mathjax/sre/sre_browser.js +1633 -0
  191. package/dist/js/mathjax/tex-svg-full.js +1 -0
  192. package/dist/js/mermaid/mermaid.min.js +32 -0
  193. package/dist/js/plantuml/plantuml-encoder.min.js +1 -0
  194. package/dist/method.d.ts +48 -0
  195. package/dist/method.min.js +2346 -0
  196. package/dist/ts/constants.d.ts +43 -0
  197. package/dist/ts/devtools/index.d.ts +7 -0
  198. package/dist/ts/export/index.d.ts +5 -0
  199. package/dist/ts/hint/index.d.ts +14 -0
  200. package/dist/ts/ir/expandMarker.d.ts +2 -0
  201. package/dist/ts/ir/highlightToolbarIR.d.ts +2 -0
  202. package/dist/ts/ir/index.d.ts +13 -0
  203. package/dist/ts/ir/input.d.ts +2 -0
  204. package/dist/ts/ir/process.d.ts +9 -0
  205. package/dist/ts/ir/processKeydown.d.ts +2 -0
  206. package/dist/ts/markdown/abcRender.d.ts +1 -0
  207. package/dist/ts/markdown/adapterRender.d.ts +33 -0
  208. package/dist/ts/markdown/anchorRender.d.ts +1 -0
  209. package/dist/ts/markdown/chartRender.d.ts +1 -0
  210. package/dist/ts/markdown/codeRender.d.ts +1 -0
  211. package/dist/ts/markdown/flowchartRender.d.ts +1 -0
  212. package/dist/ts/markdown/getHTML.d.ts +2 -0
  213. package/dist/ts/markdown/getMarkdown.d.ts +2 -0
  214. package/dist/ts/markdown/graphvizRender.d.ts +1 -0
  215. package/dist/ts/markdown/highlightRender.d.ts +2 -0
  216. package/dist/ts/markdown/lazyLoadImageRender.d.ts +6 -0
  217. package/dist/ts/markdown/mathRender.d.ts +10 -0
  218. package/dist/ts/markdown/mediaRender.d.ts +1 -0
  219. package/dist/ts/markdown/mermaidRender.d.ts +1 -0
  220. package/dist/ts/markdown/mindmapRender.d.ts +1 -0
  221. package/dist/ts/markdown/outlineRender.d.ts +2 -0
  222. package/dist/ts/markdown/plantumlRender.d.ts +1 -0
  223. package/dist/ts/markdown/previewRender.d.ts +3 -0
  224. package/dist/ts/markdown/setLute.d.ts +2 -0
  225. package/dist/ts/markdown/speechRender.d.ts +7 -0
  226. package/dist/ts/outline/index.d.ts +7 -0
  227. package/dist/ts/preview/image.d.ts +2 -0
  228. package/dist/ts/preview/index.d.ts +9 -0
  229. package/dist/ts/resize/index.d.ts +6 -0
  230. package/dist/ts/sv/index.d.ts +13 -0
  231. package/dist/ts/sv/inputEvent.d.ts +2 -0
  232. package/dist/ts/sv/process.d.ts +12 -0
  233. package/dist/ts/sv/processKeydown.d.ts +2 -0
  234. package/dist/ts/tip/index.d.ts +6 -0
  235. package/dist/ts/toolbar/Both.d.ts +5 -0
  236. package/dist/ts/toolbar/Br.d.ts +4 -0
  237. package/dist/ts/toolbar/CodeTheme.d.ts +6 -0
  238. package/dist/ts/toolbar/ContentTheme.d.ts +6 -0
  239. package/dist/ts/toolbar/Counter.d.ts +6 -0
  240. package/dist/ts/toolbar/Custom.d.ts +5 -0
  241. package/dist/ts/toolbar/Devtools.d.ts +5 -0
  242. package/dist/ts/toolbar/Divider.d.ts +4 -0
  243. package/dist/ts/toolbar/EditMode.d.ts +8 -0
  244. package/dist/ts/toolbar/Emoji.d.ts +7 -0
  245. package/dist/ts/toolbar/Export.d.ts +6 -0
  246. package/dist/ts/toolbar/Fullscreen.d.ts +6 -0
  247. package/dist/ts/toolbar/Headings.d.ts +7 -0
  248. package/dist/ts/toolbar/Help.d.ts +5 -0
  249. package/dist/ts/toolbar/Indent.d.ts +5 -0
  250. package/dist/ts/toolbar/Info.d.ts +5 -0
  251. package/dist/ts/toolbar/InsertAfter.d.ts +5 -0
  252. package/dist/ts/toolbar/InsertBefore.d.ts +5 -0
  253. package/dist/ts/toolbar/MenuItem.d.ts +5 -0
  254. package/dist/ts/toolbar/Outdent.d.ts +5 -0
  255. package/dist/ts/toolbar/Outline.d.ts +5 -0
  256. package/dist/ts/toolbar/Preview.d.ts +6 -0
  257. package/dist/ts/toolbar/Record.d.ts +6 -0
  258. package/dist/ts/toolbar/Redo.d.ts +5 -0
  259. package/dist/ts/toolbar/Undo.d.ts +5 -0
  260. package/dist/ts/toolbar/Upload.d.ts +6 -0
  261. package/dist/ts/toolbar/index.d.ts +9 -0
  262. package/dist/ts/toolbar/setToolbar.d.ts +21 -0
  263. package/dist/ts/ui/initUI.d.ts +9 -0
  264. package/dist/ts/ui/setCodeTheme.d.ts +1 -0
  265. package/dist/ts/ui/setContentTheme.d.ts +1 -0
  266. package/dist/ts/ui/setPreviewMode.d.ts +2 -0
  267. package/dist/ts/ui/setTheme.d.ts +2 -0
  268. package/dist/ts/undo/index.d.ts +19 -0
  269. package/dist/ts/upload/getElement.d.ts +2 -0
  270. package/dist/ts/upload/index.d.ts +9 -0
  271. package/dist/ts/upload/setHeaders.d.ts +2 -0
  272. package/dist/ts/util/Options.d.ts +8 -0
  273. package/dist/ts/util/RecordMedia.d.ts +18 -0
  274. package/dist/ts/util/addScript.d.ts +2 -0
  275. package/dist/ts/util/addStyle.d.ts +1 -0
  276. package/dist/ts/util/code160to32.d.ts +1 -0
  277. package/dist/ts/util/compatibility.d.ts +7 -0
  278. package/dist/ts/util/editorCommonEvent.d.ts +10 -0
  279. package/dist/ts/util/fixBrowserBehavior.d.ts +40 -0
  280. package/dist/ts/util/getSelectText.d.ts +1 -0
  281. package/dist/ts/util/hasClosest.d.ts +9 -0
  282. package/dist/ts/util/hasClosestByHeadings.d.ts +2 -0
  283. package/dist/ts/util/highlightToolbar.d.ts +2 -0
  284. package/dist/ts/util/hotKey.d.ts +1 -0
  285. package/dist/ts/util/log.d.ts +1 -0
  286. package/dist/ts/util/merge.d.ts +1 -0
  287. package/dist/ts/util/processCode.d.ts +3 -0
  288. package/dist/ts/util/selection.d.ts +15 -0
  289. package/dist/ts/util/toc.d.ts +6 -0
  290. package/dist/ts/wysiwyg/afterRenderEvent.d.ts +6 -0
  291. package/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +5 -0
  292. package/dist/ts/wysiwyg/index.d.ts +20 -0
  293. package/dist/ts/wysiwyg/inlineTag.d.ts +11 -0
  294. package/dist/ts/wysiwyg/input.d.ts +2 -0
  295. package/dist/ts/wysiwyg/processKeydown.d.ts +3 -0
  296. package/dist/ts/wysiwyg/renderDomByMd.d.ts +6 -0
  297. package/dist/ts/wysiwyg/setHeading.d.ts +3 -0
  298. package/dist/ts/wysiwyg/showCode.d.ts +2 -0
  299. package/dist/ts/wysiwyg/toolbarEvent.d.ts +2 -0
  300. package/dist/types/index.d.ts +772 -0
  301. package/package.json +69 -0
  302. package/src/assets/.DS_Store +0 -0
  303. package/src/assets/scss/_content.scss +284 -0
  304. package/src/assets/scss/_hint.scss +67 -0
  305. package/src/assets/scss/_ir.scss +275 -0
  306. package/src/assets/scss/_panel.scss +110 -0
  307. package/src/assets/scss/_reset.scss +603 -0
  308. package/src/assets/scss/_sv.scss +133 -0
  309. package/src/assets/scss/_toolbar.scss +180 -0
  310. package/src/assets/scss/_tooltipped.scss +171 -0
  311. package/src/assets/scss/_wysiwyg.scss +195 -0
  312. package/src/assets/scss/index.scss +83 -0
  313. package/src/index.ts +502 -0
  314. package/src/method.ts +65 -0
  315. package/src/ts/.DS_Store +0 -0
  316. package/src/ts/constants.ts +64 -0
  317. package/src/ts/devtools/index.ts +83 -0
  318. package/src/ts/export/index.ts +81 -0
  319. package/src/ts/hint/index.ts +267 -0
  320. package/src/ts/ir/expandMarker.ts +79 -0
  321. package/src/ts/ir/highlightToolbarIR.ts +97 -0
  322. package/src/ts/ir/index.ts +251 -0
  323. package/src/ts/ir/input.ts +231 -0
  324. package/src/ts/ir/process.ts +220 -0
  325. package/src/ts/ir/processKeydown.ts +238 -0
  326. package/src/ts/markdown/abcRender.ts +27 -0
  327. package/src/ts/markdown/adapterRender.ts +33 -0
  328. package/src/ts/markdown/anchorRender.ts +19 -0
  329. package/src/ts/markdown/chartRender.ts +37 -0
  330. package/src/ts/markdown/codeRender.ts +50 -0
  331. package/src/ts/markdown/flowchartRender.ts +25 -0
  332. package/src/ts/markdown/getHTML.ts +11 -0
  333. package/src/ts/markdown/getMarkdown.ts +12 -0
  334. package/src/ts/markdown/graphvizRender.ts +49 -0
  335. package/src/ts/markdown/highlightRender.ts +82 -0
  336. package/src/ts/markdown/lazyLoadImageRender.ts +56 -0
  337. package/src/ts/markdown/mathRender.ts +142 -0
  338. package/src/ts/markdown/mediaRender.ts +78 -0
  339. package/src/ts/markdown/mermaidRender.ts +127 -0
  340. package/src/ts/markdown/mindmapRender.ts +74 -0
  341. package/src/ts/markdown/outlineRender.ts +106 -0
  342. package/src/ts/markdown/plantumlRender.ts +32 -0
  343. package/src/ts/markdown/previewRender.ts +143 -0
  344. package/src/ts/markdown/setLute.ts +23 -0
  345. package/src/ts/markdown/speechRender.ts +97 -0
  346. package/src/ts/outline/index.ts +47 -0
  347. package/src/ts/preview/image.ts +50 -0
  348. package/src/ts/preview/index.ts +266 -0
  349. package/src/ts/resize/index.ts +57 -0
  350. package/src/ts/sv/index.ts +119 -0
  351. package/src/ts/sv/inputEvent.ts +207 -0
  352. package/src/ts/sv/process.ts +210 -0
  353. package/src/ts/sv/processKeydown.ts +196 -0
  354. package/src/ts/tip/index.ts +31 -0
  355. package/src/ts/toolbar/Both.ts +28 -0
  356. package/src/ts/toolbar/Br.ts +8 -0
  357. package/src/ts/toolbar/CodeTheme.ts +36 -0
  358. package/src/ts/toolbar/ContentTheme.ts +35 -0
  359. package/src/ts/toolbar/Counter.ts +40 -0
  360. package/src/ts/toolbar/Custom.ts +17 -0
  361. package/src/ts/toolbar/Devtools.ts +28 -0
  362. package/src/ts/toolbar/Divider.ts +8 -0
  363. package/src/ts/toolbar/EditMode.ts +193 -0
  364. package/src/ts/toolbar/Emoji.ts +75 -0
  365. package/src/ts/toolbar/Export.ts +41 -0
  366. package/src/ts/toolbar/Fullscreen.ts +61 -0
  367. package/src/ts/toolbar/Headings.ts +69 -0
  368. package/src/ts/toolbar/Help.ts +30 -0
  369. package/src/ts/toolbar/Indent.ts +25 -0
  370. package/src/ts/toolbar/Info.ts +43 -0
  371. package/src/ts/toolbar/InsertAfter.ts +18 -0
  372. package/src/ts/toolbar/InsertBefore.ts +18 -0
  373. package/src/ts/toolbar/MenuItem.ts +54 -0
  374. package/src/ts/toolbar/Outdent.ts +24 -0
  375. package/src/ts/toolbar/Outline.ts +21 -0
  376. package/src/ts/toolbar/Preview.ts +55 -0
  377. package/src/ts/toolbar/Record.ts +60 -0
  378. package/src/ts/toolbar/Redo.ts +18 -0
  379. package/src/ts/toolbar/Undo.ts +18 -0
  380. package/src/ts/toolbar/Upload.ts +41 -0
  381. package/src/ts/toolbar/index.ts +175 -0
  382. package/src/ts/toolbar/setToolbar.ts +120 -0
  383. package/src/ts/ui/initUI.ts +164 -0
  384. package/src/ts/ui/setCodeTheme.ts +16 -0
  385. package/src/ts/ui/setContentTheme.ts +15 -0
  386. package/src/ts/ui/setPreviewMode.ts +31 -0
  387. package/src/ts/ui/setTheme.ts +7 -0
  388. package/src/ts/undo/index.ts +255 -0
  389. package/src/ts/upload/getElement.ts +10 -0
  390. package/src/ts/upload/index.ts +257 -0
  391. package/src/ts/upload/setHeaders.ts +10 -0
  392. package/src/ts/util/Options.ts +429 -0
  393. package/src/ts/util/RecordMedia.ts +170 -0
  394. package/src/ts/util/addScript.ts +40 -0
  395. package/src/ts/util/addStyle.ts +10 -0
  396. package/src/ts/util/code160to32.ts +4 -0
  397. package/src/ts/util/compatibility.ts +67 -0
  398. package/src/ts/util/editorCommonEvent.ts +254 -0
  399. package/src/ts/util/fixBrowserBehavior.ts +1459 -0
  400. package/src/ts/util/getSelectText.ts +8 -0
  401. package/src/ts/util/hasClosest.ts +154 -0
  402. package/src/ts/util/hasClosestByHeadings.ts +27 -0
  403. package/src/ts/util/highlightToolbar.ts +10 -0
  404. package/src/ts/util/hotKey.ts +54 -0
  405. package/src/ts/util/log.ts +6 -0
  406. package/src/ts/util/merge.ts +18 -0
  407. package/src/ts/util/processCode.ts +90 -0
  408. package/src/ts/util/selection.ts +275 -0
  409. package/src/ts/util/toc.ts +83 -0
  410. package/src/ts/wysiwyg/afterRenderEvent.ts +41 -0
  411. package/src/ts/wysiwyg/highlightToolbarWYSIWYG.ts +1105 -0
  412. package/src/ts/wysiwyg/index.ts +547 -0
  413. package/src/ts/wysiwyg/inlineTag.ts +129 -0
  414. package/src/ts/wysiwyg/input.ts +210 -0
  415. package/src/ts/wysiwyg/processKeydown.ts +363 -0
  416. package/src/ts/wysiwyg/renderDomByMd.ts +18 -0
  417. package/src/ts/wysiwyg/setHeading.ts +43 -0
  418. package/src/ts/wysiwyg/showCode.ts +32 -0
  419. package/src/ts/wysiwyg/toolbarEvent.ts +333 -0
@@ -0,0 +1,110 @@
1
+ /**
2
+ * panel.
3
+ *
4
+ * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
5
+ * @version 1.0.0.0, Jan 22, 2020
6
+ */
7
+
8
+ @keyframes scale-in {
9
+ 0% {
10
+ opacity: 0;
11
+ transform: scale(.5);
12
+ }
13
+ 100% {
14
+ opacity: 1;
15
+ transform: scale(1);
16
+ }
17
+ }
18
+
19
+ .vditor {
20
+ &-panel {
21
+ background-color: var(--panel-background-color);
22
+ position: absolute;
23
+ box-shadow: var(--panel-shadow);
24
+ border-radius: 3px;
25
+ padding: 5px;
26
+ z-index: 3;
27
+ font-size: 14px;
28
+ display: none;
29
+ user-select: none;
30
+ max-width: 320px;
31
+ min-width: 80px;
32
+ animation-duration: .15s;
33
+ animation-name: scale-in;
34
+ animation-timing-function: cubic-bezier(.2, 0, .13, 1.5);
35
+ color: var(--toolbar-icon-color);
36
+
37
+ &--none {
38
+ padding: 0;
39
+ animation: none;
40
+ min-width: auto;
41
+ max-width: none;
42
+ white-space: nowrap;
43
+ opacity: .86;
44
+ }
45
+
46
+ &--arrow:before {
47
+ position: absolute;
48
+ width: 0;
49
+ height: 0;
50
+ pointer-events: none;
51
+ content: " ";
52
+ border: 7px solid transparent;
53
+ top: -14px;
54
+ left: 5px;
55
+ border-bottom-color: var(--panel-background-color);
56
+ }
57
+
58
+ &--left {
59
+ right: 0;
60
+
61
+ &.vditor-panel--arrow:before {
62
+ right: 5px;
63
+ left: auto;
64
+ }
65
+ }
66
+ }
67
+
68
+ &-input {
69
+ border: 0;
70
+ padding: 3px 5px;
71
+ background-color: var(--panel-background-color);
72
+ font-size: 12px;
73
+ color: var(--textarea-text-color);
74
+
75
+ &:focus {
76
+ background-color: var(--toolbar-background-color);
77
+ outline: none;
78
+ }
79
+ }
80
+
81
+ &-icon {
82
+ color: var(--toolbar-icon-color);
83
+ cursor: pointer;
84
+ float: left;
85
+ padding: 4px 5px;
86
+ height: 21px;
87
+ width: 23px;
88
+ background-color: transparent;
89
+ border: 0;
90
+ box-sizing: border-box;
91
+
92
+ &:hover,
93
+ &--current {
94
+ color: var(--toolbar-icon-hover-color);
95
+ background-color: transparent;
96
+ }
97
+
98
+ &:focus {
99
+ outline: none;
100
+ }
101
+
102
+ svg {
103
+ height: 13px !important;
104
+ width: 13px !important;
105
+ float: left;
106
+ fill: currentColor;
107
+ pointer-events: none;
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,603 @@
1
+ .vditor {
2
+ &-reset {
3
+ &--anchor {
4
+ padding-left: 20px;
5
+ }
6
+
7
+ &--error {
8
+ color: $errorColor;
9
+ font-size: 12px;
10
+ display: block;
11
+ line-height: 16px;
12
+ }
13
+
14
+ color: #24292e;
15
+ font-variant-ligatures: no-common-ligatures;
16
+ font-family: $font-family-base;
17
+ word-wrap: break-word;
18
+ overflow: auto;
19
+ line-height: 1.5;
20
+ font-size: 16px;
21
+ word-break: break-word;
22
+
23
+ ul ul ul {
24
+ list-style-type: square;
25
+ }
26
+
27
+ ul ul {
28
+ list-style-type: circle;
29
+ }
30
+
31
+ ul {
32
+ list-style-type: disc;
33
+ }
34
+
35
+ ul,
36
+ ol {
37
+ padding-left: 2em;
38
+ margin-top: 0;
39
+ margin-bottom: 16px;
40
+ }
41
+
42
+ li + li {
43
+ margin-top: 0.25em;
44
+ }
45
+
46
+ audio {
47
+ max-width: 100%;
48
+
49
+ &:focus {
50
+ outline: none;
51
+ }
52
+ }
53
+
54
+ video {
55
+ max-height: 90vh;
56
+ max-width: 100%;
57
+ }
58
+
59
+ img {
60
+ max-width: 100%;
61
+ }
62
+
63
+ img.emoji {
64
+ cursor: auto;
65
+ max-width: 20px;
66
+ vertical-align: sub;
67
+ }
68
+
69
+ h1,
70
+ h2,
71
+ h3,
72
+ h4,
73
+ h5,
74
+ h6 {
75
+ margin-top: 24px;
76
+ margin-bottom: 16px;
77
+ font-weight: 600;
78
+ line-height: 1.25;
79
+
80
+ &:hover .vditor-anchor svg {
81
+ visibility: visible;
82
+ }
83
+ }
84
+
85
+ h1 {
86
+ font-size: 1.75em;
87
+ }
88
+
89
+ h2 {
90
+ font-size: 1.55em;
91
+ }
92
+
93
+ h3 {
94
+ font-size: 1.38em;
95
+ }
96
+
97
+ h4 {
98
+ font-size: 1.25em
99
+ }
100
+
101
+ h5 {
102
+ font-size: 1.13em;
103
+ }
104
+
105
+ h6 {
106
+ font-size: 1em;
107
+ }
108
+
109
+ hr {
110
+ height: 2px;
111
+ padding: 0;
112
+ margin: 24px 0;
113
+ background-color: #eaecef;
114
+ border: 0;
115
+ }
116
+
117
+ p {
118
+ margin-top: 0;
119
+ margin-bottom: 16px;
120
+ }
121
+
122
+ blockquote {
123
+ padding: 0 1em;
124
+ color: #6a737d;
125
+ border-left: 0.25em solid #eaecef;
126
+ margin: 0 0 16px 0;
127
+
128
+ & > :first-child {
129
+ margin-top: 0
130
+ }
131
+
132
+ & > :last-child {
133
+ margin-bottom: 0
134
+ }
135
+ }
136
+
137
+ ins > iframe {
138
+ border: 0;
139
+ }
140
+
141
+ iframe {
142
+ border: 1px solid #d1d5da;
143
+ max-width: 100%;
144
+ box-sizing: border-box;
145
+
146
+ &.iframe__video {
147
+ min-width: 80%;
148
+ min-height: 36vh;
149
+ }
150
+ }
151
+
152
+ table {
153
+ border-collapse: collapse;
154
+ empty-cells: show;
155
+ margin-bottom: 16px;
156
+ overflow: auto;
157
+ border-spacing: 0;
158
+ display: block;
159
+ word-break: keep-all;
160
+ width: 100%;
161
+
162
+ tr {
163
+ background-color: #fafbfc;
164
+ border-top: 1px solid #c6cbd1;
165
+ }
166
+
167
+ td,
168
+ th {
169
+ padding: 6px 13px;
170
+ border: 1px solid #dfe2e5;
171
+ word-break: normal;
172
+ white-space: nowrap;
173
+
174
+ &:first-child::after {
175
+ content: "";
176
+ display: inline-block;
177
+ vertical-align: top;
178
+ min-height: 24px;
179
+ }
180
+ }
181
+
182
+ th {
183
+ font-weight: 600;
184
+ }
185
+
186
+ tbody tr:nth-child(2n) {
187
+ background-color: #fff;
188
+ }
189
+ }
190
+
191
+ code:not(.hljs):not(.highlight-chroma) {
192
+ padding: 0.2em 0.4em;
193
+ margin: 0;
194
+ font-size: 85%;
195
+ border-radius: 3px;
196
+ font-family: $font-family-code;
197
+ word-break: break-word;
198
+ background-size: 20px 20px;
199
+ white-space: pre-wrap;
200
+ }
201
+
202
+ pre {
203
+ margin: 1em 0;
204
+
205
+ & > code {
206
+ margin: 0;
207
+ font-size: 85%;
208
+ padding: 0.5em;
209
+ border-radius: 5px;
210
+ display: block;
211
+ overflow: auto;
212
+ white-space: pre;
213
+ font-family: $font-family-code;
214
+ background-size: 20px 20px;
215
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==);
216
+ word-break: initial;
217
+ word-wrap: normal;
218
+ }
219
+
220
+ &:hover div.vditor-copy {
221
+ display: block;
222
+ }
223
+ }
224
+
225
+ .language-math,
226
+ .language-echarts,
227
+ .language-mindmap,
228
+ .language-plantuml,
229
+ .language-mermaid,
230
+ .language-abc,
231
+ .language-flowchart,
232
+ .language-graphviz {
233
+ margin-bottom: 16px;
234
+ }
235
+
236
+ .language-math mjx-container:focus {
237
+ outline: none;
238
+ cursor: context-menu;
239
+ }
240
+
241
+ .language-echarts,
242
+ .language-mindmap {
243
+ overflow: hidden;
244
+ height: 420px;
245
+ }
246
+
247
+ .language-mermaid,
248
+ .language-flowchart,
249
+ .language-graphviz {
250
+ text-align: center;
251
+ }
252
+
253
+ .language-graphviz parsererror {
254
+ overflow: auto;
255
+ }
256
+
257
+ kbd {
258
+ display: inline-block;
259
+ padding: 3px 5px;
260
+ font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
261
+ line-height: 10px;
262
+ color: #24292e;
263
+ vertical-align: middle;
264
+ background-color: #fafbfc;
265
+ border: solid 1px #d1d5da;
266
+ border-radius: 3px;
267
+ box-shadow: inset 0 -1px 0 #d1d5da;
268
+ }
269
+
270
+ summary {
271
+ cursor: pointer;
272
+
273
+ &:focus {
274
+ outline: none;
275
+ }
276
+ }
277
+
278
+ svg {
279
+ height: auto;
280
+ width: auto;
281
+ stroke-width: initial;
282
+ }
283
+
284
+ p:last-child,
285
+ blockquote:last-child,
286
+ pre:last-child,
287
+ ul:last-child,
288
+ ol:last-child,
289
+ hr:last-child {
290
+ margin-bottom: 0;
291
+ }
292
+ }
293
+
294
+ &-comment {
295
+ border-bottom: 2px solid rgb(248, 230, 171);
296
+
297
+ &--focus,
298
+ &--hover {
299
+ background-color: rgb(250, 241, 209);
300
+ border-bottom: 2px solid rgb(255, 198, 10);
301
+
302
+ .vditor-comment {
303
+ border-bottom: 2px solid rgb(255, 198, 10);
304
+ }
305
+ }
306
+ }
307
+
308
+ &-task {
309
+ list-style: none !important;
310
+ word-break: break-all;
311
+
312
+ input {
313
+ margin: 0 .2em .25em -1.6em;
314
+ font-size: 12px;
315
+ vertical-align: middle;
316
+ }
317
+ }
318
+
319
+ &-copy {
320
+ position: relative;
321
+ display: none;
322
+ z-index: 1;
323
+
324
+ textarea {
325
+ position: absolute;
326
+ left: -100000px;
327
+ height: 10px;
328
+ }
329
+
330
+ span {
331
+ cursor: pointer;
332
+ position: absolute;
333
+ right: 15px;
334
+ top: 0.5em;
335
+ }
336
+
337
+ svg {
338
+ color: #586069;
339
+ height: 14px;
340
+ width: 14px !important;
341
+ display: block;
342
+ fill: currentColor;
343
+ }
344
+ }
345
+
346
+ &-linenumber {
347
+ padding-left: 4em !important;
348
+ position: relative;
349
+
350
+ &__rows {
351
+ position: absolute;
352
+ pointer-events: none;
353
+ top: 0.5em;
354
+ left: 0;
355
+ width: 3em; /* works for line-numbers below 1000 lines */
356
+ user-select: none;
357
+ counter-reset: linenumber;
358
+
359
+ & > span {
360
+ pointer-events: none;
361
+ display: block;
362
+
363
+ &::before {
364
+ counter-increment: linenumber;
365
+ content: counter(linenumber);
366
+ color: rgba(158, 150, 150, 0.38);
367
+ display: block;
368
+ padding-right: 1em;
369
+ text-align: right;
370
+ }
371
+ }
372
+ }
373
+ }
374
+
375
+ &-speech {
376
+ position: absolute;
377
+ display: none;
378
+ background-color: #f6f8fa;
379
+ border: 1px solid #d1d5da;
380
+ border-radius: 3px;
381
+ padding: 3px;
382
+ cursor: pointer;
383
+ color: #586069;
384
+
385
+ &:hover,
386
+ &--current {
387
+ color: #4285f4;
388
+ }
389
+
390
+ svg {
391
+ height: 14px;
392
+ width: 14px;
393
+ fill: currentColor;
394
+ display: block;
395
+ stroke-width: 0;
396
+ stroke: currentColor;
397
+ }
398
+ }
399
+
400
+ &-anchor {
401
+ margin-left: 5px;
402
+
403
+ &--left {
404
+ float: left;
405
+ padding-right: 4px;
406
+ margin-left: -20px;
407
+ }
408
+
409
+ svg {
410
+ visibility: hidden;
411
+ }
412
+
413
+ &:hover {
414
+ svg {
415
+ visibility: visible;
416
+ }
417
+ }
418
+
419
+ &:focus {
420
+ outline: none;
421
+ }
422
+ }
423
+
424
+ &-linkcard {
425
+ margin: 31px auto 16px;
426
+ transition: $transition;
427
+ cursor: pointer;
428
+ max-width: 768px;
429
+ padding: 0 10px;
430
+
431
+ a {
432
+ border-radius: 3px;
433
+ background-color: #f6f8fa;
434
+ overflow: hidden;
435
+ max-height: 250px;
436
+ display: flex;
437
+ text-decoration: none;
438
+ flex-wrap: wrap-reverse;
439
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
440
+
441
+ &:hover {
442
+ box-shadow: 0 0 3px rgba(0, 0, 0, .13), 0 3px 6px rgba(0, 0, 0, .26);
443
+ text-decoration: none;
444
+ }
445
+
446
+ &:visited .vditor-linkcard__abstract {
447
+ color: rgba(88, 96, 105, 0.36);
448
+ }
449
+ }
450
+
451
+ &__info {
452
+ padding: 10px;
453
+ min-width: 200px;
454
+ box-sizing: border-box;
455
+ flex: 1;
456
+ }
457
+
458
+ &__title {
459
+ font-size: 14px;
460
+ font-weight: 400;
461
+ color: #24292e;
462
+ display: flex;
463
+ align-items: center;
464
+
465
+ img {
466
+ cursor: pointer;
467
+ height: 20px;
468
+ width: 20px;
469
+ border-radius: 3px;
470
+ flex-shrink: 0;
471
+ margin-right: 5px;
472
+ }
473
+ }
474
+
475
+ &__abstract {
476
+ word-wrap: break-word;
477
+ word-break: break-all;
478
+ -webkit-line-clamp: 2;
479
+ overflow: hidden;
480
+ text-overflow: ellipsis;
481
+ -webkit-box-orient: vertical;
482
+ display: -webkit-box;
483
+ font-size: 13px;
484
+ color: #586069;
485
+ margin: 5px 0;
486
+ }
487
+
488
+ &__site {
489
+ font-size: 12px;
490
+ color: #4285f4;
491
+ }
492
+
493
+ &__image {
494
+ background-size: cover;
495
+ background-repeat: no-repeat;
496
+ background-position: center center;
497
+ max-width: 250px;
498
+ min-width: 126px;
499
+ cursor: pointer;
500
+ background-color: rgba(88, 96, 105, 0.36);
501
+ }
502
+ }
503
+
504
+ &-footnotes__goto-ref {
505
+ text-decoration: none;
506
+ }
507
+
508
+ &-toc {
509
+ margin-bottom: 16px;
510
+ user-select: text;
511
+ color: $blurColor;
512
+
513
+ .vditor-outline__action {
514
+ display: none;
515
+ }
516
+
517
+ ul {
518
+ list-style: none !important;
519
+ padding-left: 1em;
520
+ }
521
+
522
+ & > ul {
523
+ padding-left: 0;
524
+ }
525
+
526
+ span {
527
+ cursor: pointer;
528
+ }
529
+
530
+ li > span > svg {
531
+ width: 0;
532
+ height: 0;
533
+ }
534
+ }
535
+
536
+ &-outline {
537
+ width: 250px;
538
+ border-right: 1px solid var(--border-color);
539
+ background-color: var(--panel-background-color);
540
+ display: none;
541
+ overflow: auto;
542
+
543
+ &--right {
544
+ border-right: 0;
545
+ border-left: 1px solid var(--border-color);
546
+ }
547
+
548
+ &::-webkit-scrollbar {
549
+ display: none;
550
+ }
551
+
552
+ ul {
553
+ list-style: none !important;
554
+ padding-left: 1em;
555
+ margin: 0;
556
+ }
557
+
558
+ &__content > ul {
559
+ padding-left: 0;
560
+ }
561
+
562
+ li > span {
563
+ display: flex;
564
+ align-items: center;
565
+ padding: 5px 10px;
566
+ cursor: pointer;
567
+ color: var(--textarea-text-color);
568
+
569
+ & > svg {
570
+ height: 10px;
571
+ width: 10px;
572
+ }
573
+
574
+ &:hover {
575
+ color: var(--toolbar-icon-hover-color);
576
+ }
577
+
578
+ & > span {
579
+ white-space: nowrap;
580
+ overflow: hidden;
581
+ text-overflow: ellipsis;
582
+ }
583
+ }
584
+
585
+ &__title {
586
+ border-bottom: 1px dashed var(--border-color);
587
+ padding: 5px 10px;
588
+ color: var(--toolbar-icon-color);
589
+ font-size: 12px;
590
+ }
591
+
592
+ &__action {
593
+ transition: $transition;
594
+ fill: currentColor;
595
+ margin-right: 5px;
596
+ flex-shrink: 0;
597
+
598
+ &--close {
599
+ transform: rotate(-90deg);
600
+ }
601
+ }
602
+ }
603
+ }