Skip to content

Releases: KeitelDOG/react-advanced-comment

Display rich Comment view with Header, Content and Show More Text

Choose a tag to compare

@KeitelDOG KeitelDOG released this 20 Dec 22:20
121c857

Retrieving content from CommentInput is one thing, parsing it to display it in a Comment view is another. To avoid complication, a set of Components is provided and now CommentInput and CoreInput can provide content in array of objects.

Input ContentParts:
Prop contentType can be 'string' | 'parts'.

  • string like 'Hello {{1}}'
  • parts like { type: 'text', data: 'Hello ', type: 'mention', data: { id: 1, name: 'KeitelDOG', image: 'image-url' }}

Comment:
New components:

  • Comment complete, using CommentHeader, ShowMoreText wrapping CommentContent
  • CommentHeader
  • CommentContent
  • ShowMoreText to wrap CommentContent if needed. It uses -webkit-line-clamp and -webkit-box display with height calculation.

Keep Function name for Emoticon and At component

Choose a tag to compare

@KeitelDOG KeitelDOG released this 11 Dec 02:09
75fa500

Useful for example to display Component name in Enzyme shallow rendered test.

Version 0.3.5 Make Rollup keeps main Components function names

Choose a tag to compare

@KeitelDOG KeitelDOG released this 10 Dec 13:54
e6794f4

Keep main Components function name in distributed codes. CommentInput, CoreInput, EmojiPicker, Mentions, Avatar. Their name will appear in Shallow test for example as <CommentInput ...> instead of <Component ... />.

Fix Avatar Component Docs

Choose a tag to compare

@KeitelDOG KeitelDOG released this 09 Dec 16:31
bed2b71
0.3.4

Version 0.3.4 Fix Avatar Component Fix

React 18 compatibility and CommentInput root div styling

Choose a tag to compare

@KeitelDOG KeitelDOG released this 09 Dec 16:17
5309140

Dev can now install this package in React 18, and can style the CommentInput root div with CSS Module

Make Peer Dependencies compatible from React 16.0.0 to 17.0.2

Choose a tag to compare

@KeitelDOG KeitelDOG released this 09 Dec 02:53
e982b1f

Now you can install this package while running React from 16.0.0 to 17.0.2.

Placeholder option in Input

Choose a tag to compare

@KeitelDOG KeitelDOG released this 08 Dec 18:35
3f67c9d

Dev can now use optional placeholder in CommentInput and CoreInput:

<CommentInput placeholder="Give you opinion" />

Export Types to root for Typescript developers

Choose a tag to compare

@KeitelDOG KeitelDOG released this 08 Dec 02:09
ca91a26

Export types to package root for developers that use typescript. So that they can import type like:

import { RenderEmojiPickerProps, RenderMentionsProps, User, Emoji } from '@keiteldog/react-advanced-comment';

(Fix for 0.2.0) Clear option with auto Users list update in Input

Choose a tag to compare

@KeitelDOG KeitelDOG released this 06 Dec 21:26
da5a967

Old tag 0.2.0 didn't publish latest compiled dist directory. The version 0.2.1 fixed it and published the latest codes.

Clear option with auto Users list update in Input

Choose a tag to compare

@KeitelDOG KeitelDOG released this 06 Dec 18:36
b505531
  • Input can be now cleared passing a clear prop in CommentInput and CoreInput.
  • Fix empty face at left of CommentInput when Avatar is not displayed
  • Allow input to automatically update users list passed in props for mention