@carlonicora/nextjs-jsonapi 1.29.4 → 1.29.6

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 (56) hide show
  1. package/dist/{BlockNoteEditor-G532N3N7.mjs → BlockNoteEditor-4NQ5LSD6.mjs} +4 -4
  2. package/dist/{BlockNoteEditor-XWHUG6VH.js → BlockNoteEditor-AZNYW5Y7.js} +14 -14
  3. package/dist/{BlockNoteEditor-XWHUG6VH.js.map → BlockNoteEditor-AZNYW5Y7.js.map} +1 -1
  4. package/dist/billing/index.js +335 -335
  5. package/dist/billing/index.mjs +3 -3
  6. package/dist/{chunk-UYBCHXXL.js → chunk-5KQXRLK3.js} +25 -2
  7. package/dist/chunk-5KQXRLK3.js.map +1 -0
  8. package/dist/{chunk-GR4QPP36.mjs → chunk-C62JXXUX.mjs} +1 -1
  9. package/dist/{chunk-ALGMJ4JS.js → chunk-CWRYS2F3.js} +539 -530
  10. package/dist/chunk-CWRYS2F3.js.map +1 -0
  11. package/dist/{chunk-EW6QPMN3.js → chunk-OR5NPUWF.js} +1 -1
  12. package/dist/{chunk-EW6QPMN3.js.map → chunk-OR5NPUWF.js.map} +1 -1
  13. package/dist/{chunk-NYNLJEPF.mjs → chunk-WQ3KF6BG.mjs} +24 -1
  14. package/dist/chunk-WQ3KF6BG.mjs.map +1 -0
  15. package/dist/{chunk-CWY6AL4V.mjs → chunk-ZQEFAWFP.mjs} +91 -82
  16. package/dist/chunk-ZQEFAWFP.mjs.map +1 -0
  17. package/dist/client/index.js +4 -4
  18. package/dist/client/index.mjs +3 -3
  19. package/dist/components/index.js +4 -4
  20. package/dist/components/index.mjs +3 -3
  21. package/dist/contexts/index.js +4 -4
  22. package/dist/contexts/index.mjs +3 -3
  23. package/dist/core/index.d.mts +25 -2
  24. package/dist/core/index.d.ts +25 -2
  25. package/dist/core/index.js +10 -2
  26. package/dist/core/index.js.map +1 -1
  27. package/dist/core/index.mjs +9 -1
  28. package/dist/index.d.mts +2 -1
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +11 -3
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +10 -2
  33. package/dist/server/index.js +3 -3
  34. package/dist/server/index.mjs +1 -1
  35. package/package.json +1 -1
  36. package/src/components/errors/errorToast.ts +2 -4
  37. package/src/components/forms/CommonAssociationForm.tsx +3 -3
  38. package/src/components/forms/FileUploader.tsx +4 -4
  39. package/src/features/auth/components/forms/AcceptInvitation.tsx +2 -2
  40. package/src/features/auth/components/forms/ActivateAccount.tsx +2 -2
  41. package/src/features/auth/components/forms/ResetPassword.tsx +2 -2
  42. package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +2 -2
  43. package/src/features/notification/components/modals/NotificationModal.tsx +2 -2
  44. package/src/features/notification/contexts/NotificationContext.tsx +27 -1
  45. package/src/features/role/components/forms/UserRoleAdd.tsx +2 -2
  46. package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -2
  47. package/src/index.ts +3 -0
  48. package/src/shadcnui/ui/sonner.tsx +13 -23
  49. package/src/utils/index.ts +3 -0
  50. package/src/utils/toast.ts +39 -0
  51. package/dist/chunk-ALGMJ4JS.js.map +0 -1
  52. package/dist/chunk-CWY6AL4V.mjs.map +0 -1
  53. package/dist/chunk-NYNLJEPF.mjs.map +0 -1
  54. package/dist/chunk-UYBCHXXL.js.map +0 -1
  55. /package/dist/{BlockNoteEditor-G532N3N7.mjs.map → BlockNoteEditor-4NQ5LSD6.mjs.map} +0 -0
  56. /package/dist/{chunk-GR4QPP36.mjs.map → chunk-C62JXXUX.mjs.map} +0 -0
@@ -47,11 +47,11 @@ import {
47
47
  TabsList,
48
48
  TabsTrigger,
49
49
  useCurrentUserContext
50
- } from "../chunk-CWY6AL4V.mjs";
50
+ } from "../chunk-ZQEFAWFP.mjs";
51
51
  import {
52
52
  getRoleId,
53
53
  getStripePublishableKey
54
- } from "../chunk-GR4QPP36.mjs";
54
+ } from "../chunk-C62JXXUX.mjs";
55
55
  import {
56
56
  StripeCustomerService,
57
57
  StripeInvoiceService,
@@ -60,7 +60,7 @@ import {
60
60
  StripeSubscriptionService,
61
61
  StripeUsageService,
62
62
  cn
63
- } from "../chunk-NYNLJEPF.mjs";
63
+ } from "../chunk-WQ3KF6BG.mjs";
64
64
  import "../chunk-AUXK7QSA.mjs";
65
65
  import "../chunk-C7C7VY4F.mjs";
66
66
  import "../chunk-U4MTVHOC.mjs";
@@ -2112,6 +2112,25 @@ var getLucideIconByModuleName = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
2112
2112
  return getLucideIconByModule({ module: Modules.findByModelName(params.name) });
2113
2113
  }, "getLucideIconByModuleName");
2114
2114
 
2115
+ // src/utils/toast.ts
2116
+ var _sonner = require('sonner');
2117
+ function showToast(message, options) {
2118
+ return _sonner.toast.call(void 0, message, options);
2119
+ }
2120
+ _chunk7QVYU63Ejs.__name.call(void 0, showToast, "showToast");
2121
+ function showError(message, options) {
2122
+ return _sonner.toast.error(message, options);
2123
+ }
2124
+ _chunk7QVYU63Ejs.__name.call(void 0, showError, "showError");
2125
+ function dismissToast(toastId) {
2126
+ return _sonner.toast.dismiss(toastId);
2127
+ }
2128
+ _chunk7QVYU63Ejs.__name.call(void 0, dismissToast, "dismissToast");
2129
+ function showCustomToast(render, options) {
2130
+ return _sonner.toast.custom(render, options);
2131
+ }
2132
+ _chunk7QVYU63Ejs.__name.call(void 0, showCustomToast, "showCustomToast");
2133
+
2115
2134
  // src/permissions/types.ts
2116
2135
  var Action = /* @__PURE__ */ ((Action2) => {
2117
2136
  Action2["Read"] = "read";
@@ -5304,5 +5323,9 @@ var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
5304
5323
 
5305
5324
 
5306
5325
 
5307
- exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES;
5308
- //# sourceMappingURL=chunk-UYBCHXXL.js.map
5326
+
5327
+
5328
+
5329
+
5330
+ exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES;
5331
+ //# sourceMappingURL=chunk-5KQXRLK3.js.map