Pages often completely override content_panels since there is only one
field by default.
Moving CommentPanel to settings_panels means it's less likely to be
overriden by mistake.
* Add initial draft of commenting update notes
* Add code example for CommentPanel upgrade consideration
* Remove unnecessary Draftail text format upgrade note
* Add a keyboard shortcut to Draftail for adding/focusing comments
* Increase the timeout for unfocusing comments to reflect doing it on mousedown
* Update react-focus-trap and add focus trap to comments
* Remove extra focusing logic and replace with focusTrap initialFocus argument
* Add forceFocus to tests
* Remove todo
* Update Draftail to 1.4.1 to allow plugin keyBindingFns to be called
* Remove now unneeded icon hiding css due to Draftail update
* Add data-comment-add class to buttons to prevent comment unfocus
* Prevent comment button showing on streamfield root, and attach contentpath to field parent for single field
* Add keyboard shortcut for field level comments
* Consolidate comments keyboard shortcut check in case we change, and use keyCode instead of key
* Formatting and eslint fixes
* Update tests
* Use unfocus on mousedown for Draftail compatibility, and add comment adders to exceptions
* Focus comment on timeout to avoid losing focus to rerendering Draftail
* Stop editor from stealing focus, and add unfocus exception class to comment button
* Remove unused eslint disable
* Fix forwarded ref
* Remove unnecessary memo
* Commenting: Tweak the sizes to more closely match the design
* Further UI tweaks
- Address feedback from review
- Add a TextArea component that dynamically expands
* Remove duplicate focusing logic
* Linting
* Revert "Remove duplicate focusing logic"
This reverts commit 340c965788.
* Remove textarea focus