@carlonicora/nextjs-jsonapi 1.66.0 → 1.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-GQM2TZG2.js → BlockNoteEditor-QHWPE3BJ.js} +14 -14
- package/dist/{BlockNoteEditor-GQM2TZG2.js.map → BlockNoteEditor-QHWPE3BJ.js.map} +1 -1
- package/dist/{BlockNoteEditor-KCJMA6LW.mjs → BlockNoteEditor-TIX3GDVZ.mjs} +4 -4
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-QIFM4G7T.js → chunk-3BWYWS3A.js} +1476 -1298
- package/dist/chunk-3BWYWS3A.js.map +1 -0
- package/dist/{chunk-NVXYOQFW.js → chunk-CJY63D6U.js} +12 -5
- package/dist/chunk-CJY63D6U.js.map +1 -0
- package/dist/{chunk-OQRBY22T.js → chunk-KFIQTY4O.js} +11 -11
- package/dist/{chunk-OQRBY22T.js.map → chunk-KFIQTY4O.js.map} +1 -1
- package/dist/{chunk-35GWVOYZ.mjs → chunk-RIG2BEXJ.mjs} +12 -5
- package/dist/{chunk-35GWVOYZ.mjs.map → chunk-RIG2BEXJ.mjs.map} +1 -1
- package/dist/{chunk-4E74ZTRT.mjs → chunk-WWP32QYC.mjs} +2606 -2428
- package/dist/chunk-WWP32QYC.mjs.map +1 -0
- package/dist/{chunk-UXGPZZ6V.mjs → chunk-ZYAAJMZZ.mjs} +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +29 -7
- package/dist/components/index.d.ts +29 -7
- package/dist/components/index.js +8 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -5
- package/dist/contexts/index.d.mts +1 -1
- package/dist/contexts/index.d.ts +1 -1
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{s3.service-DIR6Su9B.d.ts → s3.service-Cg5TmbU_.d.ts} +3 -0
- package/dist/{s3.service-XchHd3ii.d.mts → s3.service-DLf_a0xS.d.mts} +3 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/EditableAvatar.tsx +175 -0
- package/src/components/index.ts +1 -0
- package/src/features/company/components/forms/CompanyEditor.tsx +1 -3
- package/src/features/role/components/forms/FormRoles.tsx +5 -4
- package/src/features/user/components/containers/AllUsersListContainer.tsx +36 -0
- package/src/features/user/components/containers/UserContainer.tsx +10 -13
- package/src/features/user/components/containers/UsersListContainer.tsx +15 -24
- package/src/features/user/components/containers/index.ts +1 -0
- package/src/features/user/components/details/UserContent.tsx +92 -0
- package/src/features/user/components/details/index.ts +1 -1
- package/src/features/user/components/forms/UserEditor.tsx +233 -233
- package/src/features/user/components/lists/CompanyUsersList.tsx +3 -1
- package/src/features/user/contexts/UserContext.tsx +1 -6
- package/src/features/user/data/user.service.ts +9 -0
- package/src/features/user/data/user.ts +3 -4
- package/dist/chunk-4E74ZTRT.mjs.map +0 -1
- package/dist/chunk-NVXYOQFW.js.map +0 -1
- package/dist/chunk-QIFM4G7T.js.map +0 -1
- package/src/features/user/components/details/UserDetails.tsx +0 -74
- /package/dist/{BlockNoteEditor-KCJMA6LW.mjs.map → BlockNoteEditor-TIX3GDVZ.mjs.map} +0 -0
- /package/dist/{chunk-UXGPZZ6V.mjs.map → chunk-ZYAAJMZZ.mjs.map} +0 -0
package/dist/core/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../Api
|
|
|
3
3
|
import { A as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
4
4
|
export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
5
5
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
|
|
6
|
-
import { b as AbstractService, i as TwoFactorChallengeInterface, c as NextRef, d as PreviousRef, k as S3Interface, j as S3Input } from '../s3.service-
|
|
7
|
-
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, N as NotificationService, P as PushService, R as RoleService, S as S3Service, e as SelfRef, T as TotalRef, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-
|
|
6
|
+
import { b as AbstractService, i as TwoFactorChallengeInterface, c as NextRef, d as PreviousRef, k as S3Interface, j as S3Input } from '../s3.service-DLf_a0xS.mjs';
|
|
7
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, N as NotificationService, P as PushService, R as RoleService, S as S3Service, e as SelfRef, T as TotalRef, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-DLf_a0xS.mjs';
|
|
8
8
|
import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, R as RoleInterface, j as RoleInput, U as UserInterface, h as CompanyInterface, k as UserInput, C as CompanyInput, N as NotificationInterface, i as NotificationInput } from '../notification.interface-C6UcmJqu.mjs';
|
|
9
9
|
export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-C6UcmJqu.mjs';
|
|
10
10
|
export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../Api
|
|
|
3
3
|
import { A as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
4
4
|
export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
5
5
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
|
|
6
|
-
import { b as AbstractService, i as TwoFactorChallengeInterface, c as NextRef, d as PreviousRef, k as S3Interface, j as S3Input } from '../s3.service-
|
|
7
|
-
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, N as NotificationService, P as PushService, R as RoleService, S as S3Service, e as SelfRef, T as TotalRef, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-
|
|
6
|
+
import { b as AbstractService, i as TwoFactorChallengeInterface, c as NextRef, d as PreviousRef, k as S3Interface, j as S3Input } from '../s3.service-Cg5TmbU_.js';
|
|
7
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, N as NotificationService, P as PushService, R as RoleService, S as S3Service, e as SelfRef, T as TotalRef, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-Cg5TmbU_.js';
|
|
8
8
|
import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, R as RoleInterface, j as RoleInput, U as UserInterface, h as CompanyInterface, k as UserInput, C as CompanyInput, N as NotificationInterface, i as NotificationInput } from '../notification.interface-ItBxq2au.js';
|
|
9
9
|
export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-ItBxq2au.js';
|
|
10
10
|
export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
|
package/dist/core/index.js
CHANGED
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
var
|
|
162
|
+
var _chunkCJY63D6Ujs = require('../chunk-CJY63D6U.js');
|
|
163
163
|
require('../chunk-LXKSUWAV.js');
|
|
164
164
|
require('../chunk-IBS6NI7D.js');
|
|
165
165
|
|
|
@@ -345,5 +345,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
|
|
348
|
-
exports.AVAILABLE_OAUTH_SCOPES = _chunkNVXYOQFWjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkNVXYOQFWjs.AbstractApiData; exports.AbstractService = _chunkNVXYOQFWjs.AbstractService; exports.Action = _chunkNVXYOQFWjs.Action; exports.AuditLog = _chunkNVXYOQFWjs.AuditLog; exports.AuditLogModule = _chunkNVXYOQFWjs.AuditLogModule; exports.AuditLogService = _chunkNVXYOQFWjs.AuditLogService; exports.Auth = _chunkNVXYOQFWjs.Auth; exports.AuthComponent = _chunkNVXYOQFWjs.AuthComponent; exports.AuthModule = _chunkNVXYOQFWjs.AuthModule; exports.AuthService = _chunkNVXYOQFWjs.AuthService; exports.AuthorModule = _chunkNVXYOQFWjs.AuthorModule; exports.BackupCodeVerify = _chunkNVXYOQFWjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkNVXYOQFWjs.BackupCodeVerifyModule; exports.Billing = _chunkNVXYOQFWjs.Billing; exports.BillingModule = _chunkNVXYOQFWjs.BillingModule; exports.BillingService = _chunkNVXYOQFWjs.BillingService; exports.BlockNoteDiffUtil = _chunkNVXYOQFWjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkNVXYOQFWjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkNVXYOQFWjs.ClientAbstractService; exports.ClientHttpMethod = _chunkNVXYOQFWjs.ClientHttpMethod; exports.Company = _chunkNVXYOQFWjs.Company; exports.CompanyFields = _chunkNVXYOQFWjs.CompanyFields; exports.CompanyModule = _chunkNVXYOQFWjs.CompanyModule; exports.CompanyService = _chunkNVXYOQFWjs.CompanyService; exports.Content = _chunkNVXYOQFWjs.Content; exports.ContentFields = _chunkNVXYOQFWjs.ContentFields; exports.ContentModule = _chunkNVXYOQFWjs.ContentModule; exports.ContentService = _chunkNVXYOQFWjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkNVXYOQFWjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkNVXYOQFWjs.EndpointCreator; exports.Feature = _chunkNVXYOQFWjs.Feature; exports.FeatureModule = _chunkNVXYOQFWjs.FeatureModule; exports.FeatureService = _chunkNVXYOQFWjs.FeatureService; exports.HttpMethod = _chunkNVXYOQFWjs.HttpMethod; exports.InvoiceStatus = _chunkNVXYOQFWjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkNVXYOQFWjs.Module; exports.ModuleModule = _chunkNVXYOQFWjs.ModuleModule; exports.ModulePathsModule = _chunkNVXYOQFWjs.ModulePathsModule; exports.ModuleRegistrar = _chunkNVXYOQFWjs.ModuleRegistrar; exports.ModuleRegistry = _chunkNVXYOQFWjs.ModuleRegistry; exports.Modules = _chunkNVXYOQFWjs.Modules; exports.Notification = _chunkNVXYOQFWjs.Notification; exports.NotificationFields = _chunkNVXYOQFWjs.NotificationFields; exports.NotificationModule = _chunkNVXYOQFWjs.NotificationModule; exports.NotificationService = _chunkNVXYOQFWjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkNVXYOQFWjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkNVXYOQFWjs.OAuthClient; exports.OAuthModule = _chunkNVXYOQFWjs.OAuthModule; exports.OAuthService = _chunkNVXYOQFWjs.OAuthService; exports.Passkey = _chunkNVXYOQFWjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkNVXYOQFWjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkNVXYOQFWjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkNVXYOQFWjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkNVXYOQFWjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkNVXYOQFWjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkNVXYOQFWjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkNVXYOQFWjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkNVXYOQFWjs.PasskeyRename; exports.PasskeyRenameModule = _chunkNVXYOQFWjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkNVXYOQFWjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkNVXYOQFWjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkNVXYOQFWjs.PaymentMethod; exports.PermissionMappingModule = _chunkNVXYOQFWjs.PermissionMappingModule; exports.Push = _chunkNVXYOQFWjs.Push; exports.PushModule = _chunkNVXYOQFWjs.PushModule; exports.PushService = _chunkNVXYOQFWjs.PushService; exports.ReferralModule = _chunkNVXYOQFWjs.ReferralModule; exports.ReferralService = _chunkNVXYOQFWjs.ReferralService; exports.ReferralStats = _chunkNVXYOQFWjs.ReferralStats; exports.ReferralStatsModule = _chunkNVXYOQFWjs.ReferralStatsModule; exports.RehydrationFactory = _chunkNVXYOQFWjs.RehydrationFactory; exports.Role = _chunkNVXYOQFWjs.Role; exports.RoleFields = _chunkNVXYOQFWjs.RoleFields; exports.RoleModule = _chunkNVXYOQFWjs.RoleModule; exports.RoleService = _chunkNVXYOQFWjs.RoleService; exports.S3 = _chunkNVXYOQFWjs.S3; exports.S3Module = _chunkNVXYOQFWjs.S3Module; exports.S3Service = _chunkNVXYOQFWjs.S3Service; exports.StripeCustomer = _chunkNVXYOQFWjs.StripeCustomer; exports.StripeCustomerModule = _chunkNVXYOQFWjs.StripeCustomerModule; exports.StripeCustomerService = _chunkNVXYOQFWjs.StripeCustomerService; exports.StripeInvoice = _chunkNVXYOQFWjs.StripeInvoice; exports.StripeInvoiceModule = _chunkNVXYOQFWjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkNVXYOQFWjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkNVXYOQFWjs.StripePaymentMethodModule; exports.StripePrice = _chunkNVXYOQFWjs.StripePrice; exports.StripePriceModule = _chunkNVXYOQFWjs.StripePriceModule; exports.StripePriceService = _chunkNVXYOQFWjs.StripePriceService; exports.StripeProduct = _chunkNVXYOQFWjs.StripeProduct; exports.StripeProductModule = _chunkNVXYOQFWjs.StripeProductModule; exports.StripeProductService = _chunkNVXYOQFWjs.StripeProductService; exports.StripePromotionCode = _chunkNVXYOQFWjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkNVXYOQFWjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkNVXYOQFWjs.StripePromotionCodeService; exports.StripeSubscription = _chunkNVXYOQFWjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkNVXYOQFWjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkNVXYOQFWjs.StripeSubscriptionService; exports.StripeUsage = _chunkNVXYOQFWjs.StripeUsage; exports.StripeUsageModule = _chunkNVXYOQFWjs.StripeUsageModule; exports.StripeUsageService = _chunkNVXYOQFWjs.StripeUsageService; exports.SubscriptionStatus = _chunkNVXYOQFWjs.SubscriptionStatus; exports.TableOptions = _chunkNVXYOQFWjs.TableOptions; exports.TotpAuthenticator = _chunkNVXYOQFWjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkNVXYOQFWjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkNVXYOQFWjs.TotpSetup; exports.TotpSetupModule = _chunkNVXYOQFWjs.TotpSetupModule; exports.TotpVerify = _chunkNVXYOQFWjs.TotpVerify; exports.TotpVerifyLogin = _chunkNVXYOQFWjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkNVXYOQFWjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkNVXYOQFWjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkNVXYOQFWjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkNVXYOQFWjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkNVXYOQFWjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkNVXYOQFWjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkNVXYOQFWjs.TwoFactorService; exports.TwoFactorStatus = _chunkNVXYOQFWjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkNVXYOQFWjs.TwoFactorStatusModule; exports.User = _chunkNVXYOQFWjs.User; exports.UserFields = _chunkNVXYOQFWjs.UserFields; exports.UserModule = _chunkNVXYOQFWjs.UserModule; exports.UserService = _chunkNVXYOQFWjs.UserService; exports.Waitlist = _chunkNVXYOQFWjs.Waitlist; exports.WaitlistModule = _chunkNVXYOQFWjs.WaitlistModule; exports.WaitlistService = _chunkNVXYOQFWjs.WaitlistService; exports.WaitlistStats = _chunkNVXYOQFWjs.WaitlistStats; exports.WaitlistStatsModule = _chunkNVXYOQFWjs.WaitlistStatsModule; exports.checkPermissions = _chunkNVXYOQFWjs.checkPermissions; exports.checkPermissionsFromServer = _chunkNVXYOQFWjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkNVXYOQFWjs.clearLastApiTotal; exports.cn = _chunkNVXYOQFWjs.cn; exports.composeRefs = _chunkNVXYOQFWjs.composeRefs; exports.createJsonApiInclusion = _chunkNVXYOQFWjs.createJsonApiInclusion; exports.dismissToast = _chunkNVXYOQFWjs.dismissToast; exports.entityObjectSchema = _chunkNVXYOQFWjs.entityObjectSchema; exports.exists = _chunkNVXYOQFWjs.exists; exports.formatDate = _chunkNVXYOQFWjs.formatDate; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkNVXYOQFWjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkNVXYOQFWjs.getGlobalErrorHandler; exports.getIcon = _chunkNVXYOQFWjs.getIcon; exports.getIconByModule = _chunkNVXYOQFWjs.getIconByModule; exports.getIconByModuleName = _chunkNVXYOQFWjs.getIconByModuleName; exports.getInitials = _chunkNVXYOQFWjs.getInitials; exports.getLastApiTotal = _chunkNVXYOQFWjs.getLastApiTotal; exports.getLucideIcon = _chunkNVXYOQFWjs.getLucideIcon; exports.getLucideIconByModule = _chunkNVXYOQFWjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkNVXYOQFWjs.getLucideIconByModuleName; exports.getTableComponents = _chunkNVXYOQFWjs.getTableComponents; exports.getTableOptions = _chunkNVXYOQFWjs.getTableOptions; exports.getValueFromPath = _chunkNVXYOQFWjs.getValueFromPath; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.rehydrate = _chunkNVXYOQFWjs.rehydrate; exports.rehydrateList = _chunkNVXYOQFWjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkNVXYOQFWjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkNVXYOQFWjs.setGlobalErrorHandler; exports.showCustomToast = _chunkNVXYOQFWjs.showCustomToast; exports.showError = _chunkNVXYOQFWjs.showError; exports.showToast = _chunkNVXYOQFWjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkNVXYOQFWjs.useComposedRefs; exports.useIsMobile = _chunkNVXYOQFWjs.useIsMobile; exports.userObjectSchema = _chunkNVXYOQFWjs.userObjectSchema;
|
|
348
|
+
exports.AVAILABLE_OAUTH_SCOPES = _chunkCJY63D6Ujs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkCJY63D6Ujs.AbstractApiData; exports.AbstractService = _chunkCJY63D6Ujs.AbstractService; exports.Action = _chunkCJY63D6Ujs.Action; exports.AuditLog = _chunkCJY63D6Ujs.AuditLog; exports.AuditLogModule = _chunkCJY63D6Ujs.AuditLogModule; exports.AuditLogService = _chunkCJY63D6Ujs.AuditLogService; exports.Auth = _chunkCJY63D6Ujs.Auth; exports.AuthComponent = _chunkCJY63D6Ujs.AuthComponent; exports.AuthModule = _chunkCJY63D6Ujs.AuthModule; exports.AuthService = _chunkCJY63D6Ujs.AuthService; exports.AuthorModule = _chunkCJY63D6Ujs.AuthorModule; exports.BackupCodeVerify = _chunkCJY63D6Ujs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkCJY63D6Ujs.BackupCodeVerifyModule; exports.Billing = _chunkCJY63D6Ujs.Billing; exports.BillingModule = _chunkCJY63D6Ujs.BillingModule; exports.BillingService = _chunkCJY63D6Ujs.BillingService; exports.BlockNoteDiffUtil = _chunkCJY63D6Ujs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkCJY63D6Ujs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkCJY63D6Ujs.ClientAbstractService; exports.ClientHttpMethod = _chunkCJY63D6Ujs.ClientHttpMethod; exports.Company = _chunkCJY63D6Ujs.Company; exports.CompanyFields = _chunkCJY63D6Ujs.CompanyFields; exports.CompanyModule = _chunkCJY63D6Ujs.CompanyModule; exports.CompanyService = _chunkCJY63D6Ujs.CompanyService; exports.Content = _chunkCJY63D6Ujs.Content; exports.ContentFields = _chunkCJY63D6Ujs.ContentFields; exports.ContentModule = _chunkCJY63D6Ujs.ContentModule; exports.ContentService = _chunkCJY63D6Ujs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkCJY63D6Ujs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkCJY63D6Ujs.EndpointCreator; exports.Feature = _chunkCJY63D6Ujs.Feature; exports.FeatureModule = _chunkCJY63D6Ujs.FeatureModule; exports.FeatureService = _chunkCJY63D6Ujs.FeatureService; exports.HttpMethod = _chunkCJY63D6Ujs.HttpMethod; exports.InvoiceStatus = _chunkCJY63D6Ujs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkCJY63D6Ujs.Module; exports.ModuleModule = _chunkCJY63D6Ujs.ModuleModule; exports.ModulePathsModule = _chunkCJY63D6Ujs.ModulePathsModule; exports.ModuleRegistrar = _chunkCJY63D6Ujs.ModuleRegistrar; exports.ModuleRegistry = _chunkCJY63D6Ujs.ModuleRegistry; exports.Modules = _chunkCJY63D6Ujs.Modules; exports.Notification = _chunkCJY63D6Ujs.Notification; exports.NotificationFields = _chunkCJY63D6Ujs.NotificationFields; exports.NotificationModule = _chunkCJY63D6Ujs.NotificationModule; exports.NotificationService = _chunkCJY63D6Ujs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkCJY63D6Ujs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkCJY63D6Ujs.OAuthClient; exports.OAuthModule = _chunkCJY63D6Ujs.OAuthModule; exports.OAuthService = _chunkCJY63D6Ujs.OAuthService; exports.Passkey = _chunkCJY63D6Ujs.Passkey; exports.PasskeyAuthenticationOptions = _chunkCJY63D6Ujs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkCJY63D6Ujs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkCJY63D6Ujs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkCJY63D6Ujs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkCJY63D6Ujs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkCJY63D6Ujs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkCJY63D6Ujs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkCJY63D6Ujs.PasskeyRename; exports.PasskeyRenameModule = _chunkCJY63D6Ujs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkCJY63D6Ujs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkCJY63D6Ujs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkCJY63D6Ujs.PaymentMethod; exports.PermissionMappingModule = _chunkCJY63D6Ujs.PermissionMappingModule; exports.Push = _chunkCJY63D6Ujs.Push; exports.PushModule = _chunkCJY63D6Ujs.PushModule; exports.PushService = _chunkCJY63D6Ujs.PushService; exports.ReferralModule = _chunkCJY63D6Ujs.ReferralModule; exports.ReferralService = _chunkCJY63D6Ujs.ReferralService; exports.ReferralStats = _chunkCJY63D6Ujs.ReferralStats; exports.ReferralStatsModule = _chunkCJY63D6Ujs.ReferralStatsModule; exports.RehydrationFactory = _chunkCJY63D6Ujs.RehydrationFactory; exports.Role = _chunkCJY63D6Ujs.Role; exports.RoleFields = _chunkCJY63D6Ujs.RoleFields; exports.RoleModule = _chunkCJY63D6Ujs.RoleModule; exports.RoleService = _chunkCJY63D6Ujs.RoleService; exports.S3 = _chunkCJY63D6Ujs.S3; exports.S3Module = _chunkCJY63D6Ujs.S3Module; exports.S3Service = _chunkCJY63D6Ujs.S3Service; exports.StripeCustomer = _chunkCJY63D6Ujs.StripeCustomer; exports.StripeCustomerModule = _chunkCJY63D6Ujs.StripeCustomerModule; exports.StripeCustomerService = _chunkCJY63D6Ujs.StripeCustomerService; exports.StripeInvoice = _chunkCJY63D6Ujs.StripeInvoice; exports.StripeInvoiceModule = _chunkCJY63D6Ujs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkCJY63D6Ujs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkCJY63D6Ujs.StripePaymentMethodModule; exports.StripePrice = _chunkCJY63D6Ujs.StripePrice; exports.StripePriceModule = _chunkCJY63D6Ujs.StripePriceModule; exports.StripePriceService = _chunkCJY63D6Ujs.StripePriceService; exports.StripeProduct = _chunkCJY63D6Ujs.StripeProduct; exports.StripeProductModule = _chunkCJY63D6Ujs.StripeProductModule; exports.StripeProductService = _chunkCJY63D6Ujs.StripeProductService; exports.StripePromotionCode = _chunkCJY63D6Ujs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkCJY63D6Ujs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkCJY63D6Ujs.StripePromotionCodeService; exports.StripeSubscription = _chunkCJY63D6Ujs.StripeSubscription; exports.StripeSubscriptionModule = _chunkCJY63D6Ujs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkCJY63D6Ujs.StripeSubscriptionService; exports.StripeUsage = _chunkCJY63D6Ujs.StripeUsage; exports.StripeUsageModule = _chunkCJY63D6Ujs.StripeUsageModule; exports.StripeUsageService = _chunkCJY63D6Ujs.StripeUsageService; exports.SubscriptionStatus = _chunkCJY63D6Ujs.SubscriptionStatus; exports.TableOptions = _chunkCJY63D6Ujs.TableOptions; exports.TotpAuthenticator = _chunkCJY63D6Ujs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkCJY63D6Ujs.TotpAuthenticatorModule; exports.TotpSetup = _chunkCJY63D6Ujs.TotpSetup; exports.TotpSetupModule = _chunkCJY63D6Ujs.TotpSetupModule; exports.TotpVerify = _chunkCJY63D6Ujs.TotpVerify; exports.TotpVerifyLogin = _chunkCJY63D6Ujs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkCJY63D6Ujs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkCJY63D6Ujs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkCJY63D6Ujs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkCJY63D6Ujs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkCJY63D6Ujs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkCJY63D6Ujs.TwoFactorEnableModule; exports.TwoFactorService = _chunkCJY63D6Ujs.TwoFactorService; exports.TwoFactorStatus = _chunkCJY63D6Ujs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkCJY63D6Ujs.TwoFactorStatusModule; exports.User = _chunkCJY63D6Ujs.User; exports.UserFields = _chunkCJY63D6Ujs.UserFields; exports.UserModule = _chunkCJY63D6Ujs.UserModule; exports.UserService = _chunkCJY63D6Ujs.UserService; exports.Waitlist = _chunkCJY63D6Ujs.Waitlist; exports.WaitlistModule = _chunkCJY63D6Ujs.WaitlistModule; exports.WaitlistService = _chunkCJY63D6Ujs.WaitlistService; exports.WaitlistStats = _chunkCJY63D6Ujs.WaitlistStats; exports.WaitlistStatsModule = _chunkCJY63D6Ujs.WaitlistStatsModule; exports.checkPermissions = _chunkCJY63D6Ujs.checkPermissions; exports.checkPermissionsFromServer = _chunkCJY63D6Ujs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkCJY63D6Ujs.clearLastApiTotal; exports.cn = _chunkCJY63D6Ujs.cn; exports.composeRefs = _chunkCJY63D6Ujs.composeRefs; exports.createJsonApiInclusion = _chunkCJY63D6Ujs.createJsonApiInclusion; exports.dismissToast = _chunkCJY63D6Ujs.dismissToast; exports.entityObjectSchema = _chunkCJY63D6Ujs.entityObjectSchema; exports.exists = _chunkCJY63D6Ujs.exists; exports.formatDate = _chunkCJY63D6Ujs.formatDate; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkCJY63D6Ujs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkCJY63D6Ujs.getGlobalErrorHandler; exports.getIcon = _chunkCJY63D6Ujs.getIcon; exports.getIconByModule = _chunkCJY63D6Ujs.getIconByModule; exports.getIconByModuleName = _chunkCJY63D6Ujs.getIconByModuleName; exports.getInitials = _chunkCJY63D6Ujs.getInitials; exports.getLastApiTotal = _chunkCJY63D6Ujs.getLastApiTotal; exports.getLucideIcon = _chunkCJY63D6Ujs.getLucideIcon; exports.getLucideIconByModule = _chunkCJY63D6Ujs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkCJY63D6Ujs.getLucideIconByModuleName; exports.getTableComponents = _chunkCJY63D6Ujs.getTableComponents; exports.getTableOptions = _chunkCJY63D6Ujs.getTableOptions; exports.getValueFromPath = _chunkCJY63D6Ujs.getValueFromPath; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.rehydrate = _chunkCJY63D6Ujs.rehydrate; exports.rehydrateList = _chunkCJY63D6Ujs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkCJY63D6Ujs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkCJY63D6Ujs.setGlobalErrorHandler; exports.showCustomToast = _chunkCJY63D6Ujs.showCustomToast; exports.showError = _chunkCJY63D6Ujs.showError; exports.showToast = _chunkCJY63D6Ujs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkCJY63D6Ujs.useComposedRefs; exports.useIsMobile = _chunkCJY63D6Ujs.useIsMobile; exports.userObjectSchema = _chunkCJY63D6Ujs.userObjectSchema;
|
|
349
349
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys,
|
|
|
5
5
|
export { A as ApiResponseInterface } from './ApiResponseInterface-zeewugD7.mjs';
|
|
6
6
|
import { AbstractApiData } from './core/index.mjs';
|
|
7
7
|
export { AppModuleDefinitions, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
|
|
8
|
-
import { b as AbstractService } from './s3.service-
|
|
9
|
-
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-
|
|
8
|
+
import { b as AbstractService } from './s3.service-DLf_a0xS.mjs';
|
|
9
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-DLf_a0xS.mjs';
|
|
10
10
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
11
11
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
|
|
12
12
|
export { ClassValue } from 'clsx';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys,
|
|
|
5
5
|
export { A as ApiResponseInterface } from './ApiResponseInterface-CAIAeP5d.js';
|
|
6
6
|
import { AbstractApiData } from './core/index.js';
|
|
7
7
|
export { AppModuleDefinitions, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
|
|
8
|
-
import { b as AbstractService } from './s3.service-
|
|
9
|
-
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-
|
|
8
|
+
import { b as AbstractService } from './s3.service-Cg5TmbU_.js';
|
|
9
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-Cg5TmbU_.js';
|
|
10
10
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
11
11
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
|
|
12
12
|
export { ClassValue } from 'clsx';
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkKFIQTY4Ojs = require('./chunk-KFIQTY4O.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -183,7 +183,7 @@ var _chunkOQRBY22Tjs = require('./chunk-OQRBY22T.js');
|
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
|
|
186
|
-
var
|
|
186
|
+
var _chunkCJY63D6Ujs = require('./chunk-CJY63D6U.js');
|
|
187
187
|
require('./chunk-LXKSUWAV.js');
|
|
188
188
|
require('./chunk-IBS6NI7D.js');
|
|
189
189
|
|
|
@@ -391,5 +391,5 @@ require('./chunk-7QVYU63E.js');
|
|
|
391
391
|
|
|
392
392
|
|
|
393
393
|
|
|
394
|
-
exports.ACTION_TYPES = _chunkOQRBY22Tjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkNVXYOQFWjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkNVXYOQFWjs.AbstractApiData; exports.AbstractService = _chunkNVXYOQFWjs.AbstractService; exports.Action = _chunkNVXYOQFWjs.Action; exports.AuditLog = _chunkNVXYOQFWjs.AuditLog; exports.AuditLogModule = _chunkNVXYOQFWjs.AuditLogModule; exports.AuditLogService = _chunkNVXYOQFWjs.AuditLogService; exports.Auth = _chunkNVXYOQFWjs.Auth; exports.AuthComponent = _chunkNVXYOQFWjs.AuthComponent; exports.AuthModule = _chunkNVXYOQFWjs.AuthModule; exports.AuthService = _chunkNVXYOQFWjs.AuthService; exports.AuthorModule = _chunkNVXYOQFWjs.AuthorModule; exports.BackupCodeVerify = _chunkNVXYOQFWjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkNVXYOQFWjs.BackupCodeVerifyModule; exports.Billing = _chunkNVXYOQFWjs.Billing; exports.BillingModule = _chunkNVXYOQFWjs.BillingModule; exports.BillingService = _chunkNVXYOQFWjs.BillingService; exports.BlockNoteDiffUtil = _chunkNVXYOQFWjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkNVXYOQFWjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkOQRBY22Tjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunkNVXYOQFWjs.ClientAbstractService; exports.ClientHttpMethod = _chunkNVXYOQFWjs.ClientHttpMethod; exports.Company = _chunkNVXYOQFWjs.Company; exports.CompanyFields = _chunkNVXYOQFWjs.CompanyFields; exports.CompanyModule = _chunkNVXYOQFWjs.CompanyModule; exports.CompanyService = _chunkNVXYOQFWjs.CompanyService; exports.Content = _chunkNVXYOQFWjs.Content; exports.ContentFields = _chunkNVXYOQFWjs.ContentFields; exports.ContentModule = _chunkNVXYOQFWjs.ContentModule; exports.ContentService = _chunkNVXYOQFWjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkNVXYOQFWjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkNVXYOQFWjs.EndpointCreator; exports.Feature = _chunkNVXYOQFWjs.Feature; exports.FeatureModule = _chunkNVXYOQFWjs.FeatureModule; exports.FeatureService = _chunkNVXYOQFWjs.FeatureService; exports.HttpMethod = _chunkNVXYOQFWjs.HttpMethod; exports.InvoiceStatus = _chunkNVXYOQFWjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkNVXYOQFWjs.Module; exports.ModuleModule = _chunkNVXYOQFWjs.ModuleModule; exports.ModulePaths = _chunkNVXYOQFWjs.ModulePaths; exports.ModulePathsModule = _chunkNVXYOQFWjs.ModulePathsModule; exports.ModuleRegistrar = _chunkNVXYOQFWjs.ModuleRegistrar; exports.ModuleRegistry = _chunkNVXYOQFWjs.ModuleRegistry; exports.Modules = _chunkNVXYOQFWjs.Modules; exports.Notification = _chunkNVXYOQFWjs.Notification; exports.NotificationFields = _chunkNVXYOQFWjs.NotificationFields; exports.NotificationModule = _chunkNVXYOQFWjs.NotificationModule; exports.NotificationService = _chunkNVXYOQFWjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkNVXYOQFWjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkNVXYOQFWjs.OAuthClient; exports.OAuthModule = _chunkNVXYOQFWjs.OAuthModule; exports.OAuthService = _chunkNVXYOQFWjs.OAuthService; exports.Passkey = _chunkNVXYOQFWjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkNVXYOQFWjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkNVXYOQFWjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkNVXYOQFWjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkNVXYOQFWjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkNVXYOQFWjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkNVXYOQFWjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkNVXYOQFWjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkNVXYOQFWjs.PasskeyRename; exports.PasskeyRenameModule = _chunkNVXYOQFWjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkNVXYOQFWjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkNVXYOQFWjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkNVXYOQFWjs.PaymentMethod; exports.PermissionMapping = _chunkNVXYOQFWjs.PermissionMapping; exports.PermissionMappingModule = _chunkNVXYOQFWjs.PermissionMappingModule; exports.Push = _chunkNVXYOQFWjs.Push; exports.PushModule = _chunkNVXYOQFWjs.PushModule; exports.PushService = _chunkNVXYOQFWjs.PushService; exports.RbacService = _chunkOQRBY22Tjs.RbacService; exports.ReferralModule = _chunkNVXYOQFWjs.ReferralModule; exports.ReferralService = _chunkNVXYOQFWjs.ReferralService; exports.ReferralStats = _chunkNVXYOQFWjs.ReferralStats; exports.ReferralStatsModule = _chunkNVXYOQFWjs.ReferralStatsModule; exports.RehydrationFactory = _chunkNVXYOQFWjs.RehydrationFactory; exports.Role = _chunkNVXYOQFWjs.Role; exports.RoleFields = _chunkNVXYOQFWjs.RoleFields; exports.RoleModule = _chunkNVXYOQFWjs.RoleModule; exports.RoleService = _chunkNVXYOQFWjs.RoleService; exports.S3 = _chunkNVXYOQFWjs.S3; exports.S3Module = _chunkNVXYOQFWjs.S3Module; exports.S3Service = _chunkNVXYOQFWjs.S3Service; exports.StripeCustomer = _chunkNVXYOQFWjs.StripeCustomer; exports.StripeCustomerModule = _chunkNVXYOQFWjs.StripeCustomerModule; exports.StripeCustomerService = _chunkNVXYOQFWjs.StripeCustomerService; exports.StripeInvoice = _chunkNVXYOQFWjs.StripeInvoice; exports.StripeInvoiceModule = _chunkNVXYOQFWjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkNVXYOQFWjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkNVXYOQFWjs.StripePaymentMethodModule; exports.StripePrice = _chunkNVXYOQFWjs.StripePrice; exports.StripePriceModule = _chunkNVXYOQFWjs.StripePriceModule; exports.StripePriceService = _chunkNVXYOQFWjs.StripePriceService; exports.StripeProduct = _chunkNVXYOQFWjs.StripeProduct; exports.StripeProductModule = _chunkNVXYOQFWjs.StripeProductModule; exports.StripeProductService = _chunkNVXYOQFWjs.StripeProductService; exports.StripePromotionCode = _chunkNVXYOQFWjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkNVXYOQFWjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkNVXYOQFWjs.StripePromotionCodeService; exports.StripeSubscription = _chunkNVXYOQFWjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkNVXYOQFWjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkNVXYOQFWjs.StripeSubscriptionService; exports.StripeUsage = _chunkNVXYOQFWjs.StripeUsage; exports.StripeUsageModule = _chunkNVXYOQFWjs.StripeUsageModule; exports.StripeUsageService = _chunkNVXYOQFWjs.StripeUsageService; exports.SubscriptionStatus = _chunkNVXYOQFWjs.SubscriptionStatus; exports.TableOptions = _chunkNVXYOQFWjs.TableOptions; exports.TotpAuthenticator = _chunkNVXYOQFWjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkNVXYOQFWjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkNVXYOQFWjs.TotpSetup; exports.TotpSetupModule = _chunkNVXYOQFWjs.TotpSetupModule; exports.TotpVerify = _chunkNVXYOQFWjs.TotpVerify; exports.TotpVerifyLogin = _chunkNVXYOQFWjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkNVXYOQFWjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkNVXYOQFWjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkNVXYOQFWjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkNVXYOQFWjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkNVXYOQFWjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkNVXYOQFWjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkNVXYOQFWjs.TwoFactorService; exports.TwoFactorStatus = _chunkNVXYOQFWjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkNVXYOQFWjs.TwoFactorStatusModule; exports.User = _chunkNVXYOQFWjs.User; exports.UserFields = _chunkNVXYOQFWjs.UserFields; exports.UserModule = _chunkNVXYOQFWjs.UserModule; exports.UserService = _chunkNVXYOQFWjs.UserService; exports.Waitlist = _chunkNVXYOQFWjs.Waitlist; exports.WaitlistModule = _chunkNVXYOQFWjs.WaitlistModule; exports.WaitlistService = _chunkNVXYOQFWjs.WaitlistService; exports.WaitlistStats = _chunkNVXYOQFWjs.WaitlistStats; exports.WaitlistStatsModule = _chunkNVXYOQFWjs.WaitlistStatsModule; exports.checkPermissions = _chunkNVXYOQFWjs.checkPermissions; exports.checkPermissionsFromServer = _chunkNVXYOQFWjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkNVXYOQFWjs.clearLastApiTotal; exports.cn = _chunkNVXYOQFWjs.cn; exports.composeRefs = _chunkNVXYOQFWjs.composeRefs; exports.configureAuth = _chunkNVXYOQFWjs.configureAuth; exports.configureI18n = _chunkOQRBY22Tjs.configureI18n; exports.configureJsonApi = _chunkOQRBY22Tjs.configureJsonApi; exports.configureLogin = _chunkOQRBY22Tjs.configureLogin; exports.configureReferral = _chunkOQRBY22Tjs.configureReferral; exports.configureRoles = _chunkOQRBY22Tjs.configureRoles; exports.configureWaitlist = _chunkOQRBY22Tjs.configureWaitlist; exports.createJsonApiInclusion = _chunkNVXYOQFWjs.createJsonApiInclusion; exports.dismissToast = _chunkNVXYOQFWjs.dismissToast; exports.entityObjectSchema = _chunkNVXYOQFWjs.entityObjectSchema; exports.exists = _chunkNVXYOQFWjs.exists; exports.formatDate = _chunkNVXYOQFWjs.formatDate; exports.getApiUrl = _chunkOQRBY22Tjs.getApiUrl; exports.getAppUrl = _chunkOQRBY22Tjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkNVXYOQFWjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkNVXYOQFWjs.getGlobalErrorHandler; exports.getIcon = _chunkNVXYOQFWjs.getIcon; exports.getIconByModule = _chunkNVXYOQFWjs.getIconByModule; exports.getIconByModuleName = _chunkNVXYOQFWjs.getIconByModuleName; exports.getInitials = _chunkNVXYOQFWjs.getInitials; exports.getLastApiTotal = _chunkNVXYOQFWjs.getLastApiTotal; exports.getLucideIcon = _chunkNVXYOQFWjs.getLucideIcon; exports.getLucideIconByModule = _chunkNVXYOQFWjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkNVXYOQFWjs.getLucideIconByModuleName; exports.getReferralConfig = _chunkOQRBY22Tjs.getReferralConfig; exports.getRoleId = _chunkOQRBY22Tjs.getRoleId; exports.getStripePublishableKey = _chunkOQRBY22Tjs.getStripePublishableKey; exports.getTableComponents = _chunkNVXYOQFWjs.getTableComponents; exports.getTableOptions = _chunkNVXYOQFWjs.getTableOptions; exports.getTokenHandler = _chunkNVXYOQFWjs.getTokenHandler; exports.getTrackablePages = _chunkOQRBY22Tjs.getTrackablePages; exports.getValueFromPath = _chunkNVXYOQFWjs.getValueFromPath; exports.getWaitlistConfig = _chunkOQRBY22Tjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkOQRBY22Tjs.isReferralEnabled; exports.isRolesConfigured = _chunkOQRBY22Tjs.isRolesConfigured; exports.rehydrate = _chunkNVXYOQFWjs.rehydrate; exports.rehydrateList = _chunkNVXYOQFWjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkNVXYOQFWjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkNVXYOQFWjs.setGlobalErrorHandler; exports.showCustomToast = _chunkNVXYOQFWjs.showCustomToast; exports.showError = _chunkNVXYOQFWjs.showError; exports.showToast = _chunkNVXYOQFWjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkNVXYOQFWjs.useComposedRefs; exports.useIsMobile = _chunkNVXYOQFWjs.useIsMobile; exports.userObjectSchema = _chunkNVXYOQFWjs.userObjectSchema;
|
|
394
|
+
exports.ACTION_TYPES = _chunkKFIQTY4Ojs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkCJY63D6Ujs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkCJY63D6Ujs.AbstractApiData; exports.AbstractService = _chunkCJY63D6Ujs.AbstractService; exports.Action = _chunkCJY63D6Ujs.Action; exports.AuditLog = _chunkCJY63D6Ujs.AuditLog; exports.AuditLogModule = _chunkCJY63D6Ujs.AuditLogModule; exports.AuditLogService = _chunkCJY63D6Ujs.AuditLogService; exports.Auth = _chunkCJY63D6Ujs.Auth; exports.AuthComponent = _chunkCJY63D6Ujs.AuthComponent; exports.AuthModule = _chunkCJY63D6Ujs.AuthModule; exports.AuthService = _chunkCJY63D6Ujs.AuthService; exports.AuthorModule = _chunkCJY63D6Ujs.AuthorModule; exports.BackupCodeVerify = _chunkCJY63D6Ujs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkCJY63D6Ujs.BackupCodeVerifyModule; exports.Billing = _chunkCJY63D6Ujs.Billing; exports.BillingModule = _chunkCJY63D6Ujs.BillingModule; exports.BillingService = _chunkCJY63D6Ujs.BillingService; exports.BlockNoteDiffUtil = _chunkCJY63D6Ujs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkCJY63D6Ujs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkKFIQTY4Ojs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunkCJY63D6Ujs.ClientAbstractService; exports.ClientHttpMethod = _chunkCJY63D6Ujs.ClientHttpMethod; exports.Company = _chunkCJY63D6Ujs.Company; exports.CompanyFields = _chunkCJY63D6Ujs.CompanyFields; exports.CompanyModule = _chunkCJY63D6Ujs.CompanyModule; exports.CompanyService = _chunkCJY63D6Ujs.CompanyService; exports.Content = _chunkCJY63D6Ujs.Content; exports.ContentFields = _chunkCJY63D6Ujs.ContentFields; exports.ContentModule = _chunkCJY63D6Ujs.ContentModule; exports.ContentService = _chunkCJY63D6Ujs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkCJY63D6Ujs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkCJY63D6Ujs.EndpointCreator; exports.Feature = _chunkCJY63D6Ujs.Feature; exports.FeatureModule = _chunkCJY63D6Ujs.FeatureModule; exports.FeatureService = _chunkCJY63D6Ujs.FeatureService; exports.HttpMethod = _chunkCJY63D6Ujs.HttpMethod; exports.InvoiceStatus = _chunkCJY63D6Ujs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkCJY63D6Ujs.Module; exports.ModuleModule = _chunkCJY63D6Ujs.ModuleModule; exports.ModulePaths = _chunkCJY63D6Ujs.ModulePaths; exports.ModulePathsModule = _chunkCJY63D6Ujs.ModulePathsModule; exports.ModuleRegistrar = _chunkCJY63D6Ujs.ModuleRegistrar; exports.ModuleRegistry = _chunkCJY63D6Ujs.ModuleRegistry; exports.Modules = _chunkCJY63D6Ujs.Modules; exports.Notification = _chunkCJY63D6Ujs.Notification; exports.NotificationFields = _chunkCJY63D6Ujs.NotificationFields; exports.NotificationModule = _chunkCJY63D6Ujs.NotificationModule; exports.NotificationService = _chunkCJY63D6Ujs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkCJY63D6Ujs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkCJY63D6Ujs.OAuthClient; exports.OAuthModule = _chunkCJY63D6Ujs.OAuthModule; exports.OAuthService = _chunkCJY63D6Ujs.OAuthService; exports.Passkey = _chunkCJY63D6Ujs.Passkey; exports.PasskeyAuthenticationOptions = _chunkCJY63D6Ujs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkCJY63D6Ujs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkCJY63D6Ujs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkCJY63D6Ujs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkCJY63D6Ujs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkCJY63D6Ujs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkCJY63D6Ujs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkCJY63D6Ujs.PasskeyRename; exports.PasskeyRenameModule = _chunkCJY63D6Ujs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkCJY63D6Ujs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkCJY63D6Ujs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkCJY63D6Ujs.PaymentMethod; exports.PermissionMapping = _chunkCJY63D6Ujs.PermissionMapping; exports.PermissionMappingModule = _chunkCJY63D6Ujs.PermissionMappingModule; exports.Push = _chunkCJY63D6Ujs.Push; exports.PushModule = _chunkCJY63D6Ujs.PushModule; exports.PushService = _chunkCJY63D6Ujs.PushService; exports.RbacService = _chunkKFIQTY4Ojs.RbacService; exports.ReferralModule = _chunkCJY63D6Ujs.ReferralModule; exports.ReferralService = _chunkCJY63D6Ujs.ReferralService; exports.ReferralStats = _chunkCJY63D6Ujs.ReferralStats; exports.ReferralStatsModule = _chunkCJY63D6Ujs.ReferralStatsModule; exports.RehydrationFactory = _chunkCJY63D6Ujs.RehydrationFactory; exports.Role = _chunkCJY63D6Ujs.Role; exports.RoleFields = _chunkCJY63D6Ujs.RoleFields; exports.RoleModule = _chunkCJY63D6Ujs.RoleModule; exports.RoleService = _chunkCJY63D6Ujs.RoleService; exports.S3 = _chunkCJY63D6Ujs.S3; exports.S3Module = _chunkCJY63D6Ujs.S3Module; exports.S3Service = _chunkCJY63D6Ujs.S3Service; exports.StripeCustomer = _chunkCJY63D6Ujs.StripeCustomer; exports.StripeCustomerModule = _chunkCJY63D6Ujs.StripeCustomerModule; exports.StripeCustomerService = _chunkCJY63D6Ujs.StripeCustomerService; exports.StripeInvoice = _chunkCJY63D6Ujs.StripeInvoice; exports.StripeInvoiceModule = _chunkCJY63D6Ujs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkCJY63D6Ujs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkCJY63D6Ujs.StripePaymentMethodModule; exports.StripePrice = _chunkCJY63D6Ujs.StripePrice; exports.StripePriceModule = _chunkCJY63D6Ujs.StripePriceModule; exports.StripePriceService = _chunkCJY63D6Ujs.StripePriceService; exports.StripeProduct = _chunkCJY63D6Ujs.StripeProduct; exports.StripeProductModule = _chunkCJY63D6Ujs.StripeProductModule; exports.StripeProductService = _chunkCJY63D6Ujs.StripeProductService; exports.StripePromotionCode = _chunkCJY63D6Ujs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkCJY63D6Ujs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkCJY63D6Ujs.StripePromotionCodeService; exports.StripeSubscription = _chunkCJY63D6Ujs.StripeSubscription; exports.StripeSubscriptionModule = _chunkCJY63D6Ujs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkCJY63D6Ujs.StripeSubscriptionService; exports.StripeUsage = _chunkCJY63D6Ujs.StripeUsage; exports.StripeUsageModule = _chunkCJY63D6Ujs.StripeUsageModule; exports.StripeUsageService = _chunkCJY63D6Ujs.StripeUsageService; exports.SubscriptionStatus = _chunkCJY63D6Ujs.SubscriptionStatus; exports.TableOptions = _chunkCJY63D6Ujs.TableOptions; exports.TotpAuthenticator = _chunkCJY63D6Ujs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkCJY63D6Ujs.TotpAuthenticatorModule; exports.TotpSetup = _chunkCJY63D6Ujs.TotpSetup; exports.TotpSetupModule = _chunkCJY63D6Ujs.TotpSetupModule; exports.TotpVerify = _chunkCJY63D6Ujs.TotpVerify; exports.TotpVerifyLogin = _chunkCJY63D6Ujs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkCJY63D6Ujs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkCJY63D6Ujs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkCJY63D6Ujs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkCJY63D6Ujs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkCJY63D6Ujs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkCJY63D6Ujs.TwoFactorEnableModule; exports.TwoFactorService = _chunkCJY63D6Ujs.TwoFactorService; exports.TwoFactorStatus = _chunkCJY63D6Ujs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkCJY63D6Ujs.TwoFactorStatusModule; exports.User = _chunkCJY63D6Ujs.User; exports.UserFields = _chunkCJY63D6Ujs.UserFields; exports.UserModule = _chunkCJY63D6Ujs.UserModule; exports.UserService = _chunkCJY63D6Ujs.UserService; exports.Waitlist = _chunkCJY63D6Ujs.Waitlist; exports.WaitlistModule = _chunkCJY63D6Ujs.WaitlistModule; exports.WaitlistService = _chunkCJY63D6Ujs.WaitlistService; exports.WaitlistStats = _chunkCJY63D6Ujs.WaitlistStats; exports.WaitlistStatsModule = _chunkCJY63D6Ujs.WaitlistStatsModule; exports.checkPermissions = _chunkCJY63D6Ujs.checkPermissions; exports.checkPermissionsFromServer = _chunkCJY63D6Ujs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkCJY63D6Ujs.clearLastApiTotal; exports.cn = _chunkCJY63D6Ujs.cn; exports.composeRefs = _chunkCJY63D6Ujs.composeRefs; exports.configureAuth = _chunkCJY63D6Ujs.configureAuth; exports.configureI18n = _chunkKFIQTY4Ojs.configureI18n; exports.configureJsonApi = _chunkKFIQTY4Ojs.configureJsonApi; exports.configureLogin = _chunkKFIQTY4Ojs.configureLogin; exports.configureReferral = _chunkKFIQTY4Ojs.configureReferral; exports.configureRoles = _chunkKFIQTY4Ojs.configureRoles; exports.configureWaitlist = _chunkKFIQTY4Ojs.configureWaitlist; exports.createJsonApiInclusion = _chunkCJY63D6Ujs.createJsonApiInclusion; exports.dismissToast = _chunkCJY63D6Ujs.dismissToast; exports.entityObjectSchema = _chunkCJY63D6Ujs.entityObjectSchema; exports.exists = _chunkCJY63D6Ujs.exists; exports.formatDate = _chunkCJY63D6Ujs.formatDate; exports.getApiUrl = _chunkKFIQTY4Ojs.getApiUrl; exports.getAppUrl = _chunkKFIQTY4Ojs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkCJY63D6Ujs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkCJY63D6Ujs.getGlobalErrorHandler; exports.getIcon = _chunkCJY63D6Ujs.getIcon; exports.getIconByModule = _chunkCJY63D6Ujs.getIconByModule; exports.getIconByModuleName = _chunkCJY63D6Ujs.getIconByModuleName; exports.getInitials = _chunkCJY63D6Ujs.getInitials; exports.getLastApiTotal = _chunkCJY63D6Ujs.getLastApiTotal; exports.getLucideIcon = _chunkCJY63D6Ujs.getLucideIcon; exports.getLucideIconByModule = _chunkCJY63D6Ujs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkCJY63D6Ujs.getLucideIconByModuleName; exports.getReferralConfig = _chunkKFIQTY4Ojs.getReferralConfig; exports.getRoleId = _chunkKFIQTY4Ojs.getRoleId; exports.getStripePublishableKey = _chunkKFIQTY4Ojs.getStripePublishableKey; exports.getTableComponents = _chunkCJY63D6Ujs.getTableComponents; exports.getTableOptions = _chunkCJY63D6Ujs.getTableOptions; exports.getTokenHandler = _chunkCJY63D6Ujs.getTokenHandler; exports.getTrackablePages = _chunkKFIQTY4Ojs.getTrackablePages; exports.getValueFromPath = _chunkCJY63D6Ujs.getValueFromPath; exports.getWaitlistConfig = _chunkKFIQTY4Ojs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkKFIQTY4Ojs.isReferralEnabled; exports.isRolesConfigured = _chunkKFIQTY4Ojs.isRolesConfigured; exports.rehydrate = _chunkCJY63D6Ujs.rehydrate; exports.rehydrateList = _chunkCJY63D6Ujs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkCJY63D6Ujs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkCJY63D6Ujs.setGlobalErrorHandler; exports.showCustomToast = _chunkCJY63D6Ujs.showCustomToast; exports.showError = _chunkCJY63D6Ujs.showError; exports.showToast = _chunkCJY63D6Ujs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkCJY63D6Ujs.useComposedRefs; exports.useIsMobile = _chunkCJY63D6Ujs.useIsMobile; exports.userObjectSchema = _chunkCJY63D6Ujs.userObjectSchema;
|
|
395
395
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
getWaitlistConfig,
|
|
18
18
|
isReferralEnabled,
|
|
19
19
|
isRolesConfigured
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZYAAJMZZ.mjs";
|
|
21
21
|
import {
|
|
22
22
|
AVAILABLE_OAUTH_SCOPES,
|
|
23
23
|
AbstractApiData,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
useComposedRefs,
|
|
184
184
|
useIsMobile,
|
|
185
185
|
userObjectSchema
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-RIG2BEXJ.mjs";
|
|
187
187
|
import "./chunk-AUXK7QSA.mjs";
|
|
188
188
|
import "./chunk-C7C7VY4F.mjs";
|
|
189
189
|
import {
|
|
@@ -227,6 +227,9 @@ declare class UserService extends AbstractService {
|
|
|
227
227
|
companyId?: string;
|
|
228
228
|
}): Promise<void>;
|
|
229
229
|
static update(params: UserInput): Promise<UserInterface>;
|
|
230
|
+
static patch(params: {
|
|
231
|
+
id: string;
|
|
232
|
+
} & Partial<Omit<UserInput, "id">>): Promise<UserInterface>;
|
|
230
233
|
static patchRate(params: UserInput): Promise<UserInterface>;
|
|
231
234
|
static delete(params: {
|
|
232
235
|
userId: string;
|
|
@@ -227,6 +227,9 @@ declare class UserService extends AbstractService {
|
|
|
227
227
|
companyId?: string;
|
|
228
228
|
}): Promise<void>;
|
|
229
229
|
static update(params: UserInput): Promise<UserInterface>;
|
|
230
|
+
static patch(params: {
|
|
231
|
+
id: string;
|
|
232
|
+
} & Partial<Omit<UserInput, "id">>): Promise<UserInterface>;
|
|
230
233
|
static patchRate(params: UserInput): Promise<UserInterface>;
|
|
231
234
|
static delete(params: {
|
|
232
235
|
userId: string;
|
package/dist/server/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
|
|
|
2
2
|
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-C6UcmJqu.mjs';
|
|
3
3
|
import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
4
4
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
|
|
5
|
-
export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-
|
|
5
|
+
export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-DLf_a0xS.mjs';
|
|
6
6
|
import 'lucide-react';
|
|
7
7
|
import '../ApiDataInterface-DPP8s46n.mjs';
|
|
8
8
|
import '../feature.interface-BxFFOPNq.mjs';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { A as ApiData } from '../ApiData-DPKNfY-9.js';
|
|
|
2
2
|
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-ItBxq2au.js';
|
|
3
3
|
import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
4
4
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
|
|
5
|
-
export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-
|
|
5
|
+
export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-Cg5TmbU_.js';
|
|
6
6
|
import 'lucide-react';
|
|
7
7
|
import '../ApiDataInterface-DPP8s46n.js';
|
|
8
8
|
import '../feature.interface-CIWxo8NP.js';
|
package/dist/server/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCJY63D6Ujs = require('../chunk-CJY63D6U.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
|
|
89
|
+
return _chunkCJY63D6Ujs.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 =
|
|
299
|
+
exports.ServerAuthService = _chunkCJY63D6Ujs.AuthService; exports.ServerCompanyService = _chunkCJY63D6Ujs.CompanyService; exports.ServerContentService = _chunkCJY63D6Ujs.ContentService; exports.ServerFeatureService = _chunkCJY63D6Ujs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkCJY63D6Ujs.NotificationService; exports.ServerPushService = _chunkCJY63D6Ujs.PushService; exports.ServerRoleService = _chunkCJY63D6Ujs.RoleService; exports.ServerS3Service = _chunkCJY63D6Ujs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkCJY63D6Ujs.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
|
package/dist/server/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Avatar, AvatarFallback, AvatarImage } from "../shadcnui";
|
|
4
|
+
import { useCurrentUserContext } from "../contexts";
|
|
5
|
+
import { S3Interface } from "../features/s3/data/s3.interface";
|
|
6
|
+
import { S3Service } from "../features/s3/data/s3.service";
|
|
7
|
+
import { ModuleWithPermissions } from "../permissions";
|
|
8
|
+
import { errorToast } from "./errors/errorToast";
|
|
9
|
+
import { PencilIcon, Trash2Icon } from "lucide-react";
|
|
10
|
+
import { useTranslations } from "next-intl";
|
|
11
|
+
import { useCallback, useRef, useState } from "react";
|
|
12
|
+
import { cn } from "../utils/cn";
|
|
13
|
+
|
|
14
|
+
type EditableAvatarProps = {
|
|
15
|
+
entityId: string;
|
|
16
|
+
module: ModuleWithPermissions;
|
|
17
|
+
image?: string;
|
|
18
|
+
fallback: string;
|
|
19
|
+
alt: string;
|
|
20
|
+
patchImage: (imageKey: string) => Promise<void>;
|
|
21
|
+
className?: string;
|
|
22
|
+
fallbackClassName?: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export function EditableAvatar({
|
|
26
|
+
entityId,
|
|
27
|
+
module,
|
|
28
|
+
image,
|
|
29
|
+
fallback,
|
|
30
|
+
alt,
|
|
31
|
+
patchImage,
|
|
32
|
+
className,
|
|
33
|
+
fallbackClassName,
|
|
34
|
+
}: EditableAvatarProps) {
|
|
35
|
+
const { company } = useCurrentUserContext();
|
|
36
|
+
const t = useTranslations();
|
|
37
|
+
const fileInputRef = useRef<HTMLInputElement>(null);
|
|
38
|
+
|
|
39
|
+
// Optimistic state: null means "use the prop", string means "override"
|
|
40
|
+
const [optimisticImage, setOptimisticImage] = useState<string | null>(null);
|
|
41
|
+
const [isUploading, setIsUploading] = useState(false);
|
|
42
|
+
|
|
43
|
+
const displayImage = optimisticImage ?? image;
|
|
44
|
+
|
|
45
|
+
const generateS3Key = useCallback(
|
|
46
|
+
(file: File) => {
|
|
47
|
+
const ext = file.type.split("/").pop() ?? "";
|
|
48
|
+
const ts = new Date().toISOString().replace(/[-:T]/g, "").split(".")[0];
|
|
49
|
+
return `companies/${company!.id}/${module.name}/${entityId}/${entityId}.${ts}.${ext}`;
|
|
50
|
+
},
|
|
51
|
+
[company, module.name, entityId],
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const handleFile = useCallback(
|
|
55
|
+
async (file: File) => {
|
|
56
|
+
if (isUploading) return;
|
|
57
|
+
if (!company) return;
|
|
58
|
+
|
|
59
|
+
const previousImage = image;
|
|
60
|
+
const previewUrl = URL.createObjectURL(file);
|
|
61
|
+
setOptimisticImage(previewUrl);
|
|
62
|
+
setIsUploading(true);
|
|
63
|
+
|
|
64
|
+
try {
|
|
65
|
+
const s3Key = generateS3Key(file);
|
|
66
|
+
|
|
67
|
+
const s3: S3Interface = await S3Service.getPreSignedUrl({
|
|
68
|
+
key: s3Key,
|
|
69
|
+
contentType: file.type,
|
|
70
|
+
isPublic: true,
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const uploadResponse = await fetch(s3.url, {
|
|
74
|
+
method: "PUT",
|
|
75
|
+
headers: s3.headers,
|
|
76
|
+
body: file,
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
if (!uploadResponse.ok) {
|
|
80
|
+
throw new Error(`S3 upload failed: ${uploadResponse.status}`);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
await patchImage(s3Key);
|
|
84
|
+
setOptimisticImage(null);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
setOptimisticImage(previousImage ?? null);
|
|
87
|
+
errorToast({ title: t("generic.errors.update"), error });
|
|
88
|
+
} finally {
|
|
89
|
+
URL.revokeObjectURL(previewUrl);
|
|
90
|
+
setIsUploading(false);
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
[company, generateS3Key, image, isUploading, patchImage, t],
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
const handleRemove = useCallback(async () => {
|
|
97
|
+
if (isUploading) return;
|
|
98
|
+
|
|
99
|
+
const previousImage = image;
|
|
100
|
+
setOptimisticImage("");
|
|
101
|
+
setIsUploading(true);
|
|
102
|
+
|
|
103
|
+
try {
|
|
104
|
+
await patchImage("");
|
|
105
|
+
setOptimisticImage(null);
|
|
106
|
+
} catch (error) {
|
|
107
|
+
setOptimisticImage(previousImage ?? null);
|
|
108
|
+
errorToast({ title: t("generic.errors.update"), error });
|
|
109
|
+
} finally {
|
|
110
|
+
setIsUploading(false);
|
|
111
|
+
}
|
|
112
|
+
}, [image, isUploading, patchImage, t]);
|
|
113
|
+
|
|
114
|
+
const handleFileInputChange = useCallback(
|
|
115
|
+
(e: React.ChangeEvent<HTMLInputElement>) => {
|
|
116
|
+
const file = e.target.files?.[0];
|
|
117
|
+
if (file) handleFile(file);
|
|
118
|
+
e.target.value = "";
|
|
119
|
+
},
|
|
120
|
+
[handleFile],
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
const handleDrop = useCallback(
|
|
124
|
+
(e: React.DragEvent) => {
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
const file = e.dataTransfer.files?.[0];
|
|
127
|
+
if (file && file.type.startsWith("image/")) {
|
|
128
|
+
handleFile(file);
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
[handleFile],
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
const handleDragOver = useCallback((e: React.DragEvent) => {
|
|
135
|
+
e.preventDefault();
|
|
136
|
+
}, []);
|
|
137
|
+
|
|
138
|
+
return (
|
|
139
|
+
<div className={cn("group relative", className)} onDrop={handleDrop} onDragOver={handleDragOver}>
|
|
140
|
+
<Avatar className="h-full w-full">
|
|
141
|
+
{displayImage ? <AvatarImage src={displayImage} alt={alt} /> : null}
|
|
142
|
+
<AvatarFallback className={fallbackClassName}>{fallback}</AvatarFallback>
|
|
143
|
+
</Avatar>
|
|
144
|
+
|
|
145
|
+
{/* Hover overlay */}
|
|
146
|
+
<div
|
|
147
|
+
className={cn(
|
|
148
|
+
"absolute inset-0 flex items-center justify-center gap-x-2 rounded-full bg-black/50 opacity-0 transition-opacity group-hover:opacity-100",
|
|
149
|
+
isUploading && "opacity-100",
|
|
150
|
+
)}
|
|
151
|
+
>
|
|
152
|
+
<button
|
|
153
|
+
type="button"
|
|
154
|
+
onClick={() => fileInputRef.current?.click()}
|
|
155
|
+
disabled={isUploading}
|
|
156
|
+
className="rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50"
|
|
157
|
+
>
|
|
158
|
+
<PencilIcon className="h-4 w-4" />
|
|
159
|
+
</button>
|
|
160
|
+
{displayImage && (
|
|
161
|
+
<button
|
|
162
|
+
type="button"
|
|
163
|
+
onClick={handleRemove}
|
|
164
|
+
disabled={isUploading}
|
|
165
|
+
className="rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50"
|
|
166
|
+
>
|
|
167
|
+
<Trash2Icon className="h-4 w-4" />
|
|
168
|
+
</button>
|
|
169
|
+
)}
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<input ref={fileInputRef} type="file" accept="image/*" className="hidden" onChange={handleFileInputChange} />
|
|
173
|
+
</div>
|
|
174
|
+
);
|
|
175
|
+
}
|
package/src/components/index.ts
CHANGED
|
@@ -195,9 +195,7 @@ function CompanyEditorInternal({
|
|
|
195
195
|
fiscal_data: fiscalRef.current ? JSON.stringify(fiscalRef.current.getData()) : undefined,
|
|
196
196
|
};
|
|
197
197
|
|
|
198
|
-
const updatedCompany = company
|
|
199
|
-
? await CompanyService.update(payload)
|
|
200
|
-
: await CompanyService.create(payload);
|
|
198
|
+
const updatedCompany = company ? await CompanyService.update(payload) : await CompanyService.create(payload);
|
|
201
199
|
|
|
202
200
|
// Refresh user context after company changes
|
|
203
201
|
const fullUser = await UserService.findFullUser();
|
|
@@ -22,7 +22,7 @@ export function FormRoles({ form, id, name, roles }: FormRolesProps) {
|
|
|
22
22
|
<div className="flex w-full flex-col">
|
|
23
23
|
<FormFieldWrapper form={form} name={id} label={name}>
|
|
24
24
|
{(field) => (
|
|
25
|
-
<div>
|
|
25
|
+
<div className="flex w-full flex-col gap-y-1">
|
|
26
26
|
{roles
|
|
27
27
|
.filter((role: RoleInterface) => role.isSelectable)
|
|
28
28
|
.sort((a: RoleInterface, b: RoleInterface) => a.name.localeCompare(b.name))
|
|
@@ -30,9 +30,10 @@ export function FormRoles({ form, id, name, roles }: FormRolesProps) {
|
|
|
30
30
|
if (role.requiredFeature && !hasAccesToFeature(role.requiredFeature.id)) return null;
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
|
-
<div key={role.id}>
|
|
33
|
+
<div key={role.id} className="flex w-full items-center">
|
|
34
34
|
<Checkbox
|
|
35
|
-
|
|
35
|
+
id={`role-${role.id}`}
|
|
36
|
+
checked={(field.value as string[]).some((roleId: string) => roleId === role.id)}
|
|
36
37
|
onCheckedChange={(checked) => {
|
|
37
38
|
if (checked) {
|
|
38
39
|
form.setValue(id, [...(field.value as string[]), role.id]);
|
|
@@ -46,7 +47,7 @@ export function FormRoles({ form, id, name, roles }: FormRolesProps) {
|
|
|
46
47
|
/>
|
|
47
48
|
<Tooltip>
|
|
48
49
|
<TooltipTrigger>
|
|
49
|
-
<FieldLabel className="ml-3 font-normal">
|
|
50
|
+
<FieldLabel htmlFor={`role-${role.id}`} className="ml-3 cursor-pointer font-normal">
|
|
50
51
|
{t(`role.roles`, { role: role.id.replaceAll(`-`, ``) })}
|
|
51
52
|
</FieldLabel>
|
|
52
53
|
</TooltipTrigger>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useTranslations } from "next-intl";
|
|
4
|
+
import { CompanyUsersList, Tab, TabsContainer } from "../../../../components";
|
|
5
|
+
import { Modules } from "../../../../core";
|
|
6
|
+
import { Action } from "../../../../permissions";
|
|
7
|
+
import { useCurrentUserContext } from "../../contexts";
|
|
8
|
+
import { UserInterface } from "../../data";
|
|
9
|
+
|
|
10
|
+
function AllUsersListContainerInternal() {
|
|
11
|
+
const { hasPermissionToModule } = useCurrentUserContext<UserInterface>();
|
|
12
|
+
const t = useTranslations();
|
|
13
|
+
|
|
14
|
+
if (!hasPermissionToModule({ module: Modules.User, action: Action.Delete })) return <CompanyUsersList />;
|
|
15
|
+
|
|
16
|
+
const tabs: Tab[] = [
|
|
17
|
+
{
|
|
18
|
+
label: t(`entities.users`, { count: 2 }),
|
|
19
|
+
content: <CompanyUsersList />,
|
|
20
|
+
modules: [Modules.Company],
|
|
21
|
+
action: Action.Read,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: t(`user.deleted`),
|
|
25
|
+
content: <CompanyUsersList isDeleted={true} />,
|
|
26
|
+
modules: [Modules.Company],
|
|
27
|
+
action: Action.Update,
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
return <TabsContainer tabs={tabs} />;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function AllUsersListContainer() {
|
|
35
|
+
return <AllUsersListContainerInternal />;
|
|
36
|
+
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { RoundPageContainer, Tab } from "@/components";
|
|
4
|
+
import { Modules } from "@/core";
|
|
4
5
|
import { useUserContext } from "../../contexts";
|
|
5
|
-
import {
|
|
6
|
+
import { UserContent } from "../details";
|
|
6
7
|
|
|
7
8
|
export function UserContainer() {
|
|
8
9
|
const { user } = useUserContext();
|
|
9
10
|
if (!user) return null;
|
|
10
11
|
|
|
11
|
-
const
|
|
12
|
+
const tabs: Tab[] = [
|
|
13
|
+
{
|
|
14
|
+
label: "Details",
|
|
15
|
+
content: <UserContent user={user} />,
|
|
16
|
+
},
|
|
17
|
+
];
|
|
12
18
|
|
|
13
|
-
return
|
|
14
|
-
<div className="flex w-full gap-x-4">
|
|
15
|
-
<div className="w-2xl flex h-[calc(100vh-theme(spacing.20))] flex-col justify-between border-r pr-4">
|
|
16
|
-
<div className="flex h-full overflow-y-auto">
|
|
17
|
-
<UserDetails user={user} />
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div className="flex w-full flex-col gap-y-4"></div>
|
|
21
|
-
</div>
|
|
22
|
-
);
|
|
19
|
+
return <RoundPageContainer module={Modules.User} tabs={tabs} />;
|
|
23
20
|
}
|