@carlonicora/nextjs-jsonapi 6.16.0 → 6.17.0

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.
Files changed (32) hide show
  1. package/dist/{BlockNoteEditor-GWDYMS6R.js → BlockNoteEditor-FAUTV5FW.js} +9 -9
  2. package/dist/{BlockNoteEditor-GWDYMS6R.js.map → BlockNoteEditor-FAUTV5FW.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-HNP5UAJT.mjs → BlockNoteEditor-IGUHTERQ.mjs} +2 -2
  4. package/dist/billing/index.js +378 -378
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-UGDYZW4K.js → chunk-4OCBNCKH.js} +8 -4
  7. package/dist/chunk-4OCBNCKH.js.map +1 -0
  8. package/dist/{chunk-YEZGASBX.mjs → chunk-RINMQQZH.mjs} +8 -4
  9. package/dist/{chunk-YEZGASBX.mjs.map → chunk-RINMQQZH.mjs.map} +1 -1
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/index.d.mts +7 -1
  13. package/dist/components/index.d.ts +7 -1
  14. package/dist/components/index.js +2 -2
  15. package/dist/components/index.mjs +1 -1
  16. package/dist/contexts/index.js +2 -2
  17. package/dist/contexts/index.mjs +1 -1
  18. package/dist/email-automations/index.js +78 -78
  19. package/dist/email-automations/index.mjs +1 -1
  20. package/dist/features/analytics/index.js +96 -96
  21. package/dist/features/analytics/index.mjs +1 -1
  22. package/dist/features/blog/index.js +93 -93
  23. package/dist/features/blog/index.mjs +1 -1
  24. package/dist/features/help/index.js +31 -31
  25. package/dist/features/help/index.mjs +1 -1
  26. package/dist/features/tokenusage/index.js +102 -102
  27. package/dist/features/tokenusage/index.mjs +1 -1
  28. package/package.json +1 -1
  29. package/src/features/notification/components/notifications/PushNotificationProvider.tsx +14 -2
  30. package/src/features/notification/components/notifications/__tests__/PushNotificationProvider.spec.tsx +11 -0
  31. package/dist/chunk-UGDYZW4K.js.map +0 -1
  32. /package/dist/{BlockNoteEditor-HNP5UAJT.mjs.map → BlockNoteEditor-IGUHTERQ.mjs.map} +0 -0
@@ -10852,7 +10852,7 @@ import { useRef as useRef18 } from "react";
10852
10852
  import dynamic from "next/dynamic";
10853
10853
  import React18 from "react";
10854
10854
  import { jsx as jsx91 } from "react/jsx-runtime";
10855
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-HNP5UAJT.mjs"), {
10855
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-IGUHTERQ.mjs"), {
10856
10856
  ssr: false
10857
10857
  });
10858
10858
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -26998,9 +26998,13 @@ __name(NotificationModal, "NotificationModal");
26998
26998
 
26999
26999
  // src/features/notification/components/notifications/PushNotificationProvider.tsx
27000
27000
  import { Fragment as Fragment62, jsx as jsx302 } from "react/jsx-runtime";
27001
- function PushNotificationProvider({ children }) {
27001
+ function PushNotificationProvider({
27002
+ children,
27003
+ excludedRoleIds = []
27004
+ }) {
27002
27005
  const { currentUser, hasRole } = useCurrentUserContext();
27003
- usePushNotifications_default({ currentUser: currentUser ?? void 0, canSubscribe: !hasRole(getRoleId().Administrator) });
27006
+ const canSubscribe = !hasRole(getRoleId().Administrator) && !excludedRoleIds.some((roleId) => hasRole(roleId));
27007
+ usePushNotifications_default({ currentUser: currentUser ?? void 0, canSubscribe });
27004
27008
  return /* @__PURE__ */ jsx302(Fragment62, { children });
27005
27009
  }
27006
27010
  __name(PushNotificationProvider, "PushNotificationProvider");
@@ -30826,4 +30830,4 @@ export {
30826
30830
  useOAuthClients,
30827
30831
  useOAuthClient
30828
30832
  };
30829
- //# sourceMappingURL=chunk-YEZGASBX.mjs.map
30833
+ //# sourceMappingURL=chunk-RINMQQZH.mjs.map