@oyat/editor 1.1.2 → 1.2.1

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 (350) hide show
  1. package/README.md +109 -55
  2. package/dist/components/editor/plate-editor.d.ts +7 -0
  3. package/dist/components/editor/plate-editor.d.ts.map +1 -0
  4. package/dist/components/editor/plate-types.d.ts +85 -0
  5. package/dist/components/editor/plate-types.d.ts.map +1 -0
  6. package/dist/components/editor/plugins/align-base-kit.d.ts +4 -0
  7. package/dist/components/editor/plugins/align-base-kit.d.ts.map +1 -0
  8. package/dist/components/editor/plugins/align-kit.d.ts +4 -0
  9. package/dist/components/editor/plugins/align-kit.d.ts.map +1 -0
  10. package/dist/components/editor/plugins/autoformat-kit.d.ts +2 -0
  11. package/dist/components/editor/plugins/autoformat-kit.d.ts.map +1 -0
  12. package/dist/components/editor/plugins/basic-blocks-base-kit.d.ts +6 -0
  13. package/dist/components/editor/plugins/basic-blocks-base-kit.d.ts.map +1 -0
  14. package/dist/components/editor/plugins/basic-blocks-kit.d.ts +6 -0
  15. package/dist/components/editor/plugins/basic-blocks-kit.d.ts.map +1 -0
  16. package/dist/components/editor/plugins/basic-marks-base-kit.d.ts +20 -0
  17. package/dist/components/editor/plugins/basic-marks-base-kit.d.ts.map +1 -0
  18. package/dist/components/editor/plugins/basic-marks-kit.d.ts +20 -0
  19. package/dist/components/editor/plugins/basic-marks-kit.d.ts.map +1 -0
  20. package/dist/components/editor/plugins/basic-nodes-kit.d.ts +24 -0
  21. package/dist/components/editor/plugins/basic-nodes-kit.d.ts.map +1 -0
  22. package/dist/components/editor/plugins/block-menu-kit.d.ts +165 -0
  23. package/dist/components/editor/plugins/block-menu-kit.d.ts.map +1 -0
  24. package/dist/components/editor/plugins/block-placeholder-kit.d.ts +15 -0
  25. package/dist/components/editor/plugins/block-placeholder-kit.d.ts.map +1 -0
  26. package/dist/components/editor/plugins/block-selection-kit.d.ts +137 -0
  27. package/dist/components/editor/plugins/block-selection-kit.d.ts.map +1 -0
  28. package/dist/components/editor/plugins/callout-base-kit.d.ts +21 -0
  29. package/dist/components/editor/plugins/callout-base-kit.d.ts.map +1 -0
  30. package/dist/components/editor/plugins/callout-kit.d.ts +21 -0
  31. package/dist/components/editor/plugins/callout-kit.d.ts.map +1 -0
  32. package/dist/components/editor/plugins/code-block-base-kit.d.ts +8 -0
  33. package/dist/components/editor/plugins/code-block-base-kit.d.ts.map +1 -0
  34. package/dist/components/editor/plugins/code-block-kit.d.ts +8 -0
  35. package/dist/components/editor/plugins/code-block-kit.d.ts.map +1 -0
  36. package/dist/components/editor/plugins/column-base-kit.d.ts +2 -0
  37. package/dist/components/editor/plugins/column-base-kit.d.ts.map +1 -0
  38. package/dist/components/editor/plugins/column-kit.d.ts +2 -0
  39. package/dist/components/editor/plugins/column-kit.d.ts.map +1 -0
  40. package/dist/components/editor/plugins/comment-base-kit.d.ts +48 -0
  41. package/dist/components/editor/plugins/comment-base-kit.d.ts.map +1 -0
  42. package/dist/components/editor/plugins/comment-kit.d.ts +68 -0
  43. package/dist/components/editor/plugins/comment-kit.d.ts.map +1 -0
  44. package/dist/components/editor/plugins/cursor-overlay-kit.d.ts +12 -0
  45. package/dist/components/editor/plugins/cursor-overlay-kit.d.ts.map +1 -0
  46. package/dist/components/editor/plugins/date-base-kit.d.ts +20 -0
  47. package/dist/components/editor/plugins/date-base-kit.d.ts.map +1 -0
  48. package/dist/components/editor/plugins/date-kit.d.ts +20 -0
  49. package/dist/components/editor/plugins/date-kit.d.ts.map +1 -0
  50. package/dist/components/editor/plugins/discussion-kit.d.ts +56 -0
  51. package/dist/components/editor/plugins/discussion-kit.d.ts.map +1 -0
  52. package/dist/components/editor/plugins/dnd-kit.d.ts +21 -0
  53. package/dist/components/editor/plugins/dnd-kit.d.ts.map +1 -0
  54. package/dist/components/editor/plugins/docx-kit.d.ts +2 -0
  55. package/dist/components/editor/plugins/docx-kit.d.ts.map +1 -0
  56. package/dist/components/editor/plugins/emoji-kit.d.ts +6 -0
  57. package/dist/components/editor/plugins/emoji-kit.d.ts.map +1 -0
  58. package/dist/components/editor/plugins/exit-break-kit.d.ts +5 -0
  59. package/dist/components/editor/plugins/exit-break-kit.d.ts.map +1 -0
  60. package/dist/components/editor/plugins/fixed-toolbar-kit.d.ts +2 -0
  61. package/dist/components/editor/plugins/fixed-toolbar-kit.d.ts.map +1 -0
  62. package/dist/components/editor/plugins/floating-toolbar-kit.d.ts +2 -0
  63. package/dist/components/editor/plugins/floating-toolbar-kit.d.ts.map +1 -0
  64. package/dist/components/editor/plugins/font-base-kit.d.ts +10 -0
  65. package/dist/components/editor/plugins/font-base-kit.d.ts.map +1 -0
  66. package/dist/components/editor/plugins/font-kit.d.ts +10 -0
  67. package/dist/components/editor/plugins/font-kit.d.ts.map +1 -0
  68. package/dist/components/editor/plugins/indent-base-kit.d.ts +2 -0
  69. package/dist/components/editor/plugins/indent-base-kit.d.ts.map +1 -0
  70. package/dist/components/editor/plugins/indent-kit.d.ts +6 -0
  71. package/dist/components/editor/plugins/indent-kit.d.ts.map +1 -0
  72. package/dist/components/editor/plugins/line-height-base-kit.d.ts +4 -0
  73. package/dist/components/editor/plugins/line-height-base-kit.d.ts.map +1 -0
  74. package/dist/components/editor/plugins/line-height-kit.d.ts +4 -0
  75. package/dist/components/editor/plugins/line-height-kit.d.ts.map +1 -0
  76. package/dist/components/editor/plugins/link-base-kit.d.ts +2 -0
  77. package/dist/components/editor/plugins/link-base-kit.d.ts.map +1 -0
  78. package/dist/components/editor/plugins/link-kit.d.ts +35 -0
  79. package/dist/components/editor/plugins/link-kit.d.ts.map +1 -0
  80. package/dist/components/editor/plugins/list-base-kit.d.ts +2 -0
  81. package/dist/components/editor/plugins/list-base-kit.d.ts.map +1 -0
  82. package/dist/components/editor/plugins/list-kit.d.ts +9 -0
  83. package/dist/components/editor/plugins/list-kit.d.ts.map +1 -0
  84. package/dist/components/editor/plugins/math-base-kit.d.ts +10 -0
  85. package/dist/components/editor/plugins/math-base-kit.d.ts.map +1 -0
  86. package/dist/components/editor/plugins/math-kit.d.ts +10 -0
  87. package/dist/components/editor/plugins/math-kit.d.ts.map +1 -0
  88. package/dist/components/editor/plugins/media-base-kit.d.ts +26 -0
  89. package/dist/components/editor/plugins/media-base-kit.d.ts.map +1 -0
  90. package/dist/components/editor/plugins/media-kit.d.ts +39 -0
  91. package/dist/components/editor/plugins/media-kit.d.ts.map +1 -0
  92. package/dist/components/editor/plugins/mention-base-kit.d.ts +12 -0
  93. package/dist/components/editor/plugins/mention-base-kit.d.ts.map +1 -0
  94. package/dist/components/editor/plugins/mention-kit.d.ts +12 -0
  95. package/dist/components/editor/plugins/mention-kit.d.ts.map +1 -0
  96. package/dist/components/editor/plugins/slash-kit.d.ts +2 -0
  97. package/dist/components/editor/plugins/slash-kit.d.ts.map +1 -0
  98. package/dist/components/editor/plugins/suggestion-base-kit.d.ts +33 -0
  99. package/dist/components/editor/plugins/suggestion-base-kit.d.ts.map +1 -0
  100. package/dist/components/editor/plugins/suggestion-kit.d.ts +54 -0
  101. package/dist/components/editor/plugins/suggestion-kit.d.ts.map +1 -0
  102. package/dist/components/editor/plugins/table-base-kit.d.ts +78 -0
  103. package/dist/components/editor/plugins/table-base-kit.d.ts.map +1 -0
  104. package/dist/components/editor/plugins/table-kit.d.ts +139 -0
  105. package/dist/components/editor/plugins/table-kit.d.ts.map +1 -0
  106. package/dist/components/editor/plugins/toc-base-kit.d.ts +2 -0
  107. package/dist/components/editor/plugins/toc-base-kit.d.ts.map +1 -0
  108. package/dist/components/editor/plugins/toc-kit.d.ts +6 -0
  109. package/dist/components/editor/plugins/toc-kit.d.ts.map +1 -0
  110. package/dist/components/editor/plugins/toggle-base-kit.d.ts +13 -0
  111. package/dist/components/editor/plugins/toggle-base-kit.d.ts.map +1 -0
  112. package/dist/components/editor/plugins/toggle-kit.d.ts +17 -0
  113. package/dist/components/editor/plugins/toggle-kit.d.ts.map +1 -0
  114. package/dist/components/editor/settings-dialog.d.ts +8 -0
  115. package/dist/components/editor/settings-dialog.d.ts.map +1 -0
  116. package/dist/components/editor/transforms.d.ts +13 -0
  117. package/dist/components/editor/transforms.d.ts.map +1 -0
  118. package/dist/components/editor/use-chat.d.ts +56 -0
  119. package/dist/components/editor/use-chat.d.ts.map +1 -0
  120. package/dist/components/ui/ai-chat-editor.d.ts +5 -0
  121. package/dist/components/ui/ai-chat-editor.d.ts.map +1 -0
  122. package/dist/components/ui/ai-menu.d.ts +8 -0
  123. package/dist/components/ui/ai-menu.d.ts.map +1 -0
  124. package/dist/components/ui/ai-node.d.ts +4 -0
  125. package/dist/components/ui/ai-node.d.ts.map +1 -0
  126. package/dist/components/ui/ai-toolbar-button.d.ts +4 -0
  127. package/dist/components/ui/ai-toolbar-button.d.ts.map +1 -0
  128. package/dist/components/ui/alert-dialog.d.ts +15 -0
  129. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  130. package/dist/components/ui/align-toolbar-button.d.ts +3 -0
  131. package/dist/components/ui/align-toolbar-button.d.ts.map +1 -0
  132. package/dist/components/ui/avatar.d.ts +7 -0
  133. package/dist/components/ui/avatar.d.ts.map +1 -0
  134. package/dist/components/ui/block-context-menu.d.ts +5 -0
  135. package/dist/components/ui/block-context-menu.d.ts.map +1 -0
  136. package/dist/components/ui/block-discussion.d.ts +4 -0
  137. package/dist/components/ui/block-discussion.d.ts.map +1 -0
  138. package/dist/components/ui/block-draggable.d.ts +3 -0
  139. package/dist/components/ui/block-draggable.d.ts.map +1 -0
  140. package/dist/components/ui/block-list-static.d.ts +3 -0
  141. package/dist/components/ui/block-list-static.d.ts.map +1 -0
  142. package/dist/components/ui/block-list.d.ts +3 -0
  143. package/dist/components/ui/block-list.d.ts.map +1 -0
  144. package/dist/components/ui/block-selection.d.ts +6 -0
  145. package/dist/components/ui/block-selection.d.ts.map +1 -0
  146. package/dist/components/ui/block-suggestion.d.ts +18 -0
  147. package/dist/components/ui/block-suggestion.d.ts.map +1 -0
  148. package/dist/components/ui/blockquote-node-static.d.ts +3 -0
  149. package/dist/components/ui/blockquote-node-static.d.ts.map +1 -0
  150. package/dist/components/ui/blockquote-node.d.ts +3 -0
  151. package/dist/components/ui/blockquote-node.d.ts.map +1 -0
  152. package/dist/components/ui/button.d.ts +11 -0
  153. package/dist/components/ui/button.d.ts.map +1 -0
  154. package/dist/components/ui/calendar.d.ts +9 -0
  155. package/dist/components/ui/calendar.d.ts.map +1 -0
  156. package/dist/components/ui/callout-node-static.d.ts +3 -0
  157. package/dist/components/ui/callout-node-static.d.ts.map +1 -0
  158. package/dist/components/ui/callout-node.d.ts +4 -0
  159. package/dist/components/ui/callout-node.d.ts.map +1 -0
  160. package/dist/components/ui/checkbox.d.ts +5 -0
  161. package/dist/components/ui/checkbox.d.ts.map +1 -0
  162. package/dist/components/ui/code-block-node-static.d.ts +5 -0
  163. package/dist/components/ui/code-block-node-static.d.ts.map +1 -0
  164. package/dist/components/ui/code-block-node.d.ts +6 -0
  165. package/dist/components/ui/code-block-node.d.ts.map +1 -0
  166. package/dist/components/ui/code-node-static.d.ts +3 -0
  167. package/dist/components/ui/code-node-static.d.ts.map +1 -0
  168. package/dist/components/ui/code-node.d.ts +3 -0
  169. package/dist/components/ui/code-node.d.ts.map +1 -0
  170. package/dist/components/ui/column-node-static.d.ts +4 -0
  171. package/dist/components/ui/column-node-static.d.ts.map +1 -0
  172. package/dist/components/ui/column-node.d.ts +6 -0
  173. package/dist/components/ui/column-node.d.ts.map +1 -0
  174. package/dist/components/ui/command.d.ts +19 -0
  175. package/dist/components/ui/command.d.ts.map +1 -0
  176. package/dist/components/ui/comment-node-static.d.ts +3 -0
  177. package/dist/components/ui/comment-node-static.d.ts.map +1 -0
  178. package/dist/components/ui/comment-node.d.ts +4 -0
  179. package/dist/components/ui/comment-node.d.ts.map +1 -0
  180. package/dist/components/ui/comment-toolbar-button.d.ts +2 -0
  181. package/dist/components/ui/comment-toolbar-button.d.ts.map +1 -0
  182. package/dist/components/ui/comment.d.ts +28 -0
  183. package/dist/components/ui/comment.d.ts.map +1 -0
  184. package/dist/components/ui/context-menu.d.ts +26 -0
  185. package/dist/components/ui/context-menu.d.ts.map +1 -0
  186. package/dist/components/ui/cursor-overlay.d.ts +2 -0
  187. package/dist/components/ui/cursor-overlay.d.ts.map +1 -0
  188. package/dist/components/ui/date-node-static.d.ts +3 -0
  189. package/dist/components/ui/date-node-static.d.ts.map +1 -0
  190. package/dist/components/ui/date-node.d.ts +4 -0
  191. package/dist/components/ui/date-node.d.ts.map +1 -0
  192. package/dist/components/ui/dialog.d.ts +16 -0
  193. package/dist/components/ui/dialog.d.ts.map +1 -0
  194. package/dist/components/ui/dropdown-menu.d.ts +26 -0
  195. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  196. package/dist/components/ui/editor-static.d.ts +9 -0
  197. package/dist/components/ui/editor-static.d.ts.map +1 -0
  198. package/dist/components/ui/editor.d.ts +29 -0
  199. package/dist/components/ui/editor.d.ts.map +1 -0
  200. package/dist/components/ui/emoji-node.d.ts +3 -0
  201. package/dist/components/ui/emoji-node.d.ts.map +1 -0
  202. package/dist/components/ui/emoji-toolbar-button.d.ts +17 -0
  203. package/dist/components/ui/emoji-toolbar-button.d.ts.map +1 -0
  204. package/dist/components/ui/equation-node-static.d.ts +4 -0
  205. package/dist/components/ui/equation-node-static.d.ts.map +1 -0
  206. package/dist/components/ui/equation-node.d.ts +5 -0
  207. package/dist/components/ui/equation-node.d.ts.map +1 -0
  208. package/dist/components/ui/equation-toolbar-button.d.ts +4 -0
  209. package/dist/components/ui/equation-toolbar-button.d.ts.map +1 -0
  210. package/dist/components/ui/export-toolbar-button.d.ts +3 -0
  211. package/dist/components/ui/export-toolbar-button.d.ts.map +1 -0
  212. package/dist/components/ui/fixed-toolbar-buttons.d.ts +2 -0
  213. package/dist/components/ui/fixed-toolbar-buttons.d.ts.map +1 -0
  214. package/dist/components/ui/fixed-toolbar.d.ts +3 -0
  215. package/dist/components/ui/fixed-toolbar.d.ts.map +1 -0
  216. package/dist/components/ui/floating-toolbar-buttons.d.ts +2 -0
  217. package/dist/components/ui/floating-toolbar-buttons.d.ts.map +1 -0
  218. package/dist/components/ui/floating-toolbar.d.ts +7 -0
  219. package/dist/components/ui/floating-toolbar.d.ts.map +1 -0
  220. package/dist/components/ui/font-size-toolbar-button.d.ts +2 -0
  221. package/dist/components/ui/font-size-toolbar-button.d.ts.map +1 -0
  222. package/dist/components/ui/ghost-text.d.ts +2 -0
  223. package/dist/components/ui/ghost-text.d.ts.map +1 -0
  224. package/dist/components/ui/heading-node-static.d.ts +15 -0
  225. package/dist/components/ui/heading-node-static.d.ts.map +1 -0
  226. package/dist/components/ui/heading-node.d.ts +14 -0
  227. package/dist/components/ui/heading-node.d.ts.map +1 -0
  228. package/dist/components/ui/highlight-node-static.d.ts +3 -0
  229. package/dist/components/ui/highlight-node-static.d.ts.map +1 -0
  230. package/dist/components/ui/highlight-node.d.ts +3 -0
  231. package/dist/components/ui/highlight-node.d.ts.map +1 -0
  232. package/dist/components/ui/history-toolbar-button.d.ts +5 -0
  233. package/dist/components/ui/history-toolbar-button.d.ts.map +1 -0
  234. package/dist/components/ui/hr-node-static.d.ts +3 -0
  235. package/dist/components/ui/hr-node-static.d.ts.map +1 -0
  236. package/dist/components/ui/hr-node.d.ts +3 -0
  237. package/dist/components/ui/hr-node.d.ts.map +1 -0
  238. package/dist/components/ui/import-toolbar-button.d.ts +3 -0
  239. package/dist/components/ui/import-toolbar-button.d.ts.map +1 -0
  240. package/dist/components/ui/indent-toolbar-button.d.ts +5 -0
  241. package/dist/components/ui/indent-toolbar-button.d.ts.map +1 -0
  242. package/dist/components/ui/inline-combobox.d.ts +34 -0
  243. package/dist/components/ui/inline-combobox.d.ts.map +1 -0
  244. package/dist/components/ui/input.d.ts +4 -0
  245. package/dist/components/ui/input.d.ts.map +1 -0
  246. package/dist/components/ui/insert-toolbar-button.d.ts +3 -0
  247. package/dist/components/ui/insert-toolbar-button.d.ts.map +1 -0
  248. package/dist/components/ui/kbd-node-static.d.ts +3 -0
  249. package/dist/components/ui/kbd-node-static.d.ts.map +1 -0
  250. package/dist/components/ui/kbd-node.d.ts +3 -0
  251. package/dist/components/ui/kbd-node.d.ts.map +1 -0
  252. package/dist/components/ui/line-height-toolbar-button.d.ts +3 -0
  253. package/dist/components/ui/line-height-toolbar-button.d.ts.map +1 -0
  254. package/dist/components/ui/link-node-static.d.ts +3 -0
  255. package/dist/components/ui/link-node-static.d.ts.map +1 -0
  256. package/dist/components/ui/link-node.d.ts +4 -0
  257. package/dist/components/ui/link-node.d.ts.map +1 -0
  258. package/dist/components/ui/link-toolbar-button.d.ts +4 -0
  259. package/dist/components/ui/link-toolbar-button.d.ts.map +1 -0
  260. package/dist/components/ui/link-toolbar.d.ts +5 -0
  261. package/dist/components/ui/link-toolbar.d.ts.map +1 -0
  262. package/dist/components/ui/list-toolbar-button.d.ts +6 -0
  263. package/dist/components/ui/list-toolbar-button.d.ts.map +1 -0
  264. package/dist/components/ui/mark-toolbar-button.d.ts +7 -0
  265. package/dist/components/ui/mark-toolbar-button.d.ts.map +1 -0
  266. package/dist/components/ui/media-audio-node-static.d.ts +3 -0
  267. package/dist/components/ui/media-audio-node-static.d.ts.map +1 -0
  268. package/dist/components/ui/media-audio-node.d.ts +5 -0
  269. package/dist/components/ui/media-audio-node.d.ts.map +1 -0
  270. package/dist/components/ui/media-embed-node.d.ts +5 -0
  271. package/dist/components/ui/media-embed-node.d.ts.map +1 -0
  272. package/dist/components/ui/media-file-node-static.d.ts +3 -0
  273. package/dist/components/ui/media-file-node-static.d.ts.map +1 -0
  274. package/dist/components/ui/media-file-node.d.ts +5 -0
  275. package/dist/components/ui/media-file-node.d.ts.map +1 -0
  276. package/dist/components/ui/media-image-node-static.d.ts +3 -0
  277. package/dist/components/ui/media-image-node-static.d.ts.map +1 -0
  278. package/dist/components/ui/media-image-node.d.ts +5 -0
  279. package/dist/components/ui/media-image-node.d.ts.map +1 -0
  280. package/dist/components/ui/media-placeholder-node.d.ts +11 -0
  281. package/dist/components/ui/media-placeholder-node.d.ts.map +1 -0
  282. package/dist/components/ui/media-preview-dialog.d.ts +2 -0
  283. package/dist/components/ui/media-preview-dialog.d.ts.map +1 -0
  284. package/dist/components/ui/media-toolbar-button.d.ts +5 -0
  285. package/dist/components/ui/media-toolbar-button.d.ts.map +1 -0
  286. package/dist/components/ui/media-toolbar.d.ts +7 -0
  287. package/dist/components/ui/media-toolbar.d.ts.map +1 -0
  288. package/dist/components/ui/media-upload-toast.d.ts +2 -0
  289. package/dist/components/ui/media-upload-toast.d.ts.map +1 -0
  290. package/dist/components/ui/media-video-node-static.d.ts +3 -0
  291. package/dist/components/ui/media-video-node-static.d.ts.map +1 -0
  292. package/dist/components/ui/media-video-node.d.ts +5 -0
  293. package/dist/components/ui/media-video-node.d.ts.map +1 -0
  294. package/dist/components/ui/mention-node-static.d.ts +5 -0
  295. package/dist/components/ui/mention-node-static.d.ts.map +1 -0
  296. package/dist/components/ui/mention-node.d.ts +7 -0
  297. package/dist/components/ui/mention-node.d.ts.map +1 -0
  298. package/dist/components/ui/mode-toolbar-button.d.ts +3 -0
  299. package/dist/components/ui/mode-toolbar-button.d.ts.map +1 -0
  300. package/dist/components/ui/more-toolbar-button.d.ts +3 -0
  301. package/dist/components/ui/more-toolbar-button.d.ts.map +1 -0
  302. package/dist/components/ui/paragraph-node-static.d.ts +3 -0
  303. package/dist/components/ui/paragraph-node-static.d.ts.map +1 -0
  304. package/dist/components/ui/paragraph-node.d.ts +3 -0
  305. package/dist/components/ui/paragraph-node.d.ts.map +1 -0
  306. package/dist/components/ui/popover.d.ts +8 -0
  307. package/dist/components/ui/popover.d.ts.map +1 -0
  308. package/dist/components/ui/resize-handle.d.ts +16 -0
  309. package/dist/components/ui/resize-handle.d.ts.map +1 -0
  310. package/dist/components/ui/separator.d.ts +5 -0
  311. package/dist/components/ui/separator.d.ts.map +1 -0
  312. package/dist/components/ui/slash-node.d.ts +4 -0
  313. package/dist/components/ui/slash-node.d.ts.map +1 -0
  314. package/dist/components/ui/suggestion-node-static.d.ts +3 -0
  315. package/dist/components/ui/suggestion-node-static.d.ts.map +1 -0
  316. package/dist/components/ui/suggestion-node.d.ts +6 -0
  317. package/dist/components/ui/suggestion-node.d.ts.map +1 -0
  318. package/dist/components/ui/suggestion-toolbar-button.d.ts +2 -0
  319. package/dist/components/ui/suggestion-toolbar-button.d.ts.map +1 -0
  320. package/dist/components/ui/table-icons.d.ts +8 -0
  321. package/dist/components/ui/table-icons.d.ts.map +1 -0
  322. package/dist/components/ui/table-node-static.d.ts +8 -0
  323. package/dist/components/ui/table-node-static.d.ts.map +1 -0
  324. package/dist/components/ui/table-node.d.ts +10 -0
  325. package/dist/components/ui/table-node.d.ts.map +1 -0
  326. package/dist/components/ui/table-toolbar-button.d.ts +3 -0
  327. package/dist/components/ui/table-toolbar-button.d.ts.map +1 -0
  328. package/dist/components/ui/toc-node-static.d.ts +3 -0
  329. package/dist/components/ui/toc-node-static.d.ts.map +1 -0
  330. package/dist/components/ui/toc-node.d.ts +3 -0
  331. package/dist/components/ui/toc-node.d.ts.map +1 -0
  332. package/dist/components/ui/toggle-node-static.d.ts +3 -0
  333. package/dist/components/ui/toggle-node-static.d.ts.map +1 -0
  334. package/dist/components/ui/toggle-node.d.ts +3 -0
  335. package/dist/components/ui/toggle-node.d.ts.map +1 -0
  336. package/dist/components/ui/toggle-toolbar-button.d.ts +4 -0
  337. package/dist/components/ui/toggle-toolbar-button.d.ts.map +1 -0
  338. package/dist/components/ui/toolbar.d.ts +41 -0
  339. package/dist/components/ui/toolbar.d.ts.map +1 -0
  340. package/dist/components/ui/tooltip.d.ts +8 -0
  341. package/dist/components/ui/tooltip.d.ts.map +1 -0
  342. package/dist/components/ui/turn-into-toolbar-button.d.ts +9 -0
  343. package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -0
  344. package/dist/index.d.ts +42 -83
  345. package/dist/index.d.ts.map +1 -0
  346. package/dist/index.js +3 -5
  347. package/dist/index.js.map +1 -1
  348. package/package.json +13 -13
  349. package/dist/editor.css +0 -1
  350. package/dist/vite.svg +0 -1
package/README.md CHANGED
@@ -16,7 +16,11 @@ A powerful, feature-rich Plate.js editor component with AI integration, collabor
16
16
  ## Installation
17
17
 
18
18
  ```bash
19
- npm install oyat-editor
19
+ npm install @oyat/editor
20
+ # or
21
+ yarn add @oyat/editor
22
+ # or
23
+ pnpm add @oyat/editor
20
24
  ```
21
25
 
22
26
  ### Peer Dependencies
@@ -31,8 +35,8 @@ npm install react react-dom platejs
31
35
 
32
36
  ```tsx
33
37
  import React from "react";
34
- import { PlateEditor } from "oyat-editor";
35
- import "oyat-editor/styles"; // Import styles
38
+ import { PlateEditor } from "@oyat/editor";
39
+ // Styles are automatically included - no separate import needed!
36
40
 
37
41
  function App() {
38
42
  const handleChange = (value) => {
@@ -53,7 +57,7 @@ export default App;
53
57
 
54
58
  ```tsx
55
59
  import React from "react";
56
- import { PlateEditor, EditorKit, AlignKit, BasicMarksKit } from "oyat-editor";
60
+ import { PlateEditor, EditorKit, AlignKit, BasicMarksKit } from "@oyat/editor";
57
61
 
58
62
  function CustomEditor() {
59
63
  // Create a custom plugin configuration
@@ -73,39 +77,21 @@ function CustomEditor() {
73
77
  }
74
78
  ```
75
79
 
76
- ### AI Integration
80
+ ### With TypeScript
77
81
 
78
82
  ```tsx
79
83
  import React from "react";
80
- import { PlateEditor } from "oyat-editor";
84
+ import { PlateEditor, type PlateEditorProps, type Value } from "@oyat/editor";
81
85
 
82
- function AIEditor() {
83
- return (
84
- <PlateEditor
85
- initialValue=""
86
- onChange={(value) => console.log(value)}
87
- // AI features are automatically available
88
- // Press Cmd+J or Space in empty line to trigger AI
89
- />
90
- );
91
- }
92
- ```
86
+ function TypedEditor() {
87
+ const [value, setValue] = React.useState<Value | undefined>();
93
88
 
94
- ### File Upload Configuration
95
-
96
- ```tsx
97
- import React from "react";
98
- import { PlateEditor } from "oyat-editor";
89
+ const handleChange: PlateEditorProps["onChange"] = (newValue) => {
90
+ setValue(newValue);
91
+ console.log("Editor content:", newValue);
92
+ };
99
93
 
100
- function EditorWithUpload() {
101
- return (
102
- <PlateEditor
103
- initialValue=""
104
- onChange={(value) => console.log(value)}
105
- // File upload is automatically configured
106
- // Supports images, documents, and media files
107
- />
108
- );
94
+ return <PlateEditor initialValue={value} onChange={handleChange} />;
109
95
  }
110
96
  ```
111
97
 
@@ -113,13 +99,17 @@ function EditorWithUpload() {
113
99
 
114
100
  ### PlateEditor Props
115
101
 
116
- | Prop | Type | Default | Description |
117
- | -------------- | ------------------------ | ----------- | ------------------------------- |
118
- | `initialValue` | `Value \| string` | `undefined` | Initial content for the editor |
119
- | `onChange` | `(value: Value) => void` | `undefined` | Callback when content changes |
120
- | `plugins` | `Plugin[]` | `EditorKit` | Custom plugin configuration |
121
- | `readOnly` | `boolean` | `false` | Whether the editor is read-only |
122
- | `placeholder` | `string` | `undefined` | Placeholder text |
102
+ ```typescript
103
+ interface PlateEditorProps {
104
+ initialValue?: Value | string;
105
+ onChange?: (value: Value) => void;
106
+ }
107
+ ```
108
+
109
+ | Prop | Type | Default | Description |
110
+ | -------------- | ------------------------ | ----------- | ------------------------------ |
111
+ | `initialValue` | `Value \| string` | `undefined` | Initial content for the editor |
112
+ | `onChange` | `(value: Value) => void` | `undefined` | Callback when content changes |
123
113
 
124
114
  ### Available Plugin Kits
125
115
 
@@ -148,45 +138,108 @@ function EditorWithUpload() {
148
138
 
149
139
  ## Styling
150
140
 
151
- The editor comes with built-in Tailwind CSS styles. Make sure to include the CSS file:
152
-
153
- ```tsx
154
- import "oyat-editor/styles";
155
- ```
141
+ The editor comes with built-in Tailwind CSS styles that are **automatically included** when you import the component - no separate CSS import needed!
156
142
 
157
143
  ### Custom Styling
158
144
 
159
- You can customize the editor appearance by overriding CSS variables or using Tailwind classes:
145
+ The editor uses Tailwind CSS and includes all necessary theme variables. You can customize the appearance by:
160
146
 
161
- ```css
162
- /* Custom editor styles */
163
- .oyat-editor {
164
- --editor-bg: #ffffff;
165
- --editor-text: #000000;
166
- --editor-border: #e5e7eb;
167
- }
168
- ```
147
+ - Overriding CSS variables in your own stylesheet
148
+ - Using Tailwind utility classes
149
+ - Applying custom themes via your Tailwind configuration
169
150
 
170
151
  ## Development
171
152
 
153
+ ### Project Setup
154
+
155
+ If you want to set up the project from scratch:
156
+
157
+ ```bash
158
+ # Create a new Vite React TypeScript project
159
+ pnpm create vite oyat-editor --template react-ts
160
+
161
+ cd oyat-editor
162
+
163
+ # Install shadcn/ui for Vite
164
+ # Follow: https://ui.shadcn.com/docs/installation/vite
165
+
166
+ # Add Plate UI components
167
+ pnpm dlx shadcn@latest add https://platejs.org/r/plate-ui
168
+
169
+ # Add Plate AI editor
170
+ pnpm dlx shadcn@latest add https://platejs.org/r/editor-ai
171
+
172
+ pnpm add @platejs/diff
173
+ ```
174
+
172
175
  ### Building the Library
173
176
 
174
177
  ```bash
175
178
  npm run build:lib
176
179
  ```
177
180
 
181
+ This will:
182
+
183
+ - Build the library using Vite
184
+ - Generate TypeScript declarations automatically
185
+ - Output to `dist/` folder with optimized bundles
186
+
178
187
  ### Development Mode
179
188
 
189
+ Start the development server:
190
+
180
191
  ```bash
181
192
  npm run dev
182
193
  ```
183
194
 
184
195
  ### Type Checking
185
196
 
197
+ Run TypeScript type checking:
198
+
186
199
  ```bash
187
200
  npm run type-check
188
201
  ```
189
202
 
203
+ ### Linting
204
+
205
+ ```bash
206
+ npm run lint
207
+ ```
208
+
209
+ ## Publishing
210
+
211
+ To publish a new version to npm:
212
+
213
+ ```bash
214
+ # 1. Make sure all changes are committed
215
+ git add .
216
+ git commit -m "Your commit message"
217
+
218
+ # 2. Build the library
219
+ npm run build:lib
220
+
221
+ # 3. Verify the build output
222
+ ls -la dist/
223
+ # Should see: index.js, index.d.ts, editor.css, etc.
224
+
225
+ # 4. Bump version (choose one)
226
+ npm version patch # 1.0.0 → 1.0.1 (bug fixes)
227
+ npm version minor # 1.0.0 → 1.1.0 (new features)
228
+ npm version major # 1.0.0 → 2.0.0 (breaking changes)
229
+
230
+ # 5. Login to npm (if not already logged in)
231
+ npm login
232
+
233
+ # 6. Publish to npm
234
+ npm publish
235
+
236
+ # 7. Verify publication
237
+ npm view @oyat/editor version
238
+ # Or visit: https://www.npmjs.com/package/@oyat/editor
239
+ ```
240
+
241
+ **Note:** The `prepublishOnly` script automatically runs `build:lib` before publishing.
242
+
190
243
  ## Contributing
191
244
 
192
245
  1. Fork the repository
@@ -201,9 +254,10 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
201
254
 
202
255
  ## Support
203
256
 
204
- - 📖 [Documentation](https://github.com/yourusername/oyat-editor#readme)
205
- - 🐛 [Issue Tracker](https://github.com/yourusername/oyat-editor/issues)
206
- - 💬 [Discussions](https://github.com/yourusername/oyat-editor/discussions)
257
+ - 📦 [NPM Package](https://www.npmjs.com/package/@oyat/editor)
258
+ - 📖 [Documentation](https://github.com/oyat/oyat-editor#readme)
259
+ - 🐛 [Issue Tracker](https://github.com/oyat/oyat-editor/issues)
260
+ - 💬 [Discussions](https://github.com/oyat/oyat-editor/discussions)
207
261
 
208
262
  ## Acknowledgments
209
263
 
@@ -0,0 +1,7 @@
1
+ import { Value } from 'platejs';
2
+ export interface PlateEditorProps {
3
+ initialValue?: Value | string;
4
+ onChange?: (value: Value) => void;
5
+ }
6
+ export declare function PlateEditor({ initialValue, onChange }: PlateEditorProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=plate-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plate-editor.d.ts","sourceRoot":"","sources":["../../../src/components/editor/plate-editor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACnC;AAED,wBAAgB,WAAW,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAoBvE"}
@@ -0,0 +1,85 @@
1
+ import { EmptyText, KEYS, PlainText, TBasicMarks, TCaptionProps, TComboboxInputElement, TCommentText, TElement, TFontMarks, TImageElement, TLineHeightProps, TLinkElement, TListProps, TMediaEmbedElement, TMentionElement, TResizableProps, TTableElement, TText, TTextAlignProps } from 'platejs';
2
+ export interface MyBlockElement extends TElement, TListProps {
3
+ id?: string;
4
+ }
5
+ export interface MyTextBlockElement extends TElement, TLineHeightProps, TTextAlignProps {
6
+ children: (MyLinkElement | MyMentionElement | MyMentionInputElement | RichText)[];
7
+ }
8
+ export interface MyBlockquoteElement extends MyTextBlockElement {
9
+ type: typeof KEYS.blockquote;
10
+ }
11
+ export interface MyCodeBlockElement extends MyBlockElement {
12
+ children: MyCodeLineElement[];
13
+ type: typeof KEYS.codeBlock;
14
+ }
15
+ export interface MyCodeLineElement extends TElement {
16
+ children: PlainText[];
17
+ type: typeof KEYS.codeLine;
18
+ }
19
+ export interface MyH1Element extends MyTextBlockElement {
20
+ type: typeof KEYS.h1;
21
+ }
22
+ export interface MyH2Element extends MyTextBlockElement {
23
+ type: typeof KEYS.h2;
24
+ }
25
+ /** Block props */
26
+ export interface MyH3Element extends MyTextBlockElement {
27
+ type: typeof KEYS.h3;
28
+ }
29
+ export interface MyH4Element extends MyTextBlockElement {
30
+ type: typeof KEYS.h4;
31
+ }
32
+ export interface MyH5Element extends MyTextBlockElement {
33
+ type: typeof KEYS.h5;
34
+ }
35
+ export interface MyH6Element extends MyTextBlockElement {
36
+ type: typeof KEYS.h6;
37
+ }
38
+ export interface MyHrElement extends MyBlockElement {
39
+ children: [EmptyText];
40
+ type: typeof KEYS.hr;
41
+ }
42
+ export interface MyImageElement extends MyBlockElement, TCaptionProps, TImageElement, TResizableProps {
43
+ children: [EmptyText];
44
+ type: typeof KEYS.img;
45
+ }
46
+ export interface MyLinkElement extends TLinkElement {
47
+ children: RichText[];
48
+ type: typeof KEYS.link;
49
+ }
50
+ export interface MyMediaEmbedElement extends MyBlockElement, TCaptionProps, TMediaEmbedElement, TResizableProps {
51
+ children: [EmptyText];
52
+ type: typeof KEYS.mediaEmbed;
53
+ }
54
+ export interface MyMentionElement extends TMentionElement {
55
+ children: [EmptyText];
56
+ type: typeof KEYS.mention;
57
+ }
58
+ export interface MyMentionInputElement extends TComboboxInputElement {
59
+ children: [PlainText];
60
+ type: typeof KEYS.mentionInput;
61
+ }
62
+ export type MyNestableBlock = MyParagraphElement;
63
+ export interface MyParagraphElement extends MyTextBlockElement {
64
+ type: typeof KEYS.p;
65
+ }
66
+ export interface MyTableCellElement extends TElement {
67
+ children: MyNestableBlock[];
68
+ type: typeof KEYS.td;
69
+ }
70
+ export interface MyTableElement extends MyBlockElement, TTableElement {
71
+ children: MyTableRowElement[];
72
+ type: typeof KEYS.table;
73
+ }
74
+ export interface MyTableRowElement extends TElement {
75
+ children: MyTableCellElement[];
76
+ type: typeof KEYS.tr;
77
+ }
78
+ export interface MyToggleElement extends MyTextBlockElement {
79
+ type: typeof KEYS.toggle;
80
+ }
81
+ export interface RichText extends TBasicMarks, TCommentText, TFontMarks, TText {
82
+ kbd?: boolean;
83
+ }
84
+ export type MyValue = (MyBlockquoteElement | MyCodeBlockElement | MyH1Element | MyH2Element | MyH3Element | MyH4Element | MyH5Element | MyH6Element | MyHrElement | MyImageElement | MyMediaEmbedElement | MyParagraphElement | MyTableElement | MyToggleElement)[];
85
+ //# sourceMappingURL=plate-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plate-types.d.ts","sourceRoot":"","sources":["../../../src/components/editor/plate-types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ export declare const BaseAlignKit: import('platejs').SlatePlugin<import('platejs').PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
2
+ setNodes: (value: import('@platejs/basic-styles').Alignment, setNodesOptions?: import('platejs').SetNodesOptions | undefined) => void;
3
+ }>, {}>>[];
4
+ //# sourceMappingURL=align-base-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"align-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/align-base-kit.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;gFAa2vC,CAAC;UADpxC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const AlignKit: import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"textAlign", {}, {}, Record<"textAlign", {
2
+ setNodes: (value: import('@platejs/basic-styles').Alignment, setNodesOptions?: import('platejs').SetNodesOptions | undefined) => void;
3
+ }>, {}>>[];
4
+ //# sourceMappingURL=align-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"align-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/align-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;gFAa84B,CAAC;UADn6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const AutoformatKit: import('platejs').SlatePlugin<import('@platejs/autoformat').AutoformatConfig>[];
2
+ //# sourceMappingURL=autoformat-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoformat-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/autoformat-kit.tsx"],"names":[],"mappings":"AAkNA,eAAO,MAAM,aAAa,iFAyBzB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const BaseBasicBlocksKit: (import('platejs').SlatePlugin<import('platejs').PluginConfig<"p", {}, {}, {}, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<any, {}, {}, Record<any, {
2
+ toggle: () => void;
3
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
4
+ toggle: () => void;
5
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"hr", {}, {}, {}, {}>>)[];
6
+ //# sourceMappingURL=basic-blocks-base-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-blocks-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/basic-blocks-base-kit.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,kBAAkB;;;;iGAU9B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const BasicBlocksKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"p", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<any, {}, {}, Record<any, {
2
+ toggle: () => void;
3
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
4
+ toggle: () => void;
5
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"hr", {}, {}, {}, {}>>)[];
6
+ //# sourceMappingURL=basic-blocks-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-blocks-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/basic-blocks-kit.tsx"],"names":[],"mappings":"AA0BA,eAAO,MAAM,cAAc;;;;uGA6D1B,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare const BaseBasicMarksKit: (import('platejs').SlatePlugin<import('platejs').PluginConfig<"bold", {}, {}, Record<"bold", {
2
+ toggle: () => void;
3
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"italic", {}, {}, Record<"italic", {
4
+ toggle: () => void;
5
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"underline", {}, {}, Record<"underline", {
6
+ toggle: () => void;
7
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"code", {}, {}, Record<"code", {
8
+ toggle: () => void;
9
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
10
+ toggle: () => void;
11
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"subscript", {}, {}, Record<"subscript", {
12
+ toggle: () => void;
13
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"superscript", {}, {}, Record<"superscript", {
14
+ toggle: () => void;
15
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"highlight", {}, {}, Record<"highlight", {
16
+ toggle: () => void;
17
+ }>, {}>> | import('platejs').SlatePlugin<import('platejs').PluginConfig<"kbd", {}, {}, Record<"kbd", {
18
+ toggle: () => void;
19
+ }>, {}>>)[];
20
+ //# sourceMappingURL=basic-marks-base-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-marks-base-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/basic-marks-base-kit.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;WAU7B,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare const BasicMarksKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"bold", {}, {}, Record<"bold", {
2
+ toggle: () => void;
3
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"italic", {}, {}, Record<"italic", {
4
+ toggle: () => void;
5
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"underline", {}, {}, Record<"underline", {
6
+ toggle: () => void;
7
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"code", {}, {}, Record<"code", {
8
+ toggle: () => void;
9
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
10
+ toggle: () => void;
11
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"subscript", {}, {}, Record<"subscript", {
12
+ toggle: () => void;
13
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"superscript", {}, {}, Record<"superscript", {
14
+ toggle: () => void;
15
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"highlight", {}, {}, Record<"highlight", {
16
+ toggle: () => void;
17
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"kbd", {}, {}, Record<"kbd", {
18
+ toggle: () => void;
19
+ }>, {}>>)[];
20
+ //# sourceMappingURL=basic-marks-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-marks-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/basic-marks-kit.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;WAsBzB,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const BasicNodesKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"p", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<any, {}, {}, Record<any, {
2
+ toggle: () => void;
3
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
4
+ toggle: () => void;
5
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"hr", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"bold", {}, {}, Record<"bold", {
6
+ toggle: () => void;
7
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"italic", {}, {}, Record<"italic", {
8
+ toggle: () => void;
9
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"underline", {}, {}, Record<"underline", {
10
+ toggle: () => void;
11
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"code", {}, {}, Record<"code", {
12
+ toggle: () => void;
13
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
14
+ toggle: () => void;
15
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"subscript", {}, {}, Record<"subscript", {
16
+ toggle: () => void;
17
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"superscript", {}, {}, Record<"superscript", {
18
+ toggle: () => void;
19
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"highlight", {}, {}, Record<"highlight", {
20
+ toggle: () => void;
21
+ }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"kbd", {}, {}, Record<"kbd", {
22
+ toggle: () => void;
23
+ }>, {}>>)[];
24
+ //# sourceMappingURL=basic-nodes-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-nodes-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/basic-nodes-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;WAAwC,CAAC"}
@@ -0,0 +1,165 @@
1
+ export declare const BlockMenuKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockMenu", {
2
+ openId: ((string & {}) | "context") | null;
3
+ position: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ }, {
8
+ blockMenu: {
9
+ hide: () => void;
10
+ show: (id: (string & {}) | "context", position?: {
11
+ x: number;
12
+ y: number;
13
+ }) => void;
14
+ showContextMenu: (blockId: string, position: {
15
+ x: number;
16
+ y: number;
17
+ }) => void;
18
+ };
19
+ } & Record<"blockMenu", Partial<{
20
+ hide: () => void;
21
+ show: (id: (string & {}) | "context", position?: {
22
+ x: number;
23
+ y: number;
24
+ }) => void;
25
+ showContextMenu: (blockId: string, position: {
26
+ x: number;
27
+ y: number;
28
+ }) => void;
29
+ }>>, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockSelection", {
30
+ anchorId?: string | null;
31
+ areaOptions?: {
32
+ document?: Document;
33
+ } & {
34
+ container?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
35
+ behaviour?: {
36
+ intersect?: ("center" | "cover" | "touch") | undefined;
37
+ overlap?: ("drop" | "invert" | "keep") | undefined;
38
+ scrolling?: {
39
+ manualSpeed?: number | undefined;
40
+ speedDivider?: number | undefined;
41
+ startScrollMargins?: {
42
+ x?: number | undefined;
43
+ y?: number | undefined;
44
+ } | undefined;
45
+ } | undefined;
46
+ startThreshold?: number | {
47
+ x?: number | undefined;
48
+ y?: number | undefined;
49
+ } | undefined;
50
+ triggers?: ((0 | 1 | 2 | 3 | 4) | {
51
+ button: 0 | 1 | 2 | 3 | 4;
52
+ modifiers: ("shift" | "alt" | "ctrl")[];
53
+ })[] | undefined;
54
+ } | undefined;
55
+ boundaries?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
56
+ features?: {
57
+ range?: boolean | undefined;
58
+ singleTap?: {
59
+ allow?: boolean | undefined;
60
+ intersect?: ("touch" | "native") | undefined;
61
+ } | undefined;
62
+ touch?: boolean | undefined;
63
+ } | undefined;
64
+ selectables?: (string | string[]) | undefined;
65
+ selectionAreaClass?: string | undefined;
66
+ startAreas?: (string | HTMLElement | (string | HTMLElement)[]) | undefined;
67
+ };
68
+ editorPaddingRight?: import('react').CSSProperties["width"];
69
+ enableContextMenu?: boolean;
70
+ isSelecting?: boolean;
71
+ isSelectionAreaVisible?: boolean;
72
+ rightSelectionAreaClassName?: string;
73
+ selectedIds?: Set<string>;
74
+ shadowInputRef?: React.RefObject<HTMLInputElement | null>;
75
+ isSelectable?: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
76
+ onKeyDownSelecting?: (editor: import('platejs').SlateEditor, e: KeyboardEvent) => void;
77
+ }, {
78
+ blockSelection: {
79
+ addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event, }: {
80
+ element: import('platejs').TElement;
81
+ event: React.MouseEvent<HTMLDivElement, MouseEvent>;
82
+ disabledWhenFocused?: boolean;
83
+ }) => void>;
84
+ setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed, }: Partial<{
85
+ added: Element[];
86
+ removed: Element[];
87
+ }> & {
88
+ ids?: string[];
89
+ }) => void>;
90
+ add: (id: string[] | string) => void;
91
+ addSelectedRow: (id: string, options?: {
92
+ clear?: boolean;
93
+ delay?: number;
94
+ }) => void;
95
+ clear: () => void;
96
+ delete: (id: string[] | string) => void;
97
+ deselect: () => void;
98
+ first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
99
+ focus: () => void;
100
+ getNodes: (options?: {
101
+ collapseTableRows?: boolean;
102
+ selectionFallback?: boolean;
103
+ sort?: boolean;
104
+ }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
105
+ has: (id: string[] | string) => boolean;
106
+ isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
107
+ moveSelection: (direction: "down" | "up") => void;
108
+ resetSelectedIds: () => void;
109
+ selectAll: () => void;
110
+ set: (id: string[] | string) => void;
111
+ shiftSelection: (direction: "down" | "up") => void;
112
+ unselect: () => void;
113
+ };
114
+ } & Record<"blockSelection", Partial<{
115
+ addOnContextMenu: import('platejs').OmitFirst<(editor: import('platejs/react').PlateEditor, { disabledWhenFocused, element, event, }: {
116
+ element: import('platejs').TElement;
117
+ event: React.MouseEvent<HTMLDivElement, MouseEvent>;
118
+ disabledWhenFocused?: boolean;
119
+ }) => void>;
120
+ setSelectedIds: import('platejs').OmitFirst<(editor: import('platejs').SlateEditor, { added, ids, removed, }: Partial<{
121
+ added: Element[];
122
+ removed: Element[];
123
+ }> & {
124
+ ids?: string[];
125
+ }) => void>;
126
+ add: (id: string[] | string) => void;
127
+ addSelectedRow: (id: string, options?: {
128
+ clear?: boolean;
129
+ delay?: number;
130
+ }) => void;
131
+ clear: () => void;
132
+ delete: (id: string[] | string) => void;
133
+ deselect: () => void;
134
+ first: () => import('platejs').NodeEntry<import('platejs').TIdElement> | null;
135
+ focus: () => void;
136
+ getNodes: (options?: {
137
+ collapseTableRows?: boolean;
138
+ selectionFallback?: boolean;
139
+ sort?: boolean;
140
+ }) => import('platejs').NodeEntry<import('platejs').TIdElement>[];
141
+ has: (id: string[] | string) => boolean;
142
+ isSelectable: (element: import('platejs').TElement, path: import('platejs').Path) => boolean;
143
+ moveSelection: (direction: "down" | "up") => void;
144
+ resetSelectedIds: () => void;
145
+ selectAll: () => void;
146
+ set: (id: string[] | string) => void;
147
+ shiftSelection: (direction: "down" | "up") => void;
148
+ unselect: () => void;
149
+ }>>, Record<"blockSelection", {
150
+ duplicate: () => void;
151
+ insertBlocksAndSelect: (nodes: import('platejs').TElement[], args_1: {
152
+ at: import('platejs').Path;
153
+ insertedCallback?: () => void;
154
+ }) => void;
155
+ removeNodes: () => void;
156
+ select: () => void;
157
+ selectBlocks: (at: import('platejs').Path | import('platejs').TNode) => void;
158
+ setIndent: (indent: number, options?: import('platejs').SetNodesOptions | undefined) => void;
159
+ setNodes: (props: Partial<Omit<import('platejs').TElement, "children">>, options?: import('platejs').SetNodesOptions | undefined) => void;
160
+ setTexts: (props: Partial<Omit<import('platejs').TText, "text">>, options?: Omit<import('platejs').SetNodesOptions, "at"> | undefined) => void;
161
+ }>, {
162
+ isSelected?: (id?: string) => boolean;
163
+ isSelectingSome?: () => boolean;
164
+ }>>)[];
165
+ //# sourceMappingURL=block-menu-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-menu-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/block-menu-kit.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;;;sDAMqyB,CAAC;;;;;;;;;;;kDAA6R,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAA42D,CAAC;;;;;;eAA0a,CAAC;;;4CAAk4I,CAAC;iBAAqB,CAAC;iBAA4B,CAAC;;;;;;;0BAA8xB,CAAC;6BAAiC,CAAC;6BAAoM,CAAC;gBAA2B,CAAC;;;;;;;;;;;;;;;2BAAp4L,CAAC;;;;;;WAA0a,CAAC;;;wCAAwyN,CAAC;aAAiB,CAAC;aAAwB,CAAC;;;;;;;sBAA8sB,CAAC;yBAA6B,CAAC;yBAAgL,CAAC;YAAuB,CAAC;;;;;;;;;;;;;;wBAAk/B,CAAC;;;;;uCAAgqB,CAAC;oFAA0J,CAAC;6EAA2J,CAAC;;oBAAoI,CAAC;;MAD9sa,CAAC"}