@prosekit/extensions 0.0.0-next-20240429122230 → 0.0.0-next-20240429123129

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.
@@ -81,7 +81,7 @@ function getCheckRanges(transactions, oldState, newState) {
81
81
 
82
82
  // src/mark-rule/apply.ts
83
83
  function getExpectedMarkings(rules, doc, from, to) {
84
- const text = doc.textBetween(from, to, OBJECT_REPLACEMENT_CHARACTER);
84
+ const text = doc.textBetween(from, to, null, OBJECT_REPLACEMENT_CHARACTER);
85
85
  const ranges = [];
86
86
  for (const rule of rules) {
87
87
  rule.regex.lastIndex = 0;
@@ -75,12 +75,14 @@ function createAutocompletePlugin({
75
75
  const textContent = view.state.doc.textBetween(
76
76
  from,
77
77
  to,
78
+ null,
78
79
  OBJECT_REPLACEMENT_CHARACTER
79
80
  );
80
81
  const deleteMatch = () => {
81
82
  if (view.state.doc.textBetween(
82
83
  from,
83
84
  to,
85
+ null,
84
86
  OBJECT_REPLACEMENT_CHARACTER
85
87
  ) === textContent) {
86
88
  view.dispatch(view.state.tr.delete(from, to));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineMarkRule
3
- } from "./chunk-FG6YUKCN.js";
3
+ } from "./chunk-7G7COECS.js";
4
4
  import {
5
5
  defineEnterRule
6
6
  } from "./chunk-HLBUHIMJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineMarkRule
3
- } from "./chunk-FG6YUKCN.js";
3
+ } from "./chunk-7G7COECS.js";
4
4
  export {
5
5
  defineMarkRule
6
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/extensions",
3
3
  "type": "module",
4
- "version": "0.0.0-next-20240429122230",
4
+ "version": "0.0.0-next-20240429123129",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -152,8 +152,8 @@
152
152
  "dist"
153
153
  ],
154
154
  "dependencies": {
155
- "@prosekit/core": "0.0.0-next-20240429122230",
156
- "@prosekit/pm": "0.0.0-next-20240429122230",
155
+ "@prosekit/core": "0.0.0-next-20240429123129",
156
+ "@prosekit/pm": "0.0.0-next-20240429123129",
157
157
  "prosemirror-dropcursor": "^1.8.1",
158
158
  "prosemirror-flat-list": "^0.5.0",
159
159
  "prosemirror-highlight": "^0.5.0",