@alpaca-editor/core 1.0.4044 → 1.0.4045

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.
@@ -236,7 +236,7 @@ export function PageViewerFrame({ compareView, pageViewContext, className, }) {
236
236
  window.removeEventListener("message", handleMessage);
237
237
  };
238
238
  }, []);
239
- const selecionChangeHandler = useThrottledCallback(() => {
239
+ const selecionChangeHandler = useDebouncedCallback(() => {
240
240
  const sel = iframeRef.current?.contentDocument?.getSelection();
241
241
  if (sel && sel.rangeCount > 0) {
242
242
  // Find the field element containing the selection
@@ -266,7 +266,7 @@ export function PageViewerFrame({ compareView, pageViewContext, className, }) {
266
266
  text: range.toString(),
267
267
  });
268
268
  }
269
- }, 100);
269
+ }, 300);
270
270
  useEffect(() => {
271
271
  const iframe = iframeRef.current;
272
272
  if (!iframe)
@@ -1,2 +1,2 @@
1
- export declare const version = "1.0.4044";
2
- export declare const buildDate = "2025-08-13 13:54:12";
1
+ export declare const version = "1.0.4045";
2
+ export declare const buildDate = "2025-08-14 01:46:42";
package/dist/revision.js CHANGED
@@ -1,3 +1,3 @@
1
- export const version = "1.0.4044";
2
- export const buildDate = "2025-08-13 13:54:12";
1
+ export const version = "1.0.4045";
2
+ export const buildDate = "2025-08-14 01:46:42";
3
3
  //# sourceMappingURL=revision.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpaca-editor/core",
3
- "version": "1.0.4044",
3
+ "version": "1.0.4045",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -349,7 +349,7 @@ export function PageViewerFrame({
349
349
  };
350
350
  }, []);
351
351
 
352
- const selecionChangeHandler = useThrottledCallback(() => {
352
+ const selecionChangeHandler = useDebouncedCallback(() => {
353
353
  const sel = iframeRef.current?.contentDocument?.getSelection();
354
354
 
355
355
  if (sel && sel.rangeCount > 0) {
@@ -395,7 +395,7 @@ export function PageViewerFrame({
395
395
  text: range.toString(),
396
396
  });
397
397
  }
398
- }, 100);
398
+ }, 300);
399
399
 
400
400
  useEffect(() => {
401
401
  const iframe = iframeRef.current;
package/src/revision.ts CHANGED
@@ -1,2 +1,2 @@
1
- export const version = "1.0.4044";
2
- export const buildDate = "2025-08-13 13:54:12";
1
+ export const version = "1.0.4045";
2
+ export const buildDate = "2025-08-14 01:46:42";