omnix-chat 0.1.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/CHANGELOG.md +34 -0
- package/LICENSE +21 -0
- package/README.md +360 -0
- package/dist/es-BoccmK_s.js +457 -0
- package/dist/es-BoccmK_s.js.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/logo.svg +1 -0
- package/dist/omnix-chat.es.js +3197 -0
- package/dist/omnix-chat.es.js.map +1 -0
- package/dist/omnix-chat.umd.js +4 -0
- package/dist/omnix-chat.umd.js.map +1 -0
- package/dist/react.es.js +26062 -0
- package/dist/react.es.js.map +1 -0
- package/dist/react.umd.js +593 -0
- package/dist/react.umd.js.map +1 -0
- package/dist/src/chat/ChatRoot.d.ts +9 -0
- package/dist/src/chat/ChatRoot.d.ts.map +1 -0
- package/dist/src/chat/bridge/index.d.ts +2 -0
- package/dist/src/chat/bridge/index.d.ts.map +1 -0
- package/dist/src/chat/bridge/messageBridge.d.ts +8 -0
- package/dist/src/chat/bridge/messageBridge.d.ts.map +1 -0
- package/dist/src/chat/components/AIAssistantBubble.d.ts +13 -0
- package/dist/src/chat/components/AIAssistantBubble.d.ts.map +1 -0
- package/dist/src/chat/components/ErrorBoundary.d.ts +25 -0
- package/dist/src/chat/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/chat/components/LauncherSlot.d.ts +8 -0
- package/dist/src/chat/components/LauncherSlot.d.ts.map +1 -0
- package/dist/src/chat/components/LoginForm.d.ts +7 -0
- package/dist/src/chat/components/LoginForm.d.ts.map +1 -0
- package/dist/src/chat/components/PanelHeaderTitle.d.ts +7 -0
- package/dist/src/chat/components/PanelHeaderTitle.d.ts.map +1 -0
- package/dist/src/chat/components/message/BlockExportActions.d.ts +7 -0
- package/dist/src/chat/components/message/BlockExportActions.d.ts.map +1 -0
- package/dist/src/chat/components/message/MessageBlockRenderer.d.ts +6 -0
- package/dist/src/chat/components/message/MessageBlockRenderer.d.ts.map +1 -0
- package/dist/src/chat/components/message/SafeMarkdownHtml.d.ts +11 -0
- package/dist/src/chat/components/message/SafeMarkdownHtml.d.ts.map +1 -0
- package/dist/src/chat/components/message/blockExport.d.ts +5 -0
- package/dist/src/chat/components/message/blockExport.d.ts.map +1 -0
- package/dist/src/chat/components/message/chartBlockUtils.d.ts +10 -0
- package/dist/src/chat/components/message/chartBlockUtils.d.ts.map +1 -0
- package/dist/src/chat/components/message/index.d.ts +4 -0
- package/dist/src/chat/components/message/index.d.ts.map +1 -0
- package/dist/src/chat/components/message/parseMessageBlocks.d.ts +15 -0
- package/dist/src/chat/components/message/parseMessageBlocks.d.ts.map +1 -0
- package/dist/src/chat/components/message/types.d.ts +89 -0
- package/dist/src/chat/components/message/types.d.ts.map +1 -0
- package/dist/src/chat/components/panel/AIAssistantPanel.d.ts +4 -0
- package/dist/src/chat/components/panel/AIAssistantPanel.d.ts.map +1 -0
- package/dist/src/chat/components/panel/AgentSkillBar.d.ts +17 -0
- package/dist/src/chat/components/panel/AgentSkillBar.d.ts.map +1 -0
- package/dist/src/chat/components/panel/BubbleAvatars.d.ts +7 -0
- package/dist/src/chat/components/panel/BubbleAvatars.d.ts.map +1 -0
- package/dist/src/chat/components/panel/ConversationSidebar.d.ts +23 -0
- package/dist/src/chat/components/panel/ConversationSidebar.d.ts.map +1 -0
- package/dist/src/chat/components/panel/DownFeedbackModal.d.ts +18 -0
- package/dist/src/chat/components/panel/DownFeedbackModal.d.ts.map +1 -0
- package/dist/src/chat/components/panel/MessageBody.d.ts +16 -0
- package/dist/src/chat/components/panel/MessageBody.d.ts.map +1 -0
- package/dist/src/chat/components/panel/MessageFeedbackFooter.d.ts +10 -0
- package/dist/src/chat/components/panel/MessageFeedbackFooter.d.ts.map +1 -0
- package/dist/src/chat/components/panel/MessageList.d.ts +13 -0
- package/dist/src/chat/components/panel/MessageList.d.ts.map +1 -0
- package/dist/src/chat/components/panel/PanelModals.d.ts +13 -0
- package/dist/src/chat/components/panel/PanelModals.d.ts.map +1 -0
- package/dist/src/chat/components/panel/PromptsSection.d.ts +11 -0
- package/dist/src/chat/components/panel/PromptsSection.d.ts.map +1 -0
- package/dist/src/chat/components/panel/constants.d.ts +83 -0
- package/dist/src/chat/components/panel/constants.d.ts.map +1 -0
- package/dist/src/chat/components/panel/index.d.ts +3 -0
- package/dist/src/chat/components/panel/index.d.ts.map +1 -0
- package/dist/src/chat/components/panel/types.d.ts +60 -0
- package/dist/src/chat/components/panel/types.d.ts.map +1 -0
- package/dist/src/chat/components/panel/useBubbleItems.d.ts +15 -0
- package/dist/src/chat/components/panel/useBubbleItems.d.ts.map +1 -0
- package/dist/src/chat/components/panel/useBubbleScroll.d.ts +21 -0
- package/dist/src/chat/components/panel/useBubbleScroll.d.ts.map +1 -0
- package/dist/src/chat/components/panel/useConversationSidebarScroll.d.ts +10 -0
- package/dist/src/chat/components/panel/useConversationSidebarScroll.d.ts.map +1 -0
- package/dist/src/chat/components/panel/utils.d.ts +25 -0
- package/dist/src/chat/components/panel/utils.d.ts.map +1 -0
- package/dist/src/chat/config/assistantPrompts.d.ts +9 -0
- package/dist/src/chat/config/assistantPrompts.d.ts.map +1 -0
- package/dist/src/chat/config/globalInteractionCopy.d.ts +19 -0
- package/dist/src/chat/config/globalInteractionCopy.d.ts.map +1 -0
- package/dist/src/chat/config/index.d.ts +2 -0
- package/dist/src/chat/config/index.d.ts.map +1 -0
- package/dist/src/chat/hooks/index.d.ts +4 -0
- package/dist/src/chat/hooks/index.d.ts.map +1 -0
- package/dist/src/chat/hooks/useClientState.d.ts +15 -0
- package/dist/src/chat/hooks/useClientState.d.ts.map +1 -0
- package/dist/src/chat/hooks/useDebouncedSessionPrepare.d.ts +9 -0
- package/dist/src/chat/hooks/useDebouncedSessionPrepare.d.ts.map +1 -0
- package/dist/src/chat/hooks/useLauncherPosition.d.ts +11 -0
- package/dist/src/chat/hooks/useLauncherPosition.d.ts.map +1 -0
- package/dist/src/chat/i18n.d.ts +11 -0
- package/dist/src/chat/i18n.d.ts.map +1 -0
- package/dist/src/chat/styles/host-styles.d.ts +10 -0
- package/dist/src/chat/styles/host-styles.d.ts.map +1 -0
- package/dist/src/chat/styles/inject.d.ts +4 -0
- package/dist/src/chat/styles/inject.d.ts.map +1 -0
- package/dist/src/chat/types.d.ts +56 -0
- package/dist/src/chat/types.d.ts.map +1 -0
- package/dist/src/chat/utils.d.ts +3 -0
- package/dist/src/chat/utils.d.ts.map +1 -0
- package/dist/src/core/api-envelope.d.ts +6 -0
- package/dist/src/core/api-envelope.d.ts.map +1 -0
- package/dist/src/core/auth-headers.d.ts +19 -0
- package/dist/src/core/auth-headers.d.ts.map +1 -0
- package/dist/src/core/auth-response.d.ts +9 -0
- package/dist/src/core/auth-response.d.ts.map +1 -0
- package/dist/src/core/auth-store.d.ts +23 -0
- package/dist/src/core/auth-store.d.ts.map +1 -0
- package/dist/src/core/auth-types.d.ts +26 -0
- package/dist/src/core/auth-types.d.ts.map +1 -0
- package/dist/src/core/auth.d.ts +25 -0
- package/dist/src/core/auth.d.ts.map +1 -0
- package/dist/src/core/chat-response.d.ts +66 -0
- package/dist/src/core/chat-response.d.ts.map +1 -0
- package/dist/src/core/chat-sse.d.ts +66 -0
- package/dist/src/core/chat-sse.d.ts.map +1 -0
- package/dist/src/core/errors.d.ts +16 -0
- package/dist/src/core/errors.d.ts.map +1 -0
- package/dist/src/core/events.d.ts +19 -0
- package/dist/src/core/events.d.ts.map +1 -0
- package/dist/src/core/feedback-utils.d.ts +9 -0
- package/dist/src/core/feedback-utils.d.ts.map +1 -0
- package/dist/src/core/http/client.d.ts +3 -0
- package/dist/src/core/http/client.d.ts.map +1 -0
- package/dist/src/core/http/errors.d.ts +6 -0
- package/dist/src/core/http/errors.d.ts.map +1 -0
- package/dist/src/core/http/index.d.ts +3 -0
- package/dist/src/core/http/index.d.ts.map +1 -0
- package/dist/src/core/http/sse.d.ts +5 -0
- package/dist/src/core/http/sse.d.ts.map +1 -0
- package/dist/src/core/http/types.d.ts +30 -0
- package/dist/src/core/http/types.d.ts.map +1 -0
- package/dist/src/core/instance.d.ts +135 -0
- package/dist/src/core/instance.d.ts.map +1 -0
- package/dist/src/core/message-blocks.d.ts +25 -0
- package/dist/src/core/message-blocks.d.ts.map +1 -0
- package/dist/src/core/resolve.d.ts +5 -0
- package/dist/src/core/resolve.d.ts.map +1 -0
- package/dist/src/core/services/agent.service.d.ts +18 -0
- package/dist/src/core/services/agent.service.d.ts.map +1 -0
- package/dist/src/core/services/auth.service.d.ts +14 -0
- package/dist/src/core/services/auth.service.d.ts.map +1 -0
- package/dist/src/core/services/chat.service.d.ts +28 -0
- package/dist/src/core/services/chat.service.d.ts.map +1 -0
- package/dist/src/core/services/feedback.service.d.ts +15 -0
- package/dist/src/core/services/feedback.service.d.ts.map +1 -0
- package/dist/src/core/services/index.d.ts +5 -0
- package/dist/src/core/services/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +15 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/react/AgentChat.d.ts +25 -0
- package/dist/src/react/AgentChat.d.ts.map +1 -0
- package/dist/src/react/AgentChatEmbedded.d.ts +12 -0
- package/dist/src/react/AgentChatEmbedded.d.ts.map +1 -0
- package/dist/src/react/AgentChatProvider.d.ts +15 -0
- package/dist/src/react/AgentChatProvider.d.ts.map +1 -0
- package/dist/src/react/context.d.ts +4 -0
- package/dist/src/react/context.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +11 -0
- package/dist/src/react/index.d.ts.map +1 -0
- package/dist/src/react/useAgentChat.d.ts +36 -0
- package/dist/src/react/useAgentChat.d.ts.map +1 -0
- package/dist/src/types.d.ts +337 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils/id.d.ts +7 -0
- package/dist/src/utils/id.d.ts.map +1 -0
- package/dist/src/utils/sdk-version.d.ts +9 -0
- package/dist/src/utils/sdk-version.d.ts.map +1 -0
- package/dist/xlsx-CXTDRHcz.js +12389 -0
- package/dist/xlsx-CXTDRHcz.js.map +1 -0
- package/package.json +115 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgentChatClient } from '../core/instance';
|
|
2
|
+
export interface ChatRootProps {
|
|
3
|
+
client: AgentChatClient;
|
|
4
|
+
hostElement: HTMLElement;
|
|
5
|
+
/** React tree root for cssinjs (embedded host element). */
|
|
6
|
+
styleContainer: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChatRoot({ client, hostElement, styleContainer }: ChatRootProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=ChatRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatRoot.d.ts","sourceRoot":"","sources":["../../../src/chat/ChatRoot.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;IACzB,2DAA2D;IAC3D,cAAc,EAAE,WAAW,CAAC;CAC7B;AAsBD,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,EAAE,aAAa,2CA6U9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat/bridge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConversationItemType } from '@ant-design/x';
|
|
2
|
+
import { AIAssistantMessage } from '../types';
|
|
3
|
+
import { AgentMessage, ChatSessionSummary } from '../../types';
|
|
4
|
+
export declare function mapSessionsToConversationItems(sessions: ChatSessionSummary[]): ConversationItemType[];
|
|
5
|
+
/** Maps agent-chat messages into the shape expected by {@link AIAssistantPanel}. */
|
|
6
|
+
export declare function mapAgentMessagesToAssistant(messages: AgentMessage[]): AIAssistantMessage[];
|
|
7
|
+
export declare function isAgentReplyInFlight(messages: AgentMessage[]): boolean;
|
|
8
|
+
//# sourceMappingURL=messageBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messageBridge.d.ts","sourceRoot":"","sources":["../../../../src/chat/bridge/messageBridge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AA0BpE,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,kBAAkB,EAAE,GAC7B,oBAAoB,EAAE,CAkBxB;AAOD,oFAAoF;AACpF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,kBAAkB,EAAE,CAkE1F;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,OAAO,CAEtE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react';
|
|
2
|
+
import { AIAssistantPosition } from '../types';
|
|
3
|
+
export interface AIAssistantBubbleProps {
|
|
4
|
+
position: AIAssistantPosition;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
logoSrc?: string;
|
|
7
|
+
onOpen: () => void;
|
|
8
|
+
onMouseDown: (event: ReactMouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
onTouchStart: (event: ReactTouchEvent<HTMLButtonElement>) => void;
|
|
10
|
+
onClick?: (event: ReactMouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
export default function AIAssistantBubble({ position, loading, logoSrc, onOpen, onMouseDown, onTouchStart, onClick, }: AIAssistantBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=AIAssistantBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIAssistantBubble.d.ts","sourceRoot":"","sources":["../../../../src/chat/components/AIAssistantBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,eAAe,EAC7B,UAAU,IAAI,eAAe,EAC9B,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAIpD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACjE,YAAY,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAClE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,QAAQ,EACR,OAAe,EACf,OAAO,EACP,MAAM,EACN,WAAW,EACX,YAAY,EACZ,OAAO,GACR,EAAE,sBAAsB,2CAwCxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
export interface ErrorBoundaryProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
resetKey?: string;
|
|
5
|
+
context?: {
|
|
6
|
+
module?: string;
|
|
7
|
+
};
|
|
8
|
+
fallbackRender?: (args: {
|
|
9
|
+
error: Error;
|
|
10
|
+
reset?: () => void;
|
|
11
|
+
}) => ReactNode;
|
|
12
|
+
}
|
|
13
|
+
interface ErrorBoundaryState {
|
|
14
|
+
error: Error | null;
|
|
15
|
+
}
|
|
16
|
+
export default class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
17
|
+
state: ErrorBoundaryState;
|
|
18
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
19
|
+
componentDidUpdate(prevProps: ErrorBoundaryProps): void;
|
|
20
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
21
|
+
private reset;
|
|
22
|
+
render(): ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=ErrorBoundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/chat/components/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC;CAC5E;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAC1F,KAAK,EAAE,kBAAkB,CAAmB;IAE5C,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB;IAIjE,kBAAkB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAMvD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;IAMtD,OAAO,CAAC,KAAK,CAEX;IAEF,MAAM,IAAI,SAAS;CAOpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AgentChatLauncherProps } from '../../types';
|
|
3
|
+
export interface LauncherSlotProps extends AgentChatLauncherProps {
|
|
4
|
+
logoSrc?: string;
|
|
5
|
+
launcher?: ReactNode | ((props: AgentChatLauncherProps) => ReactNode);
|
|
6
|
+
}
|
|
7
|
+
export declare function LauncherSlot({ position, loading, open, onMouseDown, onTouchStart, onClick, logoSrc, launcher, }: LauncherSlotProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=LauncherSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LauncherSlot.d.ts","sourceRoot":"","sources":["../../../../src/chat/components/LauncherSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAI1D,MAAM,WAAW,iBAAkB,SAAQ,sBAAsB;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,SAAS,CAAC,CAAC;CACvE;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,GACT,EAAE,iBAAiB,2CAyCnB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgentChatClient } from '../../core/instance';
|
|
2
|
+
export interface LoginFormProps {
|
|
3
|
+
client: AgentChatClient;
|
|
4
|
+
locale?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function LoginForm({ client, locale }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=LoginForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/chat/components/LoginForm.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,cAAc,2CA0D3D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface PanelHeaderTitleProps {
|
|
2
|
+
name?: string;
|
|
3
|
+
logo?: string;
|
|
4
|
+
fallback: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function PanelHeaderTitle({ name, logo, fallback }: PanelHeaderTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PanelHeaderTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelHeaderTitle.d.ts","sourceRoot":"","sources":["../../../../src/chat/components/PanelHeaderTitle.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAmB/E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface BlockExportActionsProps {
|
|
2
|
+
label: string;
|
|
3
|
+
locale?: string;
|
|
4
|
+
onExport: () => Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export declare function BlockExportActions({ label, locale, onExport }: BlockExportActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=BlockExportActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockExportActions.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/BlockExportActions.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,uBAAuB,2CAiCtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageBlockRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/MessageBlockRenderer.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,SAAS,CAAC;AA2exD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,MAAM,EACN,MAAM,GACP,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,2CAWA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface SafeMarkdownHtmlProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* 与 @ant-design/x-markdown 的 XMarkdown 不同:纯同步把 Markdown 转 HTML 并 DOMPurify 消毒,
|
|
7
|
+
* 不经过 useStreaming/useState,避免在部分 React 19 场景下出现 Maximum update depth。
|
|
8
|
+
* 复用同包的 index.css 以保持列表/代码块等基础样式与原先接近。
|
|
9
|
+
*/
|
|
10
|
+
export declare function SafeMarkdownHtml({ className, content }: SafeMarkdownHtmlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
//# sourceMappingURL=SafeMarkdownHtml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafeMarkdownHtml.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/SafeMarkdownHtml.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,qBAAqB,kDAe7E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TableBlock } from './types';
|
|
2
|
+
export declare function sanitizeExportFilename(raw: string, fallback: string): string;
|
|
3
|
+
export declare function exportTableToExcel(block: TableBlock): Promise<void>;
|
|
4
|
+
export declare function exportChartToPng(container: HTMLElement, title?: string): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=blockExport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockExport.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/blockExport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAezE;AAED,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,WAAW,EACtB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAcf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChartBlock } from './types';
|
|
2
|
+
/** Whether a chart block has enough data to render (not show loading placeholder). */
|
|
3
|
+
export declare function isChartBlockRenderable(block: ChartBlock): boolean;
|
|
4
|
+
export type PieChartDatum = {
|
|
5
|
+
name: string;
|
|
6
|
+
value: number;
|
|
7
|
+
};
|
|
8
|
+
/** Pie slices: xAxis[i] → label, first series values[i] → value. */
|
|
9
|
+
export declare function buildPieChartData(block: ChartBlock): PieChartDatum[];
|
|
10
|
+
//# sourceMappingURL=chartBlockUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartBlockUtils.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/chartBlockUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAQjE;AAED,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,oEAAoE;AACpE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,EAAE,CASpE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { appendMessageBlocks, applyBlockReplaceToBlocks, blocksToPlainText, parseMessageBlocks, unwrapMessageBlocksEnvelope, } from './parseMessageBlocks';
|
|
2
|
+
export { default as MessageBlockRenderer } from './MessageBlockRenderer';
|
|
3
|
+
export type { MessageBlock, MessageBlocksPayload } from './types';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MessageBlock } from './types';
|
|
2
|
+
interface BlockReplaceEvent {
|
|
3
|
+
event: "block_replace";
|
|
4
|
+
id: string;
|
|
5
|
+
block: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export declare function applyBlockReplaceToBlocks(blocks: MessageBlock[], event: BlockReplaceEvent): MessageBlock[];
|
|
8
|
+
export declare function parseMessageBlocks(rawContent: string | MessageBlock[]): MessageBlock[];
|
|
9
|
+
/** Unwrap a single text block that contains a `{"blocks":[...]}` payload (complete or streaming). */
|
|
10
|
+
export declare function unwrapMessageBlocksEnvelope(blocks: MessageBlock[]): MessageBlock[];
|
|
11
|
+
export declare function blocksToPlainText(blocks: MessageBlock[]): string;
|
|
12
|
+
/** Merge streamed {@link MessageBlocksPayload} chunks (v1.0). */
|
|
13
|
+
export declare function appendMessageBlocks(previous: MessageBlock[], incoming: MessageBlock[]): MessageBlock[];
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=parseMessageBlocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseMessageBlocks.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/parseMessageBlocks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,SAAS,CAAC;AAsDvD,UAAU,iBAAiB;IACzB,KAAK,EAAE,eAAe,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAaD,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,iBAAiB,GACvB,YAAY,EAAE,CAWhB;AA0ID,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GAAG,YAAY,EAAE,GAClC,YAAY,EAAE,CA8BhB;AAED,qGAAqG;AACrG,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAYlF;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAKhE;AAiBD,iEAAiE;AACjE,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,YAAY,EAAE,EACxB,QAAQ,EAAE,YAAY,EAAE,GACvB,YAAY,EAAE,CA8ChB"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export type MessageBlockType = "text" | "list" | "quote" | "code" | "chart" | "table" | "metric" | "alert" | "image" | "loading";
|
|
2
|
+
interface MessageBlockBase {
|
|
3
|
+
id?: string;
|
|
4
|
+
type: MessageBlockType;
|
|
5
|
+
}
|
|
6
|
+
export interface TextBlock extends MessageBlockBase {
|
|
7
|
+
type: "text";
|
|
8
|
+
content: string;
|
|
9
|
+
format?: "markdown" | "plain" | "html";
|
|
10
|
+
}
|
|
11
|
+
export interface ListBlock extends MessageBlockBase {
|
|
12
|
+
type: "list";
|
|
13
|
+
title?: string;
|
|
14
|
+
listType?: "bullet" | "ordered" | "checklist";
|
|
15
|
+
items: Array<{
|
|
16
|
+
text: string;
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export interface QuoteBlock extends MessageBlockBase {
|
|
21
|
+
type: "quote";
|
|
22
|
+
content: string;
|
|
23
|
+
source?: string;
|
|
24
|
+
url?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface CodeBlock extends MessageBlockBase {
|
|
27
|
+
type: "code";
|
|
28
|
+
language?: string;
|
|
29
|
+
filename?: string;
|
|
30
|
+
content: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ChartBlock extends MessageBlockBase {
|
|
33
|
+
type: "chart";
|
|
34
|
+
chartType?: "bar" | "line" | "pie";
|
|
35
|
+
title?: string;
|
|
36
|
+
/** horizontal: Y=类目(X轴数值);vertical: X=类目(默认) */
|
|
37
|
+
layout?: "horizontal" | "vertical";
|
|
38
|
+
xAxis: string[];
|
|
39
|
+
series: Array<{
|
|
40
|
+
name: string;
|
|
41
|
+
values: number[];
|
|
42
|
+
/** 单序列渲染类型;不传时回退到 chartType */
|
|
43
|
+
renderType?: "bar" | "line";
|
|
44
|
+
/** 支持双轴:left / right,默认 left */
|
|
45
|
+
yAxisId?: "left" | "right";
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
48
|
+
export interface TableBlock extends MessageBlockBase {
|
|
49
|
+
type: "table";
|
|
50
|
+
title?: string;
|
|
51
|
+
columns: Array<{
|
|
52
|
+
key: string;
|
|
53
|
+
label: string;
|
|
54
|
+
align?: "left" | "center" | "right";
|
|
55
|
+
}>;
|
|
56
|
+
data: Record<string, string | number | null>[];
|
|
57
|
+
}
|
|
58
|
+
export interface MetricBlock extends MessageBlockBase {
|
|
59
|
+
type: "metric";
|
|
60
|
+
items: Array<{
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
delta?: string;
|
|
64
|
+
trend?: "up" | "down" | "flat";
|
|
65
|
+
}>;
|
|
66
|
+
}
|
|
67
|
+
export interface AlertBlock extends MessageBlockBase {
|
|
68
|
+
type: "alert";
|
|
69
|
+
severity?: "info" | "success" | "warning" | "error";
|
|
70
|
+
title?: string;
|
|
71
|
+
message: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ImageBlock extends MessageBlockBase {
|
|
74
|
+
type: "image";
|
|
75
|
+
url: string;
|
|
76
|
+
alt?: string;
|
|
77
|
+
caption?: string;
|
|
78
|
+
width?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface LoadingBlock extends MessageBlockBase {
|
|
81
|
+
type: "loading";
|
|
82
|
+
hint?: string;
|
|
83
|
+
}
|
|
84
|
+
export type MessageBlock = TextBlock | ListBlock | QuoteBlock | CodeBlock | ChartBlock | TableBlock | MetricBlock | AlertBlock | ImageBlock | LoadingBlock;
|
|
85
|
+
export interface MessageBlocksPayload {
|
|
86
|
+
blocks: MessageBlock[];
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
89
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/message/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AIAssistantPanelProps } from './types';
|
|
2
|
+
export type { AIAssistantPanelProps } from './types';
|
|
3
|
+
export default function AIAssistantPanel({ open, sending, sessionsLoading, sessionsHasMore, sessionsLoadingMore, sessionMessagesLoading, sessionMessagesHasMore, sessionMessagesLoadingMore, errorMessage, messages, activeConversationId, conversationItems, onClose, onStopGenerating, onSend, onRetryFailedMessage, onRateMessageUp, onSubmitDownFeedback, onRemoveMessageFeedback, onLoadDownReasonTags, onLoadMoreSessionMessages, onLoadMoreSessions, onSelectConversation, onCreateConversation, onRemoveConversation, onPrepareSession, drawerGetContainer, getPopupContainer, title, projectName, projectLogo, locale, loginSlot, showPrompts, showConversationMenu, conversationGroupLabel, writeConfirmation, onConfirmWrite, onCancelWrite, agents, skills, selectedAgentId, selectedSkillId, agentsLoading, skillsLoading, agentsEmptyReason, showAgentSkillBar, onAgentChange, onSkillChange, }: AIAssistantPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=AIAssistantPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIAssistantPanel.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/AIAssistantPanel.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,YAAY,EACZ,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,OAAO,EACP,gBAAgB,EAChB,MAAM,EACN,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,kBAA0B,EAC1B,iBAAiB,EACjB,KAAa,EACb,WAAW,EACX,WAAW,EACX,MAAM,EACN,SAAS,EACT,WAAkB,EAClB,oBAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,MAAW,EACX,MAAW,EACX,eAAsB,EACtB,eAAsB,EACtB,aAAqB,EACrB,aAAqB,EACrB,iBAAwB,EACxB,iBAAwB,EACxB,aAAa,EACb,aAAa,GACd,EAAE,qBAAqB,2CAwSvB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AgentsEmptyReason, ChatAgentSummary, ChatSkillSummary } from '../../../types';
|
|
2
|
+
export interface AgentSkillBarProps {
|
|
3
|
+
agents: ChatAgentSummary[];
|
|
4
|
+
skills: ChatSkillSummary[];
|
|
5
|
+
selectedAgentId: string | null;
|
|
6
|
+
selectedSkillId: string | null;
|
|
7
|
+
agentsLoading: boolean;
|
|
8
|
+
skillsLoading: boolean;
|
|
9
|
+
agentsEmptyReason?: AgentsEmptyReason;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
locale?: string;
|
|
12
|
+
getPopupContainer?: () => HTMLElement;
|
|
13
|
+
onAgentChange: (agentId: string) => void;
|
|
14
|
+
onSkillChange: (skillId: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function AgentSkillBar({ agents, skills, selectedAgentId, selectedSkillId, agentsLoading, skillsLoading, agentsEmptyReason, disabled, locale, getPopupContainer, onAgentChange, onSkillChange, }: AgentSkillBarProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=AgentSkillBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentSkillBar.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/AgentSkillBar.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE5F,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,WAAW,CAAC;IACtC,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AA8DD,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,eAAe,EACf,eAAe,EACf,aAAa,EACb,aAAa,EACb,iBAAwB,EACxB,QAAgB,EAChB,MAAM,EACN,iBAAiB,EACjB,aAAa,EACb,aAAa,GACd,EAAE,kBAAkB,2CAwJpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface BubbleAvatarAssistantProps {
|
|
2
|
+
logoSrc?: string;
|
|
3
|
+
ariaLabel?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function BubbleAvatarUser(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function BubbleAvatarAssistant({ logoSrc, ariaLabel, }: BubbleAvatarAssistantProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=BubbleAvatars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BubbleAvatars.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/BubbleAvatars.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,4CAU/B;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,SAAiB,GAClB,EAAE,0BAA0B,2CAe5B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ConversationItemType } from '@ant-design/x';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface ConversationSidebarProps {
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
6
|
+
sessionsLoading: boolean;
|
|
7
|
+
sessionsHasMore: boolean;
|
|
8
|
+
sessionsLoadingMore: boolean;
|
|
9
|
+
conversationItems: ConversationItemType[];
|
|
10
|
+
activeConversationId: string;
|
|
11
|
+
conversationsGroupable?: {
|
|
12
|
+
label: (group: string) => ReactNode;
|
|
13
|
+
};
|
|
14
|
+
showConversationMenu?: boolean;
|
|
15
|
+
getPopupContainer?: () => HTMLElement;
|
|
16
|
+
locale?: string;
|
|
17
|
+
onRequestDelete: (sessionKey: string) => void;
|
|
18
|
+
onSelectConversation: (key: string) => void;
|
|
19
|
+
onCreateConversation: () => void;
|
|
20
|
+
onLoadMoreSessions: () => Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export declare function ConversationSidebar({ expanded, onExpandedChange, sessionsLoading, sessionsHasMore, sessionsLoadingMore, conversationItems, activeConversationId, conversationsGroupable, showConversationMenu, getPopupContainer, locale, onRequestDelete, onSelectConversation, onCreateConversation, onLoadMoreSessions, }: ConversationSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=ConversationSidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/ConversationSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAQvB,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;IAC1C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE;QAAE,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAA;KAAE,CAAC;IACjE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,WAAW,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,oBAAoB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,kBAAkB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,oBAA2B,EAC3B,iBAAiB,EACjB,MAAM,EACN,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,EAAE,wBAAwB,2CAmI1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MessageFeedbackDownReasonTag } from '../../../types';
|
|
2
|
+
export interface DownFeedbackModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
messageId: string | null;
|
|
5
|
+
locale?: string;
|
|
6
|
+
tags: MessageFeedbackDownReasonTag[];
|
|
7
|
+
tagsLoading: boolean;
|
|
8
|
+
submitting: boolean;
|
|
9
|
+
getPopupContainer?: () => HTMLElement;
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
onSubmit: (input: {
|
|
12
|
+
messageId: string;
|
|
13
|
+
reasonTags: string[];
|
|
14
|
+
comment: string;
|
|
15
|
+
}) => Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export declare function DownFeedbackModal({ open, messageId, locale, tags, tagsLoading, submitting, getPopupContainer, onCancel, onSubmit, }: DownFeedbackModalProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=DownFeedbackModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownFeedbackModal.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/DownFeedbackModal.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,4BAA4B,EAAE,CAAC;IACrC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,WAAW,CAAC;IACtC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,OAAO,EAAE,MAAM,CAAC;KACjB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,SAAS,EACT,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,QAAQ,GACT,EAAE,sBAAsB,2CA4FxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AIAssistantMessage } from '../../types';
|
|
2
|
+
export declare function AssistantBubbleListErrorFallback({ error, reset, }: {
|
|
3
|
+
error: Error;
|
|
4
|
+
reset?: () => void;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function UserMessageDeliveryFooter({ msg, onRetry, }: {
|
|
7
|
+
msg: AIAssistantMessage;
|
|
8
|
+
onRetry: (messageId: string) => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export declare function MessageBodyWithCopy({ msg, withCaret, isUser, locale, }: {
|
|
11
|
+
msg: AIAssistantMessage;
|
|
12
|
+
withCaret: boolean;
|
|
13
|
+
isUser: boolean;
|
|
14
|
+
locale?: string;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=MessageBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageBody.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/MessageBody.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AA8BtD,wBAAgB,gCAAgC,CAAC,EAC/C,KAAK,EACL,KAAK,GACN,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,2CAkBA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,GAAG,EACH,OAAO,GACR,EAAE;IACD,GAAG,EAAE,kBAAkB,CAAC;IACxB,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,kDAgBA;AAED,wBAAgB,mBAAmB,CAAC,EAClC,GAAG,EACH,SAAS,EACT,MAAM,EACN,MAAM,GACP,EAAE;IACD,GAAG,EAAE,kBAAkB,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,2CAmCA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AIAssistantMessage } from '../../types';
|
|
2
|
+
export interface MessageFeedbackFooterProps {
|
|
3
|
+
msg: AIAssistantMessage;
|
|
4
|
+
locale?: string;
|
|
5
|
+
onRateUp: (messageId: string) => Promise<void>;
|
|
6
|
+
onRateDown: (messageId: string) => void;
|
|
7
|
+
onRemoveFeedback: (messageId: string) => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare function MessageFeedbackFooter({ msg, locale, onRateUp, onRateDown, onRemoveFeedback, }: MessageFeedbackFooterProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=MessageFeedbackFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageFeedbackFooter.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/MessageFeedbackFooter.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,kBAAkB,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,wBAAgB,qBAAqB,CAAC,EACpC,GAAG,EACH,MAAM,EACN,QAAQ,EACR,UAAU,EACV,gBAAgB,GACjB,EAAE,0BAA0B,kDA+D5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BubbleItemType } from '@ant-design/x';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
export interface MessageListProps {
|
|
4
|
+
messagesColRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
sessionMessagesLoading: boolean;
|
|
6
|
+
activeConversationId: string;
|
|
7
|
+
bubbleItems: BubbleItemType[];
|
|
8
|
+
thinkOnlyStreaming: boolean;
|
|
9
|
+
showScrollToBottom: boolean;
|
|
10
|
+
onScrollToBottom: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function MessageList({ messagesColRef, sessionMessagesLoading, activeConversationId, bubbleItems, thinkOnlyStreaming, showScrollToBottom, onScrollToBottom, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACjD,sBAAsB,EAAE,OAAO,CAAC;IAChC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,WAAW,CAAC,EAC1B,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,EAAE,gBAAgB,2CAsElB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WriteConfirmationState } from '../../../types';
|
|
2
|
+
export interface PanelModalsProps {
|
|
3
|
+
pendingDeleteSessionId: string | null;
|
|
4
|
+
deleteSubmitting: boolean;
|
|
5
|
+
onDeleteCancel: () => void;
|
|
6
|
+
onDeleteConfirm: () => void;
|
|
7
|
+
getPopupContainer?: () => HTMLElement;
|
|
8
|
+
writeConfirmation?: WriteConfirmationState | null;
|
|
9
|
+
onConfirmWrite?: () => void | Promise<void>;
|
|
10
|
+
onCancelWrite?: () => void | Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export declare function PanelModals({ pendingDeleteSessionId, deleteSubmitting, onDeleteCancel, onDeleteConfirm, getPopupContainer, writeConfirmation, onConfirmWrite, onCancelWrite, }: PanelModalsProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=PanelModals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelModals.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/PanelModals.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,WAAW,CAAC;IACtC,iBAAiB,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,aAAa,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C;AAED,wBAAgB,WAAW,CAAC,EAC1B,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,aAAa,GACd,EAAE,gBAAgB,2CA2ClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PromptsItemType } from '@ant-design/x';
|
|
2
|
+
export interface PromptsSectionProps {
|
|
3
|
+
expanded: boolean;
|
|
4
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
5
|
+
promptItems: PromptsItemType[];
|
|
6
|
+
onPromptItemClick: (info: {
|
|
7
|
+
data: PromptsItemType;
|
|
8
|
+
}) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function PromptsSection({ expanded, onExpandedChange, promptItems, onPromptItemClick, }: PromptsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=PromptsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptsSection.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/PromptsSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAI9D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,eAAe,CAAA;KAAE,KAAK,IAAI,CAAC;CAC9D;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,iBAAiB,GAClB,EAAE,mBAAmB,2CAsDrB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const PANEL_MODAL_Z_INDEX = 100060;
|
|
2
|
+
export declare const MESSAGE_TIME_GROUP_MS: number;
|
|
3
|
+
export declare const ASSISTANT_PROMPT_ITEMS: import('@ant-design/x').PromptsItemType[];
|
|
4
|
+
/** 与 Vite `base`(含 CDN 子路径)对齐 */
|
|
5
|
+
export declare const ASSISTANT_AVATAR_SRC: string;
|
|
6
|
+
export declare const assistantPromptsListStyles: {
|
|
7
|
+
readonly root: {
|
|
8
|
+
readonly padding: "8px 14px 12px";
|
|
9
|
+
readonly margin: 0;
|
|
10
|
+
readonly background: "transparent";
|
|
11
|
+
readonly border: "none";
|
|
12
|
+
readonly boxShadow: "none";
|
|
13
|
+
readonly borderRadius: 0;
|
|
14
|
+
};
|
|
15
|
+
readonly list: {
|
|
16
|
+
readonly gap: 10;
|
|
17
|
+
};
|
|
18
|
+
readonly item: {
|
|
19
|
+
readonly minWidth: 216;
|
|
20
|
+
readonly maxWidth: 300;
|
|
21
|
+
readonly paddingBlock: 12;
|
|
22
|
+
readonly paddingInline: 14;
|
|
23
|
+
readonly borderRadius: 10;
|
|
24
|
+
readonly background: "rgba(255, 255, 255, 0.95)";
|
|
25
|
+
readonly border: "1px solid rgba(22, 119, 255, 0.12)";
|
|
26
|
+
readonly boxShadow: "0 2px 10px rgba(15, 23, 42, 0.06)";
|
|
27
|
+
};
|
|
28
|
+
readonly itemContent: {
|
|
29
|
+
readonly gap: 6;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const bubbleStylesUser: {
|
|
33
|
+
readonly content: {
|
|
34
|
+
readonly background: "#1677ff";
|
|
35
|
+
readonly color: "#fff";
|
|
36
|
+
readonly border: "none";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const bubbleStylesAssistant: {
|
|
40
|
+
readonly content: {
|
|
41
|
+
readonly background: "#fff";
|
|
42
|
+
readonly color: "rgba(0, 0, 0, 0.88)";
|
|
43
|
+
readonly border: "1px solid var(--border, #e8e8e8)";
|
|
44
|
+
readonly boxShadow: "0 1px 2px rgba(15, 23, 42, 0.06)";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const bubbleStylesLayout: {
|
|
48
|
+
readonly root: {
|
|
49
|
+
readonly alignItems: "flex-start";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const drawerStyles: {
|
|
53
|
+
readonly root: {
|
|
54
|
+
readonly position: "absolute";
|
|
55
|
+
readonly inset: 0;
|
|
56
|
+
readonly width: "100%";
|
|
57
|
+
readonly height: "100%";
|
|
58
|
+
};
|
|
59
|
+
readonly wrapper: {
|
|
60
|
+
readonly position: "absolute";
|
|
61
|
+
readonly inset: 0;
|
|
62
|
+
readonly width: "100%";
|
|
63
|
+
readonly height: "100%";
|
|
64
|
+
};
|
|
65
|
+
readonly section: {
|
|
66
|
+
readonly overflow: "hidden";
|
|
67
|
+
readonly display: "flex";
|
|
68
|
+
readonly flexDirection: "column";
|
|
69
|
+
readonly height: "100%";
|
|
70
|
+
readonly flex: 1;
|
|
71
|
+
readonly minHeight: 0;
|
|
72
|
+
};
|
|
73
|
+
readonly body: {
|
|
74
|
+
readonly padding: 0;
|
|
75
|
+
readonly display: "flex";
|
|
76
|
+
readonly flexDirection: "column";
|
|
77
|
+
readonly flex: 1;
|
|
78
|
+
readonly minHeight: 0;
|
|
79
|
+
readonly overflow: "hidden";
|
|
80
|
+
readonly height: "100%";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/chat/components/panel/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,SAAU,CAAC;AAC3C,eAAO,MAAM,qBAAqB,QAAgB,CAAC;AACnD,eAAO,MAAM,sBAAsB,2CAAgC,CAAC;AAEpE,iCAAiC;AACjC,eAAO,MAAM,oBAAoB,QAA6D,CAAC;AAE/F,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;CAqB7B,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;CAErB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Bf,CAAC"}
|