Skip to content

Commit

Permalink
Move composer and connectToWebChat to React hooks and functional co…
Browse files Browse the repository at this point in the history
…mponent (#2308)

* Move Composer to use hooks

* Add back most props

* [email protected]

* Add entry

* Clean up comments

* Incorporating PR comments

* Apply suggestions from code review

Co-Authored-By: Corina <[email protected]>

* Applying PR suggestions
  • Loading branch information
compulim authored Aug 22, 2019
1 parent 1e6b279 commit eb6aa67
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 188 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed

- `*`: Bumps all dev dependencies to latest version, by [@compulim](https://github.com/compulim), in PR [#2182](https://github.com/microsoft/BotFramework-WebChat/pull/2182), notably
- `*`: Bumps all dev dependencies to latest version, by [@compulim](https://github.com/compulim), in PR [#2182](https://github.com/microsoft/BotFramework-WebChat/pull/2182) and PR [#2308](https://github.com/compulim/BotFramework-WebChat/pull/2308)
- [`@babel/*@7.5.4`](https://www.npmjs.com/package/@babel/core)
- [`[email protected]`](https://www.npmjs.com/package/jest)
- [`[email protected]`](https://www.npmjs.com/package/lerna)
- [`[email protected]`](https://www.npmjs.com/package/react-redux)
- [`[email protected]`](https://www.npmjs.com/package/typescript)
- [`[email protected]`](https://www.npmjs.com/package/webpack)
- `*`: Bumps [`@babel/[email protected]`](https://www.npmjs.com/package/@babel/runtime), by [@compulim](https://github.com/compulim), in PR [#2182](https://github.com/microsoft/BotFramework-WebChat/pull/2182)
Expand Down Expand Up @@ -63,6 +64,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `playground`: Remove [`react`](https://www.npmjs.com/package/react) and [`react-dom`](https://www.npmjs.com/package/react-dom) from `dependencies`
- `samples/*`: Move to production version of Web Chat, and bump to [`[email protected]`](https://www.npmjs.com/package/react) and [`[email protected]`](https://www.npmjs.com/package/react-dom)
- Moved the typing indicator to the send box and removed the typing indicator logic from the sagas, by [@tdurnford](https://github.com/tdurnford), in PR [#2321](https://github.com/microsoft/BotFramework-WebChat/pull/2321)
- `component`: Move `Composer` to React hooks and functional components, by [@compulim](https://github.com), in PR [#2308](https://github.com/compulim/BotFramework-WebChat/pull/2308)

### Fixed

Expand Down
32 changes: 18 additions & 14 deletions packages/component/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"prop-types": "^15.7.2",
"react-dictate-button": "^1.1.3",
"react-film": "1.2.1-master.db29968",
"react-redux": "^5.1.1",
"react-redux": "^7.1.0",
"react-say": "^1.2.0",
"react-scroll-to-bottom": "~1.3.2",
"redux": "^4.0.4",
Expand Down
Loading

0 comments on commit eb6aa67

Please sign in to comment.