@meowdown/react 0.41.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 +3 -3
  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
  }
@@ -1603,7 +1603,7 @@ function ProseKitEditor({ markMode = "focus", initialMarkdown, onDocChange, onSl
1603
1603
  editor.focus();
1604
1604
  }
1605
1605
  function scrollIntoView() {
1606
- editor.view.dispatch(editor.state.tr.scrollIntoView());
1606
+ editor.commands.scrollIntoView();
1607
1607
  }
1608
1608
  function getSelectedTextFromState() {
1609
1609
  return getSelectedText(editor.state);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meowdown/react",
3
3
  "type": "module",
4
- "version": "0.41.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.41.0"
29
+ "@meowdown/core": "0.42.1"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^19.0.0",