@meowdown/react 0.42.0 → 0.42.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -575,11 +575,11 @@ function LinkMenu({ onLinkClick, onLinkCopy }) {
575
575
  let rangeFrom;
576
576
  let rangeTo;
577
577
  if (edit) {
578
- const anchorRange = edit.link?.label ?? edit;
578
+ const anchorRange = edit.link?.text ?? edit;
579
579
  rangeFrom = anchorRange.from;
580
580
  rangeTo = anchorRange.to;
581
581
  } else if (hover) {
582
- const anchorRange = hover.label ?? hover.unit;
582
+ const anchorRange = hover.text;
583
583
  rangeFrom = anchorRange.from;
584
584
  rangeTo = anchorRange.to;
585
585
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meowdown/react",
3
3
  "type": "module",
4
- "version": "0.42.0",
4
+ "version": "0.42.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "clsx": "^2.1.1",
27
27
  "lucide-react": "^1.21.0",
28
28
  "react-property": "^2.0.2",
29
- "@meowdown/core": "0.42.0"
29
+ "@meowdown/core": "0.42.1"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^19.0.0",