@convertkit/slate-code
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1296,2 +1296,3 @@ import React from 'react'; | ||
var isKeyPressed = isHotkey(key); | ||
var command = shortcuts[key]; | ||
@@ -1302,5 +1303,8 @@ var check = function check(event, editor) { | ||
var handler = typeof command == "string" ? function (event, editor) { | ||
editor.command(command); | ||
} : command; | ||
return { | ||
check: check, | ||
handler: shortcuts[key] | ||
handler: handler | ||
}; | ||
@@ -1307,0 +1311,0 @@ }); |
{ | ||
"name": "@convertkit/slate-code", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A plugin for handling code in the ConvertKit Editor", | ||
@@ -32,7 +32,9 @@ "main": "src/index.js", | ||
], | ||
"devDependencies": { | ||
"@convertkit/slate-testing-library": "^0.0.2" | ||
}, | ||
"dependencies": { | ||
"@convertkit/slate-keymap": "^0.0.3", | ||
"@convertkit/slate-keymap": "^0.1.0", | ||
"prismjs": "^1.15.0" | ||
}, | ||
"gitHead": "eb91a9b36f93e548c3cd3f77d9b55736d839ada9" | ||
} | ||
} |
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
46205
1
5
1455
+ Added@convertkit/slate-keymap@0.1.10(transitive)
- Removed@convertkit/slate-keymap@0.0.3(transitive)