@carlonicora/nextjs-jsonapi 1.136.0 → 1.137.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.
@@ -10117,7 +10117,7 @@ import { useRef as useRef17 } from "react";
10117
10117
  import dynamic from "next/dynamic";
10118
10118
  import React17 from "react";
10119
10119
  import { jsx as jsx86 } from "react/jsx-runtime";
10120
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-JVZ2HDAU.mjs"), {
10120
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-DFBJOA4C.mjs"), {
10121
10121
  ssr: false
10122
10122
  });
10123
10123
  var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -14527,13 +14527,33 @@ function Header({ children, mobileChildren, leftContent, logo, className }) {
14527
14527
  const { breadcrumbs } = useSharedContext();
14528
14528
  const rootLabel = useHeaderRootLabel();
14529
14529
  const isMobile = useIsMobile();
14530
- return /* @__PURE__ */ jsx153("header", { className: `sticky top-0 z-10 flex h-12 flex-col items-center justify-start gap-x-4 ${className ?? ""}`, children: /* @__PURE__ */ jsxs87("div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between pl-2 pr-4", children: [
14531
- isMobile && logo && /* @__PURE__ */ jsx153("div", { className: "flex shrink-0 flex-row items-center pr-1", children: logo }),
14532
- /* @__PURE__ */ jsx153(SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
14533
- leftContent,
14534
- /* @__PURE__ */ jsx153("div", { className: "flex w-full flex-row items-center justify-start", children: /* @__PURE__ */ jsx153(BreadcrumbNavigation, { items: breadcrumbs, rootLabel: rootLabel ?? void 0 }) }),
14535
- isMobile ? mobileChildren && /* @__PURE__ */ jsx153("div", { className: "flex shrink-0 flex-row items-center justify-end gap-x-2 whitespace-nowrap", children: mobileChildren }) : children && /* @__PURE__ */ jsx153("div", { className: "flex w-64 flex-row items-center justify-end gap-x-4 whitespace-nowrap", children: /* @__PURE__ */ jsx153("div", { className: "flex flex-row items-center justify-end gap-x-4 whitespace-nowrap", children }) })
14536
- ] }) });
14530
+ return (
14531
+ // Outer element owns the safe-area inset; the inner row keeps h-12 so the
14532
+ // content height is unchanged and only the notch padding is added above.
14533
+ // bg-sidebar: the outer element has no background of its own, and a padded
14534
+ // transparent strip would show scrolled content behind the status bar.
14535
+ // The fallback is MANDATORY in this package: other consumers (neural-erp)
14536
+ // never define --app-header-h, and a var() referencing an undefined
14537
+ // property invalidates the whole declaration. The fallback MUST include the
14538
+ // safe-area inset, because the padding below is unconditional: a consumer
14539
+ // that never defines the variable but does set viewportFit: "cover" would
14540
+ // otherwise get 3rem of height plus inset padding, squeezing the inner
14541
+ // h-12 row. (Tailwind arbitrary values need _ for spaces; CSS calc needs
14542
+ // whitespace around the +.)
14543
+ /* @__PURE__ */ jsx153(
14544
+ "header",
14545
+ {
14546
+ 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 ?? ""}`,
14547
+ children: /* @__PURE__ */ jsxs87("div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between pl-2 pr-4", children: [
14548
+ isMobile && logo && /* @__PURE__ */ jsx153("div", { className: "flex shrink-0 flex-row items-center pr-1", children: logo }),
14549
+ /* @__PURE__ */ jsx153(SidebarTrigger, { "aria-label": "Toggle sidebar", id: "sidebar-trigger" }),
14550
+ leftContent,
14551
+ /* @__PURE__ */ jsx153("div", { className: "flex w-full flex-row items-center justify-start", children: /* @__PURE__ */ jsx153(BreadcrumbNavigation, { items: breadcrumbs, rootLabel: rootLabel ?? void 0 }) }),
14552
+ isMobile ? mobileChildren && /* @__PURE__ */ jsx153("div", { className: "flex shrink-0 flex-row items-center justify-end gap-x-2 whitespace-nowrap", children: mobileChildren }) : children && /* @__PURE__ */ jsx153("div", { className: "flex w-64 flex-row items-center justify-end gap-x-4 whitespace-nowrap", children: /* @__PURE__ */ jsx153("div", { className: "flex flex-row items-center justify-end gap-x-4 whitespace-nowrap", children }) })
14553
+ ] })
14554
+ }
14555
+ )
14556
+ );
14537
14557
  }
14538
14558
  __name(Header, "Header");
14539
14559
 
@@ -14966,7 +14986,10 @@ function RoundPageContainer({
14966
14986
  "div",
14967
14987
  {
14968
14988
  "data-testid": testId,
14969
- className: cn("flex h-[calc(100vh-3rem)] w-full flex-col", isMobile ? "gap-1 p-1 pt-0" : "p-2 pt-0 pl-0"),
14989
+ className: cn(
14990
+ "flex h-[calc(100dvh-var(--app-header-h,3rem))] w-full flex-col",
14991
+ isMobile ? "gap-1 p-1 pt-0" : "p-2 pt-0 pl-0"
14992
+ ),
14970
14993
  children: [
14971
14994
  /* @__PURE__ */ jsx161("div", { className: cn("bg-background flex min-h-0 w-full flex-1", isMobile ? "" : "rounded-lg border p-0"), children: /* @__PURE__ */ jsx161("div", { className: "flex w-full flex-col" }) }),
14972
14995
  /* @__PURE__ */ jsx161(MobileNavigationBar, {})
@@ -14990,7 +15013,10 @@ function RoundPageContainer({
14990
15013
  "div",
14991
15014
  {
14992
15015
  "data-testid": testId,
14993
- className: cn(`flex h-[calc(100vh-3rem)] w-full flex-col`, isMobile ? "gap-1 p-1 pt-0" : "p-2 pt-0 pl-0"),
15016
+ className: cn(
15017
+ `flex h-[calc(100dvh-var(--app-header-h,3rem))] w-full flex-col`,
15018
+ isMobile ? "gap-1 p-1 pt-0" : "p-2 pt-0 pl-0"
15019
+ ),
14994
15020
  children: [
14995
15021
  /* @__PURE__ */ jsxs94("div", { className: "bg-background flex min-h-0 w-full flex-1 rounded-lg border p-0", children: [
14996
15022
  /* @__PURE__ */ jsxs94("div", { className: "flex w-full flex-col", children: [
@@ -15581,13 +15607,13 @@ function PageContentContainer({ header, details, footer, content, fullBleed }) {
15581
15607
  storage: typeof window !== "undefined" ? localStorage : void 0
15582
15608
  });
15583
15609
  if (!isReady) {
15584
- return /* @__PURE__ */ jsx169("div", { className: "flex h-[calc(100vh-4rem)] w-full flex-col" });
15610
+ return /* @__PURE__ */ jsx169("div", { className: "flex h-[calc(100dvh-4rem)] w-full flex-col" });
15585
15611
  }
15586
15612
  const leftPanelDefaultSize = isMobile ? "10%" : "32%";
15587
15613
  const leftPanelMinSize = isMobile ? "10%" : "20%";
15588
15614
  const leftPanelMaxSize = isMobile ? "90%" : "40%";
15589
15615
  const rightPanelDefaultSize = isMobile ? "90%" : "68%";
15590
- return /* @__PURE__ */ jsxs99("div", { className: "flex h-[calc(100vh-4rem)] w-full flex-col transition-opacity duration-150 animate-in fade-in", children: [
15616
+ return /* @__PURE__ */ jsxs99("div", { className: "flex h-[calc(100dvh-4rem)] w-full flex-col transition-opacity duration-150 animate-in fade-in", children: [
15591
15617
  header && /* @__PURE__ */ jsx169("div", { className: "mb-4 flex w-full shrink-0 border-b pr-4", children: header }),
15592
15618
  /* @__PURE__ */ jsx169("div", { className: "min-h-0 flex-1", children: details || footer ? /* @__PURE__ */ jsxs99(
15593
15619
  ResizablePanelGroup,
@@ -22113,19 +22139,19 @@ function OAuthConsentScreen({
22113
22139
  }) {
22114
22140
  const { clientInfo, isLoading, error, approve, deny, isSubmitting } = useOAuthConsent(params);
22115
22141
  if (isLoading) {
22116
- return /* @__PURE__ */ jsx264("div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ jsx264(Card, { className: "w-full max-w-md", children: /* @__PURE__ */ jsxs165(CardContent, { className: "flex flex-col items-center justify-center py-12", children: [
22142
+ return /* @__PURE__ */ jsx264("div", { className: "min-h-dvh flex items-center justify-center p-4", children: /* @__PURE__ */ jsx264(Card, { className: "w-full max-w-md", children: /* @__PURE__ */ jsxs165(CardContent, { className: "flex flex-col items-center justify-center py-12", children: [
22117
22143
  /* @__PURE__ */ jsx264(Loader26, { className: "h-8 w-8 animate-spin text-muted-foreground" }),
22118
22144
  /* @__PURE__ */ jsx264("p", { className: "mt-4 text-muted-foreground", children: "Loading authorization request..." })
22119
22145
  ] }) }) });
22120
22146
  }
22121
22147
  if (error || !clientInfo) {
22122
- return /* @__PURE__ */ jsx264("div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ jsx264(Card, { className: "w-full max-w-md", children: /* @__PURE__ */ jsx264(CardContent, { className: "py-8", children: /* @__PURE__ */ jsxs165(Alert, { variant: "destructive", children: [
22148
+ return /* @__PURE__ */ jsx264("div", { className: "min-h-dvh flex items-center justify-center p-4", children: /* @__PURE__ */ jsx264(Card, { className: "w-full max-w-md", children: /* @__PURE__ */ jsx264(CardContent, { className: "py-8", children: /* @__PURE__ */ jsxs165(Alert, { variant: "destructive", children: [
22123
22149
  /* @__PURE__ */ jsx264(AlertTriangle2, { className: "h-4 w-4" }),
22124
22150
  /* @__PURE__ */ jsx264(AlertDescription, { children: error?.message || "Invalid authorization request. Please try again." })
22125
22151
  ] }) }) }) });
22126
22152
  }
22127
22153
  const { client, scopes } = clientInfo;
22128
- return /* @__PURE__ */ jsx264("div", { className: "min-h-screen flex items-center justify-center p-4 bg-muted/30", children: /* @__PURE__ */ jsxs165(Card, { className: "w-full max-w-md", children: [
22154
+ return /* @__PURE__ */ jsx264("div", { className: "min-h-dvh flex items-center justify-center p-4 bg-muted/30", children: /* @__PURE__ */ jsxs165(Card, { className: "w-full max-w-md", children: [
22129
22155
  /* @__PURE__ */ jsxs165(CardContent, { className: "pt-6 space-y-6", children: [
22130
22156
  /* @__PURE__ */ jsx264(OAuthConsentHeader, { client, logoUrl, appName }),
22131
22157
  /* @__PURE__ */ jsx264(Separator, {}),
@@ -23843,4 +23869,4 @@ export {
23843
23869
  useOAuthClients,
23844
23870
  useOAuthClient
23845
23871
  };
23846
- //# sourceMappingURL=chunk-2KXPQHZU.mjs.map
23872
+ //# sourceMappingURL=chunk-EWAOWYT5.mjs.map