prosemirror-gapcursor
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -0,1 +1,7 @@ | ||
## 1.1.0 (2019-11-08) | ||
### New features | ||
Add a `module` field to package json file. | ||
## 1.0.4 (2019-06-24) | ||
@@ -2,0 +8,0 @@ |
@@ -12,9 +12,9 @@ 'use strict'; | ||
// `$anchor` and `$head` properties both point at the cursor position. | ||
var GapCursor = (function (Selection$$1) { | ||
var GapCursor = /*@__PURE__*/(function (Selection) { | ||
function GapCursor($pos) { | ||
Selection$$1.call(this, $pos, $pos); | ||
Selection.call(this, $pos, $pos); | ||
} | ||
if ( Selection$$1 ) GapCursor.__proto__ = Selection$$1; | ||
GapCursor.prototype = Object.create( Selection$$1 && Selection$$1.prototype ); | ||
if ( Selection ) GapCursor.__proto__ = Selection; | ||
GapCursor.prototype = Object.create( Selection && Selection.prototype ); | ||
GapCursor.prototype.constructor = GapCursor; | ||
@@ -24,3 +24,3 @@ | ||
var $pos = doc.resolve(mapping.map(this.head)); | ||
return GapCursor.valid($pos) ? new GapCursor($pos) : Selection$$1.near($pos) | ||
return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos) | ||
}; | ||
@@ -177,3 +177,3 @@ | ||
function handleClick(view, pos, event) { | ||
if (view.someProp("editable", function (editable) { return editable(view.state) === false; })) { return false } | ||
if (!view.editable) { return false } | ||
var $pos = view.state.doc.resolve(pos); | ||
@@ -195,4 +195,4 @@ if (!GapCursor.valid($pos)) { return false } | ||
exports.GapCursor = GapCursor; | ||
exports.gapCursor = gapCursor; | ||
exports.GapCursor = GapCursor; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "prosemirror-gapcursor", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "ProseMirror plugin for cursors at normally impossible-to-reach positions", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"module": "src/index.js", | ||
"style": "style/gapcursor.css", | ||
"license": "MIT", | ||
"maintainers": [ | ||
{ | ||
"name": "Marijn Haverbeke", | ||
"email": "marijnh@gmail.com", | ||
"web": "http://marijnhaverbeke.nl" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/prosemirror/prosemirror-gapcursor.git" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^1.26.3", | ||
"@rollup/plugin-buble": "^0.20.0" | ||
}, | ||
"dependencies": { | ||
@@ -14,6 +30,2 @@ "prosemirror-keymap": "^1.0.0", | ||
}, | ||
"devDependencies": { | ||
"rollup": "^0.49.0", | ||
"rollup-plugin-buble": "^0.15.0" | ||
}, | ||
"scripts": { | ||
@@ -20,0 +32,0 @@ "build": "rollup -c", |
@@ -1,7 +0,12 @@ | ||
module.exports = { | ||
input: "./src/index.js", | ||
output: {format: "cjs", file: "dist/index.js"}, | ||
sourcemap: true, | ||
plugins: [require("rollup-plugin-buble")()], | ||
import buble from '@rollup/plugin-buble' | ||
export default { | ||
input: './src/index.js', | ||
output: { | ||
dir: 'dist', | ||
format: 'cjs', | ||
sourcemap: true | ||
}, | ||
plugins: [buble()], | ||
external(id) { return !/^[\.\/]/.test(id) } | ||
} |
@@ -57,3 +57,3 @@ import {keydownHandler} from "prosemirror-keymap" | ||
function handleClick(view, pos, event) { | ||
if (view.someProp("editable", editable => editable(view.state) === false)) return false | ||
if (!view.editable) return false | ||
let $pos = view.state.doc.resolve(pos) | ||
@@ -60,0 +60,0 @@ if (!GapCursor.valid($pos)) return false |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
359
0
35451