@prosekit/lit 0.0.5 → 0.0.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.
@@ -27,7 +27,11 @@ function isAutocompleteItem(element) {
27
27
  }
28
28
 
29
29
  // src/components/autocomplete-list/controller.ts
30
- import { addKeymap } from "@prosekit/core";
30
+ import {
31
+ addKeymap,
32
+ withPriority,
33
+ Priority
34
+ } from "@prosekit/core";
31
35
  import "lit";
32
36
  var AutocompleteListController = class {
33
37
  constructor(host, keymap) {
@@ -55,7 +59,7 @@ var AutocompleteListController = class {
55
59
  if (!this.editor || !this.keymap) {
56
60
  return;
57
61
  }
58
- const extension = addKeymap(this.keymap);
62
+ const extension = withPriority(addKeymap(this.keymap), Priority.highest);
59
63
  this.cleanup = this.editor.use(extension);
60
64
  }
61
65
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AutocompleteList
3
- } from "./chunk-65QAWC7L.js";
3
+ } from "./chunk-F2R4PFWD.js";
4
4
  import "./chunk-UDTISUHF.js";
5
5
  import "./chunk-J73E7P6J.js";
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  commandPopoverContext
3
- } from "./chunk-65QAWC7L.js";
3
+ } from "./chunk-F2R4PFWD.js";
4
4
  import "./chunk-UDTISUHF.js";
5
5
  import {
6
6
  __decorateClass,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/lit",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -58,8 +58,8 @@
58
58
  "@floating-ui/dom": "^1.4.5",
59
59
  "@lit-labs/context": "^0.3.3",
60
60
  "@lit/reactive-element": "^1.6.2",
61
- "@prosekit/core": "^0.0.4",
62
- "@prosekit/extensions": "^0.0.4",
61
+ "@prosekit/core": "^0.0.6",
62
+ "@prosekit/extensions": "^0.0.6",
63
63
  "@prosekit/pm": "^0.0.3",
64
64
  "@superhuman/command-score": "^0.5.0",
65
65
  "lit": "^2.7.6",