@nocobase/plugin-field-markdown-vditor 2.1.0-beta.32 → 2.1.0-beta.34

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 (329) hide show
  1. package/build.config.ts +10 -5
  2. package/client-v2.d.ts +2 -0
  3. package/client-v2.js +1 -0
  4. package/dist/client/{715.c3e87d20f248bfe6.js → 715.c6a79599fe53cbbf.js} +1 -1
  5. package/dist/client/index.js +1 -1
  6. package/dist/client-v2/components/Display.d.ts +10 -0
  7. package/dist/client-v2/components/Edit.d.ts +10 -0
  8. package/dist/client-v2/components/const.d.ts +9 -0
  9. package/dist/client-v2/components/index.d.ts +11 -0
  10. package/dist/client-v2/components/style.d.ts +14 -0
  11. package/dist/client-v2/index.d.ts +11 -0
  12. package/dist/client-v2/index.js +10 -0
  13. package/dist/client-v2/interface.d.ts +96 -0
  14. package/dist/client-v2/locale.d.ts +10 -0
  15. package/dist/{client → client-v2}/models/DisplayVditorFieldModel.d.ts +1 -1
  16. package/dist/{client → client-v2}/models/VditorFieldModel.d.ts +1 -1
  17. package/dist/client-v2/models/index.d.ts +10 -0
  18. package/dist/client-v2/plugin.d.ts +20 -0
  19. package/dist/client-v2/runtime.d.ts +21 -0
  20. package/dist/client-v2/vditor/dist/css/content-theme/ant-design.css +210 -0
  21. package/dist/client-v2/vditor/dist/css/content-theme/dark.css +123 -0
  22. package/dist/client-v2/vditor/dist/css/content-theme/light.css +101 -0
  23. package/dist/client-v2/vditor/dist/css/content-theme/wechat.css +94 -0
  24. package/dist/client-v2/vditor/dist/images/emoji/b3log.png +0 -0
  25. package/dist/client-v2/vditor/dist/images/emoji/chainbook.png +0 -0
  26. package/dist/client-v2/vditor/dist/images/emoji/doge.png +0 -0
  27. package/dist/client-v2/vditor/dist/images/emoji/hacpai.png +0 -0
  28. package/dist/client-v2/vditor/dist/images/emoji/huaji.gif +0 -0
  29. package/dist/client-v2/vditor/dist/images/emoji/latke.png +0 -0
  30. package/dist/client-v2/vditor/dist/images/emoji/liandi.png +0 -0
  31. package/dist/client-v2/vditor/dist/images/emoji/lute.png +0 -0
  32. package/dist/client-v2/vditor/dist/images/emoji/octocat.png +0 -0
  33. package/dist/client-v2/vditor/dist/images/emoji/pipe.png +0 -0
  34. package/dist/client-v2/vditor/dist/images/emoji/siyuan.png +0 -0
  35. package/dist/client-v2/vditor/dist/images/emoji/solo.png +0 -0
  36. package/dist/client-v2/vditor/dist/images/emoji/sym.png +0 -0
  37. package/dist/client-v2/vditor/dist/images/emoji/trollface.png +0 -0
  38. package/dist/client-v2/vditor/dist/images/emoji/vditor.png +0 -0
  39. package/dist/client-v2/vditor/dist/images/emoji/wide.png +0 -0
  40. package/dist/client-v2/vditor/dist/images/emoji/wulian.png +0 -0
  41. package/dist/client-v2/vditor/dist/images/img-loading.svg +1 -0
  42. package/dist/client-v2/vditor/dist/images/logo.png +0 -0
  43. package/dist/client-v2/vditor/dist/index.css +1836 -0
  44. package/dist/client-v2/vditor/dist/index.d.ts +76 -0
  45. package/dist/client-v2/vditor/dist/index.min.js +10 -0
  46. package/dist/client-v2/vditor/dist/js/abcjs/abcjs_basic.min.js +12 -0
  47. package/dist/client-v2/vditor/dist/js/echarts/echarts.min.js +32 -0
  48. package/dist/client-v2/vditor/dist/js/flowchart.js/flowchart.min.js +17 -0
  49. package/dist/client-v2/vditor/dist/js/graphviz/full.render.js +99 -0
  50. package/dist/client-v2/vditor/dist/js/graphviz/viz.js +342 -0
  51. package/dist/client-v2/vditor/dist/js/highlight.js/highlight.pack.js +1626 -0
  52. package/dist/client-v2/vditor/dist/js/highlight.js/solidity.min.js +82 -0
  53. package/dist/client-v2/vditor/dist/js/highlight.js/styles/abap.css +155 -0
  54. package/dist/client-v2/vditor/dist/js/highlight.js/styles/algol.css +143 -0
  55. package/dist/client-v2/vditor/dist/js/highlight.js/styles/algol_nu.css +90 -0
  56. package/dist/client-v2/vditor/dist/js/highlight.js/styles/ant-design.css +469 -0
  57. package/dist/client-v2/vditor/dist/js/highlight.js/styles/arduino.css +157 -0
  58. package/dist/client-v2/vditor/dist/js/highlight.js/styles/autumn.css +138 -0
  59. package/dist/client-v2/vditor/dist/js/highlight.js/styles/borland.css +147 -0
  60. package/dist/client-v2/vditor/dist/js/highlight.js/styles/bw.css +150 -0
  61. package/dist/client-v2/vditor/dist/js/highlight.js/styles/colorful.css +158 -0
  62. package/dist/client-v2/vditor/dist/js/highlight.js/styles/dracula.css +140 -0
  63. package/dist/client-v2/vditor/dist/js/highlight.js/styles/emacs.css +167 -0
  64. package/dist/client-v2/vditor/dist/js/highlight.js/styles/friendly.css +183 -0
  65. package/dist/client-v2/vditor/dist/js/highlight.js/styles/fruity.css +123 -0
  66. package/dist/client-v2/vditor/dist/js/highlight.js/styles/github.css +174 -0
  67. package/dist/client-v2/vditor/dist/js/highlight.js/styles/igor.css +124 -0
  68. package/dist/client-v2/vditor/dist/js/highlight.js/styles/lovelace.css +146 -0
  69. package/dist/client-v2/vditor/dist/js/highlight.js/styles/manni.css +139 -0
  70. package/dist/client-v2/vditor/dist/js/highlight.js/styles/monokai.css +132 -0
  71. package/dist/client-v2/vditor/dist/js/highlight.js/styles/monokailight.css +180 -0
  72. package/dist/client-v2/vditor/dist/js/highlight.js/styles/murphy.css +144 -0
  73. package/dist/client-v2/vditor/dist/js/highlight.js/styles/native.css +164 -0
  74. package/dist/client-v2/vditor/dist/js/highlight.js/styles/paraiso-dark.css +137 -0
  75. package/dist/client-v2/vditor/dist/js/highlight.js/styles/paraiso-light.css +136 -0
  76. package/dist/client-v2/vditor/dist/js/highlight.js/styles/pastie.css +180 -0
  77. package/dist/client-v2/vditor/dist/js/highlight.js/styles/perldoc.css +141 -0
  78. package/dist/client-v2/vditor/dist/js/highlight.js/styles/pygments.css +159 -0
  79. package/dist/client-v2/vditor/dist/js/highlight.js/styles/rainbow_dash.css +164 -0
  80. package/dist/client-v2/vditor/dist/js/highlight.js/styles/rrt.css +159 -0
  81. package/dist/client-v2/vditor/dist/js/highlight.js/styles/solarized-dark.css +146 -0
  82. package/dist/client-v2/vditor/dist/js/highlight.js/styles/solarized-dark256.css +146 -0
  83. package/dist/client-v2/vditor/dist/js/highlight.js/styles/solarized-light.css +163 -0
  84. package/dist/client-v2/vditor/dist/js/highlight.js/styles/swapoff.css +144 -0
  85. package/dist/client-v2/vditor/dist/js/highlight.js/styles/tango.css +183 -0
  86. package/dist/client-v2/vditor/dist/js/highlight.js/styles/trac.css +167 -0
  87. package/dist/client-v2/vditor/dist/js/highlight.js/styles/vim.css +144 -0
  88. package/dist/client-v2/vditor/dist/js/highlight.js/styles/vs.css +113 -0
  89. package/dist/client-v2/vditor/dist/js/highlight.js/styles/xcode.css +174 -0
  90. package/dist/client-v2/vditor/dist/js/highlight.js/yul.min.js +39 -0
  91. package/dist/client-v2/vditor/dist/js/i18n/en_US.js +94 -0
  92. package/dist/client-v2/vditor/dist/js/i18n/fr_FR.js +94 -0
  93. package/dist/client-v2/vditor/dist/js/i18n/ja_JP.js +94 -0
  94. package/dist/client-v2/vditor/dist/js/i18n/ko_KR.js +94 -0
  95. package/dist/client-v2/vditor/dist/js/i18n/pt_BR.js +94 -0
  96. package/dist/client-v2/vditor/dist/js/i18n/ru_RU.js +94 -0
  97. package/dist/client-v2/vditor/dist/js/i18n/sv_SE.js +94 -0
  98. package/dist/client-v2/vditor/dist/js/i18n/zh_CN.js +94 -0
  99. package/dist/client-v2/vditor/dist/js/i18n/zh_TW.js +94 -0
  100. package/dist/client-v2/vditor/dist/js/icons/ant.js +183 -0
  101. package/dist/client-v2/vditor/dist/js/icons/material.js +204 -0
  102. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
  103. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  104. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  105. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  106. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  107. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  108. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  109. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  110. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  111. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  112. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  113. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  114. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  115. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  116. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  117. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
  118. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  119. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  120. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  121. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  122. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  123. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
  124. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  125. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  126. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
  127. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  128. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  129. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  130. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  131. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  132. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
  133. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  134. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  135. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  136. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  137. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  138. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  139. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  140. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  141. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  142. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  143. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  144. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
  145. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
  146. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  147. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
  148. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  149. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  150. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
  151. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  152. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  153. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
  154. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  155. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  156. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
  157. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  158. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  159. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  160. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  161. package/dist/client-v2/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  162. package/dist/client-v2/vditor/dist/js/katex/katex.min.css +1 -0
  163. package/dist/client-v2/vditor/dist/js/katex/katex.min.js +10 -0
  164. package/dist/client-v2/vditor/dist/js/katex/mhchem.min.js +10 -0
  165. package/dist/client-v2/vditor/dist/js/lute/lute.min.js +80 -0
  166. package/dist/client-v2/vditor/dist/js/markmap/katex.min.css +1 -0
  167. package/dist/client-v2/vditor/dist/js/markmap/markmap.min.js +8260 -0
  168. package/dist/client-v2/vditor/dist/js/markmap/prism.css +140 -0
  169. package/dist/client-v2/vditor/dist/js/mathjax/LICENSE +202 -0
  170. package/dist/client-v2/vditor/dist/js/mathjax/a11y/assistive-mml.js +10 -0
  171. package/dist/client-v2/vditor/dist/js/mathjax/a11y/complexity.js +10 -0
  172. package/dist/client-v2/vditor/dist/js/mathjax/a11y/explorer.js +10 -0
  173. package/dist/client-v2/vditor/dist/js/mathjax/a11y/semantic-enrich.js +10 -0
  174. package/dist/client-v2/vditor/dist/js/mathjax/input/asciimath.js +10 -0
  175. package/dist/client-v2/vditor/dist/js/mathjax/input/mml/entities.js +10 -0
  176. package/dist/client-v2/vditor/dist/js/mathjax/input/mml.js +10 -0
  177. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/action.js +10 -0
  178. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/all-packages.js +10 -0
  179. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/ams.js +10 -0
  180. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/amscd.js +10 -0
  181. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/autoload.js +10 -0
  182. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/bbox.js +10 -0
  183. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/boldsymbol.js +10 -0
  184. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/braket.js +10 -0
  185. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/bussproofs.js +10 -0
  186. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/cancel.js +10 -0
  187. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/color.js +10 -0
  188. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/colorV2.js +10 -0
  189. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/configMacros.js +10 -0
  190. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/enclose.js +10 -0
  191. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/extpfeil.js +10 -0
  192. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/html.js +10 -0
  193. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/mhchem.js +10 -0
  194. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/newcommand.js +10 -0
  195. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/noerrors.js +10 -0
  196. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/noundefined.js +10 -0
  197. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/physics.js +10 -0
  198. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/require.js +10 -0
  199. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/tagFormat.js +10 -0
  200. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/textmacros.js +10 -0
  201. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/unicode.js +10 -0
  202. package/dist/client-v2/vditor/dist/js/mathjax/input/tex/extensions/verb.js +10 -0
  203. package/dist/client-v2/vditor/dist/js/mathjax/input/tex-base.js +10 -0
  204. package/dist/client-v2/vditor/dist/js/mathjax/input/tex-full.js +10 -0
  205. package/dist/client-v2/vditor/dist/js/mathjax/input/tex.js +10 -0
  206. package/dist/client-v2/vditor/dist/js/mathjax/sre/mathmaps/de.js +113 -0
  207. package/dist/client-v2/vditor/dist/js/mathjax/sre/mathmaps/en.js +119 -0
  208. package/dist/client-v2/vditor/dist/js/mathjax/sre/mathmaps/es.js +113 -0
  209. package/dist/client-v2/vditor/dist/js/mathjax/sre/mathmaps/fr.js +113 -0
  210. package/dist/client-v2/vditor/dist/js/mathjax/sre/mathmaps/mathmaps_ie.js +527 -0
  211. package/dist/client-v2/vditor/dist/js/mathjax/sre/mathmaps/nemeth.js +113 -0
  212. package/dist/client-v2/vditor/dist/js/mathjax/sre/sre-node.js +20 -0
  213. package/dist/client-v2/vditor/dist/js/mathjax/sre/sre_browser.js +1642 -0
  214. package/dist/client-v2/vditor/dist/js/mathjax/tex-svg-full.js +10 -0
  215. package/dist/client-v2/vditor/dist/js/mermaid/mermaid.min.js +1768 -0
  216. package/dist/client-v2/vditor/dist/js/plantuml/plantuml-encoder.min.js +10 -0
  217. package/dist/client-v2/vditor/dist/method.d.ts +50 -0
  218. package/dist/client-v2/vditor/dist/method.min.js +10 -0
  219. package/dist/client-v2/vditor/dist/ts/constants.d.ts +45 -0
  220. package/dist/client-v2/vditor/dist/ts/devtools/index.d.ts +7 -0
  221. package/dist/client-v2/vditor/dist/ts/export/index.d.ts +5 -0
  222. package/dist/client-v2/vditor/dist/ts/hint/index.d.ts +14 -0
  223. package/dist/client-v2/vditor/dist/ts/ir/expandMarker.d.ts +2 -0
  224. package/dist/client-v2/vditor/dist/ts/ir/highlightToolbarIR.d.ts +2 -0
  225. package/dist/client-v2/vditor/dist/ts/ir/index.d.ts +13 -0
  226. package/dist/client-v2/vditor/dist/ts/ir/input.d.ts +2 -0
  227. package/dist/client-v2/vditor/dist/ts/ir/process.d.ts +9 -0
  228. package/dist/client-v2/vditor/dist/ts/ir/processKeydown.d.ts +2 -0
  229. package/dist/client-v2/vditor/dist/ts/markdown/abcRender.d.ts +1 -0
  230. package/dist/client-v2/vditor/dist/ts/markdown/adapterRender.d.ts +37 -0
  231. package/dist/client-v2/vditor/dist/ts/markdown/anchorRender.d.ts +1 -0
  232. package/dist/client-v2/vditor/dist/ts/markdown/chartRender.d.ts +1 -0
  233. package/dist/client-v2/vditor/dist/ts/markdown/codeRender.d.ts +2 -0
  234. package/dist/client-v2/vditor/dist/ts/markdown/flowchartRender.d.ts +1 -0
  235. package/dist/client-v2/vditor/dist/ts/markdown/getHTML.d.ts +2 -0
  236. package/dist/client-v2/vditor/dist/ts/markdown/getMarkdown.d.ts +2 -0
  237. package/dist/client-v2/vditor/dist/ts/markdown/graphvizRender.d.ts +1 -0
  238. package/dist/client-v2/vditor/dist/ts/markdown/highlightRender.d.ts +2 -0
  239. package/dist/client-v2/vditor/dist/ts/markdown/lazyLoadImageRender.d.ts +6 -0
  240. package/dist/client-v2/vditor/dist/ts/markdown/markmapRender.d.ts +1 -0
  241. package/dist/client-v2/vditor/dist/ts/markdown/mathRender.d.ts +10 -0
  242. package/dist/client-v2/vditor/dist/ts/markdown/mediaRender.d.ts +1 -0
  243. package/dist/client-v2/vditor/dist/ts/markdown/mermaidRender.d.ts +1 -0
  244. package/dist/client-v2/vditor/dist/ts/markdown/mindmapRender.d.ts +1 -0
  245. package/dist/client-v2/vditor/dist/ts/markdown/outlineRender.d.ts +2 -0
  246. package/dist/client-v2/vditor/dist/ts/markdown/plantumlRender.d.ts +1 -0
  247. package/dist/client-v2/vditor/dist/ts/markdown/previewRender.d.ts +3 -0
  248. package/dist/client-v2/vditor/dist/ts/markdown/setLute.d.ts +2 -0
  249. package/dist/client-v2/vditor/dist/ts/markdown/speechRender.d.ts +7 -0
  250. package/dist/client-v2/vditor/dist/ts/outline/index.d.ts +7 -0
  251. package/dist/client-v2/vditor/dist/ts/preview/image.d.ts +2 -0
  252. package/dist/client-v2/vditor/dist/ts/preview/index.d.ts +10 -0
  253. package/dist/client-v2/vditor/dist/ts/resize/index.d.ts +6 -0
  254. package/dist/client-v2/vditor/dist/ts/sv/combineFootnote.d.ts +6 -0
  255. package/dist/client-v2/vditor/dist/ts/sv/index.d.ts +13 -0
  256. package/dist/client-v2/vditor/dist/ts/sv/inputEvent.d.ts +2 -0
  257. package/dist/client-v2/vditor/dist/ts/sv/process.d.ts +12 -0
  258. package/dist/client-v2/vditor/dist/ts/sv/processKeydown.d.ts +2 -0
  259. package/dist/client-v2/vditor/dist/ts/tip/index.d.ts +6 -0
  260. package/dist/client-v2/vditor/dist/ts/toolbar/Both.d.ts +5 -0
  261. package/dist/client-v2/vditor/dist/ts/toolbar/Br.d.ts +4 -0
  262. package/dist/client-v2/vditor/dist/ts/toolbar/CodeTheme.d.ts +6 -0
  263. package/dist/client-v2/vditor/dist/ts/toolbar/ContentTheme.d.ts +6 -0
  264. package/dist/client-v2/vditor/dist/ts/toolbar/Counter.d.ts +6 -0
  265. package/dist/client-v2/vditor/dist/ts/toolbar/Custom.d.ts +5 -0
  266. package/dist/client-v2/vditor/dist/ts/toolbar/Devtools.d.ts +5 -0
  267. package/dist/client-v2/vditor/dist/ts/toolbar/Divider.d.ts +4 -0
  268. package/dist/client-v2/vditor/dist/ts/toolbar/EditMode.d.ts +8 -0
  269. package/dist/client-v2/vditor/dist/ts/toolbar/Emoji.d.ts +7 -0
  270. package/dist/client-v2/vditor/dist/ts/toolbar/Export.d.ts +6 -0
  271. package/dist/client-v2/vditor/dist/ts/toolbar/Fullscreen.d.ts +6 -0
  272. package/dist/client-v2/vditor/dist/ts/toolbar/Headings.d.ts +7 -0
  273. package/dist/client-v2/vditor/dist/ts/toolbar/Help.d.ts +5 -0
  274. package/dist/client-v2/vditor/dist/ts/toolbar/Indent.d.ts +5 -0
  275. package/dist/client-v2/vditor/dist/ts/toolbar/Info.d.ts +5 -0
  276. package/dist/client-v2/vditor/dist/ts/toolbar/InsertAfter.d.ts +5 -0
  277. package/dist/client-v2/vditor/dist/ts/toolbar/InsertBefore.d.ts +5 -0
  278. package/dist/client-v2/vditor/dist/ts/toolbar/MenuItem.d.ts +5 -0
  279. package/dist/client-v2/vditor/dist/ts/toolbar/Outdent.d.ts +5 -0
  280. package/dist/client-v2/vditor/dist/ts/toolbar/Outline.d.ts +5 -0
  281. package/dist/client-v2/vditor/dist/ts/toolbar/Preview.d.ts +6 -0
  282. package/dist/client-v2/vditor/dist/ts/toolbar/Record.d.ts +6 -0
  283. package/dist/client-v2/vditor/dist/ts/toolbar/Redo.d.ts +5 -0
  284. package/dist/client-v2/vditor/dist/ts/toolbar/Undo.d.ts +5 -0
  285. package/dist/client-v2/vditor/dist/ts/toolbar/Upload.d.ts +6 -0
  286. package/dist/client-v2/vditor/dist/ts/toolbar/index.d.ts +9 -0
  287. package/dist/client-v2/vditor/dist/ts/toolbar/setToolbar.d.ts +21 -0
  288. package/dist/client-v2/vditor/dist/ts/ui/initUI.d.ts +10 -0
  289. package/dist/client-v2/vditor/dist/ts/ui/setCodeTheme.d.ts +1 -0
  290. package/dist/client-v2/vditor/dist/ts/ui/setContentTheme.d.ts +1 -0
  291. package/dist/client-v2/vditor/dist/ts/ui/setPreviewMode.d.ts +2 -0
  292. package/dist/client-v2/vditor/dist/ts/ui/setTheme.d.ts +2 -0
  293. package/dist/client-v2/vditor/dist/ts/undo/index.d.ts +19 -0
  294. package/dist/client-v2/vditor/dist/ts/upload/getElement.d.ts +2 -0
  295. package/dist/client-v2/vditor/dist/ts/upload/index.d.ts +9 -0
  296. package/dist/client-v2/vditor/dist/ts/upload/setHeaders.d.ts +2 -0
  297. package/dist/client-v2/vditor/dist/ts/util/Options.d.ts +8 -0
  298. package/dist/client-v2/vditor/dist/ts/util/RecordMedia.d.ts +18 -0
  299. package/dist/client-v2/vditor/dist/ts/util/addScript.d.ts +2 -0
  300. package/dist/client-v2/vditor/dist/ts/util/addStyle.d.ts +1 -0
  301. package/dist/client-v2/vditor/dist/ts/util/code160to32.d.ts +1 -0
  302. package/dist/client-v2/vditor/dist/ts/util/compatibility.d.ts +7 -0
  303. package/dist/client-v2/vditor/dist/ts/util/editorCommonEvent.d.ts +10 -0
  304. package/dist/client-v2/vditor/dist/ts/util/fixBrowserBehavior.d.ts +40 -0
  305. package/dist/client-v2/vditor/dist/ts/util/function.d.ts +2 -0
  306. package/dist/client-v2/vditor/dist/ts/util/getSelectText.d.ts +1 -0
  307. package/dist/client-v2/vditor/dist/ts/util/hasClosest.d.ts +9 -0
  308. package/dist/client-v2/vditor/dist/ts/util/hasClosestByHeadings.d.ts +2 -0
  309. package/dist/client-v2/vditor/dist/ts/util/highlightToolbar.d.ts +2 -0
  310. package/dist/client-v2/vditor/dist/ts/util/hotKey.d.ts +1 -0
  311. package/dist/client-v2/vditor/dist/ts/util/log.d.ts +1 -0
  312. package/dist/client-v2/vditor/dist/ts/util/merge.d.ts +1 -0
  313. package/dist/client-v2/vditor/dist/ts/util/processCode.d.ts +3 -0
  314. package/dist/client-v2/vditor/dist/ts/util/selection.d.ts +15 -0
  315. package/dist/client-v2/vditor/dist/ts/util/toc.d.ts +6 -0
  316. package/dist/client-v2/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts +6 -0
  317. package/dist/client-v2/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +5 -0
  318. package/dist/client-v2/vditor/dist/ts/wysiwyg/index.d.ts +22 -0
  319. package/dist/client-v2/vditor/dist/ts/wysiwyg/inlineTag.d.ts +11 -0
  320. package/dist/client-v2/vditor/dist/ts/wysiwyg/input.d.ts +2 -0
  321. package/dist/client-v2/vditor/dist/ts/wysiwyg/processKeydown.d.ts +3 -0
  322. package/dist/client-v2/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts +6 -0
  323. package/dist/client-v2/vditor/dist/ts/wysiwyg/setHeading.d.ts +3 -0
  324. package/dist/client-v2/vditor/dist/ts/wysiwyg/showCode.d.ts +2 -0
  325. package/dist/client-v2/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts +2 -0
  326. package/dist/client-v2/vditor/dist/types/index.d.ts +866 -0
  327. package/dist/externalVersion.js +9 -7
  328. package/dist/node_modules/fs-extra/package.json +1 -1
  329. package/package.json +3 -2
@@ -0,0 +1,96 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { ISchema } from '@formily/react';
10
+ import { CollectionFieldInterface } from '@nocobase/client-v2';
11
+ export declare const defaultToolbar: string[];
12
+ export declare class MarkdownVditorFieldInterface extends CollectionFieldInterface {
13
+ name: string;
14
+ type: string;
15
+ group: string;
16
+ order: number;
17
+ title: string;
18
+ sortable: boolean;
19
+ default: {
20
+ interface: string;
21
+ type: string;
22
+ length: string;
23
+ uiSchema: {
24
+ type: string;
25
+ 'x-component': string;
26
+ };
27
+ };
28
+ availableTypes: string[];
29
+ properties: {
30
+ 'uiSchema.x-component-props.fileCollection': {
31
+ type: string;
32
+ title: string;
33
+ 'x-component': string;
34
+ 'x-component-props': {
35
+ filter: (collection: any) => boolean;
36
+ };
37
+ 'x-decorator': string;
38
+ default: string;
39
+ 'x-reactions': {
40
+ fulfill: {
41
+ schema: {
42
+ description: string;
43
+ };
44
+ };
45
+ };
46
+ };
47
+ 'uiSchema.x-component-props.toolbar': {
48
+ type: string;
49
+ title: string;
50
+ 'x-component': string;
51
+ 'x-component-props': {
52
+ mode: string;
53
+ };
54
+ 'x-decorator': string;
55
+ default: string[];
56
+ enum: {
57
+ value: string;
58
+ label: string;
59
+ }[];
60
+ };
61
+ };
62
+ schemaInitialize(schema: ISchema, { block }: {
63
+ block: any;
64
+ }): void;
65
+ filterable: {
66
+ operators: ({
67
+ label: string;
68
+ value: string;
69
+ selected: boolean;
70
+ schema: {
71
+ type: string;
72
+ 'x-component': string;
73
+ };
74
+ noValue?: undefined;
75
+ } | {
76
+ label: string;
77
+ value: string;
78
+ schema: {
79
+ type: string;
80
+ 'x-component': string;
81
+ };
82
+ selected?: undefined;
83
+ noValue?: undefined;
84
+ } | {
85
+ label: string;
86
+ value: string;
87
+ noValue: boolean;
88
+ schema: {
89
+ type: string;
90
+ 'x-component': string;
91
+ };
92
+ selected?: undefined;
93
+ })[];
94
+ };
95
+ titleUsable: boolean;
96
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function useT(): (str: string, options?: Record<string, any>) => string;
10
+ export declare function tExpr(key: string): string;
@@ -6,7 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { DisplayTitleFieldModel } from '@nocobase/client';
9
+ import { DisplayTitleFieldModel } from '@nocobase/client-v2';
10
10
  import React from 'react';
11
11
  export declare class DisplayVditorFieldModel extends DisplayTitleFieldModel {
12
12
  renderComponent(value: any): React.JSX.Element;
@@ -6,7 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { FieldModel } from '@nocobase/client';
9
+ import { FieldModel } from '@nocobase/client-v2';
10
10
  export declare class VditorFieldModel extends FieldModel {
11
11
  render(): any;
12
12
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './VditorFieldModel';
10
+ export * from './DisplayVditorFieldModel';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Application, Plugin } from '@nocobase/client-v2';
10
+ import 'vditor/dist/index.css';
11
+ import { MarkdownVditorRuntime } from './runtime';
12
+ export declare class PluginFieldMarkdownVditorClient extends Plugin<any, Application> {
13
+ app: any;
14
+ dependencyLoaded: boolean;
15
+ runtime: MarkdownVditorRuntime;
16
+ load(): Promise<void>;
17
+ getCDN(): string;
18
+ initVditorDependency(): void;
19
+ }
20
+ export default PluginFieldMarkdownVditorClient;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare class MarkdownVditorRuntime {
11
+ private app;
12
+ private getPublicPath;
13
+ constructor(app: any, getPublicPath: () => string);
14
+ get dependencies(): {
15
+ cdn: string;
16
+ };
17
+ getCDN(): string;
18
+ initVditorDependency(): void;
19
+ render(text: any, props?: {}): React.JSX.Element;
20
+ edit(props?: {}): React.JSX.Element;
21
+ }
@@ -0,0 +1,210 @@
1
+ /*!
2
+ * Vditor - A markdown editor written in TypeScript.
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2018-present B3log 开源, b3log.org
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ */
27
+
28
+ .vditor-reset {
29
+ color: rgba(0, 0, 0, .85);
30
+ font-size: 14px;
31
+ line-height: 2;
32
+ }
33
+
34
+ .vditor-reset img {
35
+ max-width: calc(100% - 32px);
36
+ }
37
+
38
+ .vditor-reset p > img {
39
+ margin: 34px 0;
40
+ box-shadow: 0 8px 20px rgba(143, 168, 191, 0.35);
41
+ }
42
+
43
+ .vditor-reset h1 {
44
+ margin-bottom: 20px;
45
+ color: rgba(0, 0, 0, .85);
46
+ font-weight: 500;
47
+ font-size: 30px;
48
+ font-family: Avenir, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji, sans-serif;
49
+ line-height: 38px
50
+ }
51
+
52
+ .vditor-reset h2 {
53
+ font-size: 24px;
54
+ line-height: 32px;
55
+ }
56
+
57
+ .vditor-reset h2,
58
+ .vditor-reset h3,
59
+ .vditor-reset h4,
60
+ .vditor-reset h5,
61
+ .vditor-reset h6 {
62
+ clear: both;
63
+ margin: 1.6em 0 .6em;
64
+ color: rgba(0, 0, 0, .85);
65
+ font-weight: 500;
66
+ font-family: Avenir, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji, sans-serif
67
+ }
68
+
69
+ .vditor-reset h3 {
70
+ font-size: 18px;
71
+ }
72
+
73
+ .vditor-reset h4 {
74
+ font-size: 16px;
75
+ }
76
+
77
+ .vditor-reset h5 {
78
+ font-size: 14px;
79
+ }
80
+
81
+ .vditor-reset h6 {
82
+ font-size: 12px;
83
+ }
84
+
85
+ .vditor-reset hr {
86
+ clear: both;
87
+ height: 1px;
88
+ margin: 56px 0;
89
+ background: #f0f0f0;
90
+ border: 0;
91
+ }
92
+
93
+ .vditor-reset p,
94
+ .vditor-reset pre {
95
+ margin: 1em 0;
96
+ }
97
+
98
+ .vditor-reset ul > li {
99
+ margin-left: 20px;
100
+ padding-left: 4px;
101
+ list-style-type: circle;
102
+ }
103
+
104
+ .vditor-reset ol > li {
105
+ margin-left: 20px;
106
+ padding-left: 4px;
107
+ list-style-type: decimal;
108
+ }
109
+
110
+ .vditor-reset ul > li > p,
111
+ .vditor-reset ol > li > p {
112
+ margin: 0.2em 0;
113
+ }
114
+
115
+ .vditor-reset code {
116
+ margin: 0 1px;
117
+ padding: .2em .4em;
118
+ font-size: .9em;
119
+ border-radius: 3px;
120
+ border: 1px solid #f0f0f0;
121
+ font-family: sfmono-regular, Consolas, liberation mono, Menlo, Courier, monospace;
122
+ }
123
+
124
+ .vditor-reset code:not(.hljs):not(.highlight-chroma) {
125
+ background: #f2f4f5;
126
+ color: rgba(0, 0, 0, .65);
127
+ }
128
+
129
+ .vditor-reset pre {
130
+ font-family: sfmono-regular, Consolas, liberation mono, Menlo, Courier, monospace;
131
+ border-radius: 2px;
132
+ }
133
+
134
+ .vditor-reset .language-abc svg,
135
+ .vditor-reset .language-abc path {
136
+ fill: currentColor;
137
+ color: rgba(0, 0, 0, .85);
138
+ }
139
+
140
+ .vditor-reset .language-graphviz polygon {
141
+ fill: transparent;
142
+ }
143
+
144
+ .vditor-reset strong,
145
+ .vditor-reset b {
146
+ font-weight: 500;
147
+ }
148
+
149
+ .vditor-reset > table {
150
+ width: 100%;
151
+ margin: 8px 0 16px;
152
+ direction: ltr;
153
+ empty-cells: show;
154
+ border: 1px solid #f0f0f0;
155
+ border-collapse: collapse;
156
+ border-spacing: 0
157
+ }
158
+
159
+ .vditor-reset > table th {
160
+ color: #5c6b77;
161
+ font-weight: 500;
162
+ white-space: nowrap;
163
+ background: rgba(0, 0, 0, .02)
164
+ }
165
+
166
+ .vditor-reset > table th, .vditor-reset > table td {
167
+ padding: 16px 24px;
168
+ text-align: left;
169
+ border: 1px solid #f0f0f0
170
+ }
171
+
172
+ .vditor-reset blockquote {
173
+ margin: 1em 0;
174
+ padding-left: .8em;
175
+ color: rgba(0, 0, 0, .45);
176
+ font-size: 90%;
177
+ border-left: 4px solid #f0f0f0
178
+ }
179
+
180
+ .vditor-reset blockquote p {
181
+ margin: 0;
182
+ }
183
+
184
+ .vditor-reset .vditor-anchor {
185
+ margin-left: 8px;
186
+ opacity: 0;
187
+ transition: opacity 0.3s;
188
+ }
189
+
190
+ .vditor-reset h1:hover .vditor-anchor,
191
+ .vditor-reset h2:hover .vditor-anchor,
192
+ .vditor-reset h3:hover .vditor-anchor,
193
+ .vditor-reset h4:hover .vditor-anchor,
194
+ .vditor-reset h5:hover .vditor-anchor,
195
+ .vditor-reset h6:hover .vditor-anchor {
196
+ display: inline-block;
197
+ opacity: 1;
198
+ }
199
+
200
+ .vditor-reset > br,
201
+ .vditor-reset > p > br {
202
+ clear: both;
203
+ }
204
+
205
+ .vditor-reset a, .vditor-ir__link {
206
+ color: #1890ff;
207
+ text-decoration: none;
208
+ outline: none;
209
+ cursor: pointer;
210
+ }
@@ -0,0 +1,123 @@
1
+ /*!
2
+ * Vditor - A markdown editor written in TypeScript.
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2018-present B3log 开源, b3log.org
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ */
27
+ .vditor-reset {
28
+ color: #d1d5da;
29
+ }
30
+
31
+ .vditor-reset a, .vditor-ir__link {
32
+ color: #4285f4;
33
+ }
34
+
35
+ .vditor-reset h1, .vditor-reset h2 {
36
+ padding-bottom: 0.3em;
37
+ border-bottom: 1px solid #d1d5da
38
+ }
39
+
40
+ .vditor-reset hr {
41
+ background-color: #d1d5da
42
+ }
43
+
44
+ .vditor-reset blockquote {
45
+ padding: 0 1em;
46
+ color: #b9b9b9;
47
+ border-left: .25em solid #d1d5da
48
+ }
49
+
50
+ .vditor-reset iframe {
51
+ border: 1px solid #141414
52
+ }
53
+
54
+ .vditor-reset table tr {
55
+ background-color: #2f363d
56
+ }
57
+
58
+ .vditor-reset table td, .vditor-reset table th {
59
+ border: 1px solid #dfe2e5
60
+ }
61
+
62
+ .vditor-reset table tbody tr:nth-child(2n) {
63
+ background-color: #24292e
64
+ }
65
+
66
+ .vditor-reset code:not(.hljs):not(.highlight-chroma) {
67
+ background-color: rgba(66, 133, 244, .36);
68
+ }
69
+
70
+ .vditor-reset .language-abc svg,
71
+ .vditor-reset .language-abc path {
72
+ fill: currentColor;
73
+ color: #d1d5da;
74
+ }
75
+
76
+ .language-graphviz polygon {
77
+ fill: rgba(66, 133, 244, .36);
78
+ }
79
+
80
+ .vditor-reset kbd {
81
+ color: #d1d5da;
82
+ background-color: #2f363d;
83
+ border: 1px solid #141414;
84
+ box-shadow: inset 0 -1px 0 #141414
85
+ }
86
+
87
+ .vditor-copy svg {
88
+ color: #b9b9b9
89
+ }
90
+
91
+ .vditor-speech {
92
+ background-color: #1d2125;
93
+ border: 1px solid #141414;
94
+ color: #b9b9b9
95
+ }
96
+
97
+ .vditor-speech--current, .vditor-speech:hover {
98
+ color: #fff
99
+ }
100
+
101
+ .vditor-linkcard a {
102
+ background-color: #1d2125;
103
+ }
104
+
105
+ .vditor-linkcard a:visited .vditor-linkcard__abstract {
106
+ color: hsla(0, 0%, 72.5%, .36)
107
+ }
108
+
109
+ .vditor-linkcard__title {
110
+ color: #d1d5da
111
+ }
112
+
113
+ .vditor-linkcard__abstract {
114
+ color: #b9b9b9
115
+ }
116
+
117
+ .vditor-linkcard__site {
118
+ color: #fff
119
+ }
120
+
121
+ .vditor-linkcard__image {
122
+ background-color: hsla(0, 0%, 72.5%, .36)
123
+ }
@@ -0,0 +1,101 @@
1
+ /*!
2
+ * Vditor - A markdown editor written in TypeScript.
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2018-present B3log 开源, b3log.org
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ */
27
+ .vditor-reset h1, .vditor-reset h2 {
28
+ padding-bottom: 0.3em;
29
+ border-bottom: 1px solid #eaecef;
30
+ }
31
+
32
+ .vditor-reset hr {
33
+ background-color: #eaecef;
34
+ }
35
+
36
+ .vditor-reset blockquote {
37
+ color: #6a737d;
38
+ border-left: .25em solid #eaecef
39
+ }
40
+
41
+ .vditor-reset iframe {
42
+ border: 1px solid #d1d5da
43
+ }
44
+
45
+ .vditor-reset table tr {
46
+ border-top: 1px solid #c6cbd1;
47
+ background-color: #fafbfc
48
+ }
49
+
50
+ .vditor-reset table td, .vditor-reset table th {
51
+ border: 1px solid #dfe2e5
52
+ }
53
+
54
+ .vditor-reset table tbody tr:nth-child(2n) {
55
+ background-color: #fff
56
+ }
57
+
58
+ .vditor-reset code:not(.hljs):not(.highlight-chroma) {
59
+ background-color: rgba(27, 31, 35, .05);
60
+ }
61
+
62
+ .vditor-reset kbd {
63
+ color: #24292e;
64
+ background-color: #fafbfc;
65
+ border: solid 1px #d1d5da;
66
+ box-shadow: inset 0 -1px 0 #d1d5da;
67
+ }
68
+
69
+ .vditor-speech {
70
+ background-color: #f6f8fa;
71
+ border: 1px solid #d1d5da;
72
+ color: #586069;
73
+ }
74
+
75
+ .vditor-speech--current, .vditor-speech:hover {
76
+ color: #4285f4;
77
+ }
78
+
79
+ .vditor-linkcard a {
80
+ background-color: #f6f8fa;
81
+ }
82
+
83
+ .vditor-linkcard a:visited .vditor-linkcard__abstract {
84
+ color: rgba(88, 96, 105, 0.36);
85
+ }
86
+
87
+ .vditor-linkcard__title {
88
+ color: #24292e;
89
+ }
90
+
91
+ .vditor-linkcard__abstract {
92
+ color: #586069;
93
+ }
94
+
95
+ .vditor-linkcard__site {
96
+ color: #4285f4;
97
+ }
98
+
99
+ .vditor-linkcard__image {
100
+ background-color: rgba(88, 96, 105, 0.36);
101
+ }
@@ -0,0 +1,94 @@
1
+ /*!
2
+ * Vditor - A markdown editor written in TypeScript.
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2018-present B3log 开源, b3log.org
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ */
27
+ .vditor-reset {
28
+ font-family: "mp-quote", -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
29
+ color: rgb(62, 62, 62);
30
+ }
31
+
32
+ .vditor-reset a, .vditor-ir__link {
33
+ color: #576b95;
34
+ }
35
+
36
+ .vditor-reset h1 {
37
+ font-weight: 400;
38
+ text-align: center;
39
+ color: rgb(26, 173, 25);
40
+ font-size: 24px;
41
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAACCAYAAABYBvyLAAAAGElEQVQImWNkXs/wn4GKgImahjEwMDAAAA6aAbVUOzXRAAAAAElFTkSuQmCC);
42
+ background-repeat: no-repeat;
43
+ background-position: center bottom;
44
+ }
45
+
46
+ .vditor-reset h2 {
47
+ font-weight: 400;
48
+ text-align: center;
49
+ font-size: 20px;
50
+ }
51
+
52
+ .vditor-reset h3,
53
+ .vditor-reset h4,
54
+ .vditor-reset h5,
55
+ .vditor-reset h6 {
56
+ font-weight: 400;
57
+ }
58
+
59
+ .vditor-reset hr {
60
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
61
+ transform-origin: 0 0;
62
+ transform: scale(1, 0.5);
63
+ height: 0;
64
+ }
65
+
66
+ .vditor-reset blockquote {
67
+ padding: 4px 0 0 10px;
68
+ border-left: 3px solid #dbdbdb;
69
+ color: #9a9a9a;
70
+ line-height: 1.6;
71
+ font-size: 15px;
72
+ margin: 1em 0;
73
+ }
74
+
75
+ .vditor-reset code {
76
+ font-size: 14px;
77
+ border: 1px solid #f0f0f0;
78
+ border-radius: 2px;
79
+ }
80
+
81
+ .vditor-reset code:not(.hljs):not(.highlight-chroma) {
82
+ background-color: rgba(0, 0, 0, 0.03);
83
+ color: #333;
84
+ }
85
+
86
+ .vditor-reset .language-abc svg,
87
+ .vditor-reset .language-abc path {
88
+ fill: currentColor;
89
+ color: rgb(62, 62, 62);
90
+ }
91
+
92
+ .vditor-reset .language-graphviz polygon {
93
+ fill: transparent;
94
+ }