@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.
Files changed (78) hide show
  1. package/dist/{AssistantMessageInterface-BuUZFkE5.d.mts → AssistantMessageInterface-Ca0G0vZw.d.mts} +1 -1
  2. package/dist/{AssistantMessageInterface-CQwh5tEb.d.ts → AssistantMessageInterface-DEZ5AnVl.d.ts} +1 -1
  3. package/dist/{BlockNoteEditor-V74ICZY3.js → BlockNoteEditor-6UREFUSJ.js} +19 -19
  4. package/dist/{BlockNoteEditor-V74ICZY3.js.map → BlockNoteEditor-6UREFUSJ.js.map} +1 -1
  5. package/dist/{BlockNoteEditor-Z3EKI3C6.mjs → BlockNoteEditor-UQOOX3UT.mjs} +4 -4
  6. package/dist/{auth.interface-CXBF8Mhi.d.mts → auth.interface-r3XKYOrQ.d.mts} +1 -1
  7. package/dist/{auth.interface-8b601idJ.d.ts → auth.interface-yivTb46w.d.ts} +1 -1
  8. package/dist/billing/index.js +346 -346
  9. package/dist/billing/index.mjs +3 -3
  10. package/dist/{chunk-3MUBMSDD.js → chunk-6KLR3WJQ.js} +7 -7
  11. package/dist/{chunk-3MUBMSDD.js.map → chunk-6KLR3WJQ.js.map} +1 -1
  12. package/dist/{chunk-6LSGIJ5W.js → chunk-HXU2HDRN.js} +1090 -956
  13. package/dist/chunk-HXU2HDRN.js.map +1 -0
  14. package/dist/{chunk-UBBTQUFB.mjs → chunk-M7XAKLSP.mjs} +11 -2
  15. package/dist/{chunk-UBBTQUFB.mjs.map → chunk-M7XAKLSP.mjs.map} +1 -1
  16. package/dist/{chunk-J3DFHESB.js → chunk-S2PTWBN6.js} +27 -18
  17. package/dist/chunk-S2PTWBN6.js.map +1 -0
  18. package/dist/{chunk-BKKVLD42.mjs → chunk-SVEPL5J2.mjs} +514 -380
  19. package/dist/chunk-SVEPL5J2.mjs.map +1 -0
  20. package/dist/{chunk-SJRSR3AF.mjs → chunk-WEPQD5MP.mjs} +2 -2
  21. package/dist/client/index.d.mts +2 -2
  22. package/dist/client/index.d.ts +2 -2
  23. package/dist/client/index.js +4 -4
  24. package/dist/client/index.mjs +3 -3
  25. package/dist/components/index.d.mts +71 -24
  26. package/dist/components/index.d.ts +71 -24
  27. package/dist/components/index.js +6 -4
  28. package/dist/components/index.js.map +1 -1
  29. package/dist/components/index.mjs +5 -3
  30. package/dist/contexts/index.d.mts +3 -3
  31. package/dist/contexts/index.d.ts +3 -3
  32. package/dist/contexts/index.js +4 -4
  33. package/dist/contexts/index.mjs +3 -3
  34. package/dist/core/index.d.mts +10 -8
  35. package/dist/core/index.d.ts +10 -8
  36. package/dist/core/index.js +2 -2
  37. package/dist/core/index.mjs +1 -1
  38. package/dist/features/help/index.js +36 -36
  39. package/dist/features/help/index.mjs +3 -3
  40. package/dist/index.d.mts +5 -5
  41. package/dist/index.d.ts +5 -5
  42. package/dist/index.js +3 -3
  43. package/dist/index.mjs +2 -2
  44. package/dist/{notification.interface-DIxR23eS.d.mts → notification.interface-B3kNUTZs.d.mts} +2 -1
  45. package/dist/{notification.interface-C1T1C2ee.d.ts → notification.interface-LKFmZndR.d.ts} +2 -1
  46. package/dist/{s3.service-CAL5dhGG.d.mts → s3.service-CihgBy97.d.mts} +2 -2
  47. package/dist/{s3.service-COLYvcW2.d.ts → s3.service-Cyvfk3qV.d.ts} +2 -2
  48. package/dist/server/index.d.mts +3 -3
  49. package/dist/server/index.d.ts +3 -3
  50. package/dist/server/index.js +3 -3
  51. package/dist/server/index.mjs +1 -1
  52. package/dist/{useSocket-B1fMIr17.d.mts → useSocket-BSjn1Rlb.d.mts} +1 -1
  53. package/dist/{useSocket-BdJTBXKv.d.ts → useSocket-BsbaGPqE.d.ts} +1 -1
  54. package/package.json +1 -1
  55. package/src/components/forms/CommonDeleter.tsx +49 -18
  56. package/src/components/forms/CommonEditorButtons.tsx +4 -2
  57. package/src/components/forms/CommonEditorHeader.tsx +20 -14
  58. package/src/components/forms/CommonEditorTrigger.tsx +18 -4
  59. package/src/components/forms/DateRangeSelector.tsx +55 -19
  60. package/src/components/forms/EditorSheet.tsx +36 -9
  61. package/src/components/forms/FileUploader.tsx +51 -21
  62. package/src/components/forms/FormDate.tsx +6 -2
  63. package/src/components/forms/FormDateTime.tsx +11 -2
  64. package/src/components/forms/FormFieldWrapper.tsx +3 -1
  65. package/src/components/forms/FormInput.tsx +3 -1
  66. package/src/components/forms/FormPassword.tsx +10 -1
  67. package/src/components/forms/FormPlaceAutocomplete.tsx +8 -3
  68. package/src/components/forms/FormSelect.tsx +3 -0
  69. package/src/components/forms/FormSlider.tsx +3 -1
  70. package/src/components/forms/FormTextarea.tsx +15 -1
  71. package/src/features/notification/data/notification.interface.ts +2 -2
  72. package/src/features/notification/data/notification.ts +21 -5
  73. package/src/shadcnui/ui/badge.tsx +15 -0
  74. package/dist/chunk-6LSGIJ5W.js.map +0 -1
  75. package/dist/chunk-BKKVLD42.mjs.map +0 -1
  76. package/dist/chunk-J3DFHESB.js.map +0 -1
  77. /package/dist/{BlockNoteEditor-Z3EKI3C6.mjs.map → BlockNoteEditor-UQOOX3UT.mjs.map} +0 -0
  78. /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
- this._actor = this._readIncluded(data, "actor", Modules.User);
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-UBBTQUFB.mjs.map
7834
+ //# sourceMappingURL=chunk-M7XAKLSP.mjs.map