@carlonicora/nextjs-jsonapi 3.1.1 → 3.3.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/{AssistantMessageInterface-Dh0BpbP2.d.ts → AssistantMessageInterface-0zyVingf.d.ts} +1 -1
- package/dist/{AssistantMessageInterface-Ce8FcllX.d.mts → AssistantMessageInterface-ddyG114R.d.mts} +1 -1
- package/dist/{BlockNoteEditor-FIMPVA7K.mjs → BlockNoteEditor-G5A34EXN.mjs} +4 -4
- package/dist/{BlockNoteEditor-GJPTMKS7.js → BlockNoteEditor-JLMXCPGB.js} +19 -19
- package/dist/{BlockNoteEditor-GJPTMKS7.js.map → BlockNoteEditor-JLMXCPGB.js.map} +1 -1
- package/dist/{auth.interface-COmBjh89.d.ts → auth.interface-B6ZQLGjS.d.ts} +1 -1
- package/dist/{auth.interface-CkmZqat3.d.mts → auth.interface-jYD8Gc4P.d.mts} +1 -1
- package/dist/billing/index.js +420 -399
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +25 -4
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-E5FWGOP5.js → chunk-5AKDE5UW.js} +757 -755
- package/dist/chunk-5AKDE5UW.js.map +1 -0
- package/dist/{chunk-ZMYZFQN3.mjs → chunk-LCMVARSP.mjs} +2 -2
- package/dist/{chunk-VUMM7V5G.mjs → chunk-O4LTJAAM.mjs} +6 -4
- package/dist/{chunk-VUMM7V5G.mjs.map → chunk-O4LTJAAM.mjs.map} +1 -1
- package/dist/{chunk-CGJW7ZZM.mjs → chunk-PGARO3JT.mjs} +7 -1
- package/dist/chunk-PGARO3JT.mjs.map +1 -0
- package/dist/{chunk-H7DOSB7W.js → chunk-UYENG3GT.js} +7 -7
- package/dist/{chunk-H7DOSB7W.js.map → chunk-UYENG3GT.js.map} +1 -1
- package/dist/{chunk-YUXCJ35V.js → chunk-YKFXQOQA.js} +7 -1
- package/dist/chunk-YKFXQOQA.js.map +1 -0
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +6 -6
- package/dist/components/index.d.ts +6 -6
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.d.mts +3 -3
- package/dist/contexts/index.d.ts +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +9 -7
- package/dist/core/index.d.ts +9 -7
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +101 -101
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{notification.interface-CG1vqoxg.d.mts → notification.interface-BWOCvKRP.d.mts} +6 -0
- package/dist/{notification.interface--27exGde.d.ts → notification.interface-DYF56CtE.d.ts} +6 -0
- package/dist/{s3.service-Dt6MfuHr.d.mts → s3.service-D_dswjgz.d.mts} +2 -2
- package/dist/{s3.service-CpwA3sl_.d.ts → s3.service-DserU9VK.d.ts} +2 -2
- package/dist/server/index.d.mts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{useSocket-M3YY0aTS.d.mts → useSocket-BZG9oX-L.d.mts} +1 -1
- package/dist/{useSocket-DgGAQW6h.d.ts → useSocket-CiyTtYFj.d.ts} +1 -1
- package/package.json +1 -1
- package/src/features/ai-connection/components/containers/AiConnectionsContainer.tsx +2 -1
- package/src/features/ai-connection/i18n-keys.ts +1 -0
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +25 -1
- package/src/features/company/data/company.interface.ts +7 -0
- package/src/features/company/data/company.test.ts +40 -0
- package/src/features/company/data/company.ts +7 -0
- package/dist/chunk-CGJW7ZZM.mjs.map +0 -1
- package/dist/chunk-E5FWGOP5.js.map +0 -1
- package/dist/chunk-YUXCJ35V.js.map +0 -1
- /package/dist/{BlockNoteEditor-FIMPVA7K.mjs.map → BlockNoteEditor-G5A34EXN.mjs.map} +0 -0
- /package/dist/{chunk-ZMYZFQN3.mjs.map → chunk-LCMVARSP.mjs.map} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
|
|
202
|
-
var
|
|
202
|
+
var _chunkYKFXQOQAjs = require('../chunk-YKFXQOQA.js');
|
|
203
203
|
require('../chunk-LXKSUWAV.js');
|
|
204
204
|
require('../chunk-IBS6NI7D.js');
|
|
205
205
|
|
|
@@ -425,5 +425,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
425
425
|
|
|
426
426
|
|
|
427
427
|
|
|
428
|
-
exports.AVAILABLE_OAUTH_SCOPES = _chunkYUXCJ35Vjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkYUXCJ35Vjs.AbstractApiData; exports.AbstractService = _chunkYUXCJ35Vjs.AbstractService; exports.Action = _chunkYUXCJ35Vjs.Action; exports.AiConnection = _chunkYUXCJ35Vjs.AiConnection; exports.AiConnectionFields = _chunkYUXCJ35Vjs.AiConnectionFields; exports.AiConnectionModule = _chunkYUXCJ35Vjs.AiConnectionModule; exports.AiConnectionService = _chunkYUXCJ35Vjs.AiConnectionService; exports.Assistant = _chunkYUXCJ35Vjs.Assistant; exports.AssistantAction = _chunkYUXCJ35Vjs.AssistantAction; exports.AssistantActionModule = _chunkYUXCJ35Vjs.AssistantActionModule; exports.AssistantActionService = _chunkYUXCJ35Vjs.AssistantActionService; exports.AssistantMessage = _chunkYUXCJ35Vjs.AssistantMessage; exports.AssistantMessageModule = _chunkYUXCJ35Vjs.AssistantMessageModule; exports.AssistantMessageService = _chunkYUXCJ35Vjs.AssistantMessageService; exports.AssistantModule = _chunkYUXCJ35Vjs.AssistantModule; exports.AssistantService = _chunkYUXCJ35Vjs.AssistantService; exports.AuditLog = _chunkYUXCJ35Vjs.AuditLog; exports.AuditLogModule = _chunkYUXCJ35Vjs.AuditLogModule; exports.AuditLogService = _chunkYUXCJ35Vjs.AuditLogService; exports.Auth = _chunkYUXCJ35Vjs.Auth; exports.AuthComponent = _chunkYUXCJ35Vjs.AuthComponent; exports.AuthModule = _chunkYUXCJ35Vjs.AuthModule; exports.AuthService = _chunkYUXCJ35Vjs.AuthService; exports.AuthorModule = _chunkYUXCJ35Vjs.AuthorModule; exports.BackupCodeVerify = _chunkYUXCJ35Vjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkYUXCJ35Vjs.BackupCodeVerifyModule; exports.Billing = _chunkYUXCJ35Vjs.Billing; exports.BillingModule = _chunkYUXCJ35Vjs.BillingModule; exports.BillingService = _chunkYUXCJ35Vjs.BillingService; exports.BlockNoteDiffUtil = _chunkYUXCJ35Vjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkYUXCJ35Vjs.BlockNoteWordDiffRendererUtil; exports.Chunk = _chunkYUXCJ35Vjs.Chunk; exports.ChunkModule = _chunkYUXCJ35Vjs.ChunkModule; exports.ClientAbstractService = _chunkYUXCJ35Vjs.ClientAbstractService; exports.ClientHttpMethod = _chunkYUXCJ35Vjs.ClientHttpMethod; exports.Company = _chunkYUXCJ35Vjs.Company; exports.CompanyFields = _chunkYUXCJ35Vjs.CompanyFields; exports.CompanyModule = _chunkYUXCJ35Vjs.CompanyModule; exports.CompanyService = _chunkYUXCJ35Vjs.CompanyService; exports.Content = _chunkYUXCJ35Vjs.Content; exports.ContentFields = _chunkYUXCJ35Vjs.ContentFields; exports.ContentModule = _chunkYUXCJ35Vjs.ContentModule; exports.ContentService = _chunkYUXCJ35Vjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkYUXCJ35Vjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkPFAZPP54js.DataClassRegistry; exports.DataClassRegistry = _chunkPFAZPP54js.DataClassRegistry; exports.EndpointCreator = _chunkYUXCJ35Vjs.EndpointCreator; exports.EntityAiStatus = _chunkYUXCJ35Vjs.EntityAiStatus; exports.Feature = _chunkYUXCJ35Vjs.Feature; exports.FeatureModule = _chunkYUXCJ35Vjs.FeatureModule; exports.FeatureService = _chunkYUXCJ35Vjs.FeatureService; exports.HowTo = _chunkYUXCJ35Vjs.HowTo; exports.HowToFields = _chunkYUXCJ35Vjs.HowToFields; exports.HowToModule = _chunkYUXCJ35Vjs.HowToModule; exports.HowToService = _chunkYUXCJ35Vjs.HowToService; exports.HttpMethod = _chunkYUXCJ35Vjs.HttpMethod; exports.InvoiceStatus = _chunkYUXCJ35Vjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkPFAZPP54js.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkYUXCJ35Vjs.MOBILE_BREAKPOINT; exports.Module = _chunkYUXCJ35Vjs.Module; exports.ModuleModule = _chunkYUXCJ35Vjs.ModuleModule; exports.ModulePathsModule = _chunkYUXCJ35Vjs.ModulePathsModule; exports.ModuleRegistrar = _chunkYUXCJ35Vjs.ModuleRegistrar; exports.ModuleRegistry = _chunkYUXCJ35Vjs.ModuleRegistry; exports.Modules = _chunkYUXCJ35Vjs.Modules; exports.Notification = _chunkYUXCJ35Vjs.Notification; exports.NotificationFields = _chunkYUXCJ35Vjs.NotificationFields; exports.NotificationModule = _chunkYUXCJ35Vjs.NotificationModule; exports.NotificationService = _chunkYUXCJ35Vjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkYUXCJ35Vjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkYUXCJ35Vjs.OAuthClient; exports.OAuthModule = _chunkYUXCJ35Vjs.OAuthModule; exports.OAuthService = _chunkYUXCJ35Vjs.OAuthService; exports.Passkey = _chunkYUXCJ35Vjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkYUXCJ35Vjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkYUXCJ35Vjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkYUXCJ35Vjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkYUXCJ35Vjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkYUXCJ35Vjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkYUXCJ35Vjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkYUXCJ35Vjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkYUXCJ35Vjs.PasskeyRename; exports.PasskeyRenameModule = _chunkYUXCJ35Vjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkYUXCJ35Vjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkYUXCJ35Vjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkYUXCJ35Vjs.PaymentMethod; exports.PermissionMappingModule = _chunkYUXCJ35Vjs.PermissionMappingModule; exports.Push = _chunkYUXCJ35Vjs.Push; exports.PushModule = _chunkYUXCJ35Vjs.PushModule; exports.PushService = _chunkYUXCJ35Vjs.PushService; exports.RbacMatrixModule = _chunkYUXCJ35Vjs.RbacMatrixModule; exports.ReferralModule = _chunkYUXCJ35Vjs.ReferralModule; exports.ReferralService = _chunkYUXCJ35Vjs.ReferralService; exports.ReferralStats = _chunkYUXCJ35Vjs.ReferralStats; exports.ReferralStatsModule = _chunkYUXCJ35Vjs.ReferralStatsModule; exports.RehydrationFactory = _chunkYUXCJ35Vjs.RehydrationFactory; exports.Role = _chunkYUXCJ35Vjs.Role; exports.RoleFields = _chunkYUXCJ35Vjs.RoleFields; exports.RoleModule = _chunkYUXCJ35Vjs.RoleModule; exports.RoleService = _chunkYUXCJ35Vjs.RoleService; exports.S3 = _chunkYUXCJ35Vjs.S3; exports.S3Module = _chunkYUXCJ35Vjs.S3Module; exports.S3Service = _chunkYUXCJ35Vjs.S3Service; exports.StripeCustomer = _chunkYUXCJ35Vjs.StripeCustomer; exports.StripeCustomerModule = _chunkYUXCJ35Vjs.StripeCustomerModule; exports.StripeCustomerService = _chunkYUXCJ35Vjs.StripeCustomerService; exports.StripeInvoice = _chunkYUXCJ35Vjs.StripeInvoice; exports.StripeInvoiceModule = _chunkYUXCJ35Vjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkYUXCJ35Vjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkYUXCJ35Vjs.StripePaymentMethodModule; exports.StripePrice = _chunkYUXCJ35Vjs.StripePrice; exports.StripePriceFields = _chunkYUXCJ35Vjs.StripePriceFields; exports.StripePriceModule = _chunkYUXCJ35Vjs.StripePriceModule; exports.StripePriceService = _chunkYUXCJ35Vjs.StripePriceService; exports.StripeProduct = _chunkYUXCJ35Vjs.StripeProduct; exports.StripeProductFields = _chunkYUXCJ35Vjs.StripeProductFields; exports.StripeProductModule = _chunkYUXCJ35Vjs.StripeProductModule; exports.StripeProductService = _chunkYUXCJ35Vjs.StripeProductService; exports.StripePromotionCode = _chunkYUXCJ35Vjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkYUXCJ35Vjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkYUXCJ35Vjs.StripePromotionCodeService; exports.StripeSubscription = _chunkYUXCJ35Vjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkYUXCJ35Vjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkYUXCJ35Vjs.StripeSubscriptionService; exports.StripeUsage = _chunkYUXCJ35Vjs.StripeUsage; exports.StripeUsageModule = _chunkYUXCJ35Vjs.StripeUsageModule; exports.StripeUsageService = _chunkYUXCJ35Vjs.StripeUsageService; exports.SubscriptionStatus = _chunkYUXCJ35Vjs.SubscriptionStatus; exports.TableOptions = _chunkYUXCJ35Vjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkYUXCJ35Vjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkYUXCJ35Vjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkYUXCJ35Vjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkYUXCJ35Vjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkYUXCJ35Vjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkYUXCJ35Vjs.TotpSetup; exports.TotpSetupModule = _chunkYUXCJ35Vjs.TotpSetupModule; exports.TotpVerify = _chunkYUXCJ35Vjs.TotpVerify; exports.TotpVerifyLogin = _chunkYUXCJ35Vjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkYUXCJ35Vjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkYUXCJ35Vjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkYUXCJ35Vjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkYUXCJ35Vjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkYUXCJ35Vjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkYUXCJ35Vjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkYUXCJ35Vjs.TwoFactorService; exports.TwoFactorStatus = _chunkYUXCJ35Vjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkYUXCJ35Vjs.TwoFactorStatusModule; exports.User = _chunkYUXCJ35Vjs.User; exports.UserFields = _chunkYUXCJ35Vjs.UserFields; exports.UserModule = _chunkYUXCJ35Vjs.UserModule; exports.UserService = _chunkYUXCJ35Vjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkYUXCJ35Vjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkYUXCJ35Vjs.Waitlist; exports.WaitlistModule = _chunkYUXCJ35Vjs.WaitlistModule; exports.WaitlistService = _chunkYUXCJ35Vjs.WaitlistService; exports.WaitlistStats = _chunkYUXCJ35Vjs.WaitlistStats; exports.WaitlistStatsModule = _chunkYUXCJ35Vjs.WaitlistStatsModule; exports.checkPermissions = _chunkYUXCJ35Vjs.checkPermissions; exports.checkPermissionsFromServer = _chunkYUXCJ35Vjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkYUXCJ35Vjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkYUXCJ35Vjs.clearLastApiTotal; exports.cn = _chunkYUXCJ35Vjs.cn; exports.composeRefs = _chunkYUXCJ35Vjs.composeRefs; exports.configureTokenUsage = _chunkYUXCJ35Vjs.configureTokenUsage; exports.createJsonApiInclusion = _chunkYUXCJ35Vjs.createJsonApiInclusion; exports.dismissToast = _chunkYUXCJ35Vjs.dismissToast; exports.entityObjectSchema = _chunkYUXCJ35Vjs.entityObjectSchema; exports.exists = _chunkYUXCJ35Vjs.exists; exports.formatCodiceFiscale = _chunkYUXCJ35Vjs.formatCodiceFiscale; exports.formatDate = _chunkYUXCJ35Vjs.formatDate; exports.formatLocalDate = _chunkYUXCJ35Vjs.formatLocalDate; exports.formatPartitaIva = _chunkYUXCJ35Vjs.formatPartitaIva; exports.getBootstrapper = _chunkPFAZPP54js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkYUXCJ35Vjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkYUXCJ35Vjs.getGlobalErrorHandler; exports.getIcon = _chunkYUXCJ35Vjs.getIcon; exports.getIconByModule = _chunkYUXCJ35Vjs.getIconByModule; exports.getIconByModuleName = _chunkYUXCJ35Vjs.getIconByModuleName; exports.getInitials = _chunkYUXCJ35Vjs.getInitials; exports.getLastApiMeta = _chunkYUXCJ35Vjs.getLastApiMeta; exports.getLastApiTotal = _chunkYUXCJ35Vjs.getLastApiTotal; exports.getLucideIcon = _chunkYUXCJ35Vjs.getLucideIcon; exports.getLucideIconByModule = _chunkYUXCJ35Vjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkYUXCJ35Vjs.getLucideIconByModuleName; exports.getTableComponents = _chunkYUXCJ35Vjs.getTableComponents; exports.getTableOptions = _chunkYUXCJ35Vjs.getTableOptions; exports.getTokenUsageCurrency = _chunkYUXCJ35Vjs.getTokenUsageCurrency; exports.getValueFromPath = _chunkYUXCJ35Vjs.getValueFromPath; exports.hasBootstrapper = _chunkPFAZPP54js.hasBootstrapper; exports.isRemoteImageSrc = _chunkYUXCJ35Vjs.isRemoteImageSrc; exports.rehydrate = _chunkYUXCJ35Vjs.rehydrate; exports.rehydrateList = _chunkYUXCJ35Vjs.rehydrateList; exports.resetBootstrapStore = _chunkPFAZPP54js.resetBootstrapStore; exports.setBootstrapper = _chunkPFAZPP54js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkYUXCJ35Vjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkYUXCJ35Vjs.setGlobalErrorHandler; exports.showCustomToast = _chunkYUXCJ35Vjs.showCustomToast; exports.showError = _chunkYUXCJ35Vjs.showError; exports.showToast = _chunkYUXCJ35Vjs.showToast; exports.tokenUsageModules = _chunkYUXCJ35Vjs.tokenUsageModules; exports.translateData = _chunkPFAZPP54js.translateData; exports.translateResponse = _chunkPFAZPP54js.translateResponse; exports.tryBootstrap = _chunkPFAZPP54js.tryBootstrap; exports.useComposedRefs = _chunkYUXCJ35Vjs.useComposedRefs; exports.useIsMobile = _chunkYUXCJ35Vjs.useIsMobile; exports.userObjectSchema = _chunkYUXCJ35Vjs.userObjectSchema; exports.validateCodiceFiscale = _chunkYUXCJ35Vjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkYUXCJ35Vjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkYUXCJ35Vjs.validatePartitaIva;
|
|
428
|
+
exports.AVAILABLE_OAUTH_SCOPES = _chunkYKFXQOQAjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkYKFXQOQAjs.AbstractApiData; exports.AbstractService = _chunkYKFXQOQAjs.AbstractService; exports.Action = _chunkYKFXQOQAjs.Action; exports.AiConnection = _chunkYKFXQOQAjs.AiConnection; exports.AiConnectionFields = _chunkYKFXQOQAjs.AiConnectionFields; exports.AiConnectionModule = _chunkYKFXQOQAjs.AiConnectionModule; exports.AiConnectionService = _chunkYKFXQOQAjs.AiConnectionService; exports.Assistant = _chunkYKFXQOQAjs.Assistant; exports.AssistantAction = _chunkYKFXQOQAjs.AssistantAction; exports.AssistantActionModule = _chunkYKFXQOQAjs.AssistantActionModule; exports.AssistantActionService = _chunkYKFXQOQAjs.AssistantActionService; exports.AssistantMessage = _chunkYKFXQOQAjs.AssistantMessage; exports.AssistantMessageModule = _chunkYKFXQOQAjs.AssistantMessageModule; exports.AssistantMessageService = _chunkYKFXQOQAjs.AssistantMessageService; exports.AssistantModule = _chunkYKFXQOQAjs.AssistantModule; exports.AssistantService = _chunkYKFXQOQAjs.AssistantService; exports.AuditLog = _chunkYKFXQOQAjs.AuditLog; exports.AuditLogModule = _chunkYKFXQOQAjs.AuditLogModule; exports.AuditLogService = _chunkYKFXQOQAjs.AuditLogService; exports.Auth = _chunkYKFXQOQAjs.Auth; exports.AuthComponent = _chunkYKFXQOQAjs.AuthComponent; exports.AuthModule = _chunkYKFXQOQAjs.AuthModule; exports.AuthService = _chunkYKFXQOQAjs.AuthService; exports.AuthorModule = _chunkYKFXQOQAjs.AuthorModule; exports.BackupCodeVerify = _chunkYKFXQOQAjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkYKFXQOQAjs.BackupCodeVerifyModule; exports.Billing = _chunkYKFXQOQAjs.Billing; exports.BillingModule = _chunkYKFXQOQAjs.BillingModule; exports.BillingService = _chunkYKFXQOQAjs.BillingService; exports.BlockNoteDiffUtil = _chunkYKFXQOQAjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkYKFXQOQAjs.BlockNoteWordDiffRendererUtil; exports.Chunk = _chunkYKFXQOQAjs.Chunk; exports.ChunkModule = _chunkYKFXQOQAjs.ChunkModule; exports.ClientAbstractService = _chunkYKFXQOQAjs.ClientAbstractService; exports.ClientHttpMethod = _chunkYKFXQOQAjs.ClientHttpMethod; exports.Company = _chunkYKFXQOQAjs.Company; exports.CompanyFields = _chunkYKFXQOQAjs.CompanyFields; exports.CompanyModule = _chunkYKFXQOQAjs.CompanyModule; exports.CompanyService = _chunkYKFXQOQAjs.CompanyService; exports.Content = _chunkYKFXQOQAjs.Content; exports.ContentFields = _chunkYKFXQOQAjs.ContentFields; exports.ContentModule = _chunkYKFXQOQAjs.ContentModule; exports.ContentService = _chunkYKFXQOQAjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkYKFXQOQAjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkPFAZPP54js.DataClassRegistry; exports.DataClassRegistry = _chunkPFAZPP54js.DataClassRegistry; exports.EndpointCreator = _chunkYKFXQOQAjs.EndpointCreator; exports.EntityAiStatus = _chunkYKFXQOQAjs.EntityAiStatus; exports.Feature = _chunkYKFXQOQAjs.Feature; exports.FeatureModule = _chunkYKFXQOQAjs.FeatureModule; exports.FeatureService = _chunkYKFXQOQAjs.FeatureService; exports.HowTo = _chunkYKFXQOQAjs.HowTo; exports.HowToFields = _chunkYKFXQOQAjs.HowToFields; exports.HowToModule = _chunkYKFXQOQAjs.HowToModule; exports.HowToService = _chunkYKFXQOQAjs.HowToService; exports.HttpMethod = _chunkYKFXQOQAjs.HttpMethod; exports.InvoiceStatus = _chunkYKFXQOQAjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkPFAZPP54js.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkYKFXQOQAjs.MOBILE_BREAKPOINT; exports.Module = _chunkYKFXQOQAjs.Module; exports.ModuleModule = _chunkYKFXQOQAjs.ModuleModule; exports.ModulePathsModule = _chunkYKFXQOQAjs.ModulePathsModule; exports.ModuleRegistrar = _chunkYKFXQOQAjs.ModuleRegistrar; exports.ModuleRegistry = _chunkYKFXQOQAjs.ModuleRegistry; exports.Modules = _chunkYKFXQOQAjs.Modules; exports.Notification = _chunkYKFXQOQAjs.Notification; exports.NotificationFields = _chunkYKFXQOQAjs.NotificationFields; exports.NotificationModule = _chunkYKFXQOQAjs.NotificationModule; exports.NotificationService = _chunkYKFXQOQAjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkYKFXQOQAjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkYKFXQOQAjs.OAuthClient; exports.OAuthModule = _chunkYKFXQOQAjs.OAuthModule; exports.OAuthService = _chunkYKFXQOQAjs.OAuthService; exports.Passkey = _chunkYKFXQOQAjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkYKFXQOQAjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkYKFXQOQAjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkYKFXQOQAjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkYKFXQOQAjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkYKFXQOQAjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkYKFXQOQAjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkYKFXQOQAjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkYKFXQOQAjs.PasskeyRename; exports.PasskeyRenameModule = _chunkYKFXQOQAjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkYKFXQOQAjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkYKFXQOQAjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkYKFXQOQAjs.PaymentMethod; exports.PermissionMappingModule = _chunkYKFXQOQAjs.PermissionMappingModule; exports.Push = _chunkYKFXQOQAjs.Push; exports.PushModule = _chunkYKFXQOQAjs.PushModule; exports.PushService = _chunkYKFXQOQAjs.PushService; exports.RbacMatrixModule = _chunkYKFXQOQAjs.RbacMatrixModule; exports.ReferralModule = _chunkYKFXQOQAjs.ReferralModule; exports.ReferralService = _chunkYKFXQOQAjs.ReferralService; exports.ReferralStats = _chunkYKFXQOQAjs.ReferralStats; exports.ReferralStatsModule = _chunkYKFXQOQAjs.ReferralStatsModule; exports.RehydrationFactory = _chunkYKFXQOQAjs.RehydrationFactory; exports.Role = _chunkYKFXQOQAjs.Role; exports.RoleFields = _chunkYKFXQOQAjs.RoleFields; exports.RoleModule = _chunkYKFXQOQAjs.RoleModule; exports.RoleService = _chunkYKFXQOQAjs.RoleService; exports.S3 = _chunkYKFXQOQAjs.S3; exports.S3Module = _chunkYKFXQOQAjs.S3Module; exports.S3Service = _chunkYKFXQOQAjs.S3Service; exports.StripeCustomer = _chunkYKFXQOQAjs.StripeCustomer; exports.StripeCustomerModule = _chunkYKFXQOQAjs.StripeCustomerModule; exports.StripeCustomerService = _chunkYKFXQOQAjs.StripeCustomerService; exports.StripeInvoice = _chunkYKFXQOQAjs.StripeInvoice; exports.StripeInvoiceModule = _chunkYKFXQOQAjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkYKFXQOQAjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkYKFXQOQAjs.StripePaymentMethodModule; exports.StripePrice = _chunkYKFXQOQAjs.StripePrice; exports.StripePriceFields = _chunkYKFXQOQAjs.StripePriceFields; exports.StripePriceModule = _chunkYKFXQOQAjs.StripePriceModule; exports.StripePriceService = _chunkYKFXQOQAjs.StripePriceService; exports.StripeProduct = _chunkYKFXQOQAjs.StripeProduct; exports.StripeProductFields = _chunkYKFXQOQAjs.StripeProductFields; exports.StripeProductModule = _chunkYKFXQOQAjs.StripeProductModule; exports.StripeProductService = _chunkYKFXQOQAjs.StripeProductService; exports.StripePromotionCode = _chunkYKFXQOQAjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkYKFXQOQAjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkYKFXQOQAjs.StripePromotionCodeService; exports.StripeSubscription = _chunkYKFXQOQAjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkYKFXQOQAjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkYKFXQOQAjs.StripeSubscriptionService; exports.StripeUsage = _chunkYKFXQOQAjs.StripeUsage; exports.StripeUsageModule = _chunkYKFXQOQAjs.StripeUsageModule; exports.StripeUsageService = _chunkYKFXQOQAjs.StripeUsageService; exports.SubscriptionStatus = _chunkYKFXQOQAjs.SubscriptionStatus; exports.TableOptions = _chunkYKFXQOQAjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkYKFXQOQAjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkYKFXQOQAjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkYKFXQOQAjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkYKFXQOQAjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkYKFXQOQAjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkYKFXQOQAjs.TotpSetup; exports.TotpSetupModule = _chunkYKFXQOQAjs.TotpSetupModule; exports.TotpVerify = _chunkYKFXQOQAjs.TotpVerify; exports.TotpVerifyLogin = _chunkYKFXQOQAjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkYKFXQOQAjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkYKFXQOQAjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkYKFXQOQAjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkYKFXQOQAjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkYKFXQOQAjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkYKFXQOQAjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkYKFXQOQAjs.TwoFactorService; exports.TwoFactorStatus = _chunkYKFXQOQAjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkYKFXQOQAjs.TwoFactorStatusModule; exports.User = _chunkYKFXQOQAjs.User; exports.UserFields = _chunkYKFXQOQAjs.UserFields; exports.UserModule = _chunkYKFXQOQAjs.UserModule; exports.UserService = _chunkYKFXQOQAjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkYKFXQOQAjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkYKFXQOQAjs.Waitlist; exports.WaitlistModule = _chunkYKFXQOQAjs.WaitlistModule; exports.WaitlistService = _chunkYKFXQOQAjs.WaitlistService; exports.WaitlistStats = _chunkYKFXQOQAjs.WaitlistStats; exports.WaitlistStatsModule = _chunkYKFXQOQAjs.WaitlistStatsModule; exports.checkPermissions = _chunkYKFXQOQAjs.checkPermissions; exports.checkPermissionsFromServer = _chunkYKFXQOQAjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkYKFXQOQAjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkYKFXQOQAjs.clearLastApiTotal; exports.cn = _chunkYKFXQOQAjs.cn; exports.composeRefs = _chunkYKFXQOQAjs.composeRefs; exports.configureTokenUsage = _chunkYKFXQOQAjs.configureTokenUsage; exports.createJsonApiInclusion = _chunkYKFXQOQAjs.createJsonApiInclusion; exports.dismissToast = _chunkYKFXQOQAjs.dismissToast; exports.entityObjectSchema = _chunkYKFXQOQAjs.entityObjectSchema; exports.exists = _chunkYKFXQOQAjs.exists; exports.formatCodiceFiscale = _chunkYKFXQOQAjs.formatCodiceFiscale; exports.formatDate = _chunkYKFXQOQAjs.formatDate; exports.formatLocalDate = _chunkYKFXQOQAjs.formatLocalDate; exports.formatPartitaIva = _chunkYKFXQOQAjs.formatPartitaIva; exports.getBootstrapper = _chunkPFAZPP54js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkYKFXQOQAjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkYKFXQOQAjs.getGlobalErrorHandler; exports.getIcon = _chunkYKFXQOQAjs.getIcon; exports.getIconByModule = _chunkYKFXQOQAjs.getIconByModule; exports.getIconByModuleName = _chunkYKFXQOQAjs.getIconByModuleName; exports.getInitials = _chunkYKFXQOQAjs.getInitials; exports.getLastApiMeta = _chunkYKFXQOQAjs.getLastApiMeta; exports.getLastApiTotal = _chunkYKFXQOQAjs.getLastApiTotal; exports.getLucideIcon = _chunkYKFXQOQAjs.getLucideIcon; exports.getLucideIconByModule = _chunkYKFXQOQAjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkYKFXQOQAjs.getLucideIconByModuleName; exports.getTableComponents = _chunkYKFXQOQAjs.getTableComponents; exports.getTableOptions = _chunkYKFXQOQAjs.getTableOptions; exports.getTokenUsageCurrency = _chunkYKFXQOQAjs.getTokenUsageCurrency; exports.getValueFromPath = _chunkYKFXQOQAjs.getValueFromPath; exports.hasBootstrapper = _chunkPFAZPP54js.hasBootstrapper; exports.isRemoteImageSrc = _chunkYKFXQOQAjs.isRemoteImageSrc; exports.rehydrate = _chunkYKFXQOQAjs.rehydrate; exports.rehydrateList = _chunkYKFXQOQAjs.rehydrateList; exports.resetBootstrapStore = _chunkPFAZPP54js.resetBootstrapStore; exports.setBootstrapper = _chunkPFAZPP54js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkYKFXQOQAjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkYKFXQOQAjs.setGlobalErrorHandler; exports.showCustomToast = _chunkYKFXQOQAjs.showCustomToast; exports.showError = _chunkYKFXQOQAjs.showError; exports.showToast = _chunkYKFXQOQAjs.showToast; exports.tokenUsageModules = _chunkYKFXQOQAjs.tokenUsageModules; exports.translateData = _chunkPFAZPP54js.translateData; exports.translateResponse = _chunkPFAZPP54js.translateResponse; exports.tryBootstrap = _chunkPFAZPP54js.tryBootstrap; exports.useComposedRefs = _chunkYKFXQOQAjs.useComposedRefs; exports.useIsMobile = _chunkYKFXQOQAjs.useIsMobile; exports.userObjectSchema = _chunkYKFXQOQAjs.userObjectSchema; exports.validateCodiceFiscale = _chunkYKFXQOQAjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkYKFXQOQAjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkYKFXQOQAjs.validatePartitaIva;
|
|
429
429
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.mjs
CHANGED
|
@@ -23,13 +23,13 @@ var _chunkYBZVWLPHjs = require('../../chunk-YBZVWLPH.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk5AKDE5UWjs = require('../../chunk-5AKDE5UW.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkUYENG3GTjs = require('../../chunk-UYENG3GT.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkYKFXQOQAjs = require('../../chunk-YKFXQOQA.js');
|
|
33
33
|
require('../../chunk-LXKSUWAV.js');
|
|
34
34
|
require('../../chunk-IBS6NI7D.js');
|
|
35
35
|
require('../../chunk-PFAZPP54.js');
|
|
@@ -43,7 +43,7 @@ var _react = require('react');
|
|
|
43
43
|
var _jsxruntime = require('react/jsx-runtime');
|
|
44
44
|
var HelpContext = _react.createContext.call(void 0, null);
|
|
45
45
|
function HelpProvider({ children }) {
|
|
46
|
-
const cfg =
|
|
46
|
+
const cfg = _chunkUYENG3GTjs._getStaticHelpContent.call(void 0, );
|
|
47
47
|
if (!cfg) {
|
|
48
48
|
throw new Error(
|
|
49
49
|
"Help content not configured \u2014 call configureJsonApi({ helpContent: {...} }) before importing help components."
|
|
@@ -75,29 +75,29 @@ var _lucidereact = require('lucide-react');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
function HelpAssistantSheet({ open, onOpenChange }) {
|
|
78
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
-
|
|
78
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
+
_chunk5AKDE5UWjs.SheetContent,
|
|
80
80
|
{
|
|
81
81
|
side: "right",
|
|
82
82
|
className: "flex w-full flex-col data-[side=right]:sm:max-w-2xl data-[side=right]:lg:max-w-3xl",
|
|
83
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.AssistantProvider, { manageUrl: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAssistantSheetBody, {}) })
|
|
84
84
|
}
|
|
85
85
|
) });
|
|
86
86
|
}
|
|
87
87
|
_chunk7QVYU63Ejs.__name.call(void 0, HelpAssistantSheet, "HelpAssistantSheet");
|
|
88
88
|
function HelpAssistantSheetBody() {
|
|
89
89
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
90
|
-
const ctx =
|
|
90
|
+
const ctx = _chunk5AKDE5UWjs.useAssistantContext.call(void 0, );
|
|
91
91
|
const showThread = !!ctx.assistant || ctx.sending || ctx.messages.length > 0;
|
|
92
92
|
const send = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (content) => ctx.sendMessage(content, { howToMode: true }), "send");
|
|
93
93
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
94
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
95
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
94
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5AKDE5UWjs.SheetHeader, { children: [
|
|
95
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.SheetTitle, { children: t("help.askAi.sheet.title") }),
|
|
96
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.SheetDescription, { children: t("help.askAi.sheet.subtitle") })
|
|
97
97
|
] }),
|
|
98
|
-
!showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
98
|
+
!showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
99
99
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
100
|
-
|
|
100
|
+
_chunk5AKDE5UWjs.AssistantThread,
|
|
101
101
|
{
|
|
102
102
|
messages: ctx.messages,
|
|
103
103
|
sending: ctx.sending,
|
|
@@ -107,7 +107,7 @@ function HelpAssistantSheetBody() {
|
|
|
107
107
|
onRetry: ctx.retrySend
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
110
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.AssistantComposer, { onSend: send, disabled: ctx.sending })
|
|
111
111
|
] })
|
|
112
112
|
] });
|
|
113
113
|
}
|
|
@@ -117,20 +117,20 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpAssistantSheetBody, "HelpAssistantSheet
|
|
|
117
117
|
|
|
118
118
|
function HelpAskAi() {
|
|
119
119
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
120
|
-
const { currentUser } =
|
|
120
|
+
const { currentUser } = _chunk5AKDE5UWjs.useCurrentUserContext.call(void 0, );
|
|
121
121
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
122
122
|
const disabled = !currentUser;
|
|
123
123
|
if (disabled) {
|
|
124
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
125
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
124
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5AKDE5UWjs.Tooltip, { children: [
|
|
125
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5AKDE5UWjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.Button, { variant: "outline", size: "sm", disabled: true }), children: [
|
|
126
126
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SparklesIcon, { className: "h-4 w-4" }),
|
|
127
127
|
t("help.askAi.button")
|
|
128
128
|
] }),
|
|
129
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
129
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.TooltipContent, { children: t("help.askAi.loginTooltip") })
|
|
130
130
|
] });
|
|
131
131
|
}
|
|
132
132
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
133
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
133
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5AKDE5UWjs.Button, { variant: "outline", size: "sm", onClick: () => setOpen(true), children: [
|
|
134
134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SparklesIcon, { className: "h-4 w-4" }),
|
|
135
135
|
t("help.askAi.button")
|
|
136
136
|
] }),
|
|
@@ -143,7 +143,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpAskAi, "HelpAskAi");
|
|
|
143
143
|
|
|
144
144
|
function HelpHeader() {
|
|
145
145
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
146
|
-
const { currentUser } =
|
|
146
|
+
const { currentUser } = _chunk5AKDE5UWjs.useCurrentUserContext.call(void 0, );
|
|
147
147
|
const { brand } = useHelp();
|
|
148
148
|
const logo = _optionalChain([brand, 'optionalAccess', _ => _.logo]);
|
|
149
149
|
const label = _nullishCoalesce(_optionalChain([brand, 'optionalAccess', _2 => _2.label]), () => ( "Help"));
|
|
@@ -159,7 +159,7 @@ function HelpHeader() {
|
|
|
159
159
|
] }),
|
|
160
160
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
161
161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAskAi, {}),
|
|
162
|
-
currentUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: appHref, className:
|
|
162
|
+
currentUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: appHref, className: _chunk5AKDE5UWjs.buttonVariants.call(void 0, { variant: "outline", size: "sm" }), children: t("help.header.openApp") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/login", className: _chunk5AKDE5UWjs.buttonVariants.call(void 0, { variant: "outline", size: "sm" }), children: t("help.header.login") })
|
|
163
163
|
] })
|
|
164
164
|
] });
|
|
165
165
|
}
|
|
@@ -201,12 +201,12 @@ _chunk7QVYU63Ejs.__name.call(void 0, useHelpFilter, "useHelpFilter");
|
|
|
201
201
|
|
|
202
202
|
function HelpSideNav() {
|
|
203
203
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
204
|
-
const generateUrl =
|
|
204
|
+
const generateUrl = _chunk5AKDE5UWjs.usePageUrlGenerator.call(void 0, );
|
|
205
205
|
const pathname = _navigation.usePathname.call(void 0, );
|
|
206
206
|
const [articles, setArticles] = _react.useState.call(void 0, []);
|
|
207
207
|
_react.useEffect.call(void 0, () => {
|
|
208
208
|
let active = true;
|
|
209
|
-
|
|
209
|
+
_chunkYKFXQOQAjs.HowToService.findPublished().then((list) => active && setArticles(list)).catch(() => active && setArticles([]));
|
|
210
210
|
return () => {
|
|
211
211
|
active = false;
|
|
212
212
|
};
|
|
@@ -282,7 +282,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpSideNav, "HelpSideNav");
|
|
|
282
282
|
function HelpArticleBody(props) {
|
|
283
283
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
284
284
|
const format = _nextintl.useFormatter.call(void 0, );
|
|
285
|
-
const generateUrl =
|
|
285
|
+
const generateUrl = _chunk5AKDE5UWjs.usePageUrlGenerator.call(void 0, );
|
|
286
286
|
const { howToType, title, summary, updatedAt, prev, next, children } = props;
|
|
287
287
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: "prose dark:prose-invert max-w-none", children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: "text-muted-foreground mb-2 text-xs", children: [
|
|
@@ -339,7 +339,7 @@ function HelpTOC({ headings }) {
|
|
|
339
339
|
}, [headings]);
|
|
340
340
|
if (headings.length === 0) return null;
|
|
341
341
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { "aria-label": t("help.toc.title"), className: "hidden lg:block", children: [
|
|
342
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.MicroLabel, { className: "mb-2", children: t("help.toc.title") }),
|
|
343
343
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "space-y-1 text-sm", children: headings.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { style: { paddingLeft: `${(h.depth - 2) * 0.75}rem` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
344
344
|
"a",
|
|
345
345
|
{
|
|
@@ -360,13 +360,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpTOC, "HelpTOC");
|
|
|
360
360
|
|
|
361
361
|
function HelpHint({ contextKey }) {
|
|
362
362
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
363
|
-
const generateUrl =
|
|
363
|
+
const generateUrl = _chunk5AKDE5UWjs.usePageUrlGenerator.call(void 0, );
|
|
364
364
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
365
365
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
366
366
|
const [articles, setArticles] = _react.useState.call(void 0, []);
|
|
367
367
|
_react.useEffect.call(void 0, () => {
|
|
368
368
|
let active2 = true;
|
|
369
|
-
|
|
369
|
+
_chunkYKFXQOQAjs.HowToService.findPublished().then((list) => active2 && setArticles(list)).catch(() => active2 && setArticles([]));
|
|
370
370
|
return () => {
|
|
371
371
|
active2 = false;
|
|
372
372
|
};
|
|
@@ -378,7 +378,7 @@ function HelpHint({ contextKey }) {
|
|
|
378
378
|
if (matches.length === 0) return null;
|
|
379
379
|
const active = _nullishCoalesce(picked, () => ( (matches.length === 1 ? matches[0] : null)));
|
|
380
380
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
381
|
-
|
|
381
|
+
_chunk5AKDE5UWjs.Sheet,
|
|
382
382
|
{
|
|
383
383
|
open,
|
|
384
384
|
onOpenChange: (o) => {
|
|
@@ -386,11 +386,11 @@ function HelpHint({ contextKey }) {
|
|
|
386
386
|
if (!o) setPicked(null);
|
|
387
387
|
},
|
|
388
388
|
children: [
|
|
389
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
391
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
392
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
393
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
389
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.Button, { variant: "ghost", size: "icon-sm", "aria-label": t("help.hint.trigger") }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HelpCircleIcon, { className: "h-4 w-4" }) }),
|
|
390
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5AKDE5UWjs.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
|
|
391
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5AKDE5UWjs.SheetHeader, { children: [
|
|
392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
|
|
393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.SheetDescription, { children: _nullishCoalesce(_optionalChain([active, 'optionalAccess', _4 => _4.summary]), () => ( "")) })
|
|
394
394
|
] }),
|
|
395
395
|
active ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-4 space-y-3", children: [
|
|
396
396
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: active.summary }),
|
|
@@ -422,18 +422,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpHint, "HelpHint");
|
|
|
422
422
|
|
|
423
423
|
function HelpSearchResultRow({ result, onSelect }) {
|
|
424
424
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
425
|
-
const generateUrl =
|
|
425
|
+
const generateUrl = _chunk5AKDE5UWjs.usePageUrlGenerator.call(void 0, );
|
|
426
426
|
const [article, setArticle] = _react.useState.call(void 0, null);
|
|
427
427
|
_react.useEffect.call(void 0, () => {
|
|
428
428
|
let active = true;
|
|
429
|
-
|
|
429
|
+
_chunkYKFXQOQAjs.HowToService.findOne({ id: result.id }).then((a) => active && setArticle(a)).catch(() => active && setArticle(null));
|
|
430
430
|
return () => {
|
|
431
431
|
active = false;
|
|
432
432
|
};
|
|
433
433
|
}, [result.id]);
|
|
434
434
|
if (!article) {
|
|
435
435
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
436
|
-
|
|
436
|
+
_chunk5AKDE5UWjs.CommandItem,
|
|
437
437
|
{
|
|
438
438
|
value: result.id,
|
|
439
439
|
disabled: true,
|
|
@@ -442,7 +442,7 @@ function HelpSearchResultRow({ result, onSelect }) {
|
|
|
442
442
|
}
|
|
443
443
|
);
|
|
444
444
|
}
|
|
445
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
445
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5AKDE5UWjs.CommandItem, { value: result.id, onSelect, className: "cursor-pointer p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
446
446
|
_link2.default,
|
|
447
447
|
{
|
|
448
448
|
href: generateUrl({ page: `/help/${article.howToType}/${article.slug}` }),
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
useAssistantContext,
|
|
24
24
|
useCurrentUserContext,
|
|
25
25
|
usePageUrlGenerator
|
|
26
|
-
} from "../../chunk-
|
|
26
|
+
} from "../../chunk-O4LTJAAM.mjs";
|
|
27
27
|
import {
|
|
28
28
|
_getStaticHelpContent
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-LCMVARSP.mjs";
|
|
30
30
|
import {
|
|
31
31
|
HowToService
|
|
32
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-PGARO3JT.mjs";
|
|
33
33
|
import "../../chunk-AUXK7QSA.mjs";
|
|
34
34
|
import "../../chunk-C7C7VY4F.mjs";
|
|
35
35
|
import "../../chunk-CMGXH5SA.mjs";
|