@botpress/webchat 4.5.1 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.tsx +7 -0
- package/.turbo/turbo-build.log +6 -8
- package/check-bundle-size.js +6 -2
- package/dist/index.d.ts +550 -830
- package/dist/index.js +65586 -17580
- package/dist/index.umd.cjs +1074 -191
- package/package.json +13 -8
- package/dist/style.css +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,43 +3,53 @@ import { ClassAttributes } from '../../../node_modules/@types/react';
|
|
|
3
3
|
import { Client } from '@botpress/webchat-client';
|
|
4
4
|
import { ComponentProps } from '../../../node_modules/@types/react';
|
|
5
5
|
import { ComponentProps as ComponentProps_2 } from '../../node_modules/@types/react';
|
|
6
|
-
import { ComponentPropsWithRef } from '../../node_modules/@types/react';
|
|
7
6
|
import { LatestWebchatConfig as Configuration } from '@bpinternal/shared';
|
|
8
7
|
import { Context } from '../../node_modules/@types/react';
|
|
8
|
+
import { ConversationStarter } from '@bpinternal/shared';
|
|
9
|
+
import { ConversationStarterDisplayStyle } from '@bpinternal/shared';
|
|
9
10
|
import { createEventEmitter } from '@bpinternal/shared';
|
|
10
11
|
import { CSSProperties } from '../../node_modules/@types/react';
|
|
11
12
|
import * as Dialog from '@radix-ui/react-dialog';
|
|
12
13
|
import { Dispatch } from '../../node_modules/@types/react';
|
|
13
14
|
import { EventEmitter } from '@bpinternal/shared';
|
|
14
|
-
import {
|
|
15
|
-
import { ForwardRefExoticComponent } from '
|
|
16
|
-
import { ForwardRefExoticComponent as
|
|
17
|
-
import { ForwardRefExoticComponent as ForwardRefExoticComponent_3 } from 'react';
|
|
15
|
+
import { ForwardRefExoticComponent } from '../../../node_modules/@types/react';
|
|
16
|
+
import { ForwardRefExoticComponent as ForwardRefExoticComponent_2 } from 'react';
|
|
17
|
+
import { ForwardRefExoticComponent as ForwardRefExoticComponent_3 } from '../../../../node_modules/@types/react';
|
|
18
18
|
import { HTMLAttributes } from '../../../node_modules/@types/react';
|
|
19
19
|
import { IntegrationError } from '@botpress/webchat-client';
|
|
20
|
-
import { JSX } from '
|
|
21
|
-
import { JSX as JSX_2 } from 'react
|
|
20
|
+
import { JSX } from 'react/jsx-runtime';
|
|
21
|
+
import { JSX as JSX_2 } from '../../node_modules/@types/react';
|
|
22
22
|
import { LatestWebchatTheme } from '@bpinternal/shared';
|
|
23
23
|
import { ListConversationsResponse } from '@botpress/webchat-client';
|
|
24
|
+
import { LucideIcon } from 'lucide-react';
|
|
24
25
|
import { MemoExoticComponent } from '../../../node_modules/@types/react';
|
|
25
26
|
import { Message as Message_2 } from '@botpress/webchat-client';
|
|
26
27
|
import { NamedExoticComponent } from '../../../node_modules/@types/react';
|
|
27
28
|
import { PersistOptions } from 'zustand/middleware';
|
|
28
|
-
import {
|
|
29
|
-
import { ReactNode } from '../../../node_modules/@types/react';
|
|
30
|
-
import { ReactNode as ReactNode_2 } from '../../node_modules/@types/react';
|
|
29
|
+
import { ReactNode } from '../../node_modules/@types/react';
|
|
30
|
+
import { ReactNode as ReactNode_2 } from '../../../node_modules/@types/react';
|
|
31
31
|
import { Ref } from '../../../node_modules/@types/react';
|
|
32
|
-
import { RefAttributes } from '
|
|
33
|
-
import { RefAttributes as RefAttributes_2 } from '
|
|
34
|
-
import { RefAttributes as RefAttributes_3 } from 'react';
|
|
32
|
+
import { RefAttributes } from '../../../node_modules/@types/react';
|
|
33
|
+
import { RefAttributes as RefAttributes_2 } from 'react';
|
|
34
|
+
import { RefAttributes as RefAttributes_3 } from '../../../../node_modules/@types/react';
|
|
35
35
|
import { RefObject } from '../../node_modules/@types/react';
|
|
36
|
-
import { RotateCcw } from 'lucide-react';
|
|
37
36
|
import { SetStateAction } from '../../node_modules/@types/react';
|
|
37
|
+
import { StateStorage } from 'zustand/middleware';
|
|
38
38
|
import { StoreApi } from 'zustand';
|
|
39
39
|
import { UseBoundStore } from 'zustand';
|
|
40
40
|
import { User } from '@botpress/webchat-client';
|
|
41
41
|
import { UserCredentials } from '@botpress/webchat-client';
|
|
42
42
|
|
|
43
|
+
declare type Action = {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
variant: 'action' | 'link';
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export declare const ActionButton: ({ text, buttonValue, variant, groupId, reusable, sendMessage, isReadOnly }: Props_7) => JSX.Element;
|
|
50
|
+
|
|
51
|
+
export declare const ActionButtons: ({ actions, groupId, reusable, sendMessage, isReadOnly }: Props_8) => JSX.Element | null;
|
|
52
|
+
|
|
43
53
|
declare type AnyEvent = ValueOf<{
|
|
44
54
|
[K in keyof WebchatEvents]: {
|
|
45
55
|
type: K;
|
|
@@ -49,63 +59,66 @@ declare type AnyEvent = ValueOf<{
|
|
|
49
59
|
|
|
50
60
|
export declare const ar: WebchatTranslations;
|
|
51
61
|
|
|
62
|
+
declare const Audio_2: ({ url, isReadOnly }: Props_12) => JSX.Element;
|
|
63
|
+
export { Audio_2 as Audio }
|
|
64
|
+
|
|
52
65
|
export declare type AudioBlock = {
|
|
53
66
|
type: 'audio';
|
|
54
67
|
url: string;
|
|
55
68
|
};
|
|
56
69
|
|
|
57
|
-
export declare const Avatar:
|
|
70
|
+
export declare const Avatar: ({ userId, src, containerClassName, imageClassName, fallbackClassName, children, }: AvatarProps) => JSX.Element;
|
|
58
71
|
|
|
59
72
|
declare type AvatarProps = {
|
|
60
73
|
userId?: string;
|
|
61
74
|
src?: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
containerClassName?: string;
|
|
76
|
+
imageClassName?: string;
|
|
77
|
+
fallbackClassName?: string;
|
|
78
|
+
children?: ReactNode;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export declare const Bloc: ({ items, ctx }: Props_19) => JSX.Element;
|
|
82
|
+
|
|
83
|
+
export declare type BlocBlock = {
|
|
84
|
+
type: 'bloc';
|
|
85
|
+
items: LeafBlock[];
|
|
86
|
+
};
|
|
72
87
|
|
|
73
88
|
export declare type BlocIntegrationMessageItems = Extract<IntegrationMessage['payload'], {
|
|
74
89
|
type: 'bloc';
|
|
75
90
|
}>['items'];
|
|
76
91
|
|
|
77
|
-
|
|
92
|
+
/** Context passed through the block rendering tree */
|
|
93
|
+
export declare type BlockContext = {
|
|
94
|
+
direction: 'incoming' | 'outgoing' | 'system';
|
|
95
|
+
messageId: string;
|
|
96
|
+
isReadOnly?: boolean;
|
|
97
|
+
sendMessage?: ScopedClient['sendMessage'];
|
|
98
|
+
/** All citation entries on the message (`metadata.citations`); renderers pick
|
|
99
|
+
* the entries whose `path` matches their own field via `citationPath`. */
|
|
100
|
+
citations?: CitationEntry[];
|
|
101
|
+
/** Pre-built Sources footer for cited messages. Renderers that carry both
|
|
102
|
+
* prompt text AND interactive controls (choice, dropdown) place this between
|
|
103
|
+
* the text and the controls so Sources sits under the answer, above the
|
|
104
|
+
* pills; other blocks let `Message` append it after the content. */
|
|
105
|
+
footer?: ReactNode;
|
|
106
|
+
};
|
|
78
107
|
|
|
79
|
-
export declare type BlockMessage
|
|
108
|
+
export declare type BlockMessage = {
|
|
80
109
|
id: string;
|
|
81
110
|
timestamp: Date;
|
|
82
|
-
block:
|
|
111
|
+
block: MessageBlock;
|
|
83
112
|
conversationId?: string;
|
|
84
113
|
authorId?: string;
|
|
85
114
|
disableInput?: boolean;
|
|
86
115
|
status?: 'pending' | 'processing' | 'processed' | 'failed' | 'skipped';
|
|
116
|
+
feedback?: 'positive' | 'negative';
|
|
87
117
|
metadata?: {
|
|
88
118
|
clientMessageId?: string;
|
|
89
119
|
delivered?: boolean;
|
|
90
120
|
[k: string]: any;
|
|
91
121
|
};
|
|
92
|
-
feedback?: Feedback['value'];
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
declare type BlockMessagePayload = {
|
|
96
|
-
payload: GenericBlock;
|
|
97
|
-
disableInput?: boolean;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export declare type BlockObjects = {
|
|
101
|
-
[T in GenericBlock['type']]: Extract<GenericBlock, {
|
|
102
|
-
type: T;
|
|
103
|
-
}> & CommonBlockProps;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
declare type BlockProps<T extends GenericBlock['type']> = {
|
|
107
|
-
block: BlockObjects[T];
|
|
108
|
-
renderers?: Partial<Renderers>;
|
|
109
122
|
};
|
|
110
123
|
|
|
111
124
|
export declare const BOT_IS_BLOCKED = "This bot has temporarily paused.\nPlease check back later.";
|
|
@@ -114,23 +127,10 @@ declare type BoundChatSoundStore = ReturnType<typeof createChatSoundStore>;
|
|
|
114
127
|
|
|
115
128
|
declare type BoundWebchatClientStore = ReturnType<typeof createWebchatClientStore>;
|
|
116
129
|
|
|
117
|
-
export declare
|
|
118
|
-
type: 'bubble';
|
|
119
|
-
block: GenericBlock;
|
|
120
|
-
};
|
|
130
|
+
export declare const Bubble: ({ ctx, children }: Props_9) => JSX.Element;
|
|
121
131
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export declare type ButtonBlock = {
|
|
127
|
-
type: 'button';
|
|
128
|
-
variant: 'action' | 'link';
|
|
129
|
-
reusable?: boolean;
|
|
130
|
-
groupId?: string;
|
|
131
|
-
text: string;
|
|
132
|
-
buttonValue: string;
|
|
133
|
-
};
|
|
132
|
+
/** @deprecated Use ActionButton */
|
|
133
|
+
export declare const Button: ({ text, buttonValue, variant, groupId, reusable, sendMessage, isReadOnly }: Props_7) => JSX.Element;
|
|
134
134
|
|
|
135
135
|
declare type ByType<M extends {
|
|
136
136
|
type: string;
|
|
@@ -140,12 +140,62 @@ declare type ByType<M extends {
|
|
|
140
140
|
}>;
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
+
export declare const Card: ({ imageUrl, title, subtitle, actions, ctx, citationBasePath }: Props_17) => JSX.Element;
|
|
144
|
+
|
|
145
|
+
export declare type CardAction = {
|
|
146
|
+
label: string;
|
|
147
|
+
value: string;
|
|
148
|
+
variant: 'action' | 'link';
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export declare type CardBlock = {
|
|
152
|
+
type: 'card';
|
|
153
|
+
imageUrl?: string;
|
|
154
|
+
title?: string;
|
|
155
|
+
subtitle?: string;
|
|
156
|
+
actions: CardAction[];
|
|
157
|
+
/** Payload dot-path of this card ("root" for a standalone card,
|
|
158
|
+
* "root.items.N" inside a carousel) — citation paths derive from it. */
|
|
159
|
+
citationBasePath?: string;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export declare const Carousel: ({ cards, ctx }: Props_14) => JSX.Element;
|
|
163
|
+
|
|
143
164
|
export declare type CarouselBlock = {
|
|
144
165
|
type: 'carousel';
|
|
145
|
-
|
|
166
|
+
cards: CardBlock[];
|
|
146
167
|
};
|
|
147
168
|
|
|
148
|
-
export declare const Chat: ({ connected, configuration, isTyping, messages, user, isLoading,
|
|
169
|
+
export declare const Chat: ({ connected, configuration, isTyping, messages, user, isLoading, isReadOnly, disableComposer, error, participants, closeWindow, sendMessage, addMessageFeedback, uploadFile, listConversations, restartConversation, clientId, storageKey, soundOn, toggleSound, disableSendButton, conversationId, expanded, onToggleExpand, locale, ...props }: ChatProps) => JSX.Element;
|
|
170
|
+
|
|
171
|
+
export declare type ChatProps = {
|
|
172
|
+
className?: string;
|
|
173
|
+
configuration: Configuration;
|
|
174
|
+
messages: BlockMessage[];
|
|
175
|
+
participants: User[];
|
|
176
|
+
connected?: boolean;
|
|
177
|
+
disableComposer?: boolean;
|
|
178
|
+
isReadOnly?: boolean;
|
|
179
|
+
isLoading?: boolean;
|
|
180
|
+
isTyping?: boolean;
|
|
181
|
+
clientId?: string;
|
|
182
|
+
closeWindow?: () => void;
|
|
183
|
+
restartConversation?: (conversationid?: string) => void;
|
|
184
|
+
user?: UserCredentials;
|
|
185
|
+
sendMessage?: ScopedClient['sendMessage'];
|
|
186
|
+
addMessageFeedback?: (messageId: string, feedback: Feedback) => Promise<void>;
|
|
187
|
+
uploadFile?: ScopedClient['uploadFile'];
|
|
188
|
+
listConversations?: ScopedClient['listConversations'];
|
|
189
|
+
error?: WebchatError;
|
|
190
|
+
soundOn?: boolean;
|
|
191
|
+
toggleSound?: () => void;
|
|
192
|
+
storageKey?: string;
|
|
193
|
+
disableSendButton?: boolean;
|
|
194
|
+
conversationId?: string;
|
|
195
|
+
expanded?: boolean;
|
|
196
|
+
onToggleExpand?: () => void;
|
|
197
|
+
locale?: Partial<WebchatTranslations>;
|
|
198
|
+
};
|
|
149
199
|
|
|
150
200
|
declare type ChatSoundStore = {
|
|
151
201
|
soundOn: boolean;
|
|
@@ -153,32 +203,47 @@ declare type ChatSoundStore = {
|
|
|
153
203
|
toggleSound: () => void;
|
|
154
204
|
};
|
|
155
205
|
|
|
156
|
-
export declare
|
|
206
|
+
export declare const Choice: ({ text, options, groupId, ctx }: Props_18) => JSX.Element;
|
|
157
207
|
|
|
158
|
-
declare type
|
|
208
|
+
export declare type ChoiceBlock = {
|
|
209
|
+
type: 'choice';
|
|
210
|
+
text: string;
|
|
211
|
+
options: {
|
|
212
|
+
label: string;
|
|
213
|
+
value: string;
|
|
214
|
+
}[];
|
|
215
|
+
groupId: string;
|
|
216
|
+
disableFreeText?: boolean;
|
|
217
|
+
};
|
|
159
218
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
219
|
+
declare type Citation = {
|
|
220
|
+
id: number;
|
|
221
|
+
source: CitationSource;
|
|
222
|
+
tag?: string;
|
|
223
|
+
offset?: number;
|
|
165
224
|
};
|
|
166
225
|
|
|
167
|
-
|
|
168
|
-
|
|
226
|
+
/** One entry of `metadata.citations`. */
|
|
227
|
+
declare type CitationEntry = {
|
|
228
|
+
path: string;
|
|
229
|
+
citation: Citation;
|
|
169
230
|
};
|
|
170
231
|
|
|
171
|
-
|
|
172
|
-
|
|
232
|
+
declare type CitationSource = {
|
|
233
|
+
url?: string;
|
|
234
|
+
title?: string;
|
|
235
|
+
favicon?: string;
|
|
236
|
+
file?: string;
|
|
237
|
+
knowledgeBase?: string;
|
|
238
|
+
[k: string]: unknown;
|
|
173
239
|
};
|
|
174
240
|
|
|
175
|
-
export declare type
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
addMessageFeedback?: (messageId: string, feedback: Feedback) => void;
|
|
241
|
+
export declare type ClientStates = 'connecting' | 'connected' | 'error' | 'disconnected';
|
|
242
|
+
|
|
243
|
+
declare type ClientStates_2 = 'connecting' | 'connected' | 'error' | 'disconnected';
|
|
244
|
+
|
|
245
|
+
export declare const commonApiErrorMap: {
|
|
246
|
+
[key in 'MethodNotFound' | 'QuotaExceeded' | 'Forbidden']: WebchatError;
|
|
182
247
|
};
|
|
183
248
|
|
|
184
249
|
declare type CommonWebchatProps = {
|
|
@@ -196,19 +261,19 @@ export declare type ComposableIntegrationMessagePayload = Extract<IntegrationMes
|
|
|
196
261
|
|
|
197
262
|
declare type ComposableIntegrationMessageTypes = 'audio' | 'bloc' | 'file' | 'image' | 'location' | 'markdown' | 'text' | 'video';
|
|
198
263
|
|
|
199
|
-
export declare const Composer: NamedExoticComponent<Omit<
|
|
264
|
+
export declare const Composer: NamedExoticComponent<Omit<Props_2, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
200
265
|
|
|
201
266
|
export declare const CONFIG_ACCESS_DENIED = "Access denied to configuration file. Please check your credentials or your configuration URL and try again.";
|
|
202
267
|
|
|
203
268
|
export { Configuration }
|
|
204
269
|
|
|
205
270
|
export declare const Container: {
|
|
206
|
-
({ children, className, uploadFile, allowFileUpload, storageKey, conversationId, ...props }:
|
|
271
|
+
({ children, className, uploadFile, allowFileUpload, storageKey, conversationId, ...props }: Props_3): JSX.Element;
|
|
207
272
|
displayName: string;
|
|
208
273
|
};
|
|
209
274
|
|
|
210
275
|
export declare const ConversationHistory: {
|
|
211
|
-
({ className, onConversationClick, onNewConversation, onClose,
|
|
276
|
+
({ className, onConversationClick, onNewConversation, onClose, isLoading, conversations, botAvatar, botName, ...props }: ComponentProps<"div"> & ConversationHistoryProps): JSX.Element;
|
|
212
277
|
displayName: string;
|
|
213
278
|
};
|
|
214
279
|
|
|
@@ -216,7 +281,6 @@ declare type ConversationHistoryProps = {
|
|
|
216
281
|
onConversationClick?: (conversationId: string) => void;
|
|
217
282
|
onNewConversation?: () => void;
|
|
218
283
|
onClose?: () => void;
|
|
219
|
-
currentConversationId?: string;
|
|
220
284
|
isLoading?: boolean;
|
|
221
285
|
conversations: Conversations;
|
|
222
286
|
botAvatar?: string;
|
|
@@ -233,42 +297,97 @@ declare type ConversationWithLastMessage = ListConversationsResponse['conversati
|
|
|
233
297
|
};
|
|
234
298
|
};
|
|
235
299
|
|
|
236
|
-
declare const createChatSoundStore: (storeName: string) => UseBoundStore<Omit<Omit<StoreApi<ChatSoundStore>, "setState"> & {
|
|
237
|
-
setState<
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
300
|
+
declare const createChatSoundStore: (storeName: string) => UseBoundStore<Omit<Omit<StoreApi<ChatSoundStore>, "setState" | "devtools"> & {
|
|
301
|
+
setState(partial: ChatSoundStore | Partial<ChatSoundStore> | ((state: ChatSoundStore) => ChatSoundStore | Partial<ChatSoundStore>), replace?: false | undefined, action?: (string | {
|
|
302
|
+
[x: string]: unknown;
|
|
303
|
+
[x: number]: unknown;
|
|
304
|
+
[x: symbol]: unknown;
|
|
305
|
+
type: string;
|
|
306
|
+
}) | undefined): void;
|
|
307
|
+
setState(state: ChatSoundStore | ((state: ChatSoundStore) => ChatSoundStore), replace: true, action?: (string | {
|
|
308
|
+
[x: string]: unknown;
|
|
309
|
+
[x: number]: unknown;
|
|
310
|
+
[x: symbol]: unknown;
|
|
311
|
+
type: string;
|
|
312
|
+
}) | undefined): void;
|
|
313
|
+
devtools: {
|
|
314
|
+
cleanup: () => void;
|
|
315
|
+
};
|
|
316
|
+
}, "setState" | "persist"> & {
|
|
317
|
+
setState(partial: ChatSoundStore | Partial<ChatSoundStore> | ((state: ChatSoundStore) => ChatSoundStore | Partial<ChatSoundStore>), replace?: false | undefined, action?: (string | {
|
|
318
|
+
[x: string]: unknown;
|
|
319
|
+
[x: number]: unknown;
|
|
320
|
+
[x: symbol]: unknown;
|
|
321
|
+
type: string;
|
|
322
|
+
}) | undefined): unknown;
|
|
323
|
+
setState(state: ChatSoundStore | ((state: ChatSoundStore) => ChatSoundStore), replace: true, action?: (string | {
|
|
324
|
+
[x: string]: unknown;
|
|
325
|
+
[x: number]: unknown;
|
|
326
|
+
[x: symbol]: unknown;
|
|
327
|
+
type: string;
|
|
328
|
+
}) | undefined): unknown;
|
|
241
329
|
persist: {
|
|
242
|
-
setOptions: (options: Partial<PersistOptions<ChatSoundStore, ChatSoundStore>>) => void;
|
|
330
|
+
setOptions: (options: Partial<PersistOptions<ChatSoundStore, ChatSoundStore, unknown>>) => void;
|
|
243
331
|
clearStorage: () => void;
|
|
244
332
|
rehydrate: () => Promise<void> | void;
|
|
245
333
|
hasHydrated: () => boolean;
|
|
246
334
|
onHydrate: (fn: (state: ChatSoundStore) => void) => () => void;
|
|
247
335
|
onFinishHydration: (fn: (state: ChatSoundStore) => void) => () => void;
|
|
248
|
-
getOptions: () => Partial<PersistOptions<ChatSoundStore, ChatSoundStore>>;
|
|
336
|
+
getOptions: () => Partial<PersistOptions<ChatSoundStore, ChatSoundStore, unknown>>;
|
|
249
337
|
};
|
|
250
338
|
}>;
|
|
251
339
|
|
|
252
|
-
declare const
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
340
|
+
export declare const createCookieStorage: (cookieDomain?: string) => StateStorage;
|
|
341
|
+
|
|
342
|
+
declare const createWebchatClientStore: (storeName: string, storageLocation?: StorageLocation, cookieDomain?: string) => UseBoundStore<Omit<Omit<StoreApi<WebchatClientStore>, "setState" | "devtools"> & {
|
|
343
|
+
setState(partial: WebchatClientStore | Partial<WebchatClientStore> | ((state: WebchatClientStore) => WebchatClientStore | Partial<WebchatClientStore>), replace?: false | undefined, action?: (string | {
|
|
344
|
+
[x: string]: unknown;
|
|
345
|
+
[x: number]: unknown;
|
|
346
|
+
[x: symbol]: unknown;
|
|
347
|
+
type: string;
|
|
348
|
+
}) | undefined): void;
|
|
349
|
+
setState(state: WebchatClientStore | ((state: WebchatClientStore) => WebchatClientStore), replace: true, action?: (string | {
|
|
350
|
+
[x: string]: unknown;
|
|
351
|
+
[x: number]: unknown;
|
|
352
|
+
[x: symbol]: unknown;
|
|
353
|
+
type: string;
|
|
354
|
+
}) | undefined): void;
|
|
355
|
+
devtools: {
|
|
356
|
+
cleanup: () => void;
|
|
357
|
+
};
|
|
358
|
+
}, "setState" | "persist"> & {
|
|
359
|
+
setState(partial: WebchatClientStore | Partial<WebchatClientStore> | ((state: WebchatClientStore) => WebchatClientStore | Partial<WebchatClientStore>), replace?: false | undefined, action?: (string | {
|
|
360
|
+
[x: string]: unknown;
|
|
361
|
+
[x: number]: unknown;
|
|
362
|
+
[x: symbol]: unknown;
|
|
363
|
+
type: string;
|
|
364
|
+
}) | undefined): unknown;
|
|
365
|
+
setState(state: WebchatClientStore | ((state: WebchatClientStore) => WebchatClientStore), replace: true, action?: (string | {
|
|
366
|
+
[x: string]: unknown;
|
|
367
|
+
[x: number]: unknown;
|
|
368
|
+
[x: symbol]: unknown;
|
|
369
|
+
type: string;
|
|
370
|
+
}) | undefined): unknown;
|
|
257
371
|
persist: {
|
|
258
|
-
setOptions: (options: Partial<PersistOptions<WebchatClientStore, unknown>>) => void;
|
|
372
|
+
setOptions: (options: Partial<PersistOptions<WebchatClientStore, unknown, unknown>>) => void;
|
|
259
373
|
clearStorage: () => void;
|
|
260
374
|
rehydrate: () => Promise<void> | void;
|
|
261
375
|
hasHydrated: () => boolean;
|
|
262
376
|
onHydrate: (fn: (state: WebchatClientStore) => void) => () => void;
|
|
263
377
|
onFinishHydration: (fn: (state: WebchatClientStore) => void) => () => void;
|
|
264
|
-
getOptions: () => Partial<PersistOptions<WebchatClientStore, unknown>>;
|
|
378
|
+
getOptions: () => Partial<PersistOptions<WebchatClientStore, unknown, unknown>>;
|
|
265
379
|
};
|
|
266
380
|
}>;
|
|
267
381
|
|
|
268
382
|
export declare type CustomBlock = {
|
|
269
383
|
type: 'custom';
|
|
270
|
-
url: string;
|
|
271
384
|
name: string;
|
|
385
|
+
url: string;
|
|
386
|
+
data?: unknown;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
export declare type CustomRendererProps = CustomBlock & {
|
|
390
|
+
direction: 'incoming' | 'outgoing' | 'system';
|
|
272
391
|
};
|
|
273
392
|
|
|
274
393
|
export declare const de: WebchatTranslations;
|
|
@@ -279,6 +398,7 @@ export declare const defaultTranslations: {
|
|
|
279
398
|
readonly 'composer.voiceButton.ariaLabel': "Voice Input Button";
|
|
280
399
|
readonly 'composer.fileButton.ariaLabel': "Upload File Button";
|
|
281
400
|
readonly 'composer.messageInput.ariaLabel': "Message Input";
|
|
401
|
+
readonly 'composer.emojiButton.ariaLabel': "Emoji Picker Button";
|
|
282
402
|
readonly 'fileAttachment.uploadError': "Upload Error";
|
|
283
403
|
readonly 'fileAttachment.fallbackExtension': "File";
|
|
284
404
|
readonly 'fileAttachment.removeButton.ariaLabel': "Remove File Button";
|
|
@@ -286,6 +406,11 @@ export declare const defaultTranslations: {
|
|
|
286
406
|
readonly 'header.expandButton.ariaLabel': "Expand Header Button";
|
|
287
407
|
readonly 'header.sound.enable': "Enable chat sounds";
|
|
288
408
|
readonly 'header.sound.disable': "Disable chat sounds";
|
|
409
|
+
readonly 'header.menu.ariaLabel': "More options";
|
|
410
|
+
readonly 'header.expand': "Expand window";
|
|
411
|
+
readonly 'header.collapse': "Collapse window";
|
|
412
|
+
readonly 'header.mute': "Mute";
|
|
413
|
+
readonly 'header.unmute': "Unmute";
|
|
289
414
|
readonly 'conversationHistory.title': "Conversations";
|
|
290
415
|
readonly 'conversationHistory.empty': "No conversation started yet";
|
|
291
416
|
readonly 'conversationHistory.newConversation': "New conversation";
|
|
@@ -311,6 +436,26 @@ export declare const defaultTranslations: {
|
|
|
311
436
|
readonly 'message.status.delivered': "Delivered";
|
|
312
437
|
readonly 'date.today': "Today";
|
|
313
438
|
readonly 'date.yesterday': "Yesterday";
|
|
439
|
+
readonly 'hitl.passedToTeam': "Passed to the support team";
|
|
440
|
+
readonly 'hitl.findingAgent': "Finding you an agent…";
|
|
441
|
+
readonly 'hitl.supportAgent': "Support agent";
|
|
442
|
+
readonly 'hitl.defaultAgentName': "An agent";
|
|
443
|
+
readonly 'hitl.agentJoined': "{name} joined the conversation";
|
|
444
|
+
readonly 'hitl.agentTransferred': "Transferred to {name}";
|
|
445
|
+
readonly 'hitl.agentLabel': "{name} · Support";
|
|
446
|
+
readonly 'hitl.ticketClosedBy': "{name} closed the ticket";
|
|
447
|
+
readonly 'hitl.ticketClosed': "Ticket closed";
|
|
448
|
+
readonly 'hitl.waiting.title': "Waiting for an agent…";
|
|
449
|
+
readonly 'hitl.waiting.sub': "Usually a few minutes. Replies arrive here.";
|
|
450
|
+
readonly 'hitl.waiting.longTitle': "Still waiting — this is taking longer than usual";
|
|
451
|
+
readonly 'hitl.waiting.longSub': "You can close this window — the reply will land right here.";
|
|
452
|
+
readonly 'csat.question': "How did {name} do?";
|
|
453
|
+
readonly 'csat.questionGeneric': "How did we do?";
|
|
454
|
+
readonly 'csat.sub': "One tap — optional. You can keep typing below.";
|
|
455
|
+
readonly 'csat.rate': "Rate this chat";
|
|
456
|
+
readonly 'csat.commentPlaceholder': "Add a comment — optional";
|
|
457
|
+
readonly 'csat.sendComment': "Send comment";
|
|
458
|
+
readonly 'csat.thanks': "Thanks — sent to the team";
|
|
314
459
|
};
|
|
315
460
|
|
|
316
461
|
export declare function detectLocale(language?: string): WebchatTranslations;
|
|
@@ -320,14 +465,16 @@ export declare type Dimensions = {
|
|
|
320
465
|
height: number;
|
|
321
466
|
};
|
|
322
467
|
|
|
468
|
+
export declare const Dropdown: ({ text, options, reusable, ctx }: Props_15) => JSX.Element;
|
|
469
|
+
|
|
323
470
|
export declare type DropdownBlock = {
|
|
324
|
-
label?: string;
|
|
325
471
|
type: 'dropdown';
|
|
326
|
-
|
|
472
|
+
text?: string;
|
|
327
473
|
options: {
|
|
328
474
|
label: string;
|
|
329
475
|
value: string;
|
|
330
476
|
}[];
|
|
477
|
+
reusable?: boolean;
|
|
331
478
|
};
|
|
332
479
|
|
|
333
480
|
export declare function enrichMessage(messages: BlockMessage[], participants: User[], currentUserId: string, botName?: string, botAvatar?: string): RichBlockMessage[];
|
|
@@ -338,7 +485,7 @@ declare type ErrorProps = {
|
|
|
338
485
|
closeWindow?: () => void;
|
|
339
486
|
};
|
|
340
487
|
|
|
341
|
-
export declare function ErrorState({ error, restartConversation, closeWindow }: ErrorProps):
|
|
488
|
+
export declare function ErrorState({ error, restartConversation, closeWindow }: ErrorProps): JSX.Element;
|
|
342
489
|
|
|
343
490
|
export declare const es: WebchatTranslations;
|
|
344
491
|
|
|
@@ -354,12 +501,15 @@ declare type Events_2 = {
|
|
|
354
501
|
[key: string]: string;
|
|
355
502
|
};
|
|
356
503
|
|
|
357
|
-
export declare const Fab:
|
|
504
|
+
export declare const Fab: ForwardRefExoticComponent<Omit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
|
|
358
505
|
imgUrl?: string;
|
|
359
|
-
}, "ref"> &
|
|
506
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
360
507
|
|
|
361
508
|
export declare type Feedback = AddMessageFeedbackBody;
|
|
362
509
|
|
|
510
|
+
declare const File_2: ({ title, url, isReadOnly }: Props_16) => JSX.Element;
|
|
511
|
+
export { File_2 as File }
|
|
512
|
+
|
|
363
513
|
export declare type FileBlock = {
|
|
364
514
|
type: 'file';
|
|
365
515
|
url: string;
|
|
@@ -376,34 +526,57 @@ export declare function generateThemeOverride(theme: LatestWebchatTheme): Record
|
|
|
376
526
|
|
|
377
527
|
export declare function generateThemeStylesheet(theme: LatestWebchatTheme): string;
|
|
378
528
|
|
|
379
|
-
export declare type GenericBlock = AudioBlock | BubbleBlock | ButtonBlock | CarouselBlock | ColumnBlock | DropdownBlock | FileBlock | ImageBlock | LocationBlock | RowBlock | TextBlock | VideoBlock | CustomBlock;
|
|
380
|
-
|
|
381
529
|
export declare const getUseChatSoundStore: (name?: string) => BoundChatSoundStore;
|
|
382
530
|
|
|
383
|
-
export declare const getUseWebchatClientStore: (name?: string, storageLocation?: StorageLocation) => BoundWebchatClientStore;
|
|
531
|
+
export declare const getUseWebchatClientStore: (name?: string, storageLocation?: StorageLocation, cookieDomain?: string) => BoundWebchatClientStore;
|
|
384
532
|
|
|
385
|
-
export declare const Header: ({
|
|
533
|
+
export declare const Header: ({ closeWindow, configuration, showConversationHistory, soundOn, toggleSound, clientId, expanded, onToggleExpand, hitlStatus, }: HeaderProps) => JSX.Element;
|
|
386
534
|
|
|
387
535
|
declare type HeaderProps = {
|
|
388
|
-
defaultOpen?: boolean;
|
|
389
|
-
open?: boolean;
|
|
390
|
-
disabled?: boolean;
|
|
391
536
|
showConversationHistory?: () => void;
|
|
392
|
-
onOpenChange?(open: boolean): void;
|
|
393
|
-
restartConversation?: () => void;
|
|
394
537
|
closeWindow?: () => void;
|
|
395
538
|
clientId?: string;
|
|
396
539
|
soundOn?: boolean;
|
|
397
540
|
toggleSound?: () => void;
|
|
398
|
-
configuration: Pick<Configuration, '
|
|
541
|
+
configuration: Pick<Configuration, 'botAvatar' | 'botName' | 'botDescription' | 'soundEnabled'>;
|
|
542
|
+
expanded?: boolean;
|
|
543
|
+
onToggleExpand?: () => void;
|
|
544
|
+
/** Live handoff state: 'waiting' pulses an amber "finding you an agent"
|
|
545
|
+
* status line; 'agent' swaps the header identity to the assigned agent
|
|
546
|
+
* while the ticket is active. */
|
|
547
|
+
hitlStatus?: HitlStatus;
|
|
399
548
|
};
|
|
400
549
|
|
|
550
|
+
/**
|
|
551
|
+
* The widget's live handoff state, derived from the lifecycle markers in the
|
|
552
|
+
* message stream (in order):
|
|
553
|
+
* ticket_opened → waiting · agent_assigned → agent · ticket_closed → bot.
|
|
554
|
+
* Drives the header (amber "finding an agent" pulse / agent identity) and the
|
|
555
|
+
* in-stream waiting block.
|
|
556
|
+
*/
|
|
557
|
+
declare type HitlStatus = {
|
|
558
|
+
mode: 'bot';
|
|
559
|
+
} | {
|
|
560
|
+
mode: 'waiting';
|
|
561
|
+
since: Date;
|
|
562
|
+
message?: string;
|
|
563
|
+
hidden?: boolean;
|
|
564
|
+
} | {
|
|
565
|
+
mode: 'agent';
|
|
566
|
+
agentName?: string;
|
|
567
|
+
agentAvatarUrl?: string;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
export declare const IconButton: ({ icon: Icon, label, onClick, className, style, size }: Props_4) => JSX.Element;
|
|
571
|
+
|
|
401
572
|
export declare type ImageBlock = {
|
|
402
573
|
type: 'image';
|
|
403
|
-
orientation?: 'portrait' | 'landscape' | 'square' | 'auto';
|
|
404
574
|
url: string;
|
|
575
|
+
orientation?: 'portrait' | 'landscape' | 'square' | 'auto';
|
|
405
576
|
};
|
|
406
577
|
|
|
578
|
+
export declare const ImageComponent: ForwardRefExoticComponent_3<Props_10 & RefAttributes_3<HTMLImageElement>>;
|
|
579
|
+
|
|
407
580
|
export declare type InputModalProps<T> = {
|
|
408
581
|
title?: string;
|
|
409
582
|
description?: string;
|
|
@@ -415,15 +588,13 @@ export declare type InputModalProps<T> = {
|
|
|
415
588
|
Content?: ({ setValue }: {
|
|
416
589
|
value: T | undefined;
|
|
417
590
|
setValue: (value: T) => void;
|
|
418
|
-
}) =>
|
|
591
|
+
}) => ReactNode;
|
|
419
592
|
};
|
|
420
593
|
|
|
421
594
|
export declare type IntegrationMessage = Message_2;
|
|
422
595
|
|
|
423
596
|
export declare type IntegrationMessagePayloadByType = ByType<IntegrationMessage['payload']>;
|
|
424
597
|
|
|
425
|
-
export declare const integrationMessagePayloadToBlockPayload: (message: IntegrationMessage["payload"]) => BlockMessagePayload;
|
|
426
|
-
|
|
427
598
|
export declare function integrationMessageToBlockMessage(message: IntegrationMessage): BlockMessage;
|
|
428
599
|
|
|
429
600
|
declare type IntegrationMessageTypes = IntegrationMessage['payload']['type'];
|
|
@@ -456,6 +627,12 @@ export declare const ja: WebchatTranslations;
|
|
|
456
627
|
|
|
457
628
|
export declare const ko: WebchatTranslations;
|
|
458
629
|
|
|
630
|
+
/** Leaf block types that can appear inside a bloc */
|
|
631
|
+
export declare type LeafBlock = TextBlock | ImageBlock | VideoBlock | AudioBlock | FileBlock | LocationBlock;
|
|
632
|
+
|
|
633
|
+
declare const Location_2: ({ latitude, longitude, title, isReadOnly }: Props_13) => JSX.Element;
|
|
634
|
+
export { Location_2 as Location }
|
|
635
|
+
|
|
459
636
|
export declare type LocationBlock = {
|
|
460
637
|
type: 'location';
|
|
461
638
|
latitude: number;
|
|
@@ -463,23 +640,21 @@ export declare type LocationBlock = {
|
|
|
463
640
|
title?: string;
|
|
464
641
|
};
|
|
465
642
|
|
|
643
|
+
export declare const MainCard: ({ title, subtitle, botAvatar, botName, onClick }: MainCardProps) => JSX.Element;
|
|
644
|
+
|
|
645
|
+
declare type MainCardProps = {
|
|
646
|
+
title: string;
|
|
647
|
+
subtitle?: string;
|
|
648
|
+
botAvatar?: string;
|
|
649
|
+
botName?: string;
|
|
650
|
+
onClick?: () => void;
|
|
651
|
+
};
|
|
652
|
+
|
|
466
653
|
export declare const mapToWebchatError: (thrown: unknown) => WebchatError;
|
|
467
654
|
|
|
468
|
-
export declare const Message:
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
sendMessage?: (payload: IntegrationMessage["payload"]) => void;
|
|
472
|
-
addMessageFeedback?: (messageId: string, feedback: Feedback) => void;
|
|
473
|
-
isReadOnly?: boolean;
|
|
474
|
-
isLastDeliveredMessage?: boolean;
|
|
475
|
-
showAvatar?: boolean;
|
|
476
|
-
} & BlockMessage<GenericBlock> & {
|
|
477
|
-
direction: "incoming" | "outgoing" | "system";
|
|
478
|
-
sender: {
|
|
479
|
-
name: string;
|
|
480
|
-
avatar?: string;
|
|
481
|
-
};
|
|
482
|
-
} & RefAttributes_2<HTMLDivElement>>;
|
|
655
|
+
export declare const Message: ({ direction, block, disableInput, children, sender, id, authorId, isReadOnly, isLastDeliveredMessage, isLastMessage, sendMessage, showAvatar, renderers, addMessageFeedback, feedback, timestamp, metadata, citationsEnabled, }: MessageProps) => JSX.Element;
|
|
656
|
+
|
|
657
|
+
export declare type MessageBlock = TextBlock | ImageBlock | VideoBlock | AudioBlock | FileBlock | LocationBlock | CardBlock | CarouselBlock | ChoiceBlock | DropdownBlock | BlocBlock | CustomBlock;
|
|
483
658
|
|
|
484
659
|
export declare const MessageContext: Context<MessageContextVaue | null>;
|
|
485
660
|
|
|
@@ -488,31 +663,70 @@ declare type MessageContextVaue = {
|
|
|
488
663
|
setIsLoading: Dispatch<SetStateAction<string[]>>;
|
|
489
664
|
};
|
|
490
665
|
|
|
491
|
-
export declare const MessageList: MemoExoticComponent<({ className, messages, isTyping,
|
|
666
|
+
export declare const MessageList: MemoExoticComponent<({ className, messages, isTyping, botAvatar, botName, botDescription, sendMessage, hitlWaiting, addMessageFeedback, citationsEnabled, showMarquee, showDateSystemMessage, showMessageStatus, showIncomingMessageAvatar, showOutgoingMessageAvatar, homePageEnabled, welcomeHeading, welcomeSubtitle, mainCardEnabled, mainCardTitle, mainCardSubtitle, onMainCardClick, conversationStartersEnabled, conversationStarters, conversationStartersDisplayStyle, renderers, ...props }: ComponentProps<"div"> & MessageListProps) => JSX.Element>;
|
|
492
667
|
|
|
493
668
|
declare type MessageListProps = {
|
|
494
669
|
messages?: RichBlockMessage[];
|
|
495
670
|
isTyping?: boolean;
|
|
496
|
-
headerMessage?: string;
|
|
497
|
-
renderers?: Partial<Renderers>;
|
|
498
671
|
botAvatar?: string;
|
|
499
|
-
botDescription?: string;
|
|
500
672
|
botName?: string;
|
|
501
|
-
|
|
502
|
-
|
|
673
|
+
botDescription?: string;
|
|
674
|
+
sendMessage?: ScopedClient['sendMessage'];
|
|
675
|
+
/** Set while a HITL ticket is waiting for an agent — renders the in-stream
|
|
676
|
+
* waiting block under the messages (dots + "you're in line"). */
|
|
677
|
+
hitlWaiting?: {
|
|
678
|
+
since: Date;
|
|
679
|
+
message?: string;
|
|
680
|
+
};
|
|
681
|
+
addMessageFeedback?: (messageId: string, feedback: Feedback) => Promise<void>;
|
|
682
|
+
/** Inline citation pills + Sources footer (undefined = enabled). */
|
|
683
|
+
citationsEnabled?: boolean;
|
|
503
684
|
showMarquee?: boolean;
|
|
504
685
|
showDateSystemMessage?: boolean;
|
|
505
686
|
showMessageStatus?: boolean;
|
|
506
687
|
showIncomingMessageAvatar?: boolean;
|
|
507
688
|
showOutgoingMessageAvatar?: boolean;
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
689
|
+
homePageEnabled?: boolean;
|
|
690
|
+
welcomeHeading?: string;
|
|
691
|
+
welcomeSubtitle?: string;
|
|
692
|
+
mainCardEnabled?: boolean;
|
|
693
|
+
mainCardTitle?: string;
|
|
694
|
+
mainCardSubtitle?: string;
|
|
695
|
+
onMainCardClick?: () => void;
|
|
696
|
+
conversationStartersEnabled?: boolean;
|
|
697
|
+
conversationStarters?: ConversationStarter[];
|
|
698
|
+
conversationStartersDisplayStyle?: ConversationStarterDisplayStyle;
|
|
699
|
+
renderers?: MessageRenderers;
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
export declare const MessagePreview: ForwardRefExoticComponent<Omit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
|
|
511
703
|
avatarUrl?: string;
|
|
512
704
|
botName?: string;
|
|
513
705
|
description?: string;
|
|
514
706
|
onClose?: () => void;
|
|
515
|
-
}, "ref"> &
|
|
707
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
708
|
+
|
|
709
|
+
declare type MessageProps = {
|
|
710
|
+
children?: ReactNode_2;
|
|
711
|
+
sendMessage?: ScopedClient['sendMessage'];
|
|
712
|
+
isReadOnly?: boolean;
|
|
713
|
+
isLastDeliveredMessage?: boolean;
|
|
714
|
+
/** False when a newer message exists — an unanswered CSAT card collapses to its quiet row. */
|
|
715
|
+
isLastMessage?: boolean;
|
|
716
|
+
showAvatar?: boolean;
|
|
717
|
+
renderers?: MessageRenderers;
|
|
718
|
+
addMessageFeedback?: (messageId: string, feedback: Feedback) => Promise<void>;
|
|
719
|
+
/** Inline citation pills + Sources footer. Undefined = enabled at the
|
|
720
|
+
* component level; Chat passes the config gate (`citationsEnabled === true`,
|
|
721
|
+
* off by default so unversioned existing bots keep their behavior). */
|
|
722
|
+
citationsEnabled?: boolean;
|
|
723
|
+
} & Omit<RichBlockMessage, 'block'> & {
|
|
724
|
+
block?: RichBlockMessage['block'];
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
export declare type MessageRenderers = {
|
|
728
|
+
custom?: React.FC<CustomRendererProps>;
|
|
729
|
+
};
|
|
516
730
|
|
|
517
731
|
export declare const MISSING_API_URL = "The API url is required to initialize the webchat.";
|
|
518
732
|
|
|
@@ -525,12 +739,12 @@ export declare const MISSING_CONFIG_URL = "No config URL provided.";
|
|
|
525
739
|
export declare function Modal({ open, onOpenChange, children, }: {
|
|
526
740
|
open?: boolean;
|
|
527
741
|
onOpenChange?: (open: boolean) => void;
|
|
528
|
-
children:
|
|
529
|
-
}):
|
|
742
|
+
children: ReactNode_2;
|
|
743
|
+
}): JSX.Element;
|
|
530
744
|
|
|
531
745
|
export declare namespace Modal {
|
|
532
|
-
var Button:
|
|
533
|
-
var Close:
|
|
746
|
+
var Button: ForwardRefExoticComponent_2<Dialog.DialogTriggerProps & RefAttributes_2<HTMLButtonElement>>;
|
|
747
|
+
var Close: ForwardRefExoticComponent_2<Dialog.DialogCloseProps & RefAttributes_2<HTMLButtonElement>>;
|
|
534
748
|
var Content: typeof ModalContent;
|
|
535
749
|
}
|
|
536
750
|
|
|
@@ -541,8 +755,8 @@ declare function ModalContent({ title, description, onConfirm, onCancel, confirm
|
|
|
541
755
|
onCancel?: () => void;
|
|
542
756
|
confirmButtonText?: string;
|
|
543
757
|
cancelButtonText?: string;
|
|
544
|
-
children:
|
|
545
|
-
}):
|
|
758
|
+
children: ReactNode_2;
|
|
759
|
+
}): JSX.Element;
|
|
546
760
|
|
|
547
761
|
export declare const ModalContext: Context<ModalContextValue>;
|
|
548
762
|
|
|
@@ -551,8 +765,12 @@ declare type ModalContextValue = {
|
|
|
551
765
|
};
|
|
552
766
|
|
|
553
767
|
export declare const ModalProvider: ({ children }: {
|
|
554
|
-
children:
|
|
555
|
-
}) =>
|
|
768
|
+
children: ReactNode;
|
|
769
|
+
}) => JSX.Element;
|
|
770
|
+
|
|
771
|
+
export declare const MotionProvider: ({ children }: {
|
|
772
|
+
children: ReactNode;
|
|
773
|
+
}) => JSX.Element;
|
|
556
774
|
|
|
557
775
|
export declare const NETWORK_ERROR = "Please check your internet connection and refresh the page.";
|
|
558
776
|
|
|
@@ -562,35 +780,7 @@ export declare type Options = {
|
|
|
562
780
|
timeout?: number;
|
|
563
781
|
};
|
|
564
782
|
|
|
565
|
-
|
|
566
|
-
className?: string;
|
|
567
|
-
renderers?: Partial<Renderers>;
|
|
568
|
-
configuration: Configuration;
|
|
569
|
-
messages: BlockMessage[];
|
|
570
|
-
participants: User[];
|
|
571
|
-
connected?: boolean;
|
|
572
|
-
disableComposer?: boolean;
|
|
573
|
-
isReadOnly?: boolean;
|
|
574
|
-
isLoading?: boolean;
|
|
575
|
-
isTyping?: boolean;
|
|
576
|
-
clientId?: string;
|
|
577
|
-
closeWindow?: () => void;
|
|
578
|
-
restartConversation?: (conversationid?: string) => void;
|
|
579
|
-
user?: UserCredentials;
|
|
580
|
-
sendMessage?: ScopedClient['sendMessage'];
|
|
581
|
-
uploadFile?: ScopedClient['uploadFile'];
|
|
582
|
-
addMessageFeedback?: ScopedClient['addMessageFeedback'];
|
|
583
|
-
listConversations?: ScopedClient['listConversations'];
|
|
584
|
-
error?: WebchatError;
|
|
585
|
-
soundOn?: boolean;
|
|
586
|
-
toggleSound?: () => void;
|
|
587
|
-
storageKey?: string;
|
|
588
|
-
disableSendButton?: boolean;
|
|
589
|
-
conversationId?: string;
|
|
590
|
-
locale?: Partial<WebchatTranslations>;
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
declare type Props_2 = {
|
|
783
|
+
declare type Props = {
|
|
594
784
|
adminSecret?: string;
|
|
595
785
|
user?: UserCredentials;
|
|
596
786
|
conversationId?: string;
|
|
@@ -603,7 +793,63 @@ declare type Props_2 = {
|
|
|
603
793
|
clientHeaders?: Record<string, string>;
|
|
604
794
|
};
|
|
605
795
|
|
|
606
|
-
declare type
|
|
796
|
+
declare type Props_10 = {
|
|
797
|
+
url: string;
|
|
798
|
+
orientation?: ImageBlock['orientation'];
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
declare type Props_11 = {
|
|
802
|
+
url: string;
|
|
803
|
+
isReadOnly?: boolean;
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
declare type Props_12 = {
|
|
807
|
+
url: string;
|
|
808
|
+
isReadOnly?: boolean;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
declare type Props_13 = {
|
|
812
|
+
latitude: number;
|
|
813
|
+
longitude: number;
|
|
814
|
+
title?: string;
|
|
815
|
+
isReadOnly?: boolean;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
declare type Props_14 = {
|
|
819
|
+
cards: CardBlock[];
|
|
820
|
+
ctx: BlockContext;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
declare type Props_15 = {
|
|
824
|
+
text?: string;
|
|
825
|
+
options: {
|
|
826
|
+
label: string;
|
|
827
|
+
value: string;
|
|
828
|
+
}[];
|
|
829
|
+
reusable?: boolean;
|
|
830
|
+
ctx: BlockContext;
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
declare type Props_16 = {
|
|
834
|
+
url: string;
|
|
835
|
+
title?: string;
|
|
836
|
+
isReadOnly?: boolean;
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
declare type Props_17 = CardBlock & {
|
|
840
|
+
ctx: BlockContext;
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
declare type Props_18 = ChoiceBlock & {
|
|
844
|
+
ctx: BlockContext;
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
declare type Props_19 = {
|
|
848
|
+
items: LeafBlock[];
|
|
849
|
+
ctx: BlockContext;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
declare type Props_2 = ComponentProps<'div'> & {
|
|
607
853
|
inputRef?: Ref<HTMLTextAreaElement>;
|
|
608
854
|
disableComposer?: boolean;
|
|
609
855
|
isReadOnly?: boolean;
|
|
@@ -614,52 +860,84 @@ declare type Props_3 = ComponentProps<'div'> & {
|
|
|
614
860
|
uploadFile?: ScopedClient['uploadFile'];
|
|
615
861
|
storageKey?: string;
|
|
616
862
|
conversationId?: string;
|
|
863
|
+
onTextChange?: (text: string) => void;
|
|
864
|
+
statusText?: ReactNode_2;
|
|
617
865
|
} & Pick<Configuration, 'composerPlaceholder' | 'footer'>;
|
|
618
866
|
|
|
619
|
-
declare type
|
|
620
|
-
|
|
867
|
+
declare type Props_20 = Partial<LatestWebchatTheme>;
|
|
868
|
+
|
|
869
|
+
declare type Props_3 = ComponentProps<'div'> & {
|
|
621
870
|
uploadFile?: ScopedClient['uploadFile'];
|
|
622
871
|
allowFileUpload?: boolean;
|
|
623
872
|
storageKey?: string;
|
|
624
873
|
conversationId?: string;
|
|
625
874
|
};
|
|
626
875
|
|
|
627
|
-
declare type
|
|
628
|
-
|
|
629
|
-
|
|
876
|
+
declare type Props_4 = {
|
|
877
|
+
icon: LucideIcon;
|
|
878
|
+
label: string;
|
|
879
|
+
onClick?: (e: React.SyntheticEvent) => void;
|
|
880
|
+
className?: string;
|
|
881
|
+
style?: React.CSSProperties;
|
|
882
|
+
size?: number;
|
|
883
|
+
};
|
|
630
884
|
|
|
631
|
-
declare type
|
|
885
|
+
declare type Props_5 = {
|
|
632
886
|
clientId: string;
|
|
633
887
|
apiUrl?: string;
|
|
634
888
|
storageKey?: string;
|
|
635
889
|
user?: UserCredentials;
|
|
636
890
|
conversationId?: string;
|
|
637
891
|
configuration?: Configuration;
|
|
638
|
-
soundOn?: boolean;
|
|
639
|
-
toggleSound?: () => void;
|
|
640
|
-
/** @deprecated This prop is no longer used, pass the allowFileUpload via the configuration object */
|
|
641
|
-
allowFileUpload?: boolean;
|
|
642
|
-
renderers?: Partial<Renderers>;
|
|
643
|
-
locale?: Partial<WebchatTranslations>;
|
|
644
892
|
} & ComponentProps_2<'div'>;
|
|
645
893
|
|
|
646
|
-
declare type
|
|
894
|
+
declare type Props_6 = {
|
|
895
|
+
text: string;
|
|
896
|
+
ctx: BlockContext;
|
|
897
|
+
/** When true, render without bubble wrapper (used inside Card/Choice) */
|
|
898
|
+
bare?: boolean;
|
|
899
|
+
/** Payload dot-path of this text (e.g. "root.text") — selects the citation
|
|
900
|
+
* entries from `ctx.citations` whose pills splice into THIS text. */
|
|
901
|
+
citationPath?: string;
|
|
902
|
+
/** Added to citation offsets when the rendered text was prefixed after the
|
|
903
|
+
* offsets were recorded (e.g. a card title rendered as `#### ${title}`). */
|
|
904
|
+
citationOffsetShift?: number;
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
declare type Props_7 = {
|
|
908
|
+
text: string;
|
|
909
|
+
buttonValue: string;
|
|
910
|
+
variant: 'action' | 'link';
|
|
911
|
+
reusable?: boolean;
|
|
912
|
+
groupId?: string;
|
|
913
|
+
sendMessage?: ScopedClient['sendMessage'];
|
|
914
|
+
isReadOnly?: boolean;
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
declare type Props_8 = {
|
|
918
|
+
actions: Action[];
|
|
919
|
+
groupId?: string;
|
|
920
|
+
reusable?: boolean;
|
|
921
|
+
sendMessage?: ScopedClient['sendMessage'];
|
|
922
|
+
isReadOnly?: boolean;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
declare type Props_9 = {
|
|
926
|
+
ctx: BlockContext;
|
|
927
|
+
children: ReactNode_2;
|
|
928
|
+
};
|
|
647
929
|
|
|
648
930
|
export declare const pt: WebchatTranslations;
|
|
649
931
|
|
|
650
932
|
export declare const QUOTA_EXCEEDED = "This bot has temporarily paused.\nPlease check back later.";
|
|
651
933
|
|
|
652
|
-
export declare
|
|
653
|
-
[T in GenericBlock['type']]: FC<BlockObjects[T]>;
|
|
654
|
-
};
|
|
655
|
-
|
|
656
|
-
export declare const renderers: Renderers;
|
|
934
|
+
export declare function renderBlock(block: MessageBlock, ctx: BlockContext): JSX_2.Element;
|
|
657
935
|
|
|
658
|
-
export declare const
|
|
936
|
+
export declare const resolveStarterIcon: (icon?: string) => LucideIcon;
|
|
659
937
|
|
|
660
938
|
export declare const retryWithBackoff: <T>(fn: () => Promise<T>, maxAttempts?: number, delayMs?: number) => Promise<T>;
|
|
661
939
|
|
|
662
|
-
export declare type RichBlockMessage
|
|
940
|
+
export declare type RichBlockMessage = BlockMessage & {
|
|
663
941
|
direction: 'incoming' | 'outgoing' | 'system';
|
|
664
942
|
sender: {
|
|
665
943
|
name: string;
|
|
@@ -667,19 +945,8 @@ export declare type RichBlockMessage<T = GenericBlock> = BlockMessage<T> & {
|
|
|
667
945
|
};
|
|
668
946
|
};
|
|
669
947
|
|
|
670
|
-
export declare type RowBlock = {
|
|
671
|
-
type: 'row';
|
|
672
|
-
blocks: GenericBlock[];
|
|
673
|
-
horizontalAlignment?: 'left' | 'center' | 'right' | 'stretch';
|
|
674
|
-
verticalAlignment?: 'top' | 'center' | 'bottom';
|
|
675
|
-
};
|
|
676
|
-
|
|
677
|
-
export declare type RowOf<T extends GenericBlock> = Omit<RowBlock, 'blocks'> & {
|
|
678
|
-
blocks: T[];
|
|
679
|
-
};
|
|
680
|
-
|
|
681
948
|
export declare type ScopedClient = {
|
|
682
|
-
sendMessage: (payload: IntegrationMessage['payload']) => Promise<void>;
|
|
949
|
+
sendMessage: (payload: IntegrationMessage['payload'], metadata?: Record<string, string>) => Promise<void>;
|
|
683
950
|
sendEvent: (event: Record<string, any>, options?: {
|
|
684
951
|
bindConversation?: boolean;
|
|
685
952
|
bindUser?: boolean;
|
|
@@ -690,7 +957,6 @@ export declare type ScopedClient = {
|
|
|
690
957
|
type: FileType;
|
|
691
958
|
fileId: string;
|
|
692
959
|
}>;
|
|
693
|
-
addMessageFeedback: (messageId: string, feedback: Feedback) => Promise<void>;
|
|
694
960
|
getUser: () => Promise<UserResponse>;
|
|
695
961
|
updateUser: (user: UserProfile) => Promise<User>;
|
|
696
962
|
listConversations: () => ReturnType<Client['listConversations']>;
|
|
@@ -706,7 +972,18 @@ export declare const SOUND_EFFECTS: {
|
|
|
706
972
|
|
|
707
973
|
export declare const SSE_DISCONNECTED_ERROR = "You've been disconnected from the conversation.\nPlease refresh the page.";
|
|
708
974
|
|
|
709
|
-
export declare
|
|
975
|
+
export declare const STARTER_ICON_NAMES: string[];
|
|
976
|
+
|
|
977
|
+
export declare const Starters: MemoExoticComponent<({ enabled, starters, displayStyle, sendMessage }: StartersProps) => JSX.Element | null>;
|
|
978
|
+
|
|
979
|
+
declare type StartersProps = {
|
|
980
|
+
enabled?: boolean;
|
|
981
|
+
starters?: ConversationStarter[];
|
|
982
|
+
displayStyle?: ConversationStarterDisplayStyle;
|
|
983
|
+
sendMessage?: ScopedClient['sendMessage'];
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
export declare type StorageLocation = 'sessionStorage' | 'localStorage' | 'cookieStorage';
|
|
710
987
|
|
|
711
988
|
export declare type StyleOptions = {
|
|
712
989
|
className?: string;
|
|
@@ -716,12 +993,18 @@ export declare type StyleOptions = {
|
|
|
716
993
|
/**
|
|
717
994
|
* StylesheetProvider component that manages theme styles and font loading
|
|
718
995
|
*/
|
|
719
|
-
export declare const StylesheetProvider: ({ color, fontFamily,
|
|
996
|
+
export declare const StylesheetProvider: ({ color, fontFamily, themeMode }: Props_20) => JSX.Element;
|
|
997
|
+
|
|
998
|
+
declare const Text_2: ({ text, ctx, bare, citationPath, citationOffsetShift }: Props_6) => JSX.Element;
|
|
999
|
+
export { Text_2 as Text }
|
|
720
1000
|
|
|
721
1001
|
export declare type TextBlock = {
|
|
722
1002
|
type: 'text';
|
|
723
1003
|
text: string;
|
|
724
1004
|
value?: string;
|
|
1005
|
+
/** Dot-path of this text in the original message payload (e.g. "root.text",
|
|
1006
|
+
* "root.markdown", "root.items.0.payload.text") — matches citation entries. */
|
|
1007
|
+
citationPath?: string;
|
|
725
1008
|
};
|
|
726
1009
|
|
|
727
1010
|
declare type ToPayloadType<T extends IntegrationMessageTypes> = {
|
|
@@ -732,9 +1015,7 @@ declare type ToPayloadType<T extends IntegrationMessageTypes> = {
|
|
|
732
1015
|
|
|
733
1016
|
declare let _trackFn: ((event: string, properties?: Record<string, unknown>) => void) | null;
|
|
734
1017
|
|
|
735
|
-
export declare const
|
|
736
|
-
|
|
737
|
-
export declare const TypingIndicator: MemoExoticComponent<({ ...props }: ComponentProps<"div">) => JSX_2.Element>;
|
|
1018
|
+
export declare const TypingIndicator: MemoExoticComponent<({ ...props }: ComponentProps<"div">) => JSX.Element>;
|
|
738
1019
|
|
|
739
1020
|
export declare function useActiveConversation(): UseActiveConversationReturn;
|
|
740
1021
|
|
|
@@ -742,18 +1023,10 @@ declare type UseActiveConversationReturn = {
|
|
|
742
1023
|
conversationId?: string;
|
|
743
1024
|
messages: BlockMessage[];
|
|
744
1025
|
participants: User[];
|
|
745
|
-
sendMessage:
|
|
1026
|
+
sendMessage: ScopedClient['sendMessage'];
|
|
746
1027
|
saveMessageFeedback: (messageId: string, feedback: Feedback) => Promise<void>;
|
|
747
|
-
sendEvent:
|
|
748
|
-
|
|
749
|
-
bindUser?: boolean;
|
|
750
|
-
}) => Promise<void>;
|
|
751
|
-
uploadFile: (file: File) => Promise<{
|
|
752
|
-
fileUrl: string;
|
|
753
|
-
name: string;
|
|
754
|
-
type: FileType;
|
|
755
|
-
fileId: string;
|
|
756
|
-
}>;
|
|
1028
|
+
sendEvent: ScopedClient['sendEvent'];
|
|
1029
|
+
uploadFile: ScopedClient['uploadFile'];
|
|
757
1030
|
status: ClientStates;
|
|
758
1031
|
on: ReturnType<typeof createEventEmitter<Events>>['on'];
|
|
759
1032
|
error?: WebchatError;
|
|
@@ -794,11 +1067,26 @@ export declare function useModalContext(): ModalContextValue;
|
|
|
794
1067
|
|
|
795
1068
|
export { User }
|
|
796
1069
|
|
|
1070
|
+
export declare function useReadIndicator(): {
|
|
1071
|
+
onMessageReceived: (messageId: string) => void;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
797
1074
|
export declare type UserProfile = Omit<User, 'id' | 'createdAt' | 'updatedAt'>;
|
|
798
1075
|
|
|
799
1076
|
export declare type UserResponse = Awaited<ReturnType<Client['getUser']>>['user'];
|
|
800
1077
|
|
|
801
|
-
export declare function
|
|
1078
|
+
export declare function useSound({ storageKey, soundEnabled }: UseSoundProps): UseSoundReturn;
|
|
1079
|
+
|
|
1080
|
+
declare type UseSoundProps = {
|
|
1081
|
+
storageKey?: string;
|
|
1082
|
+
soundEnabled?: boolean;
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
declare type UseSoundReturn = {
|
|
1086
|
+
soundOn: boolean;
|
|
1087
|
+
toggleSound: () => void;
|
|
1088
|
+
playNotificationSound: () => void;
|
|
1089
|
+
};
|
|
802
1090
|
|
|
803
1091
|
export declare const useUser: () => UseUserReturn;
|
|
804
1092
|
|
|
@@ -824,7 +1112,7 @@ declare type UseUserReturn = {
|
|
|
824
1112
|
* </WebchatProvider>
|
|
825
1113
|
* ```
|
|
826
1114
|
*/
|
|
827
|
-
export declare function useWebchat({ apiUrl, clientId, storageKey, storageLocation, adminSecret, soundEnabled, clientHeaders, ...props }:
|
|
1115
|
+
export declare function useWebchat({ apiUrl, clientId, storageKey, storageLocation, adminSecret, soundEnabled, clientHeaders, ...props }: Props): UseWebchatReturn;
|
|
828
1116
|
|
|
829
1117
|
export declare function useWebchatContext(): WebchatContextValue;
|
|
830
1118
|
|
|
@@ -845,610 +1133,34 @@ declare type UseWebchatReturn = (CommonWebchatProps & {
|
|
|
845
1133
|
isTyping: undefined;
|
|
846
1134
|
});
|
|
847
1135
|
|
|
848
|
-
export declare const useWebchatStore: UseBoundStore<Omit<StoreApi<WebchatStore>, "setState"> & {
|
|
849
|
-
setState<
|
|
850
|
-
|
|
851
|
-
|
|
1136
|
+
export declare const useWebchatStore: UseBoundStore<Omit<StoreApi<WebchatStore>, "setState" | "devtools"> & {
|
|
1137
|
+
setState(partial: WebchatStore | Partial<WebchatStore> | ((state: WebchatStore) => WebchatStore | Partial<WebchatStore>), replace?: false | undefined, action?: (string | {
|
|
1138
|
+
[x: string]: unknown;
|
|
1139
|
+
[x: number]: unknown;
|
|
1140
|
+
[x: symbol]: unknown;
|
|
1141
|
+
type: string;
|
|
1142
|
+
}) | undefined): void;
|
|
1143
|
+
setState(state: WebchatStore | ((state: WebchatStore) => WebchatStore), replace: true, action?: (string | {
|
|
1144
|
+
[x: string]: unknown;
|
|
1145
|
+
[x: number]: unknown;
|
|
1146
|
+
[x: symbol]: unknown;
|
|
1147
|
+
type: string;
|
|
1148
|
+
}) | undefined): void;
|
|
1149
|
+
devtools: {
|
|
1150
|
+
cleanup: () => void;
|
|
1151
|
+
};
|
|
852
1152
|
}>;
|
|
853
1153
|
|
|
854
1154
|
declare type ValueOf<T> = T[keyof T];
|
|
855
1155
|
|
|
1156
|
+
export declare const Video: ({ url, isReadOnly }: Props_11) => JSX.Element;
|
|
1157
|
+
|
|
856
1158
|
export declare type VideoBlock = {
|
|
857
1159
|
type: 'video';
|
|
858
1160
|
url: string;
|
|
859
1161
|
};
|
|
860
1162
|
|
|
861
|
-
export declare const Webchat: ({ clientId, storageKey, configuration, apiUrl, user: userCredentials, conversationId, ...props }:
|
|
862
|
-
|
|
863
|
-
export declare const webchatClasses: {
|
|
864
|
-
readonly container: {
|
|
865
|
-
readonly className: "bpReset bpContainer bpFont";
|
|
866
|
-
readonly dropzone: {
|
|
867
|
-
readonly overlay: {
|
|
868
|
-
readonly className: "bpDropzoneOverlay";
|
|
869
|
-
};
|
|
870
|
-
};
|
|
871
|
-
};
|
|
872
|
-
readonly loader: {
|
|
873
|
-
readonly className: "bpReset bpLoader";
|
|
874
|
-
};
|
|
875
|
-
readonly modal: {
|
|
876
|
-
readonly overlay: {
|
|
877
|
-
readonly className: "bpModalOverlay";
|
|
878
|
-
};
|
|
879
|
-
readonly dialog: {
|
|
880
|
-
readonly container: {
|
|
881
|
-
readonly className: "bpReset bpModalContainer";
|
|
882
|
-
};
|
|
883
|
-
readonly title: {
|
|
884
|
-
readonly className: "bpModalTitle";
|
|
885
|
-
};
|
|
886
|
-
readonly description: {
|
|
887
|
-
readonly className: "bpModalDescription";
|
|
888
|
-
};
|
|
889
|
-
readonly content: {
|
|
890
|
-
readonly container: {
|
|
891
|
-
readonly className: "bpModalContentContainer";
|
|
892
|
-
};
|
|
893
|
-
readonly textarea: {
|
|
894
|
-
readonly className: "bpModalContentTextArea";
|
|
895
|
-
};
|
|
896
|
-
};
|
|
897
|
-
readonly button: {
|
|
898
|
-
readonly container: {
|
|
899
|
-
readonly className: "bpModalButtonContainer";
|
|
900
|
-
};
|
|
901
|
-
readonly confirm: {
|
|
902
|
-
readonly className: "bpModalButtonConfirm";
|
|
903
|
-
};
|
|
904
|
-
readonly cancel: {
|
|
905
|
-
readonly className: "bpModalButtonCancel";
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
readonly messagePreview: {
|
|
911
|
-
readonly container: {
|
|
912
|
-
readonly className: "bpMessagePreviewContainer";
|
|
913
|
-
};
|
|
914
|
-
readonly message: {
|
|
915
|
-
readonly className: "bpMessagePreviewMessage";
|
|
916
|
-
};
|
|
917
|
-
readonly description: {
|
|
918
|
-
readonly className: "bpMessagePreviewDescription";
|
|
919
|
-
};
|
|
920
|
-
readonly closeButton: {
|
|
921
|
-
readonly className: "bpMessagePreviewCloseButton";
|
|
922
|
-
};
|
|
923
|
-
readonly avatar: {
|
|
924
|
-
readonly container: {
|
|
925
|
-
readonly className: "bpMessagePreviewAvatarContainer";
|
|
926
|
-
};
|
|
927
|
-
readonly image: {
|
|
928
|
-
readonly className: "bpMessagePreviewAvatarImage";
|
|
929
|
-
};
|
|
930
|
-
readonly fallback: {
|
|
931
|
-
readonly className: "bpMessagePreviewAvatarFallback";
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
readonly fab: {
|
|
936
|
-
readonly container: {
|
|
937
|
-
readonly className: "bpReset bpFabContainer";
|
|
938
|
-
};
|
|
939
|
-
readonly icon: {
|
|
940
|
-
readonly className: "bpFabIcon";
|
|
941
|
-
};
|
|
942
|
-
readonly image: {
|
|
943
|
-
readonly className: "bpFabImage";
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
readonly notification: {
|
|
947
|
-
readonly container: {
|
|
948
|
-
readonly className: "bpReset bpNotificationContainer";
|
|
949
|
-
};
|
|
950
|
-
readonly title: {
|
|
951
|
-
readonly className: "bpNotificationTitle";
|
|
952
|
-
};
|
|
953
|
-
readonly description: {
|
|
954
|
-
readonly className: "bpNotificationDescription";
|
|
955
|
-
};
|
|
956
|
-
readonly icon: {
|
|
957
|
-
readonly className: "bpNotificationIcon";
|
|
958
|
-
};
|
|
959
|
-
readonly closeIcon: {
|
|
960
|
-
readonly className: "bpNotificationCloseIcon";
|
|
961
|
-
};
|
|
962
|
-
};
|
|
963
|
-
readonly header: {
|
|
964
|
-
readonly container: {
|
|
965
|
-
readonly className: "bpReset bpHeaderContainer bpFont";
|
|
966
|
-
};
|
|
967
|
-
readonly content: {
|
|
968
|
-
readonly container: {
|
|
969
|
-
readonly className: "bpReset bpHeaderContentContainer";
|
|
970
|
-
};
|
|
971
|
-
readonly conversationHistory: {
|
|
972
|
-
readonly className: "bpHeaderConversationHistoryButton";
|
|
973
|
-
};
|
|
974
|
-
readonly title: {
|
|
975
|
-
readonly className: "bpHeaderContentTitle";
|
|
976
|
-
};
|
|
977
|
-
readonly description: {
|
|
978
|
-
readonly className: "bpHeaderContentDescription";
|
|
979
|
-
};
|
|
980
|
-
readonly avatar: {
|
|
981
|
-
readonly container: {
|
|
982
|
-
readonly className: "bpReset bpHeaderContentAvatarContainer";
|
|
983
|
-
};
|
|
984
|
-
readonly image: {
|
|
985
|
-
readonly className: "bpHeaderContentAvatarImage";
|
|
986
|
-
};
|
|
987
|
-
readonly fallback: {
|
|
988
|
-
readonly className: "bpHeaderContentAvatarFallback";
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
readonly toggleSound: {
|
|
992
|
-
readonly className: "bpHeaderSoundToggleButton";
|
|
993
|
-
};
|
|
994
|
-
readonly actions: {
|
|
995
|
-
readonly container: {
|
|
996
|
-
readonly className: "bpReset bpHeaderContentActionsContainer";
|
|
997
|
-
};
|
|
998
|
-
readonly icons: {
|
|
999
|
-
readonly className: "bpHeaderContentActionsIcons";
|
|
1000
|
-
};
|
|
1001
|
-
};
|
|
1002
|
-
};
|
|
1003
|
-
readonly expandedContent: {
|
|
1004
|
-
readonly container: {
|
|
1005
|
-
readonly className: "bpReset bpHeaderExpandedContentContainer";
|
|
1006
|
-
};
|
|
1007
|
-
readonly descriptionItems: {
|
|
1008
|
-
readonly container: {
|
|
1009
|
-
readonly className: "bpReset bpHeaderExpandedContentDescriptionItemsContainer";
|
|
1010
|
-
};
|
|
1011
|
-
readonly icon: {
|
|
1012
|
-
readonly className: "bpHeaderExpandedContentDescriptionItemsIcon";
|
|
1013
|
-
};
|
|
1014
|
-
readonly text: {
|
|
1015
|
-
readonly className: "bpHeaderExpandedContentDescriptionItemsText";
|
|
1016
|
-
};
|
|
1017
|
-
readonly link: {
|
|
1018
|
-
readonly className: "bpHeaderExpandedContentDescriptionItemsLink";
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
readonly group: {
|
|
1022
|
-
readonly className: "bpHeaderExpandedContentGroup";
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
readonly newConversationIcon: {
|
|
1026
|
-
readonly className: "bpHeaderNewConversationIcon";
|
|
1027
|
-
};
|
|
1028
|
-
};
|
|
1029
|
-
readonly composer: {
|
|
1030
|
-
readonly wrapper: {
|
|
1031
|
-
readonly className: "bpReset bpComposerWrapper";
|
|
1032
|
-
};
|
|
1033
|
-
readonly container: {
|
|
1034
|
-
readonly className: "bpReset bpComposerContainer bpFont";
|
|
1035
|
-
};
|
|
1036
|
-
readonly footer: {
|
|
1037
|
-
readonly className: "bpComposerFooter";
|
|
1038
|
-
};
|
|
1039
|
-
readonly inputContainer: {
|
|
1040
|
-
readonly className: "bpComposerInputContainer";
|
|
1041
|
-
};
|
|
1042
|
-
readonly input: {
|
|
1043
|
-
readonly className: "bpComposerInput";
|
|
1044
|
-
};
|
|
1045
|
-
readonly inputLoader: {
|
|
1046
|
-
readonly className: "bpComposerInputLoader";
|
|
1047
|
-
};
|
|
1048
|
-
readonly sendbutton: {
|
|
1049
|
-
readonly className: "bpComposerSendButton";
|
|
1050
|
-
};
|
|
1051
|
-
readonly uploadButton: {
|
|
1052
|
-
readonly className: "bpComposerUploadButton";
|
|
1053
|
-
};
|
|
1054
|
-
readonly voiceButton: {
|
|
1055
|
-
readonly className: "bpComposerVoiceButton";
|
|
1056
|
-
};
|
|
1057
|
-
readonly fileContainer: {
|
|
1058
|
-
readonly className: "bpComposerFileContainer";
|
|
1059
|
-
};
|
|
1060
|
-
readonly fileWidget: {
|
|
1061
|
-
readonly container: {
|
|
1062
|
-
readonly className: "bpComposerFileAttachement";
|
|
1063
|
-
};
|
|
1064
|
-
readonly loader: {
|
|
1065
|
-
readonly className: "bpComposerFileLoader";
|
|
1066
|
-
};
|
|
1067
|
-
readonly fileIcon: {
|
|
1068
|
-
readonly container: {
|
|
1069
|
-
readonly className: "bpComposerFileIconWrapper";
|
|
1070
|
-
};
|
|
1071
|
-
readonly icon: {
|
|
1072
|
-
readonly className: "bpComposerFileIcon";
|
|
1073
|
-
};
|
|
1074
|
-
};
|
|
1075
|
-
readonly metadata: {
|
|
1076
|
-
readonly container: {
|
|
1077
|
-
readonly className: "bpComposerFileMetadata";
|
|
1078
|
-
};
|
|
1079
|
-
readonly name: {
|
|
1080
|
-
readonly className: "bpComposerFileName";
|
|
1081
|
-
};
|
|
1082
|
-
readonly type: {
|
|
1083
|
-
readonly className: "bpComposerFileExtension";
|
|
1084
|
-
};
|
|
1085
|
-
};
|
|
1086
|
-
readonly removeIcon: {
|
|
1087
|
-
readonly className: "bpComposerFileRemoveIcon";
|
|
1088
|
-
};
|
|
1089
|
-
readonly errorIcon: {
|
|
1090
|
-
readonly className: "bpComposerFileErrorIcon";
|
|
1091
|
-
};
|
|
1092
|
-
readonly previewImage: {
|
|
1093
|
-
readonly className: "bpComposerFilePreviewImage";
|
|
1094
|
-
};
|
|
1095
|
-
};
|
|
1096
|
-
};
|
|
1097
|
-
readonly messageList: {
|
|
1098
|
-
readonly scrollDownButton: {
|
|
1099
|
-
readonly className: "bpMessageListScrollDownButton";
|
|
1100
|
-
};
|
|
1101
|
-
readonly container: {
|
|
1102
|
-
readonly className: "bpReset bpMessageListContainer bpFont";
|
|
1103
|
-
};
|
|
1104
|
-
readonly viewPort: {
|
|
1105
|
-
readonly className: "bpMessageListViewport";
|
|
1106
|
-
};
|
|
1107
|
-
readonly marquee: {
|
|
1108
|
-
readonly container: {
|
|
1109
|
-
readonly className: "bpReset bpMessageListMarqueeContainer";
|
|
1110
|
-
};
|
|
1111
|
-
readonly content: {
|
|
1112
|
-
readonly className: "bpMessageListMarqueeContent";
|
|
1113
|
-
};
|
|
1114
|
-
readonly title: {
|
|
1115
|
-
readonly className: "bpMessageListMarqueeTitle";
|
|
1116
|
-
};
|
|
1117
|
-
readonly description: {
|
|
1118
|
-
readonly className: "bpMessageListMarqueeDescription";
|
|
1119
|
-
};
|
|
1120
|
-
readonly avatar: {
|
|
1121
|
-
readonly container: {
|
|
1122
|
-
readonly className: "bpReset bpMessageListMarqueeAvatarContainer";
|
|
1123
|
-
};
|
|
1124
|
-
readonly image: {
|
|
1125
|
-
readonly className: "bpMessageListMarqueeAvatarImage";
|
|
1126
|
-
};
|
|
1127
|
-
readonly fallback: {
|
|
1128
|
-
readonly className: "bpMessageListMarqueeAvatarFallback";
|
|
1129
|
-
};
|
|
1130
|
-
};
|
|
1131
|
-
};
|
|
1132
|
-
readonly headerMessage: {
|
|
1133
|
-
readonly className: "bpMessageListHeaderMessage";
|
|
1134
|
-
};
|
|
1135
|
-
};
|
|
1136
|
-
readonly message: {
|
|
1137
|
-
readonly container: {
|
|
1138
|
-
readonly className: "bpReset bpMessageContainer";
|
|
1139
|
-
};
|
|
1140
|
-
readonly avatar: {
|
|
1141
|
-
readonly container: {
|
|
1142
|
-
readonly className: "bpReset bpMessageAvatarContainer";
|
|
1143
|
-
};
|
|
1144
|
-
readonly image: {
|
|
1145
|
-
readonly className: "bpMessageAvatarImage";
|
|
1146
|
-
};
|
|
1147
|
-
readonly fallback: {
|
|
1148
|
-
readonly className: "bpMessageAvatarFallback";
|
|
1149
|
-
};
|
|
1150
|
-
};
|
|
1151
|
-
readonly deliveryStatus: {
|
|
1152
|
-
readonly className: "bpMessageDeliveryStatus";
|
|
1153
|
-
};
|
|
1154
|
-
readonly deliveryStatusLabel: {
|
|
1155
|
-
readonly className: "bpMessageDeliveryStatusLabel";
|
|
1156
|
-
};
|
|
1157
|
-
readonly blocks: {
|
|
1158
|
-
readonly text: {
|
|
1159
|
-
readonly heading1: {
|
|
1160
|
-
readonly className: "bpMessageBlocksTextHeading1";
|
|
1161
|
-
};
|
|
1162
|
-
readonly heading2: {
|
|
1163
|
-
readonly className: "bpMessageBlocksTextHeading2";
|
|
1164
|
-
};
|
|
1165
|
-
readonly heading3: {
|
|
1166
|
-
readonly className: "bpMessageBlocksTextHeading3";
|
|
1167
|
-
};
|
|
1168
|
-
readonly heading4: {
|
|
1169
|
-
readonly className: "bpMessageBlocksTextHeading4";
|
|
1170
|
-
};
|
|
1171
|
-
readonly unorderedList: {
|
|
1172
|
-
readonly className: "bpMessageBlocksTextUnorderedList";
|
|
1173
|
-
};
|
|
1174
|
-
readonly orderedList: {
|
|
1175
|
-
readonly className: "bpMessageBlocksTextOrderedList";
|
|
1176
|
-
};
|
|
1177
|
-
readonly listItem: {
|
|
1178
|
-
readonly className: "bpMessageBlocksTextListItem";
|
|
1179
|
-
};
|
|
1180
|
-
readonly link: {
|
|
1181
|
-
readonly className: "bpMessageBlocksTextLink";
|
|
1182
|
-
};
|
|
1183
|
-
readonly italic: {
|
|
1184
|
-
readonly className: "bpMessageBlocksTextItalic";
|
|
1185
|
-
};
|
|
1186
|
-
readonly bold: {
|
|
1187
|
-
readonly className: "bpMessageBlocksTextBold";
|
|
1188
|
-
};
|
|
1189
|
-
readonly text: {
|
|
1190
|
-
readonly className: "bpMessageBlocksTextText";
|
|
1191
|
-
};
|
|
1192
|
-
readonly image: {
|
|
1193
|
-
readonly className: "bpMessageBlocksTextImage";
|
|
1194
|
-
};
|
|
1195
|
-
readonly imageError: {
|
|
1196
|
-
readonly className: "bpMessageBlocksTextImageError";
|
|
1197
|
-
};
|
|
1198
|
-
readonly horizontalRule: {
|
|
1199
|
-
readonly className: "bpMessageBlocksTextHorizontalRule";
|
|
1200
|
-
};
|
|
1201
|
-
readonly lineBreak: {
|
|
1202
|
-
readonly className: "bpMessageBlocksTextLineBreak";
|
|
1203
|
-
};
|
|
1204
|
-
readonly input: {
|
|
1205
|
-
readonly className: "bpMessageBlocksTextInput";
|
|
1206
|
-
};
|
|
1207
|
-
readonly codeBlockContainer: {
|
|
1208
|
-
readonly className: "bpMessageBlocksTextCodeBlockContainer";
|
|
1209
|
-
};
|
|
1210
|
-
readonly codeBlockTitle: {
|
|
1211
|
-
readonly className: "bpMessageBlocksTextCodeBlockTitle";
|
|
1212
|
-
};
|
|
1213
|
-
readonly codeBlockCopyIcon: {
|
|
1214
|
-
readonly className: "bpMessageBlocksTextCodeBlockCopyIcon";
|
|
1215
|
-
};
|
|
1216
|
-
readonly codeBlock: {
|
|
1217
|
-
readonly className: "bpMessageBlocksTextCodeBlock";
|
|
1218
|
-
};
|
|
1219
|
-
readonly code: {
|
|
1220
|
-
readonly className: "bpMessageBlocksTextCode";
|
|
1221
|
-
};
|
|
1222
|
-
readonly tableContainer: {
|
|
1223
|
-
readonly className: "bpMessageBlocksTextTableContainer";
|
|
1224
|
-
};
|
|
1225
|
-
readonly table: {
|
|
1226
|
-
readonly className: "bpMessageBlocksTextTable";
|
|
1227
|
-
};
|
|
1228
|
-
readonly tableHeader: {
|
|
1229
|
-
readonly className: "bpMessageBlocksTextTableHeader";
|
|
1230
|
-
};
|
|
1231
|
-
readonly tableData: {
|
|
1232
|
-
readonly className: "bpMessageBlocksTextTableData";
|
|
1233
|
-
};
|
|
1234
|
-
readonly tableRow: {
|
|
1235
|
-
readonly className: "bpMessageBlocksTextTableRow";
|
|
1236
|
-
};
|
|
1237
|
-
};
|
|
1238
|
-
readonly audio: {
|
|
1239
|
-
readonly className: "bpMessageBlocksAudio";
|
|
1240
|
-
};
|
|
1241
|
-
readonly image: {
|
|
1242
|
-
readonly image: {
|
|
1243
|
-
readonly className: "bpMessageBlocksImageImage";
|
|
1244
|
-
};
|
|
1245
|
-
readonly placeholder: {
|
|
1246
|
-
readonly className: "bpMessageBlocksImagePlaceholder";
|
|
1247
|
-
};
|
|
1248
|
-
readonly skeleton: {
|
|
1249
|
-
readonly className: "bpSkeleton";
|
|
1250
|
-
};
|
|
1251
|
-
};
|
|
1252
|
-
readonly video: {
|
|
1253
|
-
readonly className: "bpMessageBlocksVideo";
|
|
1254
|
-
};
|
|
1255
|
-
readonly location: {
|
|
1256
|
-
readonly container: {
|
|
1257
|
-
readonly className: "bpMessageBlocksLocationContainer";
|
|
1258
|
-
};
|
|
1259
|
-
readonly title: {
|
|
1260
|
-
readonly className: "bpMessageBlocksLocationTitle";
|
|
1261
|
-
};
|
|
1262
|
-
readonly icon: {
|
|
1263
|
-
readonly className: "bpMessageBlocksLocationIcon";
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
readonly file: {
|
|
1267
|
-
readonly container: {
|
|
1268
|
-
readonly className: "bpMessageBlocksFileContainer";
|
|
1269
|
-
};
|
|
1270
|
-
readonly title: {
|
|
1271
|
-
readonly className: "bpMessageBlocksFileTitle";
|
|
1272
|
-
};
|
|
1273
|
-
readonly icon: {
|
|
1274
|
-
readonly className: "bpMessageBlocksFileIcon";
|
|
1275
|
-
};
|
|
1276
|
-
};
|
|
1277
|
-
readonly row: {
|
|
1278
|
-
readonly className: "bpMessageBlocksRow";
|
|
1279
|
-
};
|
|
1280
|
-
readonly column: {
|
|
1281
|
-
readonly className: "bpMessageBlocksColumn";
|
|
1282
|
-
};
|
|
1283
|
-
readonly bubble: {
|
|
1284
|
-
readonly container: {
|
|
1285
|
-
readonly className: "bpMessageBlocksBubble";
|
|
1286
|
-
};
|
|
1287
|
-
readonly feedbackContainer: {
|
|
1288
|
-
readonly className: "bpMessageBlocksBubbleFeedbackContainer";
|
|
1289
|
-
};
|
|
1290
|
-
readonly feedbackIcon: {
|
|
1291
|
-
readonly className: "bpMessageBlocksBubbleFeedbackIcon";
|
|
1292
|
-
};
|
|
1293
|
-
};
|
|
1294
|
-
readonly carousel: {
|
|
1295
|
-
readonly container: {
|
|
1296
|
-
readonly className: "bpMessageBlocksCarouselContainer";
|
|
1297
|
-
};
|
|
1298
|
-
readonly slidesContainer: {
|
|
1299
|
-
readonly className: "bpMessageBlocksCarouselSlidesContainer";
|
|
1300
|
-
};
|
|
1301
|
-
readonly backButton: {
|
|
1302
|
-
readonly className: "bpMessageBlocksCarouselBackButton";
|
|
1303
|
-
};
|
|
1304
|
-
readonly nextButton: {
|
|
1305
|
-
readonly className: "bpMessageBlocksCarouselNextButton";
|
|
1306
|
-
};
|
|
1307
|
-
};
|
|
1308
|
-
readonly dropdown: {
|
|
1309
|
-
readonly button: {
|
|
1310
|
-
readonly container: {
|
|
1311
|
-
readonly className: "bpMessageBlocksDropdownButtonContainer";
|
|
1312
|
-
};
|
|
1313
|
-
readonly text: {
|
|
1314
|
-
readonly className: "bpMessageBlocksDropdownButtonText";
|
|
1315
|
-
};
|
|
1316
|
-
readonly icon: {
|
|
1317
|
-
readonly className: "bpMessageBlocksDropdownButtonIcon";
|
|
1318
|
-
};
|
|
1319
|
-
};
|
|
1320
|
-
readonly content: {
|
|
1321
|
-
readonly container: {
|
|
1322
|
-
readonly className: "bpMessageBlocksDropdownContentContainer";
|
|
1323
|
-
};
|
|
1324
|
-
readonly item: {
|
|
1325
|
-
readonly className: "bpMessageBlocksDropdownContentItem";
|
|
1326
|
-
};
|
|
1327
|
-
};
|
|
1328
|
-
};
|
|
1329
|
-
readonly button: {
|
|
1330
|
-
readonly className: "bpMessageBlocksButton";
|
|
1331
|
-
};
|
|
1332
|
-
};
|
|
1333
|
-
};
|
|
1334
|
-
readonly error: {
|
|
1335
|
-
readonly container: {
|
|
1336
|
-
readonly className: "bpReset bpErrorContainer";
|
|
1337
|
-
};
|
|
1338
|
-
readonly id: {
|
|
1339
|
-
readonly className: "bpErrorId";
|
|
1340
|
-
};
|
|
1341
|
-
readonly header: {
|
|
1342
|
-
readonly container: {
|
|
1343
|
-
readonly className: "bpErrorHeader";
|
|
1344
|
-
};
|
|
1345
|
-
readonly actions: {
|
|
1346
|
-
readonly className: "bpErrorHeaderActions";
|
|
1347
|
-
};
|
|
1348
|
-
};
|
|
1349
|
-
readonly content: {
|
|
1350
|
-
readonly className: "bpErrorContent";
|
|
1351
|
-
};
|
|
1352
|
-
readonly errorTitle: {
|
|
1353
|
-
readonly className: "bpErrorTitle";
|
|
1354
|
-
};
|
|
1355
|
-
readonly errorMessage: {
|
|
1356
|
-
readonly className: "bpErrorMessage";
|
|
1357
|
-
};
|
|
1358
|
-
readonly icon: {
|
|
1359
|
-
readonly className: "bpErrorIcon";
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
readonly typingIndicator: {
|
|
1363
|
-
readonly container: {
|
|
1364
|
-
readonly className: "bpTypingIndicatorContainer";
|
|
1365
|
-
};
|
|
1366
|
-
readonly loader: {
|
|
1367
|
-
readonly className: "bpTypingIndicatorLoader";
|
|
1368
|
-
};
|
|
1369
|
-
};
|
|
1370
|
-
readonly proactiveBubble: {
|
|
1371
|
-
readonly container: {
|
|
1372
|
-
readonly className: "bpProactiveBubbleContainer";
|
|
1373
|
-
};
|
|
1374
|
-
readonly content: {
|
|
1375
|
-
readonly className: "bpProactiveBubbleContent";
|
|
1376
|
-
};
|
|
1377
|
-
readonly layout: {
|
|
1378
|
-
readonly className: "bpProactiveBubbleLayout";
|
|
1379
|
-
};
|
|
1380
|
-
readonly icon: {
|
|
1381
|
-
readonly className: "bpProactiveBubbleIcon";
|
|
1382
|
-
};
|
|
1383
|
-
readonly message: {
|
|
1384
|
-
readonly className: "bpProactiveBubbleMessage";
|
|
1385
|
-
};
|
|
1386
|
-
readonly closeButton: {
|
|
1387
|
-
readonly className: "bpProactiveBubbleCloseButton";
|
|
1388
|
-
};
|
|
1389
|
-
readonly arrow: {
|
|
1390
|
-
readonly className: "bpProactiveBubbleArrow";
|
|
1391
|
-
};
|
|
1392
|
-
};
|
|
1393
|
-
readonly conversationHistory: {
|
|
1394
|
-
readonly container: {
|
|
1395
|
-
readonly className: "bpReset bpConversationHistoryContainer bpFont";
|
|
1396
|
-
};
|
|
1397
|
-
readonly header: {
|
|
1398
|
-
readonly className: "bpConversationHistoryHeader";
|
|
1399
|
-
};
|
|
1400
|
-
readonly closeButton: {
|
|
1401
|
-
readonly className: "bpConversationHistoryCloseButton";
|
|
1402
|
-
};
|
|
1403
|
-
readonly scrollContainer: {
|
|
1404
|
-
readonly className: "bpConversationHistoryScrollContainer";
|
|
1405
|
-
};
|
|
1406
|
-
readonly loaderContainer: {
|
|
1407
|
-
readonly className: "bpConversationHistoryLoaderContainer";
|
|
1408
|
-
};
|
|
1409
|
-
readonly conversation: {
|
|
1410
|
-
readonly container: {
|
|
1411
|
-
readonly className: "bpConversationHistoryConversationContainer";
|
|
1412
|
-
};
|
|
1413
|
-
readonly chevron: {
|
|
1414
|
-
readonly className: "bpConversationHistoryConversationChevron";
|
|
1415
|
-
};
|
|
1416
|
-
readonly userAvatar: {
|
|
1417
|
-
readonly className: {
|
|
1418
|
-
readonly className: "bpConversationHistoryConversationUserAvatarFallback";
|
|
1419
|
-
};
|
|
1420
|
-
};
|
|
1421
|
-
readonly avatar: {
|
|
1422
|
-
readonly container: {
|
|
1423
|
-
readonly className: "bpReset bpConversationHistoryConversationAvatarContainer";
|
|
1424
|
-
};
|
|
1425
|
-
readonly image: {
|
|
1426
|
-
readonly className: "bpConversationHistoryConversationAvatarImage";
|
|
1427
|
-
};
|
|
1428
|
-
readonly fallback: {
|
|
1429
|
-
readonly className: "bpConversationHistoryConversationAvatarFallback";
|
|
1430
|
-
};
|
|
1431
|
-
};
|
|
1432
|
-
readonly content: {
|
|
1433
|
-
readonly className: "bpConversationHistoryConversationContent";
|
|
1434
|
-
};
|
|
1435
|
-
readonly name: {
|
|
1436
|
-
readonly className: "bpConversationHistoryConversationName";
|
|
1437
|
-
};
|
|
1438
|
-
readonly timestamp: {
|
|
1439
|
-
readonly className: "bpConversationHistoryConversationTimestamp";
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
readonly newConversation: {
|
|
1443
|
-
readonly button: {
|
|
1444
|
-
readonly className: "bpConversationHistoryNewConversationButton";
|
|
1445
|
-
};
|
|
1446
|
-
readonly icon: {
|
|
1447
|
-
readonly className: "bpConversationHistoryNewConversationButtonIcon";
|
|
1448
|
-
};
|
|
1449
|
-
};
|
|
1450
|
-
};
|
|
1451
|
-
};
|
|
1163
|
+
export declare const Webchat: ({ clientId, storageKey, configuration, apiUrl, user: userCredentials, conversationId, ...props }: Props_5) => JSX.Element;
|
|
1452
1164
|
|
|
1453
1165
|
declare type WebchatClientActions = {
|
|
1454
1166
|
setUser: (userId?: UserCredentials) => void;
|
|
@@ -1500,6 +1212,7 @@ export declare type WebchatError = ({
|
|
|
1500
1212
|
export declare type WebchatEvents = {
|
|
1501
1213
|
conversation: string | undefined;
|
|
1502
1214
|
message: BlockMessage;
|
|
1215
|
+
messageUpdated: BlockMessage;
|
|
1503
1216
|
messageSent: IntegrationMessage['payload'];
|
|
1504
1217
|
error: Error;
|
|
1505
1218
|
webchatVisibility: 'show' | 'hide' | 'toggle';
|
|
@@ -1513,7 +1226,7 @@ export declare type WebchatEvents = {
|
|
|
1513
1226
|
participantRemoved: string;
|
|
1514
1227
|
};
|
|
1515
1228
|
|
|
1516
|
-
export declare function WebchatProvider({ clientId, apiUrl, storageKey, storageLocation, adminSecret, clientHeaders, children, ...props }: WebchatProviderProps):
|
|
1229
|
+
export declare function WebchatProvider({ clientId, apiUrl, storageKey, storageLocation, adminSecret, clientHeaders, children, ...props }: WebchatProviderProps): JSX.Element;
|
|
1517
1230
|
|
|
1518
1231
|
declare type WebchatProviderProps = {
|
|
1519
1232
|
clientId: string;
|
|
@@ -1524,7 +1237,7 @@ declare type WebchatProviderProps = {
|
|
|
1524
1237
|
storageKey?: string;
|
|
1525
1238
|
storageLocation?: StorageLocation;
|
|
1526
1239
|
clientHeaders?: Record<string, string>;
|
|
1527
|
-
children:
|
|
1240
|
+
children: ReactNode;
|
|
1528
1241
|
};
|
|
1529
1242
|
|
|
1530
1243
|
declare type WebchatStore = {
|
|
@@ -1543,4 +1256,11 @@ export declare const webhookHandlerErrorMap: {
|
|
|
1543
1256
|
[key in 'ResourceNotFound' | 'Forbidden']: WebchatError;
|
|
1544
1257
|
};
|
|
1545
1258
|
|
|
1259
|
+
export declare const WelcomeHero: ({ heading, subtitle }: WelcomeHeroProps) => JSX.Element;
|
|
1260
|
+
|
|
1261
|
+
declare type WelcomeHeroProps = {
|
|
1262
|
+
heading: string;
|
|
1263
|
+
subtitle?: string;
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1546
1266
|
export { }
|