@prosekit/core 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_tsup-dts-rollup.d.ts +10 -1
- package/dist/prosekit-core.js +4 -2
- package/package.json +1 -1
@@ -211,9 +211,18 @@ export { defineBaseCommands }
|
|
211
211
|
export { defineBaseCommands as defineBaseCommands_alias_1 }
|
212
212
|
|
213
213
|
/**
|
214
|
+
* Defines some basic key bindings.
|
215
|
+
*
|
214
216
|
* @public
|
215
217
|
*/
|
216
|
-
declare function defineBaseKeymap(
|
218
|
+
declare function defineBaseKeymap(options?: {
|
219
|
+
/**
|
220
|
+
* The priority of the keymap.
|
221
|
+
*
|
222
|
+
* @default Priority.low
|
223
|
+
*/
|
224
|
+
priority?: Priority;
|
225
|
+
}): Extension<ExtensionTyping<string, string, CommandArgs>>;
|
217
226
|
export { defineBaseKeymap }
|
218
227
|
export { defineBaseKeymap as defineBaseKeymap_alias_1 }
|
219
228
|
|
package/dist/prosekit-core.js
CHANGED
@@ -1191,8 +1191,10 @@ var pluginFacet = Facet.define({
|
|
1191
1191
|
function defineKeymap(keymap) {
|
1192
1192
|
return keymapFacet.extension([keymap]);
|
1193
1193
|
}
|
1194
|
-
function defineBaseKeymap() {
|
1195
|
-
|
1194
|
+
function defineBaseKeymap(options) {
|
1195
|
+
var _a;
|
1196
|
+
const priority = (_a = options == null ? void 0 : options.priority) != null ? _a : 3 /* low */;
|
1197
|
+
return withPriority(defineKeymap(baseKeymap), priority);
|
1196
1198
|
}
|
1197
1199
|
var keymapFacet = Facet.define({
|
1198
1200
|
converter: () => {
|