@carlonicora/nextjs-jsonapi 3.23.0 → 3.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AssistantMessageInterface-CuaMDs2i.d.ts → AssistantMessageInterface-1Kbz8RVs.d.ts} +34 -1
- package/dist/{AssistantMessageInterface-Du3ShThp.d.mts → AssistantMessageInterface-CoxJyuFM.d.mts} +34 -1
- package/dist/{BlockNoteEditor-BUSOUPQ7.js → BlockNoteEditor-7I7PL3KS.js} +19 -19
- package/dist/{BlockNoteEditor-BUSOUPQ7.js.map → BlockNoteEditor-7I7PL3KS.js.map} +1 -1
- package/dist/{BlockNoteEditor-W42IQTGL.mjs → BlockNoteEditor-BNS3U3CP.mjs} +4 -4
- package/dist/{BlockNoteViewer-FQ23TZ3J.mjs → BlockNoteViewer-THOJS3OG.mjs} +2 -2
- package/dist/{BlockNoteViewer-MCX53AR4.js → BlockNoteViewer-UCWWHBTZ.js} +3 -3
- package/dist/{BlockNoteViewer-MCX53AR4.js.map → BlockNoteViewer-UCWWHBTZ.js.map} +1 -1
- package/dist/billing/index.d.mts +57 -2
- package/dist/billing/index.d.ts +57 -2
- package/dist/billing/index.js +406 -401
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +8 -3
- package/dist/{chunk-GFLEFIAW.mjs → chunk-6R45U3GH.mjs} +1401 -1178
- package/dist/chunk-6R45U3GH.mjs.map +1 -0
- package/dist/{chunk-FXWO5J2R.js → chunk-7EFTSFZO.js} +7 -7
- package/dist/{chunk-FXWO5J2R.js.map → chunk-7EFTSFZO.js.map} +1 -1
- package/dist/{chunk-VR65NRE4.js → chunk-7XD2BJN6.js} +1338 -1115
- package/dist/chunk-7XD2BJN6.js.map +1 -0
- package/dist/{chunk-YCHPWXHD.js → chunk-WRMTBKSN.js} +44 -40
- package/dist/chunk-WRMTBKSN.js.map +1 -0
- package/dist/{chunk-JZUBFAAY.mjs → chunk-Z7KPVKWV.mjs} +2 -2
- package/dist/{chunk-O5MKEU7G.mjs → chunk-ZE5ZUY6Y.mjs} +44 -40
- package/dist/chunk-ZE5ZUY6Y.mjs.map +1 -0
- package/dist/client/index.d.mts +13 -2
- package/dist/client/index.d.ts +13 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +87 -28
- package/dist/components/index.d.ts +87 -28
- package/dist/components/index.js +8 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +7 -3
- package/dist/contexts/index.d.mts +11 -2
- package/dist/contexts/index.d.ts +11 -2
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +29 -7
- package/dist/core/index.d.ts +29 -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 +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{oauth.interface-CD90ycYz.d.ts → oauth.interface-BZKZAPRw.d.ts} +8 -1
- package/dist/{oauth.interface-DRE3NAKc.d.mts → oauth.interface-nVwnzxJw.d.mts} +8 -1
- package/dist/{s3.service-DJHqEZAp.d.ts → s3.service-Bqr-fQmi.d.ts} +1 -0
- package/dist/{s3.service-DaRFLnrX.d.mts → s3.service-Buiy1ncj.d.mts} +1 -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/forms/__tests__/EditorSheet.test.tsx +5 -3
- package/src/core/utils/__tests__/translateResponse.test.ts +3 -1
- package/src/features/assistant/components/containers/AssistantContainer.tsx +105 -36
- package/src/features/assistant/components/containers/__tests__/AssistantContainer.spec.tsx +163 -1
- package/src/features/assistant/components/parts/AssistantComposer.tsx +38 -15
- package/src/features/assistant/components/parts/AssistantEmptyState.tsx +5 -3
- package/src/features/assistant/components/parts/AssistantSidebar.tsx +26 -7
- package/src/features/assistant/components/parts/__tests__/AssistantComposer.spec.tsx +8 -0
- package/src/features/assistant/components/parts/__tests__/AssistantSidebar.spec.tsx +7 -0
- package/src/features/assistant/contexts/AssistantContext.tsx +91 -7
- package/src/features/assistant/contexts/__tests__/AssistantContext.spec.tsx +196 -0
- package/src/features/assistant-action/components/AssistantContainerWithApprovals.tsx +23 -1
- package/src/features/assistant-message/components/EntityMentionLink.tsx +28 -0
- package/src/features/assistant-message/components/__tests__/EntityMentionLink.spec.tsx +58 -0
- package/src/features/assistant-message/components/index.ts +1 -0
- package/src/features/assistant-message/components/parts/tabs/ContentsTab.tsx +1 -1
- package/src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx +2 -2
- package/src/features/auth/components/forms/__tests__/Logout.spec.tsx +3 -2
- package/src/features/billing/stripe-customer/data/stripe-customer.service.ts +5 -0
- package/src/features/billing/stripe-subscription/components/index.ts +1 -0
- package/src/features/notification/contexts/NotificationContext.tsx +5 -2
- package/src/features/notification/contexts/__tests__/NotificationContext.spec.tsx +32 -0
- package/src/features/notification/data/notification.service.ts +6 -1
- package/src/features/oauth/components/OAuthClientForm.tsx +21 -4
- package/src/features/oauth/components/__tests__/OAuthClientForm.spec.tsx +63 -0
- package/src/features/oauth/components/consent/OAuthCompanySelector.tsx +54 -0
- package/src/features/oauth/components/consent/OAuthConsentActions.tsx +5 -2
- package/src/features/oauth/components/consent/OAuthConsentHeader.tsx +10 -6
- package/src/features/oauth/components/consent/OAuthConsentScreen.tsx +33 -13
- package/src/features/oauth/components/consent/OAuthScopeList.tsx +4 -1
- package/src/features/oauth/components/consent/__tests__/OAuthConsentHeader.spec.tsx +25 -0
- package/src/features/oauth/components/consent/__tests__/OAuthConsentScreen.spec.tsx +126 -0
- package/src/features/oauth/components/consent/index.ts +1 -0
- package/src/features/oauth/data/__tests__/oauth.service.spec.ts +103 -0
- package/src/features/oauth/data/oauth.service.ts +3 -13
- package/src/features/oauth/data/oauth.ts +30 -1
- package/src/features/oauth/hooks/useOAuthConsent.ts +34 -3
- package/src/features/oauth/interfaces/oauth.interface.ts +11 -25
- package/src/hooks/__tests__/useDataListRetriever.test.ts +1 -1
- package/dist/AssistantInterface-RvZzlcA_.d.ts +0 -36
- package/dist/AssistantInterface-jL56dyNc.d.mts +0 -36
- package/dist/chunk-GFLEFIAW.mjs.map +0 -1
- package/dist/chunk-O5MKEU7G.mjs.map +0 -1
- package/dist/chunk-VR65NRE4.js.map +0 -1
- package/dist/chunk-YCHPWXHD.js.map +0 -1
- /package/dist/{BlockNoteEditor-W42IQTGL.mjs.map → BlockNoteEditor-BNS3U3CP.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-FQ23TZ3J.mjs.map → BlockNoteViewer-THOJS3OG.mjs.map} +0 -0
- /package/dist/{chunk-JZUBFAAY.mjs.map → chunk-Z7KPVKWV.mjs.map} +0 -0
package/dist/contexts/index.js
CHANGED
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
52
|
-
require('../chunk-
|
|
53
|
-
require('../chunk-
|
|
51
|
+
var _chunk7XD2BJN6js = require('../chunk-7XD2BJN6.js');
|
|
52
|
+
require('../chunk-7EFTSFZO.js');
|
|
53
|
+
require('../chunk-WRMTBKSN.js');
|
|
54
54
|
require('../chunk-LXKSUWAV.js');
|
|
55
55
|
require('../chunk-IBS6NI7D.js');
|
|
56
56
|
require('../chunk-LU7DJ4QF.js');
|
|
@@ -105,5 +105,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
exports.ActionBarProvider =
|
|
108
|
+
exports.ActionBarProvider = _chunk7XD2BJN6js.ActionBarProvider; exports.AdministrationProvider = _chunk7XD2BJN6js.AdministrationProvider; exports.AssistantProvider = _chunk7XD2BJN6js.AssistantProvider; exports.BreadcrumbRootProvider = _chunk7XD2BJN6js.BreadcrumbRootProvider; exports.CommonProvider = _chunk7XD2BJN6js.CommonProvider; exports.CompanyProvider = _chunk7XD2BJN6js.CompanyProvider; exports.CurrentUserProvider = _chunk7XD2BJN6js.CurrentUserProvider; exports.DEFAULT_ONBOARDING_LABELS = _chunk7XD2BJN6js.DEFAULT_ONBOARDING_LABELS; exports.DirectionProvider = _chunk7XD2BJN6js.DirectionProvider; exports.HeaderChildrenProvider = _chunk7XD2BJN6js.HeaderChildrenProvider; exports.HeaderLeftContentProvider = _chunk7XD2BJN6js.HeaderLeftContentProvider; exports.HeaderLogoProvider = _chunk7XD2BJN6js.HeaderLogoProvider; exports.HowToProvider = _chunk7XD2BJN6js.HowToProvider; exports.MobileNavigationProvider = _chunk7XD2BJN6js.MobileNavigationProvider; exports.NotificationContextProvider = _chunk7XD2BJN6js.NotificationContextProvider; exports.OnboardingProvider = _chunk7XD2BJN6js.OnboardingProvider; exports.RbacProvider = _chunk7XD2BJN6js.RbacProvider; exports.RoleProvider = _chunk7XD2BJN6js.RoleProvider; exports.SharedProvider = _chunk7XD2BJN6js.SharedProvider; exports.SocketContext = _chunk7XD2BJN6js.SocketContext; exports.SocketProvider = _chunk7XD2BJN6js.SocketProvider; exports.UserProvider = _chunk7XD2BJN6js.UserProvider; exports.ViewportProvider = _chunk7XD2BJN6js.ViewportProvider; exports.mapOnboardingSide = _chunk7XD2BJN6js.mapOnboardingSide; exports.recentPagesAtom = _chunk7XD2BJN6js.recentPagesAtom; exports.useAdministrationContext = _chunk7XD2BJN6js.useAdministrationContext; exports.useAssistantContext = _chunk7XD2BJN6js.useAssistantContext; exports.useCommonContext = _chunk7XD2BJN6js.useCommonContext; exports.useCompanyContext = _chunk7XD2BJN6js.useCompanyContext; exports.useCurrentUserContext = _chunk7XD2BJN6js.useCurrentUserContext; exports.useCurrentUserContextOptional = _chunk7XD2BJN6js.useCurrentUserContextOptional; exports.useDir = _chunk7XD2BJN6js.useDir; exports.useHeaderChildren = _chunk7XD2BJN6js.useHeaderChildren; exports.useHeaderLeftContent = _chunk7XD2BJN6js.useHeaderLeftContent; exports.useHeaderLogo = _chunk7XD2BJN6js.useHeaderLogo; exports.useHeaderMobileChildren = _chunk7XD2BJN6js.useHeaderMobileChildren; exports.useHeaderRootLabel = _chunk7XD2BJN6js.useHeaderRootLabel; exports.useHowToContext = _chunk7XD2BJN6js.useHowToContext; exports.useIsBreadcrumbRootHidden = _chunk7XD2BJN6js.useIsBreadcrumbRootHidden; exports.useIsInActionBar = _chunk7XD2BJN6js.useIsInActionBar; exports.useMobileNavigationItems = _chunk7XD2BJN6js.useMobileNavigationItems; exports.useNotificationContext = _chunk7XD2BJN6js.useNotificationContext; exports.useOnboarding = _chunk7XD2BJN6js.useOnboarding; exports.useRbacContext = _chunk7XD2BJN6js.useRbacContext; exports.useRoleContext = _chunk7XD2BJN6js.useRoleContext; exports.useSharedContext = _chunk7XD2BJN6js.useSharedContext; exports.useSocketContext = _chunk7XD2BJN6js.useSocketContext; exports.useUserContext = _chunk7XD2BJN6js.useUserContext;
|
|
109
109
|
//# sourceMappingURL=index.js.map
|
package/dist/contexts/index.mjs
CHANGED
|
@@ -48,9 +48,9 @@ import {
|
|
|
48
48
|
useSharedContext,
|
|
49
49
|
useSocketContext,
|
|
50
50
|
useUserContext
|
|
51
|
-
} from "../chunk-
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-
|
|
51
|
+
} from "../chunk-6R45U3GH.mjs";
|
|
52
|
+
import "../chunk-Z7KPVKWV.mjs";
|
|
53
|
+
import "../chunk-ZE5ZUY6Y.mjs";
|
|
54
54
|
import "../chunk-AUXK7QSA.mjs";
|
|
55
55
|
import "../chunk-C7C7VY4F.mjs";
|
|
56
56
|
import "../chunk-BMVA2IM5.mjs";
|
package/dist/core/index.d.mts
CHANGED
|
@@ -8,8 +8,8 @@ import { A as AbstractService, N as NextRef, P as PreviousRef } from '../Abstrac
|
|
|
8
8
|
export { H as HttpMethod, S as SelfRef, T as TotalRef, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from '../AbstractService-Ckm2X5fW.mjs';
|
|
9
9
|
import { M as ModuleWithPermissions, g as PermissionUser, A as Action, f as PermissionModule, a as ModuleFactory } from '../types-Bq_UA8Lg.mjs';
|
|
10
10
|
export { d as ModuleDefinition, c as ModulePermissionDefinition, P as PageUrl, b as PermissionCheck, e as PermissionConfig } from '../types-Bq_UA8Lg.mjs';
|
|
11
|
-
import { a as HowToInterface, H as HowToInput,
|
|
12
|
-
export { B as BreadcrumbItemData } from '../AssistantMessageInterface-
|
|
11
|
+
import { a as HowToInterface, H as HowToInput, f as AssistantMessageInterface, b as AssistantInterface, c as AssistantMessageRole, g as ChunkInterface, C as ChunkRelationshipMeta, d as AssistantMessageType, A as AssistantInput, e as AssistantMessageInput } from '../AssistantMessageInterface-CoxJyuFM.mjs';
|
|
12
|
+
export { B as BreadcrumbItemData } from '../AssistantMessageInterface-CoxJyuFM.mjs';
|
|
13
13
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from '../content.fields-1AlHDtDb.mjs';
|
|
14
14
|
import { ClassValue } from 'clsx';
|
|
15
15
|
export { ClassValue } from 'clsx';
|
|
@@ -23,15 +23,14 @@ import { ExternalToast } from 'sonner';
|
|
|
23
23
|
import { e as RoleInterface, R as RoleInput, U as UserInterface, c as CompanyInterface, f as UserInput, b as CompanyInput, C as ContentInterface, a as ContentInput, N as NotificationInterface, d as NotificationInput } from '../notification.interface-MnRt1Tjm.mjs';
|
|
24
24
|
import { b as AuthInterface, A as AuthInput } from '../auth.interface-dR2-6gPM.mjs';
|
|
25
25
|
export { a as AuthQuery } from '../auth.interface-dR2-6gPM.mjs';
|
|
26
|
-
import { T as TwoFactorChallengeInterface, c as S3Interface, b as S3Input } from '../s3.service-
|
|
27
|
-
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, N as NotificationService, P as PushService, R as RoleService, S as S3Service, U as UserService } from '../s3.service-
|
|
26
|
+
import { T as TwoFactorChallengeInterface, c as S3Interface, b as S3Input } from '../s3.service-Buiy1ncj.mjs';
|
|
27
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, N as NotificationService, P as PushService, R as RoleService, S as S3Service, U as UserService } from '../s3.service-Buiy1ncj.mjs';
|
|
28
28
|
import { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/browser';
|
|
29
29
|
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-ClZ7DxS9.mjs';
|
|
30
30
|
export { c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-promotion-code.interface-ClZ7DxS9.mjs';
|
|
31
31
|
import { M as ModuleInterface, F as FeatureInterface } from '../feature.interface-CXb1-vNq.mjs';
|
|
32
|
-
import { a as
|
|
33
|
-
|
|
34
|
-
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, e as OAuthScopeInfo } from '../oauth.interface-DRE3NAKc.mjs';
|
|
32
|
+
import { O as OAuthClientInterface, a as OAuthClientInput, d as OAuthConsentRequest, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, f as OAuthConsentInfo } from '../oauth.interface-nVwnzxJw.mjs';
|
|
33
|
+
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, e as OAuthScopeInfo } from '../oauth.interface-nVwnzxJw.mjs';
|
|
35
34
|
export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule, c as configureTokenUsage, g as getTokenUsageCurrency, t as tokenUsageModules } from '../config-n-ZpPmOL.mjs';
|
|
36
35
|
import 'lucide-react';
|
|
37
36
|
import 'd3';
|
|
@@ -2799,6 +2798,29 @@ declare class OAuthClient extends AbstractApiData implements OAuthClientInterfac
|
|
|
2799
2798
|
get isActive(): boolean;
|
|
2800
2799
|
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
2801
2800
|
createJsonApi(data: OAuthClientInput): any;
|
|
2801
|
+
/**
|
|
2802
|
+
* Body for POST /oauth/authorize/approve.
|
|
2803
|
+
* The authorize endpoints speak the RFC 6749 wire format (snake_case keys,
|
|
2804
|
+
* no JSON:API envelope), so this dedicated method owns that shape and the
|
|
2805
|
+
* service sends it with `overridesJsonApiCreation`.
|
|
2806
|
+
*/
|
|
2807
|
+
createApproveAuthorizationJsonApi(params: OAuthConsentRequest): {
|
|
2808
|
+
client_id: string;
|
|
2809
|
+
redirect_uri: string;
|
|
2810
|
+
scope: string | undefined;
|
|
2811
|
+
state: string | undefined;
|
|
2812
|
+
code_challenge: string | undefined;
|
|
2813
|
+
code_challenge_method: string | undefined;
|
|
2814
|
+
company_id: string | undefined;
|
|
2815
|
+
};
|
|
2816
|
+
/**
|
|
2817
|
+
* Body for POST /oauth/authorize/deny (RFC 6749 wire format, see above).
|
|
2818
|
+
*/
|
|
2819
|
+
createDenyAuthorizationJsonApi(params: OAuthConsentRequest): {
|
|
2820
|
+
client_id: string;
|
|
2821
|
+
redirect_uri: string;
|
|
2822
|
+
state: string | undefined;
|
|
2823
|
+
};
|
|
2802
2824
|
}
|
|
2803
2825
|
|
|
2804
2826
|
/**
|
package/dist/core/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { A as AbstractService, N as NextRef, P as PreviousRef } from '../Abstrac
|
|
|
8
8
|
export { H as HttpMethod, S as SelfRef, T as TotalRef, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from '../AbstractService-V3VGQMhL.js';
|
|
9
9
|
import { M as ModuleWithPermissions, g as PermissionUser, A as Action, f as PermissionModule, a as ModuleFactory } from '../types-bsm8Fp55.js';
|
|
10
10
|
export { d as ModuleDefinition, c as ModulePermissionDefinition, P as PageUrl, b as PermissionCheck, e as PermissionConfig } from '../types-bsm8Fp55.js';
|
|
11
|
-
import { a as HowToInterface, H as HowToInput,
|
|
12
|
-
export { B as BreadcrumbItemData } from '../AssistantMessageInterface-
|
|
11
|
+
import { a as HowToInterface, H as HowToInput, f as AssistantMessageInterface, b as AssistantInterface, c as AssistantMessageRole, g as ChunkInterface, C as ChunkRelationshipMeta, d as AssistantMessageType, A as AssistantInput, e as AssistantMessageInput } from '../AssistantMessageInterface-1Kbz8RVs.js';
|
|
12
|
+
export { B as BreadcrumbItemData } from '../AssistantMessageInterface-1Kbz8RVs.js';
|
|
13
13
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from '../content.fields-1AlHDtDb.js';
|
|
14
14
|
import { ClassValue } from 'clsx';
|
|
15
15
|
export { ClassValue } from 'clsx';
|
|
@@ -23,15 +23,14 @@ import { ExternalToast } from 'sonner';
|
|
|
23
23
|
import { e as RoleInterface, R as RoleInput, U as UserInterface, c as CompanyInterface, f as UserInput, b as CompanyInput, C as ContentInterface, a as ContentInput, N as NotificationInterface, d as NotificationInput } from '../notification.interface-CjzV_KII.js';
|
|
24
24
|
import { b as AuthInterface, A as AuthInput } from '../auth.interface-BC1jp_ni.js';
|
|
25
25
|
export { a as AuthQuery } from '../auth.interface-BC1jp_ni.js';
|
|
26
|
-
import { T as TwoFactorChallengeInterface, c as S3Interface, b as S3Input } from '../s3.service-
|
|
27
|
-
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, N as NotificationService, P as PushService, R as RoleService, S as S3Service, U as UserService } from '../s3.service-
|
|
26
|
+
import { T as TwoFactorChallengeInterface, c as S3Interface, b as S3Input } from '../s3.service-Bqr-fQmi.js';
|
|
27
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, N as NotificationService, P as PushService, R as RoleService, S as S3Service, U as UserService } from '../s3.service-Bqr-fQmi.js';
|
|
28
28
|
import { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/browser';
|
|
29
29
|
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-C3qqh3mi.js';
|
|
30
30
|
export { c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-promotion-code.interface-C3qqh3mi.js';
|
|
31
31
|
import { M as ModuleInterface, F as FeatureInterface } from '../feature.interface-BO25VLlx.js';
|
|
32
|
-
import { a as
|
|
33
|
-
|
|
34
|
-
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, e as OAuthScopeInfo } from '../oauth.interface-CD90ycYz.js';
|
|
32
|
+
import { O as OAuthClientInterface, a as OAuthClientInput, d as OAuthConsentRequest, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, f as OAuthConsentInfo } from '../oauth.interface-BZKZAPRw.js';
|
|
33
|
+
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, e as OAuthScopeInfo } from '../oauth.interface-BZKZAPRw.js';
|
|
35
34
|
export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule, c as configureTokenUsage, g as getTokenUsageCurrency, t as tokenUsageModules } from '../config-B6UB7j69.js';
|
|
36
35
|
import 'lucide-react';
|
|
37
36
|
import 'd3';
|
|
@@ -2799,6 +2798,29 @@ declare class OAuthClient extends AbstractApiData implements OAuthClientInterfac
|
|
|
2799
2798
|
get isActive(): boolean;
|
|
2800
2799
|
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
2801
2800
|
createJsonApi(data: OAuthClientInput): any;
|
|
2801
|
+
/**
|
|
2802
|
+
* Body for POST /oauth/authorize/approve.
|
|
2803
|
+
* The authorize endpoints speak the RFC 6749 wire format (snake_case keys,
|
|
2804
|
+
* no JSON:API envelope), so this dedicated method owns that shape and the
|
|
2805
|
+
* service sends it with `overridesJsonApiCreation`.
|
|
2806
|
+
*/
|
|
2807
|
+
createApproveAuthorizationJsonApi(params: OAuthConsentRequest): {
|
|
2808
|
+
client_id: string;
|
|
2809
|
+
redirect_uri: string;
|
|
2810
|
+
scope: string | undefined;
|
|
2811
|
+
state: string | undefined;
|
|
2812
|
+
code_challenge: string | undefined;
|
|
2813
|
+
code_challenge_method: string | undefined;
|
|
2814
|
+
company_id: string | undefined;
|
|
2815
|
+
};
|
|
2816
|
+
/**
|
|
2817
|
+
* Body for POST /oauth/authorize/deny (RFC 6749 wire format, see above).
|
|
2818
|
+
*/
|
|
2819
|
+
createDenyAuthorizationJsonApi(params: OAuthConsentRequest): {
|
|
2820
|
+
client_id: string;
|
|
2821
|
+
redirect_uri: string;
|
|
2822
|
+
state: string | undefined;
|
|
2823
|
+
};
|
|
2802
2824
|
}
|
|
2803
2825
|
|
|
2804
2826
|
/**
|
package/dist/core/index.js
CHANGED
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
|
|
221
|
-
var
|
|
221
|
+
var _chunkWRMTBKSNjs = require('../chunk-WRMTBKSN.js');
|
|
222
222
|
require('../chunk-LXKSUWAV.js');
|
|
223
223
|
require('../chunk-IBS6NI7D.js');
|
|
224
224
|
|
|
@@ -465,5 +465,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
465
465
|
|
|
466
466
|
|
|
467
467
|
|
|
468
|
-
exports.AVAILABLE_OAUTH_SCOPES = _chunkYCHPWXHDjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkYCHPWXHDjs.AbstractApiData; exports.AbstractService = _chunkYCHPWXHDjs.AbstractService; exports.Action = _chunkYCHPWXHDjs.Action; exports.AiConnection = _chunkYCHPWXHDjs.AiConnection; exports.AiConnectionFields = _chunkYCHPWXHDjs.AiConnectionFields; exports.AiConnectionModule = _chunkYCHPWXHDjs.AiConnectionModule; exports.AiConnectionService = _chunkYCHPWXHDjs.AiConnectionService; exports.Assistant = _chunkYCHPWXHDjs.Assistant; exports.AssistantAction = _chunkYCHPWXHDjs.AssistantAction; exports.AssistantActionModule = _chunkYCHPWXHDjs.AssistantActionModule; exports.AssistantActionService = _chunkYCHPWXHDjs.AssistantActionService; exports.AssistantMessage = _chunkYCHPWXHDjs.AssistantMessage; exports.AssistantMessageModule = _chunkYCHPWXHDjs.AssistantMessageModule; exports.AssistantMessageService = _chunkYCHPWXHDjs.AssistantMessageService; exports.AssistantModule = _chunkYCHPWXHDjs.AssistantModule; exports.AssistantService = _chunkYCHPWXHDjs.AssistantService; exports.AuditLog = _chunkYCHPWXHDjs.AuditLog; exports.AuditLogModule = _chunkYCHPWXHDjs.AuditLogModule; exports.AuditLogService = _chunkYCHPWXHDjs.AuditLogService; exports.Auth = _chunkYCHPWXHDjs.Auth; exports.AuthComponent = _chunkYCHPWXHDjs.AuthComponent; exports.AuthModule = _chunkYCHPWXHDjs.AuthModule; exports.AuthService = _chunkYCHPWXHDjs.AuthService; exports.AuthorModule = _chunkYCHPWXHDjs.AuthorModule; exports.BackupCodeVerify = _chunkYCHPWXHDjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkYCHPWXHDjs.BackupCodeVerifyModule; exports.Billing = _chunkYCHPWXHDjs.Billing; exports.BillingModule = _chunkYCHPWXHDjs.BillingModule; exports.BillingService = _chunkYCHPWXHDjs.BillingService; exports.BlockNoteDiffUtil = _chunkYCHPWXHDjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkYCHPWXHDjs.BlockNoteWordDiffRendererUtil; exports.CURRENT_USER_STORAGE_KEY = _chunkYCHPWXHDjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkYCHPWXHDjs.Chunk; exports.ChunkModule = _chunkYCHPWXHDjs.ChunkModule; exports.ClientAbstractService = _chunkYCHPWXHDjs.ClientAbstractService; exports.ClientHttpMethod = _chunkYCHPWXHDjs.ClientHttpMethod; exports.Company = _chunkYCHPWXHDjs.Company; exports.CompanyFields = _chunkYCHPWXHDjs.CompanyFields; exports.CompanyModule = _chunkYCHPWXHDjs.CompanyModule; exports.CompanyService = _chunkYCHPWXHDjs.CompanyService; exports.Content = _chunkYCHPWXHDjs.Content; exports.ContentFields = _chunkYCHPWXHDjs.ContentFields; exports.ContentModule = _chunkYCHPWXHDjs.ContentModule; exports.ContentService = _chunkYCHPWXHDjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkYCHPWXHDjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLU7DJ4QFjs.DataClassRegistry; exports.DataClassRegistry = _chunkLU7DJ4QFjs.DataClassRegistry; exports.ENV = _chunkLU7DJ4QFjs.ENV; exports.EndpointCreator = _chunkYCHPWXHDjs.EndpointCreator; exports.EntityAiStatus = _chunkYCHPWXHDjs.EntityAiStatus; exports.Feature = _chunkYCHPWXHDjs.Feature; exports.FeatureModule = _chunkYCHPWXHDjs.FeatureModule; exports.FeatureService = _chunkYCHPWXHDjs.FeatureService; exports.HandbookPage = _chunkYCHPWXHDjs.HandbookPage; exports.HandbookPageFields = _chunkYCHPWXHDjs.HandbookPageFields; exports.HandbookPageModule = _chunkYCHPWXHDjs.HandbookPageModule; exports.HandbookPageService = _chunkYCHPWXHDjs.HandbookPageService; exports.HandbookSection = _chunkYCHPWXHDjs.HandbookSection; exports.HandbookSectionModule = _chunkYCHPWXHDjs.HandbookSectionModule; exports.HandbookSectionService = _chunkYCHPWXHDjs.HandbookSectionService; exports.HandbookThread = _chunkYCHPWXHDjs.HandbookThread; exports.HandbookThreadMessage = _chunkYCHPWXHDjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunkYCHPWXHDjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunkYCHPWXHDjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunkYCHPWXHDjs.HandbookThreadModule; exports.HandbookThreadService = _chunkYCHPWXHDjs.HandbookThreadService; exports.HowTo = _chunkYCHPWXHDjs.HowTo; exports.HowToFields = _chunkYCHPWXHDjs.HowToFields; exports.HowToModule = _chunkYCHPWXHDjs.HowToModule; exports.HowToService = _chunkYCHPWXHDjs.HowToService; exports.HttpMethod = _chunkYCHPWXHDjs.HttpMethod; exports.InvoiceStatus = _chunkYCHPWXHDjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLU7DJ4QFjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkYCHPWXHDjs.MOBILE_BREAKPOINT; exports.Module = _chunkYCHPWXHDjs.Module; exports.ModuleModule = _chunkYCHPWXHDjs.ModuleModule; exports.ModulePathsModule = _chunkYCHPWXHDjs.ModulePathsModule; exports.ModuleRegistrar = _chunkYCHPWXHDjs.ModuleRegistrar; exports.ModuleRegistry = _chunkYCHPWXHDjs.ModuleRegistry; exports.Modules = _chunkYCHPWXHDjs.Modules; exports.Notification = _chunkYCHPWXHDjs.Notification; exports.NotificationFields = _chunkYCHPWXHDjs.NotificationFields; exports.NotificationModule = _chunkYCHPWXHDjs.NotificationModule; exports.NotificationService = _chunkYCHPWXHDjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkYCHPWXHDjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkYCHPWXHDjs.OAuthClient; exports.OAuthModule = _chunkYCHPWXHDjs.OAuthModule; exports.OAuthService = _chunkYCHPWXHDjs.OAuthService; exports.Passkey = _chunkYCHPWXHDjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkYCHPWXHDjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkYCHPWXHDjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkYCHPWXHDjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkYCHPWXHDjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkYCHPWXHDjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkYCHPWXHDjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkYCHPWXHDjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkYCHPWXHDjs.PasskeyRename; exports.PasskeyRenameModule = _chunkYCHPWXHDjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkYCHPWXHDjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkYCHPWXHDjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkYCHPWXHDjs.PaymentMethod; exports.PermissionMappingModule = _chunkYCHPWXHDjs.PermissionMappingModule; exports.Push = _chunkYCHPWXHDjs.Push; exports.PushModule = _chunkYCHPWXHDjs.PushModule; exports.PushService = _chunkYCHPWXHDjs.PushService; exports.RbacMatrixModule = _chunkYCHPWXHDjs.RbacMatrixModule; exports.ReferralModule = _chunkYCHPWXHDjs.ReferralModule; exports.ReferralService = _chunkYCHPWXHDjs.ReferralService; exports.ReferralStats = _chunkYCHPWXHDjs.ReferralStats; exports.ReferralStatsModule = _chunkYCHPWXHDjs.ReferralStatsModule; exports.RehydrationFactory = _chunkYCHPWXHDjs.RehydrationFactory; exports.Role = _chunkYCHPWXHDjs.Role; exports.RoleFields = _chunkYCHPWXHDjs.RoleFields; exports.RoleModule = _chunkYCHPWXHDjs.RoleModule; exports.RoleService = _chunkYCHPWXHDjs.RoleService; exports.S3 = _chunkYCHPWXHDjs.S3; exports.S3Module = _chunkYCHPWXHDjs.S3Module; exports.S3Service = _chunkYCHPWXHDjs.S3Service; exports.StripeCustomer = _chunkYCHPWXHDjs.StripeCustomer; exports.StripeCustomerModule = _chunkYCHPWXHDjs.StripeCustomerModule; exports.StripeCustomerService = _chunkYCHPWXHDjs.StripeCustomerService; exports.StripeInvoice = _chunkYCHPWXHDjs.StripeInvoice; exports.StripeInvoiceModule = _chunkYCHPWXHDjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkYCHPWXHDjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkYCHPWXHDjs.StripePaymentMethodModule; exports.StripePrice = _chunkYCHPWXHDjs.StripePrice; exports.StripePriceFields = _chunkYCHPWXHDjs.StripePriceFields; exports.StripePriceModule = _chunkYCHPWXHDjs.StripePriceModule; exports.StripePriceService = _chunkYCHPWXHDjs.StripePriceService; exports.StripeProduct = _chunkYCHPWXHDjs.StripeProduct; exports.StripeProductFields = _chunkYCHPWXHDjs.StripeProductFields; exports.StripeProductModule = _chunkYCHPWXHDjs.StripeProductModule; exports.StripeProductService = _chunkYCHPWXHDjs.StripeProductService; exports.StripePromotionCode = _chunkYCHPWXHDjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkYCHPWXHDjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkYCHPWXHDjs.StripePromotionCodeService; exports.StripeSubscription = _chunkYCHPWXHDjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkYCHPWXHDjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkYCHPWXHDjs.StripeSubscriptionService; exports.StripeUsage = _chunkYCHPWXHDjs.StripeUsage; exports.StripeUsageModule = _chunkYCHPWXHDjs.StripeUsageModule; exports.StripeUsageService = _chunkYCHPWXHDjs.StripeUsageService; exports.SubscriptionStatus = _chunkYCHPWXHDjs.SubscriptionStatus; exports.TableOptions = _chunkYCHPWXHDjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkYCHPWXHDjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkYCHPWXHDjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkYCHPWXHDjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkYCHPWXHDjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkYCHPWXHDjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkYCHPWXHDjs.TotpSetup; exports.TotpSetupModule = _chunkYCHPWXHDjs.TotpSetupModule; exports.TotpVerify = _chunkYCHPWXHDjs.TotpVerify; exports.TotpVerifyLogin = _chunkYCHPWXHDjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkYCHPWXHDjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkYCHPWXHDjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkYCHPWXHDjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkYCHPWXHDjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkYCHPWXHDjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkYCHPWXHDjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkYCHPWXHDjs.TwoFactorService; exports.TwoFactorStatus = _chunkYCHPWXHDjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkYCHPWXHDjs.TwoFactorStatusModule; exports.User = _chunkYCHPWXHDjs.User; exports.UserFields = _chunkYCHPWXHDjs.UserFields; exports.UserModule = _chunkYCHPWXHDjs.UserModule; exports.UserService = _chunkYCHPWXHDjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkYCHPWXHDjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkYCHPWXHDjs.Waitlist; exports.WaitlistModule = _chunkYCHPWXHDjs.WaitlistModule; exports.WaitlistService = _chunkYCHPWXHDjs.WaitlistService; exports.WaitlistStats = _chunkYCHPWXHDjs.WaitlistStats; exports.WaitlistStatsModule = _chunkYCHPWXHDjs.WaitlistStatsModule; exports.checkPermissions = _chunkYCHPWXHDjs.checkPermissions; exports.checkPermissionsFromServer = _chunkYCHPWXHDjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkYCHPWXHDjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkYCHPWXHDjs.clearLastApiTotal; exports.cn = _chunkYCHPWXHDjs.cn; exports.composeRefs = _chunkYCHPWXHDjs.composeRefs; exports.configureTokenUsage = _chunkYCHPWXHDjs.configureTokenUsage; exports.createJsonApiInclusion = _chunkYCHPWXHDjs.createJsonApiInclusion; exports.dismissToast = _chunkYCHPWXHDjs.dismissToast; exports.entityObjectSchema = _chunkYCHPWXHDjs.entityObjectSchema; exports.exists = _chunkYCHPWXHDjs.exists; exports.formatCodiceFiscale = _chunkYCHPWXHDjs.formatCodiceFiscale; exports.formatDate = _chunkYCHPWXHDjs.formatDate; exports.formatLocalDate = _chunkYCHPWXHDjs.formatLocalDate; exports.formatPartitaIva = _chunkYCHPWXHDjs.formatPartitaIva; exports.getBootstrapper = _chunkLU7DJ4QFjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkYCHPWXHDjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkYCHPWXHDjs.getGlobalErrorHandler; exports.getIcon = _chunkYCHPWXHDjs.getIcon; exports.getIconByModule = _chunkYCHPWXHDjs.getIconByModule; exports.getIconByModuleName = _chunkYCHPWXHDjs.getIconByModuleName; exports.getInitials = _chunkYCHPWXHDjs.getInitials; exports.getLastApiMeta = _chunkYCHPWXHDjs.getLastApiMeta; exports.getLastApiTotal = _chunkYCHPWXHDjs.getLastApiTotal; exports.getLucideIcon = _chunkYCHPWXHDjs.getLucideIcon; exports.getLucideIconByModule = _chunkYCHPWXHDjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkYCHPWXHDjs.getLucideIconByModuleName; exports.getTableComponents = _chunkYCHPWXHDjs.getTableComponents; exports.getTableOptions = _chunkYCHPWXHDjs.getTableOptions; exports.getTokenUsageCurrency = _chunkYCHPWXHDjs.getTokenUsageCurrency; exports.getValueFromPath = _chunkYCHPWXHDjs.getValueFromPath; exports.handbookPageContent = _chunkYCHPWXHDjs.handbookPageContent; exports.handbookPageSummary = _chunkYCHPWXHDjs.handbookPageSummary; exports.handbookPageTitle = _chunkYCHPWXHDjs.handbookPageTitle; exports.handbookSectionSummary = _chunkYCHPWXHDjs.handbookSectionSummary; exports.handbookSectionTitle = _chunkYCHPWXHDjs.handbookSectionTitle; exports.hasBootstrapper = _chunkLU7DJ4QFjs.hasBootstrapper; exports.isRemoteImageSrc = _chunkYCHPWXHDjs.isRemoteImageSrc; exports.rehydrate = _chunkYCHPWXHDjs.rehydrate; exports.rehydrateList = _chunkYCHPWXHDjs.rehydrateList; exports.resetBootstrapStore = _chunkLU7DJ4QFjs.resetBootstrapStore; exports.setBootstrapper = _chunkLU7DJ4QFjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkYCHPWXHDjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkYCHPWXHDjs.setGlobalErrorHandler; exports.showCustomToast = _chunkYCHPWXHDjs.showCustomToast; exports.showError = _chunkYCHPWXHDjs.showError; exports.showToast = _chunkYCHPWXHDjs.showToast; exports.tokenUsageModules = _chunkYCHPWXHDjs.tokenUsageModules; exports.translateData = _chunkLU7DJ4QFjs.translateData; exports.translateResponse = _chunkLU7DJ4QFjs.translateResponse; exports.tryBootstrap = _chunkLU7DJ4QFjs.tryBootstrap; exports.useComposedRefs = _chunkYCHPWXHDjs.useComposedRefs; exports.useIsMobile = _chunkYCHPWXHDjs.useIsMobile; exports.userObjectSchema = _chunkYCHPWXHDjs.userObjectSchema; exports.validateCodiceFiscale = _chunkYCHPWXHDjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkYCHPWXHDjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkYCHPWXHDjs.validatePartitaIva;
|
|
468
|
+
exports.AVAILABLE_OAUTH_SCOPES = _chunkWRMTBKSNjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkWRMTBKSNjs.AbstractApiData; exports.AbstractService = _chunkWRMTBKSNjs.AbstractService; exports.Action = _chunkWRMTBKSNjs.Action; exports.AiConnection = _chunkWRMTBKSNjs.AiConnection; exports.AiConnectionFields = _chunkWRMTBKSNjs.AiConnectionFields; exports.AiConnectionModule = _chunkWRMTBKSNjs.AiConnectionModule; exports.AiConnectionService = _chunkWRMTBKSNjs.AiConnectionService; exports.Assistant = _chunkWRMTBKSNjs.Assistant; exports.AssistantAction = _chunkWRMTBKSNjs.AssistantAction; exports.AssistantActionModule = _chunkWRMTBKSNjs.AssistantActionModule; exports.AssistantActionService = _chunkWRMTBKSNjs.AssistantActionService; exports.AssistantMessage = _chunkWRMTBKSNjs.AssistantMessage; exports.AssistantMessageModule = _chunkWRMTBKSNjs.AssistantMessageModule; exports.AssistantMessageService = _chunkWRMTBKSNjs.AssistantMessageService; exports.AssistantModule = _chunkWRMTBKSNjs.AssistantModule; exports.AssistantService = _chunkWRMTBKSNjs.AssistantService; exports.AuditLog = _chunkWRMTBKSNjs.AuditLog; exports.AuditLogModule = _chunkWRMTBKSNjs.AuditLogModule; exports.AuditLogService = _chunkWRMTBKSNjs.AuditLogService; exports.Auth = _chunkWRMTBKSNjs.Auth; exports.AuthComponent = _chunkWRMTBKSNjs.AuthComponent; exports.AuthModule = _chunkWRMTBKSNjs.AuthModule; exports.AuthService = _chunkWRMTBKSNjs.AuthService; exports.AuthorModule = _chunkWRMTBKSNjs.AuthorModule; exports.BackupCodeVerify = _chunkWRMTBKSNjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkWRMTBKSNjs.BackupCodeVerifyModule; exports.Billing = _chunkWRMTBKSNjs.Billing; exports.BillingModule = _chunkWRMTBKSNjs.BillingModule; exports.BillingService = _chunkWRMTBKSNjs.BillingService; exports.BlockNoteDiffUtil = _chunkWRMTBKSNjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkWRMTBKSNjs.BlockNoteWordDiffRendererUtil; exports.CURRENT_USER_STORAGE_KEY = _chunkWRMTBKSNjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkWRMTBKSNjs.Chunk; exports.ChunkModule = _chunkWRMTBKSNjs.ChunkModule; exports.ClientAbstractService = _chunkWRMTBKSNjs.ClientAbstractService; exports.ClientHttpMethod = _chunkWRMTBKSNjs.ClientHttpMethod; exports.Company = _chunkWRMTBKSNjs.Company; exports.CompanyFields = _chunkWRMTBKSNjs.CompanyFields; exports.CompanyModule = _chunkWRMTBKSNjs.CompanyModule; exports.CompanyService = _chunkWRMTBKSNjs.CompanyService; exports.Content = _chunkWRMTBKSNjs.Content; exports.ContentFields = _chunkWRMTBKSNjs.ContentFields; exports.ContentModule = _chunkWRMTBKSNjs.ContentModule; exports.ContentService = _chunkWRMTBKSNjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkWRMTBKSNjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLU7DJ4QFjs.DataClassRegistry; exports.DataClassRegistry = _chunkLU7DJ4QFjs.DataClassRegistry; exports.ENV = _chunkLU7DJ4QFjs.ENV; exports.EndpointCreator = _chunkWRMTBKSNjs.EndpointCreator; exports.EntityAiStatus = _chunkWRMTBKSNjs.EntityAiStatus; exports.Feature = _chunkWRMTBKSNjs.Feature; exports.FeatureModule = _chunkWRMTBKSNjs.FeatureModule; exports.FeatureService = _chunkWRMTBKSNjs.FeatureService; exports.HandbookPage = _chunkWRMTBKSNjs.HandbookPage; exports.HandbookPageFields = _chunkWRMTBKSNjs.HandbookPageFields; exports.HandbookPageModule = _chunkWRMTBKSNjs.HandbookPageModule; exports.HandbookPageService = _chunkWRMTBKSNjs.HandbookPageService; exports.HandbookSection = _chunkWRMTBKSNjs.HandbookSection; exports.HandbookSectionModule = _chunkWRMTBKSNjs.HandbookSectionModule; exports.HandbookSectionService = _chunkWRMTBKSNjs.HandbookSectionService; exports.HandbookThread = _chunkWRMTBKSNjs.HandbookThread; exports.HandbookThreadMessage = _chunkWRMTBKSNjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunkWRMTBKSNjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunkWRMTBKSNjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunkWRMTBKSNjs.HandbookThreadModule; exports.HandbookThreadService = _chunkWRMTBKSNjs.HandbookThreadService; exports.HowTo = _chunkWRMTBKSNjs.HowTo; exports.HowToFields = _chunkWRMTBKSNjs.HowToFields; exports.HowToModule = _chunkWRMTBKSNjs.HowToModule; exports.HowToService = _chunkWRMTBKSNjs.HowToService; exports.HttpMethod = _chunkWRMTBKSNjs.HttpMethod; exports.InvoiceStatus = _chunkWRMTBKSNjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLU7DJ4QFjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkWRMTBKSNjs.MOBILE_BREAKPOINT; exports.Module = _chunkWRMTBKSNjs.Module; exports.ModuleModule = _chunkWRMTBKSNjs.ModuleModule; exports.ModulePathsModule = _chunkWRMTBKSNjs.ModulePathsModule; exports.ModuleRegistrar = _chunkWRMTBKSNjs.ModuleRegistrar; exports.ModuleRegistry = _chunkWRMTBKSNjs.ModuleRegistry; exports.Modules = _chunkWRMTBKSNjs.Modules; exports.Notification = _chunkWRMTBKSNjs.Notification; exports.NotificationFields = _chunkWRMTBKSNjs.NotificationFields; exports.NotificationModule = _chunkWRMTBKSNjs.NotificationModule; exports.NotificationService = _chunkWRMTBKSNjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkWRMTBKSNjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkWRMTBKSNjs.OAuthClient; exports.OAuthModule = _chunkWRMTBKSNjs.OAuthModule; exports.OAuthService = _chunkWRMTBKSNjs.OAuthService; exports.Passkey = _chunkWRMTBKSNjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkWRMTBKSNjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkWRMTBKSNjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkWRMTBKSNjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkWRMTBKSNjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkWRMTBKSNjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkWRMTBKSNjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkWRMTBKSNjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkWRMTBKSNjs.PasskeyRename; exports.PasskeyRenameModule = _chunkWRMTBKSNjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkWRMTBKSNjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkWRMTBKSNjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkWRMTBKSNjs.PaymentMethod; exports.PermissionMappingModule = _chunkWRMTBKSNjs.PermissionMappingModule; exports.Push = _chunkWRMTBKSNjs.Push; exports.PushModule = _chunkWRMTBKSNjs.PushModule; exports.PushService = _chunkWRMTBKSNjs.PushService; exports.RbacMatrixModule = _chunkWRMTBKSNjs.RbacMatrixModule; exports.ReferralModule = _chunkWRMTBKSNjs.ReferralModule; exports.ReferralService = _chunkWRMTBKSNjs.ReferralService; exports.ReferralStats = _chunkWRMTBKSNjs.ReferralStats; exports.ReferralStatsModule = _chunkWRMTBKSNjs.ReferralStatsModule; exports.RehydrationFactory = _chunkWRMTBKSNjs.RehydrationFactory; exports.Role = _chunkWRMTBKSNjs.Role; exports.RoleFields = _chunkWRMTBKSNjs.RoleFields; exports.RoleModule = _chunkWRMTBKSNjs.RoleModule; exports.RoleService = _chunkWRMTBKSNjs.RoleService; exports.S3 = _chunkWRMTBKSNjs.S3; exports.S3Module = _chunkWRMTBKSNjs.S3Module; exports.S3Service = _chunkWRMTBKSNjs.S3Service; exports.StripeCustomer = _chunkWRMTBKSNjs.StripeCustomer; exports.StripeCustomerModule = _chunkWRMTBKSNjs.StripeCustomerModule; exports.StripeCustomerService = _chunkWRMTBKSNjs.StripeCustomerService; exports.StripeInvoice = _chunkWRMTBKSNjs.StripeInvoice; exports.StripeInvoiceModule = _chunkWRMTBKSNjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkWRMTBKSNjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkWRMTBKSNjs.StripePaymentMethodModule; exports.StripePrice = _chunkWRMTBKSNjs.StripePrice; exports.StripePriceFields = _chunkWRMTBKSNjs.StripePriceFields; exports.StripePriceModule = _chunkWRMTBKSNjs.StripePriceModule; exports.StripePriceService = _chunkWRMTBKSNjs.StripePriceService; exports.StripeProduct = _chunkWRMTBKSNjs.StripeProduct; exports.StripeProductFields = _chunkWRMTBKSNjs.StripeProductFields; exports.StripeProductModule = _chunkWRMTBKSNjs.StripeProductModule; exports.StripeProductService = _chunkWRMTBKSNjs.StripeProductService; exports.StripePromotionCode = _chunkWRMTBKSNjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkWRMTBKSNjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkWRMTBKSNjs.StripePromotionCodeService; exports.StripeSubscription = _chunkWRMTBKSNjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkWRMTBKSNjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkWRMTBKSNjs.StripeSubscriptionService; exports.StripeUsage = _chunkWRMTBKSNjs.StripeUsage; exports.StripeUsageModule = _chunkWRMTBKSNjs.StripeUsageModule; exports.StripeUsageService = _chunkWRMTBKSNjs.StripeUsageService; exports.SubscriptionStatus = _chunkWRMTBKSNjs.SubscriptionStatus; exports.TableOptions = _chunkWRMTBKSNjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkWRMTBKSNjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkWRMTBKSNjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkWRMTBKSNjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkWRMTBKSNjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkWRMTBKSNjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkWRMTBKSNjs.TotpSetup; exports.TotpSetupModule = _chunkWRMTBKSNjs.TotpSetupModule; exports.TotpVerify = _chunkWRMTBKSNjs.TotpVerify; exports.TotpVerifyLogin = _chunkWRMTBKSNjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkWRMTBKSNjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkWRMTBKSNjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkWRMTBKSNjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkWRMTBKSNjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkWRMTBKSNjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkWRMTBKSNjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkWRMTBKSNjs.TwoFactorService; exports.TwoFactorStatus = _chunkWRMTBKSNjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkWRMTBKSNjs.TwoFactorStatusModule; exports.User = _chunkWRMTBKSNjs.User; exports.UserFields = _chunkWRMTBKSNjs.UserFields; exports.UserModule = _chunkWRMTBKSNjs.UserModule; exports.UserService = _chunkWRMTBKSNjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkWRMTBKSNjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkWRMTBKSNjs.Waitlist; exports.WaitlistModule = _chunkWRMTBKSNjs.WaitlistModule; exports.WaitlistService = _chunkWRMTBKSNjs.WaitlistService; exports.WaitlistStats = _chunkWRMTBKSNjs.WaitlistStats; exports.WaitlistStatsModule = _chunkWRMTBKSNjs.WaitlistStatsModule; exports.checkPermissions = _chunkWRMTBKSNjs.checkPermissions; exports.checkPermissionsFromServer = _chunkWRMTBKSNjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkWRMTBKSNjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkWRMTBKSNjs.clearLastApiTotal; exports.cn = _chunkWRMTBKSNjs.cn; exports.composeRefs = _chunkWRMTBKSNjs.composeRefs; exports.configureTokenUsage = _chunkWRMTBKSNjs.configureTokenUsage; exports.createJsonApiInclusion = _chunkWRMTBKSNjs.createJsonApiInclusion; exports.dismissToast = _chunkWRMTBKSNjs.dismissToast; exports.entityObjectSchema = _chunkWRMTBKSNjs.entityObjectSchema; exports.exists = _chunkWRMTBKSNjs.exists; exports.formatCodiceFiscale = _chunkWRMTBKSNjs.formatCodiceFiscale; exports.formatDate = _chunkWRMTBKSNjs.formatDate; exports.formatLocalDate = _chunkWRMTBKSNjs.formatLocalDate; exports.formatPartitaIva = _chunkWRMTBKSNjs.formatPartitaIva; exports.getBootstrapper = _chunkLU7DJ4QFjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkWRMTBKSNjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkWRMTBKSNjs.getGlobalErrorHandler; exports.getIcon = _chunkWRMTBKSNjs.getIcon; exports.getIconByModule = _chunkWRMTBKSNjs.getIconByModule; exports.getIconByModuleName = _chunkWRMTBKSNjs.getIconByModuleName; exports.getInitials = _chunkWRMTBKSNjs.getInitials; exports.getLastApiMeta = _chunkWRMTBKSNjs.getLastApiMeta; exports.getLastApiTotal = _chunkWRMTBKSNjs.getLastApiTotal; exports.getLucideIcon = _chunkWRMTBKSNjs.getLucideIcon; exports.getLucideIconByModule = _chunkWRMTBKSNjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkWRMTBKSNjs.getLucideIconByModuleName; exports.getTableComponents = _chunkWRMTBKSNjs.getTableComponents; exports.getTableOptions = _chunkWRMTBKSNjs.getTableOptions; exports.getTokenUsageCurrency = _chunkWRMTBKSNjs.getTokenUsageCurrency; exports.getValueFromPath = _chunkWRMTBKSNjs.getValueFromPath; exports.handbookPageContent = _chunkWRMTBKSNjs.handbookPageContent; exports.handbookPageSummary = _chunkWRMTBKSNjs.handbookPageSummary; exports.handbookPageTitle = _chunkWRMTBKSNjs.handbookPageTitle; exports.handbookSectionSummary = _chunkWRMTBKSNjs.handbookSectionSummary; exports.handbookSectionTitle = _chunkWRMTBKSNjs.handbookSectionTitle; exports.hasBootstrapper = _chunkLU7DJ4QFjs.hasBootstrapper; exports.isRemoteImageSrc = _chunkWRMTBKSNjs.isRemoteImageSrc; exports.rehydrate = _chunkWRMTBKSNjs.rehydrate; exports.rehydrateList = _chunkWRMTBKSNjs.rehydrateList; exports.resetBootstrapStore = _chunkLU7DJ4QFjs.resetBootstrapStore; exports.setBootstrapper = _chunkLU7DJ4QFjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkWRMTBKSNjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkWRMTBKSNjs.setGlobalErrorHandler; exports.showCustomToast = _chunkWRMTBKSNjs.showCustomToast; exports.showError = _chunkWRMTBKSNjs.showError; exports.showToast = _chunkWRMTBKSNjs.showToast; exports.tokenUsageModules = _chunkWRMTBKSNjs.tokenUsageModules; exports.translateData = _chunkLU7DJ4QFjs.translateData; exports.translateResponse = _chunkLU7DJ4QFjs.translateResponse; exports.tryBootstrap = _chunkLU7DJ4QFjs.tryBootstrap; exports.useComposedRefs = _chunkWRMTBKSNjs.useComposedRefs; exports.useIsMobile = _chunkWRMTBKSNjs.useIsMobile; exports.userObjectSchema = _chunkWRMTBKSNjs.userObjectSchema; exports.validateCodiceFiscale = _chunkWRMTBKSNjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkWRMTBKSNjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkWRMTBKSNjs.validatePartitaIva;
|
|
469
469
|
//# 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 _chunk7XD2BJN6js = require('../../chunk-7XD2BJN6.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk7EFTSFZOjs = require('../../chunk-7EFTSFZO.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkWRMTBKSNjs = require('../../chunk-WRMTBKSN.js');
|
|
33
33
|
require('../../chunk-LXKSUWAV.js');
|
|
34
34
|
require('../../chunk-IBS6NI7D.js');
|
|
35
35
|
require('../../chunk-LU7DJ4QF.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 = _chunk7EFTSFZOjs._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, _chunk7XD2BJN6js.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
79
|
+
_chunk7XD2BJN6js.SheetContent,
|
|
80
80
|
{
|
|
81
81
|
side: "end",
|
|
82
82
|
className: "flex w-full flex-col data-[side=right]:sm:max-w-2xl data-[side=right]:lg:max-w-3xl data-[side=left]:sm:max-w-2xl data-[side=left]:lg:max-w-3xl",
|
|
83
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XD2BJN6js.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 = _chunk7XD2BJN6js.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, _chunk7XD2BJN6js.SheetHeader, { children: [
|
|
95
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XD2BJN6js.SheetTitle, { children: t("help.askAi.sheet.title") }),
|
|
96
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XD2BJN6js.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, _chunk7XD2BJN6js.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
99
99
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
100
|
-
|
|
100
|
+
_chunk7XD2BJN6js.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, _chunk7XD2BJN6js.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 } = _chunk7XD2BJN6js.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, _chunk7XD2BJN6js.Tooltip, { children: [
|
|
125
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7XD2BJN6js.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XD2BJN6js.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, _chunk7XD2BJN6js.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, _chunk7XD2BJN6js.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 } = _chunk7XD2BJN6js.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: _chunk7XD2BJN6js.buttonVariants.call(void 0, { variant: "outline", size: "sm" }), children: t("help.header.openApp") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/login", className: _chunk7XD2BJN6js.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 = _chunk7XD2BJN6js.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
|
+
_chunkWRMTBKSNjs.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 = _chunk7XD2BJN6js.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, _chunk7XD2BJN6js.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: { paddingInlineStart: `${(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 = _chunk7XD2BJN6js.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
|
+
_chunkWRMTBKSNjs.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
|
+
_chunk7XD2BJN6js.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, _chunk7XD2BJN6js.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XD2BJN6js.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, _chunk7XD2BJN6js.SheetContent, { side: "end", className: "w-full max-w-md sm:max-w-lg", children: [
|
|
391
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7XD2BJN6js.SheetHeader, { children: [
|
|
392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XD2BJN6js.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
|
|
393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7XD2BJN6js.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 = _chunk7XD2BJN6js.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
|
+
_chunkWRMTBKSNjs.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
|
+
_chunk7XD2BJN6js.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, _chunk7XD2BJN6js.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-6R45U3GH.mjs";
|
|
27
27
|
import {
|
|
28
28
|
_getStaticHelpContent
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-Z7KPVKWV.mjs";
|
|
30
30
|
import {
|
|
31
31
|
HowToService
|
|
32
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-ZE5ZUY6Y.mjs";
|
|
33
33
|
import "../../chunk-AUXK7QSA.mjs";
|
|
34
34
|
import "../../chunk-C7C7VY4F.mjs";
|
|
35
35
|
import "../../chunk-BMVA2IM5.mjs";
|