@domternal/core 0.5.1 → 0.6.0

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 (387) hide show
  1. package/README.md +5 -4
  2. package/dist/index.cjs +16 -0
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +1 -0
  5. package/dist/index.d.ts +5845 -23
  6. package/dist/index.js +16 -0
  7. package/dist/index.js.map +1 -1
  8. package/package.json +14 -12
  9. package/dist/CanChecker.d.ts +0 -79
  10. package/dist/CanChecker.d.ts.map +0 -1
  11. package/dist/CanChecker.test.d.ts +0 -2
  12. package/dist/CanChecker.test.d.ts.map +0 -1
  13. package/dist/ChainBuilder.d.ts +0 -119
  14. package/dist/ChainBuilder.d.ts.map +0 -1
  15. package/dist/ChainBuilder.test.d.ts +0 -2
  16. package/dist/ChainBuilder.test.d.ts.map +0 -1
  17. package/dist/CommandManager.d.ts +0 -86
  18. package/dist/CommandManager.d.ts.map +0 -1
  19. package/dist/CommandManager.test.d.ts +0 -2
  20. package/dist/CommandManager.test.d.ts.map +0 -1
  21. package/dist/Editor.d.ts +0 -262
  22. package/dist/Editor.d.ts.map +0 -1
  23. package/dist/Editor.test.d.ts +0 -2
  24. package/dist/Editor.test.d.ts.map +0 -1
  25. package/dist/EventEmitter.d.ts +0 -57
  26. package/dist/EventEmitter.d.ts.map +0 -1
  27. package/dist/EventEmitter.test.d.ts +0 -2
  28. package/dist/EventEmitter.test.d.ts.map +0 -1
  29. package/dist/Extension.d.ts +0 -171
  30. package/dist/Extension.d.ts.map +0 -1
  31. package/dist/Extension.test.d.ts +0 -2
  32. package/dist/Extension.test.d.ts.map +0 -1
  33. package/dist/ExtensionManager.d.ts +0 -283
  34. package/dist/ExtensionManager.d.ts.map +0 -1
  35. package/dist/ExtensionManager.test.d.ts +0 -2
  36. package/dist/ExtensionManager.test.d.ts.map +0 -1
  37. package/dist/Mark.d.ts +0 -164
  38. package/dist/Mark.d.ts.map +0 -1
  39. package/dist/Mark.test.d.ts +0 -5
  40. package/dist/Mark.test.d.ts.map +0 -1
  41. package/dist/Node.d.ts +0 -153
  42. package/dist/Node.d.ts.map +0 -1
  43. package/dist/Node.test.d.ts +0 -2
  44. package/dist/Node.test.d.ts.map +0 -1
  45. package/dist/ToolbarController.d.ts +0 -169
  46. package/dist/ToolbarController.d.ts.map +0 -1
  47. package/dist/ToolbarController.test.d.ts +0 -2
  48. package/dist/ToolbarController.test.d.ts.map +0 -1
  49. package/dist/commandPropsBuilder.d.ts +0 -70
  50. package/dist/commandPropsBuilder.d.ts.map +0 -1
  51. package/dist/commandPropsBuilder.test.d.ts +0 -2
  52. package/dist/commandPropsBuilder.test.d.ts.map +0 -1
  53. package/dist/commands/attributeCommands.d.ts +0 -24
  54. package/dist/commands/attributeCommands.d.ts.map +0 -1
  55. package/dist/commands/attributeCommands.test.d.ts +0 -2
  56. package/dist/commands/attributeCommands.test.d.ts.map +0 -1
  57. package/dist/commands/builtIn.test.d.ts +0 -2
  58. package/dist/commands/builtIn.test.d.ts.map +0 -1
  59. package/dist/commands/contentCommands.d.ts +0 -52
  60. package/dist/commands/contentCommands.d.ts.map +0 -1
  61. package/dist/commands/contentCommands.test.d.ts +0 -2
  62. package/dist/commands/contentCommands.test.d.ts.map +0 -1
  63. package/dist/commands/index.d.ts +0 -43
  64. package/dist/commands/index.d.ts.map +0 -1
  65. package/dist/commands/listCommands.d.ts +0 -15
  66. package/dist/commands/listCommands.d.ts.map +0 -1
  67. package/dist/commands/listCommands.test.d.ts +0 -2
  68. package/dist/commands/listCommands.test.d.ts.map +0 -1
  69. package/dist/commands/markCommands.d.ts +0 -40
  70. package/dist/commands/markCommands.d.ts.map +0 -1
  71. package/dist/commands/markCommands.test.d.ts +0 -2
  72. package/dist/commands/markCommands.test.d.ts.map +0 -1
  73. package/dist/commands/nodeCommands.d.ts +0 -53
  74. package/dist/commands/nodeCommands.d.ts.map +0 -1
  75. package/dist/commands/nodeCommands.test.d.ts +0 -2
  76. package/dist/commands/nodeCommands.test.d.ts.map +0 -1
  77. package/dist/commands/selectionCommands.d.ts +0 -37
  78. package/dist/commands/selectionCommands.d.ts.map +0 -1
  79. package/dist/commands/selectionCommands.test.d.ts +0 -2
  80. package/dist/commands/selectionCommands.test.d.ts.map +0 -1
  81. package/dist/extensions/BaseKeymap.d.ts +0 -36
  82. package/dist/extensions/BaseKeymap.d.ts.map +0 -1
  83. package/dist/extensions/BaseKeymap.test.d.ts +0 -2
  84. package/dist/extensions/BaseKeymap.test.d.ts.map +0 -1
  85. package/dist/extensions/BubbleMenu.d.ts +0 -85
  86. package/dist/extensions/BubbleMenu.d.ts.map +0 -1
  87. package/dist/extensions/BubbleMenu.test.d.ts +0 -2
  88. package/dist/extensions/BubbleMenu.test.d.ts.map +0 -1
  89. package/dist/extensions/CharacterCount.d.ts +0 -60
  90. package/dist/extensions/CharacterCount.d.ts.map +0 -1
  91. package/dist/extensions/CharacterCount.test.d.ts +0 -2
  92. package/dist/extensions/CharacterCount.test.d.ts.map +0 -1
  93. package/dist/extensions/ClearFormatting.d.ts +0 -25
  94. package/dist/extensions/ClearFormatting.d.ts.map +0 -1
  95. package/dist/extensions/ClearFormatting.test.d.ts +0 -2
  96. package/dist/extensions/ClearFormatting.test.d.ts.map +0 -1
  97. package/dist/extensions/Dropcursor.d.ts +0 -20
  98. package/dist/extensions/Dropcursor.d.ts.map +0 -1
  99. package/dist/extensions/Dropcursor.test.d.ts +0 -2
  100. package/dist/extensions/Dropcursor.test.d.ts.map +0 -1
  101. package/dist/extensions/FloatingMenu.d.ts +0 -74
  102. package/dist/extensions/FloatingMenu.d.ts.map +0 -1
  103. package/dist/extensions/FloatingMenu.test.d.ts +0 -2
  104. package/dist/extensions/FloatingMenu.test.d.ts.map +0 -1
  105. package/dist/extensions/Focus.d.ts +0 -26
  106. package/dist/extensions/Focus.d.ts.map +0 -1
  107. package/dist/extensions/Focus.test.d.ts +0 -2
  108. package/dist/extensions/Focus.test.d.ts.map +0 -1
  109. package/dist/extensions/FontFamily.d.ts +0 -41
  110. package/dist/extensions/FontFamily.d.ts.map +0 -1
  111. package/dist/extensions/FontFamily.test.d.ts +0 -2
  112. package/dist/extensions/FontFamily.test.d.ts.map +0 -1
  113. package/dist/extensions/FontSize.d.ts +0 -46
  114. package/dist/extensions/FontSize.d.ts.map +0 -1
  115. package/dist/extensions/FontSize.test.d.ts +0 -2
  116. package/dist/extensions/FontSize.test.d.ts.map +0 -1
  117. package/dist/extensions/Gapcursor.d.ts +0 -3
  118. package/dist/extensions/Gapcursor.d.ts.map +0 -1
  119. package/dist/extensions/Gapcursor.test.d.ts +0 -2
  120. package/dist/extensions/Gapcursor.test.d.ts.map +0 -1
  121. package/dist/extensions/Highlight.d.ts +0 -61
  122. package/dist/extensions/Highlight.d.ts.map +0 -1
  123. package/dist/extensions/Highlight.test.d.ts +0 -2
  124. package/dist/extensions/Highlight.test.d.ts.map +0 -1
  125. package/dist/extensions/History.d.ts +0 -22
  126. package/dist/extensions/History.d.ts.map +0 -1
  127. package/dist/extensions/History.test.d.ts +0 -2
  128. package/dist/extensions/History.test.d.ts.map +0 -1
  129. package/dist/extensions/InvisibleChars.d.ts +0 -86
  130. package/dist/extensions/InvisibleChars.d.ts.map +0 -1
  131. package/dist/extensions/InvisibleChars.test.d.ts +0 -2
  132. package/dist/extensions/InvisibleChars.test.d.ts.map +0 -1
  133. package/dist/extensions/LineHeight.d.ts +0 -50
  134. package/dist/extensions/LineHeight.d.ts.map +0 -1
  135. package/dist/extensions/LineHeight.test.d.ts +0 -2
  136. package/dist/extensions/LineHeight.test.d.ts.map +0 -1
  137. package/dist/extensions/LinkPopover.d.ts +0 -10
  138. package/dist/extensions/LinkPopover.d.ts.map +0 -1
  139. package/dist/extensions/ListKeymap.d.ts +0 -10
  140. package/dist/extensions/ListKeymap.d.ts.map +0 -1
  141. package/dist/extensions/ListKeymap.test.d.ts +0 -2
  142. package/dist/extensions/ListKeymap.test.d.ts.map +0 -1
  143. package/dist/extensions/Placeholder.d.ts +0 -47
  144. package/dist/extensions/Placeholder.d.ts.map +0 -1
  145. package/dist/extensions/Placeholder.test.d.ts +0 -2
  146. package/dist/extensions/Placeholder.test.d.ts.map +0 -1
  147. package/dist/extensions/Selection.d.ts +0 -71
  148. package/dist/extensions/Selection.d.ts.map +0 -1
  149. package/dist/extensions/Selection.test.d.ts +0 -2
  150. package/dist/extensions/Selection.test.d.ts.map +0 -1
  151. package/dist/extensions/SelectionDecoration.d.ts +0 -18
  152. package/dist/extensions/SelectionDecoration.d.ts.map +0 -1
  153. package/dist/extensions/SelectionDecoration.test.d.ts +0 -2
  154. package/dist/extensions/SelectionDecoration.test.d.ts.map +0 -1
  155. package/dist/extensions/StarterKit.d.ts +0 -144
  156. package/dist/extensions/StarterKit.d.ts.map +0 -1
  157. package/dist/extensions/StarterKit.test.d.ts +0 -2
  158. package/dist/extensions/StarterKit.test.d.ts.map +0 -1
  159. package/dist/extensions/TextAlign.d.ts +0 -32
  160. package/dist/extensions/TextAlign.d.ts.map +0 -1
  161. package/dist/extensions/TextAlign.test.d.ts +0 -2
  162. package/dist/extensions/TextAlign.test.d.ts.map +0 -1
  163. package/dist/extensions/TextColor.d.ts +0 -55
  164. package/dist/extensions/TextColor.d.ts.map +0 -1
  165. package/dist/extensions/TextColor.test.d.ts +0 -2
  166. package/dist/extensions/TextColor.test.d.ts.map +0 -1
  167. package/dist/extensions/TrailingNode.d.ts +0 -16
  168. package/dist/extensions/TrailingNode.d.ts.map +0 -1
  169. package/dist/extensions/TrailingNode.test.d.ts +0 -2
  170. package/dist/extensions/TrailingNode.test.d.ts.map +0 -1
  171. package/dist/extensions/Typography.d.ts +0 -65
  172. package/dist/extensions/Typography.d.ts.map +0 -1
  173. package/dist/extensions/Typography.test.d.ts +0 -2
  174. package/dist/extensions/Typography.test.d.ts.map +0 -1
  175. package/dist/extensions/UniqueID.d.ts +0 -48
  176. package/dist/extensions/UniqueID.d.ts.map +0 -1
  177. package/dist/extensions/UniqueID.test.d.ts +0 -2
  178. package/dist/extensions/UniqueID.test.d.ts.map +0 -1
  179. package/dist/extensions/index.d.ts +0 -29
  180. package/dist/extensions/index.d.ts.map +0 -1
  181. package/dist/extensions/isActive-markExclusion.test.d.ts +0 -2
  182. package/dist/extensions/isActive-markExclusion.test.d.ts.map +0 -1
  183. package/dist/helpers/callOrReturn.d.ts +0 -30
  184. package/dist/helpers/callOrReturn.d.ts.map +0 -1
  185. package/dist/helpers/callOrReturn.test.d.ts +0 -2
  186. package/dist/helpers/callOrReturn.test.d.ts.map +0 -1
  187. package/dist/helpers/createDocument.d.ts +0 -48
  188. package/dist/helpers/createDocument.d.ts.map +0 -1
  189. package/dist/helpers/createDocument.test.d.ts +0 -2
  190. package/dist/helpers/createDocument.test.d.ts.map +0 -1
  191. package/dist/helpers/defaultBlockAt.d.ts +0 -15
  192. package/dist/helpers/defaultBlockAt.d.ts.map +0 -1
  193. package/dist/helpers/defaultBlockAt.test.d.ts +0 -2
  194. package/dist/helpers/defaultBlockAt.test.d.ts.map +0 -1
  195. package/dist/helpers/findChildren.d.ts +0 -13
  196. package/dist/helpers/findChildren.d.ts.map +0 -1
  197. package/dist/helpers/findChildren.test.d.ts +0 -2
  198. package/dist/helpers/findChildren.test.d.ts.map +0 -1
  199. package/dist/helpers/findParentNode.d.ts +0 -21
  200. package/dist/helpers/findParentNode.d.ts.map +0 -1
  201. package/dist/helpers/findParentNode.test.d.ts +0 -2
  202. package/dist/helpers/findParentNode.test.d.ts.map +0 -1
  203. package/dist/helpers/getMarkRange.d.ts +0 -17
  204. package/dist/helpers/getMarkRange.d.ts.map +0 -1
  205. package/dist/helpers/getMarkRange.test.d.ts +0 -2
  206. package/dist/helpers/getMarkRange.test.d.ts.map +0 -1
  207. package/dist/helpers/index.d.ts +0 -18
  208. package/dist/helpers/index.d.ts.map +0 -1
  209. package/dist/helpers/inputRulesPlugin.d.ts +0 -26
  210. package/dist/helpers/inputRulesPlugin.d.ts.map +0 -1
  211. package/dist/helpers/isNodeEmpty.d.ts +0 -52
  212. package/dist/helpers/isNodeEmpty.d.ts.map +0 -1
  213. package/dist/helpers/isNodeEmpty.test.d.ts +0 -2
  214. package/dist/helpers/isNodeEmpty.test.d.ts.map +0 -1
  215. package/dist/helpers/isValidUrl.d.ts +0 -31
  216. package/dist/helpers/isValidUrl.d.ts.map +0 -1
  217. package/dist/helpers/isValidUrl.test.d.ts +0 -2
  218. package/dist/helpers/isValidUrl.test.d.ts.map +0 -1
  219. package/dist/helpers/markInputRule.d.ts +0 -88
  220. package/dist/helpers/markInputRule.d.ts.map +0 -1
  221. package/dist/helpers/markInputRule.test.d.ts +0 -2
  222. package/dist/helpers/markInputRule.test.d.ts.map +0 -1
  223. package/dist/helpers/nodeInputRule.d.ts +0 -41
  224. package/dist/helpers/nodeInputRule.d.ts.map +0 -1
  225. package/dist/helpers/normalizeColor.d.ts +0 -7
  226. package/dist/helpers/normalizeColor.d.ts.map +0 -1
  227. package/dist/helpers/normalizeColor.test.d.ts +0 -2
  228. package/dist/helpers/normalizeColor.test.d.ts.map +0 -1
  229. package/dist/helpers/specBuilder.d.ts +0 -28
  230. package/dist/helpers/specBuilder.d.ts.map +0 -1
  231. package/dist/helpers/specBuilder.test.d.ts +0 -2
  232. package/dist/helpers/specBuilder.test.d.ts.map +0 -1
  233. package/dist/helpers/ssr.d.ts +0 -80
  234. package/dist/helpers/ssr.d.ts.map +0 -1
  235. package/dist/helpers/ssr.test.d.ts +0 -2
  236. package/dist/helpers/ssr.test.d.ts.map +0 -1
  237. package/dist/helpers/textInputRule.d.ts +0 -34
  238. package/dist/helpers/textInputRule.d.ts.map +0 -1
  239. package/dist/helpers/textblockTypeInputRule.d.ts +0 -41
  240. package/dist/helpers/textblockTypeInputRule.d.ts.map +0 -1
  241. package/dist/helpers/wrappingInputRule.d.ts +0 -66
  242. package/dist/helpers/wrappingInputRule.d.ts.map +0 -1
  243. package/dist/icons/index.d.ts +0 -2
  244. package/dist/icons/index.d.ts.map +0 -1
  245. package/dist/icons/phosphor.d.ts +0 -3
  246. package/dist/icons/phosphor.d.ts.map +0 -1
  247. package/dist/index.d.ts.map +0 -1
  248. package/dist/index.test.d.ts +0 -2
  249. package/dist/index.test.d.ts.map +0 -1
  250. package/dist/marks/Bold.d.ts +0 -40
  251. package/dist/marks/Bold.d.ts.map +0 -1
  252. package/dist/marks/Bold.test.d.ts +0 -2
  253. package/dist/marks/Bold.test.d.ts.map +0 -1
  254. package/dist/marks/Code.d.ts +0 -40
  255. package/dist/marks/Code.d.ts.map +0 -1
  256. package/dist/marks/Code.test.d.ts +0 -2
  257. package/dist/marks/Code.test.d.ts.map +0 -1
  258. package/dist/marks/Italic.d.ts +0 -40
  259. package/dist/marks/Italic.d.ts.map +0 -1
  260. package/dist/marks/Italic.test.d.ts +0 -2
  261. package/dist/marks/Italic.test.d.ts.map +0 -1
  262. package/dist/marks/Link.d.ts +0 -75
  263. package/dist/marks/Link.d.ts.map +0 -1
  264. package/dist/marks/Link.test.d.ts +0 -2
  265. package/dist/marks/Link.test.d.ts.map +0 -1
  266. package/dist/marks/Strike.d.ts +0 -39
  267. package/dist/marks/Strike.d.ts.map +0 -1
  268. package/dist/marks/Strike.test.d.ts +0 -2
  269. package/dist/marks/Strike.test.d.ts.map +0 -1
  270. package/dist/marks/Subscript.d.ts +0 -38
  271. package/dist/marks/Subscript.d.ts.map +0 -1
  272. package/dist/marks/Subscript.test.d.ts +0 -2
  273. package/dist/marks/Subscript.test.d.ts.map +0 -1
  274. package/dist/marks/Superscript.d.ts +0 -38
  275. package/dist/marks/Superscript.d.ts.map +0 -1
  276. package/dist/marks/Superscript.test.d.ts +0 -2
  277. package/dist/marks/Superscript.test.d.ts.map +0 -1
  278. package/dist/marks/TextStyle.d.ts +0 -41
  279. package/dist/marks/TextStyle.d.ts.map +0 -1
  280. package/dist/marks/TextStyle.test.d.ts +0 -2
  281. package/dist/marks/TextStyle.test.d.ts.map +0 -1
  282. package/dist/marks/Underline.d.ts +0 -38
  283. package/dist/marks/Underline.d.ts.map +0 -1
  284. package/dist/marks/Underline.test.d.ts +0 -2
  285. package/dist/marks/Underline.test.d.ts.map +0 -1
  286. package/dist/marks/helpers/autolinkPlugin.d.ts +0 -48
  287. package/dist/marks/helpers/autolinkPlugin.d.ts.map +0 -1
  288. package/dist/marks/helpers/autolinkPlugin.test.d.ts +0 -2
  289. package/dist/marks/helpers/autolinkPlugin.test.d.ts.map +0 -1
  290. package/dist/marks/helpers/index.d.ts +0 -10
  291. package/dist/marks/helpers/index.d.ts.map +0 -1
  292. package/dist/marks/helpers/linkClickPlugin.d.ts +0 -43
  293. package/dist/marks/helpers/linkClickPlugin.d.ts.map +0 -1
  294. package/dist/marks/helpers/linkClickPlugin.test.d.ts +0 -2
  295. package/dist/marks/helpers/linkClickPlugin.test.d.ts.map +0 -1
  296. package/dist/marks/helpers/linkExitPlugin.d.ts +0 -37
  297. package/dist/marks/helpers/linkExitPlugin.d.ts.map +0 -1
  298. package/dist/marks/helpers/linkExitPlugin.test.d.ts +0 -2
  299. package/dist/marks/helpers/linkExitPlugin.test.d.ts.map +0 -1
  300. package/dist/marks/helpers/linkPastePlugin.d.ts +0 -44
  301. package/dist/marks/helpers/linkPastePlugin.d.ts.map +0 -1
  302. package/dist/marks/helpers/linkPastePlugin.test.d.ts +0 -2
  303. package/dist/marks/helpers/linkPastePlugin.test.d.ts.map +0 -1
  304. package/dist/marks/index.d.ts +0 -16
  305. package/dist/marks/index.d.ts.map +0 -1
  306. package/dist/nodes/Blockquote.d.ts +0 -19
  307. package/dist/nodes/Blockquote.d.ts.map +0 -1
  308. package/dist/nodes/Blockquote.test.d.ts +0 -2
  309. package/dist/nodes/Blockquote.test.d.ts.map +0 -1
  310. package/dist/nodes/BulletList.d.ts +0 -18
  311. package/dist/nodes/BulletList.d.ts.map +0 -1
  312. package/dist/nodes/BulletList.test.d.ts +0 -2
  313. package/dist/nodes/BulletList.test.d.ts.map +0 -1
  314. package/dist/nodes/CodeBlock.d.ts +0 -29
  315. package/dist/nodes/CodeBlock.d.ts.map +0 -1
  316. package/dist/nodes/CodeBlock.test.d.ts +0 -2
  317. package/dist/nodes/CodeBlock.test.d.ts.map +0 -1
  318. package/dist/nodes/Document.d.ts +0 -9
  319. package/dist/nodes/Document.d.ts.map +0 -1
  320. package/dist/nodes/Document.test.d.ts +0 -2
  321. package/dist/nodes/Document.test.d.ts.map +0 -1
  322. package/dist/nodes/HardBreak.d.ts +0 -18
  323. package/dist/nodes/HardBreak.d.ts.map +0 -1
  324. package/dist/nodes/HardBreak.test.d.ts +0 -2
  325. package/dist/nodes/HardBreak.test.d.ts.map +0 -1
  326. package/dist/nodes/Heading.d.ts +0 -23
  327. package/dist/nodes/Heading.d.ts.map +0 -1
  328. package/dist/nodes/Heading.test.d.ts +0 -2
  329. package/dist/nodes/Heading.test.d.ts.map +0 -1
  330. package/dist/nodes/HorizontalRule.d.ts +0 -17
  331. package/dist/nodes/HorizontalRule.d.ts.map +0 -1
  332. package/dist/nodes/HorizontalRule.test.d.ts +0 -2
  333. package/dist/nodes/HorizontalRule.test.d.ts.map +0 -1
  334. package/dist/nodes/ListItem.d.ts +0 -16
  335. package/dist/nodes/ListItem.d.ts.map +0 -1
  336. package/dist/nodes/ListItem.test.d.ts +0 -2
  337. package/dist/nodes/ListItem.test.d.ts.map +0 -1
  338. package/dist/nodes/OrderedList.d.ts +0 -18
  339. package/dist/nodes/OrderedList.d.ts.map +0 -1
  340. package/dist/nodes/OrderedList.test.d.ts +0 -2
  341. package/dist/nodes/OrderedList.test.d.ts.map +0 -1
  342. package/dist/nodes/Paragraph.d.ts +0 -17
  343. package/dist/nodes/Paragraph.d.ts.map +0 -1
  344. package/dist/nodes/Paragraph.test.d.ts +0 -2
  345. package/dist/nodes/Paragraph.test.d.ts.map +0 -1
  346. package/dist/nodes/TaskItem.d.ts +0 -24
  347. package/dist/nodes/TaskItem.d.ts.map +0 -1
  348. package/dist/nodes/TaskItem.test.d.ts +0 -2
  349. package/dist/nodes/TaskItem.test.d.ts.map +0 -1
  350. package/dist/nodes/TaskList.d.ts +0 -18
  351. package/dist/nodes/TaskList.d.ts.map +0 -1
  352. package/dist/nodes/TaskList.test.d.ts +0 -2
  353. package/dist/nodes/TaskList.test.d.ts.map +0 -1
  354. package/dist/nodes/Text.d.ts +0 -9
  355. package/dist/nodes/Text.d.ts.map +0 -1
  356. package/dist/nodes/Text.test.d.ts +0 -2
  357. package/dist/nodes/Text.test.d.ts.map +0 -1
  358. package/dist/nodes/index.d.ts +0 -19
  359. package/dist/nodes/index.d.ts.map +0 -1
  360. package/dist/nodes/integration.test.d.ts +0 -7
  361. package/dist/nodes/integration.test.d.ts.map +0 -1
  362. package/dist/types/AttributeSpec.d.ts +0 -78
  363. package/dist/types/AttributeSpec.d.ts.map +0 -1
  364. package/dist/types/Commands.d.ts +0 -125
  365. package/dist/types/Commands.d.ts.map +0 -1
  366. package/dist/types/Content.d.ts +0 -40
  367. package/dist/types/Content.d.ts.map +0 -1
  368. package/dist/types/EditorEvents.d.ts +0 -131
  369. package/dist/types/EditorEvents.d.ts.map +0 -1
  370. package/dist/types/EditorOptions.d.ts +0 -139
  371. package/dist/types/EditorOptions.d.ts.map +0 -1
  372. package/dist/types/ExtensionConfig.d.ts +0 -271
  373. package/dist/types/ExtensionConfig.d.ts.map +0 -1
  374. package/dist/types/MarkConfig.d.ts +0 -206
  375. package/dist/types/MarkConfig.d.ts.map +0 -1
  376. package/dist/types/NodeConfig.d.ts +0 -263
  377. package/dist/types/NodeConfig.d.ts.map +0 -1
  378. package/dist/types/Toolbar.d.ts +0 -172
  379. package/dist/types/Toolbar.d.ts.map +0 -1
  380. package/dist/types/index.d.ts +0 -13
  381. package/dist/types/index.d.ts.map +0 -1
  382. package/dist/utils/inlineStyles.d.ts +0 -83
  383. package/dist/utils/inlineStyles.d.ts.map +0 -1
  384. package/dist/utils/inlineStyles.test.d.ts +0 -2
  385. package/dist/utils/inlineStyles.test.d.ts.map +0 -1
  386. package/dist/utils/positionFloating.d.ts +0 -74
  387. package/dist/utils/positionFloating.d.ts.map +0 -1
@@ -1,34 +0,0 @@
1
- /**
2
- * Text Input Rule Helper
3
- *
4
- * Creates input rules for simple text replacements (e.g. `--` to em dash).
5
- */
6
- import { InputRule } from '@domternal/pm/inputrules';
7
- export interface TextInputRuleOptions {
8
- /**
9
- * The regex pattern to match.
10
- */
11
- find: RegExp;
12
- /**
13
- * The replacement text.
14
- */
15
- replace: string;
16
- /**
17
- * Whether Backspace can undo this input rule immediately after it fires.
18
- * @default true
19
- */
20
- undoable?: boolean;
21
- }
22
- /**
23
- * Creates an input rule that replaces matched text with a string.
24
- *
25
- * @example
26
- * // `--` converts to em dash
27
- * textInputRule({ find: /--$/, replace: '\u2014' });
28
- *
29
- * @example
30
- * // Non-undoable replacement
31
- * textInputRule({ find: /->$/, replace: '\u2192', undoable: false });
32
- */
33
- export declare function textInputRule(options: TextInputRuleOptions): InputRule;
34
- //# sourceMappingURL=textInputRule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textInputRule.d.ts","sourceRoot":"","sources":["../../src/helpers/textInputRule.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAQtE"}
@@ -1,41 +0,0 @@
1
- /**
2
- * Textblock Type Input Rule Helper
3
- *
4
- * Drop-in replacement for ProseMirror's textblockTypeInputRule that exposes
5
- * the `undoable` option so extension authors can opt out of Backspace undo.
6
- */
7
- import { InputRule } from '@domternal/pm/inputrules';
8
- import type { NodeType, Attrs } from '@domternal/pm/model';
9
- export interface TextblockTypeInputRuleOptions {
10
- /**
11
- * The regex pattern to match. Should start with `^` so it only
12
- * fires at the start of a textblock.
13
- */
14
- find: RegExp;
15
- /**
16
- * The node type to change the textblock to.
17
- */
18
- type: NodeType;
19
- /**
20
- * Whether Backspace can undo this input rule immediately after it fires.
21
- * @default true
22
- */
23
- undoable?: boolean;
24
- /**
25
- * Node attributes, or a function that computes them from the match.
26
- */
27
- getAttributes?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
28
- }
29
- /**
30
- * Creates an input rule that changes the type of a textblock.
31
- *
32
- * @example
33
- * // `## ` at start of line converts to heading level 2
34
- * textblockTypeInputRule({
35
- * find: /^(#{1,4})\s$/,
36
- * type: schema.nodes.heading,
37
- * getAttributes: (match) => ({ level: match[1].length }),
38
- * });
39
- */
40
- export declare function textblockTypeInputRule(options: TextblockTypeInputRuleOptions): InputRule;
41
- //# sourceMappingURL=textblockTypeInputRule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textblockTypeInputRule.d.ts","sourceRoot":"","sources":["../../src/helpers/textblockTypeInputRule.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,gBAAgB,KAAK,KAAK,GAAG,IAAI,CAAC,CAAC;CAC5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,6BAA6B,GAAG,SAAS,CAexF"}
@@ -1,66 +0,0 @@
1
- /**
2
- * Wrapping Input Rule Helper
3
- *
4
- * Drop-in replacement for ProseMirror's wrappingInputRule that exposes
5
- * the `undoable` option so extension authors can opt out of Backspace undo.
6
- */
7
- import { InputRule } from '@domternal/pm/inputrules';
8
- import type { NodeType, Node, Attrs } from '@domternal/pm/model';
9
- import type { EditorState } from '@domternal/pm/state';
10
- export interface WrappingInputRuleOptions {
11
- /**
12
- * The regex pattern to match. Should start with `^` so it only
13
- * fires at the start of a textblock.
14
- */
15
- find: RegExp;
16
- /**
17
- * The node type to wrap in.
18
- */
19
- type: NodeType;
20
- /**
21
- * Whether Backspace can undo this input rule immediately after it fires.
22
- * @default true
23
- */
24
- undoable?: boolean;
25
- /**
26
- * Node attributes, or a function that computes them from the match.
27
- */
28
- getAttributes?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
29
- /**
30
- * Predicate that decides whether to join with an adjacent node of
31
- * the same type above the newly wrapped node.
32
- */
33
- joinPredicate?: (match: RegExpMatchArray, node: Node) => boolean;
34
- /**
35
- * Optional guard predicate. When provided, the rule only fires if
36
- * this returns true. Use this to prevent wrapping in certain contexts
37
- * (e.g. don't create a nested list inside an existing list item).
38
- */
39
- guard?: (state: EditorState) => boolean;
40
- }
41
- /**
42
- * Creates an input rule that wraps a textblock in a given node type.
43
- *
44
- * @example
45
- * // `> ` at start of line wraps in blockquote
46
- * wrappingInputRule({
47
- * find: /^\s*>\s$/,
48
- * type: schema.nodes.blockquote,
49
- * });
50
- *
51
- * @example
52
- * // Non-undoable wrapping rule
53
- * wrappingInputRule({
54
- * find: /^\s*>\s$/,
55
- * type: schema.nodes.blockquote,
56
- * undoable: false,
57
- * });
58
- */
59
- export declare function wrappingInputRule(options: WrappingInputRuleOptions): InputRule;
60
- /**
61
- * Guard predicate that prevents a wrapping input rule from firing
62
- * when the cursor is already inside a list item (listItem or taskItem).
63
- * Pass as the `guard` option to `wrappingInputRule`.
64
- */
65
- export declare function notInsideList(state: EditorState): boolean;
66
- //# sourceMappingURL=wrappingInputRule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrappingInputRule.d.ts","sourceRoot":"","sources":["../../src/helpers/wrappingInputRule.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,gBAAgB,KAAK,KAAK,GAAG,IAAI,CAAC,CAAC;IAE3E;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IAEjE;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,SAAS,CAuB9E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAOzD"}
@@ -1,2 +0,0 @@
1
- export { defaultIcons } from './phosphor.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IconSet } from '../types/Toolbar.js';
2
- export declare const defaultIcons: IconSet;
3
- //# sourceMappingURL=phosphor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"phosphor.d.ts","sourceRoot":"","sources":["../../src/icons/phosphor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,eAAO,MAAM,YAAY,EAAE,OAoJ1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,OAAO,UAAU,CAAC;AAG/B,YAAY,EAEV,aAAa,EACb,QAAQ,EACR,WAAW,EACX,OAAO,EACP,KAAK,EAEL,YAAY,EACZ,aAAa,EACb,aAAa,EAEb,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,eAAe,EAEf,aAAa,EACb,YAAY,EACZ,OAAO,EACP,WAAW,EACX,UAAU,EACV,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EAEvB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EAEf,aAAa,EACb,cAAc,EAEd,aAAa,EACb,mBAAmB,EACnB,UAAU,EAEV,aAAa,EACb,mBAAmB,EACnB,UAAU,EAEV,OAAO,EACP,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,gBA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,EACxB,qBAAqB,EACrB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EAEpC,UAAU,EACV,KAAK,iBAAiB,GACvB,MAAM,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
1
- /**
2
- * Bold Mark
3
- *
4
- * Applies bold formatting to text. Supports multiple HTML tags
5
- * and CSS font-weight styles.
6
- *
7
- * @example
8
- * ```ts
9
- * import { Bold } from '@domternal/core';
10
- *
11
- * const editor = new Editor({
12
- * extensions: [Document, Paragraph, Text, Bold],
13
- * });
14
- *
15
- * // Toggle bold with keyboard shortcut: Mod-b
16
- * // Or use input rule: **text**
17
- * ```
18
- */
19
- import { Mark } from '../Mark.js';
20
- /**
21
- * Options for the Bold mark
22
- */
23
- export interface BoldOptions {
24
- /**
25
- * HTML attributes to add to the rendered element
26
- */
27
- HTMLAttributes: Record<string, unknown>;
28
- }
29
- /**
30
- * Bold mark for text formatting
31
- */
32
- export declare const Bold: Mark<BoldOptions, unknown>;
33
- declare module '../types/Commands.js' {
34
- interface RawCommands {
35
- setBold: CommandSpec;
36
- unsetBold: CommandSpec;
37
- toggleBold: CommandSpec;
38
- }
39
- }
40
- //# sourceMappingURL=Bold.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bold.d.ts","sourceRoot":"","sources":["../../src/marks/Bold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,4BAgGf,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,OAAO,EAAE,WAAW,CAAC;QACrB,SAAS,EAAE,WAAW,CAAC;QACvB,UAAU,EAAE,WAAW,CAAC;KACzB;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Bold.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bold.test.d.ts","sourceRoot":"","sources":["../../src/marks/Bold.test.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
1
- /**
2
- * Code Mark
3
- *
4
- * Applies inline code formatting to text. This mark is exclusive,
5
- * meaning it cannot be combined with other marks like bold or italic.
6
- *
7
- * @example
8
- * ```ts
9
- * import { Code } from '@domternal/core';
10
- *
11
- * const editor = new Editor({
12
- * extensions: [Document, Paragraph, Text, Code],
13
- * });
14
- *
15
- * // Toggle code with keyboard shortcut: Mod-e
16
- * // Or use input rule: `text`
17
- * ```
18
- */
19
- import { Mark } from '../Mark.js';
20
- /**
21
- * Options for the Code mark
22
- */
23
- export interface CodeOptions {
24
- /**
25
- * HTML attributes to add to the rendered element
26
- */
27
- HTMLAttributes: Record<string, unknown>;
28
- }
29
- /**
30
- * Code mark for inline code formatting
31
- */
32
- export declare const Code: Mark<CodeOptions, unknown>;
33
- declare module '../types/Commands.js' {
34
- interface RawCommands {
35
- setCode: CommandSpec;
36
- unsetCode: CommandSpec;
37
- toggleCode: CommandSpec;
38
- }
39
- }
40
- //# sourceMappingURL=Code.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../src/marks/Code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,4BAwEf,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,OAAO,EAAE,WAAW,CAAC;QACrB,SAAS,EAAE,WAAW,CAAC;QACvB,UAAU,EAAE,WAAW,CAAC;KACzB;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Code.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Code.test.d.ts","sourceRoot":"","sources":["../../src/marks/Code.test.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
1
- /**
2
- * Italic Mark
3
- *
4
- * Applies italic formatting to text. Supports multiple HTML tags
5
- * and CSS font-style styles.
6
- *
7
- * @example
8
- * ```ts
9
- * import { Italic } from '@domternal/core';
10
- *
11
- * const editor = new Editor({
12
- * extensions: [Document, Paragraph, Text, Italic],
13
- * });
14
- *
15
- * // Toggle italic with keyboard shortcut: Mod-i
16
- * // Or use input rule: *text* or _text_
17
- * ```
18
- */
19
- import { Mark } from '../Mark.js';
20
- /**
21
- * Options for the Italic mark
22
- */
23
- export interface ItalicOptions {
24
- /**
25
- * HTML attributes to add to the rendered element
26
- */
27
- HTMLAttributes: Record<string, unknown>;
28
- }
29
- /**
30
- * Italic mark for text formatting
31
- */
32
- export declare const Italic: Mark<ItalicOptions, unknown>;
33
- declare module '../types/Commands.js' {
34
- interface RawCommands {
35
- setItalic: CommandSpec;
36
- unsetItalic: CommandSpec;
37
- toggleItalic: CommandSpec;
38
- }
39
- }
40
- //# sourceMappingURL=Italic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Italic.d.ts","sourceRoot":"","sources":["../../src/marks/Italic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,8BA6FjB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,SAAS,EAAE,WAAW,CAAC;QACvB,WAAW,EAAE,WAAW,CAAC;QACzB,YAAY,EAAE,WAAW,CAAC;KAC3B;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Italic.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Italic.test.d.ts","sourceRoot":"","sources":["../../src/marks/Italic.test.ts"],"names":[],"mappings":""}
@@ -1,75 +0,0 @@
1
- import { Mark } from '../Mark.js';
2
- /**
3
- * Options for the Link mark
4
- */
5
- export interface LinkOptions {
6
- /**
7
- * HTML attributes to add to the rendered element
8
- */
9
- HTMLAttributes: Record<string, unknown>;
10
- /**
11
- * List of allowed URL protocols
12
- * @default ['http:', 'https:', 'mailto:', 'tel:']
13
- */
14
- protocols: string[];
15
- /**
16
- * When to open links on click
17
- * - true: Open on click (when editable)
18
- * - false: Never open
19
- * - 'whenNotEditable': Only open when editor is read-only
20
- * @default true
21
- */
22
- openOnClick: boolean | 'whenNotEditable';
23
- /**
24
- * Whether to add rel="noopener noreferrer" to links
25
- * @default true
26
- */
27
- addRelNoopener: boolean;
28
- /**
29
- * Auto-convert typed URLs to links
30
- * @default true
31
- */
32
- autolink: boolean;
33
- /**
34
- * Convert pasted URLs to links (wraps selection or inserts as link)
35
- * @default true
36
- */
37
- linkOnPaste: boolean;
38
- /**
39
- * Default protocol for bare URLs (e.g., 'example.com' → 'https://example.com')
40
- * @default 'https'
41
- */
42
- defaultProtocol: string;
43
- /**
44
- * Custom validation for autolink
45
- * Return false to prevent auto-linking specific URLs
46
- */
47
- shouldAutoLink?: (url: string) => boolean;
48
- /**
49
- * Select the full link text range when clicking a link
50
- * @default false
51
- */
52
- enableClickSelection: boolean;
53
- }
54
- /**
55
- * Attributes for the Link mark
56
- */
57
- export interface LinkAttributes {
58
- href: string;
59
- target?: string | null;
60
- rel?: string | null;
61
- title?: string | null;
62
- class?: string | null;
63
- }
64
- /**
65
- * Link mark for hyperlinks
66
- */
67
- export declare const Link: Mark<LinkOptions, unknown>;
68
- declare module '../types/Commands.js' {
69
- interface RawCommands {
70
- setLink: CommandSpec<[attributes: LinkAttributes]>;
71
- unsetLink: CommandSpec;
72
- toggleLink: CommandSpec<[attributes: LinkAttributes]>;
73
- }
74
- }
75
- //# sourceMappingURL=Link.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/marks/Link.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAUlC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC;;;OAGG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,GAAG,iBAAiB,CAAC;IACzC;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C;;;OAGG;IACH,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,4BA6Sf,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,OAAO,EAAE,WAAW,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;QACnD,SAAS,EAAE,WAAW,CAAC;QACvB,UAAU,EAAE,WAAW,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;KACvD;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Link.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Link.test.d.ts","sourceRoot":"","sources":["../../src/marks/Link.test.ts"],"names":[],"mappings":""}
@@ -1,39 +0,0 @@
1
- /**
2
- * Strike Mark
3
- *
4
- * Applies strikethrough formatting to text.
5
- *
6
- * @example
7
- * ```ts
8
- * import { Strike } from '@domternal/core';
9
- *
10
- * const editor = new Editor({
11
- * extensions: [Document, Paragraph, Text, Strike],
12
- * });
13
- *
14
- * // Toggle strike with keyboard shortcut: Mod-Shift-s
15
- * // Or use input rule: ~~text~~
16
- * ```
17
- */
18
- import { Mark } from '../Mark.js';
19
- /**
20
- * Options for the Strike mark
21
- */
22
- export interface StrikeOptions {
23
- /**
24
- * HTML attributes to add to the rendered element
25
- */
26
- HTMLAttributes: Record<string, unknown>;
27
- }
28
- /**
29
- * Strike mark for text formatting
30
- */
31
- export declare const Strike: Mark<StrikeOptions, unknown>;
32
- declare module '../types/Commands.js' {
33
- interface RawCommands {
34
- setStrike: CommandSpec;
35
- unsetStrike: CommandSpec;
36
- toggleStrike: CommandSpec;
37
- }
38
- }
39
- //# sourceMappingURL=Strike.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Strike.d.ts","sourceRoot":"","sources":["../../src/marks/Strike.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,8BA4EjB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,SAAS,EAAE,WAAW,CAAC;QACvB,WAAW,EAAE,WAAW,CAAC;QACzB,YAAY,EAAE,WAAW,CAAC;KAC3B;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Strike.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Strike.test.d.ts","sourceRoot":"","sources":["../../src/marks/Strike.test.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /**
2
- * Subscript Mark
3
- *
4
- * Applies subscript formatting to text (e.g., H₂O).
5
- *
6
- * @example
7
- * ```ts
8
- * import { Subscript } from '@domternal/core';
9
- *
10
- * const editor = new Editor({
11
- * extensions: [Document, Paragraph, Text, Subscript],
12
- * });
13
- *
14
- * // Toggle subscript with keyboard shortcut: Mod-,
15
- * ```
16
- */
17
- import { Mark } from '../Mark.js';
18
- /**
19
- * Options for the Subscript mark
20
- */
21
- export interface SubscriptOptions {
22
- /**
23
- * HTML attributes to add to the rendered element
24
- */
25
- HTMLAttributes: Record<string, unknown>;
26
- }
27
- /**
28
- * Subscript mark for text formatting
29
- */
30
- export declare const Subscript: Mark<SubscriptOptions, unknown>;
31
- declare module '../types/Commands.js' {
32
- interface RawCommands {
33
- setSubscript: CommandSpec;
34
- unsetSubscript: CommandSpec;
35
- toggleSubscript: CommandSpec;
36
- }
37
- }
38
- //# sourceMappingURL=Subscript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Subscript.d.ts","sourceRoot":"","sources":["../../src/marks/Subscript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,iCAsEpB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC;QAC1B,cAAc,EAAE,WAAW,CAAC;QAC5B,eAAe,EAAE,WAAW,CAAC;KAC9B;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Subscript.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Subscript.test.d.ts","sourceRoot":"","sources":["../../src/marks/Subscript.test.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /**
2
- * Superscript Mark
3
- *
4
- * Applies superscript formatting to text (e.g., x²).
5
- *
6
- * @example
7
- * ```ts
8
- * import { Superscript } from '@domternal/core';
9
- *
10
- * const editor = new Editor({
11
- * extensions: [Document, Paragraph, Text, Superscript],
12
- * });
13
- *
14
- * // Toggle superscript with keyboard shortcut: Mod-.
15
- * ```
16
- */
17
- import { Mark } from '../Mark.js';
18
- /**
19
- * Options for the Superscript mark
20
- */
21
- export interface SuperscriptOptions {
22
- /**
23
- * HTML attributes to add to the rendered element
24
- */
25
- HTMLAttributes: Record<string, unknown>;
26
- }
27
- /**
28
- * Superscript mark for text formatting
29
- */
30
- export declare const Superscript: Mark<SuperscriptOptions, unknown>;
31
- declare module '../types/Commands.js' {
32
- interface RawCommands {
33
- setSuperscript: CommandSpec;
34
- unsetSuperscript: CommandSpec;
35
- toggleSuperscript: CommandSpec;
36
- }
37
- }
38
- //# sourceMappingURL=Superscript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Superscript.d.ts","sourceRoot":"","sources":["../../src/marks/Superscript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,mCAsEtB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,cAAc,EAAE,WAAW,CAAC;QAC5B,gBAAgB,EAAE,WAAW,CAAC;QAC9B,iBAAiB,EAAE,WAAW,CAAC;KAChC;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Superscript.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Superscript.test.d.ts","sourceRoot":"","sources":["../../src/marks/Superscript.test.ts"],"names":[],"mappings":""}
@@ -1,41 +0,0 @@
1
- /**
2
- * TextStyle Mark
3
- *
4
- * A "carrier mark" for inline text styling. This mark itself has no attributes,
5
- * but other extensions (TextColor, FontFamily, FontSize) can inject attributes
6
- * into it via addGlobalAttributes.
7
- *
8
- * @example
9
- * ```ts
10
- * import { TextStyle, TextColor, FontFamily } from '@domternal/core';
11
- *
12
- * const editor = new Editor({
13
- * extensions: [
14
- * // ... other extensions
15
- * TextStyle,
16
- * TextColor,
17
- * FontFamily.configure({ fontFamilies: ['Arial', 'Times New Roman'] }),
18
- * ],
19
- * });
20
- *
21
- * editor.commands.setTextColor('#ff0000');
22
- * editor.commands.setFontFamily('Arial');
23
- * ```
24
- */
25
- import { Mark } from '../Mark.js';
26
- export interface TextStyleOptions {
27
- /**
28
- * HTML attributes to add to the rendered element.
29
- * @default {}
30
- */
31
- HTMLAttributes: Record<string, unknown>;
32
- }
33
- export declare const TextStyle: Mark<TextStyleOptions, unknown>;
34
- declare module '../types/Commands.js' {
35
- interface RawCommands {
36
- setTextStyle: CommandSpec<[attributes: Record<string, unknown>]>;
37
- removeTextStyle: CommandSpec;
38
- removeEmptyTextStyle: CommandSpec;
39
- }
40
- }
41
- //# sourceMappingURL=TextStyle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextStyle.d.ts","sourceRoot":"","sources":["../../src/marks/TextStyle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,SAAS,iCAuHpB,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,WAAW;QACnB,YAAY,EAAE,WAAW,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QACjE,eAAe,EAAE,WAAW,CAAC;QAC7B,oBAAoB,EAAE,WAAW,CAAC;KACnC;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TextStyle.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextStyle.test.d.ts","sourceRoot":"","sources":["../../src/marks/TextStyle.test.ts"],"names":[],"mappings":""}