@opencx/widget-core 4.0.7 → 4.0.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export type OpenCxComponentNameU = 'ui_lib/btn' | 'trigger/btn' | 'sessions/root' | 'sessions/header' | 'sessions/new_conversation_btn' | 'chat/root' | 'chat/header' | 'chat/main/root' | 'chat/canvas/root' | 'chat/msgs/root' | 'chat/agent_msg_group/root' | 'chat/agent_msg_group/avatar_and_msgs/root' | 'chat/agent_msg_group/avatar_and_msgs/avatar' | 'chat/agent_msg_group/avatar_and_msgs/msgs' | 'chat/agent_msg_group/root/avatar' | 'chat/agent_msg_group/suggestions' | 'chat/agent_msg/root' | 'chat/agent_msg/msg' | 'chat/
|
|
1
|
+
export type OpenCxComponentNameU = 'ui_lib/btn' | 'trigger/btn' | 'sessions/root' | 'sessions/header' | 'sessions/new_conversation_btn' | 'chat/root' | 'chat/header' | 'chat/main/root' | 'chat/canvas/root' | 'chat/msgs/root' | 'chat/agent_msg_group/root' | 'chat/agent_msg_group/avatar_and_msgs/root' | 'chat/agent_msg_group/avatar_and_msgs/avatar' | 'chat/agent_msg_group/avatar_and_msgs/msgs' | 'chat/agent_msg_group/root/avatar' | 'chat/agent_msg_group/suggestions' | 'chat/agent_msg/root' | 'chat/agent_msg/msg' | 'chat/user_msg_group/root' | 'chat/user_msg_group/avatar/root' | 'chat/user_msg/root' | 'chat/user_msg/msg' | 'chat/input_box/root' | 'chat/input_box/inner_root' | 'chat/input_box/textarea_and_attachments_container' | 'chat/input_box/textarea' | 'chat/input_box/attachments_container' | 'chat/bot_loading/root' | 'chat/bot_loading/bouncing_dots_container' | 'chat/suggested_reply_btn' | 'chat/might_solve_user_issue_suggested_replies_container';
|
|
@@ -231,18 +231,23 @@ export interface WidgetConfig {
|
|
|
231
231
|
closeIcon?: string;
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
|
+
/**
|
|
235
|
+
* Messages or simple components to be shown first thing in the chat.
|
|
236
|
+
* Useful for privacy policies or announcements.
|
|
237
|
+
* @default undefined
|
|
238
|
+
*/
|
|
239
|
+
chatBannerItems?: Array<{
|
|
240
|
+
/** Text or html as a string */
|
|
241
|
+
message: string;
|
|
242
|
+
/** Whether it stays at the top of chat after the user sends their first message. */
|
|
243
|
+
persistent?: boolean;
|
|
244
|
+
}>;
|
|
234
245
|
/**
|
|
235
246
|
* Initial messages that the contact sees in a new chat session.
|
|
236
247
|
* These messages will disappear once the contact sends their first message.
|
|
237
248
|
* @default - ['Hello, how can I help you?']
|
|
238
249
|
*/
|
|
239
250
|
initialMessages?: string[];
|
|
240
|
-
/**
|
|
241
|
-
* Similar to `initialMessages`, but these messages will persist at the top of the chat session.
|
|
242
|
-
* Useful if you want to keep a notice or a privacy policy warning.
|
|
243
|
-
* @default undefined
|
|
244
|
-
*/
|
|
245
|
-
persistentInitialMessages?: string[];
|
|
246
251
|
/**
|
|
247
252
|
* Initial messages that the contact sees in a new chat session.
|
|
248
253
|
* Similar to the `initialMessages` option, but with more control over the messages.
|