@carlonicora/nextjs-jsonapi 1.131.0 → 1.131.1

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.
@@ -3481,7 +3481,7 @@ function SheetContent({
3481
3481
  ...props
3482
3482
  }) {
3483
3483
  return /* @__PURE__ */ jsxs20(SheetPortal, { children: [
3484
- /* @__PURE__ */ jsx36(SheetOverlay, {}),
3484
+ /* @__PURE__ */ jsx36(SheetOverlay, { forceRender: true }),
3485
3485
  /* @__PURE__ */ jsxs20(
3486
3486
  SheetPrimitive.Popup,
3487
3487
  {
@@ -9335,6 +9335,7 @@ import { PencilIcon as PencilIcon3 } from "lucide-react";
9335
9335
 
9336
9336
  // src/components/forms/useEditorDialog.ts
9337
9337
  import { useCallback as useCallback15, useEffect as useEffect16, useRef as useRef13, useState as useState22 } from "react";
9338
+ var openEditorStack = [];
9338
9339
  function useEditorDialog(isFormDirty, options) {
9339
9340
  const [open, setOpen] = useState22(false);
9340
9341
  const [showDiscardConfirm, setShowDiscardConfirm] = useState22(false);
@@ -9372,9 +9373,20 @@ function useEditorDialog(isFormDirty, options) {
9372
9373
  },
9373
9374
  [isFormDirty]
9374
9375
  );
9376
+ const dialogId = useRef13({});
9377
+ useEffect16(() => {
9378
+ if (!open) return;
9379
+ const id = dialogId.current;
9380
+ openEditorStack.push(id);
9381
+ return () => {
9382
+ const index = openEditorStack.lastIndexOf(id);
9383
+ if (index !== -1) openEditorStack.splice(index, 1);
9384
+ };
9385
+ }, [open]);
9375
9386
  useEffect16(() => {
9376
9387
  const handleKeyDown = /* @__PURE__ */ __name((event) => {
9377
9388
  if (event.key === "Escape" && open) {
9389
+ if (openEditorStack[openEditorStack.length - 1] !== dialogId.current) return;
9378
9390
  event.preventDefault();
9379
9391
  event.stopPropagation();
9380
9392
  handleOpenChange(false);
@@ -10038,7 +10050,7 @@ import { useRef as useRef17 } from "react";
10038
10050
  import dynamic from "next/dynamic";
10039
10051
  import React17 from "react";
10040
10052
  import { jsx as jsx85 } from "react/jsx-runtime";
10041
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-Q2GLKMFU.mjs"), {
10053
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-PVBZYPMF.mjs"), {
10042
10054
  ssr: false
10043
10055
  });
10044
10056
  var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -23614,4 +23626,4 @@ export {
23614
23626
  useOAuthClients,
23615
23627
  useOAuthClient
23616
23628
  };
23617
- //# sourceMappingURL=chunk-4TM6GOT3.mjs.map
23629
+ //# sourceMappingURL=chunk-MDXT47V4.mjs.map