@carlonicora/nextjs-jsonapi 6.29.1 → 6.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/{BlockNoteEditor-K4HWQLPJ.js → BlockNoteEditor-ICGGCW6N.js} +24 -24
  2. package/dist/{BlockNoteEditor-K4HWQLPJ.js.map → BlockNoteEditor-ICGGCW6N.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-TDX2RC7I.mjs → BlockNoteEditor-O4E67ECL.mjs} +4 -4
  4. package/dist/{BlockNoteViewer-76CKL6W5.mjs → BlockNoteViewer-BNZEXGVT.mjs} +2 -2
  5. package/dist/{BlockNoteViewer-B25WKYQP.js → BlockNoteViewer-YONLBNXW.js} +3 -3
  6. package/dist/{BlockNoteViewer-B25WKYQP.js.map → BlockNoteViewer-YONLBNXW.js.map} +1 -1
  7. package/dist/billing/index.js +465 -465
  8. package/dist/billing/index.mjs +3 -3
  9. package/dist/{chunk-77JC2UCF.js → chunk-5XP5G45B.js} +23 -10
  10. package/dist/chunk-5XP5G45B.js.map +1 -0
  11. package/dist/{chunk-OVSR72CZ.mjs → chunk-BT3VFB3I.mjs} +333 -299
  12. package/dist/chunk-BT3VFB3I.mjs.map +1 -0
  13. package/dist/{chunk-7MGXQIEP.mjs → chunk-FDKAVSZ6.mjs} +2 -2
  14. package/dist/{chunk-FJUKLVVX.mjs → chunk-HNK2O6YE.mjs} +23 -10
  15. package/dist/chunk-HNK2O6YE.mjs.map +1 -0
  16. package/dist/{chunk-M7YK5CCE.mjs → chunk-JL6XL5NK.mjs} +9 -2
  17. package/dist/chunk-JL6XL5NK.mjs.map +1 -0
  18. package/dist/{chunk-QI4SCGPB.js → chunk-M7FA63QE.js} +803 -769
  19. package/dist/chunk-M7FA63QE.js.map +1 -0
  20. package/dist/{chunk-F3EVYBMA.js → chunk-NQL2NDKH.js} +4 -4
  21. package/dist/{chunk-F3EVYBMA.js.map → chunk-NQL2NDKH.js.map} +1 -1
  22. package/dist/{chunk-ONU4WCDG.js → chunk-Q5SMFSE4.js} +11 -4
  23. package/dist/chunk-Q5SMFSE4.js.map +1 -0
  24. package/dist/client/index.js +4 -4
  25. package/dist/client/index.mjs +3 -3
  26. package/dist/components/forms/CommonEditorButtons.d.ts.map +1 -1
  27. package/dist/components/index.js +4 -4
  28. package/dist/components/index.mjs +3 -3
  29. package/dist/contexts/index.js +4 -4
  30. package/dist/contexts/index.mjs +3 -3
  31. package/dist/core/index.js +2 -2
  32. package/dist/core/index.mjs +1 -1
  33. package/dist/email-automations/index.js +105 -105
  34. package/dist/email-automations/index.mjs +3 -3
  35. package/dist/features/analytics/index.js +114 -114
  36. package/dist/features/analytics/index.mjs +3 -3
  37. package/dist/features/analytics/server.js +4 -4
  38. package/dist/features/analytics/server.mjs +2 -2
  39. package/dist/features/auth/components/GdprConsentSection.d.ts +2 -1
  40. package/dist/features/auth/components/GdprConsentSection.d.ts.map +1 -1
  41. package/dist/features/auth/components/forms/Login.d.ts.map +1 -1
  42. package/dist/features/auth/components/forms/Register.d.ts.map +1 -1
  43. package/dist/features/auth/data/auth.service.d.ts +8 -3
  44. package/dist/features/auth/data/auth.service.d.ts.map +1 -1
  45. package/dist/features/auth/data/pending-registration.d.ts +2 -0
  46. package/dist/features/auth/data/pending-registration.d.ts.map +1 -1
  47. package/dist/features/auth/data/pending-registration.interface.d.ts +1 -0
  48. package/dist/features/auth/data/pending-registration.interface.d.ts.map +1 -1
  49. package/dist/features/auth/hooks/useCompleteLogin.d.ts +9 -0
  50. package/dist/features/auth/hooks/useCompleteLogin.d.ts.map +1 -0
  51. package/dist/features/blog/index.js +129 -129
  52. package/dist/features/blog/index.mjs +3 -3
  53. package/dist/features/blog/server.js +7 -7
  54. package/dist/features/blog/server.mjs +1 -1
  55. package/dist/features/help/index.js +37 -37
  56. package/dist/features/help/index.mjs +3 -3
  57. package/dist/features/tokenusage/index.js +114 -114
  58. package/dist/features/tokenusage/index.mjs +3 -3
  59. package/dist/index.js +3 -3
  60. package/dist/index.mjs +2 -2
  61. package/dist/login/config.d.ts +3 -0
  62. package/dist/login/config.d.ts.map +1 -1
  63. package/dist/login/index.d.ts +1 -1
  64. package/dist/login/index.d.ts.map +1 -1
  65. package/dist/server/index.js +3 -3
  66. package/dist/server/index.mjs +2 -2
  67. package/messages/en.json +1 -0
  68. package/messages/it.json +1 -0
  69. package/package.json +1 -1
  70. package/src/components/forms/CommonEditorButtons.tsx +16 -2
  71. package/src/features/auth/components/GdprConsentSection.tsx +3 -1
  72. package/src/features/auth/components/forms/Login.tsx +4 -32
  73. package/src/features/auth/components/forms/Register.tsx +66 -36
  74. package/src/features/auth/data/__tests__/auth.oauth-completion.spec.ts +44 -0
  75. package/src/features/auth/data/__tests__/pending-registration.spec.ts +8 -0
  76. package/src/features/auth/data/auth.service.ts +21 -15
  77. package/src/features/auth/data/pending-registration.interface.ts +1 -0
  78. package/src/features/auth/data/pending-registration.ts +6 -0
  79. package/src/features/auth/hooks/__tests__/useCompleteLogin.spec.tsx +85 -0
  80. package/src/features/auth/hooks/useCompleteLogin.ts +47 -0
  81. package/src/login/__tests__/config.spec.ts +21 -0
  82. package/src/login/config.ts +8 -0
  83. package/src/login/index.ts +1 -0
  84. package/dist/chunk-77JC2UCF.js.map +0 -1
  85. package/dist/chunk-FJUKLVVX.mjs.map +0 -1
  86. package/dist/chunk-M7YK5CCE.mjs.map +0 -1
  87. package/dist/chunk-ONU4WCDG.js.map +0 -1
  88. package/dist/chunk-OVSR72CZ.mjs.map +0 -1
  89. package/dist/chunk-QI4SCGPB.js.map +0 -1
  90. /package/dist/{BlockNoteEditor-TDX2RC7I.mjs.map → BlockNoteEditor-O4E67ECL.mjs.map} +0 -0
  91. /package/dist/{BlockNoteViewer-76CKL6W5.mjs.map → BlockNoteViewer-BNZEXGVT.mjs.map} +0 -0
  92. /package/dist/{chunk-7MGXQIEP.mjs.map → chunk-FDKAVSZ6.mjs.map} +0 -0
@@ -39,10 +39,10 @@ import {
39
39
  seriesTheme,
40
40
  usePageUrlGenerator,
41
41
  useUsageFormatters
42
- } from "../../chunk-OVSR72CZ.mjs";
42
+ } from "../../chunk-BT3VFB3I.mjs";
43
43
  import "../../chunk-5T2AQMQ2.mjs";
44
44
  import "../../chunk-VOXD3ZLY.mjs";
45
- import "../../chunk-M7YK5CCE.mjs";
45
+ import "../../chunk-JL6XL5NK.mjs";
46
46
  import "../../chunk-PW42LRSL.mjs";
47
47
  import {
48
48
  AbstractService,
@@ -59,7 +59,7 @@ import {
59
59
  configureTokenUsage,
60
60
  getTokenUsageCurrency,
61
61
  tokenUsageModules
62
- } from "../../chunk-FJUKLVVX.mjs";
62
+ } from "../../chunk-HNK2O6YE.mjs";
63
63
  import "../../chunk-RW6XZGZG.mjs";
64
64
  import "../../chunk-OY65RYD3.mjs";
65
65
  import {
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkONU4WCDGjs = require('./chunk-ONU4WCDG.js');
23
+ var _chunkQ5SMFSE4js = require('./chunk-Q5SMFSE4.js');
24
24
 
25
25
 
26
26
 
@@ -338,7 +338,7 @@ var _chunkG4JR3SFVjs = require('./chunk-G4JR3SFV.js');
338
338
 
339
339
 
340
340
 
341
- var _chunk77JC2UCFjs = require('./chunk-77JC2UCF.js');
341
+ var _chunk5XP5G45Bjs = require('./chunk-5XP5G45B.js');
342
342
 
343
343
 
344
344
 
@@ -742,5 +742,5 @@ require('./chunk-7QVYU63E.js');
742
742
 
743
743
 
744
744
 
745
- exports.ACCOUNT_DELETION_CANCELLED_KEY = _chunk77JC2UCFjs.ACCOUNT_DELETION_CANCELLED_KEY; exports.ACTION_TYPES = _chunkONU4WCDGjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk77JC2UCFjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkZ6T2575Ajs.AbstractApiData; exports.AbstractService = _chunk77JC2UCFjs.AbstractService; exports.AccountDeletion = _chunk77JC2UCFjs.AccountDeletion; exports.AccountDeletionModule = _chunk77JC2UCFjs.AccountDeletionModule; exports.AccountDeletionService = _chunk77JC2UCFjs.AccountDeletionService; exports.Action = _chunk77JC2UCFjs.Action; exports.AiConnection = _chunk77JC2UCFjs.AiConnection; exports.AiConnectionFields = _chunk77JC2UCFjs.AiConnectionFields; exports.AiConnectionModule = _chunk77JC2UCFjs.AiConnectionModule; exports.AiConnectionService = _chunk77JC2UCFjs.AiConnectionService; exports.Assistant = _chunk77JC2UCFjs.Assistant; exports.AssistantAction = _chunk77JC2UCFjs.AssistantAction; exports.AssistantActionModule = _chunk77JC2UCFjs.AssistantActionModule; exports.AssistantActionService = _chunk77JC2UCFjs.AssistantActionService; exports.AssistantMessage = _chunk77JC2UCFjs.AssistantMessage; exports.AssistantMessageModule = _chunk77JC2UCFjs.AssistantMessageModule; exports.AssistantMessageService = _chunk77JC2UCFjs.AssistantMessageService; exports.AssistantModule = _chunk77JC2UCFjs.AssistantModule; exports.AssistantService = _chunk77JC2UCFjs.AssistantService; exports.AuditLog = _chunk77JC2UCFjs.AuditLog; exports.AuditLogModule = _chunk77JC2UCFjs.AuditLogModule; exports.AuditLogService = _chunk77JC2UCFjs.AuditLogService; exports.Auth = _chunk77JC2UCFjs.Auth; exports.AuthComponent = _chunk77JC2UCFjs.AuthComponent; exports.AuthModule = _chunk77JC2UCFjs.AuthModule; exports.AuthService = _chunk77JC2UCFjs.AuthService; exports.AuthorModule = _chunk77JC2UCFjs.AuthorModule; exports.BackupCodeVerify = _chunk77JC2UCFjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk77JC2UCFjs.BackupCodeVerifyModule; exports.Billing = _chunk77JC2UCFjs.Billing; exports.BillingModule = _chunk77JC2UCFjs.BillingModule; exports.BillingService = _chunk77JC2UCFjs.BillingService; exports.BlockNoteDiffUtil = _chunk77JC2UCFjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk77JC2UCFjs.BlockNoteWordDiffRendererUtil; exports.BlogCategory = _chunk77JC2UCFjs.BlogCategory; exports.BlogCategoryFields = _chunk77JC2UCFjs.BlogCategoryFields; exports.BlogCategoryModule = _chunk77JC2UCFjs.BlogCategoryModule; exports.BlogCategoryService = _chunk77JC2UCFjs.BlogCategoryService; exports.BlogCategoryTranslation = _chunk77JC2UCFjs.BlogCategoryTranslation; exports.BlogCategoryTranslationModule = _chunk77JC2UCFjs.BlogCategoryTranslationModule; exports.BlogCategoryTranslationService = _chunk77JC2UCFjs.BlogCategoryTranslationService; exports.BlogPost = _chunk77JC2UCFjs.BlogPost; exports.BlogPostFields = _chunk77JC2UCFjs.BlogPostFields; exports.BlogPostModule = _chunk77JC2UCFjs.BlogPostModule; exports.BlogPostService = _chunk77JC2UCFjs.BlogPostService; exports.BlogPostTranslation = _chunk77JC2UCFjs.BlogPostTranslation; exports.BlogPostTranslationModule = _chunk77JC2UCFjs.BlogPostTranslationModule; exports.BlogPostTranslationService = _chunk77JC2UCFjs.BlogPostTranslationService; exports.BlogSettings = _chunk77JC2UCFjs.BlogSettings; exports.BlogSettingsModule = _chunk77JC2UCFjs.BlogSettingsModule; exports.BlogSettingsService = _chunk77JC2UCFjs.BlogSettingsService; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkONU4WCDGjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CREDIT_WARNING_DISMISS_SEGMENT = _chunk77JC2UCFjs.CREDIT_WARNING_DISMISS_SEGMENT; exports.CURRENT_USER_STORAGE_KEY = _chunk3VNDFKT7js.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunk77JC2UCFjs.Chunk; exports.ChunkModule = _chunk77JC2UCFjs.ChunkModule; exports.ClientAbstractService = _chunk77JC2UCFjs.ClientAbstractService; exports.ClientHttpMethod = _chunk77JC2UCFjs.ClientHttpMethod; exports.Company = _chunk77JC2UCFjs.Company; exports.CompanyFields = _chunk77JC2UCFjs.CompanyFields; exports.CompanyModule = _chunk77JC2UCFjs.CompanyModule; exports.CompanyService = _chunk77JC2UCFjs.CompanyService; exports.Content = _chunk77JC2UCFjs.Content; exports.ContentFields = _chunk77JC2UCFjs.ContentFields; exports.ContentModule = _chunk77JC2UCFjs.ContentModule; exports.ContentService = _chunk77JC2UCFjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk77JC2UCFjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLNO2JLU3js.DataClassRegistry; exports.DataClassRegistry = _chunkLNO2JLU3js.DataClassRegistry; exports.DiscordConnectConfirmation = _chunk77JC2UCFjs.DiscordConnectConfirmation; exports.DiscordConnectConfirmationModule = _chunk77JC2UCFjs.DiscordConnectConfirmationModule; exports.DiscordConnectConfirmationService = _chunk77JC2UCFjs.DiscordConnectConfirmationService; exports.DiscordConnectIntent = _chunk77JC2UCFjs.DiscordConnectIntent; exports.DiscordConnectIntentModule = _chunk77JC2UCFjs.DiscordConnectIntentModule; exports.DiscordConnectIntentService = _chunk77JC2UCFjs.DiscordConnectIntentService; exports.DiscordConnection = _chunk77JC2UCFjs.DiscordConnection; exports.DiscordConnectionModule = _chunk77JC2UCFjs.DiscordConnectionModule; exports.DiscordConnectionService = _chunk77JC2UCFjs.DiscordConnectionService; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = _chunk77JC2UCFjs.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.EMAIL_BLAST_SEGMENTS = _chunk77JC2UCFjs.EMAIL_BLAST_SEGMENTS; exports.EMAIL_BLAST_UNSUBSCRIBE_TYPE = _chunk77JC2UCFjs.EMAIL_BLAST_UNSUBSCRIBE_TYPE; exports.ENV = _chunkLNO2JLU3js.ENV; exports.EmailAutomation = _chunk77JC2UCFjs.EmailAutomation; exports.EmailAutomationCandidate = _chunk77JC2UCFjs.EmailAutomationCandidate; exports.EmailAutomationCandidateModule = _chunk77JC2UCFjs.EmailAutomationCandidateModule; exports.EmailAutomationEnrollment = _chunk77JC2UCFjs.EmailAutomationEnrollment; exports.EmailAutomationEnrollmentFields = _chunk77JC2UCFjs.EmailAutomationEnrollmentFields; exports.EmailAutomationEnrollmentModule = _chunk77JC2UCFjs.EmailAutomationEnrollmentModule; exports.EmailAutomationEnrollmentService = _chunk77JC2UCFjs.EmailAutomationEnrollmentService; exports.EmailAutomationFields = _chunk77JC2UCFjs.EmailAutomationFields; exports.EmailAutomationModule = _chunk77JC2UCFjs.EmailAutomationModule; exports.EmailAutomationService = _chunk77JC2UCFjs.EmailAutomationService; exports.EmailAutomationStep = _chunk77JC2UCFjs.EmailAutomationStep; exports.EmailAutomationStepModule = _chunk77JC2UCFjs.EmailAutomationStepModule; exports.EmailAutomationStepService = _chunk77JC2UCFjs.EmailAutomationStepService; exports.EmailAutomationTrigger = _chunk77JC2UCFjs.EmailAutomationTrigger; exports.EmailAutomationTriggerModule = _chunk77JC2UCFjs.EmailAutomationTriggerModule; exports.EmailBlast = _chunk77JC2UCFjs.EmailBlast; exports.EmailBlastAudience = _chunk77JC2UCFjs.EmailBlastAudience; exports.EmailBlastAudienceModule = _chunk77JC2UCFjs.EmailBlastAudienceModule; exports.EmailBlastDelivery = _chunk77JC2UCFjs.EmailBlastDelivery; exports.EmailBlastDeliveryModule = _chunk77JC2UCFjs.EmailBlastDeliveryModule; exports.EmailBlastDeliveryService = _chunk77JC2UCFjs.EmailBlastDeliveryService; exports.EmailBlastFields = _chunk77JC2UCFjs.EmailBlastFields; exports.EmailBlastModule = _chunk77JC2UCFjs.EmailBlastModule; exports.EmailBlastService = _chunk77JC2UCFjs.EmailBlastService; exports.EndpointCreator = _chunkZ6T2575Ajs.EndpointCreator; exports.EntityAiStatus = _chunk77JC2UCFjs.EntityAiStatus; exports.Feature = _chunk77JC2UCFjs.Feature; exports.FeatureModule = _chunk77JC2UCFjs.FeatureModule; exports.FeatureService = _chunk77JC2UCFjs.FeatureService; exports.HandbookPage = _chunk77JC2UCFjs.HandbookPage; exports.HandbookPageFields = _chunk77JC2UCFjs.HandbookPageFields; exports.HandbookPageModule = _chunk77JC2UCFjs.HandbookPageModule; exports.HandbookPageService = _chunk77JC2UCFjs.HandbookPageService; exports.HandbookSection = _chunk77JC2UCFjs.HandbookSection; exports.HandbookSectionModule = _chunk77JC2UCFjs.HandbookSectionModule; exports.HandbookSectionService = _chunk77JC2UCFjs.HandbookSectionService; exports.HandbookThread = _chunk77JC2UCFjs.HandbookThread; exports.HandbookThreadMessage = _chunk77JC2UCFjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunk77JC2UCFjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunk77JC2UCFjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunk77JC2UCFjs.HandbookThreadModule; exports.HandbookThreadService = _chunk77JC2UCFjs.HandbookThreadService; exports.HowTo = _chunk77JC2UCFjs.HowTo; exports.HowToFields = _chunk77JC2UCFjs.HowToFields; exports.HowToModule = _chunk77JC2UCFjs.HowToModule; exports.HowToService = _chunk77JC2UCFjs.HowToService; exports.HttpMethod = _chunk77JC2UCFjs.HttpMethod; exports.InvoiceStatus = _chunk77JC2UCFjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLNO2JLU3js.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunk77JC2UCFjs.MOBILE_BREAKPOINT; exports.Module = _chunk77JC2UCFjs.Module; exports.ModuleModule = _chunk77JC2UCFjs.ModuleModule; exports.ModulePaths = _chunk77JC2UCFjs.ModulePaths; exports.ModulePathsModule = _chunk77JC2UCFjs.ModulePathsModule; exports.ModuleRegistrar = _chunk77JC2UCFjs.ModuleRegistrar; exports.ModuleRegistry = _chunkZ6T2575Ajs.ModuleRegistry; exports.Modules = _chunkZ6T2575Ajs.Modules; exports.Notification = _chunk77JC2UCFjs.Notification; exports.NotificationFields = _chunk77JC2UCFjs.NotificationFields; exports.NotificationModule = _chunk77JC2UCFjs.NotificationModule; exports.NotificationService = _chunk77JC2UCFjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk77JC2UCFjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk77JC2UCFjs.OAuthClient; exports.OAuthModule = _chunk77JC2UCFjs.OAuthModule; exports.OAuthService = _chunk77JC2UCFjs.OAuthService; exports.OfflineChangeSet = _chunk77JC2UCFjs.OfflineChangeSet; exports.Passkey = _chunk77JC2UCFjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk77JC2UCFjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk77JC2UCFjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk77JC2UCFjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk77JC2UCFjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk77JC2UCFjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk77JC2UCFjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk77JC2UCFjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk77JC2UCFjs.PasskeyRename; exports.PasskeyRenameModule = _chunk77JC2UCFjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk77JC2UCFjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk77JC2UCFjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk77JC2UCFjs.PaymentMethod; exports.PendingRegistration = _chunk77JC2UCFjs.PendingRegistration; exports.PendingRegistrationModule = _chunk77JC2UCFjs.PendingRegistrationModule; exports.PermissionMapping = _chunk77JC2UCFjs.PermissionMapping; exports.PermissionMappingModule = _chunk77JC2UCFjs.PermissionMappingModule; exports.Push = _chunk77JC2UCFjs.Push; exports.PushModule = _chunk77JC2UCFjs.PushModule; exports.PushService = _chunk77JC2UCFjs.PushService; exports.ROOT_SYNC_ENDPOINT = _chunkZ6T2575Ajs.ROOT_SYNC_ENDPOINT; exports.RbacMatrixModel = _chunk77JC2UCFjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk77JC2UCFjs.RbacMatrixModule; exports.RbacService = _chunkONU4WCDGjs.RbacService; exports.ReferralAdminReferral = _chunk77JC2UCFjs.ReferralAdminReferral; exports.ReferralAdminReferrer = _chunk77JC2UCFjs.ReferralAdminReferrer; exports.ReferralAdminService = _chunk77JC2UCFjs.ReferralAdminService; exports.ReferralAdminSummary = _chunk77JC2UCFjs.ReferralAdminSummary; exports.ReferralModule = _chunk77JC2UCFjs.ReferralModule; exports.ReferralService = _chunk77JC2UCFjs.ReferralService; exports.ReferralStats = _chunk77JC2UCFjs.ReferralStats; exports.ReferralStatsModule = _chunk77JC2UCFjs.ReferralStatsModule; exports.ReferralVisit = _chunk77JC2UCFjs.ReferralVisit; exports.RehydrationFactory = _chunkZ6T2575Ajs.RehydrationFactory; exports.Role = _chunk77JC2UCFjs.Role; exports.RoleFields = _chunk77JC2UCFjs.RoleFields; exports.RoleModule = _chunk77JC2UCFjs.RoleModule; exports.RoleService = _chunk77JC2UCFjs.RoleService; exports.RootSync = _chunkZ6T2575Ajs.RootSync; exports.S3 = _chunk77JC2UCFjs.S3; exports.S3Module = _chunk77JC2UCFjs.S3Module; exports.S3Service = _chunk77JC2UCFjs.S3Service; exports.SIGNUP_SOURCE_COOKIE = _chunkONU4WCDGjs.SIGNUP_SOURCE_COOKIE; exports.SIGNUP_SOURCE_COOKIE_MAX_AGE = _chunkONU4WCDGjs.SIGNUP_SOURCE_COOKIE_MAX_AGE; exports.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = _chunk77JC2UCFjs.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT; exports.STRIPE_COUPON_DETAIL_PAGE_URL = _chunk77JC2UCFjs.STRIPE_COUPON_DETAIL_PAGE_URL; exports.STRIPE_COUPON_REFRESH_SEGMENT = _chunk77JC2UCFjs.STRIPE_COUPON_REFRESH_SEGMENT; exports.StripeCoupon = _chunk77JC2UCFjs.StripeCoupon; exports.StripeCouponCode = _chunk77JC2UCFjs.StripeCouponCode; exports.StripeCouponCodeFields = _chunk77JC2UCFjs.StripeCouponCodeFields; exports.StripeCouponCodeModule = _chunk77JC2UCFjs.StripeCouponCodeModule; exports.StripeCouponCodeService = _chunk77JC2UCFjs.StripeCouponCodeService; exports.StripeCouponFields = _chunk77JC2UCFjs.StripeCouponFields; exports.StripeCouponModule = _chunk77JC2UCFjs.StripeCouponModule; exports.StripeCouponOffer = _chunk77JC2UCFjs.StripeCouponOffer; exports.StripeCouponOfferModule = _chunk77JC2UCFjs.StripeCouponOfferModule; exports.StripeCouponService = _chunk77JC2UCFjs.StripeCouponService; exports.StripeCustomer = _chunk77JC2UCFjs.StripeCustomer; exports.StripeCustomerModule = _chunk77JC2UCFjs.StripeCustomerModule; exports.StripeCustomerService = _chunk77JC2UCFjs.StripeCustomerService; exports.StripeInvoice = _chunk77JC2UCFjs.StripeInvoice; exports.StripeInvoiceModule = _chunk77JC2UCFjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk77JC2UCFjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk77JC2UCFjs.StripePaymentMethodModule; exports.StripePrice = _chunk77JC2UCFjs.StripePrice; exports.StripePriceFields = _chunk77JC2UCFjs.StripePriceFields; exports.StripePriceModule = _chunk77JC2UCFjs.StripePriceModule; exports.StripePriceService = _chunk77JC2UCFjs.StripePriceService; exports.StripeProduct = _chunk77JC2UCFjs.StripeProduct; exports.StripeProductFields = _chunk77JC2UCFjs.StripeProductFields; exports.StripeProductModule = _chunk77JC2UCFjs.StripeProductModule; exports.StripeProductService = _chunk77JC2UCFjs.StripeProductService; exports.StripePromotionCode = _chunk77JC2UCFjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk77JC2UCFjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk77JC2UCFjs.StripePromotionCodeService; exports.StripeSubscription = _chunk77JC2UCFjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk77JC2UCFjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk77JC2UCFjs.StripeSubscriptionService; exports.StripeUsage = _chunk77JC2UCFjs.StripeUsage; exports.StripeUsageModule = _chunk77JC2UCFjs.StripeUsageModule; exports.StripeUsageService = _chunk77JC2UCFjs.StripeUsageService; exports.SubscriptionStatus = _chunk77JC2UCFjs.SubscriptionStatus; exports.TableOptions = _chunk77JC2UCFjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunk77JC2UCFjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunk77JC2UCFjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunk77JC2UCFjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunk77JC2UCFjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk77JC2UCFjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk77JC2UCFjs.TotpSetup; exports.TotpSetupModule = _chunk77JC2UCFjs.TotpSetupModule; exports.TotpVerify = _chunk77JC2UCFjs.TotpVerify; exports.TotpVerifyLogin = _chunk77JC2UCFjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk77JC2UCFjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk77JC2UCFjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk77JC2UCFjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk77JC2UCFjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk77JC2UCFjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk77JC2UCFjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk77JC2UCFjs.TwoFactorService; exports.TwoFactorStatus = _chunk77JC2UCFjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk77JC2UCFjs.TwoFactorStatusModule; exports.User = _chunk77JC2UCFjs.User; exports.UserFields = _chunk77JC2UCFjs.UserFields; exports.UserModule = _chunk77JC2UCFjs.UserModule; exports.UserService = _chunk77JC2UCFjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunk77JC2UCFjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunk77JC2UCFjs.Waitlist; exports.WaitlistFields = _chunk77JC2UCFjs.WaitlistFields; exports.WaitlistModule = _chunk77JC2UCFjs.WaitlistModule; exports.WaitlistService = _chunk77JC2UCFjs.WaitlistService; exports.WaitlistStats = _chunk77JC2UCFjs.WaitlistStats; exports.WaitlistStatsModule = _chunk77JC2UCFjs.WaitlistStatsModule; exports.analyticsModules = _chunk77JC2UCFjs.analyticsModules; exports.captureSignupSource = _chunkONU4WCDGjs.captureSignupSource; exports.checkPermissions = _chunk77JC2UCFjs.checkPermissions; exports.checkPermissionsFromServer = _chunk77JC2UCFjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunk77JC2UCFjs.clearLastApiMeta; exports.clearLastApiTotal = _chunk77JC2UCFjs.clearLastApiTotal; exports.cn = _chunk77JC2UCFjs.cn; exports.composeRefs = _chunk77JC2UCFjs.composeRefs; exports.configureAuth = _chunk77JC2UCFjs.configureAuth; exports.configureI18n = _chunkNP3AFULUjs.configureI18n; exports.configureJsonApi = _chunkONU4WCDGjs.configureJsonApi; exports.configureLogin = _chunkONU4WCDGjs.configureLogin; exports.configureReferral = _chunkONU4WCDGjs.configureReferral; exports.configureRoles = _chunkG4JR3SFVjs.configureRoles; exports.configureTokenUsage = _chunk77JC2UCFjs.configureTokenUsage; exports.configureWaitlist = _chunkONU4WCDGjs.configureWaitlist; exports.consumeAccountDeletionCancelled = _chunk77JC2UCFjs.consumeAccountDeletionCancelled; exports.couponPlacesLeft = _chunk77JC2UCFjs.couponPlacesLeft; exports.couponPlacesTotal = _chunk77JC2UCFjs.couponPlacesTotal; exports.createJsonApiInclusion = _chunk77JC2UCFjs.createJsonApiInclusion; exports.dateFormatLocale = _chunkHROKKUBQjs.dateFormatLocale; exports.dismissToast = _chunk77JC2UCFjs.dismissToast; exports.entityObjectSchema = _chunk77JC2UCFjs.entityObjectSchema; exports.exists = _chunk77JC2UCFjs.exists; exports.formatCodiceFiscale = _chunk77JC2UCFjs.formatCodiceFiscale; exports.formatCouponDiscount = _chunk77JC2UCFjs.formatCouponDiscount; exports.formatCurrency = _chunk77JC2UCFjs.formatCurrency; exports.formatDate = _chunkHROKKUBQjs.formatDate; exports.formatDateStyle = _chunkHROKKUBQjs.formatDateStyle; exports.formatFixed = _chunk77JC2UCFjs.formatFixed; exports.formatInterval = _chunk77JC2UCFjs.formatInterval; exports.formatLocalDate = _chunkHROKKUBQjs.formatLocalDate; exports.formatPartitaIva = _chunk77JC2UCFjs.formatPartitaIva; exports.formatRelativeDate = _chunkHROKKUBQjs.formatRelativeDate; exports.getApiUrl = _chunkONU4WCDGjs.getApiUrl; exports.getAppUrl = _chunkONU4WCDGjs.getAppUrl; exports.getBootstrapper = _chunkLNO2JLU3js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk77JC2UCFjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk77JC2UCFjs.getGlobalErrorHandler; exports.getIcon = _chunk77JC2UCFjs.getIcon; exports.getIconByModule = _chunk77JC2UCFjs.getIconByModule; exports.getIconByModuleName = _chunk77JC2UCFjs.getIconByModuleName; exports.getInitials = _chunk77JC2UCFjs.getInitials; exports.getLastApiMeta = _chunk77JC2UCFjs.getLastApiMeta; exports.getLastApiTotal = _chunk77JC2UCFjs.getLastApiTotal; exports.getLucideIcon = _chunk77JC2UCFjs.getLucideIcon; exports.getLucideIconByModule = _chunk77JC2UCFjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk77JC2UCFjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkONU4WCDGjs.getPublicApiUrl; exports.getReferralConfig = _chunkONU4WCDGjs.getReferralConfig; exports.getRoleId = _chunkG4JR3SFVjs.getRoleId; exports.getSignupSource = _chunkONU4WCDGjs.getSignupSource; exports.getStripePublishableKey = _chunkONU4WCDGjs.getStripePublishableKey; exports.getTableComponents = _chunk77JC2UCFjs.getTableComponents; exports.getTableOptions = _chunk77JC2UCFjs.getTableOptions; exports.getTokenHandler = _chunk77JC2UCFjs.getTokenHandler; exports.getTokenUsageCurrency = _chunk77JC2UCFjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkONU4WCDGjs.getTrackablePages; exports.getValueFromPath = _chunk77JC2UCFjs.getValueFromPath; exports.getWaitlistConfig = _chunkONU4WCDGjs.getWaitlistConfig; exports.handbookPageContent = _chunk77JC2UCFjs.handbookPageContent; exports.handbookPageSummary = _chunk77JC2UCFjs.handbookPageSummary; exports.handbookPageTitle = _chunk77JC2UCFjs.handbookPageTitle; exports.handbookSectionSummary = _chunk77JC2UCFjs.handbookSectionSummary; exports.handbookSectionTitle = _chunk77JC2UCFjs.handbookSectionTitle; exports.hasBootstrapper = _chunkLNO2JLU3js.hasBootstrapper; exports.isCreditWarningActive = _chunk77JC2UCFjs.isCreditWarningActive; exports.isDiscordAuthEnabled = _chunkONU4WCDGjs.isDiscordAuthEnabled; exports.isReferralEnabled = _chunkONU4WCDGjs.isReferralEnabled; exports.isRemoteImageSrc = _chunk77JC2UCFjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkG4JR3SFVjs.isRolesConfigured; exports.markAccountDeletionCancelled = _chunk77JC2UCFjs.markAccountDeletionCancelled; exports.mergeMessages = _chunk77JC2UCFjs.mergeMessages; exports.offlineModules = _chunk77JC2UCFjs.offlineModules; exports.readSignupSourceFromLocation = _chunkONU4WCDGjs.readSignupSourceFromLocation; exports.referralAdminModules = _chunk77JC2UCFjs.referralAdminModules; exports.rehydrate = _chunk77JC2UCFjs.rehydrate; exports.rehydrateList = _chunk77JC2UCFjs.rehydrateList; exports.resetBootstrapStore = _chunkLNO2JLU3js.resetBootstrapStore; exports.resolveChangePlanTarget = _chunk77JC2UCFjs.resolveChangePlanTarget; exports.resolveDateLocale = _chunkHROKKUBQjs.resolveDateLocale; exports.setBootstrapper = _chunkLNO2JLU3js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk77JC2UCFjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk77JC2UCFjs.setGlobalErrorHandler; exports.showCustomToast = _chunk77JC2UCFjs.showCustomToast; exports.showError = _chunk77JC2UCFjs.showError; exports.showToast = _chunk77JC2UCFjs.showToast; exports.toPromotionCodeResult = _chunk77JC2UCFjs.toPromotionCodeResult; exports.tokenUsageModules = _chunk77JC2UCFjs.tokenUsageModules; exports.translateData = _chunkLNO2JLU3js.translateData; exports.translateResponse = _chunkLNO2JLU3js.translateResponse; exports.tryBootstrap = _chunkLNO2JLU3js.tryBootstrap; exports.useComposedRefs = _chunk77JC2UCFjs.useComposedRefs; exports.useIsMobile = _chunk77JC2UCFjs.useIsMobile; exports.userObjectSchema = _chunk77JC2UCFjs.userObjectSchema; exports.usesTwelveHourClock = _chunkHROKKUBQjs.usesTwelveHourClock; exports.validateCodiceFiscale = _chunk77JC2UCFjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunk77JC2UCFjs.validateItalianTaxCode; exports.validatePartitaIva = _chunk77JC2UCFjs.validatePartitaIva;
745
+ exports.ACCOUNT_DELETION_CANCELLED_KEY = _chunk5XP5G45Bjs.ACCOUNT_DELETION_CANCELLED_KEY; exports.ACTION_TYPES = _chunkQ5SMFSE4js.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk5XP5G45Bjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkZ6T2575Ajs.AbstractApiData; exports.AbstractService = _chunk5XP5G45Bjs.AbstractService; exports.AccountDeletion = _chunk5XP5G45Bjs.AccountDeletion; exports.AccountDeletionModule = _chunk5XP5G45Bjs.AccountDeletionModule; exports.AccountDeletionService = _chunk5XP5G45Bjs.AccountDeletionService; exports.Action = _chunk5XP5G45Bjs.Action; exports.AiConnection = _chunk5XP5G45Bjs.AiConnection; exports.AiConnectionFields = _chunk5XP5G45Bjs.AiConnectionFields; exports.AiConnectionModule = _chunk5XP5G45Bjs.AiConnectionModule; exports.AiConnectionService = _chunk5XP5G45Bjs.AiConnectionService; exports.Assistant = _chunk5XP5G45Bjs.Assistant; exports.AssistantAction = _chunk5XP5G45Bjs.AssistantAction; exports.AssistantActionModule = _chunk5XP5G45Bjs.AssistantActionModule; exports.AssistantActionService = _chunk5XP5G45Bjs.AssistantActionService; exports.AssistantMessage = _chunk5XP5G45Bjs.AssistantMessage; exports.AssistantMessageModule = _chunk5XP5G45Bjs.AssistantMessageModule; exports.AssistantMessageService = _chunk5XP5G45Bjs.AssistantMessageService; exports.AssistantModule = _chunk5XP5G45Bjs.AssistantModule; exports.AssistantService = _chunk5XP5G45Bjs.AssistantService; exports.AuditLog = _chunk5XP5G45Bjs.AuditLog; exports.AuditLogModule = _chunk5XP5G45Bjs.AuditLogModule; exports.AuditLogService = _chunk5XP5G45Bjs.AuditLogService; exports.Auth = _chunk5XP5G45Bjs.Auth; exports.AuthComponent = _chunk5XP5G45Bjs.AuthComponent; exports.AuthModule = _chunk5XP5G45Bjs.AuthModule; exports.AuthService = _chunk5XP5G45Bjs.AuthService; exports.AuthorModule = _chunk5XP5G45Bjs.AuthorModule; exports.BackupCodeVerify = _chunk5XP5G45Bjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk5XP5G45Bjs.BackupCodeVerifyModule; exports.Billing = _chunk5XP5G45Bjs.Billing; exports.BillingModule = _chunk5XP5G45Bjs.BillingModule; exports.BillingService = _chunk5XP5G45Bjs.BillingService; exports.BlockNoteDiffUtil = _chunk5XP5G45Bjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk5XP5G45Bjs.BlockNoteWordDiffRendererUtil; exports.BlogCategory = _chunk5XP5G45Bjs.BlogCategory; exports.BlogCategoryFields = _chunk5XP5G45Bjs.BlogCategoryFields; exports.BlogCategoryModule = _chunk5XP5G45Bjs.BlogCategoryModule; exports.BlogCategoryService = _chunk5XP5G45Bjs.BlogCategoryService; exports.BlogCategoryTranslation = _chunk5XP5G45Bjs.BlogCategoryTranslation; exports.BlogCategoryTranslationModule = _chunk5XP5G45Bjs.BlogCategoryTranslationModule; exports.BlogCategoryTranslationService = _chunk5XP5G45Bjs.BlogCategoryTranslationService; exports.BlogPost = _chunk5XP5G45Bjs.BlogPost; exports.BlogPostFields = _chunk5XP5G45Bjs.BlogPostFields; exports.BlogPostModule = _chunk5XP5G45Bjs.BlogPostModule; exports.BlogPostService = _chunk5XP5G45Bjs.BlogPostService; exports.BlogPostTranslation = _chunk5XP5G45Bjs.BlogPostTranslation; exports.BlogPostTranslationModule = _chunk5XP5G45Bjs.BlogPostTranslationModule; exports.BlogPostTranslationService = _chunk5XP5G45Bjs.BlogPostTranslationService; exports.BlogSettings = _chunk5XP5G45Bjs.BlogSettings; exports.BlogSettingsModule = _chunk5XP5G45Bjs.BlogSettingsModule; exports.BlogSettingsService = _chunk5XP5G45Bjs.BlogSettingsService; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkQ5SMFSE4js.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CREDIT_WARNING_DISMISS_SEGMENT = _chunk5XP5G45Bjs.CREDIT_WARNING_DISMISS_SEGMENT; exports.CURRENT_USER_STORAGE_KEY = _chunk3VNDFKT7js.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunk5XP5G45Bjs.Chunk; exports.ChunkModule = _chunk5XP5G45Bjs.ChunkModule; exports.ClientAbstractService = _chunk5XP5G45Bjs.ClientAbstractService; exports.ClientHttpMethod = _chunk5XP5G45Bjs.ClientHttpMethod; exports.Company = _chunk5XP5G45Bjs.Company; exports.CompanyFields = _chunk5XP5G45Bjs.CompanyFields; exports.CompanyModule = _chunk5XP5G45Bjs.CompanyModule; exports.CompanyService = _chunk5XP5G45Bjs.CompanyService; exports.Content = _chunk5XP5G45Bjs.Content; exports.ContentFields = _chunk5XP5G45Bjs.ContentFields; exports.ContentModule = _chunk5XP5G45Bjs.ContentModule; exports.ContentService = _chunk5XP5G45Bjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk5XP5G45Bjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLNO2JLU3js.DataClassRegistry; exports.DataClassRegistry = _chunkLNO2JLU3js.DataClassRegistry; exports.DiscordConnectConfirmation = _chunk5XP5G45Bjs.DiscordConnectConfirmation; exports.DiscordConnectConfirmationModule = _chunk5XP5G45Bjs.DiscordConnectConfirmationModule; exports.DiscordConnectConfirmationService = _chunk5XP5G45Bjs.DiscordConnectConfirmationService; exports.DiscordConnectIntent = _chunk5XP5G45Bjs.DiscordConnectIntent; exports.DiscordConnectIntentModule = _chunk5XP5G45Bjs.DiscordConnectIntentModule; exports.DiscordConnectIntentService = _chunk5XP5G45Bjs.DiscordConnectIntentService; exports.DiscordConnection = _chunk5XP5G45Bjs.DiscordConnection; exports.DiscordConnectionModule = _chunk5XP5G45Bjs.DiscordConnectionModule; exports.DiscordConnectionService = _chunk5XP5G45Bjs.DiscordConnectionService; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = _chunk5XP5G45Bjs.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.EMAIL_BLAST_SEGMENTS = _chunk5XP5G45Bjs.EMAIL_BLAST_SEGMENTS; exports.EMAIL_BLAST_UNSUBSCRIBE_TYPE = _chunk5XP5G45Bjs.EMAIL_BLAST_UNSUBSCRIBE_TYPE; exports.ENV = _chunkLNO2JLU3js.ENV; exports.EmailAutomation = _chunk5XP5G45Bjs.EmailAutomation; exports.EmailAutomationCandidate = _chunk5XP5G45Bjs.EmailAutomationCandidate; exports.EmailAutomationCandidateModule = _chunk5XP5G45Bjs.EmailAutomationCandidateModule; exports.EmailAutomationEnrollment = _chunk5XP5G45Bjs.EmailAutomationEnrollment; exports.EmailAutomationEnrollmentFields = _chunk5XP5G45Bjs.EmailAutomationEnrollmentFields; exports.EmailAutomationEnrollmentModule = _chunk5XP5G45Bjs.EmailAutomationEnrollmentModule; exports.EmailAutomationEnrollmentService = _chunk5XP5G45Bjs.EmailAutomationEnrollmentService; exports.EmailAutomationFields = _chunk5XP5G45Bjs.EmailAutomationFields; exports.EmailAutomationModule = _chunk5XP5G45Bjs.EmailAutomationModule; exports.EmailAutomationService = _chunk5XP5G45Bjs.EmailAutomationService; exports.EmailAutomationStep = _chunk5XP5G45Bjs.EmailAutomationStep; exports.EmailAutomationStepModule = _chunk5XP5G45Bjs.EmailAutomationStepModule; exports.EmailAutomationStepService = _chunk5XP5G45Bjs.EmailAutomationStepService; exports.EmailAutomationTrigger = _chunk5XP5G45Bjs.EmailAutomationTrigger; exports.EmailAutomationTriggerModule = _chunk5XP5G45Bjs.EmailAutomationTriggerModule; exports.EmailBlast = _chunk5XP5G45Bjs.EmailBlast; exports.EmailBlastAudience = _chunk5XP5G45Bjs.EmailBlastAudience; exports.EmailBlastAudienceModule = _chunk5XP5G45Bjs.EmailBlastAudienceModule; exports.EmailBlastDelivery = _chunk5XP5G45Bjs.EmailBlastDelivery; exports.EmailBlastDeliveryModule = _chunk5XP5G45Bjs.EmailBlastDeliveryModule; exports.EmailBlastDeliveryService = _chunk5XP5G45Bjs.EmailBlastDeliveryService; exports.EmailBlastFields = _chunk5XP5G45Bjs.EmailBlastFields; exports.EmailBlastModule = _chunk5XP5G45Bjs.EmailBlastModule; exports.EmailBlastService = _chunk5XP5G45Bjs.EmailBlastService; exports.EndpointCreator = _chunkZ6T2575Ajs.EndpointCreator; exports.EntityAiStatus = _chunk5XP5G45Bjs.EntityAiStatus; exports.Feature = _chunk5XP5G45Bjs.Feature; exports.FeatureModule = _chunk5XP5G45Bjs.FeatureModule; exports.FeatureService = _chunk5XP5G45Bjs.FeatureService; exports.HandbookPage = _chunk5XP5G45Bjs.HandbookPage; exports.HandbookPageFields = _chunk5XP5G45Bjs.HandbookPageFields; exports.HandbookPageModule = _chunk5XP5G45Bjs.HandbookPageModule; exports.HandbookPageService = _chunk5XP5G45Bjs.HandbookPageService; exports.HandbookSection = _chunk5XP5G45Bjs.HandbookSection; exports.HandbookSectionModule = _chunk5XP5G45Bjs.HandbookSectionModule; exports.HandbookSectionService = _chunk5XP5G45Bjs.HandbookSectionService; exports.HandbookThread = _chunk5XP5G45Bjs.HandbookThread; exports.HandbookThreadMessage = _chunk5XP5G45Bjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunk5XP5G45Bjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunk5XP5G45Bjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunk5XP5G45Bjs.HandbookThreadModule; exports.HandbookThreadService = _chunk5XP5G45Bjs.HandbookThreadService; exports.HowTo = _chunk5XP5G45Bjs.HowTo; exports.HowToFields = _chunk5XP5G45Bjs.HowToFields; exports.HowToModule = _chunk5XP5G45Bjs.HowToModule; exports.HowToService = _chunk5XP5G45Bjs.HowToService; exports.HttpMethod = _chunk5XP5G45Bjs.HttpMethod; exports.InvoiceStatus = _chunk5XP5G45Bjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLNO2JLU3js.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunk5XP5G45Bjs.MOBILE_BREAKPOINT; exports.Module = _chunk5XP5G45Bjs.Module; exports.ModuleModule = _chunk5XP5G45Bjs.ModuleModule; exports.ModulePaths = _chunk5XP5G45Bjs.ModulePaths; exports.ModulePathsModule = _chunk5XP5G45Bjs.ModulePathsModule; exports.ModuleRegistrar = _chunk5XP5G45Bjs.ModuleRegistrar; exports.ModuleRegistry = _chunkZ6T2575Ajs.ModuleRegistry; exports.Modules = _chunkZ6T2575Ajs.Modules; exports.Notification = _chunk5XP5G45Bjs.Notification; exports.NotificationFields = _chunk5XP5G45Bjs.NotificationFields; exports.NotificationModule = _chunk5XP5G45Bjs.NotificationModule; exports.NotificationService = _chunk5XP5G45Bjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk5XP5G45Bjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk5XP5G45Bjs.OAuthClient; exports.OAuthModule = _chunk5XP5G45Bjs.OAuthModule; exports.OAuthService = _chunk5XP5G45Bjs.OAuthService; exports.OfflineChangeSet = _chunk5XP5G45Bjs.OfflineChangeSet; exports.Passkey = _chunk5XP5G45Bjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk5XP5G45Bjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk5XP5G45Bjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk5XP5G45Bjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk5XP5G45Bjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk5XP5G45Bjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk5XP5G45Bjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk5XP5G45Bjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk5XP5G45Bjs.PasskeyRename; exports.PasskeyRenameModule = _chunk5XP5G45Bjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk5XP5G45Bjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk5XP5G45Bjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk5XP5G45Bjs.PaymentMethod; exports.PendingRegistration = _chunk5XP5G45Bjs.PendingRegistration; exports.PendingRegistrationModule = _chunk5XP5G45Bjs.PendingRegistrationModule; exports.PermissionMapping = _chunk5XP5G45Bjs.PermissionMapping; exports.PermissionMappingModule = _chunk5XP5G45Bjs.PermissionMappingModule; exports.Push = _chunk5XP5G45Bjs.Push; exports.PushModule = _chunk5XP5G45Bjs.PushModule; exports.PushService = _chunk5XP5G45Bjs.PushService; exports.ROOT_SYNC_ENDPOINT = _chunkZ6T2575Ajs.ROOT_SYNC_ENDPOINT; exports.RbacMatrixModel = _chunk5XP5G45Bjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk5XP5G45Bjs.RbacMatrixModule; exports.RbacService = _chunkQ5SMFSE4js.RbacService; exports.ReferralAdminReferral = _chunk5XP5G45Bjs.ReferralAdminReferral; exports.ReferralAdminReferrer = _chunk5XP5G45Bjs.ReferralAdminReferrer; exports.ReferralAdminService = _chunk5XP5G45Bjs.ReferralAdminService; exports.ReferralAdminSummary = _chunk5XP5G45Bjs.ReferralAdminSummary; exports.ReferralModule = _chunk5XP5G45Bjs.ReferralModule; exports.ReferralService = _chunk5XP5G45Bjs.ReferralService; exports.ReferralStats = _chunk5XP5G45Bjs.ReferralStats; exports.ReferralStatsModule = _chunk5XP5G45Bjs.ReferralStatsModule; exports.ReferralVisit = _chunk5XP5G45Bjs.ReferralVisit; exports.RehydrationFactory = _chunkZ6T2575Ajs.RehydrationFactory; exports.Role = _chunk5XP5G45Bjs.Role; exports.RoleFields = _chunk5XP5G45Bjs.RoleFields; exports.RoleModule = _chunk5XP5G45Bjs.RoleModule; exports.RoleService = _chunk5XP5G45Bjs.RoleService; exports.RootSync = _chunkZ6T2575Ajs.RootSync; exports.S3 = _chunk5XP5G45Bjs.S3; exports.S3Module = _chunk5XP5G45Bjs.S3Module; exports.S3Service = _chunk5XP5G45Bjs.S3Service; exports.SIGNUP_SOURCE_COOKIE = _chunkQ5SMFSE4js.SIGNUP_SOURCE_COOKIE; exports.SIGNUP_SOURCE_COOKIE_MAX_AGE = _chunkQ5SMFSE4js.SIGNUP_SOURCE_COOKIE_MAX_AGE; exports.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = _chunk5XP5G45Bjs.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT; exports.STRIPE_COUPON_DETAIL_PAGE_URL = _chunk5XP5G45Bjs.STRIPE_COUPON_DETAIL_PAGE_URL; exports.STRIPE_COUPON_REFRESH_SEGMENT = _chunk5XP5G45Bjs.STRIPE_COUPON_REFRESH_SEGMENT; exports.StripeCoupon = _chunk5XP5G45Bjs.StripeCoupon; exports.StripeCouponCode = _chunk5XP5G45Bjs.StripeCouponCode; exports.StripeCouponCodeFields = _chunk5XP5G45Bjs.StripeCouponCodeFields; exports.StripeCouponCodeModule = _chunk5XP5G45Bjs.StripeCouponCodeModule; exports.StripeCouponCodeService = _chunk5XP5G45Bjs.StripeCouponCodeService; exports.StripeCouponFields = _chunk5XP5G45Bjs.StripeCouponFields; exports.StripeCouponModule = _chunk5XP5G45Bjs.StripeCouponModule; exports.StripeCouponOffer = _chunk5XP5G45Bjs.StripeCouponOffer; exports.StripeCouponOfferModule = _chunk5XP5G45Bjs.StripeCouponOfferModule; exports.StripeCouponService = _chunk5XP5G45Bjs.StripeCouponService; exports.StripeCustomer = _chunk5XP5G45Bjs.StripeCustomer; exports.StripeCustomerModule = _chunk5XP5G45Bjs.StripeCustomerModule; exports.StripeCustomerService = _chunk5XP5G45Bjs.StripeCustomerService; exports.StripeInvoice = _chunk5XP5G45Bjs.StripeInvoice; exports.StripeInvoiceModule = _chunk5XP5G45Bjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk5XP5G45Bjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk5XP5G45Bjs.StripePaymentMethodModule; exports.StripePrice = _chunk5XP5G45Bjs.StripePrice; exports.StripePriceFields = _chunk5XP5G45Bjs.StripePriceFields; exports.StripePriceModule = _chunk5XP5G45Bjs.StripePriceModule; exports.StripePriceService = _chunk5XP5G45Bjs.StripePriceService; exports.StripeProduct = _chunk5XP5G45Bjs.StripeProduct; exports.StripeProductFields = _chunk5XP5G45Bjs.StripeProductFields; exports.StripeProductModule = _chunk5XP5G45Bjs.StripeProductModule; exports.StripeProductService = _chunk5XP5G45Bjs.StripeProductService; exports.StripePromotionCode = _chunk5XP5G45Bjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk5XP5G45Bjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk5XP5G45Bjs.StripePromotionCodeService; exports.StripeSubscription = _chunk5XP5G45Bjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk5XP5G45Bjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk5XP5G45Bjs.StripeSubscriptionService; exports.StripeUsage = _chunk5XP5G45Bjs.StripeUsage; exports.StripeUsageModule = _chunk5XP5G45Bjs.StripeUsageModule; exports.StripeUsageService = _chunk5XP5G45Bjs.StripeUsageService; exports.SubscriptionStatus = _chunk5XP5G45Bjs.SubscriptionStatus; exports.TableOptions = _chunk5XP5G45Bjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunk5XP5G45Bjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunk5XP5G45Bjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunk5XP5G45Bjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunk5XP5G45Bjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk5XP5G45Bjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk5XP5G45Bjs.TotpSetup; exports.TotpSetupModule = _chunk5XP5G45Bjs.TotpSetupModule; exports.TotpVerify = _chunk5XP5G45Bjs.TotpVerify; exports.TotpVerifyLogin = _chunk5XP5G45Bjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk5XP5G45Bjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk5XP5G45Bjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk5XP5G45Bjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk5XP5G45Bjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk5XP5G45Bjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk5XP5G45Bjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk5XP5G45Bjs.TwoFactorService; exports.TwoFactorStatus = _chunk5XP5G45Bjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk5XP5G45Bjs.TwoFactorStatusModule; exports.User = _chunk5XP5G45Bjs.User; exports.UserFields = _chunk5XP5G45Bjs.UserFields; exports.UserModule = _chunk5XP5G45Bjs.UserModule; exports.UserService = _chunk5XP5G45Bjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunk5XP5G45Bjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunk5XP5G45Bjs.Waitlist; exports.WaitlistFields = _chunk5XP5G45Bjs.WaitlistFields; exports.WaitlistModule = _chunk5XP5G45Bjs.WaitlistModule; exports.WaitlistService = _chunk5XP5G45Bjs.WaitlistService; exports.WaitlistStats = _chunk5XP5G45Bjs.WaitlistStats; exports.WaitlistStatsModule = _chunk5XP5G45Bjs.WaitlistStatsModule; exports.analyticsModules = _chunk5XP5G45Bjs.analyticsModules; exports.captureSignupSource = _chunkQ5SMFSE4js.captureSignupSource; exports.checkPermissions = _chunk5XP5G45Bjs.checkPermissions; exports.checkPermissionsFromServer = _chunk5XP5G45Bjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunk5XP5G45Bjs.clearLastApiMeta; exports.clearLastApiTotal = _chunk5XP5G45Bjs.clearLastApiTotal; exports.cn = _chunk5XP5G45Bjs.cn; exports.composeRefs = _chunk5XP5G45Bjs.composeRefs; exports.configureAuth = _chunk5XP5G45Bjs.configureAuth; exports.configureI18n = _chunkNP3AFULUjs.configureI18n; exports.configureJsonApi = _chunkQ5SMFSE4js.configureJsonApi; exports.configureLogin = _chunkQ5SMFSE4js.configureLogin; exports.configureReferral = _chunkQ5SMFSE4js.configureReferral; exports.configureRoles = _chunkG4JR3SFVjs.configureRoles; exports.configureTokenUsage = _chunk5XP5G45Bjs.configureTokenUsage; exports.configureWaitlist = _chunkQ5SMFSE4js.configureWaitlist; exports.consumeAccountDeletionCancelled = _chunk5XP5G45Bjs.consumeAccountDeletionCancelled; exports.couponPlacesLeft = _chunk5XP5G45Bjs.couponPlacesLeft; exports.couponPlacesTotal = _chunk5XP5G45Bjs.couponPlacesTotal; exports.createJsonApiInclusion = _chunk5XP5G45Bjs.createJsonApiInclusion; exports.dateFormatLocale = _chunkHROKKUBQjs.dateFormatLocale; exports.dismissToast = _chunk5XP5G45Bjs.dismissToast; exports.entityObjectSchema = _chunk5XP5G45Bjs.entityObjectSchema; exports.exists = _chunk5XP5G45Bjs.exists; exports.formatCodiceFiscale = _chunk5XP5G45Bjs.formatCodiceFiscale; exports.formatCouponDiscount = _chunk5XP5G45Bjs.formatCouponDiscount; exports.formatCurrency = _chunk5XP5G45Bjs.formatCurrency; exports.formatDate = _chunkHROKKUBQjs.formatDate; exports.formatDateStyle = _chunkHROKKUBQjs.formatDateStyle; exports.formatFixed = _chunk5XP5G45Bjs.formatFixed; exports.formatInterval = _chunk5XP5G45Bjs.formatInterval; exports.formatLocalDate = _chunkHROKKUBQjs.formatLocalDate; exports.formatPartitaIva = _chunk5XP5G45Bjs.formatPartitaIva; exports.formatRelativeDate = _chunkHROKKUBQjs.formatRelativeDate; exports.getApiUrl = _chunkQ5SMFSE4js.getApiUrl; exports.getAppUrl = _chunkQ5SMFSE4js.getAppUrl; exports.getBootstrapper = _chunkLNO2JLU3js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk5XP5G45Bjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk5XP5G45Bjs.getGlobalErrorHandler; exports.getIcon = _chunk5XP5G45Bjs.getIcon; exports.getIconByModule = _chunk5XP5G45Bjs.getIconByModule; exports.getIconByModuleName = _chunk5XP5G45Bjs.getIconByModuleName; exports.getInitials = _chunk5XP5G45Bjs.getInitials; exports.getLastApiMeta = _chunk5XP5G45Bjs.getLastApiMeta; exports.getLastApiTotal = _chunk5XP5G45Bjs.getLastApiTotal; exports.getLucideIcon = _chunk5XP5G45Bjs.getLucideIcon; exports.getLucideIconByModule = _chunk5XP5G45Bjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk5XP5G45Bjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkQ5SMFSE4js.getPublicApiUrl; exports.getReferralConfig = _chunkQ5SMFSE4js.getReferralConfig; exports.getRoleId = _chunkG4JR3SFVjs.getRoleId; exports.getSignupSource = _chunkQ5SMFSE4js.getSignupSource; exports.getStripePublishableKey = _chunkQ5SMFSE4js.getStripePublishableKey; exports.getTableComponents = _chunk5XP5G45Bjs.getTableComponents; exports.getTableOptions = _chunk5XP5G45Bjs.getTableOptions; exports.getTokenHandler = _chunk5XP5G45Bjs.getTokenHandler; exports.getTokenUsageCurrency = _chunk5XP5G45Bjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkQ5SMFSE4js.getTrackablePages; exports.getValueFromPath = _chunk5XP5G45Bjs.getValueFromPath; exports.getWaitlistConfig = _chunkQ5SMFSE4js.getWaitlistConfig; exports.handbookPageContent = _chunk5XP5G45Bjs.handbookPageContent; exports.handbookPageSummary = _chunk5XP5G45Bjs.handbookPageSummary; exports.handbookPageTitle = _chunk5XP5G45Bjs.handbookPageTitle; exports.handbookSectionSummary = _chunk5XP5G45Bjs.handbookSectionSummary; exports.handbookSectionTitle = _chunk5XP5G45Bjs.handbookSectionTitle; exports.hasBootstrapper = _chunkLNO2JLU3js.hasBootstrapper; exports.isCreditWarningActive = _chunk5XP5G45Bjs.isCreditWarningActive; exports.isDiscordAuthEnabled = _chunkQ5SMFSE4js.isDiscordAuthEnabled; exports.isReferralEnabled = _chunkQ5SMFSE4js.isReferralEnabled; exports.isRemoteImageSrc = _chunk5XP5G45Bjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkG4JR3SFVjs.isRolesConfigured; exports.markAccountDeletionCancelled = _chunk5XP5G45Bjs.markAccountDeletionCancelled; exports.mergeMessages = _chunk5XP5G45Bjs.mergeMessages; exports.offlineModules = _chunk5XP5G45Bjs.offlineModules; exports.readSignupSourceFromLocation = _chunkQ5SMFSE4js.readSignupSourceFromLocation; exports.referralAdminModules = _chunk5XP5G45Bjs.referralAdminModules; exports.rehydrate = _chunk5XP5G45Bjs.rehydrate; exports.rehydrateList = _chunk5XP5G45Bjs.rehydrateList; exports.resetBootstrapStore = _chunkLNO2JLU3js.resetBootstrapStore; exports.resolveChangePlanTarget = _chunk5XP5G45Bjs.resolveChangePlanTarget; exports.resolveDateLocale = _chunkHROKKUBQjs.resolveDateLocale; exports.setBootstrapper = _chunkLNO2JLU3js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk5XP5G45Bjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk5XP5G45Bjs.setGlobalErrorHandler; exports.showCustomToast = _chunk5XP5G45Bjs.showCustomToast; exports.showError = _chunk5XP5G45Bjs.showError; exports.showToast = _chunk5XP5G45Bjs.showToast; exports.toPromotionCodeResult = _chunk5XP5G45Bjs.toPromotionCodeResult; exports.tokenUsageModules = _chunk5XP5G45Bjs.tokenUsageModules; exports.translateData = _chunkLNO2JLU3js.translateData; exports.translateResponse = _chunkLNO2JLU3js.translateResponse; exports.tryBootstrap = _chunkLNO2JLU3js.tryBootstrap; exports.useComposedRefs = _chunk5XP5G45Bjs.useComposedRefs; exports.useIsMobile = _chunk5XP5G45Bjs.useIsMobile; exports.userObjectSchema = _chunk5XP5G45Bjs.userObjectSchema; exports.usesTwelveHourClock = _chunkHROKKUBQjs.usesTwelveHourClock; exports.validateCodiceFiscale = _chunk5XP5G45Bjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunk5XP5G45Bjs.validateItalianTaxCode; exports.validatePartitaIva = _chunk5XP5G45Bjs.validatePartitaIva;
746
746
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  isDiscordAuthEnabled,
21
21
  isReferralEnabled,
22
22
  readSignupSourceFromLocation
23
- } from "./chunk-M7YK5CCE.mjs";
23
+ } from "./chunk-JL6XL5NK.mjs";
24
24
  import {
25
25
  configureRoles,
26
26
  getRoleId,
@@ -338,7 +338,7 @@ import {
338
338
  validateCodiceFiscale,
339
339
  validateItalianTaxCode,
340
340
  validatePartitaIva
341
- } from "./chunk-FJUKLVVX.mjs";
341
+ } from "./chunk-HNK2O6YE.mjs";
342
342
  import {
343
343
  dateFormatLocale,
344
344
  formatDate,
@@ -5,6 +5,8 @@ export interface LoginConfig {
5
5
  useInternalAuth?: boolean;
6
6
  allowRegistration?: boolean;
7
7
  registrationMode?: RegistrationMode;
8
+ /** Show and require the company name on sign-up. Default `true`. */
9
+ requireCompanyName?: boolean;
8
10
  }
9
11
  export declare function configureLogin(params: LoginConfig): void;
10
12
  export declare function isDiscordAuthEnabled(): boolean;
@@ -12,4 +14,5 @@ export declare function isGoogleAuthEnabled(): boolean;
12
14
  export declare function isInternalAuthEnabled(): boolean;
13
15
  export declare function isRegistrationAllowed(): boolean;
14
16
  export declare function getRegistrationMode(): RegistrationMode;
17
+ export declare function isCompanyNameRequired(): boolean;
15
18
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/login/config.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAMxD;AAED,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/login/config.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAOxD;AAED,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C"}
@@ -1,3 +1,3 @@
1
- export { configureLogin, isDiscordAuthEnabled, isGoogleAuthEnabled, isInternalAuthEnabled, isRegistrationAllowed, } from "./config";
1
+ export { configureLogin, isCompanyNameRequired, isDiscordAuthEnabled, isGoogleAuthEnabled, isInternalAuthEnabled, isRegistrationAllowed, } from "./config";
2
2
  export type { LoginConfig } from "./config";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkF3EVYBMAjs = require('../chunk-F3EVYBMA.js');
7
+ var _chunkNQL2NDKHjs = require('../chunk-NQL2NDKH.js');
8
8
 
9
9
 
10
10
  var _chunkIK65TDQHjs = require('../chunk-IK65TDQH.js');
@@ -36,7 +36,7 @@ require('../chunk-G4JR3SFV.js');
36
36
 
37
37
 
38
38
 
39
- var _chunk77JC2UCFjs = require('../chunk-77JC2UCF.js');
39
+ var _chunk5XP5G45Bjs = require('../chunk-5XP5G45B.js');
40
40
  require('../chunk-HROKKUBQ.js');
41
41
  require('../chunk-Z6T2575A.js');
42
42
  require('../chunk-3VNDFKT7.js');
@@ -78,5 +78,5 @@ require('../chunk-7QVYU63E.js');
78
78
 
79
79
 
80
80
 
81
- exports.CACHE_PROFILES = _chunkIK65TDQHjs.CACHE_PROFILES; exports.DEFAULT_SQLITE_MODULE_URL = _chunkWUNSG3INjs.DEFAULT_SQLITE_MODULE_URL; exports.OFFLINE_SQLITE_FILES = _chunkWUNSG3INjs.OFFLINE_SQLITE_FILES; exports.ServerAuthService = _chunk77JC2UCFjs.AuthService; exports.ServerCompanyService = _chunk77JC2UCFjs.CompanyService; exports.ServerContentService = _chunk77JC2UCFjs.ContentService; exports.ServerFeatureService = _chunk77JC2UCFjs.FeatureService; exports.ServerJsonApiDelete = _chunkN3NQS7X6js.ServerJsonApiDelete; exports.ServerJsonApiGet = _chunkN3NQS7X6js.ServerJsonApiGet; exports.ServerJsonApiPatch = _chunkN3NQS7X6js.ServerJsonApiPatch; exports.ServerJsonApiPost = _chunkN3NQS7X6js.ServerJsonApiPost; exports.ServerJsonApiPut = _chunkN3NQS7X6js.ServerJsonApiPut; exports.ServerNotificationService = _chunk77JC2UCFjs.NotificationService; exports.ServerPushService = _chunk77JC2UCFjs.PushService; exports.ServerRoleService = _chunk77JC2UCFjs.RoleService; exports.ServerS3Service = _chunk77JC2UCFjs.S3Service; exports.ServerSession = _chunkF3EVYBMAjs.ServerSession; exports.ServerUserService = _chunk77JC2UCFjs.UserService; exports.buildOfflineManifest = _chunkF3EVYBMAjs.buildOfflineManifest; exports.configureServerJsonApi = _chunkN3NQS7X6js.configureServerJsonApi; exports.getServerApiUrl = _chunkN3NQS7X6js.getServerApiUrl; exports.getServerAppUrl = _chunkN3NQS7X6js.getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = _chunkN3NQS7X6js.getServerTrackablePages; exports.invalidateCacheTag = _chunkF3EVYBMAjs.invalidateCacheTag; exports.invalidateCacheTags = _chunkF3EVYBMAjs.invalidateCacheTags; exports.serverRequest = _chunk6TUB7Y6Tjs.serverRequest; exports.updateCacheTag = _chunkF3EVYBMAjs.updateCacheTag;
81
+ exports.CACHE_PROFILES = _chunkIK65TDQHjs.CACHE_PROFILES; exports.DEFAULT_SQLITE_MODULE_URL = _chunkWUNSG3INjs.DEFAULT_SQLITE_MODULE_URL; exports.OFFLINE_SQLITE_FILES = _chunkWUNSG3INjs.OFFLINE_SQLITE_FILES; exports.ServerAuthService = _chunk5XP5G45Bjs.AuthService; exports.ServerCompanyService = _chunk5XP5G45Bjs.CompanyService; exports.ServerContentService = _chunk5XP5G45Bjs.ContentService; exports.ServerFeatureService = _chunk5XP5G45Bjs.FeatureService; exports.ServerJsonApiDelete = _chunkN3NQS7X6js.ServerJsonApiDelete; exports.ServerJsonApiGet = _chunkN3NQS7X6js.ServerJsonApiGet; exports.ServerJsonApiPatch = _chunkN3NQS7X6js.ServerJsonApiPatch; exports.ServerJsonApiPost = _chunkN3NQS7X6js.ServerJsonApiPost; exports.ServerJsonApiPut = _chunkN3NQS7X6js.ServerJsonApiPut; exports.ServerNotificationService = _chunk5XP5G45Bjs.NotificationService; exports.ServerPushService = _chunk5XP5G45Bjs.PushService; exports.ServerRoleService = _chunk5XP5G45Bjs.RoleService; exports.ServerS3Service = _chunk5XP5G45Bjs.S3Service; exports.ServerSession = _chunkNQL2NDKHjs.ServerSession; exports.ServerUserService = _chunk5XP5G45Bjs.UserService; exports.buildOfflineManifest = _chunkNQL2NDKHjs.buildOfflineManifest; exports.configureServerJsonApi = _chunkN3NQS7X6js.configureServerJsonApi; exports.getServerApiUrl = _chunkN3NQS7X6js.getServerApiUrl; exports.getServerAppUrl = _chunkN3NQS7X6js.getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = _chunkN3NQS7X6js.getServerTrackablePages; exports.invalidateCacheTag = _chunkNQL2NDKHjs.invalidateCacheTag; exports.invalidateCacheTags = _chunkNQL2NDKHjs.invalidateCacheTags; exports.serverRequest = _chunk6TUB7Y6Tjs.serverRequest; exports.updateCacheTag = _chunkNQL2NDKHjs.updateCacheTag;
82
82
  //# sourceMappingURL=index.js.map
@@ -4,7 +4,7 @@ import {
4
4
  invalidateCacheTag,
5
5
  invalidateCacheTags,
6
6
  updateCacheTag
7
- } from "../chunk-7MGXQIEP.mjs";
7
+ } from "../chunk-FDKAVSZ6.mjs";
8
8
  import {
9
9
  CACHE_PROFILES
10
10
  } from "../chunk-T7SAW3UW.mjs";
@@ -36,7 +36,7 @@ import {
36
36
  RoleService,
37
37
  S3Service,
38
38
  UserService
39
- } from "../chunk-FJUKLVVX.mjs";
39
+ } from "../chunk-HNK2O6YE.mjs";
40
40
  import "../chunk-RW6XZGZG.mjs";
41
41
  import "../chunk-W7U6O3OE.mjs";
42
42
  import "../chunk-47HNJQ7U.mjs";
package/messages/en.json CHANGED
@@ -2037,6 +2037,7 @@
2037
2037
  "remove": "Remove",
2038
2038
  "return_to_home": "Return to Home",
2039
2039
  "save": "Save",
2040
+ "saving": "Saving...",
2040
2041
  "select_date": "Select Date",
2041
2042
  "show_less": "Show less",
2042
2043
  "show_more": "Show more"
package/messages/it.json CHANGED
@@ -2037,6 +2037,7 @@
2037
2037
  "remove": "Rimuovi",
2038
2038
  "return_to_home": "Torna alla home",
2039
2039
  "save": "Salva",
2040
+ "saving": "Salvataggio...",
2040
2041
  "select_date": "Seleziona data",
2041
2042
  "show_less": "Mostra meno",
2042
2043
  "show_more": "Mostra di più"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "6.29.1",
3
+ "version": "6.31.0",
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",
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  import { useTranslations } from "next-intl";
3
+ import { Loader2 } from "lucide-react";
3
4
  import { Button } from "../../shadcnui";
4
5
 
5
6
  type CommonEditorButtonsProps = {
@@ -22,6 +23,19 @@ export function CommonEditorButtons({
22
23
  }: CommonEditorButtonsProps) {
23
24
  const t = useTranslations();
24
25
 
26
+ const submitLabel: ReactNode = form.formState.isSubmitting ? (
27
+ <>
28
+ <Loader2 className="h-4 w-4 animate-spin" />
29
+ {t(`ui.buttons.saving`)}
30
+ </>
31
+ ) : buttonTitle ? (
32
+ buttonTitle
33
+ ) : isEdit ? (
34
+ t(`ui.buttons.confirm_update`)
35
+ ) : (
36
+ t(`ui.buttons.confirm_create`)
37
+ );
38
+
25
39
  if (centerButtons) {
26
40
  return (
27
41
  <div className="flex w-full items-center justify-between gap-x-2">
@@ -33,7 +47,7 @@ export function CommonEditorButtons({
33
47
 
34
48
  {!hideSubmit ? (
35
49
  <Button type="submit" disabled={form.formState.isSubmitting || disabled} data-testid={`modal-button-create`}>
36
- {buttonTitle ? buttonTitle : isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`)}
50
+ {submitLabel}
37
51
  </Button>
38
52
  ) : (
39
53
  <div />
@@ -56,7 +70,7 @@ export function CommonEditorButtons({
56
70
 
57
71
  {!hideSubmit && (
58
72
  <Button type="submit" disabled={form.formState.isSubmitting || disabled} data-testid={`modal-button-create`}>
59
- {buttonTitle ? buttonTitle : isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`)}
73
+ {submitLabel}
60
74
  </Button>
61
75
  )}
62
76
  </div>
@@ -9,12 +9,14 @@ interface GdprConsentSectionProps<T extends FieldValues> {
9
9
  form: UseFormReturn<T>;
10
10
  termsCheckboxId?: Path<T>;
11
11
  marketingCheckboxId?: Path<T>;
12
+ testId?: string;
12
13
  }
13
14
 
14
15
  export function GdprConsentSection<T extends FieldValues>({
15
16
  form,
16
17
  termsCheckboxId = "termsAccepted" as Path<T>,
17
18
  marketingCheckboxId = "marketingConsent" as Path<T>,
19
+ testId,
18
20
  }: GdprConsentSectionProps<T>) {
19
21
  const t = useTranslations("auth.gdpr");
20
22
 
@@ -32,7 +34,7 @@ export function GdprConsentSection<T extends FieldValues>({
32
34
  );
33
35
 
34
36
  return (
35
- <div className="space-y-4 py-4">
37
+ <div className="space-y-4 py-4" data-testid={testId}>
36
38
  <GdprConsentCheckbox form={form} id={termsCheckboxId} label={termsLabel} required />
37
39
  <GdprConsentCheckbox
38
40
  form={form}
@@ -3,13 +3,11 @@
3
3
  import { zodResolver } from "@hookform/resolvers/zod";
4
4
  import { useTranslations } from "next-intl";
5
5
  import Image from "next/image";
6
- import { useRouter, useSearchParams } from "next/navigation";
7
6
  import { useEffect, useState } from "react";
8
7
  import { SubmitHandler, useForm } from "react-hook-form";
9
8
  import { z } from "zod";
10
9
  import { getPublicApiUrl } from "../../../../client/config";
11
10
  import { errorToast, FormInput, FormPassword } from "../../../../components";
12
- import { useI18nRouter, usePageUrlGenerator } from "../../../../hooks";
13
11
  import { isDiscordAuthEnabled, isGoogleAuthEnabled, isInternalAuthEnabled } from "../../../../login";
14
12
  import {
15
13
  Button,
@@ -21,23 +19,16 @@ import {
21
19
  Form,
22
20
  Link,
23
21
  } from "../../../../shadcnui";
24
- import { UserInterface } from "../../../user";
25
- import { useCurrentUserContext } from "../../../user/contexts";
26
22
  import { useAuthContext } from "../../contexts";
27
23
  import { AuthService } from "../../data/auth.service";
28
- import { TwoFactorChallengeInterface } from "../../data/two-factor-challenge.interface";
29
24
  import { AuthComponent } from "../../enums";
25
+ import { useCompleteLogin } from "../../hooks/useCompleteLogin";
30
26
  import { GoogleSignInButton } from "../buttons/GoogleSignInButton";
31
27
 
32
28
  export function Login() {
33
29
  const t = useTranslations();
34
- const { setUser } = useCurrentUserContext<UserInterface>();
35
- const { setComponentType, setPendingTwoFactor } = useAuthContext();
36
- const generateUrl = usePageUrlGenerator();
37
- const i18nRouter = useI18nRouter();
38
- const nativeRouter = useRouter(); // For URLs that already include locale
39
- const searchParams = useSearchParams();
40
- const callbackUrl = searchParams.get("callbackUrl");
30
+ const { setComponentType } = useAuthContext();
31
+ const completeLogin = useCompleteLogin();
41
32
 
42
33
  // Read referral code from cookie on mount
43
34
  const [referralCode, setReferralCode] = useState<string | null>(null);
@@ -82,26 +73,7 @@ export function Login() {
82
73
  password: values.password,
83
74
  });
84
75
 
85
- // Check if 2FA is required (response is TwoFactorChallengeInterface)
86
- if ("pendingToken" in response) {
87
- const challenge = response as TwoFactorChallengeInterface;
88
- setPendingTwoFactor(challenge);
89
- setComponentType(AuthComponent.TwoFactorChallenge);
90
- return;
91
- }
92
-
93
- // Normal login flow
94
- const user = response as UserInterface;
95
- setUser(user);
96
-
97
- // Redirect to callback URL if present, otherwise go to home
98
- // Use native router for callbackUrl since it already includes the locale prefix
99
- // Use i18n router for normal navigation which adds locale automatically
100
- if (callbackUrl) {
101
- nativeRouter.replace(callbackUrl);
102
- } else {
103
- i18nRouter.replace(generateUrl({ page: `/` }));
104
- }
76
+ completeLogin(response);
105
77
  } catch (e) {
106
78
  console.error("[Login] Login error:", e);
107
79
  errorToast({
@@ -11,7 +11,12 @@ import { v4 } from "uuid";
11
11
  import { z } from "zod";
12
12
  import { getPublicApiUrl } from "../../../../client/config";
13
13
  import { errorToast, FormInput, FormPassword } from "../../../../components";
14
- import { getRegistrationMode, isDiscordAuthEnabled, isGoogleAuthEnabled } from "../../../../login/config";
14
+ import {
15
+ getRegistrationMode,
16
+ isCompanyNameRequired,
17
+ isDiscordAuthEnabled,
18
+ isGoogleAuthEnabled,
19
+ } from "../../../../login/config";
15
20
  import {
16
21
  Button,
17
22
  CardContent,
@@ -27,6 +32,7 @@ import { WaitlistService } from "../../../waitlist/data/WaitlistService";
27
32
  import { useAuthContext } from "../../contexts";
28
33
  import { AuthService } from "../../data/auth.service";
29
34
  import { AuthComponent } from "../../enums";
35
+ import { useCompleteLogin } from "../../hooks/useCompleteLogin";
30
36
  import { GdprConsentSection } from "../GdprConsentSection";
31
37
 
32
38
  // Referral cookie utilities
@@ -68,6 +74,8 @@ export default function Register() {
68
74
  const searchParams = useSearchParams();
69
75
  const inviteCode = searchParams.get("invite");
70
76
  const registrationMode = getRegistrationMode();
77
+ const showCompanyField = isCompanyNameRequired();
78
+ const completeLogin = useCompleteLogin();
71
79
 
72
80
  const [showConfirmation, setShowConfirmation] = useState<boolean>(false);
73
81
  const [inviteValidated, setInviteValidated] = useState<boolean>(false);
@@ -87,27 +95,34 @@ export default function Register() {
87
95
  setSignupSource(getSignupSource());
88
96
  }, []);
89
97
 
90
- const formSchema = z.object({
91
- company: z.string().min(1, {
92
- message: t(`common.errors.missing_company_name`),
93
- }),
94
- name: z.string().min(1, {
95
- message: t("common.errors.missing_name"),
96
- }),
97
- email: z.string().email({
98
- message: t(`common.errors.invalid_email`),
99
- }),
100
- password: z
101
- .string()
102
- .min(8, t(`auth.errors.password_too_short`))
103
- .regex(/^(?=.*[0-9])(?=.*[^a-zA-Z0-9]).*$/, {
104
- message: t(`auth.errors.password_invalid_format`),
98
+ const formSchema = z
99
+ .object({
100
+ company: z.string(),
101
+ name: z.string().min(1, {
102
+ message: t("common.errors.missing_name"),
105
103
  }),
106
- termsAccepted: z.literal(true, {
107
- message: t("auth.gdpr.terms_required"),
108
- }),
109
- marketingConsent: z.boolean().optional(),
110
- });
104
+ email: z.string().email({
105
+ message: t(`common.errors.invalid_email`),
106
+ }),
107
+ password: z
108
+ .string()
109
+ .min(8, t(`auth.errors.password_too_short`))
110
+ .regex(/^(?=.*[0-9])(?=.*[^a-zA-Z0-9]).*$/, {
111
+ message: t(`auth.errors.password_invalid_format`),
112
+ }),
113
+ termsAccepted: z.boolean(),
114
+ marketingConsent: z.boolean().optional(),
115
+ })
116
+ .superRefine((values, ctx) => {
117
+ // Company is asked only when the app requires it
118
+ if (showCompanyField && values.company.length < 1) {
119
+ ctx.addIssue({ code: "custom", path: ["company"], message: t(`common.errors.missing_company_name`) });
120
+ }
121
+ // An invite carries the Terms acceptance recorded on the waitlist
122
+ if (!inviteValidated && values.termsAccepted !== true) {
123
+ ctx.addIssue({ code: "custom", path: ["termsAccepted"], message: t("auth.gdpr.terms_required") });
124
+ }
125
+ });
111
126
 
112
127
  const form = useForm<z.infer<typeof formSchema>>({
113
128
  resolver: zodResolver(formSchema),
@@ -116,7 +131,7 @@ export default function Register() {
116
131
  name: "",
117
132
  email: "",
118
133
  password: "",
119
- termsAccepted: false as unknown as true,
134
+ termsAccepted: false,
120
135
  marketingConsent: false,
121
136
  },
122
137
  });
@@ -152,13 +167,15 @@ export default function Register() {
152
167
  try {
153
168
  const payload = {
154
169
  id: v4(),
155
- companyName: values.company,
170
+ // Hidden company field: the server names the company after the user
171
+ companyName: showCompanyField ? values.company : undefined,
156
172
  name: values.name,
157
173
  email: values.email,
158
174
  password: values.password,
159
- termsAcceptedAt: new Date().toISOString(),
160
- marketingConsent: values.marketingConsent ?? false,
161
- marketingConsentAt: values.marketingConsent ? new Date().toISOString() : null,
175
+ // An invite sign-up takes Terms and marketing consent from the waitlist entry on the server
176
+ termsAcceptedAt: inviteValidated ? undefined : new Date().toISOString(),
177
+ marketingConsent: inviteValidated ? undefined : (values.marketingConsent ?? false),
178
+ marketingConsentAt: inviteValidated ? undefined : values.marketingConsent ? new Date().toISOString() : null,
162
179
  inviteCode: inviteCode ?? undefined,
163
180
  referralCode: referralCode ?? undefined,
164
181
  source: getSignupSource(),
@@ -167,6 +184,13 @@ export default function Register() {
167
184
  await AuthService.register(payload);
168
185
  // Clear referral cookie after successful registration
169
186
  clearReferralCode();
187
+
188
+ if (inviteValidated) {
189
+ // The invite proved the email: the account is already active, log straight in
190
+ completeLogin(await AuthService.login({ email: values.email, password: values.password }));
191
+ return;
192
+ }
193
+
170
194
  setShowConfirmation(true);
171
195
  } catch (e) {
172
196
  errorToast({ title: t("common.errors.error"), error: e });
@@ -240,7 +264,7 @@ export default function Register() {
240
264
 
241
265
  return (
242
266
  <>
243
- <CardHeader>
267
+ <CardHeader data-testid="page-register-container">
244
268
  <CardTitle className="text-primary flex flex-col items-center pb-10 text-4xl">
245
269
  <Image src="/logo.webp" alt="Logo" width={100} height={100} priority />
246
270
  {t(`auth.buttons.register`)}
@@ -257,19 +281,23 @@ export default function Register() {
257
281
  <Form {...form}>
258
282
  <form onSubmit={form.handleSubmit(onSubmit)}>
259
283
  <CardContent>
260
- <FormInput
261
- isRequired
262
- form={form}
263
- id="company"
264
- name={t(`company.fields.name.label`)}
265
- placeholder={t(`company.fields.name.placeholder`)}
266
- />
284
+ {showCompanyField && (
285
+ <FormInput
286
+ isRequired
287
+ form={form}
288
+ id="company"
289
+ name={t(`company.fields.name.label`)}
290
+ placeholder={t(`company.fields.name.placeholder`)}
291
+ testId="form-register-input-company"
292
+ />
293
+ )}
267
294
  <FormInput
268
295
  isRequired
269
296
  form={form}
270
297
  id="name"
271
298
  name={t(`user.fields.name.label`)}
272
299
  placeholder={t(`user.fields.name.placeholder`)}
300
+ testId="form-register-input-name"
273
301
  />
274
302
  <FormInput
275
303
  isRequired
@@ -279,6 +307,7 @@ export default function Register() {
279
307
  placeholder={t(`common.fields.email.placeholder`)}
280
308
  disabled={inviteValidated}
281
309
  description={inviteValidated ? t("waitlist.invite.email_locked_hint") : undefined}
310
+ testId="form-register-input-email"
282
311
  />
283
312
  <FormPassword
284
313
  isRequired
@@ -286,9 +315,10 @@ export default function Register() {
286
315
  id="password"
287
316
  name={t(`user.fields.password.label`)}
288
317
  placeholder={t(`user.fields.password.placeholder`)}
318
+ testId="form-register-input-password"
289
319
  />
290
- <GdprConsentSection form={form} />
291
- <Button className="mt-4 w-full" type={"submit"}>
320
+ {!inviteValidated && <GdprConsentSection form={form} testId="form-register-consent" />}
321
+ <Button className="mt-4 w-full" type={"submit"} data-testid="form-register-button-submit">
292
322
  {t(`auth.buttons.register`)}
293
323
  </Button>
294
324