@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.
@@ -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(): Extension<ExtensionTyping<string, string, CommandArgs>>;
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
 
@@ -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
- return defineKeymap(baseKeymap);
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: () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/core",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",