@carlonicora/nextjs-jsonapi 6.16.0 → 6.18.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-HHTAZKRO.js} +9 -9
- package/dist/{BlockNoteEditor-GWDYMS6R.js.map → BlockNoteEditor-HHTAZKRO.js.map} +1 -1
- package/dist/{BlockNoteEditor-HNP5UAJT.mjs → BlockNoteEditor-KSOVYIOL.mjs} +2 -2
- package/dist/billing/index.js +378 -378
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-UGDYZW4K.js → chunk-B6WMZXRY.js} +24 -5
- package/dist/chunk-B6WMZXRY.js.map +1 -0
- package/dist/{chunk-YEZGASBX.mjs → chunk-MBLF236G.mjs} +24 -5
- package/dist/chunk-MBLF236G.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +13 -2
- package/dist/components/index.d.ts +13 -2
- 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/components/forms/EditorSheet.tsx +21 -1
- package/src/components/forms/__tests__/EditorSheet.spec.tsx +40 -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/chunk-YEZGASBX.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-HNP5UAJT.mjs.map → BlockNoteEditor-KSOVYIOL.mjs.map} +0 -0
|
@@ -10147,6 +10147,7 @@ var sizeClasses = {
|
|
|
10147
10147
|
function EditorSheet({
|
|
10148
10148
|
form,
|
|
10149
10149
|
onSubmit,
|
|
10150
|
+
onBeforeSubmit,
|
|
10150
10151
|
onReset,
|
|
10151
10152
|
isFormDirty: isFormDirtyProp,
|
|
10152
10153
|
entityType,
|
|
@@ -10205,6 +10206,7 @@ function EditorSheet({
|
|
|
10205
10206
|
const wrappedOnSubmit = useCallback17(
|
|
10206
10207
|
async (values) => {
|
|
10207
10208
|
try {
|
|
10209
|
+
if (onBeforeSubmit && !await onBeforeSubmit(values)) return;
|
|
10208
10210
|
const result = await onSubmit(values);
|
|
10209
10211
|
setOpen(false);
|
|
10210
10212
|
if (result && onSaved) {
|
|
@@ -10227,7 +10229,20 @@ function EditorSheet({
|
|
|
10227
10229
|
});
|
|
10228
10230
|
}
|
|
10229
10231
|
},
|
|
10230
|
-
[
|
|
10232
|
+
[
|
|
10233
|
+
onSubmit,
|
|
10234
|
+
onBeforeSubmit,
|
|
10235
|
+
setOpen,
|
|
10236
|
+
onSuccess,
|
|
10237
|
+
onSaved,
|
|
10238
|
+
onRevalidate,
|
|
10239
|
+
onNavigate,
|
|
10240
|
+
generateUrl,
|
|
10241
|
+
module,
|
|
10242
|
+
isEdit,
|
|
10243
|
+
propagateChanges,
|
|
10244
|
+
t
|
|
10245
|
+
]
|
|
10231
10246
|
);
|
|
10232
10247
|
const headerTitle = titleOverride ?? (isEdit ? t("common.edit.update.title", { type: entityType }) : t("common.edit.create.title", { type: entityType }));
|
|
10233
10248
|
const headerDescription = descriptionOverride ?? (isEdit ? t("common.edit.update.description", { type: entityType, name: entityName2 ?? "" }) : t("common.edit.create.description", { type: entityType }));
|
|
@@ -10852,7 +10867,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10852
10867
|
import dynamic from "next/dynamic";
|
|
10853
10868
|
import React18 from "react";
|
|
10854
10869
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10855
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10870
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-KSOVYIOL.mjs"), {
|
|
10856
10871
|
ssr: false
|
|
10857
10872
|
});
|
|
10858
10873
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -26998,9 +27013,13 @@ __name(NotificationModal, "NotificationModal");
|
|
|
26998
27013
|
|
|
26999
27014
|
// src/features/notification/components/notifications/PushNotificationProvider.tsx
|
|
27000
27015
|
import { Fragment as Fragment62, jsx as jsx302 } from "react/jsx-runtime";
|
|
27001
|
-
function PushNotificationProvider({
|
|
27016
|
+
function PushNotificationProvider({
|
|
27017
|
+
children,
|
|
27018
|
+
excludedRoleIds = []
|
|
27019
|
+
}) {
|
|
27002
27020
|
const { currentUser, hasRole } = useCurrentUserContext();
|
|
27003
|
-
|
|
27021
|
+
const canSubscribe = !hasRole(getRoleId().Administrator) && !excludedRoleIds.some((roleId) => hasRole(roleId));
|
|
27022
|
+
usePushNotifications_default({ currentUser: currentUser ?? void 0, canSubscribe });
|
|
27004
27023
|
return /* @__PURE__ */ jsx302(Fragment62, { children });
|
|
27005
27024
|
}
|
|
27006
27025
|
__name(PushNotificationProvider, "PushNotificationProvider");
|
|
@@ -30826,4 +30845,4 @@ export {
|
|
|
30826
30845
|
useOAuthClients,
|
|
30827
30846
|
useOAuthClient
|
|
30828
30847
|
};
|
|
30829
|
-
//# sourceMappingURL=chunk-
|
|
30848
|
+
//# sourceMappingURL=chunk-MBLF236G.mjs.map
|