@carlonicora/nextjs-jsonapi 3.21.0 → 3.22.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-CSLA3M32.mjs → BlockNoteEditor-5QBGVWE7.mjs} +2 -2
- package/dist/{BlockNoteEditor-NRI2TZXY.js → BlockNoteEditor-VEEMWB2J.js} +9 -9
- package/dist/{BlockNoteEditor-NRI2TZXY.js.map → BlockNoteEditor-VEEMWB2J.js.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-HSVAW3DQ.mjs → chunk-5G7I3OUB.mjs} +12 -5
- package/dist/chunk-5G7I3OUB.mjs.map +1 -0
- package/dist/{chunk-U32IWQZM.js → chunk-XYSWOW5G.js} +13 -6
- package/dist/chunk-XYSWOW5G.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +3 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -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 +6 -2
- package/src/components/containers/__tests__/RoundPageContainer.padding.spec.tsx +64 -0
- package/src/components/navigations/Header.tsx +3 -2
- package/src/components/navigations/__tests__/Header.spec.tsx +60 -0
- package/src/shadcnui/ui/sidebar.tsx +6 -0
- package/dist/chunk-HSVAW3DQ.mjs.map +0 -1
- package/dist/chunk-U32IWQZM.js.map +0 -1
- /package/dist/{BlockNoteEditor-CSLA3M32.mjs.map → BlockNoteEditor-5QBGVWE7.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -3700,6 +3700,10 @@ function useSidebar() {
|
|
|
3700
3700
|
return context;
|
|
3701
3701
|
}
|
|
3702
3702
|
__name(useSidebar, "useSidebar");
|
|
3703
|
+
function useOptionalSidebar() {
|
|
3704
|
+
return React8.useContext(SidebarContext);
|
|
3705
|
+
}
|
|
3706
|
+
__name(useOptionalSidebar, "useOptionalSidebar");
|
|
3703
3707
|
function SidebarProvider({
|
|
3704
3708
|
defaultOpen = true,
|
|
3705
3709
|
open: openProp,
|
|
@@ -10395,7 +10399,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10395
10399
|
import dynamic from "next/dynamic";
|
|
10396
10400
|
import React18 from "react";
|
|
10397
10401
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
10398
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10402
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-5QBGVWE7.mjs"), {
|
|
10399
10403
|
ssr: false
|
|
10400
10404
|
});
|
|
10401
10405
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -15048,6 +15052,7 @@ function Header({ children, mobileChildren, leftContent, logo, className }) {
|
|
|
15048
15052
|
const rootLabel = useHeaderRootLabel();
|
|
15049
15053
|
const isRootHidden = useIsBreadcrumbRootHidden();
|
|
15050
15054
|
const isMobile = useIsMobile();
|
|
15055
|
+
const sidebar = useOptionalSidebar();
|
|
15051
15056
|
return (
|
|
15052
15057
|
// Outer element owns the safe-area inset; the inner row keeps h-12 so the
|
|
15053
15058
|
// content height is unchanged and only the notch padding is added above.
|
|
@@ -15067,7 +15072,7 @@ function Header({ children, mobileChildren, leftContent, logo, className }) {
|
|
|
15067
15072
|
className: `bg-sidebar sticky top-0 z-10 flex h-[var(--app-header-h,calc(3rem_+_env(safe-area-inset-top)))] flex-col items-center justify-start gap-x-4 pt-[env(safe-area-inset-top)] ${className ?? ""}`,
|
|
15068
15073
|
children: /* @__PURE__ */ jsxs87("div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between ps-2 pe-4", children: [
|
|
15069
15074
|
isMobile && logo && /* @__PURE__ */ jsx161("div", { className: "flex shrink-0 flex-row items-center pe-1", children: logo }),
|
|
15070
|
-
/* @__PURE__ */ jsx161(SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
|
|
15075
|
+
sidebar && /* @__PURE__ */ jsx161(SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
|
|
15071
15076
|
leftContent,
|
|
15072
15077
|
/* @__PURE__ */ jsx161("div", { className: "flex w-full flex-row items-center justify-start", children: /* @__PURE__ */ jsx161(BreadcrumbNavigation, { items: breadcrumbs, rootLabel: rootLabel ?? void 0, showRoot: !isRootHidden }) }),
|
|
15073
15078
|
isMobile ? mobileChildren && /* @__PURE__ */ jsx161("div", { className: "flex shrink-0 flex-row items-center justify-end gap-x-2 whitespace-nowrap", children: mobileChildren }) : children && // No fixed width: the widget slot sizes to its content and the
|
|
@@ -15628,6 +15633,7 @@ function RoundPageContainer({
|
|
|
15628
15633
|
const headerMobileChildren = useHeaderMobileChildren();
|
|
15629
15634
|
const [showDetails, setShowDetailsState] = useState52(defaultDetailsOpen);
|
|
15630
15635
|
const isMobile = useIsMobile();
|
|
15636
|
+
const hasSidebar = useOptionalSidebar() !== null;
|
|
15631
15637
|
const [mounted, setMounted] = useState52(false);
|
|
15632
15638
|
useEffect42(() => {
|
|
15633
15639
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
@@ -15715,7 +15721,7 @@ function RoundPageContainer({
|
|
|
15715
15721
|
// render 78px tall; below the bar it became a visible gap. The
|
|
15716
15722
|
// swipe-up gesture region is unaffected either way — it is a gesture
|
|
15717
15723
|
// area, not painted chrome.
|
|
15718
|
-
isMobile ? "gap-1 p-1 pt-0" : "p-2 pt-0 ps-0"
|
|
15724
|
+
isMobile ? "gap-1 p-1 pt-0" : cn("p-2 pt-0", hasSidebar && "ps-0")
|
|
15719
15725
|
),
|
|
15720
15726
|
children: [
|
|
15721
15727
|
/* @__PURE__ */ jsx170("div", { className: cn("bg-background flex min-h-0 w-full flex-1", isMobile ? "" : "rounded-lg border p-0"), children: /* @__PURE__ */ jsx170("div", { className: "flex w-full flex-col" }) }),
|
|
@@ -15751,7 +15757,7 @@ function RoundPageContainer({
|
|
|
15751
15757
|
// render 78px tall; below the bar it became a visible gap. The
|
|
15752
15758
|
// swipe-up gesture region is unaffected either way — it is a gesture
|
|
15753
15759
|
// area, not painted chrome.
|
|
15754
|
-
isMobile ? "gap-1 p-1 pt-0" : "p-2 pt-0 ps-0"
|
|
15760
|
+
isMobile ? "gap-1 p-1 pt-0" : cn("p-2 pt-0", hasSidebar && "ps-0")
|
|
15755
15761
|
),
|
|
15756
15762
|
children: [
|
|
15757
15763
|
/* @__PURE__ */ jsxs94("div", { className: "bg-background flex min-h-0 w-full flex-1 rounded-lg border p-0", children: [
|
|
@@ -26922,6 +26928,7 @@ export {
|
|
|
26922
26928
|
TooltipTrigger,
|
|
26923
26929
|
TooltipContent,
|
|
26924
26930
|
useSidebar,
|
|
26931
|
+
useOptionalSidebar,
|
|
26925
26932
|
SidebarProvider,
|
|
26926
26933
|
Sidebar,
|
|
26927
26934
|
SidebarTrigger,
|
|
@@ -27273,4 +27280,4 @@ export {
|
|
|
27273
27280
|
useOAuthClients,
|
|
27274
27281
|
useOAuthClient
|
|
27275
27282
|
};
|
|
27276
|
-
//# sourceMappingURL=chunk-
|
|
27283
|
+
//# sourceMappingURL=chunk-5G7I3OUB.mjs.map
|