@carlonicora/nextjs-jsonapi 1.28.0 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/{BlockNoteEditor-CAUNVZUF.js → BlockNoteEditor-7BDLLHRA.js} +13 -13
  2. package/dist/{BlockNoteEditor-CAUNVZUF.js.map → BlockNoteEditor-7BDLLHRA.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-EOA4OEVX.mjs → BlockNoteEditor-F5KCNLVF.mjs} +3 -3
  4. package/dist/billing/index.d.mts +47 -17
  5. package/dist/billing/index.d.ts +47 -17
  6. package/dist/billing/index.js +1241 -1073
  7. package/dist/billing/index.js.map +1 -1
  8. package/dist/billing/index.mjs +1375 -1207
  9. package/dist/billing/index.mjs.map +1 -1
  10. package/dist/{chunk-IXI4GAKB.js → chunk-7M7NPKOF.js} +490 -433
  11. package/dist/chunk-7M7NPKOF.js.map +1 -0
  12. package/dist/{chunk-ORFXBO7F.mjs → chunk-DU64WMZD.mjs} +6 -3
  13. package/dist/chunk-DU64WMZD.mjs.map +1 -0
  14. package/dist/{chunk-TSEU4KZ2.js → chunk-J22NEVSK.js} +21 -18
  15. package/dist/chunk-J22NEVSK.js.map +1 -0
  16. package/dist/{chunk-PYASRX75.mjs → chunk-YLSLXQ3O.mjs} +83 -26
  17. package/dist/chunk-YLSLXQ3O.mjs.map +1 -0
  18. package/dist/client/index.d.mts +14 -5
  19. package/dist/client/index.d.ts +14 -5
  20. package/dist/client/index.js +5 -3
  21. package/dist/client/index.js.map +1 -1
  22. package/dist/client/index.mjs +4 -2
  23. package/dist/components/index.d.mts +2 -2
  24. package/dist/components/index.d.ts +2 -2
  25. package/dist/components/index.js +3 -3
  26. package/dist/components/index.mjs +2 -2
  27. package/dist/{config-B4pZpLT9.d.ts → config-CHwoRDOp.d.ts} +1 -1
  28. package/dist/{config-DT1K-t6I.d.mts → config-DiWyJzk9.d.mts} +1 -1
  29. package/dist/{content.interface-B2Ldg0vg.d.mts → content.interface-BSpowEiW.d.mts} +1 -1
  30. package/dist/{content.interface-D8NHv3DX.d.ts → content.interface-DFQ7mkpL.d.ts} +1 -1
  31. package/dist/contexts/index.d.mts +2 -2
  32. package/dist/contexts/index.d.ts +2 -2
  33. package/dist/contexts/index.js +3 -3
  34. package/dist/contexts/index.mjs +2 -2
  35. package/dist/core/index.d.mts +39 -37
  36. package/dist/core/index.d.ts +39 -37
  37. package/dist/core/index.js +2 -2
  38. package/dist/core/index.mjs +1 -1
  39. package/dist/index.d.mts +4 -4
  40. package/dist/index.d.ts +4 -4
  41. package/dist/index.js +2 -2
  42. package/dist/index.mjs +1 -1
  43. package/dist/{notification.interface-H0L9WBge.d.ts → notification.interface-CmKmObIU.d.ts} +1 -0
  44. package/dist/{notification.interface-DEn-Yp_b.d.mts → notification.interface-D5MbtfZK.d.mts} +1 -0
  45. package/dist/{s3.service-BNytYanU.d.mts → s3.service-BMT7W6KS.d.mts} +19 -19
  46. package/dist/{s3.service-C7f_Ygz5.d.ts → s3.service-DsXo9nop.d.ts} +19 -19
  47. package/dist/server/index.d.mts +3 -3
  48. package/dist/server/index.d.ts +3 -3
  49. package/dist/server/index.js +3 -3
  50. package/dist/server/index.mjs +1 -1
  51. package/dist/{useSocket-BcnThTD0.d.mts → useSocket-DUqGoPya.d.mts} +1 -1
  52. package/dist/{useSocket-QZTOCzRF.d.ts → useSocket-QuHa0ZmO.d.ts} +1 -1
  53. package/package.json +1 -1
  54. package/src/client/index.ts +1 -0
  55. package/src/components/forms/FormSelect.tsx +2 -1
  56. package/src/components/pages/PageContentContainer.tsx +2 -2
  57. package/src/features/auth/data/auth.ts +0 -2
  58. package/src/features/billing/components/containers/BillingDashboardContainer.tsx +60 -3
  59. package/src/features/billing/stripe-customer/components/forms/PaymentMethodEditor.tsx +12 -152
  60. package/src/features/billing/stripe-customer/components/forms/PaymentMethodForm.tsx +168 -0
  61. package/src/features/billing/stripe-customer/components/forms/index.ts +1 -0
  62. package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +19 -1
  63. package/src/features/billing/stripe-product/components/forms/ProductEditor.tsx +2 -2
  64. package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +24 -235
  65. package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +7 -18
  66. package/src/features/billing/stripe-subscription/components/forms/index.ts +0 -1
  67. package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +10 -1
  68. package/src/features/billing/stripe-subscription/components/widgets/IntervalToggle.tsx +28 -0
  69. package/src/features/billing/stripe-subscription/components/widgets/ProductPricingList.tsx +128 -0
  70. package/src/features/billing/stripe-subscription/components/widgets/ProductPricingRow.tsx +54 -0
  71. package/src/features/billing/stripe-subscription/components/widgets/SubscriptionConfirmation.tsx +68 -0
  72. package/src/features/billing/stripe-subscription/components/widgets/index.ts +4 -1
  73. package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +114 -0
  74. package/src/features/billing/stripe-subscription/components/wizards/WizardProgressIndicator.tsx +66 -0
  75. package/src/features/billing/stripe-subscription/components/wizards/WizardStepPaymentMethod.tsx +32 -0
  76. package/src/features/billing/stripe-subscription/components/wizards/WizardStepPlanSelection.tsx +103 -0
  77. package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +133 -0
  78. package/src/features/billing/stripe-subscription/components/wizards/index.ts +6 -0
  79. package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +217 -0
  80. package/src/features/billing/stripe-subscription/index.ts +3 -2
  81. package/src/features/company/components/details/TokenStatusIndicator.tsx +19 -9
  82. package/src/features/company/data/company.interface.ts +2 -0
  83. package/src/features/company/data/company.ts +7 -0
  84. package/src/features/company/hooks/index.ts +1 -0
  85. package/src/features/company/hooks/useSubscriptionStatus.ts +71 -0
  86. package/src/features/user/components/forms/UserEditor.tsx +1 -1
  87. package/src/features/user/components/lists/AdminUsersList.tsx +1 -1
  88. package/src/features/user/contexts/CurrentUserContext.tsx +1 -1
  89. package/src/features/user/data/user.ts +1 -1
  90. package/dist/chunk-IXI4GAKB.js.map +0 -1
  91. package/dist/chunk-ORFXBO7F.mjs.map +0 -1
  92. package/dist/chunk-PYASRX75.mjs.map +0 -1
  93. package/dist/chunk-TSEU4KZ2.js.map +0 -1
  94. package/src/features/billing/stripe-subscription/components/forms/SubscriptionEditor.tsx +0 -331
  95. package/src/features/billing/stripe-subscription/components/widgets/PricingCardsGrid.tsx +0 -110
  96. /package/dist/{BlockNoteEditor-EOA4OEVX.mjs.map → BlockNoteEditor-F5KCNLVF.mjs.map} +0 -0
@@ -106,7 +106,7 @@
106
106
 
107
107
 
108
108
 
109
- var _chunkTSEU4KZ2js = require('../chunk-TSEU4KZ2.js');
109
+ var _chunkJ22NEVSKjs = require('../chunk-J22NEVSK.js');
110
110
  require('../chunk-LXKSUWAV.js');
111
111
  require('../chunk-IBS6NI7D.js');
112
112
 
@@ -239,5 +239,5 @@ require('../chunk-7QVYU63E.js');
239
239
 
240
240
 
241
241
 
242
- exports.AVAILABLE_OAUTH_SCOPES = _chunkTSEU4KZ2js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkTSEU4KZ2js.AbstractApiData; exports.AbstractService = _chunkTSEU4KZ2js.AbstractService; exports.Action = _chunkTSEU4KZ2js.Action; exports.Auth = _chunkTSEU4KZ2js.Auth; exports.AuthComponent = _chunkTSEU4KZ2js.AuthComponent; exports.AuthModule = _chunkTSEU4KZ2js.AuthModule; exports.AuthService = _chunkTSEU4KZ2js.AuthService; exports.AuthorModule = _chunkTSEU4KZ2js.AuthorModule; exports.Billing = _chunkTSEU4KZ2js.Billing; exports.BillingModule = _chunkTSEU4KZ2js.BillingModule; exports.BillingService = _chunkTSEU4KZ2js.BillingService; exports.BlockNoteDiffUtil = _chunkTSEU4KZ2js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkTSEU4KZ2js.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkTSEU4KZ2js.ClientAbstractService; exports.ClientHttpMethod = _chunkTSEU4KZ2js.ClientHttpMethod; exports.Company = _chunkTSEU4KZ2js.Company; exports.CompanyFields = _chunkTSEU4KZ2js.CompanyFields; exports.CompanyModule = _chunkTSEU4KZ2js.CompanyModule; exports.CompanyService = _chunkTSEU4KZ2js.CompanyService; exports.Content = _chunkTSEU4KZ2js.Content; exports.ContentFields = _chunkTSEU4KZ2js.ContentFields; exports.ContentModule = _chunkTSEU4KZ2js.ContentModule; exports.ContentService = _chunkTSEU4KZ2js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkTSEU4KZ2js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFM6WRAN5js.DataClassRegistry; exports.DataClassRegistry = _chunkFM6WRAN5js.DataClassRegistry; exports.EndpointCreator = _chunkTSEU4KZ2js.EndpointCreator; exports.Feature = _chunkTSEU4KZ2js.Feature; exports.FeatureModule = _chunkTSEU4KZ2js.FeatureModule; exports.FeatureService = _chunkTSEU4KZ2js.FeatureService; exports.HttpMethod = _chunkTSEU4KZ2js.HttpMethod; exports.InvoiceStatus = _chunkTSEU4KZ2js.InvoiceStatus; exports.JsonApiDataFactory = _chunkFM6WRAN5js.JsonApiDataFactory; exports.Module = _chunkTSEU4KZ2js.Module; exports.ModuleModule = _chunkTSEU4KZ2js.ModuleModule; exports.ModuleRegistrar = _chunkTSEU4KZ2js.ModuleRegistrar; exports.ModuleRegistry = _chunkTSEU4KZ2js.ModuleRegistry; exports.Modules = _chunkTSEU4KZ2js.Modules; exports.Notification = _chunkTSEU4KZ2js.Notification; exports.NotificationFields = _chunkTSEU4KZ2js.NotificationFields; exports.NotificationModule = _chunkTSEU4KZ2js.NotificationModule; exports.NotificationService = _chunkTSEU4KZ2js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkTSEU4KZ2js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkTSEU4KZ2js.OAuthClient; exports.OAuthModule = _chunkTSEU4KZ2js.OAuthModule; exports.OAuthService = _chunkTSEU4KZ2js.OAuthService; exports.PaymentMethod = _chunkTSEU4KZ2js.PaymentMethod; exports.Push = _chunkTSEU4KZ2js.Push; exports.PushModule = _chunkTSEU4KZ2js.PushModule; exports.PushService = _chunkTSEU4KZ2js.PushService; exports.RehydrationFactory = _chunkTSEU4KZ2js.RehydrationFactory; exports.Role = _chunkTSEU4KZ2js.Role; exports.RoleFields = _chunkTSEU4KZ2js.RoleFields; exports.RoleModule = _chunkTSEU4KZ2js.RoleModule; exports.RoleService = _chunkTSEU4KZ2js.RoleService; exports.S3 = _chunkTSEU4KZ2js.S3; exports.S3Module = _chunkTSEU4KZ2js.S3Module; exports.S3Service = _chunkTSEU4KZ2js.S3Service; exports.StripeCustomer = _chunkTSEU4KZ2js.StripeCustomer; exports.StripeCustomerModule = _chunkTSEU4KZ2js.StripeCustomerModule; exports.StripeCustomerService = _chunkTSEU4KZ2js.StripeCustomerService; exports.StripeInvoice = _chunkTSEU4KZ2js.StripeInvoice; exports.StripeInvoiceModule = _chunkTSEU4KZ2js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkTSEU4KZ2js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkTSEU4KZ2js.StripePaymentMethodModule; exports.StripePrice = _chunkTSEU4KZ2js.StripePrice; exports.StripePriceModule = _chunkTSEU4KZ2js.StripePriceModule; exports.StripePriceService = _chunkTSEU4KZ2js.StripePriceService; exports.StripeProduct = _chunkTSEU4KZ2js.StripeProduct; exports.StripeProductModule = _chunkTSEU4KZ2js.StripeProductModule; exports.StripeProductService = _chunkTSEU4KZ2js.StripeProductService; exports.StripeSubscription = _chunkTSEU4KZ2js.StripeSubscription; exports.StripeSubscriptionModule = _chunkTSEU4KZ2js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkTSEU4KZ2js.StripeSubscriptionService; exports.StripeUsage = _chunkTSEU4KZ2js.StripeUsage; exports.StripeUsageModule = _chunkTSEU4KZ2js.StripeUsageModule; exports.StripeUsageService = _chunkTSEU4KZ2js.StripeUsageService; exports.SubscriptionStatus = _chunkTSEU4KZ2js.SubscriptionStatus; exports.TableOptions = _chunkTSEU4KZ2js.TableOptions; exports.User = _chunkTSEU4KZ2js.User; exports.UserFields = _chunkTSEU4KZ2js.UserFields; exports.UserModule = _chunkTSEU4KZ2js.UserModule; exports.UserService = _chunkTSEU4KZ2js.UserService; exports.checkPermissions = _chunkTSEU4KZ2js.checkPermissions; exports.checkPermissionsFromServer = _chunkTSEU4KZ2js.checkPermissionsFromServer; exports.cn = _chunkTSEU4KZ2js.cn; exports.composeRefs = _chunkTSEU4KZ2js.composeRefs; exports.createJsonApiInclusion = _chunkTSEU4KZ2js.createJsonApiInclusion; exports.entityObjectSchema = _chunkTSEU4KZ2js.entityObjectSchema; exports.exists = _chunkTSEU4KZ2js.exists; exports.formatDate = _chunkTSEU4KZ2js.formatDate; exports.getBootstrapper = _chunkFM6WRAN5js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkTSEU4KZ2js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkTSEU4KZ2js.getGlobalErrorHandler; exports.getIcon = _chunkTSEU4KZ2js.getIcon; exports.getIconByModule = _chunkTSEU4KZ2js.getIconByModule; exports.getIconByModuleName = _chunkTSEU4KZ2js.getIconByModuleName; exports.getLucideIcon = _chunkTSEU4KZ2js.getLucideIcon; exports.getLucideIconByModule = _chunkTSEU4KZ2js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkTSEU4KZ2js.getLucideIconByModuleName; exports.getTableComponents = _chunkTSEU4KZ2js.getTableComponents; exports.getTableOptions = _chunkTSEU4KZ2js.getTableOptions; exports.getValueFromPath = _chunkTSEU4KZ2js.getValueFromPath; exports.hasBootstrapper = _chunkFM6WRAN5js.hasBootstrapper; exports.rehydrate = _chunkTSEU4KZ2js.rehydrate; exports.rehydrateList = _chunkTSEU4KZ2js.rehydrateList; exports.resetBootstrapStore = _chunkFM6WRAN5js.resetBootstrapStore; exports.setBootstrapper = _chunkFM6WRAN5js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkTSEU4KZ2js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkTSEU4KZ2js.setGlobalErrorHandler; exports.translateData = _chunkFM6WRAN5js.translateData; exports.translateResponse = _chunkFM6WRAN5js.translateResponse; exports.tryBootstrap = _chunkFM6WRAN5js.tryBootstrap; exports.useComposedRefs = _chunkTSEU4KZ2js.useComposedRefs; exports.useIsMobile = _chunkTSEU4KZ2js.useIsMobile; exports.userObjectSchema = _chunkTSEU4KZ2js.userObjectSchema;
242
+ exports.AVAILABLE_OAUTH_SCOPES = _chunkJ22NEVSKjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkJ22NEVSKjs.AbstractApiData; exports.AbstractService = _chunkJ22NEVSKjs.AbstractService; exports.Action = _chunkJ22NEVSKjs.Action; exports.Auth = _chunkJ22NEVSKjs.Auth; exports.AuthComponent = _chunkJ22NEVSKjs.AuthComponent; exports.AuthModule = _chunkJ22NEVSKjs.AuthModule; exports.AuthService = _chunkJ22NEVSKjs.AuthService; exports.AuthorModule = _chunkJ22NEVSKjs.AuthorModule; exports.Billing = _chunkJ22NEVSKjs.Billing; exports.BillingModule = _chunkJ22NEVSKjs.BillingModule; exports.BillingService = _chunkJ22NEVSKjs.BillingService; exports.BlockNoteDiffUtil = _chunkJ22NEVSKjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkJ22NEVSKjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkJ22NEVSKjs.ClientAbstractService; exports.ClientHttpMethod = _chunkJ22NEVSKjs.ClientHttpMethod; exports.Company = _chunkJ22NEVSKjs.Company; exports.CompanyFields = _chunkJ22NEVSKjs.CompanyFields; exports.CompanyModule = _chunkJ22NEVSKjs.CompanyModule; exports.CompanyService = _chunkJ22NEVSKjs.CompanyService; exports.Content = _chunkJ22NEVSKjs.Content; exports.ContentFields = _chunkJ22NEVSKjs.ContentFields; exports.ContentModule = _chunkJ22NEVSKjs.ContentModule; exports.ContentService = _chunkJ22NEVSKjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkJ22NEVSKjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFM6WRAN5js.DataClassRegistry; exports.DataClassRegistry = _chunkFM6WRAN5js.DataClassRegistry; exports.EndpointCreator = _chunkJ22NEVSKjs.EndpointCreator; exports.Feature = _chunkJ22NEVSKjs.Feature; exports.FeatureModule = _chunkJ22NEVSKjs.FeatureModule; exports.FeatureService = _chunkJ22NEVSKjs.FeatureService; exports.HttpMethod = _chunkJ22NEVSKjs.HttpMethod; exports.InvoiceStatus = _chunkJ22NEVSKjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkFM6WRAN5js.JsonApiDataFactory; exports.Module = _chunkJ22NEVSKjs.Module; exports.ModuleModule = _chunkJ22NEVSKjs.ModuleModule; exports.ModuleRegistrar = _chunkJ22NEVSKjs.ModuleRegistrar; exports.ModuleRegistry = _chunkJ22NEVSKjs.ModuleRegistry; exports.Modules = _chunkJ22NEVSKjs.Modules; exports.Notification = _chunkJ22NEVSKjs.Notification; exports.NotificationFields = _chunkJ22NEVSKjs.NotificationFields; exports.NotificationModule = _chunkJ22NEVSKjs.NotificationModule; exports.NotificationService = _chunkJ22NEVSKjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkJ22NEVSKjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkJ22NEVSKjs.OAuthClient; exports.OAuthModule = _chunkJ22NEVSKjs.OAuthModule; exports.OAuthService = _chunkJ22NEVSKjs.OAuthService; exports.PaymentMethod = _chunkJ22NEVSKjs.PaymentMethod; exports.Push = _chunkJ22NEVSKjs.Push; exports.PushModule = _chunkJ22NEVSKjs.PushModule; exports.PushService = _chunkJ22NEVSKjs.PushService; exports.RehydrationFactory = _chunkJ22NEVSKjs.RehydrationFactory; exports.Role = _chunkJ22NEVSKjs.Role; exports.RoleFields = _chunkJ22NEVSKjs.RoleFields; exports.RoleModule = _chunkJ22NEVSKjs.RoleModule; exports.RoleService = _chunkJ22NEVSKjs.RoleService; exports.S3 = _chunkJ22NEVSKjs.S3; exports.S3Module = _chunkJ22NEVSKjs.S3Module; exports.S3Service = _chunkJ22NEVSKjs.S3Service; exports.StripeCustomer = _chunkJ22NEVSKjs.StripeCustomer; exports.StripeCustomerModule = _chunkJ22NEVSKjs.StripeCustomerModule; exports.StripeCustomerService = _chunkJ22NEVSKjs.StripeCustomerService; exports.StripeInvoice = _chunkJ22NEVSKjs.StripeInvoice; exports.StripeInvoiceModule = _chunkJ22NEVSKjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkJ22NEVSKjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkJ22NEVSKjs.StripePaymentMethodModule; exports.StripePrice = _chunkJ22NEVSKjs.StripePrice; exports.StripePriceModule = _chunkJ22NEVSKjs.StripePriceModule; exports.StripePriceService = _chunkJ22NEVSKjs.StripePriceService; exports.StripeProduct = _chunkJ22NEVSKjs.StripeProduct; exports.StripeProductModule = _chunkJ22NEVSKjs.StripeProductModule; exports.StripeProductService = _chunkJ22NEVSKjs.StripeProductService; exports.StripeSubscription = _chunkJ22NEVSKjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkJ22NEVSKjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkJ22NEVSKjs.StripeSubscriptionService; exports.StripeUsage = _chunkJ22NEVSKjs.StripeUsage; exports.StripeUsageModule = _chunkJ22NEVSKjs.StripeUsageModule; exports.StripeUsageService = _chunkJ22NEVSKjs.StripeUsageService; exports.SubscriptionStatus = _chunkJ22NEVSKjs.SubscriptionStatus; exports.TableOptions = _chunkJ22NEVSKjs.TableOptions; exports.User = _chunkJ22NEVSKjs.User; exports.UserFields = _chunkJ22NEVSKjs.UserFields; exports.UserModule = _chunkJ22NEVSKjs.UserModule; exports.UserService = _chunkJ22NEVSKjs.UserService; exports.checkPermissions = _chunkJ22NEVSKjs.checkPermissions; exports.checkPermissionsFromServer = _chunkJ22NEVSKjs.checkPermissionsFromServer; exports.cn = _chunkJ22NEVSKjs.cn; exports.composeRefs = _chunkJ22NEVSKjs.composeRefs; exports.createJsonApiInclusion = _chunkJ22NEVSKjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkJ22NEVSKjs.entityObjectSchema; exports.exists = _chunkJ22NEVSKjs.exists; exports.formatDate = _chunkJ22NEVSKjs.formatDate; exports.getBootstrapper = _chunkFM6WRAN5js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkJ22NEVSKjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkJ22NEVSKjs.getGlobalErrorHandler; exports.getIcon = _chunkJ22NEVSKjs.getIcon; exports.getIconByModule = _chunkJ22NEVSKjs.getIconByModule; exports.getIconByModuleName = _chunkJ22NEVSKjs.getIconByModuleName; exports.getLucideIcon = _chunkJ22NEVSKjs.getLucideIcon; exports.getLucideIconByModule = _chunkJ22NEVSKjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkJ22NEVSKjs.getLucideIconByModuleName; exports.getTableComponents = _chunkJ22NEVSKjs.getTableComponents; exports.getTableOptions = _chunkJ22NEVSKjs.getTableOptions; exports.getValueFromPath = _chunkJ22NEVSKjs.getValueFromPath; exports.hasBootstrapper = _chunkFM6WRAN5js.hasBootstrapper; exports.rehydrate = _chunkJ22NEVSKjs.rehydrate; exports.rehydrateList = _chunkJ22NEVSKjs.rehydrateList; exports.resetBootstrapStore = _chunkFM6WRAN5js.resetBootstrapStore; exports.setBootstrapper = _chunkFM6WRAN5js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkJ22NEVSKjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkJ22NEVSKjs.setGlobalErrorHandler; exports.translateData = _chunkFM6WRAN5js.translateData; exports.translateResponse = _chunkFM6WRAN5js.translateResponse; exports.tryBootstrap = _chunkFM6WRAN5js.tryBootstrap; exports.useComposedRefs = _chunkJ22NEVSKjs.useComposedRefs; exports.useIsMobile = _chunkJ22NEVSKjs.useIsMobile; exports.userObjectSchema = _chunkJ22NEVSKjs.userObjectSchema;
243
243
  //# sourceMappingURL=index.js.map
@@ -106,7 +106,7 @@ import {
106
106
  useComposedRefs,
107
107
  useIsMobile,
108
108
  userObjectSchema
109
- } from "../chunk-ORFXBO7F.mjs";
109
+ } from "../chunk-DU64WMZD.mjs";
110
110
  import "../chunk-AUXK7QSA.mjs";
111
111
  import "../chunk-C7C7VY4F.mjs";
112
112
  import {
package/dist/index.d.mts CHANGED
@@ -3,16 +3,16 @@ export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiD
3
3
  export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
4
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-zeewugD7.mjs';
5
5
  export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
6
- export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-BNytYanU.mjs';
6
+ export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-BMT7W6KS.mjs';
7
7
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
8
8
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
9
9
  export { ClassValue } from 'clsx';
10
- export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-DEn-Yp_b.mjs';
10
+ export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-D5MbtfZK.mjs';
11
11
  export { A as AuthComponent } from './AuthComponent-hxOPs9o8.mjs';
12
12
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-subscription.interface-Cm_It1fz.mjs';
13
- export { C as ContentInput, a as ContentInterface } from './content.interface-B2Ldg0vg.mjs';
13
+ export { C as ContentInput, a as ContentInterface } from './content.interface-BSpowEiW.mjs';
14
14
  export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-DsZ5ecSX.mjs';
15
- export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-DT1K-t6I.mjs';
15
+ export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-DiWyJzk9.mjs';
16
16
  import 'react';
17
17
  import 'zod';
18
18
  import '@blocknote/core';
package/dist/index.d.ts CHANGED
@@ -3,16 +3,16 @@ export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiD
3
3
  export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
4
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-CAIAeP5d.js';
5
5
  export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
6
- export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-C7f_Ygz5.js';
6
+ export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-DsXo9nop.js';
7
7
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
8
8
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
9
9
  export { ClassValue } from 'clsx';
10
- export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-H0L9WBge.js';
10
+ export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-CmKmObIU.js';
11
11
  export { A as AuthComponent } from './AuthComponent-hxOPs9o8.js';
12
12
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-subscription.interface-BaZUngWe.js';
13
- export { C as ContentInput, a as ContentInterface } from './content.interface-D8NHv3DX.js';
13
+ export { C as ContentInput, a as ContentInterface } from './content.interface-DFQ7mkpL.js';
14
14
  export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-vL7za9Bz.js';
15
- export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-B4pZpLT9.js';
15
+ export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-CHwoRDOp.js';
16
16
  import 'react';
17
17
  import 'zod';
18
18
  import '@blocknote/core';
package/dist/index.js CHANGED
@@ -120,7 +120,7 @@ var _chunkEW6QPMN3js = require('./chunk-EW6QPMN3.js');
120
120
 
121
121
 
122
122
 
123
- var _chunkTSEU4KZ2js = require('./chunk-TSEU4KZ2.js');
123
+ var _chunkJ22NEVSKjs = require('./chunk-J22NEVSK.js');
124
124
  require('./chunk-LXKSUWAV.js');
125
125
  require('./chunk-IBS6NI7D.js');
126
126
 
@@ -265,5 +265,5 @@ require('./chunk-7QVYU63E.js');
265
265
 
266
266
 
267
267
 
268
- exports.AVAILABLE_OAUTH_SCOPES = _chunkTSEU4KZ2js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkTSEU4KZ2js.AbstractApiData; exports.AbstractService = _chunkTSEU4KZ2js.AbstractService; exports.Action = _chunkTSEU4KZ2js.Action; exports.Auth = _chunkTSEU4KZ2js.Auth; exports.AuthComponent = _chunkTSEU4KZ2js.AuthComponent; exports.AuthModule = _chunkTSEU4KZ2js.AuthModule; exports.AuthService = _chunkTSEU4KZ2js.AuthService; exports.AuthorModule = _chunkTSEU4KZ2js.AuthorModule; exports.Billing = _chunkTSEU4KZ2js.Billing; exports.BillingModule = _chunkTSEU4KZ2js.BillingModule; exports.BillingService = _chunkTSEU4KZ2js.BillingService; exports.BlockNoteDiffUtil = _chunkTSEU4KZ2js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkTSEU4KZ2js.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkTSEU4KZ2js.ClientAbstractService; exports.ClientHttpMethod = _chunkTSEU4KZ2js.ClientHttpMethod; exports.Company = _chunkTSEU4KZ2js.Company; exports.CompanyFields = _chunkTSEU4KZ2js.CompanyFields; exports.CompanyModule = _chunkTSEU4KZ2js.CompanyModule; exports.CompanyService = _chunkTSEU4KZ2js.CompanyService; exports.Content = _chunkTSEU4KZ2js.Content; exports.ContentFields = _chunkTSEU4KZ2js.ContentFields; exports.ContentModule = _chunkTSEU4KZ2js.ContentModule; exports.ContentService = _chunkTSEU4KZ2js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkTSEU4KZ2js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFM6WRAN5js.DataClassRegistry; exports.DataClassRegistry = _chunkFM6WRAN5js.DataClassRegistry; exports.EndpointCreator = _chunkTSEU4KZ2js.EndpointCreator; exports.Feature = _chunkTSEU4KZ2js.Feature; exports.FeatureModule = _chunkTSEU4KZ2js.FeatureModule; exports.FeatureService = _chunkTSEU4KZ2js.FeatureService; exports.HttpMethod = _chunkTSEU4KZ2js.HttpMethod; exports.InvoiceStatus = _chunkTSEU4KZ2js.InvoiceStatus; exports.JsonApiDataFactory = _chunkFM6WRAN5js.JsonApiDataFactory; exports.Module = _chunkTSEU4KZ2js.Module; exports.ModuleModule = _chunkTSEU4KZ2js.ModuleModule; exports.ModuleRegistrar = _chunkTSEU4KZ2js.ModuleRegistrar; exports.ModuleRegistry = _chunkTSEU4KZ2js.ModuleRegistry; exports.Modules = _chunkTSEU4KZ2js.Modules; exports.Notification = _chunkTSEU4KZ2js.Notification; exports.NotificationFields = _chunkTSEU4KZ2js.NotificationFields; exports.NotificationModule = _chunkTSEU4KZ2js.NotificationModule; exports.NotificationService = _chunkTSEU4KZ2js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkTSEU4KZ2js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkTSEU4KZ2js.OAuthClient; exports.OAuthModule = _chunkTSEU4KZ2js.OAuthModule; exports.OAuthService = _chunkTSEU4KZ2js.OAuthService; exports.PaymentMethod = _chunkTSEU4KZ2js.PaymentMethod; exports.Push = _chunkTSEU4KZ2js.Push; exports.PushModule = _chunkTSEU4KZ2js.PushModule; exports.PushService = _chunkTSEU4KZ2js.PushService; exports.RehydrationFactory = _chunkTSEU4KZ2js.RehydrationFactory; exports.Role = _chunkTSEU4KZ2js.Role; exports.RoleFields = _chunkTSEU4KZ2js.RoleFields; exports.RoleModule = _chunkTSEU4KZ2js.RoleModule; exports.RoleService = _chunkTSEU4KZ2js.RoleService; exports.S3 = _chunkTSEU4KZ2js.S3; exports.S3Module = _chunkTSEU4KZ2js.S3Module; exports.S3Service = _chunkTSEU4KZ2js.S3Service; exports.StripeCustomer = _chunkTSEU4KZ2js.StripeCustomer; exports.StripeCustomerModule = _chunkTSEU4KZ2js.StripeCustomerModule; exports.StripeCustomerService = _chunkTSEU4KZ2js.StripeCustomerService; exports.StripeInvoice = _chunkTSEU4KZ2js.StripeInvoice; exports.StripeInvoiceModule = _chunkTSEU4KZ2js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkTSEU4KZ2js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkTSEU4KZ2js.StripePaymentMethodModule; exports.StripePrice = _chunkTSEU4KZ2js.StripePrice; exports.StripePriceModule = _chunkTSEU4KZ2js.StripePriceModule; exports.StripePriceService = _chunkTSEU4KZ2js.StripePriceService; exports.StripeProduct = _chunkTSEU4KZ2js.StripeProduct; exports.StripeProductModule = _chunkTSEU4KZ2js.StripeProductModule; exports.StripeProductService = _chunkTSEU4KZ2js.StripeProductService; exports.StripeSubscription = _chunkTSEU4KZ2js.StripeSubscription; exports.StripeSubscriptionModule = _chunkTSEU4KZ2js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkTSEU4KZ2js.StripeSubscriptionService; exports.StripeUsage = _chunkTSEU4KZ2js.StripeUsage; exports.StripeUsageModule = _chunkTSEU4KZ2js.StripeUsageModule; exports.StripeUsageService = _chunkTSEU4KZ2js.StripeUsageService; exports.SubscriptionStatus = _chunkTSEU4KZ2js.SubscriptionStatus; exports.TableOptions = _chunkTSEU4KZ2js.TableOptions; exports.User = _chunkTSEU4KZ2js.User; exports.UserFields = _chunkTSEU4KZ2js.UserFields; exports.UserModule = _chunkTSEU4KZ2js.UserModule; exports.UserService = _chunkTSEU4KZ2js.UserService; exports.checkPermissions = _chunkTSEU4KZ2js.checkPermissions; exports.checkPermissionsFromServer = _chunkTSEU4KZ2js.checkPermissionsFromServer; exports.cn = _chunkTSEU4KZ2js.cn; exports.composeRefs = _chunkTSEU4KZ2js.composeRefs; exports.configureAuth = _chunkTSEU4KZ2js.configureAuth; exports.configureI18n = _chunkEW6QPMN3js.configureI18n; exports.configureJsonApi = _chunkEW6QPMN3js.configureJsonApi; exports.configureLogin = _chunkEW6QPMN3js.configureLogin; exports.configureRoles = _chunkEW6QPMN3js.configureRoles; exports.createJsonApiInclusion = _chunkTSEU4KZ2js.createJsonApiInclusion; exports.entityObjectSchema = _chunkTSEU4KZ2js.entityObjectSchema; exports.exists = _chunkTSEU4KZ2js.exists; exports.formatDate = _chunkTSEU4KZ2js.formatDate; exports.getApiUrl = _chunkEW6QPMN3js.getApiUrl; exports.getAppUrl = _chunkEW6QPMN3js.getAppUrl; exports.getBootstrapper = _chunkFM6WRAN5js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkTSEU4KZ2js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkTSEU4KZ2js.getGlobalErrorHandler; exports.getIcon = _chunkTSEU4KZ2js.getIcon; exports.getIconByModule = _chunkTSEU4KZ2js.getIconByModule; exports.getIconByModuleName = _chunkTSEU4KZ2js.getIconByModuleName; exports.getLucideIcon = _chunkTSEU4KZ2js.getLucideIcon; exports.getLucideIconByModule = _chunkTSEU4KZ2js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkTSEU4KZ2js.getLucideIconByModuleName; exports.getRoleId = _chunkEW6QPMN3js.getRoleId; exports.getStripePublishableKey = _chunkEW6QPMN3js.getStripePublishableKey; exports.getTableComponents = _chunkTSEU4KZ2js.getTableComponents; exports.getTableOptions = _chunkTSEU4KZ2js.getTableOptions; exports.getTokenHandler = _chunkTSEU4KZ2js.getTokenHandler; exports.getTrackablePages = _chunkEW6QPMN3js.getTrackablePages; exports.getValueFromPath = _chunkTSEU4KZ2js.getValueFromPath; exports.hasBootstrapper = _chunkFM6WRAN5js.hasBootstrapper; exports.isRolesConfigured = _chunkEW6QPMN3js.isRolesConfigured; exports.rehydrate = _chunkTSEU4KZ2js.rehydrate; exports.rehydrateList = _chunkTSEU4KZ2js.rehydrateList; exports.resetBootstrapStore = _chunkFM6WRAN5js.resetBootstrapStore; exports.setBootstrapper = _chunkFM6WRAN5js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkTSEU4KZ2js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkTSEU4KZ2js.setGlobalErrorHandler; exports.translateData = _chunkFM6WRAN5js.translateData; exports.translateResponse = _chunkFM6WRAN5js.translateResponse; exports.tryBootstrap = _chunkFM6WRAN5js.tryBootstrap; exports.useComposedRefs = _chunkTSEU4KZ2js.useComposedRefs; exports.useIsMobile = _chunkTSEU4KZ2js.useIsMobile; exports.userObjectSchema = _chunkTSEU4KZ2js.userObjectSchema;
268
+ exports.AVAILABLE_OAUTH_SCOPES = _chunkJ22NEVSKjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkJ22NEVSKjs.AbstractApiData; exports.AbstractService = _chunkJ22NEVSKjs.AbstractService; exports.Action = _chunkJ22NEVSKjs.Action; exports.Auth = _chunkJ22NEVSKjs.Auth; exports.AuthComponent = _chunkJ22NEVSKjs.AuthComponent; exports.AuthModule = _chunkJ22NEVSKjs.AuthModule; exports.AuthService = _chunkJ22NEVSKjs.AuthService; exports.AuthorModule = _chunkJ22NEVSKjs.AuthorModule; exports.Billing = _chunkJ22NEVSKjs.Billing; exports.BillingModule = _chunkJ22NEVSKjs.BillingModule; exports.BillingService = _chunkJ22NEVSKjs.BillingService; exports.BlockNoteDiffUtil = _chunkJ22NEVSKjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkJ22NEVSKjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkJ22NEVSKjs.ClientAbstractService; exports.ClientHttpMethod = _chunkJ22NEVSKjs.ClientHttpMethod; exports.Company = _chunkJ22NEVSKjs.Company; exports.CompanyFields = _chunkJ22NEVSKjs.CompanyFields; exports.CompanyModule = _chunkJ22NEVSKjs.CompanyModule; exports.CompanyService = _chunkJ22NEVSKjs.CompanyService; exports.Content = _chunkJ22NEVSKjs.Content; exports.ContentFields = _chunkJ22NEVSKjs.ContentFields; exports.ContentModule = _chunkJ22NEVSKjs.ContentModule; exports.ContentService = _chunkJ22NEVSKjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkJ22NEVSKjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFM6WRAN5js.DataClassRegistry; exports.DataClassRegistry = _chunkFM6WRAN5js.DataClassRegistry; exports.EndpointCreator = _chunkJ22NEVSKjs.EndpointCreator; exports.Feature = _chunkJ22NEVSKjs.Feature; exports.FeatureModule = _chunkJ22NEVSKjs.FeatureModule; exports.FeatureService = _chunkJ22NEVSKjs.FeatureService; exports.HttpMethod = _chunkJ22NEVSKjs.HttpMethod; exports.InvoiceStatus = _chunkJ22NEVSKjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkFM6WRAN5js.JsonApiDataFactory; exports.Module = _chunkJ22NEVSKjs.Module; exports.ModuleModule = _chunkJ22NEVSKjs.ModuleModule; exports.ModuleRegistrar = _chunkJ22NEVSKjs.ModuleRegistrar; exports.ModuleRegistry = _chunkJ22NEVSKjs.ModuleRegistry; exports.Modules = _chunkJ22NEVSKjs.Modules; exports.Notification = _chunkJ22NEVSKjs.Notification; exports.NotificationFields = _chunkJ22NEVSKjs.NotificationFields; exports.NotificationModule = _chunkJ22NEVSKjs.NotificationModule; exports.NotificationService = _chunkJ22NEVSKjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkJ22NEVSKjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkJ22NEVSKjs.OAuthClient; exports.OAuthModule = _chunkJ22NEVSKjs.OAuthModule; exports.OAuthService = _chunkJ22NEVSKjs.OAuthService; exports.PaymentMethod = _chunkJ22NEVSKjs.PaymentMethod; exports.Push = _chunkJ22NEVSKjs.Push; exports.PushModule = _chunkJ22NEVSKjs.PushModule; exports.PushService = _chunkJ22NEVSKjs.PushService; exports.RehydrationFactory = _chunkJ22NEVSKjs.RehydrationFactory; exports.Role = _chunkJ22NEVSKjs.Role; exports.RoleFields = _chunkJ22NEVSKjs.RoleFields; exports.RoleModule = _chunkJ22NEVSKjs.RoleModule; exports.RoleService = _chunkJ22NEVSKjs.RoleService; exports.S3 = _chunkJ22NEVSKjs.S3; exports.S3Module = _chunkJ22NEVSKjs.S3Module; exports.S3Service = _chunkJ22NEVSKjs.S3Service; exports.StripeCustomer = _chunkJ22NEVSKjs.StripeCustomer; exports.StripeCustomerModule = _chunkJ22NEVSKjs.StripeCustomerModule; exports.StripeCustomerService = _chunkJ22NEVSKjs.StripeCustomerService; exports.StripeInvoice = _chunkJ22NEVSKjs.StripeInvoice; exports.StripeInvoiceModule = _chunkJ22NEVSKjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkJ22NEVSKjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkJ22NEVSKjs.StripePaymentMethodModule; exports.StripePrice = _chunkJ22NEVSKjs.StripePrice; exports.StripePriceModule = _chunkJ22NEVSKjs.StripePriceModule; exports.StripePriceService = _chunkJ22NEVSKjs.StripePriceService; exports.StripeProduct = _chunkJ22NEVSKjs.StripeProduct; exports.StripeProductModule = _chunkJ22NEVSKjs.StripeProductModule; exports.StripeProductService = _chunkJ22NEVSKjs.StripeProductService; exports.StripeSubscription = _chunkJ22NEVSKjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkJ22NEVSKjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkJ22NEVSKjs.StripeSubscriptionService; exports.StripeUsage = _chunkJ22NEVSKjs.StripeUsage; exports.StripeUsageModule = _chunkJ22NEVSKjs.StripeUsageModule; exports.StripeUsageService = _chunkJ22NEVSKjs.StripeUsageService; exports.SubscriptionStatus = _chunkJ22NEVSKjs.SubscriptionStatus; exports.TableOptions = _chunkJ22NEVSKjs.TableOptions; exports.User = _chunkJ22NEVSKjs.User; exports.UserFields = _chunkJ22NEVSKjs.UserFields; exports.UserModule = _chunkJ22NEVSKjs.UserModule; exports.UserService = _chunkJ22NEVSKjs.UserService; exports.checkPermissions = _chunkJ22NEVSKjs.checkPermissions; exports.checkPermissionsFromServer = _chunkJ22NEVSKjs.checkPermissionsFromServer; exports.cn = _chunkJ22NEVSKjs.cn; exports.composeRefs = _chunkJ22NEVSKjs.composeRefs; exports.configureAuth = _chunkJ22NEVSKjs.configureAuth; exports.configureI18n = _chunkEW6QPMN3js.configureI18n; exports.configureJsonApi = _chunkEW6QPMN3js.configureJsonApi; exports.configureLogin = _chunkEW6QPMN3js.configureLogin; exports.configureRoles = _chunkEW6QPMN3js.configureRoles; exports.createJsonApiInclusion = _chunkJ22NEVSKjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkJ22NEVSKjs.entityObjectSchema; exports.exists = _chunkJ22NEVSKjs.exists; exports.formatDate = _chunkJ22NEVSKjs.formatDate; exports.getApiUrl = _chunkEW6QPMN3js.getApiUrl; exports.getAppUrl = _chunkEW6QPMN3js.getAppUrl; exports.getBootstrapper = _chunkFM6WRAN5js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkJ22NEVSKjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkJ22NEVSKjs.getGlobalErrorHandler; exports.getIcon = _chunkJ22NEVSKjs.getIcon; exports.getIconByModule = _chunkJ22NEVSKjs.getIconByModule; exports.getIconByModuleName = _chunkJ22NEVSKjs.getIconByModuleName; exports.getLucideIcon = _chunkJ22NEVSKjs.getLucideIcon; exports.getLucideIconByModule = _chunkJ22NEVSKjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkJ22NEVSKjs.getLucideIconByModuleName; exports.getRoleId = _chunkEW6QPMN3js.getRoleId; exports.getStripePublishableKey = _chunkEW6QPMN3js.getStripePublishableKey; exports.getTableComponents = _chunkJ22NEVSKjs.getTableComponents; exports.getTableOptions = _chunkJ22NEVSKjs.getTableOptions; exports.getTokenHandler = _chunkJ22NEVSKjs.getTokenHandler; exports.getTrackablePages = _chunkEW6QPMN3js.getTrackablePages; exports.getValueFromPath = _chunkJ22NEVSKjs.getValueFromPath; exports.hasBootstrapper = _chunkFM6WRAN5js.hasBootstrapper; exports.isRolesConfigured = _chunkEW6QPMN3js.isRolesConfigured; exports.rehydrate = _chunkJ22NEVSKjs.rehydrate; exports.rehydrateList = _chunkJ22NEVSKjs.rehydrateList; exports.resetBootstrapStore = _chunkFM6WRAN5js.resetBootstrapStore; exports.setBootstrapper = _chunkFM6WRAN5js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkJ22NEVSKjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkJ22NEVSKjs.setGlobalErrorHandler; exports.translateData = _chunkFM6WRAN5js.translateData; exports.translateResponse = _chunkFM6WRAN5js.translateResponse; exports.tryBootstrap = _chunkFM6WRAN5js.tryBootstrap; exports.useComposedRefs = _chunkJ22NEVSKjs.useComposedRefs; exports.useIsMobile = _chunkJ22NEVSKjs.useIsMobile; exports.userObjectSchema = _chunkJ22NEVSKjs.userObjectSchema;
269
269
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -120,7 +120,7 @@ import {
120
120
  useComposedRefs,
121
121
  useIsMobile,
122
122
  userObjectSchema
123
- } from "./chunk-ORFXBO7F.mjs";
123
+ } from "./chunk-DU64WMZD.mjs";
124
124
  import "./chunk-AUXK7QSA.mjs";
125
125
  import "./chunk-C7C7VY4F.mjs";
126
126
  import {
@@ -128,6 +128,7 @@ interface CompanyInterface extends ApiDataInterface {
128
128
  get configurations(): any;
129
129
  get logo(): string | undefined;
130
130
  get logoUrl(): string | undefined;
131
+ get isActiveSubscription(): boolean;
131
132
  get monthlyTokens(): number;
132
133
  get availableMonthlyTokens(): number;
133
134
  get availableExtraTokens(): number;
@@ -128,6 +128,7 @@ interface CompanyInterface extends ApiDataInterface {
128
128
  get configurations(): any;
129
129
  get logo(): string | undefined;
130
130
  get logoUrl(): string | undefined;
131
+ get isActiveSubscription(): boolean;
131
132
  get monthlyTokens(): number;
132
133
  get availableMonthlyTokens(): number;
133
134
  get availableExtraTokens(): number;
@@ -1,6 +1,6 @@
1
- import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-DEn-Yp_b.mjs';
1
+ import { F as FeatureInterface, k as RoleInterface, U as UserInterface, l as UserInput, h as CompanyInterface, C as CompanyInput, N as NotificationInterface } from './notification.interface-D5MbtfZK.mjs';
2
2
  import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
3
- import { a as ContentInterface } from './content.interface-B2Ldg0vg.mjs';
3
+ import { a as ContentInterface } from './content.interface-BSpowEiW.mjs';
4
4
  import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
5
5
 
6
6
  declare enum HttpMethod {
@@ -154,23 +154,6 @@ declare class RoleService extends AbstractService {
154
154
  }): Promise<RoleInterface>;
155
155
  }
156
156
 
157
- declare class CompanyService extends AbstractService {
158
- static findOne(params: {
159
- companyId: string;
160
- }): Promise<CompanyInterface>;
161
- static findMany(params: {
162
- search?: string;
163
- next?: NextRef;
164
- }): Promise<CompanyInterface[]>;
165
- static delete(params: {
166
- companyId: string;
167
- }): Promise<void>;
168
- static create(params: CompanyInput): Promise<CompanyInterface>;
169
- static update(params: CompanyInput): Promise<CompanyInterface>;
170
- static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
171
- static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
172
- }
173
-
174
157
  declare class UserService extends AbstractService {
175
158
  static findFullUser(): Promise<UserInterface>;
176
159
  static findById(params: {
@@ -302,6 +285,23 @@ declare class AuthService extends AbstractService {
302
285
  }): Promise<void>;
303
286
  }
304
287
 
288
+ declare class CompanyService extends AbstractService {
289
+ static findOne(params: {
290
+ companyId: string;
291
+ }): Promise<CompanyInterface>;
292
+ static findMany(params: {
293
+ search?: string;
294
+ next?: NextRef;
295
+ }): Promise<CompanyInterface[]>;
296
+ static delete(params: {
297
+ companyId: string;
298
+ }): Promise<void>;
299
+ static create(params: CompanyInput): Promise<CompanyInterface>;
300
+ static update(params: CompanyInput): Promise<CompanyInterface>;
301
+ static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
302
+ static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
303
+ }
304
+
305
305
  declare class ContentService extends AbstractService {
306
306
  static findMany(params: {
307
307
  contentIds?: string[];
@@ -1,6 +1,6 @@
1
- import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-H0L9WBge.js';
1
+ import { F as FeatureInterface, k as RoleInterface, U as UserInterface, l as UserInput, h as CompanyInterface, C as CompanyInput, N as NotificationInterface } from './notification.interface-CmKmObIU.js';
2
2
  import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.js';
3
- import { a as ContentInterface } from './content.interface-D8NHv3DX.js';
3
+ import { a as ContentInterface } from './content.interface-DFQ7mkpL.js';
4
4
  import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
5
5
 
6
6
  declare enum HttpMethod {
@@ -154,23 +154,6 @@ declare class RoleService extends AbstractService {
154
154
  }): Promise<RoleInterface>;
155
155
  }
156
156
 
157
- declare class CompanyService extends AbstractService {
158
- static findOne(params: {
159
- companyId: string;
160
- }): Promise<CompanyInterface>;
161
- static findMany(params: {
162
- search?: string;
163
- next?: NextRef;
164
- }): Promise<CompanyInterface[]>;
165
- static delete(params: {
166
- companyId: string;
167
- }): Promise<void>;
168
- static create(params: CompanyInput): Promise<CompanyInterface>;
169
- static update(params: CompanyInput): Promise<CompanyInterface>;
170
- static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
171
- static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
172
- }
173
-
174
157
  declare class UserService extends AbstractService {
175
158
  static findFullUser(): Promise<UserInterface>;
176
159
  static findById(params: {
@@ -302,6 +285,23 @@ declare class AuthService extends AbstractService {
302
285
  }): Promise<void>;
303
286
  }
304
287
 
288
+ declare class CompanyService extends AbstractService {
289
+ static findOne(params: {
290
+ companyId: string;
291
+ }): Promise<CompanyInterface>;
292
+ static findMany(params: {
293
+ search?: string;
294
+ next?: NextRef;
295
+ }): Promise<CompanyInterface[]>;
296
+ static delete(params: {
297
+ companyId: string;
298
+ }): Promise<void>;
299
+ static create(params: CompanyInput): Promise<CompanyInterface>;
300
+ static update(params: CompanyInput): Promise<CompanyInterface>;
301
+ static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
302
+ static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
303
+ }
304
+
305
305
  declare class ContentService extends AbstractService {
306
306
  static findMany(params: {
307
307
  contentIds?: string[];
@@ -1,11 +1,11 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-DEn-Yp_b.mjs';
2
+ import { M as ModuleWithPermissions, A as Action } from '../notification.interface-D5MbtfZK.mjs';
3
3
  import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
4
4
  import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
5
- export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-BNytYanU.mjs';
5
+ export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-BMT7W6KS.mjs';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-DPP8s46n.mjs';
8
- import '../content.interface-B2Ldg0vg.mjs';
8
+ import '../content.interface-BSpowEiW.mjs';
9
9
 
10
10
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
11
11
  /**
@@ -1,11 +1,11 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.js';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-H0L9WBge.js';
2
+ import { M as ModuleWithPermissions, A as Action } from '../notification.interface-CmKmObIU.js';
3
3
  import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
4
4
  import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
5
- export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-C7f_Ygz5.js';
5
+ export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-DsXo9nop.js';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-DPP8s46n.js';
8
- import '../content.interface-D8NHv3DX.js';
8
+ import '../content.interface-DFQ7mkpL.js';
9
9
 
10
10
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
11
11
  /**
@@ -15,7 +15,7 @@ var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkTSEU4KZ2js = require('../chunk-TSEU4KZ2.js');
18
+ var _chunkJ22NEVSKjs = require('../chunk-J22NEVSK.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
@@ -86,7 +86,7 @@ var ServerSession = class {
86
86
  if (!rawModules) return false;
87
87
  const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
88
88
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
89
- return _chunkTSEU4KZ2js.checkPermissionsFromServer.call(void 0, {
89
+ return _chunkJ22NEVSKjs.checkPermissionsFromServer.call(void 0, {
90
90
  module: params.module,
91
91
  action: params.action,
92
92
  data: params.data,
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
296
296
 
297
297
 
298
298
 
299
- exports.ServerAuthService = _chunkTSEU4KZ2js.AuthService; exports.ServerCompanyService = _chunkTSEU4KZ2js.CompanyService; exports.ServerContentService = _chunkTSEU4KZ2js.ContentService; exports.ServerFeatureService = _chunkTSEU4KZ2js.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkTSEU4KZ2js.NotificationService; exports.ServerPushService = _chunkTSEU4KZ2js.PushService; exports.ServerRoleService = _chunkTSEU4KZ2js.RoleService; exports.ServerS3Service = _chunkTSEU4KZ2js.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkTSEU4KZ2js.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
299
+ exports.ServerAuthService = _chunkJ22NEVSKjs.AuthService; exports.ServerCompanyService = _chunkJ22NEVSKjs.CompanyService; exports.ServerContentService = _chunkJ22NEVSKjs.ContentService; exports.ServerFeatureService = _chunkJ22NEVSKjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkJ22NEVSKjs.NotificationService; exports.ServerPushService = _chunkJ22NEVSKjs.PushService; exports.ServerRoleService = _chunkJ22NEVSKjs.RoleService; exports.ServerS3Service = _chunkJ22NEVSKjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkJ22NEVSKjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
300
300
  //# sourceMappingURL=index.js.map
@@ -15,7 +15,7 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-ORFXBO7F.mjs";
18
+ } from "../chunk-DU64WMZD.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
@@ -1,4 +1,4 @@
1
- import { N as NotificationInterface } from './notification.interface-DEn-Yp_b.mjs';
1
+ import { N as NotificationInterface } from './notification.interface-D5MbtfZK.mjs';
2
2
 
3
3
  interface UseSocketOptions {
4
4
  token: string;
@@ -1,4 +1,4 @@
1
- import { N as NotificationInterface } from './notification.interface-H0L9WBge.js';
1
+ import { N as NotificationInterface } from './notification.interface-CmKmObIU.js';
2
2
 
3
3
  interface UseSocketOptions {
4
4
  token: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "1.28.0",
3
+ "version": "1.29.1",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -25,6 +25,7 @@ export * from "../features/content/hooks";
25
25
  export * from "../features/role/hooks";
26
26
  export * from "../features/user/hooks";
27
27
  export * from "../features/oauth/hooks";
28
+ export * from "../features/company/hooks/useSubscriptionStatus";
28
29
 
29
30
  registerTableGenerator("roles", useRoleTableStructure);
30
31
  registerTableGenerator("users", useUserTableStructure);
@@ -45,7 +45,8 @@ export function FormSelect({
45
45
  field.onChange(e);
46
46
  if (onChange) onChange(e);
47
47
  }}
48
- defaultValue={field.value}
48
+ value={field.value}
49
+ disabled={disabled}
49
50
  data-testid={testId}
50
51
  >
51
52
  <SelectTrigger className="w-full">
@@ -50,11 +50,11 @@ export function PageContentContainer({ header, details, footer, content }: PageC
50
50
  </ResizablePanel>
51
51
  <ResizableHandle withHandle />
52
52
  <ResizablePanel id="right-panel" className={isMobile ? "pt-4" : "pl-4"}>
53
- <div className="h-full overflow-y-auto">{content}</div>
53
+ <div className="h-full overflow-x-hidden overflow-y-auto p-2 pb-20">{content}</div>
54
54
  </ResizablePanel>
55
55
  </ResizablePanelGroup>
56
56
  ) : (
57
- <div className="h-full overflow-y-auto">{content}</div>
57
+ <div className="h-full overflow-x-hidden overflow-y-auto p-2 pb-20">{content}</div>
58
58
  )}
59
59
  </div>
60
60
  </div>
@@ -46,8 +46,6 @@ export class Auth extends AbstractApiData implements AuthInterface {
46
46
  if (data.name !== undefined) response.data.attributes.name = data.name;
47
47
  if (data.companyName !== undefined) response.data.attributes.companyName = data.companyName;
48
48
  if (data.password !== undefined) response.data.attributes.password = data.password;
49
- if (data.partitaIva !== undefined) response.data.attributes.partitaIva = data.partitaIva;
50
- if (data.codiceFiscale !== undefined) response.data.attributes.codiceFiscale = data.codiceFiscale;
51
49
 
52
50
  return response;
53
51
  }
@@ -1,7 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import { CreditCard, Loader2, Wallet } from "lucide-react";
4
- import { useCallback, useEffect, useState } from "react";
4
+ import { useSearchParams } from "next/navigation";
5
+ import { useCallback, useEffect, useMemo, useState } from "react";
5
6
  import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../../../shadcnui";
6
7
  import { PaymentMethodInterface, StripeCustomerInterface, StripeCustomerService } from "../../stripe-customer";
7
8
  import { PaymentMethodsContainer } from "../../stripe-customer/components";
@@ -9,6 +10,7 @@ import { StripeInvoiceInterface, StripeInvoiceService } from "../../stripe-invoi
9
10
  import { InvoicesContainer } from "../../stripe-invoice/components";
10
11
  import { StripeSubscriptionInterface, StripeSubscriptionService, SubscriptionStatus } from "../../stripe-subscription";
11
12
  import { SubscriptionsContainer } from "../../stripe-subscription/components";
13
+ import { SubscriptionWizard } from "../../stripe-subscription/components/wizards";
12
14
  import { MeterInterface, MeterSummaryInterface, StripeUsageService } from "../../stripe-usage";
13
15
  import { UsageContainer } from "../../stripe-usage/components";
14
16
  import {
@@ -77,12 +79,26 @@ export function BillingDashboardContainer() {
77
79
  const [activeModal, setActiveModal] = useState<ModalType>(null);
78
80
  const [noCustomerExists, setNoCustomerExists] = useState(false);
79
81
  const [creatingCustomer, setCreatingCustomer] = useState(false);
82
+ const searchParams = useSearchParams();
83
+
84
+ // Wizard state - lifted from SubscriptionsContainer to avoid nested dialogs
85
+ const [showWizard, setShowWizard] = useState(false);
86
+ const [editingSubscription, setEditingSubscription] = useState<StripeSubscriptionInterface | null>(null);
80
87
 
81
88
  // Check if company has metered subscriptions
82
89
  const hasMeteredSubscriptions = useCallback((): boolean => {
83
90
  return data.subscriptions.some((sub) => sub.price?.recurring?.usageType === "metered");
84
91
  }, [data.subscriptions]);
85
92
 
93
+ // Check if user has active recurring subscription (for wizard filtering)
94
+ const hasActiveRecurringSubscription = useMemo(() => {
95
+ return data.subscriptions.some(
96
+ (sub) =>
97
+ (sub.status === SubscriptionStatus.ACTIVE || sub.status === SubscriptionStatus.TRIALING) &&
98
+ sub.price?.priceType === "recurring",
99
+ );
100
+ }, [data.subscriptions]);
101
+
86
102
  // Fetch all data - first check customer, then fetch rest if customer exists
87
103
  const fetchAllData = useCallback(async () => {
88
104
  setNoCustomerExists(false);
@@ -242,11 +258,35 @@ export function BillingDashboardContainer() {
242
258
  await fetchAllData();
243
259
  }, [fetchAllData]);
244
260
 
261
+ // Handler to open wizard (can be called from SubscriptionsContainer)
262
+ const handleOpenWizard = useCallback((subscription?: StripeSubscriptionInterface) => {
263
+ setEditingSubscription(subscription || null);
264
+ setShowWizard(true);
265
+ }, []);
266
+
267
+ // Handler to close wizard
268
+ const handleWizardClose = useCallback(() => {
269
+ setShowWizard(false);
270
+ setEditingSubscription(null);
271
+ refreshData();
272
+ }, [refreshData]);
273
+
245
274
  // Initial data load
246
275
  useEffect(() => {
247
276
  fetchAllData();
248
277
  }, [fetchAllData]);
249
278
 
279
+ // Handle URL action parameter for deep linking
280
+ useEffect(() => {
281
+ const action = searchParams.get("action");
282
+ if (action === "subscribe") {
283
+ // Open wizard directly (no wrapper modal)
284
+ setShowWizard(true);
285
+ // Clear the URL param to prevent re-triggering on refresh
286
+ window.history.replaceState({}, "", window.location.pathname);
287
+ }
288
+ }, [searchParams]);
289
+
250
290
  // Detect critical subscriptions for alert banners
251
291
  const criticalSubscriptions = data.subscriptions.filter(
252
292
  (sub) =>
@@ -352,7 +392,15 @@ export function BillingDashboardContainer() {
352
392
  subscriptions={data.subscriptions}
353
393
  loading={loading.subscriptions}
354
394
  error={errors.subscriptions || undefined}
355
- onManageClick={() => setActiveModal("subscriptions")}
395
+ onManageClick={() => {
396
+ if (data.subscriptions.length === 0) {
397
+ // No subscriptions - open wizard directly
398
+ setShowWizard(true);
399
+ } else {
400
+ // Has subscriptions - open manage modal
401
+ setActiveModal("subscriptions");
402
+ }
403
+ }}
356
404
  />
357
405
 
358
406
  <PaymentMethodSummaryCard
@@ -394,7 +442,7 @@ export function BillingDashboardContainer() {
394
442
  onOpenChange={handleModalClose}
395
443
  title={getModalTitle("subscriptions")}
396
444
  >
397
- <SubscriptionsContainer />
445
+ <SubscriptionsContainer onOpenWizard={handleOpenWizard} />
398
446
  </BillingDetailModal>
399
447
 
400
448
  <BillingDetailModal
@@ -420,6 +468,15 @@ export function BillingDashboardContainer() {
420
468
  >
421
469
  <UsageContainer />
422
470
  </BillingDetailModal>
471
+
472
+ {/* Subscription Wizard - rendered at dashboard level to avoid nested dialogs */}
473
+ <SubscriptionWizard
474
+ open={showWizard}
475
+ onOpenChange={(open) => !open && handleWizardClose()}
476
+ onSuccess={refreshData}
477
+ hasActiveRecurringSubscription={hasActiveRecurringSubscription}
478
+ subscription={editingSubscription ?? undefined}
479
+ />
423
480
  </>
424
481
  )}
425
482
  </div>