@rivigo-ui-commons/chat-widget

1.2.0 • Public • Published

Chat Widget -

<ChatWidget chatId={chatId} commentHistory={this.state.commentHistory} documentData={this.state.documentData} loadingCommentHistory={this.state.loadingCommentHistory} uploadingDocument={this.state.uploadingDocument} onAddComment={(ticketId, comment) => this.addComment(ticketId, comment)} onUploadFiles={(event, ticketid) => this.uploadFiles(event, ticketid)} onCommentChange={(comment) => this.handleCommentChange(comment)} />

Properties -

  • chatId - unique id of chat widget
  • commentHistory - {type: 'Comment', timestamp, message, name: (initials to be shown ), title, contactNumber, department}
  •              {type: 'Document', timestamp, url, documentName, name: (initials to be shown ), title, contactNumber, department}
    
  • documentData - {lastUpdatedTimestamp, documentName, url, userDetail: {name}}
  • loadingCommentHistory - boolean
  • uploadingDocument - boolean
  • onAddComment - function(chatId, comment)
  • onUploadFiles - function(event, chatId)
  • onCommentChange - function(comment)

picture

Readme

Keywords

none

Package Sidebar

Install

npm i @rivigo-ui-commons/chat-widget

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

48.6 kB

Total Files

13

Last publish

Collaborators

  • rivigoui
  • stanley_rivigo