@carlonicora/nextjs-jsonapi 1.115.0 → 1.117.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/{AssistantMessageInterface-BuUZFkE5.d.mts → AssistantMessageInterface-Ca0G0vZw.d.mts} +1 -1
- package/dist/{AssistantMessageInterface-CQwh5tEb.d.ts → AssistantMessageInterface-DEZ5AnVl.d.ts} +1 -1
- package/dist/{BlockNoteEditor-V74ICZY3.js → BlockNoteEditor-6UREFUSJ.js} +19 -19
- package/dist/{BlockNoteEditor-V74ICZY3.js.map → BlockNoteEditor-6UREFUSJ.js.map} +1 -1
- package/dist/{BlockNoteEditor-Z3EKI3C6.mjs → BlockNoteEditor-UQOOX3UT.mjs} +4 -4
- package/dist/{auth.interface-CXBF8Mhi.d.mts → auth.interface-r3XKYOrQ.d.mts} +1 -1
- package/dist/{auth.interface-8b601idJ.d.ts → auth.interface-yivTb46w.d.ts} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-3MUBMSDD.js → chunk-6KLR3WJQ.js} +7 -7
- package/dist/{chunk-3MUBMSDD.js.map → chunk-6KLR3WJQ.js.map} +1 -1
- package/dist/{chunk-6LSGIJ5W.js → chunk-HXU2HDRN.js} +1090 -956
- package/dist/chunk-HXU2HDRN.js.map +1 -0
- package/dist/{chunk-UBBTQUFB.mjs → chunk-M7XAKLSP.mjs} +11 -2
- package/dist/{chunk-UBBTQUFB.mjs.map → chunk-M7XAKLSP.mjs.map} +1 -1
- package/dist/{chunk-J3DFHESB.js → chunk-S2PTWBN6.js} +27 -18
- package/dist/chunk-S2PTWBN6.js.map +1 -0
- package/dist/{chunk-BKKVLD42.mjs → chunk-SVEPL5J2.mjs} +514 -380
- package/dist/chunk-SVEPL5J2.mjs.map +1 -0
- package/dist/{chunk-SJRSR3AF.mjs → chunk-WEPQD5MP.mjs} +2 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +71 -24
- package/dist/components/index.d.ts +71 -24
- package/dist/components/index.js +6 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -3
- package/dist/contexts/index.d.mts +3 -3
- package/dist/contexts/index.d.ts +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +10 -8
- package/dist/core/index.d.ts +10 -8
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/features/help/index.js +36 -36
- package/dist/features/help/index.mjs +3 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{notification.interface-DIxR23eS.d.mts → notification.interface-B3kNUTZs.d.mts} +2 -1
- package/dist/{notification.interface-C1T1C2ee.d.ts → notification.interface-LKFmZndR.d.ts} +2 -1
- package/dist/{s3.service-CAL5dhGG.d.mts → s3.service-CihgBy97.d.mts} +2 -2
- package/dist/{s3.service-COLYvcW2.d.ts → s3.service-Cyvfk3qV.d.ts} +2 -2
- package/dist/server/index.d.mts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{useSocket-B1fMIr17.d.mts → useSocket-BSjn1Rlb.d.mts} +1 -1
- package/dist/{useSocket-BdJTBXKv.d.ts → useSocket-BsbaGPqE.d.ts} +1 -1
- package/package.json +1 -1
- package/src/components/forms/CommonDeleter.tsx +49 -18
- package/src/components/forms/CommonEditorButtons.tsx +4 -2
- package/src/components/forms/CommonEditorHeader.tsx +20 -14
- package/src/components/forms/CommonEditorTrigger.tsx +18 -4
- package/src/components/forms/DateRangeSelector.tsx +55 -19
- package/src/components/forms/EditorSheet.tsx +36 -9
- package/src/components/forms/FileUploader.tsx +51 -21
- package/src/components/forms/FormDate.tsx +6 -2
- package/src/components/forms/FormDateTime.tsx +11 -2
- package/src/components/forms/FormFieldWrapper.tsx +3 -1
- package/src/components/forms/FormInput.tsx +3 -1
- package/src/components/forms/FormPassword.tsx +10 -1
- package/src/components/forms/FormPlaceAutocomplete.tsx +8 -3
- package/src/components/forms/FormSelect.tsx +3 -0
- package/src/components/forms/FormSlider.tsx +3 -1
- package/src/components/forms/FormTextarea.tsx +15 -1
- package/src/features/notification/data/notification.interface.ts +2 -2
- package/src/features/notification/data/notification.ts +21 -5
- package/src/shadcnui/ui/badge.tsx +15 -0
- package/dist/chunk-6LSGIJ5W.js.map +0 -1
- package/dist/chunk-BKKVLD42.mjs.map +0 -1
- package/dist/chunk-J3DFHESB.js.map +0 -1
- /package/dist/{BlockNoteEditor-Z3EKI3C6.mjs.map → BlockNoteEditor-UQOOX3UT.mjs.map} +0 -0
- /package/dist/{chunk-SJRSR3AF.mjs.map → chunk-WEPQD5MP.mjs.map} +0 -0
|
@@ -6055,6 +6055,7 @@ var Notification = class extends AbstractApiData {
|
|
|
6055
6055
|
_message;
|
|
6056
6056
|
_actionUrl;
|
|
6057
6057
|
_actor;
|
|
6058
|
+
_subject;
|
|
6058
6059
|
get notificationType() {
|
|
6059
6060
|
if (this._notificationType === void 0) throw new Error("notificationType is not set");
|
|
6060
6061
|
return this._notificationType;
|
|
@@ -6071,13 +6072,21 @@ var Notification = class extends AbstractApiData {
|
|
|
6071
6072
|
get actor() {
|
|
6072
6073
|
return this._actor;
|
|
6073
6074
|
}
|
|
6075
|
+
get subject() {
|
|
6076
|
+
return this._subject;
|
|
6077
|
+
}
|
|
6074
6078
|
rehydrate(data) {
|
|
6075
6079
|
super.rehydrate(data);
|
|
6076
6080
|
this._notificationType = data.jsonApi.attributes.notificationType;
|
|
6077
6081
|
this._isRead = data.jsonApi.attributes.isRead;
|
|
6078
6082
|
this._message = data.jsonApi.attributes.message;
|
|
6079
6083
|
this._actionUrl = data.jsonApi.attributes.actionUrl;
|
|
6080
|
-
|
|
6084
|
+
const rels = data.jsonApi.relationships ?? {};
|
|
6085
|
+
const actorType = rels.actor?.data?.type;
|
|
6086
|
+
this._actor = actorType ? this._readIncluded(data, "actor", Modules.findByName(actorType)) : void 0;
|
|
6087
|
+
const subjectName = Object.keys(rels).find((name) => name !== "actor" && rels[name]?.data?.type);
|
|
6088
|
+
const subjectType = subjectName ? rels[subjectName]?.data?.type : void 0;
|
|
6089
|
+
this._subject = subjectName && subjectType ? this._readIncluded(data, subjectName, Modules.findByName(subjectType)) : void 0;
|
|
6081
6090
|
return this;
|
|
6082
6091
|
}
|
|
6083
6092
|
createJsonApi(data) {
|
|
@@ -7822,4 +7831,4 @@ export {
|
|
|
7822
7831
|
AuditLogService,
|
|
7823
7832
|
AuditLogModule
|
|
7824
7833
|
};
|
|
7825
|
-
//# sourceMappingURL=chunk-
|
|
7834
|
+
//# sourceMappingURL=chunk-M7XAKLSP.mjs.map
|