@fileverse-dev/ddoc 1.6.6 → 1.6.7

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.es.js CHANGED
@@ -59083,16 +59083,13 @@ const nle = kt.create({
59083
59083
  if (!D)
59084
59084
  return;
59085
59085
  const H = () => {
59086
- const { state: I } = D, { from: U, to: K } = I.selection;
59087
- if (U !== K) {
59088
- const ee = I.doc.textBetween(U, K, " ");
59089
- c == null || c({
59090
- text: ee,
59091
- from: U,
59092
- to: K,
59093
- isHighlightedYellow: v(I, U, K)
59094
- });
59095
- }
59086
+ const { state: I } = D, { from: U, to: K } = I.selection, ee = I.doc.textBetween(U, K, " ");
59087
+ c == null || c({
59088
+ text: ee,
59089
+ from: U,
59090
+ to: K,
59091
+ isHighlightedYellow: v(I, U, K)
59092
+ });
59096
59093
  };
59097
59094
  return D.on("selectionUpdate", H), () => {
59098
59095
  D.off("selectionUpdate", H);