diff --git a/.gitignore b/.gitignore index ce3c2896..f155af4a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .DS_Store node_modules -/dist +dist/ /docs # local env files diff --git a/packages/tiptap-commands/package.json b/packages/tiptap-commands/package.json index 92f2262b..ac04ad20 100644 --- a/packages/tiptap-commands/package.json +++ b/packages/tiptap-commands/package.json @@ -11,8 +11,8 @@ "files": [ "src", "dist" - ], - "repository": { + ], + "repository": { "type": "git", "url": "git+https://github.com/heyscrumpy/tiptap.git" }, @@ -22,6 +22,7 @@ "dependencies": { "prosemirror-commands": "^1.0.7", "prosemirror-inputrules": "^1.0.1", - "prosemirror-schema-list": "^1.0.1" + "prosemirror-schema-list": "^1.0.1", + "tiptap-utils": "^0.1.1" } } diff --git a/packages/tiptap-commands/src/commands/toggleBlockType.js b/packages/tiptap-commands/src/commands/toggleBlockType.js index 01f20fd1..971a4f4b 100644 --- a/packages/tiptap-commands/src/commands/toggleBlockType.js +++ b/packages/tiptap-commands/src/commands/toggleBlockType.js @@ -1,5 +1,5 @@ import { setBlockType } from 'prosemirror-commands' -import { nodeIsActive } from '../utils' +import { nodeIsActive } from 'tiptap-utils' export default function (type, toggletype, attrs = {}) { return (state, dispatch, view) => { diff --git a/packages/tiptap-commands/src/commands/toggleList.js b/packages/tiptap-commands/src/commands/toggleList.js index 16e193f7..7fd1703e 100644 --- a/packages/tiptap-commands/src/commands/toggleList.js +++ b/packages/tiptap-commands/src/commands/toggleList.js @@ -1,5 +1,5 @@ -import { nodeIsActive } from '../utils' -import { wrapInList, liftListItem } from '..' +import { nodeIsActive } from 'tiptap-utils' +import { wrapInList, liftListItem } from 'prosemirror-schema-list' export default function toggleList(type, itemType) { return (state, dispatch, view) => { diff --git a/packages/tiptap-commands/src/index.js b/packages/tiptap-commands/src/index.js index 9b68911c..074f68fd 100644 --- a/packages/tiptap-commands/src/index.js +++ b/packages/tiptap-commands/src/index.js @@ -38,10 +38,10 @@ import { textblockTypeInputRule, } from 'prosemirror-inputrules' -import removeMark from './helpers/removeMark' -import toggleBlockType from './helpers/toggleBlockType' -import toggleList from './helpers/toggleList' -import updateMark from './helpers/updateMark' +import removeMark from './commands/removeMark' +import toggleBlockType from './commands/toggleBlockType' +import toggleList from './commands/toggleList' +import updateMark from './commands/updateMark' export { // prosemirror-commands diff --git a/packages/tiptap-utils/package.json b/packages/tiptap-utils/package.json index d452ab10..8be36c0e 100644 --- a/packages/tiptap-utils/package.json +++ b/packages/tiptap-utils/package.json @@ -1,6 +1,6 @@ { "name": "tiptap-utils", - "version": "0.1.0", + "version": "0.1.1", "description": "Utility functions for tiptap", "homepage": "https://tiptap.scrumpy.io", "license": "MIT",