@impakers/debug 1.4.2 → 1.4.3

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/react.js CHANGED
@@ -3650,6 +3650,10 @@ function DebugWidget({ endpoint, getUser, onHide }) {
3650
3650
  document.addEventListener("click", handleClick, true);
3651
3651
  return () => document.removeEventListener("click", handleClick, true);
3652
3652
  }, [isActive, pendingAnnotation]);
3653
+ const showErrorToast = (0, import_react7.useCallback)((msg) => {
3654
+ setToastError(msg);
3655
+ originalSetTimeout(() => setToastError(null), 4e3);
3656
+ }, []);
3653
3657
  const addAnnotation = (0, import_react7.useCallback)(
3654
3658
  async (comment) => {
3655
3659
  if (!pendingAnnotation || submitting) return;
@@ -3816,10 +3820,6 @@ ${elementInfo.join("\n")}`);
3816
3820
  });
3817
3821
  return unsubscribe;
3818
3822
  }, [activeThread, endpoint]);
3819
- const showErrorToast = (0, import_react7.useCallback)((msg) => {
3820
- setToastError(msg);
3821
- originalSetTimeout(() => setToastError(null), 4e3);
3822
- }, []);
3823
3823
  const handleThreadReply = (0, import_react7.useCallback)(async (taskId, content, screenshot, file) => {
3824
3824
  const authorName = getUser?.()?.name ? String(getUser().name) : "\uC775\uBA85";
3825
3825
  const authorId = getUser?.()?.id ? String(getUser().id) : void 0;