@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.
- package/dist/{BlockNoteEditor-6SQR7WNA.mjs → BlockNoteEditor-6DYL5NZD.mjs} +2 -2
- package/dist/{BlockNoteEditor-BQ46E6YI.js → BlockNoteEditor-DGPIAJI4.js} +9 -9
- package/dist/{BlockNoteEditor-BQ46E6YI.js.map → BlockNoteEditor-DGPIAJI4.js.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-2HZCW4ML.js → chunk-5EV234WK.js} +7 -15
- package/dist/chunk-5EV234WK.js.map +1 -0
- package/dist/{chunk-YRWZGH66.mjs → chunk-MHR553J3.mjs} +7 -15
- package/dist/{chunk-YRWZGH66.mjs.map → chunk-MHR553J3.mjs.map} +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +75 -75
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/notification/components/modals/NotificationModal.tsx +8 -16
- package/src/features/notification/components/modals/__tests__/NotificationModal.spec.tsx +156 -0
- package/dist/chunk-2HZCW4ML.js.map +0 -1
- /package/dist/{BlockNoteEditor-6SQR7WNA.mjs.map → BlockNoteEditor-6DYL5NZD.mjs.map} +0 -0
|
@@ -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-
|
|
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
|
-
|
|
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-
|
|
27021
|
+
//# sourceMappingURL=chunk-MHR553J3.mjs.map
|