@carlonicora/nextjs-jsonapi 1.139.2 → 1.139.4

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.
@@ -48,7 +48,7 @@ import {
48
48
  TabsList,
49
49
  TabsTrigger,
50
50
  useCurrentUserContext
51
- } from "../chunk-C4HLDTHV.mjs";
51
+ } from "../chunk-A5ZPKBML.mjs";
52
52
  import {
53
53
  getRoleId,
54
54
  getStripePublishableKey
@@ -9568,7 +9568,13 @@ function EditorSheet({
9568
9568
  // button — otherwise an interactive trigger (e.g. <Button>) nests a
9569
9569
  // <button> inside SheetTrigger's <button> (invalid HTML / hydration
9570
9570
  // error). `render` also preserves the element's native `disabled`.
9571
- /* @__PURE__ */ jsx83(SheetTrigger, { render: trigger })
9571
+ //
9572
+ // `nativeButton={false}` because this package's trigger convention is
9573
+ // `<Button render={<div />} nativeButton={false}>` (see the package
9574
+ // CLAUDE.md "pointer cursor" note). Without it the Trigger defaults to
9575
+ // `nativeButton: true`, promising a native <button> it never renders,
9576
+ // and Base UI logs a semantics/accessibility error at runtime.
9577
+ /* @__PURE__ */ jsx83(SheetTrigger, { nativeButton: false, render: trigger })
9572
9578
  ) : /* @__PURE__ */ jsx83(SheetTrigger, { children: isEdit ? /* @__PURE__ */ jsx83(
9573
9579
  Button,
9574
9580
  {
@@ -10114,7 +10120,7 @@ import { useRef as useRef17 } from "react";
10114
10120
  import dynamic from "next/dynamic";
10115
10121
  import React17 from "react";
10116
10122
  import { jsx as jsx86 } from "react/jsx-runtime";
10117
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-OZCZ3UVF.mjs"), {
10123
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-YWEXTQMH.mjs"), {
10118
10124
  ssr: false
10119
10125
  });
10120
10126
  var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -14689,12 +14695,12 @@ import { jsx as jsx157, jsxs as jsxs90 } from "react/jsx-runtime";
14689
14695
  function RecentPagesNavigator() {
14690
14696
  const recentPages = useAtomValue(recentPagesAtom);
14691
14697
  const t = useTranslations51();
14692
- const { state } = useSidebar();
14698
+ const { state, isMobile } = useSidebar();
14693
14699
  if (recentPages.length === 0) {
14694
14700
  return null;
14695
14701
  }
14696
14702
  return /* @__PURE__ */ jsxs90(DropdownMenu, { children: [
14697
- /* @__PURE__ */ jsx157(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx157("span", {}), nativeButton: false, children: /* @__PURE__ */ jsx157("span", { className: "flex w-full cursor-pointer items-center gap-2", children: state === "collapsed" ? /* @__PURE__ */ jsx157(HistoryIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx157("span", { children: t(`common.recent_pages`) }) }) }),
14703
+ /* @__PURE__ */ jsx157(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx157("span", {}), nativeButton: false, children: /* @__PURE__ */ jsx157("span", { className: "flex w-full cursor-pointer items-center gap-2", children: state === "collapsed" && !isMobile ? /* @__PURE__ */ jsx157(HistoryIcon, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx157("span", { children: t(`common.recent_pages`) }) }) }),
14698
14704
  /* @__PURE__ */ jsx157(DropdownMenuContent, { align: "start", className: "w-96", children: /* @__PURE__ */ jsxs90(DropdownMenuGroup, { children: [
14699
14705
  /* @__PURE__ */ jsx157(DropdownMenuLabel, { children: t(`common.recent_pages`) }),
14700
14706
  /* @__PURE__ */ jsx157(DropdownMenuSeparator, {}),
@@ -23888,4 +23894,4 @@ export {
23888
23894
  useOAuthClients,
23889
23895
  useOAuthClient
23890
23896
  };
23891
- //# sourceMappingURL=chunk-C4HLDTHV.mjs.map
23897
+ //# sourceMappingURL=chunk-A5ZPKBML.mjs.map