@meowdown/core 0.65.1 → 0.65.2
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/dist/index.js +3 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -440,13 +440,14 @@ function getSelectedAtomRange(state) {
|
|
|
440
440
|
return getSelectedRange(state, ATOM_SOURCE_MARK_NAMES);
|
|
441
441
|
}
|
|
442
442
|
function findSelectionAcrossBlockBoundary(state, pos, markNames, direction) {
|
|
443
|
+
const unitMarkNames = [...markNames, "mdPack"];
|
|
443
444
|
const $pos = state.doc.resolve(pos);
|
|
444
445
|
if (!(direction === -1 ? $pos.parentOffset === 0 : $pos.parentOffset === $pos.parent.content.size) || $pos.depth === 0) return;
|
|
445
|
-
const nearUnit = direction === -1 ? getMarkRangeAfter(state, pos,
|
|
446
|
+
const nearUnit = direction === -1 ? getMarkRangeAfter(state, pos, unitMarkNames) : getMarkRangeBefore(state, pos, unitMarkNames);
|
|
446
447
|
const boundary = direction === -1 ? $pos.before() : $pos.after();
|
|
447
448
|
const target = Selection.findFrom(state.doc.resolve(boundary), direction);
|
|
448
449
|
if (!target) return;
|
|
449
|
-
const farUnit = isTextSelection(target) ? direction === -1 ? getMarkRangeBefore(state, target.head,
|
|
450
|
+
const farUnit = isTextSelection(target) ? direction === -1 ? getMarkRangeBefore(state, target.head, unitMarkNames) : getMarkRangeAfter(state, target.head, unitMarkNames) : void 0;
|
|
450
451
|
if (nearUnit == null && farUnit == null) return;
|
|
451
452
|
return target;
|
|
452
453
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.65.
|
|
4
|
+
"version": "0.65.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"@floating-ui/dom": "^1.8.0",
|
|
27
27
|
"@lezer/highlight": "^1.2.3",
|
|
28
28
|
"@ocavue/utils": "^1.7.0",
|
|
29
|
-
"@prosekit/core": "^0.13.0
|
|
30
|
-
"@prosekit/extensions": "^0.18.0
|
|
31
|
-
"@prosekit/pm": "^0.1.19
|
|
32
|
-
"@prosekit/web": "^0.9.0
|
|
29
|
+
"@prosekit/core": "^0.13.0",
|
|
30
|
+
"@prosekit/extensions": "^0.18.0",
|
|
31
|
+
"@prosekit/pm": "^0.1.19",
|
|
32
|
+
"@prosekit/web": "^0.9.0",
|
|
33
33
|
"hast-util-to-mdast": "^10.1.2",
|
|
34
34
|
"katex": "^0.18.1",
|
|
35
35
|
"mdast-util-to-markdown": "^2.1.2",
|
|
36
36
|
"micromark-util-decode-string": "^2.0.1",
|
|
37
37
|
"micromark-util-normalize-identifier": "^2.0.1",
|
|
38
38
|
"prosemirror-flat-list": "^0.7.1",
|
|
39
|
-
"prosemirror-highlight": "^0.
|
|
39
|
+
"prosemirror-highlight": "^0.16.0",
|
|
40
40
|
"rehype-parse": "^9.0.1",
|
|
41
41
|
"rehype-remark": "^10.0.1",
|
|
42
42
|
"remark-gfm": "^4.0.1",
|
|
43
43
|
"remark-stringify": "^11.0.0",
|
|
44
44
|
"unicode-by-name": "^0.2.0",
|
|
45
45
|
"unified": "^11.0.5",
|
|
46
|
-
"@meowdown/markdown": "^0.65.
|
|
46
|
+
"@meowdown/markdown": "^0.65.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@ocavue/tsconfig": "^0.7.1",
|