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 invocationissue that prevented users from using any input fields (#311)
- return value type for
FeedProps.doReactionAddRequestto bePromise<ReactionAPIResponse<RT>>#309
- Supporting Spanish #293
- Added
i18nproperty and default translations toEmojiPickercomponent #296 - Added
classNameandstyleproperties to all default components for easier styling (using styled-components or emotion) #302
- pasting text with special characters would result in error #278
ActivityHeaderis exported #283FeedManager.cancelcalled correctly #285, #263
- Bumped versions of
getsream,react-file-utils,tslib - Replaced
node-sasswithdart-sass
- Fix StatusUpdateForm paste error #279
- Removed Fort Awesome packages and replaced them with custom icons #272 #271
- Bump
react-file-utilsversion, reducing bundle size by 20% #273
Activitycomponent accepts a customCardprop #268
- Add
tslibto dependencies #269 FlatFeedclean 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.cssis deleted in favor ofdist/index.css.InfiniteScrollcomponent no longer supportsgetScrollParentproperty, scroll parent is now calculated within this component whenuseWindowproperty is set tofalse.Gallerycomponent replacedreact-imageswithreact-image-lightbox.- Text render uses
linkifyjsinstead ofanchormefor better future support. B2BTimeline,B2BActivity,Modalcomponents andStreamApp.Consumerare removed.EmojiPickercomponent ships with a lighter set of emojis to reduce bundle size.StatusUpdateFormandCommentFieldaccepts a custom propemojiDatathat allows extending default emoji list.FlatFeed,NotificationDropdown,NotificationFeedno longer pass down theFeedManagerprops to activities.CommentList,CommentField,LikeButton,ReactionListuse context values and no longer accepts feed manager props.
- Full browser build
CommentItemcrash on undefined user #146
- Close Faye connection on StreamApp unmount #135
textRenderersupports new line in input texts #133
- Fix userId source in
addReactionandaddChildReaction#132
- Add userId to
addReactionandaddChildReactionif 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.cssto 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
useWindowandgetScrollParenttoInfiniteScrollPaginator. 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:
FileIconFilePreviewerFileUploadButtonIconButtonImageDropzoneImagePreviewerImageUploadButtonLoadingIndicatorThumbnailThumbnailPlaceholder
What you need to change:
- If you imported any of these components directly from
react-activity-feedyou 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 toonSuccesscallback
- 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
trueas an argument toonMarkAsRead/onMarkAsSeen
onClickUserhandler forNotificationis now forwarded to the embeddedAvatarGroupas well.
- Support reading comments from oldest to newest
- Support for displaying comments in revered order, i.e. the load more button at the top.
AvatarGroupnow takes a list ofUserResponsein it'suserargument instead of a list ofUserData.
- Support marking notification groups as read and seen through the
onMarkAsSeenandonMarkAsReadhandlers. - The default
Notificationitem has onClickUserhandler forAvatarGroup
- Calling
onRemoveActivityon 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
Activityand/or theVideocomponent.
onToggleReactionandonAddReactionarguments have changed.
// old
onAddReaction(kind, activity, { data, targetFeeds, trackAnalytics });
// new
onAddReaction(kind, activity, data, { targetFeeds, trackAnalytics });sessionis replaced withclienteverywhere- Update
getstreamlibrary to v4.0.7, if you it directly check out it's CHANGELOG for info on its breaking changes there.
RepostButtonnow actually reposts an activity to another feed.
- Support for liking of comments. See the
StatusUpdateFormsection of the docs for an example of this.