@portabletext/editor 2.13.7 → 2.14.0

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/lib/index.js CHANGED
@@ -592,7 +592,7 @@ function toSlateRange(snapshot) {
592
592
  if (!snapshot.context.selection)
593
593
  return null;
594
594
  if (isEqualSelectionPoints(snapshot.context.selection.anchor, snapshot.context.selection.focus)) {
595
- const anchorPoint2 = toSlateSelectionPoint(snapshot, snapshot.context.selection.anchor, snapshot.context.selection.backward ? "forward" : "backward");
595
+ const anchorPoint2 = toSlateSelectionPoint(snapshot, snapshot.context.selection.anchor, snapshot.context.selection.backward ? "backward" : "forward");
596
596
  return anchorPoint2 ? {
597
597
  anchor: anchorPoint2,
598
598
  focus: anchorPoint2