@carlonicora/nextjs-jsonapi 3.16.1 → 3.17.0

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.
@@ -10392,7 +10392,7 @@ import { useRef as useRef17 } from "react";
10392
10392
  import dynamic from "next/dynamic";
10393
10393
  import React18 from "react";
10394
10394
  import { jsx as jsx90 } from "react/jsx-runtime";
10395
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-6SQR7WNA.mjs"), {
10395
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-6DYL5NZD.mjs"), {
10396
10396
  ssr: false
10397
10397
  });
10398
10398
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -23812,7 +23812,6 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
23812
23812
  useEffect76(() => {
23813
23813
  setNewNotifications(unreadCount > 0);
23814
23814
  }, [unreadCount]);
23815
- const processSocketNotificationsRef = useRef39(null);
23816
23815
  const processSocketNotifications = useCallback48(() => {
23817
23816
  if (socketNotifications.length === 0) {
23818
23817
  return;
@@ -23835,7 +23834,10 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
23835
23834
  const toastNotification = generateToastNotification(notification, t, generateUrl);
23836
23835
  showToast(toastNotification.title, {
23837
23836
  description: toastNotification.description,
23838
- action: toastNotification.action
23837
+ action: toastNotification.action,
23838
+ // A toast that offers something to press stays until dismissed; a
23839
+ // plain notice keeps sonner's default timeout.
23840
+ duration: toastNotification.action ? Infinity : void 0
23839
23841
  });
23840
23842
  });
23841
23843
  if (batchIndex === batches.length - 1) {
@@ -23853,17 +23855,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
23853
23855
  checkCircuitBreaker
23854
23856
  ]);
23855
23857
  useEffect76(() => {
23856
- if (processSocketNotificationsRef.current) {
23857
- clearTimeout(processSocketNotificationsRef.current);
23858
- }
23859
- processSocketNotificationsRef.current = setTimeout(() => {
23860
- processSocketNotifications();
23861
- }, 300);
23862
- return () => {
23863
- if (processSocketNotificationsRef.current) {
23864
- clearTimeout(processSocketNotificationsRef.current);
23865
- }
23866
- };
23858
+ processSocketNotifications();
23867
23859
  }, [processSocketNotifications]);
23868
23860
  const handleOpenChange = /* @__PURE__ */ __name((newlyRequestedOpenState) => {
23869
23861
  if (!newlyRequestedOpenState && preventAutoClose.current) {
@@ -27026,4 +27018,4 @@ export {
27026
27018
  useOAuthClients,
27027
27019
  useOAuthClient
27028
27020
  };
27029
- //# sourceMappingURL=chunk-YRWZGH66.mjs.map
27021
+ //# sourceMappingURL=chunk-MHR553J3.mjs.map