fix packages

This commit is contained in:
Philipp Kühn
2018-08-23 10:49:01 +02:00
parent 678bcd3673
commit adc90a7ecd
6 changed files with 13 additions and 12 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
.DS_Store .DS_Store
node_modules node_modules
/dist dist/
/docs /docs
# local env files # local env files

View File

@@ -22,6 +22,7 @@
"dependencies": { "dependencies": {
"prosemirror-commands": "^1.0.7", "prosemirror-commands": "^1.0.7",
"prosemirror-inputrules": "^1.0.1", "prosemirror-inputrules": "^1.0.1",
"prosemirror-schema-list": "^1.0.1" "prosemirror-schema-list": "^1.0.1",
"tiptap-utils": "^0.1.1"
} }
} }

View File

@@ -1,5 +1,5 @@
import { setBlockType } from 'prosemirror-commands' import { setBlockType } from 'prosemirror-commands'
import { nodeIsActive } from '../utils' import { nodeIsActive } from 'tiptap-utils'
export default function (type, toggletype, attrs = {}) { export default function (type, toggletype, attrs = {}) {
return (state, dispatch, view) => { return (state, dispatch, view) => {

View File

@@ -1,5 +1,5 @@
import { nodeIsActive } from '../utils' import { nodeIsActive } from 'tiptap-utils'
import { wrapInList, liftListItem } from '..' import { wrapInList, liftListItem } from 'prosemirror-schema-list'
export default function toggleList(type, itemType) { export default function toggleList(type, itemType) {
return (state, dispatch, view) => { return (state, dispatch, view) => {

View File

@@ -38,10 +38,10 @@ import {
textblockTypeInputRule, textblockTypeInputRule,
} from 'prosemirror-inputrules' } from 'prosemirror-inputrules'
import removeMark from './helpers/removeMark' import removeMark from './commands/removeMark'
import toggleBlockType from './helpers/toggleBlockType' import toggleBlockType from './commands/toggleBlockType'
import toggleList from './helpers/toggleList' import toggleList from './commands/toggleList'
import updateMark from './helpers/updateMark' import updateMark from './commands/updateMark'
export { export {
// prosemirror-commands // prosemirror-commands

View File

@@ -1,6 +1,6 @@
{ {
"name": "tiptap-utils", "name": "tiptap-utils",
"version": "0.1.0", "version": "0.1.1",
"description": "Utility functions for tiptap", "description": "Utility functions for tiptap",
"homepage": "https://tiptap.scrumpy.io", "homepage": "https://tiptap.scrumpy.io",
"license": "MIT", "license": "MIT",