@carlonicora/nextjs-jsonapi 6.25.0 → 6.27.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-Z5LDF47Z.mjs → BlockNoteEditor-D2DXVXTJ.mjs} +4 -4
- package/dist/{BlockNoteEditor-TNX77GCD.js → BlockNoteEditor-NQB75M47.js} +18 -18
- package/dist/{BlockNoteEditor-TNX77GCD.js.map → BlockNoteEditor-NQB75M47.js.map} +1 -1
- package/dist/{BlockNoteViewer-TQ452ZYW.mjs → BlockNoteViewer-76CKL6W5.mjs} +2 -2
- package/dist/{BlockNoteViewer-6KQJODNF.js → BlockNoteViewer-B25WKYQP.js} +3 -3
- package/dist/{BlockNoteViewer-6KQJODNF.js.map → BlockNoteViewer-B25WKYQP.js.map} +1 -1
- package/dist/billing/index.js +465 -465
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-CSBQAPHD.js → chunk-77JC2UCF.js} +1 -1
- package/dist/chunk-77JC2UCF.js.map +1 -0
- package/dist/{chunk-K7KLUYS7.mjs → chunk-7MGXQIEP.mjs} +2 -2
- package/dist/{chunk-OOM54Z5Z.js → chunk-F3EVYBMA.js} +4 -4
- package/dist/{chunk-OOM54Z5Z.js.map → chunk-F3EVYBMA.js.map} +1 -1
- package/dist/{chunk-HJT7TXGG.mjs → chunk-FJUKLVVX.mjs} +1 -1
- package/dist/chunk-FJUKLVVX.mjs.map +1 -0
- package/dist/{chunk-KVYYPKRO.mjs → chunk-HU3AGUFI.mjs} +29 -7
- package/dist/chunk-HU3AGUFI.mjs.map +1 -0
- package/dist/{chunk-JELEQV5T.mjs → chunk-M7YK5CCE.mjs} +2 -2
- package/dist/{chunk-JGL4P3DS.js → chunk-ONU4WCDG.js} +3 -3
- package/dist/{chunk-JGL4P3DS.js.map → chunk-ONU4WCDG.js.map} +1 -1
- package/dist/{chunk-M6SNTMK6.js → chunk-YGV27OAW.js} +747 -725
- package/dist/chunk-YGV27OAW.js.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/containers/RoundPageContainer.d.ts.map +1 -1
- package/dist/components/containers/detailsFitsByDefault.d.ts +19 -0
- package/dist/components/containers/detailsFitsByDefault.d.ts.map +1 -0
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/email-automations/index.js +105 -105
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.js +114 -114
- package/dist/features/analytics/index.mjs +3 -3
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/blog/index.js +129 -129
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.js +7 -7
- package/dist/features/blog/server.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +114 -114
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/dist/utils/toast.d.ts +2 -0
- package/dist/utils/toast.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +23 -2
- package/src/components/containers/__tests__/detailsFitsByDefault.spec.ts +25 -0
- package/src/components/containers/detailsFitsByDefault.ts +30 -0
- package/src/utils/__tests__/toast.spec.ts +39 -0
- package/src/utils/toast.ts +2 -0
- package/dist/chunk-CSBQAPHD.js.map +0 -1
- package/dist/chunk-HJT7TXGG.mjs.map +0 -1
- package/dist/chunk-KVYYPKRO.mjs.map +0 -1
- package/dist/chunk-M6SNTMK6.js.map +0 -1
- /package/dist/{BlockNoteEditor-Z5LDF47Z.mjs.map → BlockNoteEditor-D2DXVXTJ.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-TQ452ZYW.mjs.map → BlockNoteViewer-76CKL6W5.mjs.map} +0 -0
- /package/dist/{chunk-K7KLUYS7.mjs.map → chunk-7MGXQIEP.mjs.map} +0 -0
- /package/dist/{chunk-JELEQV5T.mjs.map → chunk-M7YK5CCE.mjs.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
isReferralEnabled,
|
|
28
28
|
isRegistrationAllowed,
|
|
29
29
|
useWaitlistText
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-M7YK5CCE.mjs";
|
|
31
31
|
import {
|
|
32
32
|
getRoleId,
|
|
33
33
|
isRolesConfigured
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
useIsMobile,
|
|
103
103
|
validateItalianTaxCode,
|
|
104
104
|
validatePartitaIva
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-FJUKLVVX.mjs";
|
|
106
106
|
import {
|
|
107
107
|
dateFormatLocale,
|
|
108
108
|
formatDate
|
|
@@ -10875,7 +10875,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10875
10875
|
import dynamic from "next/dynamic";
|
|
10876
10876
|
import React18 from "react";
|
|
10877
10877
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10878
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10878
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-D2DXVXTJ.mjs"), {
|
|
10879
10879
|
ssr: false
|
|
10880
10880
|
});
|
|
10881
10881
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -16356,6 +16356,19 @@ function ReactMarkdownContainer({
|
|
|
16356
16356
|
}
|
|
16357
16357
|
__name(ReactMarkdownContainer, "ReactMarkdownContainer");
|
|
16358
16358
|
|
|
16359
|
+
// src/components/containers/detailsFitsByDefault.ts
|
|
16360
|
+
var RAIL_REM = 14;
|
|
16361
|
+
var CONTENT_PADDING_REM = 2;
|
|
16362
|
+
var CONTENT_COLUMN_REM = 72;
|
|
16363
|
+
var DETAILS_REM = 24;
|
|
16364
|
+
var DETAILS_BORDER_PX = 1;
|
|
16365
|
+
function detailsFitsByDefault(params) {
|
|
16366
|
+
if (!params.hasCentredColumn) return false;
|
|
16367
|
+
const rem = (params.hasRail ? RAIL_REM : 0) + CONTENT_PADDING_REM + CONTENT_COLUMN_REM + DETAILS_REM;
|
|
16368
|
+
return params.cardInnerPx >= rem * params.remPx + DETAILS_BORDER_PX;
|
|
16369
|
+
}
|
|
16370
|
+
__name(detailsFitsByDefault, "detailsFitsByDefault");
|
|
16371
|
+
|
|
16359
16372
|
// src/components/containers/RoundPageContainerTitle.tsx
|
|
16360
16373
|
import { InfoIcon as InfoIcon2 } from "lucide-react";
|
|
16361
16374
|
import { useTranslations as useTranslations62 } from "next-intl";
|
|
@@ -16506,12 +16519,21 @@ function RoundPageContainer({
|
|
|
16506
16519
|
const hasMobileNavigation = useMobileNavigationItems().length > 0;
|
|
16507
16520
|
const hasSidebar = useOptionalSidebar() !== null;
|
|
16508
16521
|
const [mounted, setMounted] = useState55(false);
|
|
16522
|
+
const cardRef = useRef29(null);
|
|
16509
16523
|
useEffect45(() => {
|
|
16524
|
+
if (!mounted) return;
|
|
16510
16525
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
16511
16526
|
const stored = match?.split("=")[1];
|
|
16512
16527
|
if (stored === "true") setShowDetailsState(true);
|
|
16513
16528
|
else if (stored === "false") setShowDetailsState(false);
|
|
16514
|
-
|
|
16529
|
+
else if (!defaultDetailsOpen && cardRef.current && detailsFitsByDefault({
|
|
16530
|
+
cardInnerPx: cardRef.current.clientWidth,
|
|
16531
|
+
remPx: parseFloat(getComputedStyle(document.documentElement).fontSize) || 16,
|
|
16532
|
+
hasRail: layout2 === "rail" && !!tabs,
|
|
16533
|
+
hasCentredColumn: !fullWidth && (!activeFillHeight || activeConstrainWidth)
|
|
16534
|
+
}))
|
|
16535
|
+
setShowDetailsState(true);
|
|
16536
|
+
}, [mounted]);
|
|
16515
16537
|
useEffect45(() => {
|
|
16516
16538
|
setMounted(true);
|
|
16517
16539
|
}, []);
|
|
@@ -16645,7 +16667,7 @@ function RoundPageContainer({
|
|
|
16645
16667
|
isMobile ? "gap-1 p-1 pt-0" : cn("p-2 pt-0", hasSidebar && "ps-0")
|
|
16646
16668
|
),
|
|
16647
16669
|
children: [
|
|
16648
|
-
/* @__PURE__ */ jsxs96("div", { className: "bg-background flex min-h-0 w-full flex-1 rounded-lg border p-0", children: [
|
|
16670
|
+
/* @__PURE__ */ jsxs96("div", { ref: cardRef, className: "bg-background flex min-h-0 w-full flex-1 rounded-lg border p-0", children: [
|
|
16649
16671
|
/* @__PURE__ */ jsxs96("div", { className: cn("flex w-full flex-col", mobileFlow && "min-h-0 overflow-y-auto pb-16"), children: [
|
|
16650
16672
|
(!fullWidth || forceHeader) && /* @__PURE__ */ jsx172(
|
|
16651
16673
|
RoundPageContainerTitle,
|
|
@@ -17209,7 +17231,7 @@ __name(BlockNoteEditorMentionSuggestionMenu, "BlockNoteEditorMentionSuggestionMe
|
|
|
17209
17231
|
import dynamic2 from "next/dynamic";
|
|
17210
17232
|
import React29 from "react";
|
|
17211
17233
|
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
17212
|
-
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-
|
|
17234
|
+
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-76CKL6W5.mjs").then((m) => m.BlockNoteViewer), { ssr: false });
|
|
17213
17235
|
var BlockNoteViewerContainer = React29.memo(/* @__PURE__ */ __name(function ViewerContainer(props) {
|
|
17214
17236
|
return /* @__PURE__ */ jsx178(BlockNoteViewer, { ...props });
|
|
17215
17237
|
}, "ViewerContainer"));
|
|
@@ -30957,4 +30979,4 @@ export {
|
|
|
30957
30979
|
useOAuthClients,
|
|
30958
30980
|
useOAuthClient
|
|
30959
30981
|
};
|
|
30960
|
-
//# sourceMappingURL=chunk-
|
|
30982
|
+
//# sourceMappingURL=chunk-HU3AGUFI.mjs.map
|