@webority/mobile-chat 0.128.0 → 0.133.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/lib/commonjs/AgentByline.js +1 -0
- package/lib/commonjs/ChatComposer.js +1 -0
- package/lib/commonjs/ChatConversationActions.js +1 -0
- package/lib/commonjs/ChatDictationButton.js +1 -0
- package/lib/commonjs/ChatEmbed.js +1 -0
- package/lib/commonjs/ChatEntrance.js +1 -0
- package/lib/commonjs/ChatFooter.js +1 -0
- package/lib/commonjs/ChatFrame.js +1 -0
- package/lib/commonjs/ChatHistory.js +1 -0
- package/lib/commonjs/ChatLiveBar.js +1 -0
- package/lib/commonjs/ChatMessageActions.js +1 -0
- package/lib/commonjs/ChatNudge.js +1 -0
- package/lib/commonjs/ChatOpenTickets.js +1 -0
- package/lib/commonjs/ChatScreen.js +1 -0
- package/lib/commonjs/ChatSheet.js +1 -0
- package/lib/commonjs/ChatStarters.js +1 -0
- package/lib/commonjs/ChatThread.js +1 -0
- package/lib/commonjs/ReadAloudButton.js +1 -0
- package/lib/commonjs/chatShared.js +1 -0
- package/lib/commonjs/features.map.json +40 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/loaders/ChatLoader.js +1 -0
- package/lib/commonjs/loaders/OrbLoader.js +1 -0
- package/lib/commonjs/loaders/PhrasesLoader.js +1 -0
- package/lib/commonjs/loaders/SkeletonLoader.js +1 -0
- package/lib/commonjs/loaders/StepsLoader.js +1 -0
- package/lib/commonjs/loaders/TypingPill.js +1 -0
- package/lib/commonjs/pushOpen.js +1 -0
- package/lib/commonjs/renderers/ActionPart.js +1 -0
- package/lib/commonjs/renderers/ChartPart.js +1 -0
- package/lib/commonjs/renderers/FigureText.js +1 -0
- package/lib/commonjs/renderers/FiguresPart.js +1 -0
- package/lib/commonjs/renderers/FilePart.js +1 -0
- package/lib/commonjs/renderers/HandoffPart.js +1 -0
- package/lib/commonjs/renderers/ImagePart.js +1 -0
- package/lib/commonjs/renderers/InputRequestPart.js +1 -0
- package/lib/commonjs/renderers/NoticePart.js +1 -0
- package/lib/commonjs/renderers/QuickRepliesPart.js +1 -0
- package/lib/commonjs/renderers/RecordCardPart.js +1 -0
- package/lib/commonjs/renderers/SourcesPart.js +1 -0
- package/lib/commonjs/renderers/TablePart.js +1 -0
- package/lib/commonjs/renderers/TextPart.js +1 -0
- package/lib/commonjs/renderers/TicketPart.js +1 -0
- package/lib/commonjs/renderers/VoiceClipPart.js +1 -0
- package/lib/commonjs/renderers/index.js +1 -0
- package/lib/commonjs/speech/azureSpeech.js +1 -0
- package/lib/commonjs/speech/expoAudio.js +1 -0
- package/lib/commonjs/speech/phoneSpeech.js +1 -0
- package/lib/commonjs/speech/speechText.js +1 -0
- package/lib/commonjs/types.js +1 -0
- package/lib/commonjs/useChat.js +1 -1
- package/lib/commonjs/useChatHaptics.js +1 -0
- package/lib/commonjs/useChatSpeech.js +1 -0
- package/lib/commonjs/useTranscriptActions.js +1 -0
- package/lib/module/AgentByline.js +1 -0
- package/lib/module/ChatComposer.js +1 -0
- package/lib/module/ChatConversationActions.js +1 -0
- package/lib/module/ChatDictationButton.js +1 -0
- package/lib/module/ChatEmbed.js +1 -0
- package/lib/module/ChatEntrance.js +1 -0
- package/lib/module/ChatFooter.js +1 -0
- package/lib/module/ChatFrame.js +1 -0
- package/lib/module/ChatHistory.js +1 -0
- package/lib/module/ChatLiveBar.js +1 -0
- package/lib/module/ChatMessageActions.js +1 -0
- package/lib/module/ChatNudge.js +1 -0
- package/lib/module/ChatOpenTickets.js +1 -0
- package/lib/module/ChatScreen.js +1 -0
- package/lib/module/ChatSheet.js +1 -0
- package/lib/module/ChatStarters.js +1 -0
- package/lib/module/ChatThread.js +1 -0
- package/lib/module/ReadAloudButton.js +1 -0
- package/lib/module/chatShared.js +1 -0
- package/lib/module/features.map.json +40 -0
- package/lib/module/index.js +1 -1
- package/lib/module/loaders/ChatLoader.js +1 -0
- package/lib/module/loaders/OrbLoader.js +1 -0
- package/lib/module/loaders/PhrasesLoader.js +1 -0
- package/lib/module/loaders/SkeletonLoader.js +1 -0
- package/lib/module/loaders/StepsLoader.js +1 -0
- package/lib/module/loaders/TypingPill.js +1 -0
- package/lib/module/pushOpen.js +1 -0
- package/lib/module/renderers/ActionPart.js +1 -0
- package/lib/module/renderers/ChartPart.js +1 -0
- package/lib/module/renderers/FigureText.js +1 -0
- package/lib/module/renderers/FiguresPart.js +1 -0
- package/lib/module/renderers/FilePart.js +1 -0
- package/lib/module/renderers/HandoffPart.js +1 -0
- package/lib/module/renderers/ImagePart.js +1 -0
- package/lib/module/renderers/InputRequestPart.js +1 -0
- package/lib/module/renderers/NoticePart.js +1 -0
- package/lib/module/renderers/QuickRepliesPart.js +1 -0
- package/lib/module/renderers/RecordCardPart.js +1 -0
- package/lib/module/renderers/SourcesPart.js +1 -0
- package/lib/module/renderers/TablePart.js +1 -0
- package/lib/module/renderers/TextPart.js +1 -0
- package/lib/module/renderers/TicketPart.js +1 -0
- package/lib/module/renderers/VoiceClipPart.js +1 -0
- package/lib/module/renderers/index.js +1 -0
- package/lib/module/speech/azureSpeech.js +1 -0
- package/lib/module/speech/expoAudio.js +1 -0
- package/lib/module/speech/phoneSpeech.js +1 -0
- package/lib/module/speech/speechText.js +1 -0
- package/lib/module/types.js +1 -0
- package/lib/module/useChat.js +1 -1
- package/lib/module/useChatHaptics.js +1 -0
- package/lib/module/useChatSpeech.js +1 -0
- package/lib/module/useTranscriptActions.js +1 -0
- package/lib/typescript/commonjs/AgentByline.d.ts +9 -0
- package/lib/typescript/commonjs/ChatComposer.d.ts +14 -0
- package/lib/typescript/commonjs/ChatConversationActions.d.ts +10 -0
- package/lib/typescript/commonjs/ChatDictationButton.d.ts +17 -0
- package/lib/typescript/commonjs/ChatEmbed.d.ts +11 -0
- package/lib/typescript/commonjs/ChatEntrance.d.ts +8 -0
- package/lib/typescript/commonjs/ChatFooter.d.ts +9 -0
- package/lib/typescript/commonjs/ChatFrame.d.ts +39 -0
- package/lib/typescript/commonjs/ChatHistory.d.ts +11 -0
- package/lib/typescript/commonjs/ChatLiveBar.d.ts +11 -0
- package/lib/typescript/commonjs/ChatMessageActions.d.ts +15 -0
- package/lib/typescript/commonjs/ChatNudge.d.ts +14 -0
- package/lib/typescript/commonjs/ChatOpenTickets.d.ts +12 -0
- package/lib/typescript/commonjs/ChatScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ChatSheet.d.ts +21 -0
- package/lib/typescript/commonjs/ChatStarters.d.ts +12 -0
- package/lib/typescript/commonjs/ChatThread.d.ts +34 -0
- package/lib/typescript/commonjs/ReadAloudButton.d.ts +11 -0
- package/lib/typescript/commonjs/chatShared.d.ts +4 -0
- package/lib/typescript/commonjs/index.d.ts +26 -21
- package/lib/typescript/commonjs/loaders/ChatLoader.d.ts +13 -0
- package/lib/typescript/commonjs/loaders/OrbLoader.d.ts +8 -0
- package/lib/typescript/commonjs/loaders/PhrasesLoader.d.ts +8 -0
- package/lib/typescript/commonjs/loaders/SkeletonLoader.d.ts +8 -0
- package/lib/typescript/commonjs/loaders/StepsLoader.d.ts +8 -0
- package/lib/typescript/commonjs/loaders/TypingPill.d.ts +7 -0
- package/lib/typescript/commonjs/pushOpen.d.ts +3 -0
- package/lib/typescript/commonjs/renderers/ActionPart.d.ts +3 -0
- package/lib/typescript/commonjs/renderers/ChartPart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/FigureText.d.ts +21 -0
- package/lib/typescript/commonjs/renderers/FiguresPart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/FilePart.d.ts +3 -0
- package/lib/typescript/commonjs/renderers/HandoffPart.d.ts +9 -0
- package/lib/typescript/commonjs/renderers/ImagePart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/InputRequestPart.d.ts +3 -0
- package/lib/typescript/commonjs/renderers/NoticePart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/QuickRepliesPart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/RecordCardPart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/SourcesPart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/TablePart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/TextPart.d.ts +8 -0
- package/lib/typescript/commonjs/renderers/TicketPart.d.ts +9 -0
- package/lib/typescript/commonjs/renderers/VoiceClipPart.d.ts +9 -0
- package/lib/typescript/commonjs/renderers/index.d.ts +3 -0
- package/lib/typescript/commonjs/speech/azureSpeech.d.ts +25 -0
- package/lib/typescript/commonjs/speech/expoAudio.d.ts +23 -0
- package/lib/typescript/commonjs/speech/phoneSpeech.d.ts +16 -0
- package/lib/typescript/commonjs/speech/speechText.d.ts +16 -0
- package/lib/typescript/commonjs/types.d.ts +21 -0
- package/lib/typescript/commonjs/useChat.d.ts +38 -10
- package/lib/typescript/commonjs/useChatHaptics.d.ts +3 -0
- package/lib/typescript/commonjs/useChatSpeech.d.ts +4 -0
- package/lib/typescript/commonjs/useTranscriptActions.d.ts +10 -0
- package/lib/typescript/module/AgentByline.d.ts +9 -0
- package/lib/typescript/module/ChatComposer.d.ts +14 -0
- package/lib/typescript/module/ChatConversationActions.d.ts +10 -0
- package/lib/typescript/module/ChatDictationButton.d.ts +17 -0
- package/lib/typescript/module/ChatEmbed.d.ts +11 -0
- package/lib/typescript/module/ChatEntrance.d.ts +8 -0
- package/lib/typescript/module/ChatFooter.d.ts +9 -0
- package/lib/typescript/module/ChatFrame.d.ts +39 -0
- package/lib/typescript/module/ChatHistory.d.ts +11 -0
- package/lib/typescript/module/ChatLiveBar.d.ts +11 -0
- package/lib/typescript/module/ChatMessageActions.d.ts +15 -0
- package/lib/typescript/module/ChatNudge.d.ts +14 -0
- package/lib/typescript/module/ChatOpenTickets.d.ts +12 -0
- package/lib/typescript/module/ChatScreen.d.ts +5 -0
- package/lib/typescript/module/ChatSheet.d.ts +21 -0
- package/lib/typescript/module/ChatStarters.d.ts +12 -0
- package/lib/typescript/module/ChatThread.d.ts +34 -0
- package/lib/typescript/module/ReadAloudButton.d.ts +11 -0
- package/lib/typescript/module/chatShared.d.ts +4 -0
- package/lib/typescript/module/index.d.ts +26 -21
- package/lib/typescript/module/loaders/ChatLoader.d.ts +13 -0
- package/lib/typescript/module/loaders/OrbLoader.d.ts +8 -0
- package/lib/typescript/module/loaders/PhrasesLoader.d.ts +8 -0
- package/lib/typescript/module/loaders/SkeletonLoader.d.ts +8 -0
- package/lib/typescript/module/loaders/StepsLoader.d.ts +8 -0
- package/lib/typescript/module/loaders/TypingPill.d.ts +7 -0
- package/lib/typescript/module/pushOpen.d.ts +3 -0
- package/lib/typescript/module/renderers/ActionPart.d.ts +3 -0
- package/lib/typescript/module/renderers/ChartPart.d.ts +8 -0
- package/lib/typescript/module/renderers/FigureText.d.ts +21 -0
- package/lib/typescript/module/renderers/FiguresPart.d.ts +8 -0
- package/lib/typescript/module/renderers/FilePart.d.ts +3 -0
- package/lib/typescript/module/renderers/HandoffPart.d.ts +9 -0
- package/lib/typescript/module/renderers/ImagePart.d.ts +8 -0
- package/lib/typescript/module/renderers/InputRequestPart.d.ts +3 -0
- package/lib/typescript/module/renderers/NoticePart.d.ts +8 -0
- package/lib/typescript/module/renderers/QuickRepliesPart.d.ts +8 -0
- package/lib/typescript/module/renderers/RecordCardPart.d.ts +8 -0
- package/lib/typescript/module/renderers/SourcesPart.d.ts +8 -0
- package/lib/typescript/module/renderers/TablePart.d.ts +8 -0
- package/lib/typescript/module/renderers/TextPart.d.ts +8 -0
- package/lib/typescript/module/renderers/TicketPart.d.ts +9 -0
- package/lib/typescript/module/renderers/VoiceClipPart.d.ts +9 -0
- package/lib/typescript/module/renderers/index.d.ts +3 -0
- package/lib/typescript/module/speech/azureSpeech.d.ts +25 -0
- package/lib/typescript/module/speech/expoAudio.d.ts +23 -0
- package/lib/typescript/module/speech/phoneSpeech.d.ts +16 -0
- package/lib/typescript/module/speech/speechText.d.ts +16 -0
- package/lib/typescript/module/types.d.ts +21 -0
- package/lib/typescript/module/useChat.d.ts +38 -10
- package/lib/typescript/module/useChatHaptics.d.ts +3 -0
- package/lib/typescript/module/useChatSpeech.d.ts +4 -0
- package/lib/typescript/module/useTranscriptActions.d.ts +10 -0
- package/package.json +42 -15
- package/README.md +0 -185
- package/lib/commonjs/components/ActionCard.js +0 -1
- package/lib/commonjs/components/ChatComposer.js +0 -1
- package/lib/commonjs/components/ChatConversationList.js +0 -1
- package/lib/commonjs/components/ChatLauncher.js +0 -1
- package/lib/commonjs/components/ChatMarkdown.js +0 -1
- package/lib/commonjs/components/ChatMessage.js +0 -1
- package/lib/commonjs/components/ChatScreen.js +0 -1
- package/lib/commonjs/components/ChatThread.js +0 -1
- package/lib/commonjs/components/ComposerAttachments.js +0 -1
- package/lib/commonjs/components/ReplyRating.js +0 -1
- package/lib/module/components/ActionCard.js +0 -1
- package/lib/module/components/ChatComposer.js +0 -1
- package/lib/module/components/ChatConversationList.js +0 -1
- package/lib/module/components/ChatLauncher.js +0 -1
- package/lib/module/components/ChatMarkdown.js +0 -1
- package/lib/module/components/ChatMessage.js +0 -1
- package/lib/module/components/ChatScreen.js +0 -1
- package/lib/module/components/ChatThread.js +0 -1
- package/lib/module/components/ComposerAttachments.js +0 -1
- package/lib/module/components/ReplyRating.js +0 -1
- package/lib/typescript/commonjs/components/ActionCard.d.ts +0 -23
- package/lib/typescript/commonjs/components/ChatComposer.d.ts +0 -42
- package/lib/typescript/commonjs/components/ChatConversationList.d.ts +0 -22
- package/lib/typescript/commonjs/components/ChatLauncher.d.ts +0 -22
- package/lib/typescript/commonjs/components/ChatMarkdown.d.ts +0 -24
- package/lib/typescript/commonjs/components/ChatMessage.d.ts +0 -55
- package/lib/typescript/commonjs/components/ChatScreen.d.ts +0 -40
- package/lib/typescript/commonjs/components/ChatThread.d.ts +0 -30
- package/lib/typescript/commonjs/components/ComposerAttachments.d.ts +0 -12
- package/lib/typescript/commonjs/components/ReplyRating.d.ts +0 -19
- package/lib/typescript/module/components/ActionCard.d.ts +0 -23
- package/lib/typescript/module/components/ChatComposer.d.ts +0 -42
- package/lib/typescript/module/components/ChatConversationList.d.ts +0 -22
- package/lib/typescript/module/components/ChatLauncher.d.ts +0 -22
- package/lib/typescript/module/components/ChatMarkdown.d.ts +0 -24
- package/lib/typescript/module/components/ChatMessage.d.ts +0 -55
- package/lib/typescript/module/components/ChatScreen.d.ts +0 -40
- package/lib/typescript/module/components/ChatThread.d.ts +0 -30
- package/lib/typescript/module/components/ComposerAttachments.d.ts +0 -12
- package/lib/typescript/module/components/ReplyRating.d.ts +0 -19
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ChatConversationActionsProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
labels: ChatLabels;
|
|
7
|
+
testID?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function ChatConversationActions({ chat, labels, testID }: ChatConversationActionsProps): React.ReactElement | null;
|
|
10
|
+
//# sourceMappingURL=ChatConversationActions.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface DictationNotice {
|
|
5
|
+
message: string;
|
|
6
|
+
openSettings: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ChatDictationButtonProps {
|
|
9
|
+
chat: UseChatResult;
|
|
10
|
+
labels: ChatLabels;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onText: (text: string) => void;
|
|
13
|
+
onNotice: (notice: DictationNotice | null) => void;
|
|
14
|
+
testID?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function ChatDictationButton({ chat, labels, disabled, onText, onNotice, testID, }: ChatDictationButtonProps): React.ReactElement | null;
|
|
17
|
+
//# sourceMappingURL=ChatDictationButton.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { type ChatShellProps } from "./ChatFrame.js";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ChatEmbedProps extends ChatShellProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
/** The height of the embedded chat. Default 520. */
|
|
7
|
+
height?: number;
|
|
8
|
+
}
|
|
9
|
+
/** The chat drawn inside a bounded area of a screen, with a border and rounded corners. */
|
|
10
|
+
export declare function ChatEmbed({ chat, labels, renderers, layoutParts, loader, motion, pickAttachments, onOpenAttachment, onOpenTarget, onNavigate, openTicket, handoffHosts, keyboardOffset, title, headerActions, height, testID, }: ChatEmbedProps): React.ReactElement | null;
|
|
11
|
+
//# sourceMappingURL=ChatEmbed.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface ChatEntranceProps {
|
|
3
|
+
index?: number;
|
|
4
|
+
animate?: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function ChatEntrance({ index, animate, children }: ChatEntranceProps): React.ReactElement;
|
|
8
|
+
//# sourceMappingURL=ChatEntrance.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ChatFooterProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
labels: ChatLabels;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChatFooter({ chat, labels }: ChatFooterProps): React.ReactElement | null;
|
|
9
|
+
//# sourceMappingURL=ChatFooter.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ChatLabels, ChatLoaderStyle, ChatMotion, ChatPart, ChatUploadFile } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ChatLayoutParts, ChatOpenTicketHandler, ChatRenderers } from "./types.js";
|
|
4
|
+
import type { UseChatResult } from "./useChat.js";
|
|
5
|
+
export type ChatLayout = "screen" | "sheet" | "embedded";
|
|
6
|
+
/** The props every shell passes down to its frame. */
|
|
7
|
+
export interface ChatCommonProps {
|
|
8
|
+
chat: UseChatResult;
|
|
9
|
+
labels: ChatLabels;
|
|
10
|
+
renderers?: ChatRenderers;
|
|
11
|
+
layoutParts?: ChatLayoutParts;
|
|
12
|
+
loader?: ChatLoaderStyle;
|
|
13
|
+
motion?: ChatMotion;
|
|
14
|
+
pickAttachments?: () => Promise<ChatUploadFile[]>;
|
|
15
|
+
onOpenAttachment?: (part: Extract<ChatPart, {
|
|
16
|
+
kind: "File";
|
|
17
|
+
}>) => void;
|
|
18
|
+
onOpenTarget?: (target: string) => void;
|
|
19
|
+
onNavigate?: (path: string) => void;
|
|
20
|
+
/** Opens a ticket from a Ticket part or the open tickets list; the host shows the ticket. */
|
|
21
|
+
openTicket?: ChatOpenTicketHandler;
|
|
22
|
+
/** Hosts an absolute https link or Navigate chip may open; any other absolute target is not linked. */
|
|
23
|
+
handoffHosts?: readonly string[];
|
|
24
|
+
keyboardOffset?: number;
|
|
25
|
+
testID?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ChatFrameProps extends ChatCommonProps {
|
|
28
|
+
layout: ChatLayout;
|
|
29
|
+
title?: string;
|
|
30
|
+
headerActions?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
/** The props of the three shells: the frame's, with labels as a partial merged over the defaults. */
|
|
33
|
+
export interface ChatShellProps extends Omit<ChatCommonProps, "labels"> {
|
|
34
|
+
labels?: Partial<ChatLabels>;
|
|
35
|
+
title?: string;
|
|
36
|
+
headerActions?: React.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
export declare function ChatFrame({ chat, labels, renderers, layoutParts, loader, motion, pickAttachments, onOpenAttachment, onOpenTarget, onNavigate, openTicket, handoffHosts, keyboardOffset, layout, title, headerActions, testID, }: ChatFrameProps): React.ReactElement | null;
|
|
39
|
+
//# sourceMappingURL=ChatFrame.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ChatHistoryProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
labels: ChatLabels;
|
|
7
|
+
onOpen: () => void;
|
|
8
|
+
testID?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function ChatHistory({ chat, labels, onOpen, testID }: ChatHistoryProps): React.ReactElement;
|
|
11
|
+
//# sourceMappingURL=ChatHistory.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ChatLiveBarProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
labels: ChatLabels;
|
|
7
|
+
testID?: string;
|
|
8
|
+
}
|
|
9
|
+
/** The hand-off line under the header. The server decides who may hand off; this bar only draws the state. */
|
|
10
|
+
export declare function ChatLiveBar({ chat, labels, testID }: ChatLiveBarProps): React.ReactElement | null;
|
|
11
|
+
//# sourceMappingURL=ChatLiveBar.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ChatLabels, type ChatLiveMessage } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ChatMessageActionsProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
message: ChatLiveMessage;
|
|
7
|
+
labels: ChatLabels;
|
|
8
|
+
/** The newest message in the thread. */
|
|
9
|
+
isLast: boolean;
|
|
10
|
+
/** The last stored visitor message: the one Edit applies to. */
|
|
11
|
+
isLastVisitor: boolean;
|
|
12
|
+
testID?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function ChatMessageActions({ chat, message, labels, isLast, isLastVisitor, testID, }: ChatMessageActionsProps): React.ReactElement | null;
|
|
15
|
+
//# sourceMappingURL=ChatMessageActions.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ChatNudgeProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
labels: ChatLabels;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
onActivate: () => void;
|
|
9
|
+
bottomOffset: number;
|
|
10
|
+
position: "end" | "start";
|
|
11
|
+
testID?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function ChatNudge({ chat, labels, enabled, onActivate, bottomOffset, position, testID, }: ChatNudgeProps): React.ReactElement | null;
|
|
14
|
+
//# sourceMappingURL=ChatNudge.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ChatTicketRef } from "./types.js";
|
|
4
|
+
import type { UseChatResult } from "./useChat.js";
|
|
5
|
+
export interface ChatOpenTicketsProps {
|
|
6
|
+
chat: UseChatResult;
|
|
7
|
+
labels: ChatLabels;
|
|
8
|
+
onOpenTicket?: (ticket: ChatTicketRef) => void;
|
|
9
|
+
testID?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function ChatOpenTickets({ chat, labels, onOpenTicket, testID, }: ChatOpenTicketsProps): React.ReactElement | null;
|
|
12
|
+
//# sourceMappingURL=ChatOpenTickets.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { type ChatShellProps } from "./ChatFrame.js";
|
|
3
|
+
/** The whole chat for one screen of the app's navigator. Keep `useChat` above the navigator so the conversation survives leaving the screen. */
|
|
4
|
+
export declare function ChatScreen({ chat, labels, renderers, layoutParts, loader, motion, pickAttachments, onOpenAttachment, onOpenTarget, onNavigate, openTicket, handoffHosts, keyboardOffset, title, headerActions, testID, }: ChatShellProps): React.ReactElement | null;
|
|
5
|
+
//# sourceMappingURL=ChatScreen.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type BottomSheetProps } from "@webority/mobile-ui";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import { type ChatShellProps } from "./ChatFrame.js";
|
|
4
|
+
export interface ChatSheetProps extends ChatShellProps {
|
|
5
|
+
/** Controls the sheet. When given, the sheet follows it. */
|
|
6
|
+
open?: boolean;
|
|
7
|
+
/** The starting state when `open` is not given. Default false. */
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
|
+
position?: "end" | "start";
|
|
11
|
+
/** Space between the launcher and the bottom edge. Default 16. */
|
|
12
|
+
bottomOffset?: number;
|
|
13
|
+
snapPoints?: BottomSheetProps["snapPoints"];
|
|
14
|
+
/** The launcher shows only its icon. */
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
/** Opens the sheet on this conversation when it changes to a new id (a push tap); uncontrolled sheets only. */
|
|
17
|
+
conversationId?: string | null;
|
|
18
|
+
}
|
|
19
|
+
/** The chat in a bottom sheet over the screen, opened from a floating launcher. */
|
|
20
|
+
export declare function ChatSheet({ chat, labels, renderers, layoutParts, loader, motion, pickAttachments, onOpenAttachment, onOpenTarget, onNavigate, keyboardOffset, open, defaultOpen, onOpenChange, position, bottomOffset, snapPoints, compact, openTicket, handoffHosts, conversationId, testID, }: ChatSheetProps): React.ReactElement | null;
|
|
21
|
+
//# sourceMappingURL=ChatSheet.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChatLabels } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ChatOpenTicketHandler } from "./types.js";
|
|
4
|
+
import type { UseChatResult } from "./useChat.js";
|
|
5
|
+
export interface ChatStartersProps {
|
|
6
|
+
chat: UseChatResult;
|
|
7
|
+
labels: ChatLabels;
|
|
8
|
+
openTicket?: ChatOpenTicketHandler;
|
|
9
|
+
testID?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function ChatStarters({ chat, labels, openTicket, testID }: ChatStartersProps): React.ReactElement | null;
|
|
12
|
+
//# sourceMappingURL=ChatStarters.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ChatLabels, ChatLoaderStyle, ChatMotion, ChatPart, ChatUploadFile } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
4
|
+
import type { ChatLayoutParts, ChatOpenTicketHandler, ChatRenderers } from "./types.js";
|
|
5
|
+
import type { UseChatResult } from "./useChat.js";
|
|
6
|
+
export interface ChatThreadProps {
|
|
7
|
+
chat: UseChatResult;
|
|
8
|
+
labels: ChatLabels;
|
|
9
|
+
renderers?: ChatRenderers;
|
|
10
|
+
layoutParts?: ChatLayoutParts;
|
|
11
|
+
loader?: ChatLoaderStyle;
|
|
12
|
+
motion?: ChatMotion;
|
|
13
|
+
pickAttachments?: () => Promise<ChatUploadFile[]>;
|
|
14
|
+
onOpenAttachment?: (part: Extract<ChatPart, {
|
|
15
|
+
kind: "File";
|
|
16
|
+
}>) => void;
|
|
17
|
+
onOpenTarget?: (target: string) => void;
|
|
18
|
+
onNavigate?: (path: string) => void;
|
|
19
|
+
openTicket?: ChatOpenTicketHandler;
|
|
20
|
+
handoffHosts?: readonly string[];
|
|
21
|
+
keyboardAware?: boolean;
|
|
22
|
+
keyboardOffset?: number;
|
|
23
|
+
/** Drawn before the first message. */
|
|
24
|
+
empty?: React.ReactNode;
|
|
25
|
+
style?: StyleProp<ViewStyle>;
|
|
26
|
+
testID?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The conversation on mobile-ui's `MessageList`, newest at the bottom. The typing slot holds the
|
|
30
|
+
* pill while a paced reply is held, the loader while a reply is awaited and the error row after a
|
|
31
|
+
* failed or stopped turn.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ChatThread({ chat, labels, renderers, layoutParts, loader, motion, pickAttachments, onOpenAttachment, onOpenTarget, onNavigate, openTicket, handoffHosts, keyboardAware, keyboardOffset, empty, style, testID, }: ChatThreadProps): React.ReactElement;
|
|
34
|
+
//# sourceMappingURL=ChatThread.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ChatLabels, type ChatLiveMessage } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { UseChatResult } from "./useChat.js";
|
|
4
|
+
export interface ReadAloudButtonProps {
|
|
5
|
+
chat: UseChatResult;
|
|
6
|
+
message: ChatLiveMessage;
|
|
7
|
+
labels: ChatLabels;
|
|
8
|
+
testID?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function ReadAloudButton({ chat, message, labels, testID }: ReadAloudButtonProps): React.ReactElement | null;
|
|
11
|
+
//# sourceMappingURL=ReadAloudButton.d.ts.map
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export {
|
|
7
|
-
export type {
|
|
8
|
-
export {
|
|
9
|
-
export
|
|
10
|
-
export {
|
|
11
|
-
export
|
|
12
|
-
export {
|
|
13
|
-
export
|
|
14
|
-
export {
|
|
15
|
-
export
|
|
16
|
-
export {
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
19
|
-
export
|
|
20
|
-
export {
|
|
21
|
-
export
|
|
1
|
+
export { AgentByline } from "./AgentByline.js";
|
|
2
|
+
export { ChatComposer } from "./ChatComposer.js";
|
|
3
|
+
export { ChatConversationActions } from "./ChatConversationActions.js";
|
|
4
|
+
export { ChatDictationButton } from "./ChatDictationButton.js";
|
|
5
|
+
export { ChatEmbed } from "./ChatEmbed.js";
|
|
6
|
+
export { ChatFooter } from "./ChatFooter.js";
|
|
7
|
+
export type { ChatShellProps } from "./ChatFrame.js";
|
|
8
|
+
export { ChatHistory } from "./ChatHistory.js";
|
|
9
|
+
export { ChatLiveBar } from "./ChatLiveBar.js";
|
|
10
|
+
export { ChatMessageActions } from "./ChatMessageActions.js";
|
|
11
|
+
export { ChatNudge } from "./ChatNudge.js";
|
|
12
|
+
export { ChatOpenTickets } from "./ChatOpenTickets.js";
|
|
13
|
+
export { ChatScreen } from "./ChatScreen.js";
|
|
14
|
+
export type { ChatSheetProps } from "./ChatSheet.js";
|
|
15
|
+
export { ChatSheet } from "./ChatSheet.js";
|
|
16
|
+
export { ChatStarters } from "./ChatStarters.js";
|
|
17
|
+
export { ChatThread } from "./ChatThread.js";
|
|
18
|
+
export { defaultOpenTarget, messageSignature } from "./chatShared.js";
|
|
19
|
+
export { ChatLoader } from "./loaders/ChatLoader.js";
|
|
20
|
+
export { TypingPill } from "./loaders/TypingPill.js";
|
|
21
|
+
export { CHAT_PUSH_TYPE, chatConversationIdFromPush } from "./pushOpen.js";
|
|
22
|
+
export { ReadAloudButton } from "./ReadAloudButton.js";
|
|
23
|
+
export { defaultRenderers } from "./renderers/index.js";
|
|
24
|
+
export type { ChatLayoutParts, ChatPartRendererProps, ChatRenderers } from "./types.js";
|
|
25
|
+
export type { UseChatOptions, UseChatResult } from "./useChat.js";
|
|
22
26
|
export { useChat } from "./useChat.js";
|
|
27
|
+
export { useChatSpeech } from "./useChatSpeech.js";
|
|
23
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ChatLoaderStyle } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export interface ChatLoaderProps {
|
|
4
|
+
style?: ChatLoaderStyle;
|
|
5
|
+
steps?: readonly string[];
|
|
6
|
+
phrases: readonly string[];
|
|
7
|
+
intervalMs: number;
|
|
8
|
+
motion?: "On" | "Reduced";
|
|
9
|
+
announce: string;
|
|
10
|
+
testID?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function ChatLoader({ style, steps, phrases, intervalMs, motion, announce, testID, }: ChatLoaderProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=ChatLoader.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatLoaderView } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export interface OrbLoaderProps {
|
|
4
|
+
view: ChatLoaderView;
|
|
5
|
+
reduced: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function OrbLoader({ view, reduced }: OrbLoaderProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=OrbLoader.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatLoaderView } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export interface PhrasesLoaderProps {
|
|
4
|
+
view: ChatLoaderView;
|
|
5
|
+
reduced: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function PhrasesLoader({ view, reduced }: PhrasesLoaderProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=PhrasesLoader.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatLoaderView } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export interface SkeletonLoaderProps {
|
|
4
|
+
view: ChatLoaderView;
|
|
5
|
+
reduced: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function SkeletonLoader({ view, reduced }: SkeletonLoaderProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SkeletonLoader.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatLoaderView } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export interface StepsLoaderProps {
|
|
4
|
+
view: ChatLoaderView;
|
|
5
|
+
reduced: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function StepsLoader({ view, reduced }: StepsLoaderProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=StepsLoader.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type ChartPartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "Chart";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function ChartPart({ part, turn }: Pick<ChartPartProps, "part" | "turn">): import("react").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ChartPart.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ChatFigureRun } from "@webority/chat-core";
|
|
2
|
+
import { Text } from "@webority/mobile-ui";
|
|
3
|
+
import { type ComponentProps } from "react";
|
|
4
|
+
type MobileText = ComponentProps<typeof Text>;
|
|
5
|
+
export interface FigureRunsProps {
|
|
6
|
+
runs: readonly ChatFigureRun[];
|
|
7
|
+
variant?: MobileText["variant"];
|
|
8
|
+
color?: MobileText["color"];
|
|
9
|
+
strong?: boolean;
|
|
10
|
+
numberOfLines?: number;
|
|
11
|
+
accessibilityLabel?: string;
|
|
12
|
+
testID?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface FigureTextProps extends Omit<FigureRunsProps, "runs"> {
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function runsToText(runs: readonly ChatFigureRun[]): string;
|
|
18
|
+
export declare function FigureRuns({ runs, variant, color, strong, numberOfLines, accessibilityLabel, testID, }: FigureRunsProps): import("react").JSX.Element;
|
|
19
|
+
export declare function FigureText({ text, variant, ...rest }: FigureTextProps): import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=FigureText.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type FiguresPartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "Figures";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function FiguresPart({ part, turn }: Pick<FiguresPartProps, "part" | "turn">): import("react").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=FiguresPart.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
4
|
+
type HandoffView = Extract<ChatPart, {
|
|
5
|
+
kind: "Handoff";
|
|
6
|
+
}>;
|
|
7
|
+
export declare function HandoffPart({ part, turn }: ChatPartRendererProps<HandoffView>): React.ReactElement;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=HandoffPart.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type ImagePartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "Image";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function ImagePart({ part, turn }: Pick<ImagePartProps, "part" | "turn">): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ImagePart.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type NoticePartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "Notice";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function NoticePart({ part }: NoticePartProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=NoticePart.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type QuickRepliesPartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "QuickReplies";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function QuickRepliesPart({ part, turn }: QuickRepliesPartProps): import("react").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=QuickRepliesPart.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type RecordCardPartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "RecordCard";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function RecordCardPart({ part, turn }: Pick<RecordCardPartProps, "part" | "turn">): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=RecordCardPart.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type SourcesPartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "Sources";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function SourcesPart({ part, turn }: SourcesPartProps): import("react").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=SourcesPart.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type TablePartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "Table";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function TablePart({ part, turn }: Pick<TablePartProps, "part" | "turn">): import("react").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=TablePart.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
3
|
+
type TextPartProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
4
|
+
kind: "Text";
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function TextPart({ part, message, turn }: TextPartProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=TextPart.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
4
|
+
type TicketView = Extract<ChatPart, {
|
|
5
|
+
kind: "Ticket";
|
|
6
|
+
}>;
|
|
7
|
+
export declare function TicketPart({ part, turn }: ChatPartRendererProps<TicketView>): React.ReactElement;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=TicketPart.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatPart } from "@webority/chat-core";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { ChatPartRendererProps } from "../types.js";
|
|
4
|
+
type VoiceClipProps = ChatPartRendererProps<Extract<ChatPart, {
|
|
5
|
+
kind: "VoiceClip";
|
|
6
|
+
}>>;
|
|
7
|
+
export declare function VoiceClipPart({ part, turn }: VoiceClipProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=VoiceClipPart.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ChatAbortSignal } from "@webority/chat-core";
|
|
2
|
+
export interface SpeechEndpointToken {
|
|
3
|
+
token: string;
|
|
4
|
+
region: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SpeechRequestError extends Error {
|
|
7
|
+
readonly status: number;
|
|
8
|
+
constructor(status: number);
|
|
9
|
+
}
|
|
10
|
+
export declare function transcribeClip(input: {
|
|
11
|
+
token: SpeechEndpointToken;
|
|
12
|
+
uri: string;
|
|
13
|
+
language: string;
|
|
14
|
+
signal?: ChatAbortSignal;
|
|
15
|
+
fetchImpl?: typeof fetch;
|
|
16
|
+
}): Promise<string>;
|
|
17
|
+
export declare function synthesizeSpeech(input: {
|
|
18
|
+
token: SpeechEndpointToken;
|
|
19
|
+
text: string;
|
|
20
|
+
language: string;
|
|
21
|
+
voice: string;
|
|
22
|
+
signal?: ChatAbortSignal;
|
|
23
|
+
fetchImpl?: typeof fetch;
|
|
24
|
+
}): Promise<Uint8Array>;
|
|
25
|
+
//# sourceMappingURL=azureSpeech.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface RecordedClip {
|
|
2
|
+
uri: string;
|
|
3
|
+
durationMs: number;
|
|
4
|
+
}
|
|
5
|
+
export interface ClipRecording {
|
|
6
|
+
stop(): Promise<RecordedClip>;
|
|
7
|
+
cancel(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export interface ClipPlayback {
|
|
10
|
+
finished: Promise<void>;
|
|
11
|
+
pause(): void;
|
|
12
|
+
resume(): void;
|
|
13
|
+
stop(): void;
|
|
14
|
+
}
|
|
15
|
+
/** Starts a recording as m4a (AAC) on both platforms, mono at 16 kHz, which the transcription request reads. */
|
|
16
|
+
export declare function startRecording(): Promise<ClipRecording>;
|
|
17
|
+
/** Plays a local file. Starting one stops the playback before it, so a clip and a read-aloud never overlap. */
|
|
18
|
+
export declare function playFile(uri: string, onStatus?: (status: {
|
|
19
|
+
positionMs: number;
|
|
20
|
+
durationMs: number | null;
|
|
21
|
+
playing: boolean;
|
|
22
|
+
}) => void): ClipPlayback;
|
|
23
|
+
//# sourceMappingURL=expoAudio.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ChatSpeechAdapter, ChatSpeechError, type ChatSpeechErrorCode, type ChatSpeechToken } from "@webority/chat-core";
|
|
2
|
+
export type PhoneSpeechErrorCode = "MicDenied" | "MicBlocked" | "MicUnavailable" | "Failed" | "Unavailable";
|
|
3
|
+
/** The chat-core code the UI reads, plus the finer phone code that says which step refused. */
|
|
4
|
+
export declare class PhoneSpeechError extends ChatSpeechError {
|
|
5
|
+
readonly phoneCode: PhoneSpeechErrorCode;
|
|
6
|
+
constructor(code: ChatSpeechErrorCode, phoneCode: PhoneSpeechErrorCode, message?: string);
|
|
7
|
+
}
|
|
8
|
+
export interface PhoneSpeechOptions {
|
|
9
|
+
getToken: () => Promise<ChatSpeechToken>;
|
|
10
|
+
language?: string;
|
|
11
|
+
voice?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Deletes a temporary audio file. A file that cannot be removed is left for the OS to clear. */
|
|
14
|
+
export declare function discardFile(uri: string): void;
|
|
15
|
+
export declare function createPhoneSpeech(options: PhoneSpeechOptions): ChatSpeechAdapter;
|
|
16
|
+
//# sourceMappingURL=phoneSpeech.d.ts.map
|