@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.
@@ -47,7 +47,7 @@ import {
47
47
  TabsList,
48
48
  TabsTrigger,
49
49
  useCurrentUserContext
50
- } from "../chunk-NXRUJIU2.mjs";
50
+ } from "../chunk-5FQJB5QR.mjs";
51
51
  import {
52
52
  getRoleId,
53
53
  getStripePublishableKey
@@ -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
- if (typeof options?.onDialogOpenChange === "function") {
9372
- options.onDialogOpenChange(open);
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 (isEdit && propagateChanges) {
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-LN6P5CEQ.mjs"), {
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-NXRUJIU2.mjs.map
23403
+ //# sourceMappingURL=chunk-5FQJB5QR.mjs.map