@witchcraft/editor 0.0.3 → 0.0.5

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 (416) hide show
  1. package/dist/module.d.cts +2 -0
  2. package/dist/module.d.mts +2 -15
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +13 -72
  5. package/dist/types.d.mts +12 -2
  6. package/package.json +228 -237
  7. package/src/module.ts +1 -2
  8. package/src/runtime/assets/handle-border-circles.svg +0 -0
  9. package/src/runtime/components/Editor.vue +0 -0
  10. package/src/runtime/pm/features/Blocks/components/ItemNodeView.vue +1 -1
  11. package/src/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue +0 -2
  12. package/src/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.vue +1 -3
  13. package/src/runtime/pm/features/Iframe/components/IframeNodeView.vue +0 -3
  14. package/src/runtime/pm/features/Link/components/BubbleMenuExternalLink.vue +0 -1
  15. package/src/runtime/pm/features/Link/components/BubbleMenuInternalLink.vue +1 -4
  16. package/src/runtime/pm/features/Link/components/BubbleMenuLinkActions.vue +0 -3
  17. package/src/runtime/pm/features/Menus/components/MarkMenuManager.vue +0 -1
  18. package/src/runtime/pm/schema.ts +0 -0
  19. package/src/runtime/pm/utils/createDropIndicator.ts +9 -3
  20. package/src/runtime/pm/utils/getElPropertyAsInt.ts +3 -0
  21. package/src/runtime/pm/utils/internal/debugSel.ts +0 -0
  22. package/src/runtime/pm/utils/internal/recurse.ts +0 -0
  23. package/dist/runtime/assets/base.css +0 -1
  24. package/dist/runtime/assets/handle-arrow.svg +0 -16
  25. package/dist/runtime/assets/handle-border-circles-single.svg +0 -44
  26. package/dist/runtime/assets/handle-border-circles.svg +0 -27
  27. package/dist/runtime/assets/handle-temp.svg +0 -1
  28. package/dist/runtime/assets/utils.css +0 -1
  29. package/dist/runtime/components/CodeBlockThemePicker.d.vue.ts +0 -12
  30. package/dist/runtime/components/CodeBlockThemePicker.vue +0 -123
  31. package/dist/runtime/components/CodeBlockThemePicker.vue.d.ts +0 -12
  32. package/dist/runtime/components/Commands.d.vue.ts +0 -10
  33. package/dist/runtime/components/Commands.vue +0 -60
  34. package/dist/runtime/components/Commands.vue.d.ts +0 -10
  35. package/dist/runtime/components/Editor.d.vue.ts +0 -40
  36. package/dist/runtime/components/Editor.vue +0 -208
  37. package/dist/runtime/components/Editor.vue.d.ts +0 -40
  38. package/dist/runtime/components/EditorDemoApp.d.vue.ts +0 -2
  39. package/dist/runtime/components/EditorDemoApp.vue +0 -104
  40. package/dist/runtime/components/EditorDemoApp.vue.d.ts +0 -2
  41. package/dist/runtime/components/EditorDemoControls.d.vue.ts +0 -12
  42. package/dist/runtime/components/EditorDemoControls.vue +0 -36
  43. package/dist/runtime/components/EditorDemoControls.vue.d.ts +0 -12
  44. package/dist/runtime/components/TestWrapper.d.vue.ts +0 -11
  45. package/dist/runtime/components/TestWrapper.vue +0 -63
  46. package/dist/runtime/components/TestWrapper.vue.d.ts +0 -11
  47. package/dist/runtime/composables/useEditor.d.ts +0 -9
  48. package/dist/runtime/composables/useEditor.js +0 -21
  49. package/dist/runtime/composables/useWindowDebugging.d.ts +0 -3
  50. package/dist/runtime/composables/useWindowDebugging.js +0 -16
  51. package/dist/runtime/demo/App.d.vue.ts +0 -2
  52. package/dist/runtime/demo/App.vue +0 -101
  53. package/dist/runtime/demo/App.vue.d.ts +0 -2
  54. package/dist/runtime/demo/README.md +0 -1
  55. package/dist/runtime/demo/main.d.ts +0 -1
  56. package/dist/runtime/demo/main.js +0 -4
  57. package/dist/runtime/demo/tailwind.css +0 -1
  58. package/dist/runtime/env.d.ts +0 -2
  59. package/dist/runtime/injectionKeys.d.ts +0 -6
  60. package/dist/runtime/injectionKeys.js +0 -3
  61. package/dist/runtime/main.lib.d.ts +0 -2
  62. package/dist/runtime/main.lib.js +0 -2
  63. package/dist/runtime/pm/commands/backspace.d.ts +0 -12
  64. package/dist/runtime/pm/commands/backspace.js +0 -26
  65. package/dist/runtime/pm/commands/changeAttrs.d.ts +0 -9
  66. package/dist/runtime/pm/commands/changeAttrs.js +0 -15
  67. package/dist/runtime/pm/commands/deleteSelection.d.ts +0 -9
  68. package/dist/runtime/pm/commands/deleteSelection.js +0 -8
  69. package/dist/runtime/pm/commands/enter.d.ts +0 -14
  70. package/dist/runtime/pm/commands/enter.js +0 -9
  71. package/dist/runtime/pm/commands/insertBreak.d.ts +0 -9
  72. package/dist/runtime/pm/commands/insertBreak.js +0 -22
  73. package/dist/runtime/pm/features/Base/Base.d.ts +0 -4
  74. package/dist/runtime/pm/features/Base/Base.js +0 -32
  75. package/dist/runtime/pm/features/Base/commands/deleteNodes.d.ts +0 -10
  76. package/dist/runtime/pm/features/Base/commands/deleteNodes.js +0 -29
  77. package/dist/runtime/pm/features/Base/commands/setCursorVisible.d.ts +0 -12
  78. package/dist/runtime/pm/features/Base/commands/setCursorVisible.js +0 -7
  79. package/dist/runtime/pm/features/Base/plugins/debugSelectionPlugin.d.ts +0 -9
  80. package/dist/runtime/pm/features/Base/plugins/debugSelectionPlugin.js +0 -48
  81. package/dist/runtime/pm/features/Base/plugins/isCursorVisiblePlugin.d.ts +0 -3
  82. package/dist/runtime/pm/features/Base/plugins/isCursorVisiblePlugin.js +0 -26
  83. package/dist/runtime/pm/features/Base/plugins/isUsingTouchPlugin.d.ts +0 -3
  84. package/dist/runtime/pm/features/Base/plugins/isUsingTouchPlugin.js +0 -38
  85. package/dist/runtime/pm/features/Base/plugins/selectingIndicator.d.ts +0 -5
  86. package/dist/runtime/pm/features/Base/plugins/selectingIndicator.js +0 -35
  87. package/dist/runtime/pm/features/Base/plugins/unfocusedSelectionIndicatorPlugin.d.ts +0 -33
  88. package/dist/runtime/pm/features/Base/plugins/unfocusedSelectionIndicatorPlugin.js +0 -66
  89. package/dist/runtime/pm/features/Base/types.d.ts +0 -3
  90. package/dist/runtime/pm/features/Base/types.js +0 -0
  91. package/dist/runtime/pm/features/BaseShortcuts/BaseShortcuts.d.ts +0 -3
  92. package/dist/runtime/pm/features/BaseShortcuts/BaseShortcuts.js +0 -34
  93. package/dist/runtime/pm/features/Blockquote/Blockquote.d.ts +0 -5
  94. package/dist/runtime/pm/features/Blockquote/Blockquote.js +0 -65
  95. package/dist/runtime/pm/features/Blockquote/commands/blockquoteEnter.d.ts +0 -11
  96. package/dist/runtime/pm/features/Blockquote/commands/blockquoteEnter.js +0 -31
  97. package/dist/runtime/pm/features/Blockquote/commands/blockquoteShiftEnter.d.ts +0 -11
  98. package/dist/runtime/pm/features/Blockquote/commands/blockquoteShiftEnter.js +0 -12
  99. package/dist/runtime/pm/features/Blocks/Blocks.d.ts +0 -2
  100. package/dist/runtime/pm/features/Blocks/Blocks.js +0 -2
  101. package/dist/runtime/pm/features/Blocks/Item.d.ts +0 -11
  102. package/dist/runtime/pm/features/Blocks/Item.js +0 -157
  103. package/dist/runtime/pm/features/Blocks/List.d.ts +0 -4
  104. package/dist/runtime/pm/features/Blocks/List.js +0 -59
  105. package/dist/runtime/pm/features/Blocks/commands/changeItemType.d.ts +0 -20
  106. package/dist/runtime/pm/features/Blocks/commands/changeItemType.js +0 -40
  107. package/dist/runtime/pm/features/Blocks/commands/changeTypeAttr.d.ts +0 -14
  108. package/dist/runtime/pm/features/Blocks/commands/changeTypeAttr.js +0 -28
  109. package/dist/runtime/pm/features/Blocks/commands/copyOrMoveItem.d.ts +0 -23
  110. package/dist/runtime/pm/features/Blocks/commands/copyOrMoveItem.js +0 -124
  111. package/dist/runtime/pm/features/Blocks/commands/deleteItem.d.ts +0 -12
  112. package/dist/runtime/pm/features/Blocks/commands/deleteItem.js +0 -8
  113. package/dist/runtime/pm/features/Blocks/commands/indentItem.d.ts +0 -12
  114. package/dist/runtime/pm/features/Blocks/commands/indentItem.js +0 -58
  115. package/dist/runtime/pm/features/Blocks/commands/itemMenuCommands.d.ts +0 -18
  116. package/dist/runtime/pm/features/Blocks/commands/itemMenuCommands.js +0 -40
  117. package/dist/runtime/pm/features/Blocks/commands/moveItem.d.ts +0 -12
  118. package/dist/runtime/pm/features/Blocks/commands/moveItem.js +0 -80
  119. package/dist/runtime/pm/features/Blocks/commands/setNode.d.ts +0 -20
  120. package/dist/runtime/pm/features/Blocks/commands/setNode.js +0 -87
  121. package/dist/runtime/pm/features/Blocks/commands/splitItem.d.ts +0 -17
  122. package/dist/runtime/pm/features/Blocks/commands/splitItem.js +0 -87
  123. package/dist/runtime/pm/features/Blocks/commands/unindentItem.d.ts +0 -12
  124. package/dist/runtime/pm/features/Blocks/commands/unindentItem.js +0 -42
  125. package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.d.vue.ts +0 -0
  126. package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.vue +0 -122
  127. package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.vue.d.ts +0 -0
  128. package/dist/runtime/pm/features/Blocks/components/ItemMenu.d.vue.ts +0 -6
  129. package/dist/runtime/pm/features/Blocks/components/ItemMenu.vue +0 -78
  130. package/dist/runtime/pm/features/Blocks/components/ItemMenu.vue.d.ts +0 -6
  131. package/dist/runtime/pm/features/Blocks/components/ItemNodeView.d.vue.ts +0 -92
  132. package/dist/runtime/pm/features/Blocks/components/ItemNodeView.vue +0 -350
  133. package/dist/runtime/pm/features/Blocks/components/ItemNodeView.vue.d.ts +0 -92
  134. package/dist/runtime/pm/features/Blocks/components/defaultItemMenu.d.ts +0 -5
  135. package/dist/runtime/pm/features/Blocks/components/defaultItemMenu.js +0 -42
  136. package/dist/runtime/pm/features/Blocks/composables/useDragWithThreshold.d.ts +0 -1
  137. package/dist/runtime/pm/features/Blocks/composables/useDragWithThreshold.js +0 -0
  138. package/dist/runtime/pm/features/Blocks/composables/useHandleHeight.d.ts +0 -5
  139. package/dist/runtime/pm/features/Blocks/composables/useHandleHeight.js +0 -22
  140. package/dist/runtime/pm/features/Blocks/composables/useHasChildren.d.ts +0 -5
  141. package/dist/runtime/pm/features/Blocks/composables/useHasChildren.js +0 -10
  142. package/dist/runtime/pm/features/Blocks/composables/useNodeStates.d.ts +0 -7
  143. package/dist/runtime/pm/features/Blocks/composables/useNodeStates.js +0 -20
  144. package/dist/runtime/pm/features/Blocks/itemMenuMenuItems.d.ts +0 -20
  145. package/dist/runtime/pm/features/Blocks/itemMenuMenuItems.js +0 -138
  146. package/dist/runtime/pm/features/Blocks/plugins/ensureLastItemIsContentPlugin.d.ts +0 -11
  147. package/dist/runtime/pm/features/Blocks/plugins/ensureLastItemIsContentPlugin.js +0 -36
  148. package/dist/runtime/pm/features/Blocks/plugins/itemBlockIdPlugin.d.ts +0 -8
  149. package/dist/runtime/pm/features/Blocks/plugins/itemBlockIdPlugin.js +0 -30
  150. package/dist/runtime/pm/features/Blocks/plugins/itemHasSingularSelectionPlugin.d.ts +0 -3
  151. package/dist/runtime/pm/features/Blocks/plugins/itemHasSingularSelectionPlugin.js +0 -30
  152. package/dist/runtime/pm/features/Blocks/plugins/itemMenuPlugin.d.ts +0 -4
  153. package/dist/runtime/pm/features/Blocks/plugins/itemMenuPlugin.js +0 -17
  154. package/dist/runtime/pm/features/Blocks/states/stateful.d.ts +0 -2
  155. package/dist/runtime/pm/features/Blocks/states/stateful.js +0 -37
  156. package/dist/runtime/pm/features/Blocks/states/task/cancelled.svg +0 -32
  157. package/dist/runtime/pm/features/Blocks/states/task/checked.svg +0 -27
  158. package/dist/runtime/pm/features/Blocks/states/task/checked2.svg +0 -24
  159. package/dist/runtime/pm/features/Blocks/states/task/partial.svg +0 -24
  160. package/dist/runtime/pm/features/Blocks/states/task/partial2.svg +0 -31
  161. package/dist/runtime/pm/features/Blocks/states/task/unchecked.svg +0 -20
  162. package/dist/runtime/pm/features/Blocks/types.d.ts +0 -43
  163. package/dist/runtime/pm/features/Blocks/types.js +0 -2
  164. package/dist/runtime/pm/features/Blocks/utils/createItemMenuCommandExecuter.d.ts +0 -3
  165. package/dist/runtime/pm/features/Blocks/utils/createItemMenuCommandExecuter.js +0 -24
  166. package/dist/runtime/pm/features/Blocks/utils/fixBlockIds.d.ts +0 -4
  167. package/dist/runtime/pm/features/Blocks/utils/fixBlockIds.js +0 -23
  168. package/dist/runtime/pm/features/Blocks/utils/isValidId.d.ts +0 -2
  169. package/dist/runtime/pm/features/Blocks/utils/isValidId.js +0 -7
  170. package/dist/runtime/pm/features/CodeBlock/CodeBlock.d.ts +0 -16
  171. package/dist/runtime/pm/features/CodeBlock/CodeBlock.js +0 -91
  172. package/dist/runtime/pm/features/CodeBlock/build/generateHighlightJsInfo.d.ts +0 -1
  173. package/dist/runtime/pm/features/CodeBlock/build/generateHighlightJsInfo.js +0 -63
  174. package/dist/runtime/pm/features/CodeBlock/commands/codeBlockEnterOrSplit.d.ts +0 -9
  175. package/dist/runtime/pm/features/CodeBlock/commands/codeBlockEnterOrSplit.js +0 -28
  176. package/dist/runtime/pm/features/CodeBlock/commands/codeBlockIndent.d.ts +0 -9
  177. package/dist/runtime/pm/features/CodeBlock/commands/codeBlockIndent.js +0 -39
  178. package/dist/runtime/pm/features/CodeBlock/commands/codeBlockUnindent.d.ts +0 -9
  179. package/dist/runtime/pm/features/CodeBlock/commands/codeBlockUnindent.js +0 -50
  180. package/dist/runtime/pm/features/CodeBlock/commands/focusCodeBlockLanguage.d.ts +0 -9
  181. package/dist/runtime/pm/features/CodeBlock/commands/focusCodeBlockLanguage.js +0 -27
  182. package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.d.vue.ts +0 -92
  183. package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.vue +0 -112
  184. package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.vue.d.ts +0 -92
  185. package/dist/runtime/pm/features/CodeBlock/composables/useAsyncCodeBlockHighlighting.d.ts +0 -28
  186. package/dist/runtime/pm/features/CodeBlock/composables/useAsyncCodeBlockHighlighting.js +0 -137
  187. package/dist/runtime/pm/features/CodeBlock/composables/useHighlightJsTheme.d.ts +0 -37
  188. package/dist/runtime/pm/features/CodeBlock/composables/useHighlightJsTheme.js +0 -101
  189. package/dist/runtime/pm/features/CodeBlock/highlightJsInfo.d.ts +0 -17
  190. package/dist/runtime/pm/features/CodeBlock/highlightJsInfo.js +0 -711
  191. package/dist/runtime/pm/features/CodeBlock/types.d.ts +0 -4
  192. package/dist/runtime/pm/features/CodeBlock/types.js +0 -2
  193. package/dist/runtime/pm/features/Collaboration/Collaboration.d.ts +0 -66
  194. package/dist/runtime/pm/features/Collaboration/Collaboration.js +0 -169
  195. package/dist/runtime/pm/features/CommandsMenus/CommandBar.d.ts +0 -19
  196. package/dist/runtime/pm/features/CommandsMenus/CommandBar.js +0 -97
  197. package/dist/runtime/pm/features/CommandsMenus/commandBarMenuItems.d.ts +0 -20
  198. package/dist/runtime/pm/features/CommandsMenus/commandBarMenuItems.js +0 -188
  199. package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.d.vue.ts +0 -8
  200. package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.vue +0 -58
  201. package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.vue.d.ts +0 -8
  202. package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.d.vue.ts +0 -12
  203. package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.vue +0 -42
  204. package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.vue.d.ts +0 -12
  205. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.d.vue.ts +0 -10
  206. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.vue +0 -55
  207. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.vue.d.ts +0 -10
  208. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.d.vue.ts +0 -11
  209. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.vue +0 -58
  210. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.vue.d.ts +0 -11
  211. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.d.vue.ts +0 -11
  212. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.vue +0 -54
  213. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.vue.d.ts +0 -11
  214. package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.d.vue.ts +0 -5
  215. package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.vue +0 -13
  216. package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.vue.d.ts +0 -5
  217. package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.d.vue.ts +0 -8
  218. package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.vue +0 -45
  219. package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.vue.d.ts +0 -8
  220. package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.d.vue.ts +0 -2
  221. package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.vue +0 -5
  222. package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.vue.d.ts +0 -2
  223. package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.d.vue.ts +0 -2
  224. package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.vue +0 -5
  225. package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.vue.d.ts +0 -2
  226. package/dist/runtime/pm/features/CommandsMenus/types.d.ts +0 -61
  227. package/dist/runtime/pm/features/CommandsMenus/types.js +0 -5
  228. package/dist/runtime/pm/features/CommandsMenus/utils/defaultCommandExecutor.d.ts +0 -3
  229. package/dist/runtime/pm/features/CommandsMenus/utils/defaultCommandExecutor.js +0 -11
  230. package/dist/runtime/pm/features/CommandsMenus/utils/findCommand.d.ts +0 -10
  231. package/dist/runtime/pm/features/CommandsMenus/utils/findCommand.js +0 -16
  232. package/dist/runtime/pm/features/CommandsMenus/utils/popupPositionModifier.d.ts +0 -5
  233. package/dist/runtime/pm/features/CommandsMenus/utils/popupPositionModifier.js +0 -9
  234. package/dist/runtime/pm/features/CommandsMenus/utils/popupVerticalPositioner.d.ts +0 -5
  235. package/dist/runtime/pm/features/CommandsMenus/utils/popupVerticalPositioner.js +0 -11
  236. package/dist/runtime/pm/features/Document/Document.d.ts +0 -3
  237. package/dist/runtime/pm/features/Document/Document.js +0 -6
  238. package/dist/runtime/pm/features/DocumentApi/DocumentApi.d.ts +0 -86
  239. package/dist/runtime/pm/features/DocumentApi/DocumentApi.js +0 -170
  240. package/dist/runtime/pm/features/DocumentApi/composables/useEditorContent.d.ts +0 -13
  241. package/dist/runtime/pm/features/DocumentApi/composables/useEditorContent.js +0 -76
  242. package/dist/runtime/pm/features/DocumentApi/composables/useTestDocumentApi.d.ts +0 -23
  243. package/dist/runtime/pm/features/DocumentApi/composables/useTestDocumentApi.js +0 -70
  244. package/dist/runtime/pm/features/DocumentApi/types.d.ts +0 -133
  245. package/dist/runtime/pm/features/DocumentApi/types.js +0 -1
  246. package/dist/runtime/pm/features/DocumentApi/utils/convertFullTransactionForPartialState.d.ts +0 -3
  247. package/dist/runtime/pm/features/DocumentApi/utils/convertFullTransactionForPartialState.js +0 -37
  248. package/dist/runtime/pm/features/DocumentApi/utils/convertTrForInstance.d.ts +0 -4
  249. package/dist/runtime/pm/features/DocumentApi/utils/convertTrForInstance.js +0 -13
  250. package/dist/runtime/pm/features/DocumentApi/utils/convertTransactionForFullState.d.ts +0 -2
  251. package/dist/runtime/pm/features/DocumentApi/utils/convertTransactionForFullState.js +0 -22
  252. package/dist/runtime/pm/features/DocumentApi/utils/copyMeta.d.ts +0 -2
  253. package/dist/runtime/pm/features/DocumentApi/utils/copyMeta.js +0 -6
  254. package/dist/runtime/pm/features/DocumentApi/utils/getEmbedJson.d.ts +0 -1
  255. package/dist/runtime/pm/features/DocumentApi/utils/getEmbedJson.js +0 -14
  256. package/dist/runtime/pm/features/DocumentApi/utils/getEmbedNodeFromDoc.d.ts +0 -1
  257. package/dist/runtime/pm/features/DocumentApi/utils/getEmbedNodeFromDoc.js +0 -14
  258. package/dist/runtime/pm/features/DocumentApi/utils/getStateEmbedRange.d.ts +0 -9
  259. package/dist/runtime/pm/features/DocumentApi/utils/getStateEmbedRange.js +0 -19
  260. package/dist/runtime/pm/features/DocumentApi/utils/isEmbedId.d.ts +0 -2
  261. package/dist/runtime/pm/features/DocumentApi/utils/isEmbedId.js +0 -3
  262. package/dist/runtime/pm/features/EmbeddedDocument/Embedded.d.ts +0 -24
  263. package/dist/runtime/pm/features/EmbeddedDocument/Embedded.js +0 -73
  264. package/dist/runtime/pm/features/EmbeddedDocument/EmbeddedDocument.d.ts +0 -23
  265. package/dist/runtime/pm/features/EmbeddedDocument/EmbeddedDocument.js +0 -70
  266. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.d.vue.ts +0 -14
  267. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue +0 -171
  268. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue.d.ts +0 -14
  269. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.d.vue.ts +0 -92
  270. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.vue +0 -172
  271. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.vue.d.ts +0 -92
  272. package/dist/runtime/pm/features/EmbeddedDocument/composables/useEmbeddedEditor.d.ts +0 -31
  273. package/dist/runtime/pm/features/EmbeddedDocument/composables/useEmbeddedEditor.js +0 -199
  274. package/dist/runtime/pm/features/EmbeddedDocument/types.d.ts +0 -49
  275. package/dist/runtime/pm/features/EmbeddedDocument/types.js +0 -6
  276. package/dist/runtime/pm/features/EmbeddedDocument/utils/isEmbeddedBlock.d.ts +0 -9
  277. package/dist/runtime/pm/features/EmbeddedDocument/utils/isEmbeddedBlock.js +0 -3
  278. package/dist/runtime/pm/features/EmbeddedDocument/utils/redirectFromEmbedded.d.ts +0 -28
  279. package/dist/runtime/pm/features/EmbeddedDocument/utils/redirectFromEmbedded.js +0 -17
  280. package/dist/runtime/pm/features/FileLoader/FileLoader.d.ts +0 -16
  281. package/dist/runtime/pm/features/FileLoader/FileLoader.js +0 -99
  282. package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/FileLoaderHandler.d.ts +0 -28
  283. package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/FileLoaderHandler.js +0 -69
  284. package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/TestFileLoaderHandler.d.ts +0 -11
  285. package/dist/runtime/pm/features/FileLoader/FileLoaderHandler/TestFileLoaderHandler.js +0 -49
  286. package/dist/runtime/pm/features/FileLoader/commands/insertFile.d.ts +0 -17
  287. package/dist/runtime/pm/features/FileLoader/commands/insertFile.js +0 -39
  288. package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.d.vue.ts +0 -92
  289. package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.vue +0 -38
  290. package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.vue.d.ts +0 -92
  291. package/dist/runtime/pm/features/FileLoader/plugins/fileLoaderPlugin.d.ts +0 -5
  292. package/dist/runtime/pm/features/FileLoader/plugins/fileLoaderPlugin.js +0 -61
  293. package/dist/runtime/pm/features/FileLoader/types.d.ts +0 -73
  294. package/dist/runtime/pm/features/FileLoader/types.js +0 -0
  295. package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNode.d.ts +0 -4
  296. package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNode.js +0 -27
  297. package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNodes.d.ts +0 -9
  298. package/dist/runtime/pm/features/FileLoader/utils/cleanupFileLoaderNodes.js +0 -22
  299. package/dist/runtime/pm/features/FileLoader/utils/findLoadingNodePos.d.ts +0 -2
  300. package/dist/runtime/pm/features/FileLoader/utils/findLoadingNodePos.js +0 -11
  301. package/dist/runtime/pm/features/FileLoader/utils/optionsCheck.d.ts +0 -3
  302. package/dist/runtime/pm/features/FileLoader/utils/optionsCheck.js +0 -8
  303. package/dist/runtime/pm/features/FileLoader/utils/readAsDataUrl.d.ts +0 -1
  304. package/dist/runtime/pm/features/FileLoader/utils/readAsDataUrl.js +0 -12
  305. package/dist/runtime/pm/features/HardBreak/HardBreak.d.ts +0 -5
  306. package/dist/runtime/pm/features/HardBreak/HardBreak.js +0 -14
  307. package/dist/runtime/pm/features/Heading/Heading.d.ts +0 -24
  308. package/dist/runtime/pm/features/Heading/Heading.js +0 -85
  309. package/dist/runtime/pm/features/Heading/commands/changeLevelAttr.d.ts +0 -16
  310. package/dist/runtime/pm/features/Heading/commands/changeLevelAttr.js +0 -33
  311. package/dist/runtime/pm/features/Heading/types.d.ts +0 -14
  312. package/dist/runtime/pm/features/Heading/types.js +0 -0
  313. package/dist/runtime/pm/features/Highlight/Highlight.d.ts +0 -72
  314. package/dist/runtime/pm/features/Highlight/Highlight.js +0 -163
  315. package/dist/runtime/pm/features/Highlight/retyped/tiptapHighlight.d.ts +0 -3
  316. package/dist/runtime/pm/features/Highlight/retyped/tiptapHighlight.js +0 -5
  317. package/dist/runtime/pm/features/Highlight/types.d.ts +0 -27
  318. package/dist/runtime/pm/features/Highlight/types.js +0 -2
  319. package/dist/runtime/pm/features/History/History.d.ts +0 -35
  320. package/dist/runtime/pm/features/History/History.js +0 -63
  321. package/dist/runtime/pm/features/Iframe/Iframe.d.ts +0 -21
  322. package/dist/runtime/pm/features/Iframe/Iframe.js +0 -127
  323. package/dist/runtime/pm/features/Iframe/IframeParsers.d.ts +0 -37
  324. package/dist/runtime/pm/features/Iframe/IframeParsers.js +0 -88
  325. package/dist/runtime/pm/features/Iframe/components/IframeNodeView.d.vue.ts +0 -92
  326. package/dist/runtime/pm/features/Iframe/components/IframeNodeView.vue +0 -82
  327. package/dist/runtime/pm/features/Iframe/components/IframeNodeView.vue.d.ts +0 -92
  328. package/dist/runtime/pm/features/Iframe/types.d.ts +0 -5
  329. package/dist/runtime/pm/features/Iframe/types.js +0 -0
  330. package/dist/runtime/pm/features/Image/Image.d.ts +0 -2
  331. package/dist/runtime/pm/features/Image/Image.js +0 -13
  332. package/dist/runtime/pm/features/Link/Link.d.ts +0 -38
  333. package/dist/runtime/pm/features/Link/Link.js +0 -241
  334. package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.d.vue.ts +0 -28
  335. package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.vue +0 -114
  336. package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.vue.d.ts +0 -28
  337. package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.d.vue.ts +0 -29
  338. package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.vue +0 -107
  339. package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.vue.d.ts +0 -29
  340. package/dist/runtime/pm/features/Link/components/BubbleMenuLink.d.vue.ts +0 -11
  341. package/dist/runtime/pm/features/Link/components/BubbleMenuLink.vue +0 -126
  342. package/dist/runtime/pm/features/Link/components/BubbleMenuLink.vue.d.ts +0 -11
  343. package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.d.vue.ts +0 -18
  344. package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.vue +0 -57
  345. package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.vue.d.ts +0 -18
  346. package/dist/runtime/pm/features/Link/types.d.ts +0 -44
  347. package/dist/runtime/pm/features/Link/types.js +0 -3
  348. package/dist/runtime/pm/features/Menus/Menus.d.ts +0 -45
  349. package/dist/runtime/pm/features/Menus/Menus.js +0 -142
  350. package/dist/runtime/pm/features/Menus/components/MarkMenuManager.d.vue.ts +0 -6
  351. package/dist/runtime/pm/features/Menus/components/MarkMenuManager.vue +0 -166
  352. package/dist/runtime/pm/features/Menus/components/MarkMenuManager.vue.d.ts +0 -6
  353. package/dist/runtime/pm/features/Menus/types.d.ts +0 -51
  354. package/dist/runtime/pm/features/Menus/types.js +0 -3
  355. package/dist/runtime/pm/features/Menus/utils/isMarkMenu.d.ts +0 -2
  356. package/dist/runtime/pm/features/Menus/utils/isMarkMenu.js +0 -3
  357. package/dist/runtime/pm/features/Tables/commands/tableEnter.d.ts +0 -15
  358. package/dist/runtime/pm/features/Tables/commands/tableEnter.js +0 -19
  359. package/dist/runtime/pm/features/Tables/index.d.ts +0 -9
  360. package/dist/runtime/pm/features/Tables/index.js +0 -44
  361. package/dist/runtime/pm/schema.d.ts +0 -4
  362. package/dist/runtime/pm/schema.js +0 -80
  363. package/dist/runtime/pm/testSchema.d.ts +0 -5
  364. package/dist/runtime/pm/testSchema.js +0 -30
  365. package/dist/runtime/pm/utils/createDropIndicator.d.ts +0 -23
  366. package/dist/runtime/pm/utils/createDropIndicator.js +0 -32
  367. package/dist/runtime/pm/utils/createStateOnlyPluginApply.d.ts +0 -2
  368. package/dist/runtime/pm/utils/createStateOnlyPluginApply.js +0 -9
  369. package/dist/runtime/pm/utils/createStateOnlyPluginObjApply.d.ts +0 -2
  370. package/dist/runtime/pm/utils/createStateOnlyPluginObjApply.js +0 -14
  371. package/dist/runtime/pm/utils/dropPointInfo.d.ts +0 -56
  372. package/dist/runtime/pm/utils/dropPointInfo.js +0 -28
  373. package/dist/runtime/pm/utils/findUpwards.d.ts +0 -20
  374. package/dist/runtime/pm/utils/findUpwards.js +0 -18
  375. package/dist/runtime/pm/utils/getChildChunks.d.ts +0 -3
  376. package/dist/runtime/pm/utils/getChildChunks.js +0 -15
  377. package/dist/runtime/pm/utils/getDiffReplacementRange.d.ts +0 -20
  378. package/dist/runtime/pm/utils/getDiffReplacementRange.js +0 -9
  379. package/dist/runtime/pm/utils/getElMaxVisualSize.d.ts +0 -9
  380. package/dist/runtime/pm/utils/getElMaxVisualSize.js +0 -7
  381. package/dist/runtime/pm/utils/getElPropertyAsInt.d.ts +0 -1
  382. package/dist/runtime/pm/utils/getElPropertyAsInt.js +0 -8
  383. package/dist/runtime/pm/utils/getGroupNodeNames.d.ts +0 -2
  384. package/dist/runtime/pm/utils/getGroupNodeNames.js +0 -7
  385. package/dist/runtime/pm/utils/getMarkPosition.d.ts +0 -11
  386. package/dist/runtime/pm/utils/getMarkPosition.js +0 -34
  387. package/dist/runtime/pm/utils/getMarksInSelection.d.ts +0 -3
  388. package/dist/runtime/pm/utils/getMarksInSelection.js +0 -16
  389. package/dist/runtime/pm/utils/getTypeByName.d.ts +0 -2
  390. package/dist/runtime/pm/utils/getTypeByName.js +0 -5
  391. package/dist/runtime/pm/utils/index.d.ts +0 -15
  392. package/dist/runtime/pm/utils/index.js +0 -15
  393. package/dist/runtime/pm/utils/internal/createNodeTypesList.d.ts +0 -2
  394. package/dist/runtime/pm/utils/internal/createNodeTypesList.js +0 -17
  395. package/dist/runtime/pm/utils/internal/debugMap.d.ts +0 -7
  396. package/dist/runtime/pm/utils/internal/debugMap.js +0 -24
  397. package/dist/runtime/pm/utils/internal/debugNode.d.ts +0 -2
  398. package/dist/runtime/pm/utils/internal/debugNode.js +0 -18
  399. package/dist/runtime/pm/utils/internal/debugSel.d.ts +0 -5
  400. package/dist/runtime/pm/utils/internal/debugSel.js +0 -8
  401. package/dist/runtime/pm/utils/internal/recurse.d.ts +0 -2
  402. package/dist/runtime/pm/utils/internal/recurse.js +0 -39
  403. package/dist/runtime/pm/utils/internal/stripBlockId.d.ts +0 -2
  404. package/dist/runtime/pm/utils/internal/stripBlockId.js +0 -9
  405. package/dist/runtime/pm/utils/mapSelection.d.ts +0 -8
  406. package/dist/runtime/pm/utils/mapSelection.js +0 -12
  407. package/dist/runtime/pm/utils/nodesBetween.d.ts +0 -21
  408. package/dist/runtime/pm/utils/nodesBetween.js +0 -21
  409. package/dist/runtime/pm/utils/pointToPmPoint.d.ts +0 -2
  410. package/dist/runtime/pm/utils/pointToPmPoint.js +0 -3
  411. package/dist/runtime/pm/utils/splitIntoChunks.d.ts +0 -32
  412. package/dist/runtime/pm/utils/splitIntoChunks.js +0 -31
  413. package/dist/runtime/testDocuments.d.ts +0 -53
  414. package/dist/runtime/testDocuments.js +0 -122
  415. package/dist/runtime/types/index.d.ts +0 -53
  416. package/dist/runtime/types/index.js +0 -9
@@ -0,0 +1,2 @@
1
+ export * from "/home/runner/work/editor/editor/src/module.js";
2
+ export { default } from "/home/runner/work/editor/editor/src/module.js";
package/dist/module.d.mts CHANGED
@@ -1,15 +1,2 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
-
3
- declare module "@nuxt/schema" {
4
- interface PublicRuntimeConfig {
5
- witchcraftEditor: {};
6
- }
7
- }
8
- interface ModuleOptions {
9
- /** @internal */
10
- _playgroundWorkaround?: boolean;
11
- }
12
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
13
-
14
- export { _default as default };
15
- export type { ModuleOptions };
1
+ export * from "/home/runner/work/editor/editor/src/module.js";
2
+ export { default } from "/home/runner/work/editor/editor/src/module.js";
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftEditor",
3
3
  "configKey": "witchcraftEditor",
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,77 +1,18 @@
1
- import { crop } from '@alanscodelog/utils';
2
- import { createResolver, defineNuxtModule, addComponentsDir, addImportsDir, addTemplate } from '@nuxt/kit';
3
- import { defu } from 'defu';
4
- import fs from 'node:fs/promises';
1
+ import { createJiti } from "file:///home/runner/work/editor/editor/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs";
5
2
 
6
- const dependencies = {
7
- "@witchcraft/ui": "^0.3.0"};
8
- const pkg = {
9
- dependencies: dependencies};
10
-
11
- const { resolve } = createResolver(import.meta.url);
12
- const module = defineNuxtModule({
13
- meta: {
14
- name: "witchcraftEditor",
15
- configKey: "witchcraftEditor"
16
- },
17
- defaults: {
18
- _playgroundWorkaround: false
3
+ const jiti = createJiti(import.meta.url, {
4
+ "interopDefault": true,
5
+ "alias": {
6
+ "@witchcraft/editor": "/home/runner/work/editor/editor"
19
7
  },
20
- moduleDependencies: {
21
- "@witchcraft/ui/nuxt": {
22
- version: pkg.dependencies["@witchcraft/ui"]
8
+ "transformOptions": {
9
+ "babel": {
10
+ "plugins": []
23
11
  }
24
- },
25
- async setup(options, nuxt) {
26
- nuxt.options.runtimeConfig.public.witchcraftEditor = defu(
27
- nuxt.options.runtimeConfig.public.witchcraftEditor,
28
- {}
29
- );
30
- addComponentsDir({ path: resolve("./runtime/components") });
31
- const pmFeatures = await fs.readdir(resolve("./runtime/pm/features"));
32
- for (const feature of pmFeatures) {
33
- nuxt.options.build.transpile.push(resolve(`./runtime/pm/features/${feature}/${feature}`));
34
- if (await fs.stat(resolve(`./runtime/pm/features/${feature}/components`)).then((_) => true).catch(() => false)) {
35
- addComponentsDir({ path: resolve(`./runtime/pm/features/${feature}/components`) });
36
- }
37
- if (await fs.stat(resolve(`./runtime/pm/features/${feature}/composables`)).then((_) => true).catch(() => false)) {
38
- addImportsDir(resolve(`./runtime/pm/features/${feature}/composables`));
39
- }
40
- }
41
- addTemplate({
42
- filename: "witchcraft-editor.css",
43
- write: true,
44
- getContents: () => options._playgroundWorkaround ? crop`
45
- @import "${resolve("./runtime/assets/base.css")}";
46
- @import "${resolve("./runtime/assets/utils.css")}";
47
- @source "${resolve("./runtime/components")}";
48
- @source "${resolve("./runtime/pm")}";
49
- ` : crop`
50
- @import "@witchcraft/editor/base.css";
51
- @import "@witchcraft/editor/utils.css";
52
- @source "${resolve("./runtime/components")}";
53
- @source "${resolve("./runtime/pm")}";
54
- `
55
- });
56
- addImportsDir(resolve("./runtime/composables"));
57
- nuxt.options.typescript = nuxt.options.typescript || {};
58
- nuxt.options.typescript.hoist = nuxt.options.typescript.hoist || [];
59
- nuxt.options.alias["#witchcraft-editor"] = resolve("./runtime");
60
- nuxt.options.alias["#witchcraft-pm"] = resolve("./runtime/pm");
61
- nuxt.options.build.transpile.push("@tiptap/vue-3");
62
- nuxt.options.build.transpile.push("@tiptap/pm");
63
- nuxt.hook("vite:extendConfig", (config) => {
64
- config.optimizeDeps ??= {};
65
- config.optimizeDeps.exclude ??= [];
66
- config.optimizeDeps.exclude.push("@witchcraft/editor/pm/features/CodeBlock/composables/useHighlightJsTheme");
67
- config.optimizeDeps.exclude.push("@witchcraft/editor/pm/features/CodeBlock/composables/useAsyncCodeBlockHighlight");
68
- config.optimizeDeps.exclude.push("@tiptap/vue-3");
69
- config.optimizeDeps.exclude.push("@tiptap/pm");
70
- config.optimizeDeps.include ??= [];
71
- config.optimizeDeps.include.push("highlight.js/lib/core");
72
- config.optimizeDeps.include.push("@witchcraft/editor > highlight.js/lib/core");
73
- });
74
12
  }
75
- });
13
+ })
14
+
15
+ /** @type {import("/home/runner/work/editor/editor/src/module.js")} */
16
+ const _module = await jiti.import("/home/runner/work/editor/editor/src/module.ts");
76
17
 
77
- export { module as default };
18
+ export default _module?.default ?? _module;
package/dist/types.d.mts CHANGED
@@ -1,3 +1,13 @@
1
- export { default } from './module.mjs'
1
+ import type { ModuleHooks, ModuleRuntimeHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module.mjs'
2
2
 
3
- export { type ModuleOptions } from './module.mjs'
3
+ declare module '#app' {
4
+ interface RuntimeNuxtHooks extends ModuleRuntimeHooks {}
5
+ }
6
+
7
+ declare module '@nuxt/schema' {
8
+ interface NuxtHooks extends ModuleHooks {}
9
+ interface RuntimeConfig extends ModuleRuntimeConfig {}
10
+ interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
11
+ }
12
+
13
+ export * from "./module.mjs"
package/package.json CHANGED
@@ -1,238 +1,229 @@
1
1
  {
2
- "name": "@witchcraft/editor",
3
- "description": "Block base prosemirror editor with partial/full editable document embeds, infinite embeds, and document uploads.",
4
- "version": "0.0.3",
5
- "main": "./dist/runtime/main.lib.js",
6
- "type": "module",
7
- "sideEffects": false,
8
- "exports": {
9
- ".": {
10
- "types": "./dist/runtime/main.lib.d.ts",
11
- "import": "./dist/runtime/main.lib.js"
12
- },
13
- "./*": {
14
- "types": "./dist/runtime/*.d.ts",
15
- "import": "./dist/runtime/*.js"
16
- },
17
- "./assets/*": {
18
- "import": "./dist/runtime/assets/*"
19
- },
20
- "./components/*": {
21
- "types": "./dist/runtime/components/*/*.vue.d.ts",
22
- "import": "./dist/runtime/components/*/*.vue"
23
- },
24
- "./composables/*": {
25
- "types": "./dist/runtime/composables/*.d.ts",
26
- "import": "./dist/runtime/composables/*.js"
27
- },
28
- "./pm/features/Blocks/components/*": {
29
- "types": "./dist/runtime/pm/features/Blocks/components/*.vue.d.ts",
30
- "import": "./dist/runtime/pm/features/Blocks/components/*.vue"
31
- },
32
- "./pm/features/CodeBlock/components/*": {
33
- "types": "./dist/runtime/pm/features/CodeBlock/components/*.vue.d.ts",
34
- "import": "./dist/runtime/pm/features/CodeBlock/components/*.vue"
35
- },
36
- "./pm/features/EmbeddedDocument/components/*": {
37
- "types": "./dist/runtime/pm/features/EmbeddedDocument/components/*.vue.d.ts",
38
- "import": "./dist/runtime/pm/features/EmbeddedDocument/components/*.vue"
39
- },
40
- "./pm/features/FileLoader/components/*": {
41
- "types": "./dist/runtime/pm/features/FileLoader/components/*.vue.d.ts",
42
- "import": "./dist/runtime/pm/features/FileLoader/components/*.vue"
43
- },
44
- "./pm/features/Iframe/components/*": {
45
- "types": "./dist/runtime/pm/features/Iframe/components/*.vue.d.ts",
46
- "import": "./dist/runtime/pm/features/Iframe/components/*.vue"
47
- },
48
- "./pm/features/Menus/components/*": {
49
- "types": "./dist/runtime/pm/features/Menus/components/*.vue.d.ts",
50
- "import": "./dist/runtime/pm/features/Menus/components/*.vue"
51
- },
52
- "./pm/*": {
53
- "types": "./dist/runtime/pm/*.d.ts",
54
- "import": "./dist/runtime/pm/*.js"
55
- },
56
- "./nuxt": {
57
- "import": "./dist/module.mjs"
58
- },
59
- "./base.css": "./src/runtime/assets/base.css",
60
- "./utils.css": "./src/runtime/assets/utils.css",
61
- "./@types/*": "./@types/*"
62
- },
63
- "unbuild": {
64
- "failOnWarn": false
65
- },
66
- "scripts": {
67
- "//prepare": "echo Needed so that if we pull the package from git it will get built and installed properly.",
68
- "prepare": "husky && pnpm build",
69
- "build:only": "nuxt-module-build build",
70
- "build": "pnpm gen:highlightJsLangInfo && nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
71
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
72
- "dev": "nuxi dev playground",
73
- "//dev:vite": "The module needs to be build, not stubbed, for vite's dev to work.",
74
- "dev:vite": "concurrently \"pnpm build\" \"vite --mode development --config vite.config.ts\"",
75
- "lint:eslint": "eslint \"{src,tests,playground/app}/**/*.{cjs,js,ts,vue}\" \"*.{cjs,js,ts}\" --max-warnings=0 --report-unused-disable-directives",
76
- "lint:commits": "commitlint --from $(git rev-list --max-parents=0 HEAD) --to HEAD --verbose",
77
- "lint:imports": "echo not working madge --circular --extensions ts ./src",
78
- "lint": "pnpm lint:eslint && pnpm lint:types && pnpm lint:imports",
79
- "lint:types": "vue-tsc --noEmit",
80
- "test": "vitest",
81
- "test:watch": "vitest --watch",
82
- "doc": "typedoc",
83
- "doc:watch": "onchange -i \"src/**/*.ts\" \"typedoc.config.js\" -- pnpm doc",
84
- "doc:serve": "http-server docs --port=5001",
85
- "doc:dev": "concurrently \"pnpm doc:watch\" \"pnpm doc:serve\"",
86
- "doc:check-invalid": "typedoc --listInvalidSymbolLinks",
87
- "//actions:debug": "echo For debugging github build action locally with nektos/act. Requires act and docker. Note: Cache will never work locally because of https://github.com/nektos/act/issues/285",
88
- "actions:debug": "act -r -v -j release",
89
- "gen:highlightJsLangInfo": "node src/runtime/pm/features/CodeBlock/build/generateHighlightJsInfo.js"
90
- },
91
- "pnpm": {
92
- "overrides": {
93
- "@tiptap/pm": "^3.4.2",
94
- "@tiptap/vue-3": "^3.4.2",
95
- "@tiptap/core": "^3.4.2"
96
- }
97
- },
98
- "peerDependencies": {
99
- "@tiptap/core": "^3.4.2",
100
- "@tiptap/extension-blockquote": "^3.4.2",
101
- "@tiptap/extension-bold": "^3.4.2",
102
- "@tiptap/extension-code": "^3.4.2",
103
- "@tiptap/extension-code-block": "^3.4.2",
104
- "@tiptap/extension-code-block-lowlight": "^3.4.2",
105
- "@tiptap/extension-dropcursor": "^3.4.2",
106
- "@tiptap/extension-gapcursor": "^3.4.2",
107
- "@tiptap/extension-hard-break": "^3.4.2",
108
- "@tiptap/extension-heading": "^3.4.2",
109
- "@tiptap/extension-highlight": "^3.4.2",
110
- "@tiptap/extension-history": "^3.4.2",
111
- "@tiptap/extension-image": "^3.4.2",
112
- "@tiptap/extension-italic": "^3.4.2",
113
- "@tiptap/extension-link": "^3.4.2",
114
- "@tiptap/extension-paragraph": "^3.4.2",
115
- "@tiptap/extension-strike": "^3.4.2",
116
- "@tiptap/extension-subscript": "^3.4.2",
117
- "@tiptap/extension-superscript": "^3.4.2",
118
- "@tiptap/extension-table": "^3.4.2",
119
- "@tiptap/extension-table-cell": "^3.4.2",
120
- "@tiptap/extension-table-header": "^3.4.2",
121
- "@tiptap/extension-table-row": "^3.4.2",
122
- "@tiptap/extension-text": "^3.4.2",
123
- "@tiptap/extension-underline": "^3.4.2",
124
- "@tiptap/pm": "^3.4.2",
125
- "@tiptap/vue-3": "^3.4.2",
126
- "@witchcraft/ui": "^0.3.0",
127
- "tailwindcss": "^4.0.0",
128
- "vue": "^3.2.47"
129
- },
130
- "peerDependenciesMeta": {
131
- "@witchcraft/ui": {
132
- "optional": false
133
- },
134
- "tailwindcss": {
135
- "optional": false
136
- },
137
- "vue": {
138
- "optional": false
139
- }
140
- },
141
- "dependencies": {
142
- "@alanscodelog/eslint-config": "^6.3.1",
143
- "@alanscodelog/utils": "^6.0.2",
144
- "@commitlint/cli": "^19.8.1",
145
- "@fortawesome/fontawesome-svg-core": "^7.0.1",
146
- "@fortawesome/free-brands-svg-icons": "^7.0.1",
147
- "@fortawesome/free-regular-svg-icons": "^7.0.1",
148
- "@fortawesome/free-solid-svg-icons": "^7.0.1",
149
- "@nuxt/eslint-config": "^1.9.0",
150
- "@witchcraft/nuxt-utils": "^0.3.2",
151
- "@witchcraft/ui": "^0.3.0",
152
- "colord": "^2.9.3",
153
- "defu": "^6.1.4",
154
- "highlight.js": "^11.11.1",
155
- "lowlight": "^3.3.0",
156
- "metamorphosis": "^0.6.1",
157
- "mime": "^4.1.0",
158
- "nanoid": "^5.1.5",
159
- "reka-ui": "^2.5.0",
160
- "tailwind-merge": "^3.3.1",
161
- "unplugin-vue-components": "^29.1.0",
162
- "uuid": "^13.0.0",
163
- "y-prosemirror": "^1.3.7",
164
- "yjs": "^13.6.27"
165
- },
166
- "devDependencies": {
167
- "@alanscodelog/commitlint-config": "^3.1.2",
168
- "@alanscodelog/semantic-release-config": "^5.0.4",
169
- "@alanscodelog/tsconfigs": "^6.2.0",
170
- "@alanscodelog/vite-config": "^0.0.6",
171
- "@iconify/json": "^2.2.385",
172
- "@nuxt/kit": "^4.1.2",
173
- "@nuxt/module-builder": "^1.0.2",
174
- "@nuxt/schema": "^4.1.2",
175
- "@nuxt/types": "^2.18.1",
176
- "@playwright/test": "^1.54.0",
177
- "@rollup/plugin-dynamic-import-vars": "^2.1.5",
178
- "@tailwindcss/cli": "^4.1.13",
179
- "@tailwindcss/vite": "^4.1.13",
180
- "@testing-library/vue": "^8.1.0",
181
- "@types/node": "^24.5.1",
182
- "@vitejs/plugin-vue": "^6.0.1",
183
- "@vitest/browser": "^3.2.4",
184
- "@vitest/coverage-v8": "^3.2.4",
185
- "@witchcraft/ui": "^0.3.0",
186
- "concurrently": "^9.2.1",
187
- "cross-env": "^10.0.0",
188
- "eslint": "^9.35.0",
189
- "fast-glob": "^3.3.3",
190
- "http-server": "^14.1.1",
191
- "husky": "^9.1.7",
192
- "madge": "^8.0.0",
193
- "nuxt": "^4.1.2",
194
- "onchange": "^7.1.0",
195
- "playwright": "^1.54.0",
196
- "playwright-core": "^1.54.0",
197
- "prosemirror-test-builder": "^1.1.1",
198
- "radix-vue": "^1.9.17",
199
- "semantic-release": "^24.2.8",
200
- "tailwindcss": "^4.1.13",
201
- "typedoc": "^0.28.13",
202
- "typescript": "~5.9.2",
203
- "unplugin-icons": "^22.3.0",
204
- "vite": "^7.1.5",
205
- "vitest": "^3.2.4",
206
- "vue": "^3.5.21",
207
- "vue-component-type-helpers": "^3.0.7",
208
- "vue-tsc": "^2.2.12"
209
- },
210
- "author": "Alan <alanscodelog@gmail.com>",
211
- "repository": "https://github.com/witchcraftjs/editor",
212
- "license": "MIT",
213
- "files": [
214
- "src",
215
- "dist",
216
- "@types"
217
- ],
218
- "release": {
219
- "extends": [
220
- "@alanscodelog/semantic-release-config"
221
- ]
222
- },
223
- "commitlint": {
224
- "extends": [
225
- "@alanscodelog"
226
- ]
227
- },
228
- "browserslist": "defaults and supports es6-module,maintained node versions",
229
- "engines": {
230
- "node": ">=20.0.0"
231
- },
232
- "@comments": {
233
- "vue-tsc": "Do not upgrade to 3.0, #awaiting https://github.com/vuejs/language-tools/issues/5644"
234
- },
235
- "publishConfig": {
236
- "access": "public"
237
- }
238
- }
2
+ "name": "@witchcraft/editor",
3
+ "description": "Block base prosemirror editor with partial/full editable document embeds, infinite embeds, and document uploads.",
4
+ "version": "0.0.5",
5
+ "main": "./dist/runtime/main.lib.js",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/runtime/main.lib.d.ts",
11
+ "import": "./dist/runtime/main.lib.js"
12
+ },
13
+ "./*": {
14
+ "types": "./dist/runtime/*.d.ts",
15
+ "import": "./dist/runtime/*.js"
16
+ },
17
+ "./assets/*": {
18
+ "import": "./dist/runtime/assets/*"
19
+ },
20
+ "./components/*": {
21
+ "types": "./dist/runtime/components/*/*.vue.d.ts",
22
+ "import": "./dist/runtime/components/*/*.vue"
23
+ },
24
+ "./composables/*": {
25
+ "types": "./dist/runtime/composables/*.d.ts",
26
+ "import": "./dist/runtime/composables/*.js"
27
+ },
28
+ "./pm/features/Blocks/components/*": {
29
+ "types": "./dist/runtime/pm/features/Blocks/components/*.vue.d.ts",
30
+ "import": "./dist/runtime/pm/features/Blocks/components/*.vue"
31
+ },
32
+ "./pm/features/CodeBlock/components/*": {
33
+ "types": "./dist/runtime/pm/features/CodeBlock/components/*.vue.d.ts",
34
+ "import": "./dist/runtime/pm/features/CodeBlock/components/*.vue"
35
+ },
36
+ "./pm/features/EmbeddedDocument/components/*": {
37
+ "types": "./dist/runtime/pm/features/EmbeddedDocument/components/*.vue.d.ts",
38
+ "import": "./dist/runtime/pm/features/EmbeddedDocument/components/*.vue"
39
+ },
40
+ "./pm/features/FileLoader/components/*": {
41
+ "types": "./dist/runtime/pm/features/FileLoader/components/*.vue.d.ts",
42
+ "import": "./dist/runtime/pm/features/FileLoader/components/*.vue"
43
+ },
44
+ "./pm/features/Iframe/components/*": {
45
+ "types": "./dist/runtime/pm/features/Iframe/components/*.vue.d.ts",
46
+ "import": "./dist/runtime/pm/features/Iframe/components/*.vue"
47
+ },
48
+ "./pm/features/Menus/components/*": {
49
+ "types": "./dist/runtime/pm/features/Menus/components/*.vue.d.ts",
50
+ "import": "./dist/runtime/pm/features/Menus/components/*.vue"
51
+ },
52
+ "./pm/*": {
53
+ "types": "./dist/runtime/pm/*.d.ts",
54
+ "import": "./dist/runtime/pm/*.js"
55
+ },
56
+ "./nuxt": {
57
+ "import": "./dist/module.mjs"
58
+ },
59
+ "./base.css": "./src/runtime/assets/base.css",
60
+ "./utils.css": "./src/runtime/assets/utils.css",
61
+ "./@types/*": "./@types/*"
62
+ },
63
+ "unbuild": {
64
+ "failOnWarn": false
65
+ },
66
+ "peerDependencies": {
67
+ "@tiptap/core": "^3.4.2",
68
+ "@tiptap/extension-blockquote": "^3.4.2",
69
+ "@tiptap/extension-bold": "^3.4.2",
70
+ "@tiptap/extension-code": "^3.4.2",
71
+ "@tiptap/extension-code-block": "^3.4.2",
72
+ "@tiptap/extension-code-block-lowlight": "^3.4.2",
73
+ "@tiptap/extension-dropcursor": "^3.4.2",
74
+ "@tiptap/extension-gapcursor": "^3.4.2",
75
+ "@tiptap/extension-hard-break": "^3.4.2",
76
+ "@tiptap/extension-heading": "^3.4.2",
77
+ "@tiptap/extension-highlight": "^3.4.2",
78
+ "@tiptap/extension-history": "^3.4.2",
79
+ "@tiptap/extension-image": "^3.4.2",
80
+ "@tiptap/extension-italic": "^3.4.2",
81
+ "@tiptap/extension-link": "^3.4.2",
82
+ "@tiptap/extension-paragraph": "^3.4.2",
83
+ "@tiptap/extension-strike": "^3.4.2",
84
+ "@tiptap/extension-subscript": "^3.4.2",
85
+ "@tiptap/extension-superscript": "^3.4.2",
86
+ "@tiptap/extension-table": "^3.4.2",
87
+ "@tiptap/extension-table-cell": "^3.4.2",
88
+ "@tiptap/extension-table-header": "^3.4.2",
89
+ "@tiptap/extension-table-row": "^3.4.2",
90
+ "@tiptap/extension-text": "^3.4.2",
91
+ "@tiptap/extension-underline": "^3.4.2",
92
+ "@tiptap/pm": "^3.4.2",
93
+ "@tiptap/vue-3": "^3.4.2",
94
+ "@witchcraft/ui": "^0.3.2",
95
+ "tailwindcss": "^4.1.13",
96
+ "vue": "^3.5.21"
97
+ },
98
+ "peerDependenciesMeta": {
99
+ "@witchcraft/ui": {
100
+ "optional": false
101
+ },
102
+ "tailwindcss": {
103
+ "optional": false
104
+ },
105
+ "vue": {
106
+ "optional": false
107
+ }
108
+ },
109
+ "dependencies": {
110
+ "@alanscodelog/eslint-config": "^6.3.1",
111
+ "@alanscodelog/utils": "^6.0.2",
112
+ "@commitlint/cli": "^19.8.1",
113
+ "@fortawesome/fontawesome-svg-core": "^7.0.1",
114
+ "@fortawesome/free-brands-svg-icons": "^7.0.1",
115
+ "@fortawesome/free-regular-svg-icons": "^7.0.1",
116
+ "@fortawesome/free-solid-svg-icons": "^7.0.1",
117
+ "@nuxt/eslint-config": "^1.9.0",
118
+ "@witchcraft/nuxt-utils": "^0.3.2",
119
+ "@witchcraft/ui": "^0.3.2",
120
+ "colord": "^2.9.3",
121
+ "defu": "^6.1.4",
122
+ "highlight.js": "^11.11.1",
123
+ "lowlight": "^3.3.0",
124
+ "metamorphosis": "^0.6.1",
125
+ "mime": "^4.1.0",
126
+ "nanoid": "^5.1.5",
127
+ "reka-ui": "^2.5.0",
128
+ "tailwind-merge": "^3.3.1",
129
+ "unplugin-vue-components": "^29.1.0",
130
+ "uuid": "^13.0.0",
131
+ "y-prosemirror": "^1.3.7",
132
+ "yjs": "^13.6.27"
133
+ },
134
+ "devDependencies": {
135
+ "@alanscodelog/commitlint-config": "^3.1.2",
136
+ "@alanscodelog/semantic-release-config": "^6.0.0",
137
+ "@alanscodelog/tsconfigs": "^6.2.0",
138
+ "@alanscodelog/vite-config": "^0.0.6",
139
+ "@iconify/json": "^2.2.385",
140
+ "@nuxt/kit": "^4.1.2",
141
+ "@nuxt/module-builder": "^1.0.2",
142
+ "@nuxt/schema": "^4.1.2",
143
+ "@nuxt/types": "^2.18.1",
144
+ "@playwright/test": "^1.54.0",
145
+ "@rollup/plugin-dynamic-import-vars": "^2.1.5",
146
+ "@tailwindcss/cli": "^4.1.13",
147
+ "@tailwindcss/vite": "^4.1.13",
148
+ "@testing-library/vue": "^8.1.0",
149
+ "@types/node": "^24.5.1",
150
+ "@vitejs/plugin-vue": "^6.0.1",
151
+ "@vitest/browser": "^3.2.4",
152
+ "@vitest/coverage-v8": "^3.2.4",
153
+ "@witchcraft/ui": "^0.3.2",
154
+ "concurrently": "^9.2.1",
155
+ "cross-env": "^10.0.0",
156
+ "eslint": "^9.35.0",
157
+ "fast-glob": "^3.3.3",
158
+ "http-server": "^14.1.1",
159
+ "husky": "^9.1.7",
160
+ "madge": "^8.0.0",
161
+ "nuxt": "^4.1.2",
162
+ "onchange": "^7.1.0",
163
+ "playwright": "^1.54.0",
164
+ "playwright-core": "^1.54.0",
165
+ "prosemirror-test-builder": "^1.1.1",
166
+ "radix-vue": "^1.9.17",
167
+ "semantic-release": "^24.2.8",
168
+ "tailwindcss": "^4.1.13",
169
+ "typedoc": "^0.28.13",
170
+ "typescript": "~5.9.2",
171
+ "unplugin-icons": "^22.3.0",
172
+ "vite": "^7.1.5",
173
+ "vitest": "^3.2.4",
174
+ "vue": "^3.5.21",
175
+ "vue-component-type-helpers": "^3.0.7",
176
+ "vue-tsc": "^2.2.12"
177
+ },
178
+ "author": "Alan <alanscodelog@gmail.com>",
179
+ "repository": "https://github.com/witchcraftjs/editor",
180
+ "license": "MIT",
181
+ "files": [
182
+ "src",
183
+ "dist",
184
+ "@types"
185
+ ],
186
+ "release": {
187
+ "extends": [
188
+ "@alanscodelog/semantic-release-config"
189
+ ]
190
+ },
191
+ "commitlint": {
192
+ "extends": [
193
+ "@alanscodelog"
194
+ ]
195
+ },
196
+ "browserslist": "defaults and supports es6-module,maintained node versions",
197
+ "engines": {
198
+ "node": ">=20.0.0"
199
+ },
200
+ "@comments": {
201
+ "vue-tsc": "Do not upgrade to 3.0, #awaiting https://github.com/vuejs/language-tools/issues/5644"
202
+ },
203
+ "publishConfig": {
204
+ "access": "public"
205
+ },
206
+ "scripts": {
207
+ "build:only": "nuxt-module-build build",
208
+ "build": "pnpm gen:highlightJsLangInfo && nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
209
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
210
+ "dev": "nuxi dev playground",
211
+ "//dev:vite": "The module needs to be build, not stubbed, for vite's dev to work.",
212
+ "dev:vite": "concurrently \"pnpm build\" \"vite --mode development --config vite.config.ts\"",
213
+ "lint:eslint": "eslint \"{src,tests,playground/app}/**/*.{cjs,js,ts,vue}\" \"*.{cjs,js,ts}\" --max-warnings=0 --report-unused-disable-directives",
214
+ "lint:commits": "commitlint --from-last-tag --to HEAD --verbose",
215
+ "lint:imports": "echo not working madge --circular --extensions ts ./src",
216
+ "lint": "pnpm lint:eslint && pnpm lint:types && pnpm lint:commits && pnpm lint:imports",
217
+ "lint:types": "vue-tsc --noEmit",
218
+ "test": "vitest",
219
+ "test:watch": "vitest --watch",
220
+ "doc": "typedoc",
221
+ "doc:watch": "onchange -i \"src/**/*.ts\" \"typedoc.config.js\" -- pnpm doc",
222
+ "doc:serve": "http-server docs --port=5001",
223
+ "doc:dev": "concurrently \"pnpm doc:watch\" \"pnpm doc:serve\"",
224
+ "doc:check-invalid": "typedoc --listInvalidSymbolLinks",
225
+ "//actions:debug": "echo For debugging github build action locally with nektos/act. Requires act and docker. Note: Cache will never work locally because of https://github.com/nektos/act/issues/285",
226
+ "actions:debug": "act -r -v -j release",
227
+ "gen:highlightJsLangInfo": "node src/runtime/pm/features/CodeBlock/build/generateHighlightJsInfo.js"
228
+ }
229
+ }