@carlonicora/nextjs-jsonapi 4.1.0 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/{BlockNoteEditor-6CBMNJPU.js → BlockNoteEditor-BENYTTCZ.js} +19 -19
  2. package/dist/{BlockNoteEditor-6CBMNJPU.js.map → BlockNoteEditor-BENYTTCZ.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-7N66JABP.mjs → BlockNoteEditor-VOYKZOP5.mjs} +4 -4
  4. package/dist/{BlockNoteViewer-TEC7DN2N.js → BlockNoteViewer-USLR4Y7C.js} +3 -3
  5. package/dist/{BlockNoteViewer-TEC7DN2N.js.map → BlockNoteViewer-USLR4Y7C.js.map} +1 -1
  6. package/dist/{BlockNoteViewer-4THJHQMK.mjs → BlockNoteViewer-Y2ZM4ESA.mjs} +2 -2
  7. package/dist/billing/index.js +399 -399
  8. package/dist/billing/index.mjs +3 -3
  9. package/dist/{chunk-IOG22OAO.mjs → chunk-46S3KPLU.mjs} +2 -2
  10. package/dist/{chunk-5PNDDYGL.js → chunk-4BZJ4LAB.js} +16 -2
  11. package/dist/chunk-4BZJ4LAB.js.map +1 -0
  12. package/dist/{chunk-HQKTQBUC.mjs → chunk-6ISF5KNQ.mjs} +5 -5
  13. package/dist/{chunk-C2WQXUL5.js → chunk-F7RNBGHS.js} +3 -3
  14. package/dist/{chunk-C2WQXUL5.js.map → chunk-F7RNBGHS.js.map} +1 -1
  15. package/dist/{chunk-RDI62FAT.mjs → chunk-HZVVRIJQ.mjs} +2 -2
  16. package/dist/{chunk-DYTKNSHY.js → chunk-KS6WZP2E.js} +4 -4
  17. package/dist/{chunk-DYTKNSHY.js.map → chunk-KS6WZP2E.js.map} +1 -1
  18. package/dist/{chunk-MJVEKDM4.js → chunk-ORU7KLCY.js} +831 -831
  19. package/dist/{chunk-MJVEKDM4.js.map → chunk-ORU7KLCY.js.map} +1 -1
  20. package/dist/{chunk-7ZRQOLSV.js → chunk-WQ77CUUZ.js} +7 -7
  21. package/dist/{chunk-7ZRQOLSV.js.map → chunk-WQ77CUUZ.js.map} +1 -1
  22. package/dist/{chunk-XTOEN5GN.mjs → chunk-ZO3QQ5CQ.mjs} +2 -2
  23. package/dist/{chunk-Z3226FM6.mjs → chunk-ZZ6E33FO.mjs} +16 -2
  24. package/dist/chunk-ZZ6E33FO.mjs.map +1 -0
  25. package/dist/client/index.js +4 -4
  26. package/dist/client/index.mjs +3 -3
  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/features/analytics/index.js +122 -122
  34. package/dist/features/analytics/index.mjs +4 -4
  35. package/dist/features/analytics/server.js +4 -4
  36. package/dist/features/analytics/server.mjs +2 -2
  37. package/dist/features/help/index.js +37 -37
  38. package/dist/features/help/index.mjs +3 -3
  39. package/dist/features/tokenusage/index.js +125 -125
  40. package/dist/features/tokenusage/index.mjs +4 -4
  41. package/dist/index.js +3 -3
  42. package/dist/index.mjs +2 -2
  43. package/dist/server/index.js +3 -3
  44. package/dist/server/index.mjs +2 -2
  45. package/package.json +1 -1
  46. package/scripts/vitest-slow-tests.reporter.spec.ts +54 -0
  47. package/src/utils/__tests__/use-mobile.test.tsx +111 -0
  48. package/src/utils/use-mobile.tsx +30 -1
  49. package/dist/chunk-5PNDDYGL.js.map +0 -1
  50. package/dist/chunk-Z3226FM6.mjs.map +0 -1
  51. /package/dist/{BlockNoteEditor-7N66JABP.mjs.map → BlockNoteEditor-VOYKZOP5.mjs.map} +0 -0
  52. /package/dist/{BlockNoteViewer-4THJHQMK.mjs.map → BlockNoteViewer-Y2ZM4ESA.mjs.map} +0 -0
  53. /package/dist/{chunk-IOG22OAO.mjs.map → chunk-46S3KPLU.mjs.map} +0 -0
  54. /package/dist/{chunk-HQKTQBUC.mjs.map → chunk-6ISF5KNQ.mjs.map} +0 -0
  55. /package/dist/{chunk-RDI62FAT.mjs.map → chunk-HZVVRIJQ.mjs.map} +0 -0
  56. /package/dist/{chunk-XTOEN5GN.mjs.map → chunk-ZO3QQ5CQ.mjs.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  percentageDelta,
10
10
  seriesColor,
11
11
  useUsageFormatters
12
- } from "../../chunk-RDI62FAT.mjs";
12
+ } from "../../chunk-HZVVRIJQ.mjs";
13
13
  import {
14
14
  Button,
15
15
  Card,
@@ -37,8 +37,8 @@ import {
37
37
  TableHeader,
38
38
  TableRow,
39
39
  usePageUrlGenerator
40
- } from "../../chunk-HQKTQBUC.mjs";
41
- import "../../chunk-XTOEN5GN.mjs";
40
+ } from "../../chunk-6ISF5KNQ.mjs";
41
+ import "../../chunk-ZO3QQ5CQ.mjs";
42
42
  import "../../chunk-PW42LRSL.mjs";
43
43
  import {
44
44
  AbstractService,
@@ -57,7 +57,7 @@ import {
57
57
  configureTokenUsage,
58
58
  getTokenUsageCurrency,
59
59
  tokenUsageModules
60
- } from "../../chunk-Z3226FM6.mjs";
60
+ } from "../../chunk-ZZ6E33FO.mjs";
61
61
  import "../../chunk-AUXK7QSA.mjs";
62
62
  import "../../chunk-PI56A4DG.mjs";
63
63
  import "../../chunk-V5MI7RNB.mjs";
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunk7ZRQOLSVjs = require('./chunk-7ZRQOLSV.js');
17
+ var _chunkWQ77CUUZjs = require('./chunk-WQ77CUUZ.js');
18
18
 
19
19
 
20
20
 
@@ -248,7 +248,7 @@ var _chunkG4JR3SFVjs = require('./chunk-G4JR3SFV.js');
248
248
 
249
249
 
250
250
 
251
- var _chunk5PNDDYGLjs = require('./chunk-5PNDDYGL.js');
251
+ var _chunk4BZJ4LABjs = require('./chunk-4BZJ4LAB.js');
252
252
  require('./chunk-LXKSUWAV.js');
253
253
  require('./chunk-JTPRJNT2.js');
254
254
 
@@ -521,5 +521,5 @@ require('./chunk-7QVYU63E.js');
521
521
 
522
522
 
523
523
 
524
- exports.ACTION_TYPES = _chunk7ZRQOLSVjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk5PNDDYGLjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk5PNDDYGLjs.AbstractApiData; exports.AbstractService = _chunk5PNDDYGLjs.AbstractService; exports.Action = _chunk5PNDDYGLjs.Action; exports.AiConnection = _chunk5PNDDYGLjs.AiConnection; exports.AiConnectionFields = _chunk5PNDDYGLjs.AiConnectionFields; exports.AiConnectionModule = _chunk5PNDDYGLjs.AiConnectionModule; exports.AiConnectionService = _chunk5PNDDYGLjs.AiConnectionService; exports.Assistant = _chunk5PNDDYGLjs.Assistant; exports.AssistantAction = _chunk5PNDDYGLjs.AssistantAction; exports.AssistantActionModule = _chunk5PNDDYGLjs.AssistantActionModule; exports.AssistantActionService = _chunk5PNDDYGLjs.AssistantActionService; exports.AssistantMessage = _chunk5PNDDYGLjs.AssistantMessage; exports.AssistantMessageModule = _chunk5PNDDYGLjs.AssistantMessageModule; exports.AssistantMessageService = _chunk5PNDDYGLjs.AssistantMessageService; exports.AssistantModule = _chunk5PNDDYGLjs.AssistantModule; exports.AssistantService = _chunk5PNDDYGLjs.AssistantService; exports.AuditLog = _chunk5PNDDYGLjs.AuditLog; exports.AuditLogModule = _chunk5PNDDYGLjs.AuditLogModule; exports.AuditLogService = _chunk5PNDDYGLjs.AuditLogService; exports.Auth = _chunk5PNDDYGLjs.Auth; exports.AuthComponent = _chunk5PNDDYGLjs.AuthComponent; exports.AuthModule = _chunk5PNDDYGLjs.AuthModule; exports.AuthService = _chunk5PNDDYGLjs.AuthService; exports.AuthorModule = _chunk5PNDDYGLjs.AuthorModule; exports.BackupCodeVerify = _chunk5PNDDYGLjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk5PNDDYGLjs.BackupCodeVerifyModule; exports.Billing = _chunk5PNDDYGLjs.Billing; exports.BillingModule = _chunk5PNDDYGLjs.BillingModule; exports.BillingService = _chunk5PNDDYGLjs.BillingService; exports.BlockNoteDiffUtil = _chunk5PNDDYGLjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk5PNDDYGLjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk7ZRQOLSVjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunk5PNDDYGLjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunk5PNDDYGLjs.Chunk; exports.ChunkModule = _chunk5PNDDYGLjs.ChunkModule; exports.ClientAbstractService = _chunk5PNDDYGLjs.ClientAbstractService; exports.ClientHttpMethod = _chunk5PNDDYGLjs.ClientHttpMethod; exports.Company = _chunk5PNDDYGLjs.Company; exports.CompanyFields = _chunk5PNDDYGLjs.CompanyFields; exports.CompanyModule = _chunk5PNDDYGLjs.CompanyModule; exports.CompanyService = _chunk5PNDDYGLjs.CompanyService; exports.Content = _chunk5PNDDYGLjs.Content; exports.ContentFields = _chunk5PNDDYGLjs.ContentFields; exports.ContentModule = _chunk5PNDDYGLjs.ContentModule; exports.ContentService = _chunk5PNDDYGLjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk5PNDDYGLjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkGHE4VT2Rjs.DataClassRegistry; exports.DataClassRegistry = _chunkGHE4VT2Rjs.DataClassRegistry; exports.ENV = _chunkGHE4VT2Rjs.ENV; exports.EndpointCreator = _chunk5PNDDYGLjs.EndpointCreator; exports.EntityAiStatus = _chunk5PNDDYGLjs.EntityAiStatus; exports.Feature = _chunk5PNDDYGLjs.Feature; exports.FeatureModule = _chunk5PNDDYGLjs.FeatureModule; exports.FeatureService = _chunk5PNDDYGLjs.FeatureService; exports.HandbookPage = _chunk5PNDDYGLjs.HandbookPage; exports.HandbookPageFields = _chunk5PNDDYGLjs.HandbookPageFields; exports.HandbookPageModule = _chunk5PNDDYGLjs.HandbookPageModule; exports.HandbookPageService = _chunk5PNDDYGLjs.HandbookPageService; exports.HandbookSection = _chunk5PNDDYGLjs.HandbookSection; exports.HandbookSectionModule = _chunk5PNDDYGLjs.HandbookSectionModule; exports.HandbookSectionService = _chunk5PNDDYGLjs.HandbookSectionService; exports.HandbookThread = _chunk5PNDDYGLjs.HandbookThread; exports.HandbookThreadMessage = _chunk5PNDDYGLjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunk5PNDDYGLjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunk5PNDDYGLjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunk5PNDDYGLjs.HandbookThreadModule; exports.HandbookThreadService = _chunk5PNDDYGLjs.HandbookThreadService; exports.HowTo = _chunk5PNDDYGLjs.HowTo; exports.HowToFields = _chunk5PNDDYGLjs.HowToFields; exports.HowToModule = _chunk5PNDDYGLjs.HowToModule; exports.HowToService = _chunk5PNDDYGLjs.HowToService; exports.HttpMethod = _chunk5PNDDYGLjs.HttpMethod; exports.InvoiceStatus = _chunk5PNDDYGLjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkGHE4VT2Rjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunk5PNDDYGLjs.MOBILE_BREAKPOINT; exports.Module = _chunk5PNDDYGLjs.Module; exports.ModuleModule = _chunk5PNDDYGLjs.ModuleModule; exports.ModulePaths = _chunk5PNDDYGLjs.ModulePaths; exports.ModulePathsModule = _chunk5PNDDYGLjs.ModulePathsModule; exports.ModuleRegistrar = _chunk5PNDDYGLjs.ModuleRegistrar; exports.ModuleRegistry = _chunk5PNDDYGLjs.ModuleRegistry; exports.Modules = _chunk5PNDDYGLjs.Modules; exports.Notification = _chunk5PNDDYGLjs.Notification; exports.NotificationFields = _chunk5PNDDYGLjs.NotificationFields; exports.NotificationModule = _chunk5PNDDYGLjs.NotificationModule; exports.NotificationService = _chunk5PNDDYGLjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk5PNDDYGLjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk5PNDDYGLjs.OAuthClient; exports.OAuthModule = _chunk5PNDDYGLjs.OAuthModule; exports.OAuthService = _chunk5PNDDYGLjs.OAuthService; exports.Passkey = _chunk5PNDDYGLjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk5PNDDYGLjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk5PNDDYGLjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk5PNDDYGLjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk5PNDDYGLjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk5PNDDYGLjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk5PNDDYGLjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk5PNDDYGLjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk5PNDDYGLjs.PasskeyRename; exports.PasskeyRenameModule = _chunk5PNDDYGLjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk5PNDDYGLjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk5PNDDYGLjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk5PNDDYGLjs.PaymentMethod; exports.PermissionMapping = _chunk5PNDDYGLjs.PermissionMapping; exports.PermissionMappingModule = _chunk5PNDDYGLjs.PermissionMappingModule; exports.Push = _chunk5PNDDYGLjs.Push; exports.PushModule = _chunk5PNDDYGLjs.PushModule; exports.PushService = _chunk5PNDDYGLjs.PushService; exports.RbacMatrixModel = _chunk5PNDDYGLjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk5PNDDYGLjs.RbacMatrixModule; exports.RbacService = _chunk7ZRQOLSVjs.RbacService; exports.ReferralModule = _chunk5PNDDYGLjs.ReferralModule; exports.ReferralService = _chunk5PNDDYGLjs.ReferralService; exports.ReferralStats = _chunk5PNDDYGLjs.ReferralStats; exports.ReferralStatsModule = _chunk5PNDDYGLjs.ReferralStatsModule; exports.RehydrationFactory = _chunk5PNDDYGLjs.RehydrationFactory; exports.Role = _chunk5PNDDYGLjs.Role; exports.RoleFields = _chunk5PNDDYGLjs.RoleFields; exports.RoleModule = _chunk5PNDDYGLjs.RoleModule; exports.RoleService = _chunk5PNDDYGLjs.RoleService; exports.S3 = _chunk5PNDDYGLjs.S3; exports.S3Module = _chunk5PNDDYGLjs.S3Module; exports.S3Service = _chunk5PNDDYGLjs.S3Service; exports.StripeCustomer = _chunk5PNDDYGLjs.StripeCustomer; exports.StripeCustomerModule = _chunk5PNDDYGLjs.StripeCustomerModule; exports.StripeCustomerService = _chunk5PNDDYGLjs.StripeCustomerService; exports.StripeInvoice = _chunk5PNDDYGLjs.StripeInvoice; exports.StripeInvoiceModule = _chunk5PNDDYGLjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk5PNDDYGLjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk5PNDDYGLjs.StripePaymentMethodModule; exports.StripePrice = _chunk5PNDDYGLjs.StripePrice; exports.StripePriceFields = _chunk5PNDDYGLjs.StripePriceFields; exports.StripePriceModule = _chunk5PNDDYGLjs.StripePriceModule; exports.StripePriceService = _chunk5PNDDYGLjs.StripePriceService; exports.StripeProduct = _chunk5PNDDYGLjs.StripeProduct; exports.StripeProductFields = _chunk5PNDDYGLjs.StripeProductFields; exports.StripeProductModule = _chunk5PNDDYGLjs.StripeProductModule; exports.StripeProductService = _chunk5PNDDYGLjs.StripeProductService; exports.StripePromotionCode = _chunk5PNDDYGLjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk5PNDDYGLjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk5PNDDYGLjs.StripePromotionCodeService; exports.StripeSubscription = _chunk5PNDDYGLjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk5PNDDYGLjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk5PNDDYGLjs.StripeSubscriptionService; exports.StripeUsage = _chunk5PNDDYGLjs.StripeUsage; exports.StripeUsageModule = _chunk5PNDDYGLjs.StripeUsageModule; exports.StripeUsageService = _chunk5PNDDYGLjs.StripeUsageService; exports.SubscriptionStatus = _chunk5PNDDYGLjs.SubscriptionStatus; exports.TableOptions = _chunk5PNDDYGLjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunk5PNDDYGLjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunk5PNDDYGLjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunk5PNDDYGLjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunk5PNDDYGLjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk5PNDDYGLjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk5PNDDYGLjs.TotpSetup; exports.TotpSetupModule = _chunk5PNDDYGLjs.TotpSetupModule; exports.TotpVerify = _chunk5PNDDYGLjs.TotpVerify; exports.TotpVerifyLogin = _chunk5PNDDYGLjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk5PNDDYGLjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk5PNDDYGLjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk5PNDDYGLjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk5PNDDYGLjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk5PNDDYGLjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk5PNDDYGLjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk5PNDDYGLjs.TwoFactorService; exports.TwoFactorStatus = _chunk5PNDDYGLjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk5PNDDYGLjs.TwoFactorStatusModule; exports.User = _chunk5PNDDYGLjs.User; exports.UserFields = _chunk5PNDDYGLjs.UserFields; exports.UserModule = _chunk5PNDDYGLjs.UserModule; exports.UserService = _chunk5PNDDYGLjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunk5PNDDYGLjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunk5PNDDYGLjs.Waitlist; exports.WaitlistFields = _chunk5PNDDYGLjs.WaitlistFields; exports.WaitlistModule = _chunk5PNDDYGLjs.WaitlistModule; exports.WaitlistService = _chunk5PNDDYGLjs.WaitlistService; exports.WaitlistStats = _chunk5PNDDYGLjs.WaitlistStats; exports.WaitlistStatsModule = _chunk5PNDDYGLjs.WaitlistStatsModule; exports.analyticsModules = _chunk5PNDDYGLjs.analyticsModules; exports.checkPermissions = _chunk5PNDDYGLjs.checkPermissions; exports.checkPermissionsFromServer = _chunk5PNDDYGLjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunk5PNDDYGLjs.clearLastApiMeta; exports.clearLastApiTotal = _chunk5PNDDYGLjs.clearLastApiTotal; exports.cn = _chunk5PNDDYGLjs.cn; exports.composeRefs = _chunk5PNDDYGLjs.composeRefs; exports.configureAuth = _chunk5PNDDYGLjs.configureAuth; exports.configureI18n = _chunk5PNDDYGLjs.configureI18n; exports.configureJsonApi = _chunk7ZRQOLSVjs.configureJsonApi; exports.configureLogin = _chunk7ZRQOLSVjs.configureLogin; exports.configureReferral = _chunk7ZRQOLSVjs.configureReferral; exports.configureRoles = _chunkG4JR3SFVjs.configureRoles; exports.configureTokenUsage = _chunk5PNDDYGLjs.configureTokenUsage; exports.configureWaitlist = _chunk7ZRQOLSVjs.configureWaitlist; exports.createJsonApiInclusion = _chunk5PNDDYGLjs.createJsonApiInclusion; exports.dismissToast = _chunk5PNDDYGLjs.dismissToast; exports.entityObjectSchema = _chunk5PNDDYGLjs.entityObjectSchema; exports.exists = _chunk5PNDDYGLjs.exists; exports.formatCodiceFiscale = _chunk5PNDDYGLjs.formatCodiceFiscale; exports.formatDate = _chunk5PNDDYGLjs.formatDate; exports.formatLocalDate = _chunk5PNDDYGLjs.formatLocalDate; exports.formatPartitaIva = _chunk5PNDDYGLjs.formatPartitaIva; exports.getApiUrl = _chunk7ZRQOLSVjs.getApiUrl; exports.getAppUrl = _chunk7ZRQOLSVjs.getAppUrl; exports.getBootstrapper = _chunkGHE4VT2Rjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk5PNDDYGLjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk5PNDDYGLjs.getGlobalErrorHandler; exports.getIcon = _chunk5PNDDYGLjs.getIcon; exports.getIconByModule = _chunk5PNDDYGLjs.getIconByModule; exports.getIconByModuleName = _chunk5PNDDYGLjs.getIconByModuleName; exports.getInitials = _chunk5PNDDYGLjs.getInitials; exports.getLastApiMeta = _chunk5PNDDYGLjs.getLastApiMeta; exports.getLastApiTotal = _chunk5PNDDYGLjs.getLastApiTotal; exports.getLucideIcon = _chunk5PNDDYGLjs.getLucideIcon; exports.getLucideIconByModule = _chunk5PNDDYGLjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk5PNDDYGLjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk7ZRQOLSVjs.getPublicApiUrl; exports.getReferralConfig = _chunk7ZRQOLSVjs.getReferralConfig; exports.getRoleId = _chunkG4JR3SFVjs.getRoleId; exports.getStripePublishableKey = _chunk7ZRQOLSVjs.getStripePublishableKey; exports.getTableComponents = _chunk5PNDDYGLjs.getTableComponents; exports.getTableOptions = _chunk5PNDDYGLjs.getTableOptions; exports.getTokenHandler = _chunk5PNDDYGLjs.getTokenHandler; exports.getTokenUsageCurrency = _chunk5PNDDYGLjs.getTokenUsageCurrency; exports.getTrackablePages = _chunk7ZRQOLSVjs.getTrackablePages; exports.getValueFromPath = _chunk5PNDDYGLjs.getValueFromPath; exports.getWaitlistConfig = _chunk7ZRQOLSVjs.getWaitlistConfig; exports.handbookPageContent = _chunk5PNDDYGLjs.handbookPageContent; exports.handbookPageSummary = _chunk5PNDDYGLjs.handbookPageSummary; exports.handbookPageTitle = _chunk5PNDDYGLjs.handbookPageTitle; exports.handbookSectionSummary = _chunk5PNDDYGLjs.handbookSectionSummary; exports.handbookSectionTitle = _chunk5PNDDYGLjs.handbookSectionTitle; exports.hasBootstrapper = _chunkGHE4VT2Rjs.hasBootstrapper; exports.isReferralEnabled = _chunk7ZRQOLSVjs.isReferralEnabled; exports.isRemoteImageSrc = _chunk5PNDDYGLjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkG4JR3SFVjs.isRolesConfigured; exports.rehydrate = _chunk5PNDDYGLjs.rehydrate; exports.rehydrateList = _chunk5PNDDYGLjs.rehydrateList; exports.resetBootstrapStore = _chunkGHE4VT2Rjs.resetBootstrapStore; exports.setBootstrapper = _chunkGHE4VT2Rjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk5PNDDYGLjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk5PNDDYGLjs.setGlobalErrorHandler; exports.showCustomToast = _chunk5PNDDYGLjs.showCustomToast; exports.showError = _chunk5PNDDYGLjs.showError; exports.showToast = _chunk5PNDDYGLjs.showToast; exports.tokenUsageModules = _chunk5PNDDYGLjs.tokenUsageModules; exports.translateData = _chunkGHE4VT2Rjs.translateData; exports.translateResponse = _chunkGHE4VT2Rjs.translateResponse; exports.tryBootstrap = _chunkGHE4VT2Rjs.tryBootstrap; exports.useComposedRefs = _chunk5PNDDYGLjs.useComposedRefs; exports.useIsMobile = _chunk5PNDDYGLjs.useIsMobile; exports.userObjectSchema = _chunk5PNDDYGLjs.userObjectSchema; exports.validateCodiceFiscale = _chunk5PNDDYGLjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunk5PNDDYGLjs.validateItalianTaxCode; exports.validatePartitaIva = _chunk5PNDDYGLjs.validatePartitaIva;
524
+ exports.ACTION_TYPES = _chunkWQ77CUUZjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk4BZJ4LABjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk4BZJ4LABjs.AbstractApiData; exports.AbstractService = _chunk4BZJ4LABjs.AbstractService; exports.Action = _chunk4BZJ4LABjs.Action; exports.AiConnection = _chunk4BZJ4LABjs.AiConnection; exports.AiConnectionFields = _chunk4BZJ4LABjs.AiConnectionFields; exports.AiConnectionModule = _chunk4BZJ4LABjs.AiConnectionModule; exports.AiConnectionService = _chunk4BZJ4LABjs.AiConnectionService; exports.Assistant = _chunk4BZJ4LABjs.Assistant; exports.AssistantAction = _chunk4BZJ4LABjs.AssistantAction; exports.AssistantActionModule = _chunk4BZJ4LABjs.AssistantActionModule; exports.AssistantActionService = _chunk4BZJ4LABjs.AssistantActionService; exports.AssistantMessage = _chunk4BZJ4LABjs.AssistantMessage; exports.AssistantMessageModule = _chunk4BZJ4LABjs.AssistantMessageModule; exports.AssistantMessageService = _chunk4BZJ4LABjs.AssistantMessageService; exports.AssistantModule = _chunk4BZJ4LABjs.AssistantModule; exports.AssistantService = _chunk4BZJ4LABjs.AssistantService; exports.AuditLog = _chunk4BZJ4LABjs.AuditLog; exports.AuditLogModule = _chunk4BZJ4LABjs.AuditLogModule; exports.AuditLogService = _chunk4BZJ4LABjs.AuditLogService; exports.Auth = _chunk4BZJ4LABjs.Auth; exports.AuthComponent = _chunk4BZJ4LABjs.AuthComponent; exports.AuthModule = _chunk4BZJ4LABjs.AuthModule; exports.AuthService = _chunk4BZJ4LABjs.AuthService; exports.AuthorModule = _chunk4BZJ4LABjs.AuthorModule; exports.BackupCodeVerify = _chunk4BZJ4LABjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk4BZJ4LABjs.BackupCodeVerifyModule; exports.Billing = _chunk4BZJ4LABjs.Billing; exports.BillingModule = _chunk4BZJ4LABjs.BillingModule; exports.BillingService = _chunk4BZJ4LABjs.BillingService; exports.BlockNoteDiffUtil = _chunk4BZJ4LABjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk4BZJ4LABjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkWQ77CUUZjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunk4BZJ4LABjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunk4BZJ4LABjs.Chunk; exports.ChunkModule = _chunk4BZJ4LABjs.ChunkModule; exports.ClientAbstractService = _chunk4BZJ4LABjs.ClientAbstractService; exports.ClientHttpMethod = _chunk4BZJ4LABjs.ClientHttpMethod; exports.Company = _chunk4BZJ4LABjs.Company; exports.CompanyFields = _chunk4BZJ4LABjs.CompanyFields; exports.CompanyModule = _chunk4BZJ4LABjs.CompanyModule; exports.CompanyService = _chunk4BZJ4LABjs.CompanyService; exports.Content = _chunk4BZJ4LABjs.Content; exports.ContentFields = _chunk4BZJ4LABjs.ContentFields; exports.ContentModule = _chunk4BZJ4LABjs.ContentModule; exports.ContentService = _chunk4BZJ4LABjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk4BZJ4LABjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkGHE4VT2Rjs.DataClassRegistry; exports.DataClassRegistry = _chunkGHE4VT2Rjs.DataClassRegistry; exports.ENV = _chunkGHE4VT2Rjs.ENV; exports.EndpointCreator = _chunk4BZJ4LABjs.EndpointCreator; exports.EntityAiStatus = _chunk4BZJ4LABjs.EntityAiStatus; exports.Feature = _chunk4BZJ4LABjs.Feature; exports.FeatureModule = _chunk4BZJ4LABjs.FeatureModule; exports.FeatureService = _chunk4BZJ4LABjs.FeatureService; exports.HandbookPage = _chunk4BZJ4LABjs.HandbookPage; exports.HandbookPageFields = _chunk4BZJ4LABjs.HandbookPageFields; exports.HandbookPageModule = _chunk4BZJ4LABjs.HandbookPageModule; exports.HandbookPageService = _chunk4BZJ4LABjs.HandbookPageService; exports.HandbookSection = _chunk4BZJ4LABjs.HandbookSection; exports.HandbookSectionModule = _chunk4BZJ4LABjs.HandbookSectionModule; exports.HandbookSectionService = _chunk4BZJ4LABjs.HandbookSectionService; exports.HandbookThread = _chunk4BZJ4LABjs.HandbookThread; exports.HandbookThreadMessage = _chunk4BZJ4LABjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunk4BZJ4LABjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunk4BZJ4LABjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunk4BZJ4LABjs.HandbookThreadModule; exports.HandbookThreadService = _chunk4BZJ4LABjs.HandbookThreadService; exports.HowTo = _chunk4BZJ4LABjs.HowTo; exports.HowToFields = _chunk4BZJ4LABjs.HowToFields; exports.HowToModule = _chunk4BZJ4LABjs.HowToModule; exports.HowToService = _chunk4BZJ4LABjs.HowToService; exports.HttpMethod = _chunk4BZJ4LABjs.HttpMethod; exports.InvoiceStatus = _chunk4BZJ4LABjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkGHE4VT2Rjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunk4BZJ4LABjs.MOBILE_BREAKPOINT; exports.Module = _chunk4BZJ4LABjs.Module; exports.ModuleModule = _chunk4BZJ4LABjs.ModuleModule; exports.ModulePaths = _chunk4BZJ4LABjs.ModulePaths; exports.ModulePathsModule = _chunk4BZJ4LABjs.ModulePathsModule; exports.ModuleRegistrar = _chunk4BZJ4LABjs.ModuleRegistrar; exports.ModuleRegistry = _chunk4BZJ4LABjs.ModuleRegistry; exports.Modules = _chunk4BZJ4LABjs.Modules; exports.Notification = _chunk4BZJ4LABjs.Notification; exports.NotificationFields = _chunk4BZJ4LABjs.NotificationFields; exports.NotificationModule = _chunk4BZJ4LABjs.NotificationModule; exports.NotificationService = _chunk4BZJ4LABjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk4BZJ4LABjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk4BZJ4LABjs.OAuthClient; exports.OAuthModule = _chunk4BZJ4LABjs.OAuthModule; exports.OAuthService = _chunk4BZJ4LABjs.OAuthService; exports.Passkey = _chunk4BZJ4LABjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk4BZJ4LABjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk4BZJ4LABjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk4BZJ4LABjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk4BZJ4LABjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk4BZJ4LABjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk4BZJ4LABjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk4BZJ4LABjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk4BZJ4LABjs.PasskeyRename; exports.PasskeyRenameModule = _chunk4BZJ4LABjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk4BZJ4LABjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk4BZJ4LABjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk4BZJ4LABjs.PaymentMethod; exports.PermissionMapping = _chunk4BZJ4LABjs.PermissionMapping; exports.PermissionMappingModule = _chunk4BZJ4LABjs.PermissionMappingModule; exports.Push = _chunk4BZJ4LABjs.Push; exports.PushModule = _chunk4BZJ4LABjs.PushModule; exports.PushService = _chunk4BZJ4LABjs.PushService; exports.RbacMatrixModel = _chunk4BZJ4LABjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk4BZJ4LABjs.RbacMatrixModule; exports.RbacService = _chunkWQ77CUUZjs.RbacService; exports.ReferralModule = _chunk4BZJ4LABjs.ReferralModule; exports.ReferralService = _chunk4BZJ4LABjs.ReferralService; exports.ReferralStats = _chunk4BZJ4LABjs.ReferralStats; exports.ReferralStatsModule = _chunk4BZJ4LABjs.ReferralStatsModule; exports.RehydrationFactory = _chunk4BZJ4LABjs.RehydrationFactory; exports.Role = _chunk4BZJ4LABjs.Role; exports.RoleFields = _chunk4BZJ4LABjs.RoleFields; exports.RoleModule = _chunk4BZJ4LABjs.RoleModule; exports.RoleService = _chunk4BZJ4LABjs.RoleService; exports.S3 = _chunk4BZJ4LABjs.S3; exports.S3Module = _chunk4BZJ4LABjs.S3Module; exports.S3Service = _chunk4BZJ4LABjs.S3Service; exports.StripeCustomer = _chunk4BZJ4LABjs.StripeCustomer; exports.StripeCustomerModule = _chunk4BZJ4LABjs.StripeCustomerModule; exports.StripeCustomerService = _chunk4BZJ4LABjs.StripeCustomerService; exports.StripeInvoice = _chunk4BZJ4LABjs.StripeInvoice; exports.StripeInvoiceModule = _chunk4BZJ4LABjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk4BZJ4LABjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk4BZJ4LABjs.StripePaymentMethodModule; exports.StripePrice = _chunk4BZJ4LABjs.StripePrice; exports.StripePriceFields = _chunk4BZJ4LABjs.StripePriceFields; exports.StripePriceModule = _chunk4BZJ4LABjs.StripePriceModule; exports.StripePriceService = _chunk4BZJ4LABjs.StripePriceService; exports.StripeProduct = _chunk4BZJ4LABjs.StripeProduct; exports.StripeProductFields = _chunk4BZJ4LABjs.StripeProductFields; exports.StripeProductModule = _chunk4BZJ4LABjs.StripeProductModule; exports.StripeProductService = _chunk4BZJ4LABjs.StripeProductService; exports.StripePromotionCode = _chunk4BZJ4LABjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk4BZJ4LABjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk4BZJ4LABjs.StripePromotionCodeService; exports.StripeSubscription = _chunk4BZJ4LABjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk4BZJ4LABjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk4BZJ4LABjs.StripeSubscriptionService; exports.StripeUsage = _chunk4BZJ4LABjs.StripeUsage; exports.StripeUsageModule = _chunk4BZJ4LABjs.StripeUsageModule; exports.StripeUsageService = _chunk4BZJ4LABjs.StripeUsageService; exports.SubscriptionStatus = _chunk4BZJ4LABjs.SubscriptionStatus; exports.TableOptions = _chunk4BZJ4LABjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunk4BZJ4LABjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunk4BZJ4LABjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunk4BZJ4LABjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunk4BZJ4LABjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk4BZJ4LABjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk4BZJ4LABjs.TotpSetup; exports.TotpSetupModule = _chunk4BZJ4LABjs.TotpSetupModule; exports.TotpVerify = _chunk4BZJ4LABjs.TotpVerify; exports.TotpVerifyLogin = _chunk4BZJ4LABjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk4BZJ4LABjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk4BZJ4LABjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk4BZJ4LABjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk4BZJ4LABjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk4BZJ4LABjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk4BZJ4LABjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk4BZJ4LABjs.TwoFactorService; exports.TwoFactorStatus = _chunk4BZJ4LABjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk4BZJ4LABjs.TwoFactorStatusModule; exports.User = _chunk4BZJ4LABjs.User; exports.UserFields = _chunk4BZJ4LABjs.UserFields; exports.UserModule = _chunk4BZJ4LABjs.UserModule; exports.UserService = _chunk4BZJ4LABjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunk4BZJ4LABjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunk4BZJ4LABjs.Waitlist; exports.WaitlistFields = _chunk4BZJ4LABjs.WaitlistFields; exports.WaitlistModule = _chunk4BZJ4LABjs.WaitlistModule; exports.WaitlistService = _chunk4BZJ4LABjs.WaitlistService; exports.WaitlistStats = _chunk4BZJ4LABjs.WaitlistStats; exports.WaitlistStatsModule = _chunk4BZJ4LABjs.WaitlistStatsModule; exports.analyticsModules = _chunk4BZJ4LABjs.analyticsModules; exports.checkPermissions = _chunk4BZJ4LABjs.checkPermissions; exports.checkPermissionsFromServer = _chunk4BZJ4LABjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunk4BZJ4LABjs.clearLastApiMeta; exports.clearLastApiTotal = _chunk4BZJ4LABjs.clearLastApiTotal; exports.cn = _chunk4BZJ4LABjs.cn; exports.composeRefs = _chunk4BZJ4LABjs.composeRefs; exports.configureAuth = _chunk4BZJ4LABjs.configureAuth; exports.configureI18n = _chunk4BZJ4LABjs.configureI18n; exports.configureJsonApi = _chunkWQ77CUUZjs.configureJsonApi; exports.configureLogin = _chunkWQ77CUUZjs.configureLogin; exports.configureReferral = _chunkWQ77CUUZjs.configureReferral; exports.configureRoles = _chunkG4JR3SFVjs.configureRoles; exports.configureTokenUsage = _chunk4BZJ4LABjs.configureTokenUsage; exports.configureWaitlist = _chunkWQ77CUUZjs.configureWaitlist; exports.createJsonApiInclusion = _chunk4BZJ4LABjs.createJsonApiInclusion; exports.dismissToast = _chunk4BZJ4LABjs.dismissToast; exports.entityObjectSchema = _chunk4BZJ4LABjs.entityObjectSchema; exports.exists = _chunk4BZJ4LABjs.exists; exports.formatCodiceFiscale = _chunk4BZJ4LABjs.formatCodiceFiscale; exports.formatDate = _chunk4BZJ4LABjs.formatDate; exports.formatLocalDate = _chunk4BZJ4LABjs.formatLocalDate; exports.formatPartitaIva = _chunk4BZJ4LABjs.formatPartitaIva; exports.getApiUrl = _chunkWQ77CUUZjs.getApiUrl; exports.getAppUrl = _chunkWQ77CUUZjs.getAppUrl; exports.getBootstrapper = _chunkGHE4VT2Rjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk4BZJ4LABjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk4BZJ4LABjs.getGlobalErrorHandler; exports.getIcon = _chunk4BZJ4LABjs.getIcon; exports.getIconByModule = _chunk4BZJ4LABjs.getIconByModule; exports.getIconByModuleName = _chunk4BZJ4LABjs.getIconByModuleName; exports.getInitials = _chunk4BZJ4LABjs.getInitials; exports.getLastApiMeta = _chunk4BZJ4LABjs.getLastApiMeta; exports.getLastApiTotal = _chunk4BZJ4LABjs.getLastApiTotal; exports.getLucideIcon = _chunk4BZJ4LABjs.getLucideIcon; exports.getLucideIconByModule = _chunk4BZJ4LABjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk4BZJ4LABjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkWQ77CUUZjs.getPublicApiUrl; exports.getReferralConfig = _chunkWQ77CUUZjs.getReferralConfig; exports.getRoleId = _chunkG4JR3SFVjs.getRoleId; exports.getStripePublishableKey = _chunkWQ77CUUZjs.getStripePublishableKey; exports.getTableComponents = _chunk4BZJ4LABjs.getTableComponents; exports.getTableOptions = _chunk4BZJ4LABjs.getTableOptions; exports.getTokenHandler = _chunk4BZJ4LABjs.getTokenHandler; exports.getTokenUsageCurrency = _chunk4BZJ4LABjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkWQ77CUUZjs.getTrackablePages; exports.getValueFromPath = _chunk4BZJ4LABjs.getValueFromPath; exports.getWaitlistConfig = _chunkWQ77CUUZjs.getWaitlistConfig; exports.handbookPageContent = _chunk4BZJ4LABjs.handbookPageContent; exports.handbookPageSummary = _chunk4BZJ4LABjs.handbookPageSummary; exports.handbookPageTitle = _chunk4BZJ4LABjs.handbookPageTitle; exports.handbookSectionSummary = _chunk4BZJ4LABjs.handbookSectionSummary; exports.handbookSectionTitle = _chunk4BZJ4LABjs.handbookSectionTitle; exports.hasBootstrapper = _chunkGHE4VT2Rjs.hasBootstrapper; exports.isReferralEnabled = _chunkWQ77CUUZjs.isReferralEnabled; exports.isRemoteImageSrc = _chunk4BZJ4LABjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkG4JR3SFVjs.isRolesConfigured; exports.rehydrate = _chunk4BZJ4LABjs.rehydrate; exports.rehydrateList = _chunk4BZJ4LABjs.rehydrateList; exports.resetBootstrapStore = _chunkGHE4VT2Rjs.resetBootstrapStore; exports.setBootstrapper = _chunkGHE4VT2Rjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk4BZJ4LABjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk4BZJ4LABjs.setGlobalErrorHandler; exports.showCustomToast = _chunk4BZJ4LABjs.showCustomToast; exports.showError = _chunk4BZJ4LABjs.showError; exports.showToast = _chunk4BZJ4LABjs.showToast; exports.tokenUsageModules = _chunk4BZJ4LABjs.tokenUsageModules; exports.translateData = _chunkGHE4VT2Rjs.translateData; exports.translateResponse = _chunkGHE4VT2Rjs.translateResponse; exports.tryBootstrap = _chunkGHE4VT2Rjs.tryBootstrap; exports.useComposedRefs = _chunk4BZJ4LABjs.useComposedRefs; exports.useIsMobile = _chunk4BZJ4LABjs.useIsMobile; exports.userObjectSchema = _chunk4BZJ4LABjs.userObjectSchema; exports.validateCodiceFiscale = _chunk4BZJ4LABjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunk4BZJ4LABjs.validateItalianTaxCode; exports.validatePartitaIva = _chunk4BZJ4LABjs.validatePartitaIva;
525
525
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  getTrackablePages,
15
15
  getWaitlistConfig,
16
16
  isReferralEnabled
17
- } from "./chunk-XTOEN5GN.mjs";
17
+ } from "./chunk-ZO3QQ5CQ.mjs";
18
18
  import {
19
19
  configureRoles,
20
20
  getRoleId,
@@ -248,7 +248,7 @@ import {
248
248
  validateCodiceFiscale,
249
249
  validateItalianTaxCode,
250
250
  validatePartitaIva
251
- } from "./chunk-Z3226FM6.mjs";
251
+ } from "./chunk-ZZ6E33FO.mjs";
252
252
  import "./chunk-AUXK7QSA.mjs";
253
253
  import "./chunk-PI56A4DG.mjs";
254
254
  import {
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkDYTKNSHYjs = require('../chunk-DYTKNSHY.js');
15
+ var _chunkKS6WZP2Ejs = require('../chunk-KS6WZP2E.js');
16
16
 
17
17
 
18
18
  var _chunkYUO55Q5Ajs = require('../chunk-YUO55Q5A.js');
@@ -33,7 +33,7 @@ require('../chunk-G4JR3SFV.js');
33
33
 
34
34
 
35
35
 
36
- var _chunk5PNDDYGLjs = require('../chunk-5PNDDYGL.js');
36
+ var _chunk4BZJ4LABjs = require('../chunk-4BZJ4LAB.js');
37
37
  require('../chunk-LXKSUWAV.js');
38
38
  require('../chunk-JTPRJNT2.js');
39
39
  require('../chunk-GHE4VT2R.js');
@@ -64,5 +64,5 @@ require('../chunk-7QVYU63E.js');
64
64
 
65
65
 
66
66
 
67
- exports.CACHE_PROFILES = _chunkIK65TDQHjs.CACHE_PROFILES; exports.ServerAuthService = _chunk5PNDDYGLjs.AuthService; exports.ServerCompanyService = _chunk5PNDDYGLjs.CompanyService; exports.ServerContentService = _chunk5PNDDYGLjs.ContentService; exports.ServerFeatureService = _chunk5PNDDYGLjs.FeatureService; exports.ServerJsonApiDelete = _chunkDYTKNSHYjs.ServerJsonApiDelete; exports.ServerJsonApiGet = _chunkDYTKNSHYjs.ServerJsonApiGet; exports.ServerJsonApiPatch = _chunkDYTKNSHYjs.ServerJsonApiPatch; exports.ServerJsonApiPost = _chunkDYTKNSHYjs.ServerJsonApiPost; exports.ServerJsonApiPut = _chunkDYTKNSHYjs.ServerJsonApiPut; exports.ServerNotificationService = _chunk5PNDDYGLjs.NotificationService; exports.ServerPushService = _chunk5PNDDYGLjs.PushService; exports.ServerRoleService = _chunk5PNDDYGLjs.RoleService; exports.ServerS3Service = _chunk5PNDDYGLjs.S3Service; exports.ServerSession = _chunkDYTKNSHYjs.ServerSession; exports.ServerUserService = _chunk5PNDDYGLjs.UserService; exports.configureServerJsonApi = _chunkDYTKNSHYjs.configureServerJsonApi; exports.getServerApiUrl = _chunkDYTKNSHYjs.getServerApiUrl; exports.getServerAppUrl = _chunkDYTKNSHYjs.getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = _chunkDYTKNSHYjs.getServerTrackablePages; exports.invalidateCacheTag = _chunkDYTKNSHYjs.invalidateCacheTag; exports.invalidateCacheTags = _chunkDYTKNSHYjs.invalidateCacheTags; exports.serverRequest = _chunk6TUB7Y6Tjs.serverRequest; exports.updateCacheTag = _chunkDYTKNSHYjs.updateCacheTag;
67
+ exports.CACHE_PROFILES = _chunkIK65TDQHjs.CACHE_PROFILES; exports.ServerAuthService = _chunk4BZJ4LABjs.AuthService; exports.ServerCompanyService = _chunk4BZJ4LABjs.CompanyService; exports.ServerContentService = _chunk4BZJ4LABjs.ContentService; exports.ServerFeatureService = _chunk4BZJ4LABjs.FeatureService; exports.ServerJsonApiDelete = _chunkKS6WZP2Ejs.ServerJsonApiDelete; exports.ServerJsonApiGet = _chunkKS6WZP2Ejs.ServerJsonApiGet; exports.ServerJsonApiPatch = _chunkKS6WZP2Ejs.ServerJsonApiPatch; exports.ServerJsonApiPost = _chunkKS6WZP2Ejs.ServerJsonApiPost; exports.ServerJsonApiPut = _chunkKS6WZP2Ejs.ServerJsonApiPut; exports.ServerNotificationService = _chunk4BZJ4LABjs.NotificationService; exports.ServerPushService = _chunk4BZJ4LABjs.PushService; exports.ServerRoleService = _chunk4BZJ4LABjs.RoleService; exports.ServerS3Service = _chunk4BZJ4LABjs.S3Service; exports.ServerSession = _chunkKS6WZP2Ejs.ServerSession; exports.ServerUserService = _chunk4BZJ4LABjs.UserService; exports.configureServerJsonApi = _chunkKS6WZP2Ejs.configureServerJsonApi; exports.getServerApiUrl = _chunkKS6WZP2Ejs.getServerApiUrl; exports.getServerAppUrl = _chunkKS6WZP2Ejs.getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = _chunkKS6WZP2Ejs.getServerTrackablePages; exports.invalidateCacheTag = _chunkKS6WZP2Ejs.invalidateCacheTag; exports.invalidateCacheTags = _chunkKS6WZP2Ejs.invalidateCacheTags; exports.serverRequest = _chunk6TUB7Y6Tjs.serverRequest; exports.updateCacheTag = _chunkKS6WZP2Ejs.updateCacheTag;
68
68
  //# sourceMappingURL=index.js.map
@@ -12,7 +12,7 @@ import {
12
12
  invalidateCacheTag,
13
13
  invalidateCacheTags,
14
14
  updateCacheTag
15
- } from "../chunk-IOG22OAO.mjs";
15
+ } from "../chunk-46S3KPLU.mjs";
16
16
  import {
17
17
  getServerToken
18
18
  } from "../chunk-F5UNXZ3J.mjs";
@@ -33,7 +33,7 @@ import {
33
33
  RoleService,
34
34
  S3Service,
35
35
  UserService
36
- } from "../chunk-Z3226FM6.mjs";
36
+ } from "../chunk-ZZ6E33FO.mjs";
37
37
  import "../chunk-AUXK7QSA.mjs";
38
38
  import "../chunk-PI56A4DG.mjs";
39
39
  import "../chunk-V5MI7RNB.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -0,0 +1,54 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import {
3
+ DEFAULT_SLOW_TEST_MS,
4
+ formatSlowTests,
5
+ resolveSlowTestThreshold,
6
+ type SlowTestEntry,
7
+ } from "../vitest.slow-tests.reporter";
8
+
9
+ const entry = (name: string, durationMs: number, file = "src/a.spec.ts"): SlowTestEntry => ({ file, name, durationMs });
10
+
11
+ describe("formatSlowTests", () => {
12
+ it("returns nothing when no test exceeds the threshold", () => {
13
+ expect(formatSlowTests([entry("fast", 10), entry("at threshold", 1000)], 1000)).toEqual([]);
14
+ });
15
+
16
+ it("lists only tests above the threshold, slowest first, with file, name and duration", () => {
17
+ const lines = formatSlowTests(
18
+ [entry("a", 1500), entry("fast", 20), entry("b", 4200.6, "src/b.spec.ts"), entry("c", 1001)],
19
+ 1000,
20
+ );
21
+
22
+ expect(lines).toEqual([
23
+ "Slow tests (> 1000 ms): 3",
24
+ " 4201 ms src/b.spec.ts > b",
25
+ " 1500 ms src/a.spec.ts > a",
26
+ " 1001 ms src/a.spec.ts > c",
27
+ ]);
28
+ });
29
+
30
+ it("caps the list and counts the rest", () => {
31
+ const entries = Array.from({ length: 25 }, (_, i) => entry(`t${i}`, 2000 + i));
32
+ const lines = formatSlowTests(entries, 1000, 20);
33
+
34
+ expect(lines[0]).toBe("Slow tests (> 1000 ms): 25");
35
+ expect(lines).toHaveLength(1 + 20 + 1);
36
+ expect(lines[1]).toContain("t24");
37
+ expect(lines[lines.length - 1]).toBe(" ... and 5 more");
38
+ });
39
+ });
40
+
41
+ describe("resolveSlowTestThreshold", () => {
42
+ it("defaults to 1000 ms when unset, empty or invalid", () => {
43
+ expect(DEFAULT_SLOW_TEST_MS).toBe(1000);
44
+ expect(resolveSlowTestThreshold(undefined)).toBe(1000);
45
+ expect(resolveSlowTestThreshold("")).toBe(1000);
46
+ expect(resolveSlowTestThreshold("abc")).toBe(1000);
47
+ expect(resolveSlowTestThreshold("-5")).toBe(1000);
48
+ });
49
+
50
+ it("uses the env value when it is a valid number", () => {
51
+ expect(resolveSlowTestThreshold("250")).toBe(250);
52
+ expect(resolveSlowTestThreshold("0")).toBe(0);
53
+ });
54
+ });
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { Suspense } from "react";
2
3
  import { render, screen, act } from "@testing-library/react";
3
4
  import { beforeEach, describe, expect, it, vi } from "vitest";
@@ -219,6 +220,116 @@ describe("ViewportProvider with a session promise", () => {
219
220
  expect(screen.getByTestId("probe").textContent).toBe("mobile");
220
221
  });
221
222
 
223
+ it("calls use() on every render when a pending seed is replaced by a boolean while the reader is suspended", async () => {
224
+ // The sequence behind the "conditional-use-of-use" console error seen on
225
+ // /deliveries/<id> and on (admin) not-found pages:
226
+ // 1. a reader mounts while ViewportProvider's value is still the session
227
+ // promise, so useIsMobile() calls use() and suspends;
228
+ // 2. the provider's mount-time measurement replaces the promise with a
229
+ // boolean (setIsMobile) before the session settles;
230
+ // 3. the reader retries with a plain boolean. Skipping use() on that render
231
+ // makes React log "This library called use() to suspend in a previous
232
+ // render but did not call use() when it finished".
233
+ // The provider's state swap is driven by hand here so that step 2 lands
234
+ // after the suspended mount, as it does when hydration wins the race.
235
+ const ViewportContext = getViewportContext();
236
+ let swap!: (value: boolean | Promise<boolean>) => void;
237
+ function SwappingProvider({ children }: { children: React.ReactNode }) {
238
+ const [value, setValue] = React.useState<boolean | Promise<boolean>>(() => deferred<boolean>().promise);
239
+ swap = setValue;
240
+ return <ViewportContext.Provider value={value}>{children}</ViewportContext.Provider>;
241
+ }
242
+
243
+ const errorSpy = vi.spyOn(console, "error").mockImplementation(() => {});
244
+ try {
245
+ await act(async () => {
246
+ render(
247
+ <SwappingProvider>
248
+ <Suspense fallback="waiting">
249
+ <Probe />
250
+ </Suspense>
251
+ </SwappingProvider>,
252
+ );
253
+ });
254
+ expect(screen.queryByText("waiting")).not.toBeNull();
255
+
256
+ await act(async () => {
257
+ swap(true);
258
+ });
259
+
260
+ expect(screen.getByTestId("probe").textContent).toBe("mobile");
261
+ expect(errorSpy).not.toHaveBeenCalled();
262
+ } finally {
263
+ errorSpy.mockRestore();
264
+ }
265
+ });
266
+
267
+ it("lets the provider's measurement win over a session seed that settles later, without console errors", async () => {
268
+ setWidth(500);
269
+ const errorSpy = vi.spyOn(console, "error").mockImplementation(() => {});
270
+ try {
271
+ const pending = deferred<SessionSnapshot>();
272
+ await act(async () => {
273
+ render(
274
+ <ViewportProvider session={pending.promise}>
275
+ <Suspense fallback="waiting">
276
+ <Probe />
277
+ </Suspense>
278
+ </ViewportProvider>,
279
+ );
280
+ });
281
+ expect(screen.getByTestId("probe").textContent).toBe("mobile");
282
+
283
+ await act(async () => {
284
+ pending.resolve(snapshot(false));
285
+ await pending.promise;
286
+ });
287
+
288
+ expect(screen.getByTestId("probe").textContent).toBe("mobile");
289
+ expect(errorSpy).not.toHaveBeenCalled();
290
+ } finally {
291
+ errorSpy.mockRestore();
292
+ }
293
+ });
294
+
295
+ it("keeps calling use() when the context value goes from a boolean to a promise", async () => {
296
+ // The reverse switch: a reader mounted on a boolean still suspends on, and
297
+ // then reads, a promise that replaces it.
298
+ setWidth(1280);
299
+ const ViewportContext = getViewportContext();
300
+ const errorSpy = vi.spyOn(console, "error").mockImplementation(() => {});
301
+ try {
302
+ const pending = deferred<boolean>();
303
+ const { rerender } = render(
304
+ <ViewportContext.Provider value={false}>
305
+ <Suspense fallback="waiting">
306
+ <Probe />
307
+ </Suspense>
308
+ </ViewportContext.Provider>,
309
+ );
310
+ expect(screen.getByTestId("probe").textContent).toBe("desktop");
311
+
312
+ await act(async () => {
313
+ rerender(
314
+ <ViewportContext.Provider value={pending.promise}>
315
+ <Suspense fallback="waiting">
316
+ <Probe />
317
+ </Suspense>
318
+ </ViewportContext.Provider>,
319
+ );
320
+ });
321
+ await act(async () => {
322
+ pending.resolve(true);
323
+ await pending.promise;
324
+ });
325
+
326
+ expect(screen.getByTestId("probe").textContent).toBe("mobile");
327
+ expect(errorSpy).not.toHaveBeenCalled();
328
+ } finally {
329
+ errorSpy.mockRestore();
330
+ }
331
+ });
332
+
222
333
  it("ViewportProvider with initialIsMobile is unchanged", () => {
223
334
  setWidth(1280);
224
335
  const seen: string[] = [];
@@ -70,11 +70,40 @@ export function subscribeViewport(onChange: () => void): () => void {
70
70
  return () => mql.removeEventListener("change", onChange);
71
71
  }
72
72
 
73
+ type SettledThenable<T> = Promise<T> & { status: "fulfilled"; value: T };
74
+
75
+ /**
76
+ * A promise React reads synchronously: `use()` sees `status: "fulfilled"` and
77
+ * returns `value` without suspending. Created lazily, one per value, so the
78
+ * identity is stable across renders.
79
+ */
80
+ const settledViewportValues = new Map<boolean | undefined, SettledThenable<boolean | undefined>>();
81
+
82
+ function settled(value: boolean | undefined): SettledThenable<boolean | undefined> {
83
+ let thenable = settledViewportValues.get(value);
84
+ if (thenable === undefined) {
85
+ thenable = Object.assign(Promise.resolve(value), { status: "fulfilled" as const, value });
86
+ settledViewportValues.set(value, thenable);
87
+ }
88
+ return thenable;
89
+ }
90
+
91
+ function isThenable(value: ViewportContextValue): value is Promise<boolean> {
92
+ return typeof value === "object" && value !== null && typeof (value as PromiseLike<boolean>).then === "function";
93
+ }
94
+
73
95
  export function useIsMobile(): boolean {
74
96
  const provided = React.useContext(getViewportContext());
75
97
  // `React.use` through the namespace import, for the same reason as
76
98
  // `createContext` above. Suspends the caller until a session seed settles.
77
- const seeded = provided instanceof Promise ? React.use(provided) : provided;
99
+ //
100
+ // `use` is called on EVERY render, never only when the value is a promise. A
101
+ // session-seeded ViewportProvider exposes a promise first and a boolean once
102
+ // its mount-time measurement lands, which can happen while a reader is
103
+ // suspended on the promise. Skipping `use` on the retry makes React report
104
+ // https://react.dev/warnings/conditional-use-of-use. A plain value is wrapped
105
+ // in an already-settled thenable, which `use` returns without suspending.
106
+ const seeded = React.use<boolean | undefined>(isThenable(provided) ? provided : settled(provided));
78
107
  const [legacy, setLegacy] = React.useState<boolean>(false);
79
108
 
80
109
  React.useEffect(() => {