sorun-messages-list
v1.0.6
Published
SORUN company messages list component
Downloads
19
Keywords
Readme
sorun-messages-list
SOR'UN company messages list component
Important release notes
1.0.0: The first stable version of SOR'UN messages list component 1.0.5: Adding Markdown support to messages 1.0.6: Adding End Message
Install
npm install --save sorun-messages-list
Usage
import React, { Component } from 'react'
import MessageList from 'sorun-messages-list'
class Example extends Component {
render () {
return (
<MessageList
core={core_variable}
lang={lang_variable}
innerWidth={inner_width_variable}
company={company_variable}
tempMessageList={temporarly_message_list_variable}
messageList={message_list_variable}
conversationInfoMap={conversation_info_map_variable}
endOfConversationAction={end_of_conversation_output_action}
openLocation={open_location_window_output_action}
openIFrame={open_iframe_window_output_action}
/>
)
}
}
Props
| Prop | Description | | :------------------------ |:----------------------------------------------------------------------| | core | The SORUN JS instance the project is working on.| | lang | The language keys values map for displayed test inside the component.| | innerWidth | The inner width of the chat window.| | company | The company object to get the input working modes.| | tempMessageList | The temporarly messages objects list.| | messageList | The messages object list.| | conversationInfoMap | The conversations map.| | endOfConversationAction | Output action that will be called when ending a conversation from messages.| | openLocation | Output action for opening the location window to send location if its supported.| | openIFrame | Output action for opening the iframe window if iframe window message came.|
License
MIT © SORUN