@carlonicora/nextjs-jsonapi 3.16.1 → 3.18.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-BQ46E6YI.js → BlockNoteEditor-K23Z4LHK.js} +9 -9
- package/dist/{BlockNoteEditor-BQ46E6YI.js.map → BlockNoteEditor-K23Z4LHK.js.map} +1 -1
- package/dist/{BlockNoteEditor-6SQR7WNA.mjs → BlockNoteEditor-OJTGGL67.mjs} +2 -2
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-2HZCW4ML.js → chunk-2UQBILF5.js} +20 -23
- package/dist/chunk-2UQBILF5.js.map +1 -0
- package/dist/{chunk-YRWZGH66.mjs → chunk-4WUD3DDO.mjs} +20 -23
- package/dist/chunk-4WUD3DDO.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +17 -1
- package/dist/components/index.d.ts +17 -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/components/containers/RoundPageContainer.tsx +25 -0
- 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/chunk-YRWZGH66.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-6SQR7WNA.mjs.map → BlockNoteEditor-OJTGGL67.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-OJTGGL67.mjs"), {
|
|
10396
10396
|
ssr: false
|
|
10397
10397
|
});
|
|
10398
10398
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -15578,6 +15578,7 @@ function RoundPageContainer({
|
|
|
15578
15578
|
forceHeader,
|
|
15579
15579
|
header,
|
|
15580
15580
|
layout: layout2 = "tabs",
|
|
15581
|
+
railHeader,
|
|
15581
15582
|
onSectionChange,
|
|
15582
15583
|
testId,
|
|
15583
15584
|
defaultDetailsOpen = false,
|
|
@@ -15743,7 +15744,7 @@ function RoundPageContainer({
|
|
|
15743
15744
|
orientation: "horizontal",
|
|
15744
15745
|
className: cn(`flex min-w-0 grow data-[orientation=horizontal]:flex-row`, isFixed && `h-full`, clip),
|
|
15745
15746
|
children: [
|
|
15746
|
-
/* @__PURE__ */
|
|
15747
|
+
/* @__PURE__ */ jsxs94(
|
|
15747
15748
|
"aside",
|
|
15748
15749
|
{
|
|
15749
15750
|
"data-testid": "round-page-rail",
|
|
@@ -15752,16 +15753,20 @@ function RoundPageContainer({
|
|
|
15752
15753
|
`hidden shrink-0 border-e p-4 md:flex md:w-56 md:flex-col`,
|
|
15753
15754
|
isFixed && `md:overflow-y-auto`
|
|
15754
15755
|
),
|
|
15755
|
-
children:
|
|
15756
|
-
|
|
15757
|
-
|
|
15758
|
-
/* @__PURE__ */ jsx169(
|
|
15759
|
-
|
|
15760
|
-
|
|
15761
|
-
|
|
15756
|
+
children: [
|
|
15757
|
+
railHeader && /* @__PURE__ */ jsx169("div", { children: railHeader }),
|
|
15758
|
+
/* @__PURE__ */ jsxs94(TabsList, { className: "flex h-auto w-full flex-col items-stretch gap-0.5 bg-transparent p-0", children: [
|
|
15759
|
+
ungrouped.map((tab) => /* @__PURE__ */ jsx169(TabsTrigger, { value: tabValue(tab), className: railTriggerClass, children: tab.contentLabel ?? tab.label }, tab.label)),
|
|
15760
|
+
groups.map((group) => /* @__PURE__ */ jsxs94(Fragment23, { children: [
|
|
15761
|
+
/* @__PURE__ */ jsx169(MicroLabel, { as: "span", role: "presentation", className: "block px-3 pt-3 pb-1", children: group.label }),
|
|
15762
|
+
group.items.map((tab) => /* @__PURE__ */ jsx169(TabsTrigger, { value: tabValue(tab), className: railTriggerClass, children: tab.contentLabel ?? tab.label }, tab.label))
|
|
15763
|
+
] }, group.label))
|
|
15764
|
+
] })
|
|
15765
|
+
]
|
|
15762
15766
|
}
|
|
15763
15767
|
),
|
|
15764
15768
|
/* @__PURE__ */ jsxs94("div", { className: cn(`flex min-w-0 grow flex-col`, clip), children: [
|
|
15769
|
+
railHeader && /* @__PURE__ */ jsx169("div", { className: "mx-auto w-full max-w-48 px-2 pt-2 md:hidden", children: railHeader }),
|
|
15765
15770
|
/* @__PURE__ */ jsx169("div", { "data-testid": "round-page-rail-select", className: "p-2 md:hidden", children: /* @__PURE__ */ jsxs94(
|
|
15766
15771
|
Select,
|
|
15767
15772
|
{
|
|
@@ -23812,7 +23817,6 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
23812
23817
|
useEffect76(() => {
|
|
23813
23818
|
setNewNotifications(unreadCount > 0);
|
|
23814
23819
|
}, [unreadCount]);
|
|
23815
|
-
const processSocketNotificationsRef = useRef39(null);
|
|
23816
23820
|
const processSocketNotifications = useCallback48(() => {
|
|
23817
23821
|
if (socketNotifications.length === 0) {
|
|
23818
23822
|
return;
|
|
@@ -23835,7 +23839,10 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
23835
23839
|
const toastNotification = generateToastNotification(notification, t, generateUrl);
|
|
23836
23840
|
showToast(toastNotification.title, {
|
|
23837
23841
|
description: toastNotification.description,
|
|
23838
|
-
action: toastNotification.action
|
|
23842
|
+
action: toastNotification.action,
|
|
23843
|
+
// A toast that offers something to press stays until dismissed; a
|
|
23844
|
+
// plain notice keeps sonner's default timeout.
|
|
23845
|
+
duration: toastNotification.action ? Infinity : void 0
|
|
23839
23846
|
});
|
|
23840
23847
|
});
|
|
23841
23848
|
if (batchIndex === batches.length - 1) {
|
|
@@ -23853,17 +23860,7 @@ function NotificationModalContent({ isOpen, setIsOpen }) {
|
|
|
23853
23860
|
checkCircuitBreaker
|
|
23854
23861
|
]);
|
|
23855
23862
|
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
|
-
};
|
|
23863
|
+
processSocketNotifications();
|
|
23867
23864
|
}, [processSocketNotifications]);
|
|
23868
23865
|
const handleOpenChange = /* @__PURE__ */ __name((newlyRequestedOpenState) => {
|
|
23869
23866
|
if (!newlyRequestedOpenState && preventAutoClose.current) {
|
|
@@ -27026,4 +27023,4 @@ export {
|
|
|
27026
27023
|
useOAuthClients,
|
|
27027
27024
|
useOAuthClient
|
|
27028
27025
|
};
|
|
27029
|
-
//# sourceMappingURL=chunk-
|
|
27026
|
+
//# sourceMappingURL=chunk-4WUD3DDO.mjs.map
|