@carlonicora/nextjs-jsonapi 1.29.1 → 1.29.3

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 (102) hide show
  1. package/dist/{BlockNoteEditor-7BDLLHRA.js → BlockNoteEditor-CJWHJRG3.js} +17 -17
  2. package/dist/BlockNoteEditor-CJWHJRG3.js.map +1 -0
  3. package/dist/{BlockNoteEditor-F5KCNLVF.mjs → BlockNoteEditor-ZET7ANBC.mjs} +7 -7
  4. package/dist/BlockNoteEditor-ZET7ANBC.mjs.map +1 -0
  5. package/dist/billing/index.js +334 -333
  6. package/dist/billing/index.js.map +1 -1
  7. package/dist/billing/index.mjs +8 -7
  8. package/dist/billing/index.mjs.map +1 -1
  9. package/dist/{chunk-YLSLXQ3O.mjs → chunk-3HGZMKT4.mjs} +494 -524
  10. package/dist/chunk-3HGZMKT4.mjs.map +1 -0
  11. package/dist/{chunk-7M7NPKOF.js → chunk-6HQ6CPVL.js} +916 -946
  12. package/dist/chunk-6HQ6CPVL.js.map +1 -0
  13. package/dist/{chunk-DU64WMZD.mjs → chunk-NYNLJEPF.mjs} +4 -4
  14. package/dist/chunk-NYNLJEPF.mjs.map +1 -0
  15. package/dist/{chunk-J22NEVSK.js → chunk-UYBCHXXL.js} +4 -4
  16. package/dist/chunk-UYBCHXXL.js.map +1 -0
  17. package/dist/client/index.js +3 -3
  18. package/dist/client/index.mjs +2 -2
  19. package/dist/components/index.js +3 -3
  20. package/dist/components/index.mjs +2 -2
  21. package/dist/contexts/index.js +3 -3
  22. package/dist/contexts/index.mjs +2 -2
  23. package/dist/core/index.js +2 -2
  24. package/dist/core/index.mjs +1 -1
  25. package/dist/index.js +2 -2
  26. package/dist/index.mjs +1 -1
  27. package/dist/server/index.js +3 -3
  28. package/dist/server/index.mjs +1 -1
  29. package/package.json +1 -1
  30. package/src/components/details/AllowedUsersDetails.tsx +1 -1
  31. package/src/components/editors/BlockNoteEditor.tsx +5 -5
  32. package/src/components/forms/CommonAssociationForm.tsx +9 -9
  33. package/src/components/forms/CommonDeleter.tsx +14 -8
  34. package/src/components/forms/CommonEditorButtons.tsx +2 -2
  35. package/src/components/forms/CommonEditorHeader.tsx +4 -4
  36. package/src/components/forms/CommonEditorTrigger.tsx +1 -1
  37. package/src/components/forms/FileUploader.tsx +8 -8
  38. package/src/components/forms/FormDateTime.tsx +6 -12
  39. package/src/components/forms/FormInput.tsx +4 -20
  40. package/src/components/forms/PasswordInput.tsx +1 -1
  41. package/src/components/navigations/Breadcrumb.tsx +1 -1
  42. package/src/components/navigations/Header.tsx +2 -2
  43. package/src/components/navigations/RecentPagesNavigator.tsx +3 -3
  44. package/src/components/tables/ContentTableSearch.tsx +1 -1
  45. package/src/contexts/CommonContext.tsx +2 -2
  46. package/src/core/abstracts/AbstractService.ts +2 -2
  47. package/src/features/auth/components/details/LandingComponent.tsx +5 -5
  48. package/src/features/auth/components/forms/AcceptInvitation.tsx +16 -22
  49. package/src/features/auth/components/forms/ActivateAccount.tsx +8 -8
  50. package/src/features/auth/components/forms/ForgotPassword.tsx +9 -9
  51. package/src/features/auth/components/forms/Login.tsx +12 -12
  52. package/src/features/auth/components/forms/Register.tsx +19 -21
  53. package/src/features/auth/components/forms/ResetPassword.tsx +12 -18
  54. package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +5 -4
  55. package/src/features/company/components/details/TokenStatusIndicator.tsx +7 -7
  56. package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +2 -2
  57. package/src/features/company/components/forms/CompanyDeleter.tsx +13 -11
  58. package/src/features/company/components/forms/CompanyEditor.tsx +7 -13
  59. package/src/features/company/components/lists/CompaniesList.tsx +1 -1
  60. package/src/features/company/contexts/CompanyContext.tsx +1 -1
  61. package/src/features/company/hooks/useCompanyTableStructure.tsx +2 -2
  62. package/src/features/content/components/lists/ContentsList.tsx +1 -1
  63. package/src/features/content/components/lists/ContentsListById.tsx +1 -1
  64. package/src/features/content/components/lists/RelevantContentsList.tsx +1 -1
  65. package/src/features/content/hooks/useContentTableStructure.tsx +5 -5
  66. package/src/features/notification/components/containers/NotificationsListContainer.tsx +2 -2
  67. package/src/features/notification/components/lists/NotificationsList.tsx +3 -3
  68. package/src/features/notification/components/modals/NotificationModal.tsx +3 -5
  69. package/src/features/notification/components/notifications/Notification.tsx +4 -4
  70. package/src/features/notification/contexts/NotificationContext.tsx +2 -2
  71. package/src/features/role/components/details/RoleDetails.tsx +1 -1
  72. package/src/features/role/components/forms/FormRoles.tsx +2 -2
  73. package/src/features/role/components/forms/RemoveUserFromRole.tsx +9 -11
  74. package/src/features/role/components/forms/UserRoleAdd.tsx +18 -18
  75. package/src/features/role/components/lists/RolesList.tsx +1 -1
  76. package/src/features/role/components/lists/UserRolesList.tsx +1 -1
  77. package/src/features/role/contexts/RoleContext.tsx +2 -2
  78. package/src/features/role/hooks/useRoleTableStructure.tsx +3 -3
  79. package/src/features/user/components/containers/UsersListContainer.tsx +2 -2
  80. package/src/features/user/components/details/UserDetails.tsx +6 -6
  81. package/src/features/user/components/forms/RoleUserAdd.tsx +8 -8
  82. package/src/features/user/components/forms/UserAvatarEditor.tsx +2 -2
  83. package/src/features/user/components/forms/UserEditor.tsx +21 -25
  84. package/src/features/user/components/forms/UserReactivator.tsx +7 -7
  85. package/src/features/user/components/forms/UserResentInvitationEmail.tsx +9 -9
  86. package/src/features/user/components/forms/UserSelector.tsx +4 -9
  87. package/src/features/user/components/lists/AdminUsersList.tsx +1 -1
  88. package/src/features/user/components/lists/CompanyUsersList.tsx +1 -1
  89. package/src/features/user/components/lists/RelevantUsersList.tsx +1 -1
  90. package/src/features/user/components/lists/RoleUsersList.tsx +1 -1
  91. package/src/features/user/components/lists/UsersList.tsx +1 -1
  92. package/src/features/user/components/lists/UsersListByContentIds.tsx +1 -1
  93. package/src/features/user/components/widgets/UserSearchPopover.tsx +3 -3
  94. package/src/features/user/contexts/UserContext.tsx +5 -5
  95. package/src/features/user/hooks/useUserTableStructure.tsx +6 -6
  96. package/src/utils/blocknote-diff.util.ts +1 -1
  97. package/dist/BlockNoteEditor-7BDLLHRA.js.map +0 -1
  98. package/dist/BlockNoteEditor-F5KCNLVF.mjs.map +0 -1
  99. package/dist/chunk-7M7NPKOF.js.map +0 -1
  100. package/dist/chunk-DU64WMZD.mjs.map +0 -1
  101. package/dist/chunk-J22NEVSK.js.map +0 -1
  102. package/dist/chunk-YLSLXQ3O.mjs.map +0 -1
@@ -47,7 +47,7 @@ import {
47
47
  TabsList,
48
48
  TabsTrigger,
49
49
  useCurrentUserContext
50
- } from "../chunk-YLSLXQ3O.mjs";
50
+ } from "../chunk-3HGZMKT4.mjs";
51
51
  import {
52
52
  getRoleId,
53
53
  getStripePublishableKey
@@ -60,7 +60,7 @@ import {
60
60
  StripeSubscriptionService,
61
61
  StripeUsageService,
62
62
  cn
63
- } from "../chunk-DU64WMZD.mjs";
63
+ } from "../chunk-NYNLJEPF.mjs";
64
64
  import "../chunk-AUXK7QSA.mjs";
65
65
  import "../chunk-C7C7VY4F.mjs";
66
66
  import "../chunk-U4MTVHOC.mjs";
@@ -1790,6 +1790,7 @@ import { useCallback as useCallback3, useEffect as useEffect7, useRef as useRef2
1790
1790
 
1791
1791
  // src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts
1792
1792
  import { useCallback as useCallback2, useMemo, useReducer, useRef } from "react";
1793
+ import { v4 } from "uuid";
1793
1794
  var initialState = {
1794
1795
  step: "plan-selection",
1795
1796
  selectedPrice: null,
@@ -1881,7 +1882,7 @@ function useSubscriptionWizard({ subscription, onSuccess, onClose }) {
1881
1882
  });
1882
1883
  } else {
1883
1884
  await StripeSubscriptionService.createSubscription({
1884
- id: crypto.randomUUID(),
1885
+ id: v4(),
1885
1886
  priceId: state.selectedPrice.id
1886
1887
  });
1887
1888
  }
@@ -2859,7 +2860,7 @@ import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
2859
2860
  import { AlertCircle as AlertCircle3, PlusIcon, XIcon } from "lucide-react";
2860
2861
  import { useEffect as useEffect10, useState as useState14 } from "react";
2861
2862
  import { useForm as useForm2 } from "react-hook-form";
2862
- import { v4 } from "uuid";
2863
+ import { v4 as v42 } from "uuid";
2863
2864
  import { z as z2 } from "zod";
2864
2865
  import { jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
2865
2866
  function PriceEditor({ productId, price, open, onOpenChange, onSuccess }) {
@@ -2931,7 +2932,7 @@ function PriceEditor({ productId, price, open, onOpenChange, onSuccess }) {
2931
2932
  });
2932
2933
  } else {
2933
2934
  const createInput = {
2934
- id: v4(),
2935
+ id: v42(),
2935
2936
  productId,
2936
2937
  currency: values.currency,
2937
2938
  unitAmount: unitAmountInCents
@@ -3332,7 +3333,7 @@ import { useEffect as useEffect12, useState as useState18 } from "react";
3332
3333
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
3333
3334
  import { useState as useState16 } from "react";
3334
3335
  import { useForm as useForm3 } from "react-hook-form";
3335
- import { v4 as v42 } from "uuid";
3336
+ import { v4 as v43 } from "uuid";
3336
3337
  import { z as z3 } from "zod";
3337
3338
  import { jsx as jsx41, jsxs as jsxs36 } from "react/jsx-runtime";
3338
3339
  function ProductEditor({ product, open, onOpenChange, onSuccess }) {
@@ -3362,7 +3363,7 @@ function ProductEditor({ product, open, onOpenChange, onSuccess }) {
3362
3363
  });
3363
3364
  } else {
3364
3365
  await StripeProductService.createProduct({
3365
- id: v42(),
3366
+ id: v43(),
3366
3367
  name: values.name,
3367
3368
  description: values.description,
3368
3369
  active: values.active