feat: test release

This commit is contained in:
cudr
2019-10-05 12:07:11 +03:00
parent 6c85d58736
commit e17e5f0fc3
8 changed files with 45 additions and 8 deletions

View File

@@ -7,7 +7,13 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"description": "slate-collaborative bridge",
"repository": "https://github.com/cudr/slate-collaborative",
"repository": {
"type": "git",
"url": "git+https://github.com/cudr/slate-collaborative.git"
},
"publishConfig": {
"access": "public"
},
"author": "cudr",
"license": "MIT",
"scripts": {
@@ -37,5 +43,8 @@
"@types/react": "^16.9.2",
"@types/slate": "^0.47.1",
"@types/socket.io-client": "^1.4.32"
},
"directories": {
"lib": "lib"
}
}

View File

@@ -2,7 +2,9 @@ import { ExtendedEditor } from './model'
const onChange = opts => (editor: ExtendedEditor, next: () => void) => {
if (!editor.remote) {
editor.connection.receiveSlateOps(editor.operations)
const operations: any = editor.operations
editor.connection.receiveSlateOps(operations)
}
return next()

View File

@@ -6,7 +6,7 @@
"rootDir": "src",
"baseUrl": "src",
"jsx": "react",
"lib": ["es6", "dom"],
"lib": ["dom", "dom.iterable", "es6"],
"esModuleInterop": true
}
}