@domternal/core 0.5.0 → 0.5.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 (386) hide show
  1. package/README.md +1 -1
  2. package/dist/CanChecker.d.ts +79 -0
  3. package/dist/CanChecker.d.ts.map +1 -0
  4. package/dist/CanChecker.test.d.ts +2 -0
  5. package/dist/CanChecker.test.d.ts.map +1 -0
  6. package/dist/ChainBuilder.d.ts +119 -0
  7. package/dist/ChainBuilder.d.ts.map +1 -0
  8. package/dist/ChainBuilder.test.d.ts +2 -0
  9. package/dist/ChainBuilder.test.d.ts.map +1 -0
  10. package/dist/CommandManager.d.ts +86 -0
  11. package/dist/CommandManager.d.ts.map +1 -0
  12. package/dist/CommandManager.test.d.ts +2 -0
  13. package/dist/CommandManager.test.d.ts.map +1 -0
  14. package/dist/Editor.d.ts +262 -0
  15. package/dist/Editor.d.ts.map +1 -0
  16. package/dist/Editor.test.d.ts +2 -0
  17. package/dist/Editor.test.d.ts.map +1 -0
  18. package/dist/EventEmitter.d.ts +57 -0
  19. package/dist/EventEmitter.d.ts.map +1 -0
  20. package/dist/EventEmitter.test.d.ts +2 -0
  21. package/dist/EventEmitter.test.d.ts.map +1 -0
  22. package/dist/Extension.d.ts +171 -0
  23. package/dist/Extension.d.ts.map +1 -0
  24. package/dist/Extension.test.d.ts +2 -0
  25. package/dist/Extension.test.d.ts.map +1 -0
  26. package/dist/ExtensionManager.d.ts +283 -0
  27. package/dist/ExtensionManager.d.ts.map +1 -0
  28. package/dist/ExtensionManager.test.d.ts +2 -0
  29. package/dist/ExtensionManager.test.d.ts.map +1 -0
  30. package/dist/Mark.d.ts +164 -0
  31. package/dist/Mark.d.ts.map +1 -0
  32. package/dist/Mark.test.d.ts +5 -0
  33. package/dist/Mark.test.d.ts.map +1 -0
  34. package/dist/Node.d.ts +153 -0
  35. package/dist/Node.d.ts.map +1 -0
  36. package/dist/Node.test.d.ts +2 -0
  37. package/dist/Node.test.d.ts.map +1 -0
  38. package/dist/ToolbarController.d.ts +169 -0
  39. package/dist/ToolbarController.d.ts.map +1 -0
  40. package/dist/ToolbarController.test.d.ts +2 -0
  41. package/dist/ToolbarController.test.d.ts.map +1 -0
  42. package/dist/commandPropsBuilder.d.ts +70 -0
  43. package/dist/commandPropsBuilder.d.ts.map +1 -0
  44. package/dist/commandPropsBuilder.test.d.ts +2 -0
  45. package/dist/commandPropsBuilder.test.d.ts.map +1 -0
  46. package/dist/commands/attributeCommands.d.ts +24 -0
  47. package/dist/commands/attributeCommands.d.ts.map +1 -0
  48. package/dist/commands/attributeCommands.test.d.ts +2 -0
  49. package/dist/commands/attributeCommands.test.d.ts.map +1 -0
  50. package/dist/commands/builtIn.test.d.ts +2 -0
  51. package/dist/commands/builtIn.test.d.ts.map +1 -0
  52. package/dist/commands/contentCommands.d.ts +52 -0
  53. package/dist/commands/contentCommands.d.ts.map +1 -0
  54. package/dist/commands/contentCommands.test.d.ts +2 -0
  55. package/dist/commands/contentCommands.test.d.ts.map +1 -0
  56. package/dist/commands/index.d.ts +43 -0
  57. package/dist/commands/index.d.ts.map +1 -0
  58. package/dist/commands/listCommands.d.ts +15 -0
  59. package/dist/commands/listCommands.d.ts.map +1 -0
  60. package/dist/commands/listCommands.test.d.ts +2 -0
  61. package/dist/commands/listCommands.test.d.ts.map +1 -0
  62. package/dist/commands/markCommands.d.ts +40 -0
  63. package/dist/commands/markCommands.d.ts.map +1 -0
  64. package/dist/commands/markCommands.test.d.ts +2 -0
  65. package/dist/commands/markCommands.test.d.ts.map +1 -0
  66. package/dist/commands/nodeCommands.d.ts +53 -0
  67. package/dist/commands/nodeCommands.d.ts.map +1 -0
  68. package/dist/commands/nodeCommands.test.d.ts +2 -0
  69. package/dist/commands/nodeCommands.test.d.ts.map +1 -0
  70. package/dist/commands/selectionCommands.d.ts +37 -0
  71. package/dist/commands/selectionCommands.d.ts.map +1 -0
  72. package/dist/commands/selectionCommands.test.d.ts +2 -0
  73. package/dist/commands/selectionCommands.test.d.ts.map +1 -0
  74. package/dist/extensions/BaseKeymap.d.ts +36 -0
  75. package/dist/extensions/BaseKeymap.d.ts.map +1 -0
  76. package/dist/extensions/BaseKeymap.test.d.ts +2 -0
  77. package/dist/extensions/BaseKeymap.test.d.ts.map +1 -0
  78. package/dist/extensions/BubbleMenu.d.ts +85 -0
  79. package/dist/extensions/BubbleMenu.d.ts.map +1 -0
  80. package/dist/extensions/BubbleMenu.test.d.ts +2 -0
  81. package/dist/extensions/BubbleMenu.test.d.ts.map +1 -0
  82. package/dist/extensions/CharacterCount.d.ts +60 -0
  83. package/dist/extensions/CharacterCount.d.ts.map +1 -0
  84. package/dist/extensions/CharacterCount.test.d.ts +2 -0
  85. package/dist/extensions/CharacterCount.test.d.ts.map +1 -0
  86. package/dist/extensions/ClearFormatting.d.ts +25 -0
  87. package/dist/extensions/ClearFormatting.d.ts.map +1 -0
  88. package/dist/extensions/ClearFormatting.test.d.ts +2 -0
  89. package/dist/extensions/ClearFormatting.test.d.ts.map +1 -0
  90. package/dist/extensions/Dropcursor.d.ts +20 -0
  91. package/dist/extensions/Dropcursor.d.ts.map +1 -0
  92. package/dist/extensions/Dropcursor.test.d.ts +2 -0
  93. package/dist/extensions/Dropcursor.test.d.ts.map +1 -0
  94. package/dist/extensions/FloatingMenu.d.ts +74 -0
  95. package/dist/extensions/FloatingMenu.d.ts.map +1 -0
  96. package/dist/extensions/FloatingMenu.test.d.ts +2 -0
  97. package/dist/extensions/FloatingMenu.test.d.ts.map +1 -0
  98. package/dist/extensions/Focus.d.ts +26 -0
  99. package/dist/extensions/Focus.d.ts.map +1 -0
  100. package/dist/extensions/Focus.test.d.ts +2 -0
  101. package/dist/extensions/Focus.test.d.ts.map +1 -0
  102. package/dist/extensions/FontFamily.d.ts +41 -0
  103. package/dist/extensions/FontFamily.d.ts.map +1 -0
  104. package/dist/extensions/FontFamily.test.d.ts +2 -0
  105. package/dist/extensions/FontFamily.test.d.ts.map +1 -0
  106. package/dist/extensions/FontSize.d.ts +46 -0
  107. package/dist/extensions/FontSize.d.ts.map +1 -0
  108. package/dist/extensions/FontSize.test.d.ts +2 -0
  109. package/dist/extensions/FontSize.test.d.ts.map +1 -0
  110. package/dist/extensions/Gapcursor.d.ts +3 -0
  111. package/dist/extensions/Gapcursor.d.ts.map +1 -0
  112. package/dist/extensions/Gapcursor.test.d.ts +2 -0
  113. package/dist/extensions/Gapcursor.test.d.ts.map +1 -0
  114. package/dist/extensions/Highlight.d.ts +61 -0
  115. package/dist/extensions/Highlight.d.ts.map +1 -0
  116. package/dist/extensions/Highlight.test.d.ts +2 -0
  117. package/dist/extensions/Highlight.test.d.ts.map +1 -0
  118. package/dist/extensions/History.d.ts +22 -0
  119. package/dist/extensions/History.d.ts.map +1 -0
  120. package/dist/extensions/History.test.d.ts +2 -0
  121. package/dist/extensions/History.test.d.ts.map +1 -0
  122. package/dist/extensions/InvisibleChars.d.ts +86 -0
  123. package/dist/extensions/InvisibleChars.d.ts.map +1 -0
  124. package/dist/extensions/InvisibleChars.test.d.ts +2 -0
  125. package/dist/extensions/InvisibleChars.test.d.ts.map +1 -0
  126. package/dist/extensions/LineHeight.d.ts +50 -0
  127. package/dist/extensions/LineHeight.d.ts.map +1 -0
  128. package/dist/extensions/LineHeight.test.d.ts +2 -0
  129. package/dist/extensions/LineHeight.test.d.ts.map +1 -0
  130. package/dist/extensions/LinkPopover.d.ts +10 -0
  131. package/dist/extensions/LinkPopover.d.ts.map +1 -0
  132. package/dist/extensions/ListKeymap.d.ts +10 -0
  133. package/dist/extensions/ListKeymap.d.ts.map +1 -0
  134. package/dist/extensions/ListKeymap.test.d.ts +2 -0
  135. package/dist/extensions/ListKeymap.test.d.ts.map +1 -0
  136. package/dist/extensions/Placeholder.d.ts +47 -0
  137. package/dist/extensions/Placeholder.d.ts.map +1 -0
  138. package/dist/extensions/Placeholder.test.d.ts +2 -0
  139. package/dist/extensions/Placeholder.test.d.ts.map +1 -0
  140. package/dist/extensions/Selection.d.ts +71 -0
  141. package/dist/extensions/Selection.d.ts.map +1 -0
  142. package/dist/extensions/Selection.test.d.ts +2 -0
  143. package/dist/extensions/Selection.test.d.ts.map +1 -0
  144. package/dist/extensions/SelectionDecoration.d.ts +18 -0
  145. package/dist/extensions/SelectionDecoration.d.ts.map +1 -0
  146. package/dist/extensions/SelectionDecoration.test.d.ts +2 -0
  147. package/dist/extensions/SelectionDecoration.test.d.ts.map +1 -0
  148. package/dist/extensions/StarterKit.d.ts +144 -0
  149. package/dist/extensions/StarterKit.d.ts.map +1 -0
  150. package/dist/extensions/StarterKit.test.d.ts +2 -0
  151. package/dist/extensions/StarterKit.test.d.ts.map +1 -0
  152. package/dist/extensions/TextAlign.d.ts +32 -0
  153. package/dist/extensions/TextAlign.d.ts.map +1 -0
  154. package/dist/extensions/TextAlign.test.d.ts +2 -0
  155. package/dist/extensions/TextAlign.test.d.ts.map +1 -0
  156. package/dist/extensions/TextColor.d.ts +55 -0
  157. package/dist/extensions/TextColor.d.ts.map +1 -0
  158. package/dist/extensions/TextColor.test.d.ts +2 -0
  159. package/dist/extensions/TextColor.test.d.ts.map +1 -0
  160. package/dist/extensions/TrailingNode.d.ts +16 -0
  161. package/dist/extensions/TrailingNode.d.ts.map +1 -0
  162. package/dist/extensions/TrailingNode.test.d.ts +2 -0
  163. package/dist/extensions/TrailingNode.test.d.ts.map +1 -0
  164. package/dist/extensions/Typography.d.ts +65 -0
  165. package/dist/extensions/Typography.d.ts.map +1 -0
  166. package/dist/extensions/Typography.test.d.ts +2 -0
  167. package/dist/extensions/Typography.test.d.ts.map +1 -0
  168. package/dist/extensions/UniqueID.d.ts +48 -0
  169. package/dist/extensions/UniqueID.d.ts.map +1 -0
  170. package/dist/extensions/UniqueID.test.d.ts +2 -0
  171. package/dist/extensions/UniqueID.test.d.ts.map +1 -0
  172. package/dist/extensions/index.d.ts +29 -0
  173. package/dist/extensions/index.d.ts.map +1 -0
  174. package/dist/extensions/isActive-markExclusion.test.d.ts +2 -0
  175. package/dist/extensions/isActive-markExclusion.test.d.ts.map +1 -0
  176. package/dist/helpers/callOrReturn.d.ts +30 -0
  177. package/dist/helpers/callOrReturn.d.ts.map +1 -0
  178. package/dist/helpers/callOrReturn.test.d.ts +2 -0
  179. package/dist/helpers/callOrReturn.test.d.ts.map +1 -0
  180. package/dist/helpers/createDocument.d.ts +48 -0
  181. package/dist/helpers/createDocument.d.ts.map +1 -0
  182. package/dist/helpers/createDocument.test.d.ts +2 -0
  183. package/dist/helpers/createDocument.test.d.ts.map +1 -0
  184. package/dist/helpers/defaultBlockAt.d.ts +15 -0
  185. package/dist/helpers/defaultBlockAt.d.ts.map +1 -0
  186. package/dist/helpers/defaultBlockAt.test.d.ts +2 -0
  187. package/dist/helpers/defaultBlockAt.test.d.ts.map +1 -0
  188. package/dist/helpers/findChildren.d.ts +13 -0
  189. package/dist/helpers/findChildren.d.ts.map +1 -0
  190. package/dist/helpers/findChildren.test.d.ts +2 -0
  191. package/dist/helpers/findChildren.test.d.ts.map +1 -0
  192. package/dist/helpers/findParentNode.d.ts +21 -0
  193. package/dist/helpers/findParentNode.d.ts.map +1 -0
  194. package/dist/helpers/findParentNode.test.d.ts +2 -0
  195. package/dist/helpers/findParentNode.test.d.ts.map +1 -0
  196. package/dist/helpers/getMarkRange.d.ts +17 -0
  197. package/dist/helpers/getMarkRange.d.ts.map +1 -0
  198. package/dist/helpers/getMarkRange.test.d.ts +2 -0
  199. package/dist/helpers/getMarkRange.test.d.ts.map +1 -0
  200. package/dist/helpers/index.d.ts +18 -0
  201. package/dist/helpers/index.d.ts.map +1 -0
  202. package/dist/helpers/inputRulesPlugin.d.ts +26 -0
  203. package/dist/helpers/inputRulesPlugin.d.ts.map +1 -0
  204. package/dist/helpers/isNodeEmpty.d.ts +52 -0
  205. package/dist/helpers/isNodeEmpty.d.ts.map +1 -0
  206. package/dist/helpers/isNodeEmpty.test.d.ts +2 -0
  207. package/dist/helpers/isNodeEmpty.test.d.ts.map +1 -0
  208. package/dist/helpers/isValidUrl.d.ts +31 -0
  209. package/dist/helpers/isValidUrl.d.ts.map +1 -0
  210. package/dist/helpers/isValidUrl.test.d.ts +2 -0
  211. package/dist/helpers/isValidUrl.test.d.ts.map +1 -0
  212. package/dist/helpers/markInputRule.d.ts +88 -0
  213. package/dist/helpers/markInputRule.d.ts.map +1 -0
  214. package/dist/helpers/markInputRule.test.d.ts +2 -0
  215. package/dist/helpers/markInputRule.test.d.ts.map +1 -0
  216. package/dist/helpers/nodeInputRule.d.ts +41 -0
  217. package/dist/helpers/nodeInputRule.d.ts.map +1 -0
  218. package/dist/helpers/normalizeColor.d.ts +7 -0
  219. package/dist/helpers/normalizeColor.d.ts.map +1 -0
  220. package/dist/helpers/normalizeColor.test.d.ts +2 -0
  221. package/dist/helpers/normalizeColor.test.d.ts.map +1 -0
  222. package/dist/helpers/specBuilder.d.ts +28 -0
  223. package/dist/helpers/specBuilder.d.ts.map +1 -0
  224. package/dist/helpers/specBuilder.test.d.ts +2 -0
  225. package/dist/helpers/specBuilder.test.d.ts.map +1 -0
  226. package/dist/helpers/ssr.d.ts +80 -0
  227. package/dist/helpers/ssr.d.ts.map +1 -0
  228. package/dist/helpers/ssr.test.d.ts +2 -0
  229. package/dist/helpers/ssr.test.d.ts.map +1 -0
  230. package/dist/helpers/textInputRule.d.ts +34 -0
  231. package/dist/helpers/textInputRule.d.ts.map +1 -0
  232. package/dist/helpers/textblockTypeInputRule.d.ts +41 -0
  233. package/dist/helpers/textblockTypeInputRule.d.ts.map +1 -0
  234. package/dist/helpers/wrappingInputRule.d.ts +66 -0
  235. package/dist/helpers/wrappingInputRule.d.ts.map +1 -0
  236. package/dist/icons/index.d.ts +2 -0
  237. package/dist/icons/index.d.ts.map +1 -0
  238. package/dist/icons/phosphor.d.ts +3 -0
  239. package/dist/icons/phosphor.d.ts.map +1 -0
  240. package/dist/index.cjs +1 -1
  241. package/dist/index.cjs.map +1 -1
  242. package/dist/index.d.ts +23 -5844
  243. package/dist/index.d.ts.map +1 -0
  244. package/dist/index.js +1 -1
  245. package/dist/index.js.map +1 -1
  246. package/dist/index.test.d.ts +2 -0
  247. package/dist/index.test.d.ts.map +1 -0
  248. package/dist/marks/Bold.d.ts +40 -0
  249. package/dist/marks/Bold.d.ts.map +1 -0
  250. package/dist/marks/Bold.test.d.ts +2 -0
  251. package/dist/marks/Bold.test.d.ts.map +1 -0
  252. package/dist/marks/Code.d.ts +40 -0
  253. package/dist/marks/Code.d.ts.map +1 -0
  254. package/dist/marks/Code.test.d.ts +2 -0
  255. package/dist/marks/Code.test.d.ts.map +1 -0
  256. package/dist/marks/Italic.d.ts +40 -0
  257. package/dist/marks/Italic.d.ts.map +1 -0
  258. package/dist/marks/Italic.test.d.ts +2 -0
  259. package/dist/marks/Italic.test.d.ts.map +1 -0
  260. package/dist/marks/Link.d.ts +75 -0
  261. package/dist/marks/Link.d.ts.map +1 -0
  262. package/dist/marks/Link.test.d.ts +2 -0
  263. package/dist/marks/Link.test.d.ts.map +1 -0
  264. package/dist/marks/Strike.d.ts +39 -0
  265. package/dist/marks/Strike.d.ts.map +1 -0
  266. package/dist/marks/Strike.test.d.ts +2 -0
  267. package/dist/marks/Strike.test.d.ts.map +1 -0
  268. package/dist/marks/Subscript.d.ts +38 -0
  269. package/dist/marks/Subscript.d.ts.map +1 -0
  270. package/dist/marks/Subscript.test.d.ts +2 -0
  271. package/dist/marks/Subscript.test.d.ts.map +1 -0
  272. package/dist/marks/Superscript.d.ts +38 -0
  273. package/dist/marks/Superscript.d.ts.map +1 -0
  274. package/dist/marks/Superscript.test.d.ts +2 -0
  275. package/dist/marks/Superscript.test.d.ts.map +1 -0
  276. package/dist/marks/TextStyle.d.ts +41 -0
  277. package/dist/marks/TextStyle.d.ts.map +1 -0
  278. package/dist/marks/TextStyle.test.d.ts +2 -0
  279. package/dist/marks/TextStyle.test.d.ts.map +1 -0
  280. package/dist/marks/Underline.d.ts +38 -0
  281. package/dist/marks/Underline.d.ts.map +1 -0
  282. package/dist/marks/Underline.test.d.ts +2 -0
  283. package/dist/marks/Underline.test.d.ts.map +1 -0
  284. package/dist/marks/helpers/autolinkPlugin.d.ts +48 -0
  285. package/dist/marks/helpers/autolinkPlugin.d.ts.map +1 -0
  286. package/dist/marks/helpers/autolinkPlugin.test.d.ts +2 -0
  287. package/dist/marks/helpers/autolinkPlugin.test.d.ts.map +1 -0
  288. package/dist/marks/helpers/index.d.ts +10 -0
  289. package/dist/marks/helpers/index.d.ts.map +1 -0
  290. package/dist/marks/helpers/linkClickPlugin.d.ts +43 -0
  291. package/dist/marks/helpers/linkClickPlugin.d.ts.map +1 -0
  292. package/dist/marks/helpers/linkClickPlugin.test.d.ts +2 -0
  293. package/dist/marks/helpers/linkClickPlugin.test.d.ts.map +1 -0
  294. package/dist/marks/helpers/linkExitPlugin.d.ts +37 -0
  295. package/dist/marks/helpers/linkExitPlugin.d.ts.map +1 -0
  296. package/dist/marks/helpers/linkExitPlugin.test.d.ts +2 -0
  297. package/dist/marks/helpers/linkExitPlugin.test.d.ts.map +1 -0
  298. package/dist/marks/helpers/linkPastePlugin.d.ts +44 -0
  299. package/dist/marks/helpers/linkPastePlugin.d.ts.map +1 -0
  300. package/dist/marks/helpers/linkPastePlugin.test.d.ts +2 -0
  301. package/dist/marks/helpers/linkPastePlugin.test.d.ts.map +1 -0
  302. package/dist/marks/index.d.ts +16 -0
  303. package/dist/marks/index.d.ts.map +1 -0
  304. package/dist/nodes/Blockquote.d.ts +19 -0
  305. package/dist/nodes/Blockquote.d.ts.map +1 -0
  306. package/dist/nodes/Blockquote.test.d.ts +2 -0
  307. package/dist/nodes/Blockquote.test.d.ts.map +1 -0
  308. package/dist/nodes/BulletList.d.ts +18 -0
  309. package/dist/nodes/BulletList.d.ts.map +1 -0
  310. package/dist/nodes/BulletList.test.d.ts +2 -0
  311. package/dist/nodes/BulletList.test.d.ts.map +1 -0
  312. package/dist/nodes/CodeBlock.d.ts +29 -0
  313. package/dist/nodes/CodeBlock.d.ts.map +1 -0
  314. package/dist/nodes/CodeBlock.test.d.ts +2 -0
  315. package/dist/nodes/CodeBlock.test.d.ts.map +1 -0
  316. package/dist/nodes/Document.d.ts +9 -0
  317. package/dist/nodes/Document.d.ts.map +1 -0
  318. package/dist/nodes/Document.test.d.ts +2 -0
  319. package/dist/nodes/Document.test.d.ts.map +1 -0
  320. package/dist/nodes/HardBreak.d.ts +18 -0
  321. package/dist/nodes/HardBreak.d.ts.map +1 -0
  322. package/dist/nodes/HardBreak.test.d.ts +2 -0
  323. package/dist/nodes/HardBreak.test.d.ts.map +1 -0
  324. package/dist/nodes/Heading.d.ts +23 -0
  325. package/dist/nodes/Heading.d.ts.map +1 -0
  326. package/dist/nodes/Heading.test.d.ts +2 -0
  327. package/dist/nodes/Heading.test.d.ts.map +1 -0
  328. package/dist/nodes/HorizontalRule.d.ts +17 -0
  329. package/dist/nodes/HorizontalRule.d.ts.map +1 -0
  330. package/dist/nodes/HorizontalRule.test.d.ts +2 -0
  331. package/dist/nodes/HorizontalRule.test.d.ts.map +1 -0
  332. package/dist/nodes/ListItem.d.ts +16 -0
  333. package/dist/nodes/ListItem.d.ts.map +1 -0
  334. package/dist/nodes/ListItem.test.d.ts +2 -0
  335. package/dist/nodes/ListItem.test.d.ts.map +1 -0
  336. package/dist/nodes/OrderedList.d.ts +18 -0
  337. package/dist/nodes/OrderedList.d.ts.map +1 -0
  338. package/dist/nodes/OrderedList.test.d.ts +2 -0
  339. package/dist/nodes/OrderedList.test.d.ts.map +1 -0
  340. package/dist/nodes/Paragraph.d.ts +17 -0
  341. package/dist/nodes/Paragraph.d.ts.map +1 -0
  342. package/dist/nodes/Paragraph.test.d.ts +2 -0
  343. package/dist/nodes/Paragraph.test.d.ts.map +1 -0
  344. package/dist/nodes/TaskItem.d.ts +24 -0
  345. package/dist/nodes/TaskItem.d.ts.map +1 -0
  346. package/dist/nodes/TaskItem.test.d.ts +2 -0
  347. package/dist/nodes/TaskItem.test.d.ts.map +1 -0
  348. package/dist/nodes/TaskList.d.ts +18 -0
  349. package/dist/nodes/TaskList.d.ts.map +1 -0
  350. package/dist/nodes/TaskList.test.d.ts +2 -0
  351. package/dist/nodes/TaskList.test.d.ts.map +1 -0
  352. package/dist/nodes/Text.d.ts +9 -0
  353. package/dist/nodes/Text.d.ts.map +1 -0
  354. package/dist/nodes/Text.test.d.ts +2 -0
  355. package/dist/nodes/Text.test.d.ts.map +1 -0
  356. package/dist/nodes/index.d.ts +19 -0
  357. package/dist/nodes/index.d.ts.map +1 -0
  358. package/dist/nodes/integration.test.d.ts +7 -0
  359. package/dist/nodes/integration.test.d.ts.map +1 -0
  360. package/dist/types/AttributeSpec.d.ts +78 -0
  361. package/dist/types/AttributeSpec.d.ts.map +1 -0
  362. package/dist/types/Commands.d.ts +125 -0
  363. package/dist/types/Commands.d.ts.map +1 -0
  364. package/dist/types/Content.d.ts +40 -0
  365. package/dist/types/Content.d.ts.map +1 -0
  366. package/dist/types/EditorEvents.d.ts +131 -0
  367. package/dist/types/EditorEvents.d.ts.map +1 -0
  368. package/dist/types/EditorOptions.d.ts +139 -0
  369. package/dist/types/EditorOptions.d.ts.map +1 -0
  370. package/dist/types/ExtensionConfig.d.ts +271 -0
  371. package/dist/types/ExtensionConfig.d.ts.map +1 -0
  372. package/dist/types/MarkConfig.d.ts +206 -0
  373. package/dist/types/MarkConfig.d.ts.map +1 -0
  374. package/dist/types/NodeConfig.d.ts +263 -0
  375. package/dist/types/NodeConfig.d.ts.map +1 -0
  376. package/dist/types/Toolbar.d.ts +172 -0
  377. package/dist/types/Toolbar.d.ts.map +1 -0
  378. package/dist/types/index.d.ts +13 -0
  379. package/dist/types/index.d.ts.map +1 -0
  380. package/dist/utils/inlineStyles.d.ts +83 -0
  381. package/dist/utils/inlineStyles.d.ts.map +1 -0
  382. package/dist/utils/inlineStyles.test.d.ts +2 -0
  383. package/dist/utils/inlineStyles.test.d.ts.map +1 -0
  384. package/dist/utils/positionFloating.d.ts +74 -0
  385. package/dist/utils/positionFloating.d.ts.map +1 -0
  386. package/package.json +1 -1
@@ -0,0 +1,144 @@
1
+ /**
2
+ * StarterKit Extension
3
+ *
4
+ * A convenient bundle of commonly-used extensions for quick setup.
5
+ * All included extensions can be configured or disabled individually.
6
+ */
7
+ import { Extension } from '../Extension.js';
8
+ import { type ParagraphOptions } from '../nodes/Paragraph.js';
9
+ import { type HeadingOptions } from '../nodes/Heading.js';
10
+ import { type BlockquoteOptions } from '../nodes/Blockquote.js';
11
+ import { type CodeBlockOptions } from '../nodes/CodeBlock.js';
12
+ import { type BulletListOptions } from '../nodes/BulletList.js';
13
+ import { type OrderedListOptions } from '../nodes/OrderedList.js';
14
+ import { type ListItemOptions } from '../nodes/ListItem.js';
15
+ import { type HorizontalRuleOptions } from '../nodes/HorizontalRule.js';
16
+ import { type HardBreakOptions } from '../nodes/HardBreak.js';
17
+ import { type TaskListOptions } from '../nodes/TaskList.js';
18
+ import { type TaskItemOptions } from '../nodes/TaskItem.js';
19
+ import { type BoldOptions } from '../marks/Bold.js';
20
+ import { type ItalicOptions } from '../marks/Italic.js';
21
+ import { type UnderlineOptions } from '../marks/Underline.js';
22
+ import { type StrikeOptions } from '../marks/Strike.js';
23
+ import { type CodeOptions } from '../marks/Code.js';
24
+ import { type LinkOptions } from '../marks/Link.js';
25
+ import { type BaseKeymapOptions } from './BaseKeymap.js';
26
+ import { type HistoryOptions } from './History.js';
27
+ import { type DropcursorOptions } from './Dropcursor.js';
28
+ import { type TrailingNodeOptions } from './TrailingNode.js';
29
+ import { type ListKeymapOptions } from './ListKeymap.js';
30
+ import { type LinkPopoverOptions } from './LinkPopover.js';
31
+ export interface StarterKitOptions {
32
+ /**
33
+ * Set to false to disable the Document node.
34
+ */
35
+ document?: false;
36
+ /**
37
+ * Set to false to disable the Text node.
38
+ */
39
+ text?: false;
40
+ /**
41
+ * Set to false to disable the Paragraph node, or pass options to configure it.
42
+ */
43
+ paragraph?: false | Partial<ParagraphOptions>;
44
+ /**
45
+ * Set to false to disable the Heading node, or pass options to configure it.
46
+ */
47
+ heading?: false | Partial<HeadingOptions>;
48
+ /**
49
+ * Set to false to disable the Blockquote node, or pass options to configure it.
50
+ */
51
+ blockquote?: false | Partial<BlockquoteOptions>;
52
+ /**
53
+ * Set to false to disable the CodeBlock node, or pass options to configure it.
54
+ */
55
+ codeBlock?: false | Partial<CodeBlockOptions>;
56
+ /**
57
+ * Set to false to disable the BulletList node, or pass options to configure it.
58
+ */
59
+ bulletList?: false | Partial<BulletListOptions>;
60
+ /**
61
+ * Set to false to disable the OrderedList node, or pass options to configure it.
62
+ */
63
+ orderedList?: false | Partial<OrderedListOptions>;
64
+ /**
65
+ * Set to false to disable the ListItem node, or pass options to configure it.
66
+ */
67
+ listItem?: false | Partial<ListItemOptions>;
68
+ /**
69
+ * Set to false to disable the HorizontalRule node, or pass options to configure it.
70
+ */
71
+ horizontalRule?: false | Partial<HorizontalRuleOptions>;
72
+ /**
73
+ * Set to false to disable the HardBreak node, or pass options to configure it.
74
+ */
75
+ hardBreak?: false | Partial<HardBreakOptions>;
76
+ /**
77
+ * Set to false to disable the TaskList node, or pass options to configure it.
78
+ */
79
+ taskList?: false | Partial<TaskListOptions>;
80
+ /**
81
+ * Set to false to disable the TaskItem node, or pass options to configure it.
82
+ */
83
+ taskItem?: false | Partial<TaskItemOptions>;
84
+ /**
85
+ * Set to false to disable the Bold mark, or pass options to configure it.
86
+ */
87
+ bold?: false | Partial<BoldOptions>;
88
+ /**
89
+ * Set to false to disable the Italic mark, or pass options to configure it.
90
+ */
91
+ italic?: false | Partial<ItalicOptions>;
92
+ /**
93
+ * Set to false to disable the Underline mark, or pass options to configure it.
94
+ */
95
+ underline?: false | Partial<UnderlineOptions>;
96
+ /**
97
+ * Set to false to disable the Strike mark, or pass options to configure it.
98
+ */
99
+ strike?: false | Partial<StrikeOptions>;
100
+ /**
101
+ * Set to false to disable the Code mark, or pass options to configure it.
102
+ */
103
+ code?: false | Partial<CodeOptions>;
104
+ /**
105
+ * Set to false to disable the Link mark, or pass options to configure it.
106
+ */
107
+ link?: false | Partial<LinkOptions>;
108
+ /**
109
+ * Set to false to disable the BaseKeymap extension, or pass options to configure it.
110
+ */
111
+ baseKeymap?: false | Partial<BaseKeymapOptions>;
112
+ /**
113
+ * Set to false to disable the History extension, or pass options to configure it.
114
+ */
115
+ history?: false | Partial<HistoryOptions>;
116
+ /**
117
+ * Set to false to disable the Dropcursor extension, or pass options to configure it.
118
+ */
119
+ dropcursor?: false | Partial<DropcursorOptions>;
120
+ /**
121
+ * Set to false to disable the Gapcursor extension.
122
+ */
123
+ gapcursor?: false;
124
+ /**
125
+ * Set to false to disable the TrailingNode extension, or pass options to configure it.
126
+ */
127
+ trailingNode?: false | Partial<TrailingNodeOptions>;
128
+ /**
129
+ * Set to false to disable the ListKeymap extension, or pass options to configure it.
130
+ */
131
+ listKeymap?: false | Partial<ListKeymapOptions>;
132
+ /**
133
+ * Set to false to disable the LinkPopover extension, or pass options to configure it.
134
+ */
135
+ linkPopover?: false | Partial<LinkPopoverOptions>;
136
+ /**
137
+ * Set to false to disable the SelectionDecoration extension.
138
+ * When enabled, the editor collapses range selections on blur to prevent
139
+ * ghost selections from lingering after clicking outside the editor.
140
+ */
141
+ selectionDecoration?: false;
142
+ }
143
+ export declare const StarterKit: Extension<StarterKitOptions, unknown>;
144
+ //# sourceMappingURL=StarterKit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StarterKit.d.ts","sourceRoot":"","sources":["../../src/extensions/StarterKit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,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E,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAGpC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1C;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpD;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAClD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU,uCA0DrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=StarterKit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StarterKit.test.d.ts","sourceRoot":"","sources":["../../src/extensions/StarterKit.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * TextAlign Extension
3
+ *
4
+ * Adds text alignment capabilities to specified node types.
5
+ * Uses addGlobalAttributes to inject textAlign attribute into nodes.
6
+ */
7
+ import { Extension } from '../Extension.js';
8
+ declare module '../types/Commands.js' {
9
+ interface RawCommands {
10
+ setTextAlign: CommandSpec<[alignment: string]>;
11
+ unsetTextAlign: CommandSpec;
12
+ }
13
+ }
14
+ export interface TextAlignOptions {
15
+ /**
16
+ * Node types that can have text alignment.
17
+ * @default ['heading', 'paragraph']
18
+ */
19
+ types: string[];
20
+ /**
21
+ * Allowed alignment values.
22
+ * @default ['left', 'center', 'right', 'justify']
23
+ */
24
+ alignments: string[];
25
+ /**
26
+ * Default alignment value.
27
+ * @default 'left'
28
+ */
29
+ defaultAlignment: string;
30
+ }
31
+ export declare const TextAlign: Extension<TextAlignOptions, unknown>;
32
+ //# sourceMappingURL=TextAlign.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextAlign.d.ts","sourceRoot":"","sources":["../../src/extensions/TextAlign.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAC/C,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,sCAiIpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextAlign.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextAlign.test.d.ts","sourceRoot":"","sources":["../../src/extensions/TextAlign.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * TextColor Extension
3
+ *
4
+ * Adds text color styling via the TextStyle mark.
5
+ * Requires TextStyle mark to be enabled.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { TextStyle, TextColor } from '@domternal/core';
10
+ *
11
+ * const editor = new Editor({
12
+ * extensions: [
13
+ * // ... other extensions
14
+ * TextStyle,
15
+ * TextColor, // uses the default 25-color palette
16
+ * ],
17
+ * });
18
+ *
19
+ * editor.commands.setTextColor('#ff0000');
20
+ * editor.commands.unsetTextColor();
21
+ * ```
22
+ */
23
+ import { Extension } from '../Extension.js';
24
+ declare module '../types/Commands.js' {
25
+ interface RawCommands {
26
+ setTextColor: CommandSpec<[color: string]>;
27
+ unsetTextColor: CommandSpec;
28
+ }
29
+ }
30
+ /**
31
+ * Default 25-color palette (5 columns x 5 rows).
32
+ * Row 1: neutrals (black → white)
33
+ * Row 2: pastel tints
34
+ * Row 3: vivid / saturated
35
+ * Row 4: medium shades
36
+ * Row 5: dark shades
37
+ *
38
+ * Columns: Red, Orange/Yellow, Green, Blue, Purple
39
+ */
40
+ export declare const DEFAULT_TEXT_COLORS: string[];
41
+ export interface TextColorOptions {
42
+ /**
43
+ * List of color values for the palette.
44
+ * Defaults to a 25-color grid (5 cols x 5 rows).
45
+ * Pass a custom array to restrict to specific colors.
46
+ */
47
+ colors: string[];
48
+ /**
49
+ * Number of columns in the palette grid.
50
+ * @default 5
51
+ */
52
+ columns: number;
53
+ }
54
+ export declare const TextColor: Extension<TextColorOptions, unknown>;
55
+ //# sourceMappingURL=TextColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextColor.d.ts","sourceRoot":"","sources":["../../src/extensions/TextColor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QAC3C,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAWvC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,sCA8FpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextColor.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextColor.test.d.ts","sourceRoot":"","sources":["../../src/extensions/TextColor.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { Extension } from '../Extension.js';
2
+ export interface TrailingNodeOptions {
3
+ /**
4
+ * The node type name to insert as trailing node.
5
+ * @default 'paragraph'
6
+ */
7
+ node: string;
8
+ /**
9
+ * Node types after which a trailing node should NOT be added.
10
+ * Typically includes the trailing node type itself.
11
+ * @default ['paragraph']
12
+ */
13
+ notAfter: string[];
14
+ }
15
+ export declare const TrailingNode: Extension<TrailingNodeOptions, unknown>;
16
+ //# sourceMappingURL=TrailingNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrailingNode.d.ts","sourceRoot":"","sources":["../../src/extensions/TrailingNode.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAID,eAAO,MAAM,YAAY,yCA4CvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TrailingNode.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrailingNode.test.d.ts","sourceRoot":"","sources":["../../src/extensions/TrailingNode.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,65 @@
1
+ import { Extension } from '../Extension.js';
2
+ export interface TypographyOptions {
3
+ /**
4
+ * Enable em-dash replacement (-- → —)
5
+ * @default true
6
+ */
7
+ emDash: boolean;
8
+ /**
9
+ * Enable ellipsis replacement (... → …)
10
+ * @default true
11
+ */
12
+ ellipsis: boolean;
13
+ /**
14
+ * Enable arrow replacements (<- → ←, -> → →)
15
+ * @default true
16
+ */
17
+ arrows: boolean;
18
+ /**
19
+ * Enable fraction replacements (1/2 → ½, 1/4 → ¼, 3/4 → ¾)
20
+ * @default true
21
+ */
22
+ fractions: boolean;
23
+ /**
24
+ * Enable symbol replacements ((c) → ©, (r) → ®, (tm) → ™)
25
+ * @default true
26
+ */
27
+ symbols: boolean;
28
+ /**
29
+ * Enable math replacements (+/- → ±, != → ≠)
30
+ * @default true
31
+ */
32
+ math: boolean;
33
+ /**
34
+ * Enable guillemet replacements (<< → «, >> → »)
35
+ * @default true
36
+ */
37
+ guillemets: boolean;
38
+ /**
39
+ * Enable smart quote replacements ("text" → "text", 'text' → 'text')
40
+ * @default true
41
+ */
42
+ smartQuotes: boolean;
43
+ /**
44
+ * Opening double quote character.
45
+ * @default '"'
46
+ */
47
+ openDoubleQuote: string;
48
+ /**
49
+ * Closing double quote character.
50
+ * @default '"'
51
+ */
52
+ closeDoubleQuote: string;
53
+ /**
54
+ * Opening single quote character.
55
+ * @default '''
56
+ */
57
+ openSingleQuote: string;
58
+ /**
59
+ * Closing single quote character.
60
+ * @default '''
61
+ */
62
+ closeSingleQuote: string;
63
+ }
64
+ export declare const Typography: Extension<TypographyOptions, unknown>;
65
+ //# sourceMappingURL=Typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/extensions/Typography.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,UAAU,uCAuGrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Typography.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.test.d.ts","sourceRoot":"","sources":["../../src/extensions/Typography.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * UniqueID Extension
3
+ *
4
+ * Automatically assigns unique IDs to specified node types.
5
+ * Useful for collaborative editing, linking, and history tracking.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { UniqueID } from '@domternal/core';
10
+ *
11
+ * const editor = new Editor({
12
+ * extensions: [
13
+ * // ... other extensions
14
+ * UniqueID.configure({
15
+ * types: ['paragraph', 'heading'],
16
+ * attributeName: 'id',
17
+ * }),
18
+ * ],
19
+ * });
20
+ * ```
21
+ */
22
+ import { Extension } from '../Extension.js';
23
+ import { PluginKey } from '@domternal/pm/state';
24
+ export declare const uniqueIDPluginKey: PluginKey<any>;
25
+ export interface UniqueIDOptions {
26
+ /**
27
+ * Node types that should receive unique IDs.
28
+ * @default ['paragraph', 'heading', 'blockquote', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'listItem', 'taskItem', 'image', 'horizontalRule']
29
+ */
30
+ types: string[];
31
+ /**
32
+ * Attribute name to store the unique ID.
33
+ * @default 'id'
34
+ */
35
+ attributeName: string;
36
+ /**
37
+ * Function to generate unique IDs.
38
+ * @default generateUUID
39
+ */
40
+ generateID: () => string;
41
+ /**
42
+ * Whether to filter duplicates when pasting content.
43
+ * @default true
44
+ */
45
+ filterDuplicates: boolean;
46
+ }
47
+ export declare const UniqueID: Extension<UniqueIDOptions, unknown>;
48
+ //# sourceMappingURL=UniqueID.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UniqueID.d.ts","sourceRoot":"","sources":["../../src/extensions/UniqueID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAU,SAAS,EAAoB,MAAM,qBAAqB,CAAC;AAgB1E,eAAO,MAAM,iBAAiB,gBAA4B,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,MAAM,MAAM,CAAC;IAEzB;;;OAGG;IACH,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ,qCAuJnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=UniqueID.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UniqueID.test.d.ts","sourceRoot":"","sources":["../../src/extensions/UniqueID.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Functionality Extensions for @domternal/core
3
+ */
4
+ export { BaseKeymap, type BaseKeymapOptions } from './BaseKeymap.js';
5
+ export { History, type HistoryOptions } from './History.js';
6
+ export { Dropcursor, type DropcursorOptions } from './Dropcursor.js';
7
+ export { Gapcursor } from './Gapcursor.js';
8
+ export { TrailingNode, type TrailingNodeOptions } from './TrailingNode.js';
9
+ export { Placeholder, placeholderPluginKey, type PlaceholderOptions, } from './Placeholder.js';
10
+ export { ListKeymap, type ListKeymapOptions } from './ListKeymap.js';
11
+ export { CharacterCount, characterCountPluginKey, type CharacterCountOptions, type CharacterCountStorage, } from './CharacterCount.js';
12
+ export { Typography, type TypographyOptions } from './Typography.js';
13
+ export { TextAlign, type TextAlignOptions } from './TextAlign.js';
14
+ export { Focus, focusPluginKey, type FocusOptions } from './Focus.js';
15
+ export { LineHeight, type LineHeightOptions } from './LineHeight.js';
16
+ export { UniqueID, uniqueIDPluginKey, type UniqueIDOptions, } from './UniqueID.js';
17
+ export { Selection, type SelectionOptions, type SelectionStorage, } from './Selection.js';
18
+ export { SelectionDecoration, selectionDecorationPluginKey, type SelectionDecorationOptions, } from './SelectionDecoration.js';
19
+ export { InvisibleChars, invisibleCharsPluginKey, type InvisibleCharsOptions, type InvisibleCharsStorage, } from './InvisibleChars.js';
20
+ export { TextColor, DEFAULT_TEXT_COLORS, type TextColorOptions } from './TextColor.js';
21
+ export { Highlight, DEFAULT_HIGHLIGHT_COLORS, type HighlightOptions } from './Highlight.js';
22
+ export { FontFamily, type FontFamilyOptions } from './FontFamily.js';
23
+ export { FontSize, type FontSizeOptions } from './FontSize.js';
24
+ export { ClearFormatting } from './ClearFormatting.js';
25
+ export { LinkPopover, type LinkPopoverOptions } from './LinkPopover.js';
26
+ export { BubbleMenu, createBubbleMenuPlugin, bubbleMenuPluginKey, type BubbleMenuOptions, type CreateBubbleMenuPluginOptions, } from './BubbleMenu.js';
27
+ export { FloatingMenu, createFloatingMenuPlugin, floatingMenuPluginKey, type FloatingMenuOptions, type CreateFloatingMenuPluginOptions, } from './FloatingMenu.js';
28
+ export { StarterKit, type StarterKitOptions } from './StarterKit.js';
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACr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AgB,EAAE,MAAM,gBAAgB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,GACrC,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=isActive-markExclusion.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isActive-markExclusion.test.d.ts","sourceRoot":"","sources":["../../src/extensions/isActive-markExclusion.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * callOrReturn - Helper for context binding in extension config
3
+ *
4
+ * Used to call config functions with proper `this` context,
5
+ * or return the value directly if it's not a function.
6
+ *
7
+ * This enables patterns like:
8
+ * ```typescript
9
+ * const Bold = Mark.create({
10
+ * name: 'bold',
11
+ * addCommands() {
12
+ * return {
13
+ * toggleBold: () => ({ commands }) => {
14
+ * return commands.toggleMark(this.name); // this.name = 'bold'
15
+ * },
16
+ * };
17
+ * },
18
+ * });
19
+ * ```
20
+ */
21
+ /**
22
+ * Calls a function with the given context, or returns the value if not a function
23
+ *
24
+ * @param value - Function to call or value to return
25
+ * @param context - The `this` context to bind when calling the function
26
+ * @param args - Additional arguments to pass to the function
27
+ * @returns The function result or the value itself
28
+ */
29
+ export declare function callOrReturn<T>(value: T | ((...args: unknown[]) => T), context: unknown, ...args: unknown[]): T;
30
+ //# sourceMappingURL=callOrReturn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callOrReturn.d.ts","sourceRoot":"","sources":["../../src/helpers/callOrReturn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,EACtC,OAAO,EAAE,OAAO,EAChB,GAAG,IAAI,EAAE,OAAO,EAAE,GACjB,CAAC,CAKH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=callOrReturn.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callOrReturn.test.d.ts","sourceRoot":"","sources":["../../src/helpers/callOrReturn.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Create a ProseMirror document from content
3
+ *
4
+ * Supports JSON and HTML content formats (AD-11).
5
+ * Plain text is NOT supported - use HTML or JSON explicitly.
6
+ */
7
+ import type { Schema } from '@domternal/pm/model';
8
+ import { Node as PMNode, DOMParser } from '@domternal/pm/model';
9
+ import type { Content } from '../types/index.js';
10
+ /**
11
+ * Options for createDocument
12
+ */
13
+ export interface CreateDocumentOptions {
14
+ /**
15
+ * Parse options passed to DOMParser
16
+ */
17
+ parseOptions?: Parameters<DOMParser['parse']>[1];
18
+ }
19
+ /**
20
+ * Creates a ProseMirror document from content
21
+ *
22
+ * **Security:** Content is NOT sanitized. If accepting user-provided HTML,
23
+ * sanitize it first (e.g., using DOMPurify) to prevent XSS attacks.
24
+ *
25
+ * @param content - JSON content object, HTML string, or null/undefined
26
+ * @param schema - ProseMirror schema to use
27
+ * @param options - Optional parse options
28
+ * @returns ProseMirror Node (document)
29
+ *
30
+ * @throws Error if content format is invalid (plain text without HTML tags)
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * // JSON content
35
+ * const doc = createDocument(
36
+ * { type: 'doc', content: [{ type: 'paragraph' }] },
37
+ * schema
38
+ * );
39
+ *
40
+ * // HTML content
41
+ * const doc = createDocument('<p>Hello world</p>', schema);
42
+ *
43
+ * // Empty document
44
+ * const doc = createDocument(null, schema);
45
+ * ```
46
+ */
47
+ export declare function createDocument(content: Content | null | undefined, schema: Schema, options?: CreateDocumentOptions): PMNode;
48
+ //# sourceMappingURL=createDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDocument.d.ts","sourceRoot":"","sources":["../../src/helpers/createDocument.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,MAAM,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,mBAAmB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAClD;AA+DD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EACnC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,qBAAqB,GAC9B,MAAM,CA6BR"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createDocument.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDocument.test.d.ts","sourceRoot":"","sources":["../../src/helpers/createDocument.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Get the default block type at a given content match position
3
+ *
4
+ * Finds the first textblock type that can be created without required attributes.
5
+ * Useful for creating new empty blocks (e.g., paragraph after details).
6
+ *
7
+ * @example
8
+ * const type = defaultBlockAt(parent.contentMatchAt(index));
9
+ * if (type) {
10
+ * const node = type.createAndFill();
11
+ * }
12
+ */
13
+ import type { ContentMatch, NodeType } from '@domternal/pm/model';
14
+ export declare const defaultBlockAt: (match: ContentMatch) => NodeType | null;
15
+ //# sourceMappingURL=defaultBlockAt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultBlockAt.d.ts","sourceRoot":"","sources":["../../src/helpers/defaultBlockAt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAElE,eAAO,MAAM,cAAc,GAAI,OAAO,YAAY,KAAG,QAAQ,GAAG,IAU/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=defaultBlockAt.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultBlockAt.test.d.ts","sourceRoot":"","sources":["../../src/helpers/defaultBlockAt.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Find all children of a node matching a predicate
3
+ *
4
+ * @example
5
+ * const summaries = findChildren(detailsNode, node => node.type.name === 'detailsSummary');
6
+ */
7
+ import type { Node as PMNode } from '@domternal/pm/model';
8
+ export interface FindChildResult {
9
+ node: PMNode;
10
+ pos: number;
11
+ }
12
+ export declare const findChildren: (node: PMNode, predicate: (node: PMNode) => boolean) => FindChildResult[];
13
+ //# sourceMappingURL=findChildren.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findChildren.d.ts","sourceRoot":"","sources":["../../src/helpers/findChildren.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,WAAW,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,KACnC,eAAe,EAUjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=findChildren.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findChildren.test.d.ts","sourceRoot":"","sources":["../../src/helpers/findChildren.test.ts"],"names":[],"mappings":""}