@meowdown/core 0.71.0 → 0.71.1
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 +8 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -3113,8 +3113,15 @@ function getLinkUnitAt(state, pos) {
|
|
|
3113
3113
|
//#endregion
|
|
3114
3114
|
//#region src/extensions/image-click.ts
|
|
3115
3115
|
const imageClickKey = new PluginKey("meowdown-image-click");
|
|
3116
|
+
/**
|
|
3117
|
+
* The image preview wrapper around `target`, or nothing when the wrapper holds
|
|
3118
|
+
* a post-embed card: its links and controls have their own click behavior.
|
|
3119
|
+
*/
|
|
3116
3120
|
function getClosestImagePreview(target) {
|
|
3117
|
-
|
|
3121
|
+
if (!(target instanceof HTMLElement)) return;
|
|
3122
|
+
const preview = target.closest(".md-image-view-preview");
|
|
3123
|
+
if (!preview || preview.dataset.postEmbed != null) return;
|
|
3124
|
+
return preview;
|
|
3118
3125
|
}
|
|
3119
3126
|
function findImageAt(state, pos) {
|
|
3120
3127
|
const range = getMarkRangeAt(state, pos, "mdImage");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.71.
|
|
4
|
+
"version": "0.71.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@floating-ui/dom": "^1.8.0",
|
|
27
27
|
"@lezer/highlight": "^1.2.3",
|
|
28
28
|
"@ocavue/utils": "^1.8.0",
|
|
29
|
-
"@post-embed/elements": "^0.4.
|
|
30
|
-
"@post-embed/exporter": "^0.4.
|
|
31
|
-
"@post-embed/schema": "^0.
|
|
29
|
+
"@post-embed/elements": "^0.4.1",
|
|
30
|
+
"@post-embed/exporter": "^0.4.1",
|
|
31
|
+
"@post-embed/schema": "^0.5.0",
|
|
32
32
|
"@post-embed/types": "^0.4.0",
|
|
33
33
|
"@prosekit/core": "^0.13.2",
|
|
34
34
|
"@prosekit/extensions": "^0.18.2",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"unicode-by-name": "^0.2.0",
|
|
50
50
|
"unified": "^11.0.5",
|
|
51
51
|
"valibot": "^1.5.0",
|
|
52
|
-
"@meowdown/markdown": "^0.71.
|
|
52
|
+
"@meowdown/markdown": "^0.71.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@ocavue/tsconfig": "^0.7.1",
|