@soomo/text-annotator 3.1.0-staging.6 → 3.1.0-staging.8

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.
@@ -2254,7 +2254,9 @@ const ae = 300, Oe = ["up", "down", "left", "right"], Te = Ne ? "⌘+a" : "ctrl+
2254
2254
  }, E = Xt((f) => {
2255
2255
  if (!p) return;
2256
2256
  const y = document.getSelection();
2257
- if (y != null && y.anchorNode && nt(y.anchorNode)) {
2257
+ if (!(y != null && y.anchorNode))
2258
+ return;
2259
+ if (nt(y.anchorNode)) {
2258
2260
  c = void 0;
2259
2261
  return;
2260
2262
  }
@@ -2305,7 +2307,7 @@ const ae = 300, Oe = ["up", "down", "left", "right"], Te = Ne ? "⌘+a" : "ctrl+
2305
2307
  }, S = async () => {
2306
2308
  const f = document.getSelection();
2307
2309
  let y = !1, x = f == null ? void 0 : f.isCollapsed;
2308
- const C = () => x || y, B = 2;
2310
+ const C = () => x || y, B = 10;
2309
2311
  return setTimeout(() => y = !0, 50), Lo(() => x = f == null ? void 0 : f.isCollapsed, B, C);
2310
2312
  }, A = (f) => {
2311
2313
  g = !0;