@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.
- package/dist/{BlockNoteEditor-MCHL63TJ.js → BlockNoteEditor-BR3IRGJW.js} +9 -9
- package/dist/{BlockNoteEditor-MCHL63TJ.js.map → BlockNoteEditor-BR3IRGJW.js.map} +1 -1
- package/dist/{BlockNoteEditor-Q2GLKMFU.mjs → BlockNoteEditor-PVBZYPMF.mjs} +2 -2
- package/dist/billing/index.js +310 -310
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-PE6DSRTQ.js → chunk-5SQFK35K.js} +15 -3
- package/dist/chunk-5SQFK35K.js.map +1 -0
- package/dist/{chunk-4TM6GOT3.mjs → chunk-MDXT47V4.mjs} +15 -3
- package/dist/chunk-MDXT47V4.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -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/package.json +1 -1
- package/src/components/forms/__tests__/useEditorDialog.test.ts +66 -0
- package/src/components/forms/useEditorDialog.ts +25 -0
- package/src/shadcnui/ui/sheet.tsx +7 -1
- package/dist/chunk-4TM6GOT3.mjs.map +0 -1
- package/dist/chunk-PE6DSRTQ.js.map +0 -1
- /package/dist/{BlockNoteEditor-Q2GLKMFU.mjs.map → BlockNoteEditor-PVBZYPMF.mjs.map} +0 -0
|
@@ -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-
|
|
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-
|
|
23629
|
+
//# sourceMappingURL=chunk-MDXT47V4.mjs.map
|