@soomo/text-annotator 3.0.0-staging.51 → 3.0.0-staging.52

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.
@@ -0,0 +1,9 @@
1
+ import { default as libDebounce } from 'debounce';
2
+ /**
3
+ * Wraps the `debounce` function from the `debounce` package
4
+ * to make it context-agnostic.
5
+ * Otherwise, we won't be able to use it in multiple event listeners simultaneously,
6
+ * like `window.onresize` and `ResizeObserver`.
7
+ * @see https://github.com/sindresorhus/debounce/issues/8#issuecomment-2321341074
8
+ */
9
+ export declare const debounce: typeof libDebounce;
@@ -12,5 +12,6 @@ export * from './reviveSelector';
12
12
  export * from './reviveTarget';
13
13
  export * from './splitAnnotatableRanges';
14
14
  export * from './trimRangeToContainer';
15
+ export * from './debounce';
15
16
  export * from './normalizeRects';
16
17
  export * from './cloneEvents';