@carlonicora/nextjs-jsonapi 1.125.1 → 1.127.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.
@@ -2773,6 +2773,7 @@ function HoverCardContent({
2773
2773
  sideOffset = 4,
2774
2774
  align = "center",
2775
2775
  alignOffset = 4,
2776
+ anchor,
2776
2777
  ...props
2777
2778
  }) {
2778
2779
  return /* @__PURE__ */ jsx27(PreviewCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx27(
@@ -2782,6 +2783,7 @@ function HoverCardContent({
2782
2783
  alignOffset,
2783
2784
  side,
2784
2785
  sideOffset,
2786
+ anchor,
2785
2787
  className: "isolate z-50",
2786
2788
  children: /* @__PURE__ */ jsx27(
2787
2789
  PreviewCardPrimitive.Popup,
@@ -9970,7 +9972,7 @@ import { useRef as useRef17 } from "react";
9970
9972
  import dynamic from "next/dynamic";
9971
9973
  import React17 from "react";
9972
9974
  import { jsx as jsx82 } from "react/jsx-runtime";
9973
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-YEEQH7UB.mjs"), {
9975
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-SMZNQ4CX.mjs"), {
9974
9976
  ssr: false
9975
9977
  });
9976
9978
  var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -14563,15 +14565,20 @@ function RoundPageContainerTitle({
14563
14565
  }) {
14564
14566
  const { title } = useSharedContext();
14565
14567
  const isMobile = useIsMobile();
14566
- return /* @__PURE__ */ jsxs91("div", { className: cn(`flex w-full flex-row items-center border-b p-4`, isMobile ? `justify-end` : `justify-between`), children: [
14567
- !isMobile && /* @__PURE__ */ jsxs91("div", { className: "flex w-full gap-x-4", children: [
14568
+ return /* @__PURE__ */ jsxs91("div", { className: cn(`flex w-full flex-row items-center gap-x-2 border-b p-4 justify-between`), children: [
14569
+ !isMobile ? /* @__PURE__ */ jsxs91("div", { className: "flex w-full gap-x-4", children: [
14568
14570
  /* @__PURE__ */ jsxs91("div", { className: "text-muted-foreground flex items-center gap-x-2 text-lg font-light whitespace-nowrap", children: [
14571
+ title.titleActions,
14569
14572
  module && module.icon ? /* @__PURE__ */ jsx153(module.icon, { className: "text-primary h-6 w-6" }) : title.icon,
14570
14573
  title.type
14571
14574
  ] }),
14572
14575
  /* @__PURE__ */ jsx153("div", { className: cn("text-primary w-full text-xl font-semibold"), children: title.element })
14576
+ ] }) : /* @__PURE__ */ jsxs91("div", { className: "text-muted-foreground flex min-w-0 items-center gap-x-2 text-base font-light", children: [
14577
+ title.titleActions,
14578
+ module && module.icon ? /* @__PURE__ */ jsx153(module.icon, { className: "text-primary h-5 w-5 shrink-0" }) : title.icon,
14579
+ /* @__PURE__ */ jsx153("span", { className: "truncate", children: title.type })
14573
14580
  ] }),
14574
- (title.functions || details) && /* @__PURE__ */ jsxs91("div", { className: "flex items-center gap-x-2", children: [
14581
+ (title.functions || details) && /* @__PURE__ */ jsxs91("div", { className: "flex shrink-0 items-center gap-x-2", children: [
14575
14582
  title.functions,
14576
14583
  details && /* @__PURE__ */ jsxs91(Tooltip2, { children: [
14577
14584
  /* @__PURE__ */ jsx153(TooltipTrigger, { children: /* @__PURE__ */ jsx153(
@@ -14615,7 +14622,8 @@ function RoundPageContainer({
14615
14622
  fullWidth,
14616
14623
  forceHeader,
14617
14624
  header,
14618
- layout: layout2 = "tabs"
14625
+ layout: layout2 = "tabs",
14626
+ onSectionChange
14619
14627
  }) {
14620
14628
  const headerChildren = useHeaderChildren();
14621
14629
  const headerLeftContent = useHeaderLeftContent();
@@ -14649,9 +14657,14 @@ function RoundPageContainer({
14649
14657
  const handleTabChange = useCallback27(
14650
14658
  (key) => {
14651
14659
  setActiveTab(key);
14652
- if (module && id) rewriteUrl({ page: module, id, additionalParameters: { section: key } });
14660
+ if (module && id) {
14661
+ rewriteUrl({ page: module, id, additionalParameters: { section: key } });
14662
+ } else {
14663
+ rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
14664
+ }
14665
+ onSectionChange?.(key);
14653
14666
  },
14654
- [module, id, rewriteUrl]
14667
+ [module, id, rewriteUrl, onSectionChange]
14655
14668
  );
14656
14669
  const activeFillHeight = tabs?.find((t) => tabValue(t) === activeTab)?.fillHeight === true;
14657
14670
  const { ungrouped, groups } = useMemo20(() => partitionTabs(tabs ?? []), [tabs]);
@@ -14685,8 +14698,8 @@ function RoundPageContainer({
14685
14698
  {
14686
14699
  value: activeTab,
14687
14700
  onValueChange: handleTabChange,
14688
- orientation: "vertical",
14689
- className: "flex h-full min-w-0 grow overflow-hidden",
14701
+ orientation: "horizontal",
14702
+ className: "flex h-full min-w-0 grow overflow-hidden data-[orientation=horizontal]:flex-row",
14690
14703
  children: [
14691
14704
  /* @__PURE__ */ jsx154(
14692
14705
  "aside",
@@ -23510,4 +23523,4 @@ export {
23510
23523
  useOAuthClients,
23511
23524
  useOAuthClient
23512
23525
  };
23513
- //# sourceMappingURL=chunk-LRLVHDFA.mjs.map
23526
+ //# sourceMappingURL=chunk-JGVMZYAO.mjs.map