@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.
- package/dist/{BlockNoteEditor-GWDYMS6R.js → BlockNoteEditor-FAUTV5FW.js} +9 -9
- package/dist/{BlockNoteEditor-GWDYMS6R.js.map → BlockNoteEditor-FAUTV5FW.js.map} +1 -1
- package/dist/{BlockNoteEditor-HNP5UAJT.mjs → BlockNoteEditor-IGUHTERQ.mjs} +2 -2
- package/dist/billing/index.js +378 -378
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-UGDYZW4K.js → chunk-4OCBNCKH.js} +8 -4
- package/dist/chunk-4OCBNCKH.js.map +1 -0
- package/dist/{chunk-YEZGASBX.mjs → chunk-RINMQQZH.mjs} +8 -4
- package/dist/{chunk-YEZGASBX.mjs.map → chunk-RINMQQZH.mjs.map} +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +7 -1
- package/dist/components/index.d.ts +7 -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/email-automations/index.js +78 -78
- package/dist/email-automations/index.mjs +1 -1
- package/dist/features/analytics/index.js +96 -96
- package/dist/features/analytics/index.mjs +1 -1
- package/dist/features/blog/index.js +93 -93
- package/dist/features/blog/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +102 -102
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/notification/components/notifications/PushNotificationProvider.tsx +14 -2
- package/src/features/notification/components/notifications/__tests__/PushNotificationProvider.spec.tsx +11 -0
- package/dist/chunk-UGDYZW4K.js.map +0 -1
- /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-
|
|
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({
|
|
27001
|
+
function PushNotificationProvider({
|
|
27002
|
+
children,
|
|
27003
|
+
excludedRoleIds = []
|
|
27004
|
+
}) {
|
|
27002
27005
|
const { currentUser, hasRole } = useCurrentUserContext();
|
|
27003
|
-
|
|
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-
|
|
30833
|
+
//# sourceMappingURL=chunk-RINMQQZH.mjs.map
|