prosemirror-view 1.41.2 → 1.41.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.41.3 (2025-10-09)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug where typing when the selection crosses inline node boundaries was ignored in some situations.
6
+
1
7
  ## 1.41.2 (2025-09-29)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -4750,6 +4750,8 @@ function readDOMChange(view, from, to, typeOver, addedNodes) {
4750
4750
  if (!view.someProp("handleTextInput", function (f) {
4751
4751
  return f(view, chFrom, chTo, text, deflt);
4752
4752
  })) view.dispatch(deflt());
4753
+ } else {
4754
+ view.dispatch(mkTr());
4753
4755
  }
4754
4756
  } else {
4755
4757
  view.dispatch(mkTr());
package/dist/index.js CHANGED
@@ -5121,6 +5121,9 @@ function readDOMChange(view, from, to, typeOver, addedNodes) {
5121
5121
  if (!view.someProp("handleTextInput", f => f(view, chFrom, chTo, text, deflt)))
5122
5122
  view.dispatch(deflt());
5123
5123
  }
5124
+ else {
5125
+ view.dispatch(mkTr());
5126
+ }
5124
5127
  }
5125
5128
  else {
5126
5129
  view.dispatch(mkTr());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-view",
3
- "version": "1.41.2",
3
+ "version": "1.41.3",
4
4
  "description": "ProseMirror's view component",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/domchange.ts CHANGED
@@ -268,6 +268,8 @@ export function readDOMChange(view: EditorView, from: number, to: number, typeOv
268
268
  let deflt = () => mkTr(view.state.tr.insertText(text, chFrom, chTo))
269
269
  if (!view.someProp("handleTextInput", f => f(view, chFrom, chTo, text, deflt)))
270
270
  view.dispatch(deflt())
271
+ } else {
272
+ view.dispatch(mkTr())
271
273
  }
272
274
  } else {
273
275
  view.dispatch(mkTr())