@delali/web-editor 0.0.0-stage → 0.4.3

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 (477) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE +201 -0
  3. package/README.md +167 -2
  4. package/dist/components/editor/chat-comment-effects.d.ts +2 -0
  5. package/dist/components/editor/chat-types.d.ts +20 -0
  6. package/dist/components/editor/collaboration/base-collaboration-plugin.d.ts +14 -0
  7. package/dist/components/editor/collaboration/collaboration-plugin.d.ts +6 -0
  8. package/dist/components/editor/collaboration/collaboration-session.d.ts +30 -0
  9. package/dist/components/editor/collaboration/collaboration-starter.d.ts +9 -0
  10. package/dist/components/editor/collaboration/editor-collaboration.d.ts +16 -0
  11. package/dist/components/editor/collaboration/editor-collaboration.js +293 -0
  12. package/dist/components/editor/collaboration/remote-cursor-overlay.d.ts +1 -0
  13. package/dist/components/editor/collaboration/shared-document.d.ts +18 -0
  14. package/dist/components/editor/create-editor-plugins.d.ts +3 -0
  15. package/dist/components/editor/create-editor-plugins.js +25243 -0
  16. package/dist/components/editor/create-viewer-plugins.d.ts +3 -0
  17. package/dist/components/editor/editor-base-kit.d.ts +329 -0
  18. package/dist/components/editor/editor-base-kit.js +3136 -0
  19. package/dist/components/editor/editor-config.d.ts +14 -0
  20. package/dist/components/editor/editor-config.js +145 -0
  21. package/dist/components/editor/editor-kit.d.ts +3978 -0
  22. package/dist/components/editor/editor-kit.js +18820 -0
  23. package/dist/components/editor/plate-types.d.ts +99 -0
  24. package/dist/components/editor/plugins/accordion-group-base-kit.d.ts +2 -0
  25. package/dist/components/editor/plugins/accordion-group-kit.d.ts +3 -0
  26. package/dist/components/editor/plugins/accordion-types.d.ts +14 -0
  27. package/dist/components/editor/plugins/ai-kit.d.ts +248 -0
  28. package/dist/components/editor/plugins/align-base-kit.d.ts +3 -0
  29. package/dist/components/editor/plugins/api-doc/expandable-base-kit.d.ts +24 -0
  30. package/dist/components/editor/plugins/api-doc/expandable-kit.d.ts +29 -0
  31. package/dist/components/editor/plugins/api-doc/expandable-types.d.ts +7 -0
  32. package/dist/components/editor/plugins/api-doc/panel-base-kit.d.ts +2 -0
  33. package/dist/components/editor/plugins/api-doc/panel-kit.d.ts +3 -0
  34. package/dist/components/editor/plugins/api-doc/panel-types.d.ts +7 -0
  35. package/dist/components/editor/plugins/api-doc/response-field-base-kit.d.ts +3 -0
  36. package/dist/components/editor/plugins/api-doc/response-field-kit.d.ts +4 -0
  37. package/dist/components/editor/plugins/api-doc/response-field-types.d.ts +17 -0
  38. package/dist/components/editor/plugins/autoformat-kit.d.ts +1 -0
  39. package/dist/components/editor/plugins/badge-base-kit.d.ts +2 -0
  40. package/dist/components/editor/plugins/badge-kit.d.ts +3 -0
  41. package/dist/components/editor/plugins/badge-types.d.ts +24 -0
  42. package/dist/components/editor/plugins/banner-base-kit.d.ts +2 -0
  43. package/dist/components/editor/plugins/banner-kit.d.ts +3 -0
  44. package/dist/components/editor/plugins/banner-types.d.ts +15 -0
  45. package/dist/components/editor/plugins/basic-blocks-base-kit.d.ts +5 -0
  46. package/dist/components/editor/plugins/basic-blocks-kit.d.ts +5 -0
  47. package/dist/components/editor/plugins/basic-marks-base-kit.d.ts +19 -0
  48. package/dist/components/editor/plugins/basic-marks-kit.d.ts +35 -0
  49. package/dist/components/editor/plugins/basic-nodes-kit.d.ts +21 -0
  50. package/dist/components/editor/plugins/block-menu-kit.d.ts +165 -0
  51. package/dist/components/editor/plugins/block-placeholder-kit.d.ts +14 -0
  52. package/dist/components/editor/plugins/block-selection-kit.d.ts +137 -0
  53. package/dist/components/editor/plugins/callout-base-kit.d.ts +20 -0
  54. package/dist/components/editor/plugins/callout-kit.d.ts +20 -0
  55. package/dist/components/editor/plugins/callout-types.d.ts +18 -0
  56. package/dist/components/editor/plugins/card-base-kit.d.ts +2 -0
  57. package/dist/components/editor/plugins/card-kit.d.ts +3 -0
  58. package/dist/components/editor/plugins/card-types.d.ts +14 -0
  59. package/dist/components/editor/plugins/caret-placement-kit.d.ts +8 -0
  60. package/dist/components/editor/plugins/code-block-base-kit.d.ts +7 -0
  61. package/dist/components/editor/plugins/code-block-input-rule-gate.d.ts +4 -0
  62. package/dist/components/editor/plugins/code-block-kit.d.ts +7 -0
  63. package/dist/components/editor/plugins/color-base-kit.d.ts +2 -0
  64. package/dist/components/editor/plugins/color-kit.d.ts +3 -0
  65. package/dist/components/editor/plugins/color-types.d.ts +18 -0
  66. package/dist/components/editor/plugins/column-base-kit.d.ts +1 -0
  67. package/dist/components/editor/plugins/column-kit.d.ts +1 -0
  68. package/dist/components/editor/plugins/comment-base-kit.d.ts +47 -0
  69. package/dist/components/editor/plugins/comment-kit.d.ts +71 -0
  70. package/dist/components/editor/plugins/copilot-kit.d.ts +72 -0
  71. package/dist/components/editor/plugins/cursor-overlay-kit.d.ts +11 -0
  72. package/dist/components/editor/plugins/date-base-kit.d.ts +19 -0
  73. package/dist/components/editor/plugins/date-kit.d.ts +19 -0
  74. package/dist/components/editor/plugins/discussion-kit.d.ts +31 -0
  75. package/dist/components/editor/plugins/dnd-kit.d.ts +20 -0
  76. package/dist/components/editor/plugins/docx-kit.d.ts +1 -0
  77. package/dist/components/editor/plugins/emoji-kit.d.ts +9 -0
  78. package/dist/components/editor/plugins/exit-break-kit.d.ts +4 -0
  79. package/dist/components/editor/plugins/floating-toolbar-kit.d.ts +1 -0
  80. package/dist/components/editor/plugins/font-base-kit.d.ts +9 -0
  81. package/dist/components/editor/plugins/font-kit.d.ts +9 -0
  82. package/dist/components/editor/plugins/fraction-input-rule.d.ts +12 -0
  83. package/dist/components/editor/plugins/frame-base-kit.d.ts +2 -0
  84. package/dist/components/editor/plugins/frame-kit.d.ts +3 -0
  85. package/dist/components/editor/plugins/frame-types.d.ts +10 -0
  86. package/dist/components/editor/plugins/icon-base-kit.d.ts +2 -0
  87. package/dist/components/editor/plugins/icon-kit.d.ts +3 -0
  88. package/dist/components/editor/plugins/icon-types.d.ts +15 -0
  89. package/dist/components/editor/plugins/indent-base-kit.d.ts +1 -0
  90. package/dist/components/editor/plugins/indent-kit.d.ts +5 -0
  91. package/dist/components/editor/plugins/input-rule-gate.d.ts +8 -0
  92. package/dist/components/editor/plugins/line-height-base-kit.d.ts +3 -0
  93. package/dist/components/editor/plugins/link-base-kit.d.ts +2 -0
  94. package/dist/components/editor/plugins/link-kit.d.ts +89 -0
  95. package/dist/components/editor/plugins/list-base-kit.d.ts +1 -0
  96. package/dist/components/editor/plugins/list-kit.d.ts +16 -0
  97. package/dist/components/editor/plugins/mark-input-rule-gate.d.ts +2 -0
  98. package/dist/components/editor/plugins/markdown-kit.d.ts +19 -0
  99. package/dist/components/editor/plugins/math-base-kit.d.ts +9 -0
  100. package/dist/components/editor/plugins/math-kit.d.ts +9 -0
  101. package/dist/components/editor/plugins/media-base-kit.d.ts +25 -0
  102. package/dist/components/editor/plugins/media-kit.d.ts +38 -0
  103. package/dist/components/editor/plugins/mention-base-kit.d.ts +11 -0
  104. package/dist/components/editor/plugins/mention-kit.d.ts +11 -0
  105. package/dist/components/editor/plugins/mermaid-base-kit.d.ts +2 -0
  106. package/dist/components/editor/plugins/mermaid-kit.d.ts +3 -0
  107. package/dist/components/editor/plugins/mermaid-types.d.ts +14 -0
  108. package/dist/components/editor/plugins/shared/color-selector.d.ts +9 -0
  109. package/dist/components/editor/plugins/shared/component-popover.d.ts +12 -0
  110. package/dist/components/editor/plugins/slash-kit.d.ts +1 -0
  111. package/dist/components/editor/plugins/steps-base-kit.d.ts +3 -0
  112. package/dist/components/editor/plugins/steps-kit.d.ts +4 -0
  113. package/dist/components/editor/plugins/steps-types.d.ts +18 -0
  114. package/dist/components/editor/plugins/suggestion-base-kit.d.ts +32 -0
  115. package/dist/components/editor/plugins/suggestion-kit.d.ts +53 -0
  116. package/dist/components/editor/plugins/tabbed-code-block-base-kit.d.ts +32 -0
  117. package/dist/components/editor/plugins/tabbed-code-block-kit.d.ts +33 -0
  118. package/dist/components/editor/plugins/tabbed-code-block-types.d.ts +29 -0
  119. package/dist/components/editor/plugins/table-base-kit.d.ts +94 -0
  120. package/dist/components/editor/plugins/table-kit.d.ts +162 -0
  121. package/dist/components/editor/plugins/tabs-base-kit.d.ts +2 -0
  122. package/dist/components/editor/plugins/tabs-kit.d.ts +3 -0
  123. package/dist/components/editor/plugins/tabs-types.d.ts +14 -0
  124. package/dist/components/editor/plugins/text-substitution-input-rule-gate.d.ts +4 -0
  125. package/dist/components/editor/plugins/tiles-base-kit.d.ts +3 -0
  126. package/dist/components/editor/plugins/tiles-kit.d.ts +4 -0
  127. package/dist/components/editor/plugins/tiles-types.d.ts +16 -0
  128. package/dist/components/editor/plugins/toc-base-kit.d.ts +1 -0
  129. package/dist/components/editor/plugins/toc-kit.d.ts +5 -0
  130. package/dist/components/editor/plugins/todo-to-bullet-kit.d.ts +7 -0
  131. package/dist/components/editor/plugins/toggle-base-kit.d.ts +12 -0
  132. package/dist/components/editor/plugins/toggle-kit.d.ts +16 -0
  133. package/dist/components/editor/plugins/tooltip-base-kit.d.ts +2 -0
  134. package/dist/components/editor/plugins/tooltip-html.d.ts +27 -0
  135. package/dist/components/editor/plugins/tooltip-kit.d.ts +3 -0
  136. package/dist/components/editor/plugins/tooltip-types.d.ts +10 -0
  137. package/dist/components/editor/plugins/tree-base-kit.d.ts +2 -0
  138. package/dist/components/editor/plugins/tree-kit.d.ts +3 -0
  139. package/dist/components/editor/plugins/tree-types.d.ts +26 -0
  140. package/dist/components/editor/plugins/typed-conversion-options.d.ts +13 -0
  141. package/dist/components/editor/plugins/update-base-kit.d.ts +1 -0
  142. package/dist/components/editor/plugins/update-kit.d.ts +4 -0
  143. package/dist/components/editor/plugins/update-types.d.ts +19 -0
  144. package/dist/components/editor/plugins/web-address-text.d.ts +1 -0
  145. package/dist/components/editor/transforms.d.ts +8 -0
  146. package/dist/components/editor/use-chat.d.ts +3 -0
  147. package/dist/components/editor/use-chat.js +3315 -0
  148. package/dist/components/editor/use-typed-conversion-options.d.ts +3 -0
  149. package/dist/components/editor/version-history/chunk-node.d.ts +7 -0
  150. package/dist/components/editor/version-history/chunk-plugin.d.ts +6 -0
  151. package/dist/components/editor/version-history/collapse-blocks-without-diff.d.ts +4 -0
  152. package/dist/components/editor/version-history/diff-node.d.ts +9 -0
  153. package/dist/components/editor/version-history/diff-plate.d.ts +7 -0
  154. package/dist/components/editor/version-history/diff-plugin.d.ts +8 -0
  155. package/dist/components/editor/version-history/index.d.ts +9 -0
  156. package/dist/components/editor/version-history/index.js +19218 -0
  157. package/dist/components/editor/version-history/use-object-version.d.ts +1 -0
  158. package/dist/components/editor/version-history/use-reset-editor-on-change.d.ts +7 -0
  159. package/dist/components/editor/version-history/version-plate.d.ts +7 -0
  160. package/dist/components/editor/web-editor.d.ts +6 -0
  161. package/dist/components/editor/web-editor.js +27334 -0
  162. package/dist/context/editor-adapter-context.d.ts +13 -0
  163. package/dist/context/editor-adapter-context.js +124 -0
  164. package/dist/context/editor-adapter.d.ts +262 -0
  165. package/dist/context/editor-toc-context.d.ts +16 -0
  166. package/dist/context/heading-slug-context.d.ts +11 -0
  167. package/dist/context/link-resolution-context.d.ts +24 -0
  168. package/dist/context/link-resolution-store.d.ts +20 -0
  169. package/dist/context/portal-container.d.ts +7 -0
  170. package/dist/hooks/use-copy-to-clipboard.d.ts +10 -0
  171. package/dist/hooks/use-dark-mode.d.ts +1 -0
  172. package/dist/hooks/use-debounce-callback.d.ts +108 -0
  173. package/dist/hooks/use-debounce.d.ts +1 -0
  174. package/dist/hooks/use-is-touch-device.d.ts +1 -0
  175. package/dist/hooks/use-lock-scroll.d.ts +1 -0
  176. package/dist/hooks/use-media-query.d.ts +2 -0
  177. package/dist/hooks/use-mounted.d.ts +6 -0
  178. package/dist/hooks/use-on-click-outside.d.ts +26 -0
  179. package/dist/hooks/use-return-focus-to-editor-on-input-removal.d.ts +3 -0
  180. package/dist/hooks/use-shield-input-selection-from-editor.d.ts +3 -0
  181. package/dist/hooks/use-upload-file.d.ts +25 -0
  182. package/dist/hooks/use-upload-file.js +129 -0
  183. package/dist/lib/accepted-file-types.d.ts +1 -0
  184. package/dist/lib/block-features.d.ts +11 -0
  185. package/dist/lib/comment-mark-strip.d.ts +24 -0
  186. package/dist/lib/comment-mark-strip.js +56 -0
  187. package/dist/lib/download-file.d.ts +1 -0
  188. package/dist/lib/editor-element-path.d.ts +8 -0
  189. package/dist/lib/extract-headings.d.ts +13 -0
  190. package/dist/lib/extract-headings.js +79 -0
  191. package/dist/lib/file-size-limit.d.ts +7 -0
  192. package/dist/lib/html-serialize-hast.d.ts +18 -0
  193. package/dist/lib/html-serialize-rules.d.ts +15 -0
  194. package/dist/lib/html-serialize-utils.d.ts +24 -0
  195. package/dist/lib/html-serialize-utils.js +392 -0
  196. package/dist/lib/line-marking-context.d.ts +13 -0
  197. package/dist/lib/line-marking.d.ts +47 -0
  198. package/dist/lib/list-html.d.ts +30 -0
  199. package/dist/lib/markdown-joiner-transform.d.ts +31 -0
  200. package/dist/lib/markdown-utils.d.ts +4 -0
  201. package/dist/lib/markdown-utils.js +25314 -0
  202. package/dist/lib/mdx/mdx-archetype-rules.d.ts +2 -0
  203. package/dist/lib/mdx/mdx-attribute-codec.d.ts +23 -0
  204. package/dist/lib/mdx/mdx-color-rules.d.ts +2 -0
  205. package/dist/lib/mdx/mdx-component-rules.d.ts +2 -0
  206. package/dist/lib/mdx/mdx-mermaid-rules.d.ts +10 -0
  207. package/dist/lib/mdx/mdx-reference-rules.d.ts +11 -0
  208. package/dist/lib/mdx/mdx-round-trip.d.ts +3 -0
  209. package/dist/lib/mdx/mdx-round-trip.js +1397 -0
  210. package/dist/lib/mdx/mdx-rule-builder.d.ts +45 -0
  211. package/dist/lib/mdx/mdx-server-plugins.d.ts +8 -0
  212. package/dist/lib/mdx/mdx-tabbed-code-rules.d.ts +2 -0
  213. package/dist/lib/mdx/mdx-tabs-rules.d.ts +2 -0
  214. package/dist/lib/mdx/mdx-toggle-rules.d.ts +9 -0
  215. package/dist/lib/mdx/mdx-tree-rules.d.ts +2 -0
  216. package/dist/lib/media-html.d.ts +121 -0
  217. package/dist/lib/paragraph-html.d.ts +26 -0
  218. package/dist/lib/server-plugins.d.ts +199 -0
  219. package/dist/lib/utils.d.ts +3 -0
  220. package/dist/lib/utils.js +25 -0
  221. package/dist/lib/video-embeds.d.ts +9 -0
  222. package/dist/styles.css +6726 -0
  223. package/dist/types/editor.d.ts +161 -0
  224. package/dist/types/editor.js +77 -0
  225. package/dist/ui/accordion-group-node-static.d.ts +11 -0
  226. package/dist/ui/accordion-group-node.d.ts +10 -0
  227. package/dist/ui/ai-chat-editor.d.ts +4 -0
  228. package/dist/ui/ai-menu.d.ts +2 -0
  229. package/dist/ui/ai-node.d.ts +3 -0
  230. package/dist/ui/ai-toolbar-button.d.ts +3 -0
  231. package/dist/ui/alert-dialog.d.ts +20 -0
  232. package/dist/ui/api-doc/expandable-node-static.d.ts +4 -0
  233. package/dist/ui/api-doc/expandable-node.d.ts +3 -0
  234. package/dist/ui/api-doc/expandable-settings.d.ts +17 -0
  235. package/dist/ui/api-doc/panel-node-static.d.ts +3 -0
  236. package/dist/ui/api-doc/panel-node.d.ts +3 -0
  237. package/dist/ui/api-doc/response-field-item-node-static.d.ts +3 -0
  238. package/dist/ui/api-doc/response-field-item-node.d.ts +3 -0
  239. package/dist/ui/api-doc/response-field-node-static.d.ts +9 -0
  240. package/dist/ui/api-doc/response-field-node.d.ts +9 -0
  241. package/dist/ui/avatar.d.ts +16 -0
  242. package/dist/ui/badge-node-static.d.ts +3 -0
  243. package/dist/ui/badge-node.d.ts +3 -0
  244. package/dist/ui/badge-settings-options.d.ts +24 -0
  245. package/dist/ui/badge-settings.d.ts +19 -0
  246. package/dist/ui/badge.d.ts +9 -0
  247. package/dist/ui/banner-node-static.d.ts +4 -0
  248. package/dist/ui/banner-node.d.ts +3 -0
  249. package/dist/ui/block-context-menu.d.ts +8 -0
  250. package/dist/ui/block-discussion.d.ts +3 -0
  251. package/dist/ui/block-draggable.d.ts +2 -0
  252. package/dist/ui/block-list-static.d.ts +2 -0
  253. package/dist/ui/block-list.d.ts +2 -0
  254. package/dist/ui/block-menu.d.ts +167 -0
  255. package/dist/ui/block-selection.d.ts +5 -0
  256. package/dist/ui/block-suggestion.d.ts +17 -0
  257. package/dist/ui/blockquote-node-static.d.ts +2 -0
  258. package/dist/ui/blockquote-node.d.ts +2 -0
  259. package/dist/ui/button.d.ts +81 -0
  260. package/dist/ui/calendar.d.ts +5 -0
  261. package/dist/ui/callout-detail-settings.d.ts +15 -0
  262. package/dist/ui/callout-icon.d.ts +9 -0
  263. package/dist/ui/callout-node-static.d.ts +2 -0
  264. package/dist/ui/callout-node.d.ts +3 -0
  265. package/dist/ui/callout-settings.d.ts +19 -0
  266. package/dist/ui/callout-type-button.d.ts +9 -0
  267. package/dist/ui/caption.d.ts +72 -0
  268. package/dist/ui/card-element-actions.d.ts +7 -0
  269. package/dist/ui/card-icon-settings.d.ts +11 -0
  270. package/dist/ui/card-node-static.d.ts +3 -0
  271. package/dist/ui/card-node.d.ts +3 -0
  272. package/dist/ui/card-settings.d.ts +24 -0
  273. package/dist/ui/card-title-row.d.ts +14 -0
  274. package/dist/ui/checkbox.d.ts +4 -0
  275. package/dist/ui/code-block-line-marking-form.d.ts +9 -0
  276. package/dist/ui/code-block-line-marking-input.d.ts +8 -0
  277. package/dist/ui/code-block-line-marking-popover.d.ts +12 -0
  278. package/dist/ui/code-block-line-marking-state.d.ts +11 -0
  279. package/dist/ui/code-block-node-static.d.ts +10 -0
  280. package/dist/ui/code-block-node.d.ts +5 -0
  281. package/dist/ui/code-line-selection-toolbar.d.ts +10 -0
  282. package/dist/ui/code-line-wrapper.d.ts +22 -0
  283. package/dist/ui/code-node-static.d.ts +2 -0
  284. package/dist/ui/code-node.d.ts +2 -0
  285. package/dist/ui/collapsible.d.ts +6 -0
  286. package/dist/ui/color-copy-icon.d.ts +9 -0
  287. package/dist/ui/color-element-actions.d.ts +7 -0
  288. package/dist/ui/color-item-settings.d.ts +11 -0
  289. package/dist/ui/color-node-static.d.ts +3 -0
  290. package/dist/ui/color-node.d.ts +3 -0
  291. package/dist/ui/color-settings.d.ts +18 -0
  292. package/dist/ui/color-swatch-editable.d.ts +12 -0
  293. package/dist/ui/color-table-row-editable.d.ts +10 -0
  294. package/dist/ui/column-node-static.d.ts +4 -0
  295. package/dist/ui/column-node.d.ts +3 -0
  296. package/dist/ui/command.d.ts +25 -0
  297. package/dist/ui/comment-node-static.d.ts +3 -0
  298. package/dist/ui/comment-node.d.ts +3 -0
  299. package/dist/ui/comment-toolbar-button.d.ts +1 -0
  300. package/dist/ui/comment.d.ts +45 -0
  301. package/dist/ui/cursor-overlay.d.ts +4 -0
  302. package/dist/ui/date-node-static.d.ts +2 -0
  303. package/dist/ui/date-node.d.ts +2 -0
  304. package/dist/ui/dialog.d.ts +90 -0
  305. package/dist/ui/dropdown-menu.d.ts +35 -0
  306. package/dist/ui/editor-inspector-panel.d.ts +6 -0
  307. package/dist/ui/editor-static.d.ts +8 -0
  308. package/dist/ui/editor.d.ts +15 -0
  309. package/dist/ui/emoji-node.d.ts +3 -0
  310. package/dist/ui/emoji-toolbar-button.d.ts +16 -0
  311. package/dist/ui/equation-node-static.d.ts +4 -0
  312. package/dist/ui/equation-node.d.ts +5 -0
  313. package/dist/ui/equation-toolbar-button.d.ts +2 -0
  314. package/dist/ui/floating-discussion.d.ts +8 -0
  315. package/dist/ui/floating-toolbar-buttons.d.ts +1 -0
  316. package/dist/ui/floating-toolbar.d.ts +6 -0
  317. package/dist/ui/font-color-toolbar-button.d.ts +15 -0
  318. package/dist/ui/frame-node-static.d.ts +3 -0
  319. package/dist/ui/frame-node.d.ts +3 -0
  320. package/dist/ui/frame-settings.d.ts +19 -0
  321. package/dist/ui/ghost-text.d.ts +1 -0
  322. package/dist/ui/heading-node-static.d.ts +10 -0
  323. package/dist/ui/heading-node.d.ts +14 -0
  324. package/dist/ui/highlight-node-static.d.ts +2 -0
  325. package/dist/ui/highlight-node.d.ts +2 -0
  326. package/dist/ui/hover-card.d.ts +6 -0
  327. package/dist/ui/hr-node-static.d.ts +2 -0
  328. package/dist/ui/hr-node.d.ts +2 -0
  329. package/dist/ui/icon-node-static.d.ts +3 -0
  330. package/dist/ui/icon-node.d.ts +3 -0
  331. package/dist/ui/icon-picker.d.ts +16 -0
  332. package/dist/ui/icon-settings.d.ts +17 -0
  333. package/dist/ui/inline-combobox.d.ts +38 -0
  334. package/dist/ui/input.d.ts +7 -0
  335. package/dist/ui/kbd-node-static.d.ts +2 -0
  336. package/dist/ui/kbd-node.d.ts +2 -0
  337. package/dist/ui/label.d.ts +8 -0
  338. package/dist/ui/link-node-static.d.ts +11 -0
  339. package/dist/ui/link-node.d.ts +11 -0
  340. package/dist/ui/link-reference.d.ts +39 -0
  341. package/dist/ui/link-reference.js +84 -0
  342. package/dist/ui/link-search-panel.d.ts +5 -0
  343. package/dist/ui/link-toolbar-button.d.ts +3 -0
  344. package/dist/ui/link-toolbar-edit-command.d.ts +7 -0
  345. package/dist/ui/link-toolbar-shared.d.ts +18 -0
  346. package/dist/ui/link-toolbar.d.ts +1 -0
  347. package/dist/ui/mark-toolbar-button.d.ts +6 -0
  348. package/dist/ui/media-align-button.d.ts +5 -0
  349. package/dist/ui/media-audio-node-static.d.ts +3 -0
  350. package/dist/ui/media-audio-node.d.ts +2 -0
  351. package/dist/ui/media-card.d.ts +11 -0
  352. package/dist/ui/media-embed-node-static.d.ts +6 -0
  353. package/dist/ui/media-embed-node.d.ts +2 -0
  354. package/dist/ui/media-file-display.d.ts +11 -0
  355. package/dist/ui/media-file-mode-dropdown.d.ts +10 -0
  356. package/dist/ui/media-file-node-static.d.ts +3 -0
  357. package/dist/ui/media-file-node.d.ts +2 -0
  358. package/dist/ui/media-hint-icon-picker.d.ts +5 -0
  359. package/dist/ui/media-hint-settings.d.ts +2 -0
  360. package/dist/ui/media-image-lightbox.d.ts +17 -0
  361. package/dist/ui/media-image-node-static.d.ts +6 -0
  362. package/dist/ui/media-image-node.d.ts +7 -0
  363. package/dist/ui/media-placeholder-node.d.ts +3 -0
  364. package/dist/ui/media-preview-dialog.d.ts +12 -0
  365. package/dist/ui/media-toolbar.d.ts +3 -0
  366. package/dist/ui/media-upload-toast.d.ts +1 -0
  367. package/dist/ui/media-video-node-static.d.ts +6 -0
  368. package/dist/ui/media-video-node.d.ts +2 -0
  369. package/dist/ui/member-profile-card.d.ts +17 -0
  370. package/dist/ui/mention-document-element.d.ts +5 -0
  371. package/dist/ui/mention-document-hover-card.d.ts +17 -0
  372. package/dist/ui/mention-document-link.d.ts +13 -0
  373. package/dist/ui/mention-element.d.ts +5 -0
  374. package/dist/ui/mention-input-element.d.ts +2 -0
  375. package/dist/ui/mention-node-static.d.ts +7 -0
  376. package/dist/ui/mention-page-combobox-group.d.ts +8 -0
  377. package/dist/ui/mention-people-combobox-group.d.ts +8 -0
  378. package/dist/ui/menu.d.ts +103 -0
  379. package/dist/ui/mermaid-node-static.d.ts +4 -0
  380. package/dist/ui/mermaid-node.d.ts +3 -0
  381. package/dist/ui/more-toolbar-button.d.ts +3 -0
  382. package/dist/ui/paragraph-node-static.d.ts +2 -0
  383. package/dist/ui/paragraph-node.d.ts +2 -0
  384. package/dist/ui/popover.d.ts +11 -0
  385. package/dist/ui/progress.d.ts +3 -0
  386. package/dist/ui/resize-handle.d.ts +15 -0
  387. package/dist/ui/select.d.ts +13 -0
  388. package/dist/ui/separator.d.ts +8 -0
  389. package/dist/ui/slash-node.d.ts +20 -0
  390. package/dist/ui/smart-link-clipboard.d.ts +1 -0
  391. package/dist/ui/smart-link-copy-button.d.ts +6 -0
  392. package/dist/ui/smart-link-mode-dropdown.d.ts +9 -0
  393. package/dist/ui/smart-link-toolbar.d.ts +17 -0
  394. package/dist/ui/smart-link-view.d.ts +23 -0
  395. package/dist/ui/smart-link.d.ts +43 -0
  396. package/dist/ui/spinner.d.ts +7 -0
  397. package/dist/ui/step-node-static.d.ts +3 -0
  398. package/dist/ui/step-node.d.ts +3 -0
  399. package/dist/ui/step-settings.d.ts +19 -0
  400. package/dist/ui/steps-node-static.d.ts +10 -0
  401. package/dist/ui/steps-node.d.ts +10 -0
  402. package/dist/ui/suggestion-node-static.d.ts +3 -0
  403. package/dist/ui/suggestion-node.d.ts +6 -0
  404. package/dist/ui/suggestion-toolbar-button.d.ts +1 -0
  405. package/dist/ui/switch.d.ts +4 -0
  406. package/dist/ui/tabbed-code-block-actions.d.ts +24 -0
  407. package/dist/ui/tabbed-code-block-header.d.ts +23 -0
  408. package/dist/ui/tabbed-code-block-language-selector.d.ts +7 -0
  409. package/dist/ui/tabbed-code-block-languages.d.ts +6 -0
  410. package/dist/ui/tabbed-code-block-node-static.d.ts +4 -0
  411. package/dist/ui/tabbed-code-block-node.d.ts +4 -0
  412. package/dist/ui/tabbed-code-block-settings.d.ts +18 -0
  413. package/dist/ui/tabbed-code-block-sync.d.ts +10 -0
  414. package/dist/ui/tabbed-code-block-tab-dropdown.d.ts +10 -0
  415. package/dist/ui/tabbed-code-block-tab-strip.d.ts +27 -0
  416. package/dist/ui/tabbed-code-block-tab-trigger.d.ts +14 -0
  417. package/dist/ui/tabbed-code-block-utils.d.ts +9 -0
  418. package/dist/ui/table-icons.d.ts +7 -0
  419. package/dist/ui/table-node-static.d.ts +9 -0
  420. package/dist/ui/table-node.d.ts +9 -0
  421. package/dist/ui/tabs-node-static.d.ts +4 -0
  422. package/dist/ui/tabs-node.d.ts +3 -0
  423. package/dist/ui/tabs.d.ts +10 -0
  424. package/dist/ui/textarea.d.ts +10 -0
  425. package/dist/ui/tile-node-static.d.ts +3 -0
  426. package/dist/ui/tile-node.d.ts +3 -0
  427. package/dist/ui/tile-settings.d.ts +18 -0
  428. package/dist/ui/tiles-node-static.d.ts +3 -0
  429. package/dist/ui/tiles-node.d.ts +3 -0
  430. package/dist/ui/toc-node-static.d.ts +2 -0
  431. package/dist/ui/toc-node.d.ts +2 -0
  432. package/dist/ui/toc-sidebar.d.ts +6 -0
  433. package/dist/ui/toc-state-sync.d.ts +5 -0
  434. package/dist/ui/toggle-node-static.d.ts +3 -0
  435. package/dist/ui/toggle-node-views.d.ts +35 -0
  436. package/dist/ui/toggle-node.d.ts +3 -0
  437. package/dist/ui/toggle-settings.d.ts +23 -0
  438. package/dist/ui/toggle.d.ts +8 -0
  439. package/dist/ui/toolbar.d.ts +37 -0
  440. package/dist/ui/tooltip-node-static.d.ts +3 -0
  441. package/dist/ui/tooltip-node.d.ts +3 -0
  442. package/dist/ui/tooltip-preview-content.d.ts +6 -0
  443. package/dist/ui/tooltip-settings.d.ts +21 -0
  444. package/dist/ui/tooltip-toolbar-button.d.ts +3 -0
  445. package/dist/ui/tooltip.d.ts +19 -0
  446. package/dist/ui/tree-context-value.d.ts +22 -0
  447. package/dist/ui/tree-context.d.ts +32 -0
  448. package/dist/ui/tree-file-node-static.d.ts +8 -0
  449. package/dist/ui/tree-file-node.d.ts +11 -0
  450. package/dist/ui/tree-folder-node-static.d.ts +9 -0
  451. package/dist/ui/tree-folder-node.d.ts +12 -0
  452. package/dist/ui/tree-item-utils.d.ts +11 -0
  453. package/dist/ui/tree-items-list.d.ts +11 -0
  454. package/dist/ui/tree-node-events.d.ts +19 -0
  455. package/dist/ui/tree-node-state.d.ts +14 -0
  456. package/dist/ui/tree-node-static.d.ts +12 -0
  457. package/dist/ui/tree-node.d.ts +5 -0
  458. package/dist/ui/tree-root-actions.d.ts +11 -0
  459. package/dist/ui/tree-settings.d.ts +18 -0
  460. package/dist/ui/turn-into-toolbar-button.d.ts +129 -0
  461. package/dist/ui/update-display-tags.d.ts +5 -0
  462. package/dist/ui/update-node-static.d.ts +2 -0
  463. package/dist/ui/update-node.d.ts +3 -0
  464. package/dist/ui/update-rss-settings.d.ts +9 -0
  465. package/dist/ui/update-settings.d.ts +21 -0
  466. package/dist/ui/update-tags-settings.d.ts +8 -0
  467. package/dist/ui/updates-node-static.d.ts +2 -0
  468. package/dist/ui/updates-node.d.ts +2 -0
  469. package/dist/ui/use-member-profile.d.ts +22 -0
  470. package/dist/ui/use-placeholder-max-file-size.d.ts +3 -0
  471. package/dist/vendor/slate-yjs-core.d.ts +1 -0
  472. package/dist/vendor/slate-yjs-core.js +2 -0
  473. package/dist/vendor/y-protocols-awareness.d.ts +1 -0
  474. package/dist/vendor/y-protocols-awareness.js +2 -0
  475. package/dist/vendor/yjs.d.ts +1 -0
  476. package/dist/vendor/yjs.js +2 -0
  477. package/package.json +255 -4
@@ -0,0 +1,167 @@
1
+ import { type PlateEditor } from 'platejs/react';
2
+ import * as React from 'react';
3
+ import { type MenuContentProps, type MenuProps } from './menu';
4
+ export declare function BlockMenu({ id, animateZoom, children, getAnchorRect, open: openProp, placement, store, }: Pick<MenuProps, 'open' | 'placement' | 'store'> & Pick<MenuContentProps, 'animateZoom' | 'getAnchorRect'> & {
5
+ id?: string;
6
+ children?: React.ReactNode;
7
+ }): React.JSX.Element;
8
+ export declare const blockMenuItems: {
9
+ askAI: {
10
+ focusEditor: boolean;
11
+ icon: React.JSX.Element;
12
+ keywords: string[];
13
+ label: string;
14
+ shortcut: string;
15
+ value: string;
16
+ onSelect: ({ editor }: {
17
+ editor: PlateEditor;
18
+ }) => void;
19
+ };
20
+ caption: {
21
+ icon: React.JSX.Element;
22
+ keywords: string[];
23
+ label: string;
24
+ value: string;
25
+ onSelect: ({ editor }: {
26
+ editor: PlateEditor;
27
+ }) => void;
28
+ };
29
+ comment: {
30
+ icon: React.JSX.Element;
31
+ keywords: string[];
32
+ label: string;
33
+ shortcut: string;
34
+ value: string;
35
+ onSelect: ({ editor }: {
36
+ editor: PlateEditor;
37
+ }) => void;
38
+ };
39
+ delete: {
40
+ icon: React.JSX.Element;
41
+ keywords: string[];
42
+ label: string;
43
+ shortcut: string;
44
+ value: string;
45
+ onSelect: ({ editor }: {
46
+ editor: PlateEditor;
47
+ }) => void;
48
+ };
49
+ duplicate: {
50
+ focusEditor: boolean;
51
+ icon: React.JSX.Element;
52
+ keywords: string[];
53
+ label: string;
54
+ shortcut: string;
55
+ value: string;
56
+ onSelect: ({ editor }: {
57
+ editor: PlateEditor;
58
+ }) => void;
59
+ };
60
+ align: {
61
+ component: typeof AlignMenuItem;
62
+ filterItems: boolean;
63
+ icon: React.JSX.Element;
64
+ items: {
65
+ icon: React.JSX.Element;
66
+ label: string;
67
+ value: string;
68
+ }[];
69
+ label: string;
70
+ value: "align";
71
+ };
72
+ color: {
73
+ component: typeof ColorMenuItem;
74
+ filterItems: boolean;
75
+ icon: React.JSX.Element;
76
+ items: ({
77
+ group: "color";
78
+ items: {
79
+ label: string;
80
+ value: string;
81
+ }[];
82
+ label: string;
83
+ } | {
84
+ group: "background";
85
+ items: {
86
+ label: string;
87
+ value: string;
88
+ }[];
89
+ label: string;
90
+ })[];
91
+ keywords: string[];
92
+ label: string;
93
+ value: "color";
94
+ };
95
+ turn_into: {
96
+ component: typeof TurnIntoMenuItem;
97
+ filterItems: boolean;
98
+ icon: React.JSX.Element;
99
+ items: ({
100
+ icon: React.JSX.Element;
101
+ keywords: string[];
102
+ label: string;
103
+ value: "p";
104
+ } | {
105
+ icon: React.JSX.Element;
106
+ keywords: string[];
107
+ label: string;
108
+ value: "h1";
109
+ } | {
110
+ icon: React.JSX.Element;
111
+ keywords: string[];
112
+ label: string;
113
+ value: "h2";
114
+ } | {
115
+ icon: React.JSX.Element;
116
+ keywords: string[];
117
+ label: string;
118
+ value: "h3";
119
+ } | {
120
+ icon: React.JSX.Element;
121
+ keywords: string[];
122
+ label: string;
123
+ value: "todo";
124
+ } | {
125
+ icon: React.JSX.Element;
126
+ keywords: string[];
127
+ label: string;
128
+ value: "disc";
129
+ } | {
130
+ icon: React.JSX.Element;
131
+ keywords: string[];
132
+ label: string;
133
+ value: "decimal";
134
+ } | {
135
+ icon: React.JSX.Element;
136
+ keywords: string[];
137
+ label: string;
138
+ value: "toggle";
139
+ } | {
140
+ icon: React.JSX.Element;
141
+ keywords: string[];
142
+ label: string;
143
+ value: "code_block";
144
+ } | {
145
+ icon: React.JSX.Element;
146
+ keywords: string[];
147
+ label: string;
148
+ value: "blockquote";
149
+ } | {
150
+ icon: React.JSX.Element;
151
+ keywords: string[];
152
+ label: string;
153
+ value: "callout";
154
+ } | {
155
+ icon: React.JSX.Element;
156
+ label: string;
157
+ value: string;
158
+ keywords?: undefined;
159
+ })[];
160
+ label: string;
161
+ value: "turn_into";
162
+ };
163
+ };
164
+ declare function ColorMenuItem(): React.JSX.Element;
165
+ declare function AlignMenuItem(): React.JSX.Element;
166
+ declare function TurnIntoMenuItem(): React.JSX.Element;
167
+ export {};
@@ -0,0 +1,5 @@
1
+ import { type PlateElementProps } from 'platejs/react';
2
+ export declare const blockSelectionVariants: (props?: ({
3
+ active?: boolean | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare function BlockSelection(props: PlateElementProps): import("react").JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ import type { TResolvedSuggestion } from '@platejs/suggestion';
2
+ import { type NodeEntry, type Path, type TElement, type TSuggestionText } from 'platejs';
3
+ import React from 'react';
4
+ import { type TDiscussion } from '../components/editor/plugins/discussion-kit';
5
+ import { type TComment } from './comment';
6
+ export interface ResolvedSuggestion extends TResolvedSuggestion {
7
+ comments: TComment[];
8
+ }
9
+ export declare const BLOCK_SUGGESTION = "__block__";
10
+ export declare const TYPE_TEXT_MAP: Record<string, (node?: TElement) => string>;
11
+ export declare function BlockSuggestionCard({ idx, isLast, suggestion, }: {
12
+ idx: number;
13
+ isLast: boolean;
14
+ suggestion: ResolvedSuggestion;
15
+ }): React.JSX.Element;
16
+ export declare const useResolveSuggestion: (suggestionNodes: NodeEntry<TElement | TSuggestionText>[], blockPath: Path) => ResolvedSuggestion[];
17
+ export declare const isResolvedSuggestion: (suggestion: ResolvedSuggestion | TDiscussion) => suggestion is ResolvedSuggestion;
@@ -0,0 +1,2 @@
1
+ import { type SlateElementProps } from 'platejs/static';
2
+ export declare function BlockquoteElementStatic(props: SlateElementProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type PlateElementProps } from 'platejs/react';
2
+ export declare function BlockquoteElement(props: PlateElementProps): import("react").JSX.Element;
@@ -0,0 +1,81 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import type * as React from 'react';
3
+ import type { ComponentProps } from 'react';
4
+ export declare const buttonVariants: (props?: ({
5
+ active?: boolean | null | undefined;
6
+ disabled?: boolean | null | undefined;
7
+ focused?: boolean | null | undefined;
8
+ isMenu?: boolean | null | undefined;
9
+ size?: "default" | "none" | "lg" | "sm" | "icon" | "blockAction" | "iconSm" | "iconXs" | "md" | "menuAction" | "navAction" | "xs" | null | undefined;
10
+ truncate?: boolean | null | undefined;
11
+ variant?: "default" | "brand" | "nav" | "outline" | "radio" | "none" | "blockAction" | "menuAction" | "navAction" | "blockActionSecondary" | "destructive" | "ghost" | "ghost2" | "ghost3" | "ghostActive" | "primaryOutline" | "secondary" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ export type ButtonExtendedProps = {
14
+ active?: boolean;
15
+ asChild?: boolean;
16
+ icon?: React.ReactNode;
17
+ iconPlacement?: 'left' | 'right';
18
+ isPending?: boolean;
19
+ loading?: boolean;
20
+ loadingClassName?: string;
21
+ onToggleClick?: () => void;
22
+ } & {
23
+ children?: React.ReactNode;
24
+ label?: string;
25
+ } & VariantProps<typeof buttonVariants>;
26
+ export type ButtonProps = ComponentProps<typeof Button>;
27
+ export declare const Button: ({ shortcut, tooltip, tooltipContentProps, tooltipProps, tooltipTriggerProps, ...props }: {
28
+ shortcut?: React.ReactNode;
29
+ tooltip?: React.ReactNode;
30
+ tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
31
+ tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
32
+ tooltipTriggerProps?: React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>>;
33
+ } & {
34
+ active?: boolean;
35
+ asChild?: boolean;
36
+ icon?: React.ReactNode;
37
+ iconPlacement?: "left" | "right";
38
+ isPending?: boolean;
39
+ loading?: boolean;
40
+ loadingClassName?: string;
41
+ onToggleClick?: () => void;
42
+ } & {
43
+ children?: React.ReactNode;
44
+ label?: string;
45
+ } & VariantProps<(props?: ({
46
+ active?: boolean | null | undefined;
47
+ disabled?: boolean | null | undefined;
48
+ focused?: boolean | null | undefined;
49
+ isMenu?: boolean | null | undefined;
50
+ size?: "default" | "none" | "lg" | "sm" | "icon" | "blockAction" | "iconSm" | "iconXs" | "md" | "menuAction" | "navAction" | "xs" | null | undefined;
51
+ truncate?: boolean | null | undefined;
52
+ variant?: "default" | "brand" | "nav" | "outline" | "radio" | "none" | "blockAction" | "menuAction" | "navAction" | "blockActionSecondary" | "destructive" | "ghost" | "ghost2" | "ghost3" | "ghostActive" | "primaryOutline" | "secondary" | null | undefined;
53
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
54
+ export type LinkButtonProps = ComponentProps<typeof LinkButton>;
55
+ export declare const LinkButton: ({ shortcut, tooltip, tooltipContentProps, tooltipProps, tooltipTriggerProps, ...props }: {
56
+ shortcut?: React.ReactNode;
57
+ tooltip?: React.ReactNode;
58
+ tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
59
+ tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
60
+ tooltipTriggerProps?: React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>>;
61
+ } & {
62
+ active?: boolean;
63
+ asChild?: boolean;
64
+ icon?: React.ReactNode;
65
+ iconPlacement?: "left" | "right";
66
+ isPending?: boolean;
67
+ loading?: boolean;
68
+ loadingClassName?: string;
69
+ onToggleClick?: () => void;
70
+ } & {
71
+ children?: React.ReactNode;
72
+ label?: string;
73
+ } & VariantProps<(props?: ({
74
+ active?: boolean | null | undefined;
75
+ disabled?: boolean | null | undefined;
76
+ focused?: boolean | null | undefined;
77
+ isMenu?: boolean | null | undefined;
78
+ size?: "default" | "none" | "lg" | "sm" | "icon" | "blockAction" | "iconSm" | "iconXs" | "md" | "menuAction" | "navAction" | "xs" | null | undefined;
79
+ truncate?: boolean | null | undefined;
80
+ variant?: "default" | "brand" | "nav" | "outline" | "radio" | "none" | "blockAction" | "menuAction" | "navAction" | "blockActionSecondary" | "destructive" | "ghost" | "ghost2" | "ghost3" | "ghostActive" | "primaryOutline" | "secondary" | null | undefined;
81
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { type DayButton, DayPicker } from 'react-day-picker';
3
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, formatters, components, ...props }: React.ComponentProps<typeof DayPicker>): React.JSX.Element;
4
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
5
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,15 @@
1
+ import type * as React from 'react';
2
+ interface CalloutDetailSettingsProps {
3
+ colorValue: string;
4
+ emojiValue: string;
5
+ isColorValid: boolean;
6
+ onColorPickerChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
7
+ onColorTextBlur: () => void;
8
+ onColorTextChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
9
+ onEmojiBlur: () => void;
10
+ onEmojiChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
11
+ onEmojiKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
12
+ onClearEmoji: () => void;
13
+ }
14
+ export declare function CalloutDetailSettings({ colorValue, emojiValue, isColorValid, onColorPickerChange, onColorTextBlur, onColorTextChange, onEmojiBlur, onEmojiChange, onEmojiKeyDown, onClearEmoji, }: CalloutDetailSettingsProps): React.JSX.Element;
15
+ export {};
@@ -0,0 +1,9 @@
1
+ import type * as React from 'react';
2
+ import { type CalloutType } from '../components/editor/plugins/callout-types';
3
+ interface CalloutIconProps {
4
+ type: CalloutType;
5
+ customEmoji?: string;
6
+ className?: string;
7
+ }
8
+ export declare function CalloutIcon({ type, customEmoji, className }: CalloutIconProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { type SlateElementProps } from 'platejs/static';
2
+ export declare function CalloutElementStatic(props: SlateElementProps): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type PlateElementProps } from 'platejs/react';
2
+ import * as React from 'react';
3
+ export declare function CalloutElement(props: PlateElementProps): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ComponentProps } from 'react';
2
+ import * as React from 'react';
3
+ import { type CalloutType, type TCalloutElement } from '../components/editor/plugins/callout-types';
4
+ interface CalloutSettingsButtonProps extends Omit<ComponentProps<'button'>, 'onClick'> {
5
+ onClick?: () => void;
6
+ }
7
+ export declare function CalloutSettingsButton({ onClick, ...triggerProps }: CalloutSettingsButtonProps): React.JSX.Element;
8
+ type CalloutSettingsPanelProps = Omit<CalloutSettingsFormProps, 'layout'>;
9
+ export declare function CalloutSettingsPanel(props: CalloutSettingsPanelProps): React.JSX.Element;
10
+ type CalloutSettingsPopoverProps = Omit<CalloutSettingsFormProps, 'layout'>;
11
+ export declare function CalloutSettingsPopover(props: CalloutSettingsPopoverProps): React.JSX.Element;
12
+ interface CalloutSettingsFormProps {
13
+ initialCalloutType: CalloutType;
14
+ initialBackgroundColor: string;
15
+ initialCustomEmoji?: string;
16
+ updateElement: (updates: Partial<TCalloutElement>) => void;
17
+ layout?: 'panel' | 'popover';
18
+ }
19
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { type CalloutType } from '../components/editor/plugins/callout-types';
3
+ interface CalloutTypeButtonProps {
4
+ type: CalloutType;
5
+ selectedType: CalloutType;
6
+ onSelect: (type: CalloutType) => void;
7
+ }
8
+ export declare function CalloutTypeButton({ type, selectedType, onSelect }: CalloutTypeButtonProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,72 @@
1
+ import { Caption as CaptionPrimitive, CaptionTextarea as CaptionTextareaPrimitive } from '@platejs/caption/react';
2
+ import type { VariantProps } from 'class-variance-authority';
3
+ import type * as React from 'react';
4
+ declare const captionVariants: (props?: ({
5
+ align?: "left" | "right" | "center" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export declare function Caption({ align, className, ...props }: React.ComponentProps<typeof CaptionPrimitive> & VariantProps<typeof captionVariants>): React.JSX.Element;
8
+ export declare function CaptionTextarea(props: React.ComponentProps<typeof CaptionTextareaPrimitive>): React.JSX.Element;
9
+ export declare const CaptionButton: React.ForwardRefExoticComponent<{
10
+ as?: React.ElementType;
11
+ asChild?: boolean;
12
+ className?: string;
13
+ options?: undefined;
14
+ state?: any;
15
+ style?: React.CSSProperties;
16
+ setProps?: ((hookProps: {
17
+ onClick: () => void;
18
+ }) => Omit<{
19
+ shortcut?: React.ReactNode;
20
+ tooltip?: React.ReactNode;
21
+ tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
22
+ tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
23
+ tooltipTriggerProps?: React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>>;
24
+ } & {
25
+ active?: boolean;
26
+ asChild?: boolean;
27
+ icon?: React.ReactNode;
28
+ iconPlacement?: "left" | "right";
29
+ isPending?: boolean;
30
+ loading?: boolean;
31
+ loadingClassName?: string;
32
+ onToggleClick?: () => void;
33
+ } & {
34
+ children?: React.ReactNode;
35
+ label?: string;
36
+ } & VariantProps<(props?: ({
37
+ active?: boolean | null | undefined;
38
+ disabled?: boolean | null | undefined;
39
+ focused?: boolean | null | undefined;
40
+ isMenu?: boolean | null | undefined;
41
+ size?: "default" | "none" | "lg" | "sm" | "icon" | "blockAction" | "iconSm" | "iconXs" | "md" | "menuAction" | "navAction" | "xs" | null | undefined;
42
+ truncate?: boolean | null | undefined;
43
+ variant?: "default" | "brand" | "nav" | "outline" | "radio" | "none" | "blockAction" | "menuAction" | "navAction" | "blockActionSecondary" | "destructive" | "ghost" | "ghost2" | "ghost3" | "ghostActive" | "primaryOutline" | "secondary" | null | undefined;
44
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref">) | undefined;
45
+ } & Omit<{
46
+ shortcut?: React.ReactNode;
47
+ tooltip?: React.ReactNode;
48
+ tooltipContentProps?: Omit<React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>>>, "children">;
49
+ tooltipProps?: Omit<React.ComponentPropsWithoutRef<React.FC<import("@radix-ui/react-tooltip").TooltipProps>>, "children">;
50
+ tooltipTriggerProps?: React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<import("@radix-ui/react-tooltip").TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>>;
51
+ } & {
52
+ active?: boolean;
53
+ asChild?: boolean;
54
+ icon?: React.ReactNode;
55
+ iconPlacement?: "left" | "right";
56
+ isPending?: boolean;
57
+ loading?: boolean;
58
+ loadingClassName?: string;
59
+ onToggleClick?: () => void;
60
+ } & {
61
+ children?: React.ReactNode;
62
+ label?: string;
63
+ } & VariantProps<(props?: ({
64
+ active?: boolean | null | undefined;
65
+ disabled?: boolean | null | undefined;
66
+ focused?: boolean | null | undefined;
67
+ isMenu?: boolean | null | undefined;
68
+ size?: "default" | "none" | "lg" | "sm" | "icon" | "blockAction" | "iconSm" | "iconXs" | "md" | "menuAction" | "navAction" | "xs" | null | undefined;
69
+ truncate?: boolean | null | undefined;
70
+ variant?: "default" | "brand" | "nav" | "outline" | "radio" | "none" | "blockAction" | "menuAction" | "navAction" | "blockActionSecondary" | "destructive" | "ghost" | "ghost2" | "ghost3" | "ghostActive" | "primaryOutline" | "secondary" | null | undefined;
71
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<any>>;
72
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ interface CardElementActionsProps {
3
+ readOnly: boolean;
4
+ settingsControl: ReactNode;
5
+ }
6
+ export declare function CardElementActions({ readOnly, settingsControl }: CardElementActionsProps): import("react").JSX.Element | null;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { IconName } from 'lucide-react/dynamic';
2
+ import * as React from 'react';
3
+ import type { TCardElement } from '../components/editor/plugins/card-types';
4
+ interface CardIconSettingsProps {
5
+ initialIcon: IconName | undefined;
6
+ initialColor: string;
7
+ inputClassName: string;
8
+ updateElement: (updates: Partial<TCardElement>) => void;
9
+ }
10
+ export declare function CardIconSettings({ initialIcon, initialColor, inputClassName, updateElement }: CardIconSettingsProps): React.JSX.Element;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type SlateElementProps } from 'platejs/static';
2
+ import type { TCardElement } from '../components/editor/plugins/card-types';
3
+ export declare function CardElementStatic(props: SlateElementProps<TCardElement>): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type PlateElementProps } from 'platejs/react';
2
+ import * as React from 'react';
3
+ export declare function CardElement(props: PlateElementProps): React.JSX.Element;
@@ -0,0 +1,24 @@
1
+ import type { IconName } from 'lucide-react/dynamic';
2
+ import type { ComponentProps } from 'react';
3
+ import * as React from 'react';
4
+ import type { TCardElement } from '../components/editor/plugins/card-types';
5
+ interface CardSettingsButtonProps extends Omit<ComponentProps<'button'>, 'onClick'> {
6
+ onClick?: () => void;
7
+ }
8
+ export declare function CardSettingsButton({ onClick, ...triggerProps }: CardSettingsButtonProps): React.JSX.Element;
9
+ type CardSettingsPanelProps = Omit<CardSettingsFormProps, 'layout'>;
10
+ export declare function CardSettingsPanel(props: CardSettingsPanelProps): React.JSX.Element;
11
+ type CardSettingsPopoverProps = Omit<CardSettingsFormProps, 'layout'>;
12
+ export declare function CardSettingsPopover(props: CardSettingsPopoverProps): React.JSX.Element;
13
+ interface CardSettingsFormProps {
14
+ initialIcon: IconName | undefined;
15
+ initialHref: string;
16
+ initialImg: string;
17
+ initialCta: string;
18
+ initialColor: string;
19
+ initialArrow: boolean;
20
+ initialHorizontal: boolean;
21
+ updateElement: (updates: Partial<TCardElement>) => void;
22
+ layout?: 'popover' | 'panel';
23
+ }
24
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { ChangeEvent, KeyboardEvent, RefObject } from 'react';
2
+ interface CardTitleRowProps {
3
+ isEditing: boolean;
4
+ title: string;
5
+ titleValue: string;
6
+ readOnly: boolean;
7
+ inputRef: RefObject<HTMLInputElement | null>;
8
+ onTitleChange: (event: ChangeEvent<HTMLInputElement>) => void;
9
+ onTitleBlur: () => void;
10
+ onTitleKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
11
+ onStartEditing: () => void;
12
+ }
13
+ export declare function CardTitleRow({ isEditing, title, titleValue, readOnly, inputRef, onTitleChange, onTitleBlur, onTitleKeyDown, onStartEditing, }: CardTitleRowProps): import("react").JSX.Element;
14
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Checkbox as CheckboxPrimitive } from 'radix-ui';
2
+ import type * as React from 'react';
3
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
4
+ export { Checkbox };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ interface CodeBlockLineMarkingFormProps {
3
+ lineMarkingMeta: string | undefined;
4
+ onLineMarkingMetaChange: (meta: string | undefined) => void;
5
+ onEnterSelectMode?: () => void;
6
+ onDone?: () => void;
7
+ }
8
+ export declare function CodeBlockLineMarkingForm({ lineMarkingMeta, onLineMarkingMetaChange, onEnterSelectMode, onDone, }: CodeBlockLineMarkingFormProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as React from 'react';
2
+ interface LineMarkingInputProps {
3
+ label: string;
4
+ value: string;
5
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
6
+ }
7
+ export declare function LineMarkingInput({ label, value, onChange }: LineMarkingInputProps): React.JSX.Element;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ interface CodeBlockLineMarkingControlProps {
3
+ lineMarkingMeta: string | undefined;
4
+ onLineMarkingMetaChange: (meta: string | undefined) => void;
5
+ inspectorPanelId: string;
6
+ inspectorTitle: string;
7
+ inspectorSubtitle?: string;
8
+ onEnterSelectMode?: () => void;
9
+ className?: string;
10
+ }
11
+ export declare function CodeBlockLineMarkingControl({ lineMarkingMeta, onLineMarkingMetaChange, inspectorPanelId, inspectorTitle, inspectorSubtitle, onEnterSelectMode, className, }: CodeBlockLineMarkingControlProps): React.JSX.Element;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ export type LineMarkingStyle = 'highlight' | 'diff';
2
+ export interface LineMarkingFormState {
3
+ style: LineMarkingStyle;
4
+ highlightInput: string;
5
+ addInput: string;
6
+ removeInput: string;
7
+ }
8
+ export declare const isLineMarkingStyle: (value: string) => value is LineMarkingStyle;
9
+ export declare const getInitialLineMarkingFormState: (lineMarkingMeta: string | undefined) => LineMarkingFormState;
10
+ export declare const createHighlightLineMarkingMeta: (input: string) => string | undefined;
11
+ export declare const createDiffLineMarkingMeta: (addInput: string, removeInput: string) => string | undefined;
@@ -0,0 +1,10 @@
1
+ import { type TCodeBlockElement } from 'platejs';
2
+ import { type SlateElementProps, type SlateLeafProps } from 'platejs/static';
3
+ import * as React from 'react';
4
+ interface TCodeBlockElementWithMarking extends TCodeBlockElement {
5
+ lineMarkingMeta?: string;
6
+ }
7
+ export declare function CodeBlockElementStatic(props: SlateElementProps<TCodeBlockElementWithMarking>): React.JSX.Element;
8
+ export declare function CodeLineElementStatic(props: SlateElementProps): React.JSX.Element;
9
+ export declare function CodeSyntaxLeafStatic(props: SlateLeafProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ import { type PlateElementProps, type PlateLeafProps } from 'platejs/react';
2
+ import * as React from 'react';
3
+ export declare function CodeBlockElement(props: PlateElementProps): React.JSX.Element;
4
+ export declare function CodeLineElement(props: PlateElementProps): React.JSX.Element;
5
+ export declare function CodeSyntaxLeaf(props: PlateLeafProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { LineMarkType } from '../lib/line-marking';
2
+ interface CodeLineSelectionToolbarProps {
3
+ selectedLines: Set<number>;
4
+ onMarkLines: (type: LineMarkType) => void;
5
+ onClearSelection: () => void;
6
+ onExitSelectMode: () => void;
7
+ className?: string;
8
+ }
9
+ export declare function CodeLineSelectionToolbar({ selectedLines, onMarkLines, onClearSelection, onExitSelectMode, className, }: CodeLineSelectionToolbarProps): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,22 @@
1
+ import type * as React from 'react';
2
+ import type { LineMarkType } from '../lib/line-marking';
3
+ interface CodeLineWrapperProps {
4
+ children: React.ReactNode;
5
+ lineIndex: number;
6
+ markType?: LineMarkType;
7
+ showDiffPrefix?: boolean;
8
+ isSelectMode?: boolean;
9
+ isSelected?: boolean;
10
+ onLineClick?: (index: number) => void;
11
+ showLineNumbers?: boolean;
12
+ }
13
+ export declare function CodeLineWrapper({ children, lineIndex, markType, showDiffPrefix, isSelectMode, isSelected, onLineClick, showLineNumbers, }: CodeLineWrapperProps): React.JSX.Element;
14
+ interface CodeLineWrapperStaticProps {
15
+ children: React.ReactNode;
16
+ lineIndex: number;
17
+ markType?: LineMarkType;
18
+ showDiffPrefix?: boolean;
19
+ showLineNumbers?: boolean;
20
+ }
21
+ export declare function CodeLineWrapperStatic({ children, lineIndex, markType, showDiffPrefix, showLineNumbers, }: CodeLineWrapperStaticProps): React.JSX.Element;
22
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { SlateLeafProps } from 'platejs/static';
2
+ export declare function CodeLeafStatic(props: SlateLeafProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type PlateLeafProps } from 'platejs/react';
2
+ export declare function CodeLeaf(props: PlateLeafProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
2
+ import type * as React from 'react';
3
+ declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): React.JSX.Element;
4
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): React.JSX.Element;
5
+ declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): React.JSX.Element;
6
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,9 @@
1
+ import type * as React from 'react';
2
+ interface AnimatedCopyIconProps {
3
+ isCopied: boolean;
4
+ size?: 'sm' | 'md';
5
+ variant?: 'swatch' | 'cell';
6
+ onClick?: (event: React.MouseEvent) => void;
7
+ }
8
+ export declare function AnimatedCopyIcon({ isCopied, size, variant, onClick }: AnimatedCopyIconProps): React.JSX.Element;
9
+ export {};