@nocobase/plugin-field-markdown-vditor 0.21.0-alpha.16

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 (340) hide show
  1. package/LICENSE.txt +122 -0
  2. package/README.md +1 -0
  3. package/build.config.ts +15 -0
  4. package/client.d.ts +2 -0
  5. package/client.js +1 -0
  6. package/dist/client/components/Display.d.ts +2 -0
  7. package/dist/client/components/Edit.d.ts +2 -0
  8. package/dist/client/components/const.d.ts +1 -0
  9. package/dist/client/components/index.d.ts +3 -0
  10. package/dist/client/components/style.d.ts +2 -0
  11. package/dist/client/index.d.ts +10 -0
  12. package/dist/client/index.js +259 -0
  13. package/dist/client/interfaces/markdown-vditor.d.ts +91 -0
  14. package/dist/client/locale/index.d.ts +1 -0
  15. package/dist/client/utils/index.d.ts +0 -0
  16. package/dist/client/vditor/dist/css/content-theme/ant-design.css +210 -0
  17. package/dist/client/vditor/dist/css/content-theme/dark.css +123 -0
  18. package/dist/client/vditor/dist/css/content-theme/light.css +101 -0
  19. package/dist/client/vditor/dist/css/content-theme/wechat.css +94 -0
  20. package/dist/client/vditor/dist/images/emoji/b3log.png +0 -0
  21. package/dist/client/vditor/dist/images/emoji/chainbook.png +0 -0
  22. package/dist/client/vditor/dist/images/emoji/doge.png +0 -0
  23. package/dist/client/vditor/dist/images/emoji/hacpai.png +0 -0
  24. package/dist/client/vditor/dist/images/emoji/huaji.gif +0 -0
  25. package/dist/client/vditor/dist/images/emoji/latke.png +0 -0
  26. package/dist/client/vditor/dist/images/emoji/liandi.png +0 -0
  27. package/dist/client/vditor/dist/images/emoji/lute.png +0 -0
  28. package/dist/client/vditor/dist/images/emoji/octocat.png +0 -0
  29. package/dist/client/vditor/dist/images/emoji/pipe.png +0 -0
  30. package/dist/client/vditor/dist/images/emoji/siyuan.png +0 -0
  31. package/dist/client/vditor/dist/images/emoji/solo.png +0 -0
  32. package/dist/client/vditor/dist/images/emoji/sym.png +0 -0
  33. package/dist/client/vditor/dist/images/emoji/trollface.png +0 -0
  34. package/dist/client/vditor/dist/images/emoji/vditor.png +0 -0
  35. package/dist/client/vditor/dist/images/emoji/wide.png +0 -0
  36. package/dist/client/vditor/dist/images/emoji/wulian.png +0 -0
  37. package/dist/client/vditor/dist/images/img-loading.svg +1 -0
  38. package/dist/client/vditor/dist/images/logo.png +0 -0
  39. package/dist/client/vditor/dist/index.css +1836 -0
  40. package/dist/client/vditor/dist/index.d.ts +76 -0
  41. package/dist/client/vditor/dist/index.min.js +1 -0
  42. package/dist/client/vditor/dist/js/abcjs/abcjs_basic.min.js +3 -0
  43. package/dist/client/vditor/dist/js/echarts/echarts.min.js +23 -0
  44. package/dist/client/vditor/dist/js/flowchart.js/flowchart.min.js +8 -0
  45. package/dist/client/vditor/dist/js/graphviz/full.render.js +90 -0
  46. package/dist/client/vditor/dist/js/graphviz/viz.js +333 -0
  47. package/dist/client/vditor/dist/js/highlight.js/highlight.pack.js +1617 -0
  48. package/dist/client/vditor/dist/js/highlight.js/solidity.min.js +73 -0
  49. package/dist/client/vditor/dist/js/highlight.js/styles/abap.css +155 -0
  50. package/dist/client/vditor/dist/js/highlight.js/styles/algol.css +143 -0
  51. package/dist/client/vditor/dist/js/highlight.js/styles/algol_nu.css +90 -0
  52. package/dist/client/vditor/dist/js/highlight.js/styles/ant-design.css +469 -0
  53. package/dist/client/vditor/dist/js/highlight.js/styles/arduino.css +157 -0
  54. package/dist/client/vditor/dist/js/highlight.js/styles/autumn.css +138 -0
  55. package/dist/client/vditor/dist/js/highlight.js/styles/borland.css +147 -0
  56. package/dist/client/vditor/dist/js/highlight.js/styles/bw.css +150 -0
  57. package/dist/client/vditor/dist/js/highlight.js/styles/colorful.css +158 -0
  58. package/dist/client/vditor/dist/js/highlight.js/styles/dracula.css +140 -0
  59. package/dist/client/vditor/dist/js/highlight.js/styles/emacs.css +167 -0
  60. package/dist/client/vditor/dist/js/highlight.js/styles/friendly.css +183 -0
  61. package/dist/client/vditor/dist/js/highlight.js/styles/fruity.css +123 -0
  62. package/dist/client/vditor/dist/js/highlight.js/styles/github.css +174 -0
  63. package/dist/client/vditor/dist/js/highlight.js/styles/igor.css +124 -0
  64. package/dist/client/vditor/dist/js/highlight.js/styles/lovelace.css +146 -0
  65. package/dist/client/vditor/dist/js/highlight.js/styles/manni.css +139 -0
  66. package/dist/client/vditor/dist/js/highlight.js/styles/monokai.css +132 -0
  67. package/dist/client/vditor/dist/js/highlight.js/styles/monokailight.css +180 -0
  68. package/dist/client/vditor/dist/js/highlight.js/styles/murphy.css +144 -0
  69. package/dist/client/vditor/dist/js/highlight.js/styles/native.css +164 -0
  70. package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-dark.css +137 -0
  71. package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-light.css +136 -0
  72. package/dist/client/vditor/dist/js/highlight.js/styles/pastie.css +180 -0
  73. package/dist/client/vditor/dist/js/highlight.js/styles/perldoc.css +141 -0
  74. package/dist/client/vditor/dist/js/highlight.js/styles/pygments.css +159 -0
  75. package/dist/client/vditor/dist/js/highlight.js/styles/rainbow_dash.css +164 -0
  76. package/dist/client/vditor/dist/js/highlight.js/styles/rrt.css +159 -0
  77. package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark.css +146 -0
  78. package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark256.css +146 -0
  79. package/dist/client/vditor/dist/js/highlight.js/styles/solarized-light.css +163 -0
  80. package/dist/client/vditor/dist/js/highlight.js/styles/swapoff.css +144 -0
  81. package/dist/client/vditor/dist/js/highlight.js/styles/tango.css +183 -0
  82. package/dist/client/vditor/dist/js/highlight.js/styles/trac.css +167 -0
  83. package/dist/client/vditor/dist/js/highlight.js/styles/vim.css +144 -0
  84. package/dist/client/vditor/dist/js/highlight.js/styles/vs.css +113 -0
  85. package/dist/client/vditor/dist/js/highlight.js/styles/xcode.css +174 -0
  86. package/dist/client/vditor/dist/js/highlight.js/yul.min.js +30 -0
  87. package/dist/client/vditor/dist/js/i18n/en_US.js +85 -0
  88. package/dist/client/vditor/dist/js/i18n/fr_FR.js +85 -0
  89. package/dist/client/vditor/dist/js/i18n/ja_JP.js +85 -0
  90. package/dist/client/vditor/dist/js/i18n/ko_KR.js +85 -0
  91. package/dist/client/vditor/dist/js/i18n/pt_BR.js +85 -0
  92. package/dist/client/vditor/dist/js/i18n/ru_RU.js +85 -0
  93. package/dist/client/vditor/dist/js/i18n/sv_SE.js +85 -0
  94. package/dist/client/vditor/dist/js/i18n/zh_CN.js +85 -0
  95. package/dist/client/vditor/dist/js/i18n/zh_TW.js +85 -0
  96. package/dist/client/vditor/dist/js/icons/ant.js +174 -0
  97. package/dist/client/vditor/dist/js/icons/material.js +195 -0
  98. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
  99. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  100. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  101. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  102. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  103. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  104. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  105. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  106. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  107. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  108. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  109. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  110. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  111. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  112. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  113. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
  114. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  115. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  116. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  117. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  118. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  119. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
  120. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  121. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  122. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
  123. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  124. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  125. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  126. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  127. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  128. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
  129. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  130. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  131. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  132. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  133. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  134. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  135. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  136. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  137. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  138. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  139. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  140. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
  141. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
  142. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  143. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
  144. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  145. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  146. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
  147. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  148. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  149. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
  150. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  151. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  152. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
  153. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  154. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  155. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  156. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  157. package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  158. package/dist/client/vditor/dist/js/katex/katex.min.css +1 -0
  159. package/dist/client/vditor/dist/js/katex/katex.min.js +1 -0
  160. package/dist/client/vditor/dist/js/katex/mhchem.min.js +1 -0
  161. package/dist/client/vditor/dist/js/lute/lute.min.js +71 -0
  162. package/dist/client/vditor/dist/js/markmap/katex.min.css +1 -0
  163. package/dist/client/vditor/dist/js/markmap/markmap.min.js +8251 -0
  164. package/dist/client/vditor/dist/js/markmap/prism.css +140 -0
  165. package/dist/client/vditor/dist/js/mathjax/LICENSE +202 -0
  166. package/dist/client/vditor/dist/js/mathjax/a11y/assistive-mml.js +1 -0
  167. package/dist/client/vditor/dist/js/mathjax/a11y/complexity.js +1 -0
  168. package/dist/client/vditor/dist/js/mathjax/a11y/explorer.js +1 -0
  169. package/dist/client/vditor/dist/js/mathjax/a11y/semantic-enrich.js +1 -0
  170. package/dist/client/vditor/dist/js/mathjax/input/asciimath.js +1 -0
  171. package/dist/client/vditor/dist/js/mathjax/input/mml/entities.js +1 -0
  172. package/dist/client/vditor/dist/js/mathjax/input/mml.js +1 -0
  173. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/action.js +1 -0
  174. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/all-packages.js +1 -0
  175. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/ams.js +1 -0
  176. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/amscd.js +1 -0
  177. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/autoload.js +1 -0
  178. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/bbox.js +1 -0
  179. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/boldsymbol.js +1 -0
  180. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/braket.js +1 -0
  181. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/bussproofs.js +1 -0
  182. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/cancel.js +1 -0
  183. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/color.js +1 -0
  184. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/colorV2.js +1 -0
  185. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/configMacros.js +1 -0
  186. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/enclose.js +1 -0
  187. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/extpfeil.js +1 -0
  188. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/html.js +1 -0
  189. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/mhchem.js +1 -0
  190. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/newcommand.js +1 -0
  191. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/noerrors.js +1 -0
  192. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/noundefined.js +1 -0
  193. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/physics.js +1 -0
  194. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/require.js +1 -0
  195. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/tagFormat.js +1 -0
  196. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/textmacros.js +1 -0
  197. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/unicode.js +1 -0
  198. package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/verb.js +1 -0
  199. package/dist/client/vditor/dist/js/mathjax/input/tex-base.js +1 -0
  200. package/dist/client/vditor/dist/js/mathjax/input/tex-full.js +1 -0
  201. package/dist/client/vditor/dist/js/mathjax/input/tex.js +1 -0
  202. package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/de.js +104 -0
  203. package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/en.js +110 -0
  204. package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/es.js +104 -0
  205. package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/fr.js +104 -0
  206. package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/mathmaps_ie.js +518 -0
  207. package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/nemeth.js +104 -0
  208. package/dist/client/vditor/dist/js/mathjax/sre/sre-node.js +11 -0
  209. package/dist/client/vditor/dist/js/mathjax/sre/sre_browser.js +1633 -0
  210. package/dist/client/vditor/dist/js/mathjax/tex-svg-full.js +1 -0
  211. package/dist/client/vditor/dist/js/mermaid/mermaid.min.js +1759 -0
  212. package/dist/client/vditor/dist/js/plantuml/plantuml-encoder.min.js +1 -0
  213. package/dist/client/vditor/dist/method.d.ts +50 -0
  214. package/dist/client/vditor/dist/method.min.js +1 -0
  215. package/dist/client/vditor/dist/ts/constants.d.ts +45 -0
  216. package/dist/client/vditor/dist/ts/devtools/index.d.ts +7 -0
  217. package/dist/client/vditor/dist/ts/export/index.d.ts +5 -0
  218. package/dist/client/vditor/dist/ts/hint/index.d.ts +14 -0
  219. package/dist/client/vditor/dist/ts/ir/expandMarker.d.ts +2 -0
  220. package/dist/client/vditor/dist/ts/ir/highlightToolbarIR.d.ts +2 -0
  221. package/dist/client/vditor/dist/ts/ir/index.d.ts +13 -0
  222. package/dist/client/vditor/dist/ts/ir/input.d.ts +2 -0
  223. package/dist/client/vditor/dist/ts/ir/process.d.ts +9 -0
  224. package/dist/client/vditor/dist/ts/ir/processKeydown.d.ts +2 -0
  225. package/dist/client/vditor/dist/ts/markdown/abcRender.d.ts +1 -0
  226. package/dist/client/vditor/dist/ts/markdown/adapterRender.d.ts +37 -0
  227. package/dist/client/vditor/dist/ts/markdown/anchorRender.d.ts +1 -0
  228. package/dist/client/vditor/dist/ts/markdown/chartRender.d.ts +1 -0
  229. package/dist/client/vditor/dist/ts/markdown/codeRender.d.ts +2 -0
  230. package/dist/client/vditor/dist/ts/markdown/flowchartRender.d.ts +1 -0
  231. package/dist/client/vditor/dist/ts/markdown/getHTML.d.ts +2 -0
  232. package/dist/client/vditor/dist/ts/markdown/getMarkdown.d.ts +2 -0
  233. package/dist/client/vditor/dist/ts/markdown/graphvizRender.d.ts +1 -0
  234. package/dist/client/vditor/dist/ts/markdown/highlightRender.d.ts +2 -0
  235. package/dist/client/vditor/dist/ts/markdown/lazyLoadImageRender.d.ts +6 -0
  236. package/dist/client/vditor/dist/ts/markdown/markmapRender.d.ts +1 -0
  237. package/dist/client/vditor/dist/ts/markdown/mathRender.d.ts +10 -0
  238. package/dist/client/vditor/dist/ts/markdown/mediaRender.d.ts +1 -0
  239. package/dist/client/vditor/dist/ts/markdown/mermaidRender.d.ts +1 -0
  240. package/dist/client/vditor/dist/ts/markdown/mindmapRender.d.ts +1 -0
  241. package/dist/client/vditor/dist/ts/markdown/outlineRender.d.ts +2 -0
  242. package/dist/client/vditor/dist/ts/markdown/plantumlRender.d.ts +1 -0
  243. package/dist/client/vditor/dist/ts/markdown/previewRender.d.ts +3 -0
  244. package/dist/client/vditor/dist/ts/markdown/setLute.d.ts +2 -0
  245. package/dist/client/vditor/dist/ts/markdown/speechRender.d.ts +7 -0
  246. package/dist/client/vditor/dist/ts/outline/index.d.ts +7 -0
  247. package/dist/client/vditor/dist/ts/preview/image.d.ts +2 -0
  248. package/dist/client/vditor/dist/ts/preview/index.d.ts +10 -0
  249. package/dist/client/vditor/dist/ts/resize/index.d.ts +6 -0
  250. package/dist/client/vditor/dist/ts/sv/combineFootnote.d.ts +6 -0
  251. package/dist/client/vditor/dist/ts/sv/index.d.ts +13 -0
  252. package/dist/client/vditor/dist/ts/sv/inputEvent.d.ts +2 -0
  253. package/dist/client/vditor/dist/ts/sv/process.d.ts +12 -0
  254. package/dist/client/vditor/dist/ts/sv/processKeydown.d.ts +2 -0
  255. package/dist/client/vditor/dist/ts/tip/index.d.ts +6 -0
  256. package/dist/client/vditor/dist/ts/toolbar/Both.d.ts +5 -0
  257. package/dist/client/vditor/dist/ts/toolbar/Br.d.ts +4 -0
  258. package/dist/client/vditor/dist/ts/toolbar/CodeTheme.d.ts +6 -0
  259. package/dist/client/vditor/dist/ts/toolbar/ContentTheme.d.ts +6 -0
  260. package/dist/client/vditor/dist/ts/toolbar/Counter.d.ts +6 -0
  261. package/dist/client/vditor/dist/ts/toolbar/Custom.d.ts +5 -0
  262. package/dist/client/vditor/dist/ts/toolbar/Devtools.d.ts +5 -0
  263. package/dist/client/vditor/dist/ts/toolbar/Divider.d.ts +4 -0
  264. package/dist/client/vditor/dist/ts/toolbar/EditMode.d.ts +8 -0
  265. package/dist/client/vditor/dist/ts/toolbar/Emoji.d.ts +7 -0
  266. package/dist/client/vditor/dist/ts/toolbar/Export.d.ts +6 -0
  267. package/dist/client/vditor/dist/ts/toolbar/Fullscreen.d.ts +6 -0
  268. package/dist/client/vditor/dist/ts/toolbar/Headings.d.ts +7 -0
  269. package/dist/client/vditor/dist/ts/toolbar/Help.d.ts +5 -0
  270. package/dist/client/vditor/dist/ts/toolbar/Indent.d.ts +5 -0
  271. package/dist/client/vditor/dist/ts/toolbar/Info.d.ts +5 -0
  272. package/dist/client/vditor/dist/ts/toolbar/InsertAfter.d.ts +5 -0
  273. package/dist/client/vditor/dist/ts/toolbar/InsertBefore.d.ts +5 -0
  274. package/dist/client/vditor/dist/ts/toolbar/MenuItem.d.ts +5 -0
  275. package/dist/client/vditor/dist/ts/toolbar/Outdent.d.ts +5 -0
  276. package/dist/client/vditor/dist/ts/toolbar/Outline.d.ts +5 -0
  277. package/dist/client/vditor/dist/ts/toolbar/Preview.d.ts +6 -0
  278. package/dist/client/vditor/dist/ts/toolbar/Record.d.ts +6 -0
  279. package/dist/client/vditor/dist/ts/toolbar/Redo.d.ts +5 -0
  280. package/dist/client/vditor/dist/ts/toolbar/Undo.d.ts +5 -0
  281. package/dist/client/vditor/dist/ts/toolbar/Upload.d.ts +6 -0
  282. package/dist/client/vditor/dist/ts/toolbar/index.d.ts +9 -0
  283. package/dist/client/vditor/dist/ts/toolbar/setToolbar.d.ts +21 -0
  284. package/dist/client/vditor/dist/ts/ui/initUI.d.ts +10 -0
  285. package/dist/client/vditor/dist/ts/ui/setCodeTheme.d.ts +1 -0
  286. package/dist/client/vditor/dist/ts/ui/setContentTheme.d.ts +1 -0
  287. package/dist/client/vditor/dist/ts/ui/setPreviewMode.d.ts +2 -0
  288. package/dist/client/vditor/dist/ts/ui/setTheme.d.ts +2 -0
  289. package/dist/client/vditor/dist/ts/undo/index.d.ts +19 -0
  290. package/dist/client/vditor/dist/ts/upload/getElement.d.ts +2 -0
  291. package/dist/client/vditor/dist/ts/upload/index.d.ts +9 -0
  292. package/dist/client/vditor/dist/ts/upload/setHeaders.d.ts +2 -0
  293. package/dist/client/vditor/dist/ts/util/Options.d.ts +8 -0
  294. package/dist/client/vditor/dist/ts/util/RecordMedia.d.ts +18 -0
  295. package/dist/client/vditor/dist/ts/util/addScript.d.ts +2 -0
  296. package/dist/client/vditor/dist/ts/util/addStyle.d.ts +1 -0
  297. package/dist/client/vditor/dist/ts/util/code160to32.d.ts +1 -0
  298. package/dist/client/vditor/dist/ts/util/compatibility.d.ts +7 -0
  299. package/dist/client/vditor/dist/ts/util/editorCommonEvent.d.ts +10 -0
  300. package/dist/client/vditor/dist/ts/util/fixBrowserBehavior.d.ts +40 -0
  301. package/dist/client/vditor/dist/ts/util/function.d.ts +2 -0
  302. package/dist/client/vditor/dist/ts/util/getSelectText.d.ts +1 -0
  303. package/dist/client/vditor/dist/ts/util/hasClosest.d.ts +9 -0
  304. package/dist/client/vditor/dist/ts/util/hasClosestByHeadings.d.ts +2 -0
  305. package/dist/client/vditor/dist/ts/util/highlightToolbar.d.ts +2 -0
  306. package/dist/client/vditor/dist/ts/util/hotKey.d.ts +1 -0
  307. package/dist/client/vditor/dist/ts/util/log.d.ts +1 -0
  308. package/dist/client/vditor/dist/ts/util/merge.d.ts +1 -0
  309. package/dist/client/vditor/dist/ts/util/processCode.d.ts +3 -0
  310. package/dist/client/vditor/dist/ts/util/selection.d.ts +15 -0
  311. package/dist/client/vditor/dist/ts/util/toc.d.ts +6 -0
  312. package/dist/client/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts +6 -0
  313. package/dist/client/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +5 -0
  314. package/dist/client/vditor/dist/ts/wysiwyg/index.d.ts +22 -0
  315. package/dist/client/vditor/dist/ts/wysiwyg/inlineTag.d.ts +11 -0
  316. package/dist/client/vditor/dist/ts/wysiwyg/input.d.ts +2 -0
  317. package/dist/client/vditor/dist/ts/wysiwyg/processKeydown.d.ts +3 -0
  318. package/dist/client/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts +6 -0
  319. package/dist/client/vditor/dist/ts/wysiwyg/setHeading.d.ts +3 -0
  320. package/dist/client/vditor/dist/ts/wysiwyg/showCode.d.ts +2 -0
  321. package/dist/client/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts +2 -0
  322. package/dist/client/vditor/dist/types/index.d.ts +866 -0
  323. package/dist/externalVersion.js +9 -0
  324. package/dist/index.d.ts +2 -0
  325. package/dist/index.js +39 -0
  326. package/dist/locale/en-US.d.ts +34 -0
  327. package/dist/locale/en-US.js +55 -0
  328. package/dist/locale/ko_KR.d.ts +34 -0
  329. package/dist/locale/ko_KR.js +55 -0
  330. package/dist/locale/zh-CN.d.ts +34 -0
  331. package/dist/locale/zh-CN.js +55 -0
  332. package/dist/server/index.d.ts +1 -0
  333. package/dist/server/index.js +33 -0
  334. package/dist/server/markdown-vditor-field.d.ts +4 -0
  335. package/dist/server/markdown-vditor-field.js +32 -0
  336. package/dist/server/plugin.d.ts +11 -0
  337. package/dist/server/plugin.js +45 -0
  338. package/package.json +31 -0
  339. package/server.d.ts +2 -0
  340. package/server.js +1 -0
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ "@nocobase/client": "0.21.0-alpha.16",
3
+ "@nocobase/database": "0.21.0-alpha.16",
4
+ "@nocobase/server": "0.21.0-alpha.16",
5
+ "@formily/core": "2.3.0",
6
+ "@formily/react": "2.3.0",
7
+ "antd": "5.12.8",
8
+ "react": "18.2.0"
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from './server';
2
+ export { default } from './server';
package/dist/index.js ADDED
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ default: () => import_server.default
32
+ });
33
+ module.exports = __toCommonJS(src_exports);
34
+ __reExport(src_exports, require("./server"), module.exports);
35
+ var import_server = __toESM(require("./server"));
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ ...require("./server")
39
+ });
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ Vditor: string;
3
+ "File collection": string;
4
+ "Used to store files uploaded in the Markdown editor": string;
5
+ Toolbar: string;
6
+ Emoji: string;
7
+ Headings: string;
8
+ Bold: string;
9
+ Italic: string;
10
+ Strike: string;
11
+ Record: string;
12
+ Line: string;
13
+ Quote: string;
14
+ List: string;
15
+ OrderedList: string;
16
+ Check: string;
17
+ Outdent: string;
18
+ Indent: string;
19
+ Code: string;
20
+ InlineCode: string;
21
+ InsertAfter: string;
22
+ InsertBefore: string;
23
+ Undo: string;
24
+ Redo: string;
25
+ Upload: string;
26
+ Link: string;
27
+ Table: string;
28
+ EditMode: string;
29
+ Both: string;
30
+ Preview: string;
31
+ Fullscreen: string;
32
+ Outline: string;
33
+ };
34
+ export default _default;
@@ -0,0 +1,55 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var en_US_exports = {};
19
+ __export(en_US_exports, {
20
+ default: () => en_US_default
21
+ });
22
+ module.exports = __toCommonJS(en_US_exports);
23
+ var en_US_default = {
24
+ "Vditor": "Markdown(Vditor)",
25
+ "File collection": "File collection",
26
+ "Used to store files uploaded in the Markdown editor": "Used to store files uploaded in the Markdown editor",
27
+ "Toolbar": "Editor toolbar configuration",
28
+ "Emoji": "Emoji",
29
+ "Headings": "Headings",
30
+ "Bold": "Bold",
31
+ "Italic": "Italic",
32
+ "Strike": "Strike",
33
+ "Record": "Start Record/End Record",
34
+ "Line": "Line",
35
+ "Quote": "Quote",
36
+ "List": "List",
37
+ "OrderedList": "Order List",
38
+ "Check": "Task List",
39
+ "Outdent": "Outdent",
40
+ "Indent": "Indent",
41
+ "Code": "Code Block",
42
+ "InlineCode": "Inline Code",
43
+ "InsertAfter": "Insert Line After",
44
+ "InsertBefore": "Insert Line Before",
45
+ "Undo": "Undo",
46
+ "Redo": "Redo",
47
+ "Upload": "Upload image or file",
48
+ "Link": "Link",
49
+ "Table": "Table",
50
+ "EditMode": "Edit Mode",
51
+ "Both": "Editor & Preview",
52
+ "Preview": "Preview",
53
+ "Fullscreen": "Toggle Fullscreen",
54
+ "Outline": "Outline"
55
+ };
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ Vditor: string;
3
+ "File collection": string;
4
+ "Used to store files uploaded in the Markdown editor": string;
5
+ Toolbar: string;
6
+ Emoji: string;
7
+ Headings: string;
8
+ Bold: string;
9
+ Italic: string;
10
+ Strike: string;
11
+ Record: string;
12
+ Line: string;
13
+ Quote: string;
14
+ List: string;
15
+ OrderedList: string;
16
+ Check: string;
17
+ Outdent: string;
18
+ Indent: string;
19
+ Code: string;
20
+ InlineCode: string;
21
+ InsertAfter: string;
22
+ InsertBefore: string;
23
+ Undo: string;
24
+ Redo: string;
25
+ Upload: string;
26
+ Link: string;
27
+ Table: string;
28
+ EditMode: string;
29
+ Both: string;
30
+ Preview: string;
31
+ Fullscreen: string;
32
+ Outline: string;
33
+ };
34
+ export default _default;
@@ -0,0 +1,55 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var ko_KR_exports = {};
19
+ __export(ko_KR_exports, {
20
+ default: () => ko_KR_default
21
+ });
22
+ module.exports = __toCommonJS(ko_KR_exports);
23
+ var ko_KR_default = {
24
+ "Vditor": "Markdown(Vditor)",
25
+ "File collection": "\uD30C\uC77C \uB370\uC774\uD130 \uD14C\uC774\uBE14",
26
+ "Used to store files uploaded in the Markdown editor": "Markdown \uD3B8\uC9D1\uAE30\uC5D0 \uC5C5\uB85C\uB4DC\uB41C \uD30C\uC77C\uC744 \uC800\uC7A5\uD558\uB294 \uB370 \uC0AC\uC6A9\uB429\uB2C8\uB2E4",
27
+ "Toolbar": "\uD3B8\uC9D1\uAE30 \uB3C4\uAD6C \uBAA8\uC74C \uAD6C\uC131",
28
+ "Emoji": "\uC774\uBAA8\uC9C0",
29
+ "Headings": "\uC81C\uBAA9\uD06C\uAE30",
30
+ "Bold": "\uAD75\uAC8C",
31
+ "Italic": "\uAE30\uC6B8\uC784\uAF34",
32
+ "Strike": "\uCDE8\uC18C\uC120",
33
+ "Record": "\uB179\uC74C\uC2DC\uC791/\uB179\uC74C\uC885\uB8CC",
34
+ "Line": "\uBB38\uB2E8\uB098\uB214",
35
+ "Quote": "\uC778\uC6A9\uB2E8\uB77D",
36
+ "List": "\uC21C\uC11C\uC5C6\uB294 \uBAA9\uB85D",
37
+ "OrderedList": "\uC21C\uC11C\uC788\uB294 \uBAA9\uB85D",
38
+ "Check": "\uCCB4\uD06C\uBC15\uC2A4",
39
+ "Outdent": "\uB0B4\uC5B4\uC4F0\uAE30",
40
+ "Indent": "\uB4E4\uC5EC\uC4F0\uAE30",
41
+ "Code": "\uCF54\uB4DC\uBE14\uB7ED\uC0BD\uC785",
42
+ "InlineCode": "\uC778\uB77C\uC778\uCF54\uB4DC",
43
+ "InsertAfter": "\uBE14\uB77D \uB4A4\uB85C \uC785\uB825",
44
+ "InsertBefore": "\uBE14\uB77D \uC55E\uC73C\uB85C \uC785\uB825",
45
+ "Undo": "\uCDE8\uC18C\uD558\uAE30",
46
+ "Redo": "\uB418\uB3CC\uB9AC\uAE30",
47
+ "Upload": "\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC\uD558\uAE30",
48
+ "Link": "\uB9C1\uD06C",
49
+ "Table": "\uD45C\uC0BD\uC785",
50
+ "EditMode": "\uD3B8\uC9D1\uBAA8\uB4DC",
51
+ "Both": "\uC5D0\uB514\uD130 & \uBBF8\uB9AC\uBCF4\uAE30",
52
+ "Preview": "\uBBF8\uB9AC\uBCF4\uAE30",
53
+ "Fullscreen": "\uC804\uCCB4\uD654\uBA74",
54
+ "Outline": "\uAC1C\uC694"
55
+ };
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ Vditor: string;
3
+ "File collection": string;
4
+ "Used to store files uploaded in the Markdown editor": string;
5
+ Toolbar: string;
6
+ Emoji: string;
7
+ Headings: string;
8
+ Bold: string;
9
+ Italic: string;
10
+ Strike: string;
11
+ Record: string;
12
+ Line: string;
13
+ Quote: string;
14
+ List: string;
15
+ OrderedList: string;
16
+ Check: string;
17
+ Outdent: string;
18
+ Indent: string;
19
+ Code: string;
20
+ InlineCode: string;
21
+ InsertAfter: string;
22
+ InsertBefore: string;
23
+ Undo: string;
24
+ Redo: string;
25
+ Upload: string;
26
+ Link: string;
27
+ Table: string;
28
+ EditMode: string;
29
+ Both: string;
30
+ Preview: string;
31
+ Fullscreen: string;
32
+ Outline: string;
33
+ };
34
+ export default _default;
@@ -0,0 +1,55 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var zh_CN_exports = {};
19
+ __export(zh_CN_exports, {
20
+ default: () => zh_CN_default
21
+ });
22
+ module.exports = __toCommonJS(zh_CN_exports);
23
+ var zh_CN_default = {
24
+ "Vditor": "Markdown(Vditor)",
25
+ "File collection": "\u6587\u4EF6\u6570\u636E\u8868",
26
+ "Used to store files uploaded in the Markdown editor": "\u7528\u4E8E\u5B58\u50A8\u5728Markdown\u7F16\u8F91\u5668\u4E2D\u4E0A\u4F20\u7684\u6587\u4EF6",
27
+ "Toolbar": "\u7F16\u8F91\u5668\u5DE5\u5177\u680F\u914D\u7F6E",
28
+ "Emoji": "\u8868\u60C5",
29
+ "Headings": "\u6807\u9898",
30
+ "Bold": "\u7C97\u4F53",
31
+ "Italic": "\u659C\u4F53",
32
+ "Strike": "\u5220\u9664\u7EBF",
33
+ "Record": "\u5F00\u59CB\u5F55\u97F3/\u7ED3\u675F\u5F55\u97F3",
34
+ "Line": "\u5206\u5272\u7EBF",
35
+ "Quote": "\u5F15\u7528",
36
+ "List": "\u65E0\u5E8F\u5217\u8868",
37
+ "OrderedList": "\u6709\u5E8F\u5217\u8868",
38
+ "Check": "\u4EFB\u52A1\u5217\u8868",
39
+ "Outdent": "\u5217\u8868\u53CD\u5411\u7F29\u8FDB",
40
+ "Indent": "\u5217\u8868\u7F29\u8FDB",
41
+ "Code": "\u4EE3\u7801\u5757",
42
+ "InlineCode": "\u884C\u5185\u4EE3\u7801",
43
+ "InsertAfter": "\u672B\u5C3E\u63D2\u5165\u884C",
44
+ "InsertBefore": "\u8D77\u59CB\u63D2\u5165\u884C",
45
+ "Undo": "\u64A4\u9500",
46
+ "Redo": "\u91CD\u505A",
47
+ "Upload": "\u4E0A\u4F20\u56FE\u7247\u6216\u6587\u4EF6",
48
+ "Link": "\u94FE\u63A5",
49
+ "Table": "\u8868\u683C",
50
+ "EditMode": "\u5207\u6362\u7F16\u8F91\u6A21\u5F0F",
51
+ "Both": "\u7F16\u8F91 & \u9884\u89C8",
52
+ "Preview": "\u9884\u89C8",
53
+ "Fullscreen": "\u5168\u5C4F\u5207\u6362",
54
+ "Outline": "\u5927\u7EB2"
55
+ };
@@ -0,0 +1 @@
1
+ export { default } from './plugin';
@@ -0,0 +1,33 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var server_exports = {};
29
+ __export(server_exports, {
30
+ default: () => import_plugin.default
31
+ });
32
+ module.exports = __toCommonJS(server_exports);
33
+ var import_plugin = __toESM(require("./plugin"));
@@ -0,0 +1,4 @@
1
+ import { DataTypes, Field } from '@nocobase/database';
2
+ export declare class MarkdownVditorField extends Field {
3
+ get dataType(): DataTypes.TextDataTypeConstructor;
4
+ }
@@ -0,0 +1,32 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var markdown_vditor_field_exports = {};
19
+ __export(markdown_vditor_field_exports, {
20
+ MarkdownVditorField: () => MarkdownVditorField
21
+ });
22
+ module.exports = __toCommonJS(markdown_vditor_field_exports);
23
+ var import_database = require("@nocobase/database");
24
+ class MarkdownVditorField extends import_database.Field {
25
+ get dataType() {
26
+ return import_database.DataTypes.TEXT;
27
+ }
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ MarkdownVditorField
32
+ });
@@ -0,0 +1,11 @@
1
+ import { Plugin } from '@nocobase/server';
2
+ export declare class PluginFieldMarkdownVditorServer extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ beforeLoad(): Promise<void>;
5
+ load(): Promise<void>;
6
+ install(): Promise<void>;
7
+ afterEnable(): Promise<void>;
8
+ afterDisable(): Promise<void>;
9
+ remove(): Promise<void>;
10
+ }
11
+ export default PluginFieldMarkdownVditorServer;
@@ -0,0 +1,45 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var plugin_exports = {};
19
+ __export(plugin_exports, {
20
+ PluginFieldMarkdownVditorServer: () => PluginFieldMarkdownVditorServer,
21
+ default: () => plugin_default
22
+ });
23
+ module.exports = __toCommonJS(plugin_exports);
24
+ var import_server = require("@nocobase/server");
25
+ class PluginFieldMarkdownVditorServer extends import_server.Plugin {
26
+ async afterAdd() {
27
+ }
28
+ async beforeLoad() {
29
+ }
30
+ async load() {
31
+ }
32
+ async install() {
33
+ }
34
+ async afterEnable() {
35
+ }
36
+ async afterDisable() {
37
+ }
38
+ async remove() {
39
+ }
40
+ }
41
+ var plugin_default = PluginFieldMarkdownVditorServer;
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ PluginFieldMarkdownVditorServer
45
+ });
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@nocobase/plugin-field-markdown-vditor",
3
+ "displayName": "Collection field: Markdown(Vditor)",
4
+ "displayName.zh-CN": "数据表字段:Markdown(Vditor)",
5
+ "description": "Used to store Markdown and render it using Vditor editor, supports common Markdown syntax such as list, code, quote, etc., and supports uploading images, recordings, etc.It also allows for instant rendering, where what you see is what you get.",
6
+ "description.zh-CN": "用于存储 Markdown,并使用 Vditor 编辑器渲染,支持常见 Markdown 语法,如列表,代码,引用等,并支持上传图片,录音等。同时可以做到即时渲染,所见即所得。",
7
+ "version": "0.21.0-alpha.16",
8
+ "license": "AGPL-3.0",
9
+ "main": "dist/server/index.js",
10
+ "homepage": "https://docs.nocobase.com/handbook/field-markdown-vditor",
11
+ "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/field-markdown-vditor",
12
+ "peerDependencies": {
13
+ "@nocobase/client": "0.x",
14
+ "@nocobase/server": "0.x",
15
+ "@nocobase/test": "0.x"
16
+ },
17
+ "devDependencies": {
18
+ "@ant-design/icons": "5.x",
19
+ "@formily/antd-v5": "1.x",
20
+ "@formily/core": "2.x",
21
+ "@formily/react": "2.x",
22
+ "@formily/shared": "2.x",
23
+ "antd": "5.x",
24
+ "koa-send": "^5.0.1",
25
+ "vditor": "^3.10.3"
26
+ },
27
+ "keywords": [
28
+ "Collection fields"
29
+ ],
30
+ "gitHead": "2914500f14e4454cc5702a49371230865660ca33"
31
+ }
package/server.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/server';
2
+ export { default } from './dist/server';
package/server.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/server/index.js');