@carlonicora/nextjs-jsonapi 3.5.8 → 3.5.10

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/{BlockNoteEditor-5LH6CCQF.mjs → BlockNoteEditor-5MOYLQXK.mjs} +5 -5
  2. package/dist/{BlockNoteEditor-J27BAKEF.js → BlockNoteEditor-5UUTCRSX.js} +20 -20
  3. package/dist/{BlockNoteEditor-J27BAKEF.js.map → BlockNoteEditor-5UUTCRSX.js.map} +1 -1
  4. package/dist/{JsonApiRequest-ADNIGXTP.mjs → JsonApiRequest-7AEQWMLJ.mjs} +2 -2
  5. package/dist/JsonApiRequest-E4PZPH3N.js +26 -0
  6. package/dist/{JsonApiRequest-WWGSGV2I.js.map → JsonApiRequest-E4PZPH3N.js.map} +1 -1
  7. package/dist/billing/index.js +399 -399
  8. package/dist/billing/index.mjs +4 -4
  9. package/dist/{chunk-DK5ZOPVF.mjs → chunk-2D4MFVDV.mjs} +3 -3
  10. package/dist/{chunk-RVASYIQG.mjs → chunk-BMVA2IM5.mjs} +2 -5
  11. package/dist/chunk-BMVA2IM5.mjs.map +1 -0
  12. package/dist/{chunk-H37WRSBU.mjs → chunk-HDZ2BL6D.mjs} +5 -5
  13. package/dist/{chunk-W42MYR3Y.js → chunk-LU7DJ4QF.js} +2 -5
  14. package/dist/chunk-LU7DJ4QF.js.map +1 -0
  15. package/dist/{chunk-G2PQN6HK.js → chunk-P7XPRUQI.js} +800 -784
  16. package/dist/chunk-P7XPRUQI.js.map +1 -0
  17. package/dist/{chunk-Q2QO5XYN.mjs → chunk-T4PD3Z6G.mjs} +34 -18
  18. package/dist/chunk-T4PD3Z6G.mjs.map +1 -0
  19. package/dist/{chunk-B2OB3HQO.js → chunk-TULJCLZA.js} +13 -13
  20. package/dist/{chunk-B2OB3HQO.js.map → chunk-TULJCLZA.js.map} +1 -1
  21. package/dist/{chunk-PGA2VC3S.js → chunk-UYLS3LJW.js} +32 -32
  22. package/dist/{chunk-PGA2VC3S.js.map → chunk-UYLS3LJW.js.map} +1 -1
  23. package/dist/client/index.js +5 -5
  24. package/dist/client/index.mjs +4 -4
  25. package/dist/components/index.js +5 -5
  26. package/dist/components/index.mjs +4 -4
  27. package/dist/contexts/index.js +5 -5
  28. package/dist/contexts/index.mjs +4 -4
  29. package/dist/core/index.js +3 -3
  30. package/dist/core/index.mjs +2 -2
  31. package/dist/features/help/index.js +38 -38
  32. package/dist/features/help/index.mjs +4 -4
  33. package/dist/features/tokenusage/index.js +102 -102
  34. package/dist/features/tokenusage/index.mjs +4 -4
  35. package/dist/index.js +4 -4
  36. package/dist/index.mjs +3 -3
  37. package/dist/server/index.js +14 -14
  38. package/dist/server/index.mjs +2 -2
  39. package/package.json +1 -1
  40. package/src/components/forms/EditorSheet.tsx +28 -17
  41. package/src/core/registry/DataClassRegistry.ts +7 -4
  42. package/src/core/registry/__tests__/DataClassRegistry.test.ts +14 -0
  43. package/dist/JsonApiRequest-WWGSGV2I.js +0 -26
  44. package/dist/chunk-G2PQN6HK.js.map +0 -1
  45. package/dist/chunk-Q2QO5XYN.mjs.map +0 -1
  46. package/dist/chunk-RVASYIQG.mjs.map +0 -1
  47. package/dist/chunk-W42MYR3Y.js.map +0 -1
  48. /package/dist/{BlockNoteEditor-5LH6CCQF.mjs.map → BlockNoteEditor-5MOYLQXK.mjs.map} +0 -0
  49. /package/dist/{JsonApiRequest-ADNIGXTP.mjs.map → JsonApiRequest-7AEQWMLJ.mjs.map} +0 -0
  50. /package/dist/{chunk-DK5ZOPVF.mjs.map → chunk-2D4MFVDV.mjs.map} +0 -0
  51. /package/dist/{chunk-H37WRSBU.mjs.map → chunk-HDZ2BL6D.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- var _chunkB2OB3HQOjs = require('./chunk-B2OB3HQO.js');
21
+ var _chunkTULJCLZAjs = require('./chunk-TULJCLZA.js');
22
22
 
23
23
 
24
24
 
@@ -226,7 +226,7 @@ var _chunkB2OB3HQOjs = require('./chunk-B2OB3HQO.js');
226
226
 
227
227
 
228
228
 
229
- var _chunkPGA2VC3Sjs = require('./chunk-PGA2VC3S.js');
229
+ var _chunkUYLS3LJWjs = require('./chunk-UYLS3LJW.js');
230
230
  require('./chunk-LXKSUWAV.js');
231
231
  require('./chunk-IBS6NI7D.js');
232
232
 
@@ -240,7 +240,7 @@ require('./chunk-IBS6NI7D.js');
240
240
 
241
241
 
242
242
 
243
- var _chunkW42MYR3Yjs = require('./chunk-W42MYR3Y.js');
243
+ var _chunkLU7DJ4QFjs = require('./chunk-LU7DJ4QF.js');
244
244
  require('./chunk-7QVYU63E.js');
245
245
 
246
246
 
@@ -479,5 +479,5 @@ require('./chunk-7QVYU63E.js');
479
479
 
480
480
 
481
481
 
482
- exports.ACTION_TYPES = _chunkB2OB3HQOjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkPGA2VC3Sjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkPGA2VC3Sjs.AbstractApiData; exports.AbstractService = _chunkPGA2VC3Sjs.AbstractService; exports.Action = _chunkPGA2VC3Sjs.Action; exports.AiConnection = _chunkPGA2VC3Sjs.AiConnection; exports.AiConnectionFields = _chunkPGA2VC3Sjs.AiConnectionFields; exports.AiConnectionModule = _chunkPGA2VC3Sjs.AiConnectionModule; exports.AiConnectionService = _chunkPGA2VC3Sjs.AiConnectionService; exports.Assistant = _chunkPGA2VC3Sjs.Assistant; exports.AssistantAction = _chunkPGA2VC3Sjs.AssistantAction; exports.AssistantActionModule = _chunkPGA2VC3Sjs.AssistantActionModule; exports.AssistantActionService = _chunkPGA2VC3Sjs.AssistantActionService; exports.AssistantMessage = _chunkPGA2VC3Sjs.AssistantMessage; exports.AssistantMessageModule = _chunkPGA2VC3Sjs.AssistantMessageModule; exports.AssistantMessageService = _chunkPGA2VC3Sjs.AssistantMessageService; exports.AssistantModule = _chunkPGA2VC3Sjs.AssistantModule; exports.AssistantService = _chunkPGA2VC3Sjs.AssistantService; exports.AuditLog = _chunkPGA2VC3Sjs.AuditLog; exports.AuditLogModule = _chunkPGA2VC3Sjs.AuditLogModule; exports.AuditLogService = _chunkPGA2VC3Sjs.AuditLogService; exports.Auth = _chunkPGA2VC3Sjs.Auth; exports.AuthComponent = _chunkPGA2VC3Sjs.AuthComponent; exports.AuthModule = _chunkPGA2VC3Sjs.AuthModule; exports.AuthService = _chunkPGA2VC3Sjs.AuthService; exports.AuthorModule = _chunkPGA2VC3Sjs.AuthorModule; exports.BackupCodeVerify = _chunkPGA2VC3Sjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkPGA2VC3Sjs.BackupCodeVerifyModule; exports.Billing = _chunkPGA2VC3Sjs.Billing; exports.BillingModule = _chunkPGA2VC3Sjs.BillingModule; exports.BillingService = _chunkPGA2VC3Sjs.BillingService; exports.BlockNoteDiffUtil = _chunkPGA2VC3Sjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkPGA2VC3Sjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkB2OB3HQOjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunkPGA2VC3Sjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkPGA2VC3Sjs.Chunk; exports.ChunkModule = _chunkPGA2VC3Sjs.ChunkModule; exports.ClientAbstractService = _chunkPGA2VC3Sjs.ClientAbstractService; exports.ClientHttpMethod = _chunkPGA2VC3Sjs.ClientHttpMethod; exports.Company = _chunkPGA2VC3Sjs.Company; exports.CompanyFields = _chunkPGA2VC3Sjs.CompanyFields; exports.CompanyModule = _chunkPGA2VC3Sjs.CompanyModule; exports.CompanyService = _chunkPGA2VC3Sjs.CompanyService; exports.Content = _chunkPGA2VC3Sjs.Content; exports.ContentFields = _chunkPGA2VC3Sjs.ContentFields; exports.ContentModule = _chunkPGA2VC3Sjs.ContentModule; exports.ContentService = _chunkPGA2VC3Sjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkPGA2VC3Sjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkW42MYR3Yjs.DataClassRegistry; exports.DataClassRegistry = _chunkW42MYR3Yjs.DataClassRegistry; exports.ENV = _chunkW42MYR3Yjs.ENV; exports.EndpointCreator = _chunkPGA2VC3Sjs.EndpointCreator; exports.EntityAiStatus = _chunkPGA2VC3Sjs.EntityAiStatus; exports.Feature = _chunkPGA2VC3Sjs.Feature; exports.FeatureModule = _chunkPGA2VC3Sjs.FeatureModule; exports.FeatureService = _chunkPGA2VC3Sjs.FeatureService; exports.HowTo = _chunkPGA2VC3Sjs.HowTo; exports.HowToFields = _chunkPGA2VC3Sjs.HowToFields; exports.HowToModule = _chunkPGA2VC3Sjs.HowToModule; exports.HowToService = _chunkPGA2VC3Sjs.HowToService; exports.HttpMethod = _chunkPGA2VC3Sjs.HttpMethod; exports.InvoiceStatus = _chunkPGA2VC3Sjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkW42MYR3Yjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkPGA2VC3Sjs.MOBILE_BREAKPOINT; exports.Module = _chunkPGA2VC3Sjs.Module; exports.ModuleModule = _chunkPGA2VC3Sjs.ModuleModule; exports.ModulePaths = _chunkPGA2VC3Sjs.ModulePaths; exports.ModulePathsModule = _chunkPGA2VC3Sjs.ModulePathsModule; exports.ModuleRegistrar = _chunkPGA2VC3Sjs.ModuleRegistrar; exports.ModuleRegistry = _chunkPGA2VC3Sjs.ModuleRegistry; exports.Modules = _chunkPGA2VC3Sjs.Modules; exports.Notification = _chunkPGA2VC3Sjs.Notification; exports.NotificationFields = _chunkPGA2VC3Sjs.NotificationFields; exports.NotificationModule = _chunkPGA2VC3Sjs.NotificationModule; exports.NotificationService = _chunkPGA2VC3Sjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkPGA2VC3Sjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkPGA2VC3Sjs.OAuthClient; exports.OAuthModule = _chunkPGA2VC3Sjs.OAuthModule; exports.OAuthService = _chunkPGA2VC3Sjs.OAuthService; exports.Passkey = _chunkPGA2VC3Sjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkPGA2VC3Sjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkPGA2VC3Sjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkPGA2VC3Sjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkPGA2VC3Sjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkPGA2VC3Sjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkPGA2VC3Sjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkPGA2VC3Sjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkPGA2VC3Sjs.PasskeyRename; exports.PasskeyRenameModule = _chunkPGA2VC3Sjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkPGA2VC3Sjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkPGA2VC3Sjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkPGA2VC3Sjs.PaymentMethod; exports.PermissionMapping = _chunkPGA2VC3Sjs.PermissionMapping; exports.PermissionMappingModule = _chunkPGA2VC3Sjs.PermissionMappingModule; exports.Push = _chunkPGA2VC3Sjs.Push; exports.PushModule = _chunkPGA2VC3Sjs.PushModule; exports.PushService = _chunkPGA2VC3Sjs.PushService; exports.RbacMatrixModel = _chunkPGA2VC3Sjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkPGA2VC3Sjs.RbacMatrixModule; exports.RbacService = _chunkB2OB3HQOjs.RbacService; exports.ReferralModule = _chunkPGA2VC3Sjs.ReferralModule; exports.ReferralService = _chunkPGA2VC3Sjs.ReferralService; exports.ReferralStats = _chunkPGA2VC3Sjs.ReferralStats; exports.ReferralStatsModule = _chunkPGA2VC3Sjs.ReferralStatsModule; exports.RehydrationFactory = _chunkPGA2VC3Sjs.RehydrationFactory; exports.Role = _chunkPGA2VC3Sjs.Role; exports.RoleFields = _chunkPGA2VC3Sjs.RoleFields; exports.RoleModule = _chunkPGA2VC3Sjs.RoleModule; exports.RoleService = _chunkPGA2VC3Sjs.RoleService; exports.S3 = _chunkPGA2VC3Sjs.S3; exports.S3Module = _chunkPGA2VC3Sjs.S3Module; exports.S3Service = _chunkPGA2VC3Sjs.S3Service; exports.StripeCustomer = _chunkPGA2VC3Sjs.StripeCustomer; exports.StripeCustomerModule = _chunkPGA2VC3Sjs.StripeCustomerModule; exports.StripeCustomerService = _chunkPGA2VC3Sjs.StripeCustomerService; exports.StripeInvoice = _chunkPGA2VC3Sjs.StripeInvoice; exports.StripeInvoiceModule = _chunkPGA2VC3Sjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkPGA2VC3Sjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkPGA2VC3Sjs.StripePaymentMethodModule; exports.StripePrice = _chunkPGA2VC3Sjs.StripePrice; exports.StripePriceFields = _chunkPGA2VC3Sjs.StripePriceFields; exports.StripePriceModule = _chunkPGA2VC3Sjs.StripePriceModule; exports.StripePriceService = _chunkPGA2VC3Sjs.StripePriceService; exports.StripeProduct = _chunkPGA2VC3Sjs.StripeProduct; exports.StripeProductFields = _chunkPGA2VC3Sjs.StripeProductFields; exports.StripeProductModule = _chunkPGA2VC3Sjs.StripeProductModule; exports.StripeProductService = _chunkPGA2VC3Sjs.StripeProductService; exports.StripePromotionCode = _chunkPGA2VC3Sjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkPGA2VC3Sjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkPGA2VC3Sjs.StripePromotionCodeService; exports.StripeSubscription = _chunkPGA2VC3Sjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkPGA2VC3Sjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkPGA2VC3Sjs.StripeSubscriptionService; exports.StripeUsage = _chunkPGA2VC3Sjs.StripeUsage; exports.StripeUsageModule = _chunkPGA2VC3Sjs.StripeUsageModule; exports.StripeUsageService = _chunkPGA2VC3Sjs.StripeUsageService; exports.SubscriptionStatus = _chunkPGA2VC3Sjs.SubscriptionStatus; exports.TableOptions = _chunkPGA2VC3Sjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkPGA2VC3Sjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkPGA2VC3Sjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkPGA2VC3Sjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkPGA2VC3Sjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkPGA2VC3Sjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkPGA2VC3Sjs.TotpSetup; exports.TotpSetupModule = _chunkPGA2VC3Sjs.TotpSetupModule; exports.TotpVerify = _chunkPGA2VC3Sjs.TotpVerify; exports.TotpVerifyLogin = _chunkPGA2VC3Sjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkPGA2VC3Sjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkPGA2VC3Sjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkPGA2VC3Sjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkPGA2VC3Sjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkPGA2VC3Sjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkPGA2VC3Sjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkPGA2VC3Sjs.TwoFactorService; exports.TwoFactorStatus = _chunkPGA2VC3Sjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkPGA2VC3Sjs.TwoFactorStatusModule; exports.User = _chunkPGA2VC3Sjs.User; exports.UserFields = _chunkPGA2VC3Sjs.UserFields; exports.UserModule = _chunkPGA2VC3Sjs.UserModule; exports.UserService = _chunkPGA2VC3Sjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkPGA2VC3Sjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkPGA2VC3Sjs.Waitlist; exports.WaitlistModule = _chunkPGA2VC3Sjs.WaitlistModule; exports.WaitlistService = _chunkPGA2VC3Sjs.WaitlistService; exports.WaitlistStats = _chunkPGA2VC3Sjs.WaitlistStats; exports.WaitlistStatsModule = _chunkPGA2VC3Sjs.WaitlistStatsModule; exports.checkPermissions = _chunkPGA2VC3Sjs.checkPermissions; exports.checkPermissionsFromServer = _chunkPGA2VC3Sjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkPGA2VC3Sjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkPGA2VC3Sjs.clearLastApiTotal; exports.cn = _chunkPGA2VC3Sjs.cn; exports.composeRefs = _chunkPGA2VC3Sjs.composeRefs; exports.configureAuth = _chunkPGA2VC3Sjs.configureAuth; exports.configureI18n = _chunkB2OB3HQOjs.configureI18n; exports.configureJsonApi = _chunkB2OB3HQOjs.configureJsonApi; exports.configureLogin = _chunkB2OB3HQOjs.configureLogin; exports.configureReferral = _chunkB2OB3HQOjs.configureReferral; exports.configureRoles = _chunkB2OB3HQOjs.configureRoles; exports.configureTokenUsage = _chunkPGA2VC3Sjs.configureTokenUsage; exports.configureWaitlist = _chunkB2OB3HQOjs.configureWaitlist; exports.createJsonApiInclusion = _chunkPGA2VC3Sjs.createJsonApiInclusion; exports.dismissToast = _chunkPGA2VC3Sjs.dismissToast; exports.entityObjectSchema = _chunkPGA2VC3Sjs.entityObjectSchema; exports.exists = _chunkPGA2VC3Sjs.exists; exports.formatCodiceFiscale = _chunkPGA2VC3Sjs.formatCodiceFiscale; exports.formatDate = _chunkPGA2VC3Sjs.formatDate; exports.formatLocalDate = _chunkPGA2VC3Sjs.formatLocalDate; exports.formatPartitaIva = _chunkPGA2VC3Sjs.formatPartitaIva; exports.getApiUrl = _chunkB2OB3HQOjs.getApiUrl; exports.getAppUrl = _chunkB2OB3HQOjs.getAppUrl; exports.getBootstrapper = _chunkW42MYR3Yjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkPGA2VC3Sjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkPGA2VC3Sjs.getGlobalErrorHandler; exports.getIcon = _chunkPGA2VC3Sjs.getIcon; exports.getIconByModule = _chunkPGA2VC3Sjs.getIconByModule; exports.getIconByModuleName = _chunkPGA2VC3Sjs.getIconByModuleName; exports.getInitials = _chunkPGA2VC3Sjs.getInitials; exports.getLastApiMeta = _chunkPGA2VC3Sjs.getLastApiMeta; exports.getLastApiTotal = _chunkPGA2VC3Sjs.getLastApiTotal; exports.getLucideIcon = _chunkPGA2VC3Sjs.getLucideIcon; exports.getLucideIconByModule = _chunkPGA2VC3Sjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkPGA2VC3Sjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkB2OB3HQOjs.getPublicApiUrl; exports.getReferralConfig = _chunkB2OB3HQOjs.getReferralConfig; exports.getRoleId = _chunkB2OB3HQOjs.getRoleId; exports.getStripePublishableKey = _chunkB2OB3HQOjs.getStripePublishableKey; exports.getTableComponents = _chunkPGA2VC3Sjs.getTableComponents; exports.getTableOptions = _chunkPGA2VC3Sjs.getTableOptions; exports.getTokenHandler = _chunkPGA2VC3Sjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkPGA2VC3Sjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkB2OB3HQOjs.getTrackablePages; exports.getValueFromPath = _chunkPGA2VC3Sjs.getValueFromPath; exports.getWaitlistConfig = _chunkB2OB3HQOjs.getWaitlistConfig; exports.hasBootstrapper = _chunkW42MYR3Yjs.hasBootstrapper; exports.isReferralEnabled = _chunkB2OB3HQOjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkPGA2VC3Sjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkB2OB3HQOjs.isRolesConfigured; exports.rehydrate = _chunkPGA2VC3Sjs.rehydrate; exports.rehydrateList = _chunkPGA2VC3Sjs.rehydrateList; exports.resetBootstrapStore = _chunkW42MYR3Yjs.resetBootstrapStore; exports.setBootstrapper = _chunkW42MYR3Yjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkPGA2VC3Sjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkPGA2VC3Sjs.setGlobalErrorHandler; exports.showCustomToast = _chunkPGA2VC3Sjs.showCustomToast; exports.showError = _chunkPGA2VC3Sjs.showError; exports.showToast = _chunkPGA2VC3Sjs.showToast; exports.tokenUsageModules = _chunkPGA2VC3Sjs.tokenUsageModules; exports.translateData = _chunkW42MYR3Yjs.translateData; exports.translateResponse = _chunkW42MYR3Yjs.translateResponse; exports.tryBootstrap = _chunkW42MYR3Yjs.tryBootstrap; exports.useComposedRefs = _chunkPGA2VC3Sjs.useComposedRefs; exports.useIsMobile = _chunkPGA2VC3Sjs.useIsMobile; exports.userObjectSchema = _chunkPGA2VC3Sjs.userObjectSchema; exports.validateCodiceFiscale = _chunkPGA2VC3Sjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkPGA2VC3Sjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkPGA2VC3Sjs.validatePartitaIva;
482
+ exports.ACTION_TYPES = _chunkTULJCLZAjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkUYLS3LJWjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkUYLS3LJWjs.AbstractApiData; exports.AbstractService = _chunkUYLS3LJWjs.AbstractService; exports.Action = _chunkUYLS3LJWjs.Action; exports.AiConnection = _chunkUYLS3LJWjs.AiConnection; exports.AiConnectionFields = _chunkUYLS3LJWjs.AiConnectionFields; exports.AiConnectionModule = _chunkUYLS3LJWjs.AiConnectionModule; exports.AiConnectionService = _chunkUYLS3LJWjs.AiConnectionService; exports.Assistant = _chunkUYLS3LJWjs.Assistant; exports.AssistantAction = _chunkUYLS3LJWjs.AssistantAction; exports.AssistantActionModule = _chunkUYLS3LJWjs.AssistantActionModule; exports.AssistantActionService = _chunkUYLS3LJWjs.AssistantActionService; exports.AssistantMessage = _chunkUYLS3LJWjs.AssistantMessage; exports.AssistantMessageModule = _chunkUYLS3LJWjs.AssistantMessageModule; exports.AssistantMessageService = _chunkUYLS3LJWjs.AssistantMessageService; exports.AssistantModule = _chunkUYLS3LJWjs.AssistantModule; exports.AssistantService = _chunkUYLS3LJWjs.AssistantService; exports.AuditLog = _chunkUYLS3LJWjs.AuditLog; exports.AuditLogModule = _chunkUYLS3LJWjs.AuditLogModule; exports.AuditLogService = _chunkUYLS3LJWjs.AuditLogService; exports.Auth = _chunkUYLS3LJWjs.Auth; exports.AuthComponent = _chunkUYLS3LJWjs.AuthComponent; exports.AuthModule = _chunkUYLS3LJWjs.AuthModule; exports.AuthService = _chunkUYLS3LJWjs.AuthService; exports.AuthorModule = _chunkUYLS3LJWjs.AuthorModule; exports.BackupCodeVerify = _chunkUYLS3LJWjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkUYLS3LJWjs.BackupCodeVerifyModule; exports.Billing = _chunkUYLS3LJWjs.Billing; exports.BillingModule = _chunkUYLS3LJWjs.BillingModule; exports.BillingService = _chunkUYLS3LJWjs.BillingService; exports.BlockNoteDiffUtil = _chunkUYLS3LJWjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkUYLS3LJWjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkTULJCLZAjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunkUYLS3LJWjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkUYLS3LJWjs.Chunk; exports.ChunkModule = _chunkUYLS3LJWjs.ChunkModule; exports.ClientAbstractService = _chunkUYLS3LJWjs.ClientAbstractService; exports.ClientHttpMethod = _chunkUYLS3LJWjs.ClientHttpMethod; exports.Company = _chunkUYLS3LJWjs.Company; exports.CompanyFields = _chunkUYLS3LJWjs.CompanyFields; exports.CompanyModule = _chunkUYLS3LJWjs.CompanyModule; exports.CompanyService = _chunkUYLS3LJWjs.CompanyService; exports.Content = _chunkUYLS3LJWjs.Content; exports.ContentFields = _chunkUYLS3LJWjs.ContentFields; exports.ContentModule = _chunkUYLS3LJWjs.ContentModule; exports.ContentService = _chunkUYLS3LJWjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkUYLS3LJWjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLU7DJ4QFjs.DataClassRegistry; exports.DataClassRegistry = _chunkLU7DJ4QFjs.DataClassRegistry; exports.ENV = _chunkLU7DJ4QFjs.ENV; exports.EndpointCreator = _chunkUYLS3LJWjs.EndpointCreator; exports.EntityAiStatus = _chunkUYLS3LJWjs.EntityAiStatus; exports.Feature = _chunkUYLS3LJWjs.Feature; exports.FeatureModule = _chunkUYLS3LJWjs.FeatureModule; exports.FeatureService = _chunkUYLS3LJWjs.FeatureService; exports.HowTo = _chunkUYLS3LJWjs.HowTo; exports.HowToFields = _chunkUYLS3LJWjs.HowToFields; exports.HowToModule = _chunkUYLS3LJWjs.HowToModule; exports.HowToService = _chunkUYLS3LJWjs.HowToService; exports.HttpMethod = _chunkUYLS3LJWjs.HttpMethod; exports.InvoiceStatus = _chunkUYLS3LJWjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLU7DJ4QFjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkUYLS3LJWjs.MOBILE_BREAKPOINT; exports.Module = _chunkUYLS3LJWjs.Module; exports.ModuleModule = _chunkUYLS3LJWjs.ModuleModule; exports.ModulePaths = _chunkUYLS3LJWjs.ModulePaths; exports.ModulePathsModule = _chunkUYLS3LJWjs.ModulePathsModule; exports.ModuleRegistrar = _chunkUYLS3LJWjs.ModuleRegistrar; exports.ModuleRegistry = _chunkUYLS3LJWjs.ModuleRegistry; exports.Modules = _chunkUYLS3LJWjs.Modules; exports.Notification = _chunkUYLS3LJWjs.Notification; exports.NotificationFields = _chunkUYLS3LJWjs.NotificationFields; exports.NotificationModule = _chunkUYLS3LJWjs.NotificationModule; exports.NotificationService = _chunkUYLS3LJWjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkUYLS3LJWjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkUYLS3LJWjs.OAuthClient; exports.OAuthModule = _chunkUYLS3LJWjs.OAuthModule; exports.OAuthService = _chunkUYLS3LJWjs.OAuthService; exports.Passkey = _chunkUYLS3LJWjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkUYLS3LJWjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkUYLS3LJWjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkUYLS3LJWjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkUYLS3LJWjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkUYLS3LJWjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkUYLS3LJWjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkUYLS3LJWjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkUYLS3LJWjs.PasskeyRename; exports.PasskeyRenameModule = _chunkUYLS3LJWjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkUYLS3LJWjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkUYLS3LJWjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkUYLS3LJWjs.PaymentMethod; exports.PermissionMapping = _chunkUYLS3LJWjs.PermissionMapping; exports.PermissionMappingModule = _chunkUYLS3LJWjs.PermissionMappingModule; exports.Push = _chunkUYLS3LJWjs.Push; exports.PushModule = _chunkUYLS3LJWjs.PushModule; exports.PushService = _chunkUYLS3LJWjs.PushService; exports.RbacMatrixModel = _chunkUYLS3LJWjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkUYLS3LJWjs.RbacMatrixModule; exports.RbacService = _chunkTULJCLZAjs.RbacService; exports.ReferralModule = _chunkUYLS3LJWjs.ReferralModule; exports.ReferralService = _chunkUYLS3LJWjs.ReferralService; exports.ReferralStats = _chunkUYLS3LJWjs.ReferralStats; exports.ReferralStatsModule = _chunkUYLS3LJWjs.ReferralStatsModule; exports.RehydrationFactory = _chunkUYLS3LJWjs.RehydrationFactory; exports.Role = _chunkUYLS3LJWjs.Role; exports.RoleFields = _chunkUYLS3LJWjs.RoleFields; exports.RoleModule = _chunkUYLS3LJWjs.RoleModule; exports.RoleService = _chunkUYLS3LJWjs.RoleService; exports.S3 = _chunkUYLS3LJWjs.S3; exports.S3Module = _chunkUYLS3LJWjs.S3Module; exports.S3Service = _chunkUYLS3LJWjs.S3Service; exports.StripeCustomer = _chunkUYLS3LJWjs.StripeCustomer; exports.StripeCustomerModule = _chunkUYLS3LJWjs.StripeCustomerModule; exports.StripeCustomerService = _chunkUYLS3LJWjs.StripeCustomerService; exports.StripeInvoice = _chunkUYLS3LJWjs.StripeInvoice; exports.StripeInvoiceModule = _chunkUYLS3LJWjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkUYLS3LJWjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkUYLS3LJWjs.StripePaymentMethodModule; exports.StripePrice = _chunkUYLS3LJWjs.StripePrice; exports.StripePriceFields = _chunkUYLS3LJWjs.StripePriceFields; exports.StripePriceModule = _chunkUYLS3LJWjs.StripePriceModule; exports.StripePriceService = _chunkUYLS3LJWjs.StripePriceService; exports.StripeProduct = _chunkUYLS3LJWjs.StripeProduct; exports.StripeProductFields = _chunkUYLS3LJWjs.StripeProductFields; exports.StripeProductModule = _chunkUYLS3LJWjs.StripeProductModule; exports.StripeProductService = _chunkUYLS3LJWjs.StripeProductService; exports.StripePromotionCode = _chunkUYLS3LJWjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkUYLS3LJWjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkUYLS3LJWjs.StripePromotionCodeService; exports.StripeSubscription = _chunkUYLS3LJWjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkUYLS3LJWjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkUYLS3LJWjs.StripeSubscriptionService; exports.StripeUsage = _chunkUYLS3LJWjs.StripeUsage; exports.StripeUsageModule = _chunkUYLS3LJWjs.StripeUsageModule; exports.StripeUsageService = _chunkUYLS3LJWjs.StripeUsageService; exports.SubscriptionStatus = _chunkUYLS3LJWjs.SubscriptionStatus; exports.TableOptions = _chunkUYLS3LJWjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkUYLS3LJWjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkUYLS3LJWjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkUYLS3LJWjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkUYLS3LJWjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkUYLS3LJWjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkUYLS3LJWjs.TotpSetup; exports.TotpSetupModule = _chunkUYLS3LJWjs.TotpSetupModule; exports.TotpVerify = _chunkUYLS3LJWjs.TotpVerify; exports.TotpVerifyLogin = _chunkUYLS3LJWjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkUYLS3LJWjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkUYLS3LJWjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkUYLS3LJWjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkUYLS3LJWjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkUYLS3LJWjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkUYLS3LJWjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkUYLS3LJWjs.TwoFactorService; exports.TwoFactorStatus = _chunkUYLS3LJWjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkUYLS3LJWjs.TwoFactorStatusModule; exports.User = _chunkUYLS3LJWjs.User; exports.UserFields = _chunkUYLS3LJWjs.UserFields; exports.UserModule = _chunkUYLS3LJWjs.UserModule; exports.UserService = _chunkUYLS3LJWjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkUYLS3LJWjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkUYLS3LJWjs.Waitlist; exports.WaitlistModule = _chunkUYLS3LJWjs.WaitlistModule; exports.WaitlistService = _chunkUYLS3LJWjs.WaitlistService; exports.WaitlistStats = _chunkUYLS3LJWjs.WaitlistStats; exports.WaitlistStatsModule = _chunkUYLS3LJWjs.WaitlistStatsModule; exports.checkPermissions = _chunkUYLS3LJWjs.checkPermissions; exports.checkPermissionsFromServer = _chunkUYLS3LJWjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkUYLS3LJWjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkUYLS3LJWjs.clearLastApiTotal; exports.cn = _chunkUYLS3LJWjs.cn; exports.composeRefs = _chunkUYLS3LJWjs.composeRefs; exports.configureAuth = _chunkUYLS3LJWjs.configureAuth; exports.configureI18n = _chunkTULJCLZAjs.configureI18n; exports.configureJsonApi = _chunkTULJCLZAjs.configureJsonApi; exports.configureLogin = _chunkTULJCLZAjs.configureLogin; exports.configureReferral = _chunkTULJCLZAjs.configureReferral; exports.configureRoles = _chunkTULJCLZAjs.configureRoles; exports.configureTokenUsage = _chunkUYLS3LJWjs.configureTokenUsage; exports.configureWaitlist = _chunkTULJCLZAjs.configureWaitlist; exports.createJsonApiInclusion = _chunkUYLS3LJWjs.createJsonApiInclusion; exports.dismissToast = _chunkUYLS3LJWjs.dismissToast; exports.entityObjectSchema = _chunkUYLS3LJWjs.entityObjectSchema; exports.exists = _chunkUYLS3LJWjs.exists; exports.formatCodiceFiscale = _chunkUYLS3LJWjs.formatCodiceFiscale; exports.formatDate = _chunkUYLS3LJWjs.formatDate; exports.formatLocalDate = _chunkUYLS3LJWjs.formatLocalDate; exports.formatPartitaIva = _chunkUYLS3LJWjs.formatPartitaIva; exports.getApiUrl = _chunkTULJCLZAjs.getApiUrl; exports.getAppUrl = _chunkTULJCLZAjs.getAppUrl; exports.getBootstrapper = _chunkLU7DJ4QFjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkUYLS3LJWjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkUYLS3LJWjs.getGlobalErrorHandler; exports.getIcon = _chunkUYLS3LJWjs.getIcon; exports.getIconByModule = _chunkUYLS3LJWjs.getIconByModule; exports.getIconByModuleName = _chunkUYLS3LJWjs.getIconByModuleName; exports.getInitials = _chunkUYLS3LJWjs.getInitials; exports.getLastApiMeta = _chunkUYLS3LJWjs.getLastApiMeta; exports.getLastApiTotal = _chunkUYLS3LJWjs.getLastApiTotal; exports.getLucideIcon = _chunkUYLS3LJWjs.getLucideIcon; exports.getLucideIconByModule = _chunkUYLS3LJWjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkUYLS3LJWjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkTULJCLZAjs.getPublicApiUrl; exports.getReferralConfig = _chunkTULJCLZAjs.getReferralConfig; exports.getRoleId = _chunkTULJCLZAjs.getRoleId; exports.getStripePublishableKey = _chunkTULJCLZAjs.getStripePublishableKey; exports.getTableComponents = _chunkUYLS3LJWjs.getTableComponents; exports.getTableOptions = _chunkUYLS3LJWjs.getTableOptions; exports.getTokenHandler = _chunkUYLS3LJWjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkUYLS3LJWjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkTULJCLZAjs.getTrackablePages; exports.getValueFromPath = _chunkUYLS3LJWjs.getValueFromPath; exports.getWaitlistConfig = _chunkTULJCLZAjs.getWaitlistConfig; exports.hasBootstrapper = _chunkLU7DJ4QFjs.hasBootstrapper; exports.isReferralEnabled = _chunkTULJCLZAjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkUYLS3LJWjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkTULJCLZAjs.isRolesConfigured; exports.rehydrate = _chunkUYLS3LJWjs.rehydrate; exports.rehydrateList = _chunkUYLS3LJWjs.rehydrateList; exports.resetBootstrapStore = _chunkLU7DJ4QFjs.resetBootstrapStore; exports.setBootstrapper = _chunkLU7DJ4QFjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkUYLS3LJWjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkUYLS3LJWjs.setGlobalErrorHandler; exports.showCustomToast = _chunkUYLS3LJWjs.showCustomToast; exports.showError = _chunkUYLS3LJWjs.showError; exports.showToast = _chunkUYLS3LJWjs.showToast; exports.tokenUsageModules = _chunkUYLS3LJWjs.tokenUsageModules; exports.translateData = _chunkLU7DJ4QFjs.translateData; exports.translateResponse = _chunkLU7DJ4QFjs.translateResponse; exports.tryBootstrap = _chunkLU7DJ4QFjs.tryBootstrap; exports.useComposedRefs = _chunkUYLS3LJWjs.useComposedRefs; exports.useIsMobile = _chunkUYLS3LJWjs.useIsMobile; exports.userObjectSchema = _chunkUYLS3LJWjs.userObjectSchema; exports.validateCodiceFiscale = _chunkUYLS3LJWjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkUYLS3LJWjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkUYLS3LJWjs.validatePartitaIva;
483
483
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  getWaitlistConfig,
19
19
  isReferralEnabled,
20
20
  isRolesConfigured
21
- } from "./chunk-DK5ZOPVF.mjs";
21
+ } from "./chunk-2D4MFVDV.mjs";
22
22
  import {
23
23
  AVAILABLE_OAUTH_SCOPES,
24
24
  AbstractApiData,
@@ -226,7 +226,7 @@ import {
226
226
  validateCodiceFiscale,
227
227
  validateItalianTaxCode,
228
228
  validatePartitaIva
229
- } from "./chunk-H37WRSBU.mjs";
229
+ } from "./chunk-HDZ2BL6D.mjs";
230
230
  import "./chunk-AUXK7QSA.mjs";
231
231
  import "./chunk-C7C7VY4F.mjs";
232
232
  import {
@@ -240,7 +240,7 @@ import {
240
240
  translateData,
241
241
  translateResponse,
242
242
  tryBootstrap
243
- } from "./chunk-RVASYIQG.mjs";
243
+ } from "./chunk-BMVA2IM5.mjs";
244
244
  import "./chunk-PAWJFY3S.mjs";
245
245
  export {
246
246
  ACTION_TYPES,
@@ -15,14 +15,14 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkPGA2VC3Sjs = require('../chunk-PGA2VC3S.js');
18
+ var _chunkUYLS3LJWjs = require('../chunk-UYLS3LJW.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
22
22
 
23
23
 
24
24
 
25
- var _chunkW42MYR3Yjs = require('../chunk-W42MYR3Y.js');
25
+ var _chunkLU7DJ4QFjs = require('../chunk-LU7DJ4QF.js');
26
26
 
27
27
 
28
28
  var _chunk7QVYU63Ejs = require('../chunk-7QVYU63E.js');
@@ -87,7 +87,7 @@ var ServerSession = class {
87
87
  if (!rawModules) return false;
88
88
  const modules = JSON.parse(_pako.ungzip.call(void 0, Buffer.from(rawModules, "base64"), { toText: true }));
89
89
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
90
- return _chunkPGA2VC3Sjs.checkPermissionsFromServer.call(void 0, {
90
+ return _chunkUYLS3LJWjs.checkPermissionsFromServer.call(void 0, {
91
91
  module: params.module,
92
92
  action: params.action,
93
93
  data: params.data,
@@ -110,7 +110,7 @@ function getServerApiUrl() {
110
110
  if (_optionalChain([_serverConfig, 'optionalAccess', _19 => _19.apiUrl])) {
111
111
  return _serverConfig.apiUrl;
112
112
  }
113
- const envUrl = _chunkW42MYR3Yjs.ENV.API_URL;
113
+ const envUrl = _chunkLU7DJ4QFjs.ENV.API_URL;
114
114
  if (!envUrl) {
115
115
  throw new Error(
116
116
  "API URL not configured. Use configureServerJsonApi() or set NEXT_PUBLIC_API_URL environment variable."
@@ -123,7 +123,7 @@ function getServerAppUrl() {
123
123
  if (_optionalChain([_serverConfig, 'optionalAccess', _20 => _20.appUrl])) {
124
124
  return _serverConfig.appUrl;
125
125
  }
126
- const envUrl = _chunkW42MYR3Yjs.ENV.APP_URL;
126
+ const envUrl = _chunkLU7DJ4QFjs.ENV.APP_URL;
127
127
  if (!envUrl) {
128
128
  throw new Error(
129
129
  "App URL not configured. Use configureServerJsonApi({ appUrl }) or set NEXT_PUBLIC_ADDRESS environment variable."
@@ -159,7 +159,7 @@ async function ServerJsonApiGet(params) {
159
159
  language: params.language,
160
160
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _23 => _23.additionalHeaders])
161
161
  });
162
- return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
162
+ return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
163
163
  classKey: params.classKey,
164
164
  apiResponse,
165
165
  companyId: params.companyId,
@@ -180,7 +180,7 @@ async function ServerJsonApiPost(params) {
180
180
  if (!body) {
181
181
  body = {};
182
182
  } else if (params.overridesJsonApiCreation !== true) {
183
- body = _chunkW42MYR3Yjs.JsonApiDataFactory.create(params.classKey, body);
183
+ body = _chunkLU7DJ4QFjs.JsonApiDataFactory.create(params.classKey, body);
184
184
  }
185
185
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
186
186
  method: "POST",
@@ -192,7 +192,7 @@ async function ServerJsonApiPost(params) {
192
192
  language: params.language,
193
193
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _24 => _24.additionalHeaders])
194
194
  });
195
- return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
195
+ return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
196
196
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
197
197
  apiResponse,
198
198
  companyId: params.companyId,
@@ -207,7 +207,7 @@ async function ServerJsonApiPut(params) {
207
207
  if (!body) {
208
208
  body = {};
209
209
  } else {
210
- body = _chunkW42MYR3Yjs.JsonApiDataFactory.create(params.classKey, body);
210
+ body = _chunkLU7DJ4QFjs.JsonApiDataFactory.create(params.classKey, body);
211
211
  }
212
212
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
213
213
  method: "PUT",
@@ -219,7 +219,7 @@ async function ServerJsonApiPut(params) {
219
219
  language: params.language,
220
220
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _25 => _25.additionalHeaders])
221
221
  });
222
- return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
222
+ return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
223
223
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
224
224
  apiResponse,
225
225
  companyId: params.companyId,
@@ -234,7 +234,7 @@ async function ServerJsonApiPatch(params) {
234
234
  if (!body) {
235
235
  body = {};
236
236
  } else if (params.overridesJsonApiCreation !== true) {
237
- body = _chunkW42MYR3Yjs.JsonApiDataFactory.create(params.classKey, body);
237
+ body = _chunkLU7DJ4QFjs.JsonApiDataFactory.create(params.classKey, body);
238
238
  }
239
239
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
240
240
  method: "PATCH",
@@ -246,7 +246,7 @@ async function ServerJsonApiPatch(params) {
246
246
  language: params.language,
247
247
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _26 => _26.additionalHeaders])
248
248
  });
249
- return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
249
+ return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
250
250
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
251
251
  apiResponse,
252
252
  companyId: params.companyId,
@@ -265,7 +265,7 @@ async function ServerJsonApiDelete(params) {
265
265
  language: params.language,
266
266
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _27 => _27.additionalHeaders])
267
267
  });
268
- return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
268
+ return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
269
269
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
270
270
  apiResponse,
271
271
  companyId: params.companyId,
@@ -297,5 +297,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
297
297
 
298
298
 
299
299
 
300
- exports.ServerAuthService = _chunkPGA2VC3Sjs.AuthService; exports.ServerCompanyService = _chunkPGA2VC3Sjs.CompanyService; exports.ServerContentService = _chunkPGA2VC3Sjs.ContentService; exports.ServerFeatureService = _chunkPGA2VC3Sjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkPGA2VC3Sjs.NotificationService; exports.ServerPushService = _chunkPGA2VC3Sjs.PushService; exports.ServerRoleService = _chunkPGA2VC3Sjs.RoleService; exports.ServerS3Service = _chunkPGA2VC3Sjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkPGA2VC3Sjs.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 = _chunkIOLU4ASDjs.serverRequest;
300
+ exports.ServerAuthService = _chunkUYLS3LJWjs.AuthService; exports.ServerCompanyService = _chunkUYLS3LJWjs.CompanyService; exports.ServerContentService = _chunkUYLS3LJWjs.ContentService; exports.ServerFeatureService = _chunkUYLS3LJWjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkUYLS3LJWjs.NotificationService; exports.ServerPushService = _chunkUYLS3LJWjs.PushService; exports.ServerRoleService = _chunkUYLS3LJWjs.RoleService; exports.ServerS3Service = _chunkUYLS3LJWjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkUYLS3LJWjs.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 = _chunkIOLU4ASDjs.serverRequest;
301
301
  //# sourceMappingURL=index.js.map
@@ -15,14 +15,14 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-H37WRSBU.mjs";
18
+ } from "../chunk-HDZ2BL6D.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
22
22
  ENV,
23
23
  JsonApiDataFactory,
24
24
  translateResponse
25
- } from "../chunk-RVASYIQG.mjs";
25
+ } from "../chunk-BMVA2IM5.mjs";
26
26
  import {
27
27
  __name
28
28
  } from "../chunk-PAWJFY3S.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "3.5.8",
3
+ "version": "3.5.10",
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",
@@ -272,23 +272,34 @@ export function EditorSheet<T extends FieldValues>({
272
272
  // warned on every native-button trigger).
273
273
  <SheetTrigger nativeButton={resolveTriggerIsNativeButton(trigger)} render={trigger as ReactElement} />
274
274
  ) : (
275
- <SheetTrigger>
276
- {isEdit ? (
277
- <Button
278
- render={<div />}
279
- nativeButton={false}
280
- size="sm"
281
- variant="ghost"
282
- className="text-muted-foreground"
283
- >
284
- <PencilIcon />
285
- </Button>
286
- ) : (
287
- <Button render={<div />} nativeButton={false} size="sm" variant="outline">
288
- {t("ui.buttons.create")}
289
- </Button>
290
- )}
291
- </SheetTrigger>
275
+ // The default trigger goes through `render` for the SAME reason the
276
+ // caller-supplied one above does. As CHILDREN, the Button rendered a
277
+ // second `role="button"` inside SheetTrigger's own button: two nodes
278
+ // with one accessible name, which a screen reader announces as a
279
+ // button inside a button and which makes
280
+ // `getByRole("button", { name })` ambiguous (e2e DRQ-01 failed strict
281
+ // mode on exactly this). `nativeButton={false}` because both variants
282
+ // render a <div>, matching the element the trigger actually emits.
283
+ <SheetTrigger
284
+ nativeButton={false}
285
+ render={
286
+ isEdit ? (
287
+ <Button
288
+ render={<div />}
289
+ nativeButton={false}
290
+ size="sm"
291
+ variant="ghost"
292
+ className="text-muted-foreground"
293
+ >
294
+ <PencilIcon />
295
+ </Button>
296
+ ) : (
297
+ <Button render={<div />} nativeButton={false} size="sm" variant="outline">
298
+ {t("ui.buttons.create")}
299
+ </Button>
300
+ )
301
+ }
302
+ />
292
303
  ))}
293
304
  <SheetContent side="end" className={sizeClasses[size]}>
294
305
  <SheetHeader className="border-b px-6 py-4">
@@ -12,10 +12,13 @@ export class DataClassRegistry {
12
12
  key: ApiRequestDataTypeInterface,
13
13
  classConstructor: { new (): ApiDataInterface },
14
14
  ): void {
15
- const classKey = key.name;
16
- if (!this._map.has(classKey)) {
17
- this._map.set(classKey, classConstructor);
18
- }
15
+ // Last registration wins. An earlier version skipped re-registration, which
16
+ // silently pinned the registry to the FIRST constructor seen by the process.
17
+ // In dev that made a long-lived `next dev` server keep rehydrating with the
18
+ // pre-edit class after any model change, so SSR produced a different tree
19
+ // from the freshly bundled client and React threw a hydration mismatch.
20
+ // Production is unaffected either way: bootstrap runs once per process.
21
+ this._map.set(key.name, classConstructor);
19
22
  }
20
23
 
21
24
  public static get(classKey: ApiRequestDataTypeInterface): {
@@ -58,6 +58,20 @@ describe("DataClassRegistry", () => {
58
58
  // Should not throw, just ignore duplicate
59
59
  expect(() => DataClassRegistry.get(module)).not.toThrow();
60
60
  });
61
+
62
+ // Re-registering the same key MUST replace the constructor. Keeping the first
63
+ // one pins a long-lived dev server to the pre-edit class, so SSR rehydrates
64
+ // with stale getters and React reports a hydration mismatch against the
65
+ // freshly bundled client.
66
+ it("should replace the constructor when the same key is registered again", () => {
67
+ class MockArticleV2 extends MockArticle {}
68
+ const module = createMockModule({ name: "articles" });
69
+
70
+ DataClassRegistry.registerObjectClass(module, MockArticle as any);
71
+ DataClassRegistry.registerObjectClass(module, MockArticleV2 as any);
72
+
73
+ expect(DataClassRegistry.get(module)).toBe(MockArticleV2);
74
+ });
61
75
  });
62
76
 
63
77
  describe("get", () => {
@@ -1,26 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkW42MYR3Yjs = require('./chunk-W42MYR3Y.js');
13
- require('./chunk-7QVYU63E.js');
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
- exports.JsonApiDelete = _chunkW42MYR3Yjs.JsonApiDelete; exports.JsonApiGet = _chunkW42MYR3Yjs.JsonApiGet; exports.JsonApiPatch = _chunkW42MYR3Yjs.JsonApiPatch; exports.JsonApiPost = _chunkW42MYR3Yjs.JsonApiPost; exports.JsonApiPut = _chunkW42MYR3Yjs.JsonApiPut; exports.buildUrl = _chunkW42MYR3Yjs.buildUrl; exports.configureJsonApi = _chunkW42MYR3Yjs.configureJsonApi; exports.getApiUrl = _chunkW42MYR3Yjs.getApiUrl; exports.getAppUrl = _chunkW42MYR3Yjs.getAppUrl; exports.getTrackablePages = _chunkW42MYR3Yjs.getTrackablePages;
26
- //# sourceMappingURL=JsonApiRequest-WWGSGV2I.js.map