@carlonicora/nextjs-jsonapi 3.8.0 → 3.8.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.
@@ -10343,7 +10343,7 @@ import { useRef as useRef17 } from "react";
10343
10343
  import dynamic from "next/dynamic";
10344
10344
  import React18 from "react";
10345
10345
  import { jsx as jsx89 } from "react/jsx-runtime";
10346
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-F6P6SW3F.mjs"), {
10346
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-KXONPDJR.mjs"), {
10347
10347
  ssr: false
10348
10348
  });
10349
10349
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -14623,7 +14623,8 @@ function usePushNotifications() {
14623
14623
  try {
14624
14624
  const sessionKey = `push_registered_${currentUser?.id}`;
14625
14625
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
14626
- const registration = await navigator.serviceWorker.register(`${getAppUrl()}/sw.js`);
14626
+ const swUrl = ENV.IS_PRODUCTION ? `${getAppUrl()}/sw.js` : `${getAppUrl()}/sw-dev.js`;
14627
+ const registration = await navigator.serviceWorker.register(swUrl);
14627
14628
  let permission = Notification.permission;
14628
14629
  if (permission === "default") {
14629
14630
  permission = await Notification.requestPermission();
@@ -25648,4 +25649,4 @@ export {
25648
25649
  useOAuthClients,
25649
25650
  useOAuthClient
25650
25651
  };
25651
- //# sourceMappingURL=chunk-XUDZOANZ.mjs.map
25652
+ //# sourceMappingURL=chunk-YOYYVEEY.mjs.map