@webex/message-composer

2.5.0 • Public • Published

Message Composer

Message composer for the Webex Web Client.

Setup

You will need Node v11+ and Yarn installed.

Usage

yarn build to build the composer.

To link with the client, run yarn link in your message composer terminal, then run yarn link @webex/message-composer in the client terminal. You will need to build the composer after making changes for them to take effect. To unlink, run yarn unlink @webex/message-composer in the client terminal, then yarn to rebuild the original package from deployed package.

To test without linking to a client, run yarn storybook.

Example of usage in the client:

import Composer from '@webex/message-composer';

// Prepare the functions and variables and whatnot

<Composer
  draft={draft}
  mentions={mentions}
  notifyKeyDown={onKeyDown}
  onError={onError}
  placeholder={placeholder}
  send={onSend}
  setEmitter={realSetEmitter}
  Toolbar={Toolbar}
>
  {stagedFiles}
  {quotedActivitySection}
</Composer>;

Or check out the stories file.

API

Check out the API docs here.

Development

See the development notes for more information.

Readme

Keywords

Package Sidebar

Install

npm i @webex/message-composer

Weekly Downloads

0

Version

2.5.0

License

MIT

Unpacked Size

4.57 MB

Total Files

36

Last publish

Collaborators

  • arun3528
  • npm.tropo
  • webex-jenkins
  • adamweeks
  • taymoork2
  • webex-components-publisher
  • webex-web-client