All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Handle string timestamps with timezone in format ±hh:mm by @danypype in #314
- Allow use of custom Textarea component in StatusUpdateForm by @MartinCupela in #342
- Token "-" causes the emoji search to fail in StatusUpdateForm by @MartinCupela in #336
- Forward doReactionsFilterRequest prop within NotificationFeed by @MartinCupela in #320
- Feed re-renders on options props change by @arnautov-anton in #313
- Removal of child reactions from latest_children #312
illegal invocation
issue that prevented users from using any input fields (#311)
- return value type for
FeedProps.doReactionAddRequest
to bePromise<ReactionAPIResponse<RT>>
#309
- Supporting Spanish #293
- Added
i18n
property and default translations toEmojiPicker
component #296 - Added
className
andstyle
properties to all default components for easier styling (using styled-components or emotion) #302
- pasting text with special characters would result in error #278
ActivityHeader
is exported #283FeedManager.cancel
called correctly #285, #263
- Bumped versions of
getsream
,react-file-utils
,tslib
- Replaced
node-sass
withdart-sass
- Fix StatusUpdateForm paste error #279
- Removed Fort Awesome packages and replaced them with custom icons #272 #271
- Bump
react-file-utils
version, reducing bundle size by 20% #273
Activity
component accepts a customCard
prop #268
- Add
tslib
to dependencies #269 FlatFeed
clean up properly on feed group change #267
- Preserve modules for better tree shaking #261
- Fix built package
Version 1.x is a major revamp of the SDK and comes with some breaking changes. This release also comes with lots of small bug fixes, using react Context API and hooks, and full typescript support. Some dependencies has been replaced or removed due to their lack of support.
- Typescript support
- Bundle size reduced by 40%
- SCSS support
- Node v16 support
- Node v10 support is dropped.
- Flow support has been removed in favor of Typescript.
dist/index.es.css
is deleted in favor ofdist/index.css
.InfiniteScroll
component no longer supportsgetScrollParent
property, scroll parent is now calculated within this component whenuseWindow
property is set tofalse
.Gallery
component replacedreact-images
withreact-image-lightbox
.- Text render uses
linkifyjs
instead ofanchorme
for better future support. B2BTimeline
,B2BActivity
,Modal
components andStreamApp.Consumer
are removed.EmojiPicker
component ships with a lighter set of emojis to reduce bundle size.StatusUpdateForm
andCommentField
accepts a custom propemojiData
that allows extending default emoji list.FlatFeed
,NotificationDropdown
,NotificationFeed
no longer pass down theFeedManager
props to activities.CommentList
,CommentField
,LikeButton
,ReactionList
use context values and no longer accepts feed manager props.
- Full browser build
CommentItem
crash on undefined user #146
- Close Faye connection on StreamApp unmount #135
textRenderer
supports new line in input texts #133
- Fix userId source in
addReaction
andaddChildReaction
#132
- Add userId to
addReaction
andaddChildReaction
if its missing #131 - Fix timestamps for comment and userbar #130
- Updated Video component to correctly render youtube videos
- Updated Video component to correctly render youtube videos
- Moving
@webscopeio/react-textarea-autocomplete/style.css
to vendor directory, to fix build.
- Adding i18n support. Please read the docs here: https://getstream.github.io/react-activity-feed/#internationalisation-i18n
THIS IS A BAD VERSION/RELEASE, PLESAE USE 0.10.1
- Removed alerts from library
- Add ActivityFooter component to exported components
- Add url-parse to dependencies
- Fix docs data
- Props
useWindow
andgetScrollParent
toInfiniteScrollPaginator
. This allows you to add scrollListeners to a diffent element than the window.
- Exposing FeedManager via FeedContext
Components related to uploading files have been moved to the separate
react-file-utils
library.
These components are not exported anymore from this library for clarity and
consistency. Following is the list of components that have been moved to
react-file-utils
:
FileIcon
FilePreviewer
FileUploadButton
IconButton
ImageDropzone
ImagePreviewer
ImageUploadButton
LoadingIndicator
Thumbnail
ThumbnailPlaceholder
What you need to change:
- If you imported any of these components directly from
react-activity-feed
you should now import them fromreact-file-utils
. - If you've overridden the styles for these components you will need to modify
it to change the class prefix from
raf-
torfu-
.
DropdownPanenl
/NotificationDropdown
: Correct some styling issues
- Fix build warnings
StatusUpdateForm
: Pass response of adding the activity toonSuccess
callback
- Don't override styling on body
- Export the Paginator components
- Fix a bug where pagination would be messed up when marking all notification groups as seen/read.
- Support marking all notifications as read/seen by using
true
as an argument toonMarkAsRead
/onMarkAsSeen
onClickUser
handler forNotification
is now forwarded to the embeddedAvatarGroup
as well.
- Support reading comments from oldest to newest
- Support for displaying comments in revered order, i.e. the load more button at the top.
AvatarGroup
now takes a list ofUserResponse
in it'suser
argument instead of a list ofUserData
.
- Support marking notification groups as read and seen through the
onMarkAsSeen
andonMarkAsRead
handlers. - The default
Notification
item has onClickUser
handler forAvatarGroup
- Calling
onRemoveActivity
on a notification feed now updates the state correctly.
- Improved detection of mentions and hashtags
- Detection of mentions, hashtags and urls in comments
- Click handlers for mentions and hashtags in comments
- An XSS issue is fixed in this release. Please upgrade! You're affected by the
issue if you use the default
Activity
and/or theVideo
component.
onToggleReaction
andonAddReaction
arguments have changed.
// old
onAddReaction(kind, activity, { data, targetFeeds, trackAnalytics });
// new
onAddReaction(kind, activity, data, { targetFeeds, trackAnalytics });
session
is replaced withclient
everywhere- Update
getstream
library to v4.0.7, if you it directly check out it's CHANGELOG for info on its breaking changes there.
RepostButton
now actually reposts an activity to another feed.
- Support for liking of comments. See the
StatusUpdateForm
section of the docs for an example of this.