@cossistant/next 0.0.31 → 0.0.33
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/hooks/index.d.ts +2 -2
- package/index.d.ts +7 -3
- package/index.js +2 -2
- package/package.json +2 -3
- package/primitives/index.d.ts +6 -2
- package/primitives/index.js +2 -2
- package/react/src/hooks/index.d.ts +1 -1
- package/react/src/hooks/private/use-grouped-messages.d.ts +14 -2
- package/react/src/hooks/private/use-grouped-messages.d.ts.map +1 -1
- package/react/src/hooks/use-new-message-sound.d.ts.map +1 -1
- package/react/src/hooks/use-typing-sound.d.ts.map +1 -1
- package/react/src/primitives/command-block-utils.d.ts +10 -0
- package/react/src/primitives/command-block-utils.d.ts.map +1 -0
- package/react/src/primitives/index.d.ts +5 -1
- package/react/src/primitives/index.parts.d.ts +5 -1
- package/react/src/primitives/timeline-code-block.d.ts +32 -0
- package/react/src/primitives/timeline-code-block.d.ts.map +1 -0
- package/react/src/primitives/timeline-command-block.d.ts +29 -0
- package/react/src/primitives/timeline-command-block.d.ts.map +1 -0
- package/react/src/primitives/timeline-item-group.d.ts.map +1 -1
- package/react/src/primitives/timeline-item.d.ts +22 -3
- package/react/src/primitives/timeline-item.d.ts.map +1 -1
- package/react/src/primitives/timeline-message-layout.d.ts +9 -0
- package/react/src/primitives/timeline-message-layout.d.ts.map +1 -0
- package/react/src/provider.d.ts.map +1 -1
- package/react/src/support/text/locales/keys.d.ts +9 -0
- package/react/src/support/text/locales/keys.d.ts.map +1 -1
- package/react/src/utils/use-render-element.d.ts.map +1 -1
package/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useClientQuery } from "../react/src/hooks/private/use-client-query.js";
|
|
2
2
|
import { useDefaultMessages } from "../react/src/hooks/private/use-default-messages.js";
|
|
3
|
-
import { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "../react/src/hooks/private/use-grouped-messages.js";
|
|
3
|
+
import { ConversationItem, DaySeparatorItem, GroupedActivity, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "../react/src/hooks/private/use-grouped-messages.js";
|
|
4
4
|
import { UseMultimodalInputOptions, UseMultimodalInputReturn, useMultimodalInput } from "../react/src/hooks/private/use-multimodal-input.js";
|
|
5
5
|
import { UseClientResult, useClient } from "../react/src/hooks/private/use-rest-client.js";
|
|
6
6
|
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "../react/src/hooks/use-composer-refocus.js";
|
|
@@ -27,4 +27,4 @@ import { useTypingSound } from "../react/src/hooks/use-typing-sound.js";
|
|
|
27
27
|
import { UseVisitorReturn, useVisitor } from "../react/src/hooks/use-visitor.js";
|
|
28
28
|
import { WindowVisibilityFocusState, useWindowVisibilityFocus } from "../react/src/hooks/use-window-visibility-focus.js";
|
|
29
29
|
import "../react/src/hooks/index.js";
|
|
30
|
-
export { CONVERSATION_AUTO_SEEN_DELAY_MS, type ConversationItem, type ConversationLifecycleState, type ConversationPreviewAssignedAgent, type ConversationPreviewLastMessage, type ConversationPreviewTypingParticipant, type ConversationPreviewTypingState, type ConversationTimelineTypingParticipant, type ConversationTypingParticipant, type CreateConversationVariables, type DaySeparatorItem, type GroupedMessage, type SendMessageOptions, type SendMessageResult, type TimelineEventItem, type TimelineToolItem, type UseClientResult, type UseComposerRefocusOptions, type UseComposerRefocusReturn, type UseConversationAutoSeenOptions, type UseConversationHistoryPageOptions, type UseConversationHistoryPageReturn, type UseConversationLifecycleOptions, type UseConversationLifecycleReturn, type UseConversationOptions, type UseConversationPageOptions, type UseConversationPageReturn, type UseConversationPreviewOptions, type UseConversationPreviewReturn, type UseConversationResult, type UseConversationTimelineItemsOptions, type UseConversationTimelineItemsResult, type UseConversationTimelineOptions, type UseConversationTimelineReturn, type UseConversationsOptions, type UseConversationsResult, type UseCreateConversationOptions, type UseCreateConversationResult, type UseGroupedMessagesOptions, type UseGroupedMessagesProps, type UseHomePageOptions, type UseHomePageReturn, type UseMessageComposerOptions, type UseMessageComposerReturn, type UseMultimodalInputOptions, type UseMultimodalInputReturn, type UseRealtimeSupportOptions, type UseRealtimeSupportResult, type UseScrollMaskOptions, type UseScrollMaskReturn, type UseSendMessageOptions, type UseSendMessageResult, type UseSoundEffectOptions, type UseSoundEffectReturn, type UseVisitorReturn, type WindowVisibilityFocusState, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useTypingSound, useVisitor, useWindowVisibilityFocus };
|
|
30
|
+
export { CONVERSATION_AUTO_SEEN_DELAY_MS, type ConversationItem, type ConversationLifecycleState, type ConversationPreviewAssignedAgent, type ConversationPreviewLastMessage, type ConversationPreviewTypingParticipant, type ConversationPreviewTypingState, type ConversationTimelineTypingParticipant, type ConversationTypingParticipant, type CreateConversationVariables, type DaySeparatorItem, type GroupedActivity, type GroupedMessage, type SendMessageOptions, type SendMessageResult, type TimelineEventItem, type TimelineToolItem, type UseClientResult, type UseComposerRefocusOptions, type UseComposerRefocusReturn, type UseConversationAutoSeenOptions, type UseConversationHistoryPageOptions, type UseConversationHistoryPageReturn, type UseConversationLifecycleOptions, type UseConversationLifecycleReturn, type UseConversationOptions, type UseConversationPageOptions, type UseConversationPageReturn, type UseConversationPreviewOptions, type UseConversationPreviewReturn, type UseConversationResult, type UseConversationTimelineItemsOptions, type UseConversationTimelineItemsResult, type UseConversationTimelineOptions, type UseConversationTimelineReturn, type UseConversationsOptions, type UseConversationsResult, type UseCreateConversationOptions, type UseCreateConversationResult, type UseGroupedMessagesOptions, type UseGroupedMessagesProps, type UseHomePageOptions, type UseHomePageReturn, type UseMessageComposerOptions, type UseMessageComposerReturn, type UseMultimodalInputOptions, type UseMultimodalInputReturn, type UseRealtimeSupportOptions, type UseRealtimeSupportResult, type UseScrollMaskOptions, type UseScrollMaskReturn, type UseSendMessageOptions, type UseSendMessageResult, type UseSoundEffectOptions, type UseSoundEffectReturn, type UseVisitorReturn, type WindowVisibilityFocusState, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useTypingSound, useVisitor, useWindowVisibilityFocus };
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useClientQuery } from "./react/src/hooks/private/use-client-query.js";
|
|
2
2
|
import { useDefaultMessages } from "./react/src/hooks/private/use-default-messages.js";
|
|
3
|
-
import { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./react/src/hooks/private/use-grouped-messages.js";
|
|
3
|
+
import { ConversationItem, DaySeparatorItem, GroupedActivity, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./react/src/hooks/private/use-grouped-messages.js";
|
|
4
4
|
import { UseMultimodalInputOptions, UseMultimodalInputReturn, useMultimodalInput } from "./react/src/hooks/private/use-multimodal-input.js";
|
|
5
5
|
import { UseClientResult, useClient } from "./react/src/hooks/private/use-rest-client.js";
|
|
6
6
|
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "./react/src/hooks/use-composer-refocus.js";
|
|
@@ -35,13 +35,17 @@ import { Avatar } from "./react/src/primitives/avatar/avatar.js";
|
|
|
35
35
|
import { AvatarFallback } from "./react/src/primitives/avatar/fallback.js";
|
|
36
36
|
import { AvatarImage } from "./react/src/primitives/avatar/image.js";
|
|
37
37
|
import { Button } from "./react/src/primitives/button.js";
|
|
38
|
+
import { CommandPackageManager, CommandVariants, DEFAULT_PACKAGE_MANAGER, mapCommandVariants } from "./react/src/primitives/command-block-utils.js";
|
|
38
39
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./react/src/primitives/conversation-timeline.js";
|
|
39
40
|
import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./react/src/primitives/day-separator.js";
|
|
40
41
|
import { FileInput, MultimodalInput, SupportInput } from "./react/src/primitives/multimodal-input.js";
|
|
41
42
|
import { PageDefinition, Router, RouterProps } from "./react/src/primitives/router.js";
|
|
42
|
-
import {
|
|
43
|
+
import { TimelineCodeBlock, TimelineCodeBlockProps } from "./react/src/primitives/timeline-code-block.js";
|
|
44
|
+
import { TimelineCommandBlock, TimelineCommandBlockProps } from "./react/src/primitives/timeline-command-block.js";
|
|
45
|
+
import { TimelineItem, TimelineItemContent, TimelineItemContentMarkdownRenderers, TimelineItemTimestamp } from "./react/src/primitives/timeline-item.js";
|
|
43
46
|
import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments } from "./react/src/primitives/timeline-item-attachments.js";
|
|
44
47
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./react/src/primitives/timeline-item-group.js";
|
|
48
|
+
import { hasExpandedTimelineContent } from "./react/src/primitives/timeline-message-layout.js";
|
|
45
49
|
import { SupportTrigger, TriggerProps, TriggerRenderProps } from "./react/src/primitives/trigger.js";
|
|
46
50
|
import { SupportWindow } from "./react/src/primitives/window.js";
|
|
47
51
|
import "./primitives/index.js";
|
|
@@ -64,4 +68,4 @@ import { shouldDisplayConversation } from "./react/src/utils/conversation.js";
|
|
|
64
68
|
import { PENDING_CONVERSATION_ID, generateShortPrimaryId } from "./react/src/utils/id.js";
|
|
65
69
|
import { useRenderElement } from "./react/src/utils/use-render-element.js";
|
|
66
70
|
import "./utils/index.js";
|
|
67
|
-
export { Align, Avatar, AvatarFallback, AvatarImage, Button, CONVERSATION_AUTO_SEEN_DELAY_MS, SupportConfig as Config, ContentProps, ConversationItem, ConversationLifecycleState, ConversationPreviewAssignedAgent, ConversationPreviewLastMessage, ConversationPreviewTypingParticipant, ConversationPreviewTypingState, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, ConversationTimelineTypingParticipant, ConversationTypingParticipant, CossistantContextValue, CossistantProviderProps, CreateConversationVariables, CustomPage, DaySeparator, DaySeparatorItem, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, FileInput, GroupedMessage, IdentifySupportVisitor, IdentifySupportVisitorProps, SupportInput as Input, MultimodalInput, PENDING_CONVERSATION_ID, PageDefinition, RealtimeAuthConfig, RealtimeContextValue, RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, RealtimeProvider, RealtimeProviderProps, RootProps, Router, RouterProps, SendMessageOptions, SendMessageResult, Side, Support, SupportConfig, SupportConfigProps, SupportContext, SupportProps, SupportProvider, SupportProviderProps, SupportRealtimeProvider, TimelineEventItem, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, TimelineToolItem, SupportTrigger as Trigger, TriggerProps, TriggerRenderProps, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, UseClientResult, UseComposerRefocusOptions, UseComposerRefocusReturn, UseConversationAutoSeenOptions, UseConversationHistoryPageOptions, UseConversationHistoryPageReturn, UseConversationLifecycleOptions, UseConversationLifecycleReturn, UseConversationOptions, UseConversationPageOptions, UseConversationPageReturn, UseConversationPreviewOptions, UseConversationPreviewReturn, UseConversationResult, UseConversationTimelineItemsOptions, UseConversationTimelineItemsResult, UseConversationTimelineOptions, UseConversationTimelineReturn, UseConversationsOptions, UseConversationsResult, UseCreateConversationOptions, UseCreateConversationResult, UseGroupedMessagesOptions, UseGroupedMessagesProps, UseHomePageOptions, UseHomePageReturn, UseMessageComposerOptions, UseMessageComposerReturn, UseMultimodalInputOptions, UseMultimodalInputReturn, UseRealtimeSupportOptions, UseRealtimeSupportResult, UseScrollMaskOptions, UseScrollMaskReturn, UseSendMessageOptions, UseSendMessageResult, UseSoundEffectOptions, UseSoundEffectReturn, UseSupportValue, UseVisitorReturn, WebSocketContextValue, WebSocketProvider, SupportWindow as Window, WindowVisibilityFocusState, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, defaultFormatDate, extractFileParts, extractImageParts, generateShortPrimaryId, hasAttachments, hydrateConversationSeen, setTypingState, shouldDisplayConversation, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useRenderElement, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportNavigation, useSupportStore, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
|
71
|
+
export { Align, Avatar, AvatarFallback, AvatarImage, Button, CONVERSATION_AUTO_SEEN_DELAY_MS, CommandPackageManager, CommandVariants, SupportConfig as Config, ContentProps, ConversationItem, ConversationLifecycleState, ConversationPreviewAssignedAgent, ConversationPreviewLastMessage, ConversationPreviewTypingParticipant, ConversationPreviewTypingState, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, ConversationTimelineTypingParticipant, ConversationTypingParticipant, CossistantContextValue, CossistantProviderProps, CreateConversationVariables, CustomPage, DEFAULT_PACKAGE_MANAGER, DaySeparator, DaySeparatorItem, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, FileInput, GroupedActivity, GroupedMessage, IdentifySupportVisitor, IdentifySupportVisitorProps, SupportInput as Input, MultimodalInput, PENDING_CONVERSATION_ID, PageDefinition, RealtimeAuthConfig, RealtimeContextValue, RealtimeEventHandler, RealtimeEventHandlerEntry, RealtimeEventHandlersMap, RealtimeEventMeta, RealtimeProvider, RealtimeProviderProps, RootProps, Router, RouterProps, SendMessageOptions, SendMessageResult, Side, Support, SupportConfig, SupportConfigProps, SupportContext, SupportProps, SupportProvider, SupportProviderProps, SupportRealtimeProvider, TimelineCodeBlock, TimelineCodeBlockProps, TimelineCommandBlock, TimelineCommandBlockProps, TimelineEventItem, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemContentMarkdownRenderers, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, TimelineToolItem, SupportTrigger as Trigger, TriggerProps, TriggerRenderProps, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, UseClientResult, UseComposerRefocusOptions, UseComposerRefocusReturn, UseConversationAutoSeenOptions, UseConversationHistoryPageOptions, UseConversationHistoryPageReturn, UseConversationLifecycleOptions, UseConversationLifecycleReturn, UseConversationOptions, UseConversationPageOptions, UseConversationPageReturn, UseConversationPreviewOptions, UseConversationPreviewReturn, UseConversationResult, UseConversationTimelineItemsOptions, UseConversationTimelineItemsResult, UseConversationTimelineOptions, UseConversationTimelineReturn, UseConversationsOptions, UseConversationsResult, UseCreateConversationOptions, UseCreateConversationResult, UseGroupedMessagesOptions, UseGroupedMessagesProps, UseHomePageOptions, UseHomePageReturn, UseMessageComposerOptions, UseMessageComposerReturn, UseMultimodalInputOptions, UseMultimodalInputReturn, UseRealtimeSupportOptions, UseRealtimeSupportResult, UseScrollMaskOptions, UseScrollMaskReturn, UseSendMessageOptions, UseSendMessageResult, UseSoundEffectOptions, UseSoundEffectReturn, UseSupportValue, UseVisitorReturn, WebSocketContextValue, WebSocketProvider, SupportWindow as Window, WindowVisibilityFocusState, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, defaultFormatDate, extractFileParts, extractImageParts, generateShortPrimaryId, hasAttachments, hasExpandedTimelineContent, hydrateConversationSeen, mapCommandVariants, setTypingState, shouldDisplayConversation, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useRenderElement, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportNavigation, useSupportStore, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
package/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { IdentifySupportVisitor } from "./identify-visitor.js";
|
|
4
4
|
import { CONVERSATION_AUTO_SEEN_DELAY_MS, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtimeSupport, useScrollMask, useSendMessage, useSoundEffect, useTypingSound, useVisitor, useWindowVisibilityFocus } from "./hooks/index.js";
|
|
5
|
-
import { Avatar, AvatarFallback, AvatarImage, Button, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments } from "./primitives/index.js";
|
|
5
|
+
import { Avatar, AvatarFallback, AvatarImage, Button, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DEFAULT_PACKAGE_MANAGER, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, Input, MultimodalInput, Router, TimelineCodeBlock, TimelineCommandBlock, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments, hasExpandedTimelineContent, mapCommandVariants } from "./primitives/index.js";
|
|
6
6
|
import { SupportContext, SupportProvider, useSupport } from "./provider.js";
|
|
7
7
|
import { RealtimeProvider, SupportRealtimeProvider, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, hydrateConversationSeen, setTypingState, upsertConversationSeen, useRealtime, useRealtimeConnection } from "./realtime/index.js";
|
|
8
8
|
import { Support, WebSocketProvider, useSupportConfig, useSupportNavigation, useSupportStore, useWebSocket } from "./support/index.js";
|
|
9
9
|
import { SupportConfig } from "./support-config.js";
|
|
10
10
|
import { PENDING_CONVERSATION_ID, generateShortPrimaryId, shouldDisplayConversation, useRenderElement } from "./utils/index.js";
|
|
11
11
|
|
|
12
|
-
export { Avatar, AvatarFallback, AvatarImage, Button, CONVERSATION_AUTO_SEEN_DELAY_MS, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, IdentifySupportVisitor, Input, MultimodalInput, PENDING_CONVERSATION_ID, RealtimeProvider, Router, Support, SupportConfig, SupportContext, SupportProvider, SupportRealtimeProvider, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, WebSocketProvider, Window, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, defaultFormatDate, extractFileParts, extractImageParts, generateShortPrimaryId, hasAttachments, hydrateConversationSeen, setTypingState, shouldDisplayConversation, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useRenderElement, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportNavigation, useSupportStore, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
|
12
|
+
export { Avatar, AvatarFallback, AvatarImage, Button, CONVERSATION_AUTO_SEEN_DELAY_MS, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DEFAULT_PACKAGE_MANAGER, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, IdentifySupportVisitor, Input, MultimodalInput, PENDING_CONVERSATION_ID, RealtimeProvider, Router, Support, SupportConfig, SupportContext, SupportProvider, SupportRealtimeProvider, TimelineCodeBlock, TimelineCommandBlock, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, WebSocketProvider, Window, applyConversationSeenEvent, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, defaultFormatDate, extractFileParts, extractImageParts, generateShortPrimaryId, hasAttachments, hasExpandedTimelineContent, hydrateConversationSeen, mapCommandVariants, setTypingState, shouldDisplayConversation, upsertConversationSeen, useClient, useClientQuery, useComposerRefocus, useConversation, useConversationAutoSeen, useConversationHistoryPage, useConversationLifecycle, useConversationPage, useConversationPreview, useConversationSeen, useConversationTimeline, useConversationTimelineItems, useConversationTyping, useConversations, useCreateConversation, useDebouncedConversationSeen, useDefaultMessages, useGroupedMessages, useHomePage, useMessageComposer, useMultimodalInput, useNewMessageSound, useRealtime, useRealtimeConnection, useRealtimeSupport, useRenderElement, useScrollMask, useSendMessage, useSoundEffect, useSupport, useSupportConfig, useSupportNavigation, useSupportStore, useTypingSound, useVisitor, useWebSocket, useWindowVisibilityFocus };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cossistant/next",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.33",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Cossistant team",
|
|
7
7
|
"description": "Next.js-ready SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.",
|
|
@@ -91,8 +91,7 @@
|
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@cossistant/react": "0.0.
|
|
95
|
-
"tailwindcss": "^4.1.13"
|
|
94
|
+
"@cossistant/react": "0.0.33"
|
|
96
95
|
},
|
|
97
96
|
"peerDependencies": {
|
|
98
97
|
"react": ">=18 <20",
|
package/primitives/index.d.ts
CHANGED
|
@@ -4,14 +4,18 @@ import { Avatar } from "../react/src/primitives/avatar/avatar.js";
|
|
|
4
4
|
import { AvatarFallback } from "../react/src/primitives/avatar/fallback.js";
|
|
5
5
|
import { AvatarImage } from "../react/src/primitives/avatar/image.js";
|
|
6
6
|
import { Button } from "../react/src/primitives/button.js";
|
|
7
|
+
import { CommandPackageManager, CommandVariants, DEFAULT_PACKAGE_MANAGER, mapCommandVariants } from "../react/src/primitives/command-block-utils.js";
|
|
7
8
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "../react/src/primitives/conversation-timeline.js";
|
|
8
9
|
import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "../react/src/primitives/day-separator.js";
|
|
9
10
|
import { FileInput, MultimodalInput, SupportInput } from "../react/src/primitives/multimodal-input.js";
|
|
10
11
|
import { PageDefinition, Router, RouterProps } from "../react/src/primitives/router.js";
|
|
11
|
-
import {
|
|
12
|
+
import { TimelineCodeBlock, TimelineCodeBlockProps } from "../react/src/primitives/timeline-code-block.js";
|
|
13
|
+
import { TimelineCommandBlock, TimelineCommandBlockProps } from "../react/src/primitives/timeline-command-block.js";
|
|
14
|
+
import { TimelineItem, TimelineItemContent, TimelineItemContentMarkdownRenderers, TimelineItemTimestamp } from "../react/src/primitives/timeline-item.js";
|
|
12
15
|
import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments } from "../react/src/primitives/timeline-item-attachments.js";
|
|
13
16
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "../react/src/primitives/timeline-item-group.js";
|
|
17
|
+
import { hasExpandedTimelineContent } from "../react/src/primitives/timeline-message-layout.js";
|
|
14
18
|
import { SupportTrigger, TriggerProps, TriggerRenderProps } from "../react/src/primitives/trigger.js";
|
|
15
19
|
import { SupportWindow } from "../react/src/primitives/window.js";
|
|
16
20
|
import "../react/src/primitives/index.js";
|
|
17
|
-
export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, type DaySeparatorLabelProps, DaySeparatorLine, type DaySeparatorLineProps, type DaySeparatorProps, type DaySeparatorRenderProps, FileInput, SupportInput as Input, MultimodalInput, type PageDefinition, Router, type RouterProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, type TriggerProps, type TriggerRenderProps, TypingIndicator, type TypingIndicatorProps, type TypingParticipant, type TypingParticipantType, SupportWindow as Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments };
|
|
21
|
+
export { Avatar, AvatarFallback, AvatarImage, Button, type CommandPackageManager, type CommandVariants, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DEFAULT_PACKAGE_MANAGER, DaySeparator, DaySeparatorLabel, type DaySeparatorLabelProps, DaySeparatorLine, type DaySeparatorLineProps, type DaySeparatorProps, type DaySeparatorRenderProps, FileInput, SupportInput as Input, MultimodalInput, type PageDefinition, Router, type RouterProps, TimelineCodeBlock, type TimelineCodeBlockProps, TimelineCommandBlock, type TimelineCommandBlockProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, type TimelineItemContentMarkdownRenderers, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, type TriggerProps, type TriggerRenderProps, TypingIndicator, type TypingIndicatorProps, type TypingParticipant, type TypingParticipantType, SupportWindow as Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments, hasExpandedTimelineContent, mapCommandVariants };
|
package/primitives/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { Avatar, AvatarFallback, AvatarImage, Button, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments } from "@cossistant/react/primitives";
|
|
3
|
+
import { Avatar, AvatarFallback, AvatarImage, Button, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DEFAULT_PACKAGE_MANAGER, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, Input, MultimodalInput, Router, TimelineCodeBlock, TimelineCommandBlock, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments, hasExpandedTimelineContent, mapCommandVariants } from "@cossistant/react/primitives";
|
|
4
4
|
|
|
5
|
-
export { Avatar, AvatarFallback, AvatarImage, Button, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments };
|
|
5
|
+
export { Avatar, AvatarFallback, AvatarImage, Button, Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DEFAULT_PACKAGE_MANAGER, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, Input, MultimodalInput, Router, TimelineCodeBlock, TimelineCommandBlock, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, Trigger, TypingIndicator, Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments, hasExpandedTimelineContent, mapCommandVariants };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useClientQuery } from "./private/use-client-query.js";
|
|
2
2
|
import { useDefaultMessages } from "./private/use-default-messages.js";
|
|
3
|
-
import { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./private/use-grouped-messages.js";
|
|
3
|
+
import { ConversationItem, DaySeparatorItem, GroupedActivity, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages } from "./private/use-grouped-messages.js";
|
|
4
4
|
import { UseMultimodalInputOptions, UseMultimodalInputReturn, useMultimodalInput } from "./private/use-multimodal-input.js";
|
|
5
5
|
import { ConfigurationError, UseClientResult, useClient } from "./private/use-rest-client.js";
|
|
6
6
|
import { UseComposerRefocusOptions, UseComposerRefocusReturn, useComposerRefocus } from "./use-composer-refocus.js";
|
|
@@ -11,6 +11,18 @@ type GroupedMessage = {
|
|
|
11
11
|
firstMessageTime: Date;
|
|
12
12
|
lastMessageTime: Date;
|
|
13
13
|
};
|
|
14
|
+
type GroupedActivity = {
|
|
15
|
+
type: "activity_group";
|
|
16
|
+
senderId: string;
|
|
17
|
+
senderType: SenderType;
|
|
18
|
+
items: TimelineItem[];
|
|
19
|
+
firstItemId: string;
|
|
20
|
+
lastItemId: string;
|
|
21
|
+
firstItemTime: Date;
|
|
22
|
+
lastItemTime: Date;
|
|
23
|
+
hasEvent: boolean;
|
|
24
|
+
hasTool: boolean;
|
|
25
|
+
};
|
|
14
26
|
type TimelineEventItem = {
|
|
15
27
|
type: "timeline_event";
|
|
16
28
|
item: TimelineItem;
|
|
@@ -27,7 +39,7 @@ type DaySeparatorItem = {
|
|
|
27
39
|
date: Date;
|
|
28
40
|
dateString: string;
|
|
29
41
|
};
|
|
30
|
-
type ConversationItem = GroupedMessage | TimelineEventItem | TimelineToolItem | DaySeparatorItem;
|
|
42
|
+
type ConversationItem = GroupedMessage | GroupedActivity | TimelineEventItem | TimelineToolItem | DaySeparatorItem;
|
|
31
43
|
type UseGroupedMessagesOptions = {
|
|
32
44
|
items: TimelineItem[];
|
|
33
45
|
seenData?: ConversationSeen[];
|
|
@@ -57,5 +69,5 @@ declare const useGroupedMessages: ({
|
|
|
57
69
|
hasUnreadAfter: (messageId: string, userId: string) => boolean;
|
|
58
70
|
};
|
|
59
71
|
//#endregion
|
|
60
|
-
export { ConversationItem, DaySeparatorItem, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages };
|
|
72
|
+
export { ConversationItem, DaySeparatorItem, GroupedActivity, GroupedMessage, TimelineEventItem, TimelineToolItem, UseGroupedMessagesOptions, UseGroupedMessagesProps, useGroupedMessages };
|
|
61
73
|
//# sourceMappingURL=use-grouped-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-grouped-messages.d.ts","names":[],"sources":["../../../../../../react/src/hooks/private/use-grouped-messages.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"use-grouped-messages.d.ts","names":[],"sources":["../../../../../../react/src/hooks/private/use-grouped-messages.ts"],"sourcesContent":[],"mappings":";;;AAMY,KAAA,cAAA,GAAc;EAGb,IAAA,EAAA,eAAA;EACL,QAAA,EAAA,MAAA;EAGW,UAAA,EAJN,UAIM;EACD,KAAA,EAJV,YAIU,EAAA;EAAI,cAAA,EAAA,MAAA;EAGV,aAAA,EAAA,MAAe;EAGd,gBAAA,EAPM,IAON;EACL,eAAA,EAPU,IAOV;CAGQ;AACD,KARH,eAAA,GAQG;EAAI,IAAA,EAAA,gBAAA;EAKP,QAAA,EAAA,MAAA;EAMA,UAAA,EAhBC,UAgBe;EAOhB,KAAA,EAtBJ,YAsBoB,EAAA;EAMhB,WAAA,EAAA,MAAgB;EACzB,UAAA,EAAA,MAAA;EACA,aAAA,EA3Ba,IA2Bb;EACA,YAAA,EA3BY,IA2BZ;EACA,QAAA,EAAA,OAAA;EACA,OAAA,EAAA,OAAA;CAAgB;AAEP,KA1BA,iBAAA,GA0ByB;EAMzB,IAAA,EAAA,gBAAA;EAyXC,IAAA,EAvZN,YAuZM;EAAsB,SAAA,EAtZvB,IAsZuB;CAAA;AAAA,KAnZvB,gBAAA,GAmZuB;EAIhC,IAAA,EAAA,eAAA;QArZI;;aAEK;;KAGA,gBAAA;;QAEL;;;KAIK,gBAAA,GACT,iBACA,kBACA,oBACA,mBACA;KAES,yBAAA;SACJ;aACI;;;KAIA,uBAAA,GAA0B;;;;;;;cAyXzB;;;;GAIV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-new-message-sound.d.ts","names":[],"sources":["../../../../../react/src/hooks/use-new-message-sound.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-new-message-sound.d.ts","names":[],"sources":["../../../../../react/src/hooks/use-new-message-sound.ts"],"sourcesContent":[],"mappings":";;AAmBA;;;;;;;;;;;;;;iBAAgB,kBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-typing-sound.d.ts","names":[],"sources":["../../../../../react/src/hooks/use-typing-sound.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-typing-sound.d.ts","names":[],"sources":["../../../../../react/src/hooks/use-typing-sound.ts"],"sourcesContent":[],"mappings":";;AAcA;;;;;;;;;iBAAgB,cAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../react/src/primitives/command-block-utils.d.ts
|
|
2
|
+
|
|
3
|
+
declare const DEFAULT_PACKAGE_MANAGER: "npm";
|
|
4
|
+
declare const COMMAND_PACKAGE_MANAGERS: readonly ["npm", "yarn", "pnpm", "bun"];
|
|
5
|
+
type CommandPackageManager = (typeof COMMAND_PACKAGE_MANAGERS)[number];
|
|
6
|
+
type CommandVariants = Record<CommandPackageManager, string>;
|
|
7
|
+
declare function mapCommandVariants(input: string): CommandVariants | null;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CommandPackageManager, CommandVariants, DEFAULT_PACKAGE_MANAGER, mapCommandVariants };
|
|
10
|
+
//# sourceMappingURL=command-block-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-block-utils.d.ts","names":[],"sources":["../../../../../react/src/primitives/command-block-utils.ts"],"sourcesContent":[],"mappings":";;AAQY,cAJC,uBAI+B,EAAA,KAAA;AAEhC,cAJC,wBAIwB,EAAA,SAAA,CAAA,KAAP,EAAA,MAAM,EAAA,MAAA,EAAA,KAAA,CAAA;AAqUpB,KAvUJ,qBAAA,GAuUsB,CAAA,OAvUU,wBAuUsB,CAAA,CAAA,MAAA,CAAA;KArUtD,eAAA,GAAkB,OAAO;iBAqUrB,kBAAA,iBAAmC"}
|
|
@@ -4,13 +4,17 @@ import { Avatar } from "./avatar/avatar.js";
|
|
|
4
4
|
import { AvatarFallback } from "./avatar/fallback.js";
|
|
5
5
|
import { AvatarImage } from "./avatar/image.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
|
+
import { CommandPackageManager, CommandVariants, DEFAULT_PACKAGE_MANAGER, mapCommandVariants } from "./command-block-utils.js";
|
|
7
8
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
8
9
|
import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./day-separator.js";
|
|
9
10
|
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
10
11
|
import { PageDefinition, Router, RouterProps } from "./router.js";
|
|
11
|
-
import {
|
|
12
|
+
import { TimelineCodeBlock, TimelineCodeBlockProps } from "./timeline-code-block.js";
|
|
13
|
+
import { TimelineCommandBlock, TimelineCommandBlockProps } from "./timeline-command-block.js";
|
|
14
|
+
import { TimelineItem, TimelineItemContent, TimelineItemContentMarkdownRenderers, TimelineItemTimestamp } from "./timeline-item.js";
|
|
12
15
|
import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments } from "./timeline-item-attachments.js";
|
|
13
16
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
17
|
+
import { hasExpandedTimelineContent } from "./timeline-message-layout.js";
|
|
14
18
|
import { SupportTrigger, TriggerProps, TriggerRenderProps } from "./trigger.js";
|
|
15
19
|
import { SupportWindow } from "./window.js";
|
|
16
20
|
import "./index.parts.js";
|
|
@@ -5,12 +5,16 @@ import { AvatarFallback } from "./avatar/fallback.js";
|
|
|
5
5
|
import { AvatarImage } from "./avatar/image.js";
|
|
6
6
|
import "./avatar/index.js";
|
|
7
7
|
import { Button } from "./button.js";
|
|
8
|
+
import { CommandPackageManager, CommandVariants, DEFAULT_PACKAGE_MANAGER, mapCommandVariants } from "./command-block-utils.js";
|
|
8
9
|
import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
|
|
9
10
|
import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./day-separator.js";
|
|
10
11
|
import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
|
|
11
12
|
import { PageDefinition, Router, RouterProps } from "./router.js";
|
|
12
|
-
import {
|
|
13
|
+
import { TimelineCodeBlock, TimelineCodeBlockProps } from "./timeline-code-block.js";
|
|
14
|
+
import { TimelineCommandBlock, TimelineCommandBlockProps } from "./timeline-command-block.js";
|
|
15
|
+
import { TimelineItem, TimelineItemContent, TimelineItemContentMarkdownRenderers, TimelineItemTimestamp } from "./timeline-item.js";
|
|
13
16
|
import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extractFileParts, extractImageParts, hasAttachments } from "./timeline-item-attachments.js";
|
|
14
17
|
import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
|
|
18
|
+
import { hasExpandedTimelineContent } from "./timeline-message-layout.js";
|
|
15
19
|
import { SupportTrigger, TriggerProps, TriggerRenderProps } from "./trigger.js";
|
|
16
20
|
import { SupportWindow } from "./window.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
|
|
3
|
+
//#region ../react/src/primitives/timeline-code-block.d.ts
|
|
4
|
+
type TimelineCodeBlockRenderState = {
|
|
5
|
+
code: string;
|
|
6
|
+
language?: string;
|
|
7
|
+
languageLabel: string;
|
|
8
|
+
codeClassName?: string;
|
|
9
|
+
fileName?: string;
|
|
10
|
+
hasCopied: boolean;
|
|
11
|
+
onCopy: () => Promise<boolean>;
|
|
12
|
+
};
|
|
13
|
+
type TimelineCodeBlockProps = {
|
|
14
|
+
code: string;
|
|
15
|
+
language?: string;
|
|
16
|
+
fileName?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
children?: (state: TimelineCodeBlockRenderState) => React$1.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Shared timeline code block UI with filename/language metadata and copy action.
|
|
22
|
+
*/
|
|
23
|
+
declare function TimelineCodeBlock({
|
|
24
|
+
code,
|
|
25
|
+
language,
|
|
26
|
+
fileName,
|
|
27
|
+
className,
|
|
28
|
+
children
|
|
29
|
+
}: TimelineCodeBlockProps): React$1.ReactElement;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { TimelineCodeBlock, TimelineCodeBlockProps };
|
|
32
|
+
//# sourceMappingURL=timeline-code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-code-block.d.ts","names":[],"sources":["../../../../../react/src/primitives/timeline-code-block.tsx"],"sourcesContent":[],"mappings":";;;KAEY,4BAAA;;EAAA,QAAA,CAAA,EAAA,MAAA;EAUA,aAAA,EAAA,MAAA;EAgCI,aAAA,CAAA,EAAA,MAAiB;EAChC,QAAA,CAAA,EAAA,MAAA;EACA,SAAA,EAAA,OAAA;EACA,MAAA,EAAA,GAAA,GAtCc,OAsCd,CAAA,OAAA,CAAA;CACA;AACA,KArCW,sBAAA,GAqCX;EACE,IAAA,EAAA,MAAA;EAAyB,QAAM,CAAA,EAAA,MAAA;EAAY,QAAA,CAAA,EAAA,MAAA;;qBAjC1B,iCAAiC,OAAA,CAAM;;;;;iBA2B3C,iBAAA;;;;;;GAMb,yBAAyB,OAAA,CAAM"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CommandPackageManager, CommandVariants } from "./command-block-utils.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region ../react/src/primitives/timeline-command-block.d.ts
|
|
5
|
+
type TimelineCommandBlockRenderState = {
|
|
6
|
+
commands: CommandVariants;
|
|
7
|
+
packageManagers: readonly CommandPackageManager[];
|
|
8
|
+
activePackageManager: CommandPackageManager;
|
|
9
|
+
activeCommand: string;
|
|
10
|
+
setPackageManager: (packageManager: CommandPackageManager) => void;
|
|
11
|
+
hasCopied: boolean;
|
|
12
|
+
onCopy: () => Promise<boolean>;
|
|
13
|
+
};
|
|
14
|
+
type TimelineCommandBlockProps = {
|
|
15
|
+
commands: CommandVariants;
|
|
16
|
+
className?: string;
|
|
17
|
+
children?: (state: TimelineCommandBlockRenderState) => React$1.ReactNode;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Shared command block UI with package-manager tabs and copy action.
|
|
21
|
+
*/
|
|
22
|
+
declare function TimelineCommandBlock({
|
|
23
|
+
commands,
|
|
24
|
+
className,
|
|
25
|
+
children
|
|
26
|
+
}: TimelineCommandBlockProps): React$1.ReactElement;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { TimelineCommandBlock, TimelineCommandBlockProps };
|
|
29
|
+
//# sourceMappingURL=timeline-command-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-command-block.d.ts","names":[],"sources":["../../../../../react/src/primitives/timeline-command-block.tsx"],"sourcesContent":[],"mappings":";;;;KAWY,+BAAA;YACD;EADC,eAAA,EAAA,SAEe,qBAFgB,EAAA;EAChC,oBAAA,EAEY,qBAFZ;EACgB,aAAA,EAAA,MAAA;EACJ,iBAAA,EAAA,CAAA,cAAA,EAEc,qBAFd,EAAA,GAAA,IAAA;EAEc,SAAA,EAAA,OAAA;EAEtB,MAAA,EAAA,GAAA,GAAA,OAAA,CAAA,OAAA,CAAA;CAAO;AAGV,KAAA,yBAAA,GAAyB;EAC1B,QAAA,EAAA,eAAA;EAES,SAAA,CAAA,EAAA,MAAA;EAAoC,QAAM,CAAA,EAAA,CAAA,KAAA,EAA1C,+BAA0C,EAAA,GAAN,OAAA,CAAM,SAAA;CAAS;AAkCvE;;;AAGC,iBAHe,oBAAA,CAGf;EAAA,QAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EACE,yBADF,CAAA,EAC8B,OAAA,CAAM,YADpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item-group.d.ts","names":[],"sources":["../../../../../react/src/primitives/timeline-item-group.tsx"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"timeline-item-group.d.ts","names":[],"sources":["../../../../../react/src/primitives/timeline-item-group.tsx"],"sourcesContent":[],"mappings":";;;;;;AAUA;AAmDA;;AAA8B,KAnDlB,4BAAA,GAmDkB;EAAA,UAAA,EAjDjB,UAiDiB;EArB1B,QAAM,EAAA,MAAA;EACG,UAAA,CAAA,EA3BC,UA2BD;EAAiC,cAAM,EAAA,OAAA;EAG5C,kBAAA,EAAA,OAAA;EAIM,SAAA,EAAA,OAAA;EAIK,IAAA,EAAA,OAAA;;;E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A,CAAM;;;;;;;;;;cA0EH,gCAA8B,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAhBvC,OAAA,CAAM;aAEG;;;;;QAEH,OAAA,CAAM;;;;oBAIG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CommandVariants } from "./command-block-utils.js";
|
|
1
2
|
import * as React$1 from "react";
|
|
2
3
|
|
|
3
4
|
//#region ../react/src/primitives/timeline-item.d.ts
|
|
@@ -13,12 +14,12 @@ type TimelineItemRenderProps = {
|
|
|
13
14
|
timestamp: Date;
|
|
14
15
|
text: string | null;
|
|
15
16
|
senderType: "visitor" | "ai" | "human";
|
|
16
|
-
itemType: "message" | "event" | "identification";
|
|
17
|
+
itemType: "message" | "event" | "identification" | "tool";
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
19
20
|
* Generic timeline item wrapper that adds accessibility attributes and resolves the
|
|
20
21
|
* sender type into convenient render props for custom layouts. Works with
|
|
21
|
-
*
|
|
22
|
+
* message, event, identification, and tool timeline item types.
|
|
22
23
|
*/
|
|
23
24
|
declare const TimelineItem: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
24
25
|
children?: React$1.ReactNode | ((props: TimelineItemRenderProps) => React$1.ReactNode);
|
|
@@ -26,6 +27,23 @@ declare const TimelineItem: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLA
|
|
|
26
27
|
className?: string;
|
|
27
28
|
item: TimelineItemType;
|
|
28
29
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
type TimelineInlineCodeRendererProps = {
|
|
31
|
+
code: string;
|
|
32
|
+
};
|
|
33
|
+
type TimelineCodeBlockRendererProps = {
|
|
34
|
+
code: string;
|
|
35
|
+
language?: string;
|
|
36
|
+
fileName?: string;
|
|
37
|
+
};
|
|
38
|
+
type TimelineCommandBlockRendererProps = {
|
|
39
|
+
command: string;
|
|
40
|
+
commands: CommandVariants;
|
|
41
|
+
};
|
|
42
|
+
type TimelineItemContentMarkdownRenderers = {
|
|
43
|
+
inlineCode?: (props: TimelineInlineCodeRendererProps) => React$1.ReactNode;
|
|
44
|
+
codeBlock?: (props: TimelineCodeBlockRendererProps) => React$1.ReactNode;
|
|
45
|
+
commandBlock?: (props: TimelineCommandBlockRendererProps) => React$1.ReactNode;
|
|
46
|
+
};
|
|
29
47
|
/**
|
|
30
48
|
* Renders the content of a timeline item, optionally piping Markdown content through a
|
|
31
49
|
* memoised renderer or handing the raw text to a render prop for custom
|
|
@@ -37,6 +55,7 @@ declare const TimelineItemContent: React$1.ForwardRefExoticComponent<Omit<React$
|
|
|
37
55
|
className?: string;
|
|
38
56
|
text?: string | null;
|
|
39
57
|
renderMarkdown?: boolean;
|
|
58
|
+
markdownRenderers?: TimelineItemContentMarkdownRenderers;
|
|
40
59
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
41
60
|
/**
|
|
42
61
|
* Timestamp helper that renders a formatted date or allows callers to supply a
|
|
@@ -50,5 +69,5 @@ declare const TimelineItemTimestamp: React$1.ForwardRefExoticComponent<Omit<Reac
|
|
|
50
69
|
format?: (date: Date) => string;
|
|
51
70
|
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
52
71
|
//#endregion
|
|
53
|
-
export { TimelineItem, TimelineItemContent, TimelineItemTimestamp };
|
|
72
|
+
export { TimelineItem, TimelineItemContent, TimelineItemContentMarkdownRenderers, TimelineItemTimestamp };
|
|
54
73
|
//# sourceMappingURL=timeline-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../../../../react/src/primitives/timeline-item.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../../../../react/src/primitives/timeline-item.tsx"],"sourcesContent":[],"mappings":";;;;;;AAoBA;AA2BA;;AAAyB,KA3Bb,uBAAA,GA2Ba;EAAA,SAAA,EAAA,OAAA;EA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A,CAAM;;;aAG9C;kBACK"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../react/src/primitives/timeline-message-layout.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Detects whether message text includes fenced code content that should use
|
|
4
|
+
* the expanded timeline bubble layout.
|
|
5
|
+
*/
|
|
6
|
+
declare function hasExpandedTimelineContent(text: string | null | undefined): boolean;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { hasExpandedTimelineContent };
|
|
9
|
+
//# sourceMappingURL=timeline-message-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-message-layout.d.ts","names":[],"sources":["../../../../../react/src/primitives/timeline-message-layout.ts"],"sourcesContent":[],"mappings":";;AAOA;;;iBAAgB,0BAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","names":[],"sources":["../../../../react/src/provider.tsx"],"sourcesContent":[],"mappings":";;;;;;KAsEY,oBAAA;YACD,KAAA,CAAM;EADL,WAAA,CAAA,EAAA,OAAA;EACD,MAAM,CAAA,EAAA,MAAA;EAKE,KAAA,CAAA,EAAA,MAAA;EAKE,SAAA,CAAA,EAAA,MAAA;EAAK,eAAA,CAAA,EALP,cAKO,EAAA;EAId,YAAA,CAAA,EAAA,MAAA,EAAA;EAEA,WAAA,CAAA,EAAA,OAAA;EACF,WAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EACQ,cAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EAEc,SAAA,CAAA,EAAA,CAAA,KAAA,EAVX,KAUW,EAAA,GAAA,IAAA;EAKxB,IAAA,CAAA,EAAA,QAAA,GAAA,QAAA;CACa;AACZ,KAbG,uBAAA,GAA0B,oBAa7B;AAAgB,KAXb,sBAAA,GAWa;EAOpB,OAAA,EAjBK,qBAiBqB,GAAA,IAAA;EAE1B,eAAA,EAlBa,cAkBI,EAAA;EAAG,YAAA,EAAA,MAAA,EAAA;EAEV,kBAAA,EA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AAA,EAAA,OAAA;EACT,IAAA,EAAA,GAAA,GAAA,IAAA;EAAiB,KAAA,EAAA,GAAA,GAAA,IAAA;EAIf,MAAA,EAAA,GAAA,GAAA,IAED;AAgWZ,CAAA;KA9ZK,WAAA,GAAc,WA+ZlB,CA/Z8B,sBA+Z9B,CAAA,SAAA,CAAA,CAAA;KA7ZI,iBAAA,GAAoB,WA8ZxB,CAAA,SAAA,CAAA,SAAA,IAAA,GAAA,SAAA,GAAA,SAAA,GA5ZE,WA4ZF,CA5Zc,WA4Zd,CAAA,SAAA,CAAA,CAAA,GAAA;EACA,MAAA,EAAA,MAAA,GAAA,IAAA;CACA;AACA,KA9WW,eAAA,GAAkB,sBA8W7B,GAAA;EACA,oBAAA,EA9WsB,WA8WtB,CA9WkC,WA8WlC,CAAA,sBAAA,CAAA,CAAA,GAAA,EAAA;EACA,iBAAA,EA9WmB,WA8WnB,CA9W+B,WA8W/B,CAAA,mBAAA,CAAA,CAAA,GAAA,EAAA;EACA,OAAA,CAAA,EA9WU,iBA8WV;EACA,IAAA,EAAA,QAAA,GAAA,QAAA;CACA;AACA,cA7WY,cA6WZ,EA7W0B,KAAA,CAAA,OA6W1B,CA7W0B,sBA6W1B,GAAA,SAAA,CAAA;;;;;AA0BD;;iBArCgB,eAAA;;;;;;;;;;;;;GAab,uBAAuB,KAAA,CAAM;;;;;iBAwBhB,UAAA,CAAA,GAAc"}
|
|
@@ -225,6 +225,9 @@ declare const supportTextDefinitions: {
|
|
|
225
225
|
readonly "component.conversationPage.closedMessage": {
|
|
226
226
|
readonly variables: undefined;
|
|
227
227
|
};
|
|
228
|
+
readonly "component.conversationPage.spamMessage": {
|
|
229
|
+
readonly variables: undefined;
|
|
230
|
+
};
|
|
228
231
|
readonly "component.conversationPage.ratingPrompt": {
|
|
229
232
|
readonly variables: undefined;
|
|
230
233
|
};
|
|
@@ -236,6 +239,12 @@ declare const supportTextDefinitions: {
|
|
|
236
239
|
readonly rating: number;
|
|
237
240
|
};
|
|
238
241
|
};
|
|
242
|
+
readonly "component.conversationPage.commentPlaceholder": {
|
|
243
|
+
readonly variables: undefined;
|
|
244
|
+
};
|
|
245
|
+
readonly "component.conversationPage.submitFeedback": {
|
|
246
|
+
readonly variables: undefined;
|
|
247
|
+
};
|
|
239
248
|
readonly "component.multimodalInput.placeholder": {
|
|
240
249
|
readonly variables: undefined;
|
|
241
250
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","names":[],"sources":["../../../../../../../react/src/support/text/locales/keys.ts"],"sourcesContent":[],"mappings":";;;KAMY,aAAA;KAEA,qBAAA;AAFA,KAIA,qBAAA,GAJa;EAEb,KAAA,EAGJ,qBAHyB;EAErB,KAAA,EAAA,MAAA;AAKZ,CAAA;AAOY,KAPA,gBAAA,GAOkB;EACpB,YAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAP+B,IAAA,CAAK,mBAOpC,EAAA,GAAA,MAAA;EACA,SAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,EAAA;IACI,GAAA,EAAA,MAAA;IACH,KAAA,EAAA,MAAA;EAAgB,CAAA,EAAA,GAAA,MAAA;EAad,SAAA,EAAA,CAAA,KAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"keys.d.ts","names":[],"sources":["../../../../../../../react/src/support/text/locales/keys.ts"],"sourcesContent":[],"mappings":";;;KAMY,aAAA;KAEA,qBAAA;AAFA,KAIA,qBAAA,GAJa;EAEb,KAAA,EAGJ,qBAHyB;EAErB,KAAA,EAAA,MAAA;AAKZ,CAAA;AAOY,KAPA,gBAAA,GAOkB;EACpB,YAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAP+B,IAAA,CAAK,mBAOpC,EAAA,GAAA,MAAA;EACA,SAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,EAAA;IACI,GAAA,EAAA,MAAA;IACH,KAAA,EAAA,MAAA;EAAg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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAlCI,sBAAA,UAAgC;KAChC,cAAA,SAAuB;KAEvB,iCAA+B,kBAC1C,uBAAuB;KAEnB,yBAAuB,kBAC3B,uBAAuB;;;KAEnB,6BACM,uBACH,qBAAqB,QACzB,qCAED,aAAa,oBACZ,mBACA;KAEQ,+BACD,uBACH,qBAAqB;aAIf,iBAAiB,KAAG;WACtB;SACF;;KAOE,oDAAoD,iBAC/D,gBACO,iBACH,mBAAmB,KACnB,QAAQ,OAAO,gBAAgB,QAAQ,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-render-element.d.ts","names":[],"sources":["../../../../../react/src/utils/use-render-element.tsx"],"sourcesContent":[],"mappings":";;;;AAI+B,KA8B1B,YAAA,GAAY,MAAS,GAAA,CAAI,iBAAA;AAAiB,KAE1C,SAAA,CAAA,KAAS,CAAA,GAAA,MAAA,
|
|
1
|
+
{"version":3,"file":"use-render-element.d.ts","names":[],"sources":["../../../../../react/src/utils/use-render-element.tsx"],"sourcesContent":[],"mappings":";;;;AAI+B,KA8B1B,YAAA,GAAY,MAAS,GAAA,CAAI,iBAAA;AAAiB,KAE1C,SAAA,CAAA,KAAS,CAAA,GAAA,MAAA,GAA4B,CAAA,CAAA,KAAK,EAAL,KAAK,EAAA,GAAA,MAAA,CAAA;AAAA,KAE1C,QAAA,CAAA,KAAQ,EAAA,KAAA,CAAA,GAAA,CAAA,KAAA,EACL,KADK,EAAA,KAAA,EAEL,KAFK,EAAA,GAGR,OAAA,CAAM,YAHE;KAKR,WAJG,CAAA,KAAA,EAAA,YAI4B,YAJ5B,CAAA,GAAA;EACA,MAAA,CAAA,EAIE,OAAA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