@carlonicora/nextjs-jsonapi 1.57.1 → 1.58.1

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 (51) hide show
  1. package/dist/{AuthComponent-IqFWLNIU.d.ts → AuthComponent-B4rNZRYE.d.ts} +4 -1
  2. package/dist/{AuthComponent-CK9aRRW2.d.mts → AuthComponent-nzabiz68.d.mts} +4 -1
  3. package/dist/{BlockNoteEditor-7TXNOVKN.mjs → BlockNoteEditor-I7N4N6MZ.mjs} +4 -4
  4. package/dist/{BlockNoteEditor-XKW6GQ7Z.js → BlockNoteEditor-LPMGYNE7.js} +14 -14
  5. package/dist/{BlockNoteEditor-XKW6GQ7Z.js.map → BlockNoteEditor-LPMGYNE7.js.map} +1 -1
  6. package/dist/billing/index.js +346 -346
  7. package/dist/billing/index.mjs +3 -3
  8. package/dist/{chunk-4J2JLZXB.js → chunk-74TRO667.js} +4153 -4127
  9. package/dist/chunk-74TRO667.js.map +1 -0
  10. package/dist/{chunk-UJBUJALX.js → chunk-BQSMP4NU.js} +11 -11
  11. package/dist/{chunk-UJBUJALX.js.map → chunk-BQSMP4NU.js.map} +1 -1
  12. package/dist/{chunk-FE26PIZK.mjs → chunk-HRG4EAOG.mjs} +2 -2
  13. package/dist/{chunk-QOLVON35.js → chunk-NAST4OSM.js} +77 -60
  14. package/dist/chunk-NAST4OSM.js.map +1 -0
  15. package/dist/{chunk-YRLM4PNR.mjs → chunk-OAJFQZXY.mjs} +6554 -6528
  16. package/dist/chunk-OAJFQZXY.mjs.map +1 -0
  17. package/dist/{chunk-J2PYGXVD.mjs → chunk-YHNDD34Z.mjs} +18 -1
  18. package/dist/chunk-YHNDD34Z.mjs.map +1 -0
  19. package/dist/client/index.js +4 -4
  20. package/dist/client/index.mjs +3 -3
  21. package/dist/components/index.d.mts +17 -3
  22. package/dist/components/index.d.ts +17 -3
  23. package/dist/components/index.js +10 -4
  24. package/dist/components/index.js.map +1 -1
  25. package/dist/components/index.mjs +10 -4
  26. package/dist/contexts/index.js +4 -4
  27. package/dist/contexts/index.mjs +3 -3
  28. package/dist/core/index.d.mts +2 -2
  29. package/dist/core/index.d.ts +2 -2
  30. package/dist/core/index.js +4 -2
  31. package/dist/core/index.js.map +1 -1
  32. package/dist/core/index.mjs +3 -1
  33. package/dist/index.d.mts +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +5 -3
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +4 -2
  38. package/dist/server/index.js +3 -3
  39. package/dist/server/index.mjs +1 -1
  40. package/package.json +1 -1
  41. package/src/components/EntityAvatar.tsx +23 -0
  42. package/src/components/TableCellAvatar.tsx +16 -0
  43. package/src/components/index.ts +3 -0
  44. package/src/utils/getInitials.ts +16 -0
  45. package/src/utils/index.ts +1 -0
  46. package/dist/chunk-4J2JLZXB.js.map +0 -1
  47. package/dist/chunk-J2PYGXVD.mjs.map +0 -1
  48. package/dist/chunk-QOLVON35.js.map +0 -1
  49. package/dist/chunk-YRLM4PNR.mjs.map +0 -1
  50. /package/dist/{BlockNoteEditor-7TXNOVKN.mjs.map → BlockNoteEditor-I7N4N6MZ.mjs.map} +0 -0
  51. /package/dist/{chunk-FE26PIZK.mjs.map → chunk-HRG4EAOG.mjs.map} +0 -0
@@ -138,6 +138,7 @@ import {
138
138
  getIcon,
139
139
  getIconByModule,
140
140
  getIconByModuleName,
141
+ getInitials,
141
142
  getLastApiTotal,
142
143
  getLucideIcon,
143
144
  getLucideIconByModule,
@@ -155,7 +156,7 @@ import {
155
156
  useComposedRefs,
156
157
  useIsMobile,
157
158
  userObjectSchema
158
- } from "../chunk-J2PYGXVD.mjs";
159
+ } from "../chunk-YHNDD34Z.mjs";
159
160
  import "../chunk-AUXK7QSA.mjs";
160
161
  import "../chunk-C7C7VY4F.mjs";
161
162
  import {
@@ -314,6 +315,7 @@ export {
314
315
  getIcon,
315
316
  getIconByModule,
316
317
  getIconByModuleName,
318
+ getInitials,
317
319
  getLastApiTotal,
318
320
  getLucideIcon,
319
321
  getLucideIconByModule,
package/dist/index.d.mts CHANGED
@@ -10,7 +10,7 @@ export { A as AuthService, C as CompanyService, a as ContentService, F as Featur
10
10
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
11
11
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
12
12
  export { ClassValue } from 'clsx';
13
- export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-CK9aRRW2.mjs';
13
+ export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-nzabiz68.mjs';
14
14
  import { R as RoleInterface } from './notification.interface-DG7cq9oG.mjs';
15
15
  export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, j as RoleInput, k as UserInput, U as UserInterface } from './notification.interface-DG7cq9oG.mjs';
16
16
  export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-fBFqIrw4.mjs';
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { A as AuthService, C as CompanyService, a as ContentService, F as Featur
10
10
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
11
11
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
12
12
  export { ClassValue } from 'clsx';
13
- export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-IqFWLNIU.js';
13
+ export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-B4rNZRYE.js';
14
14
  import { R as RoleInterface } from './notification.interface-COKHDQeE.js';
15
15
  export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, j as RoleInput, k as UserInput, U as UserInterface } from './notification.interface-COKHDQeE.js';
16
16
  export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-C1WjZ0fM.js';
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
 
20
- var _chunkUJBUJALXjs = require('./chunk-UJBUJALX.js');
20
+ var _chunkBQSMP4NUjs = require('./chunk-BQSMP4NU.js');
21
21
 
22
22
 
23
23
 
@@ -179,7 +179,8 @@ var _chunkUJBUJALXjs = require('./chunk-UJBUJALX.js');
179
179
 
180
180
 
181
181
 
182
- var _chunkQOLVON35js = require('./chunk-QOLVON35.js');
182
+
183
+ var _chunkNAST4OSMjs = require('./chunk-NAST4OSM.js');
183
184
  require('./chunk-LXKSUWAV.js');
184
185
  require('./chunk-IBS6NI7D.js');
185
186
 
@@ -383,5 +384,6 @@ require('./chunk-7QVYU63E.js');
383
384
 
384
385
 
385
386
 
386
- exports.ACTION_TYPES = _chunkUJBUJALXjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkQOLVON35js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkQOLVON35js.AbstractApiData; exports.AbstractService = _chunkQOLVON35js.AbstractService; exports.Action = _chunkQOLVON35js.Action; exports.Auth = _chunkQOLVON35js.Auth; exports.AuthComponent = _chunkQOLVON35js.AuthComponent; exports.AuthModule = _chunkQOLVON35js.AuthModule; exports.AuthService = _chunkQOLVON35js.AuthService; exports.AuthorModule = _chunkQOLVON35js.AuthorModule; exports.BackupCodeVerify = _chunkQOLVON35js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkQOLVON35js.BackupCodeVerifyModule; exports.Billing = _chunkQOLVON35js.Billing; exports.BillingModule = _chunkQOLVON35js.BillingModule; exports.BillingService = _chunkQOLVON35js.BillingService; exports.BlockNoteDiffUtil = _chunkQOLVON35js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkQOLVON35js.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkUJBUJALXjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunkQOLVON35js.ClientAbstractService; exports.ClientHttpMethod = _chunkQOLVON35js.ClientHttpMethod; exports.Company = _chunkQOLVON35js.Company; exports.CompanyFields = _chunkQOLVON35js.CompanyFields; exports.CompanyModule = _chunkQOLVON35js.CompanyModule; exports.CompanyService = _chunkQOLVON35js.CompanyService; exports.Content = _chunkQOLVON35js.Content; exports.ContentFields = _chunkQOLVON35js.ContentFields; exports.ContentModule = _chunkQOLVON35js.ContentModule; exports.ContentService = _chunkQOLVON35js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkQOLVON35js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkQOLVON35js.EndpointCreator; exports.Feature = _chunkQOLVON35js.Feature; exports.FeatureModule = _chunkQOLVON35js.FeatureModule; exports.FeatureService = _chunkQOLVON35js.FeatureService; exports.HttpMethod = _chunkQOLVON35js.HttpMethod; exports.InvoiceStatus = _chunkQOLVON35js.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkQOLVON35js.Module; exports.ModuleModule = _chunkQOLVON35js.ModuleModule; exports.ModulePaths = _chunkQOLVON35js.ModulePaths; exports.ModulePathsModule = _chunkQOLVON35js.ModulePathsModule; exports.ModuleRegistrar = _chunkQOLVON35js.ModuleRegistrar; exports.ModuleRegistry = _chunkQOLVON35js.ModuleRegistry; exports.Modules = _chunkQOLVON35js.Modules; exports.Notification = _chunkQOLVON35js.Notification; exports.NotificationFields = _chunkQOLVON35js.NotificationFields; exports.NotificationModule = _chunkQOLVON35js.NotificationModule; exports.NotificationService = _chunkQOLVON35js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkQOLVON35js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkQOLVON35js.OAuthClient; exports.OAuthModule = _chunkQOLVON35js.OAuthModule; exports.OAuthService = _chunkQOLVON35js.OAuthService; exports.Passkey = _chunkQOLVON35js.Passkey; exports.PasskeyAuthenticationOptions = _chunkQOLVON35js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkQOLVON35js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkQOLVON35js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkQOLVON35js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkQOLVON35js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkQOLVON35js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkQOLVON35js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkQOLVON35js.PasskeyRename; exports.PasskeyRenameModule = _chunkQOLVON35js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkQOLVON35js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkQOLVON35js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkQOLVON35js.PaymentMethod; exports.PermissionMapping = _chunkQOLVON35js.PermissionMapping; exports.PermissionMappingModule = _chunkQOLVON35js.PermissionMappingModule; exports.Push = _chunkQOLVON35js.Push; exports.PushModule = _chunkQOLVON35js.PushModule; exports.PushService = _chunkQOLVON35js.PushService; exports.RbacService = _chunkUJBUJALXjs.RbacService; exports.ReferralModule = _chunkQOLVON35js.ReferralModule; exports.ReferralService = _chunkQOLVON35js.ReferralService; exports.ReferralStats = _chunkQOLVON35js.ReferralStats; exports.ReferralStatsModule = _chunkQOLVON35js.ReferralStatsModule; exports.RehydrationFactory = _chunkQOLVON35js.RehydrationFactory; exports.Role = _chunkQOLVON35js.Role; exports.RoleFields = _chunkQOLVON35js.RoleFields; exports.RoleModule = _chunkQOLVON35js.RoleModule; exports.RoleService = _chunkQOLVON35js.RoleService; exports.S3 = _chunkQOLVON35js.S3; exports.S3Module = _chunkQOLVON35js.S3Module; exports.S3Service = _chunkQOLVON35js.S3Service; exports.StripeCustomer = _chunkQOLVON35js.StripeCustomer; exports.StripeCustomerModule = _chunkQOLVON35js.StripeCustomerModule; exports.StripeCustomerService = _chunkQOLVON35js.StripeCustomerService; exports.StripeInvoice = _chunkQOLVON35js.StripeInvoice; exports.StripeInvoiceModule = _chunkQOLVON35js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkQOLVON35js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkQOLVON35js.StripePaymentMethodModule; exports.StripePrice = _chunkQOLVON35js.StripePrice; exports.StripePriceModule = _chunkQOLVON35js.StripePriceModule; exports.StripePriceService = _chunkQOLVON35js.StripePriceService; exports.StripeProduct = _chunkQOLVON35js.StripeProduct; exports.StripeProductModule = _chunkQOLVON35js.StripeProductModule; exports.StripeProductService = _chunkQOLVON35js.StripeProductService; exports.StripePromotionCode = _chunkQOLVON35js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkQOLVON35js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkQOLVON35js.StripePromotionCodeService; exports.StripeSubscription = _chunkQOLVON35js.StripeSubscription; exports.StripeSubscriptionModule = _chunkQOLVON35js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkQOLVON35js.StripeSubscriptionService; exports.StripeUsage = _chunkQOLVON35js.StripeUsage; exports.StripeUsageModule = _chunkQOLVON35js.StripeUsageModule; exports.StripeUsageService = _chunkQOLVON35js.StripeUsageService; exports.SubscriptionStatus = _chunkQOLVON35js.SubscriptionStatus; exports.TableOptions = _chunkQOLVON35js.TableOptions; exports.TotpAuthenticator = _chunkQOLVON35js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkQOLVON35js.TotpAuthenticatorModule; exports.TotpSetup = _chunkQOLVON35js.TotpSetup; exports.TotpSetupModule = _chunkQOLVON35js.TotpSetupModule; exports.TotpVerify = _chunkQOLVON35js.TotpVerify; exports.TotpVerifyLogin = _chunkQOLVON35js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkQOLVON35js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkQOLVON35js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkQOLVON35js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkQOLVON35js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkQOLVON35js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkQOLVON35js.TwoFactorEnableModule; exports.TwoFactorService = _chunkQOLVON35js.TwoFactorService; exports.TwoFactorStatus = _chunkQOLVON35js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkQOLVON35js.TwoFactorStatusModule; exports.User = _chunkQOLVON35js.User; exports.UserFields = _chunkQOLVON35js.UserFields; exports.UserModule = _chunkQOLVON35js.UserModule; exports.UserService = _chunkQOLVON35js.UserService; exports.Waitlist = _chunkQOLVON35js.Waitlist; exports.WaitlistModule = _chunkQOLVON35js.WaitlistModule; exports.WaitlistService = _chunkQOLVON35js.WaitlistService; exports.WaitlistStats = _chunkQOLVON35js.WaitlistStats; exports.WaitlistStatsModule = _chunkQOLVON35js.WaitlistStatsModule; exports.checkPermissions = _chunkQOLVON35js.checkPermissions; exports.checkPermissionsFromServer = _chunkQOLVON35js.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkQOLVON35js.clearLastApiTotal; exports.cn = _chunkQOLVON35js.cn; exports.composeRefs = _chunkQOLVON35js.composeRefs; exports.configureAuth = _chunkQOLVON35js.configureAuth; exports.configureI18n = _chunkUJBUJALXjs.configureI18n; exports.configureJsonApi = _chunkUJBUJALXjs.configureJsonApi; exports.configureLogin = _chunkUJBUJALXjs.configureLogin; exports.configureReferral = _chunkUJBUJALXjs.configureReferral; exports.configureRoles = _chunkUJBUJALXjs.configureRoles; exports.configureWaitlist = _chunkUJBUJALXjs.configureWaitlist; exports.createJsonApiInclusion = _chunkQOLVON35js.createJsonApiInclusion; exports.dismissToast = _chunkQOLVON35js.dismissToast; exports.entityObjectSchema = _chunkQOLVON35js.entityObjectSchema; exports.exists = _chunkQOLVON35js.exists; exports.formatDate = _chunkQOLVON35js.formatDate; exports.getApiUrl = _chunkUJBUJALXjs.getApiUrl; exports.getAppUrl = _chunkUJBUJALXjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkQOLVON35js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkQOLVON35js.getGlobalErrorHandler; exports.getIcon = _chunkQOLVON35js.getIcon; exports.getIconByModule = _chunkQOLVON35js.getIconByModule; exports.getIconByModuleName = _chunkQOLVON35js.getIconByModuleName; exports.getLastApiTotal = _chunkQOLVON35js.getLastApiTotal; exports.getLucideIcon = _chunkQOLVON35js.getLucideIcon; exports.getLucideIconByModule = _chunkQOLVON35js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkQOLVON35js.getLucideIconByModuleName; exports.getReferralConfig = _chunkUJBUJALXjs.getReferralConfig; exports.getRoleId = _chunkUJBUJALXjs.getRoleId; exports.getStripePublishableKey = _chunkUJBUJALXjs.getStripePublishableKey; exports.getTableComponents = _chunkQOLVON35js.getTableComponents; exports.getTableOptions = _chunkQOLVON35js.getTableOptions; exports.getTokenHandler = _chunkQOLVON35js.getTokenHandler; exports.getTrackablePages = _chunkUJBUJALXjs.getTrackablePages; exports.getValueFromPath = _chunkQOLVON35js.getValueFromPath; exports.getWaitlistConfig = _chunkUJBUJALXjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkUJBUJALXjs.isReferralEnabled; exports.isRolesConfigured = _chunkUJBUJALXjs.isRolesConfigured; exports.rehydrate = _chunkQOLVON35js.rehydrate; exports.rehydrateList = _chunkQOLVON35js.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkQOLVON35js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkQOLVON35js.setGlobalErrorHandler; exports.showCustomToast = _chunkQOLVON35js.showCustomToast; exports.showError = _chunkQOLVON35js.showError; exports.showToast = _chunkQOLVON35js.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkQOLVON35js.useComposedRefs; exports.useIsMobile = _chunkQOLVON35js.useIsMobile; exports.userObjectSchema = _chunkQOLVON35js.userObjectSchema;
387
+
388
+ exports.ACTION_TYPES = _chunkBQSMP4NUjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkNAST4OSMjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkNAST4OSMjs.AbstractApiData; exports.AbstractService = _chunkNAST4OSMjs.AbstractService; exports.Action = _chunkNAST4OSMjs.Action; exports.Auth = _chunkNAST4OSMjs.Auth; exports.AuthComponent = _chunkNAST4OSMjs.AuthComponent; exports.AuthModule = _chunkNAST4OSMjs.AuthModule; exports.AuthService = _chunkNAST4OSMjs.AuthService; exports.AuthorModule = _chunkNAST4OSMjs.AuthorModule; exports.BackupCodeVerify = _chunkNAST4OSMjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkNAST4OSMjs.BackupCodeVerifyModule; exports.Billing = _chunkNAST4OSMjs.Billing; exports.BillingModule = _chunkNAST4OSMjs.BillingModule; exports.BillingService = _chunkNAST4OSMjs.BillingService; exports.BlockNoteDiffUtil = _chunkNAST4OSMjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkNAST4OSMjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkBQSMP4NUjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunkNAST4OSMjs.ClientAbstractService; exports.ClientHttpMethod = _chunkNAST4OSMjs.ClientHttpMethod; exports.Company = _chunkNAST4OSMjs.Company; exports.CompanyFields = _chunkNAST4OSMjs.CompanyFields; exports.CompanyModule = _chunkNAST4OSMjs.CompanyModule; exports.CompanyService = _chunkNAST4OSMjs.CompanyService; exports.Content = _chunkNAST4OSMjs.Content; exports.ContentFields = _chunkNAST4OSMjs.ContentFields; exports.ContentModule = _chunkNAST4OSMjs.ContentModule; exports.ContentService = _chunkNAST4OSMjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkNAST4OSMjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkNAST4OSMjs.EndpointCreator; exports.Feature = _chunkNAST4OSMjs.Feature; exports.FeatureModule = _chunkNAST4OSMjs.FeatureModule; exports.FeatureService = _chunkNAST4OSMjs.FeatureService; exports.HttpMethod = _chunkNAST4OSMjs.HttpMethod; exports.InvoiceStatus = _chunkNAST4OSMjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkNAST4OSMjs.Module; exports.ModuleModule = _chunkNAST4OSMjs.ModuleModule; exports.ModulePaths = _chunkNAST4OSMjs.ModulePaths; exports.ModulePathsModule = _chunkNAST4OSMjs.ModulePathsModule; exports.ModuleRegistrar = _chunkNAST4OSMjs.ModuleRegistrar; exports.ModuleRegistry = _chunkNAST4OSMjs.ModuleRegistry; exports.Modules = _chunkNAST4OSMjs.Modules; exports.Notification = _chunkNAST4OSMjs.Notification; exports.NotificationFields = _chunkNAST4OSMjs.NotificationFields; exports.NotificationModule = _chunkNAST4OSMjs.NotificationModule; exports.NotificationService = _chunkNAST4OSMjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkNAST4OSMjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkNAST4OSMjs.OAuthClient; exports.OAuthModule = _chunkNAST4OSMjs.OAuthModule; exports.OAuthService = _chunkNAST4OSMjs.OAuthService; exports.Passkey = _chunkNAST4OSMjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkNAST4OSMjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkNAST4OSMjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkNAST4OSMjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkNAST4OSMjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkNAST4OSMjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkNAST4OSMjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkNAST4OSMjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkNAST4OSMjs.PasskeyRename; exports.PasskeyRenameModule = _chunkNAST4OSMjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkNAST4OSMjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkNAST4OSMjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkNAST4OSMjs.PaymentMethod; exports.PermissionMapping = _chunkNAST4OSMjs.PermissionMapping; exports.PermissionMappingModule = _chunkNAST4OSMjs.PermissionMappingModule; exports.Push = _chunkNAST4OSMjs.Push; exports.PushModule = _chunkNAST4OSMjs.PushModule; exports.PushService = _chunkNAST4OSMjs.PushService; exports.RbacService = _chunkBQSMP4NUjs.RbacService; exports.ReferralModule = _chunkNAST4OSMjs.ReferralModule; exports.ReferralService = _chunkNAST4OSMjs.ReferralService; exports.ReferralStats = _chunkNAST4OSMjs.ReferralStats; exports.ReferralStatsModule = _chunkNAST4OSMjs.ReferralStatsModule; exports.RehydrationFactory = _chunkNAST4OSMjs.RehydrationFactory; exports.Role = _chunkNAST4OSMjs.Role; exports.RoleFields = _chunkNAST4OSMjs.RoleFields; exports.RoleModule = _chunkNAST4OSMjs.RoleModule; exports.RoleService = _chunkNAST4OSMjs.RoleService; exports.S3 = _chunkNAST4OSMjs.S3; exports.S3Module = _chunkNAST4OSMjs.S3Module; exports.S3Service = _chunkNAST4OSMjs.S3Service; exports.StripeCustomer = _chunkNAST4OSMjs.StripeCustomer; exports.StripeCustomerModule = _chunkNAST4OSMjs.StripeCustomerModule; exports.StripeCustomerService = _chunkNAST4OSMjs.StripeCustomerService; exports.StripeInvoice = _chunkNAST4OSMjs.StripeInvoice; exports.StripeInvoiceModule = _chunkNAST4OSMjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkNAST4OSMjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkNAST4OSMjs.StripePaymentMethodModule; exports.StripePrice = _chunkNAST4OSMjs.StripePrice; exports.StripePriceModule = _chunkNAST4OSMjs.StripePriceModule; exports.StripePriceService = _chunkNAST4OSMjs.StripePriceService; exports.StripeProduct = _chunkNAST4OSMjs.StripeProduct; exports.StripeProductModule = _chunkNAST4OSMjs.StripeProductModule; exports.StripeProductService = _chunkNAST4OSMjs.StripeProductService; exports.StripePromotionCode = _chunkNAST4OSMjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkNAST4OSMjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkNAST4OSMjs.StripePromotionCodeService; exports.StripeSubscription = _chunkNAST4OSMjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkNAST4OSMjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkNAST4OSMjs.StripeSubscriptionService; exports.StripeUsage = _chunkNAST4OSMjs.StripeUsage; exports.StripeUsageModule = _chunkNAST4OSMjs.StripeUsageModule; exports.StripeUsageService = _chunkNAST4OSMjs.StripeUsageService; exports.SubscriptionStatus = _chunkNAST4OSMjs.SubscriptionStatus; exports.TableOptions = _chunkNAST4OSMjs.TableOptions; exports.TotpAuthenticator = _chunkNAST4OSMjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkNAST4OSMjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkNAST4OSMjs.TotpSetup; exports.TotpSetupModule = _chunkNAST4OSMjs.TotpSetupModule; exports.TotpVerify = _chunkNAST4OSMjs.TotpVerify; exports.TotpVerifyLogin = _chunkNAST4OSMjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkNAST4OSMjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkNAST4OSMjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkNAST4OSMjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkNAST4OSMjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkNAST4OSMjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkNAST4OSMjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkNAST4OSMjs.TwoFactorService; exports.TwoFactorStatus = _chunkNAST4OSMjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkNAST4OSMjs.TwoFactorStatusModule; exports.User = _chunkNAST4OSMjs.User; exports.UserFields = _chunkNAST4OSMjs.UserFields; exports.UserModule = _chunkNAST4OSMjs.UserModule; exports.UserService = _chunkNAST4OSMjs.UserService; exports.Waitlist = _chunkNAST4OSMjs.Waitlist; exports.WaitlistModule = _chunkNAST4OSMjs.WaitlistModule; exports.WaitlistService = _chunkNAST4OSMjs.WaitlistService; exports.WaitlistStats = _chunkNAST4OSMjs.WaitlistStats; exports.WaitlistStatsModule = _chunkNAST4OSMjs.WaitlistStatsModule; exports.checkPermissions = _chunkNAST4OSMjs.checkPermissions; exports.checkPermissionsFromServer = _chunkNAST4OSMjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkNAST4OSMjs.clearLastApiTotal; exports.cn = _chunkNAST4OSMjs.cn; exports.composeRefs = _chunkNAST4OSMjs.composeRefs; exports.configureAuth = _chunkNAST4OSMjs.configureAuth; exports.configureI18n = _chunkBQSMP4NUjs.configureI18n; exports.configureJsonApi = _chunkBQSMP4NUjs.configureJsonApi; exports.configureLogin = _chunkBQSMP4NUjs.configureLogin; exports.configureReferral = _chunkBQSMP4NUjs.configureReferral; exports.configureRoles = _chunkBQSMP4NUjs.configureRoles; exports.configureWaitlist = _chunkBQSMP4NUjs.configureWaitlist; exports.createJsonApiInclusion = _chunkNAST4OSMjs.createJsonApiInclusion; exports.dismissToast = _chunkNAST4OSMjs.dismissToast; exports.entityObjectSchema = _chunkNAST4OSMjs.entityObjectSchema; exports.exists = _chunkNAST4OSMjs.exists; exports.formatDate = _chunkNAST4OSMjs.formatDate; exports.getApiUrl = _chunkBQSMP4NUjs.getApiUrl; exports.getAppUrl = _chunkBQSMP4NUjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkNAST4OSMjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkNAST4OSMjs.getGlobalErrorHandler; exports.getIcon = _chunkNAST4OSMjs.getIcon; exports.getIconByModule = _chunkNAST4OSMjs.getIconByModule; exports.getIconByModuleName = _chunkNAST4OSMjs.getIconByModuleName; exports.getInitials = _chunkNAST4OSMjs.getInitials; exports.getLastApiTotal = _chunkNAST4OSMjs.getLastApiTotal; exports.getLucideIcon = _chunkNAST4OSMjs.getLucideIcon; exports.getLucideIconByModule = _chunkNAST4OSMjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkNAST4OSMjs.getLucideIconByModuleName; exports.getReferralConfig = _chunkBQSMP4NUjs.getReferralConfig; exports.getRoleId = _chunkBQSMP4NUjs.getRoleId; exports.getStripePublishableKey = _chunkBQSMP4NUjs.getStripePublishableKey; exports.getTableComponents = _chunkNAST4OSMjs.getTableComponents; exports.getTableOptions = _chunkNAST4OSMjs.getTableOptions; exports.getTokenHandler = _chunkNAST4OSMjs.getTokenHandler; exports.getTrackablePages = _chunkBQSMP4NUjs.getTrackablePages; exports.getValueFromPath = _chunkNAST4OSMjs.getValueFromPath; exports.getWaitlistConfig = _chunkBQSMP4NUjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkBQSMP4NUjs.isReferralEnabled; exports.isRolesConfigured = _chunkBQSMP4NUjs.isRolesConfigured; exports.rehydrate = _chunkNAST4OSMjs.rehydrate; exports.rehydrateList = _chunkNAST4OSMjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkNAST4OSMjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkNAST4OSMjs.setGlobalErrorHandler; exports.showCustomToast = _chunkNAST4OSMjs.showCustomToast; exports.showError = _chunkNAST4OSMjs.showError; exports.showToast = _chunkNAST4OSMjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkNAST4OSMjs.useComposedRefs; exports.useIsMobile = _chunkNAST4OSMjs.useIsMobile; exports.userObjectSchema = _chunkNAST4OSMjs.userObjectSchema;
387
389
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6pWAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,itWAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  getWaitlistConfig,
18
18
  isReferralEnabled,
19
19
  isRolesConfigured
20
- } from "./chunk-FE26PIZK.mjs";
20
+ } from "./chunk-HRG4EAOG.mjs";
21
21
  import {
22
22
  AVAILABLE_OAUTH_SCOPES,
23
23
  AbstractApiData,
@@ -161,6 +161,7 @@ import {
161
161
  getIcon,
162
162
  getIconByModule,
163
163
  getIconByModuleName,
164
+ getInitials,
164
165
  getLastApiTotal,
165
166
  getLucideIcon,
166
167
  getLucideIconByModule,
@@ -179,7 +180,7 @@ import {
179
180
  useComposedRefs,
180
181
  useIsMobile,
181
182
  userObjectSchema
182
- } from "./chunk-J2PYGXVD.mjs";
183
+ } from "./chunk-YHNDD34Z.mjs";
183
184
  import "./chunk-AUXK7QSA.mjs";
184
185
  import "./chunk-C7C7VY4F.mjs";
185
186
  import {
@@ -352,6 +353,7 @@ export {
352
353
  getIcon,
353
354
  getIconByModule,
354
355
  getIconByModuleName,
356
+ getInitials,
355
357
  getLastApiTotal,
356
358
  getLucideIcon,
357
359
  getLucideIconByModule,
@@ -15,7 +15,7 @@ var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkQOLVON35js = require('../chunk-QOLVON35.js');
18
+ var _chunkNAST4OSMjs = require('../chunk-NAST4OSM.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
@@ -86,7 +86,7 @@ var ServerSession = class {
86
86
  if (!rawModules) return false;
87
87
  const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
88
88
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
89
- return _chunkQOLVON35js.checkPermissionsFromServer.call(void 0, {
89
+ return _chunkNAST4OSMjs.checkPermissionsFromServer.call(void 0, {
90
90
  module: params.module,
91
91
  action: params.action,
92
92
  data: params.data,
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
296
296
 
297
297
 
298
298
 
299
- exports.ServerAuthService = _chunkQOLVON35js.AuthService; exports.ServerCompanyService = _chunkQOLVON35js.CompanyService; exports.ServerContentService = _chunkQOLVON35js.ContentService; exports.ServerFeatureService = _chunkQOLVON35js.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkQOLVON35js.NotificationService; exports.ServerPushService = _chunkQOLVON35js.PushService; exports.ServerRoleService = _chunkQOLVON35js.RoleService; exports.ServerS3Service = _chunkQOLVON35js.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkQOLVON35js.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
299
+ exports.ServerAuthService = _chunkNAST4OSMjs.AuthService; exports.ServerCompanyService = _chunkNAST4OSMjs.CompanyService; exports.ServerContentService = _chunkNAST4OSMjs.ContentService; exports.ServerFeatureService = _chunkNAST4OSMjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkNAST4OSMjs.NotificationService; exports.ServerPushService = _chunkNAST4OSMjs.PushService; exports.ServerRoleService = _chunkNAST4OSMjs.RoleService; exports.ServerS3Service = _chunkNAST4OSMjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkNAST4OSMjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
300
300
  //# sourceMappingURL=index.js.map
@@ -15,7 +15,7 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-J2PYGXVD.mjs";
18
+ } from "../chunk-YHNDD34Z.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "1.57.1",
3
+ "version": "1.58.1",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -0,0 +1,23 @@
1
+ import { getInitials } from "../utils/getInitials";
2
+ import { Avatar, AvatarFallback, AvatarImage } from "../shadcnui";
3
+
4
+ type EntityAvatarProps = {
5
+ image?: string;
6
+ name: string;
7
+ className?: string;
8
+ fallbackClassName?: string;
9
+ };
10
+
11
+ export function EntityAvatar({
12
+ image,
13
+ name,
14
+ className = "h-24 w-24",
15
+ fallbackClassName = "text-2xl",
16
+ }: EntityAvatarProps) {
17
+ return (
18
+ <Avatar className={`${className} ${fallbackClassName}`}>
19
+ {image ? <AvatarImage src={image} alt={name} /> : null}
20
+ <AvatarFallback className={fallbackClassName}>{getInitials(name)}</AvatarFallback>
21
+ </Avatar>
22
+ );
23
+ }
@@ -0,0 +1,16 @@
1
+ import { getInitials } from "../utils/getInitials";
2
+ import { Avatar, AvatarFallback, AvatarImage } from "../shadcnui";
3
+
4
+ type TableCellAvatarProps = {
5
+ image?: string;
6
+ name: string;
7
+ };
8
+
9
+ export function TableCellAvatar({ image, name }: TableCellAvatarProps) {
10
+ return (
11
+ <Avatar className="mr-2 h-10 w-10 shrink-0">
12
+ {image ? <AvatarImage src={image} alt={name} /> : null}
13
+ <AvatarFallback className="text-xs">{getInitials(name)}</AvatarFallback>
14
+ </Avatar>
15
+ );
16
+ }
@@ -1,3 +1,6 @@
1
+ export { EntityAvatar } from "./EntityAvatar";
2
+ export { TableCellAvatar } from "./TableCellAvatar";
3
+ export { getInitials } from "../utils/getInitials";
1
4
  export * from "./containers";
2
5
  export * from "./contents";
3
6
  export * from "./details";
@@ -0,0 +1,16 @@
1
+ export function getInitials(name: string): string;
2
+ export function getInitials(firstName: string, lastName: string): string;
3
+ export function getInitials(firstOrName: string, lastName?: string): string {
4
+ if (lastName !== undefined) {
5
+ const first = firstOrName?.trim()?.[0] ?? "";
6
+ const last = lastName?.trim()?.[0] ?? "";
7
+ if (first && last) return (first + last).toUpperCase();
8
+ return (firstOrName || lastName || "").slice(0, 2).toUpperCase();
9
+ }
10
+
11
+ const words = firstOrName.trim().split(/\s+/);
12
+ if (words.length >= 2) {
13
+ return (words[0][0] + words[1][0]).toUpperCase();
14
+ }
15
+ return firstOrName.slice(0, 2).toUpperCase();
16
+ }
@@ -11,6 +11,7 @@ export { getTableComponents, getTableOptions, TableOptions } from "./table-optio
11
11
  // Schemas
12
12
  export { entityObjectSchema, userObjectSchema, type EntityObject, type UserObject } from "./schemas";
13
13
 
14
+ export { getInitials } from "./getInitials";
14
15
  export * from "./blocknote-diff.util";
15
16
  export * from "./blocknote-word-diff-renderer.util";
16
17
  export * from "./icons";