@prosekit/web 0.0.0-next-20240504134708 → 0.0.0-next-20240504152243

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.
@@ -53,7 +53,7 @@ function useEditorUpdateEvent(host, editor, handler) {
53
53
  }
54
54
 
55
55
  // src/components/inline-popover/inline-popover/virtual-selection-element.ts
56
- import { isNodeSelection, isTextSelection } from "@prosekit/core";
56
+ import { isTextSelection } from "@prosekit/core";
57
57
 
58
58
  // src/utils/is-in-code-block.ts
59
59
  function isInCodeBlock(selection) {
@@ -67,7 +67,7 @@ function getVirtualSelectionElement(view) {
67
67
  return null;
68
68
  }
69
69
  const selection = view.state.selection;
70
- if (!selection.empty && !isInCodeBlock(selection) && (isTextSelection(selection) || isNodeSelection(selection))) {
70
+ if (!selection.empty && !isInCodeBlock(selection) && isTextSelection(selection)) {
71
71
  const decoration = getInlineDecoration(view);
72
72
  if (decoration) {
73
73
  return decoration;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/web",
3
3
  "type": "module",
4
- "version": "0.0.0-next-20240504134708",
4
+ "version": "0.0.0-next-20240504152243",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -73,9 +73,9 @@
73
73
  "@aria-ui/presence": "^0.0.8",
74
74
  "@aria-ui/tooltip": "^0.0.14",
75
75
  "@floating-ui/dom": "^1.6.4",
76
- "@prosekit/core": "0.0.0-next-20240504134708",
77
- "@prosekit/extensions": "0.0.0-next-20240504134708",
78
- "@prosekit/pm": "0.0.0-next-20240504134708",
76
+ "@prosekit/core": "0.0.0-next-20240504152243",
77
+ "@prosekit/extensions": "0.0.0-next-20240504152243",
78
+ "@prosekit/pm": "0.0.0-next-20240504152243",
79
79
  "@zag-js/dom-query": "^0.49.0"
80
80
  },
81
81
  "devDependencies": {