@carlonicora/nextjs-jsonapi 2.2.1 → 2.2.3
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-2LGNETXD.mjs → BlockNoteEditor-ADT6II2V.mjs} +5 -5
- package/dist/{BlockNoteEditor-EAEGUVFI.js → BlockNoteEditor-QTIDATPF.js} +20 -20
- package/dist/{BlockNoteEditor-EAEGUVFI.js.map → BlockNoteEditor-QTIDATPF.js.map} +1 -1
- package/dist/{JsonApiRequest-F5LBESSA.mjs → JsonApiRequest-3UWVIIFL.mjs} +2 -2
- package/dist/JsonApiRequest-QRU3IPIU.js +26 -0
- package/dist/{JsonApiRequest-YAPUG4ND.js.map → JsonApiRequest-QRU3IPIU.js.map} +1 -1
- package/dist/billing/index.js +467 -467
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +82 -82
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-B34NBMKV.mjs → chunk-7DJOQTNN.mjs} +3 -3
- package/dist/{chunk-R57FRJ6H.mjs → chunk-DLTMYGLR.mjs} +5 -5
- package/dist/{chunk-Z2CB63VG.mjs → chunk-E5YA5Z5X.mjs} +2 -2
- package/dist/chunk-E5YA5Z5X.mjs.map +1 -0
- package/dist/{chunk-4I2W336O.js → chunk-F3BPNQDB.js} +737 -737
- package/dist/{chunk-4I2W336O.js.map → chunk-F3BPNQDB.js.map} +1 -1
- package/dist/{chunk-QWCAOLBD.js → chunk-FPO4DLZN.js} +12 -12
- package/dist/{chunk-QWCAOLBD.js.map → chunk-FPO4DLZN.js.map} +1 -1
- package/dist/{chunk-DQJ5C5TV.js → chunk-KSU6CCW6.js} +30 -30
- package/dist/{chunk-DQJ5C5TV.js.map → chunk-KSU6CCW6.js.map} +1 -1
- package/dist/{chunk-BLKR2Q7F.js → chunk-LANOKEFZ.js} +9 -9
- package/dist/{chunk-BLKR2Q7F.js.map → chunk-LANOKEFZ.js.map} +1 -1
- package/dist/{chunk-OC7F4L7K.mjs → chunk-YEPE2HT6.mjs} +6 -6
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/features/help/index.js +38 -38
- package/dist/features/help/index.mjs +4 -4
- package/dist/features/tokenusage/index.js +72 -72
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/core/utils/__tests__/translateResponse.test.ts +64 -0
- package/src/core/utils/translateResponse.ts +4 -1
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +71 -68
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +3 -3
- package/src/features/billing/stripe-promotion-code/components/PromoCodeInput.tsx +2 -2
- package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +1 -1
- package/src/features/billing/stripe-subscription/components/forms/CancelSubscriptionDialog.tsx +1 -1
- package/src/features/billing/stripe-subscription/components/widgets/ProrationPreview.tsx +8 -8
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +5 -5
- package/dist/JsonApiRequest-YAPUG4ND.js +0 -26
- package/dist/chunk-Z2CB63VG.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-2LGNETXD.mjs.map → BlockNoteEditor-ADT6II2V.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-F5LBESSA.mjs.map → JsonApiRequest-3UWVIIFL.mjs.map} +0 -0
- /package/dist/{chunk-B34NBMKV.mjs.map → chunk-7DJOQTNN.mjs.map} +0 -0
- /package/dist/{chunk-R57FRJ6H.mjs.map → chunk-DLTMYGLR.mjs.map} +0 -0
- /package/dist/{chunk-OC7F4L7K.mjs.map → chunk-YEPE2HT6.mjs.map} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
|
|
190
190
|
|
|
191
191
|
|
|
192
|
-
var
|
|
192
|
+
var _chunkKSU6CCW6js = require('../chunk-KSU6CCW6.js');
|
|
193
193
|
require('../chunk-LXKSUWAV.js');
|
|
194
194
|
require('../chunk-IBS6NI7D.js');
|
|
195
195
|
|
|
@@ -202,7 +202,7 @@ require('../chunk-IBS6NI7D.js');
|
|
|
202
202
|
|
|
203
203
|
|
|
204
204
|
|
|
205
|
-
var
|
|
205
|
+
var _chunkFPO4DLZNjs = require('../chunk-FPO4DLZN.js');
|
|
206
206
|
require('../chunk-7QVYU63E.js');
|
|
207
207
|
|
|
208
208
|
|
|
@@ -405,5 +405,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
405
405
|
|
|
406
406
|
|
|
407
407
|
|
|
408
|
-
exports.AVAILABLE_OAUTH_SCOPES = _chunkDQJ5C5TVjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkDQJ5C5TVjs.AbstractApiData; exports.AbstractService = _chunkDQJ5C5TVjs.AbstractService; exports.Action = _chunkDQJ5C5TVjs.Action; exports.Assistant = _chunkDQJ5C5TVjs.Assistant; exports.AssistantAction = _chunkDQJ5C5TVjs.AssistantAction; exports.AssistantActionModule = _chunkDQJ5C5TVjs.AssistantActionModule; exports.AssistantActionService = _chunkDQJ5C5TVjs.AssistantActionService; exports.AssistantMessage = _chunkDQJ5C5TVjs.AssistantMessage; exports.AssistantMessageModule = _chunkDQJ5C5TVjs.AssistantMessageModule; exports.AssistantMessageService = _chunkDQJ5C5TVjs.AssistantMessageService; exports.AssistantModule = _chunkDQJ5C5TVjs.AssistantModule; exports.AssistantService = _chunkDQJ5C5TVjs.AssistantService; exports.AuditLog = _chunkDQJ5C5TVjs.AuditLog; exports.AuditLogModule = _chunkDQJ5C5TVjs.AuditLogModule; exports.AuditLogService = _chunkDQJ5C5TVjs.AuditLogService; exports.Auth = _chunkDQJ5C5TVjs.Auth; exports.AuthComponent = _chunkDQJ5C5TVjs.AuthComponent; exports.AuthModule = _chunkDQJ5C5TVjs.AuthModule; exports.AuthService = _chunkDQJ5C5TVjs.AuthService; exports.AuthorModule = _chunkDQJ5C5TVjs.AuthorModule; exports.BackupCodeVerify = _chunkDQJ5C5TVjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkDQJ5C5TVjs.BackupCodeVerifyModule; exports.Billing = _chunkDQJ5C5TVjs.Billing; exports.BillingModule = _chunkDQJ5C5TVjs.BillingModule; exports.BillingService = _chunkDQJ5C5TVjs.BillingService; exports.BlockNoteDiffUtil = _chunkDQJ5C5TVjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkDQJ5C5TVjs.BlockNoteWordDiffRendererUtil; exports.Chunk = _chunkDQJ5C5TVjs.Chunk; exports.ChunkModule = _chunkDQJ5C5TVjs.ChunkModule; exports.ClientAbstractService = _chunkDQJ5C5TVjs.ClientAbstractService; exports.ClientHttpMethod = _chunkDQJ5C5TVjs.ClientHttpMethod; exports.Company = _chunkDQJ5C5TVjs.Company; exports.CompanyFields = _chunkDQJ5C5TVjs.CompanyFields; exports.CompanyModule = _chunkDQJ5C5TVjs.CompanyModule; exports.CompanyService = _chunkDQJ5C5TVjs.CompanyService; exports.Content = _chunkDQJ5C5TVjs.Content; exports.ContentFields = _chunkDQJ5C5TVjs.ContentFields; exports.ContentModule = _chunkDQJ5C5TVjs.ContentModule; exports.ContentService = _chunkDQJ5C5TVjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkDQJ5C5TVjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkQWCAOLBDjs.DataClassRegistry; exports.DataClassRegistry = _chunkQWCAOLBDjs.DataClassRegistry; exports.EndpointCreator = _chunkDQJ5C5TVjs.EndpointCreator; exports.Feature = _chunkDQJ5C5TVjs.Feature; exports.FeatureModule = _chunkDQJ5C5TVjs.FeatureModule; exports.FeatureService = _chunkDQJ5C5TVjs.FeatureService; exports.HowTo = _chunkDQJ5C5TVjs.HowTo; exports.HowToFields = _chunkDQJ5C5TVjs.HowToFields; exports.HowToModule = _chunkDQJ5C5TVjs.HowToModule; exports.HowToService = _chunkDQJ5C5TVjs.HowToService; exports.HttpMethod = _chunkDQJ5C5TVjs.HttpMethod; exports.InvoiceStatus = _chunkDQJ5C5TVjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkQWCAOLBDjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkDQJ5C5TVjs.MOBILE_BREAKPOINT; exports.Module = _chunkDQJ5C5TVjs.Module; exports.ModuleModule = _chunkDQJ5C5TVjs.ModuleModule; exports.ModulePathsModule = _chunkDQJ5C5TVjs.ModulePathsModule; exports.ModuleRegistrar = _chunkDQJ5C5TVjs.ModuleRegistrar; exports.ModuleRegistry = _chunkDQJ5C5TVjs.ModuleRegistry; exports.Modules = _chunkDQJ5C5TVjs.Modules; exports.Notification = _chunkDQJ5C5TVjs.Notification; exports.NotificationFields = _chunkDQJ5C5TVjs.NotificationFields; exports.NotificationModule = _chunkDQJ5C5TVjs.NotificationModule; exports.NotificationService = _chunkDQJ5C5TVjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkDQJ5C5TVjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkDQJ5C5TVjs.OAuthClient; exports.OAuthModule = _chunkDQJ5C5TVjs.OAuthModule; exports.OAuthService = _chunkDQJ5C5TVjs.OAuthService; exports.Passkey = _chunkDQJ5C5TVjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkDQJ5C5TVjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkDQJ5C5TVjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkDQJ5C5TVjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkDQJ5C5TVjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkDQJ5C5TVjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkDQJ5C5TVjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkDQJ5C5TVjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkDQJ5C5TVjs.PasskeyRename; exports.PasskeyRenameModule = _chunkDQJ5C5TVjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkDQJ5C5TVjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkDQJ5C5TVjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkDQJ5C5TVjs.PaymentMethod; exports.PermissionMappingModule = _chunkDQJ5C5TVjs.PermissionMappingModule; exports.Push = _chunkDQJ5C5TVjs.Push; exports.PushModule = _chunkDQJ5C5TVjs.PushModule; exports.PushService = _chunkDQJ5C5TVjs.PushService; exports.RbacMatrixModule = _chunkDQJ5C5TVjs.RbacMatrixModule; exports.ReferralModule = _chunkDQJ5C5TVjs.ReferralModule; exports.ReferralService = _chunkDQJ5C5TVjs.ReferralService; exports.ReferralStats = _chunkDQJ5C5TVjs.ReferralStats; exports.ReferralStatsModule = _chunkDQJ5C5TVjs.ReferralStatsModule; exports.RehydrationFactory = _chunkDQJ5C5TVjs.RehydrationFactory; exports.Role = _chunkDQJ5C5TVjs.Role; exports.RoleFields = _chunkDQJ5C5TVjs.RoleFields; exports.RoleModule = _chunkDQJ5C5TVjs.RoleModule; exports.RoleService = _chunkDQJ5C5TVjs.RoleService; exports.S3 = _chunkDQJ5C5TVjs.S3; exports.S3Module = _chunkDQJ5C5TVjs.S3Module; exports.S3Service = _chunkDQJ5C5TVjs.S3Service; exports.StripeCustomer = _chunkDQJ5C5TVjs.StripeCustomer; exports.StripeCustomerModule = _chunkDQJ5C5TVjs.StripeCustomerModule; exports.StripeCustomerService = _chunkDQJ5C5TVjs.StripeCustomerService; exports.StripeInvoice = _chunkDQJ5C5TVjs.StripeInvoice; exports.StripeInvoiceModule = _chunkDQJ5C5TVjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkDQJ5C5TVjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkDQJ5C5TVjs.StripePaymentMethodModule; exports.StripePrice = _chunkDQJ5C5TVjs.StripePrice; exports.StripePriceModule = _chunkDQJ5C5TVjs.StripePriceModule; exports.StripePriceService = _chunkDQJ5C5TVjs.StripePriceService; exports.StripeProduct = _chunkDQJ5C5TVjs.StripeProduct; exports.StripeProductModule = _chunkDQJ5C5TVjs.StripeProductModule; exports.StripeProductService = _chunkDQJ5C5TVjs.StripeProductService; exports.StripePromotionCode = _chunkDQJ5C5TVjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkDQJ5C5TVjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkDQJ5C5TVjs.StripePromotionCodeService; exports.StripeSubscription = _chunkDQJ5C5TVjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkDQJ5C5TVjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkDQJ5C5TVjs.StripeSubscriptionService; exports.StripeUsage = _chunkDQJ5C5TVjs.StripeUsage; exports.StripeUsageModule = _chunkDQJ5C5TVjs.StripeUsageModule; exports.StripeUsageService = _chunkDQJ5C5TVjs.StripeUsageService; exports.SubscriptionStatus = _chunkDQJ5C5TVjs.SubscriptionStatus; exports.TableOptions = _chunkDQJ5C5TVjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkDQJ5C5TVjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkDQJ5C5TVjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkDQJ5C5TVjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkDQJ5C5TVjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkDQJ5C5TVjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkDQJ5C5TVjs.TotpSetup; exports.TotpSetupModule = _chunkDQJ5C5TVjs.TotpSetupModule; exports.TotpVerify = _chunkDQJ5C5TVjs.TotpVerify; exports.TotpVerifyLogin = _chunkDQJ5C5TVjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkDQJ5C5TVjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkDQJ5C5TVjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkDQJ5C5TVjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkDQJ5C5TVjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkDQJ5C5TVjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkDQJ5C5TVjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkDQJ5C5TVjs.TwoFactorService; exports.TwoFactorStatus = _chunkDQJ5C5TVjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkDQJ5C5TVjs.TwoFactorStatusModule; exports.User = _chunkDQJ5C5TVjs.User; exports.UserFields = _chunkDQJ5C5TVjs.UserFields; exports.UserModule = _chunkDQJ5C5TVjs.UserModule; exports.UserService = _chunkDQJ5C5TVjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkDQJ5C5TVjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkDQJ5C5TVjs.Waitlist; exports.WaitlistModule = _chunkDQJ5C5TVjs.WaitlistModule; exports.WaitlistService = _chunkDQJ5C5TVjs.WaitlistService; exports.WaitlistStats = _chunkDQJ5C5TVjs.WaitlistStats; exports.WaitlistStatsModule = _chunkDQJ5C5TVjs.WaitlistStatsModule; exports.checkPermissions = _chunkDQJ5C5TVjs.checkPermissions; exports.checkPermissionsFromServer = _chunkDQJ5C5TVjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkDQJ5C5TVjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkDQJ5C5TVjs.clearLastApiTotal; exports.cn = _chunkDQJ5C5TVjs.cn; exports.composeRefs = _chunkDQJ5C5TVjs.composeRefs; exports.createJsonApiInclusion = _chunkDQJ5C5TVjs.createJsonApiInclusion; exports.dismissToast = _chunkDQJ5C5TVjs.dismissToast; exports.entityObjectSchema = _chunkDQJ5C5TVjs.entityObjectSchema; exports.exists = _chunkDQJ5C5TVjs.exists; exports.formatCodiceFiscale = _chunkDQJ5C5TVjs.formatCodiceFiscale; exports.formatDate = _chunkDQJ5C5TVjs.formatDate; exports.formatLocalDate = _chunkDQJ5C5TVjs.formatLocalDate; exports.formatPartitaIva = _chunkDQJ5C5TVjs.formatPartitaIva; exports.getBootstrapper = _chunkQWCAOLBDjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkDQJ5C5TVjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkDQJ5C5TVjs.getGlobalErrorHandler; exports.getIcon = _chunkDQJ5C5TVjs.getIcon; exports.getIconByModule = _chunkDQJ5C5TVjs.getIconByModule; exports.getIconByModuleName = _chunkDQJ5C5TVjs.getIconByModuleName; exports.getInitials = _chunkDQJ5C5TVjs.getInitials; exports.getLastApiMeta = _chunkDQJ5C5TVjs.getLastApiMeta; exports.getLastApiTotal = _chunkDQJ5C5TVjs.getLastApiTotal; exports.getLucideIcon = _chunkDQJ5C5TVjs.getLucideIcon; exports.getLucideIconByModule = _chunkDQJ5C5TVjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkDQJ5C5TVjs.getLucideIconByModuleName; exports.getTableComponents = _chunkDQJ5C5TVjs.getTableComponents; exports.getTableOptions = _chunkDQJ5C5TVjs.getTableOptions; exports.getValueFromPath = _chunkDQJ5C5TVjs.getValueFromPath; exports.hasBootstrapper = _chunkQWCAOLBDjs.hasBootstrapper; exports.isRemoteImageSrc = _chunkDQJ5C5TVjs.isRemoteImageSrc; exports.rehydrate = _chunkDQJ5C5TVjs.rehydrate; exports.rehydrateList = _chunkDQJ5C5TVjs.rehydrateList; exports.resetBootstrapStore = _chunkQWCAOLBDjs.resetBootstrapStore; exports.setBootstrapper = _chunkQWCAOLBDjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkDQJ5C5TVjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkDQJ5C5TVjs.setGlobalErrorHandler; exports.showCustomToast = _chunkDQJ5C5TVjs.showCustomToast; exports.showError = _chunkDQJ5C5TVjs.showError; exports.showToast = _chunkDQJ5C5TVjs.showToast; exports.translateData = _chunkQWCAOLBDjs.translateData; exports.translateResponse = _chunkQWCAOLBDjs.translateResponse; exports.tryBootstrap = _chunkQWCAOLBDjs.tryBootstrap; exports.useComposedRefs = _chunkDQJ5C5TVjs.useComposedRefs; exports.useIsMobile = _chunkDQJ5C5TVjs.useIsMobile; exports.userObjectSchema = _chunkDQJ5C5TVjs.userObjectSchema; exports.validateCodiceFiscale = _chunkDQJ5C5TVjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkDQJ5C5TVjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkDQJ5C5TVjs.validatePartitaIva;
|
|
408
|
+
exports.AVAILABLE_OAUTH_SCOPES = _chunkKSU6CCW6js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkKSU6CCW6js.AbstractApiData; exports.AbstractService = _chunkKSU6CCW6js.AbstractService; exports.Action = _chunkKSU6CCW6js.Action; exports.Assistant = _chunkKSU6CCW6js.Assistant; exports.AssistantAction = _chunkKSU6CCW6js.AssistantAction; exports.AssistantActionModule = _chunkKSU6CCW6js.AssistantActionModule; exports.AssistantActionService = _chunkKSU6CCW6js.AssistantActionService; exports.AssistantMessage = _chunkKSU6CCW6js.AssistantMessage; exports.AssistantMessageModule = _chunkKSU6CCW6js.AssistantMessageModule; exports.AssistantMessageService = _chunkKSU6CCW6js.AssistantMessageService; exports.AssistantModule = _chunkKSU6CCW6js.AssistantModule; exports.AssistantService = _chunkKSU6CCW6js.AssistantService; exports.AuditLog = _chunkKSU6CCW6js.AuditLog; exports.AuditLogModule = _chunkKSU6CCW6js.AuditLogModule; exports.AuditLogService = _chunkKSU6CCW6js.AuditLogService; exports.Auth = _chunkKSU6CCW6js.Auth; exports.AuthComponent = _chunkKSU6CCW6js.AuthComponent; exports.AuthModule = _chunkKSU6CCW6js.AuthModule; exports.AuthService = _chunkKSU6CCW6js.AuthService; exports.AuthorModule = _chunkKSU6CCW6js.AuthorModule; exports.BackupCodeVerify = _chunkKSU6CCW6js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkKSU6CCW6js.BackupCodeVerifyModule; exports.Billing = _chunkKSU6CCW6js.Billing; exports.BillingModule = _chunkKSU6CCW6js.BillingModule; exports.BillingService = _chunkKSU6CCW6js.BillingService; exports.BlockNoteDiffUtil = _chunkKSU6CCW6js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkKSU6CCW6js.BlockNoteWordDiffRendererUtil; exports.Chunk = _chunkKSU6CCW6js.Chunk; exports.ChunkModule = _chunkKSU6CCW6js.ChunkModule; exports.ClientAbstractService = _chunkKSU6CCW6js.ClientAbstractService; exports.ClientHttpMethod = _chunkKSU6CCW6js.ClientHttpMethod; exports.Company = _chunkKSU6CCW6js.Company; exports.CompanyFields = _chunkKSU6CCW6js.CompanyFields; exports.CompanyModule = _chunkKSU6CCW6js.CompanyModule; exports.CompanyService = _chunkKSU6CCW6js.CompanyService; exports.Content = _chunkKSU6CCW6js.Content; exports.ContentFields = _chunkKSU6CCW6js.ContentFields; exports.ContentModule = _chunkKSU6CCW6js.ContentModule; exports.ContentService = _chunkKSU6CCW6js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkKSU6CCW6js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFPO4DLZNjs.DataClassRegistry; exports.DataClassRegistry = _chunkFPO4DLZNjs.DataClassRegistry; exports.EndpointCreator = _chunkKSU6CCW6js.EndpointCreator; exports.Feature = _chunkKSU6CCW6js.Feature; exports.FeatureModule = _chunkKSU6CCW6js.FeatureModule; exports.FeatureService = _chunkKSU6CCW6js.FeatureService; exports.HowTo = _chunkKSU6CCW6js.HowTo; exports.HowToFields = _chunkKSU6CCW6js.HowToFields; exports.HowToModule = _chunkKSU6CCW6js.HowToModule; exports.HowToService = _chunkKSU6CCW6js.HowToService; exports.HttpMethod = _chunkKSU6CCW6js.HttpMethod; exports.InvoiceStatus = _chunkKSU6CCW6js.InvoiceStatus; exports.JsonApiDataFactory = _chunkFPO4DLZNjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkKSU6CCW6js.MOBILE_BREAKPOINT; exports.Module = _chunkKSU6CCW6js.Module; exports.ModuleModule = _chunkKSU6CCW6js.ModuleModule; exports.ModulePathsModule = _chunkKSU6CCW6js.ModulePathsModule; exports.ModuleRegistrar = _chunkKSU6CCW6js.ModuleRegistrar; exports.ModuleRegistry = _chunkKSU6CCW6js.ModuleRegistry; exports.Modules = _chunkKSU6CCW6js.Modules; exports.Notification = _chunkKSU6CCW6js.Notification; exports.NotificationFields = _chunkKSU6CCW6js.NotificationFields; exports.NotificationModule = _chunkKSU6CCW6js.NotificationModule; exports.NotificationService = _chunkKSU6CCW6js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkKSU6CCW6js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkKSU6CCW6js.OAuthClient; exports.OAuthModule = _chunkKSU6CCW6js.OAuthModule; exports.OAuthService = _chunkKSU6CCW6js.OAuthService; exports.Passkey = _chunkKSU6CCW6js.Passkey; exports.PasskeyAuthenticationOptions = _chunkKSU6CCW6js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkKSU6CCW6js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkKSU6CCW6js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkKSU6CCW6js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkKSU6CCW6js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkKSU6CCW6js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkKSU6CCW6js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkKSU6CCW6js.PasskeyRename; exports.PasskeyRenameModule = _chunkKSU6CCW6js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkKSU6CCW6js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkKSU6CCW6js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkKSU6CCW6js.PaymentMethod; exports.PermissionMappingModule = _chunkKSU6CCW6js.PermissionMappingModule; exports.Push = _chunkKSU6CCW6js.Push; exports.PushModule = _chunkKSU6CCW6js.PushModule; exports.PushService = _chunkKSU6CCW6js.PushService; exports.RbacMatrixModule = _chunkKSU6CCW6js.RbacMatrixModule; exports.ReferralModule = _chunkKSU6CCW6js.ReferralModule; exports.ReferralService = _chunkKSU6CCW6js.ReferralService; exports.ReferralStats = _chunkKSU6CCW6js.ReferralStats; exports.ReferralStatsModule = _chunkKSU6CCW6js.ReferralStatsModule; exports.RehydrationFactory = _chunkKSU6CCW6js.RehydrationFactory; exports.Role = _chunkKSU6CCW6js.Role; exports.RoleFields = _chunkKSU6CCW6js.RoleFields; exports.RoleModule = _chunkKSU6CCW6js.RoleModule; exports.RoleService = _chunkKSU6CCW6js.RoleService; exports.S3 = _chunkKSU6CCW6js.S3; exports.S3Module = _chunkKSU6CCW6js.S3Module; exports.S3Service = _chunkKSU6CCW6js.S3Service; exports.StripeCustomer = _chunkKSU6CCW6js.StripeCustomer; exports.StripeCustomerModule = _chunkKSU6CCW6js.StripeCustomerModule; exports.StripeCustomerService = _chunkKSU6CCW6js.StripeCustomerService; exports.StripeInvoice = _chunkKSU6CCW6js.StripeInvoice; exports.StripeInvoiceModule = _chunkKSU6CCW6js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkKSU6CCW6js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkKSU6CCW6js.StripePaymentMethodModule; exports.StripePrice = _chunkKSU6CCW6js.StripePrice; exports.StripePriceModule = _chunkKSU6CCW6js.StripePriceModule; exports.StripePriceService = _chunkKSU6CCW6js.StripePriceService; exports.StripeProduct = _chunkKSU6CCW6js.StripeProduct; exports.StripeProductModule = _chunkKSU6CCW6js.StripeProductModule; exports.StripeProductService = _chunkKSU6CCW6js.StripeProductService; exports.StripePromotionCode = _chunkKSU6CCW6js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkKSU6CCW6js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkKSU6CCW6js.StripePromotionCodeService; exports.StripeSubscription = _chunkKSU6CCW6js.StripeSubscription; exports.StripeSubscriptionModule = _chunkKSU6CCW6js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkKSU6CCW6js.StripeSubscriptionService; exports.StripeUsage = _chunkKSU6CCW6js.StripeUsage; exports.StripeUsageModule = _chunkKSU6CCW6js.StripeUsageModule; exports.StripeUsageService = _chunkKSU6CCW6js.StripeUsageService; exports.SubscriptionStatus = _chunkKSU6CCW6js.SubscriptionStatus; exports.TableOptions = _chunkKSU6CCW6js.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkKSU6CCW6js.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkKSU6CCW6js.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkKSU6CCW6js.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkKSU6CCW6js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkKSU6CCW6js.TotpAuthenticatorModule; exports.TotpSetup = _chunkKSU6CCW6js.TotpSetup; exports.TotpSetupModule = _chunkKSU6CCW6js.TotpSetupModule; exports.TotpVerify = _chunkKSU6CCW6js.TotpVerify; exports.TotpVerifyLogin = _chunkKSU6CCW6js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkKSU6CCW6js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkKSU6CCW6js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkKSU6CCW6js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkKSU6CCW6js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkKSU6CCW6js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkKSU6CCW6js.TwoFactorEnableModule; exports.TwoFactorService = _chunkKSU6CCW6js.TwoFactorService; exports.TwoFactorStatus = _chunkKSU6CCW6js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkKSU6CCW6js.TwoFactorStatusModule; exports.User = _chunkKSU6CCW6js.User; exports.UserFields = _chunkKSU6CCW6js.UserFields; exports.UserModule = _chunkKSU6CCW6js.UserModule; exports.UserService = _chunkKSU6CCW6js.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkKSU6CCW6js.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkKSU6CCW6js.Waitlist; exports.WaitlistModule = _chunkKSU6CCW6js.WaitlistModule; exports.WaitlistService = _chunkKSU6CCW6js.WaitlistService; exports.WaitlistStats = _chunkKSU6CCW6js.WaitlistStats; exports.WaitlistStatsModule = _chunkKSU6CCW6js.WaitlistStatsModule; exports.checkPermissions = _chunkKSU6CCW6js.checkPermissions; exports.checkPermissionsFromServer = _chunkKSU6CCW6js.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkKSU6CCW6js.clearLastApiMeta; exports.clearLastApiTotal = _chunkKSU6CCW6js.clearLastApiTotal; exports.cn = _chunkKSU6CCW6js.cn; exports.composeRefs = _chunkKSU6CCW6js.composeRefs; exports.createJsonApiInclusion = _chunkKSU6CCW6js.createJsonApiInclusion; exports.dismissToast = _chunkKSU6CCW6js.dismissToast; exports.entityObjectSchema = _chunkKSU6CCW6js.entityObjectSchema; exports.exists = _chunkKSU6CCW6js.exists; exports.formatCodiceFiscale = _chunkKSU6CCW6js.formatCodiceFiscale; exports.formatDate = _chunkKSU6CCW6js.formatDate; exports.formatLocalDate = _chunkKSU6CCW6js.formatLocalDate; exports.formatPartitaIva = _chunkKSU6CCW6js.formatPartitaIva; exports.getBootstrapper = _chunkFPO4DLZNjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkKSU6CCW6js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkKSU6CCW6js.getGlobalErrorHandler; exports.getIcon = _chunkKSU6CCW6js.getIcon; exports.getIconByModule = _chunkKSU6CCW6js.getIconByModule; exports.getIconByModuleName = _chunkKSU6CCW6js.getIconByModuleName; exports.getInitials = _chunkKSU6CCW6js.getInitials; exports.getLastApiMeta = _chunkKSU6CCW6js.getLastApiMeta; exports.getLastApiTotal = _chunkKSU6CCW6js.getLastApiTotal; exports.getLucideIcon = _chunkKSU6CCW6js.getLucideIcon; exports.getLucideIconByModule = _chunkKSU6CCW6js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkKSU6CCW6js.getLucideIconByModuleName; exports.getTableComponents = _chunkKSU6CCW6js.getTableComponents; exports.getTableOptions = _chunkKSU6CCW6js.getTableOptions; exports.getValueFromPath = _chunkKSU6CCW6js.getValueFromPath; exports.hasBootstrapper = _chunkFPO4DLZNjs.hasBootstrapper; exports.isRemoteImageSrc = _chunkKSU6CCW6js.isRemoteImageSrc; exports.rehydrate = _chunkKSU6CCW6js.rehydrate; exports.rehydrateList = _chunkKSU6CCW6js.rehydrateList; exports.resetBootstrapStore = _chunkFPO4DLZNjs.resetBootstrapStore; exports.setBootstrapper = _chunkFPO4DLZNjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkKSU6CCW6js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkKSU6CCW6js.setGlobalErrorHandler; exports.showCustomToast = _chunkKSU6CCW6js.showCustomToast; exports.showError = _chunkKSU6CCW6js.showError; exports.showToast = _chunkKSU6CCW6js.showToast; exports.translateData = _chunkFPO4DLZNjs.translateData; exports.translateResponse = _chunkFPO4DLZNjs.translateResponse; exports.tryBootstrap = _chunkFPO4DLZNjs.tryBootstrap; exports.useComposedRefs = _chunkKSU6CCW6js.useComposedRefs; exports.useIsMobile = _chunkKSU6CCW6js.useIsMobile; exports.userObjectSchema = _chunkKSU6CCW6js.userObjectSchema; exports.validateCodiceFiscale = _chunkKSU6CCW6js.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkKSU6CCW6js.validateItalianTaxCode; exports.validatePartitaIva = _chunkKSU6CCW6js.validatePartitaIva;
|
|
409
409
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.mjs
CHANGED
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
validateCodiceFiscale,
|
|
190
190
|
validateItalianTaxCode,
|
|
191
191
|
validatePartitaIva
|
|
192
|
-
} from "../chunk-
|
|
192
|
+
} from "../chunk-DLTMYGLR.mjs";
|
|
193
193
|
import "../chunk-AUXK7QSA.mjs";
|
|
194
194
|
import "../chunk-C7C7VY4F.mjs";
|
|
195
195
|
import {
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
translateData,
|
|
203
203
|
translateResponse,
|
|
204
204
|
tryBootstrap
|
|
205
|
-
} from "../chunk-
|
|
205
|
+
} from "../chunk-E5YA5Z5X.mjs";
|
|
206
206
|
import "../chunk-PAWJFY3S.mjs";
|
|
207
207
|
export {
|
|
208
208
|
AVAILABLE_OAUTH_SCOPES,
|
|
@@ -23,16 +23,16 @@ var _chunkYBZVWLPHjs = require('../../chunk-YBZVWLPH.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkF3BPNQDBjs = require('../../chunk-F3BPNQDB.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkLANOKEFZjs = require('../../chunk-LANOKEFZ.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkKSU6CCW6js = require('../../chunk-KSU6CCW6.js');
|
|
33
33
|
require('../../chunk-LXKSUWAV.js');
|
|
34
34
|
require('../../chunk-IBS6NI7D.js');
|
|
35
|
-
require('../../chunk-
|
|
35
|
+
require('../../chunk-FPO4DLZN.js');
|
|
36
36
|
require('../../chunk-3EPNHTMH.js');
|
|
37
37
|
|
|
38
38
|
|
|
@@ -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 = _chunkLANOKEFZjs._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, _chunkF3BPNQDBjs.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
+
_chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.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 = _chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.SheetHeader, { children: [
|
|
95
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF3BPNQDBjs.SheetTitle, { children: t("help.askAi.sheet.title") }),
|
|
96
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
99
99
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
100
|
-
|
|
100
|
+
_chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.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 } = _chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.Tooltip, { children: [
|
|
125
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkF3BPNQDBjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.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 } = _chunkF3BPNQDBjs.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: _chunkF3BPNQDBjs.buttonVariants.call(void 0, { variant: "outline", size: "sm" }), children: t("help.header.openApp") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/login", className: _chunkF3BPNQDBjs.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 = _chunkF3BPNQDBjs.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
|
+
_chunkKSU6CCW6js.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 = _chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.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 = _chunkF3BPNQDBjs.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
|
+
_chunkKSU6CCW6js.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
|
+
_chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
|
|
391
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkF3BPNQDBjs.SheetHeader, { children: [
|
|
392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF3BPNQDBjs.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
|
|
393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF3BPNQDBjs.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 = _chunkF3BPNQDBjs.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
|
+
_chunkKSU6CCW6js.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
|
+
_chunkF3BPNQDBjs.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, _chunkF3BPNQDBjs.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,16 +23,16 @@ import {
|
|
|
23
23
|
useAssistantContext,
|
|
24
24
|
useCurrentUserContext,
|
|
25
25
|
usePageUrlGenerator
|
|
26
|
-
} from "../../chunk-
|
|
26
|
+
} from "../../chunk-YEPE2HT6.mjs";
|
|
27
27
|
import {
|
|
28
28
|
_getStaticHelpContent
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-7DJOQTNN.mjs";
|
|
30
30
|
import {
|
|
31
31
|
HowToService
|
|
32
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-DLTMYGLR.mjs";
|
|
33
33
|
import "../../chunk-AUXK7QSA.mjs";
|
|
34
34
|
import "../../chunk-C7C7VY4F.mjs";
|
|
35
|
-
import "../../chunk-
|
|
35
|
+
import "../../chunk-E5YA5Z5X.mjs";
|
|
36
36
|
import "../../chunk-VOXD3ZLY.mjs";
|
|
37
37
|
import {
|
|
38
38
|
__name
|