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
node_modules
/dist
dist/
/docs
# local env files

View File

@@ -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"
}
}

View File

@@ -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) => {

View File

@@ -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) => {

View File

@@ -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

View File

@@ -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",