sa2kit 3.4.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/business/index.d.mts +2 -7
- package/dist/business/index.d.ts +2 -7
- package/dist/business/index.js +1761 -8045
- package/dist/business/index.js.map +1 -1
- package/dist/business/index.mjs +1169 -7452
- package/dist/business/index.mjs.map +1 -1
- package/dist/business/portfolio/index.d.mts +1 -2
- package/dist/business/portfolio/index.d.ts +1 -2
- package/dist/{chunk-KVYHCGRY.js → chunk-7Z3XR2Y4.js} +552 -263
- package/dist/chunk-7Z3XR2Y4.js.map +1 -0
- package/dist/chunk-XPY45Y75.js +1143 -0
- package/dist/chunk-XPY45Y75.js.map +1 -0
- package/dist/{chunk-YIRPPMCN.mjs → chunk-XSTMLLJV.mjs} +474 -198
- package/dist/chunk-XSTMLLJV.mjs.map +1 -0
- package/dist/chunk-ZJLS5JU5.mjs +1090 -0
- package/dist/chunk-ZJLS5JU5.mjs.map +1 -0
- package/dist/common/aiApi/client/index.d.mts +71 -0
- package/dist/common/aiApi/client/index.d.ts +71 -0
- package/dist/common/aiApi/client/index.js +165 -0
- package/dist/common/aiApi/client/index.js.map +1 -0
- package/dist/common/aiApi/client/index.mjs +151 -0
- package/dist/common/aiApi/client/index.mjs.map +1 -0
- package/dist/common/aiApi/index.d.mts +184 -0
- package/dist/common/aiApi/index.d.ts +184 -0
- package/dist/common/aiApi/index.js +217 -0
- package/dist/common/aiApi/index.mjs +4 -0
- package/dist/common/aiApi/server/index.d.mts +3 -0
- package/dist/common/aiApi/server/index.d.ts +3 -0
- package/dist/common/aiApi/server/index.js +217 -0
- package/dist/common/aiApi/server/index.mjs +4 -0
- package/dist/common/components/index.js +176 -177
- package/dist/common/components/index.mjs +1 -2
- package/dist/common/index.js +2 -3
- package/dist/common/index.mjs +1 -2
- package/dist/{index-BSmd4ikf.d.ts → index-B4wDXFL0.d.mts} +39 -2
- package/dist/{index-r2-zE3iC.d.mts → index-B4wDXFL0.d.ts} +39 -2
- package/dist/{index-DLLPTprx.d.mts → index-B9vXYzok.d.mts} +48 -13
- package/dist/{index-VFDbZxVM.d.ts → index-BZ0MhRau.d.ts} +48 -13
- package/dist/index.d.mts +703 -181
- package/dist/index.d.ts +703 -181
- package/dist/index.js +2921 -7257
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2161 -6538
- package/dist/index.mjs.map +1 -1
- package/dist/types-CiqMQ-uu.d.mts +166 -0
- package/dist/types-CiqMQ-uu.d.ts +166 -0
- package/package.json +15 -60
- package/dist/CollisionBalls-DgKtscU2.d.mts +0 -41
- package/dist/CollisionBalls-DgKtscU2.d.ts +0 -41
- package/dist/business/calendar/index.d.mts +0 -6
- package/dist/business/calendar/index.d.ts +0 -6
- package/dist/business/calendar/index.js +0 -7433
- package/dist/business/calendar/index.js.map +0 -1
- package/dist/business/calendar/index.mjs +0 -7257
- package/dist/business/calendar/index.mjs.map +0 -1
- package/dist/business/calendar/routes/index.d.mts +0 -191
- package/dist/business/calendar/routes/index.d.ts +0 -191
- package/dist/business/calendar/routes/index.js +0 -844
- package/dist/business/calendar/routes/index.js.map +0 -1
- package/dist/business/calendar/routes/index.mjs +0 -826
- package/dist/business/calendar/routes/index.mjs.map +0 -1
- package/dist/chunk-3R6JHA6D.js +0 -120
- package/dist/chunk-3R6JHA6D.js.map +0 -1
- package/dist/chunk-4PJM4752.js +0 -4
- package/dist/chunk-4PJM4752.js.map +0 -1
- package/dist/chunk-7PMT4L4I.js +0 -324
- package/dist/chunk-7PMT4L4I.js.map +0 -1
- package/dist/chunk-FY2X3LYR.mjs +0 -3
- package/dist/chunk-FY2X3LYR.mjs.map +0 -1
- package/dist/chunk-GS4SAW25.mjs +0 -116
- package/dist/chunk-GS4SAW25.mjs.map +0 -1
- package/dist/chunk-HL4H2HF6.js +0 -279
- package/dist/chunk-HL4H2HF6.js.map +0 -1
- package/dist/chunk-IJIQUMAK.mjs +0 -272
- package/dist/chunk-IJIQUMAK.mjs.map +0 -1
- package/dist/chunk-KVYHCGRY.js.map +0 -1
- package/dist/chunk-MMDSZIXD.mjs +0 -286
- package/dist/chunk-MMDSZIXD.mjs.map +0 -1
- package/dist/chunk-N2O3OX5Y.mjs +0 -243
- package/dist/chunk-N2O3OX5Y.mjs.map +0 -1
- package/dist/chunk-RRQ2X26Z.js +0 -106
- package/dist/chunk-RRQ2X26Z.js.map +0 -1
- package/dist/chunk-RVNQI6BI.js +0 -249
- package/dist/chunk-RVNQI6BI.js.map +0 -1
- package/dist/chunk-UJUWDF7M.mjs +0 -336
- package/dist/chunk-UJUWDF7M.mjs.map +0 -1
- package/dist/chunk-VCKXK6V5.js +0 -345
- package/dist/chunk-VCKXK6V5.js.map +0 -1
- package/dist/chunk-VIEXDTNF.mjs +0 -100
- package/dist/chunk-VIEXDTNF.mjs.map +0 -1
- package/dist/chunk-YIRPPMCN.mjs.map +0 -1
- package/dist/common/ai/llm/core/index.d.mts +0 -70
- package/dist/common/ai/llm/core/index.d.ts +0 -70
- package/dist/common/ai/llm/core/index.js +0 -54
- package/dist/common/ai/llm/core/index.mjs +0 -5
- package/dist/common/ai/llm/electron/index.d.mts +0 -6
- package/dist/common/ai/llm/electron/index.d.ts +0 -6
- package/dist/common/ai/llm/electron/index.js +0 -67
- package/dist/common/ai/llm/electron/index.mjs +0 -10
- package/dist/common/ai/llm/index.d.mts +0 -3
- package/dist/common/ai/llm/index.d.ts +0 -3
- package/dist/common/ai/llm/index.js +0 -54
- package/dist/common/ai/llm/index.js.map +0 -1
- package/dist/common/ai/llm/index.mjs +0 -5
- package/dist/common/ai/llm/index.mjs.map +0 -1
- package/dist/common/ai/llm/miniapp/index.d.mts +0 -6
- package/dist/common/ai/llm/miniapp/index.d.ts +0 -6
- package/dist/common/ai/llm/miniapp/index.js +0 -59
- package/dist/common/ai/llm/miniapp/index.js.map +0 -1
- package/dist/common/ai/llm/miniapp/index.mjs +0 -6
- package/dist/common/ai/llm/miniapp/index.mjs.map +0 -1
- package/dist/common/ai/llm/rn/index.d.mts +0 -6
- package/dist/common/ai/llm/rn/index.d.ts +0 -6
- package/dist/common/ai/llm/rn/index.js +0 -59
- package/dist/common/ai/llm/rn/index.js.map +0 -1
- package/dist/common/ai/llm/rn/index.mjs +0 -6
- package/dist/common/ai/llm/rn/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/electron/index.d.mts +0 -5
- package/dist/common/ai/llm/ui/electron/index.d.ts +0 -5
- package/dist/common/ai/llm/ui/electron/index.js +0 -22
- package/dist/common/ai/llm/ui/electron/index.js.map +0 -1
- package/dist/common/ai/llm/ui/electron/index.mjs +0 -9
- package/dist/common/ai/llm/ui/electron/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/miniapp/index.d.mts +0 -9
- package/dist/common/ai/llm/ui/miniapp/index.d.ts +0 -9
- package/dist/common/ai/llm/ui/miniapp/index.js +0 -14
- package/dist/common/ai/llm/ui/miniapp/index.js.map +0 -1
- package/dist/common/ai/llm/ui/miniapp/index.mjs +0 -5
- package/dist/common/ai/llm/ui/miniapp/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/rn/index.d.mts +0 -9
- package/dist/common/ai/llm/ui/rn/index.d.ts +0 -9
- package/dist/common/ai/llm/ui/rn/index.js +0 -14
- package/dist/common/ai/llm/ui/rn/index.js.map +0 -1
- package/dist/common/ai/llm/ui/rn/index.mjs +0 -5
- package/dist/common/ai/llm/ui/rn/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/web/index.d.mts +0 -15
- package/dist/common/ai/llm/ui/web/index.d.ts +0 -15
- package/dist/common/ai/llm/ui/web/index.js +0 -21
- package/dist/common/ai/llm/ui/web/index.js.map +0 -1
- package/dist/common/ai/llm/ui/web/index.mjs +0 -8
- package/dist/common/ai/llm/ui/web/index.mjs.map +0 -1
- package/dist/common/ai/llm/web/index.d.mts +0 -6
- package/dist/common/ai/llm/web/index.d.ts +0 -6
- package/dist/common/ai/llm/web/index.js +0 -66
- package/dist/common/ai/llm/web/index.js.map +0 -1
- package/dist/common/ai/llm/web/index.mjs +0 -9
- package/dist/common/ai/llm/web/index.mjs.map +0 -1
- package/dist/index-BMgdH5dL.d.mts +0 -1716
- package/dist/index-IXMAeTtN.d.ts +0 -1716
- package/dist/types-B2rs_jq1.d.mts +0 -38
- package/dist/types-DgACCUpT.d.ts +0 -122
- package/dist/types-DwS2Eg0q.d.ts +0 -38
- package/dist/types-LU_BGSzk.d.mts +0 -122
- /package/dist/common/{ai/llm/core → aiApi}/index.js.map +0 -0
- /package/dist/common/{ai/llm/core → aiApi}/index.mjs.map +0 -0
- /package/dist/common/{ai/llm/electron → aiApi/server}/index.js.map +0 -0
- /package/dist/common/{ai/llm/electron → aiApi/server}/index.mjs.map +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { G as Grid, a as GridColumns, b as GridGap, c as GridItem, d as GridProps } from './index-BZ0MhRau.js';
|
|
7
|
+
export { j as AutoOpenModal, A as AutoOpenModalProps, C as CategoryFilter, M as CompletionFilter, o as CompletionFilterComponent, F as DraggableExperimentGrid, D as DraggableExperimentGridProps, ah as DrizzleLikeDb, w as EmptyState, v as EmptyStateProps, k as EnhancedAvatar, E as EnhancedAvatarProps, K as ExperimentCategory, t as ExperimentGrid, r as ExperimentGridItem, s as ExperimentGridProps, L as ExperimentItem, u as ExperimentItemGrid, ao as MikuContestNoticeRow, ag as MikuContestPersistenceAdapter, as as MikuContestPersistentService, ar as MikuContestPersistentServiceOptions, aw as MikuContestRouteConfig, ae as MikuContestService, av as MikuContestServiceLike, ad as MikuContestServiceOptions, ap as MikuContestStateDbService, an as MikuContestVoteRow, q as PageHeader, p as PageHeaderProps, J as PermissionGuard, m as ProfileBadge, f as ProfileButton, P as ProfileButtonProps, l as ProfileData, h as ProfileModal, g as ProfileModalProps, S as SocialLink, y as SortControl, x as SortControlProps, N as SortMode, B as SortModeToggle, z as SortModeToggleProps, I as SortableExperimentItem, H as SortableExperimentItemProps, n as Stat, T as TestFieldConfig, O as TestFieldPageProps, U as UserInfoBar, V as ViewMode, a8 as VoteCheckContext, e as bubbleShooter, i as business, a9 as checkVoteEligibility, az as createCreateSubmissionHandler, a5 as createDefaultMikuContestConfig, aF as createExportSubmissionsHandler, ax as createGetContestSnapshotHandler, aC as createListSubmissionsHandler, aq as createMikuContestDrizzlePersistenceAdapter, at as createMikuContestPersistentService, af as createMikuContestService, aE as createResetVotesHandler, aB as createReviewSubmissionHandler, aD as createSetVoterRestrictionHandler, ay as createUpdateContestConfigHandler, aA as createVoteHandler, a4 as defaultMikuVotingRules, Q as filterExperiments, W as getAllTags, _ as getCategoryColor, Z as getCategoryDisplayName, $ as getCompletionFilterDisplayName, a0 as getCompletionStatusColor, a1 as getCompletionStatusText, X as getExperimentCounts, ai as mikuContestConfigs, au as mikuContestDbService, al as mikuContestNotices, aj as mikuContestSubmissions, am as mikuContestVoterRestrictions, ak as mikuContestVotes, ac as miniappService, a2 as miniappUI, aa as sortByVotesDesc, R as sortExperiments, a7 as toVoteDayKey, a3 as useMikuContest, Y as validateExperiment, a6 as validateMikuSubmissionInput, ab as webService } from './index-BZ0MhRau.js';
|
|
8
|
+
import { B as Ball, C as CollisionBalls, a as CollisionBallsConfig, T as Timeline, b as TimelineConfig, c as TimelineItem } from './index-B4wDXFL0.js';
|
|
9
|
+
export { A as About, d as AboutBase, e as Contact, E as ExperimentCard, H as Home, f as HomeConfig, P as ProjectCarousel, g as ProjectsConfig } from './index-B4wDXFL0.js';
|
|
4
10
|
import { U as UploadFileInfo, a as UploadProgress, F as FileMetadata, b as FileQueryOptions, P as PaginatedResult, B as BatchOperationResult, A as AccessPermission, g as AudioProcessingOptions, h as CDNProviderError, C as CDNType, i as FileEvent, c as FileEventListener, j as FileEventType, k as FileProcessingError, l as FileServiceError, m as FileUploadError, I as ImageProcessingOptions, f as ProcessingOptions, e as ProcessorType, n as StorageProviderError, S as StorageType, o as UploadResult, d as UploadStatus, V as VideoProcessingOptions } from './types-B6B210gX.js';
|
|
5
11
|
import { A as AliyunOSSConfig } from './types-_rFX1atk.js';
|
|
6
|
-
import React__default from 'react';
|
|
7
12
|
import * as zod_v4_core from 'zod/v4/core';
|
|
8
13
|
import * as zod from 'zod';
|
|
9
14
|
import * as better_auth_plugins_email_otp from 'better-auth/plugins/email-otp';
|
|
10
15
|
import * as better_auth_plugins_phone_number from 'better-auth/plugins/phone-number';
|
|
11
16
|
import * as better_auth_client from 'better-auth/client';
|
|
12
17
|
import * as better_auth from 'better-auth';
|
|
13
|
-
export { e as AutoOpenModal, A as AutoOpenModalProps, C as CategoryFilter, H as CompletionFilter, k as CompletionFilterComponent, x as DraggableExperimentGrid, D as DraggableExperimentGridProps, ac as DrizzleLikeDb, s as EmptyState, r as EmptyStateProps, f as EnhancedAvatar, E as EnhancedAvatarProps, F as ExperimentCategory, p as ExperimentGrid, n as ExperimentGridItem, o as ExperimentGridProps, G as ExperimentItem, q as ExperimentItemGrid, aj as MikuContestNoticeRow, ab as MikuContestPersistenceAdapter, an as MikuContestPersistentService, am as MikuContestPersistentServiceOptions, ar as MikuContestRouteConfig, a9 as MikuContestService, aq as MikuContestServiceLike, a8 as MikuContestServiceOptions, ak as MikuContestStateDbService, ai as MikuContestVoteRow, m as PageHeader, l as PageHeaderProps, B as PermissionGuard, h as ProfileBadge, b as ProfileButton, P as ProfileButtonProps, g as ProfileData, d as ProfileModal, c as ProfileModalProps, S as SocialLink, u as SortControl, t as SortControlProps, I as SortMode, w as SortModeToggle, v as SortModeToggleProps, z as SortableExperimentItem, y as SortableExperimentItemProps, j as Stat, T as TestFieldConfig, J as TestFieldPageProps, U as UserInfoBar, V as ViewMode, a3 as VoteCheckContext, a as bubbleShooter, i as business, a4 as checkVoteEligibility, au as createCreateSubmissionHandler, a0 as createDefaultMikuContestConfig, aA as createExportSubmissionsHandler, as as createGetContestSnapshotHandler, ax as createListSubmissionsHandler, al as createMikuContestDrizzlePersistenceAdapter, ao as createMikuContestPersistentService, aa as createMikuContestService, az as createResetVotesHandler, aw as createReviewSubmissionHandler, ay as createSetVoterRestrictionHandler, at as createUpdateContestConfigHandler, av as createVoteHandler, $ as defaultMikuVotingRules, K as filterExperiments, M as getAllTags, R as getCategoryColor, Q as getCategoryDisplayName, W as getCompletionFilterDisplayName, X as getCompletionStatusColor, Y as getCompletionStatusText, N as getExperimentCounts, ad as mikuContestConfigs, ap as mikuContestDbService, ag as mikuContestNotices, ae as mikuContestSubmissions, ah as mikuContestVoterRestrictions, af as mikuContestVotes, a7 as miniappService, Z as miniappUI, a5 as sortByVotesDesc, L as sortExperiments, a2 as toVoteDayKey, _ as useMikuContest, O as validateExperiment, a1 as validateMikuSubmissionInput, a6 as webService } from './index-VFDbZxVM.js';
|
|
14
|
-
export { A as About, a as AboutBase, C as Contact, E as ExperimentCard, H as Home, b as HomeConfig, P as ProjectCarousel, c as ProjectsConfig } from './index-BSmd4ikf.js';
|
|
15
18
|
export { F as FloatingMenu, c as FloatingMenuExample, N as Navigation, f as NavigationConfig, d as NavigationDirection, a as NavigationItem, e as NavigationPosition, g as NavigationProps, b as NavigationToggle } from './index-Bo_fW3Tl.js';
|
|
16
19
|
export { k as DANMAKU_MAX_LENGTH, l as DANMAKU_TRACK_COUNT, g as DEFAULT_MAX_ACTIVE_FIREWORKS, f as DEFAULT_MAX_PARTICLES, t as DanmakuControllerOptions, n as DanmakuMessage, c as DanmakuOverlayItem, D as DanmakuPanel, s as DanmakuSendResult, h as FIREWORK_KIND_LABELS, q as FireworkEngineOptions, m as FireworkKind, p as FireworkLaunchPayload, o as FireworkPosition, F as FireworksCanvas, a as FireworksControlPanel, w as FireworksRealtimeConfig, x as FireworksRealtimeState, v as FireworksRealtimeUser, j as MIKU_PALETTE, M as MikuFireworks3D, r as MikuFireworks3DProps, N as NORMAL_PALETTE, U as UseFireworksEngineOptions, W as WebSocketTransport, b as WebSocketTransportCallbacks, d as useDanmakuController, u as useFireworksEngine, e as useFireworksRealtime } from './index-CucXCBNR.js';
|
|
17
20
|
export { R as ResolveScreenReceiverSignalUrlOptions, a as ScreenReceiverClientRole, k as ScreenReceiverErrorMessage, e as ScreenReceiverIncomingMessage, c as ScreenReceiverJoinMessage, f as ScreenReceiverJoinedMessage, l as ScreenReceiverLogEntry, o as ScreenReceiverPanel, n as ScreenReceiverPanelProps, g as ScreenReceiverPeerJoinedMessage, h as ScreenReceiverPeerLeftMessage, S as ScreenReceiverRole, j as ScreenReceiverRoomStateMessage, d as ScreenReceiverSignalMessage, b as ScreenReceiverSignalType, U as UseScreenReceiverOptions, m as UseScreenReceiverReturn, r as resolveScreenReceiverSignalUrl, u as useScreenReceiver } from './index-C_GhVhOT.js';
|
|
@@ -21,9 +24,6 @@ export { f as FestivalCardAudioConfig, b as FestivalCardConfig, a as FestivalCar
|
|
|
21
24
|
export { B as BoothAuditEvent, a as BoothAuditEventType, b as BoothFileItem, c as BoothFileKind, d as BoothRedeemGuardLike, e as BoothUploadRecord, f as BoothVaultService, g as BoothVaultServiceOptions, h as BoothVaultStore, C as CreateBoothUploadInput, i as CreateBoothUploadResult } from './boothVaultService-lKcnyA-u.js';
|
|
22
25
|
export { G as GenerateMatchCodeOptions, V as VocaloidBoothConfig, d as defaultVocaloidBoothConfig, g as generateMatchCode, n as normalizeMatchCode, a as normalizeVocaloidBoothConfig } from './config-BQp3qLAL.js';
|
|
23
26
|
export { f as CreateMikuAnnouncementInput, C as CreateMikuSubmissionInput, H as HttpMethod, e as MikuAnnouncement, n as MikuContestApiClient, M as MikuContestConfig, j as MikuContestPersistedState, p as MikuContestRole, h as MikuContestStateSnapshot, q as MikuContestTimeline, r as MikuFeatureToggles, g as MikuLeaderboardItem, s as MikuNoticeType, a as MikuSubmission, k as MikuSubmissionContent, i as MikuSubmissionExportRow, b as MikuSubmissionFilter, t as MikuSubmissionStatus, l as MikuVoteRecord, c as MikuVoterRestriction, m as MikuVotingRules, u as MikuWorkType, o as Requester, d as ResetMikuVotesInput, R as ReviewMikuSubmissionInput, S as SetMikuVoterRestrictionInput, V as VoteMikuSubmissionInput, v as createMikuContestApiClient, w as webUI } from './index-DowAHRIP.js';
|
|
24
|
-
import 'class-variance-authority/types';
|
|
25
|
-
import 'class-variance-authority';
|
|
26
|
-
import '@dnd-kit/core';
|
|
27
27
|
import './index-C8i9SIxk.js';
|
|
28
28
|
import './types-HorDyIRv.js';
|
|
29
29
|
import 'three';
|
|
@@ -392,6 +392,368 @@ declare namespace index$d {
|
|
|
392
392
|
export { index$d_arrayUtils as arrayUtils, index$d_cn as cn, index$d_debugUtils as debugUtils, index$d_errorUtils as errorUtils, index$d_fileUtils as fileUtils, index$d_formatTime as formatTime, index$d_japaneseUtils as japaneseUtils, index$d_stringUtils as stringUtils, index$d_validators as validators };
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
+
declare const buttonVariants: (props?: ({
|
|
396
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
397
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
398
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
399
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
400
|
+
variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
401
|
+
size?: 'default' | 'sm' | 'lg' | 'icon';
|
|
402
|
+
asChild?: boolean;
|
|
403
|
+
}
|
|
404
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
405
|
+
|
|
406
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
407
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
408
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
409
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
410
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
411
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
412
|
+
|
|
413
|
+
declare const badgeVariants: (props?: ({
|
|
414
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
415
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
416
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
417
|
+
}
|
|
418
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
|
|
419
|
+
|
|
420
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
421
|
+
|
|
422
|
+
declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
423
|
+
|
|
424
|
+
interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
425
|
+
value?: string;
|
|
426
|
+
defaultValue?: string;
|
|
427
|
+
onValueChange?: (value: string) => void;
|
|
428
|
+
}
|
|
429
|
+
declare const Tabs: ({ value, defaultValue, onValueChange, className, ...props }: TabsProps) => React.JSX.Element;
|
|
430
|
+
declare const TabsList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
431
|
+
interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
432
|
+
value: string;
|
|
433
|
+
}
|
|
434
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
435
|
+
interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
436
|
+
value: string;
|
|
437
|
+
forceMount?: boolean;
|
|
438
|
+
}
|
|
439
|
+
declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
440
|
+
|
|
441
|
+
interface DialogProps {
|
|
442
|
+
open?: boolean;
|
|
443
|
+
defaultOpen?: boolean;
|
|
444
|
+
onOpenChange?: (open: boolean) => void;
|
|
445
|
+
children: React.ReactNode;
|
|
446
|
+
}
|
|
447
|
+
declare const Dialog: ({ open, defaultOpen, onOpenChange, children }: DialogProps) => React.JSX.Element;
|
|
448
|
+
interface TriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
449
|
+
asChild?: boolean;
|
|
450
|
+
children: React.ReactNode;
|
|
451
|
+
}
|
|
452
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
453
|
+
declare const DialogPortal: ({ children }: {
|
|
454
|
+
children: React.ReactNode;
|
|
455
|
+
}) => React.JSX.Element | null;
|
|
456
|
+
declare const DialogClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
457
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
458
|
+
interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
459
|
+
onPointerDownOutside?: (event: PointerEvent) => void;
|
|
460
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
461
|
+
showCloseButton?: boolean;
|
|
462
|
+
overlayClassName?: string;
|
|
463
|
+
}
|
|
464
|
+
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
465
|
+
declare const DialogHeader: {
|
|
466
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
467
|
+
displayName: string;
|
|
468
|
+
};
|
|
469
|
+
declare const DialogFooter: {
|
|
470
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
471
|
+
displayName: string;
|
|
472
|
+
};
|
|
473
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
474
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
475
|
+
|
|
476
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
477
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
478
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
479
|
+
|
|
480
|
+
interface DropdownMenuProps {
|
|
481
|
+
open?: boolean;
|
|
482
|
+
defaultOpen?: boolean;
|
|
483
|
+
onOpenChange?: (open: boolean) => void;
|
|
484
|
+
children: React.ReactNode;
|
|
485
|
+
}
|
|
486
|
+
declare const DropdownMenu: ({ open, defaultOpen, onOpenChange, children }: DropdownMenuProps) => React.JSX.Element;
|
|
487
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
488
|
+
asChild?: boolean;
|
|
489
|
+
children: React.ReactNode;
|
|
490
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
491
|
+
declare const DropdownMenuGroup: ({ children }: {
|
|
492
|
+
children: React.ReactNode;
|
|
493
|
+
}) => React.JSX.Element;
|
|
494
|
+
declare const DropdownMenuPortal: ({ children }: {
|
|
495
|
+
children: React.ReactNode;
|
|
496
|
+
}) => React.JSX.Element;
|
|
497
|
+
declare const DropdownMenuSub: ({ children }: {
|
|
498
|
+
children: React.ReactNode;
|
|
499
|
+
}) => React.JSX.Element;
|
|
500
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
501
|
+
sideOffset?: number;
|
|
502
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
503
|
+
type SelectEventLike = Event & {
|
|
504
|
+
preventDefault: () => void;
|
|
505
|
+
defaultPrevented: boolean;
|
|
506
|
+
};
|
|
507
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
508
|
+
inset?: boolean;
|
|
509
|
+
onSelect?: (event: SelectEventLike) => void;
|
|
510
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
511
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
512
|
+
checked?: boolean;
|
|
513
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
514
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
515
|
+
declare const DropdownMenuRadioGroup: ({ value, onValueChange, children, }: {
|
|
516
|
+
value?: string;
|
|
517
|
+
onValueChange?: (value: string) => void;
|
|
518
|
+
children: React.ReactNode;
|
|
519
|
+
}) => React.JSX.Element;
|
|
520
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
521
|
+
value: string;
|
|
522
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
523
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
524
|
+
inset?: boolean;
|
|
525
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
526
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
527
|
+
declare const DropdownMenuShortcut: {
|
|
528
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
529
|
+
displayName: string;
|
|
530
|
+
};
|
|
531
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
532
|
+
inset?: boolean;
|
|
533
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
534
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
535
|
+
|
|
536
|
+
interface PopoverProps {
|
|
537
|
+
open?: boolean;
|
|
538
|
+
defaultOpen?: boolean;
|
|
539
|
+
onOpenChange?: (open: boolean) => void;
|
|
540
|
+
children: React.ReactNode;
|
|
541
|
+
}
|
|
542
|
+
declare const Popover: ({ open, defaultOpen, onOpenChange, children }: PopoverProps) => React.JSX.Element;
|
|
543
|
+
interface PopoverTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
544
|
+
asChild?: boolean;
|
|
545
|
+
children: React.ReactNode;
|
|
546
|
+
}
|
|
547
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
548
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
549
|
+
interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
550
|
+
align?: "start" | "center" | "end";
|
|
551
|
+
sideOffset?: number;
|
|
552
|
+
}
|
|
553
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
554
|
+
|
|
555
|
+
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
556
|
+
value?: number;
|
|
557
|
+
max?: number;
|
|
558
|
+
}
|
|
559
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
560
|
+
|
|
561
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
562
|
+
interface ScrollBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
563
|
+
orientation?: "vertical" | "horizontal";
|
|
564
|
+
}
|
|
565
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<ScrollBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
566
|
+
|
|
567
|
+
interface SelectProps {
|
|
568
|
+
value?: string;
|
|
569
|
+
defaultValue?: string;
|
|
570
|
+
onValueChange?: (value: string) => void;
|
|
571
|
+
open?: boolean;
|
|
572
|
+
defaultOpen?: boolean;
|
|
573
|
+
onOpenChange?: (open: boolean) => void;
|
|
574
|
+
disabled?: boolean;
|
|
575
|
+
children: React.ReactNode;
|
|
576
|
+
}
|
|
577
|
+
declare const Select: ({ value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, children, }: SelectProps) => React.JSX.Element;
|
|
578
|
+
declare const SelectGroup: ({ children }: {
|
|
579
|
+
children: React.ReactNode;
|
|
580
|
+
}) => React.JSX.Element;
|
|
581
|
+
declare const SelectValue: ({ placeholder, children, }: {
|
|
582
|
+
placeholder?: React.ReactNode;
|
|
583
|
+
children?: React.ReactNode;
|
|
584
|
+
}) => React.JSX.Element | null;
|
|
585
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
586
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
587
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
588
|
+
declare const SelectContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
589
|
+
position?: "item-aligned" | "popper";
|
|
590
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
591
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
592
|
+
interface SelectItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
593
|
+
value: string;
|
|
594
|
+
}
|
|
595
|
+
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
596
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
597
|
+
|
|
598
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
599
|
+
orientation?: "horizontal" | "vertical";
|
|
600
|
+
decorative?: boolean;
|
|
601
|
+
}
|
|
602
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
603
|
+
|
|
604
|
+
declare const sheetVariants: (props?: ({
|
|
605
|
+
side?: "top" | "left" | "right" | "bottom" | null | undefined;
|
|
606
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
607
|
+
interface SheetContentProps extends Omit<React.ComponentPropsWithoutRef<typeof DialogContent>, "children">, VariantProps<typeof sheetVariants> {
|
|
608
|
+
children?: React.ReactNode;
|
|
609
|
+
}
|
|
610
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
611
|
+
declare const SheetHeader: {
|
|
612
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
613
|
+
displayName: string;
|
|
614
|
+
};
|
|
615
|
+
declare const SheetFooter: {
|
|
616
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
617
|
+
displayName: string;
|
|
618
|
+
};
|
|
619
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
620
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
621
|
+
|
|
622
|
+
declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
623
|
+
|
|
624
|
+
declare const TooltipProvider: ({ children, delayDuration, }: {
|
|
625
|
+
children: React.ReactNode;
|
|
626
|
+
delayDuration?: number;
|
|
627
|
+
}) => React.JSX.Element;
|
|
628
|
+
declare const Tooltip: ({ children }: {
|
|
629
|
+
children: React.ReactNode;
|
|
630
|
+
}) => React.JSX.Element;
|
|
631
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
632
|
+
asChild?: boolean;
|
|
633
|
+
children: React.ReactNode;
|
|
634
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
635
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
636
|
+
sideOffset?: number;
|
|
637
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
638
|
+
|
|
639
|
+
declare const Avatar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
640
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & React.RefAttributes<HTMLImageElement>>;
|
|
641
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
642
|
+
|
|
643
|
+
interface SearchBoxProps {
|
|
644
|
+
searchQuery: string;
|
|
645
|
+
onSearchChange: (query: string) => void;
|
|
646
|
+
placeholder?: string;
|
|
647
|
+
size?: 'small' | 'medium' | 'large';
|
|
648
|
+
}
|
|
649
|
+
declare const SearchBox: React__default.FC<SearchBoxProps>;
|
|
650
|
+
|
|
651
|
+
interface OrderableItem {
|
|
652
|
+
id: number;
|
|
653
|
+
[key: string]: any;
|
|
654
|
+
}
|
|
655
|
+
interface OrderManagerOperations<T extends OrderableItem> {
|
|
656
|
+
loadItems: () => Promise<T[]>;
|
|
657
|
+
moveItemUp: (id: number) => Promise<void>;
|
|
658
|
+
moveItemDown: (id: number) => Promise<void>;
|
|
659
|
+
updateItemOrder: (orders: {
|
|
660
|
+
id: number;
|
|
661
|
+
order: number;
|
|
662
|
+
}[]) => Promise<void>;
|
|
663
|
+
}
|
|
664
|
+
interface GenericOrderManagerProps<T extends OrderableItem> {
|
|
665
|
+
operations: OrderManagerOperations<T>;
|
|
666
|
+
renderItem: (item: T, index: number, isFirst: boolean, isLast: boolean) => React__default.ReactNode;
|
|
667
|
+
className?: string;
|
|
668
|
+
title?: string;
|
|
669
|
+
description?: string;
|
|
670
|
+
onOrderChanged?: () => void;
|
|
671
|
+
emptyMessage?: string;
|
|
672
|
+
loadingMessage?: string;
|
|
673
|
+
}
|
|
674
|
+
declare function GenericOrderManager<T extends OrderableItem>({ operations, renderItem, className, title, description, onOrderChanged, emptyMessage, loadingMessage }: GenericOrderManagerProps<T>): React__default.JSX.Element;
|
|
675
|
+
|
|
676
|
+
interface BackButtonProps {
|
|
677
|
+
href?: string;
|
|
678
|
+
className?: string;
|
|
679
|
+
}
|
|
680
|
+
declare const BackButton: React__default.FC<BackButtonProps>;
|
|
681
|
+
|
|
682
|
+
interface FilterOption<T> {
|
|
683
|
+
value: T;
|
|
684
|
+
label: string;
|
|
685
|
+
icon: string;
|
|
686
|
+
activeColor: {
|
|
687
|
+
bg: string;
|
|
688
|
+
shadow: string;
|
|
689
|
+
};
|
|
690
|
+
count?: number;
|
|
691
|
+
showCount?: boolean;
|
|
692
|
+
}
|
|
693
|
+
interface FilterButtonGroupProps<T> {
|
|
694
|
+
label: string;
|
|
695
|
+
value: T;
|
|
696
|
+
options: FilterOption<T>[];
|
|
697
|
+
onChange: (value: T) => void;
|
|
698
|
+
className?: string;
|
|
699
|
+
}
|
|
700
|
+
declare function FilterButtonGroup<T extends string>({ label, value, options, onChange, className }: FilterButtonGroupProps<T>): React__default.JSX.Element;
|
|
701
|
+
|
|
702
|
+
interface SearchResultHintProps {
|
|
703
|
+
searchQuery: string;
|
|
704
|
+
resultCount: number;
|
|
705
|
+
className?: string;
|
|
706
|
+
}
|
|
707
|
+
declare function SearchResultHint({ searchQuery, resultCount, className }: SearchResultHintProps): React__default.JSX.Element | null;
|
|
708
|
+
|
|
709
|
+
interface ModalProps {
|
|
710
|
+
isOpen: boolean;
|
|
711
|
+
onClose: () => void;
|
|
712
|
+
title?: string;
|
|
713
|
+
width?: number | string;
|
|
714
|
+
height?: number | string;
|
|
715
|
+
className?: string;
|
|
716
|
+
maskClosable?: boolean;
|
|
717
|
+
children: React__default.ReactNode;
|
|
718
|
+
zIndex?: number;
|
|
719
|
+
overlayClassName?: string;
|
|
720
|
+
}
|
|
721
|
+
declare const Modal: React__default.FC<ModalProps>;
|
|
722
|
+
interface ConfirmModalProps {
|
|
723
|
+
isOpen: boolean;
|
|
724
|
+
onClose: () => void;
|
|
725
|
+
onConfirm: () => void;
|
|
726
|
+
title?: string;
|
|
727
|
+
message: string;
|
|
728
|
+
confirmText?: string;
|
|
729
|
+
cancelText?: string;
|
|
730
|
+
isLoading?: boolean;
|
|
731
|
+
}
|
|
732
|
+
declare const ConfirmModal: React__default.FC<ConfirmModalProps>;
|
|
733
|
+
|
|
734
|
+
interface ImageMappingItem {
|
|
735
|
+
id: string;
|
|
736
|
+
label: string;
|
|
737
|
+
}
|
|
738
|
+
type ImageMappingValue = Record<string, string>;
|
|
739
|
+
interface ImageMappingPanelProps {
|
|
740
|
+
title: string;
|
|
741
|
+
items: ImageMappingItem[];
|
|
742
|
+
value: ImageMappingValue;
|
|
743
|
+
onChange: (next: ImageMappingValue) => void;
|
|
744
|
+
className?: string;
|
|
745
|
+
uploadLabel?: string;
|
|
746
|
+
clearLabel?: string;
|
|
747
|
+
}
|
|
748
|
+
declare function ImageMappingPanel({ title, items, value, onChange, className, uploadLabel, clearLabel, }: ImageMappingPanelProps): React__default.JSX.Element;
|
|
749
|
+
|
|
750
|
+
interface LocalImageMappingPanelProps extends Omit<ImageMappingPanelProps, 'value' | 'onChange'> {
|
|
751
|
+
storageKey: string;
|
|
752
|
+
defaultValue?: ImageMappingValue;
|
|
753
|
+
onValueChange?: (next: ImageMappingValue) => void;
|
|
754
|
+
}
|
|
755
|
+
declare function LocalImageMappingPanel({ storageKey, defaultValue, onValueChange, ...panelProps }: LocalImageMappingPanelProps): React__default.JSX.Element;
|
|
756
|
+
|
|
395
757
|
declare const index$c_AlertDialogAction: typeof AlertDialogAction;
|
|
396
758
|
declare const index$c_AlertDialogCancel: typeof AlertDialogCancel;
|
|
397
759
|
declare const index$c_AlertDialogContent: typeof AlertDialogContent;
|
|
@@ -399,12 +761,12 @@ declare const index$c_Avatar: typeof Avatar;
|
|
|
399
761
|
declare const index$c_AvatarFallback: typeof AvatarFallback;
|
|
400
762
|
declare const index$c_AvatarImage: typeof AvatarImage;
|
|
401
763
|
declare const index$c_BackButton: typeof BackButton;
|
|
402
|
-
|
|
764
|
+
type index$c_BackButtonProps = BackButtonProps;
|
|
403
765
|
declare const index$c_Badge: typeof Badge;
|
|
404
|
-
|
|
766
|
+
type index$c_BadgeProps = BadgeProps;
|
|
405
767
|
declare const index$c_Ball: typeof Ball;
|
|
406
768
|
declare const index$c_Button: typeof Button;
|
|
407
|
-
|
|
769
|
+
type index$c_ButtonProps = ButtonProps;
|
|
408
770
|
declare const index$c_Card: typeof Card;
|
|
409
771
|
declare const index$c_CardContent: typeof CardContent;
|
|
410
772
|
declare const index$c_CardDescription: typeof CardDescription;
|
|
@@ -414,11 +776,11 @@ declare const index$c_CardTitle: typeof CardTitle;
|
|
|
414
776
|
declare const index$c_CollisionBalls: typeof CollisionBalls;
|
|
415
777
|
declare const index$c_CollisionBallsConfig: typeof CollisionBallsConfig;
|
|
416
778
|
declare const index$c_ConfirmModal: typeof ConfirmModal;
|
|
417
|
-
|
|
779
|
+
type index$c_ConfirmModalProps = ConfirmModalProps;
|
|
418
780
|
declare const index$c_Dialog: typeof Dialog;
|
|
419
781
|
declare const index$c_DialogClose: typeof DialogClose;
|
|
420
782
|
declare const index$c_DialogContent: typeof DialogContent;
|
|
421
|
-
|
|
783
|
+
type index$c_DialogContentProps = DialogContentProps;
|
|
422
784
|
declare const index$c_DialogDescription: typeof DialogDescription;
|
|
423
785
|
declare const index$c_DialogFooter: typeof DialogFooter;
|
|
424
786
|
declare const index$c_DialogHeader: typeof DialogHeader;
|
|
@@ -442,38 +804,38 @@ declare const index$c_DropdownMenuSubContent: typeof DropdownMenuSubContent;
|
|
|
442
804
|
declare const index$c_DropdownMenuSubTrigger: typeof DropdownMenuSubTrigger;
|
|
443
805
|
declare const index$c_DropdownMenuTrigger: typeof DropdownMenuTrigger;
|
|
444
806
|
declare const index$c_FilterButtonGroup: typeof FilterButtonGroup;
|
|
445
|
-
|
|
446
|
-
|
|
807
|
+
type index$c_FilterButtonGroupProps<T> = FilterButtonGroupProps<T>;
|
|
808
|
+
type index$c_FilterOption<T> = FilterOption<T>;
|
|
447
809
|
declare const index$c_GenericOrderManager: typeof GenericOrderManager;
|
|
448
|
-
|
|
810
|
+
type index$c_GenericOrderManagerProps<T extends OrderableItem> = GenericOrderManagerProps<T>;
|
|
449
811
|
declare const index$c_Grid: typeof Grid;
|
|
450
812
|
declare const index$c_GridColumns: typeof GridColumns;
|
|
451
813
|
declare const index$c_GridGap: typeof GridGap;
|
|
452
814
|
declare const index$c_GridItem: typeof GridItem;
|
|
453
815
|
declare const index$c_GridProps: typeof GridProps;
|
|
454
|
-
|
|
816
|
+
type index$c_ImageMappingItem = ImageMappingItem;
|
|
455
817
|
declare const index$c_ImageMappingPanel: typeof ImageMappingPanel;
|
|
456
|
-
|
|
457
|
-
|
|
818
|
+
type index$c_ImageMappingPanelProps = ImageMappingPanelProps;
|
|
819
|
+
type index$c_ImageMappingValue = ImageMappingValue;
|
|
458
820
|
declare const index$c_Input: typeof Input;
|
|
459
821
|
declare const index$c_Label: typeof Label;
|
|
460
822
|
declare const index$c_LocalImageMappingPanel: typeof LocalImageMappingPanel;
|
|
461
|
-
|
|
823
|
+
type index$c_LocalImageMappingPanelProps = LocalImageMappingPanelProps;
|
|
462
824
|
declare const index$c_Modal: typeof Modal;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
825
|
+
type index$c_ModalProps = ModalProps;
|
|
826
|
+
type index$c_OrderManagerOperations<T extends OrderableItem> = OrderManagerOperations<T>;
|
|
827
|
+
type index$c_OrderableItem = OrderableItem;
|
|
466
828
|
declare const index$c_Popover: typeof Popover;
|
|
467
829
|
declare const index$c_PopoverAnchor: typeof PopoverAnchor;
|
|
468
830
|
declare const index$c_PopoverContent: typeof PopoverContent;
|
|
469
831
|
declare const index$c_PopoverTrigger: typeof PopoverTrigger;
|
|
470
832
|
declare const index$c_Progress: typeof Progress;
|
|
471
|
-
|
|
833
|
+
type index$c_ProgressProps = ProgressProps;
|
|
472
834
|
declare const index$c_ScrollArea: typeof ScrollArea;
|
|
473
835
|
declare const index$c_ScrollBar: typeof ScrollBar;
|
|
474
836
|
declare const index$c_SearchBox: typeof SearchBox;
|
|
475
837
|
declare const index$c_SearchResultHint: typeof SearchResultHint;
|
|
476
|
-
|
|
838
|
+
type index$c_SearchResultHintProps = SearchResultHintProps;
|
|
477
839
|
declare const index$c_Select: typeof Select;
|
|
478
840
|
declare const index$c_SelectContent: typeof SelectContent;
|
|
479
841
|
declare const index$c_SelectGroup: typeof SelectGroup;
|
|
@@ -485,7 +847,7 @@ declare const index$c_SelectSeparator: typeof SelectSeparator;
|
|
|
485
847
|
declare const index$c_SelectTrigger: typeof SelectTrigger;
|
|
486
848
|
declare const index$c_SelectValue: typeof SelectValue;
|
|
487
849
|
declare const index$c_Separator: typeof Separator;
|
|
488
|
-
|
|
850
|
+
type index$c_SeparatorProps = SeparatorProps;
|
|
489
851
|
declare const index$c_SheetContent: typeof SheetContent;
|
|
490
852
|
declare const index$c_SheetDescription: typeof SheetDescription;
|
|
491
853
|
declare const index$c_SheetFooter: typeof SheetFooter;
|
|
@@ -506,7 +868,7 @@ declare const index$c_TooltipTrigger: typeof TooltipTrigger;
|
|
|
506
868
|
declare const index$c_badgeVariants: typeof badgeVariants;
|
|
507
869
|
declare const index$c_buttonVariants: typeof buttonVariants;
|
|
508
870
|
declare namespace index$c {
|
|
509
|
-
export { Dialog as AlertDialog, index$c_AlertDialogAction as AlertDialogAction, index$c_AlertDialogCancel as AlertDialogCancel, index$c_AlertDialogContent as AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, index$c_Avatar as Avatar, index$c_AvatarFallback as AvatarFallback, index$c_AvatarImage as AvatarImage, index$c_BackButton as BackButton, index$c_BackButtonProps as BackButtonProps, index$c_Badge as Badge, index$c_BadgeProps as BadgeProps, index$c_Ball as Ball, index$c_Button as Button, index$c_ButtonProps as ButtonProps, index$c_Card as Card, index$c_CardContent as CardContent, index$c_CardDescription as CardDescription, index$c_CardFooter as CardFooter, index$c_CardHeader as CardHeader, index$c_CardTitle as CardTitle, index$c_CollisionBalls as CollisionBalls, index$c_CollisionBallsConfig as CollisionBallsConfig, index$c_ConfirmModal as ConfirmModal, index$c_ConfirmModalProps as ConfirmModalProps, index$c_Dialog as Dialog, index$c_DialogClose as DialogClose, index$c_DialogContent as DialogContent, index$c_DialogContentProps as DialogContentProps, index$c_DialogDescription as DialogDescription, index$c_DialogFooter as DialogFooter, index$c_DialogHeader as DialogHeader, index$c_DialogOverlay as DialogOverlay, index$c_DialogPortal as DialogPortal, index$c_DialogTitle as DialogTitle, index$c_DialogTrigger as DialogTrigger, index$c_DropdownMenu as DropdownMenu, index$c_DropdownMenuCheckboxItem as DropdownMenuCheckboxItem, index$c_DropdownMenuContent as DropdownMenuContent, index$c_DropdownMenuGroup as DropdownMenuGroup, index$c_DropdownMenuItem as DropdownMenuItem, index$c_DropdownMenuLabel as DropdownMenuLabel, index$c_DropdownMenuPortal as DropdownMenuPortal, index$c_DropdownMenuRadioGroup as DropdownMenuRadioGroup, index$c_DropdownMenuRadioItem as DropdownMenuRadioItem, index$c_DropdownMenuSeparator as DropdownMenuSeparator, index$c_DropdownMenuShortcut as DropdownMenuShortcut, index$c_DropdownMenuSub as DropdownMenuSub, index$c_DropdownMenuSubContent as DropdownMenuSubContent, index$c_DropdownMenuSubTrigger as DropdownMenuSubTrigger, index$c_DropdownMenuTrigger as DropdownMenuTrigger, index$c_FilterButtonGroup as FilterButtonGroup, index$c_FilterButtonGroupProps as FilterButtonGroupProps, index$c_FilterOption as FilterOption, index$c_GenericOrderManager as GenericOrderManager, index$c_GenericOrderManagerProps as GenericOrderManagerProps, index$c_Grid as Grid, index$c_GridColumns as GridColumns, index$c_GridGap as GridGap, index$c_GridItem as GridItem, index$c_GridProps as GridProps, index$c_ImageMappingItem as ImageMappingItem, index$c_ImageMappingPanel as ImageMappingPanel, index$c_ImageMappingPanelProps as ImageMappingPanelProps, index$c_ImageMappingValue as ImageMappingValue, index$c_Input as Input, index$c_Label as Label, index$c_LocalImageMappingPanel as LocalImageMappingPanel, index$c_LocalImageMappingPanelProps as LocalImageMappingPanelProps, index$c_Modal as Modal, index$c_ModalProps as ModalProps, index$c_OrderManagerOperations as OrderManagerOperations, index$c_OrderableItem as OrderableItem, index$c_Popover as Popover, index$c_PopoverAnchor as PopoverAnchor, index$c_PopoverContent as PopoverContent, index$c_PopoverTrigger as PopoverTrigger, index$c_Progress as Progress, index$c_ProgressProps as ProgressProps, index$c_ScrollArea as ScrollArea, index$c_ScrollBar as ScrollBar, index$c_SearchBox as SearchBox, index$c_SearchResultHint as SearchResultHint, index$c_SearchResultHintProps as SearchResultHintProps, index$c_Select as Select, index$c_SelectContent as SelectContent, index$c_SelectGroup as SelectGroup, index$c_SelectItem as SelectItem, index$c_SelectLabel as SelectLabel, index$c_SelectScrollDownButton as SelectScrollDownButton, index$c_SelectScrollUpButton as SelectScrollUpButton, index$c_SelectSeparator as SelectSeparator, index$c_SelectTrigger as SelectTrigger, index$c_SelectValue as SelectValue, index$c_Separator as Separator, index$c_SeparatorProps as SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, index$c_SheetContent as SheetContent, index$c_SheetDescription as SheetDescription, index$c_SheetFooter as SheetFooter, index$c_SheetHeader as SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, index$c_SheetTitle as SheetTitle, DialogTrigger as SheetTrigger, index$c_Tabs as Tabs, index$c_TabsContent as TabsContent, index$c_TabsList as TabsList, index$c_TabsTrigger as TabsTrigger, index$c_Textarea as Textarea, index$c_Timeline as Timeline, index$c_TimelineConfig as TimelineConfig, index$c_TimelineItem as TimelineItem, index$c_Tooltip as Tooltip, index$c_TooltipContent as TooltipContent, index$c_TooltipProvider as TooltipProvider, index$c_TooltipTrigger as TooltipTrigger, index$c_badgeVariants as badgeVariants, index$c_buttonVariants as buttonVariants };
|
|
871
|
+
export { Dialog as AlertDialog, index$c_AlertDialogAction as AlertDialogAction, index$c_AlertDialogCancel as AlertDialogCancel, index$c_AlertDialogContent as AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, index$c_Avatar as Avatar, index$c_AvatarFallback as AvatarFallback, index$c_AvatarImage as AvatarImage, index$c_BackButton as BackButton, type index$c_BackButtonProps as BackButtonProps, index$c_Badge as Badge, type index$c_BadgeProps as BadgeProps, index$c_Ball as Ball, index$c_Button as Button, type index$c_ButtonProps as ButtonProps, index$c_Card as Card, index$c_CardContent as CardContent, index$c_CardDescription as CardDescription, index$c_CardFooter as CardFooter, index$c_CardHeader as CardHeader, index$c_CardTitle as CardTitle, index$c_CollisionBalls as CollisionBalls, index$c_CollisionBallsConfig as CollisionBallsConfig, index$c_ConfirmModal as ConfirmModal, type index$c_ConfirmModalProps as ConfirmModalProps, index$c_Dialog as Dialog, index$c_DialogClose as DialogClose, index$c_DialogContent as DialogContent, type index$c_DialogContentProps as DialogContentProps, index$c_DialogDescription as DialogDescription, index$c_DialogFooter as DialogFooter, index$c_DialogHeader as DialogHeader, index$c_DialogOverlay as DialogOverlay, index$c_DialogPortal as DialogPortal, index$c_DialogTitle as DialogTitle, index$c_DialogTrigger as DialogTrigger, index$c_DropdownMenu as DropdownMenu, index$c_DropdownMenuCheckboxItem as DropdownMenuCheckboxItem, index$c_DropdownMenuContent as DropdownMenuContent, index$c_DropdownMenuGroup as DropdownMenuGroup, index$c_DropdownMenuItem as DropdownMenuItem, index$c_DropdownMenuLabel as DropdownMenuLabel, index$c_DropdownMenuPortal as DropdownMenuPortal, index$c_DropdownMenuRadioGroup as DropdownMenuRadioGroup, index$c_DropdownMenuRadioItem as DropdownMenuRadioItem, index$c_DropdownMenuSeparator as DropdownMenuSeparator, index$c_DropdownMenuShortcut as DropdownMenuShortcut, index$c_DropdownMenuSub as DropdownMenuSub, index$c_DropdownMenuSubContent as DropdownMenuSubContent, index$c_DropdownMenuSubTrigger as DropdownMenuSubTrigger, index$c_DropdownMenuTrigger as DropdownMenuTrigger, index$c_FilterButtonGroup as FilterButtonGroup, type index$c_FilterButtonGroupProps as FilterButtonGroupProps, type index$c_FilterOption as FilterOption, index$c_GenericOrderManager as GenericOrderManager, type index$c_GenericOrderManagerProps as GenericOrderManagerProps, index$c_Grid as Grid, index$c_GridColumns as GridColumns, index$c_GridGap as GridGap, index$c_GridItem as GridItem, index$c_GridProps as GridProps, type index$c_ImageMappingItem as ImageMappingItem, index$c_ImageMappingPanel as ImageMappingPanel, type index$c_ImageMappingPanelProps as ImageMappingPanelProps, type index$c_ImageMappingValue as ImageMappingValue, index$c_Input as Input, index$c_Label as Label, index$c_LocalImageMappingPanel as LocalImageMappingPanel, type index$c_LocalImageMappingPanelProps as LocalImageMappingPanelProps, index$c_Modal as Modal, type index$c_ModalProps as ModalProps, type index$c_OrderManagerOperations as OrderManagerOperations, type index$c_OrderableItem as OrderableItem, index$c_Popover as Popover, index$c_PopoverAnchor as PopoverAnchor, index$c_PopoverContent as PopoverContent, index$c_PopoverTrigger as PopoverTrigger, index$c_Progress as Progress, type index$c_ProgressProps as ProgressProps, index$c_ScrollArea as ScrollArea, index$c_ScrollBar as ScrollBar, index$c_SearchBox as SearchBox, index$c_SearchResultHint as SearchResultHint, type index$c_SearchResultHintProps as SearchResultHintProps, index$c_Select as Select, index$c_SelectContent as SelectContent, index$c_SelectGroup as SelectGroup, index$c_SelectItem as SelectItem, index$c_SelectLabel as SelectLabel, index$c_SelectScrollDownButton as SelectScrollDownButton, index$c_SelectScrollUpButton as SelectScrollUpButton, index$c_SelectSeparator as SelectSeparator, index$c_SelectTrigger as SelectTrigger, index$c_SelectValue as SelectValue, index$c_Separator as Separator, type index$c_SeparatorProps as SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, index$c_SheetContent as SheetContent, index$c_SheetDescription as SheetDescription, index$c_SheetFooter as SheetFooter, index$c_SheetHeader as SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, index$c_SheetTitle as SheetTitle, DialogTrigger as SheetTrigger, index$c_Tabs as Tabs, index$c_TabsContent as TabsContent, index$c_TabsList as TabsList, index$c_TabsTrigger as TabsTrigger, index$c_Textarea as Textarea, index$c_Timeline as Timeline, index$c_TimelineConfig as TimelineConfig, index$c_TimelineItem as TimelineItem, index$c_Tooltip as Tooltip, index$c_TooltipContent as TooltipContent, index$c_TooltipProvider as TooltipProvider, index$c_TooltipTrigger as TooltipTrigger, index$c_badgeVariants as badgeVariants, index$c_buttonVariants as buttonVariants };
|
|
510
872
|
}
|
|
511
873
|
|
|
512
874
|
/**
|
|
@@ -10495,188 +10857,348 @@ interface SmartAssistantProps {
|
|
|
10495
10857
|
}
|
|
10496
10858
|
declare const SmartAssistant: React__default.FC<SmartAssistantProps>;
|
|
10497
10859
|
|
|
10498
|
-
|
|
10499
|
-
type
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
id: string;
|
|
10525
|
-
type: 'function';
|
|
10526
|
-
function: {
|
|
10527
|
-
name: string;
|
|
10528
|
-
arguments: string;
|
|
10529
|
-
};
|
|
10530
|
-
};
|
|
10531
|
-
interface AiMessage {
|
|
10532
|
-
role: AiRole;
|
|
10533
|
-
content: string;
|
|
10534
|
-
name?: string;
|
|
10535
|
-
toolCallId?: string;
|
|
10536
|
-
toolCalls?: AiToolCall[];
|
|
10860
|
+
/** 音频处理策略:native=chat 内嵌音频,stt=先转写再 chat,auto=按模型能力自动选择(失败时 STT 回退) */
|
|
10861
|
+
type AudioStrategy = 'native' | 'stt' | 'auto';
|
|
10862
|
+
/** 连接配置(调用方可显式传入,或与 env 合并) */
|
|
10863
|
+
interface AiConnectionSettings {
|
|
10864
|
+
apiKey: string;
|
|
10865
|
+
baseUrl: string;
|
|
10866
|
+
model?: string;
|
|
10867
|
+
textModel?: string;
|
|
10868
|
+
visionModel?: string;
|
|
10869
|
+
audioModel?: string;
|
|
10870
|
+
audioStrategy?: AudioStrategy;
|
|
10871
|
+
timeoutMs?: number;
|
|
10872
|
+
maxImageBytes?: number;
|
|
10873
|
+
maxAudioBytes?: number;
|
|
10874
|
+
}
|
|
10875
|
+
/** 客户端/请求可携带的 AI 连接配置(字段均可选,用于覆盖环境变量) */
|
|
10876
|
+
type AiClientSettings = Partial<AiConnectionSettings>;
|
|
10877
|
+
/** 解析后的完整连接配置 */
|
|
10878
|
+
interface AiConnectionConfig extends AiConnectionSettings {
|
|
10879
|
+
textModel: string;
|
|
10880
|
+
visionModel: string;
|
|
10881
|
+
audioModel: string;
|
|
10882
|
+
audioStrategy: AudioStrategy;
|
|
10883
|
+
timeoutMs: number;
|
|
10884
|
+
maxImageBytes: number;
|
|
10885
|
+
maxAudioBytes: number;
|
|
10537
10886
|
}
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10887
|
+
/** 统一 AI 任务请求 */
|
|
10888
|
+
interface AiApiRunRequest<TInput = unknown> {
|
|
10889
|
+
taskId: string;
|
|
10890
|
+
input: TInput;
|
|
10891
|
+
options?: AiTaskRunOptions;
|
|
10892
|
+
clientSettings?: AiClientSettings;
|
|
10542
10893
|
}
|
|
10543
|
-
interface
|
|
10894
|
+
interface AiTaskRunOptions {
|
|
10544
10895
|
model?: string;
|
|
10545
10896
|
temperature?: number;
|
|
10546
10897
|
maxTokens?: number;
|
|
10547
|
-
topP?: number;
|
|
10548
|
-
stop?: string | string[];
|
|
10549
|
-
stream?: boolean;
|
|
10550
|
-
tools?: AiToolDefinition[];
|
|
10551
|
-
toolChoice?: 'auto' | 'none' | AiToolChoice;
|
|
10552
10898
|
}
|
|
10553
|
-
|
|
10554
|
-
|
|
10899
|
+
/** 统一 AI 任务响应 */
|
|
10900
|
+
interface AiApiResponse<TData = unknown> {
|
|
10901
|
+
success: boolean;
|
|
10902
|
+
taskId: string;
|
|
10903
|
+
data?: TData;
|
|
10904
|
+
error?: AiApiErrorBody;
|
|
10905
|
+
meta?: AiApiResponseMeta;
|
|
10555
10906
|
}
|
|
10556
|
-
interface
|
|
10557
|
-
|
|
10907
|
+
interface AiApiErrorBody {
|
|
10908
|
+
code: AiApiErrorCode;
|
|
10909
|
+
message: string;
|
|
10910
|
+
details?: unknown;
|
|
10911
|
+
}
|
|
10912
|
+
type AiApiErrorCode = 'UNAUTHORIZED' | 'INVALID_INPUT' | 'TASK_NOT_FOUND' | 'AI_CONFIG_MISSING' | 'AI_REQUEST_FAILED' | 'AI_PARSE_FAILED' | 'PAYLOAD_TOO_LARGE' | 'UNSUPPORTED_MEDIA';
|
|
10913
|
+
interface AiApiResponseMeta {
|
|
10914
|
+
model: string;
|
|
10915
|
+
latencyMs: number;
|
|
10916
|
+
provider?: string;
|
|
10917
|
+
confidence?: number;
|
|
10918
|
+
rawSummary?: string;
|
|
10919
|
+
}
|
|
10920
|
+
/** 多模态图片输入(base64) */
|
|
10921
|
+
interface AiImageInput {
|
|
10922
|
+
base64: string;
|
|
10923
|
+
mimeType: string;
|
|
10924
|
+
}
|
|
10925
|
+
/** 多模态音频输入(base64) */
|
|
10926
|
+
interface AiAudioInput {
|
|
10927
|
+
base64: string;
|
|
10928
|
+
mimeType: string;
|
|
10929
|
+
}
|
|
10930
|
+
type AiMediaKind = 'image' | 'audio';
|
|
10931
|
+
interface AiImageMediaInput extends AiImageInput {
|
|
10932
|
+
kind: 'image';
|
|
10933
|
+
}
|
|
10934
|
+
interface AiAudioMediaInput extends AiAudioInput {
|
|
10935
|
+
kind: 'audio';
|
|
10936
|
+
}
|
|
10937
|
+
type AiMediaInput = AiImageMediaInput | AiAudioMediaInput;
|
|
10938
|
+
/** 通用文本补全任务输入 */
|
|
10939
|
+
interface TextCompletionInput {
|
|
10940
|
+
systemPrompt?: string;
|
|
10941
|
+
userPrompt: string;
|
|
10942
|
+
model?: string;
|
|
10943
|
+
temperature?: number;
|
|
10944
|
+
maxTokens?: number;
|
|
10945
|
+
/** 显式连接配置,优先级高于 clientSettings / 环境变量 */
|
|
10946
|
+
connection?: AiClientSettings;
|
|
10947
|
+
}
|
|
10948
|
+
/** 通用文本补全任务输出 */
|
|
10949
|
+
interface TextCompletionOutput {
|
|
10558
10950
|
content: string;
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
10951
|
+
rawText: string;
|
|
10952
|
+
}
|
|
10953
|
+
/** 通用结构化多模态任务输入 */
|
|
10954
|
+
interface StructuredMultimodalInput {
|
|
10955
|
+
systemPrompt: string;
|
|
10956
|
+
userPrompt: string;
|
|
10957
|
+
media?: AiMediaInput[];
|
|
10958
|
+
jsonSchemaHint?: string;
|
|
10959
|
+
model?: string;
|
|
10960
|
+
temperature?: number;
|
|
10961
|
+
maxTokens?: number;
|
|
10962
|
+
audioStrategy?: AudioStrategy;
|
|
10963
|
+
connection?: AiClientSettings;
|
|
10563
10964
|
}
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
toolCalls?: AiToolCall[];
|
|
10569
|
-
raw?: unknown;
|
|
10965
|
+
/** 通用结构化多模态任务输出 */
|
|
10966
|
+
interface StructuredMultimodalOutput {
|
|
10967
|
+
json: Record<string, unknown>;
|
|
10968
|
+
rawText: string;
|
|
10570
10969
|
}
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10970
|
+
declare const CORE_LLM_COMPLETION_TASK_ID = "core.llmCompletion";
|
|
10971
|
+
declare const CORE_STRUCTURED_MULTIMODAL_TASK_ID = "core.structuredMultimodal";
|
|
10972
|
+
declare const CORE_CONNECTIVITY_TEST_TASK_ID = "core.connectivityTest";
|
|
10973
|
+
interface ConnectivityTestOutput {
|
|
10974
|
+
ok: boolean;
|
|
10975
|
+
reply: string;
|
|
10576
10976
|
}
|
|
10577
|
-
interface
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10977
|
+
interface AiModelsListRequest {
|
|
10978
|
+
clientSettings?: AiClientSettings;
|
|
10979
|
+
}
|
|
10980
|
+
interface AiModelsListResponse {
|
|
10981
|
+
success: boolean;
|
|
10982
|
+
models: string[];
|
|
10983
|
+
visionModels: string[];
|
|
10984
|
+
suggestedVisionModel?: string;
|
|
10985
|
+
error?: {
|
|
10986
|
+
code: string;
|
|
10987
|
+
message: string;
|
|
10988
|
+
};
|
|
10989
|
+
}
|
|
10990
|
+
interface AiTaskContext {
|
|
10991
|
+
requestId?: string;
|
|
10992
|
+
userId?: string | number;
|
|
10993
|
+
clientSettings?: AiClientSettings;
|
|
10994
|
+
}
|
|
10995
|
+
interface AiTaskDefinition<TInput = unknown, TOutput = unknown> {
|
|
10996
|
+
id: string;
|
|
10997
|
+
description?: string;
|
|
10998
|
+
validateInput: (input: unknown) => TInput;
|
|
10999
|
+
execute: (input: TInput, ctx: AiTaskContext) => Promise<{
|
|
11000
|
+
data: TOutput;
|
|
11001
|
+
meta?: Partial<AiApiResponseMeta>;
|
|
11002
|
+
}>;
|
|
11003
|
+
}
|
|
11004
|
+
interface MultimodalChatParams {
|
|
11005
|
+
systemPrompt: string;
|
|
11006
|
+
userPrompt: string;
|
|
11007
|
+
media?: AiMediaInput[];
|
|
10581
11008
|
model?: string;
|
|
11009
|
+
temperature?: number;
|
|
11010
|
+
maxTokens?: number;
|
|
11011
|
+
jsonMode?: boolean;
|
|
11012
|
+
audioStrategy?: AudioStrategy;
|
|
11013
|
+
connection?: AiClientSettings;
|
|
11014
|
+
}
|
|
11015
|
+
interface MultimodalChatResult {
|
|
11016
|
+
content: string;
|
|
11017
|
+
model: string;
|
|
11018
|
+
raw: unknown;
|
|
11019
|
+
/** auto/native/stt 实际采用的音频处理方式 */
|
|
11020
|
+
audioHandling?: 'none' | 'native' | 'stt';
|
|
11021
|
+
/** STT 或 native 失败回退时的转写文本 */
|
|
11022
|
+
transcriptions?: string[];
|
|
11023
|
+
}
|
|
11024
|
+
|
|
11025
|
+
/**
|
|
11026
|
+
* 合并连接配置:显式 connection > clientSettings > 环境变量。
|
|
11027
|
+
* 缺少 apiKey 时返回 null。
|
|
11028
|
+
*/
|
|
11029
|
+
declare function resolveAiConnectionConfig(...sources: Array<AiClientSettings | undefined>): AiConnectionConfig | null;
|
|
11030
|
+
declare function requireAiConnectionConfig(...sources: Array<AiClientSettings | undefined>): AiConnectionConfig;
|
|
11031
|
+
|
|
11032
|
+
type JsonRequestOptions = {
|
|
11033
|
+
url: string;
|
|
11034
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
10582
11035
|
headers?: Record<string, string>;
|
|
11036
|
+
body?: unknown;
|
|
10583
11037
|
timeoutMs?: number;
|
|
10584
11038
|
requestAdapter?: RequestAdapter;
|
|
10585
|
-
|
|
10586
|
-
|
|
11039
|
+
};
|
|
11040
|
+
declare function requestJson<T>(options: JsonRequestOptions): Promise<T>;
|
|
11041
|
+
|
|
11042
|
+
declare const DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
|
|
11043
|
+
declare const DEFAULT_TEXT_MODEL = "gpt-4o-mini";
|
|
11044
|
+
type ChatRole = 'system' | 'user' | 'assistant';
|
|
11045
|
+
interface ChatMessage {
|
|
11046
|
+
role: ChatRole;
|
|
11047
|
+
content: string;
|
|
10587
11048
|
}
|
|
10588
|
-
interface
|
|
11049
|
+
interface CallChatOptions {
|
|
11050
|
+
/** OpenAI 兼容 API Base URL */
|
|
10589
11051
|
baseUrl: string;
|
|
10590
|
-
|
|
10591
|
-
|
|
11052
|
+
/** API Key */
|
|
11053
|
+
apiKey: string;
|
|
11054
|
+
model?: string;
|
|
11055
|
+
systemPrompt?: string;
|
|
11056
|
+
userPrompt?: string;
|
|
11057
|
+
messages?: ChatMessage[];
|
|
11058
|
+
temperature?: number;
|
|
11059
|
+
maxTokens?: number;
|
|
11060
|
+
topP?: number;
|
|
11061
|
+
stop?: string | string[];
|
|
11062
|
+
timeoutMs?: number;
|
|
11063
|
+
requestAdapter?: RequestAdapter;
|
|
10592
11064
|
}
|
|
10593
|
-
interface
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
}): Promise<AiChatResponse>;
|
|
11065
|
+
interface ChatUsage {
|
|
11066
|
+
promptTokens?: number;
|
|
11067
|
+
completionTokens?: number;
|
|
11068
|
+
totalTokens?: number;
|
|
10598
11069
|
}
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
11070
|
+
interface CallChatResult {
|
|
11071
|
+
content: string;
|
|
11072
|
+
model: string;
|
|
11073
|
+
usage?: ChatUsage;
|
|
11074
|
+
raw?: unknown;
|
|
10603
11075
|
}
|
|
10604
|
-
|
|
10605
|
-
|
|
11076
|
+
/**
|
|
11077
|
+
* OpenAI 兼容文本对话:外部传入 URL、Key、提示词,返回模型生成内容。
|
|
11078
|
+
*/
|
|
11079
|
+
declare function callChat(options: CallChatOptions): Promise<CallChatResult>;
|
|
11080
|
+
|
|
11081
|
+
interface CallCompletionParams {
|
|
10606
11082
|
systemPrompt?: string;
|
|
10607
|
-
|
|
10608
|
-
|
|
11083
|
+
userPrompt: string;
|
|
11084
|
+
model?: string;
|
|
11085
|
+
temperature?: number;
|
|
11086
|
+
maxTokens?: number;
|
|
11087
|
+
connection?: AiClientSettings;
|
|
10609
11088
|
}
|
|
10610
|
-
interface
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
sendMessage(input: string, options?: AiChatInputOptions): Promise<AiChatResponse>;
|
|
11089
|
+
interface CallCompletionResult {
|
|
11090
|
+
content: string;
|
|
11091
|
+
model: string;
|
|
11092
|
+
raw?: unknown;
|
|
10615
11093
|
}
|
|
11094
|
+
/**
|
|
11095
|
+
* 文本补全:连接信息与提示词均由调用方传入(或通过 connection 合并 env)。
|
|
11096
|
+
*/
|
|
11097
|
+
declare function callCompletion(params: CallCompletionParams, clientSettings?: AiClientSettings): Promise<CallCompletionResult>;
|
|
10616
11098
|
|
|
10617
|
-
|
|
11099
|
+
/**
|
|
11100
|
+
* OpenAI 兼容多模态对话:文本 + 可选图片/语音。
|
|
11101
|
+
* audioStrategy=auto 时:优先 chat 内嵌音频(native),失败或未支持则 STT 转写后走文本 chat。
|
|
11102
|
+
*/
|
|
11103
|
+
declare function callMultimodalChat(params: MultimodalChatParams, clientSettings?: AiClientSettings): Promise<MultimodalChatResult>;
|
|
10618
11104
|
|
|
10619
|
-
declare
|
|
11105
|
+
declare function extractJsonObject(text: string): Record<string, unknown>;
|
|
10620
11106
|
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
preserveUnknown?: boolean;
|
|
10624
|
-
}
|
|
10625
|
-
declare const applyPromptTemplate: (template: string, variables?: PromptVariables, options?: PromptTemplateOptions) => string;
|
|
11107
|
+
declare function assertValidImageInput(image: AiImageInput, maxImageBytes?: number): void;
|
|
11108
|
+
declare function fileToAiImageInput(file: File): Promise<AiImageInput>;
|
|
10626
11109
|
|
|
10627
|
-
declare
|
|
10628
|
-
declare
|
|
10629
|
-
declare
|
|
11110
|
+
declare function mimeToAudioFormat(mimeType: string): string;
|
|
11111
|
+
declare function assertValidAudioInput(audio: AiAudioInput, maxAudioBytes?: number): void;
|
|
11112
|
+
declare function fileToAiAudioInput(file: File): Promise<AiAudioInput>;
|
|
11113
|
+
declare function base64ToBlob(base64: string, mimeType: string): Blob;
|
|
10630
11114
|
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
template?: string;
|
|
10635
|
-
initialMessages?: AiMessage[];
|
|
10636
|
-
}
|
|
10637
|
-
declare const useAiChat: (options: UseAiChatOptions) => {
|
|
10638
|
-
status: AiChatStatus;
|
|
10639
|
-
isLoading: boolean;
|
|
10640
|
-
error: Error | null;
|
|
10641
|
-
messages: AiMessage[];
|
|
10642
|
-
lastResponse: AiChatResponse | null;
|
|
10643
|
-
sendMessage: (input: string, requestOptions?: AiChatInputOptions) => Promise<AiChatResponse>;
|
|
10644
|
-
reset: () => void;
|
|
10645
|
-
setSystemPrompt: (prompt?: string) => void;
|
|
11115
|
+
declare function splitMediaByKind(media: AiMediaInput[]): {
|
|
11116
|
+
images: AiMediaInput[];
|
|
11117
|
+
audios: AiMediaInput[];
|
|
10646
11118
|
};
|
|
11119
|
+
declare function assertValidMultimodalMedia(media: AiMediaInput[] | undefined, limits: {
|
|
11120
|
+
maxImageBytes: number;
|
|
11121
|
+
maxAudioBytes: number;
|
|
11122
|
+
maxImages?: number;
|
|
11123
|
+
maxAudios?: number;
|
|
11124
|
+
}): AiMediaInput[];
|
|
11125
|
+
|
|
11126
|
+
type ResolvedAudioHandling = 'none' | 'native' | 'stt';
|
|
11127
|
+
declare function resolveAudioHandling(options: {
|
|
11128
|
+
hasAudio: boolean;
|
|
11129
|
+
strategy: AudioStrategy;
|
|
11130
|
+
model: string;
|
|
11131
|
+
baseUrl: string;
|
|
11132
|
+
}): ResolvedAudioHandling;
|
|
11133
|
+
declare function isAudioInputError(message: string): boolean;
|
|
11134
|
+
declare function appendTranscriptionsToPrompt(userPrompt: string, transcriptions: string[]): string;
|
|
10647
11135
|
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
11136
|
+
interface TranscribeAudioOptions {
|
|
11137
|
+
audio: AiAudioInput;
|
|
11138
|
+
config: AiConnectionConfig;
|
|
11139
|
+
model?: string;
|
|
11140
|
+
language?: string;
|
|
10653
11141
|
}
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
declare
|
|
10670
|
-
declare
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
11142
|
+
declare function transcribeAudio(options: TranscribeAudioOptions): Promise<string>;
|
|
11143
|
+
declare function transcribeAudios(audios: AiAudioInput[], config: AiConnectionConfig, model?: string): Promise<string[]>;
|
|
11144
|
+
|
|
11145
|
+
declare function isLikelyNativeAudioChatModel(id: string): boolean;
|
|
11146
|
+
declare function isLikelySttModel(id: string): boolean;
|
|
11147
|
+
declare function filterSttModels(modelIds: string[]): string[];
|
|
11148
|
+
declare function pickDefaultSttModel(modelIds: string[], current?: string): string | undefined;
|
|
11149
|
+
declare function isLikelyVisionModel(id: string): boolean;
|
|
11150
|
+
declare function isKnownTextOnlyModel(id: string): boolean;
|
|
11151
|
+
declare function filterChatModels(modelIds: string[]): string[];
|
|
11152
|
+
declare function filterVisionModels(modelIds: string[]): string[];
|
|
11153
|
+
/** 从可用模型中挑选默认视觉模型 */
|
|
11154
|
+
declare function pickDefaultVisionModel(modelIds: string[], current?: string): string | undefined;
|
|
11155
|
+
|
|
11156
|
+
type VisionMessageFormat = 'openai' | 'ollama';
|
|
11157
|
+
declare function detectVisionMessageFormat(baseUrl: string): VisionMessageFormat;
|
|
11158
|
+
declare function assertVisionCapableModel(modelId: string, options?: {
|
|
11159
|
+
baseUrl?: string;
|
|
11160
|
+
hasImages?: boolean;
|
|
11161
|
+
}): void;
|
|
11162
|
+
declare function isImageUrlVariantError(message: string): boolean;
|
|
11163
|
+
declare function toVisionApiErrorMessage(rawMessage: string, modelId: string): string;
|
|
11164
|
+
|
|
11165
|
+
declare function buildMultimodalMessages(options: {
|
|
11166
|
+
systemPrompt: string;
|
|
11167
|
+
userPrompt: string;
|
|
11168
|
+
images: AiMediaInput[];
|
|
11169
|
+
nativeAudios: AiMediaInput[];
|
|
11170
|
+
format: VisionMessageFormat;
|
|
11171
|
+
}): Array<Record<string, unknown>>;
|
|
11172
|
+
declare function assertMultimodalCapableModel(modelId: string, options: {
|
|
11173
|
+
baseUrl?: string;
|
|
11174
|
+
hasImages?: boolean;
|
|
11175
|
+
hasNativeAudio?: boolean;
|
|
11176
|
+
}): void;
|
|
11177
|
+
|
|
11178
|
+
interface ListModelsResult {
|
|
11179
|
+
models: string[];
|
|
11180
|
+
visionModels: string[];
|
|
11181
|
+
suggestedVisionModel?: string;
|
|
11182
|
+
}
|
|
11183
|
+
declare function listOpenAiCompatibleModels(clientSettings?: AiClientSettings, currentVisionModel?: string): Promise<ListModelsResult>;
|
|
11184
|
+
|
|
11185
|
+
declare function registerAiTask<TInput, TOutput>(task: AiTaskDefinition<TInput, TOutput>): void;
|
|
11186
|
+
declare function getAiTask(taskId: string): AiTaskDefinition | undefined;
|
|
11187
|
+
declare function listAiTasks(): string[];
|
|
11188
|
+
declare function clearAiTasksForTest(): void;
|
|
11189
|
+
|
|
11190
|
+
declare function runAiTask<TData = unknown>(taskId: string, input: unknown, ctx?: AiTaskContext): Promise<AiApiResponse<TData>>;
|
|
11191
|
+
|
|
11192
|
+
/** 注册内置通用 AI 任务(幂等) */
|
|
11193
|
+
declare function registerCoreAiTasks(): void;
|
|
11194
|
+
/** 别名:确保 core 任务已注册 */
|
|
11195
|
+
declare const ensureCoreAiTasksRegistered: typeof registerCoreAiTasks;
|
|
11196
|
+
declare function resetCoreAiTasksForTest(): void;
|
|
11197
|
+
|
|
11198
|
+
declare const coreLlmCompletionTask: AiTaskDefinition<TextCompletionInput, TextCompletionOutput>;
|
|
11199
|
+
|
|
11200
|
+
declare const coreStructuredMultimodalTask: AiTaskDefinition<StructuredMultimodalInput, StructuredMultimodalOutput>;
|
|
11201
|
+
|
|
11202
|
+
declare const coreConnectivityTestTask: AiTaskDefinition<Record<string, never>, ConnectivityTestOutput>;
|
|
11203
|
+
|
|
11204
|
+
export { type AiApiErrorBody, type AiApiErrorCode, type AiApiResponse, type AiApiResponseMeta, type AiApiRunRequest, type AiAudioInput, type AiAudioMediaInput, type AiClientSettings, type AiConnectionConfig, type AiConnectionSettings, type AiImageInput, type AiImageMediaInput, type AiMediaInput, type AiMediaKind, type AiModelsListRequest, type AiModelsListResponse, type AiTaskContext, type AiTaskDefinition, type AiTaskRunOptions, Dialog as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, type AudioStrategy, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, Ball, Button, type ButtonProps, CORE_CONNECTIVITY_TEST_TASK_ID, CORE_LLM_COMPLETION_TASK_ID, CORE_STRUCTURED_MULTIMODAL_TASK_ID, type CallChatOptions, type CallChatResult, type CallCompletionParams, type CallCompletionResult, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatRole, type ChatUsage, CollisionBalls, CollisionBallsConfig, ConfirmModal, type ConfirmModalProps, type ConnectivityTestOutput, ConsoleLoggerAdapter, DEFAULT_OPENAI_BASE_URL, DEFAULT_TEXT_MODEL, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, GenericOrderManager, type GenericOrderManagerProps, Grid, GridColumns, GridGap, GridItem, GridProps, type ImageMappingItem, ImageMappingPanel, type ImageMappingPanelProps, type ImageMappingValue, Input, type JsonRequestOptions, Label, type ListModelsResult, LocalImageMappingPanel, type LocalImageMappingPanelProps, type LogEntry, LogLevel, Logger, type LoggerAdapter, type LoggerConfig, Modal, type ModalProps, type MultimodalChatParams, type MultimodalChatResult, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, type ProgressProps, type ResolvedAudioHandling, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, type SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, SheetTitle, DialogTrigger as SheetTrigger, SmartAssistant, type StorageAdapter, type StorageChangeEvent, type StructuredMultimodalInput, type StructuredMultimodalOutput, Tabs, TabsContent, TabsList, TabsTrigger, type TextCompletionInput, type TextCompletionOutput, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, TimelineConfig, TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TranscribeAudioOptions, type VisionMessageFormat, appendTranscriptionsToPrompt, arrayUtils, assertMultimodalCapableModel, assertValidAudioInput, assertValidImageInput, assertValidMultimodalMedia, assertVisionCapableModel, badgeVariants, base64ToBlob, buildMultimodalMessages, buttonVariants, callChat, callCompletion, callMultimodalChat, clearAiTasksForTest, cn, index as common, coreConnectivityTestTask, coreLlmCompletionTask, coreStructuredMultimodalTask, createLogger, debugUtils, detectVisionMessageFormat, ensureCoreAiTasksRegistered, errorUtils, extractJsonObject, fileToAiAudioInput, fileToAiImageInput, fileUtils, filterChatModels, filterSttModels, filterVisionModels, formatTime, getAiTask, isAudioInputError, isImageUrlVariantError, isKnownTextOnlyModel, isLikelyNativeAudioChatModel, isLikelySttModel, isLikelyVisionModel, japaneseUtils, listAiTasks, listOpenAiCompatibleModels, logger, mimeToAudioFormat, pickDefaultSttModel, pickDefaultVisionModel, registerAiTask, registerCoreAiTasks, requestJson, requireAiConnectionConfig, resetCoreAiTasksForTest, resolveAiConnectionConfig, resolveAudioHandling, runAiTask, splitMediaByKind, stringUtils, toVisionApiErrorMessage, transcribeAudio, transcribeAudios, useAsyncStorage, useBackgroundRemoval, useElectronStorage, useLocalStorage, useOCR, useSentimentAnalysis, useStorage, useTaroStorage, useTextGeneration, validators };
|