@jvs-milkdown/crepe 1.2.2 → 1.2.4

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 (240) hide show
  1. package/lib/tsconfig.tsbuildinfo +1 -1
  2. package/lib/types/builder.d.ts +2 -0
  3. package/lib/types/builder.d.ts.map +1 -0
  4. package/lib/types/core/builder.d.ts +28 -0
  5. package/lib/types/core/builder.d.ts.map +1 -0
  6. package/lib/types/core/crepe.d.ts +12 -0
  7. package/lib/types/core/crepe.d.ts.map +1 -0
  8. package/lib/types/core/index.d.ts +5 -0
  9. package/lib/types/core/index.d.ts.map +1 -0
  10. package/lib/types/core/locale.d.ts +288 -0
  11. package/lib/types/core/locale.d.ts.map +1 -0
  12. package/lib/types/core/slice.d.ts +10 -0
  13. package/lib/types/core/slice.d.ts.map +1 -0
  14. package/lib/types/default-config/default-config.spec.d.ts +2 -0
  15. package/lib/types/default-config/default-config.spec.d.ts.map +1 -0
  16. package/lib/types/default-config/index.d.ts +4 -0
  17. package/lib/types/default-config/index.d.ts.map +1 -0
  18. package/lib/types/feature/attachment/config.d.ts +12 -0
  19. package/lib/types/feature/attachment/config.d.ts.map +1 -0
  20. package/lib/types/feature/attachment/index.d.ts +4 -0
  21. package/lib/types/feature/attachment/index.d.ts.map +1 -0
  22. package/lib/types/feature/attachment/schema.d.ts +3 -0
  23. package/lib/types/feature/attachment/schema.d.ts.map +1 -0
  24. package/lib/types/feature/attachment/view/components/attachment-block.d.ts +19 -0
  25. package/lib/types/feature/attachment/view/components/attachment-block.d.ts.map +1 -0
  26. package/lib/types/feature/attachment/view/index.d.ts +3 -0
  27. package/lib/types/feature/attachment/view/index.d.ts.map +1 -0
  28. package/lib/types/feature/block-edit/handle/component.d.ts +2 -0
  29. package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -0
  30. package/lib/types/feature/block-edit/handle/index.d.ts +4 -0
  31. package/lib/types/feature/block-edit/handle/index.d.ts.map +1 -0
  32. package/lib/types/feature/block-edit/index.d.ts +95 -0
  33. package/lib/types/feature/block-edit/index.d.ts.map +1 -0
  34. package/lib/types/feature/block-edit/menu/api.d.ts +12 -0
  35. package/lib/types/feature/block-edit/menu/api.d.ts.map +1 -0
  36. package/lib/types/feature/block-edit/menu/component.d.ts +2 -0
  37. package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -0
  38. package/lib/types/feature/block-edit/menu/config.d.ts +9 -0
  39. package/lib/types/feature/block-edit/menu/config.d.ts.map +1 -0
  40. package/lib/types/feature/block-edit/menu/index.d.ts +7 -0
  41. package/lib/types/feature/block-edit/menu/index.d.ts.map +1 -0
  42. package/lib/types/feature/block-edit/menu/utils.d.ts +6 -0
  43. package/lib/types/feature/block-edit/menu/utils.d.ts.map +1 -0
  44. package/lib/types/feature/code-mirror/index.d.ts +12 -0
  45. package/lib/types/feature/code-mirror/index.d.ts.map +1 -0
  46. package/lib/types/feature/cursor/index.d.ts +10 -0
  47. package/lib/types/feature/cursor/index.d.ts.map +1 -0
  48. package/lib/types/feature/fixed-toolbar/component.d.ts +2 -0
  49. package/lib/types/feature/fixed-toolbar/component.d.ts.map +1 -0
  50. package/lib/types/feature/fixed-toolbar/config.d.ts +6 -0
  51. package/lib/types/feature/fixed-toolbar/config.d.ts.map +1 -0
  52. package/lib/types/feature/fixed-toolbar/cover-defaults.d.ts +3 -0
  53. package/lib/types/feature/fixed-toolbar/cover-defaults.d.ts.map +1 -0
  54. package/lib/types/feature/fixed-toolbar/document-header.d.ts +2 -0
  55. package/lib/types/feature/fixed-toolbar/document-header.d.ts.map +1 -0
  56. package/lib/types/feature/fixed-toolbar/index.d.ts +25 -0
  57. package/lib/types/feature/fixed-toolbar/index.d.ts.map +1 -0
  58. package/lib/types/feature/fixed-toolbar/menu-bar.d.ts +2 -0
  59. package/lib/types/feature/fixed-toolbar/menu-bar.d.ts.map +1 -0
  60. package/lib/types/feature/fixed-toolbar/outline-panel.d.ts +2 -0
  61. package/lib/types/feature/fixed-toolbar/outline-panel.d.ts.map +1 -0
  62. package/lib/types/feature/fixed-toolbar/shortcut-help-modal.d.ts +2 -0
  63. package/lib/types/feature/fixed-toolbar/shortcut-help-modal.d.ts.map +1 -0
  64. package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts +16 -0
  65. package/lib/types/feature/fixed-toolbar/view-menu-state.d.ts.map +1 -0
  66. package/lib/types/feature/image-block/index.d.ts +26 -0
  67. package/lib/types/feature/image-block/index.d.ts.map +1 -0
  68. package/lib/types/feature/index.d.ts +42 -0
  69. package/lib/types/feature/index.d.ts.map +1 -0
  70. package/lib/types/feature/latex/block-latex.d.ts +2 -0
  71. package/lib/types/feature/latex/block-latex.d.ts.map +1 -0
  72. package/lib/types/feature/latex/command.d.ts +2 -0
  73. package/lib/types/feature/latex/command.d.ts.map +1 -0
  74. package/lib/types/feature/latex/index.d.ts +9 -0
  75. package/lib/types/feature/latex/index.d.ts.map +1 -0
  76. package/lib/types/feature/latex/inline-latex.d.ts +3 -0
  77. package/lib/types/feature/latex/inline-latex.d.ts.map +1 -0
  78. package/lib/types/feature/latex/inline-tooltip/component.d.ts +2 -0
  79. package/lib/types/feature/latex/inline-tooltip/component.d.ts.map +1 -0
  80. package/lib/types/feature/latex/inline-tooltip/tooltip.d.ts +2 -0
  81. package/lib/types/feature/latex/inline-tooltip/tooltip.d.ts.map +1 -0
  82. package/lib/types/feature/latex/inline-tooltip/view.d.ts +13 -0
  83. package/lib/types/feature/latex/inline-tooltip/view.d.ts.map +1 -0
  84. package/lib/types/feature/latex/input-rule.d.ts +3 -0
  85. package/lib/types/feature/latex/input-rule.d.ts.map +1 -0
  86. package/lib/types/feature/latex/remark.d.ts +3 -0
  87. package/lib/types/feature/latex/remark.d.ts.map +1 -0
  88. package/lib/types/feature/link-tooltip/index.d.ts +13 -0
  89. package/lib/types/feature/link-tooltip/index.d.ts.map +1 -0
  90. package/lib/types/feature/list-item/index.d.ts +9 -0
  91. package/lib/types/feature/list-item/index.d.ts.map +1 -0
  92. package/lib/types/feature/loader.d.ts +4 -0
  93. package/lib/types/feature/loader.d.ts.map +1 -0
  94. package/lib/types/feature/placeholder/index.d.ts +11 -0
  95. package/lib/types/feature/placeholder/index.d.ts.map +1 -0
  96. package/lib/types/feature/placeholder/placeholder.spec.d.ts +2 -0
  97. package/lib/types/feature/placeholder/placeholder.spec.d.ts.map +1 -0
  98. package/lib/types/feature/shared.d.ts +3 -0
  99. package/lib/types/feature/shared.d.ts.map +1 -0
  100. package/lib/types/feature/table/index.d.ts +18 -0
  101. package/lib/types/feature/table/index.d.ts.map +1 -0
  102. package/lib/types/feature/table/test.d.ts +3 -0
  103. package/lib/types/feature/table/test.d.ts.map +1 -0
  104. package/lib/types/feature/toolbar/color.d.ts +9 -0
  105. package/lib/types/feature/toolbar/color.d.ts.map +1 -0
  106. package/lib/types/feature/toolbar/component.d.ts +2 -0
  107. package/lib/types/feature/toolbar/component.d.ts.map +1 -0
  108. package/lib/types/feature/toolbar/config.d.ts +17 -0
  109. package/lib/types/feature/toolbar/config.d.ts.map +1 -0
  110. package/lib/types/feature/toolbar/font.d.ts +17 -0
  111. package/lib/types/feature/toolbar/font.d.ts.map +1 -0
  112. package/lib/types/feature/toolbar/highlight-mark.d.ts +8 -0
  113. package/lib/types/feature/toolbar/highlight-mark.d.ts.map +1 -0
  114. package/lib/types/feature/toolbar/index.d.ts +24 -0
  115. package/lib/types/feature/toolbar/index.d.ts.map +1 -0
  116. package/lib/types/feature/toolbar/underline.d.ts +7 -0
  117. package/lib/types/feature/toolbar/underline.d.ts.map +1 -0
  118. package/lib/types/icons/align-center.d.ts +3 -0
  119. package/lib/types/icons/align-center.d.ts.map +1 -0
  120. package/lib/types/icons/align-left.d.ts +3 -0
  121. package/lib/types/icons/align-left.d.ts.map +1 -0
  122. package/lib/types/icons/align-right.d.ts +3 -0
  123. package/lib/types/icons/align-right.d.ts.map +1 -0
  124. package/lib/types/icons/bold.d.ts +3 -0
  125. package/lib/types/icons/bold.d.ts.map +1 -0
  126. package/lib/types/icons/border.d.ts +2 -0
  127. package/lib/types/icons/border.d.ts.map +1 -0
  128. package/lib/types/icons/bullet-list.d.ts +3 -0
  129. package/lib/types/icons/bullet-list.d.ts.map +1 -0
  130. package/lib/types/icons/bullet.d.ts +2 -0
  131. package/lib/types/icons/bullet.d.ts.map +1 -0
  132. package/lib/types/icons/caption.d.ts +2 -0
  133. package/lib/types/icons/caption.d.ts.map +1 -0
  134. package/lib/types/icons/check-box-checked.d.ts +2 -0
  135. package/lib/types/icons/check-box-checked.d.ts.map +1 -0
  136. package/lib/types/icons/check-box-unchecked.d.ts +2 -0
  137. package/lib/types/icons/check-box-unchecked.d.ts.map +1 -0
  138. package/lib/types/icons/chevron-down.d.ts +2 -0
  139. package/lib/types/icons/chevron-down.d.ts.map +1 -0
  140. package/lib/types/icons/clear.d.ts +2 -0
  141. package/lib/types/icons/clear.d.ts.map +1 -0
  142. package/lib/types/icons/close.d.ts +2 -0
  143. package/lib/types/icons/close.d.ts.map +1 -0
  144. package/lib/types/icons/code.d.ts +2 -0
  145. package/lib/types/icons/code.d.ts.map +1 -0
  146. package/lib/types/icons/confirm.d.ts +2 -0
  147. package/lib/types/icons/confirm.d.ts.map +1 -0
  148. package/lib/types/icons/copy.d.ts +2 -0
  149. package/lib/types/icons/copy.d.ts.map +1 -0
  150. package/lib/types/icons/crop.d.ts +2 -0
  151. package/lib/types/icons/crop.d.ts.map +1 -0
  152. package/lib/types/icons/divider.d.ts +3 -0
  153. package/lib/types/icons/divider.d.ts.map +1 -0
  154. package/lib/types/icons/drag-handle.d.ts +2 -0
  155. package/lib/types/icons/drag-handle.d.ts.map +1 -0
  156. package/lib/types/icons/edit.d.ts +2 -0
  157. package/lib/types/icons/edit.d.ts.map +1 -0
  158. package/lib/types/icons/file-link.d.ts +2 -0
  159. package/lib/types/icons/file-link.d.ts.map +1 -0
  160. package/lib/types/icons/font-color.d.ts +2 -0
  161. package/lib/types/icons/font-color.d.ts.map +1 -0
  162. package/lib/types/icons/functions.d.ts +2 -0
  163. package/lib/types/icons/functions.d.ts.map +1 -0
  164. package/lib/types/icons/h1.d.ts +3 -0
  165. package/lib/types/icons/h1.d.ts.map +1 -0
  166. package/lib/types/icons/h2.d.ts +3 -0
  167. package/lib/types/icons/h2.d.ts.map +1 -0
  168. package/lib/types/icons/h3.d.ts +3 -0
  169. package/lib/types/icons/h3.d.ts.map +1 -0
  170. package/lib/types/icons/h4.d.ts +3 -0
  171. package/lib/types/icons/h4.d.ts.map +1 -0
  172. package/lib/types/icons/h5.d.ts +3 -0
  173. package/lib/types/icons/h5.d.ts.map +1 -0
  174. package/lib/types/icons/h6.d.ts +3 -0
  175. package/lib/types/icons/h6.d.ts.map +1 -0
  176. package/lib/types/icons/help.d.ts +2 -0
  177. package/lib/types/icons/help.d.ts.map +1 -0
  178. package/lib/types/icons/high-line-code.d.ts +2 -0
  179. package/lib/types/icons/high-line-code.d.ts.map +1 -0
  180. package/lib/types/icons/image.d.ts +2 -0
  181. package/lib/types/icons/image.d.ts.map +1 -0
  182. package/lib/types/icons/indent-decrease.d.ts +2 -0
  183. package/lib/types/icons/indent-decrease.d.ts.map +1 -0
  184. package/lib/types/icons/indent-increase.d.ts +2 -0
  185. package/lib/types/icons/indent-increase.d.ts.map +1 -0
  186. package/lib/types/icons/index.d.ts +55 -0
  187. package/lib/types/icons/index.d.ts.map +1 -0
  188. package/lib/types/icons/italic.d.ts +3 -0
  189. package/lib/types/icons/italic.d.ts.map +1 -0
  190. package/lib/types/icons/keyboard.d.ts +2 -0
  191. package/lib/types/icons/keyboard.d.ts.map +1 -0
  192. package/lib/types/icons/line-code.d.ts +2 -0
  193. package/lib/types/icons/line-code.d.ts.map +1 -0
  194. package/lib/types/icons/link.d.ts +2 -0
  195. package/lib/types/icons/link.d.ts.map +1 -0
  196. package/lib/types/icons/menu.d.ts +2 -0
  197. package/lib/types/icons/menu.d.ts.map +1 -0
  198. package/lib/types/icons/merge-cell.d.ts +2 -0
  199. package/lib/types/icons/merge-cell.d.ts.map +1 -0
  200. package/lib/types/icons/more.d.ts +2 -0
  201. package/lib/types/icons/more.d.ts.map +1 -0
  202. package/lib/types/icons/ordered-list.d.ts +3 -0
  203. package/lib/types/icons/ordered-list.d.ts.map +1 -0
  204. package/lib/types/icons/plus.d.ts +2 -0
  205. package/lib/types/icons/plus.d.ts.map +1 -0
  206. package/lib/types/icons/quote.d.ts +3 -0
  207. package/lib/types/icons/quote.d.ts.map +1 -0
  208. package/lib/types/icons/remove.d.ts +2 -0
  209. package/lib/types/icons/remove.d.ts.map +1 -0
  210. package/lib/types/icons/search.d.ts +2 -0
  211. package/lib/types/icons/search.d.ts.map +1 -0
  212. package/lib/types/icons/split-cell.d.ts +2 -0
  213. package/lib/types/icons/split-cell.d.ts.map +1 -0
  214. package/lib/types/icons/strikethrough.d.ts +3 -0
  215. package/lib/types/icons/strikethrough.d.ts.map +1 -0
  216. package/lib/types/icons/table.d.ts +2 -0
  217. package/lib/types/icons/table.d.ts.map +1 -0
  218. package/lib/types/icons/text.d.ts +3 -0
  219. package/lib/types/icons/text.d.ts.map +1 -0
  220. package/lib/types/icons/todo-list.d.ts +2 -0
  221. package/lib/types/icons/todo-list.d.ts.map +1 -0
  222. package/lib/types/icons/underline.d.ts +3 -0
  223. package/lib/types/icons/underline.d.ts.map +1 -0
  224. package/lib/types/icons/visibility-off.d.ts +2 -0
  225. package/lib/types/icons/visibility-off.d.ts.map +1 -0
  226. package/lib/types/icons/word-wrap.d.ts +2 -0
  227. package/lib/types/icons/word-wrap.d.ts.map +1 -0
  228. package/lib/types/index.d.ts +3 -0
  229. package/lib/types/index.d.ts.map +1 -0
  230. package/lib/types/utils/checker.d.ts +4 -0
  231. package/lib/types/utils/checker.d.ts.map +1 -0
  232. package/lib/types/utils/group-builder.d.ts +43 -0
  233. package/lib/types/utils/group-builder.d.ts.map +1 -0
  234. package/lib/types/utils/index.d.ts +4 -0
  235. package/lib/types/utils/index.d.ts.map +1 -0
  236. package/lib/types/utils/keep-alive.d.ts +2 -0
  237. package/lib/types/utils/keep-alive.d.ts.map +1 -0
  238. package/lib/types/utils/types.d.ts +4 -0
  239. package/lib/types/utils/types.d.ts.map +1 -0
  240. package/package.json +4 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/icons/search.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,gXAetB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const splitCellIcon = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\" height=\"24\">\n <path d=\"M448 405.4528a42.5472 42.5472 0 0 1-85.0944 0.1024V256q0-42.9056-42.9056-42.9056H170.5472a42.5472 42.5472 0 1 1 0-85.0944H320A128 128 0 0 1 448 256v149.4528z m0 234.5472V768a128 128 0 0 1-128 128H170.5472a42.5472 42.5472 0 1 1 0-85.0944H320q42.9056 0 42.9056-42.9056v-149.5552a42.5472 42.5472 0 1 1 85.0944 0.1024v21.4528z m448-469.4528c0 23.552-19.0464 42.5984-42.5472 42.5472H704q-42.9056 0-42.9056 42.9056v149.504a42.496 42.496 0 0 1-85.0944 0V256a128 128 0 0 1 128-128h149.4528c23.4496 0 42.5472 19.0976 42.5472 42.5472z m0 682.9056c0 23.5008-19.0464 42.5472-42.5472 42.5472H704a128 128 0 0 1-128-128v-149.504a42.496 42.496 0 0 1 85.0432 0l0.1024 149.504q0 42.9056 42.8544 42.9056h149.4528c23.4496 0 42.5472 19.0464 42.5472 42.496z\" fill=\"#363B4C\" p-id=\"3508\"></path><path d=\"M882.7392 475.8016c9.5744 9.5232 14.336 22.8352 13.0048 36.2496a45.0048 45.0048 0 0 1-13.0048 36.2496l-120.7296 121.1904a45.2096 45.2096 0 0 1-64 0 44.8 44.8 0 0 1-13.0048-32c0-11.6736 4.1984-23.04 13.0048-32l47.9744-48.384H588.8a45.0048 45.0048 0 0 1-45.056-45.056c0-24.9856 20.2752-45.2608 45.2608-45.2608h156.7744l-47.7696-47.7696a45.056 45.056 0 0 1 0-64 45.1584 45.1584 0 0 1 64 0l120.7296 120.7808z m-740.9664 0a45.0048 45.0048 0 0 0-13.0048 36.2496 45.0048 45.0048 0 0 0 13.0048 36.2496l120.7808 121.1904a45.2096 45.2096 0 0 0 64 0 44.8 44.8 0 0 0 12.9536-32 45.0048 45.0048 0 0 0-12.9536-32l-48.0256-48.384h157.2352c24.8832 0 45.056-20.224 45.0048-45.056a45.2608 45.2608 0 0 0-45.2608-45.2608H278.7328l47.8208-47.7696a45.056 45.056 0 0 0 0-64 45.2096 45.2096 0 0 0-64 0l-120.832 120.7808z\" fill=\"#363B4C\" p-id=\"3509\"></path>\n </svg>\n";
2
+ //# sourceMappingURL=split-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-cell.d.ts","sourceRoot":"","sources":["../../../src/icons/split-cell.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,srDAIzB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const strikethroughIcon = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\" height=\"24\">\n <path d=\"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z\" fill=\"#D8D8D8\" fill-opacity=\"0\" p-id=\"3219\"></path><path d=\"M431.296 228.8a216.512 216.512 0 0 1 91.968-15.168c30.848 1.344 60.992 9.6 88.256 24 25.664 13.952 44.864 32.448 56.704 52.672a42.688 42.688 0 0 0 73.6-43.264 230.592 230.592 0 0 0-89.536-84.352 292.928 292.928 0 0 0-124.8-34.24 301.824 301.824 0 0 0-128.448 21.312 246.272 246.272 0 0 0-100.608 73.6 190.08 190.08 0 0 0-42.304 110.976c-0.448 11.712 0.256 23.424 2.048 35.008a42.688 42.688 0 1 0 84.288-13.312 94.272 94.272 0 0 1-1.024-18.368c0.768-20.8 8.576-41.984 23.872-61.248 15.36-19.456 37.888-36.224 65.92-47.616zM170.688 469.312a42.688 42.688 0 0 0 0 85.376h341.44a212.48 212.48 0 0 1 90.24 19.648c11.648 5.44 22.592 12.16 32.704 20.032 11.072 8.576 20.736 18.752 28.8 30.272 12.8 17.92 19.392 39.68 18.752 61.696a105.152 105.152 0 0 1-23.872 61.312c-15.36 19.392-37.888 36.16-65.92 47.552a216.192 216.192 0 0 1-92.032 15.168 207.424 207.424 0 0 1-88.32-24c-25.6-13.952-44.8-32.448-56.704-52.672a42.688 42.688 0 1 0-73.536 43.264c20.672 35.136 51.968 63.936 89.6 84.352a292.928 292.928 0 0 0 124.672 34.24 301.888 301.888 0 0 0 128.512-21.312 246.208 246.208 0 0 0 100.608-73.6c25.6-32.32 40.704-70.592 42.24-110.912a186.112 186.112 0 0 0-33.728-113.408 213.312 213.312 0 0 0-17.024-21.632h136.192a42.688 42.688 0 1 0 0-85.376H170.688z\" fill=\"#363B4C\" p-id=\"3220\"></path>\n </svg>\n";
2
+ export declare const strikethroughIconActive = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\" height=\"24\"><path d=\"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z\" fill=\"#1E6FFF\" fill-opacity=\"0\" p-id=\"51850\"></path><path d=\"M431.296 228.8a216.512 216.512 0 0 1 91.968-15.168c30.848 1.344 60.992 9.6 88.256 24 25.664 13.952 44.864 32.448 56.704 52.672a42.688 42.688 0 0 0 73.6-43.264 230.592 230.592 0 0 0-89.536-84.352 292.928 292.928 0 0 0-124.8-34.24 301.824 301.824 0 0 0-128.448 21.312 246.272 246.272 0 0 0-100.608 73.6 190.08 190.08 0 0 0-42.304 110.976c-0.448 11.712 0.256 23.424 2.048 35.008a42.688 42.688 0 1 0 84.288-13.312 94.272 94.272 0 0 1-1.024-18.368c0.768-20.8 8.576-41.984 23.872-61.248 15.36-19.456 37.888-36.224 65.92-47.616zM170.688 469.312a42.688 42.688 0 0 0 0 85.376h341.44a212.48 212.48 0 0 1 90.24 19.648c11.648 5.44 22.592 12.16 32.704 20.032 11.072 8.576 20.736 18.752 28.8 30.272 12.8 17.92 19.392 39.68 18.752 61.696a105.152 105.152 0 0 1-23.872 61.312c-15.36 19.392-37.888 36.16-65.92 47.552a216.192 216.192 0 0 1-92.032 15.168 207.424 207.424 0 0 1-88.32-24c-25.6-13.952-44.8-32.448-56.704-52.672a42.688 42.688 0 1 0-73.536 43.264c20.672 35.136 51.968 63.936 89.6 84.352a292.928 292.928 0 0 0 124.672 34.24 301.888 301.888 0 0 0 128.512-21.312 246.208 246.208 0 0 0 100.608-73.6c25.6-32.32 40.704-70.592 42.24-110.912a186.112 186.112 0 0 0-33.728-113.408 213.312 213.312 0 0 0-17.024-21.632h136.192a42.688 42.688 0 1 0 0-85.376H170.688z\" fill=\"#1E6FFF\" p-id=\"51851\"></path></svg>\n";
3
+ //# sourceMappingURL=strikethrough.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strikethrough.d.ts","sourceRoot":"","sources":["../../../src/icons/strikethrough.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,8+CAI7B,CAAA;AACD,eAAO,MAAM,uBAAuB,w+CAEnC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const tableIcon = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\" height=\"24\">\n <path d=\"M146.816 960A83.456 83.456 0 0 1 64 877.184V146.816C64 108.224 95.872 64 145.152 64h732.032C919.936 64 960 99.584 960 146.816v730.368c0 44.8-34.048 82.816-82.816 82.816H146.816z m530.56-81.92h199.68V684.16h-199.68v194.048z m-251.136 0h168.512V684.16H426.24v194.048z m-281.088 0H343.68V684.16h-198.4v194.048z m532.224-282.048h199.68V396.864h-199.68v199.168z m-251.136 0h168.512V396.864H426.24v199.168z m-281.088 0H343.68V396.864h-198.4v199.168z m0-451.136v164.992l732.032 2.432V145.28L145.152 144.96z\" fill=\"#363B4C\" p-id=\"16729\"></path>\n </svg>\n";
2
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/icons/table.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,4nBAIrB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const textIcon = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\"\n height=\"24\">\n <path d=\"M364.8 810.688c0-23.616 19.072-42.688 42.624-42.688h209.152a42.624 42.624 0 1 1 0 85.312H407.424a42.688 42.688 0 0 1-42.624-42.624z\" fill=\"#363B4C\" p-id=\"3176\"></path><path d=\"M512 170.688c23.552 0 42.688 19.072 42.688 42.624v597.376a42.688 42.688 0 1 1-85.376 0V213.312c0-23.552 19.136-42.624 42.688-42.624z\" fill=\"#363B4C\" p-id=\"3177\"></path><path d=\"M213.312 213.312c0-23.552 19.136-42.624 42.688-42.624h512c23.552 0 42.688 19.072 42.688 42.624V256a42.688 42.688 0 0 1-85.376 0H298.688a42.688 42.688 0 1 1-85.376 0v-42.688z\" fill=\"#363B4C\" p-id=\"3178\"></path>\n </svg>\n";
2
+ export declare const textIconActive = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\"\n height=\"24\"><path d=\"M113.2544 108.8m46.7968 0l708.352 0q46.7968 0 46.7968 46.7968l0-0.0512q0 46.7968-46.7968 46.7968l-708.352 0q-46.7968 0-46.7968-46.7968l0 0.0512q0-46.7968 46.7968-46.7968Z\" fill=\"#1E6FFF\" p-id=\"51545\"></path><path d=\"M291.4816 821.6576m46.7968 0l351.9488 0q46.7968 0 46.7968 46.7968l0-0.0512q0 46.7968-46.7968 46.7968l-351.9488 0q-46.7968 0-46.7968-46.7968l0 0.0512q0-46.7968 46.7968-46.7968Z\" fill=\"#1E6FFF\" p-id=\"51546\"></path><path d=\"M558.7968 108.8m0 46.7968l0 708.352q0 46.7968-46.7968 46.7968l0.0512 0q-46.7968 0-46.7968-46.7968l0-708.352q0-46.7968 46.7968-46.7968l-0.0512 0q46.7968 0 46.7968 46.7968Z\" fill=\"#1E6FFF\" p-id=\"51547\"></path><path d=\"M202.3424 108.8m0 46.7968l0 84.6336q0 46.7968-46.7968 46.7968l0.0512 0q-46.7968 0-46.7968-46.7968l0-84.6336q0-46.7968 46.7968-46.7968l-0.0512 0q46.7968 0 46.7968 46.7968Z\" fill=\"#1E6FFF\" p-id=\"51548\"></path><path d=\"M915.2 108.8m0 46.7968l0 84.6336q0 46.7968-46.7968 46.7968l0.0512 0q-46.7968 0-46.7968-46.7968l0-84.6336q0-46.7968 46.7968-46.7968l-0.0512 0q46.7968 0 46.7968 46.7968Z\" fill=\"#1E6FFF\" p-id=\"51549\"></path></svg>\n";
3
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/icons/text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,wqBAKpB,CAAA;AACD,eAAO,MAAM,cAAc,yqCAG1B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const todoListIcon = "\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 1024 1024\"\n >\n <path d=\"M102.4 193.408c0-50.304 40.704-91.008 91.008-91.008h637.12c50.304 0 91.072 40.704 91.072 91.008v637.12c0 50.304-40.768 91.072-91.072 91.072H193.408A91.008 91.008 0 0 1 102.4 830.528V193.408z m728.128 0H193.408v637.12h637.12V193.408z\" fill=\"#363B4C\" p-id=\"10098\"></path><path d=\"M341.12 485.696a42.688 42.688 0 0 0 6.272 60.032l99.52 101.952a42.688 42.688 0 0 0 56.96-2.944l207.488-211.584a42.688 42.688 0 0 0-60.16-60.48L477.312 557.824l-76.16-78.4a42.688 42.688 0 0 0-60.096 6.272z\" fill=\"#363B4C\" p-id=\"10099\"></path></svg>\n";
2
+ //# sourceMappingURL=todo-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-list.d.ts","sourceRoot":"","sources":["../../../src/icons/todo-list.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,yqBAQxB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const underlineIcon = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\" height=\"24\">\n <path d=\"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z\" fill=\"#D8D8D8\" fill-opacity=\"0\" p-id=\"3370\"></path>\n <path d=\"M160 845.184c0-24.96 22.72-45.184 50.56-45.184h603.456c27.776 0 49.984 20.224 49.984 45.184 0 24.96-22.208 45.184-49.984 45.184h-603.52c-27.776 0-50.496-20.288-50.496-45.184zM328.96 200v259.328C328.96 559.168 411.072 640 512 640c100.992 0 183.04-80.896 183.04-180.672v-259.2a45.76 45.76 0 1 1 91.52 0v259.2c0 149.696-123.072 271.04-274.56 271.04S237.76 609.024 237.76 459.328V200a45.632 45.632 0 0 1 91.264 0\" fill=\"#363B4C\" p-id=\"3371\"></path>\n </svg>\n";
2
+ export declare const underlineIconActive = "\n <svg viewBox=\"0 0 1024 1024\" width=\"24\" height=\"24\">\n <path d=\"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z\" fill=\"#1E6FFF\" fill-opacity=\"0\" p-id=\"51699\"></path>\n <path d=\"M160 845.184c0-24.96 22.72-45.184 50.56-45.184h603.456c27.776 0 49.984 20.224 49.984 45.184 0 24.96-22.208 45.184-49.984 45.184h-603.52c-27.776 0-50.496-20.288-50.496-45.184zM328.96 200v259.328C328.96 559.168 411.072 640 512 640c100.992 0 183.04-80.896 183.04-180.672v-259.2a45.76 45.76 0 1 1 91.52 0v259.2c0 149.696-123.072 271.04-274.56 271.04S237.76 609.024 237.76 459.328V200a45.632 45.632 0 0 1 91.264 0\" fill=\"#1E6FFF\" p-id=\"51700\"></path>\n </svg>\n";
3
+ //# sourceMappingURL=underline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"underline.d.ts","sourceRoot":"","sources":["../../../src/icons/underline.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,krBAKzB,CAAA;AACD,eAAO,MAAM,mBAAmB,srBAK/B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const visibilityOffIcon = "\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n >\n <path\n d=\"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z\"\n />\n </svg>\n";
2
+ //# sourceMappingURL=visibility-off.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visibility-off.d.ts","sourceRoot":"","sources":["../../../src/icons/visibility-off.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,wtBAW7B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const wordWrapIcon = "\n <svg viewBox=\"0 0 1024 1024\" height=\"24px\"\n width=\"24px\">\n <path d=\"M128 850.88V173.12q0-4.48 0.896-8.832 0.832-4.352 2.56-8.448 1.664-4.096 4.16-7.808 2.432-3.648 5.568-6.848 3.2-3.136 6.848-5.568 3.712-2.496 7.808-4.16 4.096-1.728 8.448-2.56Q168.704 128 173.12 128q4.48 0 8.832 0.896 4.352 0.832 8.448 2.56 4.096 1.664 7.808 4.16 3.648 2.432 6.848 5.568 3.136 3.2 5.568 6.848 2.496 3.712 4.16 7.808 1.728 4.096 2.56 8.448 0.896 4.416 0.896 8.832v677.76q0 4.48-0.896 8.768-0.832 4.416-2.56 8.512-1.664 4.096-4.16 7.808-2.432 3.648-5.568 6.848-3.2 3.136-6.848 5.568-3.712 2.496-7.808 4.16-4.096 1.728-8.448 2.56-4.416 0.896-8.832 0.896-4.48 0-8.832-0.896-4.352-0.832-8.448-2.56-4.096-1.664-7.808-4.16-3.648-2.432-6.848-5.632-3.136-3.136-5.568-6.784-2.496-3.712-4.16-7.808-1.728-4.096-2.56-8.512Q128 855.296 128 850.88z m677.76 0a45.12 45.12 0 0 0 90.24 0V173.12a45.12 45.12 0 0 0-90.24 0v677.76zM471.232 684.8a46.208 46.208 0 0 1-4.288 0.192h-48l48 48.448c8.832 8.896 13.056 20.288 13.056 32a44.8 44.8 0 0 1-12.992 32 45.184 45.184 0 0 1-64 0L282.24 676.224A44.992 44.992 0 0 1 269.184 640a44.992 44.992 0 0 1 13.056-36.288l120.704-120.704a45.184 45.184 0 1 1 64 64l-47.744 47.744h47.744c2.176 0 4.352 0.128 6.464 0.448h70.656q47.68 0 81.472-33.728 33.728-33.792 33.728-81.472 0-47.744-33.728-81.472Q591.744 364.8 544 364.8H384a44.8 44.8 0 1 1 0-89.6h160q84.8 0 144.832 59.968 59.968 59.968 59.968 144.832 0 84.8-59.968 144.832-60.032 59.968-144.832 59.968H471.232z\" fill=\"#363B4C\"></path>\n </svg>\n";
2
+ //# sourceMappingURL=word-wrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"word-wrap.d.ts","sourceRoot":"","sources":["../../../src/icons/word-wrap.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,w/CAKxB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { CrepeFeature } from './feature';
2
+ export * from './core';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { Selection } from '@jvs-milkdown/kit/prose/state';
2
+ export declare function isInCodeBlock(selection: Selection): boolean;
3
+ export declare function isInList(selection: Selection): boolean;
4
+ //# sourceMappingURL=checker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../src/utils/checker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAE9D,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,WAGjD;AAED,wBAAgB,QAAQ,CAAC,SAAS,EAAE,SAAS,WAG5C"}
@@ -0,0 +1,43 @@
1
+ import type { Ctx } from '@jvs-milkdown/kit/ctx';
2
+ type MenuItem<T> = {
3
+ index: number;
4
+ key: string;
5
+ onRun: (ctx: Ctx) => void;
6
+ } & T;
7
+ type WithRange<T, HasIndex extends true | false = true> = HasIndex extends true ? T & {
8
+ range: [start: number, end: number];
9
+ } : T;
10
+ export type MenuItemGroup<T, HasIndex extends true | false = true> = WithRange<{
11
+ key: string;
12
+ label: string;
13
+ items: HasIndex extends true ? MenuItem<T>[] : Omit<MenuItem<T>, 'index'>[];
14
+ }, HasIndex>;
15
+ export declare class GroupBuilder<T> {
16
+ #private;
17
+ clear: () => this;
18
+ addGroup: (key: string, label: string) => {
19
+ group: {
20
+ key: string;
21
+ label: string;
22
+ items: Omit<MenuItem<T>, "index">[];
23
+ };
24
+ addItem: (key: string, item: Omit<MenuItem<T>, "key" | "index">) => /*elided*/ any;
25
+ clear: () => /*elided*/ any;
26
+ };
27
+ getGroup: (key: string) => {
28
+ group: {
29
+ key: string;
30
+ label: string;
31
+ items: Omit<MenuItem<T>, "index">[];
32
+ };
33
+ addItem: (key: string, item: Omit<MenuItem<T>, "key" | "index">) => /*elided*/ any;
34
+ clear: () => /*elided*/ any;
35
+ };
36
+ build: () => {
37
+ key: string;
38
+ label: string;
39
+ items: Omit<MenuItem<T>, "index">[];
40
+ }[];
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=group-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-builder.d.ts","sourceRoot":"","sources":["../../../src/utils/group-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAEhD,KAAK,QAAQ,CAAC,CAAC,IAAI;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;CAC1B,GAAG,CAAC,CAAA;AAEL,KAAK,SAAS,CAAC,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,KAAK,GAAG,IAAI,IAAI,QAAQ,SAAS,IAAI,GAC3E,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAA;CAAE,GAC3C,CAAC,CAAA;AAEL,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,KAAK,GAAG,IAAI,IAAI,SAAS,CAC5E;IACE,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,CAAA;CAC5E,EACD,QAAQ,CACT,CAAA;AAED,qBAAa,YAAY,CAAC,CAAC;;IAGzB,KAAK,aAGJ;IAkBD,QAAQ,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM;;iBA/B/B,MAAM;mBACJ,MAAM;;;uBAiBI,MAAM,QAAQ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;;MAuBlE;IAED,QAAQ,GAAI,KAAK,MAAM;;iBA3ChB,MAAM;mBACJ,MAAM;;;uBAiBI,MAAM,QAAQ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;;MA8BlE;IAED,KAAK;aAlDE,MAAM;eACJ,MAAM;;QAmDd;CACF"}
@@ -0,0 +1,4 @@
1
+ export * from './checker';
2
+ export * from './group-builder';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function keepAlive(..._args: unknown[]): void;
2
+ //# sourceMappingURL=keep-alive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keep-alive.d.ts","sourceRoot":"","sources":["../../../src/utils/keep-alive.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,QAAI"}
@@ -0,0 +1,4 @@
1
+ export type DeepPartial<T> = T extends (...args: any[]) => any ? T : {
2
+ [K in keyof T]?: T[K] extends (...args: any[]) => any ? T[K] : T[K] extends Record<string, any> ? DeepPartial<T[K]> : T[K] extends Record<string, any> | null | undefined ? DeepPartial<T[K]> | null | undefined : T[K];
3
+ };
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAC1D,CAAC,GACD;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GACjD,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC9B,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACjB,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GACjD,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GACpC,CAAC,CAAC,CAAC,CAAC;CACb,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jvs-milkdown/crepe",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "keywords": [
5
5
  "crepe",
6
6
  "editor",
@@ -97,9 +97,9 @@
97
97
  "@codemirror/theme-one-dark": "^6.1.2",
98
98
  "@codemirror/view": "^6.26.0",
99
99
  "@floating-ui/dom": "^1.7.6",
100
- "@jvs-milkdown/kit": "^1.2.2",
101
- "@jvs-milkdown/prose": "^1.2.2",
102
- "@jvs-milkdown/utils": "^1.2.2",
100
+ "@jvs-milkdown/kit": "^1.2.4",
101
+ "@jvs-milkdown/prose": "^1.2.4",
102
+ "@jvs-milkdown/utils": "^1.2.4",
103
103
  "@types/lodash-es": "^4.17.12",
104
104
  "clsx": "^2.0.0",
105
105
  "codemirror": "^6.0.1",