@prosekit/core
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -214,5 +214,14 @@ import { AllSelection } from '@prosekit/pm/state'; | ||
/** | ||
* Defines some basic key bindings. | ||
* | ||
* @public | ||
*/ | ||
declare function defineBaseKeymap(): Extension<ExtensionTyping<string, string, CommandArgs>>; | ||
declare function defineBaseKeymap(options?: { | ||
/** | ||
* The priority of the keymap. | ||
* | ||
* @default Priority.low | ||
*/ | ||
priority?: Priority; | ||
}): Extension<ExtensionTyping<string, string, CommandArgs>>; | ||
export { defineBaseKeymap } | ||
@@ -219,0 +228,0 @@ export { defineBaseKeymap as defineBaseKeymap_alias_1 } |
@@ -1194,4 +1194,6 @@ // src/commands/add-mark.ts | ||
} | ||
function defineBaseKeymap() { | ||
return defineKeymap(baseKeymap); | ||
function defineBaseKeymap(options) { | ||
var _a; | ||
const priority = (_a = options == null ? void 0 : options.priority) != null ? _a : 3 /* low */; | ||
return withPriority(defineKeymap(baseKeymap), priority); | ||
} | ||
@@ -1198,0 +1200,0 @@ var keymapFacet = Facet.define({ |
{ | ||
"name": "@prosekit/core", | ||
"type": "module", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "author": { |
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
78072
2501