@orion-ds/react 2.0.1 → 2.0.2
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/AI_COMPONENTS.md +68 -1
- package/AI_QUICKREF.md +1 -1
- package/README.md +14 -0
- package/dist/components/Chat/Chat.d.ts +45 -0
- package/dist/components/Chat/Chat.d.ts.map +1 -0
- package/dist/components/Chat/Chat.types.d.ts +392 -0
- package/dist/components/Chat/Chat.types.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatAttachment.d.ts +10 -0
- package/dist/components/Chat/components/ChatAttachment.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatAudioPlayer.d.ts +9 -0
- package/dist/components/Chat/components/ChatAudioPlayer.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatCodeBlock.d.ts +10 -0
- package/dist/components/Chat/components/ChatCodeBlock.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatFileUpload.d.ts +9 -0
- package/dist/components/Chat/components/ChatFileUpload.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatHeader.d.ts +9 -0
- package/dist/components/Chat/components/ChatHeader.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatImagePreview.d.ts +9 -0
- package/dist/components/Chat/components/ChatImagePreview.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatInput.d.ts +10 -0
- package/dist/components/Chat/components/ChatInput.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatLightbox.d.ts +9 -0
- package/dist/components/Chat/components/ChatLightbox.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatMarkdown.d.ts +10 -0
- package/dist/components/Chat/components/ChatMarkdown.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatMessage.d.ts +10 -0
- package/dist/components/Chat/components/ChatMessage.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatMessages.d.ts +10 -0
- package/dist/components/Chat/components/ChatMessages.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatSidebar.d.ts +10 -0
- package/dist/components/Chat/components/ChatSidebar.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatTypingIndicator.d.ts +14 -0
- package/dist/components/Chat/components/ChatTypingIndicator.d.ts.map +1 -0
- package/dist/components/Chat/components/ChatVoiceRecorder.d.ts +9 -0
- package/dist/components/Chat/components/ChatVoiceRecorder.d.ts.map +1 -0
- package/dist/components/Chat/components/index.d.ts +18 -0
- package/dist/components/Chat/components/index.d.ts.map +1 -0
- package/dist/components/Chat/hooks/index.d.ts +12 -0
- package/dist/components/Chat/hooks/index.d.ts.map +1 -0
- package/dist/components/Chat/hooks/useAutoScroll.d.ts +24 -0
- package/dist/components/Chat/hooks/useAutoScroll.d.ts.map +1 -0
- package/dist/components/Chat/hooks/useChatInput.d.ts +43 -0
- package/dist/components/Chat/hooks/useChatInput.d.ts.map +1 -0
- package/dist/components/Chat/hooks/useStreamingText.d.ts +22 -0
- package/dist/components/Chat/hooks/useStreamingText.d.ts.map +1 -0
- package/dist/components/Chat/hooks/useVoiceRecorder.d.ts +31 -0
- package/dist/components/Chat/hooks/useVoiceRecorder.d.ts.map +1 -0
- package/dist/components/Chat/index.d.ts +28 -0
- package/dist/components/Chat/index.d.ts.map +1 -0
- package/dist/components/Chat/utils.d.ts +16 -0
- package/dist/components/Chat/utils.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/docs/DocComponents.d.ts +60 -0
- package/dist/docs/DocComponents.d.ts.map +1 -0
- package/dist/index.cjs +60 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +51573 -18518
- package/dist/index.mjs.map +1 -1
- package/dist/react.css +1 -1
- package/dist/sections/Chat/ChatSection.d.ts +22 -0
- package/dist/sections/Chat/ChatSection.d.ts.map +1 -0
- package/dist/sections/Chat/index.d.ts +19 -0
- package/dist/sections/Chat/index.d.ts.map +1 -0
- package/dist/sections/index.d.ts +2 -0
- package/dist/sections/index.d.ts.map +1 -1
- package/dist/styles.css +65 -57
- package/dist/templates/app/ChatPageTemplate/ChatPageTemplate.d.ts +21 -0
- package/dist/templates/app/ChatPageTemplate/ChatPageTemplate.d.ts.map +1 -0
- package/dist/templates/app/ChatPageTemplate/index.d.ts +19 -0
- package/dist/templates/app/ChatPageTemplate/index.d.ts.map +1 -0
- package/dist/templates/app/index.d.ts +2 -0
- package/dist/templates/app/index.d.ts.map +1 -1
- package/package.json +6 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatInput Component
|
|
3
|
+
*
|
|
4
|
+
* Multi-line input with attachment support, voice recording,
|
|
5
|
+
* and send functionality.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { ChatInputProps } from '../Chat.types';
|
|
9
|
+
export declare const ChatInput: React.ForwardRefExoticComponent<ChatInputProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
10
|
+
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatInput.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAcpD,eAAO,MAAM,SAAS,4FA4OrB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatLightbox Component
|
|
3
|
+
*
|
|
4
|
+
* Full-screen image viewer with keyboard navigation and focus trap.
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { ChatLightboxProps } from '../Chat.types';
|
|
8
|
+
export declare const ChatLightbox: React.FC<ChatLightboxProps>;
|
|
9
|
+
//# sourceMappingURL=ChatLightbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatLightbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatLightbox.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyFpD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatMarkdown Component
|
|
3
|
+
*
|
|
4
|
+
* Markdown renderer with support for GFM (tables, strikethrough, etc.)
|
|
5
|
+
* and custom code block rendering.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { ChatMarkdownProps } from '../Chat.types';
|
|
9
|
+
export declare const ChatMarkdown: React.FC<ChatMarkdownProps>;
|
|
10
|
+
//# sourceMappingURL=ChatMarkdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMarkdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatMarkdown.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8DpD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatMessage Component
|
|
3
|
+
*
|
|
4
|
+
* Individual message bubble with support for text, markdown,
|
|
5
|
+
* attachments, reactions, retry, and various states.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { ChatMessageProps } from '../Chat.types';
|
|
9
|
+
export declare const ChatMessage: React.FC<ChatMessageProps>;
|
|
10
|
+
//# sourceMappingURL=ChatMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatMessage.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA6BtD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2LlD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatMessages Component
|
|
3
|
+
*
|
|
4
|
+
* Scrollable container for chat messages with auto-scroll support
|
|
5
|
+
* and accessibility features.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { ChatMessagesProps } from '../Chat.types';
|
|
9
|
+
export declare const ChatMessages: React.ForwardRefExoticComponent<ChatMessagesProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
//# sourceMappingURL=ChatMessages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMessages.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatMessages.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,YAAY,0FAkDxB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatSidebar Component
|
|
3
|
+
*
|
|
4
|
+
* Sidebar with conversation history, search, and management actions.
|
|
5
|
+
* Conversations are grouped by date (Today, Yesterday, Previous 7 days, etc.)
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { ChatSidebarProps } from '../Chat.types';
|
|
9
|
+
export declare const ChatSidebar: React.FC<ChatSidebarProps>;
|
|
10
|
+
//# sourceMappingURL=ChatSidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatSidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,gBAAgB,EAAoB,MAAM,eAAe,CAAC;AAwExE,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyPlD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatTypingIndicator Component
|
|
3
|
+
*
|
|
4
|
+
* Circular processing indicator shown before content generation begins.
|
|
5
|
+
* Intentionally abstract — communicates activity without representing
|
|
6
|
+
* specific progress, reducing temporal expectations.
|
|
7
|
+
*
|
|
8
|
+
* Renders in assistant-message layout so the transition to streaming
|
|
9
|
+
* content feels seamless. Avatar hidden by default, matching ChatMessage.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { ChatTypingIndicatorProps } from '../Chat.types';
|
|
13
|
+
export declare const ChatTypingIndicator: React.FC<ChatTypingIndicatorProps>;
|
|
14
|
+
//# sourceMappingURL=ChatTypingIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatTypingIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatTypingIndicator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG9D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAoBlE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatVoiceRecorder Component
|
|
3
|
+
*
|
|
4
|
+
* Voice recording UI with waveform visualization.
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { ChatVoiceRecorderProps } from '../Chat.types';
|
|
8
|
+
export declare const ChatVoiceRecorder: React.FC<ChatVoiceRecorderProps>;
|
|
9
|
+
//# sourceMappingURL=ChatVoiceRecorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatVoiceRecorder.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/ChatVoiceRecorder.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAK5D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmJ9D,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat Component - Sub-components
|
|
3
|
+
*/
|
|
4
|
+
export { ChatMessage } from './ChatMessage';
|
|
5
|
+
export { ChatMessages } from './ChatMessages';
|
|
6
|
+
export { ChatInput } from './ChatInput';
|
|
7
|
+
export { ChatHeader } from './ChatHeader';
|
|
8
|
+
export { ChatTypingIndicator } from './ChatTypingIndicator';
|
|
9
|
+
export { ChatCodeBlock } from './ChatCodeBlock';
|
|
10
|
+
export { ChatMarkdown } from './ChatMarkdown';
|
|
11
|
+
export { ChatImagePreview } from './ChatImagePreview';
|
|
12
|
+
export { ChatAudioPlayer } from './ChatAudioPlayer';
|
|
13
|
+
export { ChatVoiceRecorder } from './ChatVoiceRecorder';
|
|
14
|
+
export { ChatFileUpload } from './ChatFileUpload';
|
|
15
|
+
export { ChatAttachment } from './ChatAttachment';
|
|
16
|
+
export { ChatLightbox } from './ChatLightbox';
|
|
17
|
+
export { ChatSidebar } from './ChatSidebar';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat Component Hooks
|
|
3
|
+
*/
|
|
4
|
+
export { useAutoScroll } from './useAutoScroll';
|
|
5
|
+
export type { UseAutoScrollOptions, UseAutoScrollReturn } from './useAutoScroll';
|
|
6
|
+
export { useVoiceRecorder } from './useVoiceRecorder';
|
|
7
|
+
export type { UseVoiceRecorderOptions, UseVoiceRecorderReturn } from './useVoiceRecorder';
|
|
8
|
+
export { useChatInput } from './useChatInput';
|
|
9
|
+
export type { UseChatInputOptions, UseChatInputReturn } from './useChatInput';
|
|
10
|
+
export { useStreamingText } from './useStreamingText';
|
|
11
|
+
export type { UseStreamingTextOptions, UseStreamingTextReturn } from './useStreamingText';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE1F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useAutoScroll Hook
|
|
3
|
+
*
|
|
4
|
+
* Automatically scrolls to the bottom of a container when new content is added.
|
|
5
|
+
* Includes smart detection to pause auto-scroll when user scrolls up.
|
|
6
|
+
*/
|
|
7
|
+
export interface UseAutoScrollOptions {
|
|
8
|
+
/** Whether auto-scroll is enabled */
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
/** Threshold in pixels from bottom to consider "at bottom" */
|
|
11
|
+
threshold?: number;
|
|
12
|
+
/** Smooth scroll behavior */
|
|
13
|
+
smooth?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface UseAutoScrollReturn {
|
|
16
|
+
/** Ref to attach to the scrollable container */
|
|
17
|
+
scrollRef: React.RefObject<HTMLDivElement | null>;
|
|
18
|
+
/** Whether the user is currently at the bottom */
|
|
19
|
+
isAtBottom: boolean;
|
|
20
|
+
/** Manually scroll to bottom */
|
|
21
|
+
scrollToBottom: () => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function useAutoScroll(options?: UseAutoScrollOptions): UseAutoScrollReturn;
|
|
24
|
+
//# sourceMappingURL=useAutoScroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAutoScroll.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/hooks/useAutoScroll.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,oBAAoB;IACnC,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAClD,kDAAkD;IAClD,UAAU,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,wBAAgB,aAAa,CAC3B,OAAO,GAAE,oBAAyB,GACjC,mBAAmB,CAoFrB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useChatInput Hook
|
|
3
|
+
*
|
|
4
|
+
* Manages chat input state including text, attachments, and submission.
|
|
5
|
+
*/
|
|
6
|
+
export interface UseChatInputOptions {
|
|
7
|
+
/** Maximum character count */
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
/** Callback when message is sent */
|
|
10
|
+
onSend?: (message: string, attachments?: File[]) => void;
|
|
11
|
+
/** Whether input is disabled */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface UseChatInputReturn {
|
|
15
|
+
/** Current input value */
|
|
16
|
+
value: string;
|
|
17
|
+
/** Set input value */
|
|
18
|
+
setValue: (value: string) => void;
|
|
19
|
+
/** Pending file attachments */
|
|
20
|
+
attachments: File[];
|
|
21
|
+
/** Add files to attachments */
|
|
22
|
+
addAttachments: (files: File[]) => void;
|
|
23
|
+
/** Remove attachment by index */
|
|
24
|
+
removeAttachment: (index: number) => void;
|
|
25
|
+
/** Clear all attachments */
|
|
26
|
+
clearAttachments: () => void;
|
|
27
|
+
/** Handle form submission */
|
|
28
|
+
handleSubmit: () => void;
|
|
29
|
+
/** Handle key down (for Enter to send) */
|
|
30
|
+
handleKeyDown: (e: React.KeyboardEvent) => void;
|
|
31
|
+
/** Ref for textarea element */
|
|
32
|
+
textareaRef: React.RefObject<HTMLTextAreaElement | null>;
|
|
33
|
+
/** Whether input is empty */
|
|
34
|
+
isEmpty: boolean;
|
|
35
|
+
/** Current character count */
|
|
36
|
+
charCount: number;
|
|
37
|
+
/** Whether character limit is exceeded */
|
|
38
|
+
isOverLimit: boolean;
|
|
39
|
+
/** Focus the input */
|
|
40
|
+
focus: () => void;
|
|
41
|
+
}
|
|
42
|
+
export declare function useChatInput(options?: UseChatInputOptions): UseChatInputReturn;
|
|
43
|
+
//# sourceMappingURL=useChatInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChatInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/hooks/useChatInput.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACzD,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+BAA+B;IAC/B,WAAW,EAAE,IAAI,EAAE,CAAC;IACpB,+BAA+B;IAC/B,cAAc,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC,iCAAiC;IACjC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,4BAA4B;IAC5B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,6BAA6B;IAC7B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,0CAA0C;IAC1C,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IAChD,+BAA+B;IAC/B,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACzD,6BAA6B;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,sBAAsB;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,kBAAkB,CAwFlF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useStreamingText Hook
|
|
3
|
+
*
|
|
4
|
+
* Reveals text progressively, word by word, simulating real-time
|
|
5
|
+
* content generation. Content is final — text only grows, never rewrites.
|
|
6
|
+
*/
|
|
7
|
+
export interface UseStreamingTextOptions {
|
|
8
|
+
/** Words revealed per tick (default: 2) */
|
|
9
|
+
wordsPerTick?: number;
|
|
10
|
+
/** Milliseconds between ticks (default: 60) */
|
|
11
|
+
intervalMs?: number;
|
|
12
|
+
/** Whether streaming is active (default: true) */
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface UseStreamingTextReturn {
|
|
16
|
+
/** The portion of text currently visible */
|
|
17
|
+
displayText: string;
|
|
18
|
+
/** Whether all text has been revealed */
|
|
19
|
+
isComplete: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function useStreamingText(fullText: string, options?: UseStreamingTextOptions): UseStreamingTextReturn;
|
|
22
|
+
//# sourceMappingURL=useStreamingText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStreamingText.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/hooks/useStreamingText.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,uBAAuB;IACtC,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,uBAA4B,GACpC,sBAAsB,CAqCxB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useVoiceRecorder Hook
|
|
3
|
+
*
|
|
4
|
+
* Provides voice recording functionality using the MediaRecorder API.
|
|
5
|
+
* Includes duration tracking and error handling.
|
|
6
|
+
*/
|
|
7
|
+
import type { VoiceRecorderState } from '../Chat.types';
|
|
8
|
+
export interface UseVoiceRecorderOptions {
|
|
9
|
+
/** Maximum recording duration in seconds */
|
|
10
|
+
maxDuration?: number;
|
|
11
|
+
/** Audio MIME type */
|
|
12
|
+
mimeType?: string;
|
|
13
|
+
/** Callback when recording is complete */
|
|
14
|
+
onRecordingComplete?: (blob: Blob) => void;
|
|
15
|
+
/** Callback on error */
|
|
16
|
+
onError?: (error: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface UseVoiceRecorderReturn extends VoiceRecorderState {
|
|
19
|
+
/** Start recording */
|
|
20
|
+
startRecording: () => Promise<void>;
|
|
21
|
+
/** Stop recording */
|
|
22
|
+
stopRecording: () => void;
|
|
23
|
+
/** Cancel recording */
|
|
24
|
+
cancelRecording: () => void;
|
|
25
|
+
/** Reset state */
|
|
26
|
+
reset: () => void;
|
|
27
|
+
/** Whether recording is supported */
|
|
28
|
+
isSupported: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function useVoiceRecorder(options?: UseVoiceRecorderOptions): UseVoiceRecorderReturn;
|
|
31
|
+
//# sourceMappingURL=useVoiceRecorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVoiceRecorder.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/hooks/useVoiceRecorder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC3C,wBAAwB;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,sBAAsB;IACtB,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,qBAAqB;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,uBAAuB;IACvB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,qCAAqC;IACrC,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,GAAE,uBAA4B,GACpC,sBAAsB,CAqKxB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat Component - AI-first chat interface with multimodal support.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```tsx
|
|
6
|
+
* import { Chat } from '@orion-ds/react';
|
|
7
|
+
*
|
|
8
|
+
* <Chat>
|
|
9
|
+
* <Chat.Header title="AI Assistant" />
|
|
10
|
+
* <Chat.Messages>
|
|
11
|
+
* {messages.map(msg => (
|
|
12
|
+
* <Chat.Message
|
|
13
|
+
* key={msg.id}
|
|
14
|
+
* role={msg.role}
|
|
15
|
+
* content={msg.content}
|
|
16
|
+
* />
|
|
17
|
+
* ))}
|
|
18
|
+
* {isTyping && <Chat.TypingIndicator />}
|
|
19
|
+
* </Chat.Messages>
|
|
20
|
+
* <Chat.Input onSend={handleSend} />
|
|
21
|
+
* </Chat>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export { Chat } from './Chat';
|
|
25
|
+
export type { ChatRole, MessageStatus, AttachmentType, MessageReaction, ChatAttachment, ChatMessage, ChatConversation, VoiceRecorderState, ChatProps, ChatHeaderProps, ChatMessagesProps, ChatMessageProps, ChatInputProps, ChatTypingIndicatorProps, ChatCodeBlockProps, ChatMarkdownProps, ChatImagePreviewProps, ChatAudioPlayerProps, ChatVoiceRecorderProps, ChatFileUploadProps, ChatAttachmentPreviewProps, ChatSidebarProps, ChatSectionProps, ChatPageTemplateProps, ChatLightboxProps, } from './Chat.types';
|
|
26
|
+
export { useAutoScroll, useVoiceRecorder, useChatInput, useStreamingText, } from './hooks';
|
|
27
|
+
export type { UseAutoScrollOptions, UseAutoScrollReturn, UseVoiceRecorderOptions, UseVoiceRecorderReturn, UseChatInputOptions, UseChatInputReturn, UseStreamingTextOptions, UseStreamingTextReturn, } from './hooks';
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,YAAY,EAEV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,EACf,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAElB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EAEjB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAE1B,gBAAgB,EAEhB,gBAAgB,EAChB,qBAAqB,EAErB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat Component Shared Utilities
|
|
3
|
+
*
|
|
4
|
+
* Centralized helper functions used across multiple Chat sub-components.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Format a byte count into a human-readable file size string.
|
|
8
|
+
* Used by ChatInput, ChatFileUpload, and ChatAttachment.
|
|
9
|
+
*/
|
|
10
|
+
export declare const formatFileSize: (bytes?: number) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Format seconds into mm:ss display string.
|
|
13
|
+
* Used by ChatAudioPlayer and ChatVoiceRecorder.
|
|
14
|
+
*/
|
|
15
|
+
export declare const formatTime: (seconds: number) => string;
|
|
16
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,KAAG,MAM/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,KAAG,MAI5C,CAAC"}
|
|
@@ -47,4 +47,7 @@ export { ThemeController } from './ThemeController';
|
|
|
47
47
|
export type { ThemeControllerProps } from './ThemeController';
|
|
48
48
|
export { Carousel, CarouselCard } from './Carousel';
|
|
49
49
|
export type { CarouselProps, CarouselItem, CarouselCardProps, CarouselVariant, CarouselAspectRatio, CarouselGap, CarouselOverlay, CarouselAlign, CarouselNavigationProps, } from './Carousel';
|
|
50
|
+
export { Chat } from './Chat';
|
|
51
|
+
export type { ChatRole, MessageStatus, AttachmentType, ChatAttachment, ChatMessage, ChatConversation, VoiceRecorderState, ChatProps, ChatHeaderProps, ChatMessagesProps, ChatMessageProps, ChatInputProps, ChatTypingIndicatorProps, ChatCodeBlockProps, ChatMarkdownProps, ChatImagePreviewProps, ChatAudioPlayerProps, ChatVoiceRecorderProps, ChatFileUploadProps, ChatAttachmentPreviewProps, ChatSidebarProps, ChatSectionProps, ChatPageTemplateProps, ChatLightboxProps, } from './Chat';
|
|
52
|
+
export { useAutoScroll, useVoiceRecorder, useChatInput, } from './Chat';
|
|
50
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,E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M,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,aAAa,GACd,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACpD,YAAY,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,aAAa,EACb,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,YAAY,GACb,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type CalloutVariant = 'info' | 'tip' | 'warning' | 'error';
|
|
3
|
+
interface CalloutProps {
|
|
4
|
+
variant?: CalloutVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function Callout({ variant, title, children }: CalloutProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
interface FeatureCardProps {
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
title: string;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function FeatureCard({ icon, title, children }: FeatureCardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
interface CardGridProps {
|
|
16
|
+
columns?: 2 | 3;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function CardGrid({ columns, children }: CardGridProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
interface StepProps {
|
|
21
|
+
number: number;
|
|
22
|
+
title: string;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare function Step({ number, title, children }: StepProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
interface StepsProps {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare function Steps({ children }: StepsProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
interface LinkCardProps {
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
href: string;
|
|
34
|
+
icon?: ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export declare function LinkCard({ title, description, href, icon }: LinkCardProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
interface LinkCardGridProps {
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
export declare function LinkCardGrid({ children }: LinkCardGridProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
interface BrandSwatchProps {
|
|
42
|
+
color: string;
|
|
43
|
+
name: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function BrandSwatch({ color, name }: BrandSwatchProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
interface TokenTableRow {
|
|
47
|
+
token: string;
|
|
48
|
+
description: string;
|
|
49
|
+
}
|
|
50
|
+
interface TokenTableProps {
|
|
51
|
+
rows: TokenTableRow[];
|
|
52
|
+
}
|
|
53
|
+
export declare function TokenTable({ rows }: TokenTableProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
interface InfoTableProps {
|
|
55
|
+
headers: string[];
|
|
56
|
+
rows: string[][];
|
|
57
|
+
}
|
|
58
|
+
export declare function InfoTable({ headers, rows }: InfoTableProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=DocComponents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocComponents.d.ts","sourceRoot":"","sources":["../../src/docs/DocComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,OAAO,CAAC;AAItD,KAAK,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC;AAyB3D,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,OAAO,CAAC,EAAE,OAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,YAAY,2CAgC1E;AAID,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAiDtE;AAID,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EAAE,OAAW,EAAE,QAAQ,EAAE,EAAE,aA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