@carlonicora/nextjs-jsonapi 1.124.1 → 1.124.2
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-LN6P5CEQ.mjs → BlockNoteEditor-4HYQUEYC.mjs} +2 -2
- package/dist/{BlockNoteEditor-YIZGXB5K.js → BlockNoteEditor-BEZWZXUH.js} +9 -9
- package/dist/{BlockNoteEditor-YIZGXB5K.js.map → BlockNoteEditor-BEZWZXUH.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-NXRUJIU2.mjs → chunk-5FQJB5QR.mjs} +7 -7
- package/dist/chunk-5FQJB5QR.mjs.map +1 -0
- package/dist/{chunk-FOKYS5QE.js → chunk-QWZI4N7S.js} +187 -187
- package/dist/chunk-QWZI4N7S.js.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 +30 -30
- package/dist/features/help/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/forms/EditorSheet.tsx +6 -1
- package/src/components/forms/__tests__/EditorSheet.test.tsx +24 -0
- package/src/components/forms/__tests__/useEditorDialog.test.ts +26 -0
- package/src/components/forms/useEditorDialog.ts +14 -5
- package/dist/chunk-FOKYS5QE.js.map +0 -1
- package/dist/chunk-NXRUJIU2.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-LN6P5CEQ.mjs.map → BlockNoteEditor-4HYQUEYC.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -9363,15 +9363,15 @@ function useEditorDialog(isFormDirty, options) {
|
|
|
9363
9363
|
setOpen(options.dialogOpen);
|
|
9364
9364
|
}
|
|
9365
9365
|
}, [options?.dialogOpen]);
|
|
9366
|
+
const onDialogOpenChangeRef = useRef13(options?.onDialogOpenChange);
|
|
9367
|
+
onDialogOpenChangeRef.current = options?.onDialogOpenChange;
|
|
9366
9368
|
useEffect20(() => {
|
|
9367
9369
|
if (syncingFromProp.current) {
|
|
9368
9370
|
syncingFromProp.current = false;
|
|
9369
9371
|
return;
|
|
9370
9372
|
}
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
}
|
|
9374
|
-
}, [open, options?.onDialogOpenChange]);
|
|
9373
|
+
onDialogOpenChangeRef.current?.(open);
|
|
9374
|
+
}, [open]);
|
|
9375
9375
|
useEffect20(() => {
|
|
9376
9376
|
if (options?.forceShow) setOpen(true);
|
|
9377
9377
|
}, [options?.forceShow]);
|
|
@@ -9485,7 +9485,7 @@ function EditorSheet({
|
|
|
9485
9485
|
await onSuccess();
|
|
9486
9486
|
} else if (result) {
|
|
9487
9487
|
onRevalidate?.(generateUrl({ page: module, id: result.id, language: "[locale]" }));
|
|
9488
|
-
if (
|
|
9488
|
+
if (propagateChanges) {
|
|
9489
9489
|
propagateChanges(result);
|
|
9490
9490
|
} else {
|
|
9491
9491
|
onNavigate?.(generateUrl({ page: module, id: result.id }));
|
|
@@ -10056,7 +10056,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10056
10056
|
import dynamic from "next/dynamic";
|
|
10057
10057
|
import React17 from "react";
|
|
10058
10058
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
10059
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10059
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-4HYQUEYC.mjs"), {
|
|
10060
10060
|
ssr: false
|
|
10061
10061
|
});
|
|
10062
10062
|
var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -23400,4 +23400,4 @@ export {
|
|
|
23400
23400
|
useOAuthClients,
|
|
23401
23401
|
useOAuthClient
|
|
23402
23402
|
};
|
|
23403
|
-
//# sourceMappingURL=chunk-
|
|
23403
|
+
//# sourceMappingURL=chunk-5FQJB5QR.mjs.map
|